@simoncomputing/mui-bueno-v2 0.34.2 → 0.35.0

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/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(Pe,z){typeof exports=="object"&&typeof module<"u"?z(exports,require("@mui/material"),require("react/jsx-runtime"),require("react"),require("formik"),require("react-router-dom"),require("@emotion/styled"),require("@emotion/react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","@mui/material","react/jsx-runtime","react","formik","react-router-dom","@emotion/styled","@emotion/react","react-dom"],z):(Pe=typeof globalThis<"u"?globalThis:Pe||self,z(Pe["mui-bueno-v2"]={},Pe.MaterialUI,Pe["react/jsx-runtime"],Pe.React,Pe.Formik,Pe.ReactRouterDom,Pe.EmotionStyled,Pe.EmotionReact,Pe.ReactDom))})(this,(function(Pe,z,g,J,Ht,bo,TP,Po,Ns){"use strict";var Ile=Object.defineProperty;var Dle=(Pe,z,g)=>z in Pe?Ile(Pe,z,{enumerable:!0,configurable:!0,writable:!0,value:g}):Pe[z]=g;var td=(Pe,z,g)=>Dle(Pe,typeof z!="symbol"?z+"":z,g);var P1=document.createElement("style");P1.textContent=`.sort-icon-asc{-moz-transform:scale(1,-1);-o-transform:scale(1,-1);-webkit-transform:scale(1,-1);transform:scaleY(-1)}.citation-link,.selected-citation-link{vertical-align:super;font-size:smaller;padding:0 4px}.selected-citation-link{background-color:#e6e6e6}.citation-link:hover,.selected-citation-link:hover{cursor:pointer}.MuiTiptap-ControlledBubbleMenu-root{z-index:1300!important}.citation-tooltip .MuiTypography-subtitle2{font-size:.9rem}.citation-tooltip .citation-tooltip-divider{margin:6px 0;background-color:#adadad}.loading-page{width:100%;height:80%;display:flex;flex-direction:column;align-items:center;justify-content:center}.loading-page .text-content{display:flex;flex-direction:column}
1
+ (function(Ae,z){typeof exports=="object"&&typeof module<"u"?z(exports,require("@mui/material"),require("react/jsx-runtime"),require("react"),require("formik"),require("react-router-dom"),require("@emotion/styled"),require("@emotion/react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","@mui/material","react/jsx-runtime","react","formik","react-router-dom","@emotion/styled","@emotion/react","react-dom"],z):(Ae=typeof globalThis<"u"?globalThis:Ae||self,z(Ae["mui-bueno-v2"]={},Ae.MaterialUI,Ae["react/jsx-runtime"],Ae.React,Ae.Formik,Ae.ReactRouterDom,Ae.EmotionStyled,Ae.EmotionReact,Ae.ReactDom))})(this,(function(Ae,z,g,J,Ht,bo,TP,Po,Ns){"use strict";var Dle=Object.defineProperty;var Ale=(Ae,z,g)=>z in Ae?Dle(Ae,z,{enumerable:!0,configurable:!0,writable:!0,value:g}):Ae[z]=g;var td=(Ae,z,g)=>Ale(Ae,typeof z!="symbol"?z+"":z,g);var P1=document.createElement("style");P1.textContent=`.sort-icon-asc{-moz-transform:scale(1,-1);-o-transform:scale(1,-1);-webkit-transform:scale(1,-1);transform:scaleY(-1)}.citation-link,.selected-citation-link{vertical-align:super;font-size:smaller;padding:0 4px}.selected-citation-link{background-color:#e6e6e6}.citation-link:hover,.selected-citation-link:hover{cursor:pointer}.MuiTiptap-ControlledBubbleMenu-root{z-index:1300!important}.citation-tooltip .MuiTypography-subtitle2{font-size:.9rem}.citation-tooltip .citation-tooltip-divider{margin:6px 0;background-color:#adadad}.loading-page{width:100%;height:80%;display:flex;flex-direction:column;align-items:center;justify-content:center}.loading-page .text-content{display:flex;flex-direction:column}
2
2
  /*$vite$:1*/`,document.head.appendChild(P1);function N1(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const A=N1(J),kP=N1(Ns),he={breakpoints_xs:"0px",breakpoints_sm:"600px",breakpoints_md:"960px",breakpoints_lg:"1100px",breakpoints_xl:"1536px",light_palette_primary_light:"#4c98d7",light_palette_primary_main:"#005ea2",light_palette_primary_dark:"#1a4480",light_palette_secondary_light:"#9bb672",light_palette_secondary_main:"#607f35",light_palette_secondary_dark:"#3c4a29",light_palette_text_primary:"rgba(0, 0, 0, 0.8705882353)",light_palette_text_secondary:"rgba(0, 0, 0, 0.6)",light_palette_text_disabled:"rgba(0, 0, 0, 0.3803921569)",light_palette_error_light:"#dc5b52",light_palette_error_main:"#d83933",light_palette_error_dark:"#b50909",light_palette_warning_light:"#ffbe2e",light_palette_warning_main:"#e5a000",light_palette_warning_dark:"#c2850c",light_palette_info_light:"#4c98d7",light_palette_info_main:"#005ea2",light_palette_info_dark:"#1a4480",light_palette_success_light:"#9bb672",light_palette_success_main:"#607f35",light_palette_success_dark:"#3c4a29",light_palette_background_default:"#f9f9f9",light_palette_background_paper:"#fff",light_palette_background_appBar:"#252f3e",light_palette_divider_default:"#c9c9c9",dark_palette_primary_light:"#98cbfb",dark_palette_primary_main:"#4c98d7",dark_palette_primary_dark:"#005ea2",dark_palette_secondary_light:"#b8d293",dark_palette_secondary_main:"#9bb672",dark_palette_secondary_dark:"#607f35",dark_palette_text_primary:"#fff",dark_palette_text_secondary:"rgba(255, 255, 255, 0.7019607843)",dark_palette_text_disabled:"rgba(255, 255, 255, 0.5019607843)",dark_palette_error_light:"#f1928b",dark_palette_error_main:"#dc5b52",dark_palette_error_dark:"#d83933",dark_palette_warning_light:"#ffe396",dark_palette_warning_main:"#ffbe2e",dark_palette_warning_dark:"#e5a000",dark_palette_info_light:"#98cbfb",dark_palette_info_main:"#4c98d7",dark_palette_info_dark:"#005ea2",dark_palette_success_light:"#b8d293",dark_palette_success_main:"#9bb672",dark_palette_success_dark:"#607f35",dark_palette_background_default:"#121212",dark_palette_background_paper:"#1b1b1b",dark_palette_background_appBar:"#2f3b4e",dark_palette_divider_default:"#2e2e2e",common_palette_grey_50:"#f0f0f0",common_palette_grey_100:"#e6e6e6",common_palette_grey_200:"#c9c9c9",common_palette_grey_300:"#adadad",common_palette_grey_400:"#919191",common_palette_grey_500:"#757575",common_palette_grey_600:"#5c5c5c",common_palette_grey_700:"#454545",common_palette_grey_800:"#2e2e2e",common_palette_grey_900:"#1b1b1b",common_palette_grey_A100:"#e6e6e6",common_palette_grey_A200:"#c9c9c9",common_palette_grey_A400:"#919191",common_palette_grey_A700:"#454545",common_palette_common_white:"#fff",common_palette_common_black:"#000",shadows_1:"2px 2px 5px 0px rgba(0, 0, 0, 0.05)",shadows_2:"2px 2px 7px 0px rgba(0, 0, 0, 0.075)",shadows_3:"2px 3px 7px 0px rgba(0, 0, 0, 0.075), 0px 1px 10px 0px rgba(0, 0, 0, 0.05)",shadows_4:"2px 4px 8px 0px rgba(0, 0, 0, 0.075), 0px 1px 12px 0px rgba(0, 0, 0, 0.075)",shadows_5:"2px 5px 8px 0px rgba(0, 0, 0, 0.075), 0px 2px 14px 0px rgba(0, 0, 0, 0.1)",shadows_6:"2px 6px 10px 0px rgba(0, 0, 0, 0.1), 0px 2px 18px 0px rgba(0, 0, 0, 0.1)",shadows_7:"2px 7px 10px 1px rgba(0, 0, 0, 0.1), 0px 2px 16px 1px rgba(0, 0, 0, 0.12)",shadows_8:"2px 8px 10px 1px rgba(0, 0, 0, 0.1), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)",shadows_9:"2px 9px 12px 1px rgba(0, 0, 0, 0.1), 0px 3px 16px 2px rgba(0, 0, 0, 0.12)",shadows_10:"2px 10px 14px 1px rgba(0, 0, 0, 0.12), 0px 4px 18px 3px rgba(0, 0, 0, 0.12)",shadows_11:"2px 11px 15px 1px rgba(0, 0, 0, 0.12), 0px 4px 20px 3px rgba(0, 0, 0, 0.12)",shadows_12:"2px 12px 17px 2px rgba(0, 0, 0, 0.12), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)",shadows_13:"2px 13px 19px 2px rgba(0, 0, 0, 0.12), 0px 5px 24px 4px rgba(0, 0, 0, 0.12)",shadows_14:"2px 14px 21px 2px rgba(0, 0, 0, 0.12), 0px 5px 26px 4px rgba(0, 0, 0, 0.12)",shadows_15:"2px 15px 22px 2px rgba(0, 0, 0, 0.12), 0px 6px 28px 5px rgba(0, 0, 0, 0.12)",shadows_16:"2px 16px 24px 2px rgba(0, 0, 0, 0.12), 0px 6px 30px 5px rgba(0, 0, 0, 0.12)",shadows_17:"2px 17px 26px 2px rgba(0, 0, 0, 0.14), 0px 6px 32px 5px rgba(0, 0, 0, 0.12)",shadows_18:"2px 18px 28px 2px rgba(0, 0, 0, 0.14), 0px 7px 34px 6px rgba(0, 0, 0, 0.12)",shadows_19:"2px 19px 29px 2px rgba(0, 0, 0, 0.14), 0px 7px 36px 6px rgba(0, 0, 0, 0.12)",shadows_20:"2px 20px 31px 3px rgba(0, 0, 0, 0.14), 0px 8px 38px 7px rgba(0, 0, 0, 0.12)",shadows_21:"2px 21px 33px 3px rgba(0, 0, 0, 0.14), 0px 8px 40px 7px rgba(0, 0, 0, 0.12)",shadows_22:"2px 22px 35px 3px rgba(0, 0, 0, 0.14), 0px 8px 42px 7px rgba(0, 0, 0, 0.12)",shadows_23:"2px 23px 36px 3px rgba(0, 0, 0, 0.14), 0px 9px 44px 8px rgba(0, 0, 0, 0.12)",shadows_24:"2px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12)",shape_borderRadius:"3px",shape_borderWidth:"1px",shape_buttonBorderWidth:"2px",typography_fontFamily_default:'"source-sans-pro", "helvetica", "arial", sans-serif',typography_h1_fontFamily:'"source-sans-pro", "helvetica", "arial", sans-serif',typography_h1_fontWeight:"700",typography_h1_fontSize:"2rem",typography_h1_lineHeight:"normal",typography_h1_letterSpacing:"normal",typography_h2_fontFamily:'"source-sans-pro", "helvetica", "arial", sans-serif',typography_h2_fontWeight:"700",typography_h2_fontSize:"1.75rem",typography_h2_lineHeight:"normal",typography_h2_letterSpacing:"normal",typography_h3_fontFamily:'"source-sans-pro", "helvetica", "arial", sans-serif',typography_h3_fontWeight:"700",typography_h3_fontSize:"1.5rem",typography_h3_lineHeight:"normal",typography_h3_letterSpacing:"normal",typography_h4_fontFamily:'"source-sans-pro", "helvetica", "arial", sans-serif',typography_h4_fontWeight:"700",typography_h4_fontSize:"1.35rem",typography_h4_lineHeight:"normal",typography_h4_letterSpacing:"normal",typography_h5_fontFamily:'"source-sans-pro", "helvetica", "arial", sans-serif',typography_h5_fontWeight:"700",typography_h5_fontSize:"1.25rem",typography_h5_lineHeight:"normal",typography_h5_letterSpacing:"normal",typography_h6_fontFamily:'"source-sans-pro", "helvetica", "arial", sans-serif',typography_h6_fontWeight:"700",typography_h6_fontSize:"1.1rem",typography_h6_lineHeight:"normal",typography_h6_letterSpacing:"normal",typography_subtitle1_fontFamily:'"source-sans-pro", "helvetica", "arial", sans-serif',typography_subtitle1_fontWeight:"600",typography_subtitle1_fontSize:"1.25rem",typography_subtitle1_lineHeight:"normal",typography_subtitle1_letterSpacing:"normal",typography_subtitle2_fontFamily:'"source-sans-pro", "helvetica", "arial", sans-serif',typography_subtitle2_fontWeight:"600",typography_subtitle2_fontSize:"1.125rem",typography_subtitle2_lineHeight:"normal",typography_subtitle2_letterSpacing:"normal",typography_body1_fontFamily:'"source-sans-pro", "helvetica", "arial", sans-serif',typography_body1_fontWeight:"400",typography_body1_fontSize:"1.125rem",typography_body1_lineHeight:"normal",typography_body1_letterSpacing:"normal",typography_body2_fontFamily:'"source-sans-pro", "helvetica", "arial", sans-serif',typography_body2_fontWeight:"400",typography_body2_fontSize:"1rem",typography_body2_lineHeight:"normal",typography_body2_letterSpacing:"normal",typography_button_fontFamily:'"source-sans-pro", "helvetica", "arial", sans-serif',typography_button_fontWeight:"600",typography_button_fontSize:"1rem",typography_button_lineHeight:"normal",typography_button_letterSpacing:"normal",typography_caption_fontFamily:'"source-sans-pro", "helvetica", "arial", sans-serif',typography_caption_fontWeight:"400",typography_caption_fontSize:"0.75rem",typography_caption_lineHeight:"normal",typography_caption_letterSpacing:"normal",typography_overline_fontFamily:'"source-sans-pro", "helvetica", "arial", sans-serif',typography_overline_fontWeight:"400",typography_overline_fontSize:"0.75rem",typography_overline_lineHeight:"normal",typography_overline_letterSpacing:"normal"},$1={breakpoints:{values:{xs:parseInt(he.breakpoints_xs),sm:parseInt(he.breakpoints_sm),md:parseInt(he.breakpoints_md),lg:parseInt(he.breakpoints_lg),xl:parseInt(he.breakpoints_xl)}},shadows:["none",he.shadows_1,he.shadows_2,he.shadows_3,he.shadows_4,he.shadows_5,he.shadows_6,he.shadows_7,he.shadows_8,he.shadows_9,he.shadows_10,he.shadows_11,he.shadows_12,he.shadows_13,he.shadows_14,he.shadows_15,he.shadows_16,he.shadows_17,he.shadows_18,he.shadows_19,he.shadows_20,he.shadows_21,he.shadows_22,he.shadows_23,he.shadows_24],shape:{borderRadius:parseInt(he.shape_borderRadius)},typography:{fontFamily:he.typography_fontFamily_default,h1:{fontFamily:he.typography_h1_fontFamily,fontWeight:parseInt(he.typography_h1_fontWeight),fontSize:he.typography_h1_fontSize,lineHeight:he.typography_h1_lineHeight,letterSpacing:he.typography_h1_letterSpacing},h2:{fontFamily:he.typography_h2_fontFamily,fontWeight:parseInt(he.typography_h2_fontWeight),fontSize:he.typography_h2_fontSize,lineHeight:he.typography_h2_lineHeight,letterSpacing:he.typography_h2_letterSpacing},h3:{fontFamily:he.typography_h3_fontFamily,fontWeight:parseInt(he.typography_h3_fontWeight),fontSize:he.typography_h3_fontSize,lineHeight:he.typography_h3_lineHeight,letterSpacing:he.typography_h3_letterSpacing},h4:{fontFamily:he.typography_h4_fontFamily,fontWeight:parseInt(he.typography_h4_fontWeight),fontSize:he.typography_h4_fontSize,lineHeight:he.typography_h4_lineHeight,letterSpacing:he.typography_h4_letterSpacing},h5:{fontFamily:he.typography_h5_fontFamily,fontWeight:parseInt(he.typography_h5_fontWeight),fontSize:he.typography_h5_fontSize,lineHeight:he.typography_h5_lineHeight,letterSpacing:he.typography_h5_letterSpacing},h6:{fontFamily:he.typography_h6_fontFamily,fontWeight:parseInt(he.typography_h6_fontWeight),fontSize:he.typography_h6_fontSize,lineHeight:he.typography_h6_lineHeight,letterSpacing:he.typography_h6_letterSpacing},subtitle1:{fontFamily:he.typography_subtitle1_fontFamily,fontWeight:parseInt(he.typography_subtitle1_fontWeight),fontSize:he.typography_subtitle1_fontSize,lineHeight:he.typography_subtitle1_lineHeight,letterSpacing:he.typography_subtitle1_letterSpacing},subtitle2:{fontFamily:he.typography_subtitle2_fontFamily,fontWeight:parseInt(he.typography_subtitle2_fontWeight),fontSize:he.typography_subtitle2_fontSize,lineHeight:he.typography_subtitle2_lineHeight,letterSpacing:he.typography_subtitle2_letterSpacing},body1:{fontFamily:he.typography_body1_fontFamily,fontWeight:parseInt(he.typography_body1_fontWeight),fontSize:he.typography_body1_fontSize,lineHeight:he.typography_body1_lineHeight,letterSpacing:he.typography_body1_letterSpacing},body2:{fontFamily:he.typography_body2_fontFamily,fontWeight:parseInt(he.typography_body2_fontWeight),fontSize:he.typography_body2_fontSize,lineHeight:he.typography_body2_lineHeight,letterSpacing:he.typography_body2_letterSpacing},button:{fontFamily:he.typography_button_fontFamily,fontWeight:parseInt(he.typography_button_fontWeight),fontSize:he.typography_button_fontSize,lineHeight:he.typography_button_lineHeight,letterSpacing:he.typography_button_letterSpacing,textTransform:"none"},caption:{fontFamily:he.typography_caption_fontFamily,fontWeight:parseInt(he.typography_caption_fontWeight),fontSize:he.typography_caption_fontSize,lineHeight:he.typography_caption_lineHeight,letterSpacing:he.typography_caption_letterSpacing},overline:{fontFamily:he.typography_overline_fontFamily,fontWeight:parseInt(he.typography_overline_fontWeight),fontSize:he.typography_overline_fontSize,lineHeight:he.typography_overline_lineHeight,letterSpacing:he.typography_overline_letterSpacing}},palette:{grey:{50:he.common_palette_grey_50,100:he.common_palette_grey_100,200:he.common_palette_grey_200,300:he.common_palette_grey_300,400:he.common_palette_grey_400,500:he.common_palette_grey_500,600:he.common_palette_grey_600,700:he.common_palette_grey_700,800:he.common_palette_grey_800,900:he.common_palette_grey_900,A100:he.common_palette_grey_A100,A200:he.common_palette_grey_A200,A400:he.common_palette_grey_A400,A700:he.common_palette_grey_A700},common:{black:he.common_palette_common_black,white:he.common_palette_common_white},white:he.common_palette_common_white},components:{MuiCard:{defaultProps:{elevation:0},styleOverrides:{root:({theme:t})=>({borderStyle:"solid",borderWidth:he.shape_borderWidth,borderColor:t.palette.border.card})}},MuiAppBar:{styleOverrides:{root:({theme:t})=>({backgroundColor:t.palette.background.appBar})}},MuiButton:{styleOverrides:{outlined:{borderWidth:he.shape_buttonBorderWidth,":hover":{borderWidth:he.shape_buttonBorderWidth}}}},MuiTable:{styleOverrides:{root:({ownerState:t})=>({...t.size==="x-small"&&{"& .MuiTableCell-root":{padding:"0px 16px"}}})}},MuiTableCell:{styleOverrides:{head:({theme:t})=>({"& .MuiSvgIcon-root":{color:t.palette.grey[300]}})}},MuiTooltip:{styleOverrides:{tooltip:{fontSize:".9rem"}}}}},EP={primary:{light:he.light_palette_primary_light,main:he.light_palette_primary_main,dark:he.light_palette_primary_dark},secondary:{light:he.light_palette_secondary_light,main:he.light_palette_secondary_main,dark:he.light_palette_secondary_dark},text:{primary:he.light_palette_text_primary,secondary:he.light_palette_text_secondary,disabled:he.light_palette_text_disabled},background:{default:he.light_palette_background_default,paper:he.light_palette_background_paper,appBar:he.light_palette_background_appBar},error:{light:he.light_palette_error_light,main:he.light_palette_error_main,dark:he.light_palette_error_dark},success:{light:he.light_palette_success_light,main:he.light_palette_success_main,dark:he.light_palette_success_dark},info:{light:he.light_palette_info_light,main:he.light_palette_info_main,dark:he.light_palette_info_dark},warning:{light:he.light_palette_warning_light,main:he.light_palette_warning_main,dark:he.light_palette_warning_dark},border:{card:he.light_palette_divider_default}},OP={primary:{light:he.dark_palette_primary_light,main:he.dark_palette_primary_main,dark:he.dark_palette_primary_dark},secondary:{light:he.dark_palette_secondary_light,main:he.dark_palette_secondary_main,dark:he.dark_palette_secondary_dark},text:{primary:he.dark_palette_text_primary,secondary:he.dark_palette_text_secondary,disabled:he.dark_palette_text_disabled},background:{default:he.dark_palette_background_default,paper:he.dark_palette_background_paper,appBar:he.dark_palette_background_appBar},error:{light:he.dark_palette_error_light,main:he.dark_palette_error_main,dark:he.dark_palette_error_dark},success:{light:he.dark_palette_success_light,main:he.dark_palette_success_main,dark:he.dark_palette_success_dark},info:{light:he.dark_palette_info_light,main:he.dark_palette_info_main,dark:he.dark_palette_info_dark},warning:{light:he.dark_palette_warning_light,main:he.dark_palette_warning_main,dark:he.dark_palette_warning_dark},border:{card:he.dark_palette_divider_default}},MP=(t,e={})=>z.createTheme({...$1,palette:{...$1.palette,...t==="light"?EP:OP,mode:t}},e),_P=["w","xs","sm","md","lg","xl","alignment","justify","noMP","noGrid","gridClassName","gridStyle"],L1=t=>t>47&&t<58,B1=t=>t>64&&t<123&&(t<91||t>96),IP=(t,e,n,r)=>{let o="",i=0,s=0,a=0,l=0;const u=r.selectionStart;let f=!1;if(t.length<=e.length){for(let T=0;T<t.length&&T<e.length;T++){for(;i<e.length&&e[i]!=="X"&&e[i]!=="9";)a++,s++,i++;(L1(t.charCodeAt(T))&&e[i]==="9"||B1(t.charCodeAt(T))&&e[i]==="X")&&(a>0&&(l=a,a=0),o+=t[T],i++)}const p=L1(t.charCodeAt(u-1))?"number":B1(t.charCodeAt(u-1))?"letter":"something else",m=p!=="number"&&e[u-1]==="9",b=p!=="letter"&&e[u-1]==="X";(m||b||p==="something else")&&(f=!0);let y="",x=0;Math.abs(n.length-t.length)<=1&&(s=0);let S=u+s;for(let T=0;T<o.length;T++){for(;x<e.length&&e[x]!=="X"&&e[x]!=="9";)y+=e[x],x++;y+=o[T],x++}t.length<n.length?window.requestAnimationFrame(()=>{r.selectionStart=S,r.selectionEnd=S}):e[S-1]!=="X"&&e[S-1]!=="9"?window.requestAnimationFrame(()=>{r.selectionStart=S+l,r.selectionEnd=S+l}):(f&&(S-=1),window.requestAnimationFrame(()=>{r.selectionStart=S,r.selectionEnd=S}));const k=e.slice(x);return k.indexOf("X")===-1&&k.indexOf("9")===-1&&(y+=k),y}return window.requestAnimationFrame(()=>{r.selectionStart=u-1,r.selectionEnd=u-1}),n};function lr(t,e){const r=Object.keys(t).filter(i=>e.includes(i)),o={...t};for(const i of _P)delete o[i];for(const i of r)delete o[i];return o}const Ln=t=>t.split(/(?=[A-Z])|[.\-_\s]+/).map(n=>n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()).filter(Boolean).join(" ");function F1(t,e,n=!1,r=""){let o="";if(e==null||e.length==0)return r;if(n){let i="";const s=e.toString().split(",");let a=0;t.forEach(l=>{s.includes(String(l.value).toString())&&(i+=l.label,a<s.length-1&&(i+=", "),a++)}),o=i}else{const i=t.find(s=>e==s.value);i!=null&&(o=i.label)}return o}function La(t,e,n){return t.onClick?{onClick:()=>{t.onClick(),t.openInNewTab&&window.open(t.externalUrl??t.path,"_blank","noopener"),t.path&&!t.openInNewTab&&e(t.path),n&&n()}}:t.path&&!t.openInNewTab?{component:bo.Link,to:t.path}:t.externalUrl||t.path?{component:"a",href:t.externalUrl??t.path,target:"_blank",rel:"noopener noreferrer"}:{}}function si(t,e){return process.env.NODE_ENV==="production"?()=>null:function(...r){return t(...r)||e(...r)}}var ji=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Un(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var nd={exports:{}},Lt={};/**
3
3
  * @license React
4
4
  * react-is.production.js
@@ -170,7 +170,7 @@ img.ProseMirror-separator {
170
170
  `);return!i||!s?!1:t.chain().command(({tr:a})=>(a.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:t})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=t,{selection:n,doc:r}=e,{$from:o,empty:i}=n;if(!i||o.parent.type!==this.type||!(o.parentOffset===o.parent.nodeSize-2))return!1;const a=o.after();return a===void 0?!1:r.nodeAt(a)?t.commands.command(({tr:u})=>(u.setSelection(nt.near(r.resolve(a))),!0)):t.commands.exitCode()}}},addInputRules(){return[Qg({find:v3,type:this.type,getAttributes:t=>({language:t[1]})}),Qg({find:x3,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new en({key:new On("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const n=e.clipboardData.getData("text/plain"),r=e.clipboardData.getData("vscode-editor-data"),o=r?JSON.parse(r):void 0,i=o==null?void 0:o.mode;if(!n||!i)return!1;const{tr:s,schema:a}=t.state,l=a.text(n.replace(/\r\n?/g,`
171
171
  `));return s.replaceSelectionWith(this.type.create({language:i},l)),s.selection.$from.parent.type!==this.type&&s.setSelection(Xe.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.setMeta("paste",!0),t.dispatch(s),!0}}})]}}),gT=tn.create({name:"doc",topNode:!0,content:"block+"});function w3(t={}){return new en({view(e){return new S3(e,t)}})}class S3{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(o=>{let i=s=>{this[o](s)};return e.dom.addEventListener(o,i),{name:o,handler:i}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,r,o=this.editorView.dom,i=o.getBoundingClientRect(),s=i.width/o.offsetWidth,a=i.height/o.offsetHeight;if(n){let p=e.nodeBefore,m=e.nodeAfter;if(p||m){let b=this.editorView.nodeDOM(this.cursorPos-(p?p.nodeSize:0));if(b){let v=b.getBoundingClientRect(),y=p?v.bottom:v.top;p&&m&&(y=(y+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let x=this.width/2*a;r={left:v.left,right:v.right,top:y-x,bottom:y+x}}}}if(!r){let p=this.editorView.coordsAtPos(this.cursorPos),m=this.width/2*s;r={left:p.left-m,right:p.left+m,top:p.top,bottom:p.bottom}}let l=this.editorView.dom.offsetParent;this.element||(this.element=l.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let u,f;if(!l||l==document.body&&getComputedStyle(l).position=="static")u=-pageXOffset,f=-pageYOffset;else{let p=l.getBoundingClientRect(),m=p.width/l.offsetWidth,b=p.height/l.offsetHeight;u=p.left-l.scrollLeft*m,f=p.top-l.scrollTop*b}this.element.style.left=(r.left-u)/s+"px",this.element.style.top=(r.top-f)/a+"px",this.element.style.width=(r.right-r.left)/s+"px",this.element.style.height=(r.bottom-r.top)/a+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),o=r&&r.type.spec.disableDropCursor,i=typeof o=="function"?o(this.editorView,n,e):o;if(n&&!i){let s=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let a=tS(this.editorView.state.doc,s,this.editorView.dragging.slice);a!=null&&(s=a)}this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}const yT=cn.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[w3(this.options)]}});class un extends nt{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return un.valid(r)?new un(r):nt.near(r)}content(){return Fe.empty}eq(e){return e instanceof un&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new un(e.resolve(n.pos))}getBookmark(){return new ey(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!C3(e)||!T3(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let o=n.contentMatchAt(e.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&un.valid(e))return e;let o=e.pos,i=null;for(let s=e.depth;;s--){let a=e.node(s);if(n>0?e.indexAfter(s)<a.childCount:e.index(s)>0){i=a.child(n>0?e.indexAfter(s):e.index(s)-1);break}else if(s==0)return null;o+=n;let l=e.doc.resolve(o);if(un.valid(l))return l}for(;;){let s=n>0?i.firstChild:i.lastChild;if(!s){if(i.isAtom&&!i.isText&&!Je.isSelectable(i)){e=e.doc.resolve(o+i.nodeSize*n),r=!1;continue e}break}i=s,o+=n;let a=e.doc.resolve(o);if(un.valid(a))return a}return null}}}un.prototype.visible=!1,un.findFrom=un.findGapCursorFrom,nt.jsonID("gapcursor",un);class ey{constructor(e){this.pos=e}map(e){return new ey(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return un.valid(n)?new un(n):nt.near(n)}}function bT(t){return t.isAtom||t.spec.isolating||t.spec.createGapCursor}function C3(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n-1);;o=o.lastChild){if(o.childCount==0&&!o.inlineContent||bT(o.type))return!0;if(o.inlineContent)return!1}}return!0}function T3(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n);;o=o.firstChild){if(o.childCount==0&&!o.inlineContent||bT(o.type))return!0;if(o.inlineContent)return!1}}return!0}function k3(){return new en({props:{decorations:_3,createSelectionBetween(t,e,n){return e.pos==n.pos&&un.valid(n)?new un(n):null},handleClick:O3,handleKeyDown:E3,handleDOMEvents:{beforeinput:M3}}})}const E3=$g({ArrowLeft:cf("horiz",-1),ArrowRight:cf("horiz",1),ArrowUp:cf("vert",-1),ArrowDown:cf("vert",1)});function cf(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,o,i){let s=r.selection,a=e>0?s.$to:s.$from,l=s.empty;if(s instanceof Xe){if(!i.endOfTextblock(n)||a.depth==0)return!1;l=!1,a=r.doc.resolve(e>0?a.after():a.before())}let u=un.findGapCursorFrom(a,e,l);return u?(o&&o(r.tr.setSelection(new un(u))),!0):!1}}function O3(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!un.valid(r))return!1;let o=t.posAtCoords({left:n.clientX,top:n.clientY});return o&&o.inside>-1&&Je.isSelectable(t.state.doc.nodeAt(o.inside))?!1:(t.dispatch(t.state.tr.setSelection(new un(r))),!0)}function M3(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof un))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let o=Oe.empty;for(let s=r.length-1;s>=0;s--)o=Oe.from(r[s].createAndFill(null,o));let i=t.state.tr.replace(n.pos,n.pos,new Fe(o,0,0));return i.setSelection(Xe.near(i.doc.resolve(n.pos+1))),t.dispatch(i),!1}function _3(t){if(!(t.selection instanceof un))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Jt.create(t.doc,[Yn.widget(t.selection.head,e,{key:"gapcursor"})])}const vT=cn.create({name:"gapCursor",addProseMirrorPlugins(){return[k3()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=ft(Ue(t,"allowGapCursor",n)))!==null&&e!==void 0?e:null}}}),xT=tn.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",Ct(this.options.HTMLAttributes,t)]},renderText(){return`
172
172
  `},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:r})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:o,storedMarks:i}=n;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:a}=r.extensionManager,l=i||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:u,dispatch:f})=>{if(f&&l&&s){const p=l.filter(m=>a.includes(m.type.name));u.ensureMarks(p)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),wT=tn.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(t=>({tag:`h${t}`,attrs:{level:t}}))},renderHTML({node:t,HTMLAttributes:e}){return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,Ct(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.setNode(this.name,t):!1,toggleHeading:t=>({commands:e})=>this.options.levels.includes(t.level)?e.toggleNode(this.name,"paragraph",t):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((t,e)=>({...t,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(t=>Qg({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${t}})\\s$`),type:this.type,getAttributes:{level:t}}))}});var uf=200,Vn=function(){};Vn.prototype.append=function(e){return e.length?(e=Vn.from(e),!this.length&&e||e.length<uf&&this.leafAppend(e)||this.length<uf&&e.leafPrepend(this)||this.appendInner(e)):this},Vn.prototype.prepend=function(e){return e.length?Vn.from(e).append(this):this},Vn.prototype.appendInner=function(e){return new I3(this,e)},Vn.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?Vn.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))},Vn.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},Vn.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)},Vn.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var o=[];return this.forEach(function(i,s){return o.push(e(i,s))},n,r),o},Vn.from=function(e){return e instanceof Vn?e:e&&e.length?new ST(e):Vn.empty};var ST=(function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(o,i){return o==0&&i==this.length?this:new e(this.values.slice(o,i))},e.prototype.getInner=function(o){return this.values[o]},e.prototype.forEachInner=function(o,i,s,a){for(var l=i;l<s;l++)if(o(this.values[l],a+l)===!1)return!1},e.prototype.forEachInvertedInner=function(o,i,s,a){for(var l=i-1;l>=s;l--)if(o(this.values[l],a+l)===!1)return!1},e.prototype.leafAppend=function(o){if(this.length+o.length<=uf)return new e(this.values.concat(o.flatten()))},e.prototype.leafPrepend=function(o){if(this.length+o.length<=uf)return new e(o.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e})(Vn);Vn.empty=new ST([]);var I3=(function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},e.prototype.forEachInner=function(r,o,i,s){var a=this.left.length;if(o<a&&this.left.forEachInner(r,o,Math.min(i,a),s)===!1||i>a&&this.right.forEachInner(r,Math.max(o-a,0),Math.min(this.length,i)-a,s+a)===!1)return!1},e.prototype.forEachInvertedInner=function(r,o,i,s){var a=this.left.length;if(o>a&&this.right.forEachInvertedInner(r,o-a,Math.max(i,a)-a,s+a)===!1||i<a&&this.left.forEachInvertedInner(r,Math.min(o,a),i,s)===!1)return!1},e.prototype.sliceInner=function(r,o){if(r==0&&o==this.length)return this;var i=this.left.length;return o<=i?this.left.slice(r,o):r>=i?this.right.slice(r-i,o-i):this.left.slice(r,i).append(this.right.slice(0,o-i))},e.prototype.leafAppend=function(r){var o=this.right.leafAppend(r);if(o)return new e(this.left,o)},e.prototype.leafPrepend=function(r){var o=this.left.leafPrepend(r);if(o)return new e(o,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e})(Vn);const D3=500;class Co{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let o,i;n&&(o=this.remapping(r,this.items.length),i=o.maps.length);let s=e.tr,a,l,u=[],f=[];return this.items.forEach((p,m)=>{if(!p.step){o||(o=this.remapping(r,m+1),i=o.maps.length),i--,f.push(p);return}if(o){f.push(new Vo(p.map));let b=p.step.map(o.slice(i)),v;b&&s.maybeStep(b).doc&&(v=s.mapping.maps[s.mapping.maps.length-1],u.push(new Vo(v,void 0,void 0,u.length+f.length))),i--,v&&o.appendMap(v,i)}else s.maybeStep(p.step);if(p.selection)return a=o?p.selection.map(o.slice(i)):p.selection,l=new Co(this.items.slice(0,r).append(f.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:s,selection:a}}addTransform(e,n,r,o){let i=[],s=this.eventCount,a=this.items,l=!o&&a.length?a.get(a.length-1):null;for(let f=0;f<e.steps.length;f++){let p=e.steps[f].invert(e.docs[f]),m=new Vo(e.mapping.maps[f],p,n),b;(b=l&&l.merge(m))&&(m=b,f?i.pop():a=a.slice(0,a.length-1)),i.push(m),n&&(s++,n=void 0),o||(l=m)}let u=s-r.depth;return u>P3&&(a=A3(a,u),s-=u),new Co(a.append(i),s)}remapping(e,n){let r=new fc;return this.items.forEach((o,i)=>{let s=o.mirrorOffset!=null&&i-o.mirrorOffset>=e?r.maps.length-o.mirrorOffset:void 0;r.appendMap(o.map,s)},e,n),r}addMaps(e){return this.eventCount==0?this:new Co(this.items.append(e.map(n=>new Vo(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],o=Math.max(0,this.items.length-n),i=e.mapping,s=e.steps.length,a=this.eventCount;this.items.forEach(m=>{m.selection&&a--},o);let l=n;this.items.forEach(m=>{let b=i.getMirror(--l);if(b==null)return;s=Math.min(s,b);let v=i.maps[b];if(m.step){let y=e.steps[b].invert(e.docs[b]),x=m.selection&&m.selection.map(i.slice(l+1,b));x&&a++,r.push(new Vo(v,y,x))}else r.push(new Vo(v))},o);let u=[];for(let m=n;m<s;m++)u.push(new Vo(i.maps[m]));let f=this.items.slice(0,o).append(u).append(r),p=new Co(f,a);return p.emptyItemCount()>D3&&(p=p.compress(this.items.length-r.length)),p}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,o=[],i=0;return this.items.forEach((s,a)=>{if(a>=e)o.push(s),s.selection&&i++;else if(s.step){let l=s.step.map(n.slice(r)),u=l&&l.getMap();if(r--,u&&n.appendMap(u,r),l){let f=s.selection&&s.selection.map(n.slice(r));f&&i++;let p=new Vo(u.invert(),l,f),m,b=o.length-1;(m=o.length&&o[b].merge(p))?o[b]=m:o.push(p)}}else s.map&&r--},this.items.length,0),new Co(Vn.from(o.reverse()),i)}}Co.empty=new Co(Vn.empty,0);function A3(t,e){let n;return t.forEach((r,o)=>{if(r.selection&&e--==0)return n=o,!1}),t.slice(n)}class Vo{constructor(e,n,r,o){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=o}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new Vo(n.getMap().invert(),n,this.selection)}}}class us{constructor(e,n,r,o,i){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=o,this.prevComposition=i}}const P3=20;function N3(t,e,n,r){let o=n.getMeta(oa),i;if(o)return o.historyState;n.getMeta(B3)&&(t=new us(t.done,t.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(s&&s.getMeta(oa))return s.getMeta(oa).redo?new us(t.done.addTransform(n,void 0,r,df(e)),t.undone,CT(n.mapping.maps),t.prevTime,t.prevComposition):new us(t.done,t.undone.addTransform(n,void 0,r,df(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let a=n.getMeta("composition"),l=t.prevTime==0||!s&&t.prevComposition!=a&&(t.prevTime<(n.time||0)-r.newGroupDelay||!$3(n,t.prevRanges)),u=s?ty(t.prevRanges,n.mapping):CT(n.mapping.maps);return new us(t.done.addTransform(n,l?e.selection.getBookmark():void 0,r,df(e)),Co.empty,u,n.time,a??t.prevComposition)}else return(i=n.getMeta("rebased"))?new us(t.done.rebased(n,i),t.undone.rebased(n,i),ty(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new us(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),ty(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function $3(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,o)=>{for(let i=0;i<e.length;i+=2)r<=e[i+1]&&o>=e[i]&&(n=!0)}),n}function CT(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((r,o,i,s)=>e.push(i,s));return e}function ty(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let o=e.map(t[r],1),i=e.map(t[r+1],-1);o<=i&&n.push(o,i)}return n}function L3(t,e,n){let r=df(e),o=oa.get(e).spec.config,i=(n?t.undone:t.done).popEvent(e,r);if(!i)return null;let s=i.selection.resolve(i.transform.doc),a=(n?t.done:t.undone).addTransform(i.transform,e.selection.getBookmark(),o,r),l=new us(n?a:i.remaining,n?i.remaining:a,null,0,-1);return i.transform.setSelection(s).setMeta(oa,{redo:n,historyState:l})}let ny=!1,TT=null;function df(t){let e=t.plugins;if(TT!=e){ny=!1,TT=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){ny=!0;break}}return ny}const oa=new On("history"),B3=new On("closeHistory");function F3(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new en({key:oa,state:{init(){return new us(Co.empty,Co.empty,null,0,-1)},apply(e,n,r){return N3(n,r,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let r=n.inputType,o=r=="historyUndo"?ET:r=="historyRedo"?OT:null;return!o||!e.editable?!1:(n.preventDefault(),o(e.state,e.dispatch))}}}})}function kT(t,e){return(n,r)=>{let o=oa.getState(n);if(!o||(t?o.undone:o.done).eventCount==0)return!1;if(r){let i=L3(o,n,t);i&&r(e?i.scrollIntoView():i)}return!0}}const ET=kT(!1,!0),OT=kT(!0,!0),MT=cn.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>ET(t,e),redo:()=>({state:t,dispatch:e})=>OT(t,e)}},addProseMirrorPlugins(){return[F3(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),_T=tn.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:t}){return["hr",Ct(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>({chain:t,state:e})=>{if(!c3(e,e.schema.nodes[this.name]))return!1;const{selection:n}=e,{$from:r,$to:o}=n,i=t();return r.parentOffset===0?i.insertContentAt({from:Math.max(r.pos-1,0),to:o.pos},{type:this.name}):iT(n)?i.insertContentAt(o.pos,{type:this.name}):i.insertContent({type:this.name}),i.command(({tr:s,dispatch:a})=>{var l;if(a){const{$to:u}=s.selection,f=u.end();if(u.nodeAfter)u.nodeAfter.isTextblock?s.setSelection(Xe.create(s.doc,u.pos+1)):u.nodeAfter.isBlock?s.setSelection(Je.create(s.doc,u.pos)):s.setSelection(Xe.create(s.doc,u.pos));else{const p=(l=u.parent.type.contentMatch.defaultType)===null||l===void 0?void 0:l.create();p&&(s.insert(f,p),s.setSelection(Xe.create(s.doc,f+1)))}s.scrollIntoView()}return!0}).run()}}},addInputRules(){return[lT({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),R3=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,z3=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,V3=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,H3=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,IT=vr.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",Ct(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[ra({find:R3,type:this.type}),ra({find:V3,type:this.type})]},addPasteRules(){return[cs({find:z3,type:this.type}),cs({find:H3,type:this.type})]}}),DT=tn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",Ct(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),W3="listItem",AT="textStyle",PT=/^(\d+)\.\s$/,NT=tn.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:null,parseHTML:t=>t.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...n}=t;return e===1?["ol",Ct(this.options.HTMLAttributes,n),0]:["ol",Ct(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(W3,this.editor.getAttributes(AT)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=al({find:PT,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=al({find:PT,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(AT)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),$T=tn.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Ct(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),j3=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,U3=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,LT=vr.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",Ct(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[ra({find:j3,type:this.type})]},addPasteRules(){return[cs({find:U3,type:this.type})]}}),BT=tn.create({name:"text",group:"inline"}),FT=cn.create({name:"starterKit",addExtensions(){const t=[];return this.options.bold!==!1&&t.push(uT.configure(this.options.bold)),this.options.blockquote!==!1&&t.push(cT.configure(this.options.blockquote)),this.options.bulletList!==!1&&t.push(pT.configure(this.options.bulletList)),this.options.code!==!1&&t.push(hT.configure(this.options.code)),this.options.codeBlock!==!1&&t.push(mT.configure(this.options.codeBlock)),this.options.document!==!1&&t.push(gT.configure(this.options.document)),this.options.dropcursor!==!1&&t.push(yT.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&t.push(vT.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&t.push(xT.configure(this.options.hardBreak)),this.options.heading!==!1&&t.push(wT.configure(this.options.heading)),this.options.history!==!1&&t.push(MT.configure(this.options.history)),this.options.horizontalRule!==!1&&t.push(_T.configure(this.options.horizontalRule)),this.options.italic!==!1&&t.push(IT.configure(this.options.italic)),this.options.listItem!==!1&&t.push(DT.configure(this.options.listItem)),this.options.orderedList!==!1&&t.push(NT.configure(this.options.orderedList)),this.options.paragraph!==!1&&t.push($T.configure(this.options.paragraph)),this.options.strike!==!1&&t.push(LT.configure(this.options.strike)),this.options.text!==!1&&t.push(BT.configure(this.options.text)),t}});let ry=class{diff(e,n,r={}){let o;typeof r=="function"?(o=r,r={}):"callback"in r&&(o=r.callback);const i=this.castInput(e,r),s=this.castInput(n,r),a=this.removeEmpty(this.tokenize(i,r)),l=this.removeEmpty(this.tokenize(s,r));return this.diffWithOptionsObj(a,l,r,o)}diffWithOptionsObj(e,n,r,o){var i;const s=k=>{if(k=this.postProcess(k,r),o){setTimeout(function(){o(k)},0);return}else return k},a=n.length,l=e.length;let u=1,f=a+l;r.maxEditLength!=null&&(f=Math.min(f,r.maxEditLength));const p=(i=r.timeout)!==null&&i!==void 0?i:1/0,m=Date.now()+p,b=[{oldPos:-1,lastComponent:void 0}];let v=this.extractCommon(b[0],n,e,0,r);if(b[0].oldPos+1>=l&&v+1>=a)return s(this.buildValues(b[0].lastComponent,n,e));let y=-1/0,x=1/0;const S=()=>{for(let k=Math.max(y,-u);k<=Math.min(x,u);k+=2){let T;const C=b[k-1],O=b[k+1];C&&(b[k-1]=void 0);let I=!1;if(O){const L=O.oldPos-k;I=O&&0<=L&&L<a}const N=C&&C.oldPos+1<l;if(!I&&!N){b[k]=void 0;continue}if(!N||I&&C.oldPos<O.oldPos?T=this.addToPath(O,!0,!1,0,r):T=this.addToPath(C,!1,!0,1,r),v=this.extractCommon(T,n,e,k,r),T.oldPos+1>=l&&v+1>=a)return s(this.buildValues(T.lastComponent,n,e))||!0;b[k]=T,T.oldPos+1>=l&&(x=Math.min(x,k-1)),v+1>=a&&(y=Math.max(y,k+1))}u++};if(o)(function k(){setTimeout(function(){if(u>f||Date.now()>m)return o(void 0);S()||k()},0)})();else for(;u<=f&&Date.now()<=m;){const k=S();if(k)return k}}addToPath(e,n,r,o,i){const s=e.lastComponent;return s&&!i.oneChangePerToken&&s.added===n&&s.removed===r?{oldPos:e.oldPos+o,lastComponent:{count:s.count+1,added:n,removed:r,previousComponent:s.previousComponent}}:{oldPos:e.oldPos+o,lastComponent:{count:1,added:n,removed:r,previousComponent:s}}}extractCommon(e,n,r,o,i){const s=n.length,a=r.length;let l=e.oldPos,u=l-o,f=0;for(;u+1<s&&l+1<a&&this.equals(r[l+1],n[u+1],i);)u++,l++,f++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return f&&!i.oneChangePerToken&&(e.lastComponent={count:f,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=l,u}equals(e,n,r){return r.comparator?r.comparator(e,n):e===n||!!r.ignoreCase&&e.toLowerCase()===n.toLowerCase()}removeEmpty(e){const n=[];for(let r=0;r<e.length;r++)e[r]&&n.push(e[r]);return n}castInput(e,n){return e}tokenize(e,n){return Array.from(e)}join(e){return e.join("")}postProcess(e,n){return e}get useLongestToken(){return!1}buildValues(e,n,r){const o=[];let i;for(;e;)o.push(e),i=e.previousComponent,delete e.previousComponent,e=i;o.reverse();const s=o.length;let a=0,l=0,u=0;for(;a<s;a++){const f=o[a];if(f.removed)f.value=this.join(r.slice(u,u+f.count)),u+=f.count;else{if(!f.added&&this.useLongestToken){let p=n.slice(l,l+f.count);p=p.map(function(m,b){const v=r[u+b];return v.length>m.length?v:m}),f.value=this.join(p)}else f.value=this.join(n.slice(l,l+f.count));l+=f.count,f.added||(u+=f.count)}}return o}};function RT(t,e){let n;for(n=0;n<t.length&&n<e.length;n++)if(t[n]!=e[n])return t.slice(0,n);return t.slice(0,n)}function zT(t,e){let n;if(!t||!e||t[t.length-1]!=e[e.length-1])return"";for(n=0;n<t.length&&n<e.length;n++)if(t[t.length-(n+1)]!=e[e.length-(n+1)])return t.slice(-n);return t.slice(-n)}function oy(t,e,n){if(t.slice(0,e.length)!=e)throw Error(`string ${JSON.stringify(t)} doesn't start with prefix ${JSON.stringify(e)}; this is a bug`);return n+t.slice(e.length)}function iy(t,e,n){if(!e)return t+n;if(t.slice(-e.length)!=e)throw Error(`string ${JSON.stringify(t)} doesn't end with suffix ${JSON.stringify(e)}; this is a bug`);return t.slice(0,-e.length)+n}function Dc(t,e){return oy(t,e,"")}function ff(t,e){return iy(t,e,"")}function VT(t,e){return e.slice(0,q3(t,e))}function q3(t,e){let n=0;t.length>e.length&&(n=t.length-e.length);let r=e.length;t.length<e.length&&(r=t.length);const o=Array(r);let i=0;o[0]=0;for(let s=1;s<r;s++){for(e[s]==e[i]?o[s]=o[i]:o[s]=i;i>0&&e[s]!=e[i];)i=o[i];e[s]==e[i]&&i++}i=0;for(let s=n;s<t.length;s++){for(;i>0&&t[s]!=e[i];)i=o[i];t[s]==e[i]&&i++}return i}function Ac(t){let e;for(e=t.length-1;e>=0&&t[e].match(/\s/);e--);return t.substring(e+1)}function ds(t){const e=t.match(/^\s*/);return e?e[0]:""}const HT="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",K3=new RegExp(`[${HT}]+|\\s+|[^${HT}]`,"ug");class Y3 extends ry{equals(e,n,r){return r.ignoreCase&&(e=e.toLowerCase(),n=n.toLowerCase()),e.trim()===n.trim()}tokenize(e,n={}){let r;if(n.intlSegmenter){const s=n.intlSegmenter;if(s.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');r=[];for(const a of Array.from(s.segment(e))){const l=a.segment;r.length&&/\s/.test(r[r.length-1])&&/\s/.test(l)?r[r.length-1]+=l:r.push(l)}}else r=e.match(K3)||[];const o=[];let i=null;return r.forEach(s=>{/\s/.test(s)?i==null?o.push(s):o.push(o.pop()+s):i!=null&&/\s/.test(i)?o[o.length-1]==i?o.push(o.pop()+s):o.push(i+s):o.push(s),i=s}),o}join(e){return e.map((n,r)=>r==0?n:n.replace(/^\s+/,"")).join("")}postProcess(e,n){if(!e||n.oneChangePerToken)return e;let r=null,o=null,i=null;return e.forEach(s=>{s.added?o=s:s.removed?i=s:((o||i)&&WT(r,i,o,s),r=s,o=null,i=null)}),(o||i)&&WT(r,i,o,null),e}}const G3=new Y3;function J3(t,e,n){return G3.diff(t,e,n)}function WT(t,e,n,r){if(e&&n){const o=ds(e.value),i=Ac(e.value),s=ds(n.value),a=Ac(n.value);if(t){const l=RT(o,s);t.value=iy(t.value,s,l),e.value=Dc(e.value,l),n.value=Dc(n.value,l)}if(r){const l=zT(i,a);r.value=oy(r.value,a,l),e.value=ff(e.value,l),n.value=ff(n.value,l)}}else if(n){if(t){const o=ds(n.value);n.value=n.value.substring(o.length)}if(r){const o=ds(r.value);r.value=r.value.substring(o.length)}}else if(t&&r){const o=ds(r.value),i=ds(e.value),s=Ac(e.value),a=RT(o,i);e.value=Dc(e.value,a);const l=zT(Dc(o,a),s);e.value=ff(e.value,l),r.value=oy(r.value,o,l),t.value=iy(t.value,o,o.slice(0,o.length-l.length))}else if(r){const o=ds(r.value),i=Ac(e.value),s=VT(i,o);e.value=ff(e.value,s)}else if(t){const o=Ac(t.value),i=ds(e.value),s=VT(o,i);e.value=Dc(e.value,s)}}function X3(t){return t=="."||t=="!"||t=="?"}class Z3 extends ry{tokenize(e){var n;const r=[];let o=0;for(let i=0;i<e.length;i++){if(i==e.length-1){r.push(e.slice(o));break}if(X3(e[i])&&e[i+1].match(/\s/)){for(r.push(e.slice(o,i+1)),i=o=i+1;!((n=e[i+1])===null||n===void 0)&&n.match(/\s/);)i++;r.push(e.slice(o,i+1)),o=i+1}}return r}}const Q3=new Z3;function e4(t,e,n){return Q3.diff(t,e,n)}class t4 extends ry{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}}const n4=new t4;function r4(t,e,n){return n4.diff(t,e,n)}const o4=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,i4=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,jT=vr.create({name:"highlight",addOptions(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:t=>t.getAttribute("data-color")||t.style.backgroundColor,renderHTML:t=>t.color?{"data-color":t.color,style:`background-color: ${t.color}; color: inherit`}:{}}}:{}},parseHTML(){return[{tag:"mark"}]},renderHTML({HTMLAttributes:t}){return["mark",Ct(this.options.HTMLAttributes,t),0]},addCommands(){return{setHighlight:t=>({commands:e})=>e.setMark(this.name,t),toggleHighlight:t=>({commands:e})=>e.toggleMark(this.name,t),unsetHighlight:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[ra({find:o4,type:this.type})]},addPasteRules(){return[cs({find:i4,type:this.type})]}}),UT=J.createContext(void 0);function Tt(){const t=J.useContext(UT);if(t===void 0)throw new Error("Tiptap editor not found in component context. Be sure to use <RichTextEditorProvider editor={editor} />!");return t}function se(){return se=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},se.apply(null,arguments)}function at(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function sy(t,e){return sy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},sy(t,e)}function ay(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,sy(t,e)}function s4(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}function a4(t,e){t.classList?t.classList.add(e):s4(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function qT(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function l4(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=qT(t.className,e):t.setAttribute("class",qT(t.className&&t.className.baseVal||"",e))}const KT={disabled:!1};var c4=process.env.NODE_ENV!=="production"?c.oneOfType([c.number,c.shape({enter:c.number,exit:c.number,appear:c.number}).isRequired]):null,u4=process.env.NODE_ENV!=="production"?c.oneOfType([c.string,c.shape({enter:c.string,exit:c.string,active:c.string}),c.shape({enter:c.string,enterDone:c.string,enterActive:c.string,exit:c.string,exitDone:c.string,exitActive:c.string})]):null;const pf=J.createContext(null);var YT=function(e){return e.scrollTop},Pc="unmounted",ia="exited",sa="entering",ll="entered",ly="exiting",Pr=(function(t){ay(e,t);function e(r,o){var i;i=t.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=ia,i.appearStatus=sa):l=ll:r.unmountOnExit||r.mountOnEnter?l=Pc:l=ia,i.state={status:l},i.nextCallback=null,i}e.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Pc?{status:ia}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==sa&&s!==ll&&(i=sa):(s===sa||s===ll)&&(i=ly)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===sa){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ns.findDOMNode(this);s&&YT(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ia&&this.setState({status:Pc})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[Ns.findDOMNode(this),a],u=l[0],f=l[1],p=this.getTimeouts(),m=a?p.appear:p.enter;if(!o&&!s||KT.disabled){this.safeSetState({status:ll},function(){i.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:sa},function(){i.props.onEntering(u,f),i.onTransitionEnd(m,function(){i.safeSetState({status:ll},function(){i.props.onEntered(u,f)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Ns.findDOMNode(this);if(!i||KT.disabled){this.safeSetState({status:ia},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:ly},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:ia},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Ns.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],f=l[1];this.props.addEndListener(u,f)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Pc)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=at(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return J.createElement(pf.Provider,{value:null},typeof s=="function"?s(o,a):J.cloneElement(J.Children.only(s),a))},e})(J.Component);Pr.contextType=pf,Pr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:c.shape({current:typeof Element>"u"?c.any:function(t,e,n,r,o,i){var s=t[e];return c.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(t,e,n,r,o,i)}}),children:c.oneOfType([c.func.isRequired,c.element.isRequired]).isRequired,in:c.bool,mountOnEnter:c.bool,unmountOnExit:c.bool,appear:c.bool,enter:c.bool,exit:c.bool,timeout:function(e){var n=c4;e.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.apply(void 0,[e].concat(o))},addEndListener:c.func,onEnter:c.func,onEntering:c.func,onEntered:c.func,onExit:c.func,onExiting:c.func,onExited:c.func}:{};function cl(){}Pr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:cl,onEntering:cl,onEntered:cl,onExit:cl,onExiting:cl,onExited:cl},Pr.UNMOUNTED=Pc,Pr.EXITED=ia,Pr.ENTERING=sa,Pr.ENTERED=ll,Pr.EXITING=ly;var d4=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return a4(e,r)})},cy=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return l4(e,r)})},uy=(function(t){ay(e,t);function e(){for(var r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=t.call.apply(t,[this].concat(i))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(a,l){var u=r.resolveArguments(a,l),f=u[0],p=u[1];r.removeClasses(f,"exit"),r.addClass(f,p?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(a,l)},r.onEntering=function(a,l){var u=r.resolveArguments(a,l),f=u[0],p=u[1],m=p?"appear":"enter";r.addClass(f,m,"active"),r.props.onEntering&&r.props.onEntering(a,l)},r.onEntered=function(a,l){var u=r.resolveArguments(a,l),f=u[0],p=u[1],m=p?"appear":"enter";r.removeClasses(f,m),r.addClass(f,m,"done"),r.props.onEntered&&r.props.onEntered(a,l)},r.onExit=function(a){var l=r.resolveArguments(a),u=l[0];r.removeClasses(u,"appear"),r.removeClasses(u,"enter"),r.addClass(u,"exit","base"),r.props.onExit&&r.props.onExit(a)},r.onExiting=function(a){var l=r.resolveArguments(a),u=l[0];r.addClass(u,"exit","active"),r.props.onExiting&&r.props.onExiting(a)},r.onExited=function(a){var l=r.resolveArguments(a),u=l[0];r.removeClasses(u,"exit"),r.addClass(u,"exit","done"),r.props.onExited&&r.props.onExited(a)},r.resolveArguments=function(a,l){return r.props.nodeRef?[r.props.nodeRef.current,a]:[a,l]},r.getClassNames=function(a){var l=r.props.classNames,u=typeof l=="string",f=u&&l?l+"-":"",p=u?""+f+a:l[a],m=u?p+"-active":l[a+"Active"],b=u?p+"-done":l[a+"Done"];return{baseClassName:p,activeClassName:m,doneClassName:b}},r}var n=e.prototype;return n.addClass=function(o,i,s){var a=this.getClassNames(i)[s+"ClassName"],l=this.getClassNames("enter"),u=l.doneClassName;i==="appear"&&s==="done"&&u&&(a+=" "+u),s==="active"&&o&&YT(o),a&&(this.appliedClasses[i][s]=a,d4(o,a))},n.removeClasses=function(o,i){var s=this.appliedClasses[i],a=s.base,l=s.active,u=s.done;this.appliedClasses[i]={},a&&cy(o,a),l&&cy(o,l),u&&cy(o,u)},n.render=function(){var o=this.props;o.classNames;var i=at(o,["classNames"]);return J.createElement(Pr,se({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e})(J.Component);uy.defaultProps={classNames:""},uy.propTypes=process.env.NODE_ENV!=="production"?se({},Pr.propTypes,{classNames:u4,onEnter:c.func,onEntering:c.func,onEntered:c.func,onExit:c.func,onExiting:c.func,onExited:c.func}):{};function f4(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dy(t,e){var n=function(i){return e&&J.isValidElement(i)?e(i):i},r=Object.create(null);return t&&J.Children.map(t,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function p4(t,e){t=t||{},e=e||{};function n(f){return f in e?e[f]:t[f]}var r=Object.create(null),o=[];for(var i in t)i in e?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var l in e){if(r[l])for(s=0;s<r[l].length;s++){var u=r[l][s];a[r[l][s]]=n(u)}a[l]=n(l)}for(s=0;s<o.length;s++)a[o[s]]=n(o[s]);return a}function aa(t,e,n){return n[e]!=null?n[e]:t.props[e]}function h4(t,e){return dy(t.children,function(n){return J.cloneElement(n,{onExited:e.bind(null,n),in:!0,appear:aa(n,"appear",t),enter:aa(n,"enter",t),exit:aa(n,"exit",t)})})}function m4(t,e,n){var r=dy(t.children),o=p4(e,r);return Object.keys(o).forEach(function(i){var s=o[i];if(J.isValidElement(s)){var a=i in e,l=i in r,u=e[i],f=J.isValidElement(u)&&!u.props.in;l&&(!a||f)?o[i]=J.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:aa(s,"exit",t),enter:aa(s,"enter",t)}):!l&&a&&!f?o[i]=J.cloneElement(s,{in:!1}):l&&a&&J.isValidElement(u)&&(o[i]=J.cloneElement(s,{onExited:n.bind(null,s),in:u.props.in,exit:aa(s,"exit",t),enter:aa(s,"enter",t)}))}}),o}var g4=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},y4={component:"div",childFactory:function(e){return e}},Nc=(function(t){ay(e,t);function e(r,o){var i;i=t.call(this,r,o)||this;var s=i.handleExited.bind(f4(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(o,i){var s=i.children,a=i.handleExited,l=i.firstRender;return{children:l?h4(o,a):m4(o,s,a),firstRender:!1}},n.handleExited=function(o,i){var s=dy(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(a){var l=se({},a.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,i=o.component,s=o.childFactory,a=at(o,["component","childFactory"]),l=this.state.contextValue,u=g4(this.state.children).map(s);return delete a.appear,delete a.enter,delete a.exit,i===null?J.createElement(pf.Provider,{value:l},u):J.createElement(pf.Provider,{value:l},J.createElement(i,a,u))},e})(J.Component);Nc.propTypes=process.env.NODE_ENV!=="production"?{component:c.any,children:c.node,appear:c.bool,enter:c.bool,exit:c.bool,childFactory:c.func}:{},Nc.defaultProps=y4;const GT=t=>t.scrollTop;function ul(t,e){const{timeout:n,easing:r,style:o={}}=t;return{duration:o.transitionDuration??(typeof n=="number"?n:n[e.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[e.mode]:r),delay:o.transitionDelay}}const b4={entering:{opacity:1},entered:{opacity:1}},Ho=A.forwardRef(function(e,n){const r=wo(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:a,easing:l,in:u,onEnter:f,onEntered:p,onEntering:m,onExit:b,onExited:v,onExiting:y,style:x,timeout:S=o,TransitionComponent:k=Pr,...T}=e,C=A.useRef(null),O=Ot(C,Bs(a),n),I=P=>_=>{if(P){const D=C.current;_===void 0?P(D):P(D,_)}},N=I(m),L=I((P,_)=>{GT(P);const D=ul({style:x,timeout:S,easing:l},{mode:"enter"});P.style.webkitTransition=r.transitions.create("opacity",D),P.style.transition=r.transitions.create("opacity",D),f&&f(P,_)}),V=I(p),M=I(y),B=I(P=>{const _=ul({style:x,timeout:S,easing:l},{mode:"exit"});P.style.webkitTransition=r.transitions.create("opacity",_),P.style.transition=r.transitions.create("opacity",_),b&&b(P)}),H=I(v),F=P=>{i&&i(C.current,P)};return g.jsx(k,{appear:s,in:u,nodeRef:C,onEnter:L,onEntered:V,onEntering:N,onExit:B,onExited:H,onExiting:M,addEndListener:F,timeout:S,...T,children:(P,{ownerState:_,...D})=>A.cloneElement(a,{style:{opacity:0,visibility:P==="exited"&&!u?"hidden":void 0,...b4[P],...x,...a.props.style},ref:O,...D})})});process.env.NODE_ENV!=="production"&&(Ho.propTypes={addEndListener:c.func,appear:c.bool,children:$s.isRequired,easing:c.oneOfType([c.shape({enter:c.string,exit:c.string}),c.string]),in:c.bool,onEnter:c.func,onEntered:c.func,onEntering:c.func,onExit:c.func,onExited:c.func,onExiting:c.func,style:c.object,timeout:c.oneOfType([c.number,c.shape({appear:c.number,enter:c.number,exit:c.number})])});function v4(t){return Ke("MuiPaper",t)}je("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const x4=t=>{const{square:e,elevation:n,variant:r,classes:o}=t,i={root:["root",r,!e&&"rounded",r==="elevation"&&`elevation${n}`]};return qe(i,v4,o)},w4=oe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,n.variant==="elevation"&&e[`elevation${n.elevation}`]]}})(bt(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),fs=A.forwardRef(function(e,n){var b;const r=mt({props:e,name:"MuiPaper"}),o=wo(),{className:i,component:s="div",elevation:a=1,square:l=!1,variant:u="elevation",...f}=r,p={...r,component:s,elevation:a,square:l,variant:u},m=x4(p);return process.env.NODE_ENV!=="production"&&o.shadows[a]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
173
- `)),g.jsx(w4,{as:s,ownerState:p,className:ge(m.root,i),ref:n,...f,style:{...u==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[a],...o.vars&&{"--Paper-overlay":(b=o.vars.overlays)==null?void 0:b[a]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${it("#fff",Wm(a))}, ${it("#fff",Wm(a))})`}},...f.style}})});process.env.NODE_ENV!=="production"&&(fs.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,elevation:si(hx,t=>{const{elevation:e,variant:n}=t;return e>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${e}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:c.bool,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOfType([c.oneOf(["elevation","outlined"]),c.string])});var xr="top",Xr="bottom",Zr="right",wr="left",fy="auto",$c=[xr,Xr,Zr,wr],dl="start",Lc="end",S4="clippingParents",JT="viewport",Bc="popper",C4="reference",XT=$c.reduce(function(t,e){return t.concat([e+"-"+dl,e+"-"+Lc])},[]),ZT=[].concat($c,[fy]).reduce(function(t,e){return t.concat([e,e+"-"+dl,e+"-"+Lc])},[]),T4="beforeRead",k4="read",E4="afterRead",O4="beforeMain",M4="main",_4="afterMain",I4="beforeWrite",D4="write",A4="afterWrite",P4=[T4,k4,E4,O4,M4,_4,I4,D4,A4];function Wo(t){return t?(t.nodeName||"").toLowerCase():null}function Nr(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function la(t){var e=Nr(t).Element;return t instanceof e||t instanceof Element}function Qr(t){var e=Nr(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function py(t){if(typeof ShadowRoot>"u")return!1;var e=Nr(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function N4(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!Qr(i)||!Wo(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function $4(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),a=s.reduce(function(l,u){return l[u]="",l},{});!Qr(o)||!Wo(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const QT={name:"applyStyles",enabled:!0,phase:"write",fn:N4,effect:$4,requires:["computeStyles"]};function jo(t){return t.split("-")[0]}var ca=Math.max,hf=Math.min,fl=Math.round;function hy(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function ek(){return!/^((?!chrome|android).)*safari/i.test(hy())}function pl(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&Qr(t)&&(o=t.offsetWidth>0&&fl(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&fl(r.height)/t.offsetHeight||1);var s=la(t)?Nr(t):window,a=s.visualViewport,l=!ek()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,f=(r.top+(l&&a?a.offsetTop:0))/i,p=r.width/o,m=r.height/i;return{width:p,height:m,top:f,right:u+p,bottom:f+m,left:u,x:u,y:f}}function my(t){var e=pl(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function tk(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&py(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function vi(t){return Nr(t).getComputedStyle(t)}function L4(t){return["table","td","th"].indexOf(Wo(t))>=0}function ps(t){return((la(t)?t.ownerDocument:t.document)||window.document).documentElement}function mf(t){return Wo(t)==="html"?t:t.assignedSlot||t.parentNode||(py(t)?t.host:null)||ps(t)}function nk(t){return!Qr(t)||vi(t).position==="fixed"?null:t.offsetParent}function B4(t){var e=/firefox/i.test(hy()),n=/Trident/i.test(hy());if(n&&Qr(t)){var r=vi(t);if(r.position==="fixed")return null}var o=mf(t);for(py(o)&&(o=o.host);Qr(o)&&["html","body"].indexOf(Wo(o))<0;){var i=vi(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Fc(t){for(var e=Nr(t),n=nk(t);n&&L4(n)&&vi(n).position==="static";)n=nk(n);return n&&(Wo(n)==="html"||Wo(n)==="body"&&vi(n).position==="static")?e:n||B4(t)||e}function gy(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Rc(t,e,n){return ca(t,hf(e,n))}function F4(t,e,n){var r=Rc(t,e,n);return r>n?n:r}function rk(){return{top:0,right:0,bottom:0,left:0}}function ok(t){return Object.assign({},rk(),t)}function ik(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var R4=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,ok(typeof e!="number"?e:ik(e,$c))};function z4(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=jo(n.placement),l=gy(a),u=[wr,Zr].indexOf(a)>=0,f=u?"height":"width";if(!(!i||!s)){var p=R4(o.padding,n),m=my(i),b=l==="y"?xr:wr,v=l==="y"?Xr:Zr,y=n.rects.reference[f]+n.rects.reference[l]-s[l]-n.rects.popper[f],x=s[l]-n.rects.reference[l],S=Fc(i),k=S?l==="y"?S.clientHeight||0:S.clientWidth||0:0,T=y/2-x/2,C=p[b],O=k-m[f]-p[v],I=k/2-m[f]/2+T,N=Rc(C,I,O),L=l;n.modifiersData[r]=(e={},e[L]=N,e.centerOffset=N-I,e)}}function V4(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||tk(e.elements.popper,o)&&(e.elements.arrow=o))}const H4={name:"arrow",enabled:!0,phase:"main",fn:z4,effect:V4,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function hl(t){return t.split("-")[1]}var W4={top:"auto",right:"auto",bottom:"auto",left:"auto"};function j4(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:fl(n*o)/o||0,y:fl(r*o)/o||0}}function sk(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,u=t.adaptive,f=t.roundOffsets,p=t.isFixed,m=s.x,b=m===void 0?0:m,v=s.y,y=v===void 0?0:v,x=typeof f=="function"?f({x:b,y}):{x:b,y};b=x.x,y=x.y;var S=s.hasOwnProperty("x"),k=s.hasOwnProperty("y"),T=wr,C=xr,O=window;if(u){var I=Fc(n),N="clientHeight",L="clientWidth";if(I===Nr(n)&&(I=ps(n),vi(I).position!=="static"&&a==="absolute"&&(N="scrollHeight",L="scrollWidth")),I=I,o===xr||(o===wr||o===Zr)&&i===Lc){C=Xr;var V=p&&I===O&&O.visualViewport?O.visualViewport.height:I[N];y-=V-r.height,y*=l?1:-1}if(o===wr||(o===xr||o===Xr)&&i===Lc){T=Zr;var M=p&&I===O&&O.visualViewport?O.visualViewport.width:I[L];b-=M-r.width,b*=l?1:-1}}var B=Object.assign({position:a},u&&W4),H=f===!0?j4({x:b,y},Nr(n)):{x:b,y};if(b=H.x,y=H.y,l){var F;return Object.assign({},B,(F={},F[C]=k?"0":"",F[T]=S?"0":"",F.transform=(O.devicePixelRatio||1)<=1?"translate("+b+"px, "+y+"px)":"translate3d("+b+"px, "+y+"px, 0)",F))}return Object.assign({},B,(e={},e[C]=k?y+"px":"",e[T]=S?b+"px":"",e.transform="",e))}function U4(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:jo(e.placement),variation:hl(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,sk(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,sk(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const q4={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:U4,data:{}};var gf={passive:!0};function K4(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=Nr(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(f){f.addEventListener("scroll",n.update,gf)}),a&&l.addEventListener("resize",n.update,gf),function(){i&&u.forEach(function(f){f.removeEventListener("scroll",n.update,gf)}),a&&l.removeEventListener("resize",n.update,gf)}}const Y4={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:K4,data:{}};var G4={left:"right",right:"left",bottom:"top",top:"bottom"};function yf(t){return t.replace(/left|right|bottom|top/g,function(e){return G4[e]})}var J4={start:"end",end:"start"};function ak(t){return t.replace(/start|end/g,function(e){return J4[e]})}function yy(t){var e=Nr(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function by(t){return pl(ps(t)).left+yy(t).scrollLeft}function X4(t,e){var n=Nr(t),r=ps(t),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=ek();(u||!u&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+by(t),y:l}}function Z4(t){var e,n=ps(t),r=yy(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=ca(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=ca(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+by(t),l=-r.scrollTop;return vi(o||n).direction==="rtl"&&(a+=ca(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function vy(t){var e=vi(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function lk(t){return["html","body","#document"].indexOf(Wo(t))>=0?t.ownerDocument.body:Qr(t)&&vy(t)?t:lk(mf(t))}function zc(t,e){var n;e===void 0&&(e=[]);var r=lk(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=Nr(r),s=o?[i].concat(i.visualViewport||[],vy(r)?r:[]):r,a=e.concat(s);return o?a:a.concat(zc(mf(s)))}function xy(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Q4(t,e){var n=pl(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function ck(t,e,n){return e===JT?xy(X4(t,n)):la(e)?Q4(e,n):xy(Z4(ps(t)))}function ez(t){var e=zc(mf(t)),n=["absolute","fixed"].indexOf(vi(t).position)>=0,r=n&&Qr(t)?Fc(t):t;return la(r)?e.filter(function(o){return la(o)&&tk(o,r)&&Wo(o)!=="body"}):[]}function tz(t,e,n,r){var o=e==="clippingParents"?ez(t):[].concat(e),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,u){var f=ck(t,u,r);return l.top=ca(f.top,l.top),l.right=hf(f.right,l.right),l.bottom=hf(f.bottom,l.bottom),l.left=ca(f.left,l.left),l},ck(t,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function uk(t){var e=t.reference,n=t.element,r=t.placement,o=r?jo(r):null,i=r?hl(r):null,s=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(o){case xr:l={x:s,y:e.y-n.height};break;case Xr:l={x:s,y:e.y+e.height};break;case Zr:l={x:e.x+e.width,y:a};break;case wr:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var u=o?gy(o):null;if(u!=null){var f=u==="y"?"height":"width";switch(i){case dl:l[u]=l[u]-(e[f]/2-n[f]/2);break;case Lc:l[u]=l[u]+(e[f]/2-n[f]/2);break}}return l}function Vc(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.strategy,s=i===void 0?t.strategy:i,a=n.boundary,l=a===void 0?S4:a,u=n.rootBoundary,f=u===void 0?JT:u,p=n.elementContext,m=p===void 0?Bc:p,b=n.altBoundary,v=b===void 0?!1:b,y=n.padding,x=y===void 0?0:y,S=ok(typeof x!="number"?x:ik(x,$c)),k=m===Bc?C4:Bc,T=t.rects.popper,C=t.elements[v?k:m],O=tz(la(C)?C:C.contextElement||ps(t.elements.popper),l,f,s),I=pl(t.elements.reference),N=uk({reference:I,element:T,placement:o}),L=xy(Object.assign({},T,N)),V=m===Bc?L:I,M={top:O.top-V.top+S.top,bottom:V.bottom-O.bottom+S.bottom,left:O.left-V.left+S.left,right:V.right-O.right+S.right},B=t.modifiersData.offset;if(m===Bc&&B){var H=B[o];Object.keys(M).forEach(function(F){var P=[Zr,Xr].indexOf(F)>=0?1:-1,_=[xr,Xr].indexOf(F)>=0?"y":"x";M[F]+=H[_]*P})}return M}function nz(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?ZT:l,f=hl(r),p=f?a?XT:XT.filter(function(v){return hl(v)===f}):$c,m=p.filter(function(v){return u.indexOf(v)>=0});m.length===0&&(m=p);var b=m.reduce(function(v,y){return v[y]=Vc(t,{placement:y,boundary:o,rootBoundary:i,padding:s})[jo(y)],v},{});return Object.keys(b).sort(function(v,y){return b[v]-b[y]})}function rz(t){if(jo(t)===fy)return[];var e=yf(t);return[ak(t),e,ak(e)]}function oz(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,f=n.boundary,p=n.rootBoundary,m=n.altBoundary,b=n.flipVariations,v=b===void 0?!0:b,y=n.allowedAutoPlacements,x=e.options.placement,S=jo(x),k=S===x,T=l||(k||!v?[yf(x)]:rz(x)),C=[x].concat(T).reduce(function(pe,Z){return pe.concat(jo(Z)===fy?nz(e,{placement:Z,boundary:f,rootBoundary:p,padding:u,flipVariations:v,allowedAutoPlacements:y}):Z)},[]),O=e.rects.reference,I=e.rects.popper,N=new Map,L=!0,V=C[0],M=0;M<C.length;M++){var B=C[M],H=jo(B),F=hl(B)===dl,P=[xr,Xr].indexOf(H)>=0,_=P?"width":"height",D=Vc(e,{placement:B,boundary:f,rootBoundary:p,altBoundary:m,padding:u}),R=P?F?Zr:wr:F?Xr:xr;O[_]>I[_]&&(R=yf(R));var j=yf(R),K=[];if(i&&K.push(D[H]<=0),a&&K.push(D[R]<=0,D[j]<=0),K.every(function(pe){return pe})){V=B,L=!1;break}N.set(B,K)}if(L)for(var U=v?3:1,Y=function(Z){var te=C.find(function(ce){var ne=N.get(ce);if(ne)return ne.slice(0,Z).every(function(re){return re})});if(te)return V=te,"break"},fe=U;fe>0;fe--){var ue=Y(fe);if(ue==="break")break}e.placement!==V&&(e.modifiersData[r]._skip=!0,e.placement=V,e.reset=!0)}}const iz={name:"flip",enabled:!0,phase:"main",fn:oz,requiresIfExists:["offset"],data:{_skip:!1}};function dk(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function fk(t){return[xr,Zr,Xr,wr].some(function(e){return t[e]>=0})}function sz(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=Vc(e,{elementContext:"reference"}),a=Vc(e,{altBoundary:!0}),l=dk(s,r),u=dk(a,o,i),f=fk(l),p=fk(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}const az={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sz};function lz(t,e,n){var r=jo(t),o=[wr,xr].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[wr,Zr].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function cz(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,s=ZT.reduce(function(f,p){return f[p]=lz(p,e.rects,i),f},{}),a=s[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=s}const uz={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:cz};function dz(t){var e=t.state,n=t.name;e.modifiersData[n]=uk({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const fz={name:"popperOffsets",enabled:!0,phase:"read",fn:dz,data:{}};function pz(t){return t==="x"?"y":"x"}function hz(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,f=n.altBoundary,p=n.padding,m=n.tether,b=m===void 0?!0:m,v=n.tetherOffset,y=v===void 0?0:v,x=Vc(e,{boundary:l,rootBoundary:u,padding:p,altBoundary:f}),S=jo(e.placement),k=hl(e.placement),T=!k,C=gy(S),O=pz(C),I=e.modifiersData.popperOffsets,N=e.rects.reference,L=e.rects.popper,V=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,M=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),B=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,H={x:0,y:0};if(I){if(i){var F,P=C==="y"?xr:wr,_=C==="y"?Xr:Zr,D=C==="y"?"height":"width",R=I[C],j=R+x[P],K=R-x[_],U=b?-L[D]/2:0,Y=k===dl?N[D]:L[D],fe=k===dl?-L[D]:-N[D],ue=e.elements.arrow,pe=b&&ue?my(ue):{width:0,height:0},Z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:rk(),te=Z[P],ce=Z[_],ne=Rc(0,N[D],pe[D]),re=T?N[D]/2-U-ne-te-M.mainAxis:Y-ne-te-M.mainAxis,le=T?-N[D]/2+U+ne+ce+M.mainAxis:fe+ne+ce+M.mainAxis,ye=e.elements.arrow&&Fc(e.elements.arrow),X=ye?C==="y"?ye.clientTop||0:ye.clientLeft||0:0,ee=(F=B==null?void 0:B[C])!=null?F:0,ie=R+re-ee-X,we=R+le-ee,Ce=Rc(b?hf(j,ie):j,R,b?ca(K,we):K);I[C]=Ce,H[C]=Ce-R}if(a){var Ae,Me=C==="x"?xr:wr,Ie=C==="x"?Xr:Zr,me=I[O],Be=O==="y"?"height":"width",De=me+x[Me],yt=me-x[Ie],ct=[xr,wr].indexOf(S)!==-1,wn=(Ae=B==null?void 0:B[O])!=null?Ae:0,Pn=ct?De:me-N[Be]-L[Be]-wn+M.altAxis,on=ct?me+N[Be]+L[Be]-wn-M.altAxis:yt,gn=b&&ct?F4(Pn,me,on):Rc(b?Pn:De,me,b?on:yt);I[O]=gn,H[O]=gn-me}e.modifiersData[r]=H}}const mz={name:"preventOverflow",enabled:!0,phase:"main",fn:hz,requiresIfExists:["offset"]};function gz(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function yz(t){return t===Nr(t)||!Qr(t)?yy(t):gz(t)}function bz(t){var e=t.getBoundingClientRect(),n=fl(e.width)/t.offsetWidth||1,r=fl(e.height)/t.offsetHeight||1;return n!==1||r!==1}function vz(t,e,n){n===void 0&&(n=!1);var r=Qr(e),o=Qr(e)&&bz(e),i=ps(e),s=pl(t,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Wo(e)!=="body"||vy(i))&&(a=yz(e)),Qr(e)?(l=pl(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=by(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function xz(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&o(l)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||o(i)}),r}function wz(t){var e=xz(t);return P4.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function Sz(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Cz(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var pk={placement:"bottom",modifiers:[],strategy:"absolute"};function hk(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Tz(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,i=o===void 0?pk:o;return function(a,l,u){u===void 0&&(u=i);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},pk,i),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},p=[],m=!1,b={state:f,setOptions:function(S){var k=typeof S=="function"?S(f.options):S;y(),f.options=Object.assign({},i,f.options,k),f.scrollParents={reference:la(a)?zc(a):a.contextElement?zc(a.contextElement):[],popper:zc(l)};var T=wz(Cz([].concat(r,f.options.modifiers)));return f.orderedModifiers=T.filter(function(C){return C.enabled}),v(),b.update()},forceUpdate:function(){if(!m){var S=f.elements,k=S.reference,T=S.popper;if(hk(k,T)){f.rects={reference:vz(k,Fc(T),f.options.strategy==="fixed"),popper:my(T)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(M){return f.modifiersData[M.name]=Object.assign({},M.data)});for(var C=0;C<f.orderedModifiers.length;C++){if(f.reset===!0){f.reset=!1,C=-1;continue}var O=f.orderedModifiers[C],I=O.fn,N=O.options,L=N===void 0?{}:N,V=O.name;typeof I=="function"&&(f=I({state:f,options:L,name:V,instance:b})||f)}}}},update:Sz(function(){return new Promise(function(x){b.forceUpdate(),x(f)})}),destroy:function(){y(),m=!0}};if(!hk(a,l))return b;b.setOptions(u).then(function(x){!m&&u.onFirstUpdate&&u.onFirstUpdate(x)});function v(){f.orderedModifiers.forEach(function(x){var S=x.name,k=x.options,T=k===void 0?{}:k,C=x.effect;if(typeof C=="function"){var O=C({state:f,name:S,instance:b,options:T}),I=function(){};p.push(O||I)}})}function y(){p.forEach(function(x){return x()}),p=[]}return b}}var kz=[Y4,fz,q4,QT,uz,iz,mz,H4,az],mk=Tz({defaultModifiers:kz});function Ez(t){return typeof t=="function"?t():t}const Hc=A.forwardRef(function(e,n){const{children:r,container:o,disablePortal:i=!1}=e,[s,a]=A.useState(null),l=Ot(A.isValidElement(r)?Bs(r):null,n);if(In(()=>{i||a(Ez(o)||document.body)},[o,i]),In(()=>{if(s&&!i)return sx(n,s),()=>{sx(n,null)}},[n,s,i]),i){if(A.isValidElement(r)){const u={ref:l};return A.cloneElement(r,u)}return r}return s&&kP.createPortal(r,s)});process.env.NODE_ENV!=="production"&&(Hc.propTypes={children:c.node,container:c.oneOfType([li,c.func]),disablePortal:c.bool}),process.env.NODE_ENV!=="production"&&(Hc.propTypes=Mm(Hc.propTypes));function Oz(t){return Ke("MuiPopper",t)}je("MuiPopper",["root"]);function Mz(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function bf(t){return typeof t=="function"?t():t}function vf(t){return t.nodeType!==void 0}function _z(t){return!vf(t)}const Iz=t=>{const{classes:e}=t;return qe({root:["root"]},Oz,e)},Dz={},Az=A.forwardRef(function(e,n){const{anchorEl:r,children:o,direction:i,disablePortal:s,modifiers:a,open:l,placement:u,popperOptions:f,popperRef:p,slotProps:m={},slots:b={},TransitionProps:v,ownerState:y,...x}=e,S=A.useRef(null),k=Ot(S,n),T=A.useRef(null),C=Ot(T,p),O=A.useRef(C);In(()=>{O.current=C},[C]),A.useImperativeHandle(p,()=>T.current,[]);const I=Mz(u,i),[N,L]=A.useState(I),[V,M]=A.useState(bf(r));A.useEffect(()=>{T.current&&T.current.forceUpdate()}),A.useEffect(()=>{r&&M(bf(r))},[r]),In(()=>{if(!V||!l)return;const _=j=>{L(j.placement)};if(process.env.NODE_ENV!=="production"&&V&&vf(V)&&V.nodeType===1){const j=V.getBoundingClientRect();process.env.NODE_ENV!=="test"&&j.top===0&&j.left===0&&j.right===0&&j.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
173
+ `)),g.jsx(w4,{as:s,ownerState:p,className:ge(m.root,i),ref:n,...f,style:{...u==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[a],...o.vars&&{"--Paper-overlay":(b=o.vars.overlays)==null?void 0:b[a]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${it("#fff",Wm(a))}, ${it("#fff",Wm(a))})`}},...f.style}})});process.env.NODE_ENV!=="production"&&(fs.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,elevation:si(hx,t=>{const{elevation:e,variant:n}=t;return e>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${e}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:c.bool,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOfType([c.oneOf(["elevation","outlined"]),c.string])});var xr="top",Xr="bottom",Zr="right",wr="left",fy="auto",$c=[xr,Xr,Zr,wr],dl="start",Lc="end",S4="clippingParents",JT="viewport",Bc="popper",C4="reference",XT=$c.reduce(function(t,e){return t.concat([e+"-"+dl,e+"-"+Lc])},[]),ZT=[].concat($c,[fy]).reduce(function(t,e){return t.concat([e,e+"-"+dl,e+"-"+Lc])},[]),T4="beforeRead",k4="read",E4="afterRead",O4="beforeMain",M4="main",_4="afterMain",I4="beforeWrite",D4="write",A4="afterWrite",P4=[T4,k4,E4,O4,M4,_4,I4,D4,A4];function Wo(t){return t?(t.nodeName||"").toLowerCase():null}function Nr(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function la(t){var e=Nr(t).Element;return t instanceof e||t instanceof Element}function Qr(t){var e=Nr(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function py(t){if(typeof ShadowRoot>"u")return!1;var e=Nr(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function N4(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!Qr(i)||!Wo(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function $4(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),a=s.reduce(function(l,u){return l[u]="",l},{});!Qr(o)||!Wo(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const QT={name:"applyStyles",enabled:!0,phase:"write",fn:N4,effect:$4,requires:["computeStyles"]};function jo(t){return t.split("-")[0]}var ca=Math.max,hf=Math.min,fl=Math.round;function hy(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function ek(){return!/^((?!chrome|android).)*safari/i.test(hy())}function pl(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&Qr(t)&&(o=t.offsetWidth>0&&fl(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&fl(r.height)/t.offsetHeight||1);var s=la(t)?Nr(t):window,a=s.visualViewport,l=!ek()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/o,f=(r.top+(l&&a?a.offsetTop:0))/i,p=r.width/o,m=r.height/i;return{width:p,height:m,top:f,right:u+p,bottom:f+m,left:u,x:u,y:f}}function my(t){var e=pl(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function tk(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&py(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function vi(t){return Nr(t).getComputedStyle(t)}function L4(t){return["table","td","th"].indexOf(Wo(t))>=0}function ps(t){return((la(t)?t.ownerDocument:t.document)||window.document).documentElement}function mf(t){return Wo(t)==="html"?t:t.assignedSlot||t.parentNode||(py(t)?t.host:null)||ps(t)}function nk(t){return!Qr(t)||vi(t).position==="fixed"?null:t.offsetParent}function B4(t){var e=/firefox/i.test(hy()),n=/Trident/i.test(hy());if(n&&Qr(t)){var r=vi(t);if(r.position==="fixed")return null}var o=mf(t);for(py(o)&&(o=o.host);Qr(o)&&["html","body"].indexOf(Wo(o))<0;){var i=vi(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Fc(t){for(var e=Nr(t),n=nk(t);n&&L4(n)&&vi(n).position==="static";)n=nk(n);return n&&(Wo(n)==="html"||Wo(n)==="body"&&vi(n).position==="static")?e:n||B4(t)||e}function gy(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Rc(t,e,n){return ca(t,hf(e,n))}function F4(t,e,n){var r=Rc(t,e,n);return r>n?n:r}function rk(){return{top:0,right:0,bottom:0,left:0}}function ok(t){return Object.assign({},rk(),t)}function ik(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var R4=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,ok(typeof e!="number"?e:ik(e,$c))};function z4(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=jo(n.placement),l=gy(a),u=[wr,Zr].indexOf(a)>=0,f=u?"height":"width";if(!(!i||!s)){var p=R4(o.padding,n),m=my(i),b=l==="y"?xr:wr,v=l==="y"?Xr:Zr,y=n.rects.reference[f]+n.rects.reference[l]-s[l]-n.rects.popper[f],x=s[l]-n.rects.reference[l],S=Fc(i),k=S?l==="y"?S.clientHeight||0:S.clientWidth||0:0,T=y/2-x/2,C=p[b],O=k-m[f]-p[v],I=k/2-m[f]/2+T,N=Rc(C,I,O),L=l;n.modifiersData[r]=(e={},e[L]=N,e.centerOffset=N-I,e)}}function V4(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||tk(e.elements.popper,o)&&(e.elements.arrow=o))}const H4={name:"arrow",enabled:!0,phase:"main",fn:z4,effect:V4,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function hl(t){return t.split("-")[1]}var W4={top:"auto",right:"auto",bottom:"auto",left:"auto"};function j4(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:fl(n*o)/o||0,y:fl(r*o)/o||0}}function sk(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,u=t.adaptive,f=t.roundOffsets,p=t.isFixed,m=s.x,b=m===void 0?0:m,v=s.y,y=v===void 0?0:v,x=typeof f=="function"?f({x:b,y}):{x:b,y};b=x.x,y=x.y;var S=s.hasOwnProperty("x"),k=s.hasOwnProperty("y"),T=wr,C=xr,O=window;if(u){var I=Fc(n),N="clientHeight",L="clientWidth";if(I===Nr(n)&&(I=ps(n),vi(I).position!=="static"&&a==="absolute"&&(N="scrollHeight",L="scrollWidth")),I=I,o===xr||(o===wr||o===Zr)&&i===Lc){C=Xr;var V=p&&I===O&&O.visualViewport?O.visualViewport.height:I[N];y-=V-r.height,y*=l?1:-1}if(o===wr||(o===xr||o===Xr)&&i===Lc){T=Zr;var M=p&&I===O&&O.visualViewport?O.visualViewport.width:I[L];b-=M-r.width,b*=l?1:-1}}var B=Object.assign({position:a},u&&W4),H=f===!0?j4({x:b,y},Nr(n)):{x:b,y};if(b=H.x,y=H.y,l){var F;return Object.assign({},B,(F={},F[C]=k?"0":"",F[T]=S?"0":"",F.transform=(O.devicePixelRatio||1)<=1?"translate("+b+"px, "+y+"px)":"translate3d("+b+"px, "+y+"px, 0)",F))}return Object.assign({},B,(e={},e[C]=k?y+"px":"",e[T]=S?b+"px":"",e.transform="",e))}function U4(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:jo(e.placement),variation:hl(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,sk(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,sk(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const q4={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:U4,data:{}};var gf={passive:!0};function K4(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,a=s===void 0?!0:s,l=Nr(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(f){f.addEventListener("scroll",n.update,gf)}),a&&l.addEventListener("resize",n.update,gf),function(){i&&u.forEach(function(f){f.removeEventListener("scroll",n.update,gf)}),a&&l.removeEventListener("resize",n.update,gf)}}const Y4={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:K4,data:{}};var G4={left:"right",right:"left",bottom:"top",top:"bottom"};function yf(t){return t.replace(/left|right|bottom|top/g,function(e){return G4[e]})}var J4={start:"end",end:"start"};function ak(t){return t.replace(/start|end/g,function(e){return J4[e]})}function yy(t){var e=Nr(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function by(t){return pl(ps(t)).left+yy(t).scrollLeft}function X4(t,e){var n=Nr(t),r=ps(t),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=ek();(u||!u&&e==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+by(t),y:l}}function Z4(t){var e,n=ps(t),r=yy(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=ca(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=ca(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+by(t),l=-r.scrollTop;return vi(o||n).direction==="rtl"&&(a+=ca(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function vy(t){var e=vi(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function lk(t){return["html","body","#document"].indexOf(Wo(t))>=0?t.ownerDocument.body:Qr(t)&&vy(t)?t:lk(mf(t))}function zc(t,e){var n;e===void 0&&(e=[]);var r=lk(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=Nr(r),s=o?[i].concat(i.visualViewport||[],vy(r)?r:[]):r,a=e.concat(s);return o?a:a.concat(zc(mf(s)))}function xy(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Q4(t,e){var n=pl(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function ck(t,e,n){return e===JT?xy(X4(t,n)):la(e)?Q4(e,n):xy(Z4(ps(t)))}function ez(t){var e=zc(mf(t)),n=["absolute","fixed"].indexOf(vi(t).position)>=0,r=n&&Qr(t)?Fc(t):t;return la(r)?e.filter(function(o){return la(o)&&tk(o,r)&&Wo(o)!=="body"}):[]}function tz(t,e,n,r){var o=e==="clippingParents"?ez(t):[].concat(e),i=[].concat(o,[n]),s=i[0],a=i.reduce(function(l,u){var f=ck(t,u,r);return l.top=ca(f.top,l.top),l.right=hf(f.right,l.right),l.bottom=hf(f.bottom,l.bottom),l.left=ca(f.left,l.left),l},ck(t,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function uk(t){var e=t.reference,n=t.element,r=t.placement,o=r?jo(r):null,i=r?hl(r):null,s=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(o){case xr:l={x:s,y:e.y-n.height};break;case Xr:l={x:s,y:e.y+e.height};break;case Zr:l={x:e.x+e.width,y:a};break;case wr:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var u=o?gy(o):null;if(u!=null){var f=u==="y"?"height":"width";switch(i){case dl:l[u]=l[u]-(e[f]/2-n[f]/2);break;case Lc:l[u]=l[u]+(e[f]/2-n[f]/2);break}}return l}function Vc(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.strategy,s=i===void 0?t.strategy:i,a=n.boundary,l=a===void 0?S4:a,u=n.rootBoundary,f=u===void 0?JT:u,p=n.elementContext,m=p===void 0?Bc:p,b=n.altBoundary,v=b===void 0?!1:b,y=n.padding,x=y===void 0?0:y,S=ok(typeof x!="number"?x:ik(x,$c)),k=m===Bc?C4:Bc,T=t.rects.popper,C=t.elements[v?k:m],O=tz(la(C)?C:C.contextElement||ps(t.elements.popper),l,f,s),I=pl(t.elements.reference),N=uk({reference:I,element:T,placement:o}),L=xy(Object.assign({},T,N)),V=m===Bc?L:I,M={top:O.top-V.top+S.top,bottom:V.bottom-O.bottom+S.bottom,left:O.left-V.left+S.left,right:V.right-O.right+S.right},B=t.modifiersData.offset;if(m===Bc&&B){var H=B[o];Object.keys(M).forEach(function(F){var P=[Zr,Xr].indexOf(F)>=0?1:-1,_=[xr,Xr].indexOf(F)>=0?"y":"x";M[F]+=H[_]*P})}return M}function nz(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?ZT:l,f=hl(r),p=f?a?XT:XT.filter(function(v){return hl(v)===f}):$c,m=p.filter(function(v){return u.indexOf(v)>=0});m.length===0&&(m=p);var b=m.reduce(function(v,y){return v[y]=Vc(t,{placement:y,boundary:o,rootBoundary:i,padding:s})[jo(y)],v},{});return Object.keys(b).sort(function(v,y){return b[v]-b[y]})}function rz(t){if(jo(t)===fy)return[];var e=yf(t);return[ak(t),e,ak(e)]}function oz(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,f=n.boundary,p=n.rootBoundary,m=n.altBoundary,b=n.flipVariations,v=b===void 0?!0:b,y=n.allowedAutoPlacements,x=e.options.placement,S=jo(x),k=S===x,T=l||(k||!v?[yf(x)]:rz(x)),C=[x].concat(T).reduce(function(pe,Z){return pe.concat(jo(Z)===fy?nz(e,{placement:Z,boundary:f,rootBoundary:p,padding:u,flipVariations:v,allowedAutoPlacements:y}):Z)},[]),O=e.rects.reference,I=e.rects.popper,N=new Map,L=!0,V=C[0],M=0;M<C.length;M++){var B=C[M],H=jo(B),F=hl(B)===dl,P=[xr,Xr].indexOf(H)>=0,_=P?"width":"height",D=Vc(e,{placement:B,boundary:f,rootBoundary:p,altBoundary:m,padding:u}),R=P?F?Zr:wr:F?Xr:xr;O[_]>I[_]&&(R=yf(R));var j=yf(R),K=[];if(i&&K.push(D[H]<=0),a&&K.push(D[R]<=0,D[j]<=0),K.every(function(pe){return pe})){V=B,L=!1;break}N.set(B,K)}if(L)for(var U=v?3:1,Y=function(Z){var te=C.find(function(ce){var ne=N.get(ce);if(ne)return ne.slice(0,Z).every(function(re){return re})});if(te)return V=te,"break"},fe=U;fe>0;fe--){var ue=Y(fe);if(ue==="break")break}e.placement!==V&&(e.modifiersData[r]._skip=!0,e.placement=V,e.reset=!0)}}const iz={name:"flip",enabled:!0,phase:"main",fn:oz,requiresIfExists:["offset"],data:{_skip:!1}};function dk(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function fk(t){return[xr,Zr,Xr,wr].some(function(e){return t[e]>=0})}function sz(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=Vc(e,{elementContext:"reference"}),a=Vc(e,{altBoundary:!0}),l=dk(s,r),u=dk(a,o,i),f=fk(l),p=fk(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}const az={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sz};function lz(t,e,n){var r=jo(t),o=[wr,xr].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[wr,Zr].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function cz(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,s=ZT.reduce(function(f,p){return f[p]=lz(p,e.rects,i),f},{}),a=s[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=s}const uz={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:cz};function dz(t){var e=t.state,n=t.name;e.modifiersData[n]=uk({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const fz={name:"popperOffsets",enabled:!0,phase:"read",fn:dz,data:{}};function pz(t){return t==="x"?"y":"x"}function hz(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,f=n.altBoundary,p=n.padding,m=n.tether,b=m===void 0?!0:m,v=n.tetherOffset,y=v===void 0?0:v,x=Vc(e,{boundary:l,rootBoundary:u,padding:p,altBoundary:f}),S=jo(e.placement),k=hl(e.placement),T=!k,C=gy(S),O=pz(C),I=e.modifiersData.popperOffsets,N=e.rects.reference,L=e.rects.popper,V=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,M=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),B=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,H={x:0,y:0};if(I){if(i){var F,P=C==="y"?xr:wr,_=C==="y"?Xr:Zr,D=C==="y"?"height":"width",R=I[C],j=R+x[P],K=R-x[_],U=b?-L[D]/2:0,Y=k===dl?N[D]:L[D],fe=k===dl?-L[D]:-N[D],ue=e.elements.arrow,pe=b&&ue?my(ue):{width:0,height:0},Z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:rk(),te=Z[P],ce=Z[_],ne=Rc(0,N[D],pe[D]),re=T?N[D]/2-U-ne-te-M.mainAxis:Y-ne-te-M.mainAxis,le=T?-N[D]/2+U+ne+ce+M.mainAxis:fe+ne+ce+M.mainAxis,ye=e.elements.arrow&&Fc(e.elements.arrow),X=ye?C==="y"?ye.clientTop||0:ye.clientLeft||0:0,ee=(F=B==null?void 0:B[C])!=null?F:0,ie=R+re-ee-X,we=R+le-ee,Ce=Rc(b?hf(j,ie):j,R,b?ca(K,we):K);I[C]=Ce,H[C]=Ce-R}if(a){var Pe,Me=C==="x"?xr:wr,Ie=C==="x"?Xr:Zr,me=I[O],Be=O==="y"?"height":"width",De=me+x[Me],yt=me-x[Ie],ct=[xr,wr].indexOf(S)!==-1,wn=(Pe=B==null?void 0:B[O])!=null?Pe:0,Pn=ct?De:me-N[Be]-L[Be]-wn+M.altAxis,on=ct?me+N[Be]+L[Be]-wn-M.altAxis:yt,gn=b&&ct?F4(Pn,me,on):Rc(b?Pn:De,me,b?on:yt);I[O]=gn,H[O]=gn-me}e.modifiersData[r]=H}}const mz={name:"preventOverflow",enabled:!0,phase:"main",fn:hz,requiresIfExists:["offset"]};function gz(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function yz(t){return t===Nr(t)||!Qr(t)?yy(t):gz(t)}function bz(t){var e=t.getBoundingClientRect(),n=fl(e.width)/t.offsetWidth||1,r=fl(e.height)/t.offsetHeight||1;return n!==1||r!==1}function vz(t,e,n){n===void 0&&(n=!1);var r=Qr(e),o=Qr(e)&&bz(e),i=ps(e),s=pl(t,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Wo(e)!=="body"||vy(i))&&(a=yz(e)),Qr(e)?(l=pl(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=by(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function xz(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&o(l)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||o(i)}),r}function wz(t){var e=xz(t);return P4.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function Sz(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Cz(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var pk={placement:"bottom",modifiers:[],strategy:"absolute"};function hk(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Tz(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,i=o===void 0?pk:o;return function(a,l,u){u===void 0&&(u=i);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},pk,i),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},p=[],m=!1,b={state:f,setOptions:function(S){var k=typeof S=="function"?S(f.options):S;y(),f.options=Object.assign({},i,f.options,k),f.scrollParents={reference:la(a)?zc(a):a.contextElement?zc(a.contextElement):[],popper:zc(l)};var T=wz(Cz([].concat(r,f.options.modifiers)));return f.orderedModifiers=T.filter(function(C){return C.enabled}),v(),b.update()},forceUpdate:function(){if(!m){var S=f.elements,k=S.reference,T=S.popper;if(hk(k,T)){f.rects={reference:vz(k,Fc(T),f.options.strategy==="fixed"),popper:my(T)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(M){return f.modifiersData[M.name]=Object.assign({},M.data)});for(var C=0;C<f.orderedModifiers.length;C++){if(f.reset===!0){f.reset=!1,C=-1;continue}var O=f.orderedModifiers[C],I=O.fn,N=O.options,L=N===void 0?{}:N,V=O.name;typeof I=="function"&&(f=I({state:f,options:L,name:V,instance:b})||f)}}}},update:Sz(function(){return new Promise(function(x){b.forceUpdate(),x(f)})}),destroy:function(){y(),m=!0}};if(!hk(a,l))return b;b.setOptions(u).then(function(x){!m&&u.onFirstUpdate&&u.onFirstUpdate(x)});function v(){f.orderedModifiers.forEach(function(x){var S=x.name,k=x.options,T=k===void 0?{}:k,C=x.effect;if(typeof C=="function"){var O=C({state:f,name:S,instance:b,options:T}),I=function(){};p.push(O||I)}})}function y(){p.forEach(function(x){return x()}),p=[]}return b}}var kz=[Y4,fz,q4,QT,uz,iz,mz,H4,az],mk=Tz({defaultModifiers:kz});function Ez(t){return typeof t=="function"?t():t}const Hc=A.forwardRef(function(e,n){const{children:r,container:o,disablePortal:i=!1}=e,[s,a]=A.useState(null),l=Ot(A.isValidElement(r)?Bs(r):null,n);if(In(()=>{i||a(Ez(o)||document.body)},[o,i]),In(()=>{if(s&&!i)return sx(n,s),()=>{sx(n,null)}},[n,s,i]),i){if(A.isValidElement(r)){const u={ref:l};return A.cloneElement(r,u)}return r}return s&&kP.createPortal(r,s)});process.env.NODE_ENV!=="production"&&(Hc.propTypes={children:c.node,container:c.oneOfType([li,c.func]),disablePortal:c.bool}),process.env.NODE_ENV!=="production"&&(Hc.propTypes=Mm(Hc.propTypes));function Oz(t){return Ke("MuiPopper",t)}je("MuiPopper",["root"]);function Mz(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function bf(t){return typeof t=="function"?t():t}function vf(t){return t.nodeType!==void 0}function _z(t){return!vf(t)}const Iz=t=>{const{classes:e}=t;return qe({root:["root"]},Oz,e)},Dz={},Az=A.forwardRef(function(e,n){const{anchorEl:r,children:o,direction:i,disablePortal:s,modifiers:a,open:l,placement:u,popperOptions:f,popperRef:p,slotProps:m={},slots:b={},TransitionProps:v,ownerState:y,...x}=e,S=A.useRef(null),k=Ot(S,n),T=A.useRef(null),C=Ot(T,p),O=A.useRef(C);In(()=>{O.current=C},[C]),A.useImperativeHandle(p,()=>T.current,[]);const I=Mz(u,i),[N,L]=A.useState(I),[V,M]=A.useState(bf(r));A.useEffect(()=>{T.current&&T.current.forceUpdate()}),A.useEffect(()=>{r&&M(bf(r))},[r]),In(()=>{if(!V||!l)return;const _=j=>{L(j.placement)};if(process.env.NODE_ENV!=="production"&&V&&vf(V)&&V.nodeType===1){const j=V.getBoundingClientRect();process.env.NODE_ENV!=="test"&&j.top===0&&j.left===0&&j.right===0&&j.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
174
174
  `))}let D=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:j})=>{_(j)}}];a!=null&&(D=D.concat(a)),f&&f.modifiers!=null&&(D=D.concat(f.modifiers));const R=mk(V,S.current,{placement:I,...f,modifiers:D});return O.current(R),()=>{R.destroy(),O.current(null)}},[V,s,a,l,f,I]);const B={placement:N};v!==null&&(B.TransitionProps=v);const H=Iz(e),F=b.root??"div",P=Mt({elementType:F,externalSlotProps:m.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:k},ownerState:e,className:H.root});return g.jsx(F,{...P,children:typeof o=="function"?o(B):o})}),gk=A.forwardRef(function(e,n){const{anchorEl:r,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:u,open:f,placement:p="bottom",popperOptions:m=Dz,popperRef:b,style:v,transition:y=!1,slotProps:x={},slots:S={},...k}=e,[T,C]=A.useState(!0),O=()=>{C(!1)},I=()=>{C(!0)};if(!l&&!f&&(!y||T))return null;let N;if(i)N=i;else if(r){const M=bf(r);N=M&&vf(M)?_n(M).body:_n(null).body}const L=!f&&l&&(!y||T)?"none":void 0,V=y?{in:f,onEnter:O,onExited:I}:void 0;return g.jsx(Hc,{disablePortal:a,container:N,children:g.jsx(Az,{anchorEl:r,direction:s,disablePortal:a,modifiers:u,ref:n,open:y?!T:f,placement:p,popperOptions:m,popperRef:b,slotProps:x,slots:S,...k,style:{position:"fixed",top:0,left:0,display:L,...v},TransitionProps:V,children:o})})});process.env.NODE_ENV!=="production"&&(gk.propTypes={anchorEl:si(c.oneOfType([li,c.object,c.func]),t=>{if(t.open){const e=bf(t.anchorEl);if(e&&vf(e)&&e.nodeType===1){const n=e.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
175
175
  `))}else if(!e||typeof e.getBoundingClientRect!="function"||_z(e)&&e.contextElement!=null&&e.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
176
176
  `))}return null}),children:c.oneOfType([c.node,c.func]),container:c.oneOfType([li,c.func]),direction:c.oneOf(["ltr","rtl"]),disablePortal:c.bool,keepMounted:c.bool,modifiers:c.arrayOf(c.shape({data:c.object,effect:c.func,enabled:c.bool,fn:c.func,name:c.any,options:c.object,phase:c.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:c.arrayOf(c.string),requiresIfExists:c.arrayOf(c.string)})),open:c.bool.isRequired,placement:c.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:c.shape({modifiers:c.array,onFirstUpdate:c.func,placement:c.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:c.oneOf(["absolute","fixed"])}),popperRef:kn,slotProps:c.shape({root:c.oneOfType([c.func,c.object])}),slots:c.shape({root:c.elementType}),transition:c.bool});const Pz=oe(gk,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),ml=A.forwardRef(function(e,n){const r=Rm(),o=mt({props:e,name:"MuiPopper"}),{anchorEl:i,component:s,components:a,componentsProps:l,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:y,popperRef:x,transition:S,slots:k,slotProps:T,...C}=o,O=(k==null?void 0:k.root)??(a==null?void 0:a.Root),I={anchorEl:i,container:u,disablePortal:f,keepMounted:p,modifiers:m,open:b,placement:v,popperOptions:y,popperRef:x,transition:S,...C};return g.jsx(Pz,{as:s,direction:r?"rtl":"ltr",slots:{root:O},slotProps:T??l,...I,ref:n})});process.env.NODE_ENV!=="production"&&(ml.propTypes={anchorEl:c.oneOfType([li,c.object,c.func]),children:c.oneOfType([c.node,c.func]),component:c.elementType,components:c.shape({Root:c.elementType}),componentsProps:c.shape({root:c.oneOfType([c.func,c.object])}),container:c.oneOfType([li,c.func]),disablePortal:c.bool,keepMounted:c.bool,modifiers:c.arrayOf(c.shape({data:c.object,effect:c.func,enabled:c.bool,fn:c.func,name:c.any,options:c.object,phase:c.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:c.arrayOf(c.string),requiresIfExists:c.arrayOf(c.string)})),open:c.bool.isRequired,placement:c.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:c.shape({modifiers:c.array,onFirstUpdate:c.func,placement:c.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:c.oneOf(["absolute","fixed"])}),popperRef:kn,slotProps:c.shape({root:c.oneOfType([c.func,c.object])}),slots:c.shape({root:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),transition:c.bool});function rt({props:t,name:e}){return Hx({props:t,name:e,defaultTheme:Td,themeId:Ka})}function gl(t,e){const n={...t};for(let r=0;r<e.length;r++){const o=e[r];delete n[o]}return n}const xf={TABLE_ELEMENT:1,MENU_BAR:2,NOTCHED_OUTLINE:2};function ua(t){var e,n,r,o,i,s,a,l,u,f;const p=Object.keys((e=t.typography.h1)!==null&&e!==void 0?e:{}).some(b=>b.includes("@media")),m=Po.keyframes`
@@ -182,17 +182,17 @@ img.ProseMirror-separator {
182
182
  }
183
183
  `;return{...gl((n=t.typography.body1)!==null&&n!==void 0?n:{},["lineHeight"]),"&:focus":{outline:"none"},"& h1":{fontFamily:(r=t.typography.h3)===null||r===void 0?void 0:r.fontFamily,fontWeight:"bold",...p?{fontSize:`${(1.5625*1.2).toFixed(4)}rem`,[t.breakpoints.up("sm")]:{fontSize:`${(1.8219*1.2).toFixed(4)}rem`},[t.breakpoints.up("md")]:{fontSize:`${(2.0243*1.2).toFixed(4)}rem`},[t.breakpoints.up("lg")]:{fontSize:`${(2.0243*1.2).toFixed(4)}rem`}}:{fontSize:`${(2.0243*1.2).toFixed(4)}rem`}},"& h2":{...gl((o=t.typography.h4)!==null&&o!==void 0?o:{},["lineHeight"]),fontWeight:500},"& h3":{...gl((i=t.typography.h5)!==null&&i!==void 0?i:{},["lineHeight"]),fontWeight:500},"& h4":{...gl((s=t.typography.h6)!==null&&s!==void 0?s:{},["lineHeight"]),fontWeight:500},"& h5":{...gl((a=t.typography.subtitle1)!==null&&a!==void 0?a:{},["lineHeight"]),fontWeight:500},"& h6":{...gl((l=t.typography.subtitle2)!==null&&l!==void 0?l:{},["lineHeight"]),fontWeight:500},"& h1, & h2, & h3, & h4, & h5, & h6, & p":{marginBlockStart:0,marginBlockEnd:0},'& a:not([data-type="mention"])':{color:t.palette.primary.main,textDecoration:"none","&:hover":{textDecoration:"underline"}},"& ul, & ol":{marginBlockStart:0,marginBlockEnd:0},"& ol":{listStyleType:"decimal","& ol":{listStyleType:"lower-alpha","& ol":{listStyleType:"lower-roman","& ol":{listStyleType:"decimal","& ol":{listStyleType:"lower-alpha","& ol":{listStyleType:"lower-roman"}}}}}},"& ul":{listStyleType:"disc","& ul":{listStyleType:"circle","& ul":{listStyleType:"square","& ul":{listStyleType:"disc","& ul":{listStyleType:"circle","& ul":{listStyleType:"square"}}}}}},'& ul[data-type="taskList"]':{listStyle:"none",padding:0,"& li":{display:"flex","& > label":{flex:"0 0 auto",marginRight:"0.5rem",userSelect:"none"},"& > div":{flex:"1 1 auto"}}},"& blockquote":{paddingLeft:"1rem",marginInlineStart:t.spacing(1),marginInlineEnd:t.spacing(1),position:"relative","&:before":{position:"absolute",top:0,bottom:0,left:0,display:"block",width:4,borderRadius:t.shape.borderRadius,background:t.palette.text.disabled,content:'""'}},"& :not(pre) > code":{padding:"2px 3px 1px",borderWidth:1,borderStyle:"solid",borderColor:t.palette.divider,borderRadius:3,backgroundColor:t.palette.action.hover,color:t.palette.mode==="dark"?t.palette.secondary.main:Vs(t.palette.secondary.dark,.1)},"& pre":{marginTop:t.spacing(.5),marginBottom:t.spacing(.5),padding:t.spacing(1),borderWidth:1,borderStyle:"solid",borderColor:t.palette.divider,borderRadius:t.shape.borderRadius,background:t.palette.action.hover,lineHeight:1.4,overflowX:"auto",whiteSpace:"pre !important"},'& [data-type="mention"]':{padding:"0 0.25rem",lineHeight:"1.3em",borderRadius:t.shape.borderRadius,color:t.palette.primary.main,background:t.palette.mode==="dark"?it(Vs(t.palette.primary.dark,.7),.5):it(Va(t.palette.primary.light,.6),.3),textDecoration:"none"},"& img:not(.ProseMirror-separator)":{maxWidth:"100%",height:"auto",display:"inline-flex",...Nz(t),"&.ProseMirror-selectednode":{outline:`3px solid ${t.palette.primary.main}`}},"& hr":{borderWidth:0,borderTopWidth:"thin",borderStyle:"solid",borderColor:t.palette.text.secondary,"&.ProseMirror-selectednode":{borderColor:t.palette.primary.main}},"& table":{borderCollapse:"collapse",tableLayout:"fixed",margin:0,overflowY:"hidden",overflowX:"auto",display:"block","& td, th":{minWidth:"1em",borderWidth:1,borderStyle:"solid",borderColor:t.palette.mode==="dark"?t.palette.grey[500]:t.palette.grey[400],padding:"3px 5px",verticalAlign:"top",boxSizing:"border-box",position:"relative","& > *":{marginBottom:0}},"& th":{fontWeight:500,textAlign:"left",backgroundColor:t.palette.action.selected}},"& .tableWrapper":{overflowX:"auto","& table":{overflow:"hidden",display:"table"}},"& .selectedCell:after":{zIndex:xf.TABLE_ELEMENT,position:"absolute",content:'""',left:0,right:0,top:0,bottom:0,background:"rgba(200, 200, 255, 0.4)",pointerEvents:"none"},'&[contenteditable="true"]':{"& .column-resize-handle":{position:"absolute",right:-2,top:-1,bottom:-2,width:4,zIndex:xf.TABLE_ELEMENT,backgroundColor:t.palette.primary.light,pointerEvents:"none"},"&.resize-cursor":{cursor:"col-resize"}},'&[contenteditable="false"]':{"& .column-resize-handle":{display:"none"},"&.resize-cursor":{pointerEvents:"none"}},"& p.is-editor-empty:first-of-type::before":{color:t.palette.text.disabled,content:"attr(data-placeholder)",float:"left",height:0,pointerEvents:"none"},"& .ProseMirror-gapcursor:after":{borderColor:t.palette.text.primary},"& .collaboration-cursor__caret, & .collaboration-carets__caret":{borderLeft:"1px solid #0d0d0d",borderRight:"1px solid #0d0d0d",marginLeft:"-1px",marginRight:"-1px",position:"relative",wordBreak:"normal",cursor:"text","&:after":{position:"absolute",content:'""',left:-3,right:0,top:-2,borderWidth:3,borderStyle:"solid",borderColor:"inherit"},"&:hover .collaboration-cursor__label, &:hover .collaboration-carets__label":{opacity:1,transition:t.transitions.create("opacity",{delay:0,duration:100,easing:"linear"})}},"& .collaboration-cursor__label, & .collaboration-carets__label":{borderRadius:"3px 3px 3px 0",color:"#0d0d0d",fontSize:12,fontStyle:"normal",fontWeight:600,fontFamily:(f=(u=t.typography.body1)===null||u===void 0?void 0:u.fontFamily)!==null&&f!==void 0?f:"initial",left:-1,lineHeight:"normal",padding:"0.1rem 0.3rem",position:"absolute",top:"-1.4em",userSelect:"none",whiteSpace:"nowrap",pointerEvents:"none",opacity:0,transition:t.transitions.create("opacity",{delay:500,duration:100,easing:"linear"}),animation:`${m} 3s linear 1`}}}function Nz(t){if(t.palette.mode!=="dark")return{};const e=t.palette.grey[200];return{backgroundColor:e,color:t.palette.getContrastText(e)}}const $z="MuiTiptap-";function Ut(t){return`${$z}${t}`}function Lz(t,e){return`${Ut(t)}-${e}`}function Xt(t,e){const n={};return e.forEach(r=>{n[r]=Lz(t,r)}),n}const yk=Xt("ControlledBubbleMenu",["root","paper"]),wy=Ut("ControlledBubbleMenu"),Bz=oe(ml,{name:wy,slot:"root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({zIndex:t.zIndex.tooltip})),Fz=oe(fs,{name:wy,slot:"paper",overridesResolver:(t,e)=>e.paper})(({theme:t})=>({backgroundColor:t.palette.background.default}));function Sy(t){const e=rt({props:t,name:wy}),{editor:n,open:r,className:o,classes:i={},sx:s,children:a,anchorEl:l,container:u,disablePortal:f,placement:p="top",fallbackPlacements:m=["top","bottom","top-start","bottom-start","top-end","bottom-end"],flipPadding:b=8,PaperProps:v,...y}=e,x=wo(),S=J.useCallback(()=>{const{ranges:k}=n.state.selection,T=Math.min(...k.map(O=>O.$from.pos)),C=Math.max(...k.map(O=>O.$to.pos));return{getBoundingClientRect:()=>{if(iT(n.state.selection)){const O=n.view.nodeDOM(T);if(O instanceof HTMLElement)return O.getBoundingClientRect()}return sT(n.view,T,C)}}},[n]);return g.jsx(Bz,{open:r,placement:p,modifiers:[{name:"offset",options:{offset:[0,6]}},{name:"flip",enabled:!0,options:{boundary:n.options.element,fallbackPlacements:m,padding:b}},{name:"preventOverflow",enabled:!0,options:{altAxis:!0,boundary:"clippingParents",padding:8}}],anchorEl:l??S,className:ge([yk.root,o,i.root]),sx:s,container:u,disablePortal:f,transition:!0,...y,children:({TransitionProps:k})=>g.jsx(Ho,{...k,timeout:{enter:x.transitions.duration.enteringScreen,exit:0},children:g.jsx(Fz,{elevation:7,...v,className:ge([yk.paper,i.paper,v==null?void 0:v.className]),children:a})})})}function wf(t){return parseInt(t,10)||0}const Rz={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function zz(t){for(const e in t)return!1;return!0}function bk(t){return zz(t)||t.outerHeightStyle===0&&!t.overflowing}const vk=A.forwardRef(function(e,n){const{onChange:r,maxRows:o,minRows:i=1,style:s,value:a,...l}=e,{current:u}=A.useRef(a!=null),f=A.useRef(null),p=Ot(n,f),m=A.useRef(null),b=A.useRef(null),v=A.useCallback(()=>{const T=f.current,C=b.current;if(!T||!C)return;const I=ci(T).getComputedStyle(T);if(I.width==="0px")return{outerHeightStyle:0,overflowing:!1};C.style.width=I.width,C.value=T.value||e.placeholder||"x",C.value.slice(-1)===`
184
184
  `&&(C.value+=" ");const N=I.boxSizing,L=wf(I.paddingBottom)+wf(I.paddingTop),V=wf(I.borderBottomWidth)+wf(I.borderTopWidth),M=C.scrollHeight;C.value="x";const B=C.scrollHeight;let H=M;i&&(H=Math.max(Number(i)*B,H)),o&&(H=Math.min(Number(o)*B,H)),H=Math.max(H,B);const F=H+(N==="border-box"?L+V:0),P=Math.abs(H-M)<=1;return{outerHeightStyle:F,overflowing:P}},[o,i,e.placeholder]),y=ze(()=>{const T=f.current,C=v();if(!T||!C||bk(C))return!1;const O=C.outerHeightStyle;return m.current!=null&&m.current!==O}),x=A.useCallback(()=>{const T=f.current,C=v();if(!T||!C||bk(C))return;const O=C.outerHeightStyle;m.current!==O&&(m.current=O,T.style.height=`${O}px`),T.style.overflow=C.overflowing?"hidden":""},[v]),S=A.useRef(-1);In(()=>{const T=ix(x),C=f==null?void 0:f.current;if(!C)return;const O=ci(C);O.addEventListener("resize",T);let I;return typeof ResizeObserver<"u"&&(I=new ResizeObserver(()=>{y()&&(I.unobserve(C),cancelAnimationFrame(S.current),x(),S.current=requestAnimationFrame(()=>{I.observe(C)}))}),I.observe(C)),()=>{T.clear(),cancelAnimationFrame(S.current),O.removeEventListener("resize",T),I&&I.disconnect()}},[v,x,y]),In(()=>{x()});const k=T=>{u||x(),r&&r(T)};return g.jsxs(A.Fragment,{children:[g.jsx("textarea",{value:a,onChange:k,ref:p,rows:i,style:s,...l}),g.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:b,tabIndex:-1,style:{...Rz.shadow,...s,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(vk.propTypes={className:c.string,maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),onChange:c.func,placeholder:c.string,style:c.object,value:c.oneOfType([c.arrayOf(c.string),c.number,c.string])});function Wc(t){return typeof t=="string"}function yl({props:t,states:e,muiFormControl:n}){return e.reduce((r,o)=>(r[o]=t[o],n&&typeof t[o]>"u"&&(r[o]=n[o]),r),{})}const jc=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(jc.displayName="FormControlContext");function To(){return A.useContext(jc)}function xk(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function Sf(t,e=!1){return t&&(xk(t.value)&&t.value!==""||e&&xk(t.defaultValue)&&t.defaultValue!=="")}function Vz(t){return t.startAdornment}function Hz(t){return Ke("MuiInputBase",t)}const bl=je("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var wk;const Cf=(t,e)=>{const{ownerState:n}=t;return[e.root,n.formControl&&e.formControl,n.startAdornment&&e.adornedStart,n.endAdornment&&e.adornedEnd,n.error&&e.error,n.size==="small"&&e.sizeSmall,n.multiline&&e.multiline,n.color&&e[`color${Ne(n.color)}`],n.fullWidth&&e.fullWidth,n.hiddenLabel&&e.hiddenLabel]},Tf=(t,e)=>{const{ownerState:n}=t;return[e.input,n.size==="small"&&e.inputSizeSmall,n.multiline&&e.inputMultiline,n.type==="search"&&e.inputTypeSearch,n.startAdornment&&e.inputAdornedStart,n.endAdornment&&e.inputAdornedEnd,n.hiddenLabel&&e.inputHiddenLabel]},Wz=t=>{const{classes:e,color:n,disabled:r,error:o,endAdornment:i,focused:s,formControl:a,fullWidth:l,hiddenLabel:u,multiline:f,readOnly:p,size:m,startAdornment:b,type:v}=t,y={root:["root",`color${Ne(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",m&&m!=="medium"&&`size${Ne(m)}`,f&&"multiline",b&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",f&&"inputMultiline",m==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",b&&"inputAdornedStart",i&&"inputAdornedEnd",p&&"readOnly"]};return qe(y,Hz,e)},kf=oe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Cf})(bt(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${bl.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:n})=>e.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),Ef=oe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Tf})(bt(({theme:t})=>{const e=t.palette.mode==="light",n={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},r={opacity:"0 !important"},o=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${bl.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${bl.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Sk=vL({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Of=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:a,color:l,components:u={},componentsProps:f={},defaultValue:p,disabled:m,disableInjectingGlobalStyles:b,endAdornment:v,error:y,fullWidth:x=!1,id:S,inputComponent:k="input",inputProps:T={},inputRef:C,margin:O,maxRows:I,minRows:N,multiline:L=!1,name:V,onBlur:M,onChange:B,onClick:H,onFocus:F,onKeyDown:P,onKeyUp:_,placeholder:D,readOnly:R,renderSuffix:j,rows:K,size:U,slotProps:Y={},slots:fe={},startAdornment:ue,type:pe="text",value:Z,...te}=r,ce=T.value!=null?T.value:Z,{current:ne}=A.useRef(ce!=null),re=A.useRef(),le=A.useCallback(ot=>{process.env.NODE_ENV!=="production"&&ot&&ot.nodeName!=="INPUT"&&!ot.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
185
- `))},[]),ye=Ot(re,C,T.ref,le),[X,ee]=A.useState(!1),ie=To();process.env.NODE_ENV!=="production"&&A.useEffect(()=>{if(ie)return ie.registerEffect()},[ie]);const we=yl({props:r,muiFormControl:ie,states:["color","disabled","error","hiddenLabel","size","required","filled"]});we.focused=ie?ie.focused:X,A.useEffect(()=>{!ie&&m&&X&&(ee(!1),M&&M())},[ie,m,X,M]);const Ce=ie&&ie.onFilled,Ae=ie&&ie.onEmpty,Me=A.useCallback(ot=>{Sf(ot)?Ce&&Ce():Ae&&Ae()},[Ce,Ae]);In(()=>{ne&&Me({value:ce})},[ce,Me,ne]);const Ie=ot=>{F&&F(ot),T.onFocus&&T.onFocus(ot),ie&&ie.onFocus?ie.onFocus(ot):ee(!0)},me=ot=>{M&&M(ot),T.onBlur&&T.onBlur(ot),ie&&ie.onBlur?ie.onBlur(ot):ee(!1)},Be=(ot,...Mn)=>{if(!ne){const Zt=ot.target||re.current;if(Zt==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":$o(1));Me({value:Zt.value})}T.onChange&&T.onChange(ot,...Mn),B&&B(ot,...Mn)};A.useEffect(()=>{Me(re.current)},[]);const De=ot=>{re.current&&ot.currentTarget===ot.target&&re.current.focus(),H&&H(ot)};let yt=k,ct=T;L&&yt==="input"&&(K?(process.env.NODE_ENV!=="production"&&(N||I)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),ct={type:void 0,minRows:K,maxRows:K,...ct}):ct={type:void 0,maxRows:I,minRows:N,...ct},yt=vk);const wn=ot=>{Me(ot.animationName==="mui-auto-fill-cancel"?re.current:{value:"x"})};A.useEffect(()=>{ie&&ie.setAdornedStart(!!ue)},[ie,ue]);const Pn={...r,color:we.color||"primary",disabled:we.disabled,endAdornment:v,error:we.error,focused:we.focused,formControl:ie,fullWidth:x,hiddenLabel:we.hiddenLabel,multiline:L,size:we.size,startAdornment:ue,type:pe},on=Wz(Pn),gn=fe.root||u.Root||kf,Sn=Y.root||f.root||{},Jn=fe.input||u.Input||Ef;return ct={...ct,...Y.input??f.input},g.jsxs(A.Fragment,{children:[!b&&typeof Sk=="function"&&(wk||(wk=g.jsx(Sk,{}))),g.jsxs(gn,{...Sn,ref:n,onClick:De,...te,...!Wc(gn)&&{ownerState:{...Pn,...Sn.ownerState}},className:ge(on.root,Sn.className,a,R&&"MuiInputBase-readOnly"),children:[ue,g.jsx(jc.Provider,{value:null,children:g.jsx(Jn,{"aria-invalid":we.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:p,disabled:we.disabled,id:S,onAnimationStart:wn,name:V,placeholder:D,readOnly:R,required:we.required,rows:K,value:ce,onKeyDown:P,onKeyUp:_,type:pe,...ct,...!Wc(Jn)&&{as:yt,ownerState:{...Pn,...ct.ownerState}},ref:ye,className:ge(on.input,ct.className,R&&"MuiInputBase-readOnly"),onBlur:me,onChange:Be,onFocus:Ie})}),v,j?j({...we,startAdornment:ue}):null]})]})});process.env.NODE_ENV!=="production"&&(Of.propTypes={"aria-describedby":c.string,autoComplete:c.string,autoFocus:c.bool,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["primary","secondary","error","info","success","warning"]),c.string]),components:c.shape({Input:c.elementType,Root:c.elementType}),componentsProps:c.shape({input:c.object,root:c.object}),defaultValue:c.any,disabled:c.bool,disableInjectingGlobalStyles:c.bool,endAdornment:c.node,error:c.bool,fullWidth:c.bool,id:c.string,inputComponent:Ba,inputProps:c.object,inputRef:kn,margin:c.oneOf(["dense","none"]),maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),multiline:c.bool,name:c.string,onBlur:c.func,onChange:c.func,onClick:c.func,onFocus:c.func,onInvalid:c.func,onKeyDown:c.func,onKeyUp:c.func,placeholder:c.string,readOnly:c.bool,renderSuffix:c.func,required:c.bool,rows:c.oneOfType([c.number,c.string]),size:c.oneOfType([c.oneOf(["medium","small"]),c.string]),slotProps:c.shape({input:c.object,root:c.object}),slots:c.shape({input:c.elementType,root:c.elementType}),startAdornment:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.string,value:c.any});function jz(t){return typeof t.main=="string"}function Uz(t,e=[]){if(!jz(t))return!1;for(const n of e)if(!t.hasOwnProperty(n)||typeof t[n]!="string")return!1;return!0}function Hn(t=[]){return([,e])=>e&&Uz(e,t)}function qz(t){return Ke("MuiInput",t)}const Uc={...bl,...je("MuiInput",["root","underline","input"])},Kz=t=>{const{classes:e,disableUnderline:n}=t,o=qe({root:["root",!n&&"underline"],input:["input"]},qz,e);return{...e,...o}},Yz=oe(kf,{shouldForwardProp:t=>qr(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...Cf(t,e),!n.disableUnderline&&e.underline]}})(bt(({theme:t})=>{let n=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Uc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Uc.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Uc.disabled}, .${Uc.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Uc.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Hn()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[r].main}`}}}))]}})),Gz=oe(Ef,{name:"MuiInput",slot:"Input",overridesResolver:Tf})({}),Mf=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiInput"}),{disableUnderline:o=!1,components:i={},componentsProps:s,fullWidth:a=!1,inputComponent:l="input",multiline:u=!1,slotProps:f,slots:p={},type:m="text",...b}=r,v=Kz(r),x={root:{ownerState:{disableUnderline:o}}},S=f??s?Bn(f??s,x):x,k=p.root??i.Root??Yz,T=p.input??i.Input??Gz;return g.jsx(Of,{slots:{root:k,input:T},slotProps:S,fullWidth:a,inputComponent:l,multiline:u,ref:n,type:m,...b,classes:v})});process.env.NODE_ENV!=="production"&&(Mf.propTypes={autoComplete:c.string,autoFocus:c.bool,classes:c.object,color:c.oneOfType([c.oneOf(["primary","secondary"]),c.string]),components:c.shape({Input:c.elementType,Root:c.elementType}),componentsProps:c.shape({input:c.object,root:c.object}),defaultValue:c.any,disabled:c.bool,disableUnderline:c.bool,endAdornment:c.node,error:c.bool,fullWidth:c.bool,id:c.string,inputComponent:c.elementType,inputProps:c.object,inputRef:kn,margin:c.oneOf(["dense","none"]),maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),multiline:c.bool,name:c.string,onChange:c.func,placeholder:c.string,readOnly:c.bool,required:c.bool,rows:c.oneOfType([c.number,c.string]),slotProps:c.shape({input:c.object,root:c.object}),slots:c.shape({input:c.elementType,root:c.elementType}),startAdornment:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.string,value:c.any}),Mf.muiName="Input";function Jz(t){return Ke("MuiFilledInput",t)}const da={...bl,...je("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Xz=t=>{const{classes:e,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:s,multiline:a}=t,l={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",i==="small"&&`size${Ne(i)}`,s&&"hiddenLabel",a&&"multiline"],input:["input"]},u=qe(l,Jz,e);return{...e,...u}},Zz=oe(kf,{shouldForwardProp:t=>qr(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...Cf(t,e),!n.disableUnderline&&e.underline]}})(bt(({theme:t})=>{const e=t.palette.mode==="light",n=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r}},[`&.${da.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r},[`&.${da.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${da.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${da.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${da.disabled}, .${da.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${da.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Hn()).map(([s])=>{var a;return{props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(a=(t.vars||t).palette[s])==null?void 0:a.main}`}}}}),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:a})=>s.multiline&&a==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),Qz=oe(Ef,{name:"MuiFilledInput",slot:"Input",overridesResolver:Tf})(bt(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),_f=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:i={},componentsProps:s,fullWidth:a=!1,hiddenLabel:l,inputComponent:u="input",multiline:f=!1,slotProps:p,slots:m={},type:b="text",...v}=r,y={...r,disableUnderline:o,fullWidth:a,inputComponent:u,multiline:f,type:b},x=Xz(r),S={root:{ownerState:y},input:{ownerState:y}},k=p??s?Bn(S,p??s):S,T=m.root??i.Root??Zz,C=m.input??i.Input??Qz;return g.jsx(Of,{slots:{root:T,input:C},slotProps:k,fullWidth:a,inputComponent:u,multiline:f,ref:n,type:b,...v,classes:x})});process.env.NODE_ENV!=="production"&&(_f.propTypes={autoComplete:c.string,autoFocus:c.bool,classes:c.object,color:c.oneOfType([c.oneOf(["primary","secondary"]),c.string]),components:c.shape({Input:c.elementType,Root:c.elementType}),componentsProps:c.shape({input:c.object,root:c.object}),defaultValue:c.any,disabled:c.bool,disableUnderline:c.bool,endAdornment:c.node,error:c.bool,fullWidth:c.bool,hiddenLabel:c.bool,id:c.string,inputComponent:c.elementType,inputProps:c.object,inputRef:kn,margin:c.oneOf(["dense","none"]),maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),multiline:c.bool,name:c.string,onChange:c.func,placeholder:c.string,readOnly:c.bool,required:c.bool,rows:c.oneOfType([c.number,c.string]),slotProps:c.shape({input:c.object,root:c.object}),slots:c.shape({input:c.elementType,root:c.elementType}),startAdornment:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.string,value:c.any}),_f.muiName="Input";var Ck;const eV=oe("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:qr})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),tV=oe("legend",{name:"MuiNotchedOutlined",shouldForwardProp:qr})(bt(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function Tk(t){const{children:e,classes:n,className:r,label:o,notched:i,...s}=t,a=o!=null&&o!=="",l={...t,notched:i,withLabel:a};return g.jsx(eV,{"aria-hidden":!0,className:r,ownerState:l,...s,children:g.jsx(tV,{ownerState:l,children:a?g.jsx("span",{children:o}):Ck||(Ck=g.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(Tk.propTypes={children:c.node,classes:c.object,className:c.string,label:c.node,notched:c.bool.isRequired,style:c.object});function nV(t){return Ke("MuiOutlinedInput",t)}const eo={...bl,...je("MuiOutlinedInput",["root","notchedOutline","input"])};function _t(t,e){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:s,shouldForwardComponentProp:a=!1,...l}=e,{component:u,slots:f={[t]:void 0},slotProps:p={[t]:void 0},...m}=i,b=f[t]||r,v=sd(p[t],o),{props:{component:y,...x},internalRef:S}=wx({className:n,...l,externalForwardedProps:t==="root"?m:void 0,externalSlotProps:v}),k=Ot(S,v==null?void 0:v.ref,e.ref),T=t==="root"?y||u:y,C=yx(b,{...t==="root"&&!u&&!f[t]&&s,...t!=="root"&&!f[t]&&s,...x,...T&&!a&&{as:T},...T&&a&&{component:T},ref:k},o);return[b,C]}const rV=t=>{const{classes:e}=t,r=qe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},nV,e);return{...e,...r}},oV=oe(kf,{shouldForwardProp:t=>qr(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Cf})(bt(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${eo.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${eo.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${eo.focused} .${eo.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(Hn()).map(([n])=>({props:{color:n},style:{[`&.${eo.focused} .${eo.notchedOutline}`]:{borderColor:(t.vars||t).palette[n].main}}})),{props:{},style:{[`&.${eo.error} .${eo.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${eo.disabled} .${eo.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),iV=oe(Tk,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(bt(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}})),sV=oe(Ef,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Tf})(bt(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),If=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiOutlinedInput"}),{components:o={},fullWidth:i=!1,inputComponent:s="input",label:a,multiline:l=!1,notched:u,slots:f={},slotProps:p={},type:m="text",...b}=r,v=rV(r),y=To(),x=yl({props:r,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S={...r,color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:y,fullWidth:i,hiddenLabel:x.hiddenLabel,multiline:l,size:x.size,type:m},k=f.root??o.Root??oV,T=f.input??o.Input??sV,[C,O]=_t("notchedOutline",{elementType:iV,className:v.notchedOutline,shouldForwardComponentProp:!0,ownerState:S,externalForwardedProps:{slots:f,slotProps:p},additionalProps:{label:a!=null&&a!==""&&x.required?g.jsxs(A.Fragment,{children:[a," ","*"]}):a}});return g.jsx(Of,{slots:{root:k,input:T},slotProps:p,renderSuffix:I=>g.jsx(C,{...O,notched:typeof u<"u"?u:!!(I.startAdornment||I.filled||I.focused)}),fullWidth:i,inputComponent:s,multiline:l,ref:n,type:m,...b,classes:{...v,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(If.propTypes={autoComplete:c.string,autoFocus:c.bool,classes:c.object,color:c.oneOfType([c.oneOf(["primary","secondary"]),c.string]),components:c.shape({Input:c.elementType,Root:c.elementType}),defaultValue:c.any,disabled:c.bool,endAdornment:c.node,error:c.bool,fullWidth:c.bool,id:c.string,inputComponent:c.elementType,inputProps:c.object,inputRef:kn,label:c.node,margin:c.oneOf(["dense","none"]),maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),multiline:c.bool,name:c.string,notched:c.bool,onChange:c.func,placeholder:c.string,readOnly:c.bool,required:c.bool,rows:c.oneOfType([c.number,c.string]),slotProps:c.shape({input:c.object,notchedOutline:c.oneOfType([c.func,c.object]),root:c.object}),slots:c.shape({input:c.elementType,notchedOutline:c.elementType,root:c.elementType}),startAdornment:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.string,value:c.any}),If.muiName="Input";function aV(t){return Ke("MuiFormLabel",t)}const qc=je("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),lV=t=>{const{classes:e,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=t,l={root:["root",`color${Ne(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return qe(l,aV,e)},cV=oe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color==="secondary"&&e.colorSecondary,n.filled&&e.filled]}})(bt(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(Hn()).map(([e])=>({props:{color:e},style:{[`&.${qc.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${qc.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${qc.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),uV=oe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(bt(({theme:t})=>({[`&.${qc.error}`]:{color:(t.vars||t).palette.error.main}}))),kk=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiFormLabel"}),{children:o,className:i,color:s,component:a="label",disabled:l,error:u,filled:f,focused:p,required:m,...b}=r,v=To(),y=yl({props:r,muiFormControl:v,states:["color","required","focused","disabled","error","filled"]}),x={...r,color:y.color||"primary",component:a,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required},S=lV(x);return g.jsxs(cV,{as:a,ownerState:x,className:ge(S.root,i),ref:n,...b,children:[o,y.required&&g.jsxs(uV,{ownerState:x,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(kk.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["error","info","primary","secondary","success","warning"]),c.string]),component:c.elementType,disabled:c.bool,error:c.bool,filled:c.bool,focused:c.bool,required:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function dV(t){return Ke("MuiInputLabel",t)}je("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const fV=t=>{const{classes:e,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=t,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${Ne(r)}`,s],asterisk:[a&&"asterisk"]},u=qe(l,dV,e);return{...e,...u}},pV=oe(kk,{shouldForwardProp:t=>qr(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${qc.asterisk}`]:e.asterisk},e.root,n.formControl&&e.formControl,n.size==="small"&&e.sizeSmall,n.shrink&&e.shrink,!n.disableAnimation&&e.animated,n.focused&&e.focused,e[n.variant]]}})(bt(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:n})=>e==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:n,size:r})=>e==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:n})=>e==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Cy=A.forwardRef(function(e,n){const r=mt({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,margin:i,shrink:s,variant:a,className:l,...u}=r,f=To();let p=s;typeof p>"u"&&f&&(p=f.filled||f.focused||f.adornedStart);const m=yl({props:r,muiFormControl:f,states:["size","variant","required","focused"]}),b={...r,disableAnimation:o,formControl:f,shrink:p,size:m.size,variant:m.variant,required:m.required,focused:m.focused},v=fV(b);return g.jsx(pV,{"data-shrink":p,ref:n,className:ge(v.root,l),...u,ownerState:b,classes:v})});process.env.NODE_ENV!=="production"&&(Cy.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["error","info","primary","secondary","success","warning"]),c.string]),disableAnimation:c.bool,disabled:c.bool,error:c.bool,focused:c.bool,margin:c.oneOf(["dense"]),required:c.bool,shrink:c.bool,size:c.oneOfType([c.oneOf(["normal","small"]),c.string]),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOf(["filled","outlined","standard"])});function hV(t){return Ke("MuiFormControl",t)}je("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const mV=t=>{const{classes:e,margin:n,fullWidth:r}=t,o={root:["root",n!=="none"&&`margin${Ne(n)}`,r&&"fullWidth"]};return qe(o,hV,e)},gV=oe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`margin${Ne(n.margin)}`],n.fullWidth&&e.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ty=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:l=!1,error:u=!1,focused:f,fullWidth:p=!1,hiddenLabel:m=!1,margin:b="none",required:v=!1,size:y="medium",variant:x="outlined",...S}=r,k={...r,color:s,component:a,disabled:l,error:u,fullWidth:p,hiddenLabel:m,margin:b,required:v,size:y,variant:x},T=mV(k),[C,O]=A.useState(()=>{let D=!1;return o&&A.Children.forEach(o,R=>{if(!ec(R,["Input","Select"]))return;const j=ec(R,["Select"])?R.props.input:R;j&&Vz(j.props)&&(D=!0)}),D}),[I,N]=A.useState(()=>{let D=!1;return o&&A.Children.forEach(o,R=>{ec(R,["Input","Select"])&&(Sf(R.props,!0)||Sf(R.props.inputProps,!0))&&(D=!0)}),D}),[L,V]=A.useState(!1);l&&L&&V(!1);const M=f!==void 0&&!l?f:L;let B;const H=A.useRef(!1);process.env.NODE_ENV!=="production"&&(B=()=>(H.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
185
+ `))},[]),ye=Ot(re,C,T.ref,le),[X,ee]=A.useState(!1),ie=To();process.env.NODE_ENV!=="production"&&A.useEffect(()=>{if(ie)return ie.registerEffect()},[ie]);const we=yl({props:r,muiFormControl:ie,states:["color","disabled","error","hiddenLabel","size","required","filled"]});we.focused=ie?ie.focused:X,A.useEffect(()=>{!ie&&m&&X&&(ee(!1),M&&M())},[ie,m,X,M]);const Ce=ie&&ie.onFilled,Pe=ie&&ie.onEmpty,Me=A.useCallback(ot=>{Sf(ot)?Ce&&Ce():Pe&&Pe()},[Ce,Pe]);In(()=>{ne&&Me({value:ce})},[ce,Me,ne]);const Ie=ot=>{F&&F(ot),T.onFocus&&T.onFocus(ot),ie&&ie.onFocus?ie.onFocus(ot):ee(!0)},me=ot=>{M&&M(ot),T.onBlur&&T.onBlur(ot),ie&&ie.onBlur?ie.onBlur(ot):ee(!1)},Be=(ot,...Mn)=>{if(!ne){const Zt=ot.target||re.current;if(Zt==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":$o(1));Me({value:Zt.value})}T.onChange&&T.onChange(ot,...Mn),B&&B(ot,...Mn)};A.useEffect(()=>{Me(re.current)},[]);const De=ot=>{re.current&&ot.currentTarget===ot.target&&re.current.focus(),H&&H(ot)};let yt=k,ct=T;L&&yt==="input"&&(K?(process.env.NODE_ENV!=="production"&&(N||I)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),ct={type:void 0,minRows:K,maxRows:K,...ct}):ct={type:void 0,maxRows:I,minRows:N,...ct},yt=vk);const wn=ot=>{Me(ot.animationName==="mui-auto-fill-cancel"?re.current:{value:"x"})};A.useEffect(()=>{ie&&ie.setAdornedStart(!!ue)},[ie,ue]);const Pn={...r,color:we.color||"primary",disabled:we.disabled,endAdornment:v,error:we.error,focused:we.focused,formControl:ie,fullWidth:x,hiddenLabel:we.hiddenLabel,multiline:L,size:we.size,startAdornment:ue,type:pe},on=Wz(Pn),gn=fe.root||u.Root||kf,Sn=Y.root||f.root||{},Jn=fe.input||u.Input||Ef;return ct={...ct,...Y.input??f.input},g.jsxs(A.Fragment,{children:[!b&&typeof Sk=="function"&&(wk||(wk=g.jsx(Sk,{}))),g.jsxs(gn,{...Sn,ref:n,onClick:De,...te,...!Wc(gn)&&{ownerState:{...Pn,...Sn.ownerState}},className:ge(on.root,Sn.className,a,R&&"MuiInputBase-readOnly"),children:[ue,g.jsx(jc.Provider,{value:null,children:g.jsx(Jn,{"aria-invalid":we.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:p,disabled:we.disabled,id:S,onAnimationStart:wn,name:V,placeholder:D,readOnly:R,required:we.required,rows:K,value:ce,onKeyDown:P,onKeyUp:_,type:pe,...ct,...!Wc(Jn)&&{as:yt,ownerState:{...Pn,...ct.ownerState}},ref:ye,className:ge(on.input,ct.className,R&&"MuiInputBase-readOnly"),onBlur:me,onChange:Be,onFocus:Ie})}),v,j?j({...we,startAdornment:ue}):null]})]})});process.env.NODE_ENV!=="production"&&(Of.propTypes={"aria-describedby":c.string,autoComplete:c.string,autoFocus:c.bool,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["primary","secondary","error","info","success","warning"]),c.string]),components:c.shape({Input:c.elementType,Root:c.elementType}),componentsProps:c.shape({input:c.object,root:c.object}),defaultValue:c.any,disabled:c.bool,disableInjectingGlobalStyles:c.bool,endAdornment:c.node,error:c.bool,fullWidth:c.bool,id:c.string,inputComponent:Ba,inputProps:c.object,inputRef:kn,margin:c.oneOf(["dense","none"]),maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),multiline:c.bool,name:c.string,onBlur:c.func,onChange:c.func,onClick:c.func,onFocus:c.func,onInvalid:c.func,onKeyDown:c.func,onKeyUp:c.func,placeholder:c.string,readOnly:c.bool,renderSuffix:c.func,required:c.bool,rows:c.oneOfType([c.number,c.string]),size:c.oneOfType([c.oneOf(["medium","small"]),c.string]),slotProps:c.shape({input:c.object,root:c.object}),slots:c.shape({input:c.elementType,root:c.elementType}),startAdornment:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.string,value:c.any});function jz(t){return typeof t.main=="string"}function Uz(t,e=[]){if(!jz(t))return!1;for(const n of e)if(!t.hasOwnProperty(n)||typeof t[n]!="string")return!1;return!0}function Hn(t=[]){return([,e])=>e&&Uz(e,t)}function qz(t){return Ke("MuiInput",t)}const Uc={...bl,...je("MuiInput",["root","underline","input"])},Kz=t=>{const{classes:e,disableUnderline:n}=t,o=qe({root:["root",!n&&"underline"],input:["input"]},qz,e);return{...e,...o}},Yz=oe(kf,{shouldForwardProp:t=>qr(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...Cf(t,e),!n.disableUnderline&&e.underline]}})(bt(({theme:t})=>{let n=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Uc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Uc.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Uc.disabled}, .${Uc.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Uc.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Hn()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[r].main}`}}}))]}})),Gz=oe(Ef,{name:"MuiInput",slot:"Input",overridesResolver:Tf})({}),Mf=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiInput"}),{disableUnderline:o=!1,components:i={},componentsProps:s,fullWidth:a=!1,inputComponent:l="input",multiline:u=!1,slotProps:f,slots:p={},type:m="text",...b}=r,v=Kz(r),x={root:{ownerState:{disableUnderline:o}}},S=f??s?Bn(f??s,x):x,k=p.root??i.Root??Yz,T=p.input??i.Input??Gz;return g.jsx(Of,{slots:{root:k,input:T},slotProps:S,fullWidth:a,inputComponent:l,multiline:u,ref:n,type:m,...b,classes:v})});process.env.NODE_ENV!=="production"&&(Mf.propTypes={autoComplete:c.string,autoFocus:c.bool,classes:c.object,color:c.oneOfType([c.oneOf(["primary","secondary"]),c.string]),components:c.shape({Input:c.elementType,Root:c.elementType}),componentsProps:c.shape({input:c.object,root:c.object}),defaultValue:c.any,disabled:c.bool,disableUnderline:c.bool,endAdornment:c.node,error:c.bool,fullWidth:c.bool,id:c.string,inputComponent:c.elementType,inputProps:c.object,inputRef:kn,margin:c.oneOf(["dense","none"]),maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),multiline:c.bool,name:c.string,onChange:c.func,placeholder:c.string,readOnly:c.bool,required:c.bool,rows:c.oneOfType([c.number,c.string]),slotProps:c.shape({input:c.object,root:c.object}),slots:c.shape({input:c.elementType,root:c.elementType}),startAdornment:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.string,value:c.any}),Mf.muiName="Input";function Jz(t){return Ke("MuiFilledInput",t)}const da={...bl,...je("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Xz=t=>{const{classes:e,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:s,multiline:a}=t,l={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",i==="small"&&`size${Ne(i)}`,s&&"hiddenLabel",a&&"multiline"],input:["input"]},u=qe(l,Jz,e);return{...e,...u}},Zz=oe(kf,{shouldForwardProp:t=>qr(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...Cf(t,e),!n.disableUnderline&&e.underline]}})(bt(({theme:t})=>{const e=t.palette.mode==="light",n=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r}},[`&.${da.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r},[`&.${da.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${da.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${da.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${da.disabled}, .${da.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${da.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Hn()).map(([s])=>{var a;return{props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(a=(t.vars||t).palette[s])==null?void 0:a.main}`}}}}),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:a})=>s.multiline&&a==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),Qz=oe(Ef,{name:"MuiFilledInput",slot:"Input",overridesResolver:Tf})(bt(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),_f=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:i={},componentsProps:s,fullWidth:a=!1,hiddenLabel:l,inputComponent:u="input",multiline:f=!1,slotProps:p,slots:m={},type:b="text",...v}=r,y={...r,disableUnderline:o,fullWidth:a,inputComponent:u,multiline:f,type:b},x=Xz(r),S={root:{ownerState:y},input:{ownerState:y}},k=p??s?Bn(S,p??s):S,T=m.root??i.Root??Zz,C=m.input??i.Input??Qz;return g.jsx(Of,{slots:{root:T,input:C},slotProps:k,fullWidth:a,inputComponent:u,multiline:f,ref:n,type:b,...v,classes:x})});process.env.NODE_ENV!=="production"&&(_f.propTypes={autoComplete:c.string,autoFocus:c.bool,classes:c.object,color:c.oneOfType([c.oneOf(["primary","secondary"]),c.string]),components:c.shape({Input:c.elementType,Root:c.elementType}),componentsProps:c.shape({input:c.object,root:c.object}),defaultValue:c.any,disabled:c.bool,disableUnderline:c.bool,endAdornment:c.node,error:c.bool,fullWidth:c.bool,hiddenLabel:c.bool,id:c.string,inputComponent:c.elementType,inputProps:c.object,inputRef:kn,margin:c.oneOf(["dense","none"]),maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),multiline:c.bool,name:c.string,onChange:c.func,placeholder:c.string,readOnly:c.bool,required:c.bool,rows:c.oneOfType([c.number,c.string]),slotProps:c.shape({input:c.object,root:c.object}),slots:c.shape({input:c.elementType,root:c.elementType}),startAdornment:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.string,value:c.any}),_f.muiName="Input";var Ck;const eV=oe("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:qr})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),tV=oe("legend",{name:"MuiNotchedOutlined",shouldForwardProp:qr})(bt(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function Tk(t){const{children:e,classes:n,className:r,label:o,notched:i,...s}=t,a=o!=null&&o!=="",l={...t,notched:i,withLabel:a};return g.jsx(eV,{"aria-hidden":!0,className:r,ownerState:l,...s,children:g.jsx(tV,{ownerState:l,children:a?g.jsx("span",{children:o}):Ck||(Ck=g.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(Tk.propTypes={children:c.node,classes:c.object,className:c.string,label:c.node,notched:c.bool.isRequired,style:c.object});function nV(t){return Ke("MuiOutlinedInput",t)}const eo={...bl,...je("MuiOutlinedInput",["root","notchedOutline","input"])};function _t(t,e){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:s,shouldForwardComponentProp:a=!1,...l}=e,{component:u,slots:f={[t]:void 0},slotProps:p={[t]:void 0},...m}=i,b=f[t]||r,v=sd(p[t],o),{props:{component:y,...x},internalRef:S}=wx({className:n,...l,externalForwardedProps:t==="root"?m:void 0,externalSlotProps:v}),k=Ot(S,v==null?void 0:v.ref,e.ref),T=t==="root"?y||u:y,C=yx(b,{...t==="root"&&!u&&!f[t]&&s,...t!=="root"&&!f[t]&&s,...x,...T&&!a&&{as:T},...T&&a&&{component:T},ref:k},o);return[b,C]}const rV=t=>{const{classes:e}=t,r=qe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},nV,e);return{...e,...r}},oV=oe(kf,{shouldForwardProp:t=>qr(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Cf})(bt(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${eo.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${eo.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${eo.focused} .${eo.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(Hn()).map(([n])=>({props:{color:n},style:{[`&.${eo.focused} .${eo.notchedOutline}`]:{borderColor:(t.vars||t).palette[n].main}}})),{props:{},style:{[`&.${eo.error} .${eo.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${eo.disabled} .${eo.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),iV=oe(Tk,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(bt(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}})),sV=oe(Ef,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Tf})(bt(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),If=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiOutlinedInput"}),{components:o={},fullWidth:i=!1,inputComponent:s="input",label:a,multiline:l=!1,notched:u,slots:f={},slotProps:p={},type:m="text",...b}=r,v=rV(r),y=To(),x=yl({props:r,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S={...r,color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:y,fullWidth:i,hiddenLabel:x.hiddenLabel,multiline:l,size:x.size,type:m},k=f.root??o.Root??oV,T=f.input??o.Input??sV,[C,O]=_t("notchedOutline",{elementType:iV,className:v.notchedOutline,shouldForwardComponentProp:!0,ownerState:S,externalForwardedProps:{slots:f,slotProps:p},additionalProps:{label:a!=null&&a!==""&&x.required?g.jsxs(A.Fragment,{children:[a," ","*"]}):a}});return g.jsx(Of,{slots:{root:k,input:T},slotProps:p,renderSuffix:I=>g.jsx(C,{...O,notched:typeof u<"u"?u:!!(I.startAdornment||I.filled||I.focused)}),fullWidth:i,inputComponent:s,multiline:l,ref:n,type:m,...b,classes:{...v,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(If.propTypes={autoComplete:c.string,autoFocus:c.bool,classes:c.object,color:c.oneOfType([c.oneOf(["primary","secondary"]),c.string]),components:c.shape({Input:c.elementType,Root:c.elementType}),defaultValue:c.any,disabled:c.bool,endAdornment:c.node,error:c.bool,fullWidth:c.bool,id:c.string,inputComponent:c.elementType,inputProps:c.object,inputRef:kn,label:c.node,margin:c.oneOf(["dense","none"]),maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),multiline:c.bool,name:c.string,notched:c.bool,onChange:c.func,placeholder:c.string,readOnly:c.bool,required:c.bool,rows:c.oneOfType([c.number,c.string]),slotProps:c.shape({input:c.object,notchedOutline:c.oneOfType([c.func,c.object]),root:c.object}),slots:c.shape({input:c.elementType,notchedOutline:c.elementType,root:c.elementType}),startAdornment:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.string,value:c.any}),If.muiName="Input";function aV(t){return Ke("MuiFormLabel",t)}const qc=je("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),lV=t=>{const{classes:e,color:n,focused:r,disabled:o,error:i,filled:s,required:a}=t,l={root:["root",`color${Ne(n)}`,o&&"disabled",i&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return qe(l,aV,e)},cV=oe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color==="secondary"&&e.colorSecondary,n.filled&&e.filled]}})(bt(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(Hn()).map(([e])=>({props:{color:e},style:{[`&.${qc.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${qc.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${qc.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),uV=oe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(bt(({theme:t})=>({[`&.${qc.error}`]:{color:(t.vars||t).palette.error.main}}))),kk=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiFormLabel"}),{children:o,className:i,color:s,component:a="label",disabled:l,error:u,filled:f,focused:p,required:m,...b}=r,v=To(),y=yl({props:r,muiFormControl:v,states:["color","required","focused","disabled","error","filled"]}),x={...r,color:y.color||"primary",component:a,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required},S=lV(x);return g.jsxs(cV,{as:a,ownerState:x,className:ge(S.root,i),ref:n,...b,children:[o,y.required&&g.jsxs(uV,{ownerState:x,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(kk.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["error","info","primary","secondary","success","warning"]),c.string]),component:c.elementType,disabled:c.bool,error:c.bool,filled:c.bool,focused:c.bool,required:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function dV(t){return Ke("MuiInputLabel",t)}je("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const fV=t=>{const{classes:e,formControl:n,size:r,shrink:o,disableAnimation:i,variant:s,required:a}=t,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="normal"&&`size${Ne(r)}`,s],asterisk:[a&&"asterisk"]},u=qe(l,dV,e);return{...e,...u}},pV=oe(kk,{shouldForwardProp:t=>qr(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${qc.asterisk}`]:e.asterisk},e.root,n.formControl&&e.formControl,n.size==="small"&&e.sizeSmall,n.shrink&&e.shrink,!n.disableAnimation&&e.animated,n.focused&&e.focused,e[n.variant]]}})(bt(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:n})=>e==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:n,size:r})=>e==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:n})=>e==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Cy=A.forwardRef(function(e,n){const r=mt({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,margin:i,shrink:s,variant:a,className:l,...u}=r,f=To();let p=s;typeof p>"u"&&f&&(p=f.filled||f.focused||f.adornedStart);const m=yl({props:r,muiFormControl:f,states:["size","variant","required","focused"]}),b={...r,disableAnimation:o,formControl:f,shrink:p,size:m.size,variant:m.variant,required:m.required,focused:m.focused},v=fV(b);return g.jsx(pV,{"data-shrink":p,ref:n,className:ge(v.root,l),...u,ownerState:b,classes:v})});process.env.NODE_ENV!=="production"&&(Cy.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["error","info","primary","secondary","success","warning"]),c.string]),disableAnimation:c.bool,disabled:c.bool,error:c.bool,focused:c.bool,margin:c.oneOf(["dense"]),required:c.bool,shrink:c.bool,size:c.oneOfType([c.oneOf(["normal","small"]),c.string]),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOf(["filled","outlined","standard"])});function hV(t){return Ke("MuiFormControl",t)}je("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const mV=t=>{const{classes:e,margin:n,fullWidth:r}=t,o={root:["root",n!=="none"&&`margin${Ne(n)}`,r&&"fullWidth"]};return qe(o,hV,e)},gV=oe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`margin${Ne(n.margin)}`],n.fullWidth&&e.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ty=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiFormControl"}),{children:o,className:i,color:s="primary",component:a="div",disabled:l=!1,error:u=!1,focused:f,fullWidth:p=!1,hiddenLabel:m=!1,margin:b="none",required:v=!1,size:y="medium",variant:x="outlined",...S}=r,k={...r,color:s,component:a,disabled:l,error:u,fullWidth:p,hiddenLabel:m,margin:b,required:v,size:y,variant:x},T=mV(k),[C,O]=A.useState(()=>{let D=!1;return o&&A.Children.forEach(o,R=>{if(!ec(R,["Input","Select"]))return;const j=ec(R,["Select"])?R.props.input:R;j&&Vz(j.props)&&(D=!0)}),D}),[I,N]=A.useState(()=>{let D=!1;return o&&A.Children.forEach(o,R=>{ec(R,["Input","Select"])&&(Sf(R.props,!0)||Sf(R.props.inputProps,!0))&&(D=!0)}),D}),[L,V]=A.useState(!1);l&&L&&V(!1);const M=f!==void 0&&!l?f:L;let B;const H=A.useRef(!1);process.env.NODE_ENV!=="production"&&(B=()=>(H.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
186
186
  `)),H.current=!0,()=>{H.current=!1}));const F=A.useCallback(()=>{N(!0)},[]),P=A.useCallback(()=>{N(!1)},[]),_=A.useMemo(()=>({adornedStart:C,setAdornedStart:O,color:s,disabled:l,error:u,filled:I,focused:M,fullWidth:p,hiddenLabel:m,size:y,onBlur:()=>{V(!1)},onFocus:()=>{V(!0)},onEmpty:P,onFilled:F,registerEffect:B,required:v,variant:x}),[C,s,l,u,I,M,p,m,B,P,F,v,y,x]);return g.jsx(jc.Provider,{value:_,children:g.jsx(gV,{as:a,ownerState:k,className:ge(T.root,i),ref:n,...S,children:o})})});process.env.NODE_ENV!=="production"&&(Ty.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["primary","secondary","error","info","success","warning"]),c.string]),component:c.elementType,disabled:c.bool,error:c.bool,focused:c.bool,fullWidth:c.bool,hiddenLabel:c.bool,margin:c.oneOf(["dense","none","normal"]),required:c.bool,size:c.oneOfType([c.oneOf(["medium","small"]),c.string]),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOf(["filled","outlined","standard"])});function yV(t){return Ke("MuiFormHelperText",t)}const Ek=je("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Ok;const bV=t=>{const{classes:e,contained:n,size:r,disabled:o,error:i,filled:s,focused:a,required:l}=t,u={root:["root",o&&"disabled",i&&"error",r&&`size${Ne(r)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return qe(u,yV,e)},vV=oe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.size&&e[`size${Ne(n.size)}`],n.contained&&e.contained,n.filled&&e.filled]}})(bt(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Ek.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Ek.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),ky=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiFormHelperText"}),{children:o,className:i,component:s="p",disabled:a,error:l,filled:u,focused:f,margin:p,required:m,variant:b,...v}=r,y=To(),x=yl({props:r,muiFormControl:y,states:["variant","size","disabled","error","filled","focused","required"]}),S={...r,component:s,contained:x.variant==="filled"||x.variant==="outlined",variant:x.variant,size:x.size,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required};delete S.ownerState;const k=bV(S);return g.jsx(vV,{as:s,className:ge(k.root,i),ref:n,...v,ownerState:S,children:o===" "?Ok||(Ok=g.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});process.env.NODE_ENV!=="production"&&(ky.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,disabled:c.bool,error:c.bool,filled:c.bool,focused:c.bool,margin:c.oneOf(["dense"]),required:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOfType([c.oneOf(["filled","outlined","standard"]),c.string])});const hs=A.createContext({});process.env.NODE_ENV!=="production"&&(hs.displayName="ListContext");function xV(t){return Ke("MuiList",t)}je("MuiList",["root","padding","dense","subheader"]);const wV=t=>{const{classes:e,disablePadding:n,dense:r,subheader:o}=t;return qe({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},xV,e)},SV=oe("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disablePadding&&e.padding,n.dense&&e.dense,n.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),Ey=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:u,...f}=r,p=A.useMemo(()=>({dense:a}),[a]),m={...r,component:s,dense:a,disablePadding:l},b=wV(m);return g.jsx(hs.Provider,{value:p,children:g.jsxs(SV,{as:s,className:ge(b.root,i),ref:n,ownerState:m,...f,children:[u,o]})})});process.env.NODE_ENV!=="production"&&(Ey.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,dense:c.bool,disablePadding:c.bool,subheader:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function Oy(t,e,n){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:n?null:t.firstChild}function Mk(t,e,n){return t===e?n?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:n?null:t.lastChild}function _k(t,e){if(e===void 0)return!0;let n=t.innerText;return n===void 0&&(n=t.textContent),n=n.trim().toLowerCase(),n.length===0?!1:e.repeating?n[0]===e.keys[0]:n.startsWith(e.keys.join(""))}function Kc(t,e,n,r,o,i){let s=!1,a=o(t,e,e?n:!1);for(;a;){if(a===t.firstChild){if(s)return!1;s=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!_k(a,i)||l)a=o(t,a,n);else return a.focus(),!0}return!1}const Ik=A.forwardRef(function(e,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:f,variant:p="selectedMenu",...m}=e,b=A.useRef(null),v=A.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});In(()=>{o&&b.current.focus()},[o]),A.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(T,{direction:C})=>{const O=!b.current.style.width;if(T.clientHeight<b.current.clientHeight&&O){const I=`${dx(ci(T))}px`;b.current.style[C==="rtl"?"paddingLeft":"paddingRight"]=I,b.current.style.width=`calc(100% + ${I})`}return b.current}}),[]);const y=T=>{const C=b.current,O=T.key;if(T.ctrlKey||T.metaKey||T.altKey){f&&f(T);return}const N=_n(C).activeElement;if(O==="ArrowDown")T.preventDefault(),Kc(C,N,u,l,Oy);else if(O==="ArrowUp")T.preventDefault(),Kc(C,N,u,l,Mk);else if(O==="Home")T.preventDefault(),Kc(C,null,u,l,Oy);else if(O==="End")T.preventDefault(),Kc(C,null,u,l,Mk);else if(O.length===1){const L=v.current,V=O.toLowerCase(),M=performance.now();L.keys.length>0&&(M-L.lastTime>500?(L.keys=[],L.repeating=!0,L.previousKeyMatched=!0):L.repeating&&V!==L.keys[0]&&(L.repeating=!1)),L.lastTime=M,L.keys.push(V);const B=N&&!L.repeating&&_k(N,L);L.previousKeyMatched&&(B||Kc(C,N,!1,l,Oy,L))?T.preventDefault():L.previousKeyMatched=!1}f&&f(T)},x=Ot(b,n);let S=-1;A.Children.forEach(s,(T,C)=>{if(!A.isValidElement(T)){S===C&&(S+=1,S>=s.length&&(S=-1));return}process.env.NODE_ENV!=="production"&&ai.isFragment(T)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
187
187
  `)),T.props.disabled||(p==="selectedMenu"&&T.props.selected||S===-1)&&(S=C),S===C&&(T.props.disabled||T.props.muiSkipListHighlight||T.type.muiSkipListHighlight)&&(S+=1,S>=s.length&&(S=-1))});const k=A.Children.map(s,(T,C)=>{if(C===S){const O={};return i&&(O.autoFocus=!0),T.props.tabIndex===void 0&&p==="selectedMenu"&&(O.tabIndex=0),A.cloneElement(T,O)}return T});return g.jsx(Ey,{role:"menu",ref:x,className:a,onKeyDown:y,tabIndex:o?0:-1,...m,children:k})});process.env.NODE_ENV!=="production"&&(Ik.propTypes={autoFocus:c.bool,autoFocusItem:c.bool,children:c.node,className:c.string,disabledItemsFocusable:c.bool,disableListWrap:c.bool,onKeyDown:c.func,variant:c.oneOf(["menu","selectedMenu"])});function My(t){return`scale(${t}, ${t**2})`}const CV={entering:{opacity:1,transform:My(1)},entered:{opacity:1,transform:"none"}},_y=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),vl=A.forwardRef(function(e,n){const{addEndListener:r,appear:o=!0,children:i,easing:s,in:a,onEnter:l,onEntered:u,onEntering:f,onExit:p,onExited:m,onExiting:b,style:v,timeout:y="auto",TransitionComponent:x=Pr,...S}=e,k=Ls(),T=A.useRef(),C=wo(),O=A.useRef(null),I=Ot(O,Bs(i),n),N=_=>D=>{if(_){const R=O.current;D===void 0?_(R):_(R,D)}},L=N(f),V=N((_,D)=>{GT(_);const{duration:R,delay:j,easing:K}=ul({style:v,timeout:y,easing:s},{mode:"enter"});let U;y==="auto"?(U=C.transitions.getAutoHeightDuration(_.clientHeight),T.current=U):U=R,_.style.transition=[C.transitions.create("opacity",{duration:U,delay:j}),C.transitions.create("transform",{duration:_y?U:U*.666,delay:j,easing:K})].join(","),l&&l(_,D)}),M=N(u),B=N(b),H=N(_=>{const{duration:D,delay:R,easing:j}=ul({style:v,timeout:y,easing:s},{mode:"exit"});let K;y==="auto"?(K=C.transitions.getAutoHeightDuration(_.clientHeight),T.current=K):K=D,_.style.transition=[C.transitions.create("opacity",{duration:K,delay:R}),C.transitions.create("transform",{duration:_y?K:K*.666,delay:_y?R:R||K*.333,easing:j})].join(","),_.style.opacity=0,_.style.transform=My(.75),p&&p(_)}),F=N(m),P=_=>{y==="auto"&&k.start(T.current||0,_),r&&r(O.current,_)};return g.jsx(x,{appear:o,in:a,nodeRef:O,onEnter:V,onEntered:M,onEntering:L,onExit:H,onExited:F,onExiting:B,addEndListener:P,timeout:y==="auto"?null:y,...S,children:(_,{ownerState:D,...R})=>A.cloneElement(i,{style:{opacity:0,transform:My(.75),visibility:_==="exited"&&!a?"hidden":void 0,...CV[_],...v,...i.props.style},ref:I,...R})})});process.env.NODE_ENV!=="production"&&(vl.propTypes={addEndListener:c.func,appear:c.bool,children:$s.isRequired,easing:c.oneOfType([c.shape({enter:c.string,exit:c.string}),c.string]),in:c.bool,onEnter:c.func,onEntered:c.func,onEntering:c.func,onExit:c.func,onExited:c.func,onExiting:c.func,style:c.object,timeout:c.oneOfType([c.oneOf(["auto"]),c.number,c.shape({appear:c.number,enter:c.number,exit:c.number})])}),vl&&(vl.muiSupportAuto=!0);function TV(t){const e=_n(t);return e.body===t?ci(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function Yc(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function Dk(t){return parseInt(ci(t).getComputedStyle(t).paddingRight,10)||0}function kV(t){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),r=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return n||r}function Ak(t,e,n,r,o){const i=[e,n,...r];[].forEach.call(t.children,s=>{const a=!i.includes(s),l=!kV(s);a&&l&&Yc(s,o)})}function Iy(t,e){let n=-1;return t.some((r,o)=>e(r)?(n=o,!0):!1),n}function EV(t,e){const n=[],r=t.container;if(!e.disableScrollLock){if(TV(r)){const s=dx(ci(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Dk(r)+s}px`;const a=_n(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Dk(l)+s}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=_n(r).body;else{const s=r.parentElement,a=ci(r);i=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:s,property:a})=>{i?s.style.setProperty(a,i):s.style.removeProperty(a)})}}function OV(t){const e=[];return[].forEach.call(t.children,n=>{n.getAttribute("aria-hidden")==="true"&&e.push(n)}),e}class MV{constructor(){this.modals=[],this.containers=[]}add(e,n){let r=this.modals.indexOf(e);if(r!==-1)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&Yc(e.modalRef,!1);const o=OV(n);Ak(n,e.mount,e.modalRef,o,!0);const i=Iy(this.containers,s=>s.container===n);return i!==-1?(this.containers[i].modals.push(e),r):(this.containers.push({modals:[e],container:n,restore:null,hiddenSiblings:o}),r)}mount(e,n){const r=Iy(this.containers,i=>i.modals.includes(e)),o=this.containers[r];o.restore||(o.restore=EV(o,n))}remove(e,n=!0){const r=this.modals.indexOf(e);if(r===-1)return r;const o=Iy(this.containers,s=>s.modals.includes(e)),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&Yc(e.modalRef,n),Ak(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&Yc(s.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}const _V=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function IV(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function DV(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=r=>t.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=e(`[name="${t.name}"]:checked`);return n||(n=e(`[name="${t.name}"]`)),n!==t}function AV(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||DV(t))}function PV(t){const e=[],n=[];return Array.from(t.querySelectorAll(_V)).forEach((r,o)=>{const i=IV(r);i===-1||!AV(r)||(i===0?e.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(e)}function NV(){return!0}function Gc(t){const{children:e,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=PV,isEnabled:s=NV,open:a}=t,l=A.useRef(!1),u=A.useRef(null),f=A.useRef(null),p=A.useRef(null),m=A.useRef(null),b=A.useRef(!1),v=A.useRef(null),y=Ot(Bs(e),v),x=A.useRef(null);A.useEffect(()=>{!a||!v.current||(b.current=!n)},[n,a]),A.useEffect(()=>{if(!a||!v.current)return;const T=_n(v.current);return v.current.contains(T.activeElement)||(v.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
188
188
  `)),v.current.setAttribute("tabIndex","-1")),b.current&&v.current.focus()),()=>{o||(p.current&&p.current.focus&&(l.current=!0,p.current.focus()),p.current=null)}},[a]),A.useEffect(()=>{if(!a||!v.current)return;const T=_n(v.current),C=N=>{x.current=N,!(r||!s()||N.key!=="Tab")&&T.activeElement===v.current&&N.shiftKey&&(l.current=!0,f.current&&f.current.focus())},O=()=>{var V,M;const N=v.current;if(N===null)return;if(!T.hasFocus()||!s()||l.current){l.current=!1;return}if(N.contains(T.activeElement)||r&&T.activeElement!==u.current&&T.activeElement!==f.current)return;if(T.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!b.current)return;let L=[];if((T.activeElement===u.current||T.activeElement===f.current)&&(L=i(v.current)),L.length>0){const B=!!((V=x.current)!=null&&V.shiftKey&&((M=x.current)==null?void 0:M.key)==="Tab"),H=L[0],F=L[L.length-1];typeof H!="string"&&typeof F!="string"&&(B?F.focus():H.focus())}else N.focus()};T.addEventListener("focusin",O),T.addEventListener("keydown",C,!0);const I=setInterval(()=>{T.activeElement&&T.activeElement.tagName==="BODY"&&O()},50);return()=>{clearInterval(I),T.removeEventListener("focusin",O),T.removeEventListener("keydown",C,!0)}},[n,r,o,s,a,i]);const S=T=>{p.current===null&&(p.current=T.relatedTarget),b.current=!0,m.current=T.target;const C=e.props.onFocus;C&&C(T)},k=T=>{p.current===null&&(p.current=T.relatedTarget),b.current=!0};return g.jsxs(A.Fragment,{children:[g.jsx("div",{tabIndex:a?0:-1,onFocus:k,ref:u,"data-testid":"sentinelStart"}),A.cloneElement(e,{ref:y,onFocus:S}),g.jsx("div",{tabIndex:a?0:-1,onFocus:k,ref:f,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Gc.propTypes={children:$s,disableAutoFocus:c.bool,disableEnforceFocus:c.bool,disableRestoreFocus:c.bool,getTabbable:c.func,isEnabled:c.func,open:c.bool.isRequired}),process.env.NODE_ENV!=="production"&&(Gc.propTypes=Mm(Gc.propTypes));function $V(t){return Ke("MuiBackdrop",t)}je("MuiBackdrop",["root","invisible"]);const LV=t=>{const{classes:e,invisible:n}=t;return qe({root:["root",n&&"invisible"]},$V,e)},BV=oe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.invisible&&e.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Dy=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiBackdrop"}),{children:o,className:i,component:s="div",invisible:a=!1,open:l,components:u={},componentsProps:f={},slotProps:p={},slots:m={},TransitionComponent:b,transitionDuration:v,...y}=r,x={...r,component:s,invisible:a},S=LV(x),k={transition:b,root:u.Root,...m},T={...f,...p},C={slots:k,slotProps:T},[O,I]=_t("root",{elementType:BV,externalForwardedProps:C,className:ge(S.root,i),ownerState:x}),[N,L]=_t("transition",{elementType:Ho,externalForwardedProps:C,ownerState:x});return g.jsx(N,{in:l,timeout:v,...y,...L,children:g.jsx(O,{"aria-hidden":!0,...I,classes:S,ref:n,children:o})})});process.env.NODE_ENV!=="production"&&(Dy.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,components:c.shape({Root:c.elementType}),componentsProps:c.shape({root:c.object}),invisible:c.bool,open:c.bool.isRequired,slotProps:c.shape({root:c.oneOfType([c.func,c.object]),transition:c.oneOfType([c.func,c.object])}),slots:c.shape({root:c.elementType,transition:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),TransitionComponent:c.elementType,transitionDuration:c.oneOfType([c.number,c.shape({appear:c.number,enter:c.number,exit:c.number})])});function FV(t){return typeof t=="function"?t():t}function RV(t){return t?t.props.hasOwnProperty("in"):!1}const Pk=()=>{},Df=new MV;function zV(t){const{container:e,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:s,children:a,onClose:l,open:u,rootRef:f}=t,p=A.useRef({}),m=A.useRef(null),b=A.useRef(null),v=Ot(b,f),[y,x]=A.useState(!u),S=RV(a);let k=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(k=!1);const T=()=>_n(m.current),C=()=>(p.current.modalRef=b.current,p.current.mount=m.current,p.current),O=()=>{Df.mount(C(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},I=ze(()=>{const _=FV(e)||T().body;Df.add(C(),_),b.current&&O()}),N=()=>Df.isTopModal(C()),L=ze(_=>{m.current=_,_&&(u&&N()?O():b.current&&Yc(b.current,k))}),V=A.useCallback(()=>{Df.remove(C(),k)},[k]);A.useEffect(()=>()=>{V()},[V]),A.useEffect(()=>{u?I():(!S||!o)&&V()},[u,V,S,o,I]);const M=_=>D=>{var R;(R=_.onKeyDown)==null||R.call(_,D),!(D.key!=="Escape"||D.which===229||!N())&&(n||(D.stopPropagation(),l&&l(D,"escapeKeyDown")))},B=_=>D=>{var R;(R=_.onClick)==null||R.call(_,D),D.target===D.currentTarget&&l&&l(D,"backdropClick")};return{getRootProps:(_={})=>{const D=vx(t);delete D.onTransitionEnter,delete D.onTransitionExited;const R={...D,..._};return{role:"presentation",...R,onKeyDown:M(R),ref:v}},getBackdropProps:(_={})=>{const D=_;return{"aria-hidden":!0,...D,onClick:B(D),open:u}},getTransitionProps:()=>{const _=()=>{x(!1),i&&i()},D=()=>{x(!0),s&&s(),o&&V()};return{onEnter:ox(_,(a==null?void 0:a.props.onEnter)??Pk),onExited:ox(D,(a==null?void 0:a.props.onExited)??Pk)}},rootRef:v,portalRef:L,isTopModal:N,exited:y,hasTransition:S}}function VV(t){return Ke("MuiModal",t)}je("MuiModal",["root","hidden","backdrop"]);const HV=t=>{const{open:e,exited:n,classes:r}=t;return qe({root:["root",!e&&n&&"hidden"],backdrop:["backdrop"]},VV,r)},WV=oe("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.open&&n.exited&&e.hidden]}})(bt(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),jV=oe(Dy,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),Ay=A.forwardRef(function(e,n){const r=mt({name:"MuiModal",props:e}),{BackdropComponent:o=jV,BackdropProps:i,classes:s,className:a,closeAfterTransition:l=!1,children:u,container:f,component:p,components:m={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:k=!1,disableScrollLock:T=!1,hideBackdrop:C=!1,keepMounted:O=!1,onBackdropClick:I,onClose:N,onTransitionEnter:L,onTransitionExited:V,open:M,slotProps:B={},slots:H={},theme:F,...P}=r,_={...r,closeAfterTransition:l,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:k,disableScrollLock:T,hideBackdrop:C,keepMounted:O},{getRootProps:D,getBackdropProps:R,getTransitionProps:j,portalRef:K,isTopModal:U,exited:Y,hasTransition:fe}=zV({..._,rootRef:n}),ue={..._,exited:Y},pe=HV(ue),Z={};if(u.props.tabIndex===void 0&&(Z.tabIndex="-1"),fe){const{onEnter:ye,onExited:X}=j();Z.onEnter=ye,Z.onExited=X}const te={slots:{root:m.Root,backdrop:m.Backdrop,...H},slotProps:{...b,...B}},[ce,ne]=_t("root",{ref:n,elementType:WV,externalForwardedProps:{...te,...P,component:p},getSlotProps:D,ownerState:ue,className:ge(a,pe==null?void 0:pe.root,!ue.open&&ue.exited&&(pe==null?void 0:pe.hidden))}),[re,le]=_t("backdrop",{ref:i==null?void 0:i.ref,elementType:o,externalForwardedProps:te,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:ye=>R({...ye,onClick:X=>{I&&I(X),ye!=null&&ye.onClick&&ye.onClick(X)}}),className:ge(i==null?void 0:i.className,pe==null?void 0:pe.backdrop),ownerState:ue});return!O&&!M&&(!fe||Y)?null:g.jsx(Hc,{ref:K,container:f,disablePortal:S,children:g.jsxs(ce,{...ne,children:[!C&&o?g.jsx(re,{...le}):null,g.jsx(Gc,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:k,isEnabled:U,open:M,children:A.cloneElement(u,Z)})]})})});process.env.NODE_ENV!=="production"&&(Ay.propTypes={BackdropComponent:c.elementType,BackdropProps:c.object,children:$s.isRequired,classes:c.object,className:c.string,closeAfterTransition:c.bool,component:c.elementType,components:c.shape({Backdrop:c.elementType,Root:c.elementType}),componentsProps:c.shape({backdrop:c.oneOfType([c.func,c.object]),root:c.oneOfType([c.func,c.object])}),container:c.oneOfType([li,c.func]),disableAutoFocus:c.bool,disableEnforceFocus:c.bool,disableEscapeKeyDown:c.bool,disablePortal:c.bool,disableRestoreFocus:c.bool,disableScrollLock:c.bool,hideBackdrop:c.bool,keepMounted:c.bool,onBackdropClick:c.func,onClose:c.func,onTransitionEnter:c.func,onTransitionExited:c.func,open:c.bool.isRequired,slotProps:c.shape({backdrop:c.oneOfType([c.func,c.object]),root:c.oneOfType([c.func,c.object])}),slots:c.shape({backdrop:c.elementType,root:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function UV(t){return Ke("MuiPopover",t)}je("MuiPopover",["root","paper"]);function Nk(t,e){let n=0;return typeof e=="number"?n=e:e==="center"?n=t.height/2:e==="bottom"&&(n=t.height),n}function $k(t,e){let n=0;return typeof e=="number"?n=e:e==="center"?n=t.width/2:e==="right"&&(n=t.width),n}function Lk(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function Jc(t){return typeof t=="function"?t():t}const qV=t=>{const{classes:e}=t;return qe({root:["root"],paper:["paper"]},UV,e)},KV=oe(Ay,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Bk=oe(fs,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Fk=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:u,className:f,container:p,elevation:m=8,marginThreshold:b=16,open:v,PaperProps:y={},slots:x={},slotProps:S={},transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:T,transitionDuration:C="auto",TransitionProps:O={},disableScrollLock:I=!1,...N}=r,L=A.useRef(),V={...r,anchorOrigin:s,anchorReference:l,elevation:m,marginThreshold:b,transformOrigin:k,TransitionComponent:T,transitionDuration:C,TransitionProps:O},M=qV(V),B=A.useCallback(()=>{if(l==="anchorPosition")return process.env.NODE_ENV!=="production"&&(a||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),a;const le=Jc(i),ye=le&&le.nodeType===1?le:_n(L.current).body,X=ye.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const ee=ye.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ee.top===0&&ee.left===0&&ee.right===0&&ee.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
189
- `))}return{top:X.top+Nk(X,s.vertical),left:X.left+$k(X,s.horizontal)}},[i,s.horizontal,s.vertical,a,l]),H=A.useCallback(le=>({vertical:Nk(le,k.vertical),horizontal:$k(le,k.horizontal)}),[k.horizontal,k.vertical]),F=A.useCallback(le=>{const ye={width:le.offsetWidth,height:le.offsetHeight},X=H(ye);if(l==="none")return{top:null,left:null,transformOrigin:Lk(X)};const ee=B();let ie=ee.top-X.vertical,we=ee.left-X.horizontal;const Ce=ie+ye.height,Ae=we+ye.width,Me=ci(Jc(i)),Ie=Me.innerHeight-b,me=Me.innerWidth-b;if(b!==null&&ie<b){const Be=ie-b;ie-=Be,X.vertical+=Be}else if(b!==null&&Ce>Ie){const Be=Ce-Ie;ie-=Be,X.vertical+=Be}if(process.env.NODE_ENV!=="production"&&ye.height>Ie&&ye.height&&Ie&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ye.height-Ie}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
190
- `)),b!==null&&we<b){const Be=we-b;we-=Be,X.horizontal+=Be}else if(Ae>me){const Be=Ae-me;we-=Be,X.horizontal+=Be}return{top:`${Math.round(ie)}px`,left:`${Math.round(we)}px`,transformOrigin:Lk(X)}},[i,l,B,H,b]),[P,_]=A.useState(v),D=A.useCallback(()=>{const le=L.current;if(!le)return;const ye=F(le);ye.top!==null&&le.style.setProperty("top",ye.top),ye.left!==null&&(le.style.left=ye.left),le.style.transformOrigin=ye.transformOrigin,_(!0)},[F]);A.useEffect(()=>(I&&window.addEventListener("scroll",D),()=>window.removeEventListener("scroll",D)),[i,I,D]);const R=()=>{D()},j=()=>{_(!1)};A.useEffect(()=>{v&&D()}),A.useImperativeHandle(o,()=>v?{updatePosition:()=>{D()}}:null,[v,D]),A.useEffect(()=>{if(!v)return;const le=ix(()=>{D()}),ye=ci(Jc(i));return ye.addEventListener("resize",le),()=>{le.clear(),ye.removeEventListener("resize",le)}},[i,v,D]);let K=C;const U={slots:{transition:T,...x},slotProps:{transition:O,paper:y,...S}},[Y,fe]=_t("transition",{elementType:vl,externalForwardedProps:U,ownerState:V,getSlotProps:le=>({...le,onEntering:(ye,X)=>{var ee;(ee=le.onEntering)==null||ee.call(le,ye,X),R()},onExited:ye=>{var X;(X=le.onExited)==null||X.call(le,ye),j()}}),additionalProps:{appear:!0,in:v}});C==="auto"&&!Y.muiSupportAuto&&(K=void 0);const ue=p||(i?_n(Jc(i)).body:void 0),[pe,{slots:Z,slotProps:te,...ce}]=_t("root",{ref:n,elementType:KV,externalForwardedProps:{...U,...N},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:x.backdrop},slotProps:{backdrop:TL(typeof S.backdrop=="function"?S.backdrop(V):S.backdrop,{invisible:!0})},container:ue,open:v},ownerState:V,className:ge(M.root,f)}),[ne,re]=_t("paper",{ref:L,className:M.paper,elementType:Bk,externalForwardedProps:U,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:P?void 0:{opacity:0}},ownerState:V});return g.jsx(pe,{...ce,...!Wc(pe)&&{slots:Z,slotProps:te,disableScrollLock:I},children:g.jsx(Y,{...fe,timeout:K,children:g.jsx(ne,{...re,children:u})})})});process.env.NODE_ENV!=="production"&&(Fk.propTypes={action:kn,anchorEl:si(c.oneOfType([li,c.func]),t=>{if(t.open&&(!t.anchorReference||t.anchorReference==="anchorEl")){const e=Jc(t.anchorEl);if(e&&e.nodeType===1){const n=e.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
189
+ `))}return{top:X.top+Nk(X,s.vertical),left:X.left+$k(X,s.horizontal)}},[i,s.horizontal,s.vertical,a,l]),H=A.useCallback(le=>({vertical:Nk(le,k.vertical),horizontal:$k(le,k.horizontal)}),[k.horizontal,k.vertical]),F=A.useCallback(le=>{const ye={width:le.offsetWidth,height:le.offsetHeight},X=H(ye);if(l==="none")return{top:null,left:null,transformOrigin:Lk(X)};const ee=B();let ie=ee.top-X.vertical,we=ee.left-X.horizontal;const Ce=ie+ye.height,Pe=we+ye.width,Me=ci(Jc(i)),Ie=Me.innerHeight-b,me=Me.innerWidth-b;if(b!==null&&ie<b){const Be=ie-b;ie-=Be,X.vertical+=Be}else if(b!==null&&Ce>Ie){const Be=Ce-Ie;ie-=Be,X.vertical+=Be}if(process.env.NODE_ENV!=="production"&&ye.height>Ie&&ye.height&&Ie&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ye.height-Ie}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
190
+ `)),b!==null&&we<b){const Be=we-b;we-=Be,X.horizontal+=Be}else if(Pe>me){const Be=Pe-me;we-=Be,X.horizontal+=Be}return{top:`${Math.round(ie)}px`,left:`${Math.round(we)}px`,transformOrigin:Lk(X)}},[i,l,B,H,b]),[P,_]=A.useState(v),D=A.useCallback(()=>{const le=L.current;if(!le)return;const ye=F(le);ye.top!==null&&le.style.setProperty("top",ye.top),ye.left!==null&&(le.style.left=ye.left),le.style.transformOrigin=ye.transformOrigin,_(!0)},[F]);A.useEffect(()=>(I&&window.addEventListener("scroll",D),()=>window.removeEventListener("scroll",D)),[i,I,D]);const R=()=>{D()},j=()=>{_(!1)};A.useEffect(()=>{v&&D()}),A.useImperativeHandle(o,()=>v?{updatePosition:()=>{D()}}:null,[v,D]),A.useEffect(()=>{if(!v)return;const le=ix(()=>{D()}),ye=ci(Jc(i));return ye.addEventListener("resize",le),()=>{le.clear(),ye.removeEventListener("resize",le)}},[i,v,D]);let K=C;const U={slots:{transition:T,...x},slotProps:{transition:O,paper:y,...S}},[Y,fe]=_t("transition",{elementType:vl,externalForwardedProps:U,ownerState:V,getSlotProps:le=>({...le,onEntering:(ye,X)=>{var ee;(ee=le.onEntering)==null||ee.call(le,ye,X),R()},onExited:ye=>{var X;(X=le.onExited)==null||X.call(le,ye),j()}}),additionalProps:{appear:!0,in:v}});C==="auto"&&!Y.muiSupportAuto&&(K=void 0);const ue=p||(i?_n(Jc(i)).body:void 0),[pe,{slots:Z,slotProps:te,...ce}]=_t("root",{ref:n,elementType:KV,externalForwardedProps:{...U,...N},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:x.backdrop},slotProps:{backdrop:TL(typeof S.backdrop=="function"?S.backdrop(V):S.backdrop,{invisible:!0})},container:ue,open:v},ownerState:V,className:ge(M.root,f)}),[ne,re]=_t("paper",{ref:L,className:M.paper,elementType:Bk,externalForwardedProps:U,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:P?void 0:{opacity:0}},ownerState:V});return g.jsx(pe,{...ce,...!Wc(pe)&&{slots:Z,slotProps:te,disableScrollLock:I},children:g.jsx(Y,{...fe,timeout:K,children:g.jsx(ne,{...re,children:u})})})});process.env.NODE_ENV!=="production"&&(Fk.propTypes={action:kn,anchorEl:si(c.oneOfType([li,c.func]),t=>{if(t.open&&(!t.anchorReference||t.anchorReference==="anchorEl")){const e=Jc(t.anchorEl);if(e&&e.nodeType===1){const n=e.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
191
191
  `))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${e}\` instead.`].join(`
192
192
  `))}return null}),anchorOrigin:c.shape({horizontal:c.oneOfType([c.oneOf(["center","left","right"]),c.number]).isRequired,vertical:c.oneOfType([c.oneOf(["bottom","center","top"]),c.number]).isRequired}),anchorPosition:c.shape({left:c.number.isRequired,top:c.number.isRequired}),anchorReference:c.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:c.elementType,BackdropProps:c.object,children:c.node,classes:c.object,className:c.string,container:c.oneOfType([li,c.func]),disableScrollLock:c.bool,elevation:hx,marginThreshold:c.number,onClose:c.func,open:c.bool.isRequired,PaperProps:c.shape({component:Ba}),slotProps:c.shape({backdrop:c.oneOfType([c.func,c.object]),paper:c.oneOfType([c.func,c.object]),root:c.oneOfType([c.func,c.object]),transition:c.oneOfType([c.func,c.object])}),slots:c.shape({backdrop:c.elementType,paper:c.elementType,root:c.elementType,transition:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),transformOrigin:c.shape({horizontal:c.oneOfType([c.oneOf(["center","left","right"]),c.number]).isRequired,vertical:c.oneOfType([c.oneOf(["bottom","center","top"]),c.number]).isRequired}),TransitionComponent:c.elementType,transitionDuration:c.oneOfType([c.oneOf(["auto"]),c.number,c.shape({appear:c.number,enter:c.number,exit:c.number})]),TransitionProps:c.object});function YV(t){return Ke("MuiMenu",t)}je("MuiMenu",["root","paper","list"]);const GV={vertical:"top",horizontal:"right"},JV={vertical:"top",horizontal:"left"},XV=t=>{const{classes:e}=t;return qe({root:["root"],paper:["paper"],list:["list"]},YV,e)},ZV=oe(Fk,{shouldForwardProp:t=>qr(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),QV=oe(Bk,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),eH=oe(Ik,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),Rk=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:s,disableAutoFocusItem:a=!1,MenuListProps:l={},onClose:u,open:f,PaperProps:p={},PopoverClasses:m,transitionDuration:b="auto",TransitionProps:{onEntering:v,...y}={},variant:x="selectedMenu",slots:S={},slotProps:k={},...T}=r,C=Rm(),O={...r,autoFocus:o,disableAutoFocusItem:a,MenuListProps:l,onEntering:v,PaperProps:p,transitionDuration:b,TransitionProps:y,variant:x},I=XV(O),N=o&&!a&&f,L=A.useRef(null),V=(K,U)=>{L.current&&L.current.adjustStyleForScrollbar(K,{direction:C?"rtl":"ltr"}),v&&v(K,U)},M=K=>{K.key==="Tab"&&(K.preventDefault(),u&&u(K,"tabKeyDown"))};let B=-1;A.Children.map(i,(K,U)=>{A.isValidElement(K)&&(process.env.NODE_ENV!=="production"&&ai.isFragment(K)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
193
- `)),K.props.disabled||(x==="selectedMenu"&&K.props.selected||B===-1)&&(B=U))});const H={slots:S,slotProps:{list:l,transition:y,paper:p,...k}},F=Mt({elementType:S.root,externalSlotProps:k.root,ownerState:O,className:[I.root,s]}),[P,_]=_t("paper",{className:I.paper,elementType:QV,externalForwardedProps:H,shouldForwardComponentProp:!0,ownerState:O}),[D,R]=_t("list",{className:ge(I.list,l.className),elementType:eH,shouldForwardComponentProp:!0,externalForwardedProps:H,getSlotProps:K=>({...K,onKeyDown:U=>{var Y;M(U),(Y=K.onKeyDown)==null||Y.call(K,U)}}),ownerState:O}),j=typeof H.slotProps.transition=="function"?H.slotProps.transition(O):H.slotProps.transition;return g.jsx(ZV,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?GV:JV,slots:{root:S.root,paper:P,backdrop:S.backdrop,...S.transition&&{transition:S.transition}},slotProps:{root:F,paper:_,backdrop:typeof k.backdrop=="function"?k.backdrop(O):k.backdrop,transition:{...j,onEntering:(...K)=>{var U;V(...K),(U=j==null?void 0:j.onEntering)==null||U.call(j,...K)}}},open:f,ref:n,transitionDuration:b,ownerState:O,...T,classes:m,children:g.jsx(D,{actions:L,autoFocus:o&&(B===-1||a),autoFocusItem:N,variant:x,...R,children:i})})});process.env.NODE_ENV!=="production"&&(Rk.propTypes={anchorEl:c.oneOfType([li,c.func]),autoFocus:c.bool,children:c.node,classes:c.object,className:c.string,disableAutoFocusItem:c.bool,MenuListProps:c.object,onClose:c.func,open:c.bool.isRequired,PaperProps:c.object,PopoverClasses:c.object,slotProps:c.shape({backdrop:c.oneOfType([c.func,c.object]),list:c.oneOfType([c.func,c.object]),paper:c.oneOfType([c.func,c.object]),root:c.oneOfType([c.func,c.object]),transition:c.oneOfType([c.func,c.object])}),slots:c.shape({backdrop:c.elementType,list:c.elementType,paper:c.elementType,root:c.elementType,transition:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),transitionDuration:c.oneOfType([c.oneOf(["auto"]),c.number,c.shape({appear:c.number,enter:c.number,exit:c.number})]),TransitionProps:c.object,variant:c.oneOf(["menu","selectedMenu"])});function tH(t){return Ke("MuiNativeSelect",t)}const Py=je("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),nH=t=>{const{classes:e,variant:n,disabled:r,multiple:o,open:i,error:s}=t,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${Ne(n)}`,i&&"iconOpen",r&&"disabled"]};return qe(a,tH,e)},zk=oe("select",{name:"MuiNativeSelect"})(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Py.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),rH=oe(zk,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:qr,overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.select,e[n.variant],n.error&&e.error,{[`&.${Py.multiple}`]:e.multiple}]}})({}),Vk=oe("svg",{name:"MuiNativeSelect"})(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Py.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),oH=oe(Vk,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${Ne(n.variant)}`],n.open&&e.iconOpen]}})({}),Hk=A.forwardRef(function(e,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:l="standard",...u}=e,f={...e,disabled:o,variant:l,error:i},p=nH(f);return g.jsxs(A.Fragment,{children:[g.jsx(rH,{ownerState:f,className:ge(p.select,r),disabled:o,ref:a||n,...u}),e.multiple?null:g.jsx(oH,{as:s,ownerState:f,className:p.icon})]})});process.env.NODE_ENV!=="production"&&(Hk.propTypes={children:c.node,classes:c.object,className:c.string,disabled:c.bool,error:c.bool,IconComponent:c.elementType.isRequired,inputRef:kn,multiple:c.bool,name:c.string,onChange:c.func,value:c.any,variant:c.oneOf(["standard","outlined","filled"])});function Wk(t){return Ke("MuiSelect",t)}const xi=je("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var jk;const iH=oe(zk,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`&.${xi.select}`]:e.select},{[`&.${xi.select}`]:e[n.variant]},{[`&.${xi.error}`]:e.error},{[`&.${xi.multiple}`]:e.multiple}]}})({[`&.${xi.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),sH=oe(Vk,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${Ne(n.variant)}`],n.open&&e.iconOpen]}})({}),aH=oe("input",{shouldForwardProp:t=>cw(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Uk(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function lH(t){return t==null||typeof t=="string"&&!t.trim()}const cH=t=>{const{classes:e,variant:n,disabled:r,multiple:o,open:i,error:s}=t,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${Ne(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return qe(a,Wk,e)},qk=A.forwardRef(function(e,n){var Ve;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:s,children:a,className:l,defaultOpen:u,defaultValue:f,disabled:p,displayEmpty:m,error:b=!1,IconComponent:v,inputRef:y,labelId:x,MenuProps:S={},multiple:k,name:T,onBlur:C,onChange:O,onClose:I,onFocus:N,onOpen:L,open:V,readOnly:M,renderValue:B,required:H,SelectDisplayProps:F={},tabIndex:P,type:_,value:D,variant:R="standard",...j}=e,[K,U]=Lo({controlled:D,default:f,name:"Select"}),[Y,fe]=Lo({controlled:V,default:u,name:"Select"}),ue=A.useRef(null),pe=A.useRef(null),[Z,te]=A.useState(null),{current:ce}=A.useRef(V!=null),[ne,re]=A.useState(),le=Ot(n,y),ye=A.useCallback(Ee=>{pe.current=Ee,Ee&&te(Ee)},[]),X=Z==null?void 0:Z.parentNode;A.useImperativeHandle(le,()=>({focus:()=>{pe.current.focus()},node:ue.current,value:K}),[K]),A.useEffect(()=>{u&&Y&&Z&&!ce&&(re(s?null:X.clientWidth),pe.current.focus())},[Z,s]),A.useEffect(()=>{i&&pe.current.focus()},[i]),A.useEffect(()=>{if(!x)return;const Ee=_n(pe.current).getElementById(x);if(Ee){const He=()=>{getSelection().isCollapsed&&pe.current.focus()};return Ee.addEventListener("click",He),()=>{Ee.removeEventListener("click",He)}}},[x]);const ee=(Ee,He)=>{Ee?L&&L(He):I&&I(He),ce||(re(s?null:X.clientWidth),fe(Ee))},ie=Ee=>{Ee.button===0&&(Ee.preventDefault(),pe.current.focus(),ee(!0,Ee))},we=Ee=>{ee(!1,Ee)},Ce=A.Children.toArray(a),Ae=Ee=>{const He=Ce.find(Ye=>Ye.props.value===Ee.target.value);He!==void 0&&(U(He.props.value),O&&O(Ee,He))},Me=Ee=>He=>{let Ye;if(He.currentTarget.hasAttribute("tabindex")){if(k){Ye=Array.isArray(K)?K.slice():[];const Qe=K.indexOf(Ee.props.value);Qe===-1?Ye.push(Ee.props.value):Ye.splice(Qe,1)}else Ye=Ee.props.value;if(Ee.props.onClick&&Ee.props.onClick(He),K!==Ye&&(U(Ye),O)){const Qe=He.nativeEvent||He,Pt=new Qe.constructor(Qe.type,Qe);Object.defineProperty(Pt,"target",{writable:!0,value:{value:Ye,name:T}}),O(Pt,Ee)}k||ee(!1,He)}},Ie=Ee=>{M||[" ","ArrowUp","ArrowDown","Enter"].includes(Ee.key)&&(Ee.preventDefault(),ee(!0,Ee))},me=Z!==null&&Y,Be=Ee=>{!me&&C&&(Object.defineProperty(Ee,"target",{writable:!0,value:{value:K,name:T}}),C(Ee))};delete j["aria-invalid"];let De,yt;const ct=[];let wn=!1,Pn=!1;(Sf({value:K})||m)&&(B?De=B(K):wn=!0);const on=Ce.map(Ee=>{if(!A.isValidElement(Ee))return null;process.env.NODE_ENV!=="production"&&ai.isFragment(Ee)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
193
+ `)),K.props.disabled||(x==="selectedMenu"&&K.props.selected||B===-1)&&(B=U))});const H={slots:S,slotProps:{list:l,transition:y,paper:p,...k}},F=Mt({elementType:S.root,externalSlotProps:k.root,ownerState:O,className:[I.root,s]}),[P,_]=_t("paper",{className:I.paper,elementType:QV,externalForwardedProps:H,shouldForwardComponentProp:!0,ownerState:O}),[D,R]=_t("list",{className:ge(I.list,l.className),elementType:eH,shouldForwardComponentProp:!0,externalForwardedProps:H,getSlotProps:K=>({...K,onKeyDown:U=>{var Y;M(U),(Y=K.onKeyDown)==null||Y.call(K,U)}}),ownerState:O}),j=typeof H.slotProps.transition=="function"?H.slotProps.transition(O):H.slotProps.transition;return g.jsx(ZV,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?GV:JV,slots:{root:S.root,paper:P,backdrop:S.backdrop,...S.transition&&{transition:S.transition}},slotProps:{root:F,paper:_,backdrop:typeof k.backdrop=="function"?k.backdrop(O):k.backdrop,transition:{...j,onEntering:(...K)=>{var U;V(...K),(U=j==null?void 0:j.onEntering)==null||U.call(j,...K)}}},open:f,ref:n,transitionDuration:b,ownerState:O,...T,classes:m,children:g.jsx(D,{actions:L,autoFocus:o&&(B===-1||a),autoFocusItem:N,variant:x,...R,children:i})})});process.env.NODE_ENV!=="production"&&(Rk.propTypes={anchorEl:c.oneOfType([li,c.func]),autoFocus:c.bool,children:c.node,classes:c.object,className:c.string,disableAutoFocusItem:c.bool,MenuListProps:c.object,onClose:c.func,open:c.bool.isRequired,PaperProps:c.object,PopoverClasses:c.object,slotProps:c.shape({backdrop:c.oneOfType([c.func,c.object]),list:c.oneOfType([c.func,c.object]),paper:c.oneOfType([c.func,c.object]),root:c.oneOfType([c.func,c.object]),transition:c.oneOfType([c.func,c.object])}),slots:c.shape({backdrop:c.elementType,list:c.elementType,paper:c.elementType,root:c.elementType,transition:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),transitionDuration:c.oneOfType([c.oneOf(["auto"]),c.number,c.shape({appear:c.number,enter:c.number,exit:c.number})]),TransitionProps:c.object,variant:c.oneOf(["menu","selectedMenu"])});function tH(t){return Ke("MuiNativeSelect",t)}const Py=je("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),nH=t=>{const{classes:e,variant:n,disabled:r,multiple:o,open:i,error:s}=t,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${Ne(n)}`,i&&"iconOpen",r&&"disabled"]};return qe(a,tH,e)},zk=oe("select",{name:"MuiNativeSelect"})(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Py.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),rH=oe(zk,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:qr,overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.select,e[n.variant],n.error&&e.error,{[`&.${Py.multiple}`]:e.multiple}]}})({}),Vk=oe("svg",{name:"MuiNativeSelect"})(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Py.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),oH=oe(Vk,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${Ne(n.variant)}`],n.open&&e.iconOpen]}})({}),Hk=A.forwardRef(function(e,n){const{className:r,disabled:o,error:i,IconComponent:s,inputRef:a,variant:l="standard",...u}=e,f={...e,disabled:o,variant:l,error:i},p=nH(f);return g.jsxs(A.Fragment,{children:[g.jsx(rH,{ownerState:f,className:ge(p.select,r),disabled:o,ref:a||n,...u}),e.multiple?null:g.jsx(oH,{as:s,ownerState:f,className:p.icon})]})});process.env.NODE_ENV!=="production"&&(Hk.propTypes={children:c.node,classes:c.object,className:c.string,disabled:c.bool,error:c.bool,IconComponent:c.elementType.isRequired,inputRef:kn,multiple:c.bool,name:c.string,onChange:c.func,value:c.any,variant:c.oneOf(["standard","outlined","filled"])});function Wk(t){return Ke("MuiSelect",t)}const xi=je("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var jk;const iH=oe(zk,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`&.${xi.select}`]:e.select},{[`&.${xi.select}`]:e[n.variant]},{[`&.${xi.error}`]:e.error},{[`&.${xi.multiple}`]:e.multiple}]}})({[`&.${xi.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),sH=oe(Vk,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${Ne(n.variant)}`],n.open&&e.iconOpen]}})({}),aH=oe("input",{shouldForwardProp:t=>cw(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Uk(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function lH(t){return t==null||typeof t=="string"&&!t.trim()}const cH=t=>{const{classes:e,variant:n,disabled:r,multiple:o,open:i,error:s}=t,a={select:["select",n,r&&"disabled",o&&"multiple",s&&"error"],icon:["icon",`icon${Ne(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return qe(a,Wk,e)},qk=A.forwardRef(function(e,n){var Ve;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:s,children:a,className:l,defaultOpen:u,defaultValue:f,disabled:p,displayEmpty:m,error:b=!1,IconComponent:v,inputRef:y,labelId:x,MenuProps:S={},multiple:k,name:T,onBlur:C,onChange:O,onClose:I,onFocus:N,onOpen:L,open:V,readOnly:M,renderValue:B,required:H,SelectDisplayProps:F={},tabIndex:P,type:_,value:D,variant:R="standard",...j}=e,[K,U]=Lo({controlled:D,default:f,name:"Select"}),[Y,fe]=Lo({controlled:V,default:u,name:"Select"}),ue=A.useRef(null),pe=A.useRef(null),[Z,te]=A.useState(null),{current:ce}=A.useRef(V!=null),[ne,re]=A.useState(),le=Ot(n,y),ye=A.useCallback(Ee=>{pe.current=Ee,Ee&&te(Ee)},[]),X=Z==null?void 0:Z.parentNode;A.useImperativeHandle(le,()=>({focus:()=>{pe.current.focus()},node:ue.current,value:K}),[K]),A.useEffect(()=>{u&&Y&&Z&&!ce&&(re(s?null:X.clientWidth),pe.current.focus())},[Z,s]),A.useEffect(()=>{i&&pe.current.focus()},[i]),A.useEffect(()=>{if(!x)return;const Ee=_n(pe.current).getElementById(x);if(Ee){const He=()=>{getSelection().isCollapsed&&pe.current.focus()};return Ee.addEventListener("click",He),()=>{Ee.removeEventListener("click",He)}}},[x]);const ee=(Ee,He)=>{Ee?L&&L(He):I&&I(He),ce||(re(s?null:X.clientWidth),fe(Ee))},ie=Ee=>{Ee.button===0&&(Ee.preventDefault(),pe.current.focus(),ee(!0,Ee))},we=Ee=>{ee(!1,Ee)},Ce=A.Children.toArray(a),Pe=Ee=>{const He=Ce.find(Ye=>Ye.props.value===Ee.target.value);He!==void 0&&(U(He.props.value),O&&O(Ee,He))},Me=Ee=>He=>{let Ye;if(He.currentTarget.hasAttribute("tabindex")){if(k){Ye=Array.isArray(K)?K.slice():[];const Qe=K.indexOf(Ee.props.value);Qe===-1?Ye.push(Ee.props.value):Ye.splice(Qe,1)}else Ye=Ee.props.value;if(Ee.props.onClick&&Ee.props.onClick(He),K!==Ye&&(U(Ye),O)){const Qe=He.nativeEvent||He,Pt=new Qe.constructor(Qe.type,Qe);Object.defineProperty(Pt,"target",{writable:!0,value:{value:Ye,name:T}}),O(Pt,Ee)}k||ee(!1,He)}},Ie=Ee=>{M||[" ","ArrowUp","ArrowDown","Enter"].includes(Ee.key)&&(Ee.preventDefault(),ee(!0,Ee))},me=Z!==null&&Y,Be=Ee=>{!me&&C&&(Object.defineProperty(Ee,"target",{writable:!0,value:{value:K,name:T}}),C(Ee))};delete j["aria-invalid"];let De,yt;const ct=[];let wn=!1,Pn=!1;(Sf({value:K})||m)&&(B?De=B(K):wn=!0);const on=Ce.map(Ee=>{if(!A.isValidElement(Ee))return null;process.env.NODE_ENV!=="production"&&ai.isFragment(Ee)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
194
194
  `));let He;if(k){if(!Array.isArray(K))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":$o(2));He=K.some(Ye=>Uk(Ye,Ee.props.value)),He&&wn&&ct.push(Ee.props.children)}else He=Uk(K,Ee.props.value),He&&wn&&(yt=Ee.props.children);return He&&(Pn=!0),A.cloneElement(Ee,{"aria-selected":He?"true":"false",onClick:Me(Ee),onKeyUp:Ye=>{Ye.key===" "&&Ye.preventDefault(),Ee.props.onKeyUp&&Ee.props.onKeyUp(Ye)},role:"option",selected:He,value:void 0,"data-value":Ee.props.value})});process.env.NODE_ENV!=="production"&&A.useEffect(()=>{if(!Pn&&!k&&K!==""){const Ee=Ce.map(He=>He.props.value);console.warn([`MUI: You have provided an out-of-range value \`${K}\` for the select ${T?`(name="${T}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${Ee.filter(He=>He!=null).map(He=>`\`${He}\``).join(", ")||'""'}.`].join(`
195
- `))}},[Pn,Ce,k,T,K]),wn&&(k?ct.length===0?De=null:De=ct.reduce((Ee,He,Ye)=>(Ee.push(He),Ye<ct.length-1&&Ee.push(", "),Ee),[]):De=yt);let gn=ne;!s&&ce&&Z&&(gn=X.clientWidth);let Sn;typeof P<"u"?Sn=P:Sn=p?null:0;const Jn=F.id||(T?`mui-component-select-${T}`:void 0),ot={...e,variant:R,value:K,open:me,error:b},Mn=cH(ot),Zt={...S.PaperProps,...(Ve=S.slotProps)==null?void 0:Ve.paper},be=vo();return g.jsxs(A.Fragment,{children:[g.jsx(iH,{as:"div",ref:ye,tabIndex:Sn,role:"combobox","aria-controls":me?be:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":me?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[x,Jn].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":H?"true":void 0,"aria-invalid":b?"true":void 0,onKeyDown:Ie,onMouseDown:p||M?null:ie,onBlur:Be,onFocus:N,...F,ownerState:ot,className:ge(F.className,Mn.select,l),id:Jn,children:lH(De)?jk||(jk=g.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):De}),g.jsx(aH,{"aria-invalid":b,value:Array.isArray(K)?K.join(","):K,name:T,ref:ue,"aria-hidden":!0,onChange:Ae,tabIndex:-1,disabled:p,className:Mn.nativeInput,autoFocus:i,required:H,...j,ownerState:ot}),g.jsx(sH,{as:v,className:Mn.icon,ownerState:ot}),g.jsx(Rk,{id:`menu-${T||""}`,anchorEl:X,open:me,onClose:we,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...S,slotProps:{...S.slotProps,list:{"aria-labelledby":x,role:"listbox","aria-multiselectable":k?"true":void 0,disableListWrap:!0,id:be,...S.MenuListProps},paper:{...Zt,style:{minWidth:gn,...Zt!=null?Zt.style:null}}},children:on})]})});process.env.NODE_ENV!=="production"&&(qk.propTypes={"aria-describedby":c.string,"aria-label":c.string,autoFocus:c.bool,autoWidth:c.bool,children:c.node,classes:c.object,className:c.string,defaultOpen:c.bool,defaultValue:c.any,disabled:c.bool,displayEmpty:c.bool,error:c.bool,IconComponent:c.elementType.isRequired,inputRef:kn,labelId:c.string,MenuProps:c.object,multiple:c.bool,name:c.string,onBlur:c.func,onChange:c.func,onClose:c.func,onFocus:c.func,onOpen:c.func,open:c.bool,readOnly:c.bool,renderValue:c.func,required:c.bool,SelectDisplayProps:c.object,tabIndex:c.oneOfType([c.number,c.string]),type:c.any,value:c.any,variant:c.oneOf(["standard","outlined","filled"])});const uH=Le(g.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),dH=t=>{const{classes:e}=t,r=qe({root:["root"]},Wk,e);return{...e,...r}},Ny={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>qr(t)&&t!=="variant",slot:"Root"},fH=oe(Mf,Ny)(""),pH=oe(If,Ny)(""),hH=oe(_f,Ny)(""),Af=A.forwardRef(function(e,n){const r=mt({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:f=uH,id:p,input:m,inputProps:b,label:v,labelId:y,MenuProps:x,multiple:S=!1,native:k=!1,onClose:T,onOpen:C,open:O,renderValue:I,SelectDisplayProps:N,variant:L="outlined",...V}=r,M=k?Hk:qk,B=To(),H=yl({props:r,muiFormControl:B,states:["variant","error"]}),F=H.variant||L,P={...r,variant:F,classes:s},_=dH(P),{root:D,...R}=_,j=m||{standard:g.jsx(fH,{ownerState:P}),outlined:g.jsx(pH,{label:v,ownerState:P}),filled:g.jsx(hH,{ownerState:P})}[F],K=Ot(n,Bs(j));return g.jsx(A.Fragment,{children:A.cloneElement(j,{inputComponent:M,inputProps:{children:i,error:H.error,IconComponent:f,variant:F,type:void 0,multiple:S,...k?{id:p}:{autoWidth:o,defaultOpen:l,displayEmpty:u,labelId:y,MenuProps:x,onClose:T,onOpen:C,open:O,renderValue:I,SelectDisplayProps:{id:p,...N}},...b,classes:b?Bn(R,b.classes):R,...m?m.props.inputProps:{}},...(S&&k||u)&&F==="outlined"?{notched:!0}:{},ref:K,className:ge(j.props.className,a,_.root),...!m&&{variant:F},...V})})});process.env.NODE_ENV!=="production"&&(Af.propTypes={autoWidth:c.bool,children:c.node,classes:c.object,className:c.string,defaultOpen:c.bool,defaultValue:c.any,displayEmpty:c.bool,IconComponent:c.elementType,id:c.string,input:c.element,inputProps:c.object,label:c.node,labelId:c.string,MenuProps:c.object,multiple:c.bool,native:c.bool,onChange:c.func,onClose:c.func,onOpen:c.func,open:c.bool,renderValue:c.func,SelectDisplayProps:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.oneOfType([c.oneOf([""]),c.any]),variant:c.oneOf(["filled","outlined","standard"])}),Af.muiName="Select";function mH(t){return Ke("MuiTextField",t)}je("MuiTextField",["root"]);const gH={standard:Mf,filled:_f,outlined:If},yH=t=>{const{classes:e}=t;return qe({root:["root"]},mH,e)},bH=oe(Ty,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Xc=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:l="primary",defaultValue:u,disabled:f=!1,error:p=!1,FormHelperTextProps:m,fullWidth:b=!1,helperText:v,id:y,InputLabelProps:x,inputProps:S,InputProps:k,inputRef:T,label:C,maxRows:O,minRows:I,multiline:N=!1,name:L,onBlur:V,onChange:M,onFocus:B,placeholder:H,required:F=!1,rows:P,select:_=!1,SelectProps:D,slots:R={},slotProps:j={},type:K,value:U,variant:Y="outlined",...fe}=r,ue={...r,autoFocus:i,color:l,disabled:f,error:p,fullWidth:b,multiline:N,required:F,select:_,variant:Y},pe=yH(ue);process.env.NODE_ENV!=="production"&&_&&!s&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const Z=vo(y),te=v&&Z?`${Z}-helper-text`:void 0,ce=C&&Z?`${Z}-label`:void 0,ne=gH[Y],re={slots:R,slotProps:{input:k,inputLabel:x,htmlInput:S,formHelperText:m,select:D,...j}},le={},ye=re.slotProps.inputLabel;Y==="outlined"&&(ye&&typeof ye.shrink<"u"&&(le.notched=ye.shrink),le.label=C),_&&((!D||!D.native)&&(le.id=void 0),le["aria-describedby"]=void 0);const[X,ee]=_t("root",{elementType:bH,shouldForwardComponentProp:!0,externalForwardedProps:{...re,...fe},ownerState:ue,className:ge(pe.root,a),ref:n,additionalProps:{disabled:f,error:p,fullWidth:b,required:F,color:l,variant:Y}}),[ie,we]=_t("input",{elementType:ne,externalForwardedProps:re,additionalProps:le,ownerState:ue}),[Ce,Ae]=_t("inputLabel",{elementType:Cy,externalForwardedProps:re,ownerState:ue}),[Me,Ie]=_t("htmlInput",{elementType:"input",externalForwardedProps:re,ownerState:ue}),[me,Be]=_t("formHelperText",{elementType:ky,externalForwardedProps:re,ownerState:ue}),[De,yt]=_t("select",{elementType:Af,externalForwardedProps:re,ownerState:ue}),ct=g.jsx(ie,{"aria-describedby":te,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:b,multiline:N,name:L,rows:P,maxRows:O,minRows:I,type:K,value:U,id:Z,inputRef:T,onBlur:V,onChange:M,onFocus:B,placeholder:H,inputProps:Ie,slots:{input:R.htmlInput?Me:void 0},...we});return g.jsxs(X,{...ee,children:[C!=null&&C!==""&&g.jsx(Ce,{htmlFor:Z,id:ce,...Ae,children:C}),_?g.jsx(De,{"aria-describedby":te,id:Z,labelId:ce,value:U,input:ct,...yt,children:s}):ct,v&&g.jsx(me,{id:te,...Be,children:v})]})});process.env.NODE_ENV!=="production"&&(Xc.propTypes={autoComplete:c.string,autoFocus:c.bool,children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["primary","secondary","error","info","success","warning"]),c.string]),defaultValue:c.any,disabled:c.bool,error:c.bool,FormHelperTextProps:c.object,fullWidth:c.bool,helperText:c.node,id:c.string,InputLabelProps:c.object,inputProps:c.object,InputProps:c.object,inputRef:kn,label:c.node,margin:c.oneOf(["dense","none","normal"]),maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),multiline:c.bool,name:c.string,onBlur:c.func,onChange:c.func,onFocus:c.func,placeholder:c.string,required:c.bool,rows:c.oneOfType([c.number,c.string]),select:c.bool,SelectProps:c.object,size:c.oneOfType([c.oneOf(["medium","small"]),c.string]),slotProps:c.shape({formHelperText:c.oneOfType([c.func,c.object]),htmlInput:c.oneOfType([c.func,c.object]),input:c.oneOfType([c.func,c.object]),inputLabel:c.oneOfType([c.func,c.object]),select:c.oneOfType([c.func,c.object])}),slots:c.shape({formHelperText:c.elementType,htmlInput:c.elementType,input:c.elementType,inputLabel:c.elementType,root:c.elementType,select:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.string,value:c.any,variant:c.oneOf(["filled","outlined","standard"])});function xl(){return(xl=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function $y(t,e){if(t==null)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e.indexOf(n=i[r])>=0||(o[n]=t[n]);return o}function Ly(t){var e=J.useRef(t),n=J.useRef(function(r){e.current&&e.current(r)});return e.current=t,n.current}var wl=function(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=1),t>n?n:t<e?e:t},Zc=function(t){return"touches"in t},By=function(t){return t&&t.ownerDocument.defaultView||self},Kk=function(t,e,n){var r=t.getBoundingClientRect(),o=Zc(e)?(function(i,s){for(var a=0;a<i.length;a++)if(i[a].identifier===s)return i[a];return i[0]})(e.touches,n):e;return{left:wl((o.pageX-(r.left+By(t).pageXOffset))/r.width),top:wl((o.pageY-(r.top+By(t).pageYOffset))/r.height)}},Yk=function(t){!Zc(t)&&t.preventDefault()},Fy=J.memo(function(t){var e=t.onMove,n=t.onKey,r=$y(t,["onMove","onKey"]),o=J.useRef(null),i=Ly(e),s=Ly(n),a=J.useRef(null),l=J.useRef(!1),u=J.useMemo(function(){var b=function(x){Yk(x),(Zc(x)?x.touches.length>0:x.buttons>0)&&o.current?i(Kk(o.current,x,a.current)):y(!1)},v=function(){return y(!1)};function y(x){var S=l.current,k=By(o.current),T=x?k.addEventListener:k.removeEventListener;T(S?"touchmove":"mousemove",b),T(S?"touchend":"mouseup",v)}return[function(x){var S=x.nativeEvent,k=o.current;if(k&&(Yk(S),!(function(C,O){return O&&!Zc(C)})(S,l.current)&&k)){if(Zc(S)){l.current=!0;var T=S.changedTouches||[];T.length&&(a.current=T[0].identifier)}k.focus(),i(Kk(k,S,a.current)),y(!0)}},function(x){var S=x.which||x.keyCode;S<37||S>40||(x.preventDefault(),s({left:S===39?.05:S===37?-.05:0,top:S===40?.05:S===38?-.05:0}))},y]},[s,i]),f=u[0],p=u[1],m=u[2];return J.useEffect(function(){return m},[m]),J.createElement("div",xl({},r,{onTouchStart:f,onMouseDown:f,className:"react-colorful__interactive",ref:o,onKeyDown:p,tabIndex:0,role:"slider"}))}),Qc=function(t){return t.filter(Boolean).join(" ")},Ry=function(t){var e=t.color,n=t.left,r=t.top,o=r===void 0?.5:r,i=Qc(["react-colorful__pointer",t.className]);return J.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},J.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},Wn=function(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=Math.pow(10,e)),Math.round(n*t)/n},Gk=function(t){return wH(zy(t))},zy=function(t){return t[0]==="#"&&(t=t.substring(1)),t.length<6?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?Wn(parseInt(t[3]+t[3],16)/255,2):1}:{r:parseInt(t.substring(0,2),16),g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16),a:t.length===8?Wn(parseInt(t.substring(6,8),16)/255,2):1}},Jk=function(t){return xH(vH(t))},Xk=function(t){var e=t.s,n=t.v,r=t.a,o=(200-e)*n/100;return{h:Wn(t.h),s:Wn(o>0&&o<200?e*n/100/(o<=100?o:200-o)*100:0),l:Wn(o/2),a:Wn(r,2)}},Vy=function(t){var e=Xk(t);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},Hy=function(t){var e=Xk(t);return"hsla("+e.h+", "+e.s+"%, "+e.l+"%, "+e.a+")"},vH=function(t){var e=t.h,n=t.s,r=t.v,o=t.a;e=e/360*6,n/=100,r/=100;var i=Math.floor(e),s=r*(1-n),a=r*(1-(e-i)*n),l=r*(1-(1-e+i)*n),u=i%6;return{r:Wn(255*[r,a,s,s,l,r][u]),g:Wn(255*[l,r,r,a,s,s][u]),b:Wn(255*[s,s,l,r,r,a][u]),a:Wn(o,2)}},Pf=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},xH=function(t){var e=t.r,n=t.g,r=t.b,o=t.a,i=o<1?Pf(Wn(255*o)):"";return"#"+Pf(e)+Pf(n)+Pf(r)+i},wH=function(t){var e=t.r,n=t.g,r=t.b,o=t.a,i=Math.max(e,n,r),s=i-Math.min(e,n,r),a=s?i===e?(n-r)/s:i===n?2+(r-e)/s:4+(e-n)/s:0;return{h:Wn(60*(a<0?a+6:a)),s:Wn(i?s/i*100:0),v:Wn(i/255*100),a:o}},Zk=J.memo(function(t){var e=t.hue,n=t.onChange,r=Qc(["react-colorful__hue",t.className]);return J.createElement("div",{className:r},J.createElement(Fy,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:wl(e+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":Wn(e),"aria-valuemax":"360","aria-valuemin":"0"},J.createElement(Ry,{className:"react-colorful__hue-pointer",left:e/360,color:Vy({h:e,s:100,v:100,a:1})})))}),Qk=J.memo(function(t){var e=t.hsva,n=t.onChange,r={backgroundColor:Vy({h:e.h,s:100,v:100,a:1})};return J.createElement("div",{className:"react-colorful__saturation",style:r},J.createElement(Fy,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:wl(e.s+100*o.left,0,100),v:wl(e.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Wn(e.s)+"%, Brightness "+Wn(e.v)+"%"},J.createElement(Ry,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:Vy(e)})))}),eE=function(t,e){if(t===e)return!0;for(var n in t)if(t[n]!==e[n])return!1;return!0},tE=function(t,e){return t.toLowerCase()===e.toLowerCase()||eE(zy(t),zy(e))};function nE(t,e,n){var r=Ly(n),o=J.useState(function(){return t.toHsva(e)}),i=o[0],s=o[1],a=J.useRef({color:e,hsva:i});J.useEffect(function(){if(!t.equal(e,a.current.color)){var u=t.toHsva(e);a.current={hsva:u,color:e},s(u)}},[e,t]),J.useEffect(function(){var u;eE(i,a.current.hsva)||t.equal(u=t.fromHsva(i),a.current.color)||(a.current={hsva:i,color:u},r(u))},[i,t,r]);var l=J.useCallback(function(u){s(function(f){return Object.assign({},f,u)})},[]);return[i,l]}var SH=typeof window<"u"?J.useLayoutEffect:J.useEffect,CH=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},rE=new Map,oE=function(t){SH(function(){var e=t.current?t.current.ownerDocument:document;if(e!==void 0&&!rE.has(e)){var n=e.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,rE.set(e,n);var r=CH();r&&n.setAttribute("nonce",r),e.head.appendChild(n)}},[])},TH=function(t){var e=t.className,n=t.colorModel,r=t.color,o=r===void 0?n.defaultColor:r,i=t.onChange,s=$y(t,["className","colorModel","color","onChange"]),a=J.useRef(null);oE(a);var l=nE(n,o,i),u=l[0],f=l[1],p=Qc(["react-colorful",e]);return J.createElement("div",xl({},s,{ref:a,className:p}),J.createElement(Qk,{hsva:u,onChange:f}),J.createElement(Zk,{hue:u.h,onChange:f,className:"react-colorful__last-control"}))},kH={defaultColor:"000",toHsva:Gk,fromHsva:function(t){return Jk({h:t.h,s:t.s,v:t.v,a:1})},equal:tE},EH=function(t){return J.createElement(TH,xl({},t,{colorModel:kH}))},OH=function(t){var e=t.className,n=t.hsva,r=t.onChange,o={backgroundImage:"linear-gradient(90deg, "+Hy(Object.assign({},n,{a:0}))+", "+Hy(Object.assign({},n,{a:1}))+")"},i=Qc(["react-colorful__alpha",e]),s=Wn(100*n.a);return J.createElement("div",{className:i},J.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),J.createElement(Fy,{onMove:function(a){r({a:a.left})},onKey:function(a){r({a:wl(n.a+a.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},J.createElement(Ry,{className:"react-colorful__alpha-pointer",left:n.a,color:Hy(n)})))},MH=function(t){var e=t.className,n=t.colorModel,r=t.color,o=r===void 0?n.defaultColor:r,i=t.onChange,s=$y(t,["className","colorModel","color","onChange"]),a=J.useRef(null);oE(a);var l=nE(n,o,i),u=l[0],f=l[1],p=Qc(["react-colorful",e]);return J.createElement("div",xl({},s,{ref:a,className:p}),J.createElement(Qk,{hsva:u,onChange:f}),J.createElement(Zk,{hue:u.h,onChange:f}),J.createElement(OH,{hsva:u,onChange:f,className:"react-colorful__last-control"}))},_H={defaultColor:"0001",toHsva:Gk,fromHsva:Jk,equal:tE},IH=function(t){return J.createElement(MH,xl({},t,{colorModel:_H}))};function DH(t){try{return T$(t)}catch{return null}}const Nf=Xt("ColorPicker",["gradientPicker","colorTextInput","swatchContainer"]),iE=Le(g.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Wy=Xt("ColorSwatchButton",["root","activeIcon","colorNotSet"]),jy=Ut("ColorSwatchButton"),AH=oe("button",{name:jy,slot:"root",overridesResolver:(t,e)=>[e.root,t.ownerState.colorNotSet&&e.colorNotSet]})(({theme:t,ownerState:e})=>({height:t.spacing(2.5),width:t.spacing(2.5),minWidth:t.spacing(2.5),borderRadius:t.shape.borderRadius,borderColor:t.palette.mode==="dark"?t.palette.grey[700]:t.palette.grey[400],borderStyle:"solid",borderWidth:1,cursor:"pointer",padding:0,backgroundClip:"content-box",...e.colorNotSet&&{background:`repeating-conic-gradient(
195
+ `))}},[Pn,Ce,k,T,K]),wn&&(k?ct.length===0?De=null:De=ct.reduce((Ee,He,Ye)=>(Ee.push(He),Ye<ct.length-1&&Ee.push(", "),Ee),[]):De=yt);let gn=ne;!s&&ce&&Z&&(gn=X.clientWidth);let Sn;typeof P<"u"?Sn=P:Sn=p?null:0;const Jn=F.id||(T?`mui-component-select-${T}`:void 0),ot={...e,variant:R,value:K,open:me,error:b},Mn=cH(ot),Zt={...S.PaperProps,...(Ve=S.slotProps)==null?void 0:Ve.paper},be=vo();return g.jsxs(A.Fragment,{children:[g.jsx(iH,{as:"div",ref:ye,tabIndex:Sn,role:"combobox","aria-controls":me?be:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":me?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[x,Jn].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":H?"true":void 0,"aria-invalid":b?"true":void 0,onKeyDown:Ie,onMouseDown:p||M?null:ie,onBlur:Be,onFocus:N,...F,ownerState:ot,className:ge(F.className,Mn.select,l),id:Jn,children:lH(De)?jk||(jk=g.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):De}),g.jsx(aH,{"aria-invalid":b,value:Array.isArray(K)?K.join(","):K,name:T,ref:ue,"aria-hidden":!0,onChange:Pe,tabIndex:-1,disabled:p,className:Mn.nativeInput,autoFocus:i,required:H,...j,ownerState:ot}),g.jsx(sH,{as:v,className:Mn.icon,ownerState:ot}),g.jsx(Rk,{id:`menu-${T||""}`,anchorEl:X,open:me,onClose:we,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...S,slotProps:{...S.slotProps,list:{"aria-labelledby":x,role:"listbox","aria-multiselectable":k?"true":void 0,disableListWrap:!0,id:be,...S.MenuListProps},paper:{...Zt,style:{minWidth:gn,...Zt!=null?Zt.style:null}}},children:on})]})});process.env.NODE_ENV!=="production"&&(qk.propTypes={"aria-describedby":c.string,"aria-label":c.string,autoFocus:c.bool,autoWidth:c.bool,children:c.node,classes:c.object,className:c.string,defaultOpen:c.bool,defaultValue:c.any,disabled:c.bool,displayEmpty:c.bool,error:c.bool,IconComponent:c.elementType.isRequired,inputRef:kn,labelId:c.string,MenuProps:c.object,multiple:c.bool,name:c.string,onBlur:c.func,onChange:c.func,onClose:c.func,onFocus:c.func,onOpen:c.func,open:c.bool,readOnly:c.bool,renderValue:c.func,required:c.bool,SelectDisplayProps:c.object,tabIndex:c.oneOfType([c.number,c.string]),type:c.any,value:c.any,variant:c.oneOf(["standard","outlined","filled"])});const uH=Le(g.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),dH=t=>{const{classes:e}=t,r=qe({root:["root"]},Wk,e);return{...e,...r}},Ny={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>qr(t)&&t!=="variant",slot:"Root"},fH=oe(Mf,Ny)(""),pH=oe(If,Ny)(""),hH=oe(_f,Ny)(""),Af=A.forwardRef(function(e,n){const r=mt({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:i,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:f=uH,id:p,input:m,inputProps:b,label:v,labelId:y,MenuProps:x,multiple:S=!1,native:k=!1,onClose:T,onOpen:C,open:O,renderValue:I,SelectDisplayProps:N,variant:L="outlined",...V}=r,M=k?Hk:qk,B=To(),H=yl({props:r,muiFormControl:B,states:["variant","error"]}),F=H.variant||L,P={...r,variant:F,classes:s},_=dH(P),{root:D,...R}=_,j=m||{standard:g.jsx(fH,{ownerState:P}),outlined:g.jsx(pH,{label:v,ownerState:P}),filled:g.jsx(hH,{ownerState:P})}[F],K=Ot(n,Bs(j));return g.jsx(A.Fragment,{children:A.cloneElement(j,{inputComponent:M,inputProps:{children:i,error:H.error,IconComponent:f,variant:F,type:void 0,multiple:S,...k?{id:p}:{autoWidth:o,defaultOpen:l,displayEmpty:u,labelId:y,MenuProps:x,onClose:T,onOpen:C,open:O,renderValue:I,SelectDisplayProps:{id:p,...N}},...b,classes:b?Bn(R,b.classes):R,...m?m.props.inputProps:{}},...(S&&k||u)&&F==="outlined"?{notched:!0}:{},ref:K,className:ge(j.props.className,a,_.root),...!m&&{variant:F},...V})})});process.env.NODE_ENV!=="production"&&(Af.propTypes={autoWidth:c.bool,children:c.node,classes:c.object,className:c.string,defaultOpen:c.bool,defaultValue:c.any,displayEmpty:c.bool,IconComponent:c.elementType,id:c.string,input:c.element,inputProps:c.object,label:c.node,labelId:c.string,MenuProps:c.object,multiple:c.bool,native:c.bool,onChange:c.func,onClose:c.func,onOpen:c.func,open:c.bool,renderValue:c.func,SelectDisplayProps:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.oneOfType([c.oneOf([""]),c.any]),variant:c.oneOf(["filled","outlined","standard"])}),Af.muiName="Select";function mH(t){return Ke("MuiTextField",t)}je("MuiTextField",["root"]);const gH={standard:Mf,filled:_f,outlined:If},yH=t=>{const{classes:e}=t;return qe({root:["root"]},mH,e)},bH=oe(Ty,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Xc=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:s,className:a,color:l="primary",defaultValue:u,disabled:f=!1,error:p=!1,FormHelperTextProps:m,fullWidth:b=!1,helperText:v,id:y,InputLabelProps:x,inputProps:S,InputProps:k,inputRef:T,label:C,maxRows:O,minRows:I,multiline:N=!1,name:L,onBlur:V,onChange:M,onFocus:B,placeholder:H,required:F=!1,rows:P,select:_=!1,SelectProps:D,slots:R={},slotProps:j={},type:K,value:U,variant:Y="outlined",...fe}=r,ue={...r,autoFocus:i,color:l,disabled:f,error:p,fullWidth:b,multiline:N,required:F,select:_,variant:Y},pe=yH(ue);process.env.NODE_ENV!=="production"&&_&&!s&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const Z=vo(y),te=v&&Z?`${Z}-helper-text`:void 0,ce=C&&Z?`${Z}-label`:void 0,ne=gH[Y],re={slots:R,slotProps:{input:k,inputLabel:x,htmlInput:S,formHelperText:m,select:D,...j}},le={},ye=re.slotProps.inputLabel;Y==="outlined"&&(ye&&typeof ye.shrink<"u"&&(le.notched=ye.shrink),le.label=C),_&&((!D||!D.native)&&(le.id=void 0),le["aria-describedby"]=void 0);const[X,ee]=_t("root",{elementType:bH,shouldForwardComponentProp:!0,externalForwardedProps:{...re,...fe},ownerState:ue,className:ge(pe.root,a),ref:n,additionalProps:{disabled:f,error:p,fullWidth:b,required:F,color:l,variant:Y}}),[ie,we]=_t("input",{elementType:ne,externalForwardedProps:re,additionalProps:le,ownerState:ue}),[Ce,Pe]=_t("inputLabel",{elementType:Cy,externalForwardedProps:re,ownerState:ue}),[Me,Ie]=_t("htmlInput",{elementType:"input",externalForwardedProps:re,ownerState:ue}),[me,Be]=_t("formHelperText",{elementType:ky,externalForwardedProps:re,ownerState:ue}),[De,yt]=_t("select",{elementType:Af,externalForwardedProps:re,ownerState:ue}),ct=g.jsx(ie,{"aria-describedby":te,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:b,multiline:N,name:L,rows:P,maxRows:O,minRows:I,type:K,value:U,id:Z,inputRef:T,onBlur:V,onChange:M,onFocus:B,placeholder:H,inputProps:Ie,slots:{input:R.htmlInput?Me:void 0},...we});return g.jsxs(X,{...ee,children:[C!=null&&C!==""&&g.jsx(Ce,{htmlFor:Z,id:ce,...Pe,children:C}),_?g.jsx(De,{"aria-describedby":te,id:Z,labelId:ce,value:U,input:ct,...yt,children:s}):ct,v&&g.jsx(me,{id:te,...Be,children:v})]})});process.env.NODE_ENV!=="production"&&(Xc.propTypes={autoComplete:c.string,autoFocus:c.bool,children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["primary","secondary","error","info","success","warning"]),c.string]),defaultValue:c.any,disabled:c.bool,error:c.bool,FormHelperTextProps:c.object,fullWidth:c.bool,helperText:c.node,id:c.string,InputLabelProps:c.object,inputProps:c.object,InputProps:c.object,inputRef:kn,label:c.node,margin:c.oneOf(["dense","none","normal"]),maxRows:c.oneOfType([c.number,c.string]),minRows:c.oneOfType([c.number,c.string]),multiline:c.bool,name:c.string,onBlur:c.func,onChange:c.func,onFocus:c.func,placeholder:c.string,required:c.bool,rows:c.oneOfType([c.number,c.string]),select:c.bool,SelectProps:c.object,size:c.oneOfType([c.oneOf(["medium","small"]),c.string]),slotProps:c.shape({formHelperText:c.oneOfType([c.func,c.object]),htmlInput:c.oneOfType([c.func,c.object]),input:c.oneOfType([c.func,c.object]),inputLabel:c.oneOfType([c.func,c.object]),select:c.oneOfType([c.func,c.object])}),slots:c.shape({formHelperText:c.elementType,htmlInput:c.elementType,input:c.elementType,inputLabel:c.elementType,root:c.elementType,select:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.string,value:c.any,variant:c.oneOf(["filled","outlined","standard"])});function xl(){return(xl=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function $y(t,e){if(t==null)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e.indexOf(n=i[r])>=0||(o[n]=t[n]);return o}function Ly(t){var e=J.useRef(t),n=J.useRef(function(r){e.current&&e.current(r)});return e.current=t,n.current}var wl=function(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=1),t>n?n:t<e?e:t},Zc=function(t){return"touches"in t},By=function(t){return t&&t.ownerDocument.defaultView||self},Kk=function(t,e,n){var r=t.getBoundingClientRect(),o=Zc(e)?(function(i,s){for(var a=0;a<i.length;a++)if(i[a].identifier===s)return i[a];return i[0]})(e.touches,n):e;return{left:wl((o.pageX-(r.left+By(t).pageXOffset))/r.width),top:wl((o.pageY-(r.top+By(t).pageYOffset))/r.height)}},Yk=function(t){!Zc(t)&&t.preventDefault()},Fy=J.memo(function(t){var e=t.onMove,n=t.onKey,r=$y(t,["onMove","onKey"]),o=J.useRef(null),i=Ly(e),s=Ly(n),a=J.useRef(null),l=J.useRef(!1),u=J.useMemo(function(){var b=function(x){Yk(x),(Zc(x)?x.touches.length>0:x.buttons>0)&&o.current?i(Kk(o.current,x,a.current)):y(!1)},v=function(){return y(!1)};function y(x){var S=l.current,k=By(o.current),T=x?k.addEventListener:k.removeEventListener;T(S?"touchmove":"mousemove",b),T(S?"touchend":"mouseup",v)}return[function(x){var S=x.nativeEvent,k=o.current;if(k&&(Yk(S),!(function(C,O){return O&&!Zc(C)})(S,l.current)&&k)){if(Zc(S)){l.current=!0;var T=S.changedTouches||[];T.length&&(a.current=T[0].identifier)}k.focus(),i(Kk(k,S,a.current)),y(!0)}},function(x){var S=x.which||x.keyCode;S<37||S>40||(x.preventDefault(),s({left:S===39?.05:S===37?-.05:0,top:S===40?.05:S===38?-.05:0}))},y]},[s,i]),f=u[0],p=u[1],m=u[2];return J.useEffect(function(){return m},[m]),J.createElement("div",xl({},r,{onTouchStart:f,onMouseDown:f,className:"react-colorful__interactive",ref:o,onKeyDown:p,tabIndex:0,role:"slider"}))}),Qc=function(t){return t.filter(Boolean).join(" ")},Ry=function(t){var e=t.color,n=t.left,r=t.top,o=r===void 0?.5:r,i=Qc(["react-colorful__pointer",t.className]);return J.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},J.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},Wn=function(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=Math.pow(10,e)),Math.round(n*t)/n},Gk=function(t){return wH(zy(t))},zy=function(t){return t[0]==="#"&&(t=t.substring(1)),t.length<6?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?Wn(parseInt(t[3]+t[3],16)/255,2):1}:{r:parseInt(t.substring(0,2),16),g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16),a:t.length===8?Wn(parseInt(t.substring(6,8),16)/255,2):1}},Jk=function(t){return xH(vH(t))},Xk=function(t){var e=t.s,n=t.v,r=t.a,o=(200-e)*n/100;return{h:Wn(t.h),s:Wn(o>0&&o<200?e*n/100/(o<=100?o:200-o)*100:0),l:Wn(o/2),a:Wn(r,2)}},Vy=function(t){var e=Xk(t);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},Hy=function(t){var e=Xk(t);return"hsla("+e.h+", "+e.s+"%, "+e.l+"%, "+e.a+")"},vH=function(t){var e=t.h,n=t.s,r=t.v,o=t.a;e=e/360*6,n/=100,r/=100;var i=Math.floor(e),s=r*(1-n),a=r*(1-(e-i)*n),l=r*(1-(1-e+i)*n),u=i%6;return{r:Wn(255*[r,a,s,s,l,r][u]),g:Wn(255*[l,r,r,a,s,s][u]),b:Wn(255*[s,s,l,r,r,a][u]),a:Wn(o,2)}},Pf=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},xH=function(t){var e=t.r,n=t.g,r=t.b,o=t.a,i=o<1?Pf(Wn(255*o)):"";return"#"+Pf(e)+Pf(n)+Pf(r)+i},wH=function(t){var e=t.r,n=t.g,r=t.b,o=t.a,i=Math.max(e,n,r),s=i-Math.min(e,n,r),a=s?i===e?(n-r)/s:i===n?2+(r-e)/s:4+(e-n)/s:0;return{h:Wn(60*(a<0?a+6:a)),s:Wn(i?s/i*100:0),v:Wn(i/255*100),a:o}},Zk=J.memo(function(t){var e=t.hue,n=t.onChange,r=Qc(["react-colorful__hue",t.className]);return J.createElement("div",{className:r},J.createElement(Fy,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:wl(e+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":Wn(e),"aria-valuemax":"360","aria-valuemin":"0"},J.createElement(Ry,{className:"react-colorful__hue-pointer",left:e/360,color:Vy({h:e,s:100,v:100,a:1})})))}),Qk=J.memo(function(t){var e=t.hsva,n=t.onChange,r={backgroundColor:Vy({h:e.h,s:100,v:100,a:1})};return J.createElement("div",{className:"react-colorful__saturation",style:r},J.createElement(Fy,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:wl(e.s+100*o.left,0,100),v:wl(e.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Wn(e.s)+"%, Brightness "+Wn(e.v)+"%"},J.createElement(Ry,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:Vy(e)})))}),eE=function(t,e){if(t===e)return!0;for(var n in t)if(t[n]!==e[n])return!1;return!0},tE=function(t,e){return t.toLowerCase()===e.toLowerCase()||eE(zy(t),zy(e))};function nE(t,e,n){var r=Ly(n),o=J.useState(function(){return t.toHsva(e)}),i=o[0],s=o[1],a=J.useRef({color:e,hsva:i});J.useEffect(function(){if(!t.equal(e,a.current.color)){var u=t.toHsva(e);a.current={hsva:u,color:e},s(u)}},[e,t]),J.useEffect(function(){var u;eE(i,a.current.hsva)||t.equal(u=t.fromHsva(i),a.current.color)||(a.current={hsva:i,color:u},r(u))},[i,t,r]);var l=J.useCallback(function(u){s(function(f){return Object.assign({},f,u)})},[]);return[i,l]}var SH=typeof window<"u"?J.useLayoutEffect:J.useEffect,CH=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},rE=new Map,oE=function(t){SH(function(){var e=t.current?t.current.ownerDocument:document;if(e!==void 0&&!rE.has(e)){var n=e.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,rE.set(e,n);var r=CH();r&&n.setAttribute("nonce",r),e.head.appendChild(n)}},[])},TH=function(t){var e=t.className,n=t.colorModel,r=t.color,o=r===void 0?n.defaultColor:r,i=t.onChange,s=$y(t,["className","colorModel","color","onChange"]),a=J.useRef(null);oE(a);var l=nE(n,o,i),u=l[0],f=l[1],p=Qc(["react-colorful",e]);return J.createElement("div",xl({},s,{ref:a,className:p}),J.createElement(Qk,{hsva:u,onChange:f}),J.createElement(Zk,{hue:u.h,onChange:f,className:"react-colorful__last-control"}))},kH={defaultColor:"000",toHsva:Gk,fromHsva:function(t){return Jk({h:t.h,s:t.s,v:t.v,a:1})},equal:tE},EH=function(t){return J.createElement(TH,xl({},t,{colorModel:kH}))},OH=function(t){var e=t.className,n=t.hsva,r=t.onChange,o={backgroundImage:"linear-gradient(90deg, "+Hy(Object.assign({},n,{a:0}))+", "+Hy(Object.assign({},n,{a:1}))+")"},i=Qc(["react-colorful__alpha",e]),s=Wn(100*n.a);return J.createElement("div",{className:i},J.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),J.createElement(Fy,{onMove:function(a){r({a:a.left})},onKey:function(a){r({a:wl(n.a+a.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},J.createElement(Ry,{className:"react-colorful__alpha-pointer",left:n.a,color:Hy(n)})))},MH=function(t){var e=t.className,n=t.colorModel,r=t.color,o=r===void 0?n.defaultColor:r,i=t.onChange,s=$y(t,["className","colorModel","color","onChange"]),a=J.useRef(null);oE(a);var l=nE(n,o,i),u=l[0],f=l[1],p=Qc(["react-colorful",e]);return J.createElement("div",xl({},s,{ref:a,className:p}),J.createElement(Qk,{hsva:u,onChange:f}),J.createElement(Zk,{hue:u.h,onChange:f}),J.createElement(OH,{hsva:u,onChange:f,className:"react-colorful__last-control"}))},_H={defaultColor:"0001",toHsva:Gk,fromHsva:Jk,equal:tE},IH=function(t){return J.createElement(MH,xl({},t,{colorModel:_H}))};function DH(t){try{return T$(t)}catch{return null}}const Nf=Xt("ColorPicker",["gradientPicker","colorTextInput","swatchContainer"]),iE=Le(g.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Wy=Xt("ColorSwatchButton",["root","activeIcon","colorNotSet"]),jy=Ut("ColorSwatchButton"),AH=oe("button",{name:jy,slot:"root",overridesResolver:(t,e)=>[e.root,t.ownerState.colorNotSet&&e.colorNotSet]})(({theme:t,ownerState:e})=>({height:t.spacing(2.5),width:t.spacing(2.5),minWidth:t.spacing(2.5),borderRadius:t.shape.borderRadius,borderColor:t.palette.mode==="dark"?t.palette.grey[700]:t.palette.grey[400],borderStyle:"solid",borderWidth:1,cursor:"pointer",padding:0,backgroundClip:"content-box",...e.colorNotSet&&{background:`repeating-conic-gradient(
196
196
  ${t.palette.grey[400]} 0% 25%, ${t.palette.common.white} 0% 50%)
197
197
  50% / 12px 12px`,backgroundClip:"content-box"}})),PH=oe(iE,{name:jy,slot:"activeIcon",overridesResolver:(t,e)=>e.activeIcon})(()=>({height:"100%",width:"80%",verticalAlign:"middle"})),sE=J.forwardRef((t,e)=>{const n=rt({props:t,name:jy}),{value:r,label:o,padding:i,active:s,className:a,classes:l={},sx:u,...f}=n,p=wo(),m=!r,b={active:s,colorNotSet:m};return g.jsx(AH,{ref:e,type:"button",style:{backgroundColor:r,padding:i},"aria-label":o??r,value:r,...f,className:ge([Wy.root,m&&[Wy.colorNotSet,l.colorNotSet],l.root,a]),sx:u,ownerState:b,children:s&&g.jsx(PH,{fontSize:"small",className:ge([Wy.activeIcon,l.activeIcon]),style:{color:r?p.palette.getContrastText(r):void 0}})})});sE.displayName="ColorSwatchButton";const eu=Ut("ColorPicker"),NH=oe(EH,{name:eu,slot:"gradientPicker",overridesResolver:(t,e)=>e.gradientPicker})(()=>({"&&":{width:"100%"}})),$H=oe(IH,{name:eu,slot:"gradientPicker",overridesResolver:(t,e)=>e.gradientPicker})(()=>({"&&":{width:"100%"}})),LH=oe(Xc,{name:eu,slot:"colorTextInput",overridesResolver:(t,e)=>e.colorTextInput})(({theme:t})=>({marginTop:t.spacing(1)})),BH=oe("div",{name:eu,slot:"swatchContainer",overridesResolver:(t,e)=>e.swatchContainer})(({theme:t})=>({display:"flex",flexWrap:"wrap",gap:5,marginTop:t.spacing(1)}));function FH(t){const e=rt({props:t,name:eu}),{value:n,onChange:r,swatchColors:o,colorToHex:i=DH,disableAlpha:s=!1,labels:a={},classes:l={}}=e,{textFieldPlaceholder:u='Ex: "#7cb5ec"'}=a,f=J.useRef(null);J.useEffect(()=>{f.current&&f.current!==document.activeElement&&(f.current.value=n)},[n]);const p=(o??[]).map(b=>typeof b=="string"?{value:b}:b),m=i(n);return g.jsxs(g.Fragment,{children:[s?g.jsx(NH,{color:m??"#000000",className:ge([Nf.gradientPicker,l.gradientPicker]),onChange:b=>{r(b,"gradient")}}):g.jsx($H,{color:m??"#000000",className:ge([Nf.gradientPicker,l.gradientPicker]),onChange:b=>{r(b,"gradient")}}),g.jsx(LH,{placeholder:u,variant:"outlined",size:"small",defaultValue:n||"",inputRef:f,spellCheck:!1,className:ge([Nf.colorTextInput,l.colorTextInput]),onChange:b=>{const v=b.target.value,y=i(v);y&&r(y,"text")},fullWidth:!0}),p.length>0&&g.jsx(BH,{className:ge([Nf.swatchContainer,l.swatchContainer]),children:p.map(b=>g.jsx(sE,{value:b.value,label:b.label,onClick:()=>{var v;r((v=b.value)!==null&&v!==void 0?v:"","swatch")},active:b.value==n||!b.value&&!n||!!b.value&&!!m&&i(b.value)===m},b.value))})]})}class $f{constructor(){td(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new $f}static use(){const e=ux($f.create).current,[n,r]=A.useState(!1);return e.shouldMount=n,e.setShouldMount=r,A.useEffect(e.mountEffect,[n]),e}mount(){return this.mounted||(this.mounted=zH(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...e)})}stop(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...e)})}pulsate(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...e)})}}function RH(){return $f.use()}function zH(){let t,e;const n=new Promise((r,o)=>{t=r,e=o});return n.resolve=t,n.reject=e,n}function aE(t){const{className:e,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:a,onExited:l,timeout:u}=t,[f,p]=A.useState(!1),m=ge(e,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},v=ge(n.child,f&&n.childLeaving,r&&n.childPulsate);return!a&&!f&&p(!0),A.useEffect(()=>{if(!a&&l!=null){const y=setTimeout(l,u);return()=>{clearTimeout(y)}}},[l,a,u]),g.jsx("span",{className:m,style:b,children:g.jsx("span",{className:v})})}process.env.NODE_ENV!=="production"&&(aE.propTypes={classes:c.object.isRequired,className:c.string,in:c.bool,onExited:c.func,pulsate:c.bool,rippleSize:c.number,rippleX:c.number,rippleY:c.number,timeout:c.number.isRequired});const to=je("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Uy=550,VH=80,HH=Po.keyframes`
198
198
  0% {
@@ -267,7 +267,7 @@ img.ProseMirror-separator {
267
267
  animation-iteration-count: infinite;
268
268
  animation-delay: 200ms;
269
269
  }
270
- `,lE=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s,...a}=r,[l,u]=A.useState([]),f=A.useRef(0),p=A.useRef(null);A.useEffect(()=>{p.current&&(p.current(),p.current=null)},[l]);const m=A.useRef(!1),b=Ls(),v=A.useRef(null),y=A.useRef(null),x=A.useCallback(C=>{const{pulsate:O,rippleX:I,rippleY:N,rippleSize:L,cb:V}=C;u(M=>[...M,g.jsx(qH,{classes:{ripple:ge(i.ripple,to.ripple),rippleVisible:ge(i.rippleVisible,to.rippleVisible),ripplePulsate:ge(i.ripplePulsate,to.ripplePulsate),child:ge(i.child,to.child),childLeaving:ge(i.childLeaving,to.childLeaving),childPulsate:ge(i.childPulsate,to.childPulsate)},timeout:Uy,pulsate:O,rippleX:I,rippleY:N,rippleSize:L},f.current)]),f.current+=1,p.current=V},[i]),S=A.useCallback((C={},O={},I=()=>{})=>{const{pulsate:N=!1,center:L=o||O.pulsate,fakeElement:V=!1}=O;if((C==null?void 0:C.type)==="mousedown"&&m.current){m.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(m.current=!0);const M=V?null:y.current,B=M?M.getBoundingClientRect():{width:0,height:0,left:0,top:0};let H,F,P;if(L||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)H=Math.round(B.width/2),F=Math.round(B.height/2);else{const{clientX:_,clientY:D}=C.touches&&C.touches.length>0?C.touches[0]:C;H=Math.round(_-B.left),F=Math.round(D-B.top)}if(L)P=Math.sqrt((2*B.width**2+B.height**2)/3),P%2===0&&(P+=1);else{const _=Math.max(Math.abs((M?M.clientWidth:0)-H),H)*2+2,D=Math.max(Math.abs((M?M.clientHeight:0)-F),F)*2+2;P=Math.sqrt(_**2+D**2)}C!=null&&C.touches?v.current===null&&(v.current=()=>{x({pulsate:N,rippleX:H,rippleY:F,rippleSize:P,cb:I})},b.start(VH,()=>{v.current&&(v.current(),v.current=null)})):x({pulsate:N,rippleX:H,rippleY:F,rippleSize:P,cb:I})},[o,x,b]),k=A.useCallback(()=>{S({},{pulsate:!0})},[S]),T=A.useCallback((C,O)=>{if(b.clear(),(C==null?void 0:C.type)==="touchend"&&v.current){v.current(),v.current=null,b.start(0,()=>{T(C,O)});return}v.current=null,u(I=>I.length>0?I.slice(1):I),p.current=O},[b]);return A.useImperativeHandle(n,()=>({pulsate:k,start:S,stop:T}),[k,S,T]),g.jsx(UH,{className:ge(to.root,i.root,s),ref:y,...a,children:g.jsx(Nc,{component:null,exit:!0,children:l})})});process.env.NODE_ENV!=="production"&&(lE.propTypes={center:c.bool,classes:c.object,className:c.string});function KH(t){return Ke("MuiButtonBase",t)}const YH=je("MuiButtonBase",["root","disabled","focusVisible"]),GH=t=>{const{disabled:e,focusVisible:n,focusVisibleClassName:r,classes:o}=t,s=qe({root:["root",e&&"disabled",n&&"focusVisible"]},KH,o);return n&&r&&(s.root+=` ${r}`),s},JH=oe("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${YH.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ms=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:u=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:m=!1,focusVisibleClassName:b,LinkComponent:v="a",onBlur:y,onClick:x,onContextMenu:S,onDragLeave:k,onFocus:T,onFocusVisible:C,onKeyDown:O,onKeyUp:I,onMouseDown:N,onMouseLeave:L,onMouseUp:V,onTouchEnd:M,onTouchMove:B,onTouchStart:H,tabIndex:F=0,TouchRippleProps:P,touchRippleRef:_,type:D,...R}=r,j=A.useRef(null),K=RH(),U=Ot(K.ref,_),[Y,fe]=A.useState(!1);u&&Y&&fe(!1),A.useImperativeHandle(o,()=>({focusVisible:()=>{fe(!0),j.current.focus()}}),[]);const ue=K.shouldMount&&!f&&!u;A.useEffect(()=>{Y&&m&&!f&&K.pulsate()},[f,m,Y,K]);const pe=wi(K,"start",N,p),Z=wi(K,"stop",S,p),te=wi(K,"stop",k,p),ce=wi(K,"stop",V,p),ne=wi(K,"stop",De=>{Y&&De.preventDefault(),L&&L(De)},p),re=wi(K,"start",H,p),le=wi(K,"stop",M,p),ye=wi(K,"stop",B,p),X=wi(K,"stop",De=>{Fa(De.target)||fe(!1),y&&y(De)},!1),ee=ze(De=>{j.current||(j.current=De.currentTarget),Fa(De.target)&&(fe(!0),C&&C(De)),T&&T(De)}),ie=()=>{const De=j.current;return l&&l!=="button"&&!(De.tagName==="A"&&De.href)},we=ze(De=>{m&&!De.repeat&&Y&&De.key===" "&&K.stop(De,()=>{K.start(De)}),De.target===De.currentTarget&&ie()&&De.key===" "&&De.preventDefault(),O&&O(De),De.target===De.currentTarget&&ie()&&De.key==="Enter"&&!u&&(De.preventDefault(),x&&x(De))}),Ce=ze(De=>{m&&De.key===" "&&Y&&!De.defaultPrevented&&K.stop(De,()=>{K.pulsate(De)}),I&&I(De),x&&De.target===De.currentTarget&&ie()&&De.key===" "&&!De.defaultPrevented&&x(De)});let Ae=l;Ae==="button"&&(R.href||R.to)&&(Ae=v);const Me={};Ae==="button"?(Me.type=D===void 0?"button":D,Me.disabled=u):(!R.href&&!R.to&&(Me.role="button"),u&&(Me["aria-disabled"]=u));const Ie=Ot(n,j),me={...r,centerRipple:i,component:l,disabled:u,disableRipple:f,disableTouchRipple:p,focusRipple:m,tabIndex:F,focusVisible:Y},Be=GH(me);return g.jsxs(JH,{as:Ae,className:ge(Be.root,a),ownerState:me,onBlur:X,onClick:x,onContextMenu:Z,onFocus:ee,onKeyDown:we,onKeyUp:Ce,onMouseDown:pe,onMouseLeave:ne,onMouseUp:ce,onDragLeave:te,onTouchEnd:le,onTouchMove:ye,onTouchStart:re,ref:Ie,tabIndex:u?-1:F,type:D,...Me,...R,children:[s,ue?g.jsx(lE,{ref:U,center:i,...P}):null]})});function wi(t,e,n,r=!1){return ze(o=>(n&&n(o),r||t[e](o),!0))}process.env.NODE_ENV!=="production"&&(ms.propTypes={action:kn,centerRipple:c.bool,children:c.node,classes:c.object,className:c.string,component:Ba,disabled:c.bool,disableRipple:c.bool,disableTouchRipple:c.bool,focusRipple:c.bool,focusVisibleClassName:c.string,href:c.any,LinkComponent:c.elementType,onBlur:c.func,onClick:c.func,onContextMenu:c.func,onDragLeave:c.func,onFocus:c.func,onFocusVisible:c.func,onKeyDown:c.func,onKeyUp:c.func,onMouseDown:c.func,onMouseLeave:c.func,onMouseUp:c.func,onTouchEnd:c.func,onTouchMove:c.func,onTouchStart:c.func,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),tabIndex:c.number,TouchRippleProps:c.object,touchRippleRef:c.oneOfType([c.func,c.shape({current:c.shape({pulsate:c.func.isRequired,start:c.func.isRequired,stop:c.func.isRequired})})]),type:c.oneOfType([c.oneOf(["button","reset","submit"]),c.string])});function XH(t){return Ke("MuiCircularProgress",t)}je("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const gs=44,qy=Po.keyframes`
270
+ `,lE=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s,...a}=r,[l,u]=A.useState([]),f=A.useRef(0),p=A.useRef(null);A.useEffect(()=>{p.current&&(p.current(),p.current=null)},[l]);const m=A.useRef(!1),b=Ls(),v=A.useRef(null),y=A.useRef(null),x=A.useCallback(C=>{const{pulsate:O,rippleX:I,rippleY:N,rippleSize:L,cb:V}=C;u(M=>[...M,g.jsx(qH,{classes:{ripple:ge(i.ripple,to.ripple),rippleVisible:ge(i.rippleVisible,to.rippleVisible),ripplePulsate:ge(i.ripplePulsate,to.ripplePulsate),child:ge(i.child,to.child),childLeaving:ge(i.childLeaving,to.childLeaving),childPulsate:ge(i.childPulsate,to.childPulsate)},timeout:Uy,pulsate:O,rippleX:I,rippleY:N,rippleSize:L},f.current)]),f.current+=1,p.current=V},[i]),S=A.useCallback((C={},O={},I=()=>{})=>{const{pulsate:N=!1,center:L=o||O.pulsate,fakeElement:V=!1}=O;if((C==null?void 0:C.type)==="mousedown"&&m.current){m.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(m.current=!0);const M=V?null:y.current,B=M?M.getBoundingClientRect():{width:0,height:0,left:0,top:0};let H,F,P;if(L||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)H=Math.round(B.width/2),F=Math.round(B.height/2);else{const{clientX:_,clientY:D}=C.touches&&C.touches.length>0?C.touches[0]:C;H=Math.round(_-B.left),F=Math.round(D-B.top)}if(L)P=Math.sqrt((2*B.width**2+B.height**2)/3),P%2===0&&(P+=1);else{const _=Math.max(Math.abs((M?M.clientWidth:0)-H),H)*2+2,D=Math.max(Math.abs((M?M.clientHeight:0)-F),F)*2+2;P=Math.sqrt(_**2+D**2)}C!=null&&C.touches?v.current===null&&(v.current=()=>{x({pulsate:N,rippleX:H,rippleY:F,rippleSize:P,cb:I})},b.start(VH,()=>{v.current&&(v.current(),v.current=null)})):x({pulsate:N,rippleX:H,rippleY:F,rippleSize:P,cb:I})},[o,x,b]),k=A.useCallback(()=>{S({},{pulsate:!0})},[S]),T=A.useCallback((C,O)=>{if(b.clear(),(C==null?void 0:C.type)==="touchend"&&v.current){v.current(),v.current=null,b.start(0,()=>{T(C,O)});return}v.current=null,u(I=>I.length>0?I.slice(1):I),p.current=O},[b]);return A.useImperativeHandle(n,()=>({pulsate:k,start:S,stop:T}),[k,S,T]),g.jsx(UH,{className:ge(to.root,i.root,s),ref:y,...a,children:g.jsx(Nc,{component:null,exit:!0,children:l})})});process.env.NODE_ENV!=="production"&&(lE.propTypes={center:c.bool,classes:c.object,className:c.string});function KH(t){return Ke("MuiButtonBase",t)}const YH=je("MuiButtonBase",["root","disabled","focusVisible"]),GH=t=>{const{disabled:e,focusVisible:n,focusVisibleClassName:r,classes:o}=t,s=qe({root:["root",e&&"disabled",n&&"focusVisible"]},KH,o);return n&&r&&(s.root+=` ${r}`),s},JH=oe("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${YH.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ms=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:u=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:m=!1,focusVisibleClassName:b,LinkComponent:v="a",onBlur:y,onClick:x,onContextMenu:S,onDragLeave:k,onFocus:T,onFocusVisible:C,onKeyDown:O,onKeyUp:I,onMouseDown:N,onMouseLeave:L,onMouseUp:V,onTouchEnd:M,onTouchMove:B,onTouchStart:H,tabIndex:F=0,TouchRippleProps:P,touchRippleRef:_,type:D,...R}=r,j=A.useRef(null),K=RH(),U=Ot(K.ref,_),[Y,fe]=A.useState(!1);u&&Y&&fe(!1),A.useImperativeHandle(o,()=>({focusVisible:()=>{fe(!0),j.current.focus()}}),[]);const ue=K.shouldMount&&!f&&!u;A.useEffect(()=>{Y&&m&&!f&&K.pulsate()},[f,m,Y,K]);const pe=wi(K,"start",N,p),Z=wi(K,"stop",S,p),te=wi(K,"stop",k,p),ce=wi(K,"stop",V,p),ne=wi(K,"stop",De=>{Y&&De.preventDefault(),L&&L(De)},p),re=wi(K,"start",H,p),le=wi(K,"stop",M,p),ye=wi(K,"stop",B,p),X=wi(K,"stop",De=>{Fa(De.target)||fe(!1),y&&y(De)},!1),ee=ze(De=>{j.current||(j.current=De.currentTarget),Fa(De.target)&&(fe(!0),C&&C(De)),T&&T(De)}),ie=()=>{const De=j.current;return l&&l!=="button"&&!(De.tagName==="A"&&De.href)},we=ze(De=>{m&&!De.repeat&&Y&&De.key===" "&&K.stop(De,()=>{K.start(De)}),De.target===De.currentTarget&&ie()&&De.key===" "&&De.preventDefault(),O&&O(De),De.target===De.currentTarget&&ie()&&De.key==="Enter"&&!u&&(De.preventDefault(),x&&x(De))}),Ce=ze(De=>{m&&De.key===" "&&Y&&!De.defaultPrevented&&K.stop(De,()=>{K.pulsate(De)}),I&&I(De),x&&De.target===De.currentTarget&&ie()&&De.key===" "&&!De.defaultPrevented&&x(De)});let Pe=l;Pe==="button"&&(R.href||R.to)&&(Pe=v);const Me={};Pe==="button"?(Me.type=D===void 0?"button":D,Me.disabled=u):(!R.href&&!R.to&&(Me.role="button"),u&&(Me["aria-disabled"]=u));const Ie=Ot(n,j),me={...r,centerRipple:i,component:l,disabled:u,disableRipple:f,disableTouchRipple:p,focusRipple:m,tabIndex:F,focusVisible:Y},Be=GH(me);return g.jsxs(JH,{as:Pe,className:ge(Be.root,a),ownerState:me,onBlur:X,onClick:x,onContextMenu:Z,onFocus:ee,onKeyDown:we,onKeyUp:Ce,onMouseDown:pe,onMouseLeave:ne,onMouseUp:ce,onDragLeave:te,onTouchEnd:le,onTouchMove:ye,onTouchStart:re,ref:Ie,tabIndex:u?-1:F,type:D,...Me,...R,children:[s,ue?g.jsx(lE,{ref:U,center:i,...P}):null]})});function wi(t,e,n,r=!1){return ze(o=>(n&&n(o),r||t[e](o),!0))}process.env.NODE_ENV!=="production"&&(ms.propTypes={action:kn,centerRipple:c.bool,children:c.node,classes:c.object,className:c.string,component:Ba,disabled:c.bool,disableRipple:c.bool,disableTouchRipple:c.bool,focusRipple:c.bool,focusVisibleClassName:c.string,href:c.any,LinkComponent:c.elementType,onBlur:c.func,onClick:c.func,onContextMenu:c.func,onDragLeave:c.func,onFocus:c.func,onFocusVisible:c.func,onKeyDown:c.func,onKeyUp:c.func,onMouseDown:c.func,onMouseLeave:c.func,onMouseUp:c.func,onTouchEnd:c.func,onTouchMove:c.func,onTouchStart:c.func,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),tabIndex:c.number,TouchRippleProps:c.object,touchRippleRef:c.oneOfType([c.func,c.shape({current:c.shape({pulsate:c.func.isRequired,start:c.func.isRequired,stop:c.func.isRequired})})]),type:c.oneOfType([c.oneOf(["button","reset","submit"]),c.string])});function XH(t){return Ke("MuiCircularProgress",t)}je("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const gs=44,qy=Po.keyframes`
271
271
  0% {
272
272
  transform: rotate(0deg);
273
273
  }
@@ -295,7 +295,7 @@ img.ProseMirror-separator {
295
295
  `:null,QH=typeof Ky!="string"?Po.css`
296
296
  animation: ${Ky} 1.4s ease-in-out infinite;
297
297
  `:null,eW=t=>{const{classes:e,variant:n,color:r,disableShrink:o}=t,i={root:["root",n,`color${Ne(r)}`],svg:["svg"],circle:["circle",`circle${Ne(n)}`,o&&"circleDisableShrink"]};return qe(i,XH,e)},tW=oe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`color${Ne(n.color)}`]]}})(bt(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:ZH||{animation:`${qy} 1.4s linear infinite`}},...Object.entries(t.palette).filter(Hn()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))]}))),nW=oe("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),rW=oe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.circle,e[`circle${Ne(n.variant)}`],n.disableShrink&&e.circleDisableShrink]}})(bt(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink,style:QH||{animation:`${Ky} 1.4s ease-in-out infinite`}}]}))),Yy=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,size:a=40,style:l,thickness:u=3.6,value:f=0,variant:p="indeterminate",...m}=r,b={...r,color:i,disableShrink:s,size:a,thickness:u,value:f,variant:p},v=eW(b),y={},x={},S={};if(p==="determinate"){const k=2*Math.PI*((gs-u)/2);y.strokeDasharray=k.toFixed(3),S["aria-valuenow"]=Math.round(f),y.strokeDashoffset=`${((100-f)/100*k).toFixed(3)}px`,x.transform="rotate(-90deg)"}return g.jsx(tW,{className:ge(v.root,o),style:{width:a,height:a,...x,...l},ownerState:b,ref:n,role:"progressbar",...S,...m,children:g.jsx(nW,{className:v.svg,ownerState:b,viewBox:`${gs/2} ${gs/2} ${gs} ${gs}`,children:g.jsx(rW,{className:v.circle,style:y,ownerState:b,cx:gs,cy:gs,r:(gs-u)/2,fill:"none",strokeWidth:u})})})});process.env.NODE_ENV!=="production"&&(Yy.propTypes={classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["inherit","primary","secondary","error","info","success","warning"]),c.string]),disableShrink:si(c.bool,t=>t.disableShrink&&t.variant&&t.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:c.oneOfType([c.number,c.string]),style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),thickness:c.number,value:c.number,variant:c.oneOf(["determinate","indeterminate"])});function oW(t){return Ke("MuiButton",t)}const fa=je("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),cE=A.createContext({});process.env.NODE_ENV!=="production"&&(cE.displayName="ButtonGroupContext");const uE=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(uE.displayName="ButtonGroupButtonContext");const iW=t=>{const{color:e,disableElevation:n,fullWidth:r,size:o,variant:i,loading:s,loadingPosition:a,classes:l}=t,u={root:["root",s&&"loading",i,`${i}${Ne(e)}`,`size${Ne(o)}`,`${i}Size${Ne(o)}`,`color${Ne(e)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${Ne(a)}`],startIcon:["icon","startIcon",`iconSize${Ne(o)}`],endIcon:["icon","endIcon",`iconSize${Ne(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},f=qe(u,oW,l);return{...l,...f}},dE=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],sW=oe(ms,{shouldForwardProp:t=>qr(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${Ne(n.color)}`],e[`size${Ne(n.size)}`],e[`${n.variant}Size${Ne(n.size)}`],n.color==="inherit"&&e.colorInherit,n.disableElevation&&e.disableElevation,n.fullWidth&&e.fullWidth,n.loading&&e.loading]}})(bt(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],n=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${fa.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${fa.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${fa.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${fa.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(Hn()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(t.vars||t).palette[r].main,"--variant-outlinedColor":(t.vars||t).palette[r].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[r].mainChannel} / 0.5)`:it(t.palette[r].main,.5),"--variant-containedColor":(t.vars||t).palette[r].contrastText,"--variant-containedBg":(t.vars||t).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[r].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[r].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:it(t.palette[r].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[r].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[r].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:it(t.palette[r].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:it(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:it(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${fa.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${fa.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${fa.loading}`]:{color:"transparent"}}}]}})),aW=oe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.startIcon,n.loading&&e.startIconLoadingStart,e[`iconSize${Ne(n.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...dE]})),lW=oe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.endIcon,n.loading&&e.endIconLoadingEnd,e[`iconSize${Ne(n.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...dE]})),cW=oe("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(t,e)=>e.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),fE=oe("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(t,e)=>e.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),no=A.forwardRef(function(e,n){const r=A.useContext(cE),o=A.useContext(uE),i=Ra(r,e),s=mt({props:i,name:"MuiButton"}),{children:a,color:l="primary",component:u="button",className:f,disabled:p=!1,disableElevation:m=!1,disableFocusRipple:b=!1,endIcon:v,focusVisibleClassName:y,fullWidth:x=!1,id:S,loading:k=null,loadingIndicator:T,loadingPosition:C="center",size:O="medium",startIcon:I,type:N,variant:L="text",...V}=s,M=vo(S),B=T??g.jsx(Yy,{"aria-labelledby":M,color:"inherit",size:16}),H={...s,color:l,component:u,disabled:p,disableElevation:m,disableFocusRipple:b,fullWidth:x,loading:k,loadingIndicator:B,loadingPosition:C,size:O,type:N,variant:L},F=iW(H),P=(I||k&&C==="start")&&g.jsx(aW,{className:F.startIcon,ownerState:H,children:I||g.jsx(fE,{className:F.loadingIconPlaceholder,ownerState:H})}),_=(v||k&&C==="end")&&g.jsx(lW,{className:F.endIcon,ownerState:H,children:v||g.jsx(fE,{className:F.loadingIconPlaceholder,ownerState:H})}),D=o||"",R=typeof k=="boolean"?g.jsx("span",{className:F.loadingWrapper,style:{display:"contents"},children:k&&g.jsx(cW,{className:F.loadingIndicator,ownerState:H,children:B})}):null;return g.jsxs(sW,{ownerState:H,className:ge(r.className,F.root,f,D),component:u,disabled:p||k,focusRipple:!b,focusVisibleClassName:ge(F.focusVisible,y),ref:n,type:N,id:k?M:S,...V,classes:F,children:[P,C!=="end"&&R,a,C==="end"&&R,_]})});process.env.NODE_ENV!=="production"&&(no.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["inherit","primary","secondary","success","error","info","warning"]),c.string]),component:c.elementType,disabled:c.bool,disableElevation:c.bool,disableFocusRipple:c.bool,disableRipple:c.bool,endIcon:c.node,focusVisibleClassName:c.string,fullWidth:c.bool,href:c.string,id:c.string,loading:c.bool,loadingIndicator:c.node,loadingPosition:c.oneOf(["center","end","start"]),size:c.oneOfType([c.oneOf(["small","medium","large"]),c.string]),startIcon:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),type:c.oneOfType([c.oneOf(["button","reset","submit"]),c.string]),variant:c.oneOfType([c.oneOf(["contained","outlined","text"]),c.string])});function pE(t){return t.substring(2).toLowerCase()}function uW(t,e){return e.documentElement.clientWidth<t.clientX||e.documentElement.clientHeight<t.clientY}function Lf(t){const{children:e,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=t,s=A.useRef(!1),a=A.useRef(null),l=A.useRef(!1),u=A.useRef(!1);A.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const f=Ot(Bs(e),a),p=ze(v=>{const y=u.current;u.current=!1;const x=_n(a.current);if(!l.current||!a.current||"clientX"in v&&uW(v,x))return;if(s.current){s.current=!1;return}let S;v.composedPath?S=v.composedPath().includes(a.current):S=!x.documentElement.contains(v.target)||a.current.contains(v.target),!S&&(n||!y)&&o(v)}),m=v=>y=>{u.current=!0;const x=e.props[v];x&&x(y)},b={ref:f};return i!==!1&&(b[i]=m(i)),A.useEffect(()=>{if(i!==!1){const v=pE(i),y=_n(a.current),x=()=>{s.current=!0};return y.addEventListener(v,p),y.addEventListener("touchmove",x),()=>{y.removeEventListener(v,p),y.removeEventListener("touchmove",x)}}},[p,i]),r!==!1&&(b[r]=m(r)),A.useEffect(()=>{if(r!==!1){const v=pE(r),y=_n(a.current);return y.addEventListener(v,p),()=>{y.removeEventListener(v,p)}}},[p,r]),A.cloneElement(e,b)}process.env.NODE_ENV!=="production"&&(Lf.propTypes={children:$s.isRequired,disableReactTree:c.bool,mouseEvent:c.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:c.func.isRequired,touchEvent:c.oneOf(["onTouchEnd","onTouchStart",!1])}),process.env.NODE_ENV!=="production"&&(Lf.propTypes=Mm(Lf.propTypes));const hE=H$({createStyledComponent:oe("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root}),useThemeProps:t=>mt({props:t,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(hE.propTypes={children:c.node,component:c.elementType,direction:c.oneOfType([c.oneOf(["column-reverse","column","row-reverse","row"]),c.arrayOf(c.oneOf(["column-reverse","column","row-reverse","row"])),c.object]),divider:c.node,spacing:c.oneOfType([c.arrayOf(c.oneOfType([c.number,c.string])),c.number,c.object,c.string]),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),useFlexGap:c.bool});function dW(t){return Ke("MuiTooltip",t)}const dn=je("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function fW(t){return Math.round(t*1e5)/1e5}const pW=t=>{const{classes:e,disableInteractive:n,arrow:r,touch:o,placement:i}=t,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Ne(i.split("-")[0])}`],arrow:["arrow"]};return qe(s,dW,e)},hW=oe(ml,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.popper,!n.disableInteractive&&e.popperInteractive,n.arrow&&e.popperArrow,!n.open&&e.popperClose]}})(bt(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${dn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${dn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${dn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${dn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${dn.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${dn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${dn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${dn.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),mW=oe("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.tooltip,n.touch&&e.touch,n.arrow&&e.tooltipArrow,e[`tooltipPlacement${Ne(n.placement.split("-")[0])}`]]}})(bt(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:it(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${dn.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${dn.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${dn.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${dn.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${fW(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${dn.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${dn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${dn.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${dn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${dn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${dn.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${dn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${dn.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${dn.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${dn.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),gW=oe("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(bt(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:it(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Bf=!1;const mE=new id;let tu={x:0,y:0};function Ff(t,e){return(n,...r)=>{e&&e(n,...r),t(n,...r)}}const Gy=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:i,classes:s,components:a={},componentsProps:l={},describeChild:u=!1,disableFocusListener:f=!1,disableHoverListener:p=!1,disableInteractive:m=!1,disableTouchListener:b=!1,enterDelay:v=100,enterNextDelay:y=0,enterTouchDelay:x=700,followCursor:S=!1,id:k,leaveDelay:T=0,leaveTouchDelay:C=1500,onClose:O,onOpen:I,open:N,placement:L="bottom",PopperComponent:V,PopperProps:M={},slotProps:B={},slots:H={},title:F,TransitionComponent:P,TransitionProps:_,...D}=r,R=A.isValidElement(i)?i:g.jsx("span",{children:i}),j=wo(),K=Rm(),[U,Y]=A.useState(),[fe,ue]=A.useState(null),pe=A.useRef(!1),Z=m||S,te=Ls(),ce=Ls(),ne=Ls(),re=Ls(),[le,ye]=Lo({controlled:N,default:!1,name:"Tooltip",state:"open"});let X=le;if(process.env.NODE_ENV!=="production"){const{current:st}=A.useRef(N!==void 0);A.useEffect(()=>{U&&U.disabled&&!st&&F!==""&&U.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
298
- `))},[F,U,st])}const ee=vo(k),ie=A.useRef(),we=ze(()=>{ie.current!==void 0&&(document.body.style.WebkitUserSelect=ie.current,ie.current=void 0),re.clear()});A.useEffect(()=>we,[we]);const Ce=st=>{mE.clear(),Bf=!0,ye(!0),I&&!X&&I(st)},Ae=ze(st=>{mE.start(800+T,()=>{Bf=!1}),ye(!1),O&&X&&O(st),te.start(j.transitions.duration.shortest,()=>{pe.current=!1})}),Me=st=>{pe.current&&st.type!=="touchstart"||(U&&U.removeAttribute("title"),ce.clear(),ne.clear(),v||Bf&&y?ce.start(Bf?y:v,()=>{Ce(st)}):Ce(st))},Ie=st=>{ce.clear(),ne.start(T,()=>{Ae(st)})},[,me]=A.useState(!1),Be=st=>{Fa(st.target)||(me(!1),Ie(st))},De=st=>{U||Y(st.currentTarget),Fa(st.target)&&(me(!0),Me(st))},yt=st=>{pe.current=!0;const Zn=R.props;Zn.onTouchStart&&Zn.onTouchStart(st)},ct=st=>{yt(st),ne.clear(),te.clear(),we(),ie.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",re.start(x,()=>{document.body.style.WebkitUserSelect=ie.current,Me(st)})},wn=st=>{R.props.onTouchEnd&&R.props.onTouchEnd(st),we(),ne.start(C,()=>{Ae(st)})};A.useEffect(()=>{if(!X)return;function st(Zn){Zn.key==="Escape"&&Ae(Zn)}return document.addEventListener("keydown",st),()=>{document.removeEventListener("keydown",st)}},[Ae,X]);const Pn=Ot(Bs(R),Y,n);!F&&F!==0&&(X=!1);const on=A.useRef(),gn=st=>{const Zn=R.props;Zn.onMouseMove&&Zn.onMouseMove(st),tu={x:st.clientX,y:st.clientY},on.current&&on.current.update()},Sn={},Jn=typeof F=="string";u?(Sn.title=!X&&Jn&&!p?F:null,Sn["aria-describedby"]=X?ee:null):(Sn["aria-label"]=Jn?F:null,Sn["aria-labelledby"]=X&&!Jn?ee:null);const ot={...Sn,...D,...R.props,className:ge(D.className,R.props.className),onTouchStart:yt,ref:Pn,...S?{onMouseMove:gn}:{}};process.env.NODE_ENV!=="production"&&(ot["data-mui-internal-clone-element"]=!0,A.useEffect(()=>{U&&!U.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
298
+ `))},[F,U,st])}const ee=vo(k),ie=A.useRef(),we=ze(()=>{ie.current!==void 0&&(document.body.style.WebkitUserSelect=ie.current,ie.current=void 0),re.clear()});A.useEffect(()=>we,[we]);const Ce=st=>{mE.clear(),Bf=!0,ye(!0),I&&!X&&I(st)},Pe=ze(st=>{mE.start(800+T,()=>{Bf=!1}),ye(!1),O&&X&&O(st),te.start(j.transitions.duration.shortest,()=>{pe.current=!1})}),Me=st=>{pe.current&&st.type!=="touchstart"||(U&&U.removeAttribute("title"),ce.clear(),ne.clear(),v||Bf&&y?ce.start(Bf?y:v,()=>{Ce(st)}):Ce(st))},Ie=st=>{ce.clear(),ne.start(T,()=>{Pe(st)})},[,me]=A.useState(!1),Be=st=>{Fa(st.target)||(me(!1),Ie(st))},De=st=>{U||Y(st.currentTarget),Fa(st.target)&&(me(!0),Me(st))},yt=st=>{pe.current=!0;const Zn=R.props;Zn.onTouchStart&&Zn.onTouchStart(st)},ct=st=>{yt(st),ne.clear(),te.clear(),we(),ie.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",re.start(x,()=>{document.body.style.WebkitUserSelect=ie.current,Me(st)})},wn=st=>{R.props.onTouchEnd&&R.props.onTouchEnd(st),we(),ne.start(C,()=>{Pe(st)})};A.useEffect(()=>{if(!X)return;function st(Zn){Zn.key==="Escape"&&Pe(Zn)}return document.addEventListener("keydown",st),()=>{document.removeEventListener("keydown",st)}},[Pe,X]);const Pn=Ot(Bs(R),Y,n);!F&&F!==0&&(X=!1);const on=A.useRef(),gn=st=>{const Zn=R.props;Zn.onMouseMove&&Zn.onMouseMove(st),tu={x:st.clientX,y:st.clientY},on.current&&on.current.update()},Sn={},Jn=typeof F=="string";u?(Sn.title=!X&&Jn&&!p?F:null,Sn["aria-describedby"]=X?ee:null):(Sn["aria-label"]=Jn?F:null,Sn["aria-labelledby"]=X&&!Jn?ee:null);const ot={...Sn,...D,...R.props,className:ge(D.className,R.props.className),onTouchStart:yt,ref:Pn,...S?{onMouseMove:gn}:{}};process.env.NODE_ENV!=="production"&&(ot["data-mui-internal-clone-element"]=!0,A.useEffect(()=>{U&&!U.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
299
299
  `))},[U]));const Mn={};b||(ot.onTouchStart=ct,ot.onTouchEnd=wn),p||(ot.onMouseOver=Ff(Me,ot.onMouseOver),ot.onMouseLeave=Ff(Ie,ot.onMouseLeave),Z||(Mn.onMouseOver=Me,Mn.onMouseLeave=Ie)),f||(ot.onFocus=Ff(De,ot.onFocus),ot.onBlur=Ff(Be,ot.onBlur),Z||(Mn.onFocus=De,Mn.onBlur=Be)),process.env.NODE_ENV!=="production"&&R.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${R.props.title}\` or the Tooltip component.`].join(`
300
300
  `));const Zt={...r,isRtl:K,arrow:o,disableInteractive:Z,placement:L,PopperComponentProp:V,touch:pe.current},be=typeof B.popper=="function"?B.popper(Zt):B.popper,Ve=A.useMemo(()=>{var Zn,Pi;let st=[{name:"arrow",enabled:!!fe,options:{element:fe,padding:4}}];return(Zn=M.popperOptions)!=null&&Zn.modifiers&&(st=st.concat(M.popperOptions.modifiers)),(Pi=be==null?void 0:be.popperOptions)!=null&&Pi.modifiers&&(st=st.concat(be.popperOptions.modifiers)),{...M.popperOptions,...be==null?void 0:be.popperOptions,modifiers:st}},[fe,M.popperOptions,be==null?void 0:be.popperOptions]),Ee=pW(Zt),He=typeof B.transition=="function"?B.transition(Zt):B.transition,Ye={slots:{popper:a.Popper,transition:a.Transition??P,tooltip:a.Tooltip,arrow:a.Arrow,...H},slotProps:{arrow:B.arrow??l.arrow,popper:{...M,...be??l.popper},tooltip:B.tooltip??l.tooltip,transition:{..._,...He??l.transition}}},[Qe,Pt]=_t("popper",{elementType:hW,externalForwardedProps:Ye,ownerState:Zt,className:ge(Ee.popper,M==null?void 0:M.className)}),[Xn,ir]=_t("transition",{elementType:vl,externalForwardedProps:Ye,ownerState:Zt}),[Mo,Ea]=_t("tooltip",{elementType:mW,className:Ee.tooltip,externalForwardedProps:Ye,ownerState:Zt}),[Ts,ni]=_t("arrow",{elementType:gW,className:Ee.arrow,externalForwardedProps:Ye,ownerState:Zt,ref:ue});return g.jsxs(A.Fragment,{children:[A.cloneElement(R,ot),g.jsx(Qe,{as:V??ml,placement:L,anchorEl:S?{getBoundingClientRect:()=>({top:tu.y,left:tu.x,right:tu.x,bottom:tu.y,width:0,height:0})}:U,popperRef:on,open:U?X:!1,id:ee,transition:!0,...Mn,...Pt,popperOptions:Ve,children:({TransitionProps:st})=>g.jsx(Xn,{timeout:j.transitions.duration.shorter,...st,...ir,children:g.jsxs(Mo,{...Ea,children:[F,o?g.jsx(Ts,{...ni}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Gy.propTypes={arrow:c.bool,children:$s.isRequired,classes:c.object,className:c.string,components:c.shape({Arrow:c.elementType,Popper:c.elementType,Tooltip:c.elementType,Transition:c.elementType}),componentsProps:c.shape({arrow:c.object,popper:c.object,tooltip:c.object,transition:c.object}),describeChild:c.bool,disableFocusListener:c.bool,disableHoverListener:c.bool,disableInteractive:c.bool,disableTouchListener:c.bool,enterDelay:c.number,enterNextDelay:c.number,enterTouchDelay:c.number,followCursor:c.bool,id:c.string,leaveDelay:c.number,leaveTouchDelay:c.number,onClose:c.func,onOpen:c.func,open:c.bool,placement:c.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:c.elementType,PopperProps:c.object,slotProps:c.shape({arrow:c.oneOfType([c.func,c.object]),popper:c.oneOfType([c.func,c.object]),tooltip:c.oneOfType([c.func,c.object]),transition:c.oneOfType([c.func,c.object])}),slots:c.shape({arrow:c.elementType,popper:c.elementType,tooltip:c.elementType,transition:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),title:c.node,TransitionComponent:c.elementType,TransitionProps:c.object});const yW=Xt("ColorPickerPopper",["root"]);function bW({value:t,onCancel:e,onSave:n,swatchColors:r,labels:o={},ColorPickerProps:i}){const{removeColorButton:s="None",removeColorButtonTooltipTitle:a="",cancelButton:l="Cancel",saveButton:u="OK"}=o,[f,p]=J.useState(t);return J.useEffect(()=>{p(t)},[t]),g.jsxs(g.Fragment,{children:[g.jsx(FH,{swatchColors:r,value:f,onChange:m=>{p(m)},labels:o,...i}),g.jsxs(hE,{direction:"row",justifyContent:"space-between",sx:{mt:1},children:[g.jsx(Gy,{title:a,arrow:!0,children:g.jsx(no,{onClick:()=>{n("")},size:"small",children:s})}),g.jsx(no,{onClick:e,size:"small",children:l}),g.jsx(no,{onClick:()=>{n(f)},size:"small",children:u})]})]})}const gE=Ut("ColorPickerPopper"),vW=oe(ml,{name:gE,slot:"root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({zIndex:t.zIndex.tooltip,width:235}));function xW(t){const e=rt({props:t,name:gE}),{value:n,onSave:r,onCancel:o,swatchColors:i,ColorPickerProps:s,labels:a,classes:l={},sx:u,...f}=e;return g.jsx(vW,{transition:!0,placement:"bottom-start",...f,className:ge([yW.root,l.root,f.className]),sx:u,children:({TransitionProps:p})=>g.jsx(Ho,{...p,timeout:100,children:g.jsx("div",{children:g.jsx(Lf,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:o,children:g.jsx(fs,{elevation:5,sx:{p:2.5,pb:1},children:g.jsx(bW,{value:n||"",onSave:r,onCancel:o,swatchColors:i,ColorPickerProps:s,labels:a})})})})})})}function wW(t){return Ke("MuiToggleButton",t)}const Rf=je("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),yE=A.createContext({});process.env.NODE_ENV!=="production"&&(yE.displayName="ToggleButtonGroupContext");const bE=A.createContext(void 0);process.env.NODE_ENV!=="production"&&(bE.displayName="ToggleButtonGroupButtonContext");function SW(t,e){return e===void 0||t===void 0?!1:Array.isArray(e)?e.includes(t):t===e}const CW=t=>{const{classes:e,fullWidth:n,selected:r,disabled:o,size:i,color:s}=t,a={root:["root",r&&"selected",o&&"disabled",n&&"fullWidth",`size${Ne(i)}`,s]};return qe(a,wW,e)},TW=oe(ms,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`size${Ne(n.size)}`]]}})(bt(({theme:t})=>({...t.typography.button,borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active,[`&.${Rf.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:it(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${Rf.selected}`]:{color:(t.vars||t).palette.text.primary,backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.selectedOpacity})`:it(t.palette.text.primary,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:it(t.palette.text.primary,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.selectedOpacity})`:it(t.palette.text.primary,t.palette.action.selectedOpacity)}}}}},...Object.entries(t.palette).filter(Hn()).map(([e])=>({props:{color:e},style:{[`&.${Rf.selected}`]:{color:(t.vars||t).palette[e].main,backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.selectedOpacity})`:it(t.palette[e].main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:it(t.palette[e].main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.selectedOpacity})`:it(t.palette[e].main,t.palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:t.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:t.typography.pxToRem(15)}}]}))),vE=A.forwardRef(function(e,n){const{value:r,...o}=A.useContext(yE),i=A.useContext(bE),s=Ra({...o,selected:SW(e.value,r)},e),a=mt({props:s,name:"MuiToggleButton"}),{children:l,className:u,color:f="standard",disabled:p=!1,disableFocusRipple:m=!1,fullWidth:b=!1,onChange:v,onClick:y,selected:x,size:S="medium",value:k,...T}=a,C={...a,color:f,disabled:p,disableFocusRipple:m,fullWidth:b,size:S},O=CW(C),I=L=>{y&&(y(L,k),L.defaultPrevented)||v&&v(L,k)},N=i||"";return g.jsx(TW,{className:ge(o.className,O.root,u,N),disabled:p,focusRipple:!m,ref:n,onClick:I,onChange:v,value:k,ownerState:C,"aria-pressed":x,...T,children:l})});process.env.NODE_ENV!=="production"&&(vE.propTypes={children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["standard","primary","secondary","error","info","success","warning"]),c.string]),disabled:c.bool,disableFocusRipple:c.bool,disableRipple:c.bool,fullWidth:c.bool,onChange:c.func,onClick:c.func,selected:c.bool,size:c.oneOfType([c.oneOf(["small","medium","large"]),c.string]),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.any.isRequired});const xE=Xt("MenuButton",["root","icon"]);function kW(t){return Ke("MuiTypography",t)}je("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const EW={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},OW=xL(),MW=t=>{const{align:e,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:s}=t,a={root:["root",i,t.align!=="inherit"&&`align${Ne(e)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return qe(a,kW,s)},_W=oe("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.variant&&e[n.variant],n.align!=="inherit"&&e[`align${Ne(n.align)}`],n.noWrap&&e.noWrap,n.gutterBottom&&e.gutterBottom,n.paragraph&&e.paragraph]}})(bt(({theme:t})=>{var e;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(t.palette).filter(Hn()).map(([n])=>({props:{color:n},style:{color:(t.vars||t).palette[n].main}})),...Object.entries(((e=t.palette)==null?void 0:e.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${Ne(n)}`},style:{color:(t.vars||t).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),wE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ko=A.forwardRef(function(e,n){const{color:r,...o}=mt({props:e,name:"MuiTypography"}),i=!EW[r],s=OW({...o,...i&&{color:r}}),{align:a="inherit",className:l,component:u,gutterBottom:f=!1,noWrap:p=!1,paragraph:m=!1,variant:b="body1",variantMapping:v=wE,...y}=s,x={...s,align:a,color:r,className:l,component:u,gutterBottom:f,noWrap:p,paragraph:m,variant:b,variantMapping:v},S=u||(m?"p":v[b]||wE[b])||"span",k=MW(x);return g.jsx(_W,{as:S,ref:n,className:ge(k.root,l),...y,ownerState:x,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...y.style}})});process.env.NODE_ENV!=="production"&&(ko.propTypes={align:c.oneOf(["center","inherit","justify","left","right"]),children:c.node,classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),c.string]),component:c.elementType,gutterBottom:c.bool,noWrap:c.bool,paragraph:c.bool,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOfType([c.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),c.string]),variantMapping:c.object});let Jy,Xy;function IW(){return Jy===void 0&&(Jy=navigator.platform.includes("Mac")),Jy}function DW(){return IW()?"⌘":"Ctrl"}function AW(){return Xy===void 0&&(Xy=window&&"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),Xy}const zf=Xt("MenuButtonTooltip",["titleContainer","label","shortcutKey","contentWrapper"]),nu=Ut("MenuButtonTooltip"),PW=oe("div",{name:nu,slot:"titleContainer",overridesResolver:(t,e)=>e.tooltip})(()=>({textAlign:"center"})),NW=oe("div",{name:nu,slot:"label",overridesResolver:(t,e)=>e.label})(({theme:t})=>({fontSize:t.typography.pxToRem(13)})),$W=oe("span",{name:nu,slot:"shortcutKey",overridesResolver:(t,e)=>e.shortcutKey})(({theme:t})=>({fontSize:t.typography.pxToRem(12),border:`1px solid ${it(t.palette.text.secondary,.2)}`,backgroundColor:it(t.palette.background.paper,.3),height:"19px",lineHeight:"19px",padding:"0 4px",minWidth:17,borderRadius:t.shape.borderRadius,display:"inline-block","&:not(:first-of-type)":{marginLeft:1}})),LW=oe("span",{name:nu,slot:"contentWrapper",overridesResolver:(t,e)=>e.contentWrapper})({});function Vf(t){const e=rt({props:t,name:nu}),{label:n,shortcutKeys:r,placement:o="top",contentWrapperClassName:i,children:s,className:a,classes:l={},sx:u,...f}=e;return g.jsx(Gy,{title:n||r&&r.length>0?g.jsxs(PW,{className:ge([zf.titleContainer,l.titleContainer]),children:[g.jsx(NW,{className:ge([zf.label,l.label]),children:n}),r&&r.length>0&&g.jsx(ko,{variant:"body2",component:"div",children:r.map((p,m)=>g.jsx($W,{className:ge([zf.shortcutKey,l.shortcutKey]),children:p==="mod"?DW():p},m))})]}):"",placement:o,arrow:!0,sx:u,...f,children:g.jsx(LW,{className:ge([a,zf.contentWrapper,l.contentWrapper,i]),children:s})})}const Sl="1.25rem",Zy=Ut("MenuButton"),BW=oe("span",{name:Zy,slot:"root",overridesResolver:(t,e)=>e.root})(()=>({[`&& .${Rf.root}`]:{border:"none",padding:5}})),FW=oe("span",{name:Zy,slot:"icon",overridesResolver:(t,e)=>e.icon})(()=>({fontSize:Sl}));function wt(t){const e=rt({props:t,name:Zy}),{tooltipLabel:n,tooltipShortcutKeys:r,IconComponent:o,buttonRef:i,children:s,className:a,classes:l={},sx:u,...f}=e;return g.jsx(BW,{className:ge([xE.root,a,l.root]),sx:u,children:g.jsx(Vf,{label:n,shortcutKeys:r,children:g.jsx(vE,{ref:i,size:"small",value:n,"aria-label":n,...f,children:s??(o&&g.jsx(FW,{as:o,className:ge([xE.icon,l.icon])}))})})})}const RW=Le(g.jsx("path",{d:"M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z"}),"AddPhotoAlternate");function zW({...t}){const e=Tt();return g.jsx(wt,{tooltipLabel:"Insert image",IconComponent:RW,disabled:!(e!=null&&e.isEditable)||!e.can().setImage({src:"http://example.com"}),...t})}const VW=Le(g.jsxs(g.Fragment,{children:[g.jsx("path",{d:"M20 3H4c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2zM4 19V7h16l.002 12H4z"}),g.jsx("path",{d:"M9.293 9.293 5.586 13l3.707 3.707 1.414-1.414L8.414 13l2.293-2.293zm5.414 0-1.414 1.414L15.586 13l-2.293 2.293 1.414 1.414L18.414 13z"})]}),"CodeBlock"),HW=Le(g.jsx("path",{d:"M12 3C12.5523 3 13 3.44772 13 4L12.9998 11.9998C13.8355 11.372 14.8743 11 16 11C18.7614 11 21 13.2386 21 16C21 18.7614 18.7614 21 16 21C14.9681 21 14.0092 20.6874 13.2129 20.1518L13 20C13 20.5523 12.5523 21 12 21H6C5.44772 21 5 20.5523 5 20V4C5 3.44772 5.44772 3 6 3H12ZM11 5H7V19H11V5ZM19 15H13V17H19V15Z"}),"DeleteColumn"),WW=Le(g.jsx("path",{d:"M20 5C20.5523 5 21 5.44772 21 6V12C21 12.5523 20.5523 13 20 13C20.628 13.8355 21 14.8743 21 16C21 18.7614 18.7614 21 16 21C13.2386 21 11 18.7614 11 16C11 14.8743 11.372 13.8355 11.9998 12.9998L4 13C3.44772 13 3 12.5523 3 12V6C3 5.44772 3.44772 5 4 5H20ZM13 15V17H19V15H13ZM19 7H5V11H19V7Z"}),"DeleteRow"),jW=Le(g.jsx("path",{d:"M 2 20 h 20 v 4 H 2 v -4 z"}),"FormatColorBar"),UW=Le(g.jsx("path",{d:"M 5.49 17 h 2.42 l 1.27 -3.58 h 5.65 L 16.09 17 h 2.42 L 13.25 3 h -2.5 L 5.49 17 z m 4.42 -5.61 l 2.03 -5.79 h 0.12 l 2.03 5.79 H 9.91 z"}),"FormatColorTextNoBar"),qW=Le(g.jsx("path",{d:"M 10.6 8 l 5.4 5.425 l -4 4 q -0.6 0.6 -1.413 0.6 t -1.412 -0.6 L 8.5 18 h -5 l 3.15 -3.125 q -0.6 -0.6 -0.625 -1.438 T 6.6 12 l 4 -4 Z M 12 6.575 L 16 2.6 q 0.6 -0.6 1.413 -0.6 t 1.412 0.6 l 2.6 2.575 q 0.6 0.6 0.6 1.413 T 21.425 8 l -4 4 L 12 6.575 Z"}),"FormatInkHighlighterNoBar"),KW=Le(g.jsx("path",{d:"M20 3C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H14C13.4477 21 13 20.5523 13 20V4C13 3.44772 13.4477 3 14 3H20ZM19 5H15V19H19V5ZM6 7C8.76142 7 11 9.23858 11 12C11 14.7614 8.76142 17 6 17C3.23858 17 1 14.7614 1 12C1 9.23858 3.23858 7 6 7ZM7 9H5V10.999L3 11V13L5 12.999V15H7V12.999L9 13V11L7 10.999V9Z"}),"InsertColumnLeft"),YW=Le(g.jsx("path",{d:"M10 3C10.5523 3 11 3.44772 11 4V20C11 20.5523 10.5523 21 10 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H10ZM9 5H5V19H9V5ZM18 7C20.7614 7 23 9.23858 23 12C23 14.7614 20.7614 17 18 17C15.2386 17 13 14.7614 13 12C13 9.23858 15.2386 7 18 7ZM19 9H17V10.999L15 11V13L17 12.999V15H19V12.999L21 13V11L19 10.999V9Z"}),"InsertColumnRight"),GW=Le(g.jsx("path",{d:"M12 13C14.7614 13 17 15.2386 17 18C17 20.7614 14.7614 23 12 23C9.23858 23 7 20.7614 7 18C7 15.2386 9.23858 13 12 13ZM13 15H11V16.999L9 17V19L11 18.999V21H13V18.999L15 19V17L13 16.999V15ZM20 3C20.5523 3 21 3.44772 21 4V10C21 10.5523 20.5523 11 20 11H4C3.44772 11 3 10.5523 3 10V4C3 3.44772 3.44772 3 4 3H20ZM5 5V9H19V5H5Z"}),"InsertRowBottom"),JW=Le(g.jsx("path",{d:"M20 13C20.5523 13 21 13.4477 21 14V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V14C3 13.4477 3.44772 13 4 13H20ZM19 15H5V19H19V15ZM12 1C14.7614 1 17 3.23858 17 6C17 8.76142 14.7614 11 12 11C9.23858 11 7 8.76142 7 6C7 3.23858 9.23858 1 12 1ZM13 3H11V4.999L9 5V7L11 6.999V9H13V6.999L15 7V5L13 4.999V3Z"}),"InsertRowTop"),XW=Le(g.jsx("path",{d:"M12 5V19H19V5H12ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3Z"}),"LayoutColumnFill"),ZW=Le(g.jsx("path",{d:"M19 12H5V19H19V12ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3Z"}),"LayoutRowFill"),QW=Le(g.jsx("path",{d:"M20 3C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H20ZM11 5H5V10.999H7V9L10 12L7 15V13H5V19H11V17H13V19H19V13H17V15L14 12L17 9V10.999H19V5H13V7H11V5ZM13 13V15H11V13H13ZM13 9V11H11V9H13Z"}),"MergeCellsHorizontal"),e6=Le(g.jsx("path",{d:"M20 3C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H20ZM11 5H5V19H11V15H13V19H19V5H13V9H11V5ZM15 9L18 12L15 15V13H9V15L6 12L9 9V11H15V9Z"}),"SplitCellsHorizontal"),t6=Le(g.jsx("path",{d:"M4 21h15.893c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2H4c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2zm0-2v-5h4v5H4zM14 7v5h-4V7h4zM8 7v5H4V7h4zm2 12v-5h4v5h-4zm6 0v-5h3.894v5H16zm3.893-7H16V7h3.893v5z"}),"Table");function n6(t){const e=Tt();return g.jsx(wt,{tooltipLabel:"Insert table",IconComponent:t6,disabled:!(e!=null&&e.isEditable)||!e.can().insertTable(),onClick:()=>e==null?void 0:e.chain().focus().insertTable({rows:3,cols:3,withHeaderRow:!0}).run(),...t})}const r6=Le(g.jsx("path",{d:"M7 15v2h10v-2zm-4 6h18v-2H3zm0-8h18v-2H3zm4-6v2h10V7zM3 3v2h18V3z"}),"FormatAlignCenter"),o6=Le(g.jsx("path",{d:"M3 21h18v-2H3zm0-4h18v-2H3zm0-4h18v-2H3zm0-4h18V7H3zm0-6v2h18V3z"}),"FormatAlignJustify"),i6=Le(g.jsx("path",{d:"M15 15H3v2h12zm0-8H3v2h12zM3 13h18v-2H3zm0 8h18v-2H3zM3 3v2h18V3z"}),"FormatAlignLeft"),s6=Le(g.jsx("path",{d:"M3 21h18v-2H3zm6-4h12v-2H9zm-6-4h18v-2H3zm6-4h12V7H9zM3 3v2h18V3z"}),"FormatAlignRight"),a6=Le(g.jsx("path",{d:"M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z"}),"FormatQuote");function l6(t){var e;const n=Tt();return g.jsx(wt,{tooltipLabel:"Blockquote",tooltipShortcutKeys:["mod","Shift","B"],IconComponent:a6,selected:(e=n==null?void 0:n.isActive("blockquote"))!==null&&e!==void 0?e:!1,disabled:!(n!=null&&n.isEditable)||!n.can().toggleBlockquote(),onClick:()=>n==null?void 0:n.chain().focus().toggleBlockquote().run(),...t})}const c6=Le(g.jsx("path",{d:"M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42M10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5"}),"FormatBold");function SE(t){var e;const n=Tt();return g.jsx(wt,{tooltipLabel:"Bold",tooltipShortcutKeys:["mod","B"],IconComponent:c6,selected:(e=n==null?void 0:n.isActive("bold"))!==null&&e!==void 0?e:!1,disabled:!(n!=null&&n.isEditable)||!n.can().toggleBold(),onClick:()=>n==null?void 0:n.chain().focus().toggleBold().run(),...t})}const u6=Le(g.jsx("path",{d:"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5m0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5m0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5M7 19h14v-2H7zm0-6h14v-2H7zm0-8v2h14V5z"}),"FormatListBulleted");function CE(t){var e;const n=Tt();return g.jsx(wt,{tooltipLabel:"Bulleted list",tooltipShortcutKeys:["mod","Shift","8"],IconComponent:u6,selected:(e=n==null?void 0:n.isActive("bulletList"))!==null&&e!==void 0?e:!1,disabled:!(n!=null&&n.isEditable)||!n.can().toggleBulletList(),onClick:()=>n==null?void 0:n.chain().focus().toggleBulletList().run(),...t})}const d6=Le(g.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code");function f6(t){var e;const n=Tt();return g.jsx(wt,{tooltipLabel:"Code",tooltipShortcutKeys:["mod","E"],IconComponent:d6,selected:(e=n==null?void 0:n.isActive("code"))!==null&&e!==void 0?e:!1,disabled:!(n!=null&&n.isEditable)||!n.can().toggleCode(),onClick:()=>n==null?void 0:n.chain().focus().toggleCode().run(),...t})}function p6(t){var e;const n=Tt();return g.jsx(wt,{tooltipLabel:"Code block",tooltipShortcutKeys:["mod","Alt","C"],IconComponent:VW,selected:(e=n==null?void 0:n.isActive("codeBlock"))!==null&&e!==void 0?e:!1,disabled:!(n!=null&&n.isEditable)||!n.can().toggleCodeBlock(),onClick:()=>n==null?void 0:n.chain().focus().toggleCodeBlock().run(),...t})}const Qy=Xt("MenuButtonColorPicker",["icon","colorIndicatorIcon","colorIndicatorIconDisabled"]),eb=Ut("MenuButtonColorPicker"),h6=oe("span",{name:eb,slot:"icon",overridesResolver:(t,e)=>e.icon})({fontSize:Sl}),m6=oe(jW,{name:eb,slot:"colorIndicatorIcon",overridesResolver:(t,e)=>[e.colorIndicatorIcon,t.ownerState.disabled&&e.colorIndicatorIconDisabled]})(({theme:t,ownerState:e})=>({fontSize:Sl,position:"absolute",...e.disabled&&{color:t.palette.action.disabled}}));function TE(t){const e=rt({props:t,name:eb}),{value:n,onChange:r,swatchColors:o,labels:i,hideColorIndicator:s=!1,popperId:a,PopperProps:l,ColorPickerProps:u,classes:f={},...p}=e,[m,b]=J.useState(null),v={disabled:p.disabled},y=()=>{b(null)},{IconComponent:x,children:S,...k}=p;return g.jsxs(g.Fragment,{children:[g.jsx(wt,{onClick:T=>{m?y():b(T.currentTarget)},"aria-describedby":a,...k,children:S??g.jsxs(g.Fragment,{children:[x&&g.jsx(h6,{as:x,ownerState:v,className:ge([Qy.icon,f.icon])}),!s&&n&&g.jsx(m6,{ownerState:v,className:ge([Qy.colorIndicatorIcon,f.colorIndicatorIcon,p.disabled&&[Qy.colorIndicatorIconDisabled,f.colorIndicatorIconDisabled]]),style:p.disabled?void 0:{color:n}})]})}),g.jsx(xW,{id:a,open:!!m,anchorEl:m,value:n??"",onSave:T=>{r(T),y()},onCancel:y,swatchColors:o,ColorPickerProps:u,labels:i,...l})]})}const Hf=Le(g.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link");function g6(t){const e=Tt(),n=J.useRef(null);return g.jsx(wt,{buttonRef:n,tooltipLabel:"Link",tooltipShortcutKeys:["mod","Shift","U"],IconComponent:Hf,selected:e==null?void 0:e.isActive("link"),disabled:!(e!=null&&e.isEditable),onClick:()=>e==null?void 0:e.commands.openLinkBubbleMenu({anchorEl:n.current,placement:"bottom"}),...t})}function y6({defaultMarkColor:t="#ffff00",...e}){const n=Tt(),r=n!=null&&n.isActive("highlight")?n.getAttributes("highlight").color||t:"";return g.jsx(TE,{IconComponent:qW,tooltipLabel:"Highlight color",tooltipShortcutKeys:["mod","Shift","H"],value:r,onChange:o=>{o?n==null||n.chain().focus().setHighlight({color:o}).run():n==null||n.chain().focus().unsetHighlight().run()},disabled:!(n!=null&&n.isEditable)||!n.can().toggleHighlight(),...e,labels:{removeColorButton:"None",removeColorButtonTooltipTitle:"Remove highlighting from this text",...e.labels}})}const b6=Le(g.jsx("path",{fillRule:"evenodd",d:"M4 11h16v2H4z"}),"HorizontalRule");function v6(t){const e=Tt();return g.jsx(wt,{tooltipLabel:"Insert horizontal line",IconComponent:b6,disabled:!(e!=null&&e.isEditable)||!e.can().setHorizontalRule(),onClick:()=>e==null?void 0:e.chain().focus().setHorizontalRule().run(),...t})}var tb={},nb={},kE;function x6(){return kE||(kE=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});function e(n,r,{signal:o,edges:i}={}){let s,a=null;const l=i!=null&&i.includes("leading"),u=i==null||i.includes("trailing"),f=()=>{a!==null&&(n.apply(s,a),s=void 0,a=null)},p=()=>{u&&f(),y()};let m=null;const b=()=>{m!=null&&clearTimeout(m),m=setTimeout(()=>{m=null,p()},r)},v=()=>{m!==null&&(clearTimeout(m),m=null)},y=()=>{v(),s=void 0,a=null},x=()=>{f()},S=function(...k){if(o!=null&&o.aborted)return;s=this,a=k;const T=m==null;b(),l&&T&&f()};return S.schedule=b,S.cancel=y,S.flush=x,o==null||o.addEventListener("abort",y,{once:!0}),S}t.debounce=e})(nb)),nb}var EE;function OE(){return EE||(EE=1,(function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=x6();function n(r,o=0,i={}){typeof i!="object"&&(i={});const{leading:s=!1,trailing:a=!0,maxWait:l}=i,u=Array(2);s&&(u[0]="leading"),a&&(u[1]="trailing");let f,p=null;const m=e.debounce(function(...y){f=r.apply(this,y),p=null},o,{edges:u}),b=function(...y){return l!=null&&(p===null&&(p=Date.now()),Date.now()-p>=l)?(f=r.apply(this,y),p=Date.now(),m.cancel(),m.schedule(),f):(m.apply(this,y),f)},v=()=>(m.flush(),f);return b.cancel=m.cancel,b.flush=v,b}t.debounce=n})(tb)),tb}var rb,ME;function w6(){return ME||(ME=1,rb=OE().debounce),rb}var S6=w6();const _E=Un(S6);class ob extends J.Component{constructor(e){var n,r;super(e),this.updateDebounced=_E(this.forceUpdate,(n=e.wait)!==null&&n!==void 0?n:170,(r=e.options)!==null&&r!==void 0?r:{leading:!0,trailing:!0,maxWait:300})}shouldComponentUpdate(){return this.updateDebounced(),!1}componentWillUnmount(){this.updateDebounced.cancel()}render(){return this.props.children}}function C6(t,e){const n=So(e,t.schema),{from:r,to:o,empty:i}=t.selection,s=[];return i?(t.storedMarks&&s.push(...t.storedMarks),s.push(...t.selection.$head.marks())):t.doc.nodesBetween(r,o,a=>{s.push(...a.marks)}),s.filter(a=>a.type.name===n.name).map(a=>({...a.attrs}))}function T6(t,e){const n=Dn(e,t.schema),{from:r,to:o}=t.selection,i=[];return t.doc.nodesBetween(r,o,s=>{i.push(s)}),i.reverse().filter(s=>s.type.name===n.name).map(s=>({...s.attrs}))}function Wf(t,e){const n=Ic(typeof e=="string"?e:e.name,t.schema);return n==="node"?T6(t,e):n==="mark"?C6(t,e):[]}function ib({images:t,editor:e,position:n}){if(!e||e.isDestroyed||t.length===0)return;const r=t.filter(o=>!!o.src).map(o=>({type:e.schema.nodes.image.name,attrs:o}));e.chain().command(({commands:o})=>n==null?o.insertContent(r):o.insertContentAt(n,r)).focus().run()}/*!
301
301
  * encodeurl
@@ -310,7 +310,7 @@ img.ProseMirror-separator {
310
310
  `)}function lO(t){return[t9(t),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var su;process.env.NODE_ENV!=="production"&&n9();function n9(){su=new Set}function Ci(t,e){if(t&&!su.has(e)){var n;su.add(e),(n=console).warn.apply(n,lO(e))}}function yb(t,e){if(t&&!su.has(e)){var n;su.add(e),(n=console).error.apply(n,lO(e))}}function r9(t){var e=!t,n=Object.prototype.toString.call(t)==="[object Object]"&&!t.addEventListener;yb(e,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),yb(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var cO={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},o9={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},$r=Object.assign({appendTo:ZE,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},cO,o9),i9=Object.keys($r),s9=function(e){process.env.NODE_ENV!=="production"&&fO(e,[]);var n=Object.keys(e);n.forEach(function(r){$r[r]=e[r]})};function uO(t){var e=t.plugins||[],n=e.reduce(function(r,o){var i=o.name,s=o.defaultValue;if(i){var a;r[i]=t[i]!==void 0?t[i]:(a=$r[i])!=null?a:s}return r},{});return Object.assign({},t,n)}function a9(t,e){var n=e?Object.keys(uO(Object.assign({},$r,{plugins:e}))):i9,r=n.reduce(function(o,i){var s=(t.getAttribute("data-tippy-"+i)||"").trim();if(!s)return o;if(i==="content")o[i]=s;else try{o[i]=JSON.parse(s)}catch{o[i]=s}return o},{});return r}function dO(t,e){var n=Object.assign({},e,{content:QE(e.content,[t])},e.ignoreAttributes?{}:a9(t,e.plugins));return n.aria=Object.assign({},$r.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?e.interactive:n.aria.expanded,content:n.aria.content==="auto"?e.interactive?null:"describedby":n.aria.content},n}function fO(t,e){t===void 0&&(t={}),e===void 0&&(e=[]);var n=Object.keys(t);n.forEach(function(r){var o=zj($r,Object.keys(cO)),i=!Rj(o,r);i&&(i=e.filter(function(s){return s.name===r}).length===0),Ci(i,["`"+r+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
311
311
 
312
312
  `,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
313
- `,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var l9=function(){return"innerHTML"};function bb(t,e){t[l9()]=e}function pO(t){var e=ou();return t===!0?e.className=JE:(e.className=XE,iu(t)?e.appendChild(t):bb(e,t)),e}function hO(t,e){iu(e.content)?(bb(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?bb(t,e.content):t.textContent=e.content)}function vb(t){var e=t.firstElementChild,n=Gf(e.children);return{box:e,content:n.find(function(r){return r.classList.contains(GE)}),arrow:n.find(function(r){return r.classList.contains(JE)||r.classList.contains(XE)}),backdrop:n.find(function(r){return r.classList.contains(Fj)})}}function mO(t){var e=ou(),n=ou();n.className=Bj,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=ou();r.className=GE,r.setAttribute("data-state","hidden"),hO(r,t.props),e.appendChild(n),n.appendChild(r),o(t.props,t.props);function o(i,s){var a=vb(e),l=a.box,u=a.content,f=a.arrow;s.theme?l.setAttribute("data-theme",s.theme):l.removeAttribute("data-theme"),typeof s.animation=="string"?l.setAttribute("data-animation",s.animation):l.removeAttribute("data-animation"),s.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?l.setAttribute("role",s.role):l.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&hO(u,t.props),s.arrow?f?i.arrow!==s.arrow&&(l.removeChild(f),l.appendChild(pO(s.arrow))):l.appendChild(pO(s.arrow)):f&&l.removeChild(f)}return{popper:e,onUpdate:o}}mO.$$tippy=!0;var c9=1,Jf=[],xb=[];function u9(t,e){var n=dO(t,Object.assign({},$r,uO(nO(e)))),r,o,i,s=!1,a=!1,l=!1,u=!1,f,p,m,b=[],v=eO(ie,n.interactiveDebounce),y,x=c9++,S=null,k=Hj(n.plugins),T={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},C={id:x,reference:t,popper:ou(),popperInstance:S,props:n,state:T,plugins:k,clearDelayTimeouts:Pn,setProps:on,setContent:gn,show:Sn,hide:Jn,hideWithInteractivity:ot,enable:ct,disable:wn,unmount:Mn,destroy:Zt};if(!n.render)return process.env.NODE_ENV!=="production"&&yb(!0,"render() function has not been supplied."),C;var O=n.render(C),I=O.popper,N=O.onUpdate;I.setAttribute("data-tippy-root",""),I.id="tippy-"+C.id,C.popper=I,t._tippy=C,I._tippy=C;var L=k.map(function(be){return be.fn(C)}),V=t.hasAttribute("aria-expanded");return ye(),U(),R(),j("onCreate",[C]),n.showOnCreate&&De(),I.addEventListener("mouseenter",function(){C.props.interactive&&C.state.isVisible&&C.clearDelayTimeouts()}),I.addEventListener("mouseleave",function(){C.props.interactive&&C.props.trigger.indexOf("mouseenter")>=0&&P().addEventListener("mousemove",v)}),C;function M(){var be=C.props.touch;return Array.isArray(be)?be:[be,0]}function B(){return M()[0]==="hold"}function H(){var be;return!!((be=C.props.render)!=null&&be.$$tippy)}function F(){return y||t}function P(){var be=F().parentNode;return be?Yj(be):document}function _(){return vb(I)}function D(be){return C.state.isMounted&&!C.state.isVisible||qo.isTouch||f&&f.type==="focus"?0:pb(C.props.delay,be?0:1,$r.delay)}function R(be){be===void 0&&(be=!1),I.style.pointerEvents=C.props.interactive&&!be?"":"none",I.style.zIndex=""+C.props.zIndex}function j(be,Ve,Ee){if(Ee===void 0&&(Ee=!0),L.forEach(function(Ye){Ye[be]&&Ye[be].apply(Ye,Ve)}),Ee){var He;(He=C.props)[be].apply(He,Ve)}}function K(){var be=C.props.aria;if(be.content){var Ve="aria-"+be.content,Ee=I.id,He=Tl(C.props.triggerTarget||t);He.forEach(function(Ye){var Qe=Ye.getAttribute(Ve);if(C.state.isVisible)Ye.setAttribute(Ve,Qe?Qe+" "+Ee:Ee);else{var Pt=Qe&&Qe.replace(Ee,"").trim();Pt?Ye.setAttribute(Ve,Pt):Ye.removeAttribute(Ve)}})}}function U(){if(!(V||!C.props.aria.expanded)){var be=Tl(C.props.triggerTarget||t);be.forEach(function(Ve){C.props.interactive?Ve.setAttribute("aria-expanded",C.state.isVisible&&Ve===F()?"true":"false"):Ve.removeAttribute("aria-expanded")})}}function Y(){P().removeEventListener("mousemove",v),Jf=Jf.filter(function(be){return be!==v})}function fe(be){if(!(qo.isTouch&&(l||be.type==="mousedown"))){var Ve=be.composedPath&&be.composedPath()[0]||be.target;if(!(C.props.interactive&&oO(I,Ve))){if(Tl(C.props.triggerTarget||t).some(function(Ee){return oO(Ee,Ve)})){if(qo.isTouch||C.state.isVisible&&C.props.trigger.indexOf("click")>=0)return}else j("onClickOutside",[C,be]);C.props.hideOnClick===!0&&(C.clearDelayTimeouts(),C.hide(),a=!0,setTimeout(function(){a=!1}),C.state.isMounted||te())}}}function ue(){l=!0}function pe(){l=!1}function Z(){var be=P();be.addEventListener("mousedown",fe,!0),be.addEventListener("touchend",fe,pa),be.addEventListener("touchstart",pe,pa),be.addEventListener("touchmove",ue,pa)}function te(){var be=P();be.removeEventListener("mousedown",fe,!0),be.removeEventListener("touchend",fe,pa),be.removeEventListener("touchstart",pe,pa),be.removeEventListener("touchmove",ue,pa)}function ce(be,Ve){re(be,function(){!C.state.isVisible&&I.parentNode&&I.parentNode.contains(I)&&Ve()})}function ne(be,Ve){re(be,Ve)}function re(be,Ve){var Ee=_().box;function He(Ye){Ye.target===Ee&&(gb(Ee,"remove",He),Ve())}if(be===0)return Ve();gb(Ee,"remove",p),gb(Ee,"add",He),p=He}function le(be,Ve,Ee){Ee===void 0&&(Ee=!1);var He=Tl(C.props.triggerTarget||t);He.forEach(function(Ye){Ye.addEventListener(be,Ve,Ee),b.push({node:Ye,eventType:be,handler:Ve,options:Ee})})}function ye(){B()&&(le("touchstart",ee,{passive:!0}),le("touchend",we,{passive:!0})),Vj(C.props.trigger).forEach(function(be){if(be!=="manual")switch(le(be,ee),be){case"mouseenter":le("mouseleave",we);break;case"focus":le(e9?"focusout":"blur",Ce);break;case"focusin":le("focusout",Ce);break}})}function X(){b.forEach(function(be){var Ve=be.node,Ee=be.eventType,He=be.handler,Ye=be.options;Ve.removeEventListener(Ee,He,Ye)}),b=[]}function ee(be){var Ve,Ee=!1;if(!(!C.state.isEnabled||Ae(be)||a)){var He=((Ve=f)==null?void 0:Ve.type)==="focus";f=be,y=be.currentTarget,U(),!C.state.isVisible&&Uj(be)&&Jf.forEach(function(Ye){return Ye(be)}),be.type==="click"&&(C.props.trigger.indexOf("mouseenter")<0||s)&&C.props.hideOnClick!==!1&&C.state.isVisible?Ee=!0:De(be),be.type==="click"&&(s=!Ee),Ee&&!He&&yt(be)}}function ie(be){var Ve=be.target,Ee=F().contains(Ve)||I.contains(Ve);if(!(be.type==="mousemove"&&Ee)){var He=Be().concat(I).map(function(Ye){var Qe,Pt=Ye._tippy,Xn=(Qe=Pt.popperInstance)==null?void 0:Qe.state;return Xn?{popperRect:Ye.getBoundingClientRect(),popperState:Xn,props:n}:null}).filter(Boolean);Gj(He,be)&&(Y(),yt(be))}}function we(be){var Ve=Ae(be)||C.props.trigger.indexOf("click")>=0&&s;if(!Ve){if(C.props.interactive){C.hideWithInteractivity(be);return}yt(be)}}function Ce(be){C.props.trigger.indexOf("focusin")<0&&be.target!==F()||C.props.interactive&&be.relatedTarget&&I.contains(be.relatedTarget)||yt(be)}function Ae(be){return qo.isTouch?B()!==be.type.indexOf("touch")>=0:!1}function Me(){Ie();var be=C.props,Ve=be.popperOptions,Ee=be.placement,He=be.offset,Ye=be.getReferenceClientRect,Qe=be.moveTransition,Pt=H()?vb(I).arrow:null,Xn=Ye?{getBoundingClientRect:Ye,contextElement:Ye.contextElement||F()}:t,ir={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Ts){var ni=Ts.state;if(H()){var st=_(),Zn=st.box;["placement","reference-hidden","escaped"].forEach(function(Pi){Pi==="placement"?Zn.setAttribute("data-placement",ni.placement):ni.attributes.popper["data-popper-"+Pi]?Zn.setAttribute("data-"+Pi,""):Zn.removeAttribute("data-"+Pi)}),ni.attributes.popper={}}}},Mo=[{name:"offset",options:{offset:He}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Qe}},ir];H()&&Pt&&Mo.push({name:"arrow",options:{element:Pt,padding:3}}),Mo.push.apply(Mo,(Ve==null?void 0:Ve.modifiers)||[]),C.popperInstance=mk(Xn,I,Object.assign({},Ve,{placement:Ee,onFirstUpdate:m,modifiers:Mo}))}function Ie(){C.popperInstance&&(C.popperInstance.destroy(),C.popperInstance=null)}function me(){var be=C.props.appendTo,Ve,Ee=F();C.props.interactive&&be===ZE||be==="parent"?Ve=Ee.parentNode:Ve=QE(be,[Ee]),Ve.contains(I)||Ve.appendChild(I),C.state.isMounted=!0,Me(),process.env.NODE_ENV!=="production"&&Ci(C.props.interactive&&be===$r.appendTo&&Ee.nextElementSibling!==I,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
313
+ `,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var l9=function(){return"innerHTML"};function bb(t,e){t[l9()]=e}function pO(t){var e=ou();return t===!0?e.className=JE:(e.className=XE,iu(t)?e.appendChild(t):bb(e,t)),e}function hO(t,e){iu(e.content)?(bb(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?bb(t,e.content):t.textContent=e.content)}function vb(t){var e=t.firstElementChild,n=Gf(e.children);return{box:e,content:n.find(function(r){return r.classList.contains(GE)}),arrow:n.find(function(r){return r.classList.contains(JE)||r.classList.contains(XE)}),backdrop:n.find(function(r){return r.classList.contains(Fj)})}}function mO(t){var e=ou(),n=ou();n.className=Bj,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=ou();r.className=GE,r.setAttribute("data-state","hidden"),hO(r,t.props),e.appendChild(n),n.appendChild(r),o(t.props,t.props);function o(i,s){var a=vb(e),l=a.box,u=a.content,f=a.arrow;s.theme?l.setAttribute("data-theme",s.theme):l.removeAttribute("data-theme"),typeof s.animation=="string"?l.setAttribute("data-animation",s.animation):l.removeAttribute("data-animation"),s.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?l.setAttribute("role",s.role):l.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&hO(u,t.props),s.arrow?f?i.arrow!==s.arrow&&(l.removeChild(f),l.appendChild(pO(s.arrow))):l.appendChild(pO(s.arrow)):f&&l.removeChild(f)}return{popper:e,onUpdate:o}}mO.$$tippy=!0;var c9=1,Jf=[],xb=[];function u9(t,e){var n=dO(t,Object.assign({},$r,uO(nO(e)))),r,o,i,s=!1,a=!1,l=!1,u=!1,f,p,m,b=[],v=eO(ie,n.interactiveDebounce),y,x=c9++,S=null,k=Hj(n.plugins),T={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},C={id:x,reference:t,popper:ou(),popperInstance:S,props:n,state:T,plugins:k,clearDelayTimeouts:Pn,setProps:on,setContent:gn,show:Sn,hide:Jn,hideWithInteractivity:ot,enable:ct,disable:wn,unmount:Mn,destroy:Zt};if(!n.render)return process.env.NODE_ENV!=="production"&&yb(!0,"render() function has not been supplied."),C;var O=n.render(C),I=O.popper,N=O.onUpdate;I.setAttribute("data-tippy-root",""),I.id="tippy-"+C.id,C.popper=I,t._tippy=C,I._tippy=C;var L=k.map(function(be){return be.fn(C)}),V=t.hasAttribute("aria-expanded");return ye(),U(),R(),j("onCreate",[C]),n.showOnCreate&&De(),I.addEventListener("mouseenter",function(){C.props.interactive&&C.state.isVisible&&C.clearDelayTimeouts()}),I.addEventListener("mouseleave",function(){C.props.interactive&&C.props.trigger.indexOf("mouseenter")>=0&&P().addEventListener("mousemove",v)}),C;function M(){var be=C.props.touch;return Array.isArray(be)?be:[be,0]}function B(){return M()[0]==="hold"}function H(){var be;return!!((be=C.props.render)!=null&&be.$$tippy)}function F(){return y||t}function P(){var be=F().parentNode;return be?Yj(be):document}function _(){return vb(I)}function D(be){return C.state.isMounted&&!C.state.isVisible||qo.isTouch||f&&f.type==="focus"?0:pb(C.props.delay,be?0:1,$r.delay)}function R(be){be===void 0&&(be=!1),I.style.pointerEvents=C.props.interactive&&!be?"":"none",I.style.zIndex=""+C.props.zIndex}function j(be,Ve,Ee){if(Ee===void 0&&(Ee=!0),L.forEach(function(Ye){Ye[be]&&Ye[be].apply(Ye,Ve)}),Ee){var He;(He=C.props)[be].apply(He,Ve)}}function K(){var be=C.props.aria;if(be.content){var Ve="aria-"+be.content,Ee=I.id,He=Tl(C.props.triggerTarget||t);He.forEach(function(Ye){var Qe=Ye.getAttribute(Ve);if(C.state.isVisible)Ye.setAttribute(Ve,Qe?Qe+" "+Ee:Ee);else{var Pt=Qe&&Qe.replace(Ee,"").trim();Pt?Ye.setAttribute(Ve,Pt):Ye.removeAttribute(Ve)}})}}function U(){if(!(V||!C.props.aria.expanded)){var be=Tl(C.props.triggerTarget||t);be.forEach(function(Ve){C.props.interactive?Ve.setAttribute("aria-expanded",C.state.isVisible&&Ve===F()?"true":"false"):Ve.removeAttribute("aria-expanded")})}}function Y(){P().removeEventListener("mousemove",v),Jf=Jf.filter(function(be){return be!==v})}function fe(be){if(!(qo.isTouch&&(l||be.type==="mousedown"))){var Ve=be.composedPath&&be.composedPath()[0]||be.target;if(!(C.props.interactive&&oO(I,Ve))){if(Tl(C.props.triggerTarget||t).some(function(Ee){return oO(Ee,Ve)})){if(qo.isTouch||C.state.isVisible&&C.props.trigger.indexOf("click")>=0)return}else j("onClickOutside",[C,be]);C.props.hideOnClick===!0&&(C.clearDelayTimeouts(),C.hide(),a=!0,setTimeout(function(){a=!1}),C.state.isMounted||te())}}}function ue(){l=!0}function pe(){l=!1}function Z(){var be=P();be.addEventListener("mousedown",fe,!0),be.addEventListener("touchend",fe,pa),be.addEventListener("touchstart",pe,pa),be.addEventListener("touchmove",ue,pa)}function te(){var be=P();be.removeEventListener("mousedown",fe,!0),be.removeEventListener("touchend",fe,pa),be.removeEventListener("touchstart",pe,pa),be.removeEventListener("touchmove",ue,pa)}function ce(be,Ve){re(be,function(){!C.state.isVisible&&I.parentNode&&I.parentNode.contains(I)&&Ve()})}function ne(be,Ve){re(be,Ve)}function re(be,Ve){var Ee=_().box;function He(Ye){Ye.target===Ee&&(gb(Ee,"remove",He),Ve())}if(be===0)return Ve();gb(Ee,"remove",p),gb(Ee,"add",He),p=He}function le(be,Ve,Ee){Ee===void 0&&(Ee=!1);var He=Tl(C.props.triggerTarget||t);He.forEach(function(Ye){Ye.addEventListener(be,Ve,Ee),b.push({node:Ye,eventType:be,handler:Ve,options:Ee})})}function ye(){B()&&(le("touchstart",ee,{passive:!0}),le("touchend",we,{passive:!0})),Vj(C.props.trigger).forEach(function(be){if(be!=="manual")switch(le(be,ee),be){case"mouseenter":le("mouseleave",we);break;case"focus":le(e9?"focusout":"blur",Ce);break;case"focusin":le("focusout",Ce);break}})}function X(){b.forEach(function(be){var Ve=be.node,Ee=be.eventType,He=be.handler,Ye=be.options;Ve.removeEventListener(Ee,He,Ye)}),b=[]}function ee(be){var Ve,Ee=!1;if(!(!C.state.isEnabled||Pe(be)||a)){var He=((Ve=f)==null?void 0:Ve.type)==="focus";f=be,y=be.currentTarget,U(),!C.state.isVisible&&Uj(be)&&Jf.forEach(function(Ye){return Ye(be)}),be.type==="click"&&(C.props.trigger.indexOf("mouseenter")<0||s)&&C.props.hideOnClick!==!1&&C.state.isVisible?Ee=!0:De(be),be.type==="click"&&(s=!Ee),Ee&&!He&&yt(be)}}function ie(be){var Ve=be.target,Ee=F().contains(Ve)||I.contains(Ve);if(!(be.type==="mousemove"&&Ee)){var He=Be().concat(I).map(function(Ye){var Qe,Pt=Ye._tippy,Xn=(Qe=Pt.popperInstance)==null?void 0:Qe.state;return Xn?{popperRect:Ye.getBoundingClientRect(),popperState:Xn,props:n}:null}).filter(Boolean);Gj(He,be)&&(Y(),yt(be))}}function we(be){var Ve=Pe(be)||C.props.trigger.indexOf("click")>=0&&s;if(!Ve){if(C.props.interactive){C.hideWithInteractivity(be);return}yt(be)}}function Ce(be){C.props.trigger.indexOf("focusin")<0&&be.target!==F()||C.props.interactive&&be.relatedTarget&&I.contains(be.relatedTarget)||yt(be)}function Pe(be){return qo.isTouch?B()!==be.type.indexOf("touch")>=0:!1}function Me(){Ie();var be=C.props,Ve=be.popperOptions,Ee=be.placement,He=be.offset,Ye=be.getReferenceClientRect,Qe=be.moveTransition,Pt=H()?vb(I).arrow:null,Xn=Ye?{getBoundingClientRect:Ye,contextElement:Ye.contextElement||F()}:t,ir={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Ts){var ni=Ts.state;if(H()){var st=_(),Zn=st.box;["placement","reference-hidden","escaped"].forEach(function(Pi){Pi==="placement"?Zn.setAttribute("data-placement",ni.placement):ni.attributes.popper["data-popper-"+Pi]?Zn.setAttribute("data-"+Pi,""):Zn.removeAttribute("data-"+Pi)}),ni.attributes.popper={}}}},Mo=[{name:"offset",options:{offset:He}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Qe}},ir];H()&&Pt&&Mo.push({name:"arrow",options:{element:Pt,padding:3}}),Mo.push.apply(Mo,(Ve==null?void 0:Ve.modifiers)||[]),C.popperInstance=mk(Xn,I,Object.assign({},Ve,{placement:Ee,onFirstUpdate:m,modifiers:Mo}))}function Ie(){C.popperInstance&&(C.popperInstance.destroy(),C.popperInstance=null)}function me(){var be=C.props.appendTo,Ve,Ee=F();C.props.interactive&&be===ZE||be==="parent"?Ve=Ee.parentNode:Ve=QE(be,[Ee]),Ve.contains(I)||Ve.appendChild(I),C.state.isMounted=!0,Me(),process.env.NODE_ENV!=="production"&&Ci(C.props.interactive&&be===$r.appendTo&&Ee.nextElementSibling!==I,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
314
314
 
315
315
  `,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
316
316
 
@@ -360,10 +360,10 @@ img.ProseMirror-separator {
360
360
  * Released under MIT license <https://lodash.com/license>
361
361
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
362
362
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
363
- */var K7=du.exports,wM;function Y7(){return wM||(wM=1,(function(t,e){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",p=1,m=2,b=4,v=1,y=2,x=1,S=2,k=4,T=8,C=16,O=32,I=64,N=128,L=256,V=512,M=30,B="...",H=800,F=16,P=1,_=2,D=3,R=1/0,j=9007199254740991,K=17976931348623157e292,U=NaN,Y=4294967295,fe=Y-1,ue=Y>>>1,pe=[["ary",N],["bind",x],["bindKey",S],["curry",T],["curryRight",C],["flip",V],["partial",O],["partialRight",I],["rearg",L]],Z="[object Arguments]",te="[object Array]",ce="[object AsyncFunction]",ne="[object Boolean]",re="[object Date]",le="[object DOMException]",ye="[object Error]",X="[object Function]",ee="[object GeneratorFunction]",ie="[object Map]",we="[object Number]",Ce="[object Null]",Ae="[object Object]",Me="[object Promise]",Ie="[object Proxy]",me="[object RegExp]",Be="[object Set]",De="[object String]",yt="[object Symbol]",ct="[object Undefined]",wn="[object WeakMap]",Pn="[object WeakSet]",on="[object ArrayBuffer]",gn="[object DataView]",Sn="[object Float32Array]",Jn="[object Float64Array]",ot="[object Int8Array]",Mn="[object Int16Array]",Zt="[object Int32Array]",be="[object Uint8Array]",Ve="[object Uint8ClampedArray]",Ee="[object Uint16Array]",He="[object Uint32Array]",Ye=/\b__p \+= '';/g,Qe=/\b(__p \+=) '' \+/g,Pt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Xn=/&(?:amp|lt|gt|quot|#39);/g,ir=/[&<>"']/g,Mo=RegExp(Xn.source),Ea=RegExp(ir.source),Ts=/<%-([\s\S]+?)%>/g,ni=/<%([\s\S]+?)%>/g,st=/<%=([\s\S]+?)%>/g,Zn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pi=/^\w*$/,ste=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vv=/[\\^$.*+?()[\]{}|]/g,ate=RegExp(vv.source),xv=/^\s+/,lte=/\s/,cte=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ute=/\{\n\/\* \[wrapped with (.+)\] \*/,dte=/,? & /,fte=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pte=/[()=,{}\[\]\/\s]/,hte=/\\(\\)?/g,mte=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,JI=/\w*$/,gte=/^[-+]0x[0-9a-f]+$/i,yte=/^0b[01]+$/i,bte=/^\[object .+?Constructor\]$/,vte=/^0o[0-7]+$/i,xte=/^(?:0|[1-9]\d*)$/,wte=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ah=/($^)/,Ste=/['\n\r\u2028\u2029\\]/g,Ph="\\ud800-\\udfff",Cte="\\u0300-\\u036f",Tte="\\ufe20-\\ufe2f",kte="\\u20d0-\\u20ff",XI=Cte+Tte+kte,ZI="\\u2700-\\u27bf",QI="a-z\\xdf-\\xf6\\xf8-\\xff",Ete="\\xac\\xb1\\xd7\\xf7",Ote="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Mte="\\u2000-\\u206f",_te=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",eD="A-Z\\xc0-\\xd6\\xd8-\\xde",tD="\\ufe0e\\ufe0f",nD=Ete+Ote+Mte+_te,wv="['’]",Ite="["+Ph+"]",rD="["+nD+"]",Nh="["+XI+"]",oD="\\d+",Dte="["+ZI+"]",iD="["+QI+"]",sD="[^"+Ph+nD+oD+ZI+QI+eD+"]",Sv="\\ud83c[\\udffb-\\udfff]",Ate="(?:"+Nh+"|"+Sv+")",aD="[^"+Ph+"]",Cv="(?:\\ud83c[\\udde6-\\uddff]){2}",Tv="[\\ud800-\\udbff][\\udc00-\\udfff]",zl="["+eD+"]",lD="\\u200d",cD="(?:"+iD+"|"+sD+")",Pte="(?:"+zl+"|"+sD+")",uD="(?:"+wv+"(?:d|ll|m|re|s|t|ve))?",dD="(?:"+wv+"(?:D|LL|M|RE|S|T|VE))?",fD=Ate+"?",pD="["+tD+"]?",Nte="(?:"+lD+"(?:"+[aD,Cv,Tv].join("|")+")"+pD+fD+")*",$te="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Lte="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",hD=pD+fD+Nte,Bte="(?:"+[Dte,Cv,Tv].join("|")+")"+hD,Fte="(?:"+[aD+Nh+"?",Nh,Cv,Tv,Ite].join("|")+")",Rte=RegExp(wv,"g"),zte=RegExp(Nh,"g"),kv=RegExp(Sv+"(?="+Sv+")|"+Fte+hD,"g"),Vte=RegExp([zl+"?"+iD+"+"+uD+"(?="+[rD,zl,"$"].join("|")+")",Pte+"+"+dD+"(?="+[rD,zl+cD,"$"].join("|")+")",zl+"?"+cD+"+"+uD,zl+"+"+dD,Lte,$te,oD,Bte].join("|"),"g"),Hte=RegExp("["+lD+Ph+XI+tD+"]"),Wte=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,jte=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ute=-1,Yt={};Yt[Sn]=Yt[Jn]=Yt[ot]=Yt[Mn]=Yt[Zt]=Yt[be]=Yt[Ve]=Yt[Ee]=Yt[He]=!0,Yt[Z]=Yt[te]=Yt[on]=Yt[ne]=Yt[gn]=Yt[re]=Yt[ye]=Yt[X]=Yt[ie]=Yt[we]=Yt[Ae]=Yt[me]=Yt[Be]=Yt[De]=Yt[wn]=!1;var jt={};jt[Z]=jt[te]=jt[on]=jt[gn]=jt[ne]=jt[re]=jt[Sn]=jt[Jn]=jt[ot]=jt[Mn]=jt[Zt]=jt[ie]=jt[we]=jt[Ae]=jt[me]=jt[Be]=jt[De]=jt[yt]=jt[be]=jt[Ve]=jt[Ee]=jt[He]=!0,jt[ye]=jt[X]=jt[wn]=!1;var qte={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Kte={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Yte={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Gte={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Jte=parseFloat,Xte=parseInt,mD=typeof ji=="object"&&ji&&ji.Object===Object&&ji,Zte=typeof self=="object"&&self&&self.Object===Object&&self,Qn=mD||Zte||Function("return this")(),Ev=e&&!e.nodeType&&e,Oa=Ev&&!0&&t&&!t.nodeType&&t,gD=Oa&&Oa.exports===Ev,Ov=gD&&mD.process,co=(function(){try{var ae=Oa&&Oa.require&&Oa.require("util").types;return ae||Ov&&Ov.binding&&Ov.binding("util")}catch{}})(),yD=co&&co.isArrayBuffer,bD=co&&co.isDate,vD=co&&co.isMap,xD=co&&co.isRegExp,wD=co&&co.isSet,SD=co&&co.isTypedArray;function Fr(ae,Se,ve){switch(ve.length){case 0:return ae.call(Se);case 1:return ae.call(Se,ve[0]);case 2:return ae.call(Se,ve[0],ve[1]);case 3:return ae.call(Se,ve[0],ve[1],ve[2])}return ae.apply(Se,ve)}function Qte(ae,Se,ve,We){for(var lt=-1,It=ae==null?0:ae.length;++lt<It;){var Nn=ae[lt];Se(We,Nn,ve(Nn),ae)}return We}function uo(ae,Se){for(var ve=-1,We=ae==null?0:ae.length;++ve<We&&Se(ae[ve],ve,ae)!==!1;);return ae}function ene(ae,Se){for(var ve=ae==null?0:ae.length;ve--&&Se(ae[ve],ve,ae)!==!1;);return ae}function CD(ae,Se){for(var ve=-1,We=ae==null?0:ae.length;++ve<We;)if(!Se(ae[ve],ve,ae))return!1;return!0}function ks(ae,Se){for(var ve=-1,We=ae==null?0:ae.length,lt=0,It=[];++ve<We;){var Nn=ae[ve];Se(Nn,ve,ae)&&(It[lt++]=Nn)}return It}function $h(ae,Se){var ve=ae==null?0:ae.length;return!!ve&&Vl(ae,Se,0)>-1}function Mv(ae,Se,ve){for(var We=-1,lt=ae==null?0:ae.length;++We<lt;)if(ve(Se,ae[We]))return!0;return!1}function Qt(ae,Se){for(var ve=-1,We=ae==null?0:ae.length,lt=Array(We);++ve<We;)lt[ve]=Se(ae[ve],ve,ae);return lt}function Es(ae,Se){for(var ve=-1,We=Se.length,lt=ae.length;++ve<We;)ae[lt+ve]=Se[ve];return ae}function _v(ae,Se,ve,We){var lt=-1,It=ae==null?0:ae.length;for(We&&It&&(ve=ae[++lt]);++lt<It;)ve=Se(ve,ae[lt],lt,ae);return ve}function tne(ae,Se,ve,We){var lt=ae==null?0:ae.length;for(We&&lt&&(ve=ae[--lt]);lt--;)ve=Se(ve,ae[lt],lt,ae);return ve}function Iv(ae,Se){for(var ve=-1,We=ae==null?0:ae.length;++ve<We;)if(Se(ae[ve],ve,ae))return!0;return!1}var nne=Dv("length");function rne(ae){return ae.split("")}function one(ae){return ae.match(fte)||[]}function TD(ae,Se,ve){var We;return ve(ae,function(lt,It,Nn){if(Se(lt,It,Nn))return We=It,!1}),We}function Lh(ae,Se,ve,We){for(var lt=ae.length,It=ve+(We?1:-1);We?It--:++It<lt;)if(Se(ae[It],It,ae))return It;return-1}function Vl(ae,Se,ve){return Se===Se?gne(ae,Se,ve):Lh(ae,kD,ve)}function ine(ae,Se,ve,We){for(var lt=ve-1,It=ae.length;++lt<It;)if(We(ae[lt],Se))return lt;return-1}function kD(ae){return ae!==ae}function ED(ae,Se){var ve=ae==null?0:ae.length;return ve?Pv(ae,Se)/ve:U}function Dv(ae){return function(Se){return Se==null?n:Se[ae]}}function Av(ae){return function(Se){return ae==null?n:ae[Se]}}function OD(ae,Se,ve,We,lt){return lt(ae,function(It,Nn,Vt){ve=We?(We=!1,It):Se(ve,It,Nn,Vt)}),ve}function sne(ae,Se){var ve=ae.length;for(ae.sort(Se);ve--;)ae[ve]=ae[ve].value;return ae}function Pv(ae,Se){for(var ve,We=-1,lt=ae.length;++We<lt;){var It=Se(ae[We]);It!==n&&(ve=ve===n?It:ve+It)}return ve}function Nv(ae,Se){for(var ve=-1,We=Array(ae);++ve<ae;)We[ve]=Se(ve);return We}function ane(ae,Se){return Qt(Se,function(ve){return[ve,ae[ve]]})}function MD(ae){return ae&&ae.slice(0,AD(ae)+1).replace(xv,"")}function Rr(ae){return function(Se){return ae(Se)}}function $v(ae,Se){return Qt(Se,function(ve){return ae[ve]})}function zu(ae,Se){return ae.has(Se)}function _D(ae,Se){for(var ve=-1,We=ae.length;++ve<We&&Vl(Se,ae[ve],0)>-1;);return ve}function ID(ae,Se){for(var ve=ae.length;ve--&&Vl(Se,ae[ve],0)>-1;);return ve}function lne(ae,Se){for(var ve=ae.length,We=0;ve--;)ae[ve]===Se&&++We;return We}var cne=Av(qte),une=Av(Kte);function dne(ae){return"\\"+Gte[ae]}function fne(ae,Se){return ae==null?n:ae[Se]}function Hl(ae){return Hte.test(ae)}function pne(ae){return Wte.test(ae)}function hne(ae){for(var Se,ve=[];!(Se=ae.next()).done;)ve.push(Se.value);return ve}function Lv(ae){var Se=-1,ve=Array(ae.size);return ae.forEach(function(We,lt){ve[++Se]=[lt,We]}),ve}function DD(ae,Se){return function(ve){return ae(Se(ve))}}function Os(ae,Se){for(var ve=-1,We=ae.length,lt=0,It=[];++ve<We;){var Nn=ae[ve];(Nn===Se||Nn===f)&&(ae[ve]=f,It[lt++]=ve)}return It}function Bh(ae){var Se=-1,ve=Array(ae.size);return ae.forEach(function(We){ve[++Se]=We}),ve}function mne(ae){var Se=-1,ve=Array(ae.size);return ae.forEach(function(We){ve[++Se]=[We,We]}),ve}function gne(ae,Se,ve){for(var We=ve-1,lt=ae.length;++We<lt;)if(ae[We]===Se)return We;return-1}function yne(ae,Se,ve){for(var We=ve+1;We--;)if(ae[We]===Se)return We;return We}function Wl(ae){return Hl(ae)?vne(ae):nne(ae)}function _o(ae){return Hl(ae)?xne(ae):rne(ae)}function AD(ae){for(var Se=ae.length;Se--&&lte.test(ae.charAt(Se)););return Se}var bne=Av(Yte);function vne(ae){for(var Se=kv.lastIndex=0;kv.test(ae);)++Se;return Se}function xne(ae){return ae.match(kv)||[]}function wne(ae){return ae.match(Vte)||[]}var Sne=(function ae(Se){Se=Se==null?Qn:jl.defaults(Qn.Object(),Se,jl.pick(Qn,jte));var ve=Se.Array,We=Se.Date,lt=Se.Error,It=Se.Function,Nn=Se.Math,Vt=Se.Object,Bv=Se.RegExp,Cne=Se.String,fo=Se.TypeError,Fh=ve.prototype,Tne=It.prototype,Ul=Vt.prototype,Rh=Se["__core-js_shared__"],zh=Tne.toString,$t=Ul.hasOwnProperty,kne=0,PD=(function(){var d=/[^.]+$/.exec(Rh&&Rh.keys&&Rh.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""})(),Vh=Ul.toString,Ene=zh.call(Vt),One=Qn._,Mne=Bv("^"+zh.call($t).replace(vv,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Hh=gD?Se.Buffer:n,Ms=Se.Symbol,Wh=Se.Uint8Array,ND=Hh?Hh.allocUnsafe:n,jh=DD(Vt.getPrototypeOf,Vt),$D=Vt.create,LD=Ul.propertyIsEnumerable,Uh=Fh.splice,BD=Ms?Ms.isConcatSpreadable:n,Vu=Ms?Ms.iterator:n,Ma=Ms?Ms.toStringTag:n,qh=(function(){try{var d=Pa(Vt,"defineProperty");return d({},"",{}),d}catch{}})(),_ne=Se.clearTimeout!==Qn.clearTimeout&&Se.clearTimeout,Ine=We&&We.now!==Qn.Date.now&&We.now,Dne=Se.setTimeout!==Qn.setTimeout&&Se.setTimeout,Kh=Nn.ceil,Yh=Nn.floor,Fv=Vt.getOwnPropertySymbols,Ane=Hh?Hh.isBuffer:n,FD=Se.isFinite,Pne=Fh.join,Nne=DD(Vt.keys,Vt),$n=Nn.max,sr=Nn.min,$ne=We.now,Lne=Se.parseInt,RD=Nn.random,Bne=Fh.reverse,Rv=Pa(Se,"DataView"),Hu=Pa(Se,"Map"),zv=Pa(Se,"Promise"),ql=Pa(Se,"Set"),Wu=Pa(Se,"WeakMap"),ju=Pa(Vt,"create"),Gh=Wu&&new Wu,Kl={},Fne=Na(Rv),Rne=Na(Hu),zne=Na(zv),Vne=Na(ql),Hne=Na(Wu),Jh=Ms?Ms.prototype:n,Uu=Jh?Jh.valueOf:n,zD=Jh?Jh.toString:n;function W(d){if(yn(d)&&!ut(d)&&!(d instanceof St)){if(d instanceof po)return d;if($t.call(d,"__wrapped__"))return VA(d)}return new po(d)}var Yl=(function(){function d(){}return function(h){if(!sn(h))return{};if($D)return $D(h);d.prototype=h;var w=new d;return d.prototype=n,w}})();function Xh(){}function po(d,h){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=n}W.templateSettings={escape:Ts,evaluate:ni,interpolate:st,variable:"",imports:{_:W}},W.prototype=Xh.prototype,W.prototype.constructor=W,po.prototype=Yl(Xh.prototype),po.prototype.constructor=po;function St(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Y,this.__views__=[]}function Wne(){var d=new St(this.__wrapped__);return d.__actions__=Er(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=Er(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=Er(this.__views__),d}function jne(){if(this.__filtered__){var d=new St(this);d.__dir__=-1,d.__filtered__=!0}else d=this.clone(),d.__dir__*=-1;return d}function Une(){var d=this.__wrapped__.value(),h=this.__dir__,w=ut(d),E=h<0,$=w?d.length:0,q=roe(0,$,this.__views__),G=q.start,Q=q.end,de=Q-G,Te=E?Q:G-1,ke=this.__iteratees__,_e=ke.length,Re=0,Ge=sr(de,this.__takeCount__);if(!w||!E&&$==de&&Ge==de)return uA(d,this.__actions__);var et=[];e:for(;de--&&Re<Ge;){Te+=h;for(var ht=-1,tt=d[Te];++ht<_e;){var xt=ke[ht],Et=xt.iteratee,Hr=xt.type,gr=Et(tt);if(Hr==_)tt=gr;else if(!gr){if(Hr==P)continue e;break e}}et[Re++]=tt}return et}St.prototype=Yl(Xh.prototype),St.prototype.constructor=St;function _a(d){var h=-1,w=d==null?0:d.length;for(this.clear();++h<w;){var E=d[h];this.set(E[0],E[1])}}function qne(){this.__data__=ju?ju(null):{},this.size=0}function Kne(d){var h=this.has(d)&&delete this.__data__[d];return this.size-=h?1:0,h}function Yne(d){var h=this.__data__;if(ju){var w=h[d];return w===l?n:w}return $t.call(h,d)?h[d]:n}function Gne(d){var h=this.__data__;return ju?h[d]!==n:$t.call(h,d)}function Jne(d,h){var w=this.__data__;return this.size+=this.has(d)?0:1,w[d]=ju&&h===n?l:h,this}_a.prototype.clear=qne,_a.prototype.delete=Kne,_a.prototype.get=Yne,_a.prototype.has=Gne,_a.prototype.set=Jne;function Ni(d){var h=-1,w=d==null?0:d.length;for(this.clear();++h<w;){var E=d[h];this.set(E[0],E[1])}}function Xne(){this.__data__=[],this.size=0}function Zne(d){var h=this.__data__,w=Zh(h,d);if(w<0)return!1;var E=h.length-1;return w==E?h.pop():Uh.call(h,w,1),--this.size,!0}function Qne(d){var h=this.__data__,w=Zh(h,d);return w<0?n:h[w][1]}function ere(d){return Zh(this.__data__,d)>-1}function tre(d,h){var w=this.__data__,E=Zh(w,d);return E<0?(++this.size,w.push([d,h])):w[E][1]=h,this}Ni.prototype.clear=Xne,Ni.prototype.delete=Zne,Ni.prototype.get=Qne,Ni.prototype.has=ere,Ni.prototype.set=tre;function $i(d){var h=-1,w=d==null?0:d.length;for(this.clear();++h<w;){var E=d[h];this.set(E[0],E[1])}}function nre(){this.size=0,this.__data__={hash:new _a,map:new(Hu||Ni),string:new _a}}function rre(d){var h=um(this,d).delete(d);return this.size-=h?1:0,h}function ore(d){return um(this,d).get(d)}function ire(d){return um(this,d).has(d)}function sre(d,h){var w=um(this,d),E=w.size;return w.set(d,h),this.size+=w.size==E?0:1,this}$i.prototype.clear=nre,$i.prototype.delete=rre,$i.prototype.get=ore,$i.prototype.has=ire,$i.prototype.set=sre;function Ia(d){var h=-1,w=d==null?0:d.length;for(this.__data__=new $i;++h<w;)this.add(d[h])}function are(d){return this.__data__.set(d,l),this}function lre(d){return this.__data__.has(d)}Ia.prototype.add=Ia.prototype.push=are,Ia.prototype.has=lre;function Io(d){var h=this.__data__=new Ni(d);this.size=h.size}function cre(){this.__data__=new Ni,this.size=0}function ure(d){var h=this.__data__,w=h.delete(d);return this.size=h.size,w}function dre(d){return this.__data__.get(d)}function fre(d){return this.__data__.has(d)}function pre(d,h){var w=this.__data__;if(w instanceof Ni){var E=w.__data__;if(!Hu||E.length<o-1)return E.push([d,h]),this.size=++w.size,this;w=this.__data__=new $i(E)}return w.set(d,h),this.size=w.size,this}Io.prototype.clear=cre,Io.prototype.delete=ure,Io.prototype.get=dre,Io.prototype.has=fre,Io.prototype.set=pre;function VD(d,h){var w=ut(d),E=!w&&$a(d),$=!w&&!E&&Ps(d),q=!w&&!E&&!$&&Zl(d),G=w||E||$||q,Q=G?Nv(d.length,Cne):[],de=Q.length;for(var Te in d)(h||$t.call(d,Te))&&!(G&&(Te=="length"||$&&(Te=="offset"||Te=="parent")||q&&(Te=="buffer"||Te=="byteLength"||Te=="byteOffset")||Ri(Te,de)))&&Q.push(Te);return Q}function HD(d){var h=d.length;return h?d[Xv(0,h-1)]:n}function hre(d,h){return dm(Er(d),Da(h,0,d.length))}function mre(d){return dm(Er(d))}function Vv(d,h,w){(w!==n&&!Do(d[h],w)||w===n&&!(h in d))&&Li(d,h,w)}function qu(d,h,w){var E=d[h];(!($t.call(d,h)&&Do(E,w))||w===n&&!(h in d))&&Li(d,h,w)}function Zh(d,h){for(var w=d.length;w--;)if(Do(d[w][0],h))return w;return-1}function gre(d,h,w,E){return _s(d,function($,q,G){h(E,$,w($),G)}),E}function WD(d,h){return d&&oi(h,jn(h),d)}function yre(d,h){return d&&oi(h,Mr(h),d)}function Li(d,h,w){h=="__proto__"&&qh?qh(d,h,{configurable:!0,enumerable:!0,value:w,writable:!0}):d[h]=w}function Hv(d,h){for(var w=-1,E=h.length,$=ve(E),q=d==null;++w<E;)$[w]=q?n:S1(d,h[w]);return $}function Da(d,h,w){return d===d&&(w!==n&&(d=d<=w?d:w),h!==n&&(d=d>=h?d:h)),d}function ho(d,h,w,E,$,q){var G,Q=h&p,de=h&m,Te=h&b;if(w&&(G=$?w(d,E,$,q):w(d)),G!==n)return G;if(!sn(d))return d;var ke=ut(d);if(ke){if(G=ioe(d),!Q)return Er(d,G)}else{var _e=ar(d),Re=_e==X||_e==ee;if(Ps(d))return pA(d,Q);if(_e==Ae||_e==Z||Re&&!$){if(G=de||Re?{}:AA(d),!Q)return de?Yre(d,yre(G,d)):Kre(d,WD(G,d))}else{if(!jt[_e])return $?d:{};G=soe(d,_e,Q)}}q||(q=new Io);var Ge=q.get(d);if(Ge)return Ge;q.set(d,G),aP(d)?d.forEach(function(tt){G.add(ho(tt,h,w,tt,d,q))}):iP(d)&&d.forEach(function(tt,xt){G.set(xt,ho(tt,h,w,xt,d,q))});var et=Te?de?l1:a1:de?Mr:jn,ht=ke?n:et(d);return uo(ht||d,function(tt,xt){ht&&(xt=tt,tt=d[xt]),qu(G,xt,ho(tt,h,w,xt,d,q))}),G}function bre(d){var h=jn(d);return function(w){return jD(w,d,h)}}function jD(d,h,w){var E=w.length;if(d==null)return!E;for(d=Vt(d);E--;){var $=w[E],q=h[$],G=d[$];if(G===n&&!($ in d)||!q(G))return!1}return!0}function UD(d,h,w){if(typeof d!="function")throw new fo(s);return Qu(function(){d.apply(n,w)},h)}function Ku(d,h,w,E){var $=-1,q=$h,G=!0,Q=d.length,de=[],Te=h.length;if(!Q)return de;w&&(h=Qt(h,Rr(w))),E?(q=Mv,G=!1):h.length>=o&&(q=zu,G=!1,h=new Ia(h));e:for(;++$<Q;){var ke=d[$],_e=w==null?ke:w(ke);if(ke=E||ke!==0?ke:0,G&&_e===_e){for(var Re=Te;Re--;)if(h[Re]===_e)continue e;de.push(ke)}else q(h,_e,E)||de.push(ke)}return de}var _s=bA(ri),qD=bA(jv,!0);function vre(d,h){var w=!0;return _s(d,function(E,$,q){return w=!!h(E,$,q),w}),w}function Qh(d,h,w){for(var E=-1,$=d.length;++E<$;){var q=d[E],G=h(q);if(G!=null&&(Q===n?G===G&&!Vr(G):w(G,Q)))var Q=G,de=q}return de}function xre(d,h,w,E){var $=d.length;for(w=dt(w),w<0&&(w=-w>$?0:$+w),E=E===n||E>$?$:dt(E),E<0&&(E+=$),E=w>E?0:cP(E);w<E;)d[w++]=h;return d}function KD(d,h){var w=[];return _s(d,function(E,$,q){h(E,$,q)&&w.push(E)}),w}function er(d,h,w,E,$){var q=-1,G=d.length;for(w||(w=loe),$||($=[]);++q<G;){var Q=d[q];h>0&&w(Q)?h>1?er(Q,h-1,w,E,$):Es($,Q):E||($[$.length]=Q)}return $}var Wv=vA(),YD=vA(!0);function ri(d,h){return d&&Wv(d,h,jn)}function jv(d,h){return d&&YD(d,h,jn)}function em(d,h){return ks(h,function(w){return zi(d[w])})}function Aa(d,h){h=Ds(h,d);for(var w=0,E=h.length;d!=null&&w<E;)d=d[ii(h[w++])];return w&&w==E?d:n}function GD(d,h,w){var E=h(d);return ut(d)?E:Es(E,w(d))}function hr(d){return d==null?d===n?ct:Ce:Ma&&Ma in Vt(d)?noe(d):moe(d)}function Uv(d,h){return d>h}function wre(d,h){return d!=null&&$t.call(d,h)}function Sre(d,h){return d!=null&&h in Vt(d)}function Cre(d,h,w){return d>=sr(h,w)&&d<$n(h,w)}function qv(d,h,w){for(var E=w?Mv:$h,$=d[0].length,q=d.length,G=q,Q=ve(q),de=1/0,Te=[];G--;){var ke=d[G];G&&h&&(ke=Qt(ke,Rr(h))),de=sr(ke.length,de),Q[G]=!w&&(h||$>=120&&ke.length>=120)?new Ia(G&&ke):n}ke=d[0];var _e=-1,Re=Q[0];e:for(;++_e<$&&Te.length<de;){var Ge=ke[_e],et=h?h(Ge):Ge;if(Ge=w||Ge!==0?Ge:0,!(Re?zu(Re,et):E(Te,et,w))){for(G=q;--G;){var ht=Q[G];if(!(ht?zu(ht,et):E(d[G],et,w)))continue e}Re&&Re.push(et),Te.push(Ge)}}return Te}function Tre(d,h,w,E){return ri(d,function($,q,G){h(E,w($),q,G)}),E}function Yu(d,h,w){h=Ds(h,d),d=LA(d,h);var E=d==null?d:d[ii(go(h))];return E==null?n:Fr(E,d,w)}function JD(d){return yn(d)&&hr(d)==Z}function kre(d){return yn(d)&&hr(d)==on}function Ere(d){return yn(d)&&hr(d)==re}function Gu(d,h,w,E,$){return d===h?!0:d==null||h==null||!yn(d)&&!yn(h)?d!==d&&h!==h:Ore(d,h,w,E,Gu,$)}function Ore(d,h,w,E,$,q){var G=ut(d),Q=ut(h),de=G?te:ar(d),Te=Q?te:ar(h);de=de==Z?Ae:de,Te=Te==Z?Ae:Te;var ke=de==Ae,_e=Te==Ae,Re=de==Te;if(Re&&Ps(d)){if(!Ps(h))return!1;G=!0,ke=!1}if(Re&&!ke)return q||(q=new Io),G||Zl(d)?_A(d,h,w,E,$,q):eoe(d,h,de,w,E,$,q);if(!(w&v)){var Ge=ke&&$t.call(d,"__wrapped__"),et=_e&&$t.call(h,"__wrapped__");if(Ge||et){var ht=Ge?d.value():d,tt=et?h.value():h;return q||(q=new Io),$(ht,tt,w,E,q)}}return Re?(q||(q=new Io),toe(d,h,w,E,$,q)):!1}function Mre(d){return yn(d)&&ar(d)==ie}function Kv(d,h,w,E){var $=w.length,q=$,G=!E;if(d==null)return!q;for(d=Vt(d);$--;){var Q=w[$];if(G&&Q[2]?Q[1]!==d[Q[0]]:!(Q[0]in d))return!1}for(;++$<q;){Q=w[$];var de=Q[0],Te=d[de],ke=Q[1];if(G&&Q[2]){if(Te===n&&!(de in d))return!1}else{var _e=new Io;if(E)var Re=E(Te,ke,de,d,h,_e);if(!(Re===n?Gu(ke,Te,v|y,E,_e):Re))return!1}}return!0}function XD(d){if(!sn(d)||uoe(d))return!1;var h=zi(d)?Mne:bte;return h.test(Na(d))}function _re(d){return yn(d)&&hr(d)==me}function Ire(d){return yn(d)&&ar(d)==Be}function Dre(d){return yn(d)&&ym(d.length)&&!!Yt[hr(d)]}function ZD(d){return typeof d=="function"?d:d==null?_r:typeof d=="object"?ut(d)?tA(d[0],d[1]):eA(d):xP(d)}function Yv(d){if(!Zu(d))return Nne(d);var h=[];for(var w in Vt(d))$t.call(d,w)&&w!="constructor"&&h.push(w);return h}function Are(d){if(!sn(d))return hoe(d);var h=Zu(d),w=[];for(var E in d)E=="constructor"&&(h||!$t.call(d,E))||w.push(E);return w}function Gv(d,h){return d<h}function QD(d,h){var w=-1,E=Or(d)?ve(d.length):[];return _s(d,function($,q,G){E[++w]=h($,q,G)}),E}function eA(d){var h=u1(d);return h.length==1&&h[0][2]?NA(h[0][0],h[0][1]):function(w){return w===d||Kv(w,d,h)}}function tA(d,h){return f1(d)&&PA(h)?NA(ii(d),h):function(w){var E=S1(w,d);return E===n&&E===h?C1(w,d):Gu(h,E,v|y)}}function tm(d,h,w,E,$){d!==h&&Wv(h,function(q,G){if($||($=new Io),sn(q))Pre(d,h,G,w,tm,E,$);else{var Q=E?E(h1(d,G),q,G+"",d,h,$):n;Q===n&&(Q=q),Vv(d,G,Q)}},Mr)}function Pre(d,h,w,E,$,q,G){var Q=h1(d,w),de=h1(h,w),Te=G.get(de);if(Te){Vv(d,w,Te);return}var ke=q?q(Q,de,w+"",d,h,G):n,_e=ke===n;if(_e){var Re=ut(de),Ge=!Re&&Ps(de),et=!Re&&!Ge&&Zl(de);ke=de,Re||Ge||et?ut(Q)?ke=Q:Cn(Q)?ke=Er(Q):Ge?(_e=!1,ke=pA(de,!0)):et?(_e=!1,ke=hA(de,!0)):ke=[]:ed(de)||$a(de)?(ke=Q,$a(Q)?ke=uP(Q):(!sn(Q)||zi(Q))&&(ke=AA(de))):_e=!1}_e&&(G.set(de,ke),$(ke,de,E,q,G),G.delete(de)),Vv(d,w,ke)}function nA(d,h){var w=d.length;if(w)return h+=h<0?w:0,Ri(h,w)?d[h]:n}function rA(d,h,w){h.length?h=Qt(h,function(q){return ut(q)?function(G){return Aa(G,q.length===1?q[0]:q)}:q}):h=[_r];var E=-1;h=Qt(h,Rr(Ze()));var $=QD(d,function(q,G,Q){var de=Qt(h,function(Te){return Te(q)});return{criteria:de,index:++E,value:q}});return sne($,function(q,G){return qre(q,G,w)})}function Nre(d,h){return oA(d,h,function(w,E){return C1(d,E)})}function oA(d,h,w){for(var E=-1,$=h.length,q={};++E<$;){var G=h[E],Q=Aa(d,G);w(Q,G)&&Ju(q,Ds(G,d),Q)}return q}function $re(d){return function(h){return Aa(h,d)}}function Jv(d,h,w,E){var $=E?ine:Vl,q=-1,G=h.length,Q=d;for(d===h&&(h=Er(h)),w&&(Q=Qt(d,Rr(w)));++q<G;)for(var de=0,Te=h[q],ke=w?w(Te):Te;(de=$(Q,ke,de,E))>-1;)Q!==d&&Uh.call(Q,de,1),Uh.call(d,de,1);return d}function iA(d,h){for(var w=d?h.length:0,E=w-1;w--;){var $=h[w];if(w==E||$!==q){var q=$;Ri($)?Uh.call(d,$,1):e1(d,$)}}return d}function Xv(d,h){return d+Yh(RD()*(h-d+1))}function Lre(d,h,w,E){for(var $=-1,q=$n(Kh((h-d)/(w||1)),0),G=ve(q);q--;)G[E?q:++$]=d,d+=w;return G}function Zv(d,h){var w="";if(!d||h<1||h>j)return w;do h%2&&(w+=d),h=Yh(h/2),h&&(d+=d);while(h);return w}function gt(d,h){return m1($A(d,h,_r),d+"")}function Bre(d){return HD(Ql(d))}function Fre(d,h){var w=Ql(d);return dm(w,Da(h,0,w.length))}function Ju(d,h,w,E){if(!sn(d))return d;h=Ds(h,d);for(var $=-1,q=h.length,G=q-1,Q=d;Q!=null&&++$<q;){var de=ii(h[$]),Te=w;if(de==="__proto__"||de==="constructor"||de==="prototype")return d;if($!=G){var ke=Q[de];Te=E?E(ke,de,Q):n,Te===n&&(Te=sn(ke)?ke:Ri(h[$+1])?[]:{})}qu(Q,de,Te),Q=Q[de]}return d}var sA=Gh?function(d,h){return Gh.set(d,h),d}:_r,Rre=qh?function(d,h){return qh(d,"toString",{configurable:!0,enumerable:!1,value:k1(h),writable:!0})}:_r;function zre(d){return dm(Ql(d))}function mo(d,h,w){var E=-1,$=d.length;h<0&&(h=-h>$?0:$+h),w=w>$?$:w,w<0&&(w+=$),$=h>w?0:w-h>>>0,h>>>=0;for(var q=ve($);++E<$;)q[E]=d[E+h];return q}function Vre(d,h){var w;return _s(d,function(E,$,q){return w=h(E,$,q),!w}),!!w}function nm(d,h,w){var E=0,$=d==null?E:d.length;if(typeof h=="number"&&h===h&&$<=ue){for(;E<$;){var q=E+$>>>1,G=d[q];G!==null&&!Vr(G)&&(w?G<=h:G<h)?E=q+1:$=q}return $}return Qv(d,h,_r,w)}function Qv(d,h,w,E){var $=0,q=d==null?0:d.length;if(q===0)return 0;h=w(h);for(var G=h!==h,Q=h===null,de=Vr(h),Te=h===n;$<q;){var ke=Yh(($+q)/2),_e=w(d[ke]),Re=_e!==n,Ge=_e===null,et=_e===_e,ht=Vr(_e);if(G)var tt=E||et;else Te?tt=et&&(E||Re):Q?tt=et&&Re&&(E||!Ge):de?tt=et&&Re&&!Ge&&(E||!ht):Ge||ht?tt=!1:tt=E?_e<=h:_e<h;tt?$=ke+1:q=ke}return sr(q,fe)}function aA(d,h){for(var w=-1,E=d.length,$=0,q=[];++w<E;){var G=d[w],Q=h?h(G):G;if(!w||!Do(Q,de)){var de=Q;q[$++]=G===0?0:G}}return q}function lA(d){return typeof d=="number"?d:Vr(d)?U:+d}function zr(d){if(typeof d=="string")return d;if(ut(d))return Qt(d,zr)+"";if(Vr(d))return zD?zD.call(d):"";var h=d+"";return h=="0"&&1/d==-R?"-0":h}function Is(d,h,w){var E=-1,$=$h,q=d.length,G=!0,Q=[],de=Q;if(w)G=!1,$=Mv;else if(q>=o){var Te=h?null:Zre(d);if(Te)return Bh(Te);G=!1,$=zu,de=new Ia}else de=h?[]:Q;e:for(;++E<q;){var ke=d[E],_e=h?h(ke):ke;if(ke=w||ke!==0?ke:0,G&&_e===_e){for(var Re=de.length;Re--;)if(de[Re]===_e)continue e;h&&de.push(_e),Q.push(ke)}else $(de,_e,w)||(de!==Q&&de.push(_e),Q.push(ke))}return Q}function e1(d,h){return h=Ds(h,d),d=LA(d,h),d==null||delete d[ii(go(h))]}function cA(d,h,w,E){return Ju(d,h,w(Aa(d,h)),E)}function rm(d,h,w,E){for(var $=d.length,q=E?$:-1;(E?q--:++q<$)&&h(d[q],q,d););return w?mo(d,E?0:q,E?q+1:$):mo(d,E?q+1:0,E?$:q)}function uA(d,h){var w=d;return w instanceof St&&(w=w.value()),_v(h,function(E,$){return $.func.apply($.thisArg,Es([E],$.args))},w)}function t1(d,h,w){var E=d.length;if(E<2)return E?Is(d[0]):[];for(var $=-1,q=ve(E);++$<E;)for(var G=d[$],Q=-1;++Q<E;)Q!=$&&(q[$]=Ku(q[$]||G,d[Q],h,w));return Is(er(q,1),h,w)}function dA(d,h,w){for(var E=-1,$=d.length,q=h.length,G={};++E<$;){var Q=E<q?h[E]:n;w(G,d[E],Q)}return G}function n1(d){return Cn(d)?d:[]}function r1(d){return typeof d=="function"?d:_r}function Ds(d,h){return ut(d)?d:f1(d,h)?[d]:zA(Nt(d))}var Hre=gt;function As(d,h,w){var E=d.length;return w=w===n?E:w,!h&&w>=E?d:mo(d,h,w)}var fA=_ne||function(d){return Qn.clearTimeout(d)};function pA(d,h){if(h)return d.slice();var w=d.length,E=ND?ND(w):new d.constructor(w);return d.copy(E),E}function o1(d){var h=new d.constructor(d.byteLength);return new Wh(h).set(new Wh(d)),h}function Wre(d,h){var w=h?o1(d.buffer):d.buffer;return new d.constructor(w,d.byteOffset,d.byteLength)}function jre(d){var h=new d.constructor(d.source,JI.exec(d));return h.lastIndex=d.lastIndex,h}function Ure(d){return Uu?Vt(Uu.call(d)):{}}function hA(d,h){var w=h?o1(d.buffer):d.buffer;return new d.constructor(w,d.byteOffset,d.length)}function mA(d,h){if(d!==h){var w=d!==n,E=d===null,$=d===d,q=Vr(d),G=h!==n,Q=h===null,de=h===h,Te=Vr(h);if(!Q&&!Te&&!q&&d>h||q&&G&&de&&!Q&&!Te||E&&G&&de||!w&&de||!$)return 1;if(!E&&!q&&!Te&&d<h||Te&&w&&$&&!E&&!q||Q&&w&&$||!G&&$||!de)return-1}return 0}function qre(d,h,w){for(var E=-1,$=d.criteria,q=h.criteria,G=$.length,Q=w.length;++E<G;){var de=mA($[E],q[E]);if(de){if(E>=Q)return de;var Te=w[E];return de*(Te=="desc"?-1:1)}}return d.index-h.index}function gA(d,h,w,E){for(var $=-1,q=d.length,G=w.length,Q=-1,de=h.length,Te=$n(q-G,0),ke=ve(de+Te),_e=!E;++Q<de;)ke[Q]=h[Q];for(;++$<G;)(_e||$<q)&&(ke[w[$]]=d[$]);for(;Te--;)ke[Q++]=d[$++];return ke}function yA(d,h,w,E){for(var $=-1,q=d.length,G=-1,Q=w.length,de=-1,Te=h.length,ke=$n(q-Q,0),_e=ve(ke+Te),Re=!E;++$<ke;)_e[$]=d[$];for(var Ge=$;++de<Te;)_e[Ge+de]=h[de];for(;++G<Q;)(Re||$<q)&&(_e[Ge+w[G]]=d[$++]);return _e}function Er(d,h){var w=-1,E=d.length;for(h||(h=ve(E));++w<E;)h[w]=d[w];return h}function oi(d,h,w,E){var $=!w;w||(w={});for(var q=-1,G=h.length;++q<G;){var Q=h[q],de=E?E(w[Q],d[Q],Q,w,d):n;de===n&&(de=d[Q]),$?Li(w,Q,de):qu(w,Q,de)}return w}function Kre(d,h){return oi(d,d1(d),h)}function Yre(d,h){return oi(d,IA(d),h)}function om(d,h){return function(w,E){var $=ut(w)?Qte:gre,q=h?h():{};return $(w,d,Ze(E,2),q)}}function Gl(d){return gt(function(h,w){var E=-1,$=w.length,q=$>1?w[$-1]:n,G=$>2?w[2]:n;for(q=d.length>3&&typeof q=="function"?($--,q):n,G&&mr(w[0],w[1],G)&&(q=$<3?n:q,$=1),h=Vt(h);++E<$;){var Q=w[E];Q&&d(h,Q,E,q)}return h})}function bA(d,h){return function(w,E){if(w==null)return w;if(!Or(w))return d(w,E);for(var $=w.length,q=h?$:-1,G=Vt(w);(h?q--:++q<$)&&E(G[q],q,G)!==!1;);return w}}function vA(d){return function(h,w,E){for(var $=-1,q=Vt(h),G=E(h),Q=G.length;Q--;){var de=G[d?Q:++$];if(w(q[de],de,q)===!1)break}return h}}function Gre(d,h,w){var E=h&x,$=Xu(d);function q(){var G=this&&this!==Qn&&this instanceof q?$:d;return G.apply(E?w:this,arguments)}return q}function xA(d){return function(h){h=Nt(h);var w=Hl(h)?_o(h):n,E=w?w[0]:h.charAt(0),$=w?As(w,1).join(""):h.slice(1);return E[d]()+$}}function Jl(d){return function(h){return _v(bP(yP(h).replace(Rte,"")),d,"")}}function Xu(d){return function(){var h=arguments;switch(h.length){case 0:return new d;case 1:return new d(h[0]);case 2:return new d(h[0],h[1]);case 3:return new d(h[0],h[1],h[2]);case 4:return new d(h[0],h[1],h[2],h[3]);case 5:return new d(h[0],h[1],h[2],h[3],h[4]);case 6:return new d(h[0],h[1],h[2],h[3],h[4],h[5]);case 7:return new d(h[0],h[1],h[2],h[3],h[4],h[5],h[6])}var w=Yl(d.prototype),E=d.apply(w,h);return sn(E)?E:w}}function Jre(d,h,w){var E=Xu(d);function $(){for(var q=arguments.length,G=ve(q),Q=q,de=Xl($);Q--;)G[Q]=arguments[Q];var Te=q<3&&G[0]!==de&&G[q-1]!==de?[]:Os(G,de);if(q-=Te.length,q<w)return kA(d,h,im,$.placeholder,n,G,Te,n,n,w-q);var ke=this&&this!==Qn&&this instanceof $?E:d;return Fr(ke,this,G)}return $}function wA(d){return function(h,w,E){var $=Vt(h);if(!Or(h)){var q=Ze(w,3);h=jn(h),w=function(Q){return q($[Q],Q,$)}}var G=d(h,w,E);return G>-1?$[q?h[G]:G]:n}}function SA(d){return Fi(function(h){var w=h.length,E=w,$=po.prototype.thru;for(d&&h.reverse();E--;){var q=h[E];if(typeof q!="function")throw new fo(s);if($&&!G&&cm(q)=="wrapper")var G=new po([],!0)}for(E=G?E:w;++E<w;){q=h[E];var Q=cm(q),de=Q=="wrapper"?c1(q):n;de&&p1(de[0])&&de[1]==(N|T|O|L)&&!de[4].length&&de[9]==1?G=G[cm(de[0])].apply(G,de[3]):G=q.length==1&&p1(q)?G[Q]():G.thru(q)}return function(){var Te=arguments,ke=Te[0];if(G&&Te.length==1&&ut(ke))return G.plant(ke).value();for(var _e=0,Re=w?h[_e].apply(this,Te):ke;++_e<w;)Re=h[_e].call(this,Re);return Re}})}function im(d,h,w,E,$,q,G,Q,de,Te){var ke=h&N,_e=h&x,Re=h&S,Ge=h&(T|C),et=h&V,ht=Re?n:Xu(d);function tt(){for(var xt=arguments.length,Et=ve(xt),Hr=xt;Hr--;)Et[Hr]=arguments[Hr];if(Ge)var gr=Xl(tt),Wr=lne(Et,gr);if(E&&(Et=gA(Et,E,$,Ge)),q&&(Et=yA(Et,q,G,Ge)),xt-=Wr,Ge&&xt<Te){var Tn=Os(Et,gr);return kA(d,h,im,tt.placeholder,w,Et,Tn,Q,de,Te-xt)}var Ao=_e?w:this,Hi=Re?Ao[d]:d;return xt=Et.length,Q?Et=goe(Et,Q):et&&xt>1&&Et.reverse(),ke&&de<xt&&(Et.length=de),this&&this!==Qn&&this instanceof tt&&(Hi=ht||Xu(Hi)),Hi.apply(Ao,Et)}return tt}function CA(d,h){return function(w,E){return Tre(w,d,h(E),{})}}function sm(d,h){return function(w,E){var $;if(w===n&&E===n)return h;if(w!==n&&($=w),E!==n){if($===n)return E;typeof w=="string"||typeof E=="string"?(w=zr(w),E=zr(E)):(w=lA(w),E=lA(E)),$=d(w,E)}return $}}function i1(d){return Fi(function(h){return h=Qt(h,Rr(Ze())),gt(function(w){var E=this;return d(h,function($){return Fr($,E,w)})})})}function am(d,h){h=h===n?" ":zr(h);var w=h.length;if(w<2)return w?Zv(h,d):h;var E=Zv(h,Kh(d/Wl(h)));return Hl(h)?As(_o(E),0,d).join(""):E.slice(0,d)}function Xre(d,h,w,E){var $=h&x,q=Xu(d);function G(){for(var Q=-1,de=arguments.length,Te=-1,ke=E.length,_e=ve(ke+de),Re=this&&this!==Qn&&this instanceof G?q:d;++Te<ke;)_e[Te]=E[Te];for(;de--;)_e[Te++]=arguments[++Q];return Fr(Re,$?w:this,_e)}return G}function TA(d){return function(h,w,E){return E&&typeof E!="number"&&mr(h,w,E)&&(w=E=n),h=Vi(h),w===n?(w=h,h=0):w=Vi(w),E=E===n?h<w?1:-1:Vi(E),Lre(h,w,E,d)}}function lm(d){return function(h,w){return typeof h=="string"&&typeof w=="string"||(h=yo(h),w=yo(w)),d(h,w)}}function kA(d,h,w,E,$,q,G,Q,de,Te){var ke=h&T,_e=ke?G:n,Re=ke?n:G,Ge=ke?q:n,et=ke?n:q;h|=ke?O:I,h&=~(ke?I:O),h&k||(h&=-4);var ht=[d,h,$,Ge,_e,et,Re,Q,de,Te],tt=w.apply(n,ht);return p1(d)&&BA(tt,ht),tt.placeholder=E,FA(tt,d,h)}function s1(d){var h=Nn[d];return function(w,E){if(w=yo(w),E=E==null?0:sr(dt(E),292),E&&FD(w)){var $=(Nt(w)+"e").split("e"),q=h($[0]+"e"+(+$[1]+E));return $=(Nt(q)+"e").split("e"),+($[0]+"e"+(+$[1]-E))}return h(w)}}var Zre=ql&&1/Bh(new ql([,-0]))[1]==R?function(d){return new ql(d)}:M1;function EA(d){return function(h){var w=ar(h);return w==ie?Lv(h):w==Be?mne(h):ane(h,d(h))}}function Bi(d,h,w,E,$,q,G,Q){var de=h&S;if(!de&&typeof d!="function")throw new fo(s);var Te=E?E.length:0;if(Te||(h&=-97,E=$=n),G=G===n?G:$n(dt(G),0),Q=Q===n?Q:dt(Q),Te-=$?$.length:0,h&I){var ke=E,_e=$;E=$=n}var Re=de?n:c1(d),Ge=[d,h,w,E,$,ke,_e,q,G,Q];if(Re&&poe(Ge,Re),d=Ge[0],h=Ge[1],w=Ge[2],E=Ge[3],$=Ge[4],Q=Ge[9]=Ge[9]===n?de?0:d.length:$n(Ge[9]-Te,0),!Q&&h&(T|C)&&(h&=-25),!h||h==x)var et=Gre(d,h,w);else h==T||h==C?et=Jre(d,h,Q):(h==O||h==(x|O))&&!$.length?et=Xre(d,h,w,E):et=im.apply(n,Ge);var ht=Re?sA:BA;return FA(ht(et,Ge),d,h)}function OA(d,h,w,E){return d===n||Do(d,Ul[w])&&!$t.call(E,w)?h:d}function MA(d,h,w,E,$,q){return sn(d)&&sn(h)&&(q.set(h,d),tm(d,h,n,MA,q),q.delete(h)),d}function Qre(d){return ed(d)?n:d}function _A(d,h,w,E,$,q){var G=w&v,Q=d.length,de=h.length;if(Q!=de&&!(G&&de>Q))return!1;var Te=q.get(d),ke=q.get(h);if(Te&&ke)return Te==h&&ke==d;var _e=-1,Re=!0,Ge=w&y?new Ia:n;for(q.set(d,h),q.set(h,d);++_e<Q;){var et=d[_e],ht=h[_e];if(E)var tt=G?E(ht,et,_e,h,d,q):E(et,ht,_e,d,h,q);if(tt!==n){if(tt)continue;Re=!1;break}if(Ge){if(!Iv(h,function(xt,Et){if(!zu(Ge,Et)&&(et===xt||$(et,xt,w,E,q)))return Ge.push(Et)})){Re=!1;break}}else if(!(et===ht||$(et,ht,w,E,q))){Re=!1;break}}return q.delete(d),q.delete(h),Re}function eoe(d,h,w,E,$,q,G){switch(w){case gn:if(d.byteLength!=h.byteLength||d.byteOffset!=h.byteOffset)return!1;d=d.buffer,h=h.buffer;case on:return!(d.byteLength!=h.byteLength||!q(new Wh(d),new Wh(h)));case ne:case re:case we:return Do(+d,+h);case ye:return d.name==h.name&&d.message==h.message;case me:case De:return d==h+"";case ie:var Q=Lv;case Be:var de=E&v;if(Q||(Q=Bh),d.size!=h.size&&!de)return!1;var Te=G.get(d);if(Te)return Te==h;E|=y,G.set(d,h);var ke=_A(Q(d),Q(h),E,$,q,G);return G.delete(d),ke;case yt:if(Uu)return Uu.call(d)==Uu.call(h)}return!1}function toe(d,h,w,E,$,q){var G=w&v,Q=a1(d),de=Q.length,Te=a1(h),ke=Te.length;if(de!=ke&&!G)return!1;for(var _e=de;_e--;){var Re=Q[_e];if(!(G?Re in h:$t.call(h,Re)))return!1}var Ge=q.get(d),et=q.get(h);if(Ge&&et)return Ge==h&&et==d;var ht=!0;q.set(d,h),q.set(h,d);for(var tt=G;++_e<de;){Re=Q[_e];var xt=d[Re],Et=h[Re];if(E)var Hr=G?E(Et,xt,Re,h,d,q):E(xt,Et,Re,d,h,q);if(!(Hr===n?xt===Et||$(xt,Et,w,E,q):Hr)){ht=!1;break}tt||(tt=Re=="constructor")}if(ht&&!tt){var gr=d.constructor,Wr=h.constructor;gr!=Wr&&"constructor"in d&&"constructor"in h&&!(typeof gr=="function"&&gr instanceof gr&&typeof Wr=="function"&&Wr instanceof Wr)&&(ht=!1)}return q.delete(d),q.delete(h),ht}function Fi(d){return m1($A(d,n,jA),d+"")}function a1(d){return GD(d,jn,d1)}function l1(d){return GD(d,Mr,IA)}var c1=Gh?function(d){return Gh.get(d)}:M1;function cm(d){for(var h=d.name+"",w=Kl[h],E=$t.call(Kl,h)?w.length:0;E--;){var $=w[E],q=$.func;if(q==null||q==d)return $.name}return h}function Xl(d){var h=$t.call(W,"placeholder")?W:d;return h.placeholder}function Ze(){var d=W.iteratee||E1;return d=d===E1?ZD:d,arguments.length?d(arguments[0],arguments[1]):d}function um(d,h){var w=d.__data__;return coe(h)?w[typeof h=="string"?"string":"hash"]:w.map}function u1(d){for(var h=jn(d),w=h.length;w--;){var E=h[w],$=d[E];h[w]=[E,$,PA($)]}return h}function Pa(d,h){var w=fne(d,h);return XD(w)?w:n}function noe(d){var h=$t.call(d,Ma),w=d[Ma];try{d[Ma]=n;var E=!0}catch{}var $=Vh.call(d);return E&&(h?d[Ma]=w:delete d[Ma]),$}var d1=Fv?function(d){return d==null?[]:(d=Vt(d),ks(Fv(d),function(h){return LD.call(d,h)}))}:_1,IA=Fv?function(d){for(var h=[];d;)Es(h,d1(d)),d=jh(d);return h}:_1,ar=hr;(Rv&&ar(new Rv(new ArrayBuffer(1)))!=gn||Hu&&ar(new Hu)!=ie||zv&&ar(zv.resolve())!=Me||ql&&ar(new ql)!=Be||Wu&&ar(new Wu)!=wn)&&(ar=function(d){var h=hr(d),w=h==Ae?d.constructor:n,E=w?Na(w):"";if(E)switch(E){case Fne:return gn;case Rne:return ie;case zne:return Me;case Vne:return Be;case Hne:return wn}return h});function roe(d,h,w){for(var E=-1,$=w.length;++E<$;){var q=w[E],G=q.size;switch(q.type){case"drop":d+=G;break;case"dropRight":h-=G;break;case"take":h=sr(h,d+G);break;case"takeRight":d=$n(d,h-G);break}}return{start:d,end:h}}function ooe(d){var h=d.match(ute);return h?h[1].split(dte):[]}function DA(d,h,w){h=Ds(h,d);for(var E=-1,$=h.length,q=!1;++E<$;){var G=ii(h[E]);if(!(q=d!=null&&w(d,G)))break;d=d[G]}return q||++E!=$?q:($=d==null?0:d.length,!!$&&ym($)&&Ri(G,$)&&(ut(d)||$a(d)))}function ioe(d){var h=d.length,w=new d.constructor(h);return h&&typeof d[0]=="string"&&$t.call(d,"index")&&(w.index=d.index,w.input=d.input),w}function AA(d){return typeof d.constructor=="function"&&!Zu(d)?Yl(jh(d)):{}}function soe(d,h,w){var E=d.constructor;switch(h){case on:return o1(d);case ne:case re:return new E(+d);case gn:return Wre(d,w);case Sn:case Jn:case ot:case Mn:case Zt:case be:case Ve:case Ee:case He:return hA(d,w);case ie:return new E;case we:case De:return new E(d);case me:return jre(d);case Be:return new E;case yt:return Ure(d)}}function aoe(d,h){var w=h.length;if(!w)return d;var E=w-1;return h[E]=(w>1?"& ":"")+h[E],h=h.join(w>2?", ":" "),d.replace(cte,`{
363
+ */var K7=du.exports,wM;function Y7(){return wM||(wM=1,(function(t,e){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",p=1,m=2,b=4,v=1,y=2,x=1,S=2,k=4,T=8,C=16,O=32,I=64,N=128,L=256,V=512,M=30,B="...",H=800,F=16,P=1,_=2,D=3,R=1/0,j=9007199254740991,K=17976931348623157e292,U=NaN,Y=4294967295,fe=Y-1,ue=Y>>>1,pe=[["ary",N],["bind",x],["bindKey",S],["curry",T],["curryRight",C],["flip",V],["partial",O],["partialRight",I],["rearg",L]],Z="[object Arguments]",te="[object Array]",ce="[object AsyncFunction]",ne="[object Boolean]",re="[object Date]",le="[object DOMException]",ye="[object Error]",X="[object Function]",ee="[object GeneratorFunction]",ie="[object Map]",we="[object Number]",Ce="[object Null]",Pe="[object Object]",Me="[object Promise]",Ie="[object Proxy]",me="[object RegExp]",Be="[object Set]",De="[object String]",yt="[object Symbol]",ct="[object Undefined]",wn="[object WeakMap]",Pn="[object WeakSet]",on="[object ArrayBuffer]",gn="[object DataView]",Sn="[object Float32Array]",Jn="[object Float64Array]",ot="[object Int8Array]",Mn="[object Int16Array]",Zt="[object Int32Array]",be="[object Uint8Array]",Ve="[object Uint8ClampedArray]",Ee="[object Uint16Array]",He="[object Uint32Array]",Ye=/\b__p \+= '';/g,Qe=/\b(__p \+=) '' \+/g,Pt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Xn=/&(?:amp|lt|gt|quot|#39);/g,ir=/[&<>"']/g,Mo=RegExp(Xn.source),Ea=RegExp(ir.source),Ts=/<%-([\s\S]+?)%>/g,ni=/<%([\s\S]+?)%>/g,st=/<%=([\s\S]+?)%>/g,Zn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pi=/^\w*$/,ate=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vv=/[\\^$.*+?()[\]{}|]/g,lte=RegExp(vv.source),xv=/^\s+/,cte=/\s/,ute=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,dte=/\{\n\/\* \[wrapped with (.+)\] \*/,fte=/,? & /,pte=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,hte=/[()=,{}\[\]\/\s]/,mte=/\\(\\)?/g,gte=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,JI=/\w*$/,yte=/^[-+]0x[0-9a-f]+$/i,bte=/^0b[01]+$/i,vte=/^\[object .+?Constructor\]$/,xte=/^0o[0-7]+$/i,wte=/^(?:0|[1-9]\d*)$/,Ste=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ah=/($^)/,Cte=/['\n\r\u2028\u2029\\]/g,Ph="\\ud800-\\udfff",Tte="\\u0300-\\u036f",kte="\\ufe20-\\ufe2f",Ete="\\u20d0-\\u20ff",XI=Tte+kte+Ete,ZI="\\u2700-\\u27bf",QI="a-z\\xdf-\\xf6\\xf8-\\xff",Ote="\\xac\\xb1\\xd7\\xf7",Mte="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",_te="\\u2000-\\u206f",Ite=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",eD="A-Z\\xc0-\\xd6\\xd8-\\xde",tD="\\ufe0e\\ufe0f",nD=Ote+Mte+_te+Ite,wv="['’]",Dte="["+Ph+"]",rD="["+nD+"]",Nh="["+XI+"]",oD="\\d+",Ate="["+ZI+"]",iD="["+QI+"]",sD="[^"+Ph+nD+oD+ZI+QI+eD+"]",Sv="\\ud83c[\\udffb-\\udfff]",Pte="(?:"+Nh+"|"+Sv+")",aD="[^"+Ph+"]",Cv="(?:\\ud83c[\\udde6-\\uddff]){2}",Tv="[\\ud800-\\udbff][\\udc00-\\udfff]",zl="["+eD+"]",lD="\\u200d",cD="(?:"+iD+"|"+sD+")",Nte="(?:"+zl+"|"+sD+")",uD="(?:"+wv+"(?:d|ll|m|re|s|t|ve))?",dD="(?:"+wv+"(?:D|LL|M|RE|S|T|VE))?",fD=Pte+"?",pD="["+tD+"]?",$te="(?:"+lD+"(?:"+[aD,Cv,Tv].join("|")+")"+pD+fD+")*",Lte="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Bte="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",hD=pD+fD+$te,Fte="(?:"+[Ate,Cv,Tv].join("|")+")"+hD,Rte="(?:"+[aD+Nh+"?",Nh,Cv,Tv,Dte].join("|")+")",zte=RegExp(wv,"g"),Vte=RegExp(Nh,"g"),kv=RegExp(Sv+"(?="+Sv+")|"+Rte+hD,"g"),Hte=RegExp([zl+"?"+iD+"+"+uD+"(?="+[rD,zl,"$"].join("|")+")",Nte+"+"+dD+"(?="+[rD,zl+cD,"$"].join("|")+")",zl+"?"+cD+"+"+uD,zl+"+"+dD,Bte,Lte,oD,Fte].join("|"),"g"),Wte=RegExp("["+lD+Ph+XI+tD+"]"),jte=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ute=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],qte=-1,Yt={};Yt[Sn]=Yt[Jn]=Yt[ot]=Yt[Mn]=Yt[Zt]=Yt[be]=Yt[Ve]=Yt[Ee]=Yt[He]=!0,Yt[Z]=Yt[te]=Yt[on]=Yt[ne]=Yt[gn]=Yt[re]=Yt[ye]=Yt[X]=Yt[ie]=Yt[we]=Yt[Pe]=Yt[me]=Yt[Be]=Yt[De]=Yt[wn]=!1;var jt={};jt[Z]=jt[te]=jt[on]=jt[gn]=jt[ne]=jt[re]=jt[Sn]=jt[Jn]=jt[ot]=jt[Mn]=jt[Zt]=jt[ie]=jt[we]=jt[Pe]=jt[me]=jt[Be]=jt[De]=jt[yt]=jt[be]=jt[Ve]=jt[Ee]=jt[He]=!0,jt[ye]=jt[X]=jt[wn]=!1;var Kte={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Yte={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Gte={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Jte={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Xte=parseFloat,Zte=parseInt,mD=typeof ji=="object"&&ji&&ji.Object===Object&&ji,Qte=typeof self=="object"&&self&&self.Object===Object&&self,Qn=mD||Qte||Function("return this")(),Ev=e&&!e.nodeType&&e,Oa=Ev&&!0&&t&&!t.nodeType&&t,gD=Oa&&Oa.exports===Ev,Ov=gD&&mD.process,co=(function(){try{var ae=Oa&&Oa.require&&Oa.require("util").types;return ae||Ov&&Ov.binding&&Ov.binding("util")}catch{}})(),yD=co&&co.isArrayBuffer,bD=co&&co.isDate,vD=co&&co.isMap,xD=co&&co.isRegExp,wD=co&&co.isSet,SD=co&&co.isTypedArray;function Fr(ae,Se,ve){switch(ve.length){case 0:return ae.call(Se);case 1:return ae.call(Se,ve[0]);case 2:return ae.call(Se,ve[0],ve[1]);case 3:return ae.call(Se,ve[0],ve[1],ve[2])}return ae.apply(Se,ve)}function ene(ae,Se,ve,We){for(var lt=-1,It=ae==null?0:ae.length;++lt<It;){var Nn=ae[lt];Se(We,Nn,ve(Nn),ae)}return We}function uo(ae,Se){for(var ve=-1,We=ae==null?0:ae.length;++ve<We&&Se(ae[ve],ve,ae)!==!1;);return ae}function tne(ae,Se){for(var ve=ae==null?0:ae.length;ve--&&Se(ae[ve],ve,ae)!==!1;);return ae}function CD(ae,Se){for(var ve=-1,We=ae==null?0:ae.length;++ve<We;)if(!Se(ae[ve],ve,ae))return!1;return!0}function ks(ae,Se){for(var ve=-1,We=ae==null?0:ae.length,lt=0,It=[];++ve<We;){var Nn=ae[ve];Se(Nn,ve,ae)&&(It[lt++]=Nn)}return It}function $h(ae,Se){var ve=ae==null?0:ae.length;return!!ve&&Vl(ae,Se,0)>-1}function Mv(ae,Se,ve){for(var We=-1,lt=ae==null?0:ae.length;++We<lt;)if(ve(Se,ae[We]))return!0;return!1}function Qt(ae,Se){for(var ve=-1,We=ae==null?0:ae.length,lt=Array(We);++ve<We;)lt[ve]=Se(ae[ve],ve,ae);return lt}function Es(ae,Se){for(var ve=-1,We=Se.length,lt=ae.length;++ve<We;)ae[lt+ve]=Se[ve];return ae}function _v(ae,Se,ve,We){var lt=-1,It=ae==null?0:ae.length;for(We&&It&&(ve=ae[++lt]);++lt<It;)ve=Se(ve,ae[lt],lt,ae);return ve}function nne(ae,Se,ve,We){var lt=ae==null?0:ae.length;for(We&&lt&&(ve=ae[--lt]);lt--;)ve=Se(ve,ae[lt],lt,ae);return ve}function Iv(ae,Se){for(var ve=-1,We=ae==null?0:ae.length;++ve<We;)if(Se(ae[ve],ve,ae))return!0;return!1}var rne=Dv("length");function one(ae){return ae.split("")}function ine(ae){return ae.match(pte)||[]}function TD(ae,Se,ve){var We;return ve(ae,function(lt,It,Nn){if(Se(lt,It,Nn))return We=It,!1}),We}function Lh(ae,Se,ve,We){for(var lt=ae.length,It=ve+(We?1:-1);We?It--:++It<lt;)if(Se(ae[It],It,ae))return It;return-1}function Vl(ae,Se,ve){return Se===Se?yne(ae,Se,ve):Lh(ae,kD,ve)}function sne(ae,Se,ve,We){for(var lt=ve-1,It=ae.length;++lt<It;)if(We(ae[lt],Se))return lt;return-1}function kD(ae){return ae!==ae}function ED(ae,Se){var ve=ae==null?0:ae.length;return ve?Pv(ae,Se)/ve:U}function Dv(ae){return function(Se){return Se==null?n:Se[ae]}}function Av(ae){return function(Se){return ae==null?n:ae[Se]}}function OD(ae,Se,ve,We,lt){return lt(ae,function(It,Nn,Vt){ve=We?(We=!1,It):Se(ve,It,Nn,Vt)}),ve}function ane(ae,Se){var ve=ae.length;for(ae.sort(Se);ve--;)ae[ve]=ae[ve].value;return ae}function Pv(ae,Se){for(var ve,We=-1,lt=ae.length;++We<lt;){var It=Se(ae[We]);It!==n&&(ve=ve===n?It:ve+It)}return ve}function Nv(ae,Se){for(var ve=-1,We=Array(ae);++ve<ae;)We[ve]=Se(ve);return We}function lne(ae,Se){return Qt(Se,function(ve){return[ve,ae[ve]]})}function MD(ae){return ae&&ae.slice(0,AD(ae)+1).replace(xv,"")}function Rr(ae){return function(Se){return ae(Se)}}function $v(ae,Se){return Qt(Se,function(ve){return ae[ve]})}function zu(ae,Se){return ae.has(Se)}function _D(ae,Se){for(var ve=-1,We=ae.length;++ve<We&&Vl(Se,ae[ve],0)>-1;);return ve}function ID(ae,Se){for(var ve=ae.length;ve--&&Vl(Se,ae[ve],0)>-1;);return ve}function cne(ae,Se){for(var ve=ae.length,We=0;ve--;)ae[ve]===Se&&++We;return We}var une=Av(Kte),dne=Av(Yte);function fne(ae){return"\\"+Jte[ae]}function pne(ae,Se){return ae==null?n:ae[Se]}function Hl(ae){return Wte.test(ae)}function hne(ae){return jte.test(ae)}function mne(ae){for(var Se,ve=[];!(Se=ae.next()).done;)ve.push(Se.value);return ve}function Lv(ae){var Se=-1,ve=Array(ae.size);return ae.forEach(function(We,lt){ve[++Se]=[lt,We]}),ve}function DD(ae,Se){return function(ve){return ae(Se(ve))}}function Os(ae,Se){for(var ve=-1,We=ae.length,lt=0,It=[];++ve<We;){var Nn=ae[ve];(Nn===Se||Nn===f)&&(ae[ve]=f,It[lt++]=ve)}return It}function Bh(ae){var Se=-1,ve=Array(ae.size);return ae.forEach(function(We){ve[++Se]=We}),ve}function gne(ae){var Se=-1,ve=Array(ae.size);return ae.forEach(function(We){ve[++Se]=[We,We]}),ve}function yne(ae,Se,ve){for(var We=ve-1,lt=ae.length;++We<lt;)if(ae[We]===Se)return We;return-1}function bne(ae,Se,ve){for(var We=ve+1;We--;)if(ae[We]===Se)return We;return We}function Wl(ae){return Hl(ae)?xne(ae):rne(ae)}function _o(ae){return Hl(ae)?wne(ae):one(ae)}function AD(ae){for(var Se=ae.length;Se--&&cte.test(ae.charAt(Se)););return Se}var vne=Av(Gte);function xne(ae){for(var Se=kv.lastIndex=0;kv.test(ae);)++Se;return Se}function wne(ae){return ae.match(kv)||[]}function Sne(ae){return ae.match(Hte)||[]}var Cne=(function ae(Se){Se=Se==null?Qn:jl.defaults(Qn.Object(),Se,jl.pick(Qn,Ute));var ve=Se.Array,We=Se.Date,lt=Se.Error,It=Se.Function,Nn=Se.Math,Vt=Se.Object,Bv=Se.RegExp,Tne=Se.String,fo=Se.TypeError,Fh=ve.prototype,kne=It.prototype,Ul=Vt.prototype,Rh=Se["__core-js_shared__"],zh=kne.toString,$t=Ul.hasOwnProperty,Ene=0,PD=(function(){var d=/[^.]+$/.exec(Rh&&Rh.keys&&Rh.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""})(),Vh=Ul.toString,One=zh.call(Vt),Mne=Qn._,_ne=Bv("^"+zh.call($t).replace(vv,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Hh=gD?Se.Buffer:n,Ms=Se.Symbol,Wh=Se.Uint8Array,ND=Hh?Hh.allocUnsafe:n,jh=DD(Vt.getPrototypeOf,Vt),$D=Vt.create,LD=Ul.propertyIsEnumerable,Uh=Fh.splice,BD=Ms?Ms.isConcatSpreadable:n,Vu=Ms?Ms.iterator:n,Ma=Ms?Ms.toStringTag:n,qh=(function(){try{var d=Pa(Vt,"defineProperty");return d({},"",{}),d}catch{}})(),Ine=Se.clearTimeout!==Qn.clearTimeout&&Se.clearTimeout,Dne=We&&We.now!==Qn.Date.now&&We.now,Ane=Se.setTimeout!==Qn.setTimeout&&Se.setTimeout,Kh=Nn.ceil,Yh=Nn.floor,Fv=Vt.getOwnPropertySymbols,Pne=Hh?Hh.isBuffer:n,FD=Se.isFinite,Nne=Fh.join,$ne=DD(Vt.keys,Vt),$n=Nn.max,sr=Nn.min,Lne=We.now,Bne=Se.parseInt,RD=Nn.random,Fne=Fh.reverse,Rv=Pa(Se,"DataView"),Hu=Pa(Se,"Map"),zv=Pa(Se,"Promise"),ql=Pa(Se,"Set"),Wu=Pa(Se,"WeakMap"),ju=Pa(Vt,"create"),Gh=Wu&&new Wu,Kl={},Rne=Na(Rv),zne=Na(Hu),Vne=Na(zv),Hne=Na(ql),Wne=Na(Wu),Jh=Ms?Ms.prototype:n,Uu=Jh?Jh.valueOf:n,zD=Jh?Jh.toString:n;function W(d){if(yn(d)&&!ut(d)&&!(d instanceof St)){if(d instanceof po)return d;if($t.call(d,"__wrapped__"))return VA(d)}return new po(d)}var Yl=(function(){function d(){}return function(h){if(!sn(h))return{};if($D)return $D(h);d.prototype=h;var w=new d;return d.prototype=n,w}})();function Xh(){}function po(d,h){this.__wrapped__=d,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=n}W.templateSettings={escape:Ts,evaluate:ni,interpolate:st,variable:"",imports:{_:W}},W.prototype=Xh.prototype,W.prototype.constructor=W,po.prototype=Yl(Xh.prototype),po.prototype.constructor=po;function St(d){this.__wrapped__=d,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Y,this.__views__=[]}function jne(){var d=new St(this.__wrapped__);return d.__actions__=Er(this.__actions__),d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=Er(this.__iteratees__),d.__takeCount__=this.__takeCount__,d.__views__=Er(this.__views__),d}function Une(){if(this.__filtered__){var d=new St(this);d.__dir__=-1,d.__filtered__=!0}else d=this.clone(),d.__dir__*=-1;return d}function qne(){var d=this.__wrapped__.value(),h=this.__dir__,w=ut(d),E=h<0,$=w?d.length:0,q=ooe(0,$,this.__views__),G=q.start,Q=q.end,de=Q-G,Te=E?Q:G-1,ke=this.__iteratees__,_e=ke.length,Re=0,Ge=sr(de,this.__takeCount__);if(!w||!E&&$==de&&Ge==de)return uA(d,this.__actions__);var et=[];e:for(;de--&&Re<Ge;){Te+=h;for(var ht=-1,tt=d[Te];++ht<_e;){var xt=ke[ht],Et=xt.iteratee,Hr=xt.type,gr=Et(tt);if(Hr==_)tt=gr;else if(!gr){if(Hr==P)continue e;break e}}et[Re++]=tt}return et}St.prototype=Yl(Xh.prototype),St.prototype.constructor=St;function _a(d){var h=-1,w=d==null?0:d.length;for(this.clear();++h<w;){var E=d[h];this.set(E[0],E[1])}}function Kne(){this.__data__=ju?ju(null):{},this.size=0}function Yne(d){var h=this.has(d)&&delete this.__data__[d];return this.size-=h?1:0,h}function Gne(d){var h=this.__data__;if(ju){var w=h[d];return w===l?n:w}return $t.call(h,d)?h[d]:n}function Jne(d){var h=this.__data__;return ju?h[d]!==n:$t.call(h,d)}function Xne(d,h){var w=this.__data__;return this.size+=this.has(d)?0:1,w[d]=ju&&h===n?l:h,this}_a.prototype.clear=Kne,_a.prototype.delete=Yne,_a.prototype.get=Gne,_a.prototype.has=Jne,_a.prototype.set=Xne;function Ni(d){var h=-1,w=d==null?0:d.length;for(this.clear();++h<w;){var E=d[h];this.set(E[0],E[1])}}function Zne(){this.__data__=[],this.size=0}function Qne(d){var h=this.__data__,w=Zh(h,d);if(w<0)return!1;var E=h.length-1;return w==E?h.pop():Uh.call(h,w,1),--this.size,!0}function ere(d){var h=this.__data__,w=Zh(h,d);return w<0?n:h[w][1]}function tre(d){return Zh(this.__data__,d)>-1}function nre(d,h){var w=this.__data__,E=Zh(w,d);return E<0?(++this.size,w.push([d,h])):w[E][1]=h,this}Ni.prototype.clear=Zne,Ni.prototype.delete=Qne,Ni.prototype.get=ere,Ni.prototype.has=tre,Ni.prototype.set=nre;function $i(d){var h=-1,w=d==null?0:d.length;for(this.clear();++h<w;){var E=d[h];this.set(E[0],E[1])}}function rre(){this.size=0,this.__data__={hash:new _a,map:new(Hu||Ni),string:new _a}}function ore(d){var h=um(this,d).delete(d);return this.size-=h?1:0,h}function ire(d){return um(this,d).get(d)}function sre(d){return um(this,d).has(d)}function are(d,h){var w=um(this,d),E=w.size;return w.set(d,h),this.size+=w.size==E?0:1,this}$i.prototype.clear=rre,$i.prototype.delete=ore,$i.prototype.get=ire,$i.prototype.has=sre,$i.prototype.set=are;function Ia(d){var h=-1,w=d==null?0:d.length;for(this.__data__=new $i;++h<w;)this.add(d[h])}function lre(d){return this.__data__.set(d,l),this}function cre(d){return this.__data__.has(d)}Ia.prototype.add=Ia.prototype.push=lre,Ia.prototype.has=cre;function Io(d){var h=this.__data__=new Ni(d);this.size=h.size}function ure(){this.__data__=new Ni,this.size=0}function dre(d){var h=this.__data__,w=h.delete(d);return this.size=h.size,w}function fre(d){return this.__data__.get(d)}function pre(d){return this.__data__.has(d)}function hre(d,h){var w=this.__data__;if(w instanceof Ni){var E=w.__data__;if(!Hu||E.length<o-1)return E.push([d,h]),this.size=++w.size,this;w=this.__data__=new $i(E)}return w.set(d,h),this.size=w.size,this}Io.prototype.clear=ure,Io.prototype.delete=dre,Io.prototype.get=fre,Io.prototype.has=pre,Io.prototype.set=hre;function VD(d,h){var w=ut(d),E=!w&&$a(d),$=!w&&!E&&Ps(d),q=!w&&!E&&!$&&Zl(d),G=w||E||$||q,Q=G?Nv(d.length,Tne):[],de=Q.length;for(var Te in d)(h||$t.call(d,Te))&&!(G&&(Te=="length"||$&&(Te=="offset"||Te=="parent")||q&&(Te=="buffer"||Te=="byteLength"||Te=="byteOffset")||Ri(Te,de)))&&Q.push(Te);return Q}function HD(d){var h=d.length;return h?d[Xv(0,h-1)]:n}function mre(d,h){return dm(Er(d),Da(h,0,d.length))}function gre(d){return dm(Er(d))}function Vv(d,h,w){(w!==n&&!Do(d[h],w)||w===n&&!(h in d))&&Li(d,h,w)}function qu(d,h,w){var E=d[h];(!($t.call(d,h)&&Do(E,w))||w===n&&!(h in d))&&Li(d,h,w)}function Zh(d,h){for(var w=d.length;w--;)if(Do(d[w][0],h))return w;return-1}function yre(d,h,w,E){return _s(d,function($,q,G){h(E,$,w($),G)}),E}function WD(d,h){return d&&oi(h,jn(h),d)}function bre(d,h){return d&&oi(h,Mr(h),d)}function Li(d,h,w){h=="__proto__"&&qh?qh(d,h,{configurable:!0,enumerable:!0,value:w,writable:!0}):d[h]=w}function Hv(d,h){for(var w=-1,E=h.length,$=ve(E),q=d==null;++w<E;)$[w]=q?n:S1(d,h[w]);return $}function Da(d,h,w){return d===d&&(w!==n&&(d=d<=w?d:w),h!==n&&(d=d>=h?d:h)),d}function ho(d,h,w,E,$,q){var G,Q=h&p,de=h&m,Te=h&b;if(w&&(G=$?w(d,E,$,q):w(d)),G!==n)return G;if(!sn(d))return d;var ke=ut(d);if(ke){if(G=soe(d),!Q)return Er(d,G)}else{var _e=ar(d),Re=_e==X||_e==ee;if(Ps(d))return pA(d,Q);if(_e==Pe||_e==Z||Re&&!$){if(G=de||Re?{}:AA(d),!Q)return de?Gre(d,bre(G,d)):Yre(d,WD(G,d))}else{if(!jt[_e])return $?d:{};G=aoe(d,_e,Q)}}q||(q=new Io);var Ge=q.get(d);if(Ge)return Ge;q.set(d,G),aP(d)?d.forEach(function(tt){G.add(ho(tt,h,w,tt,d,q))}):iP(d)&&d.forEach(function(tt,xt){G.set(xt,ho(tt,h,w,xt,d,q))});var et=Te?de?l1:a1:de?Mr:jn,ht=ke?n:et(d);return uo(ht||d,function(tt,xt){ht&&(xt=tt,tt=d[xt]),qu(G,xt,ho(tt,h,w,xt,d,q))}),G}function vre(d){var h=jn(d);return function(w){return jD(w,d,h)}}function jD(d,h,w){var E=w.length;if(d==null)return!E;for(d=Vt(d);E--;){var $=w[E],q=h[$],G=d[$];if(G===n&&!($ in d)||!q(G))return!1}return!0}function UD(d,h,w){if(typeof d!="function")throw new fo(s);return Qu(function(){d.apply(n,w)},h)}function Ku(d,h,w,E){var $=-1,q=$h,G=!0,Q=d.length,de=[],Te=h.length;if(!Q)return de;w&&(h=Qt(h,Rr(w))),E?(q=Mv,G=!1):h.length>=o&&(q=zu,G=!1,h=new Ia(h));e:for(;++$<Q;){var ke=d[$],_e=w==null?ke:w(ke);if(ke=E||ke!==0?ke:0,G&&_e===_e){for(var Re=Te;Re--;)if(h[Re]===_e)continue e;de.push(ke)}else q(h,_e,E)||de.push(ke)}return de}var _s=bA(ri),qD=bA(jv,!0);function xre(d,h){var w=!0;return _s(d,function(E,$,q){return w=!!h(E,$,q),w}),w}function Qh(d,h,w){for(var E=-1,$=d.length;++E<$;){var q=d[E],G=h(q);if(G!=null&&(Q===n?G===G&&!Vr(G):w(G,Q)))var Q=G,de=q}return de}function wre(d,h,w,E){var $=d.length;for(w=dt(w),w<0&&(w=-w>$?0:$+w),E=E===n||E>$?$:dt(E),E<0&&(E+=$),E=w>E?0:cP(E);w<E;)d[w++]=h;return d}function KD(d,h){var w=[];return _s(d,function(E,$,q){h(E,$,q)&&w.push(E)}),w}function er(d,h,w,E,$){var q=-1,G=d.length;for(w||(w=coe),$||($=[]);++q<G;){var Q=d[q];h>0&&w(Q)?h>1?er(Q,h-1,w,E,$):Es($,Q):E||($[$.length]=Q)}return $}var Wv=vA(),YD=vA(!0);function ri(d,h){return d&&Wv(d,h,jn)}function jv(d,h){return d&&YD(d,h,jn)}function em(d,h){return ks(h,function(w){return zi(d[w])})}function Aa(d,h){h=Ds(h,d);for(var w=0,E=h.length;d!=null&&w<E;)d=d[ii(h[w++])];return w&&w==E?d:n}function GD(d,h,w){var E=h(d);return ut(d)?E:Es(E,w(d))}function hr(d){return d==null?d===n?ct:Ce:Ma&&Ma in Vt(d)?roe(d):goe(d)}function Uv(d,h){return d>h}function Sre(d,h){return d!=null&&$t.call(d,h)}function Cre(d,h){return d!=null&&h in Vt(d)}function Tre(d,h,w){return d>=sr(h,w)&&d<$n(h,w)}function qv(d,h,w){for(var E=w?Mv:$h,$=d[0].length,q=d.length,G=q,Q=ve(q),de=1/0,Te=[];G--;){var ke=d[G];G&&h&&(ke=Qt(ke,Rr(h))),de=sr(ke.length,de),Q[G]=!w&&(h||$>=120&&ke.length>=120)?new Ia(G&&ke):n}ke=d[0];var _e=-1,Re=Q[0];e:for(;++_e<$&&Te.length<de;){var Ge=ke[_e],et=h?h(Ge):Ge;if(Ge=w||Ge!==0?Ge:0,!(Re?zu(Re,et):E(Te,et,w))){for(G=q;--G;){var ht=Q[G];if(!(ht?zu(ht,et):E(d[G],et,w)))continue e}Re&&Re.push(et),Te.push(Ge)}}return Te}function kre(d,h,w,E){return ri(d,function($,q,G){h(E,w($),q,G)}),E}function Yu(d,h,w){h=Ds(h,d),d=LA(d,h);var E=d==null?d:d[ii(go(h))];return E==null?n:Fr(E,d,w)}function JD(d){return yn(d)&&hr(d)==Z}function Ere(d){return yn(d)&&hr(d)==on}function Ore(d){return yn(d)&&hr(d)==re}function Gu(d,h,w,E,$){return d===h?!0:d==null||h==null||!yn(d)&&!yn(h)?d!==d&&h!==h:Mre(d,h,w,E,Gu,$)}function Mre(d,h,w,E,$,q){var G=ut(d),Q=ut(h),de=G?te:ar(d),Te=Q?te:ar(h);de=de==Z?Pe:de,Te=Te==Z?Pe:Te;var ke=de==Pe,_e=Te==Pe,Re=de==Te;if(Re&&Ps(d)){if(!Ps(h))return!1;G=!0,ke=!1}if(Re&&!ke)return q||(q=new Io),G||Zl(d)?_A(d,h,w,E,$,q):toe(d,h,de,w,E,$,q);if(!(w&v)){var Ge=ke&&$t.call(d,"__wrapped__"),et=_e&&$t.call(h,"__wrapped__");if(Ge||et){var ht=Ge?d.value():d,tt=et?h.value():h;return q||(q=new Io),$(ht,tt,w,E,q)}}return Re?(q||(q=new Io),noe(d,h,w,E,$,q)):!1}function _re(d){return yn(d)&&ar(d)==ie}function Kv(d,h,w,E){var $=w.length,q=$,G=!E;if(d==null)return!q;for(d=Vt(d);$--;){var Q=w[$];if(G&&Q[2]?Q[1]!==d[Q[0]]:!(Q[0]in d))return!1}for(;++$<q;){Q=w[$];var de=Q[0],Te=d[de],ke=Q[1];if(G&&Q[2]){if(Te===n&&!(de in d))return!1}else{var _e=new Io;if(E)var Re=E(Te,ke,de,d,h,_e);if(!(Re===n?Gu(ke,Te,v|y,E,_e):Re))return!1}}return!0}function XD(d){if(!sn(d)||doe(d))return!1;var h=zi(d)?_ne:vte;return h.test(Na(d))}function Ire(d){return yn(d)&&hr(d)==me}function Dre(d){return yn(d)&&ar(d)==Be}function Are(d){return yn(d)&&ym(d.length)&&!!Yt[hr(d)]}function ZD(d){return typeof d=="function"?d:d==null?_r:typeof d=="object"?ut(d)?tA(d[0],d[1]):eA(d):xP(d)}function Yv(d){if(!Zu(d))return $ne(d);var h=[];for(var w in Vt(d))$t.call(d,w)&&w!="constructor"&&h.push(w);return h}function Pre(d){if(!sn(d))return moe(d);var h=Zu(d),w=[];for(var E in d)E=="constructor"&&(h||!$t.call(d,E))||w.push(E);return w}function Gv(d,h){return d<h}function QD(d,h){var w=-1,E=Or(d)?ve(d.length):[];return _s(d,function($,q,G){E[++w]=h($,q,G)}),E}function eA(d){var h=u1(d);return h.length==1&&h[0][2]?NA(h[0][0],h[0][1]):function(w){return w===d||Kv(w,d,h)}}function tA(d,h){return f1(d)&&PA(h)?NA(ii(d),h):function(w){var E=S1(w,d);return E===n&&E===h?C1(w,d):Gu(h,E,v|y)}}function tm(d,h,w,E,$){d!==h&&Wv(h,function(q,G){if($||($=new Io),sn(q))Nre(d,h,G,w,tm,E,$);else{var Q=E?E(h1(d,G),q,G+"",d,h,$):n;Q===n&&(Q=q),Vv(d,G,Q)}},Mr)}function Nre(d,h,w,E,$,q,G){var Q=h1(d,w),de=h1(h,w),Te=G.get(de);if(Te){Vv(d,w,Te);return}var ke=q?q(Q,de,w+"",d,h,G):n,_e=ke===n;if(_e){var Re=ut(de),Ge=!Re&&Ps(de),et=!Re&&!Ge&&Zl(de);ke=de,Re||Ge||et?ut(Q)?ke=Q:Cn(Q)?ke=Er(Q):Ge?(_e=!1,ke=pA(de,!0)):et?(_e=!1,ke=hA(de,!0)):ke=[]:ed(de)||$a(de)?(ke=Q,$a(Q)?ke=uP(Q):(!sn(Q)||zi(Q))&&(ke=AA(de))):_e=!1}_e&&(G.set(de,ke),$(ke,de,E,q,G),G.delete(de)),Vv(d,w,ke)}function nA(d,h){var w=d.length;if(w)return h+=h<0?w:0,Ri(h,w)?d[h]:n}function rA(d,h,w){h.length?h=Qt(h,function(q){return ut(q)?function(G){return Aa(G,q.length===1?q[0]:q)}:q}):h=[_r];var E=-1;h=Qt(h,Rr(Ze()));var $=QD(d,function(q,G,Q){var de=Qt(h,function(Te){return Te(q)});return{criteria:de,index:++E,value:q}});return ane($,function(q,G){return Kre(q,G,w)})}function $re(d,h){return oA(d,h,function(w,E){return C1(d,E)})}function oA(d,h,w){for(var E=-1,$=h.length,q={};++E<$;){var G=h[E],Q=Aa(d,G);w(Q,G)&&Ju(q,Ds(G,d),Q)}return q}function Lre(d){return function(h){return Aa(h,d)}}function Jv(d,h,w,E){var $=E?sne:Vl,q=-1,G=h.length,Q=d;for(d===h&&(h=Er(h)),w&&(Q=Qt(d,Rr(w)));++q<G;)for(var de=0,Te=h[q],ke=w?w(Te):Te;(de=$(Q,ke,de,E))>-1;)Q!==d&&Uh.call(Q,de,1),Uh.call(d,de,1);return d}function iA(d,h){for(var w=d?h.length:0,E=w-1;w--;){var $=h[w];if(w==E||$!==q){var q=$;Ri($)?Uh.call(d,$,1):e1(d,$)}}return d}function Xv(d,h){return d+Yh(RD()*(h-d+1))}function Bre(d,h,w,E){for(var $=-1,q=$n(Kh((h-d)/(w||1)),0),G=ve(q);q--;)G[E?q:++$]=d,d+=w;return G}function Zv(d,h){var w="";if(!d||h<1||h>j)return w;do h%2&&(w+=d),h=Yh(h/2),h&&(d+=d);while(h);return w}function gt(d,h){return m1($A(d,h,_r),d+"")}function Fre(d){return HD(Ql(d))}function Rre(d,h){var w=Ql(d);return dm(w,Da(h,0,w.length))}function Ju(d,h,w,E){if(!sn(d))return d;h=Ds(h,d);for(var $=-1,q=h.length,G=q-1,Q=d;Q!=null&&++$<q;){var de=ii(h[$]),Te=w;if(de==="__proto__"||de==="constructor"||de==="prototype")return d;if($!=G){var ke=Q[de];Te=E?E(ke,de,Q):n,Te===n&&(Te=sn(ke)?ke:Ri(h[$+1])?[]:{})}qu(Q,de,Te),Q=Q[de]}return d}var sA=Gh?function(d,h){return Gh.set(d,h),d}:_r,zre=qh?function(d,h){return qh(d,"toString",{configurable:!0,enumerable:!1,value:k1(h),writable:!0})}:_r;function Vre(d){return dm(Ql(d))}function mo(d,h,w){var E=-1,$=d.length;h<0&&(h=-h>$?0:$+h),w=w>$?$:w,w<0&&(w+=$),$=h>w?0:w-h>>>0,h>>>=0;for(var q=ve($);++E<$;)q[E]=d[E+h];return q}function Hre(d,h){var w;return _s(d,function(E,$,q){return w=h(E,$,q),!w}),!!w}function nm(d,h,w){var E=0,$=d==null?E:d.length;if(typeof h=="number"&&h===h&&$<=ue){for(;E<$;){var q=E+$>>>1,G=d[q];G!==null&&!Vr(G)&&(w?G<=h:G<h)?E=q+1:$=q}return $}return Qv(d,h,_r,w)}function Qv(d,h,w,E){var $=0,q=d==null?0:d.length;if(q===0)return 0;h=w(h);for(var G=h!==h,Q=h===null,de=Vr(h),Te=h===n;$<q;){var ke=Yh(($+q)/2),_e=w(d[ke]),Re=_e!==n,Ge=_e===null,et=_e===_e,ht=Vr(_e);if(G)var tt=E||et;else Te?tt=et&&(E||Re):Q?tt=et&&Re&&(E||!Ge):de?tt=et&&Re&&!Ge&&(E||!ht):Ge||ht?tt=!1:tt=E?_e<=h:_e<h;tt?$=ke+1:q=ke}return sr(q,fe)}function aA(d,h){for(var w=-1,E=d.length,$=0,q=[];++w<E;){var G=d[w],Q=h?h(G):G;if(!w||!Do(Q,de)){var de=Q;q[$++]=G===0?0:G}}return q}function lA(d){return typeof d=="number"?d:Vr(d)?U:+d}function zr(d){if(typeof d=="string")return d;if(ut(d))return Qt(d,zr)+"";if(Vr(d))return zD?zD.call(d):"";var h=d+"";return h=="0"&&1/d==-R?"-0":h}function Is(d,h,w){var E=-1,$=$h,q=d.length,G=!0,Q=[],de=Q;if(w)G=!1,$=Mv;else if(q>=o){var Te=h?null:Qre(d);if(Te)return Bh(Te);G=!1,$=zu,de=new Ia}else de=h?[]:Q;e:for(;++E<q;){var ke=d[E],_e=h?h(ke):ke;if(ke=w||ke!==0?ke:0,G&&_e===_e){for(var Re=de.length;Re--;)if(de[Re]===_e)continue e;h&&de.push(_e),Q.push(ke)}else $(de,_e,w)||(de!==Q&&de.push(_e),Q.push(ke))}return Q}function e1(d,h){return h=Ds(h,d),d=LA(d,h),d==null||delete d[ii(go(h))]}function cA(d,h,w,E){return Ju(d,h,w(Aa(d,h)),E)}function rm(d,h,w,E){for(var $=d.length,q=E?$:-1;(E?q--:++q<$)&&h(d[q],q,d););return w?mo(d,E?0:q,E?q+1:$):mo(d,E?q+1:0,E?$:q)}function uA(d,h){var w=d;return w instanceof St&&(w=w.value()),_v(h,function(E,$){return $.func.apply($.thisArg,Es([E],$.args))},w)}function t1(d,h,w){var E=d.length;if(E<2)return E?Is(d[0]):[];for(var $=-1,q=ve(E);++$<E;)for(var G=d[$],Q=-1;++Q<E;)Q!=$&&(q[$]=Ku(q[$]||G,d[Q],h,w));return Is(er(q,1),h,w)}function dA(d,h,w){for(var E=-1,$=d.length,q=h.length,G={};++E<$;){var Q=E<q?h[E]:n;w(G,d[E],Q)}return G}function n1(d){return Cn(d)?d:[]}function r1(d){return typeof d=="function"?d:_r}function Ds(d,h){return ut(d)?d:f1(d,h)?[d]:zA(Nt(d))}var Wre=gt;function As(d,h,w){var E=d.length;return w=w===n?E:w,!h&&w>=E?d:mo(d,h,w)}var fA=Ine||function(d){return Qn.clearTimeout(d)};function pA(d,h){if(h)return d.slice();var w=d.length,E=ND?ND(w):new d.constructor(w);return d.copy(E),E}function o1(d){var h=new d.constructor(d.byteLength);return new Wh(h).set(new Wh(d)),h}function jre(d,h){var w=h?o1(d.buffer):d.buffer;return new d.constructor(w,d.byteOffset,d.byteLength)}function Ure(d){var h=new d.constructor(d.source,JI.exec(d));return h.lastIndex=d.lastIndex,h}function qre(d){return Uu?Vt(Uu.call(d)):{}}function hA(d,h){var w=h?o1(d.buffer):d.buffer;return new d.constructor(w,d.byteOffset,d.length)}function mA(d,h){if(d!==h){var w=d!==n,E=d===null,$=d===d,q=Vr(d),G=h!==n,Q=h===null,de=h===h,Te=Vr(h);if(!Q&&!Te&&!q&&d>h||q&&G&&de&&!Q&&!Te||E&&G&&de||!w&&de||!$)return 1;if(!E&&!q&&!Te&&d<h||Te&&w&&$&&!E&&!q||Q&&w&&$||!G&&$||!de)return-1}return 0}function Kre(d,h,w){for(var E=-1,$=d.criteria,q=h.criteria,G=$.length,Q=w.length;++E<G;){var de=mA($[E],q[E]);if(de){if(E>=Q)return de;var Te=w[E];return de*(Te=="desc"?-1:1)}}return d.index-h.index}function gA(d,h,w,E){for(var $=-1,q=d.length,G=w.length,Q=-1,de=h.length,Te=$n(q-G,0),ke=ve(de+Te),_e=!E;++Q<de;)ke[Q]=h[Q];for(;++$<G;)(_e||$<q)&&(ke[w[$]]=d[$]);for(;Te--;)ke[Q++]=d[$++];return ke}function yA(d,h,w,E){for(var $=-1,q=d.length,G=-1,Q=w.length,de=-1,Te=h.length,ke=$n(q-Q,0),_e=ve(ke+Te),Re=!E;++$<ke;)_e[$]=d[$];for(var Ge=$;++de<Te;)_e[Ge+de]=h[de];for(;++G<Q;)(Re||$<q)&&(_e[Ge+w[G]]=d[$++]);return _e}function Er(d,h){var w=-1,E=d.length;for(h||(h=ve(E));++w<E;)h[w]=d[w];return h}function oi(d,h,w,E){var $=!w;w||(w={});for(var q=-1,G=h.length;++q<G;){var Q=h[q],de=E?E(w[Q],d[Q],Q,w,d):n;de===n&&(de=d[Q]),$?Li(w,Q,de):qu(w,Q,de)}return w}function Yre(d,h){return oi(d,d1(d),h)}function Gre(d,h){return oi(d,IA(d),h)}function om(d,h){return function(w,E){var $=ut(w)?ene:yre,q=h?h():{};return $(w,d,Ze(E,2),q)}}function Gl(d){return gt(function(h,w){var E=-1,$=w.length,q=$>1?w[$-1]:n,G=$>2?w[2]:n;for(q=d.length>3&&typeof q=="function"?($--,q):n,G&&mr(w[0],w[1],G)&&(q=$<3?n:q,$=1),h=Vt(h);++E<$;){var Q=w[E];Q&&d(h,Q,E,q)}return h})}function bA(d,h){return function(w,E){if(w==null)return w;if(!Or(w))return d(w,E);for(var $=w.length,q=h?$:-1,G=Vt(w);(h?q--:++q<$)&&E(G[q],q,G)!==!1;);return w}}function vA(d){return function(h,w,E){for(var $=-1,q=Vt(h),G=E(h),Q=G.length;Q--;){var de=G[d?Q:++$];if(w(q[de],de,q)===!1)break}return h}}function Jre(d,h,w){var E=h&x,$=Xu(d);function q(){var G=this&&this!==Qn&&this instanceof q?$:d;return G.apply(E?w:this,arguments)}return q}function xA(d){return function(h){h=Nt(h);var w=Hl(h)?_o(h):n,E=w?w[0]:h.charAt(0),$=w?As(w,1).join(""):h.slice(1);return E[d]()+$}}function Jl(d){return function(h){return _v(bP(yP(h).replace(zte,"")),d,"")}}function Xu(d){return function(){var h=arguments;switch(h.length){case 0:return new d;case 1:return new d(h[0]);case 2:return new d(h[0],h[1]);case 3:return new d(h[0],h[1],h[2]);case 4:return new d(h[0],h[1],h[2],h[3]);case 5:return new d(h[0],h[1],h[2],h[3],h[4]);case 6:return new d(h[0],h[1],h[2],h[3],h[4],h[5]);case 7:return new d(h[0],h[1],h[2],h[3],h[4],h[5],h[6])}var w=Yl(d.prototype),E=d.apply(w,h);return sn(E)?E:w}}function Xre(d,h,w){var E=Xu(d);function $(){for(var q=arguments.length,G=ve(q),Q=q,de=Xl($);Q--;)G[Q]=arguments[Q];var Te=q<3&&G[0]!==de&&G[q-1]!==de?[]:Os(G,de);if(q-=Te.length,q<w)return kA(d,h,im,$.placeholder,n,G,Te,n,n,w-q);var ke=this&&this!==Qn&&this instanceof $?E:d;return Fr(ke,this,G)}return $}function wA(d){return function(h,w,E){var $=Vt(h);if(!Or(h)){var q=Ze(w,3);h=jn(h),w=function(Q){return q($[Q],Q,$)}}var G=d(h,w,E);return G>-1?$[q?h[G]:G]:n}}function SA(d){return Fi(function(h){var w=h.length,E=w,$=po.prototype.thru;for(d&&h.reverse();E--;){var q=h[E];if(typeof q!="function")throw new fo(s);if($&&!G&&cm(q)=="wrapper")var G=new po([],!0)}for(E=G?E:w;++E<w;){q=h[E];var Q=cm(q),de=Q=="wrapper"?c1(q):n;de&&p1(de[0])&&de[1]==(N|T|O|L)&&!de[4].length&&de[9]==1?G=G[cm(de[0])].apply(G,de[3]):G=q.length==1&&p1(q)?G[Q]():G.thru(q)}return function(){var Te=arguments,ke=Te[0];if(G&&Te.length==1&&ut(ke))return G.plant(ke).value();for(var _e=0,Re=w?h[_e].apply(this,Te):ke;++_e<w;)Re=h[_e].call(this,Re);return Re}})}function im(d,h,w,E,$,q,G,Q,de,Te){var ke=h&N,_e=h&x,Re=h&S,Ge=h&(T|C),et=h&V,ht=Re?n:Xu(d);function tt(){for(var xt=arguments.length,Et=ve(xt),Hr=xt;Hr--;)Et[Hr]=arguments[Hr];if(Ge)var gr=Xl(tt),Wr=cne(Et,gr);if(E&&(Et=gA(Et,E,$,Ge)),q&&(Et=yA(Et,q,G,Ge)),xt-=Wr,Ge&&xt<Te){var Tn=Os(Et,gr);return kA(d,h,im,tt.placeholder,w,Et,Tn,Q,de,Te-xt)}var Ao=_e?w:this,Hi=Re?Ao[d]:d;return xt=Et.length,Q?Et=yoe(Et,Q):et&&xt>1&&Et.reverse(),ke&&de<xt&&(Et.length=de),this&&this!==Qn&&this instanceof tt&&(Hi=ht||Xu(Hi)),Hi.apply(Ao,Et)}return tt}function CA(d,h){return function(w,E){return kre(w,d,h(E),{})}}function sm(d,h){return function(w,E){var $;if(w===n&&E===n)return h;if(w!==n&&($=w),E!==n){if($===n)return E;typeof w=="string"||typeof E=="string"?(w=zr(w),E=zr(E)):(w=lA(w),E=lA(E)),$=d(w,E)}return $}}function i1(d){return Fi(function(h){return h=Qt(h,Rr(Ze())),gt(function(w){var E=this;return d(h,function($){return Fr($,E,w)})})})}function am(d,h){h=h===n?" ":zr(h);var w=h.length;if(w<2)return w?Zv(h,d):h;var E=Zv(h,Kh(d/Wl(h)));return Hl(h)?As(_o(E),0,d).join(""):E.slice(0,d)}function Zre(d,h,w,E){var $=h&x,q=Xu(d);function G(){for(var Q=-1,de=arguments.length,Te=-1,ke=E.length,_e=ve(ke+de),Re=this&&this!==Qn&&this instanceof G?q:d;++Te<ke;)_e[Te]=E[Te];for(;de--;)_e[Te++]=arguments[++Q];return Fr(Re,$?w:this,_e)}return G}function TA(d){return function(h,w,E){return E&&typeof E!="number"&&mr(h,w,E)&&(w=E=n),h=Vi(h),w===n?(w=h,h=0):w=Vi(w),E=E===n?h<w?1:-1:Vi(E),Bre(h,w,E,d)}}function lm(d){return function(h,w){return typeof h=="string"&&typeof w=="string"||(h=yo(h),w=yo(w)),d(h,w)}}function kA(d,h,w,E,$,q,G,Q,de,Te){var ke=h&T,_e=ke?G:n,Re=ke?n:G,Ge=ke?q:n,et=ke?n:q;h|=ke?O:I,h&=~(ke?I:O),h&k||(h&=-4);var ht=[d,h,$,Ge,_e,et,Re,Q,de,Te],tt=w.apply(n,ht);return p1(d)&&BA(tt,ht),tt.placeholder=E,FA(tt,d,h)}function s1(d){var h=Nn[d];return function(w,E){if(w=yo(w),E=E==null?0:sr(dt(E),292),E&&FD(w)){var $=(Nt(w)+"e").split("e"),q=h($[0]+"e"+(+$[1]+E));return $=(Nt(q)+"e").split("e"),+($[0]+"e"+(+$[1]-E))}return h(w)}}var Qre=ql&&1/Bh(new ql([,-0]))[1]==R?function(d){return new ql(d)}:M1;function EA(d){return function(h){var w=ar(h);return w==ie?Lv(h):w==Be?gne(h):lne(h,d(h))}}function Bi(d,h,w,E,$,q,G,Q){var de=h&S;if(!de&&typeof d!="function")throw new fo(s);var Te=E?E.length:0;if(Te||(h&=-97,E=$=n),G=G===n?G:$n(dt(G),0),Q=Q===n?Q:dt(Q),Te-=$?$.length:0,h&I){var ke=E,_e=$;E=$=n}var Re=de?n:c1(d),Ge=[d,h,w,E,$,ke,_e,q,G,Q];if(Re&&hoe(Ge,Re),d=Ge[0],h=Ge[1],w=Ge[2],E=Ge[3],$=Ge[4],Q=Ge[9]=Ge[9]===n?de?0:d.length:$n(Ge[9]-Te,0),!Q&&h&(T|C)&&(h&=-25),!h||h==x)var et=Jre(d,h,w);else h==T||h==C?et=Xre(d,h,Q):(h==O||h==(x|O))&&!$.length?et=Zre(d,h,w,E):et=im.apply(n,Ge);var ht=Re?sA:BA;return FA(ht(et,Ge),d,h)}function OA(d,h,w,E){return d===n||Do(d,Ul[w])&&!$t.call(E,w)?h:d}function MA(d,h,w,E,$,q){return sn(d)&&sn(h)&&(q.set(h,d),tm(d,h,n,MA,q),q.delete(h)),d}function eoe(d){return ed(d)?n:d}function _A(d,h,w,E,$,q){var G=w&v,Q=d.length,de=h.length;if(Q!=de&&!(G&&de>Q))return!1;var Te=q.get(d),ke=q.get(h);if(Te&&ke)return Te==h&&ke==d;var _e=-1,Re=!0,Ge=w&y?new Ia:n;for(q.set(d,h),q.set(h,d);++_e<Q;){var et=d[_e],ht=h[_e];if(E)var tt=G?E(ht,et,_e,h,d,q):E(et,ht,_e,d,h,q);if(tt!==n){if(tt)continue;Re=!1;break}if(Ge){if(!Iv(h,function(xt,Et){if(!zu(Ge,Et)&&(et===xt||$(et,xt,w,E,q)))return Ge.push(Et)})){Re=!1;break}}else if(!(et===ht||$(et,ht,w,E,q))){Re=!1;break}}return q.delete(d),q.delete(h),Re}function toe(d,h,w,E,$,q,G){switch(w){case gn:if(d.byteLength!=h.byteLength||d.byteOffset!=h.byteOffset)return!1;d=d.buffer,h=h.buffer;case on:return!(d.byteLength!=h.byteLength||!q(new Wh(d),new Wh(h)));case ne:case re:case we:return Do(+d,+h);case ye:return d.name==h.name&&d.message==h.message;case me:case De:return d==h+"";case ie:var Q=Lv;case Be:var de=E&v;if(Q||(Q=Bh),d.size!=h.size&&!de)return!1;var Te=G.get(d);if(Te)return Te==h;E|=y,G.set(d,h);var ke=_A(Q(d),Q(h),E,$,q,G);return G.delete(d),ke;case yt:if(Uu)return Uu.call(d)==Uu.call(h)}return!1}function noe(d,h,w,E,$,q){var G=w&v,Q=a1(d),de=Q.length,Te=a1(h),ke=Te.length;if(de!=ke&&!G)return!1;for(var _e=de;_e--;){var Re=Q[_e];if(!(G?Re in h:$t.call(h,Re)))return!1}var Ge=q.get(d),et=q.get(h);if(Ge&&et)return Ge==h&&et==d;var ht=!0;q.set(d,h),q.set(h,d);for(var tt=G;++_e<de;){Re=Q[_e];var xt=d[Re],Et=h[Re];if(E)var Hr=G?E(Et,xt,Re,h,d,q):E(xt,Et,Re,d,h,q);if(!(Hr===n?xt===Et||$(xt,Et,w,E,q):Hr)){ht=!1;break}tt||(tt=Re=="constructor")}if(ht&&!tt){var gr=d.constructor,Wr=h.constructor;gr!=Wr&&"constructor"in d&&"constructor"in h&&!(typeof gr=="function"&&gr instanceof gr&&typeof Wr=="function"&&Wr instanceof Wr)&&(ht=!1)}return q.delete(d),q.delete(h),ht}function Fi(d){return m1($A(d,n,jA),d+"")}function a1(d){return GD(d,jn,d1)}function l1(d){return GD(d,Mr,IA)}var c1=Gh?function(d){return Gh.get(d)}:M1;function cm(d){for(var h=d.name+"",w=Kl[h],E=$t.call(Kl,h)?w.length:0;E--;){var $=w[E],q=$.func;if(q==null||q==d)return $.name}return h}function Xl(d){var h=$t.call(W,"placeholder")?W:d;return h.placeholder}function Ze(){var d=W.iteratee||E1;return d=d===E1?ZD:d,arguments.length?d(arguments[0],arguments[1]):d}function um(d,h){var w=d.__data__;return uoe(h)?w[typeof h=="string"?"string":"hash"]:w.map}function u1(d){for(var h=jn(d),w=h.length;w--;){var E=h[w],$=d[E];h[w]=[E,$,PA($)]}return h}function Pa(d,h){var w=pne(d,h);return XD(w)?w:n}function roe(d){var h=$t.call(d,Ma),w=d[Ma];try{d[Ma]=n;var E=!0}catch{}var $=Vh.call(d);return E&&(h?d[Ma]=w:delete d[Ma]),$}var d1=Fv?function(d){return d==null?[]:(d=Vt(d),ks(Fv(d),function(h){return LD.call(d,h)}))}:_1,IA=Fv?function(d){for(var h=[];d;)Es(h,d1(d)),d=jh(d);return h}:_1,ar=hr;(Rv&&ar(new Rv(new ArrayBuffer(1)))!=gn||Hu&&ar(new Hu)!=ie||zv&&ar(zv.resolve())!=Me||ql&&ar(new ql)!=Be||Wu&&ar(new Wu)!=wn)&&(ar=function(d){var h=hr(d),w=h==Pe?d.constructor:n,E=w?Na(w):"";if(E)switch(E){case Rne:return gn;case zne:return ie;case Vne:return Me;case Hne:return Be;case Wne:return wn}return h});function ooe(d,h,w){for(var E=-1,$=w.length;++E<$;){var q=w[E],G=q.size;switch(q.type){case"drop":d+=G;break;case"dropRight":h-=G;break;case"take":h=sr(h,d+G);break;case"takeRight":d=$n(d,h-G);break}}return{start:d,end:h}}function ioe(d){var h=d.match(dte);return h?h[1].split(fte):[]}function DA(d,h,w){h=Ds(h,d);for(var E=-1,$=h.length,q=!1;++E<$;){var G=ii(h[E]);if(!(q=d!=null&&w(d,G)))break;d=d[G]}return q||++E!=$?q:($=d==null?0:d.length,!!$&&ym($)&&Ri(G,$)&&(ut(d)||$a(d)))}function soe(d){var h=d.length,w=new d.constructor(h);return h&&typeof d[0]=="string"&&$t.call(d,"index")&&(w.index=d.index,w.input=d.input),w}function AA(d){return typeof d.constructor=="function"&&!Zu(d)?Yl(jh(d)):{}}function aoe(d,h,w){var E=d.constructor;switch(h){case on:return o1(d);case ne:case re:return new E(+d);case gn:return jre(d,w);case Sn:case Jn:case ot:case Mn:case Zt:case be:case Ve:case Ee:case He:return hA(d,w);case ie:return new E;case we:case De:return new E(d);case me:return Ure(d);case Be:return new E;case yt:return qre(d)}}function loe(d,h){var w=h.length;if(!w)return d;var E=w-1;return h[E]=(w>1?"& ":"")+h[E],h=h.join(w>2?", ":" "),d.replace(ute,`{
364
364
  /* [wrapped with `+h+`] */
365
- `)}function loe(d){return ut(d)||$a(d)||!!(BD&&d&&d[BD])}function Ri(d,h){var w=typeof d;return h=h??j,!!h&&(w=="number"||w!="symbol"&&xte.test(d))&&d>-1&&d%1==0&&d<h}function mr(d,h,w){if(!sn(w))return!1;var E=typeof h;return(E=="number"?Or(w)&&Ri(h,w.length):E=="string"&&h in w)?Do(w[h],d):!1}function f1(d,h){if(ut(d))return!1;var w=typeof d;return w=="number"||w=="symbol"||w=="boolean"||d==null||Vr(d)?!0:Pi.test(d)||!Zn.test(d)||h!=null&&d in Vt(h)}function coe(d){var h=typeof d;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?d!=="__proto__":d===null}function p1(d){var h=cm(d),w=W[h];if(typeof w!="function"||!(h in St.prototype))return!1;if(d===w)return!0;var E=c1(w);return!!E&&d===E[0]}function uoe(d){return!!PD&&PD in d}var doe=Rh?zi:I1;function Zu(d){var h=d&&d.constructor,w=typeof h=="function"&&h.prototype||Ul;return d===w}function PA(d){return d===d&&!sn(d)}function NA(d,h){return function(w){return w==null?!1:w[d]===h&&(h!==n||d in Vt(w))}}function foe(d){var h=mm(d,function(E){return w.size===u&&w.clear(),E}),w=h.cache;return h}function poe(d,h){var w=d[1],E=h[1],$=w|E,q=$<(x|S|N),G=E==N&&w==T||E==N&&w==L&&d[7].length<=h[8]||E==(N|L)&&h[7].length<=h[8]&&w==T;if(!(q||G))return d;E&x&&(d[2]=h[2],$|=w&x?0:k);var Q=h[3];if(Q){var de=d[3];d[3]=de?gA(de,Q,h[4]):Q,d[4]=de?Os(d[3],f):h[4]}return Q=h[5],Q&&(de=d[5],d[5]=de?yA(de,Q,h[6]):Q,d[6]=de?Os(d[5],f):h[6]),Q=h[7],Q&&(d[7]=Q),E&N&&(d[8]=d[8]==null?h[8]:sr(d[8],h[8])),d[9]==null&&(d[9]=h[9]),d[0]=h[0],d[1]=$,d}function hoe(d){var h=[];if(d!=null)for(var w in Vt(d))h.push(w);return h}function moe(d){return Vh.call(d)}function $A(d,h,w){return h=$n(h===n?d.length-1:h,0),function(){for(var E=arguments,$=-1,q=$n(E.length-h,0),G=ve(q);++$<q;)G[$]=E[h+$];$=-1;for(var Q=ve(h+1);++$<h;)Q[$]=E[$];return Q[h]=w(G),Fr(d,this,Q)}}function LA(d,h){return h.length<2?d:Aa(d,mo(h,0,-1))}function goe(d,h){for(var w=d.length,E=sr(h.length,w),$=Er(d);E--;){var q=h[E];d[E]=Ri(q,w)?$[q]:n}return d}function h1(d,h){if(!(h==="constructor"&&typeof d[h]=="function")&&h!="__proto__")return d[h]}var BA=RA(sA),Qu=Dne||function(d,h){return Qn.setTimeout(d,h)},m1=RA(Rre);function FA(d,h,w){var E=h+"";return m1(d,aoe(E,yoe(ooe(E),w)))}function RA(d){var h=0,w=0;return function(){var E=$ne(),$=F-(E-w);if(w=E,$>0){if(++h>=H)return arguments[0]}else h=0;return d.apply(n,arguments)}}function dm(d,h){var w=-1,E=d.length,$=E-1;for(h=h===n?E:h;++w<h;){var q=Xv(w,$),G=d[q];d[q]=d[w],d[w]=G}return d.length=h,d}var zA=foe(function(d){var h=[];return d.charCodeAt(0)===46&&h.push(""),d.replace(ste,function(w,E,$,q){h.push($?q.replace(hte,"$1"):E||w)}),h});function ii(d){if(typeof d=="string"||Vr(d))return d;var h=d+"";return h=="0"&&1/d==-R?"-0":h}function Na(d){if(d!=null){try{return zh.call(d)}catch{}try{return d+""}catch{}}return""}function yoe(d,h){return uo(pe,function(w){var E="_."+w[0];h&w[1]&&!$h(d,E)&&d.push(E)}),d.sort()}function VA(d){if(d instanceof St)return d.clone();var h=new po(d.__wrapped__,d.__chain__);return h.__actions__=Er(d.__actions__),h.__index__=d.__index__,h.__values__=d.__values__,h}function boe(d,h,w){(w?mr(d,h,w):h===n)?h=1:h=$n(dt(h),0);var E=d==null?0:d.length;if(!E||h<1)return[];for(var $=0,q=0,G=ve(Kh(E/h));$<E;)G[q++]=mo(d,$,$+=h);return G}function voe(d){for(var h=-1,w=d==null?0:d.length,E=0,$=[];++h<w;){var q=d[h];q&&($[E++]=q)}return $}function xoe(){var d=arguments.length;if(!d)return[];for(var h=ve(d-1),w=arguments[0],E=d;E--;)h[E-1]=arguments[E];return Es(ut(w)?Er(w):[w],er(h,1))}var woe=gt(function(d,h){return Cn(d)?Ku(d,er(h,1,Cn,!0)):[]}),Soe=gt(function(d,h){var w=go(h);return Cn(w)&&(w=n),Cn(d)?Ku(d,er(h,1,Cn,!0),Ze(w,2)):[]}),Coe=gt(function(d,h){var w=go(h);return Cn(w)&&(w=n),Cn(d)?Ku(d,er(h,1,Cn,!0),n,w):[]});function Toe(d,h,w){var E=d==null?0:d.length;return E?(h=w||h===n?1:dt(h),mo(d,h<0?0:h,E)):[]}function koe(d,h,w){var E=d==null?0:d.length;return E?(h=w||h===n?1:dt(h),h=E-h,mo(d,0,h<0?0:h)):[]}function Eoe(d,h){return d&&d.length?rm(d,Ze(h,3),!0,!0):[]}function Ooe(d,h){return d&&d.length?rm(d,Ze(h,3),!0):[]}function Moe(d,h,w,E){var $=d==null?0:d.length;return $?(w&&typeof w!="number"&&mr(d,h,w)&&(w=0,E=$),xre(d,h,w,E)):[]}function HA(d,h,w){var E=d==null?0:d.length;if(!E)return-1;var $=w==null?0:dt(w);return $<0&&($=$n(E+$,0)),Lh(d,Ze(h,3),$)}function WA(d,h,w){var E=d==null?0:d.length;if(!E)return-1;var $=E-1;return w!==n&&($=dt(w),$=w<0?$n(E+$,0):sr($,E-1)),Lh(d,Ze(h,3),$,!0)}function jA(d){var h=d==null?0:d.length;return h?er(d,1):[]}function _oe(d){var h=d==null?0:d.length;return h?er(d,R):[]}function Ioe(d,h){var w=d==null?0:d.length;return w?(h=h===n?1:dt(h),er(d,h)):[]}function Doe(d){for(var h=-1,w=d==null?0:d.length,E={};++h<w;){var $=d[h];E[$[0]]=$[1]}return E}function UA(d){return d&&d.length?d[0]:n}function Aoe(d,h,w){var E=d==null?0:d.length;if(!E)return-1;var $=w==null?0:dt(w);return $<0&&($=$n(E+$,0)),Vl(d,h,$)}function Poe(d){var h=d==null?0:d.length;return h?mo(d,0,-1):[]}var Noe=gt(function(d){var h=Qt(d,n1);return h.length&&h[0]===d[0]?qv(h):[]}),$oe=gt(function(d){var h=go(d),w=Qt(d,n1);return h===go(w)?h=n:w.pop(),w.length&&w[0]===d[0]?qv(w,Ze(h,2)):[]}),Loe=gt(function(d){var h=go(d),w=Qt(d,n1);return h=typeof h=="function"?h:n,h&&w.pop(),w.length&&w[0]===d[0]?qv(w,n,h):[]});function Boe(d,h){return d==null?"":Pne.call(d,h)}function go(d){var h=d==null?0:d.length;return h?d[h-1]:n}function Foe(d,h,w){var E=d==null?0:d.length;if(!E)return-1;var $=E;return w!==n&&($=dt(w),$=$<0?$n(E+$,0):sr($,E-1)),h===h?yne(d,h,$):Lh(d,kD,$,!0)}function Roe(d,h){return d&&d.length?nA(d,dt(h)):n}var zoe=gt(qA);function qA(d,h){return d&&d.length&&h&&h.length?Jv(d,h):d}function Voe(d,h,w){return d&&d.length&&h&&h.length?Jv(d,h,Ze(w,2)):d}function Hoe(d,h,w){return d&&d.length&&h&&h.length?Jv(d,h,n,w):d}var Woe=Fi(function(d,h){var w=d==null?0:d.length,E=Hv(d,h);return iA(d,Qt(h,function($){return Ri($,w)?+$:$}).sort(mA)),E});function joe(d,h){var w=[];if(!(d&&d.length))return w;var E=-1,$=[],q=d.length;for(h=Ze(h,3);++E<q;){var G=d[E];h(G,E,d)&&(w.push(G),$.push(E))}return iA(d,$),w}function g1(d){return d==null?d:Bne.call(d)}function Uoe(d,h,w){var E=d==null?0:d.length;return E?(w&&typeof w!="number"&&mr(d,h,w)?(h=0,w=E):(h=h==null?0:dt(h),w=w===n?E:dt(w)),mo(d,h,w)):[]}function qoe(d,h){return nm(d,h)}function Koe(d,h,w){return Qv(d,h,Ze(w,2))}function Yoe(d,h){var w=d==null?0:d.length;if(w){var E=nm(d,h);if(E<w&&Do(d[E],h))return E}return-1}function Goe(d,h){return nm(d,h,!0)}function Joe(d,h,w){return Qv(d,h,Ze(w,2),!0)}function Xoe(d,h){var w=d==null?0:d.length;if(w){var E=nm(d,h,!0)-1;if(Do(d[E],h))return E}return-1}function Zoe(d){return d&&d.length?aA(d):[]}function Qoe(d,h){return d&&d.length?aA(d,Ze(h,2)):[]}function eie(d){var h=d==null?0:d.length;return h?mo(d,1,h):[]}function tie(d,h,w){return d&&d.length?(h=w||h===n?1:dt(h),mo(d,0,h<0?0:h)):[]}function nie(d,h,w){var E=d==null?0:d.length;return E?(h=w||h===n?1:dt(h),h=E-h,mo(d,h<0?0:h,E)):[]}function rie(d,h){return d&&d.length?rm(d,Ze(h,3),!1,!0):[]}function oie(d,h){return d&&d.length?rm(d,Ze(h,3)):[]}var iie=gt(function(d){return Is(er(d,1,Cn,!0))}),sie=gt(function(d){var h=go(d);return Cn(h)&&(h=n),Is(er(d,1,Cn,!0),Ze(h,2))}),aie=gt(function(d){var h=go(d);return h=typeof h=="function"?h:n,Is(er(d,1,Cn,!0),n,h)});function lie(d){return d&&d.length?Is(d):[]}function cie(d,h){return d&&d.length?Is(d,Ze(h,2)):[]}function uie(d,h){return h=typeof h=="function"?h:n,d&&d.length?Is(d,n,h):[]}function y1(d){if(!(d&&d.length))return[];var h=0;return d=ks(d,function(w){if(Cn(w))return h=$n(w.length,h),!0}),Nv(h,function(w){return Qt(d,Dv(w))})}function KA(d,h){if(!(d&&d.length))return[];var w=y1(d);return h==null?w:Qt(w,function(E){return Fr(h,n,E)})}var die=gt(function(d,h){return Cn(d)?Ku(d,h):[]}),fie=gt(function(d){return t1(ks(d,Cn))}),pie=gt(function(d){var h=go(d);return Cn(h)&&(h=n),t1(ks(d,Cn),Ze(h,2))}),hie=gt(function(d){var h=go(d);return h=typeof h=="function"?h:n,t1(ks(d,Cn),n,h)}),mie=gt(y1);function gie(d,h){return dA(d||[],h||[],qu)}function yie(d,h){return dA(d||[],h||[],Ju)}var bie=gt(function(d){var h=d.length,w=h>1?d[h-1]:n;return w=typeof w=="function"?(d.pop(),w):n,KA(d,w)});function YA(d){var h=W(d);return h.__chain__=!0,h}function vie(d,h){return h(d),d}function fm(d,h){return h(d)}var xie=Fi(function(d){var h=d.length,w=h?d[0]:0,E=this.__wrapped__,$=function(q){return Hv(q,d)};return h>1||this.__actions__.length||!(E instanceof St)||!Ri(w)?this.thru($):(E=E.slice(w,+w+(h?1:0)),E.__actions__.push({func:fm,args:[$],thisArg:n}),new po(E,this.__chain__).thru(function(q){return h&&!q.length&&q.push(n),q}))});function wie(){return YA(this)}function Sie(){return new po(this.value(),this.__chain__)}function Cie(){this.__values__===n&&(this.__values__=lP(this.value()));var d=this.__index__>=this.__values__.length,h=d?n:this.__values__[this.__index__++];return{done:d,value:h}}function Tie(){return this}function kie(d){for(var h,w=this;w instanceof Xh;){var E=VA(w);E.__index__=0,E.__values__=n,h?$.__wrapped__=E:h=E;var $=E;w=w.__wrapped__}return $.__wrapped__=d,h}function Eie(){var d=this.__wrapped__;if(d instanceof St){var h=d;return this.__actions__.length&&(h=new St(this)),h=h.reverse(),h.__actions__.push({func:fm,args:[g1],thisArg:n}),new po(h,this.__chain__)}return this.thru(g1)}function Oie(){return uA(this.__wrapped__,this.__actions__)}var Mie=om(function(d,h,w){$t.call(d,w)?++d[w]:Li(d,w,1)});function _ie(d,h,w){var E=ut(d)?CD:vre;return w&&mr(d,h,w)&&(h=n),E(d,Ze(h,3))}function Iie(d,h){var w=ut(d)?ks:KD;return w(d,Ze(h,3))}var Die=wA(HA),Aie=wA(WA);function Pie(d,h){return er(pm(d,h),1)}function Nie(d,h){return er(pm(d,h),R)}function $ie(d,h,w){return w=w===n?1:dt(w),er(pm(d,h),w)}function GA(d,h){var w=ut(d)?uo:_s;return w(d,Ze(h,3))}function JA(d,h){var w=ut(d)?ene:qD;return w(d,Ze(h,3))}var Lie=om(function(d,h,w){$t.call(d,w)?d[w].push(h):Li(d,w,[h])});function Bie(d,h,w,E){d=Or(d)?d:Ql(d),w=w&&!E?dt(w):0;var $=d.length;return w<0&&(w=$n($+w,0)),bm(d)?w<=$&&d.indexOf(h,w)>-1:!!$&&Vl(d,h,w)>-1}var Fie=gt(function(d,h,w){var E=-1,$=typeof h=="function",q=Or(d)?ve(d.length):[];return _s(d,function(G){q[++E]=$?Fr(h,G,w):Yu(G,h,w)}),q}),Rie=om(function(d,h,w){Li(d,w,h)});function pm(d,h){var w=ut(d)?Qt:QD;return w(d,Ze(h,3))}function zie(d,h,w,E){return d==null?[]:(ut(h)||(h=h==null?[]:[h]),w=E?n:w,ut(w)||(w=w==null?[]:[w]),rA(d,h,w))}var Vie=om(function(d,h,w){d[w?0:1].push(h)},function(){return[[],[]]});function Hie(d,h,w){var E=ut(d)?_v:OD,$=arguments.length<3;return E(d,Ze(h,4),w,$,_s)}function Wie(d,h,w){var E=ut(d)?tne:OD,$=arguments.length<3;return E(d,Ze(h,4),w,$,qD)}function jie(d,h){var w=ut(d)?ks:KD;return w(d,gm(Ze(h,3)))}function Uie(d){var h=ut(d)?HD:Bre;return h(d)}function qie(d,h,w){(w?mr(d,h,w):h===n)?h=1:h=dt(h);var E=ut(d)?hre:Fre;return E(d,h)}function Kie(d){var h=ut(d)?mre:zre;return h(d)}function Yie(d){if(d==null)return 0;if(Or(d))return bm(d)?Wl(d):d.length;var h=ar(d);return h==ie||h==Be?d.size:Yv(d).length}function Gie(d,h,w){var E=ut(d)?Iv:Vre;return w&&mr(d,h,w)&&(h=n),E(d,Ze(h,3))}var Jie=gt(function(d,h){if(d==null)return[];var w=h.length;return w>1&&mr(d,h[0],h[1])?h=[]:w>2&&mr(h[0],h[1],h[2])&&(h=[h[0]]),rA(d,er(h,1),[])}),hm=Ine||function(){return Qn.Date.now()};function Xie(d,h){if(typeof h!="function")throw new fo(s);return d=dt(d),function(){if(--d<1)return h.apply(this,arguments)}}function XA(d,h,w){return h=w?n:h,h=d&&h==null?d.length:h,Bi(d,N,n,n,n,n,h)}function ZA(d,h){var w;if(typeof h!="function")throw new fo(s);return d=dt(d),function(){return--d>0&&(w=h.apply(this,arguments)),d<=1&&(h=n),w}}var b1=gt(function(d,h,w){var E=x;if(w.length){var $=Os(w,Xl(b1));E|=O}return Bi(d,E,h,w,$)}),QA=gt(function(d,h,w){var E=x|S;if(w.length){var $=Os(w,Xl(QA));E|=O}return Bi(h,E,d,w,$)});function eP(d,h,w){h=w?n:h;var E=Bi(d,T,n,n,n,n,n,h);return E.placeholder=eP.placeholder,E}function tP(d,h,w){h=w?n:h;var E=Bi(d,C,n,n,n,n,n,h);return E.placeholder=tP.placeholder,E}function nP(d,h,w){var E,$,q,G,Q,de,Te=0,ke=!1,_e=!1,Re=!0;if(typeof d!="function")throw new fo(s);h=yo(h)||0,sn(w)&&(ke=!!w.leading,_e="maxWait"in w,q=_e?$n(yo(w.maxWait)||0,h):q,Re="trailing"in w?!!w.trailing:Re);function Ge(Tn){var Ao=E,Hi=$;return E=$=n,Te=Tn,G=d.apply(Hi,Ao),G}function et(Tn){return Te=Tn,Q=Qu(xt,h),ke?Ge(Tn):G}function ht(Tn){var Ao=Tn-de,Hi=Tn-Te,wP=h-Ao;return _e?sr(wP,q-Hi):wP}function tt(Tn){var Ao=Tn-de,Hi=Tn-Te;return de===n||Ao>=h||Ao<0||_e&&Hi>=q}function xt(){var Tn=hm();if(tt(Tn))return Et(Tn);Q=Qu(xt,ht(Tn))}function Et(Tn){return Q=n,Re&&E?Ge(Tn):(E=$=n,G)}function Hr(){Q!==n&&fA(Q),Te=0,E=de=$=Q=n}function gr(){return Q===n?G:Et(hm())}function Wr(){var Tn=hm(),Ao=tt(Tn);if(E=arguments,$=this,de=Tn,Ao){if(Q===n)return et(de);if(_e)return fA(Q),Q=Qu(xt,h),Ge(de)}return Q===n&&(Q=Qu(xt,h)),G}return Wr.cancel=Hr,Wr.flush=gr,Wr}var Zie=gt(function(d,h){return UD(d,1,h)}),Qie=gt(function(d,h,w){return UD(d,yo(h)||0,w)});function ese(d){return Bi(d,V)}function mm(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new fo(s);var w=function(){var E=arguments,$=h?h.apply(this,E):E[0],q=w.cache;if(q.has($))return q.get($);var G=d.apply(this,E);return w.cache=q.set($,G)||q,G};return w.cache=new(mm.Cache||$i),w}mm.Cache=$i;function gm(d){if(typeof d!="function")throw new fo(s);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}function tse(d){return ZA(2,d)}var nse=Hre(function(d,h){h=h.length==1&&ut(h[0])?Qt(h[0],Rr(Ze())):Qt(er(h,1),Rr(Ze()));var w=h.length;return gt(function(E){for(var $=-1,q=sr(E.length,w);++$<q;)E[$]=h[$].call(this,E[$]);return Fr(d,this,E)})}),v1=gt(function(d,h){var w=Os(h,Xl(v1));return Bi(d,O,n,h,w)}),rP=gt(function(d,h){var w=Os(h,Xl(rP));return Bi(d,I,n,h,w)}),rse=Fi(function(d,h){return Bi(d,L,n,n,n,h)});function ose(d,h){if(typeof d!="function")throw new fo(s);return h=h===n?h:dt(h),gt(d,h)}function ise(d,h){if(typeof d!="function")throw new fo(s);return h=h==null?0:$n(dt(h),0),gt(function(w){var E=w[h],$=As(w,0,h);return E&&Es($,E),Fr(d,this,$)})}function sse(d,h,w){var E=!0,$=!0;if(typeof d!="function")throw new fo(s);return sn(w)&&(E="leading"in w?!!w.leading:E,$="trailing"in w?!!w.trailing:$),nP(d,h,{leading:E,maxWait:h,trailing:$})}function ase(d){return XA(d,1)}function lse(d,h){return v1(r1(h),d)}function cse(){if(!arguments.length)return[];var d=arguments[0];return ut(d)?d:[d]}function use(d){return ho(d,b)}function dse(d,h){return h=typeof h=="function"?h:n,ho(d,b,h)}function fse(d){return ho(d,p|b)}function pse(d,h){return h=typeof h=="function"?h:n,ho(d,p|b,h)}function hse(d,h){return h==null||jD(d,h,jn(h))}function Do(d,h){return d===h||d!==d&&h!==h}var mse=lm(Uv),gse=lm(function(d,h){return d>=h}),$a=JD((function(){return arguments})())?JD:function(d){return yn(d)&&$t.call(d,"callee")&&!LD.call(d,"callee")},ut=ve.isArray,yse=yD?Rr(yD):kre;function Or(d){return d!=null&&ym(d.length)&&!zi(d)}function Cn(d){return yn(d)&&Or(d)}function bse(d){return d===!0||d===!1||yn(d)&&hr(d)==ne}var Ps=Ane||I1,vse=bD?Rr(bD):Ere;function xse(d){return yn(d)&&d.nodeType===1&&!ed(d)}function wse(d){if(d==null)return!0;if(Or(d)&&(ut(d)||typeof d=="string"||typeof d.splice=="function"||Ps(d)||Zl(d)||$a(d)))return!d.length;var h=ar(d);if(h==ie||h==Be)return!d.size;if(Zu(d))return!Yv(d).length;for(var w in d)if($t.call(d,w))return!1;return!0}function Sse(d,h){return Gu(d,h)}function Cse(d,h,w){w=typeof w=="function"?w:n;var E=w?w(d,h):n;return E===n?Gu(d,h,n,w):!!E}function x1(d){if(!yn(d))return!1;var h=hr(d);return h==ye||h==le||typeof d.message=="string"&&typeof d.name=="string"&&!ed(d)}function Tse(d){return typeof d=="number"&&FD(d)}function zi(d){if(!sn(d))return!1;var h=hr(d);return h==X||h==ee||h==ce||h==Ie}function oP(d){return typeof d=="number"&&d==dt(d)}function ym(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=j}function sn(d){var h=typeof d;return d!=null&&(h=="object"||h=="function")}function yn(d){return d!=null&&typeof d=="object"}var iP=vD?Rr(vD):Mre;function kse(d,h){return d===h||Kv(d,h,u1(h))}function Ese(d,h,w){return w=typeof w=="function"?w:n,Kv(d,h,u1(h),w)}function Ose(d){return sP(d)&&d!=+d}function Mse(d){if(doe(d))throw new lt(i);return XD(d)}function _se(d){return d===null}function Ise(d){return d==null}function sP(d){return typeof d=="number"||yn(d)&&hr(d)==we}function ed(d){if(!yn(d)||hr(d)!=Ae)return!1;var h=jh(d);if(h===null)return!0;var w=$t.call(h,"constructor")&&h.constructor;return typeof w=="function"&&w instanceof w&&zh.call(w)==Ene}var w1=xD?Rr(xD):_re;function Dse(d){return oP(d)&&d>=-j&&d<=j}var aP=wD?Rr(wD):Ire;function bm(d){return typeof d=="string"||!ut(d)&&yn(d)&&hr(d)==De}function Vr(d){return typeof d=="symbol"||yn(d)&&hr(d)==yt}var Zl=SD?Rr(SD):Dre;function Ase(d){return d===n}function Pse(d){return yn(d)&&ar(d)==wn}function Nse(d){return yn(d)&&hr(d)==Pn}var $se=lm(Gv),Lse=lm(function(d,h){return d<=h});function lP(d){if(!d)return[];if(Or(d))return bm(d)?_o(d):Er(d);if(Vu&&d[Vu])return hne(d[Vu]());var h=ar(d),w=h==ie?Lv:h==Be?Bh:Ql;return w(d)}function Vi(d){if(!d)return d===0?d:0;if(d=yo(d),d===R||d===-R){var h=d<0?-1:1;return h*K}return d===d?d:0}function dt(d){var h=Vi(d),w=h%1;return h===h?w?h-w:h:0}function cP(d){return d?Da(dt(d),0,Y):0}function yo(d){if(typeof d=="number")return d;if(Vr(d))return U;if(sn(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=sn(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=MD(d);var w=yte.test(d);return w||vte.test(d)?Xte(d.slice(2),w?2:8):gte.test(d)?U:+d}function uP(d){return oi(d,Mr(d))}function Bse(d){return d?Da(dt(d),-j,j):d===0?d:0}function Nt(d){return d==null?"":zr(d)}var Fse=Gl(function(d,h){if(Zu(h)||Or(h)){oi(h,jn(h),d);return}for(var w in h)$t.call(h,w)&&qu(d,w,h[w])}),dP=Gl(function(d,h){oi(h,Mr(h),d)}),vm=Gl(function(d,h,w,E){oi(h,Mr(h),d,E)}),Rse=Gl(function(d,h,w,E){oi(h,jn(h),d,E)}),zse=Fi(Hv);function Vse(d,h){var w=Yl(d);return h==null?w:WD(w,h)}var Hse=gt(function(d,h){d=Vt(d);var w=-1,E=h.length,$=E>2?h[2]:n;for($&&mr(h[0],h[1],$)&&(E=1);++w<E;)for(var q=h[w],G=Mr(q),Q=-1,de=G.length;++Q<de;){var Te=G[Q],ke=d[Te];(ke===n||Do(ke,Ul[Te])&&!$t.call(d,Te))&&(d[Te]=q[Te])}return d}),Wse=gt(function(d){return d.push(n,MA),Fr(fP,n,d)});function jse(d,h){return TD(d,Ze(h,3),ri)}function Use(d,h){return TD(d,Ze(h,3),jv)}function qse(d,h){return d==null?d:Wv(d,Ze(h,3),Mr)}function Kse(d,h){return d==null?d:YD(d,Ze(h,3),Mr)}function Yse(d,h){return d&&ri(d,Ze(h,3))}function Gse(d,h){return d&&jv(d,Ze(h,3))}function Jse(d){return d==null?[]:em(d,jn(d))}function Xse(d){return d==null?[]:em(d,Mr(d))}function S1(d,h,w){var E=d==null?n:Aa(d,h);return E===n?w:E}function Zse(d,h){return d!=null&&DA(d,h,wre)}function C1(d,h){return d!=null&&DA(d,h,Sre)}var Qse=CA(function(d,h,w){h!=null&&typeof h.toString!="function"&&(h=Vh.call(h)),d[h]=w},k1(_r)),eae=CA(function(d,h,w){h!=null&&typeof h.toString!="function"&&(h=Vh.call(h)),$t.call(d,h)?d[h].push(w):d[h]=[w]},Ze),tae=gt(Yu);function jn(d){return Or(d)?VD(d):Yv(d)}function Mr(d){return Or(d)?VD(d,!0):Are(d)}function nae(d,h){var w={};return h=Ze(h,3),ri(d,function(E,$,q){Li(w,h(E,$,q),E)}),w}function rae(d,h){var w={};return h=Ze(h,3),ri(d,function(E,$,q){Li(w,$,h(E,$,q))}),w}var oae=Gl(function(d,h,w){tm(d,h,w)}),fP=Gl(function(d,h,w,E){tm(d,h,w,E)}),iae=Fi(function(d,h){var w={};if(d==null)return w;var E=!1;h=Qt(h,function(q){return q=Ds(q,d),E||(E=q.length>1),q}),oi(d,l1(d),w),E&&(w=ho(w,p|m|b,Qre));for(var $=h.length;$--;)e1(w,h[$]);return w});function sae(d,h){return pP(d,gm(Ze(h)))}var aae=Fi(function(d,h){return d==null?{}:Nre(d,h)});function pP(d,h){if(d==null)return{};var w=Qt(l1(d),function(E){return[E]});return h=Ze(h),oA(d,w,function(E,$){return h(E,$[0])})}function lae(d,h,w){h=Ds(h,d);var E=-1,$=h.length;for($||($=1,d=n);++E<$;){var q=d==null?n:d[ii(h[E])];q===n&&(E=$,q=w),d=zi(q)?q.call(d):q}return d}function cae(d,h,w){return d==null?d:Ju(d,h,w)}function uae(d,h,w,E){return E=typeof E=="function"?E:n,d==null?d:Ju(d,h,w,E)}var hP=EA(jn),mP=EA(Mr);function dae(d,h,w){var E=ut(d),$=E||Ps(d)||Zl(d);if(h=Ze(h,4),w==null){var q=d&&d.constructor;$?w=E?new q:[]:sn(d)?w=zi(q)?Yl(jh(d)):{}:w={}}return($?uo:ri)(d,function(G,Q,de){return h(w,G,Q,de)}),w}function fae(d,h){return d==null?!0:e1(d,h)}function pae(d,h,w){return d==null?d:cA(d,h,r1(w))}function hae(d,h,w,E){return E=typeof E=="function"?E:n,d==null?d:cA(d,h,r1(w),E)}function Ql(d){return d==null?[]:$v(d,jn(d))}function mae(d){return d==null?[]:$v(d,Mr(d))}function gae(d,h,w){return w===n&&(w=h,h=n),w!==n&&(w=yo(w),w=w===w?w:0),h!==n&&(h=yo(h),h=h===h?h:0),Da(yo(d),h,w)}function yae(d,h,w){return h=Vi(h),w===n?(w=h,h=0):w=Vi(w),d=yo(d),Cre(d,h,w)}function bae(d,h,w){if(w&&typeof w!="boolean"&&mr(d,h,w)&&(h=w=n),w===n&&(typeof h=="boolean"?(w=h,h=n):typeof d=="boolean"&&(w=d,d=n)),d===n&&h===n?(d=0,h=1):(d=Vi(d),h===n?(h=d,d=0):h=Vi(h)),d>h){var E=d;d=h,h=E}if(w||d%1||h%1){var $=RD();return sr(d+$*(h-d+Jte("1e-"+(($+"").length-1))),h)}return Xv(d,h)}var vae=Jl(function(d,h,w){return h=h.toLowerCase(),d+(w?gP(h):h)});function gP(d){return T1(Nt(d).toLowerCase())}function yP(d){return d=Nt(d),d&&d.replace(wte,cne).replace(zte,"")}function xae(d,h,w){d=Nt(d),h=zr(h);var E=d.length;w=w===n?E:Da(dt(w),0,E);var $=w;return w-=h.length,w>=0&&d.slice(w,$)==h}function wae(d){return d=Nt(d),d&&Ea.test(d)?d.replace(ir,une):d}function Sae(d){return d=Nt(d),d&&ate.test(d)?d.replace(vv,"\\$&"):d}var Cae=Jl(function(d,h,w){return d+(w?"-":"")+h.toLowerCase()}),Tae=Jl(function(d,h,w){return d+(w?" ":"")+h.toLowerCase()}),kae=xA("toLowerCase");function Eae(d,h,w){d=Nt(d),h=dt(h);var E=h?Wl(d):0;if(!h||E>=h)return d;var $=(h-E)/2;return am(Yh($),w)+d+am(Kh($),w)}function Oae(d,h,w){d=Nt(d),h=dt(h);var E=h?Wl(d):0;return h&&E<h?d+am(h-E,w):d}function Mae(d,h,w){d=Nt(d),h=dt(h);var E=h?Wl(d):0;return h&&E<h?am(h-E,w)+d:d}function _ae(d,h,w){return w||h==null?h=0:h&&(h=+h),Lne(Nt(d).replace(xv,""),h||0)}function Iae(d,h,w){return(w?mr(d,h,w):h===n)?h=1:h=dt(h),Zv(Nt(d),h)}function Dae(){var d=arguments,h=Nt(d[0]);return d.length<3?h:h.replace(d[1],d[2])}var Aae=Jl(function(d,h,w){return d+(w?"_":"")+h.toLowerCase()});function Pae(d,h,w){return w&&typeof w!="number"&&mr(d,h,w)&&(h=w=n),w=w===n?Y:w>>>0,w?(d=Nt(d),d&&(typeof h=="string"||h!=null&&!w1(h))&&(h=zr(h),!h&&Hl(d))?As(_o(d),0,w):d.split(h,w)):[]}var Nae=Jl(function(d,h,w){return d+(w?" ":"")+T1(h)});function $ae(d,h,w){return d=Nt(d),w=w==null?0:Da(dt(w),0,d.length),h=zr(h),d.slice(w,w+h.length)==h}function Lae(d,h,w){var E=W.templateSettings;w&&mr(d,h,w)&&(h=n),d=Nt(d),h=vm({},h,E,OA);var $=vm({},h.imports,E.imports,OA),q=jn($),G=$v($,q),Q,de,Te=0,ke=h.interpolate||Ah,_e="__p += '",Re=Bv((h.escape||Ah).source+"|"+ke.source+"|"+(ke===st?mte:Ah).source+"|"+(h.evaluate||Ah).source+"|$","g"),Ge="//# sourceURL="+($t.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ute+"]")+`
366
- `;d.replace(Re,function(tt,xt,Et,Hr,gr,Wr){return Et||(Et=Hr),_e+=d.slice(Te,Wr).replace(Ste,dne),xt&&(Q=!0,_e+=`' +
365
+ `)}function coe(d){return ut(d)||$a(d)||!!(BD&&d&&d[BD])}function Ri(d,h){var w=typeof d;return h=h??j,!!h&&(w=="number"||w!="symbol"&&wte.test(d))&&d>-1&&d%1==0&&d<h}function mr(d,h,w){if(!sn(w))return!1;var E=typeof h;return(E=="number"?Or(w)&&Ri(h,w.length):E=="string"&&h in w)?Do(w[h],d):!1}function f1(d,h){if(ut(d))return!1;var w=typeof d;return w=="number"||w=="symbol"||w=="boolean"||d==null||Vr(d)?!0:Pi.test(d)||!Zn.test(d)||h!=null&&d in Vt(h)}function uoe(d){var h=typeof d;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?d!=="__proto__":d===null}function p1(d){var h=cm(d),w=W[h];if(typeof w!="function"||!(h in St.prototype))return!1;if(d===w)return!0;var E=c1(w);return!!E&&d===E[0]}function doe(d){return!!PD&&PD in d}var foe=Rh?zi:I1;function Zu(d){var h=d&&d.constructor,w=typeof h=="function"&&h.prototype||Ul;return d===w}function PA(d){return d===d&&!sn(d)}function NA(d,h){return function(w){return w==null?!1:w[d]===h&&(h!==n||d in Vt(w))}}function poe(d){var h=mm(d,function(E){return w.size===u&&w.clear(),E}),w=h.cache;return h}function hoe(d,h){var w=d[1],E=h[1],$=w|E,q=$<(x|S|N),G=E==N&&w==T||E==N&&w==L&&d[7].length<=h[8]||E==(N|L)&&h[7].length<=h[8]&&w==T;if(!(q||G))return d;E&x&&(d[2]=h[2],$|=w&x?0:k);var Q=h[3];if(Q){var de=d[3];d[3]=de?gA(de,Q,h[4]):Q,d[4]=de?Os(d[3],f):h[4]}return Q=h[5],Q&&(de=d[5],d[5]=de?yA(de,Q,h[6]):Q,d[6]=de?Os(d[5],f):h[6]),Q=h[7],Q&&(d[7]=Q),E&N&&(d[8]=d[8]==null?h[8]:sr(d[8],h[8])),d[9]==null&&(d[9]=h[9]),d[0]=h[0],d[1]=$,d}function moe(d){var h=[];if(d!=null)for(var w in Vt(d))h.push(w);return h}function goe(d){return Vh.call(d)}function $A(d,h,w){return h=$n(h===n?d.length-1:h,0),function(){for(var E=arguments,$=-1,q=$n(E.length-h,0),G=ve(q);++$<q;)G[$]=E[h+$];$=-1;for(var Q=ve(h+1);++$<h;)Q[$]=E[$];return Q[h]=w(G),Fr(d,this,Q)}}function LA(d,h){return h.length<2?d:Aa(d,mo(h,0,-1))}function yoe(d,h){for(var w=d.length,E=sr(h.length,w),$=Er(d);E--;){var q=h[E];d[E]=Ri(q,w)?$[q]:n}return d}function h1(d,h){if(!(h==="constructor"&&typeof d[h]=="function")&&h!="__proto__")return d[h]}var BA=RA(sA),Qu=Ane||function(d,h){return Qn.setTimeout(d,h)},m1=RA(zre);function FA(d,h,w){var E=h+"";return m1(d,loe(E,boe(ioe(E),w)))}function RA(d){var h=0,w=0;return function(){var E=Lne(),$=F-(E-w);if(w=E,$>0){if(++h>=H)return arguments[0]}else h=0;return d.apply(n,arguments)}}function dm(d,h){var w=-1,E=d.length,$=E-1;for(h=h===n?E:h;++w<h;){var q=Xv(w,$),G=d[q];d[q]=d[w],d[w]=G}return d.length=h,d}var zA=poe(function(d){var h=[];return d.charCodeAt(0)===46&&h.push(""),d.replace(ate,function(w,E,$,q){h.push($?q.replace(mte,"$1"):E||w)}),h});function ii(d){if(typeof d=="string"||Vr(d))return d;var h=d+"";return h=="0"&&1/d==-R?"-0":h}function Na(d){if(d!=null){try{return zh.call(d)}catch{}try{return d+""}catch{}}return""}function boe(d,h){return uo(pe,function(w){var E="_."+w[0];h&w[1]&&!$h(d,E)&&d.push(E)}),d.sort()}function VA(d){if(d instanceof St)return d.clone();var h=new po(d.__wrapped__,d.__chain__);return h.__actions__=Er(d.__actions__),h.__index__=d.__index__,h.__values__=d.__values__,h}function voe(d,h,w){(w?mr(d,h,w):h===n)?h=1:h=$n(dt(h),0);var E=d==null?0:d.length;if(!E||h<1)return[];for(var $=0,q=0,G=ve(Kh(E/h));$<E;)G[q++]=mo(d,$,$+=h);return G}function xoe(d){for(var h=-1,w=d==null?0:d.length,E=0,$=[];++h<w;){var q=d[h];q&&($[E++]=q)}return $}function woe(){var d=arguments.length;if(!d)return[];for(var h=ve(d-1),w=arguments[0],E=d;E--;)h[E-1]=arguments[E];return Es(ut(w)?Er(w):[w],er(h,1))}var Soe=gt(function(d,h){return Cn(d)?Ku(d,er(h,1,Cn,!0)):[]}),Coe=gt(function(d,h){var w=go(h);return Cn(w)&&(w=n),Cn(d)?Ku(d,er(h,1,Cn,!0),Ze(w,2)):[]}),Toe=gt(function(d,h){var w=go(h);return Cn(w)&&(w=n),Cn(d)?Ku(d,er(h,1,Cn,!0),n,w):[]});function koe(d,h,w){var E=d==null?0:d.length;return E?(h=w||h===n?1:dt(h),mo(d,h<0?0:h,E)):[]}function Eoe(d,h,w){var E=d==null?0:d.length;return E?(h=w||h===n?1:dt(h),h=E-h,mo(d,0,h<0?0:h)):[]}function Ooe(d,h){return d&&d.length?rm(d,Ze(h,3),!0,!0):[]}function Moe(d,h){return d&&d.length?rm(d,Ze(h,3),!0):[]}function _oe(d,h,w,E){var $=d==null?0:d.length;return $?(w&&typeof w!="number"&&mr(d,h,w)&&(w=0,E=$),wre(d,h,w,E)):[]}function HA(d,h,w){var E=d==null?0:d.length;if(!E)return-1;var $=w==null?0:dt(w);return $<0&&($=$n(E+$,0)),Lh(d,Ze(h,3),$)}function WA(d,h,w){var E=d==null?0:d.length;if(!E)return-1;var $=E-1;return w!==n&&($=dt(w),$=w<0?$n(E+$,0):sr($,E-1)),Lh(d,Ze(h,3),$,!0)}function jA(d){var h=d==null?0:d.length;return h?er(d,1):[]}function Ioe(d){var h=d==null?0:d.length;return h?er(d,R):[]}function Doe(d,h){var w=d==null?0:d.length;return w?(h=h===n?1:dt(h),er(d,h)):[]}function Aoe(d){for(var h=-1,w=d==null?0:d.length,E={};++h<w;){var $=d[h];E[$[0]]=$[1]}return E}function UA(d){return d&&d.length?d[0]:n}function Poe(d,h,w){var E=d==null?0:d.length;if(!E)return-1;var $=w==null?0:dt(w);return $<0&&($=$n(E+$,0)),Vl(d,h,$)}function Noe(d){var h=d==null?0:d.length;return h?mo(d,0,-1):[]}var $oe=gt(function(d){var h=Qt(d,n1);return h.length&&h[0]===d[0]?qv(h):[]}),Loe=gt(function(d){var h=go(d),w=Qt(d,n1);return h===go(w)?h=n:w.pop(),w.length&&w[0]===d[0]?qv(w,Ze(h,2)):[]}),Boe=gt(function(d){var h=go(d),w=Qt(d,n1);return h=typeof h=="function"?h:n,h&&w.pop(),w.length&&w[0]===d[0]?qv(w,n,h):[]});function Foe(d,h){return d==null?"":Nne.call(d,h)}function go(d){var h=d==null?0:d.length;return h?d[h-1]:n}function Roe(d,h,w){var E=d==null?0:d.length;if(!E)return-1;var $=E;return w!==n&&($=dt(w),$=$<0?$n(E+$,0):sr($,E-1)),h===h?bne(d,h,$):Lh(d,kD,$,!0)}function zoe(d,h){return d&&d.length?nA(d,dt(h)):n}var Voe=gt(qA);function qA(d,h){return d&&d.length&&h&&h.length?Jv(d,h):d}function Hoe(d,h,w){return d&&d.length&&h&&h.length?Jv(d,h,Ze(w,2)):d}function Woe(d,h,w){return d&&d.length&&h&&h.length?Jv(d,h,n,w):d}var joe=Fi(function(d,h){var w=d==null?0:d.length,E=Hv(d,h);return iA(d,Qt(h,function($){return Ri($,w)?+$:$}).sort(mA)),E});function Uoe(d,h){var w=[];if(!(d&&d.length))return w;var E=-1,$=[],q=d.length;for(h=Ze(h,3);++E<q;){var G=d[E];h(G,E,d)&&(w.push(G),$.push(E))}return iA(d,$),w}function g1(d){return d==null?d:Fne.call(d)}function qoe(d,h,w){var E=d==null?0:d.length;return E?(w&&typeof w!="number"&&mr(d,h,w)?(h=0,w=E):(h=h==null?0:dt(h),w=w===n?E:dt(w)),mo(d,h,w)):[]}function Koe(d,h){return nm(d,h)}function Yoe(d,h,w){return Qv(d,h,Ze(w,2))}function Goe(d,h){var w=d==null?0:d.length;if(w){var E=nm(d,h);if(E<w&&Do(d[E],h))return E}return-1}function Joe(d,h){return nm(d,h,!0)}function Xoe(d,h,w){return Qv(d,h,Ze(w,2),!0)}function Zoe(d,h){var w=d==null?0:d.length;if(w){var E=nm(d,h,!0)-1;if(Do(d[E],h))return E}return-1}function Qoe(d){return d&&d.length?aA(d):[]}function eie(d,h){return d&&d.length?aA(d,Ze(h,2)):[]}function tie(d){var h=d==null?0:d.length;return h?mo(d,1,h):[]}function nie(d,h,w){return d&&d.length?(h=w||h===n?1:dt(h),mo(d,0,h<0?0:h)):[]}function rie(d,h,w){var E=d==null?0:d.length;return E?(h=w||h===n?1:dt(h),h=E-h,mo(d,h<0?0:h,E)):[]}function oie(d,h){return d&&d.length?rm(d,Ze(h,3),!1,!0):[]}function iie(d,h){return d&&d.length?rm(d,Ze(h,3)):[]}var sie=gt(function(d){return Is(er(d,1,Cn,!0))}),aie=gt(function(d){var h=go(d);return Cn(h)&&(h=n),Is(er(d,1,Cn,!0),Ze(h,2))}),lie=gt(function(d){var h=go(d);return h=typeof h=="function"?h:n,Is(er(d,1,Cn,!0),n,h)});function cie(d){return d&&d.length?Is(d):[]}function uie(d,h){return d&&d.length?Is(d,Ze(h,2)):[]}function die(d,h){return h=typeof h=="function"?h:n,d&&d.length?Is(d,n,h):[]}function y1(d){if(!(d&&d.length))return[];var h=0;return d=ks(d,function(w){if(Cn(w))return h=$n(w.length,h),!0}),Nv(h,function(w){return Qt(d,Dv(w))})}function KA(d,h){if(!(d&&d.length))return[];var w=y1(d);return h==null?w:Qt(w,function(E){return Fr(h,n,E)})}var fie=gt(function(d,h){return Cn(d)?Ku(d,h):[]}),pie=gt(function(d){return t1(ks(d,Cn))}),hie=gt(function(d){var h=go(d);return Cn(h)&&(h=n),t1(ks(d,Cn),Ze(h,2))}),mie=gt(function(d){var h=go(d);return h=typeof h=="function"?h:n,t1(ks(d,Cn),n,h)}),gie=gt(y1);function yie(d,h){return dA(d||[],h||[],qu)}function bie(d,h){return dA(d||[],h||[],Ju)}var vie=gt(function(d){var h=d.length,w=h>1?d[h-1]:n;return w=typeof w=="function"?(d.pop(),w):n,KA(d,w)});function YA(d){var h=W(d);return h.__chain__=!0,h}function xie(d,h){return h(d),d}function fm(d,h){return h(d)}var wie=Fi(function(d){var h=d.length,w=h?d[0]:0,E=this.__wrapped__,$=function(q){return Hv(q,d)};return h>1||this.__actions__.length||!(E instanceof St)||!Ri(w)?this.thru($):(E=E.slice(w,+w+(h?1:0)),E.__actions__.push({func:fm,args:[$],thisArg:n}),new po(E,this.__chain__).thru(function(q){return h&&!q.length&&q.push(n),q}))});function Sie(){return YA(this)}function Cie(){return new po(this.value(),this.__chain__)}function Tie(){this.__values__===n&&(this.__values__=lP(this.value()));var d=this.__index__>=this.__values__.length,h=d?n:this.__values__[this.__index__++];return{done:d,value:h}}function kie(){return this}function Eie(d){for(var h,w=this;w instanceof Xh;){var E=VA(w);E.__index__=0,E.__values__=n,h?$.__wrapped__=E:h=E;var $=E;w=w.__wrapped__}return $.__wrapped__=d,h}function Oie(){var d=this.__wrapped__;if(d instanceof St){var h=d;return this.__actions__.length&&(h=new St(this)),h=h.reverse(),h.__actions__.push({func:fm,args:[g1],thisArg:n}),new po(h,this.__chain__)}return this.thru(g1)}function Mie(){return uA(this.__wrapped__,this.__actions__)}var _ie=om(function(d,h,w){$t.call(d,w)?++d[w]:Li(d,w,1)});function Iie(d,h,w){var E=ut(d)?CD:xre;return w&&mr(d,h,w)&&(h=n),E(d,Ze(h,3))}function Die(d,h){var w=ut(d)?ks:KD;return w(d,Ze(h,3))}var Aie=wA(HA),Pie=wA(WA);function Nie(d,h){return er(pm(d,h),1)}function $ie(d,h){return er(pm(d,h),R)}function Lie(d,h,w){return w=w===n?1:dt(w),er(pm(d,h),w)}function GA(d,h){var w=ut(d)?uo:_s;return w(d,Ze(h,3))}function JA(d,h){var w=ut(d)?tne:qD;return w(d,Ze(h,3))}var Bie=om(function(d,h,w){$t.call(d,w)?d[w].push(h):Li(d,w,[h])});function Fie(d,h,w,E){d=Or(d)?d:Ql(d),w=w&&!E?dt(w):0;var $=d.length;return w<0&&(w=$n($+w,0)),bm(d)?w<=$&&d.indexOf(h,w)>-1:!!$&&Vl(d,h,w)>-1}var Rie=gt(function(d,h,w){var E=-1,$=typeof h=="function",q=Or(d)?ve(d.length):[];return _s(d,function(G){q[++E]=$?Fr(h,G,w):Yu(G,h,w)}),q}),zie=om(function(d,h,w){Li(d,w,h)});function pm(d,h){var w=ut(d)?Qt:QD;return w(d,Ze(h,3))}function Vie(d,h,w,E){return d==null?[]:(ut(h)||(h=h==null?[]:[h]),w=E?n:w,ut(w)||(w=w==null?[]:[w]),rA(d,h,w))}var Hie=om(function(d,h,w){d[w?0:1].push(h)},function(){return[[],[]]});function Wie(d,h,w){var E=ut(d)?_v:OD,$=arguments.length<3;return E(d,Ze(h,4),w,$,_s)}function jie(d,h,w){var E=ut(d)?nne:OD,$=arguments.length<3;return E(d,Ze(h,4),w,$,qD)}function Uie(d,h){var w=ut(d)?ks:KD;return w(d,gm(Ze(h,3)))}function qie(d){var h=ut(d)?HD:Fre;return h(d)}function Kie(d,h,w){(w?mr(d,h,w):h===n)?h=1:h=dt(h);var E=ut(d)?mre:Rre;return E(d,h)}function Yie(d){var h=ut(d)?gre:Vre;return h(d)}function Gie(d){if(d==null)return 0;if(Or(d))return bm(d)?Wl(d):d.length;var h=ar(d);return h==ie||h==Be?d.size:Yv(d).length}function Jie(d,h,w){var E=ut(d)?Iv:Hre;return w&&mr(d,h,w)&&(h=n),E(d,Ze(h,3))}var Xie=gt(function(d,h){if(d==null)return[];var w=h.length;return w>1&&mr(d,h[0],h[1])?h=[]:w>2&&mr(h[0],h[1],h[2])&&(h=[h[0]]),rA(d,er(h,1),[])}),hm=Dne||function(){return Qn.Date.now()};function Zie(d,h){if(typeof h!="function")throw new fo(s);return d=dt(d),function(){if(--d<1)return h.apply(this,arguments)}}function XA(d,h,w){return h=w?n:h,h=d&&h==null?d.length:h,Bi(d,N,n,n,n,n,h)}function ZA(d,h){var w;if(typeof h!="function")throw new fo(s);return d=dt(d),function(){return--d>0&&(w=h.apply(this,arguments)),d<=1&&(h=n),w}}var b1=gt(function(d,h,w){var E=x;if(w.length){var $=Os(w,Xl(b1));E|=O}return Bi(d,E,h,w,$)}),QA=gt(function(d,h,w){var E=x|S;if(w.length){var $=Os(w,Xl(QA));E|=O}return Bi(h,E,d,w,$)});function eP(d,h,w){h=w?n:h;var E=Bi(d,T,n,n,n,n,n,h);return E.placeholder=eP.placeholder,E}function tP(d,h,w){h=w?n:h;var E=Bi(d,C,n,n,n,n,n,h);return E.placeholder=tP.placeholder,E}function nP(d,h,w){var E,$,q,G,Q,de,Te=0,ke=!1,_e=!1,Re=!0;if(typeof d!="function")throw new fo(s);h=yo(h)||0,sn(w)&&(ke=!!w.leading,_e="maxWait"in w,q=_e?$n(yo(w.maxWait)||0,h):q,Re="trailing"in w?!!w.trailing:Re);function Ge(Tn){var Ao=E,Hi=$;return E=$=n,Te=Tn,G=d.apply(Hi,Ao),G}function et(Tn){return Te=Tn,Q=Qu(xt,h),ke?Ge(Tn):G}function ht(Tn){var Ao=Tn-de,Hi=Tn-Te,wP=h-Ao;return _e?sr(wP,q-Hi):wP}function tt(Tn){var Ao=Tn-de,Hi=Tn-Te;return de===n||Ao>=h||Ao<0||_e&&Hi>=q}function xt(){var Tn=hm();if(tt(Tn))return Et(Tn);Q=Qu(xt,ht(Tn))}function Et(Tn){return Q=n,Re&&E?Ge(Tn):(E=$=n,G)}function Hr(){Q!==n&&fA(Q),Te=0,E=de=$=Q=n}function gr(){return Q===n?G:Et(hm())}function Wr(){var Tn=hm(),Ao=tt(Tn);if(E=arguments,$=this,de=Tn,Ao){if(Q===n)return et(de);if(_e)return fA(Q),Q=Qu(xt,h),Ge(de)}return Q===n&&(Q=Qu(xt,h)),G}return Wr.cancel=Hr,Wr.flush=gr,Wr}var Qie=gt(function(d,h){return UD(d,1,h)}),ese=gt(function(d,h,w){return UD(d,yo(h)||0,w)});function tse(d){return Bi(d,V)}function mm(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new fo(s);var w=function(){var E=arguments,$=h?h.apply(this,E):E[0],q=w.cache;if(q.has($))return q.get($);var G=d.apply(this,E);return w.cache=q.set($,G)||q,G};return w.cache=new(mm.Cache||$i),w}mm.Cache=$i;function gm(d){if(typeof d!="function")throw new fo(s);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}function nse(d){return ZA(2,d)}var rse=Wre(function(d,h){h=h.length==1&&ut(h[0])?Qt(h[0],Rr(Ze())):Qt(er(h,1),Rr(Ze()));var w=h.length;return gt(function(E){for(var $=-1,q=sr(E.length,w);++$<q;)E[$]=h[$].call(this,E[$]);return Fr(d,this,E)})}),v1=gt(function(d,h){var w=Os(h,Xl(v1));return Bi(d,O,n,h,w)}),rP=gt(function(d,h){var w=Os(h,Xl(rP));return Bi(d,I,n,h,w)}),ose=Fi(function(d,h){return Bi(d,L,n,n,n,h)});function ise(d,h){if(typeof d!="function")throw new fo(s);return h=h===n?h:dt(h),gt(d,h)}function sse(d,h){if(typeof d!="function")throw new fo(s);return h=h==null?0:$n(dt(h),0),gt(function(w){var E=w[h],$=As(w,0,h);return E&&Es($,E),Fr(d,this,$)})}function ase(d,h,w){var E=!0,$=!0;if(typeof d!="function")throw new fo(s);return sn(w)&&(E="leading"in w?!!w.leading:E,$="trailing"in w?!!w.trailing:$),nP(d,h,{leading:E,maxWait:h,trailing:$})}function lse(d){return XA(d,1)}function cse(d,h){return v1(r1(h),d)}function use(){if(!arguments.length)return[];var d=arguments[0];return ut(d)?d:[d]}function dse(d){return ho(d,b)}function fse(d,h){return h=typeof h=="function"?h:n,ho(d,b,h)}function pse(d){return ho(d,p|b)}function hse(d,h){return h=typeof h=="function"?h:n,ho(d,p|b,h)}function mse(d,h){return h==null||jD(d,h,jn(h))}function Do(d,h){return d===h||d!==d&&h!==h}var gse=lm(Uv),yse=lm(function(d,h){return d>=h}),$a=JD((function(){return arguments})())?JD:function(d){return yn(d)&&$t.call(d,"callee")&&!LD.call(d,"callee")},ut=ve.isArray,bse=yD?Rr(yD):Ere;function Or(d){return d!=null&&ym(d.length)&&!zi(d)}function Cn(d){return yn(d)&&Or(d)}function vse(d){return d===!0||d===!1||yn(d)&&hr(d)==ne}var Ps=Pne||I1,xse=bD?Rr(bD):Ore;function wse(d){return yn(d)&&d.nodeType===1&&!ed(d)}function Sse(d){if(d==null)return!0;if(Or(d)&&(ut(d)||typeof d=="string"||typeof d.splice=="function"||Ps(d)||Zl(d)||$a(d)))return!d.length;var h=ar(d);if(h==ie||h==Be)return!d.size;if(Zu(d))return!Yv(d).length;for(var w in d)if($t.call(d,w))return!1;return!0}function Cse(d,h){return Gu(d,h)}function Tse(d,h,w){w=typeof w=="function"?w:n;var E=w?w(d,h):n;return E===n?Gu(d,h,n,w):!!E}function x1(d){if(!yn(d))return!1;var h=hr(d);return h==ye||h==le||typeof d.message=="string"&&typeof d.name=="string"&&!ed(d)}function kse(d){return typeof d=="number"&&FD(d)}function zi(d){if(!sn(d))return!1;var h=hr(d);return h==X||h==ee||h==ce||h==Ie}function oP(d){return typeof d=="number"&&d==dt(d)}function ym(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=j}function sn(d){var h=typeof d;return d!=null&&(h=="object"||h=="function")}function yn(d){return d!=null&&typeof d=="object"}var iP=vD?Rr(vD):_re;function Ese(d,h){return d===h||Kv(d,h,u1(h))}function Ose(d,h,w){return w=typeof w=="function"?w:n,Kv(d,h,u1(h),w)}function Mse(d){return sP(d)&&d!=+d}function _se(d){if(foe(d))throw new lt(i);return XD(d)}function Ise(d){return d===null}function Dse(d){return d==null}function sP(d){return typeof d=="number"||yn(d)&&hr(d)==we}function ed(d){if(!yn(d)||hr(d)!=Pe)return!1;var h=jh(d);if(h===null)return!0;var w=$t.call(h,"constructor")&&h.constructor;return typeof w=="function"&&w instanceof w&&zh.call(w)==One}var w1=xD?Rr(xD):Ire;function Ase(d){return oP(d)&&d>=-j&&d<=j}var aP=wD?Rr(wD):Dre;function bm(d){return typeof d=="string"||!ut(d)&&yn(d)&&hr(d)==De}function Vr(d){return typeof d=="symbol"||yn(d)&&hr(d)==yt}var Zl=SD?Rr(SD):Are;function Pse(d){return d===n}function Nse(d){return yn(d)&&ar(d)==wn}function $se(d){return yn(d)&&hr(d)==Pn}var Lse=lm(Gv),Bse=lm(function(d,h){return d<=h});function lP(d){if(!d)return[];if(Or(d))return bm(d)?_o(d):Er(d);if(Vu&&d[Vu])return mne(d[Vu]());var h=ar(d),w=h==ie?Lv:h==Be?Bh:Ql;return w(d)}function Vi(d){if(!d)return d===0?d:0;if(d=yo(d),d===R||d===-R){var h=d<0?-1:1;return h*K}return d===d?d:0}function dt(d){var h=Vi(d),w=h%1;return h===h?w?h-w:h:0}function cP(d){return d?Da(dt(d),0,Y):0}function yo(d){if(typeof d=="number")return d;if(Vr(d))return U;if(sn(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=sn(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=MD(d);var w=bte.test(d);return w||xte.test(d)?Zte(d.slice(2),w?2:8):yte.test(d)?U:+d}function uP(d){return oi(d,Mr(d))}function Fse(d){return d?Da(dt(d),-j,j):d===0?d:0}function Nt(d){return d==null?"":zr(d)}var Rse=Gl(function(d,h){if(Zu(h)||Or(h)){oi(h,jn(h),d);return}for(var w in h)$t.call(h,w)&&qu(d,w,h[w])}),dP=Gl(function(d,h){oi(h,Mr(h),d)}),vm=Gl(function(d,h,w,E){oi(h,Mr(h),d,E)}),zse=Gl(function(d,h,w,E){oi(h,jn(h),d,E)}),Vse=Fi(Hv);function Hse(d,h){var w=Yl(d);return h==null?w:WD(w,h)}var Wse=gt(function(d,h){d=Vt(d);var w=-1,E=h.length,$=E>2?h[2]:n;for($&&mr(h[0],h[1],$)&&(E=1);++w<E;)for(var q=h[w],G=Mr(q),Q=-1,de=G.length;++Q<de;){var Te=G[Q],ke=d[Te];(ke===n||Do(ke,Ul[Te])&&!$t.call(d,Te))&&(d[Te]=q[Te])}return d}),jse=gt(function(d){return d.push(n,MA),Fr(fP,n,d)});function Use(d,h){return TD(d,Ze(h,3),ri)}function qse(d,h){return TD(d,Ze(h,3),jv)}function Kse(d,h){return d==null?d:Wv(d,Ze(h,3),Mr)}function Yse(d,h){return d==null?d:YD(d,Ze(h,3),Mr)}function Gse(d,h){return d&&ri(d,Ze(h,3))}function Jse(d,h){return d&&jv(d,Ze(h,3))}function Xse(d){return d==null?[]:em(d,jn(d))}function Zse(d){return d==null?[]:em(d,Mr(d))}function S1(d,h,w){var E=d==null?n:Aa(d,h);return E===n?w:E}function Qse(d,h){return d!=null&&DA(d,h,Sre)}function C1(d,h){return d!=null&&DA(d,h,Cre)}var eae=CA(function(d,h,w){h!=null&&typeof h.toString!="function"&&(h=Vh.call(h)),d[h]=w},k1(_r)),tae=CA(function(d,h,w){h!=null&&typeof h.toString!="function"&&(h=Vh.call(h)),$t.call(d,h)?d[h].push(w):d[h]=[w]},Ze),nae=gt(Yu);function jn(d){return Or(d)?VD(d):Yv(d)}function Mr(d){return Or(d)?VD(d,!0):Pre(d)}function rae(d,h){var w={};return h=Ze(h,3),ri(d,function(E,$,q){Li(w,h(E,$,q),E)}),w}function oae(d,h){var w={};return h=Ze(h,3),ri(d,function(E,$,q){Li(w,$,h(E,$,q))}),w}var iae=Gl(function(d,h,w){tm(d,h,w)}),fP=Gl(function(d,h,w,E){tm(d,h,w,E)}),sae=Fi(function(d,h){var w={};if(d==null)return w;var E=!1;h=Qt(h,function(q){return q=Ds(q,d),E||(E=q.length>1),q}),oi(d,l1(d),w),E&&(w=ho(w,p|m|b,eoe));for(var $=h.length;$--;)e1(w,h[$]);return w});function aae(d,h){return pP(d,gm(Ze(h)))}var lae=Fi(function(d,h){return d==null?{}:$re(d,h)});function pP(d,h){if(d==null)return{};var w=Qt(l1(d),function(E){return[E]});return h=Ze(h),oA(d,w,function(E,$){return h(E,$[0])})}function cae(d,h,w){h=Ds(h,d);var E=-1,$=h.length;for($||($=1,d=n);++E<$;){var q=d==null?n:d[ii(h[E])];q===n&&(E=$,q=w),d=zi(q)?q.call(d):q}return d}function uae(d,h,w){return d==null?d:Ju(d,h,w)}function dae(d,h,w,E){return E=typeof E=="function"?E:n,d==null?d:Ju(d,h,w,E)}var hP=EA(jn),mP=EA(Mr);function fae(d,h,w){var E=ut(d),$=E||Ps(d)||Zl(d);if(h=Ze(h,4),w==null){var q=d&&d.constructor;$?w=E?new q:[]:sn(d)?w=zi(q)?Yl(jh(d)):{}:w={}}return($?uo:ri)(d,function(G,Q,de){return h(w,G,Q,de)}),w}function pae(d,h){return d==null?!0:e1(d,h)}function hae(d,h,w){return d==null?d:cA(d,h,r1(w))}function mae(d,h,w,E){return E=typeof E=="function"?E:n,d==null?d:cA(d,h,r1(w),E)}function Ql(d){return d==null?[]:$v(d,jn(d))}function gae(d){return d==null?[]:$v(d,Mr(d))}function yae(d,h,w){return w===n&&(w=h,h=n),w!==n&&(w=yo(w),w=w===w?w:0),h!==n&&(h=yo(h),h=h===h?h:0),Da(yo(d),h,w)}function bae(d,h,w){return h=Vi(h),w===n?(w=h,h=0):w=Vi(w),d=yo(d),Tre(d,h,w)}function vae(d,h,w){if(w&&typeof w!="boolean"&&mr(d,h,w)&&(h=w=n),w===n&&(typeof h=="boolean"?(w=h,h=n):typeof d=="boolean"&&(w=d,d=n)),d===n&&h===n?(d=0,h=1):(d=Vi(d),h===n?(h=d,d=0):h=Vi(h)),d>h){var E=d;d=h,h=E}if(w||d%1||h%1){var $=RD();return sr(d+$*(h-d+Xte("1e-"+(($+"").length-1))),h)}return Xv(d,h)}var xae=Jl(function(d,h,w){return h=h.toLowerCase(),d+(w?gP(h):h)});function gP(d){return T1(Nt(d).toLowerCase())}function yP(d){return d=Nt(d),d&&d.replace(Ste,une).replace(Vte,"")}function wae(d,h,w){d=Nt(d),h=zr(h);var E=d.length;w=w===n?E:Da(dt(w),0,E);var $=w;return w-=h.length,w>=0&&d.slice(w,$)==h}function Sae(d){return d=Nt(d),d&&Ea.test(d)?d.replace(ir,dne):d}function Cae(d){return d=Nt(d),d&&lte.test(d)?d.replace(vv,"\\$&"):d}var Tae=Jl(function(d,h,w){return d+(w?"-":"")+h.toLowerCase()}),kae=Jl(function(d,h,w){return d+(w?" ":"")+h.toLowerCase()}),Eae=xA("toLowerCase");function Oae(d,h,w){d=Nt(d),h=dt(h);var E=h?Wl(d):0;if(!h||E>=h)return d;var $=(h-E)/2;return am(Yh($),w)+d+am(Kh($),w)}function Mae(d,h,w){d=Nt(d),h=dt(h);var E=h?Wl(d):0;return h&&E<h?d+am(h-E,w):d}function _ae(d,h,w){d=Nt(d),h=dt(h);var E=h?Wl(d):0;return h&&E<h?am(h-E,w)+d:d}function Iae(d,h,w){return w||h==null?h=0:h&&(h=+h),Bne(Nt(d).replace(xv,""),h||0)}function Dae(d,h,w){return(w?mr(d,h,w):h===n)?h=1:h=dt(h),Zv(Nt(d),h)}function Aae(){var d=arguments,h=Nt(d[0]);return d.length<3?h:h.replace(d[1],d[2])}var Pae=Jl(function(d,h,w){return d+(w?"_":"")+h.toLowerCase()});function Nae(d,h,w){return w&&typeof w!="number"&&mr(d,h,w)&&(h=w=n),w=w===n?Y:w>>>0,w?(d=Nt(d),d&&(typeof h=="string"||h!=null&&!w1(h))&&(h=zr(h),!h&&Hl(d))?As(_o(d),0,w):d.split(h,w)):[]}var $ae=Jl(function(d,h,w){return d+(w?" ":"")+T1(h)});function Lae(d,h,w){return d=Nt(d),w=w==null?0:Da(dt(w),0,d.length),h=zr(h),d.slice(w,w+h.length)==h}function Bae(d,h,w){var E=W.templateSettings;w&&mr(d,h,w)&&(h=n),d=Nt(d),h=vm({},h,E,OA);var $=vm({},h.imports,E.imports,OA),q=jn($),G=$v($,q),Q,de,Te=0,ke=h.interpolate||Ah,_e="__p += '",Re=Bv((h.escape||Ah).source+"|"+ke.source+"|"+(ke===st?gte:Ah).source+"|"+(h.evaluate||Ah).source+"|$","g"),Ge="//# sourceURL="+($t.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++qte+"]")+`
366
+ `;d.replace(Re,function(tt,xt,Et,Hr,gr,Wr){return Et||(Et=Hr),_e+=d.slice(Te,Wr).replace(Cte,fne),xt&&(Q=!0,_e+=`' +
367
367
  __e(`+xt+`) +
368
368
  '`),gr&&(de=!0,_e+=`';
369
369
  `+gr+`;
@@ -373,14 +373,14 @@ __p += '`),Et&&(_e+=`' +
373
373
  `;var et=$t.call(h,"variable")&&h.variable;if(!et)_e=`with (obj) {
374
374
  `+_e+`
375
375
  }
376
- `;else if(pte.test(et))throw new lt(a);_e=(de?_e.replace(Ye,""):_e).replace(Qe,"$1").replace(Pt,"$1;"),_e="function("+(et||"obj")+`) {
376
+ `;else if(hte.test(et))throw new lt(a);_e=(de?_e.replace(Ye,""):_e).replace(Qe,"$1").replace(Pt,"$1;"),_e="function("+(et||"obj")+`) {
377
377
  `+(et?"":`obj || (obj = {});
378
378
  `)+"var __t, __p = ''"+(Q?", __e = _.escape":"")+(de?`, __j = Array.prototype.join;
379
379
  function print() { __p += __j.call(arguments, '') }
380
380
  `:`;
381
381
  `)+_e+`return __p
382
- }`;var ht=vP(function(){return It(q,Ge+"return "+_e).apply(n,G)});if(ht.source=_e,x1(ht))throw ht;return ht}function Bae(d){return Nt(d).toLowerCase()}function Fae(d){return Nt(d).toUpperCase()}function Rae(d,h,w){if(d=Nt(d),d&&(w||h===n))return MD(d);if(!d||!(h=zr(h)))return d;var E=_o(d),$=_o(h),q=_D(E,$),G=ID(E,$)+1;return As(E,q,G).join("")}function zae(d,h,w){if(d=Nt(d),d&&(w||h===n))return d.slice(0,AD(d)+1);if(!d||!(h=zr(h)))return d;var E=_o(d),$=ID(E,_o(h))+1;return As(E,0,$).join("")}function Vae(d,h,w){if(d=Nt(d),d&&(w||h===n))return d.replace(xv,"");if(!d||!(h=zr(h)))return d;var E=_o(d),$=_D(E,_o(h));return As(E,$).join("")}function Hae(d,h){var w=M,E=B;if(sn(h)){var $="separator"in h?h.separator:$;w="length"in h?dt(h.length):w,E="omission"in h?zr(h.omission):E}d=Nt(d);var q=d.length;if(Hl(d)){var G=_o(d);q=G.length}if(w>=q)return d;var Q=w-Wl(E);if(Q<1)return E;var de=G?As(G,0,Q).join(""):d.slice(0,Q);if($===n)return de+E;if(G&&(Q+=de.length-Q),w1($)){if(d.slice(Q).search($)){var Te,ke=de;for($.global||($=Bv($.source,Nt(JI.exec($))+"g")),$.lastIndex=0;Te=$.exec(ke);)var _e=Te.index;de=de.slice(0,_e===n?Q:_e)}}else if(d.indexOf(zr($),Q)!=Q){var Re=de.lastIndexOf($);Re>-1&&(de=de.slice(0,Re))}return de+E}function Wae(d){return d=Nt(d),d&&Mo.test(d)?d.replace(Xn,bne):d}var jae=Jl(function(d,h,w){return d+(w?" ":"")+h.toUpperCase()}),T1=xA("toUpperCase");function bP(d,h,w){return d=Nt(d),h=w?n:h,h===n?pne(d)?wne(d):one(d):d.match(h)||[]}var vP=gt(function(d,h){try{return Fr(d,n,h)}catch(w){return x1(w)?w:new lt(w)}}),Uae=Fi(function(d,h){return uo(h,function(w){w=ii(w),Li(d,w,b1(d[w],d))}),d});function qae(d){var h=d==null?0:d.length,w=Ze();return d=h?Qt(d,function(E){if(typeof E[1]!="function")throw new fo(s);return[w(E[0]),E[1]]}):[],gt(function(E){for(var $=-1;++$<h;){var q=d[$];if(Fr(q[0],this,E))return Fr(q[1],this,E)}})}function Kae(d){return bre(ho(d,p))}function k1(d){return function(){return d}}function Yae(d,h){return d==null||d!==d?h:d}var Gae=SA(),Jae=SA(!0);function _r(d){return d}function E1(d){return ZD(typeof d=="function"?d:ho(d,p))}function Xae(d){return eA(ho(d,p))}function Zae(d,h){return tA(d,ho(h,p))}var Qae=gt(function(d,h){return function(w){return Yu(w,d,h)}}),ele=gt(function(d,h){return function(w){return Yu(d,w,h)}});function O1(d,h,w){var E=jn(h),$=em(h,E);w==null&&!(sn(h)&&($.length||!E.length))&&(w=h,h=d,d=this,$=em(h,jn(h)));var q=!(sn(w)&&"chain"in w)||!!w.chain,G=zi(d);return uo($,function(Q){var de=h[Q];d[Q]=de,G&&(d.prototype[Q]=function(){var Te=this.__chain__;if(q||Te){var ke=d(this.__wrapped__),_e=ke.__actions__=Er(this.__actions__);return _e.push({func:de,args:arguments,thisArg:d}),ke.__chain__=Te,ke}return de.apply(d,Es([this.value()],arguments))})}),d}function tle(){return Qn._===this&&(Qn._=One),this}function M1(){}function nle(d){return d=dt(d),gt(function(h){return nA(h,d)})}var rle=i1(Qt),ole=i1(CD),ile=i1(Iv);function xP(d){return f1(d)?Dv(ii(d)):$re(d)}function sle(d){return function(h){return d==null?n:Aa(d,h)}}var ale=TA(),lle=TA(!0);function _1(){return[]}function I1(){return!1}function cle(){return{}}function ule(){return""}function dle(){return!0}function fle(d,h){if(d=dt(d),d<1||d>j)return[];var w=Y,E=sr(d,Y);h=Ze(h),d-=Y;for(var $=Nv(E,h);++w<d;)h(w);return $}function ple(d){return ut(d)?Qt(d,ii):Vr(d)?[d]:Er(zA(Nt(d)))}function hle(d){var h=++kne;return Nt(d)+h}var mle=sm(function(d,h){return d+h},0),gle=s1("ceil"),yle=sm(function(d,h){return d/h},1),ble=s1("floor");function vle(d){return d&&d.length?Qh(d,_r,Uv):n}function xle(d,h){return d&&d.length?Qh(d,Ze(h,2),Uv):n}function wle(d){return ED(d,_r)}function Sle(d,h){return ED(d,Ze(h,2))}function Cle(d){return d&&d.length?Qh(d,_r,Gv):n}function Tle(d,h){return d&&d.length?Qh(d,Ze(h,2),Gv):n}var kle=sm(function(d,h){return d*h},1),Ele=s1("round"),Ole=sm(function(d,h){return d-h},0);function Mle(d){return d&&d.length?Pv(d,_r):0}function _le(d,h){return d&&d.length?Pv(d,Ze(h,2)):0}return W.after=Xie,W.ary=XA,W.assign=Fse,W.assignIn=dP,W.assignInWith=vm,W.assignWith=Rse,W.at=zse,W.before=ZA,W.bind=b1,W.bindAll=Uae,W.bindKey=QA,W.castArray=cse,W.chain=YA,W.chunk=boe,W.compact=voe,W.concat=xoe,W.cond=qae,W.conforms=Kae,W.constant=k1,W.countBy=Mie,W.create=Vse,W.curry=eP,W.curryRight=tP,W.debounce=nP,W.defaults=Hse,W.defaultsDeep=Wse,W.defer=Zie,W.delay=Qie,W.difference=woe,W.differenceBy=Soe,W.differenceWith=Coe,W.drop=Toe,W.dropRight=koe,W.dropRightWhile=Eoe,W.dropWhile=Ooe,W.fill=Moe,W.filter=Iie,W.flatMap=Pie,W.flatMapDeep=Nie,W.flatMapDepth=$ie,W.flatten=jA,W.flattenDeep=_oe,W.flattenDepth=Ioe,W.flip=ese,W.flow=Gae,W.flowRight=Jae,W.fromPairs=Doe,W.functions=Jse,W.functionsIn=Xse,W.groupBy=Lie,W.initial=Poe,W.intersection=Noe,W.intersectionBy=$oe,W.intersectionWith=Loe,W.invert=Qse,W.invertBy=eae,W.invokeMap=Fie,W.iteratee=E1,W.keyBy=Rie,W.keys=jn,W.keysIn=Mr,W.map=pm,W.mapKeys=nae,W.mapValues=rae,W.matches=Xae,W.matchesProperty=Zae,W.memoize=mm,W.merge=oae,W.mergeWith=fP,W.method=Qae,W.methodOf=ele,W.mixin=O1,W.negate=gm,W.nthArg=nle,W.omit=iae,W.omitBy=sae,W.once=tse,W.orderBy=zie,W.over=rle,W.overArgs=nse,W.overEvery=ole,W.overSome=ile,W.partial=v1,W.partialRight=rP,W.partition=Vie,W.pick=aae,W.pickBy=pP,W.property=xP,W.propertyOf=sle,W.pull=zoe,W.pullAll=qA,W.pullAllBy=Voe,W.pullAllWith=Hoe,W.pullAt=Woe,W.range=ale,W.rangeRight=lle,W.rearg=rse,W.reject=jie,W.remove=joe,W.rest=ose,W.reverse=g1,W.sampleSize=qie,W.set=cae,W.setWith=uae,W.shuffle=Kie,W.slice=Uoe,W.sortBy=Jie,W.sortedUniq=Zoe,W.sortedUniqBy=Qoe,W.split=Pae,W.spread=ise,W.tail=eie,W.take=tie,W.takeRight=nie,W.takeRightWhile=rie,W.takeWhile=oie,W.tap=vie,W.throttle=sse,W.thru=fm,W.toArray=lP,W.toPairs=hP,W.toPairsIn=mP,W.toPath=ple,W.toPlainObject=uP,W.transform=dae,W.unary=ase,W.union=iie,W.unionBy=sie,W.unionWith=aie,W.uniq=lie,W.uniqBy=cie,W.uniqWith=uie,W.unset=fae,W.unzip=y1,W.unzipWith=KA,W.update=pae,W.updateWith=hae,W.values=Ql,W.valuesIn=mae,W.without=die,W.words=bP,W.wrap=lse,W.xor=fie,W.xorBy=pie,W.xorWith=hie,W.zip=mie,W.zipObject=gie,W.zipObjectDeep=yie,W.zipWith=bie,W.entries=hP,W.entriesIn=mP,W.extend=dP,W.extendWith=vm,O1(W,W),W.add=mle,W.attempt=vP,W.camelCase=vae,W.capitalize=gP,W.ceil=gle,W.clamp=gae,W.clone=use,W.cloneDeep=fse,W.cloneDeepWith=pse,W.cloneWith=dse,W.conformsTo=hse,W.deburr=yP,W.defaultTo=Yae,W.divide=yle,W.endsWith=xae,W.eq=Do,W.escape=wae,W.escapeRegExp=Sae,W.every=_ie,W.find=Die,W.findIndex=HA,W.findKey=jse,W.findLast=Aie,W.findLastIndex=WA,W.findLastKey=Use,W.floor=ble,W.forEach=GA,W.forEachRight=JA,W.forIn=qse,W.forInRight=Kse,W.forOwn=Yse,W.forOwnRight=Gse,W.get=S1,W.gt=mse,W.gte=gse,W.has=Zse,W.hasIn=C1,W.head=UA,W.identity=_r,W.includes=Bie,W.indexOf=Aoe,W.inRange=yae,W.invoke=tae,W.isArguments=$a,W.isArray=ut,W.isArrayBuffer=yse,W.isArrayLike=Or,W.isArrayLikeObject=Cn,W.isBoolean=bse,W.isBuffer=Ps,W.isDate=vse,W.isElement=xse,W.isEmpty=wse,W.isEqual=Sse,W.isEqualWith=Cse,W.isError=x1,W.isFinite=Tse,W.isFunction=zi,W.isInteger=oP,W.isLength=ym,W.isMap=iP,W.isMatch=kse,W.isMatchWith=Ese,W.isNaN=Ose,W.isNative=Mse,W.isNil=Ise,W.isNull=_se,W.isNumber=sP,W.isObject=sn,W.isObjectLike=yn,W.isPlainObject=ed,W.isRegExp=w1,W.isSafeInteger=Dse,W.isSet=aP,W.isString=bm,W.isSymbol=Vr,W.isTypedArray=Zl,W.isUndefined=Ase,W.isWeakMap=Pse,W.isWeakSet=Nse,W.join=Boe,W.kebabCase=Cae,W.last=go,W.lastIndexOf=Foe,W.lowerCase=Tae,W.lowerFirst=kae,W.lt=$se,W.lte=Lse,W.max=vle,W.maxBy=xle,W.mean=wle,W.meanBy=Sle,W.min=Cle,W.minBy=Tle,W.stubArray=_1,W.stubFalse=I1,W.stubObject=cle,W.stubString=ule,W.stubTrue=dle,W.multiply=kle,W.nth=Roe,W.noConflict=tle,W.noop=M1,W.now=hm,W.pad=Eae,W.padEnd=Oae,W.padStart=Mae,W.parseInt=_ae,W.random=bae,W.reduce=Hie,W.reduceRight=Wie,W.repeat=Iae,W.replace=Dae,W.result=lae,W.round=Ele,W.runInContext=ae,W.sample=Uie,W.size=Yie,W.snakeCase=Aae,W.some=Gie,W.sortedIndex=qoe,W.sortedIndexBy=Koe,W.sortedIndexOf=Yoe,W.sortedLastIndex=Goe,W.sortedLastIndexBy=Joe,W.sortedLastIndexOf=Xoe,W.startCase=Nae,W.startsWith=$ae,W.subtract=Ole,W.sum=Mle,W.sumBy=_le,W.template=Lae,W.times=fle,W.toFinite=Vi,W.toInteger=dt,W.toLength=cP,W.toLower=Bae,W.toNumber=yo,W.toSafeInteger=Bse,W.toString=Nt,W.toUpper=Fae,W.trim=Rae,W.trimEnd=zae,W.trimStart=Vae,W.truncate=Hae,W.unescape=Wae,W.uniqueId=hle,W.upperCase=jae,W.upperFirst=T1,W.each=GA,W.eachRight=JA,W.first=UA,O1(W,(function(){var d={};return ri(W,function(h,w){$t.call(W.prototype,w)||(d[w]=h)}),d})(),{chain:!1}),W.VERSION=r,uo(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){W[d].placeholder=W}),uo(["drop","take"],function(d,h){St.prototype[d]=function(w){w=w===n?1:$n(dt(w),0);var E=this.__filtered__&&!h?new St(this):this.clone();return E.__filtered__?E.__takeCount__=sr(w,E.__takeCount__):E.__views__.push({size:sr(w,Y),type:d+(E.__dir__<0?"Right":"")}),E},St.prototype[d+"Right"]=function(w){return this.reverse()[d](w).reverse()}}),uo(["filter","map","takeWhile"],function(d,h){var w=h+1,E=w==P||w==D;St.prototype[d]=function($){var q=this.clone();return q.__iteratees__.push({iteratee:Ze($,3),type:w}),q.__filtered__=q.__filtered__||E,q}}),uo(["head","last"],function(d,h){var w="take"+(h?"Right":"");St.prototype[d]=function(){return this[w](1).value()[0]}}),uo(["initial","tail"],function(d,h){var w="drop"+(h?"":"Right");St.prototype[d]=function(){return this.__filtered__?new St(this):this[w](1)}}),St.prototype.compact=function(){return this.filter(_r)},St.prototype.find=function(d){return this.filter(d).head()},St.prototype.findLast=function(d){return this.reverse().find(d)},St.prototype.invokeMap=gt(function(d,h){return typeof d=="function"?new St(this):this.map(function(w){return Yu(w,d,h)})}),St.prototype.reject=function(d){return this.filter(gm(Ze(d)))},St.prototype.slice=function(d,h){d=dt(d);var w=this;return w.__filtered__&&(d>0||h<0)?new St(w):(d<0?w=w.takeRight(-d):d&&(w=w.drop(d)),h!==n&&(h=dt(h),w=h<0?w.dropRight(-h):w.take(h-d)),w)},St.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},St.prototype.toArray=function(){return this.take(Y)},ri(St.prototype,function(d,h){var w=/^(?:filter|find|map|reject)|While$/.test(h),E=/^(?:head|last)$/.test(h),$=W[E?"take"+(h=="last"?"Right":""):h],q=E||/^find/.test(h);$&&(W.prototype[h]=function(){var G=this.__wrapped__,Q=E?[1]:arguments,de=G instanceof St,Te=Q[0],ke=de||ut(G),_e=function(xt){var Et=$.apply(W,Es([xt],Q));return E&&Re?Et[0]:Et};ke&&w&&typeof Te=="function"&&Te.length!=1&&(de=ke=!1);var Re=this.__chain__,Ge=!!this.__actions__.length,et=q&&!Re,ht=de&&!Ge;if(!q&&ke){G=ht?G:new St(this);var tt=d.apply(G,Q);return tt.__actions__.push({func:fm,args:[_e],thisArg:n}),new po(tt,Re)}return et&&ht?d.apply(this,Q):(tt=this.thru(_e),et?E?tt.value()[0]:tt.value():tt)})}),uo(["pop","push","shift","sort","splice","unshift"],function(d){var h=Fh[d],w=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",E=/^(?:pop|shift)$/.test(d);W.prototype[d]=function(){var $=arguments;if(E&&!this.__chain__){var q=this.value();return h.apply(ut(q)?q:[],$)}return this[w](function(G){return h.apply(ut(G)?G:[],$)})}}),ri(St.prototype,function(d,h){var w=W[h];if(w){var E=w.name+"";$t.call(Kl,E)||(Kl[E]=[]),Kl[E].push({name:h,func:w})}}),Kl[im(n,S).name]=[{name:"wrapper",func:n}],St.prototype.clone=Wne,St.prototype.reverse=jne,St.prototype.value=Une,W.prototype.at=xie,W.prototype.chain=wie,W.prototype.commit=Sie,W.prototype.next=Cie,W.prototype.plant=kie,W.prototype.reverse=Eie,W.prototype.toJSON=W.prototype.valueOf=W.prototype.value=Oie,W.prototype.first=W.prototype.head,Vu&&(W.prototype[Vu]=Tie),W}),jl=Sne();Oa?((Oa.exports=jl)._=jl,Ev._=jl):Qn._=jl}).call(K7)})(du,du.exports)),du.exports}var bs=Y7();const SM=Un(bs),G7=t=>{const{name:e,onInputChange:n,onChange:r,onFilter:o,onFilterError:i,fetchOnCount:s=1,preFilterMessage:a=s?"Start typing to see options...":t.noOptionsText,noOptionsText:l,filterOptions:u=L=>L,includeInputInList:f=!0,autoComplete:p=!0,...m}=t,[b,v,y]=Ht.useField(e),{setValue:x}=y,[S,k]=J.useState(""),[T,C]=J.useState([]),[O,I]=J.useState(!1),N=bs.debounce(async(L,V)=>{try{I(!0);const M=await o(L.input);V(M)}catch(M){throw M}finally{I(!1)}},400);return J.useEffect(()=>{if(S===""){C(b.value?[b.value]:[]);return}S.length>=s&&N({input:S},L=>{let V=[];L?(V=L,b.value&&(V=[b.value,...L.filter(M=>JSON.stringify(M)!==JSON.stringify(b.value))])):b.value&&(V=[b.value]),C(V)})},[b.value,S]),g.jsx(xM,{name:e,loading:O,filterOptions:u,noOptionsText:S.length<s?a:l,options:T,autoComplete:p,includeInputInList:f,onChange:(L,V,M,B)=>{C(V?[V,...T]:T),x(V),r&&r(L,V,M,B)},onInputChange:(L,V,M)=>{k(V),n&&n(L,V,M)},...m})},J7=t=>{const{name:e,label:n=Ln(e),options:r=[],filterSelectedOptions:o=!0,variant:i="outlined",staticLabel:s=!1,staticLabelProps:a={fontSize:".9em",color:"#808080"},readOnly:l,margin:u="dense",fullWidth:f=!0,required:p,onChange:m,getOptionLabel:b=P=>typeof P=="string"?P:String(P),isOptionEqualToValue:v=(P,_)=>JSON.stringify(P)===JSON.stringify(_),useFieldAsValue:y,errorMode:x="normal",disableClearable:S=!0,...k}=t,[T,C,O]=Ht.useField(e),{setValue:I}=O,{error:N}=C;y&&t.freeSolo&&console.error("MultiAutocomplete: `freeSolo` with `useFieldAsValue` not currently supported");const L={...lr(k,["useFieldAsValue","errorMode"]),disableClearable:S,getOptionLabel:b,options:r,filterSelectedOptions:o,isOptionEqualToValue:v,renderInput:P=>g.jsx(z.TextField,{...P,variant:i,label:s?void 0:n,error:!!N,required:p}),onChange:(P,_,D,R)=>{I(y?_.map(j=>j[y]):_),m&&m(P,_,D,R)},fullWidth:!0,value:y?r.filter(P=>T.value.includes(P[y]))||[]:T.value,slotProps:{paper:{elevation:8,sx:{borderRadius:2}}}},V=P=>(P??[]).length===0?"":(y?r.filter(D=>P.includes(D[y]))||[]:P).map(D=>b(D)).join(", "),M=Hs(),B=l??M,{showDiff:H,getPreviousValue:F}=Ws();return B||H?g.jsx(Ti,{label:n,value:V(T.value),staticLabel:s,staticLabelProps:a,showDiff:H,diffSnapshot:V(F(e)),diffMode:"comma"}):g.jsxs(z.FormControl,{margin:u,fullWidth:f,required:p,children:[s&&g.jsx(z.Typography,{...a,children:n}),g.jsxs(z.Box,{children:[g.jsx(z.Autocomplete,{...L,multiple:!0}),g.jsx(yr,{name:e,id:`${e}-err`,errorMode:x})]})]})},CM=t=>{const{name:e,label:n=Ln(e),helperText:r,required:o=!1,labelPlacement:i="end",labelAlignment:s=i==="end"||i==="start"?"top":"center",readOnly:a=!1,staticLabelProps:l={fontSize:".9em",color:"#808080"},onChange:u,errorMode:f="normal",...p}=t;s==="top"&&(i==="bottom"||i==="top")&&console.error(`Checkbox: Ignoring labelAlignment='top'. labelAlignment cannot be 'top' when labelPlacement=${i}`);const m=Ht.useField({name:e}),b=m[0],v=m[2],y=r?g.jsxs("div",{children:[g.jsx("p",{style:{margin:0},children:n}),g.jsx(z.Typography,{variant:"caption",style:{fontSize:"0.85rem"},children:r})]}):n,x=s==="top"&&(i==="start"||i==="end");if(a)return b.value&&g.jsx(z.Typography,{...l,children:y});const S=g.jsx(z.FormControlLabel,{sx:{alignItems:x?"flex-start":"center"},label:g.jsx("span",{"data-testid":n,style:{display:"inline-block",marginTop:x?"10px":0},children:y}),required:o,labelPlacement:i,control:g.jsx(z.Checkbox,{"data-testid":"checkbox",...p,...b,onChange:(k,T)=>{v.setValue(k.target.checked),u&&u(k,T)},checked:b.value})});return g.jsxs(z.Box,{children:[S,g.jsx(yr,{name:e,id:`${e}-err`,errorMode:f})]})},ki=t=>{var H;const{name:e,label:n=Ln(e),format:r="",autoFormat:o=r,placeholder:i=n,staticLabel:s=!1,staticLabelProps:a={fontSize:".9em",color:"#808080"},readOnly:l,startIcon:u,endIcon:f,margin:p="dense",noTrimOnBlur:m=!1,errorMode:b="normal",diffMode:v="sentence"}=t,[y,x,S]=Ht.useField({name:e}),{setValue:k}=S,{value:T}=y,{error:C}=x;T===void 0&&console.error(`Please set an initial value for ${e}`),!r&&o&&console.error("Can't auto format when there is no format");const O=F=>{y.onChange(F),t.onChange&&t.onChange(F)},I=F=>{y.onBlur(F),t.onBlur&&t.onBlur(F)},N=["autoFormat","format","staticLabel","staticLabelProps","endIcon","startIcon","errorMode","diffMode"],L=Hs(),V=l??L,{showDiff:M,getPreviousValue:B}=Ws();return V||M?g.jsx(Ti,{label:n,value:T,staticLabel:s,staticLabelProps:a,showDiff:M,diffSnapshot:B(e),diffMode:v}):g.jsxs(z.FormControl,{margin:p,fullWidth:!0,children:[s&&g.jsx(z.Typography,{...a,children:n}),g.jsxs(z.Box,{children:[g.jsx(z.TextField,{variant:"outlined",fullWidth:!0,...y,id:`${e}-tf`,error:!!C,placeholder:i,...lr({...t},N),onChange:O,label:s?void 0:n,slotProps:{...t.slotProps,input:{endAdornment:f,startAdornment:u,...(H=t.slotProps)==null?void 0:H.input}},onBlur:F=>{let P=m?F.target.value:F.target.value.trim();o&&(P=IP(P,r,T,F.target)),T!==P?k(P).then(()=>{I(F)}):I(F)}}),g.jsx(yr,{name:e,id:`${e}-err`,errorMode:b})]})]})},X7=t=>{const{name:e,checkboxes:n=[],label:r=Ln(e),labelPlacement:o="end",labelAlignment:i=o==="end"||o==="start"?"top":"center",required:s=!1,disabled:a=!1,readOnly:l=!1,min:u=0,max:f=n.length,minMaxSubtitle:p="Please select between {min} and {max} options",maxSubtitle:m="Up to {max} max",minSubtitle:b="Please select {min} or more",margin:v="dense",staticLabelProps:y={fontSize:".9em",color:"#808080"},errorMode:x="normal",onChange:S}=t,[k,T,C]=Ht.useField({name:e}),{setValue:O}=C,{value:I}=k,{error:N}=T,{setFieldValue:L}=Ht.useFormikContext();(u<0||u>=n.length)&&console.error(`CheckboxGroup: "min" cannot be ${u}. It must be a value between 0 and ${n.length-1}.`),(f<=1||f>n.length)&&console.error(`CheckboxGroup: "max" must be a value between 2 and ${n.length}.`),i==="top"&&(o==="bottom"||o==="top")&&console.error(`CheckboxGroup: Ignoring labelAlignment='top'. labelAlignment cannot be 'top' when labelPlacement=${o}`);const V=()=>t.labelPlacement=="start"?"right":t.labelPlacement=="top"||t.labelPlacement=="bottom"?"center":"left",M=_=>typeof _=="string"?_:!_.textField&&!_.helperText?_.label:g.jsxs(z.Box,{display:"flex",flexDirection:"row",justifyContent:"center",gap:"0.5rem",alignItems:"baseline",children:[g.jsxs(z.Box,{display:"flex",flexDirection:"column",justifyContent:"center",children:[g.jsx("p",{style:{margin:0},children:_.label}),_.helperText&&g.jsx(z.Typography,{variant:"caption",style:{fontSize:"0.85rem"},children:_.helperText})]}),_.textField&&g.jsx(ki,{label:"",size:"small",margin:"none",sx:{"& .MuiInputBase-input":{height:14}},..._.textField})]}),B=n.map(_=>{const D=typeof _=="string"?_:_.label,R=i==="top"&&(o==="start"||o==="end");return g.jsx(z.FormControlLabel,{sx:{alignItems:R?"flex-start":"center"},value:D,control:g.jsx(z.Checkbox,{}),label:g.jsx("div",{"data-testid":typeof _=="string"?_:_.label,style:{marginTop:R?"10px":0},children:M(_)}),labelPlacement:o,checked:I.includes(D),disabled:a||!I.includes(D)&&I.length===f,style:{textAlign:V()}},`checkbox-group-${D}`)}),H=()=>{if(f<n.length&&u>0)return g.jsx(z.Typography,{variant:"subtitle2",children:p.replace("{min}",`${u}`).replace("{max}",`${f}`)});if(f<n.length)return g.jsx(z.Typography,{variant:"subtitle2",children:m.replace("{max}",`${f}`)});if(u>0)return g.jsx(z.Typography,{variant:"subtitle2",children:b.replace("{min}",`${u}`)})},F=()=>g.jsxs(z.Box,{children:[g.jsx(z.Typography,{...y,children:r}),I.join(", ")]}),P=_=>{const D=_.target.value,R=_.target.checked,j=n.find(U=>typeof U=="string"?U===D:U.label===D);let K;R?K=[...I,D]:(j&&typeof j=="object"&&j.textField&&j.textField.name&&L(j.textField.name,""),K=I.filter(U=>U!=D)),O(K),S==null||S(K)};return l?F():g.jsxs(z.FormControl,{onChange:P,fullWidth:!0,margin:v,error:!!N,children:[g.jsx(z.FormLabel,{focused:t.focused,htmlFor:e,required:s,disabled:t.disableLabel,children:r}),H(),B,g.jsx(yr,{name:e,id:`${e}-err`,errorMode:x})]})},TM=Le(g.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"CloudUpload"),kM=t=>{const{name:e,multiple:n=!1,readOnly:r=!1,variant:o=n?"drag-and-drop":"button",duplicateFilesCallback:i,incorrectFileTypesCallback:s,staticLabelProps:a={fontSize:".9em",color:"#808080"},errorMode:l="normal"}=t,[u,f,p]=Ht.useField({name:e}),{setValue:m}=p,b=u.value,v=t.fileType?Array.isArray(t.fileType)?t.fileType:[t.fileType]:[],y=t.subtitle??(v.length>0?`Allowed file extensions: ${v.join(", ")}`:""),x=V=>{k(Array.from(V.target.files??[]))},S=V=>{V.preventDefault(),k(Array.from(V.dataTransfer.files))},k=V=>{if(V&&V.length>0){const M=b?Array.isArray(b)?b:[b]:[],B=bs.partition(V,H=>M.find(F=>C(H,F)));if(V=B[1],i&&B[0].length>0&&i(B[0]),v.length>0){const H=bs.partition(V,F=>v.find(P=>F.name.endsWith(P)));V=H[0],s&&H[1].length>0&&s(H[1])}n?m([...T(),...V]):!Array.isArray(b)&&V.length>0&&m(V[0])}},T=()=>b?Array.isArray(b)?b:[b]:[],C=(V,M)=>V.lastModified===M.lastModified&&V.name===M.name&&V.type===M.type&&V.size===M.size,O=()=>T().map(V=>V.name).join(", "),I=g.jsx(yr,{name:e,id:`${e}-err`,errorMode:l});return r?g.jsx(z.Typography,{"data-testid":"fileupload-readonly",...a,children:O()}):o==="drag-and-drop"?g.jsxs("div",{style:{border:`4px dashed ${f.error?"red":"lightgray"}`,padding:"30px 10px",display:"flex",alignItems:"center",flexDirection:"column"},onDrop:S,onDragOver:V=>V.preventDefault(),"data-testid":"dropzone",children:[g.jsx(TM,{color:"primary",sx:{fontSize:"40px"}}),g.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"baseline"},children:[g.jsx(z.Typography,{children:"Drag and drop or"}),g.jsxs(z.Button,{component:"label",role:void 0,variant:"text",tabIndex:-1,sx:{textTransform:"none",fontSize:"16px",textDecoration:"underline"},children:["browse",g.jsx("input",{"data-testid":"file-input",id:e,hidden:!0,type:"file",onChange:x,multiple:!0,accept:v==null?void 0:v.toString()})]})]}),y&&g.jsx(z.Typography,{variant:"caption",children:y}),I]}):g.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[g.jsx("div",{style:{display:"flex",alignItems:"center",marginBottom:"4px"},children:g.jsxs(z.Button,{component:"label",role:void 0,variant:"contained",tabIndex:-1,startIcon:g.jsx(TM,{}),style:{whiteSpace:"nowrap"},children:["Select a file",g.jsx(Z7,{"data-testid":"file-input",id:e,type:"file",onChange:x,accept:v==null?void 0:v.toString()})]})}),I]})},Z7=z.styled("input")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,overflow:"hidden",position:"absolute",bottom:0,left:0,whiteSpace:"nowrap",width:1}),Q7=Le(g.jsx("path",{d:"M15 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V7zM6 20V4h8v4h4v12zm10-10v5c0 2.21-1.79 4-4 4s-4-1.79-4-4V8.5c0-1.47 1.26-2.64 2.76-2.49 1.3.13 2.24 1.32 2.24 2.63V15h-2V8.5c0-.28-.22-.5-.5-.5s-.5.22-.5.5V15c0 1.1.9 2 2 2s2-.9 2-2v-5z"}),"FilePresent"),e0=Le(g.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),eU=t=>{const{name:e}=t,[n,,r]=Ht.useField({name:e}),{setValue:o}=r,i=n.value;return g.jsx("div",{style:{width:"100%"},children:i.map(s=>g.jsx(z.Card,{sx:{margin:"10px 0px"},children:g.jsxs(z.CardContent,{style:{display:"flex",alignItems:"center",padding:"8px 12px"},children:[g.jsx(Q7,{sx:{color:"gray",fontSize:"20px"}}),g.jsx(z.Typography,{sx:{padding:"8px",overflowWrap:"anywhere"},children:s.name}),g.jsx(z.IconButton,{"aria-label":"remove file",onClick:()=>o(i.filter(a=>a!==s)),edge:"end",style:{marginLeft:"auto",order:"2"},children:g.jsx(e0,{})})]})},`${s.name}-${s.type}-${s.size}-${s.lastModified}`))})};var t0,EM;function n0(){if(EM)return t0;EM=1;function t(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}return t0=t,t0}var r0,OM;function tU(){if(OM)return r0;OM=1;var t=typeof ji=="object"&&ji&&ji.Object===Object&&ji;return r0=t,r0}var o0,MM;function _M(){if(MM)return o0;MM=1;var t=tU(),e=typeof self=="object"&&self&&self.Object===Object&&self,n=t||e||Function("return this")();return o0=n,o0}var i0,IM;function nU(){if(IM)return i0;IM=1;var t=_M(),e=function(){return t.Date.now()};return i0=e,i0}var s0,DM;function rU(){if(DM)return s0;DM=1;var t=/\s/;function e(n){for(var r=n.length;r--&&t.test(n.charAt(r)););return r}return s0=e,s0}var a0,AM;function oU(){if(AM)return a0;AM=1;var t=rU(),e=/^\s+/;function n(r){return r&&r.slice(0,t(r)+1).replace(e,"")}return a0=n,a0}var l0,PM;function NM(){if(PM)return l0;PM=1;var t=_M(),e=t.Symbol;return l0=e,l0}var c0,$M;function iU(){if($M)return c0;$M=1;var t=NM(),e=Object.prototype,n=e.hasOwnProperty,r=e.toString,o=t?t.toStringTag:void 0;function i(s){var a=n.call(s,o),l=s[o];try{s[o]=void 0;var u=!0}catch{}var f=r.call(s);return u&&(a?s[o]=l:delete s[o]),f}return c0=i,c0}var u0,LM;function sU(){if(LM)return u0;LM=1;var t=Object.prototype,e=t.toString;function n(r){return e.call(r)}return u0=n,u0}var d0,BM;function aU(){if(BM)return d0;BM=1;var t=NM(),e=iU(),n=sU(),r="[object Null]",o="[object Undefined]",i=t?t.toStringTag:void 0;function s(a){return a==null?a===void 0?o:r:i&&i in Object(a)?e(a):n(a)}return d0=s,d0}var f0,FM;function lU(){if(FM)return f0;FM=1;function t(e){return e!=null&&typeof e=="object"}return f0=t,f0}var p0,RM;function cU(){if(RM)return p0;RM=1;var t=aU(),e=lU(),n="[object Symbol]";function r(o){return typeof o=="symbol"||e(o)&&t(o)==n}return p0=r,p0}var h0,zM;function uU(){if(zM)return h0;zM=1;var t=oU(),e=n0(),n=cU(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt;function l(u){if(typeof u=="number")return u;if(n(u))return r;if(e(u)){var f=typeof u.valueOf=="function"?u.valueOf():u;u=e(f)?f+"":f}if(typeof u!="string")return u===0?u:+u;u=t(u);var p=i.test(u);return p||s.test(u)?a(u.slice(2),p?2:8):o.test(u)?r:+u}return h0=l,h0}var m0,VM;function dU(){if(VM)return m0;VM=1;var t=n0(),e=nU(),n=uU(),r="Expected a function",o=Math.max,i=Math.min;function s(a,l,u){var f,p,m,b,v,y,x=0,S=!1,k=!1,T=!0;if(typeof a!="function")throw new TypeError(r);l=n(l)||0,t(u)&&(S=!!u.leading,k="maxWait"in u,m=k?o(n(u.maxWait)||0,l):m,T="trailing"in u?!!u.trailing:T);function C(F){var P=f,_=p;return f=p=void 0,x=F,b=a.apply(_,P),b}function O(F){return x=F,v=setTimeout(L,l),S?C(F):b}function I(F){var P=F-y,_=F-x,D=l-P;return k?i(D,m-_):D}function N(F){var P=F-y,_=F-x;return y===void 0||P>=l||P<0||k&&_>=m}function L(){var F=e();if(N(F))return V(F);v=setTimeout(L,I(F))}function V(F){return v=void 0,T&&f?C(F):(f=p=void 0,b)}function M(){v!==void 0&&clearTimeout(v),x=0,f=y=p=v=void 0}function B(){return v===void 0?b:V(e())}function H(){var F=e(),P=N(F);if(f=arguments,p=this,y=F,P){if(v===void 0)return O(y);if(k)return clearTimeout(v),v=setTimeout(L,l),C(y)}return v===void 0&&(v=setTimeout(L,l)),b}return H.cancel=M,H.flush=B,H}return m0=s,m0}var g0,HM;function fU(){if(HM)return g0;HM=1;var t=dU(),e=n0(),n="Expected a function";function r(o,i,s){var a=!0,l=!0;if(typeof o!="function")throw new TypeError(n);return e(s)&&(a="leading"in s?!!s.leading:a,l="trailing"in s?!!s.trailing:l),t(o,i,{leading:a,maxWait:i,trailing:l})}return g0=r,g0}var pU=fU();const hU=Un(pU),mU=Le(g.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"LocationOn");var dp={exports:{}},gU=dp.exports,WM;function yU(){return WM||(WM=1,(function(t,e){(function(n,r){t.exports=r()})(gU,(()=>{return n={705:o=>{o.exports=function(i,s){const a=[];return s.length===0?a.push({text:i,highlight:!1}):s[0][0]>0&&a.push({text:i.slice(0,s[0][0]),highlight:!1}),s.forEach(((l,u)=>{const f=l[0],p=l[1];a.push({text:i.slice(f,p),highlight:!0}),u===s.length-1?p<i.length&&a.push({text:i.slice(p,i.length),highlight:!1}):p<s[u+1][0]&&a.push({text:i.slice(p,s[u+1][0]),highlight:!1})})),a}}},r={},(function o(i){var s=r[i];if(s!==void 0)return s.exports;var a=r[i]={exports:{}};return n[i](a,a.exports,o),a.exports})(705);var n,r}))})(dp)),dp.exports}var bU=yU();const vU=Un(bU),xU=t=>{const{listItemProps:e,option:n,resultIcon:r,highlightMatches:o}=t,{main_text:i,secondary_text:s,main_text_matched_substrings:a}=n.structured_formatting,l=vU(i,a.map(u=>[u.offset,u.offset+u.length]));return g.jsx("li",{...lr({...e},["key"]),"data-testid":`loc-${n.place_id}`,children:g.jsxs(z.Box,{display:"flex",flexDirection:"row",alignItems:"center",children:[r?A.cloneElement(r):null,g.jsxs(z.Box,{children:[l.map(u=>{const f=o&&u.highlight?700:400;return g.jsx("span",{style:{fontWeight:f},children:u.text},`${n.place_id}_${u.text}`)}),g.jsx(z.Typography,{variant:"body2",color:"textSecondary",children:s})]})]})})};function wU(t,e,n){if(!e)return;const r=document.createElement("script");r.setAttribute("async",""),r.setAttribute("id",n),r.src=t,r.onerror=()=>console.error(`Failed to load script: ${t}`),e.appendChild(r)}const fu={current:null},SU=t=>{const{name:e,label:n=Ln(e),resultIcon:r=g.jsx(mU,{}),apiKey:o,highlightMatches:i=!0,types:s,variant:a="outlined",staticLabel:l=!1,staticLabelProps:u={fontSize:".9em",color:"#808080"},readOnly:f=!1,margin:p="dense",errorMode:m="normal"}=t,[b,v]=A.useState(null),[y,x]=A.useState(""),[S,k]=A.useState([]),T=A.useRef(!1),[,C,O]=Ht.useField(e),{setValue:I}=O,{error:N}=C;typeof window<"u"&&!T.current&&(document.querySelector("#google-maps")||wU(`https://maps.googleapis.com/maps/api/js?key=${o}&libraries=places`,document.querySelector("head"),"google-maps"),T.current=!0);const L=A.useMemo(()=>hU((D,R)=>{fu.current&&fu.current.getPlacePredictions(D,R)},200),[]);A.useEffect(()=>{let D=!0;if(!fu.current&&window.google&&(fu.current=new window.google.maps.places.AutocompleteService),!fu.current)return;if(y===""){k(b?[b]:[]);return}return L({input:y,types:s?[s]:[]},K=>{if(D){let U=[];b&&(U=[b]),K&&(U=[...U,...K]);const Y=U.filter((fe,ue,pe)=>ue===pe.findIndex(Z=>Z.place_id===fe.place_id));k(Y)}}),()=>{D=!1}},[b,y,L,s]);const V=A.useCallback(D=>{const j=(D?[D,...S]:S).filter((K,U,Y)=>U===Y.findIndex(fe=>fe.place_id===K.place_id));k(j),v(D),I(D?D.description:"")},[S,k,v,I]),M=D=>{x(D)},B=["name","apiKey","resultIcon","highlightMatches","variant","staticLabel","staticLabelProps","margin","errorMode"],H=D=>g.jsx(z.TextField,{margin:p,variant:a,...D,...lr({...t},B),label:l?void 0:n,hiddenLabel:l,error:!!N}),F=D=>typeof D=="string"?D:D.description,P=(D,R)=>g.jsx(xU,{listItemProps:D,option:R,resultIcon:r,highlightMatches:i},R.place_id);A.useEffect(()=>{const D=R=>{R.key==="Enter"&&S.length>0&&V(S[0])};return window.addEventListener("keydown",D),()=>{window.removeEventListener("keydown",D)}},[S,V]);const _=g.jsx(z.Autocomplete,{id:`${e}-loc`,"data-testid":"location-autocomplete",getOptionLabel:F,filterOptions:D=>D,options:S,autoComplete:!0,includeInputInList:!0,filterSelectedOptions:!0,value:b,onChange:(D,R)=>V(R),onInputChange:(D,R)=>M(R),disabled:t.disabled,renderOption:P,renderInput:H});return g.jsxs(z.FormControl,{margin:p,fullWidth:!0,children:[(l||f)&&g.jsx(z.Typography,{...u,children:n}),f?g.jsx(z.Typography,{children:b==null?void 0:b.description}):g.jsxs(z.Box,{children:[_,g.jsx(yr,{name:e,id:`${e}-err`,errorMode:m})]})]})},jM=t=>{const{name:e,radios:n=[],label:r=Ln(e),labelPlacement:o="end",labelAlignment:i=o==="end"||o==="start"?"top":"center",required:s=!1,disabled:a=!1,readOnly:l,margin:u="dense",onChange:f,staticLabelProps:p={fontSize:".9em",color:"#808080"},errorMode:m="normal",helperText:b}=t;i==="top"&&(o==="bottom"||o==="top")&&console.error(`RadioGroup: Ignoring labelAlignment='top'. labelAlignment cannot be 'top' when labelPlacement=${o}`);const[v,y,x]=Ht.useField({name:e}),{setValue:S}=x,{value:k}=v,{error:T}=y,C=["radioProps","labelPlacement","helperText"],O=["disableRedLabelOnError","disableLabel","sameButtonColor","labelPlacement","focused","margin","fullWidth","labelAlignment","errorMode","helperText"],I=()=>t.labelPlacement=="start"?"right":t.labelPlacement=="top"||t.labelPlacement=="bottom"?"center":"left",N=n.map((_,D)=>{const R=i==="top"&&(o==="start"||o==="end"),j=_.helperText?g.jsxs("div",{children:[g.jsx("p",{style:{margin:0},children:_.label}),g.jsx(z.Typography,{variant:"caption",style:{fontSize:"0.85rem"},children:_.helperText})]}):_.label;return g.jsx(z.FormControlLabel,{sx:{alignItems:R?"flex-start":"center"},value:D.toString(),control:g.jsx(z.Radio,{id:`${_.value}-rb`,color:t.sameButtonColor?t.sameButtonColor:_.color??"default",...lr({..._},C)}),label:g.jsx("div",{style:{marginTop:R?"10px":0},children:j}),labelPlacement:o,disabled:_.disabled||a,style:{textAlign:I()}},`rb-${D}-${r}`)}),L=_=>{var D;return((D=n.find(R=>R.value===_))==null?void 0:D.label)??""},V=_=>{const D=n.find(R=>R.value===_);return g.jsxs(z.Box,{children:[g.jsx(z.Typography,{children:D==null?void 0:D.label}),(D==null?void 0:D.helperText)&&g.jsx(z.Typography,{variant:"caption",style:{fontSize:"0.85rem"},children:D.helperText})]})},M=_=>{S(_.target.value),f&&f(_.target.value)},B=Hs(),H=l??B,{showDiff:F,getPreviousValue:P}=Ws();return H||F?g.jsx(Ti,{label:r,value:L(v.value),readOnlyValue:V(v.value),staticLabelProps:p,showDiff:F,diffSnapshot:L(P(e))}):g.jsxs(z.FormControl,{focused:t.focused,margin:u,fullWidth:t.fullWidth,error:!!T,children:[g.jsx(z.FormLabel,{htmlFor:e,required:s,disabled:t.disableLabel,children:r}),b&&g.jsx(z.FormHelperText,{children:b}),g.jsx(z.RadioGroup,{id:e,value:k??"",...lr({...t},O),onChange:M,children:N}),g.jsx(yr,{name:e,id:`${e}-err`,errorMode:m})]})},CU=t=>{const{name:e,label:n=Ln(e),min:r=0,max:o=100,step:i=1,readOnly:s,staticLabelProps:a={fontSize:".9em",color:"#808080"}}=t,l=Ht.useField(e),{value:u}=l[0],{setValue:f}=l[2],p=["label"];return s?(()=>{let b;return Array.isArray(u)?b=s==="percent"?`${100*(u[0]??0)/o}% - ${100*(u[1]??0)/o}%`:`${u[0]??0} - ${u[1]??0}`:b=s==="percent"?`${100*(u??0)/o}%`:`${u??0}`,g.jsxs(z.Box,{children:[g.jsx(z.Typography,{...a,children:n}),g.jsx(z.Typography,{children:b})]})})():g.jsxs(z.FormControl,{fullWidth:!0,children:[g.jsx(z.Typography,{gutterBottom:!0,color:"textSecondary",children:n}),g.jsx(z.Slider,{...lr({...t},p),id:t.name,value:u??0,onChange:(b,v)=>{f(v)},min:r,max:o,step:i})]})},TU=t=>{const{name:e,options:n=[],label:r=Ln(e),selectedOptionIcon:o=void 0,staticLabel:i=!1,staticLabelProps:s={fontSize:".9em",color:"#808080"},variant:a="outlined",readOnly:l,margin:u="dense",required:f,errorMode:p="normal"}=t,[m,b,v]=Ht.useField({name:e}),{setValue:y}=v,{value:x}=m,{error:S}=b,k=A.useMemo(()=>n.map(R=>typeof R=="string"?{label:R,value:R}:R),[n]),T=A.useCallback(()=>{let R="";for(let j=0;j<k.length;j++)JSON.stringify(k[j].value)===JSON.stringify(x)&&(R=j.toString());return R},[k,x]),C=A.useCallback(()=>{const R=[],j=x.toString().split(",");for(const K of j)for(let U=0;U<k.length;U++)k[U].value===K&&R.push(U);return R},[k,x]);A.useEffect(()=>{N(t.multiple?C():T())},[k,t.multiple,x,C,T]);const O=(R,j)=>t.multiple?!!x.toString().split(",").find(K=>K===JSON.stringify(R.value)):j===k.findIndex(K=>x===K.value),[I,N]=A.useState(t.multiple?C:T),L=k.map((R,j)=>{const K=o&&O(R,j)?o:void 0;return g.jsxs(z.MenuItem,{id:`select-${e}-option-${R.value}`,value:j,disabled:R.disabled,children:[o&&g.jsx(z.ListItemIcon,{children:K}),R.label]},j.toString())}),V=R=>{if(t.multiple){const j=[];R.target.value.forEach(K=>{k[K].value&&j.push(k[K].value)}),y(j.join(","))}else y(k[R.target.value].value);N(R.target.value)},M=["name","options",i?"label":"","required","selectedOptionIcon","variant","staticLabel","staticLabelProps","errorMode"],B=()=>F1(k,x,t.multiple),H=t.renderValue??B,F=Hs(),P=l??F,{showDiff:_,getPreviousValue:D}=Ws();return P||_?g.jsx(Ti,{label:r,value:B(),staticLabel:i,staticLabelProps:s,showDiff:_,diffSnapshot:F1(k,D(e),t.multiple)}):g.jsxs(z.FormControl,{fullWidth:!0,variant:a,error:!!S,margin:u,required:f,children:[i?g.jsx(z.Typography,{...s,children:r}):g.jsx(z.InputLabel,{id:`${e}-select-label`,children:r}),g.jsxs(z.Box,{children:[g.jsx(z.Select,{id:`${e}-sel`,labelId:`${e}-select-label`,label:i?void 0:r,...lr({...t},M),name:e,value:I,fullWidth:!0,onChange:R=>V(R),displayEmpty:i,renderValue:H,children:L}),g.jsx(yr,{name:e,id:`${e}-err`,errorMode:p})]})]})},kU=t=>{const{name:e,label:n=Ln(e),labelPlacement:r="end",readOnly:o,staticLabelProps:i={fontSize:".9em",color:"#808080"},onChange:s,color:a="primary",chipColor:l,activeValue:u=!0,inactiveValue:f=!1,errorMode:p="normal"}=t,[m,,b]=Ht.useField({name:e}),{setValue:v}=b,{value:y}=m;y===void 0&&console.error(`Please set an initial value for ${e}`);const x=["labelPlacement","chipColor","activeValue","inactiveValue","errorMode"],S=k=>{if(typeof k!="boolean")return String(k);switch(o){case"YES_NO":return k===u?"Yes":"No";case"ON_OFF":return k===u?"On":"Off";default:return k===u?"True":"False"}};return o?g.jsxs(z.Box,{children:[g.jsx(z.Typography,{...i,children:n}),g.jsx(z.Typography,{children:S(y)})]}):g.jsxs(z.Box,{bgcolor:l??"inherit",sx:l?{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"32px",padding:"2px 0px 2px 12px"}:{},children:[g.jsx(z.FormControlLabel,{label:n,sx:{"& .MuiFormControlLabel-label":{color:a}},labelPlacement:r,control:g.jsx(z.Switch,{...lr({...t},x),id:e,...m,onChange:k=>{if(typeof u=="string"&&typeof f=="string"){const T=k.target.checked?u:f;v(T),s&&s(T)}else v(k.target.checked),s&&s(k.target.checked)},checked:y===u})}),g.jsx(yr,{name:e,id:`${e}-err`,errorMode:p})]})},UM=t=>{const{rows:e=3,diffMode:n="word",...r}=t;return g.jsx(ki,{multiline:!0,rows:e,diffMode:n,...r})},EU=Le([g.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),g.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime"),OU=Le(g.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11h-4v4h-2v-4H7v-2h4V7h2v4h4z"}),"AddCircle"),MU=Le(g.jsx("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline"),_U=Le(g.jsx("path",{d:"m19 18 2 1V3c0-1.1-.9-2-2-2H8.99C7.89 1 7 1.9 7 3h10c1.1 0 2 .9 2 2zM15 5H5c-1.1 0-2 .9-2 2v16l7-3 7 3V7c0-1.1-.9-2-2-2"}),"Bookmarks"),IU=Le(g.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m.06 17v-2.01H12c-1.28 0-2.56-.49-3.54-1.46-1.71-1.71-1.92-4.35-.64-6.29l1.1 1.1c-.71 1.33-.53 3.01.59 4.13.7.7 1.62 1.03 2.54 1.01v-2.14l2.83 2.83zm4.11-4.24-1.1-1.1c.71-1.33.53-3.01-.59-4.13C13.79 8.84 12.9 8.5 12 8.5h-.06v2.15L9.11 7.83 11.94 5v2.02c1.3-.02 2.61.45 3.6 1.45 1.7 1.7 1.91 4.35.63 6.29"}),"ChangeCircle"),fp=Le(g.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),DU=Le(g.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"CloseOutlined"),AU=Le(g.jsx("path",{d:"M19 2h-4.18C14.4.84 13.3 0 12 0S9.6.84 9.18 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m7 18H5V4h2v3h10V4h2z"}),"ContentPaste"),qM=Le(g.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkMode"),KM=Le(g.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description"),PU=Le(g.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download"),NU=Le(g.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),$U=Le(g.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help"),LU=Le(g.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),y0=Le(g.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),pp=Le(g.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp"),b0=Le(g.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"Launch"),YM=Le(g.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode"),BU=Le(g.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout"),FU=Le(g.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),RU=Le(g.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),zU=Le(g.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person"),VU=Le(g.jsx("path",{d:"M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1m-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1"}),"QuestionAnswer"),HU=Le(g.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),GM=Le(g.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11H7v-2h10z"}),"RemoveCircle"),WU=Le(g.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"SearchOutlined"),jU=Le(g.jsx("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort"),UU=Le(g.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),JM=t=>{const{onSearch:e,initialValue:n="",lazySearch:r=!1,debounceMillis:o=500}=t,[i,s]=J.useState(n),a=J.useMemo(()=>SM.debounce(m=>{e(m)},o),[e,o]);J.useEffect(()=>()=>{a.cancel()},[a]);const l=m=>{s(m.target.value),r||a(m.target.value)},u=m=>{m.key==="Enter"&&f()},f=()=>{a.cancel(),e(i)},p=()=>{a.cancel(),s(""),e("")};return g.jsx(z.TextField,{type:"text",placeholder:"Search...",value:i,onChange:l,onKeyDown:u,className:"search-bar",size:"small",fullWidth:!0,slotProps:{input:{startAdornment:g.jsx(z.InputAdornment,{position:"start",children:g.jsx(z.IconButton,{"data-testid":"search-button",style:{marginLeft:-10},onClick:f,children:g.jsx(WU,{})})}),endAdornment:i&&g.jsx(z.IconButton,{style:{marginRight:-10},"aria-label":"clear search","data-testid":"clear-search",onClick:p,children:g.jsx(DU,{})})}}})},qU=["localeText"],hp=A.createContext(null);process.env.NODE_ENV!=="production"&&(hp.displayName="MuiPickersAdapterContext");const v0=function(e){const{localeText:n}=e,r=at(e,qU),{utils:o,localeText:i}=A.useContext(hp)??{utils:void 0,localeText:void 0},s=rt({props:r,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:l,dateFormats:u,dateLibInstance:f,adapterLocale:p,localeText:m}=s,b=A.useMemo(()=>se({},m,i,n),[m,i,n]),v=A.useMemo(()=>{if(!l)return o||null;const S=new l({locale:p,formats:u,instance:f});if(!S.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
383
- `));return S},[l,p,u,f,o]),y=A.useMemo(()=>v?{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}:null,[v]),x=A.useMemo(()=>({utils:v,defaultDates:y,localeText:b}),[y,v,b]);return g.jsx(hp.Provider,{value:x,children:a})};process.env.NODE_ENV!=="production"&&(v0.propTypes={adapterLocale:c.any,children:c.node,dateAdapter:c.func,dateFormats:c.shape({dayOfMonth:c.string,dayOfMonthFull:c.string,fullDate:c.string,fullTime:c.string,fullTime12h:c.string,fullTime24h:c.string,hours12h:c.string,hours24h:c.string,keyboardDate:c.string,keyboardDateTime:c.string,keyboardDateTime12h:c.string,keyboardDateTime24h:c.string,meridiem:c.string,minutes:c.string,month:c.string,monthShort:c.string,normalDate:c.string,normalDateWithWeekday:c.string,seconds:c.string,shortDate:c.string,weekday:c.string,weekdayShort:c.string,year:c.string}),dateLibInstance:c.any,localeText:c.object});var mp={exports:{}},KU=mp.exports,XM;function YU(){return XM||(XM=1,(function(t,e){(function(n,r){t.exports=r()})(KU,(function(){var n=1e3,r=6e4,o=36e5,i="millisecond",s="second",a="minute",l="hour",u="day",f="week",p="month",m="quarter",b="year",v="date",y="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|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,k={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(P){var _=["th","st","nd","rd"],D=P%100;return"["+P+(_[(D-20)%10]||_[D]||_[0])+"]"}},T=function(P,_,D){var R=String(P);return!R||R.length>=_?P:""+Array(_+1-R.length).join(D)+P},C={s:T,z:function(P){var _=-P.utcOffset(),D=Math.abs(_),R=Math.floor(D/60),j=D%60;return(_<=0?"+":"-")+T(R,2,"0")+":"+T(j,2,"0")},m:function P(_,D){if(_.date()<D.date())return-P(D,_);var R=12*(D.year()-_.year())+(D.month()-_.month()),j=_.clone().add(R,p),K=D-j<0,U=_.clone().add(R+(K?-1:1),p);return+(-(R+(D-j)/(K?j-U:U-j))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:p,y:b,w:f,d:u,D:v,h:l,m:a,s,ms:i,Q:m}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},O="en",I={};I[O]=k;var N="$isDayjsObject",L=function(P){return P instanceof H||!(!P||!P[N])},V=function P(_,D,R){var j;if(!_)return O;if(typeof _=="string"){var K=_.toLowerCase();I[K]&&(j=K),D&&(I[K]=D,j=K);var U=_.split("-");if(!j&&U.length>1)return P(U[0])}else{var Y=_.name;I[Y]=_,j=Y}return!R&&j&&(O=j),j||!R&&O},M=function(P,_){if(L(P))return P.clone();var D=typeof _=="object"?_:{};return D.date=P,D.args=arguments,new H(D)},B=C;B.l=V,B.i=L,B.w=function(P,_){return M(P,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var H=(function(){function P(D){this.$L=V(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[N]=!0}var _=P.prototype;return _.parse=function(D){this.$d=(function(R){var j=R.date,K=R.utc;if(j===null)return new Date(NaN);if(B.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var U=j.match(x);if(U){var Y=U[2]-1||0,fe=(U[7]||"0").substring(0,3);return K?new Date(Date.UTC(U[1],Y,U[3]||1,U[4]||0,U[5]||0,U[6]||0,fe)):new Date(U[1],Y,U[3]||1,U[4]||0,U[5]||0,U[6]||0,fe)}}return new Date(j)})(D),this.init()},_.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},_.$utils=function(){return B},_.isValid=function(){return this.$d.toString()!==y},_.isSame=function(D,R){var j=M(D);return this.startOf(R)<=j&&j<=this.endOf(R)},_.isAfter=function(D,R){return M(D)<this.startOf(R)},_.isBefore=function(D,R){return this.endOf(R)<M(D)},_.$g=function(D,R,j){return B.u(D)?this[R]:this.set(j,D)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(D,R){var j=this,K=!!B.u(R)||R,U=B.p(D),Y=function(re,le){var ye=B.w(j.$u?Date.UTC(j.$y,le,re):new Date(j.$y,le,re),j);return K?ye:ye.endOf(u)},fe=function(re,le){return B.w(j.toDate()[re].apply(j.toDate("s"),(K?[0,0,0,0]:[23,59,59,999]).slice(le)),j)},ue=this.$W,pe=this.$M,Z=this.$D,te="set"+(this.$u?"UTC":"");switch(U){case b:return K?Y(1,0):Y(31,11);case p:return K?Y(1,pe):Y(0,pe+1);case f:var ce=this.$locale().weekStart||0,ne=(ue<ce?ue+7:ue)-ce;return Y(K?Z-ne:Z+(6-ne),pe);case u:case v:return fe(te+"Hours",0);case l:return fe(te+"Minutes",1);case a:return fe(te+"Seconds",2);case s:return fe(te+"Milliseconds",3);default:return this.clone()}},_.endOf=function(D){return this.startOf(D,!1)},_.$set=function(D,R){var j,K=B.p(D),U="set"+(this.$u?"UTC":""),Y=(j={},j[u]=U+"Date",j[v]=U+"Date",j[p]=U+"Month",j[b]=U+"FullYear",j[l]=U+"Hours",j[a]=U+"Minutes",j[s]=U+"Seconds",j[i]=U+"Milliseconds",j)[K],fe=K===u?this.$D+(R-this.$W):R;if(K===p||K===b){var ue=this.clone().set(v,1);ue.$d[Y](fe),ue.init(),this.$d=ue.set(v,Math.min(this.$D,ue.daysInMonth())).$d}else Y&&this.$d[Y](fe);return this.init(),this},_.set=function(D,R){return this.clone().$set(D,R)},_.get=function(D){return this[B.p(D)]()},_.add=function(D,R){var j,K=this;D=Number(D);var U=B.p(R),Y=function(pe){var Z=M(K);return B.w(Z.date(Z.date()+Math.round(pe*D)),K)};if(U===p)return this.set(p,this.$M+D);if(U===b)return this.set(b,this.$y+D);if(U===u)return Y(1);if(U===f)return Y(7);var fe=(j={},j[a]=r,j[l]=o,j[s]=n,j)[U]||1,ue=this.$d.getTime()+D*fe;return B.w(ue,this)},_.subtract=function(D,R){return this.add(-1*D,R)},_.format=function(D){var R=this,j=this.$locale();if(!this.isValid())return j.invalidDate||y;var K=D||"YYYY-MM-DDTHH:mm:ssZ",U=B.z(this),Y=this.$H,fe=this.$m,ue=this.$M,pe=j.weekdays,Z=j.months,te=j.meridiem,ce=function(le,ye,X,ee){return le&&(le[ye]||le(R,K))||X[ye].slice(0,ee)},ne=function(le){return B.s(Y%12||12,le,"0")},re=te||function(le,ye,X){var ee=le<12?"AM":"PM";return X?ee.toLowerCase():ee};return K.replace(S,(function(le,ye){return ye||(function(X){switch(X){case"YY":return String(R.$y).slice(-2);case"YYYY":return B.s(R.$y,4,"0");case"M":return ue+1;case"MM":return B.s(ue+1,2,"0");case"MMM":return ce(j.monthsShort,ue,Z,3);case"MMMM":return ce(Z,ue);case"D":return R.$D;case"DD":return B.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return ce(j.weekdaysMin,R.$W,pe,2);case"ddd":return ce(j.weekdaysShort,R.$W,pe,3);case"dddd":return pe[R.$W];case"H":return String(Y);case"HH":return B.s(Y,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return re(Y,fe,!0);case"A":return re(Y,fe,!1);case"m":return String(fe);case"mm":return B.s(fe,2,"0");case"s":return String(R.$s);case"ss":return B.s(R.$s,2,"0");case"SSS":return B.s(R.$ms,3,"0");case"Z":return U}return null})(le)||U.replace(":","")}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(D,R,j){var K,U=this,Y=B.p(R),fe=M(D),ue=(fe.utcOffset()-this.utcOffset())*r,pe=this-fe,Z=function(){return B.m(U,fe)};switch(Y){case b:K=Z()/12;break;case p:K=Z();break;case m:K=Z()/3;break;case f:K=(pe-ue)/6048e5;break;case u:K=(pe-ue)/864e5;break;case l:K=pe/o;break;case a:K=pe/r;break;case s:K=pe/n;break;default:K=pe}return j?K:B.a(K)},_.daysInMonth=function(){return this.endOf(p).$D},_.$locale=function(){return I[this.$L]},_.locale=function(D,R){if(!D)return this.$L;var j=this.clone(),K=V(D,R,!0);return K&&(j.$L=K),j},_.clone=function(){return B.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},P})(),F=H.prototype;return M.prototype=F,[["$ms",i],["$s",s],["$m",a],["$H",l],["$W",u],["$M",p],["$y",b],["$D",v]].forEach((function(P){F[P[1]]=function(_){return this.$g(_,P[0],P[1])}})),M.extend=function(P,_){return P.$i||(P(_,H,M),P.$i=!0),M},M.locale=V,M.isDayjs=L,M.unix=function(P){return M(1e3*P)},M.en=I[O],M.Ls=I,M.p={},M}))})(mp)),mp.exports}var GU=YU();const rn=Un(GU);var gp={exports:{}},JU=gp.exports,ZM;function XU(){return ZM||(ZM=1,(function(t,e){(function(n,r){t.exports=r()})(JU,(function(){var n="week",r="year";return function(o,i,s){var a=i.prototype;a.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=s(this).startOf(r).add(1,r).date(u),p=s(this).endOf(n);if(f.isBefore(p))return 1}var m=s(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),b=this.diff(m,n,!0);return b<0?s(this).startOf("week").week():Math.ceil(b)},a.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}}))})(gp)),gp.exports}var ZU=XU();const QU=Un(ZU);var yp={exports:{}},eq=yp.exports,QM;function tq(){return QM||(QM=1,(function(t,e){(function(n,r){t.exports=r()})(eq,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,i=/\d\d/,s=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,l={},u=function(x){return(x=+x)+(x>68?1900:2e3)},f=function(x){return function(S){this[x]=+S}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(x){(this.zone||(this.zone={})).offset=(function(S){if(!S||S==="Z")return 0;var k=S.match(/([+-]|\d\d)/g),T=60*k[1]+(+k[2]||0);return T===0?0:k[0]==="+"?-T:T})(x)}],m=function(x){var S=l[x];return S&&(S.indexOf?S:S.s.concat(S.f))},b=function(x,S){var k,T=l.meridiem;if(T){for(var C=1;C<=24;C+=1)if(x.indexOf(T(C,0,S))>-1){k=C>12;break}}else k=x===(S?"pm":"PM");return k},v={A:[a,function(x){this.afternoon=b(x,!1)}],a:[a,function(x){this.afternoon=b(x,!0)}],Q:[o,function(x){this.month=3*(x-1)+1}],S:[o,function(x){this.milliseconds=100*+x}],SS:[i,function(x){this.milliseconds=10*+x}],SSS:[/\d{3}/,function(x){this.milliseconds=+x}],s:[s,f("seconds")],ss:[s,f("seconds")],m:[s,f("minutes")],mm:[s,f("minutes")],H:[s,f("hours")],h:[s,f("hours")],HH:[s,f("hours")],hh:[s,f("hours")],D:[s,f("day")],DD:[i,f("day")],Do:[a,function(x){var S=l.ordinal,k=x.match(/\d+/);if(this.day=k[0],S)for(var T=1;T<=31;T+=1)S(T).replace(/\[|\]/g,"")===x&&(this.day=T)}],w:[s,f("week")],ww:[i,f("week")],M:[s,f("month")],MM:[i,f("month")],MMM:[a,function(x){var S=m("months"),k=(m("monthsShort")||S.map((function(T){return T.slice(0,3)}))).indexOf(x)+1;if(k<1)throw new Error;this.month=k%12||k}],MMMM:[a,function(x){var S=m("months").indexOf(x)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,f("year")],YY:[i,function(x){this.year=u(x)}],YYYY:[/\d{4}/,f("year")],Z:p,ZZ:p};function y(x){var S,k;S=x,k=l&&l.formats;for(var T=(x=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(M,B,H){var F=H&&H.toUpperCase();return B||k[H]||n[H]||k[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(P,_,D){return _||D.slice(1)}))}))).match(r),C=T.length,O=0;O<C;O+=1){var I=T[O],N=v[I],L=N&&N[0],V=N&&N[1];T[O]=V?{regex:L,parser:V}:I.replace(/^\[|\]$/g,"")}return function(M){for(var B={},H=0,F=0;H<C;H+=1){var P=T[H];if(typeof P=="string")F+=P.length;else{var _=P.regex,D=P.parser,R=M.slice(F),j=_.exec(R)[0];D.call(B,j),M=M.replace(j,"")}}return(function(K){var U=K.afternoon;if(U!==void 0){var Y=K.hours;U?Y<12&&(K.hours+=12):Y===12&&(K.hours=0),delete K.afternoon}})(B),B}}return function(x,S,k){k.p.customParseFormat=!0,x&&x.parseTwoDigitYear&&(u=x.parseTwoDigitYear);var T=S.prototype,C=T.parse;T.parse=function(O){var I=O.date,N=O.utc,L=O.args;this.$u=N;var V=L[1];if(typeof V=="string"){var M=L[2]===!0,B=L[3]===!0,H=M||B,F=L[2];B&&(F=L[2]),l=this.$locale(),!M&&F&&(l=k.Ls[F]),this.$d=(function(R,j,K,U){try{if(["x","X"].indexOf(j)>-1)return new Date((j==="X"?1e3:1)*R);var Y=y(j)(R),fe=Y.year,ue=Y.month,pe=Y.day,Z=Y.hours,te=Y.minutes,ce=Y.seconds,ne=Y.milliseconds,re=Y.zone,le=Y.week,ye=new Date,X=pe||(fe||ue?1:ye.getDate()),ee=fe||ye.getFullYear(),ie=0;fe&&!ue||(ie=ue>0?ue-1:ye.getMonth());var we,Ce=Z||0,Ae=te||0,Me=ce||0,Ie=ne||0;return re?new Date(Date.UTC(ee,ie,X,Ce,Ae,Me,Ie+60*re.offset*1e3)):K?new Date(Date.UTC(ee,ie,X,Ce,Ae,Me,Ie)):(we=new Date(ee,ie,X,Ce,Ae,Me,Ie),le&&(we=U(we).week(le).toDate()),we)}catch{return new Date("")}})(I,V,N,k),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),H&&I!=this.format(V)&&(this.$d=new Date("")),l={}}else if(V instanceof Array)for(var P=V.length,_=1;_<=P;_+=1){L[1]=V[_-1];var D=k.apply(this,L);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}_===P&&(this.$d=new Date(""))}else C.call(this,O)}}}))})(yp)),yp.exports}var nq=tq();const e_=Un(nq);var bp={exports:{}},rq=bp.exports,t_;function oq(){return t_||(t_=1,(function(t,e){(function(n,r){t.exports=r()})(rq,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,i){var s=o.prototype,a=s.format;i.en.formats=n,s.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,f=(function(p,m){return p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(b,v,y){var x=y&&y.toUpperCase();return v||m[y]||n[y]||m[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(S,k,T){return k||T.slice(1)}))}))})(l,u===void 0?{}:u);return a.call(this,f)}}}))})(bp)),bp.exports}var iq=oq();const sq=Un(iq);var vp={exports:{}},aq=vp.exports,n_;function lq(){return n_||(n_=1,(function(t,e){(function(n,r){t.exports=r()})(aq,(function(){return function(n,r,o){r.prototype.isBetween=function(i,s,a,l){var u=o(i),f=o(s),p=(l=l||"()")[0]==="(",m=l[1]===")";return(p?this.isAfter(u,a):!this.isBefore(u,a))&&(m?this.isBefore(f,a):!this.isAfter(f,a))||(p?this.isBefore(u,a):!this.isAfter(u,a))&&(m?this.isAfter(f,a):!this.isBefore(f,a))}}}))})(vp)),vp.exports}var cq=lq();const uq=Un(cq);var xp={exports:{}},dq=xp.exports,r_;function fq(){return r_||(r_=1,(function(t,e){(function(n,r){t.exports=r()})(dq,(function(){return function(n,r){var o=r.prototype,i=o.format;o.format=function(s){var a=this,l=this.$locale();if(!this.isValid())return i.bind(this)(s);var u=this.$utils(),f=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(p){switch(p){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return l.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return l.ordinal(a.week(),"W");case"w":case"ww":return u.s(a.week(),p==="w"?1:2,"0");case"W":case"WW":return u.s(a.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return u.s(String(a.$H===0?24:a.$H),p==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return p}}));return i.bind(this)(f)}}}))})(xp)),xp.exports}var pq=fq();const hq=Un(pq),o_=new Set;function i_(t,e="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(t)?t.join(`
382
+ }`;var ht=vP(function(){return It(q,Ge+"return "+_e).apply(n,G)});if(ht.source=_e,x1(ht))throw ht;return ht}function Fae(d){return Nt(d).toLowerCase()}function Rae(d){return Nt(d).toUpperCase()}function zae(d,h,w){if(d=Nt(d),d&&(w||h===n))return MD(d);if(!d||!(h=zr(h)))return d;var E=_o(d),$=_o(h),q=_D(E,$),G=ID(E,$)+1;return As(E,q,G).join("")}function Vae(d,h,w){if(d=Nt(d),d&&(w||h===n))return d.slice(0,AD(d)+1);if(!d||!(h=zr(h)))return d;var E=_o(d),$=ID(E,_o(h))+1;return As(E,0,$).join("")}function Hae(d,h,w){if(d=Nt(d),d&&(w||h===n))return d.replace(xv,"");if(!d||!(h=zr(h)))return d;var E=_o(d),$=_D(E,_o(h));return As(E,$).join("")}function Wae(d,h){var w=M,E=B;if(sn(h)){var $="separator"in h?h.separator:$;w="length"in h?dt(h.length):w,E="omission"in h?zr(h.omission):E}d=Nt(d);var q=d.length;if(Hl(d)){var G=_o(d);q=G.length}if(w>=q)return d;var Q=w-Wl(E);if(Q<1)return E;var de=G?As(G,0,Q).join(""):d.slice(0,Q);if($===n)return de+E;if(G&&(Q+=de.length-Q),w1($)){if(d.slice(Q).search($)){var Te,ke=de;for($.global||($=Bv($.source,Nt(JI.exec($))+"g")),$.lastIndex=0;Te=$.exec(ke);)var _e=Te.index;de=de.slice(0,_e===n?Q:_e)}}else if(d.indexOf(zr($),Q)!=Q){var Re=de.lastIndexOf($);Re>-1&&(de=de.slice(0,Re))}return de+E}function jae(d){return d=Nt(d),d&&Mo.test(d)?d.replace(Xn,vne):d}var Uae=Jl(function(d,h,w){return d+(w?" ":"")+h.toUpperCase()}),T1=xA("toUpperCase");function bP(d,h,w){return d=Nt(d),h=w?n:h,h===n?hne(d)?Sne(d):ine(d):d.match(h)||[]}var vP=gt(function(d,h){try{return Fr(d,n,h)}catch(w){return x1(w)?w:new lt(w)}}),qae=Fi(function(d,h){return uo(h,function(w){w=ii(w),Li(d,w,b1(d[w],d))}),d});function Kae(d){var h=d==null?0:d.length,w=Ze();return d=h?Qt(d,function(E){if(typeof E[1]!="function")throw new fo(s);return[w(E[0]),E[1]]}):[],gt(function(E){for(var $=-1;++$<h;){var q=d[$];if(Fr(q[0],this,E))return Fr(q[1],this,E)}})}function Yae(d){return vre(ho(d,p))}function k1(d){return function(){return d}}function Gae(d,h){return d==null||d!==d?h:d}var Jae=SA(),Xae=SA(!0);function _r(d){return d}function E1(d){return ZD(typeof d=="function"?d:ho(d,p))}function Zae(d){return eA(ho(d,p))}function Qae(d,h){return tA(d,ho(h,p))}var ele=gt(function(d,h){return function(w){return Yu(w,d,h)}}),tle=gt(function(d,h){return function(w){return Yu(d,w,h)}});function O1(d,h,w){var E=jn(h),$=em(h,E);w==null&&!(sn(h)&&($.length||!E.length))&&(w=h,h=d,d=this,$=em(h,jn(h)));var q=!(sn(w)&&"chain"in w)||!!w.chain,G=zi(d);return uo($,function(Q){var de=h[Q];d[Q]=de,G&&(d.prototype[Q]=function(){var Te=this.__chain__;if(q||Te){var ke=d(this.__wrapped__),_e=ke.__actions__=Er(this.__actions__);return _e.push({func:de,args:arguments,thisArg:d}),ke.__chain__=Te,ke}return de.apply(d,Es([this.value()],arguments))})}),d}function nle(){return Qn._===this&&(Qn._=Mne),this}function M1(){}function rle(d){return d=dt(d),gt(function(h){return nA(h,d)})}var ole=i1(Qt),ile=i1(CD),sle=i1(Iv);function xP(d){return f1(d)?Dv(ii(d)):Lre(d)}function ale(d){return function(h){return d==null?n:Aa(d,h)}}var lle=TA(),cle=TA(!0);function _1(){return[]}function I1(){return!1}function ule(){return{}}function dle(){return""}function fle(){return!0}function ple(d,h){if(d=dt(d),d<1||d>j)return[];var w=Y,E=sr(d,Y);h=Ze(h),d-=Y;for(var $=Nv(E,h);++w<d;)h(w);return $}function hle(d){return ut(d)?Qt(d,ii):Vr(d)?[d]:Er(zA(Nt(d)))}function mle(d){var h=++Ene;return Nt(d)+h}var gle=sm(function(d,h){return d+h},0),yle=s1("ceil"),ble=sm(function(d,h){return d/h},1),vle=s1("floor");function xle(d){return d&&d.length?Qh(d,_r,Uv):n}function wle(d,h){return d&&d.length?Qh(d,Ze(h,2),Uv):n}function Sle(d){return ED(d,_r)}function Cle(d,h){return ED(d,Ze(h,2))}function Tle(d){return d&&d.length?Qh(d,_r,Gv):n}function kle(d,h){return d&&d.length?Qh(d,Ze(h,2),Gv):n}var Ele=sm(function(d,h){return d*h},1),Ole=s1("round"),Mle=sm(function(d,h){return d-h},0);function _le(d){return d&&d.length?Pv(d,_r):0}function Ile(d,h){return d&&d.length?Pv(d,Ze(h,2)):0}return W.after=Zie,W.ary=XA,W.assign=Rse,W.assignIn=dP,W.assignInWith=vm,W.assignWith=zse,W.at=Vse,W.before=ZA,W.bind=b1,W.bindAll=qae,W.bindKey=QA,W.castArray=use,W.chain=YA,W.chunk=voe,W.compact=xoe,W.concat=woe,W.cond=Kae,W.conforms=Yae,W.constant=k1,W.countBy=_ie,W.create=Hse,W.curry=eP,W.curryRight=tP,W.debounce=nP,W.defaults=Wse,W.defaultsDeep=jse,W.defer=Qie,W.delay=ese,W.difference=Soe,W.differenceBy=Coe,W.differenceWith=Toe,W.drop=koe,W.dropRight=Eoe,W.dropRightWhile=Ooe,W.dropWhile=Moe,W.fill=_oe,W.filter=Die,W.flatMap=Nie,W.flatMapDeep=$ie,W.flatMapDepth=Lie,W.flatten=jA,W.flattenDeep=Ioe,W.flattenDepth=Doe,W.flip=tse,W.flow=Jae,W.flowRight=Xae,W.fromPairs=Aoe,W.functions=Xse,W.functionsIn=Zse,W.groupBy=Bie,W.initial=Noe,W.intersection=$oe,W.intersectionBy=Loe,W.intersectionWith=Boe,W.invert=eae,W.invertBy=tae,W.invokeMap=Rie,W.iteratee=E1,W.keyBy=zie,W.keys=jn,W.keysIn=Mr,W.map=pm,W.mapKeys=rae,W.mapValues=oae,W.matches=Zae,W.matchesProperty=Qae,W.memoize=mm,W.merge=iae,W.mergeWith=fP,W.method=ele,W.methodOf=tle,W.mixin=O1,W.negate=gm,W.nthArg=rle,W.omit=sae,W.omitBy=aae,W.once=nse,W.orderBy=Vie,W.over=ole,W.overArgs=rse,W.overEvery=ile,W.overSome=sle,W.partial=v1,W.partialRight=rP,W.partition=Hie,W.pick=lae,W.pickBy=pP,W.property=xP,W.propertyOf=ale,W.pull=Voe,W.pullAll=qA,W.pullAllBy=Hoe,W.pullAllWith=Woe,W.pullAt=joe,W.range=lle,W.rangeRight=cle,W.rearg=ose,W.reject=Uie,W.remove=Uoe,W.rest=ise,W.reverse=g1,W.sampleSize=Kie,W.set=uae,W.setWith=dae,W.shuffle=Yie,W.slice=qoe,W.sortBy=Xie,W.sortedUniq=Qoe,W.sortedUniqBy=eie,W.split=Nae,W.spread=sse,W.tail=tie,W.take=nie,W.takeRight=rie,W.takeRightWhile=oie,W.takeWhile=iie,W.tap=xie,W.throttle=ase,W.thru=fm,W.toArray=lP,W.toPairs=hP,W.toPairsIn=mP,W.toPath=hle,W.toPlainObject=uP,W.transform=fae,W.unary=lse,W.union=sie,W.unionBy=aie,W.unionWith=lie,W.uniq=cie,W.uniqBy=uie,W.uniqWith=die,W.unset=pae,W.unzip=y1,W.unzipWith=KA,W.update=hae,W.updateWith=mae,W.values=Ql,W.valuesIn=gae,W.without=fie,W.words=bP,W.wrap=cse,W.xor=pie,W.xorBy=hie,W.xorWith=mie,W.zip=gie,W.zipObject=yie,W.zipObjectDeep=bie,W.zipWith=vie,W.entries=hP,W.entriesIn=mP,W.extend=dP,W.extendWith=vm,O1(W,W),W.add=gle,W.attempt=vP,W.camelCase=xae,W.capitalize=gP,W.ceil=yle,W.clamp=yae,W.clone=dse,W.cloneDeep=pse,W.cloneDeepWith=hse,W.cloneWith=fse,W.conformsTo=mse,W.deburr=yP,W.defaultTo=Gae,W.divide=ble,W.endsWith=wae,W.eq=Do,W.escape=Sae,W.escapeRegExp=Cae,W.every=Iie,W.find=Aie,W.findIndex=HA,W.findKey=Use,W.findLast=Pie,W.findLastIndex=WA,W.findLastKey=qse,W.floor=vle,W.forEach=GA,W.forEachRight=JA,W.forIn=Kse,W.forInRight=Yse,W.forOwn=Gse,W.forOwnRight=Jse,W.get=S1,W.gt=gse,W.gte=yse,W.has=Qse,W.hasIn=C1,W.head=UA,W.identity=_r,W.includes=Fie,W.indexOf=Poe,W.inRange=bae,W.invoke=nae,W.isArguments=$a,W.isArray=ut,W.isArrayBuffer=bse,W.isArrayLike=Or,W.isArrayLikeObject=Cn,W.isBoolean=vse,W.isBuffer=Ps,W.isDate=xse,W.isElement=wse,W.isEmpty=Sse,W.isEqual=Cse,W.isEqualWith=Tse,W.isError=x1,W.isFinite=kse,W.isFunction=zi,W.isInteger=oP,W.isLength=ym,W.isMap=iP,W.isMatch=Ese,W.isMatchWith=Ose,W.isNaN=Mse,W.isNative=_se,W.isNil=Dse,W.isNull=Ise,W.isNumber=sP,W.isObject=sn,W.isObjectLike=yn,W.isPlainObject=ed,W.isRegExp=w1,W.isSafeInteger=Ase,W.isSet=aP,W.isString=bm,W.isSymbol=Vr,W.isTypedArray=Zl,W.isUndefined=Pse,W.isWeakMap=Nse,W.isWeakSet=$se,W.join=Foe,W.kebabCase=Tae,W.last=go,W.lastIndexOf=Roe,W.lowerCase=kae,W.lowerFirst=Eae,W.lt=Lse,W.lte=Bse,W.max=xle,W.maxBy=wle,W.mean=Sle,W.meanBy=Cle,W.min=Tle,W.minBy=kle,W.stubArray=_1,W.stubFalse=I1,W.stubObject=ule,W.stubString=dle,W.stubTrue=fle,W.multiply=Ele,W.nth=zoe,W.noConflict=nle,W.noop=M1,W.now=hm,W.pad=Oae,W.padEnd=Mae,W.padStart=_ae,W.parseInt=Iae,W.random=vae,W.reduce=Wie,W.reduceRight=jie,W.repeat=Dae,W.replace=Aae,W.result=cae,W.round=Ole,W.runInContext=ae,W.sample=qie,W.size=Gie,W.snakeCase=Pae,W.some=Jie,W.sortedIndex=Koe,W.sortedIndexBy=Yoe,W.sortedIndexOf=Goe,W.sortedLastIndex=Joe,W.sortedLastIndexBy=Xoe,W.sortedLastIndexOf=Zoe,W.startCase=$ae,W.startsWith=Lae,W.subtract=Mle,W.sum=_le,W.sumBy=Ile,W.template=Bae,W.times=ple,W.toFinite=Vi,W.toInteger=dt,W.toLength=cP,W.toLower=Fae,W.toNumber=yo,W.toSafeInteger=Fse,W.toString=Nt,W.toUpper=Rae,W.trim=zae,W.trimEnd=Vae,W.trimStart=Hae,W.truncate=Wae,W.unescape=jae,W.uniqueId=mle,W.upperCase=Uae,W.upperFirst=T1,W.each=GA,W.eachRight=JA,W.first=UA,O1(W,(function(){var d={};return ri(W,function(h,w){$t.call(W.prototype,w)||(d[w]=h)}),d})(),{chain:!1}),W.VERSION=r,uo(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){W[d].placeholder=W}),uo(["drop","take"],function(d,h){St.prototype[d]=function(w){w=w===n?1:$n(dt(w),0);var E=this.__filtered__&&!h?new St(this):this.clone();return E.__filtered__?E.__takeCount__=sr(w,E.__takeCount__):E.__views__.push({size:sr(w,Y),type:d+(E.__dir__<0?"Right":"")}),E},St.prototype[d+"Right"]=function(w){return this.reverse()[d](w).reverse()}}),uo(["filter","map","takeWhile"],function(d,h){var w=h+1,E=w==P||w==D;St.prototype[d]=function($){var q=this.clone();return q.__iteratees__.push({iteratee:Ze($,3),type:w}),q.__filtered__=q.__filtered__||E,q}}),uo(["head","last"],function(d,h){var w="take"+(h?"Right":"");St.prototype[d]=function(){return this[w](1).value()[0]}}),uo(["initial","tail"],function(d,h){var w="drop"+(h?"":"Right");St.prototype[d]=function(){return this.__filtered__?new St(this):this[w](1)}}),St.prototype.compact=function(){return this.filter(_r)},St.prototype.find=function(d){return this.filter(d).head()},St.prototype.findLast=function(d){return this.reverse().find(d)},St.prototype.invokeMap=gt(function(d,h){return typeof d=="function"?new St(this):this.map(function(w){return Yu(w,d,h)})}),St.prototype.reject=function(d){return this.filter(gm(Ze(d)))},St.prototype.slice=function(d,h){d=dt(d);var w=this;return w.__filtered__&&(d>0||h<0)?new St(w):(d<0?w=w.takeRight(-d):d&&(w=w.drop(d)),h!==n&&(h=dt(h),w=h<0?w.dropRight(-h):w.take(h-d)),w)},St.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},St.prototype.toArray=function(){return this.take(Y)},ri(St.prototype,function(d,h){var w=/^(?:filter|find|map|reject)|While$/.test(h),E=/^(?:head|last)$/.test(h),$=W[E?"take"+(h=="last"?"Right":""):h],q=E||/^find/.test(h);$&&(W.prototype[h]=function(){var G=this.__wrapped__,Q=E?[1]:arguments,de=G instanceof St,Te=Q[0],ke=de||ut(G),_e=function(xt){var Et=$.apply(W,Es([xt],Q));return E&&Re?Et[0]:Et};ke&&w&&typeof Te=="function"&&Te.length!=1&&(de=ke=!1);var Re=this.__chain__,Ge=!!this.__actions__.length,et=q&&!Re,ht=de&&!Ge;if(!q&&ke){G=ht?G:new St(this);var tt=d.apply(G,Q);return tt.__actions__.push({func:fm,args:[_e],thisArg:n}),new po(tt,Re)}return et&&ht?d.apply(this,Q):(tt=this.thru(_e),et?E?tt.value()[0]:tt.value():tt)})}),uo(["pop","push","shift","sort","splice","unshift"],function(d){var h=Fh[d],w=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",E=/^(?:pop|shift)$/.test(d);W.prototype[d]=function(){var $=arguments;if(E&&!this.__chain__){var q=this.value();return h.apply(ut(q)?q:[],$)}return this[w](function(G){return h.apply(ut(G)?G:[],$)})}}),ri(St.prototype,function(d,h){var w=W[h];if(w){var E=w.name+"";$t.call(Kl,E)||(Kl[E]=[]),Kl[E].push({name:h,func:w})}}),Kl[im(n,S).name]=[{name:"wrapper",func:n}],St.prototype.clone=jne,St.prototype.reverse=Une,St.prototype.value=qne,W.prototype.at=wie,W.prototype.chain=Sie,W.prototype.commit=Cie,W.prototype.next=Tie,W.prototype.plant=Eie,W.prototype.reverse=Oie,W.prototype.toJSON=W.prototype.valueOf=W.prototype.value=Mie,W.prototype.first=W.prototype.head,Vu&&(W.prototype[Vu]=kie),W}),jl=Cne();Oa?((Oa.exports=jl)._=jl,Ev._=jl):Qn._=jl}).call(K7)})(du,du.exports)),du.exports}var bs=Y7();const SM=Un(bs),G7=t=>{const{name:e,onInputChange:n,onChange:r,onFilter:o,onFilterError:i,fetchOnCount:s=1,preFilterMessage:a=s?"Start typing to see options...":t.noOptionsText,noOptionsText:l,filterOptions:u=L=>L,includeInputInList:f=!0,autoComplete:p=!0,...m}=t,[b,v,y]=Ht.useField(e),{setValue:x}=y,[S,k]=J.useState(""),[T,C]=J.useState([]),[O,I]=J.useState(!1),N=bs.debounce(async(L,V)=>{try{I(!0);const M=await o(L.input);V(M)}catch(M){throw M}finally{I(!1)}},400);return J.useEffect(()=>{if(S===""){C(b.value?[b.value]:[]);return}S.length>=s&&N({input:S},L=>{let V=[];L?(V=L,b.value&&(V=[b.value,...L.filter(M=>JSON.stringify(M)!==JSON.stringify(b.value))])):b.value&&(V=[b.value]),C(V)})},[b.value,S]),g.jsx(xM,{name:e,loading:O,filterOptions:u,noOptionsText:S.length<s?a:l,options:T,autoComplete:p,includeInputInList:f,onChange:(L,V,M,B)=>{C(V?[V,...T]:T),x(V),r&&r(L,V,M,B)},onInputChange:(L,V,M)=>{k(V),n&&n(L,V,M)},...m})},J7=t=>{const{name:e,label:n=Ln(e),options:r=[],filterSelectedOptions:o=!0,variant:i="outlined",staticLabel:s=!1,staticLabelProps:a={fontSize:".9em",color:"#808080"},readOnly:l,margin:u="dense",fullWidth:f=!0,required:p,onChange:m,getOptionLabel:b=P=>typeof P=="string"?P:String(P),isOptionEqualToValue:v=(P,_)=>JSON.stringify(P)===JSON.stringify(_),useFieldAsValue:y,errorMode:x="normal",disableClearable:S=!0,...k}=t,[T,C,O]=Ht.useField(e),{setValue:I}=O,{error:N}=C;y&&t.freeSolo&&console.error("MultiAutocomplete: `freeSolo` with `useFieldAsValue` not currently supported");const L={...lr(k,["useFieldAsValue","errorMode"]),disableClearable:S,getOptionLabel:b,options:r,filterSelectedOptions:o,isOptionEqualToValue:v,renderInput:P=>g.jsx(z.TextField,{...P,variant:i,label:s?void 0:n,error:!!N,required:p}),onChange:(P,_,D,R)=>{I(y?_.map(j=>j[y]):_),m&&m(P,_,D,R)},fullWidth:!0,value:y?r.filter(P=>T.value.includes(P[y]))||[]:T.value,slotProps:{paper:{elevation:8,sx:{borderRadius:2}}}},V=P=>(P??[]).length===0?"":(y?r.filter(D=>P.includes(D[y]))||[]:P).map(D=>b(D)).join(", "),M=Hs(),B=l??M,{showDiff:H,getPreviousValue:F}=Ws();return B||H?g.jsx(Ti,{label:n,value:V(T.value),staticLabel:s,staticLabelProps:a,showDiff:H,diffSnapshot:V(F(e)),diffMode:"comma"}):g.jsxs(z.FormControl,{margin:u,fullWidth:f,required:p,children:[s&&g.jsx(z.Typography,{...a,children:n}),g.jsxs(z.Box,{children:[g.jsx(z.Autocomplete,{...L,multiple:!0}),g.jsx(yr,{name:e,id:`${e}-err`,errorMode:x})]})]})},CM=t=>{const{name:e,label:n=Ln(e),helperText:r,required:o=!1,labelPlacement:i="end",labelAlignment:s=i==="end"||i==="start"?"top":"center",readOnly:a=!1,staticLabelProps:l={fontSize:".9em",color:"#808080"},onChange:u,errorMode:f="normal",...p}=t;s==="top"&&(i==="bottom"||i==="top")&&console.error(`Checkbox: Ignoring labelAlignment='top'. labelAlignment cannot be 'top' when labelPlacement=${i}`);const m=Ht.useField({name:e}),b=m[0],v=m[2],y=r?g.jsxs("div",{children:[g.jsx("p",{style:{margin:0},children:n}),g.jsx(z.Typography,{variant:"caption",style:{fontSize:"0.85rem"},children:r})]}):n,x=s==="top"&&(i==="start"||i==="end");if(a)return b.value&&g.jsx(z.Typography,{...l,children:y});const S=g.jsx(z.FormControlLabel,{sx:{alignItems:x?"flex-start":"center"},label:g.jsx("span",{"data-testid":n,style:{display:"inline-block",marginTop:x?"10px":0},children:y}),required:o,labelPlacement:i,control:g.jsx(z.Checkbox,{"data-testid":"checkbox",...p,...b,onChange:(k,T)=>{v.setValue(k.target.checked),u&&u(k,T)},checked:b.value})});return g.jsxs(z.Box,{children:[S,g.jsx(yr,{name:e,id:`${e}-err`,errorMode:f})]})},ki=t=>{var H;const{name:e,label:n=Ln(e),format:r="",autoFormat:o=r,placeholder:i=n,staticLabel:s=!1,staticLabelProps:a={fontSize:".9em",color:"#808080"},readOnly:l,startIcon:u,endIcon:f,margin:p="dense",noTrimOnBlur:m=!1,errorMode:b="normal",diffMode:v="sentence"}=t,[y,x,S]=Ht.useField({name:e}),{setValue:k}=S,{value:T}=y,{error:C}=x;T===void 0&&console.error(`Please set an initial value for ${e}`),!r&&o&&console.error("Can't auto format when there is no format");const O=F=>{y.onChange(F),t.onChange&&t.onChange(F)},I=F=>{y.onBlur(F),t.onBlur&&t.onBlur(F)},N=["autoFormat","format","staticLabel","staticLabelProps","endIcon","startIcon","errorMode","diffMode"],L=Hs(),V=l??L,{showDiff:M,getPreviousValue:B}=Ws();return V||M?g.jsx(Ti,{label:n,value:T,staticLabel:s,staticLabelProps:a,showDiff:M,diffSnapshot:B(e),diffMode:v}):g.jsxs(z.FormControl,{margin:p,fullWidth:!0,children:[s&&g.jsx(z.Typography,{...a,children:n}),g.jsxs(z.Box,{children:[g.jsx(z.TextField,{variant:"outlined",fullWidth:!0,...y,id:`${e}-tf`,error:!!C,placeholder:i,...lr({...t},N),onChange:O,label:s?void 0:n,slotProps:{...t.slotProps,input:{endAdornment:f,startAdornment:u,...(H=t.slotProps)==null?void 0:H.input}},onBlur:F=>{let P=m?F.target.value:F.target.value.trim();o&&(P=IP(P,r,T,F.target)),T!==P?k(P).then(()=>{I(F)}):I(F)}}),g.jsx(yr,{name:e,id:`${e}-err`,errorMode:b})]})]})},X7=t=>{const{name:e,checkboxes:n=[],label:r=Ln(e),labelPlacement:o="end",labelAlignment:i=o==="end"||o==="start"?"top":"center",required:s=!1,disabled:a=!1,readOnly:l=!1,min:u=0,max:f=n.length,minMaxSubtitle:p="Please select between {min} and {max} options",maxSubtitle:m="Up to {max} max",minSubtitle:b="Please select {min} or more",margin:v="dense",staticLabelProps:y={fontSize:".9em",color:"#808080"},errorMode:x="normal",onChange:S}=t,[k,T,C]=Ht.useField({name:e}),{setValue:O}=C,{value:I}=k,{error:N}=T,{setFieldValue:L}=Ht.useFormikContext();(u<0||u>=n.length)&&console.error(`CheckboxGroup: "min" cannot be ${u}. It must be a value between 0 and ${n.length-1}.`),(f<=1||f>n.length)&&console.error(`CheckboxGroup: "max" must be a value between 2 and ${n.length}.`),i==="top"&&(o==="bottom"||o==="top")&&console.error(`CheckboxGroup: Ignoring labelAlignment='top'. labelAlignment cannot be 'top' when labelPlacement=${o}`);const V=()=>t.labelPlacement=="start"?"right":t.labelPlacement=="top"||t.labelPlacement=="bottom"?"center":"left",M=_=>typeof _=="string"?_:!_.textField&&!_.helperText?_.label:g.jsxs(z.Box,{display:"flex",flexDirection:"row",justifyContent:"center",gap:"0.5rem",alignItems:"baseline",children:[g.jsxs(z.Box,{display:"flex",flexDirection:"column",justifyContent:"center",children:[g.jsx("p",{style:{margin:0},children:_.label}),_.helperText&&g.jsx(z.Typography,{variant:"caption",style:{fontSize:"0.85rem"},children:_.helperText})]}),_.textField&&g.jsx(ki,{label:"",size:"small",margin:"none",sx:{"& .MuiInputBase-input":{height:14}},..._.textField})]}),B=n.map(_=>{const D=typeof _=="string"?_:_.label,R=i==="top"&&(o==="start"||o==="end");return g.jsx(z.FormControlLabel,{sx:{alignItems:R?"flex-start":"center"},value:D,control:g.jsx(z.Checkbox,{}),label:g.jsx("div",{"data-testid":typeof _=="string"?_:_.label,style:{marginTop:R?"10px":0},children:M(_)}),labelPlacement:o,checked:I.includes(D),disabled:a||!I.includes(D)&&I.length===f,style:{textAlign:V()}},`checkbox-group-${D}`)}),H=()=>{if(f<n.length&&u>0)return g.jsx(z.Typography,{variant:"subtitle2",children:p.replace("{min}",`${u}`).replace("{max}",`${f}`)});if(f<n.length)return g.jsx(z.Typography,{variant:"subtitle2",children:m.replace("{max}",`${f}`)});if(u>0)return g.jsx(z.Typography,{variant:"subtitle2",children:b.replace("{min}",`${u}`)})},F=()=>g.jsxs(z.Box,{children:[g.jsx(z.Typography,{...y,children:r}),I.join(", ")]}),P=_=>{const D=_.target.value,R=_.target.checked,j=n.find(U=>typeof U=="string"?U===D:U.label===D);let K;R?K=[...I,D]:(j&&typeof j=="object"&&j.textField&&j.textField.name&&L(j.textField.name,""),K=I.filter(U=>U!=D)),O(K),S==null||S(K)};return l?F():g.jsxs(z.FormControl,{onChange:P,fullWidth:!0,margin:v,error:!!N,children:[g.jsx(z.FormLabel,{focused:t.focused,htmlFor:e,required:s,disabled:t.disableLabel,children:r}),H(),B,g.jsx(yr,{name:e,id:`${e}-err`,errorMode:x})]})},TM=Le(g.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"CloudUpload"),kM=t=>{const{name:e,multiple:n=!1,readOnly:r=!1,variant:o=n?"drag-and-drop":"button",duplicateFilesCallback:i,incorrectFileTypesCallback:s,staticLabelProps:a={fontSize:".9em",color:"#808080"},errorMode:l="normal"}=t,[u,f,p]=Ht.useField({name:e}),{setValue:m}=p,b=u.value,v=t.fileType?Array.isArray(t.fileType)?t.fileType:[t.fileType]:[],y=t.subtitle??(v.length>0?`Allowed file extensions: ${v.join(", ")}`:""),x=V=>{k(Array.from(V.target.files??[]))},S=V=>{V.preventDefault(),k(Array.from(V.dataTransfer.files))},k=V=>{if(V&&V.length>0){const M=b?Array.isArray(b)?b:[b]:[],B=bs.partition(V,H=>M.find(F=>C(H,F)));if(V=B[1],i&&B[0].length>0&&i(B[0]),v.length>0){const H=bs.partition(V,F=>v.find(P=>F.name.endsWith(P)));V=H[0],s&&H[1].length>0&&s(H[1])}n?m([...T(),...V]):!Array.isArray(b)&&V.length>0&&m(V[0])}},T=()=>b?Array.isArray(b)?b:[b]:[],C=(V,M)=>V.lastModified===M.lastModified&&V.name===M.name&&V.type===M.type&&V.size===M.size,O=()=>T().map(V=>V.name).join(", "),I=g.jsx(yr,{name:e,id:`${e}-err`,errorMode:l});return r?g.jsx(z.Typography,{"data-testid":"fileupload-readonly",...a,children:O()}):o==="drag-and-drop"?g.jsxs("div",{style:{border:`4px dashed ${f.error?"red":"lightgray"}`,padding:"30px 10px",display:"flex",alignItems:"center",flexDirection:"column"},onDrop:S,onDragOver:V=>V.preventDefault(),"data-testid":"dropzone",children:[g.jsx(TM,{color:"primary",sx:{fontSize:"40px"}}),g.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"baseline"},children:[g.jsx(z.Typography,{children:"Drag and drop or"}),g.jsxs(z.Button,{component:"label",role:void 0,variant:"text",tabIndex:-1,sx:{textTransform:"none",fontSize:"16px",textDecoration:"underline"},children:["browse",g.jsx("input",{"data-testid":"file-input",id:e,hidden:!0,type:"file",onChange:x,multiple:!0,accept:v==null?void 0:v.toString()})]})]}),y&&g.jsx(z.Typography,{variant:"caption",children:y}),I]}):g.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[g.jsx("div",{style:{display:"flex",alignItems:"center",marginBottom:"4px"},children:g.jsxs(z.Button,{component:"label",role:void 0,variant:"contained",tabIndex:-1,startIcon:g.jsx(TM,{}),style:{whiteSpace:"nowrap"},children:["Select a file",g.jsx(Z7,{"data-testid":"file-input",id:e,type:"file",onChange:x,accept:v==null?void 0:v.toString()})]})}),I]})},Z7=z.styled("input")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,overflow:"hidden",position:"absolute",bottom:0,left:0,whiteSpace:"nowrap",width:1}),Q7=Le(g.jsx("path",{d:"M15 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V7zM6 20V4h8v4h4v12zm10-10v5c0 2.21-1.79 4-4 4s-4-1.79-4-4V8.5c0-1.47 1.26-2.64 2.76-2.49 1.3.13 2.24 1.32 2.24 2.63V15h-2V8.5c0-.28-.22-.5-.5-.5s-.5.22-.5.5V15c0 1.1.9 2 2 2s2-.9 2-2v-5z"}),"FilePresent"),e0=Le(g.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),eU=t=>{const{name:e}=t,[n,,r]=Ht.useField({name:e}),{setValue:o}=r,i=n.value;return g.jsx("div",{style:{width:"100%"},children:i.map(s=>g.jsx(z.Card,{sx:{margin:"10px 0px"},children:g.jsxs(z.CardContent,{style:{display:"flex",alignItems:"center",padding:"8px 12px"},children:[g.jsx(Q7,{sx:{color:"gray",fontSize:"20px"}}),g.jsx(z.Typography,{sx:{padding:"8px",overflowWrap:"anywhere"},children:s.name}),g.jsx(z.IconButton,{"aria-label":"remove file",onClick:()=>o(i.filter(a=>a!==s)),edge:"end",style:{marginLeft:"auto",order:"2"},children:g.jsx(e0,{})})]})},`${s.name}-${s.type}-${s.size}-${s.lastModified}`))})};var t0,EM;function n0(){if(EM)return t0;EM=1;function t(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}return t0=t,t0}var r0,OM;function tU(){if(OM)return r0;OM=1;var t=typeof ji=="object"&&ji&&ji.Object===Object&&ji;return r0=t,r0}var o0,MM;function _M(){if(MM)return o0;MM=1;var t=tU(),e=typeof self=="object"&&self&&self.Object===Object&&self,n=t||e||Function("return this")();return o0=n,o0}var i0,IM;function nU(){if(IM)return i0;IM=1;var t=_M(),e=function(){return t.Date.now()};return i0=e,i0}var s0,DM;function rU(){if(DM)return s0;DM=1;var t=/\s/;function e(n){for(var r=n.length;r--&&t.test(n.charAt(r)););return r}return s0=e,s0}var a0,AM;function oU(){if(AM)return a0;AM=1;var t=rU(),e=/^\s+/;function n(r){return r&&r.slice(0,t(r)+1).replace(e,"")}return a0=n,a0}var l0,PM;function NM(){if(PM)return l0;PM=1;var t=_M(),e=t.Symbol;return l0=e,l0}var c0,$M;function iU(){if($M)return c0;$M=1;var t=NM(),e=Object.prototype,n=e.hasOwnProperty,r=e.toString,o=t?t.toStringTag:void 0;function i(s){var a=n.call(s,o),l=s[o];try{s[o]=void 0;var u=!0}catch{}var f=r.call(s);return u&&(a?s[o]=l:delete s[o]),f}return c0=i,c0}var u0,LM;function sU(){if(LM)return u0;LM=1;var t=Object.prototype,e=t.toString;function n(r){return e.call(r)}return u0=n,u0}var d0,BM;function aU(){if(BM)return d0;BM=1;var t=NM(),e=iU(),n=sU(),r="[object Null]",o="[object Undefined]",i=t?t.toStringTag:void 0;function s(a){return a==null?a===void 0?o:r:i&&i in Object(a)?e(a):n(a)}return d0=s,d0}var f0,FM;function lU(){if(FM)return f0;FM=1;function t(e){return e!=null&&typeof e=="object"}return f0=t,f0}var p0,RM;function cU(){if(RM)return p0;RM=1;var t=aU(),e=lU(),n="[object Symbol]";function r(o){return typeof o=="symbol"||e(o)&&t(o)==n}return p0=r,p0}var h0,zM;function uU(){if(zM)return h0;zM=1;var t=oU(),e=n0(),n=cU(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt;function l(u){if(typeof u=="number")return u;if(n(u))return r;if(e(u)){var f=typeof u.valueOf=="function"?u.valueOf():u;u=e(f)?f+"":f}if(typeof u!="string")return u===0?u:+u;u=t(u);var p=i.test(u);return p||s.test(u)?a(u.slice(2),p?2:8):o.test(u)?r:+u}return h0=l,h0}var m0,VM;function dU(){if(VM)return m0;VM=1;var t=n0(),e=nU(),n=uU(),r="Expected a function",o=Math.max,i=Math.min;function s(a,l,u){var f,p,m,b,v,y,x=0,S=!1,k=!1,T=!0;if(typeof a!="function")throw new TypeError(r);l=n(l)||0,t(u)&&(S=!!u.leading,k="maxWait"in u,m=k?o(n(u.maxWait)||0,l):m,T="trailing"in u?!!u.trailing:T);function C(F){var P=f,_=p;return f=p=void 0,x=F,b=a.apply(_,P),b}function O(F){return x=F,v=setTimeout(L,l),S?C(F):b}function I(F){var P=F-y,_=F-x,D=l-P;return k?i(D,m-_):D}function N(F){var P=F-y,_=F-x;return y===void 0||P>=l||P<0||k&&_>=m}function L(){var F=e();if(N(F))return V(F);v=setTimeout(L,I(F))}function V(F){return v=void 0,T&&f?C(F):(f=p=void 0,b)}function M(){v!==void 0&&clearTimeout(v),x=0,f=y=p=v=void 0}function B(){return v===void 0?b:V(e())}function H(){var F=e(),P=N(F);if(f=arguments,p=this,y=F,P){if(v===void 0)return O(y);if(k)return clearTimeout(v),v=setTimeout(L,l),C(y)}return v===void 0&&(v=setTimeout(L,l)),b}return H.cancel=M,H.flush=B,H}return m0=s,m0}var g0,HM;function fU(){if(HM)return g0;HM=1;var t=dU(),e=n0(),n="Expected a function";function r(o,i,s){var a=!0,l=!0;if(typeof o!="function")throw new TypeError(n);return e(s)&&(a="leading"in s?!!s.leading:a,l="trailing"in s?!!s.trailing:l),t(o,i,{leading:a,maxWait:i,trailing:l})}return g0=r,g0}var pU=fU();const hU=Un(pU),mU=Le(g.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"LocationOn");var dp={exports:{}},gU=dp.exports,WM;function yU(){return WM||(WM=1,(function(t,e){(function(n,r){t.exports=r()})(gU,(()=>{return n={705:o=>{o.exports=function(i,s){const a=[];return s.length===0?a.push({text:i,highlight:!1}):s[0][0]>0&&a.push({text:i.slice(0,s[0][0]),highlight:!1}),s.forEach(((l,u)=>{const f=l[0],p=l[1];a.push({text:i.slice(f,p),highlight:!0}),u===s.length-1?p<i.length&&a.push({text:i.slice(p,i.length),highlight:!1}):p<s[u+1][0]&&a.push({text:i.slice(p,s[u+1][0]),highlight:!1})})),a}}},r={},(function o(i){var s=r[i];if(s!==void 0)return s.exports;var a=r[i]={exports:{}};return n[i](a,a.exports,o),a.exports})(705);var n,r}))})(dp)),dp.exports}var bU=yU();const vU=Un(bU),xU=t=>{const{listItemProps:e,option:n,resultIcon:r,highlightMatches:o}=t,{main_text:i,secondary_text:s,main_text_matched_substrings:a}=n.structured_formatting,l=vU(i,a.map(u=>[u.offset,u.offset+u.length]));return g.jsx("li",{...lr({...e},["key"]),"data-testid":`loc-${n.place_id}`,children:g.jsxs(z.Box,{display:"flex",flexDirection:"row",alignItems:"center",children:[r?A.cloneElement(r):null,g.jsxs(z.Box,{children:[l.map(u=>{const f=o&&u.highlight?700:400;return g.jsx("span",{style:{fontWeight:f},children:u.text},`${n.place_id}_${u.text}`)}),g.jsx(z.Typography,{variant:"body2",color:"textSecondary",children:s})]})]})})};function wU(t,e,n){if(!e)return;const r=document.createElement("script");r.setAttribute("async",""),r.setAttribute("id",n),r.src=t,r.onerror=()=>console.error(`Failed to load script: ${t}`),e.appendChild(r)}const fu={current:null},SU=t=>{const{name:e,label:n=Ln(e),resultIcon:r=g.jsx(mU,{}),apiKey:o,highlightMatches:i=!0,types:s,variant:a="outlined",staticLabel:l=!1,staticLabelProps:u={fontSize:".9em",color:"#808080"},readOnly:f=!1,margin:p="dense",errorMode:m="normal"}=t,[b,v]=A.useState(null),[y,x]=A.useState(""),[S,k]=A.useState([]),T=A.useRef(!1),[,C,O]=Ht.useField(e),{setValue:I}=O,{error:N}=C;typeof window<"u"&&!T.current&&(document.querySelector("#google-maps")||wU(`https://maps.googleapis.com/maps/api/js?key=${o}&libraries=places`,document.querySelector("head"),"google-maps"),T.current=!0);const L=A.useMemo(()=>hU((D,R)=>{fu.current&&fu.current.getPlacePredictions(D,R)},200),[]);A.useEffect(()=>{let D=!0;if(!fu.current&&window.google&&(fu.current=new window.google.maps.places.AutocompleteService),!fu.current)return;if(y===""){k(b?[b]:[]);return}return L({input:y,types:s?[s]:[]},K=>{if(D){let U=[];b&&(U=[b]),K&&(U=[...U,...K]);const Y=U.filter((fe,ue,pe)=>ue===pe.findIndex(Z=>Z.place_id===fe.place_id));k(Y)}}),()=>{D=!1}},[b,y,L,s]);const V=A.useCallback(D=>{const j=(D?[D,...S]:S).filter((K,U,Y)=>U===Y.findIndex(fe=>fe.place_id===K.place_id));k(j),v(D),I(D?D.description:"")},[S,k,v,I]),M=D=>{x(D)},B=["name","apiKey","resultIcon","highlightMatches","variant","staticLabel","staticLabelProps","margin","errorMode"],H=D=>g.jsx(z.TextField,{margin:p,variant:a,...D,...lr({...t},B),label:l?void 0:n,hiddenLabel:l,error:!!N}),F=D=>typeof D=="string"?D:D.description,P=(D,R)=>g.jsx(xU,{listItemProps:D,option:R,resultIcon:r,highlightMatches:i},R.place_id);A.useEffect(()=>{const D=R=>{R.key==="Enter"&&S.length>0&&V(S[0])};return window.addEventListener("keydown",D),()=>{window.removeEventListener("keydown",D)}},[S,V]);const _=g.jsx(z.Autocomplete,{id:`${e}-loc`,"data-testid":"location-autocomplete",getOptionLabel:F,filterOptions:D=>D,options:S,autoComplete:!0,includeInputInList:!0,filterSelectedOptions:!0,value:b,onChange:(D,R)=>V(R),onInputChange:(D,R)=>M(R),disabled:t.disabled,renderOption:P,renderInput:H});return g.jsxs(z.FormControl,{margin:p,fullWidth:!0,children:[(l||f)&&g.jsx(z.Typography,{...u,children:n}),f?g.jsx(z.Typography,{children:b==null?void 0:b.description}):g.jsxs(z.Box,{children:[_,g.jsx(yr,{name:e,id:`${e}-err`,errorMode:m})]})]})},jM=t=>{const{name:e,radios:n=[],label:r=Ln(e),labelPlacement:o="end",labelAlignment:i=o==="end"||o==="start"?"top":"center",required:s=!1,disabled:a=!1,readOnly:l,margin:u="dense",onChange:f,staticLabelProps:p={fontSize:".9em",color:"#808080"},errorMode:m="normal",helperText:b}=t;i==="top"&&(o==="bottom"||o==="top")&&console.error(`RadioGroup: Ignoring labelAlignment='top'. labelAlignment cannot be 'top' when labelPlacement=${o}`);const[v,y,x]=Ht.useField({name:e}),{setValue:S}=x,{value:k}=v,{error:T}=y,C=["radioProps","labelPlacement","helperText"],O=["disableRedLabelOnError","disableLabel","sameButtonColor","labelPlacement","focused","margin","fullWidth","labelAlignment","errorMode","helperText"],I=()=>t.labelPlacement=="start"?"right":t.labelPlacement=="top"||t.labelPlacement=="bottom"?"center":"left",N=n.map((_,D)=>{const R=i==="top"&&(o==="start"||o==="end"),j=_.helperText?g.jsxs("div",{children:[g.jsx("p",{style:{margin:0},children:_.label}),g.jsx(z.Typography,{variant:"caption",style:{fontSize:"0.85rem"},children:_.helperText})]}):_.label;return g.jsx(z.FormControlLabel,{sx:{alignItems:R?"flex-start":"center"},value:D.toString(),control:g.jsx(z.Radio,{id:`${_.value}-rb`,color:t.sameButtonColor?t.sameButtonColor:_.color??"default",...lr({..._},C)}),label:g.jsx("div",{style:{marginTop:R?"10px":0},children:j}),labelPlacement:o,disabled:_.disabled||a,style:{textAlign:I()}},`rb-${D}-${r}`)}),L=_=>{var D;return((D=n.find(R=>R.value===_))==null?void 0:D.label)??""},V=_=>{const D=n.find(R=>R.value===_);return g.jsxs(z.Box,{children:[g.jsx(z.Typography,{children:D==null?void 0:D.label}),(D==null?void 0:D.helperText)&&g.jsx(z.Typography,{variant:"caption",style:{fontSize:"0.85rem"},children:D.helperText})]})},M=_=>{S(_.target.value),f&&f(_.target.value)},B=Hs(),H=l??B,{showDiff:F,getPreviousValue:P}=Ws();return H||F?g.jsx(Ti,{label:r,value:L(v.value),readOnlyValue:V(v.value),staticLabelProps:p,showDiff:F,diffSnapshot:L(P(e))}):g.jsxs(z.FormControl,{focused:t.focused,margin:u,fullWidth:t.fullWidth,error:!!T,children:[g.jsx(z.FormLabel,{htmlFor:e,required:s,disabled:t.disableLabel,children:r}),b&&g.jsx(z.FormHelperText,{children:b}),g.jsx(z.RadioGroup,{id:e,value:k??"",...lr({...t},O),onChange:M,children:N}),g.jsx(yr,{name:e,id:`${e}-err`,errorMode:m})]})},CU=t=>{const{name:e,label:n=Ln(e),min:r=0,max:o=100,step:i=1,readOnly:s,staticLabelProps:a={fontSize:".9em",color:"#808080"}}=t,l=Ht.useField(e),{value:u}=l[0],{setValue:f}=l[2],p=["label"];return s?(()=>{let b;return Array.isArray(u)?b=s==="percent"?`${100*(u[0]??0)/o}% - ${100*(u[1]??0)/o}%`:`${u[0]??0} - ${u[1]??0}`:b=s==="percent"?`${100*(u??0)/o}%`:`${u??0}`,g.jsxs(z.Box,{children:[g.jsx(z.Typography,{...a,children:n}),g.jsx(z.Typography,{children:b})]})})():g.jsxs(z.FormControl,{fullWidth:!0,children:[g.jsx(z.Typography,{gutterBottom:!0,color:"textSecondary",children:n}),g.jsx(z.Slider,{...lr({...t},p),id:t.name,value:u??0,onChange:(b,v)=>{f(v)},min:r,max:o,step:i})]})},TU=t=>{const{name:e,options:n=[],label:r=Ln(e),selectedOptionIcon:o=void 0,staticLabel:i=!1,staticLabelProps:s={fontSize:".9em",color:"#808080"},variant:a="outlined",readOnly:l,margin:u="dense",required:f,errorMode:p="normal"}=t,[m,b,v]=Ht.useField({name:e}),{setValue:y}=v,{value:x}=m,{error:S}=b,k=A.useMemo(()=>n.map(R=>typeof R=="string"?{label:R,value:R}:R),[n]),T=A.useCallback(()=>{let R="";for(let j=0;j<k.length;j++)JSON.stringify(k[j].value)===JSON.stringify(x)&&(R=j.toString());return R},[k,x]),C=A.useCallback(()=>{const R=[],j=x.toString().split(",");for(const K of j)for(let U=0;U<k.length;U++)k[U].value===K&&R.push(U);return R},[k,x]);A.useEffect(()=>{N(t.multiple?C():T())},[k,t.multiple,x,C,T]);const O=(R,j)=>t.multiple?!!x.toString().split(",").find(K=>K===JSON.stringify(R.value)):j===k.findIndex(K=>x===K.value),[I,N]=A.useState(t.multiple?C:T),L=k.map((R,j)=>{const K=o&&O(R,j)?o:void 0;return g.jsxs(z.MenuItem,{id:`select-${e}-option-${R.value}`,value:j,disabled:R.disabled,children:[o&&g.jsx(z.ListItemIcon,{children:K}),R.label]},j.toString())}),V=R=>{if(t.multiple){const j=[];R.target.value.forEach(K=>{k[K].value&&j.push(k[K].value)}),y(j.join(","))}else y(k[R.target.value].value);N(R.target.value)},M=["name","options",i?"label":"","required","selectedOptionIcon","variant","staticLabel","staticLabelProps","errorMode"],B=()=>F1(k,x,t.multiple),H=t.renderValue??B,F=Hs(),P=l??F,{showDiff:_,getPreviousValue:D}=Ws();return P||_?g.jsx(Ti,{label:r,value:B(),staticLabel:i,staticLabelProps:s,showDiff:_,diffSnapshot:F1(k,D(e),t.multiple)}):g.jsxs(z.FormControl,{fullWidth:!0,variant:a,error:!!S,margin:u,required:f,children:[i?g.jsx(z.Typography,{...s,children:r}):g.jsx(z.InputLabel,{id:`${e}-select-label`,children:r}),g.jsxs(z.Box,{children:[g.jsx(z.Select,{id:`${e}-sel`,labelId:`${e}-select-label`,label:i?void 0:r,...lr({...t},M),name:e,value:I,fullWidth:!0,onChange:R=>V(R),displayEmpty:i,renderValue:H,children:L}),g.jsx(yr,{name:e,id:`${e}-err`,errorMode:p})]})]})},kU=t=>{const{name:e,label:n=Ln(e),labelPlacement:r="end",readOnly:o,staticLabelProps:i={fontSize:".9em",color:"#808080"},onChange:s,color:a="primary",chipColor:l,activeValue:u=!0,inactiveValue:f=!1,errorMode:p="normal"}=t,[m,,b]=Ht.useField({name:e}),{setValue:v}=b,{value:y}=m;y===void 0&&console.error(`Please set an initial value for ${e}`);const x=["labelPlacement","chipColor","activeValue","inactiveValue","errorMode"],S=k=>{if(typeof k!="boolean")return String(k);switch(o){case"YES_NO":return k===u?"Yes":"No";case"ON_OFF":return k===u?"On":"Off";default:return k===u?"True":"False"}};return o?g.jsxs(z.Box,{children:[g.jsx(z.Typography,{...i,children:n}),g.jsx(z.Typography,{children:S(y)})]}):g.jsxs(z.Box,{bgcolor:l??"inherit",sx:l?{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"32px",padding:"2px 0px 2px 12px"}:{},children:[g.jsx(z.FormControlLabel,{label:n,sx:{"& .MuiFormControlLabel-label":{color:a}},labelPlacement:r,control:g.jsx(z.Switch,{...lr({...t},x),id:e,...m,onChange:k=>{if(typeof u=="string"&&typeof f=="string"){const T=k.target.checked?u:f;v(T),s&&s(T)}else v(k.target.checked),s&&s(k.target.checked)},checked:y===u})}),g.jsx(yr,{name:e,id:`${e}-err`,errorMode:p})]})},UM=t=>{const{rows:e=3,diffMode:n="word",...r}=t;return g.jsx(ki,{multiline:!0,rows:e,diffMode:n,...r})},EU=Le([g.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),g.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime"),OU=Le(g.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11h-4v4h-2v-4H7v-2h4V7h2v4h4z"}),"AddCircle"),MU=Le(g.jsx("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline"),_U=Le(g.jsx("path",{d:"m19 18 2 1V3c0-1.1-.9-2-2-2H8.99C7.89 1 7 1.9 7 3h10c1.1 0 2 .9 2 2zM15 5H5c-1.1 0-2 .9-2 2v16l7-3 7 3V7c0-1.1-.9-2-2-2"}),"Bookmarks"),IU=Le(g.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m.06 17v-2.01H12c-1.28 0-2.56-.49-3.54-1.46-1.71-1.71-1.92-4.35-.64-6.29l1.1 1.1c-.71 1.33-.53 3.01.59 4.13.7.7 1.62 1.03 2.54 1.01v-2.14l2.83 2.83zm4.11-4.24-1.1-1.1c.71-1.33.53-3.01-.59-4.13C13.79 8.84 12.9 8.5 12 8.5h-.06v2.15L9.11 7.83 11.94 5v2.02c1.3-.02 2.61.45 3.6 1.45 1.7 1.7 1.91 4.35.63 6.29"}),"ChangeCircle"),fp=Le(g.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),DU=Le(g.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"CloseOutlined"),AU=Le(g.jsx("path",{d:"M19 2h-4.18C14.4.84 13.3 0 12 0S9.6.84 9.18 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m7 18H5V4h2v3h10V4h2z"}),"ContentPaste"),qM=Le(g.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkMode"),KM=Le(g.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description"),PU=Le(g.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download"),NU=Le(g.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),$U=Le(g.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help"),LU=Le(g.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),y0=Le(g.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),pp=Le(g.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp"),b0=Le(g.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"Launch"),YM=Le(g.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode"),BU=Le(g.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout"),FU=Le(g.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),RU=Le(g.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),zU=Le(g.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person"),VU=Le(g.jsx("path",{d:"M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1m-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1"}),"QuestionAnswer"),HU=Le(g.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),GM=Le(g.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11H7v-2h10z"}),"RemoveCircle"),WU=Le(g.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"SearchOutlined"),jU=Le(g.jsx("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort"),UU=Le(g.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),JM=t=>{const{onSearch:e,initialValue:n="",lazySearch:r=!1,debounceMillis:o=500}=t,[i,s]=J.useState(n),a=J.useMemo(()=>SM.debounce(m=>{e(m)},o),[e,o]);J.useEffect(()=>()=>{a.cancel()},[a]);const l=m=>{s(m.target.value),r||a(m.target.value)},u=m=>{m.key==="Enter"&&f()},f=()=>{a.cancel(),e(i)},p=()=>{a.cancel(),s(""),e("")};return g.jsx(z.TextField,{type:"text",placeholder:"Search...",value:i,onChange:l,onKeyDown:u,className:"search-bar",size:"small",fullWidth:!0,slotProps:{input:{startAdornment:g.jsx(z.InputAdornment,{position:"start",children:g.jsx(z.IconButton,{"data-testid":"search-button",style:{marginLeft:-10},onClick:f,children:g.jsx(WU,{})})}),endAdornment:i&&g.jsx(z.IconButton,{style:{marginRight:-10},"aria-label":"clear search","data-testid":"clear-search",onClick:p,children:g.jsx(DU,{})})}}})},qU=["localeText"],hp=A.createContext(null);process.env.NODE_ENV!=="production"&&(hp.displayName="MuiPickersAdapterContext");const v0=function(e){const{localeText:n}=e,r=at(e,qU),{utils:o,localeText:i}=A.useContext(hp)??{utils:void 0,localeText:void 0},s=rt({props:r,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:l,dateFormats:u,dateLibInstance:f,adapterLocale:p,localeText:m}=s,b=A.useMemo(()=>se({},m,i,n),[m,i,n]),v=A.useMemo(()=>{if(!l)return o||null;const S=new l({locale:p,formats:u,instance:f});if(!S.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
383
+ `));return S},[l,p,u,f,o]),y=A.useMemo(()=>v?{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}:null,[v]),x=A.useMemo(()=>({utils:v,defaultDates:y,localeText:b}),[y,v,b]);return g.jsx(hp.Provider,{value:x,children:a})};process.env.NODE_ENV!=="production"&&(v0.propTypes={adapterLocale:c.any,children:c.node,dateAdapter:c.func,dateFormats:c.shape({dayOfMonth:c.string,dayOfMonthFull:c.string,fullDate:c.string,fullTime:c.string,fullTime12h:c.string,fullTime24h:c.string,hours12h:c.string,hours24h:c.string,keyboardDate:c.string,keyboardDateTime:c.string,keyboardDateTime12h:c.string,keyboardDateTime24h:c.string,meridiem:c.string,minutes:c.string,month:c.string,monthShort:c.string,normalDate:c.string,normalDateWithWeekday:c.string,seconds:c.string,shortDate:c.string,weekday:c.string,weekdayShort:c.string,year:c.string}),dateLibInstance:c.any,localeText:c.object});var mp={exports:{}},KU=mp.exports,XM;function YU(){return XM||(XM=1,(function(t,e){(function(n,r){t.exports=r()})(KU,(function(){var n=1e3,r=6e4,o=36e5,i="millisecond",s="second",a="minute",l="hour",u="day",f="week",p="month",m="quarter",b="year",v="date",y="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|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,k={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(P){var _=["th","st","nd","rd"],D=P%100;return"["+P+(_[(D-20)%10]||_[D]||_[0])+"]"}},T=function(P,_,D){var R=String(P);return!R||R.length>=_?P:""+Array(_+1-R.length).join(D)+P},C={s:T,z:function(P){var _=-P.utcOffset(),D=Math.abs(_),R=Math.floor(D/60),j=D%60;return(_<=0?"+":"-")+T(R,2,"0")+":"+T(j,2,"0")},m:function P(_,D){if(_.date()<D.date())return-P(D,_);var R=12*(D.year()-_.year())+(D.month()-_.month()),j=_.clone().add(R,p),K=D-j<0,U=_.clone().add(R+(K?-1:1),p);return+(-(R+(D-j)/(K?j-U:U-j))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:p,y:b,w:f,d:u,D:v,h:l,m:a,s,ms:i,Q:m}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},O="en",I={};I[O]=k;var N="$isDayjsObject",L=function(P){return P instanceof H||!(!P||!P[N])},V=function P(_,D,R){var j;if(!_)return O;if(typeof _=="string"){var K=_.toLowerCase();I[K]&&(j=K),D&&(I[K]=D,j=K);var U=_.split("-");if(!j&&U.length>1)return P(U[0])}else{var Y=_.name;I[Y]=_,j=Y}return!R&&j&&(O=j),j||!R&&O},M=function(P,_){if(L(P))return P.clone();var D=typeof _=="object"?_:{};return D.date=P,D.args=arguments,new H(D)},B=C;B.l=V,B.i=L,B.w=function(P,_){return M(P,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var H=(function(){function P(D){this.$L=V(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[N]=!0}var _=P.prototype;return _.parse=function(D){this.$d=(function(R){var j=R.date,K=R.utc;if(j===null)return new Date(NaN);if(B.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var U=j.match(x);if(U){var Y=U[2]-1||0,fe=(U[7]||"0").substring(0,3);return K?new Date(Date.UTC(U[1],Y,U[3]||1,U[4]||0,U[5]||0,U[6]||0,fe)):new Date(U[1],Y,U[3]||1,U[4]||0,U[5]||0,U[6]||0,fe)}}return new Date(j)})(D),this.init()},_.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},_.$utils=function(){return B},_.isValid=function(){return this.$d.toString()!==y},_.isSame=function(D,R){var j=M(D);return this.startOf(R)<=j&&j<=this.endOf(R)},_.isAfter=function(D,R){return M(D)<this.startOf(R)},_.isBefore=function(D,R){return this.endOf(R)<M(D)},_.$g=function(D,R,j){return B.u(D)?this[R]:this.set(j,D)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(D,R){var j=this,K=!!B.u(R)||R,U=B.p(D),Y=function(re,le){var ye=B.w(j.$u?Date.UTC(j.$y,le,re):new Date(j.$y,le,re),j);return K?ye:ye.endOf(u)},fe=function(re,le){return B.w(j.toDate()[re].apply(j.toDate("s"),(K?[0,0,0,0]:[23,59,59,999]).slice(le)),j)},ue=this.$W,pe=this.$M,Z=this.$D,te="set"+(this.$u?"UTC":"");switch(U){case b:return K?Y(1,0):Y(31,11);case p:return K?Y(1,pe):Y(0,pe+1);case f:var ce=this.$locale().weekStart||0,ne=(ue<ce?ue+7:ue)-ce;return Y(K?Z-ne:Z+(6-ne),pe);case u:case v:return fe(te+"Hours",0);case l:return fe(te+"Minutes",1);case a:return fe(te+"Seconds",2);case s:return fe(te+"Milliseconds",3);default:return this.clone()}},_.endOf=function(D){return this.startOf(D,!1)},_.$set=function(D,R){var j,K=B.p(D),U="set"+(this.$u?"UTC":""),Y=(j={},j[u]=U+"Date",j[v]=U+"Date",j[p]=U+"Month",j[b]=U+"FullYear",j[l]=U+"Hours",j[a]=U+"Minutes",j[s]=U+"Seconds",j[i]=U+"Milliseconds",j)[K],fe=K===u?this.$D+(R-this.$W):R;if(K===p||K===b){var ue=this.clone().set(v,1);ue.$d[Y](fe),ue.init(),this.$d=ue.set(v,Math.min(this.$D,ue.daysInMonth())).$d}else Y&&this.$d[Y](fe);return this.init(),this},_.set=function(D,R){return this.clone().$set(D,R)},_.get=function(D){return this[B.p(D)]()},_.add=function(D,R){var j,K=this;D=Number(D);var U=B.p(R),Y=function(pe){var Z=M(K);return B.w(Z.date(Z.date()+Math.round(pe*D)),K)};if(U===p)return this.set(p,this.$M+D);if(U===b)return this.set(b,this.$y+D);if(U===u)return Y(1);if(U===f)return Y(7);var fe=(j={},j[a]=r,j[l]=o,j[s]=n,j)[U]||1,ue=this.$d.getTime()+D*fe;return B.w(ue,this)},_.subtract=function(D,R){return this.add(-1*D,R)},_.format=function(D){var R=this,j=this.$locale();if(!this.isValid())return j.invalidDate||y;var K=D||"YYYY-MM-DDTHH:mm:ssZ",U=B.z(this),Y=this.$H,fe=this.$m,ue=this.$M,pe=j.weekdays,Z=j.months,te=j.meridiem,ce=function(le,ye,X,ee){return le&&(le[ye]||le(R,K))||X[ye].slice(0,ee)},ne=function(le){return B.s(Y%12||12,le,"0")},re=te||function(le,ye,X){var ee=le<12?"AM":"PM";return X?ee.toLowerCase():ee};return K.replace(S,(function(le,ye){return ye||(function(X){switch(X){case"YY":return String(R.$y).slice(-2);case"YYYY":return B.s(R.$y,4,"0");case"M":return ue+1;case"MM":return B.s(ue+1,2,"0");case"MMM":return ce(j.monthsShort,ue,Z,3);case"MMMM":return ce(Z,ue);case"D":return R.$D;case"DD":return B.s(R.$D,2,"0");case"d":return String(R.$W);case"dd":return ce(j.weekdaysMin,R.$W,pe,2);case"ddd":return ce(j.weekdaysShort,R.$W,pe,3);case"dddd":return pe[R.$W];case"H":return String(Y);case"HH":return B.s(Y,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return re(Y,fe,!0);case"A":return re(Y,fe,!1);case"m":return String(fe);case"mm":return B.s(fe,2,"0");case"s":return String(R.$s);case"ss":return B.s(R.$s,2,"0");case"SSS":return B.s(R.$ms,3,"0");case"Z":return U}return null})(le)||U.replace(":","")}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(D,R,j){var K,U=this,Y=B.p(R),fe=M(D),ue=(fe.utcOffset()-this.utcOffset())*r,pe=this-fe,Z=function(){return B.m(U,fe)};switch(Y){case b:K=Z()/12;break;case p:K=Z();break;case m:K=Z()/3;break;case f:K=(pe-ue)/6048e5;break;case u:K=(pe-ue)/864e5;break;case l:K=pe/o;break;case a:K=pe/r;break;case s:K=pe/n;break;default:K=pe}return j?K:B.a(K)},_.daysInMonth=function(){return this.endOf(p).$D},_.$locale=function(){return I[this.$L]},_.locale=function(D,R){if(!D)return this.$L;var j=this.clone(),K=V(D,R,!0);return K&&(j.$L=K),j},_.clone=function(){return B.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},P})(),F=H.prototype;return M.prototype=F,[["$ms",i],["$s",s],["$m",a],["$H",l],["$W",u],["$M",p],["$y",b],["$D",v]].forEach((function(P){F[P[1]]=function(_){return this.$g(_,P[0],P[1])}})),M.extend=function(P,_){return P.$i||(P(_,H,M),P.$i=!0),M},M.locale=V,M.isDayjs=L,M.unix=function(P){return M(1e3*P)},M.en=I[O],M.Ls=I,M.p={},M}))})(mp)),mp.exports}var GU=YU();const rn=Un(GU);var gp={exports:{}},JU=gp.exports,ZM;function XU(){return ZM||(ZM=1,(function(t,e){(function(n,r){t.exports=r()})(JU,(function(){var n="week",r="year";return function(o,i,s){var a=i.prototype;a.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=s(this).startOf(r).add(1,r).date(u),p=s(this).endOf(n);if(f.isBefore(p))return 1}var m=s(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),b=this.diff(m,n,!0);return b<0?s(this).startOf("week").week():Math.ceil(b)},a.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}}))})(gp)),gp.exports}var ZU=XU();const QU=Un(ZU);var yp={exports:{}},eq=yp.exports,QM;function tq(){return QM||(QM=1,(function(t,e){(function(n,r){t.exports=r()})(eq,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,i=/\d\d/,s=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,l={},u=function(x){return(x=+x)+(x>68?1900:2e3)},f=function(x){return function(S){this[x]=+S}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(x){(this.zone||(this.zone={})).offset=(function(S){if(!S||S==="Z")return 0;var k=S.match(/([+-]|\d\d)/g),T=60*k[1]+(+k[2]||0);return T===0?0:k[0]==="+"?-T:T})(x)}],m=function(x){var S=l[x];return S&&(S.indexOf?S:S.s.concat(S.f))},b=function(x,S){var k,T=l.meridiem;if(T){for(var C=1;C<=24;C+=1)if(x.indexOf(T(C,0,S))>-1){k=C>12;break}}else k=x===(S?"pm":"PM");return k},v={A:[a,function(x){this.afternoon=b(x,!1)}],a:[a,function(x){this.afternoon=b(x,!0)}],Q:[o,function(x){this.month=3*(x-1)+1}],S:[o,function(x){this.milliseconds=100*+x}],SS:[i,function(x){this.milliseconds=10*+x}],SSS:[/\d{3}/,function(x){this.milliseconds=+x}],s:[s,f("seconds")],ss:[s,f("seconds")],m:[s,f("minutes")],mm:[s,f("minutes")],H:[s,f("hours")],h:[s,f("hours")],HH:[s,f("hours")],hh:[s,f("hours")],D:[s,f("day")],DD:[i,f("day")],Do:[a,function(x){var S=l.ordinal,k=x.match(/\d+/);if(this.day=k[0],S)for(var T=1;T<=31;T+=1)S(T).replace(/\[|\]/g,"")===x&&(this.day=T)}],w:[s,f("week")],ww:[i,f("week")],M:[s,f("month")],MM:[i,f("month")],MMM:[a,function(x){var S=m("months"),k=(m("monthsShort")||S.map((function(T){return T.slice(0,3)}))).indexOf(x)+1;if(k<1)throw new Error;this.month=k%12||k}],MMMM:[a,function(x){var S=m("months").indexOf(x)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,f("year")],YY:[i,function(x){this.year=u(x)}],YYYY:[/\d{4}/,f("year")],Z:p,ZZ:p};function y(x){var S,k;S=x,k=l&&l.formats;for(var T=(x=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(M,B,H){var F=H&&H.toUpperCase();return B||k[H]||n[H]||k[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(P,_,D){return _||D.slice(1)}))}))).match(r),C=T.length,O=0;O<C;O+=1){var I=T[O],N=v[I],L=N&&N[0],V=N&&N[1];T[O]=V?{regex:L,parser:V}:I.replace(/^\[|\]$/g,"")}return function(M){for(var B={},H=0,F=0;H<C;H+=1){var P=T[H];if(typeof P=="string")F+=P.length;else{var _=P.regex,D=P.parser,R=M.slice(F),j=_.exec(R)[0];D.call(B,j),M=M.replace(j,"")}}return(function(K){var U=K.afternoon;if(U!==void 0){var Y=K.hours;U?Y<12&&(K.hours+=12):Y===12&&(K.hours=0),delete K.afternoon}})(B),B}}return function(x,S,k){k.p.customParseFormat=!0,x&&x.parseTwoDigitYear&&(u=x.parseTwoDigitYear);var T=S.prototype,C=T.parse;T.parse=function(O){var I=O.date,N=O.utc,L=O.args;this.$u=N;var V=L[1];if(typeof V=="string"){var M=L[2]===!0,B=L[3]===!0,H=M||B,F=L[2];B&&(F=L[2]),l=this.$locale(),!M&&F&&(l=k.Ls[F]),this.$d=(function(R,j,K,U){try{if(["x","X"].indexOf(j)>-1)return new Date((j==="X"?1e3:1)*R);var Y=y(j)(R),fe=Y.year,ue=Y.month,pe=Y.day,Z=Y.hours,te=Y.minutes,ce=Y.seconds,ne=Y.milliseconds,re=Y.zone,le=Y.week,ye=new Date,X=pe||(fe||ue?1:ye.getDate()),ee=fe||ye.getFullYear(),ie=0;fe&&!ue||(ie=ue>0?ue-1:ye.getMonth());var we,Ce=Z||0,Pe=te||0,Me=ce||0,Ie=ne||0;return re?new Date(Date.UTC(ee,ie,X,Ce,Pe,Me,Ie+60*re.offset*1e3)):K?new Date(Date.UTC(ee,ie,X,Ce,Pe,Me,Ie)):(we=new Date(ee,ie,X,Ce,Pe,Me,Ie),le&&(we=U(we).week(le).toDate()),we)}catch{return new Date("")}})(I,V,N,k),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),H&&I!=this.format(V)&&(this.$d=new Date("")),l={}}else if(V instanceof Array)for(var P=V.length,_=1;_<=P;_+=1){L[1]=V[_-1];var D=k.apply(this,L);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}_===P&&(this.$d=new Date(""))}else C.call(this,O)}}}))})(yp)),yp.exports}var nq=tq();const e_=Un(nq);var bp={exports:{}},rq=bp.exports,t_;function oq(){return t_||(t_=1,(function(t,e){(function(n,r){t.exports=r()})(rq,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,i){var s=o.prototype,a=s.format;i.en.formats=n,s.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,f=(function(p,m){return p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(b,v,y){var x=y&&y.toUpperCase();return v||m[y]||n[y]||m[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(S,k,T){return k||T.slice(1)}))}))})(l,u===void 0?{}:u);return a.call(this,f)}}}))})(bp)),bp.exports}var iq=oq();const sq=Un(iq);var vp={exports:{}},aq=vp.exports,n_;function lq(){return n_||(n_=1,(function(t,e){(function(n,r){t.exports=r()})(aq,(function(){return function(n,r,o){r.prototype.isBetween=function(i,s,a,l){var u=o(i),f=o(s),p=(l=l||"()")[0]==="(",m=l[1]===")";return(p?this.isAfter(u,a):!this.isBefore(u,a))&&(m?this.isBefore(f,a):!this.isAfter(f,a))||(p?this.isBefore(u,a):!this.isAfter(u,a))&&(m?this.isAfter(f,a):!this.isBefore(f,a))}}}))})(vp)),vp.exports}var cq=lq();const uq=Un(cq);var xp={exports:{}},dq=xp.exports,r_;function fq(){return r_||(r_=1,(function(t,e){(function(n,r){t.exports=r()})(dq,(function(){return function(n,r){var o=r.prototype,i=o.format;o.format=function(s){var a=this,l=this.$locale();if(!this.isValid())return i.bind(this)(s);var u=this.$utils(),f=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(p){switch(p){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return l.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return l.ordinal(a.week(),"W");case"w":case"ww":return u.s(a.week(),p==="w"?1:2,"0");case"W":case"WW":return u.s(a.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return u.s(String(a.$H===0?24:a.$H),p==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return p}}));return i.bind(this)(f)}}}))})(xp)),xp.exports}var pq=fq();const hq=Un(pq),o_=new Set;function i_(t,e="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(t)?t.join(`
384
384
  `):t;o_.has(n)||(o_.add(n),e==="error"?console.error(n):console.warn(n))}rn.extend(sq),rn.extend(QU),rn.extend(uq),rn.extend(hq);const mq={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},gq={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},x0=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
385
385
  `),s_=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
386
386
  `),yq=(t,e)=>e?(...n)=>t(...n).locale(e):t;class bq{constructor({locale:e,formats:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=mq,this.setLocaleToValue=r=>{const o=this.getCurrentLocaleCode();return o===r.locale()?r:r.locale(o)},this.hasUTCPlugin=()=>typeof rn.utc<"u",this.hasTimezonePlugin=()=>typeof rn.tz<"u",this.isSame=(r,o,i)=>{const s=this.setTimezone(o,this.getTimezone(r));return r.format(i)===s.format(i)},this.cleanTimezone=r=>{switch(r){case"default":return;case"system":return rn.tz.guess();default:return r}},this.createSystemDate=r=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=rn.tz.guess();return o!=="UTC"?rn.tz(r,o):rn(r)}return rn(r)},this.createUTCDate=r=>{if(!this.hasUTCPlugin())throw new Error(x0);return rn.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error(x0);if(!this.hasTimezonePlugin())throw new Error(s_);const i=r!==void 0&&!r.endsWith("Z");return rn(r).tz(this.cleanTimezone(o),i)},this.getLocaleFormats=()=>{const r=rn.Ls,o=this.locale||"en";let i=r[o];return i===void 0&&(process.env.NODE_ENV!=="production"&&i_(["MUI X: Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale."]),i=r.en),i.formats},this.adjustOffset=r=>{if(!this.hasTimezonePlugin())return r;const o=this.getTimezone(r);if(o!=="UTC"){const i=r.tz(this.cleanTimezone(o),!0);if(i.$offset===(r.$offset??0))return r;r.$offset=i.$offset}return r},this.date=(r,o="default")=>{if(r===null)return null;let i;return o==="UTC"?i=this.createUTCDate(r):o==="system"||o==="default"&&!this.hasTimezonePlugin()?i=this.createSystemDate(r):i=this.createTZDate(r,o),this.locale===void 0?i:i.locale(this.locale)},this.getInvalidDate=()=>rn(new Date("Invalid date")),this.getTimezone=r=>{var o;if(this.hasTimezonePlugin()){const i=(o=r.$x)==null?void 0:o.$timezone;if(i)return i}return this.hasUTCPlugin()&&r.isUTC()?"UTC":"system"},this.setTimezone=(r,o)=>{if(this.getTimezone(r)===o)return r;if(o==="UTC"){if(!this.hasUTCPlugin())throw new Error(x0);return r.utc()}if(o==="system")return r.local();if(!this.hasTimezonePlugin()){if(o==="default")return r;throw new Error(s_)}return rn.tz(r,this.cleanTimezone(o))},this.toJsDate=r=>r.toDate(),this.parse=(r,o)=>r===""?null:this.dayjs(r,o,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=r=>{const o=this.getLocaleFormats(),i=s=>s.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(a,l,u)=>l||u.slice(1));return r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(s,a,l)=>{const u=l&&l.toUpperCase();return a||o[l]||i(o[u])})},this.isValid=r=>r==null?!1:r.isValid(),this.format=(r,o)=>this.formatByString(r,this.formats[o]),this.formatByString=(r,o)=>this.dayjs(r).format(o),this.formatNumber=r=>r,this.isEqual=(r,o)=>r===null&&o===null?!0:r===null||o===null?!1:r.toDate().getTime()===o.toDate().getTime(),this.isSameYear=(r,o)=>this.isSame(r,o,"YYYY"),this.isSameMonth=(r,o)=>this.isSame(r,o,"YYYY-MM"),this.isSameDay=(r,o)=>this.isSame(r,o,"YYYY-MM-DD"),this.isSameHour=(r,o)=>r.isSame(o,"hour"),this.isAfter=(r,o)=>r>o,this.isAfterYear=(r,o)=>this.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()>o.utc():r.isAfter(o,"year"),this.isAfterDay=(r,o)=>this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()>o.utc():r.isAfter(o,"day"),this.isBefore=(r,o)=>r<o,this.isBeforeYear=(r,o)=>this.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()<o.utc():r.isBefore(o,"year"),this.isBeforeDay=(r,o)=>this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()<o.utc():r.isBefore(o,"day"),this.isWithinRange=(r,[o,i])=>r>=o&&r<=i,this.startOfYear=r=>this.adjustOffset(r.startOf("year")),this.startOfMonth=r=>this.adjustOffset(r.startOf("month")),this.startOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).startOf("week")),this.startOfDay=r=>this.adjustOffset(r.startOf("day")),this.endOfYear=r=>this.adjustOffset(r.endOf("year")),this.endOfMonth=r=>this.adjustOffset(r.endOf("month")),this.endOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).endOf("week")),this.endOfDay=r=>this.adjustOffset(r.endOf("day")),this.addYears=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"year"):r.add(o,"year")),this.addMonths=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"month"):r.add(o,"month")),this.addWeeks=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"week"):r.add(o,"week")),this.addDays=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"day"):r.add(o,"day")),this.addHours=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"hour"):r.add(o,"hour")),this.addMinutes=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"minute"):r.add(o,"minute")),this.addSeconds=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"second"):r.add(o,"second")),this.getYear=r=>r.year(),this.getMonth=r=>r.month(),this.getDate=r=>r.date(),this.getHours=r=>r.hour(),this.getMinutes=r=>r.minute(),this.getSeconds=r=>r.second(),this.getMilliseconds=r=>r.millisecond(),this.setYear=(r,o)=>this.adjustOffset(r.set("year",o)),this.setMonth=(r,o)=>this.adjustOffset(r.set("month",o)),this.setDate=(r,o)=>this.adjustOffset(r.set("date",o)),this.setHours=(r,o)=>this.adjustOffset(r.set("hour",o)),this.setMinutes=(r,o)=>this.adjustOffset(r.set("minute",o)),this.setSeconds=(r,o)=>this.adjustOffset(r.set("second",o)),this.setMilliseconds=(r,o)=>this.adjustOffset(r.set("millisecond",o)),this.getDaysInMonth=r=>r.daysInMonth(),this.getWeekArray=r=>{const o=this.startOfWeek(this.startOfMonth(r)),i=this.endOfWeek(this.endOfMonth(r));let s=0,a=o;const l=[];for(;a<i;){const u=Math.floor(s/7);l[u]=l[u]||[],l[u].push(a),a=this.addDays(a,1),s+=1}return l},this.getWeekNumber=r=>r.week(),this.getYearRange=([r,o])=>{const i=this.startOfYear(r),s=this.endOfYear(o),a=[];let l=i;for(;this.isBefore(l,s);)a.push(l),l=this.addYears(l,1);return a},this.dayjs=yq(rn,e),this.locale=e,this.formats=se({},gq,n),rn.extend(e_)}getDayOfWeek(e){return e.day()+1}}const pu=(t,e)=>t.length!==e.length?!1:e.every(n=>t.includes(n)),vq=({openTo:t,defaultOpenTo:e,views:n,defaultViews:r})=>{const o=n??r;let i;if(t!=null)i=t;else if(o.includes(e))i=e;else if(o.length>0)i=o[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:o,openTo:i}},wp=(t,e,n)=>{let r=e;return r=t.setHours(r,t.getHours(n)),r=t.setMinutes(r,t.getMinutes(n)),r=t.setSeconds(r,t.getSeconds(n)),r=t.setMilliseconds(r,t.getMilliseconds(n)),r},hu=({date:t,disableFuture:e,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:s,timezone:a})=>{const l=wp(s,s.date(void 0,a),t);n&&s.isBefore(o,l)&&(o=l),e&&s.isAfter(r,l)&&(r=l);let u=t,f=t;for(s.isBefore(t,o)&&(u=o,f=null),s.isAfter(t,r)&&(f&&(f=r),u=null);u||f;){if(u&&s.isAfter(u,r)&&(u=null),f&&s.isBefore(f,o)&&(f=null),u){if(!i(u))return u;u=s.addDays(u,1)}if(f){if(!i(f))return f;f=s.addDays(f,-1)}}return null},xq=(t,e)=>e==null||!t.isValid(e)?null:e,ro=(t,e,n)=>e==null||!t.isValid(e)?n:e,wq=(t,e,n)=>!t.isValid(e)&&e!=null&&!t.isValid(n)&&n!=null?!0:t.isEqual(e,n),w0=(t,e)=>{const r=[t.startOfYear(e)];for(;r.length<12;){const o=r[r.length-1];r.push(t.addMonths(o,1))}return r},a_=(t,e,n)=>n==="date"?t.startOfDay(t.date(void 0,e)):t.date(void 0,e),Sq=["year","month","day"],l_=t=>Sq.includes(t),S0=(t,{format:e,views:n},r)=>{if(e!=null)return e;const o=t.formats;return pu(n,["year"])?o.year:pu(n,["month"])?o.month:pu(n,["day"])?o.dayOfMonth:pu(n,["month","year"])?`${o.month} ${o.year}`:pu(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(t.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},Cq=(t,e)=>{const n=t.startOfWeek(e);return[0,1,2,3,4,5,6].map(r=>t.addDays(n,r))},Tq=["hours","minutes","seconds"],kq=t=>Tq.includes(t),c_=(t,e)=>e.getHours(t)*3600+e.getMinutes(t)*60+e.getSeconds(t),Eq=(t,e)=>(n,r)=>t?e.isAfter(n,r):c_(n,e)>c_(r,e),Go={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Oq=t=>Math.max(...t.map(e=>Go[e.type]??1)),mu=(t,e,n)=>{if(e===Go.year)return t.startOfYear(n);if(e===Go.month)return t.startOfMonth(n);if(e===Go.day)return t.startOfDay(n);let r=n;return e<Go.minutes&&(r=t.setMinutes(r,0)),e<Go.seconds&&(r=t.setSeconds(r,0)),e<Go.milliseconds&&(r=t.setMilliseconds(r,0)),r},Mq=({props:t,utils:e,granularity:n,timezone:r,getTodayDate:o})=>{let i=o?o():mu(e,n,a_(e,r));t.minDate!=null&&e.isAfterDay(t.minDate,i)&&(i=mu(e,n,t.minDate)),t.maxDate!=null&&e.isBeforeDay(t.maxDate,i)&&(i=mu(e,n,t.maxDate));const s=Eq(t.disableIgnoringDatePartForTimeValidation??!1,e);return t.minTime!=null&&s(t.minTime,i)&&(i=mu(e,n,t.disableIgnoringDatePartForTimeValidation?t.minTime:wp(e,i,t.minTime))),t.maxTime!=null&&s(i,t.maxTime)&&(i=mu(e,n,t.disableIgnoringDatePartForTimeValidation?t.maxTime:wp(e,i,t.maxTime))),i},C0=(t,e)=>{const n=t.formatTokenMap[e];if(n==null)throw new Error([`MUI X: The token "${e}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
@@ -388,8 +388,8 @@ function print() { __p += __j.call(arguments, '') }
388
388
  This type of format is only supported for 'day' sections`].join(`
389
389
  `));if(o.type==="day"&&o.contentType==="digit-with-letter"){const s=t.setDate(n.longestMonth,e);return t.formatByString(s,o.format)}let i=e.toString();return o.hasLeadingZerosInInput&&(i=p_(i,o.maxLength)),T0(i,r)},Aq=(t,e,n,r,o,i,s,a)=>{const l=_q(r),u=r==="Home",f=r==="End",p=n.value===""||u||f,m=()=>{const v=o[n.type]({currentDate:s,format:n.format,contentType:n.contentType}),y=k=>h_(t,k,v,i,n),x=n.type==="minutes"&&(a!=null&&a.minutesStep)?a.minutesStep:1;let S;if(p){if(n.type==="year"&&!f&&!u)return t.formatByString(t.date(void 0,e),n.format);l>0||u?S=v.minimum:S=v.maximum}else S=parseInt(ga(n.value,i),10)+l*x;return S%x!==0&&((l<0||u)&&(S+=x-(x+S)%x),(l>0||f)&&(S-=S%x)),S>v.maximum?y(v.minimum+(S-v.maximum-1)%(v.maximum-v.minimum+1)):S<v.minimum?y(v.maximum-(v.minimum-S-1)%(v.maximum-v.minimum+1)):y(S)},b=()=>{const v=u_(t,e,n.type,n.format);if(v.length===0)return n.value;if(p)return l>0||u?v[0]:v[v.length-1];const S=((v.indexOf(n.value)+l)%v.length+v.length)%v.length;return v[S]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?m():b()},k0=(t,e,n)=>{let r=t.value||t.placeholder;const o=e==="non-input"?t.hasLeadingZerosInFormat:t.hasLeadingZerosInInput;return e==="non-input"&&t.hasLeadingZerosInInput&&!t.hasLeadingZerosInFormat&&(r=Number(ga(r,n)).toString()),["input-rtl","input-ltr"].includes(e)&&t.contentType==="digit"&&!o&&r.length===1&&(r=`${r}‎`),e==="input-rtl"&&(r=`⁨${r}⁩`),r},m_=(t,e,n,r)=>{if(process.env.NODE_ENV!=="production"&&C0(t,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return t.formatByString(t.parse(e,n),r)},Pq=(t,e)=>t.formatByString(t.date(void 0,"system"),e).length===4,g_=(t,e,n,r)=>{if(e!=="digit")return!1;const o=t.date(void 0,"default");switch(n){case"year":return t.lib==="dayjs"&&r==="YY"?!0:t.formatByString(t.setYear(o,1),r).startsWith("0");case"month":return t.formatByString(t.startOfYear(o),r).length>1;case"day":return t.formatByString(t.startOfMonth(o),r).length>1;case"weekDay":return t.formatByString(t.startOfWeek(o),r).length>1;case"hours":return t.formatByString(t.setHours(o,1),r).length>1;case"minutes":return t.formatByString(t.setMinutes(o,1),r).length>1;case"seconds":return t.formatByString(t.setSeconds(o,1),r).length>1;default:throw new Error("Invalid section type")}},Nq=(t,e,n)=>{const r=e.some(l=>l.type==="day"),o=[],i=[];for(let l=0;l<e.length;l+=1){const u=e[l];r&&u.type==="weekDay"||(o.push(u.format),i.push(k0(u,"non-input",n)))}const s=o.join(" "),a=i.join(" ");return t.parse(a,s)},$q=t=>t.map(e=>`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`).join(""),Lq=(t,e,n)=>{const o=t.map(i=>{const s=k0(i,n?"input-rtl":"input-ltr",e);return`${i.startSeparator}${s}${i.endSeparator}`}).join("");return n?`⁦${o}⁩`:o},Bq=(t,e,n)=>{const r=t.date(void 0,n),o=t.endOfYear(r),i=t.endOfDay(r),{maxDaysInMonth:s,longestMonth:a}=w0(t,r).reduce((l,u)=>{const f=t.getDaysInMonth(u);return f>l.maxDaysInMonth?{maxDaysInMonth:f,longestMonth:u}:l},{maxDaysInMonth:0,longestMonth:null});return{year:({format:l})=>({minimum:0,maximum:Pq(t,l)?9999:99}),month:()=>({minimum:1,maximum:t.getMonth(o)+1}),day:({currentDate:l})=>({minimum:1,maximum:l!=null&&t.isValid(l)?t.getDaysInMonth(l):s,longestMonth:a}),weekDay:({format:l,contentType:u})=>{if(u==="digit"){const f=Sp(t,l).map(Number);return{minimum:Math.min(...f),maximum:Math.max(...f)}}return{minimum:1,maximum:7}},hours:({format:l})=>{const u=t.getHours(i);return ga(t.formatByString(t.endOfDay(r),l),e)!==u.toString()?{minimum:1,maximum:Number(ga(t.formatByString(t.startOfDay(r),l),e))}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:t.getMinutes(i)}),seconds:()=>({minimum:0,maximum:t.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let y_=!1;const b_=(t,e)=>{if(process.env.NODE_ENV!=="production"&&!y_){const n=["empty"];["date","date-time"].includes(e)&&n.push("weekDay","day","month","year"),["time","date-time"].includes(e)&&n.push("hours","minutes","seconds","meridiem");const r=t.find(o=>!n.includes(o.type));r&&(console.warn(`MUI X: The field component you are using is not compatible with the "${r.type}" date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),y_=!0)}},Fq=(t,e,n,r)=>{switch(e.type){case"year":return t.setYear(r,t.getYear(n));case"month":return t.setMonth(r,t.getMonth(n));case"weekDay":{const o=Sp(t,e.format),i=t.formatByString(n,e.format),s=o.indexOf(i),l=o.indexOf(e.value)-s;return t.addDays(n,l)}case"day":return t.setDate(r,t.getDate(n));case"meridiem":{const o=t.getHours(n)<12,i=t.getHours(r);return o&&i>=12?t.addHours(r,-12):!o&&i<12?t.addHours(r,12):r}case"hours":return t.setHours(r,t.getHours(n));case"minutes":return t.setMinutes(r,t.getMinutes(n));case"seconds":return t.setSeconds(r,t.getSeconds(n));default:return r}},v_={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},x_=(t,e,n,r,o)=>[...n].sort((i,s)=>v_[i.type]-v_[s.type]).reduce((i,s)=>!o||s.modified?Fq(t,s,e,i):i,r),Rq=()=>navigator.userAgent.toLowerCase().includes("android"),zq=(t,e)=>{const n={};if(!e)return t.forEach((l,u)=>{const f=u===0?null:u-1,p=u===t.length-1?null:u+1;n[u]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:0,endIndex:t.length-1};const r={},o={};let i=0,s=0,a=t.length-1;for(;a>=0;){s=t.findIndex((l,u)=>{var f;return u>=i&&((f=l.endSeparator)==null?void 0:f.includes(" "))&&l.endSeparator!==" / "}),s===-1&&(s=t.length-1);for(let l=s;l>=i;l-=1)o[l]=a,r[a]=l,a-=1;i=s+1}return t.forEach((l,u)=>{const f=o[u],p=f===0?null:r[f-1],m=f===t.length-1?null:r[f+1];n[u]={leftIndex:p,rightIndex:m}}),{neighbors:n,startIndex:r[0],endIndex:r[t.length-1]}},E0=(t,e)=>{if(t==null)return null;if(t==="all")return"all";if(typeof t=="string"){const n=e.findIndex(r=>r.type===t);return n===-1?null:n}return t},Vq=(t,e)=>{if(t.value)switch(t.type){case"month":{if(t.contentType==="digit")return e.format(e.setMonth(e.date(),Number(t.value)-1),"month");const n=e.parse(t.value,t.format);return n?e.format(n,"month"):void 0}case"day":return t.contentType==="digit"?e.format(e.setDate(e.startOfYear(e.date()),Number(t.value)),"dayOfMonthFull"):t.value;case"weekDay":return;default:return}},Hq=(t,e)=>{if(t.value)switch(t.type){case"weekDay":return t.contentType==="letter"?void 0:Number(t.value);case"meridiem":{const n=e.parse(`01:00 ${t.value}`,`${e.formats.hours12h}:${e.formats.minutes} ${t.format}`);return n?e.getHours(n)>=12?1:0:void 0}case"day":return t.contentType==="digit-with-letter"?parseInt(t.value,10):Number(t.value);case"month":{if(t.contentType==="digit")return Number(t.value);const n=e.parse(t.value,t.format);return n?e.getMonth(n)+1:void 0}default:return t.contentType!=="letter"?Number(t.value):void 0}},Wq=["value","referenceDate"],Jo={emptyValue:null,getTodayValue:a_,getInitialReferenceValue:t=>{let{value:e,referenceDate:n}=t,r=at(t,Wq);return e!=null&&r.utils.isValid(e)?e:n??Mq(r)},cleanValue:xq,areValuesEqual:wq,isSameError:(t,e)=>t===e,hasError:t=>t!=null,defaultErrorState:null,getTimezone:(t,e)=>e==null||!t.isValid(e)?null:t.getTimezone(e),setTimezone:(t,e,n)=>n==null?null:t.setTimezone(n,e)},jq={updateReferenceValue:(t,e,n)=>e==null||!t.isValid(e)?n:e,getSectionsFromValue:(t,e,n,r)=>!t.isValid(e)&&!!n?n:r(e),getV7HiddenInputValueFromSections:$q,getV6InputValueFromSections:Lq,getActiveDateManager:(t,e)=>({date:e.value,referenceDate:e.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!t.isValid(n)?e.referenceValue:n})}),parseValueStr:(t,e,n)=>n(t.trim(),e)},Uq=A.createContext();process.env.NODE_ENV!=="production"&&(c.node,c.bool);const Ei=()=>A.useContext(Uq)??!1,gu=({props:t,value:e,timezone:n,adapter:r})=>{if(e===null)return null;const{shouldDisableDate:o,shouldDisableMonth:i,shouldDisableYear:s,disablePast:a,disableFuture:l}=t,u=r.utils.date(void 0,n),f=ro(r.utils,t.minDate,r.defaultDates.minDate),p=ro(r.utils,t.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(e):return"invalidDate";case!!(o&&o(e)):return"shouldDisableDate";case!!(i&&i(e)):return"shouldDisableMonth";case!!(s&&s(e)):return"shouldDisableYear";case!!(l&&r.utils.isAfterDay(e,u)):return"disableFuture";case!!(a&&r.utils.isBeforeDay(e,u)):return"disablePast";case!!(f&&r.utils.isBeforeDay(e,f)):return"minDate";case!!(p&&r.utils.isAfterDay(e,p)):return"maxDate";default:return null}};gu.valueManager=Jo;const w_=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],qq=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Kq=["minDateTime","maxDateTime"],Yq=[...w_,...qq,...Kq],S_=t=>Yq.reduce((e,n)=>(t.hasOwnProperty(n)&&(e[n]=t[n]),e),{}),Gq=t=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:se({},t)}}}}),C_=t=>{const{utils:e,formatKey:n,contextTranslation:r,propsTranslation:o}=t;return i=>{const s=i!==null&&e.isValid(i)?e.format(i,n):null;return(o??r)(i,e,s)}},T_={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:t=>t==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(t,e,n,r)=>`Select ${t}. ${!r&&(e===null||!n.isValid(e))?"No time selected":`Selected time is ${r??n.format(e,"fullTime")}`}`,hoursClockNumberText:t=>`${t} hours`,minutesClockNumberText:t=>`${t} minutes`,secondsClockNumberText:t=>`${t} seconds`,selectViewText:t=>`Select ${t}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:t=>`Week ${t}`,calendarWeekNumberText:t=>`${t}`,openDatePickerDialogue:(t,e,n)=>n||t!==null&&e.isValid(t)?`Choose date, selected date is ${n??e.format(t,"fullDate")}`:"Choose date",openTimePickerDialogue:(t,e,n)=>n||t!==null&&e.isValid(t)?`Choose time, selected time is ${n??e.format(t,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:t=>"Y".repeat(t.digitAmount),fieldMonthPlaceholder:t=>t.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:t=>t.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},Jq=T_;Gq(T_);const ya=()=>{const t=A.useContext(hp);if(t===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
390
390
  `));if(t.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
391
- `));const e=A.useMemo(()=>se({},Jq,t.localeText),[t.localeText]);return A.useMemo(()=>se({},t,{localeText:e}),[t,e])},qt=()=>ya().utils,yu=()=>ya().defaultDates,Cp=t=>{const e=qt(),n=A.useRef(void 0);return n.current===void 0&&(n.current=e.date(void 0,t)),n.current};function k_(t){const{props:e,validator:n,value:r,timezone:o,onError:i}=t,s=ya(),a=A.useRef(n.valueManager.defaultErrorState),l=n({adapter:s,value:r,timezone:o,props:e}),u=n.valueManager.hasError(l);A.useEffect(()=>{i&&!n.valueManager.isSameError(l,a.current)&&i(l,r),a.current=l},[n,i,l,r]);const f=ze(p=>n({adapter:s,value:p,timezone:o,props:e}));return{validationError:l,hasValidationError:u,getValidationErrorForNewValue:f}}const Oi=()=>ya().localeText,Xq=({utils:t,format:e})=>{let n=10,r=e,o=t.expandFormat(e);for(;o!==r;)if(r=o,o=t.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return o},Zq=({utils:t,expandedFormat:e})=>{const n=[],{start:r,end:o}=t.escapedCharacters,i=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let s=null;for(;s=i.exec(e);)n.push({start:s.index,end:i.lastIndex-1});return n},Qq=(t,e,n,r)=>{switch(n.type){case"year":return e.fieldYearPlaceholder({digitAmount:t.formatByString(t.date(void 0,"default"),r).length,format:r});case"month":return e.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return e.fieldDayPlaceholder({format:r});case"weekDay":return e.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return e.fieldHoursPlaceholder({format:r});case"minutes":return e.fieldMinutesPlaceholder({format:r});case"seconds":return e.fieldSecondsPlaceholder({format:r});case"meridiem":return e.fieldMeridiemPlaceholder({format:r});default:return r}},eK=({utils:t,date:e,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:o,now:i,token:s,startSeparator:a})=>{if(s==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=C0(t,s),u=g_(t,l.contentType,l.type,s),f=n?u:l.contentType==="digit",p=e!=null&&t.isValid(e);let m=p?t.formatByString(e,s):"",b=null;if(f)if(u)b=m===""?t.formatByString(i,s).length:m.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${s} should have a 'maxDigitNumber' property on it's adapter`);b=l.maxLength,p&&(m=T0(p_(ga(m,o),b),o))}return se({},l,{format:s,maxLength:b,value:m,placeholder:Qq(t,r,l,s),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:f,startSeparator:a,endSeparator:"",modified:!1})},tK=t=>{var b;const{utils:e,expandedFormat:n,escapedParts:r}=t,o=e.date(void 0),i=[];let s="";const a=Object.keys(e.formatTokenMap).sort((v,y)=>y.length-v.length),l=/^([a-zA-Z]+)/,u=new RegExp(`^(${a.join("|")})*$`),f=new RegExp(`^(${a.join("|")})`),p=v=>r.find(y=>y.start<=v&&y.end>=v);let m=0;for(;m<n.length;){const v=p(m),y=v!=null,x=(b=l.exec(n.slice(m)))==null?void 0:b[1];if(!y&&x!=null&&u.test(x)){let S=x;for(;S.length>0;){const k=f.exec(S)[1];S=S.slice(k.length),i.push(eK(se({},t,{now:o,token:k,startSeparator:s}))),s=""}m+=x.length}else{const S=n[m];y&&(v==null?void 0:v.start)===m||(v==null?void 0:v.end)===m||(i.length===0?s+=S:i[i.length-1].endSeparator+=S),m+=1}}return i.length===0&&s.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:s,endSeparator:"",modified:!1}),i},nK=({isRtl:t,formatDensity:e,sections:n})=>n.map(r=>{const o=i=>{let s=i;return t&&s!==null&&s.includes(" ")&&(s=`⁩${s}⁦`),e==="spacious"&&["/",".","-"].includes(s)&&(s=` ${s} `),s};return r.startSeparator=o(r.startSeparator),r.endSeparator=o(r.endSeparator),r}),E_=t=>{let e=Xq(t);t.isRtl&&t.enableAccessibleFieldDOMStructure&&(e=e.split(" ").reverse().join(" "));const n=Zq(se({},t,{expandedFormat:e})),r=tK(se({},t,{expandedFormat:e,escapedParts:n}));return nK(se({},t,{sections:r}))},O0=({timezone:t,value:e,defaultValue:n,referenceDate:r,onChange:o,valueManager:i})=>{const s=qt(),a=A.useRef(n),l=e??a.current??i.emptyValue,u=A.useMemo(()=>i.getTimezone(s,l),[s,i,l]),f=ze(v=>u==null?v:i.setTimezone(s,u,v));let p;t?p=t:u?p=u:r?p=s.getTimezone(r):p="default";const m=A.useMemo(()=>i.setTimezone(s,p,l),[i,s,p,l]),b=ze((v,...y)=>{const x=f(v);o==null||o(x,...y)});return{value:m,handleValueChange:b,timezone:p}},M0=({name:t,timezone:e,value:n,defaultValue:r,referenceDate:o,onChange:i,valueManager:s})=>{const[a,l]=Lo({name:t,state:"value",controlled:n,default:r??s.emptyValue}),u=ze((f,...p)=>{l(f),i==null||i(f,...p)});return O0({timezone:e,value:a,defaultValue:void 0,referenceDate:o,onChange:u,valueManager:s})},rK=t=>{const e=qt(),n=Oi(),r=ya(),o=Ei(),{valueManager:i,fieldValueManager:s,valueType:a,validator:l,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:m,onChange:b,format:v,formatDensity:y="dense",selectedSections:x,onSelectedSectionsChange:S,shouldRespectLeadingZeros:k=!1,timezone:T,enableAccessibleFieldDOMStructure:C=!1}}=t,{timezone:O,value:I,handleValueChange:N}=O0({timezone:T,value:f,defaultValue:p,referenceDate:m,onChange:b,valueManager:i}),L=A.useMemo(()=>Dq(e),[e]),V=A.useMemo(()=>Bq(e,L,O),[e,L,O]),M=A.useCallback((Z,te=null)=>s.getSectionsFromValue(e,Z,te,ce=>E_({utils:e,localeText:n,localizedDigits:L,format:v,date:ce,formatDensity:y,shouldRespectLeadingZeros:k,enableAccessibleFieldDOMStructure:C,isRtl:o})),[s,v,n,L,o,k,e,y,C]),[B,H]=A.useState(()=>{const Z=M(I);b_(Z,a);const te={sections:Z,value:I,referenceValue:i.emptyValue,tempValueStrAndroid:null},ce=Oq(Z),ne=i.getInitialReferenceValue({referenceDate:m,value:I,utils:e,props:u,granularity:ce,timezone:O});return se({},te,{referenceValue:ne})}),[F,P]=Lo({controlled:x,default:null,name:"useField",state:"selectedSections"}),_=Z=>{P(Z),S==null||S(Z)},D=A.useMemo(()=>E0(F,B.sections),[F,B.sections]),R=D==="all"?0:D,j=({value:Z,referenceValue:te,sections:ce})=>{if(H(re=>se({},re,{sections:ce,value:Z,referenceValue:te,tempValueStrAndroid:null})),i.areValuesEqual(e,B.value,Z))return;const ne={validationError:l({adapter:r,value:Z,timezone:O,props:u})};N(Z,ne)},K=(Z,te)=>{const ce=[...B.sections];return ce[Z]=se({},ce[Z],{value:te,modified:!0}),ce},U=()=>{j({value:i.emptyValue,referenceValue:B.referenceValue,sections:M(i.emptyValue)})},Y=()=>{if(R==null)return;const Z=B.sections[R],te=s.getActiveDateManager(e,B,Z),ne=te.getSections(B.sections).filter(X=>X.value!=="").length===(Z.value===""?0:1),re=K(R,""),le=ne?null:e.getInvalidDate(),ye=te.getNewValuesFromNewActiveDate(le);j(se({},ye,{sections:re}))},fe=Z=>{const te=(re,le)=>{const ye=e.parse(re,v);if(ye==null||!e.isValid(ye))return null;const X=E_({utils:e,localeText:n,localizedDigits:L,format:v,date:ye,formatDensity:y,shouldRespectLeadingZeros:k,enableAccessibleFieldDOMStructure:C,isRtl:o});return x_(e,ye,X,le,!1)},ce=s.parseValueStr(Z,B.referenceValue,te),ne=s.updateReferenceValue(e,ce,B.referenceValue);j({value:ce,referenceValue:ne,sections:M(ce,B.sections)})},ue=({activeSection:Z,newSectionValue:te,shouldGoToNextSection:ce})=>{ce&&R<B.sections.length-1&&_(R+1);const ne=s.getActiveDateManager(e,B,Z),re=K(R,te),le=ne.getSections(re),ye=Nq(e,le,L);let X,ee;if(ye!=null&&e.isValid(ye)){const ie=x_(e,ye,le,ne.referenceDate,!0);X=ne.getNewValuesFromNewActiveDate(ie),ee=!0}else X=ne.getNewValuesFromNewActiveDate(ye),ee=(ye!=null&&!e.isValid(ye))!=(ne.date!=null&&!e.isValid(ne.date));return ee?j(se({},X,{sections:re})):H(ie=>se({},ie,X,{sections:re,tempValueStrAndroid:null}))},pe=Z=>H(te=>se({},te,{tempValueStrAndroid:Z}));return A.useEffect(()=>{const Z=M(B.value);b_(Z,a),H(te=>se({},te,{sections:Z}))},[v,e.locale,o]),A.useEffect(()=>{let Z;i.areValuesEqual(e,B.value,I)?Z=i.getTimezone(e,B.value)!==i.getTimezone(e,I):Z=!0,Z&&H(te=>se({},te,{value:I,referenceValue:s.updateReferenceValue(e,I,te.referenceValue),sections:M(I)}))},[I]),{state:B,activeSectionIndex:R,parsedSelectedSections:D,setSelectedSections:_,clearValue:U,clearActiveSection:Y,updateSectionValue:ue,updateValueFromValueStr:fe,setTempAndroidValueStr:pe,getSectionsFromValue:M,sectionsValueBoundaries:V,localizedDigits:L,timezone:O}},oK=5e3,Ol=t=>t.saveQuery!=null,iK=({sections:t,updateSectionValue:e,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:i})=>{const s=qt(),[a,l]=A.useState(null),u=ze(()=>l(null));A.useEffect(()=>{var v;a!=null&&((v=t[a.sectionIndex])==null?void 0:v.type)!==a.sectionType&&u()},[t,a,u]),A.useEffect(()=>{if(a!=null){const v=setTimeout(()=>u(),oK);return()=>{clearTimeout(v)}}return()=>{}},[a,u]);const f=({keyPressed:v,sectionIndex:y},x,S)=>{const k=v.toLowerCase(),T=t[y];if(a!=null&&(!S||S(a.value))&&a.sectionIndex===y){const O=`${a.value}${k}`,I=x(O,T);if(!Ol(I))return l({sectionIndex:y,value:O,sectionType:T.type}),I}const C=x(k,T);return Ol(C)&&!C.saveQuery?(u(),null):(l({sectionIndex:y,value:k,sectionType:T.type}),Ol(C)?null:C)},p=v=>{const y=(k,T,C)=>{const O=T.filter(I=>I.toLowerCase().startsWith(C));return O.length===0?{saveQuery:!1}:{sectionValue:O[0],shouldGoToNextSection:O.length===1}},x=(k,T,C,O)=>{const I=N=>u_(s,i,T.type,N);if(T.contentType==="letter")return y(T.format,I(T.format),k);if(C&&O!=null&&C0(s,C).contentType==="letter"){const N=I(C),L=y(C,N,k);return Ol(L)?{saveQuery:!1}:se({},L,{sectionValue:O(L.sectionValue,N)})}return{saveQuery:!1}};return f(v,(k,T)=>{switch(T.type){case"month":{const C=O=>m_(s,O,s.formats.month,T.format);return x(k,T,s.formats.month,C)}case"weekDay":{const C=(O,I)=>I.indexOf(O).toString();return x(k,T,s.formats.weekday,C)}case"meridiem":return x(k,T);default:return{saveQuery:!1}}})},m=v=>{const y=(S,k)=>{const T=ga(S,r),C=Number(T),O=n[k.type]({currentDate:null,format:k.format,contentType:k.contentType});if(C>O.maximum)return{saveQuery:!1};if(C<O.minimum)return{saveQuery:!0};const I=C*10>O.maximum||T.length===O.maximum.toString().length;return{sectionValue:h_(s,C,O,r,k),shouldGoToNextSection:I}};return f(v,(S,k)=>{if(k.contentType==="digit"||k.contentType==="digit-with-letter")return y(S,k);if(k.type==="month"){g_(s,"digit","month","MM");const T=y(S,{type:k.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Ol(T))return T;const C=m_(s,T.sectionValue,"MM",k.format);return se({},T,{sectionValue:C})}if(k.type==="weekDay"){const T=y(S,k);if(Ol(T))return T;const C=Sp(s,k.format)[Number(T.sectionValue)-1];return se({},T,{sectionValue:C})}return{saveQuery:!1}},S=>f_(S,r))};return{applyCharacterEditing:ze(v=>{const y=t[v.sectionIndex],S=f_(v.keyPressed,r)?m(se({},v,{keyPressed:T0(v.keyPressed,r)})):p(v);if(S==null){o(null);return}e({activeSection:y,newSectionValue:S.sectionValue,shouldGoToNextSection:S.shouldGoToNextSection})}),resetCharacterQuery:u}};function sK(t,e){return Array.isArray(e)?e.every(n=>t.indexOf(n)!==-1):t.indexOf(e)!==-1}const aK=(t,e)=>n=>{(n.key==="Enter"||n.key===" ")&&(t(n),n.preventDefault(),n.stopPropagation())},Sr=(t=document)=>{const e=t.activeElement;return e?e.shadowRoot?Sr(e.shadowRoot):e:null},lK="@media (pointer: fine)",cK=t=>{const{internalProps:{disabled:e,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:o,onClick:i,onFocus:s,onInput:a,onPaste:l,focused:u,autoFocus:f=!1},fieldValueManager:p,applyCharacterEditing:m,resetCharacterQuery:b,setSelectedSections:v,parsedSelectedSections:y,state:x,clearActiveSection:S,clearValue:k,updateSectionValue:T,updateValueFromValueStr:C,sectionOrder:O,areAllSectionsEmpty:I,sectionsValueBoundaries:N}=t,L=A.useRef(null),V=Ot(r,L),M=Oi(),B=qt(),H=vo(),[F,P]=A.useState(!1),_=A.useMemo(()=>({syncSelectionToDOM:()=>{if(!L.current)return;const ee=document.getSelection();if(!ee)return;if(y==null){ee.rangeCount>0&&L.current.getRoot().contains(ee.getRangeAt(0).startContainer)&&ee.removeAllRanges(),F&&L.current.getRoot().blur();return}if(!L.current.getRoot().contains(Sr(document)))return;const ie=new window.Range;let we;y==="all"?we=L.current.getRoot():x.sections[y].type==="empty"?we=L.current.getSectionContainer(y):we=L.current.getSectionContent(y),ie.selectNodeContents(we),we.focus(),ee.removeAllRanges(),ee.addRange(ie)},getActiveSectionIndexFromDOM:()=>{const ee=Sr(document);return!ee||!L.current||!L.current.getRoot().contains(ee)?null:L.current.getSectionIndexFromDOMElement(ee)},focusField:(ee=0)=>{if(!L.current||_.getActiveSectionIndexFromDOM()!=null)return;const ie=E0(ee,x.sections);P(!0),L.current.getSectionContent(ie).focus()},setSelectedSections:ee=>{if(!L.current)return;const ie=E0(ee,x.sections);P((ie==="all"?0:ie)!==null),v(ee)},isFieldFocused:()=>{const ee=Sr(document);return!!L.current&&L.current.getRoot().contains(ee)}}),[y,v,x.sections,F]),D=ze(ee=>{if(!L.current)return;const ie=x.sections[ee];L.current.getSectionContent(ee).innerHTML=ie.value||ie.placeholder,_.syncSelectionToDOM()}),R=ze((ee,...ie)=>{ee.isDefaultPrevented()||!L.current||(P(!0),i==null||i(ee,...ie),y==="all"?setTimeout(()=>{const we=document.getSelection().getRangeAt(0).startOffset;if(we===0){v(O.startIndex);return}let Ce=0,Ae=0;for(;Ae<we&&Ce<x.sections.length;){const Me=x.sections[Ce];Ce+=1,Ae+=`${Me.startSeparator}${Me.value||Me.placeholder}${Me.endSeparator}`.length}v(Ce-1)}):F?L.current.getRoot().contains(ee.target)||v(O.startIndex):(P(!0),v(O.startIndex)))}),j=ze(ee=>{if(a==null||a(ee),!L.current||y!=="all")return;const we=ee.target.textContent??"";L.current.getRoot().innerHTML=x.sections.map(Ce=>`${Ce.startSeparator}${Ce.value||Ce.placeholder}${Ce.endSeparator}`).join(""),_.syncSelectionToDOM(),we.length===0||we.charCodeAt(0)===10?(b(),k(),v("all")):we.length>1?C(we):(y==="all"&&v(0),m({keyPressed:we,sectionIndex:0}))}),K=ze(ee=>{if(l==null||l(ee),n||y!=="all"){ee.preventDefault();return}const ie=ee.clipboardData.getData("text");ee.preventDefault(),b(),C(ie)}),U=ze((...ee)=>{if(s==null||s(...ee),F||!L.current)return;P(!0),L.current.getSectionIndexFromDOMElement(Sr(document))!=null||v(O.startIndex)}),Y=ze((...ee)=>{o==null||o(...ee),setTimeout(()=>{if(!L.current)return;const ie=Sr(document);!L.current.getRoot().contains(ie)&&(P(!1),v(null))})}),fe=ze(ee=>ie=>{ie.isDefaultPrevented()||v(ee)}),ue=ze(ee=>{ee.preventDefault()}),pe=ze(ee=>()=>{v(ee)}),Z=ze(ee=>{if(ee.preventDefault(),n||e||typeof y!="number")return;const ie=x.sections[y],we=ee.clipboardData.getData("text"),Ce=/^[a-zA-Z]+$/.test(we),Ae=/^[0-9]+$/.test(we),Me=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(we);ie.contentType==="letter"&&Ce||ie.contentType==="digit"&&Ae||ie.contentType==="digit-with-letter"&&Me?(b(),T({activeSection:ie,newSectionValue:we,shouldGoToNextSection:!0})):!Ce&&!Ae&&(b(),C(we))}),te=ze(ee=>{ee.preventDefault(),ee.dataTransfer.dropEffect="none"}),ce=ze(ee=>{if(!L.current)return;const ie=ee.target,we=ie.textContent??"",Ce=L.current.getSectionIndexFromDOMElement(ie),Ae=x.sections[Ce];if(n||!L.current){D(Ce);return}if(we.length===0){if(Ae.value===""){D(Ce);return}const Me=ee.nativeEvent.inputType;if(Me==="insertParagraph"||Me==="insertLineBreak"){D(Ce);return}b(),S();return}m({keyPressed:we,sectionIndex:Ce}),D(Ce)});In(()=>{if(!(!F||!L.current)){if(y==="all")L.current.getRoot().focus();else if(typeof y=="number"){const ee=L.current.getSectionContent(y);ee&&ee.focus()}}},[y,F]);const ne=A.useMemo(()=>x.sections.reduce((ee,ie)=>(ee[ie.type]=N[ie.type]({currentDate:null,contentType:ie.contentType,format:ie.format}),ee),{}),[N,x.sections]),re=y==="all",le=A.useMemo(()=>x.sections.map((ee,ie)=>{const we=!re&&!e&&!n;return{container:{"data-sectionindex":ie,onClick:fe(ie)},content:{tabIndex:re||ie>0?-1:0,contentEditable:!re&&!e&&!n,role:"spinbutton",id:`${H}-${ee.type}`,"aria-labelledby":`${H}-${ee.type}`,"aria-readonly":n,"aria-valuenow":Hq(ee,B),"aria-valuemin":ne[ee.type].minimum,"aria-valuemax":ne[ee.type].maximum,"aria-valuetext":ee.value?Vq(ee,B):M.empty,"aria-label":M[ee.type],"aria-disabled":e,spellCheck:we?!1:void 0,autoCapitalize:we?"off":void 0,autoCorrect:we?"off":void 0,[parseInt(A.version,10)>=17?"enterKeyHint":"enterkeyhint"]:we?"next":void 0,children:ee.value||ee.placeholder,onInput:ce,onPaste:Z,onFocus:pe(ie),onDragOver:te,onMouseUp:ue,inputMode:ee.contentType==="letter"?"text":"numeric"},before:{children:ee.startSeparator},after:{children:ee.endSeparator}}}),[x.sections,pe,Z,te,ce,fe,ue,e,n,re,M,B,ne,H]),ye=ze(ee=>{C(ee.target.value)}),X=A.useMemo(()=>I?"":p.getV7HiddenInputValueFromSections(x.sections),[I,x.sections,p]);return A.useEffect(()=>{if(L.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
392
- `));f&&L.current&&L.current.getSectionContent(O.startIndex).focus()},[]),{interactions:_,returnedValue:{autoFocus:f,readOnly:n,focused:u??F,sectionListRef:V,onBlur:Y,onClick:R,onFocus:U,onInput:j,onPaste:K,enableAccessibleFieldDOMStructure:!0,elements:le,tabIndex:y===0?-1:0,contentEditable:re,value:X,onChange:ye,areAllSectionsEmpty:I}}},Ml=t=>t.replace(/[\u2066\u2067\u2068\u2069]/g,""),uK=(t,e,n)=>{let r=0,o=n?1:0;const i=[];for(let s=0;s<t.length;s+=1){const a=t[s],l=k0(a,n?"input-rtl":"input-ltr",e),u=`${a.startSeparator}${l}${a.endSeparator}`,f=Ml(u).length,p=u.length,m=Ml(l),b=o+(m===""?0:l.indexOf(m[0]))+a.startSeparator.length,v=b+m.length;i.push(se({},a,{start:r,end:r+f,startInInput:b,endInInput:v})),r+=f,o+=p}return i},dK=t=>{const e=Ei(),n=A.useRef(void 0),r=A.useRef(void 0),{forwardedProps:{onFocus:o,onClick:i,onPaste:s,onBlur:a,inputRef:l,placeholder:u},internalProps:{readOnly:f=!1,disabled:p=!1},parsedSelectedSections:m,activeSectionIndex:b,state:v,fieldValueManager:y,valueManager:x,applyCharacterEditing:S,resetCharacterQuery:k,updateSectionValue:T,updateValueFromValueStr:C,clearActiveSection:O,clearValue:I,setTempAndroidValueStr:N,setSelectedSections:L,getSectionsFromValue:V,areAllSectionsEmpty:M,localizedDigits:B}=t,H=A.useRef(null),F=Ot(l,H),P=A.useMemo(()=>uK(v.sections,B,e),[v.sections,B,e]),_=A.useMemo(()=>({syncSelectionToDOM:()=>{if(!H.current)return;if(m==null){H.current.scrollLeft&&(H.current.scrollLeft=0);return}if(H.current!==Sr(document))return;const ce=H.current.scrollTop;if(m==="all")H.current.select();else{const ne=P[m],re=ne.type==="empty"?ne.startInInput-ne.startSeparator.length:ne.startInInput,le=ne.type==="empty"?ne.endInInput+ne.endSeparator.length:ne.endInInput;(re!==H.current.selectionStart||le!==H.current.selectionEnd)&&H.current===Sr(document)&&H.current.setSelectionRange(re,le),clearTimeout(r.current),r.current=setTimeout(()=>{H.current&&H.current===Sr(document)&&H.current.selectionStart===H.current.selectionEnd&&(H.current.selectionStart!==re||H.current.selectionEnd!==le)&&_.syncSelectionToDOM()})}H.current.scrollTop=ce},getActiveSectionIndexFromDOM:()=>{const ce=H.current.selectionStart??0,ne=H.current.selectionEnd??0;if(ce===0&&ne===0)return null;const re=ce<=P[0].startInInput?1:P.findIndex(le=>le.startInInput-le.startSeparator.length>ce);return re===-1?P.length-1:re-1},focusField:(ce=0)=>{var ne;Sr(document)!==H.current&&((ne=H.current)==null||ne.focus(),L(ce))},setSelectedSections:ce=>L(ce),isFieldFocused:()=>H.current===Sr(document)}),[H,m,P,L]),D=()=>{const ce=H.current.selectionStart??0;let ne;ce<=P[0].startInInput||ce>=P[P.length-1].endInInput?ne=1:ne=P.findIndex(le=>le.startInInput-le.startSeparator.length>ce);const re=ne===-1?P.length-1:ne-1;L(re)},R=ze((...ce)=>{o==null||o(...ce);const ne=H.current;clearTimeout(n.current),n.current=setTimeout(()=>{!ne||ne!==H.current||b==null&&(ne.value.length&&Number(ne.selectionEnd)-Number(ne.selectionStart)===ne.value.length?L("all"):D())})}),j=ze((ce,...ne)=>{ce.isDefaultPrevented()||(i==null||i(ce,...ne),D())}),K=ze(ce=>{if(s==null||s(ce),ce.preventDefault(),f||p)return;const ne=ce.clipboardData.getData("text");if(typeof m=="number"){const re=v.sections[m],le=/^[a-zA-Z]+$/.test(ne),ye=/^[0-9]+$/.test(ne),X=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ne);if(re.contentType==="letter"&&le||re.contentType==="digit"&&ye||re.contentType==="digit-with-letter"&&X){k(),T({activeSection:re,newSectionValue:ne,shouldGoToNextSection:!0});return}if(le||ye)return}k(),C(ne)}),U=ze((...ce)=>{a==null||a(...ce),L(null)}),Y=ze(ce=>{if(f)return;const ne=ce.target.value;if(ne===""){k(),I();return}const re=ce.nativeEvent.data,le=re&&re.length>1,ye=le?re:ne,X=Ml(ye);if(m==="all"&&L(b),b==null||le){C(le?re:X);return}let ee;if(m==="all"&&X.length===1)ee=X;else{const ie=Ml(y.getV6InputValueFromSections(P,B,e));let we=-1,Ce=-1;for(let me=0;me<ie.length;me+=1)we===-1&&ie[me]!==X[me]&&(we=me),Ce===-1&&ie[ie.length-me-1]!==X[X.length-me-1]&&(Ce=me);const Ae=P[b];if(we<Ae.start||ie.length-Ce-1>Ae.end)return;const Ie=X.length-ie.length+Ae.end-Ml(Ae.endSeparator||"").length;ee=X.slice(Ae.start+Ml(Ae.startSeparator||"").length,Ie)}if(ee.length===0){Rq()&&N(ye),k(),O();return}S({keyPressed:ee,sectionIndex:b})}),fe=A.useMemo(()=>u!==void 0?u:y.getV6InputValueFromSections(V(x.emptyValue),B,e),[u,y,V,x.emptyValue,B,e]),ue=A.useMemo(()=>v.tempValueStrAndroid??y.getV6InputValueFromSections(v.sections,B,e),[v.sections,y,v.tempValueStrAndroid,B,e]);A.useEffect(()=>(H.current&&H.current===Sr(document)&&L("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const pe=A.useMemo(()=>b==null||v.sections[b].contentType==="letter"?"text":"numeric",[b,v.sections]),te=!(H.current&&H.current===Sr(document))&&M;return{interactions:_,returnedValue:{readOnly:f,onBlur:U,onClick:j,onFocus:R,onPaste:K,inputRef:F,enableAccessibleFieldDOMStructure:!1,placeholder:fe,inputMode:pe,autoComplete:"off",value:te?"":ue,onChange:Y}}},fK=t=>{const e=qt(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:i=!1,disabled:s=!1,readOnly:a=!1},forwardedProps:{onKeyDown:l,error:u,clearable:f,onClear:p},fieldValueManager:m,valueManager:b,validator:v}=t,y=Ei(),x=rK(t),{state:S,activeSectionIndex:k,parsedSelectedSections:T,setSelectedSections:C,clearValue:O,clearActiveSection:I,updateSectionValue:N,setTempAndroidValueStr:L,sectionsValueBoundaries:V,localizedDigits:M,timezone:B}=x,H=iK({sections:S.sections,updateSectionValue:N,sectionsValueBoundaries:V,localizedDigits:M,setTempAndroidValueStr:L,timezone:B}),{resetCharacterQuery:F}=H,P=b.areValuesEqual(e,S.value,b.emptyValue),_=i?cK:dK,D=A.useMemo(()=>zq(S.sections,y&&!i),[S.sections,y,i]),{returnedValue:R,interactions:j}=_(se({},t,x,H,{areAllSectionsEmpty:P,sectionOrder:D})),K=ze(Z=>{if(l==null||l(Z),!s)switch(!0){case((Z.ctrlKey||Z.metaKey)&&String.fromCharCode(Z.keyCode)==="A"&&!Z.shiftKey&&!Z.altKey):{Z.preventDefault(),C("all");break}case Z.key==="ArrowRight":{if(Z.preventDefault(),T==null)C(D.startIndex);else if(T==="all")C(D.endIndex);else{const te=D.neighbors[T].rightIndex;te!==null&&C(te)}break}case Z.key==="ArrowLeft":{if(Z.preventDefault(),T==null)C(D.endIndex);else if(T==="all")C(D.startIndex);else{const te=D.neighbors[T].leftIndex;te!==null&&C(te)}break}case Z.key==="Delete":{if(Z.preventDefault(),a)break;T==null||T==="all"?O():I(),F();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(Z.key):{if(Z.preventDefault(),a||k==null)break;T==="all"&&C(k);const te=S.sections[k],ce=m.getActiveDateManager(e,S,te),ne=Aq(e,B,te,Z.key,V,M,ce.date,{minutesStep:o});N({activeSection:te,newSectionValue:ne,shouldGoToNextSection:!1});break}}});In(()=>{j.syncSelectionToDOM()});const{hasValidationError:U}=k_({props:n,validator:v,timezone:B,value:S.value,onError:n.onError}),Y=A.useMemo(()=>u!==void 0?u:U,[U,u]);A.useEffect(()=>{!Y&&k==null&&F()},[S.referenceValue,k,Y]),A.useEffect(()=>{S.tempValueStrAndroid!=null&&k!=null&&(F(),I())},[S.sections]),A.useImperativeHandle(r,()=>({getSections:()=>S.sections,getActiveSectionIndex:j.getActiveSectionIndexFromDOM,setSelectedSections:j.setSelectedSections,focusField:j.focusField,isFieldFocused:j.isFieldFocused}));const fe=ze((Z,...te)=>{Z.preventDefault(),p==null||p(Z,...te),O(),j.isFieldFocused()?C(D.startIndex):j.focusField(0)}),ue={onKeyDown:K,onClear:fe,error:Y,clearable:!!(f&&!P&&!a&&!s)},pe={disabled:s,readOnly:a};return se({},t.forwardedProps,ue,pe,R)};function pK(t){return Ke("MuiIconButton",t)}const O_=je("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),hK=t=>{const{classes:e,disabled:n,color:r,edge:o,size:i,loading:s}=t,a={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${Ne(r)}`,o&&`edge${Ne(o)}`,`size${Ne(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return qe(a,pK,e)},mK=oe(ms,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.loading&&e.loading,n.color!=="default"&&e[`color${Ne(n.color)}`],n.edge&&e[`edge${Ne(n.edge)}`],e[`size${Ne(n.size)}`]]}})(bt(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:it(t.palette.action.active,t.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),bt(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(Hn()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(Hn()).map(([e])=>({props:{color:e},style:{"--IconButton-hoverBg":t.vars?`rgba(${(t.vars||t).palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:it((t.vars||t).palette[e].main,t.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${O_.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${O_.loading}`]:{color:"transparent"}}))),gK=oe("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(t,e)=>e.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),_l=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:l=!1,disableFocusRipple:u=!1,size:f="medium",id:p,loading:m=null,loadingIndicator:b,...v}=r,y=vo(p),x=b??g.jsx(Yy,{"aria-labelledby":y,color:"inherit",size:16}),S={...r,edge:o,color:a,disabled:l,disableFocusRipple:u,loading:m,loadingIndicator:x,size:f},k=hK(S);return g.jsxs(mK,{id:m?y:p,className:ge(k.root,s),centerRipple:!0,focusRipple:!u,disabled:l||m,ref:n,...v,ownerState:S,children:[typeof m=="boolean"&&g.jsx("span",{className:k.loadingWrapper,style:{display:"contents"},children:g.jsx(gK,{className:k.loadingIndicator,ownerState:S,children:m&&x})}),i]})});process.env.NODE_ENV!=="production"&&(_l.propTypes={children:si(c.node,t=>A.Children.toArray(t.children).some(n=>A.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
391
+ `));const e=A.useMemo(()=>se({},Jq,t.localeText),[t.localeText]);return A.useMemo(()=>se({},t,{localeText:e}),[t,e])},qt=()=>ya().utils,yu=()=>ya().defaultDates,Cp=t=>{const e=qt(),n=A.useRef(void 0);return n.current===void 0&&(n.current=e.date(void 0,t)),n.current};function k_(t){const{props:e,validator:n,value:r,timezone:o,onError:i}=t,s=ya(),a=A.useRef(n.valueManager.defaultErrorState),l=n({adapter:s,value:r,timezone:o,props:e}),u=n.valueManager.hasError(l);A.useEffect(()=>{i&&!n.valueManager.isSameError(l,a.current)&&i(l,r),a.current=l},[n,i,l,r]);const f=ze(p=>n({adapter:s,value:p,timezone:o,props:e}));return{validationError:l,hasValidationError:u,getValidationErrorForNewValue:f}}const Oi=()=>ya().localeText,Xq=({utils:t,format:e})=>{let n=10,r=e,o=t.expandFormat(e);for(;o!==r;)if(r=o,o=t.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return o},Zq=({utils:t,expandedFormat:e})=>{const n=[],{start:r,end:o}=t.escapedCharacters,i=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let s=null;for(;s=i.exec(e);)n.push({start:s.index,end:i.lastIndex-1});return n},Qq=(t,e,n,r)=>{switch(n.type){case"year":return e.fieldYearPlaceholder({digitAmount:t.formatByString(t.date(void 0,"default"),r).length,format:r});case"month":return e.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return e.fieldDayPlaceholder({format:r});case"weekDay":return e.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return e.fieldHoursPlaceholder({format:r});case"minutes":return e.fieldMinutesPlaceholder({format:r});case"seconds":return e.fieldSecondsPlaceholder({format:r});case"meridiem":return e.fieldMeridiemPlaceholder({format:r});default:return r}},eK=({utils:t,date:e,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:o,now:i,token:s,startSeparator:a})=>{if(s==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=C0(t,s),u=g_(t,l.contentType,l.type,s),f=n?u:l.contentType==="digit",p=e!=null&&t.isValid(e);let m=p?t.formatByString(e,s):"",b=null;if(f)if(u)b=m===""?t.formatByString(i,s).length:m.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${s} should have a 'maxDigitNumber' property on it's adapter`);b=l.maxLength,p&&(m=T0(p_(ga(m,o),b),o))}return se({},l,{format:s,maxLength:b,value:m,placeholder:Qq(t,r,l,s),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:f,startSeparator:a,endSeparator:"",modified:!1})},tK=t=>{var b;const{utils:e,expandedFormat:n,escapedParts:r}=t,o=e.date(void 0),i=[];let s="";const a=Object.keys(e.formatTokenMap).sort((v,y)=>y.length-v.length),l=/^([a-zA-Z]+)/,u=new RegExp(`^(${a.join("|")})*$`),f=new RegExp(`^(${a.join("|")})`),p=v=>r.find(y=>y.start<=v&&y.end>=v);let m=0;for(;m<n.length;){const v=p(m),y=v!=null,x=(b=l.exec(n.slice(m)))==null?void 0:b[1];if(!y&&x!=null&&u.test(x)){let S=x;for(;S.length>0;){const k=f.exec(S)[1];S=S.slice(k.length),i.push(eK(se({},t,{now:o,token:k,startSeparator:s}))),s=""}m+=x.length}else{const S=n[m];y&&(v==null?void 0:v.start)===m||(v==null?void 0:v.end)===m||(i.length===0?s+=S:i[i.length-1].endSeparator+=S),m+=1}}return i.length===0&&s.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:s,endSeparator:"",modified:!1}),i},nK=({isRtl:t,formatDensity:e,sections:n})=>n.map(r=>{const o=i=>{let s=i;return t&&s!==null&&s.includes(" ")&&(s=`⁩${s}⁦`),e==="spacious"&&["/",".","-"].includes(s)&&(s=` ${s} `),s};return r.startSeparator=o(r.startSeparator),r.endSeparator=o(r.endSeparator),r}),E_=t=>{let e=Xq(t);t.isRtl&&t.enableAccessibleFieldDOMStructure&&(e=e.split(" ").reverse().join(" "));const n=Zq(se({},t,{expandedFormat:e})),r=tK(se({},t,{expandedFormat:e,escapedParts:n}));return nK(se({},t,{sections:r}))},O0=({timezone:t,value:e,defaultValue:n,referenceDate:r,onChange:o,valueManager:i})=>{const s=qt(),a=A.useRef(n),l=e??a.current??i.emptyValue,u=A.useMemo(()=>i.getTimezone(s,l),[s,i,l]),f=ze(v=>u==null?v:i.setTimezone(s,u,v));let p;t?p=t:u?p=u:r?p=s.getTimezone(r):p="default";const m=A.useMemo(()=>i.setTimezone(s,p,l),[i,s,p,l]),b=ze((v,...y)=>{const x=f(v);o==null||o(x,...y)});return{value:m,handleValueChange:b,timezone:p}},M0=({name:t,timezone:e,value:n,defaultValue:r,referenceDate:o,onChange:i,valueManager:s})=>{const[a,l]=Lo({name:t,state:"value",controlled:n,default:r??s.emptyValue}),u=ze((f,...p)=>{l(f),i==null||i(f,...p)});return O0({timezone:e,value:a,defaultValue:void 0,referenceDate:o,onChange:u,valueManager:s})},rK=t=>{const e=qt(),n=Oi(),r=ya(),o=Ei(),{valueManager:i,fieldValueManager:s,valueType:a,validator:l,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:m,onChange:b,format:v,formatDensity:y="dense",selectedSections:x,onSelectedSectionsChange:S,shouldRespectLeadingZeros:k=!1,timezone:T,enableAccessibleFieldDOMStructure:C=!1}}=t,{timezone:O,value:I,handleValueChange:N}=O0({timezone:T,value:f,defaultValue:p,referenceDate:m,onChange:b,valueManager:i}),L=A.useMemo(()=>Dq(e),[e]),V=A.useMemo(()=>Bq(e,L,O),[e,L,O]),M=A.useCallback((Z,te=null)=>s.getSectionsFromValue(e,Z,te,ce=>E_({utils:e,localeText:n,localizedDigits:L,format:v,date:ce,formatDensity:y,shouldRespectLeadingZeros:k,enableAccessibleFieldDOMStructure:C,isRtl:o})),[s,v,n,L,o,k,e,y,C]),[B,H]=A.useState(()=>{const Z=M(I);b_(Z,a);const te={sections:Z,value:I,referenceValue:i.emptyValue,tempValueStrAndroid:null},ce=Oq(Z),ne=i.getInitialReferenceValue({referenceDate:m,value:I,utils:e,props:u,granularity:ce,timezone:O});return se({},te,{referenceValue:ne})}),[F,P]=Lo({controlled:x,default:null,name:"useField",state:"selectedSections"}),_=Z=>{P(Z),S==null||S(Z)},D=A.useMemo(()=>E0(F,B.sections),[F,B.sections]),R=D==="all"?0:D,j=({value:Z,referenceValue:te,sections:ce})=>{if(H(re=>se({},re,{sections:ce,value:Z,referenceValue:te,tempValueStrAndroid:null})),i.areValuesEqual(e,B.value,Z))return;const ne={validationError:l({adapter:r,value:Z,timezone:O,props:u})};N(Z,ne)},K=(Z,te)=>{const ce=[...B.sections];return ce[Z]=se({},ce[Z],{value:te,modified:!0}),ce},U=()=>{j({value:i.emptyValue,referenceValue:B.referenceValue,sections:M(i.emptyValue)})},Y=()=>{if(R==null)return;const Z=B.sections[R],te=s.getActiveDateManager(e,B,Z),ne=te.getSections(B.sections).filter(X=>X.value!=="").length===(Z.value===""?0:1),re=K(R,""),le=ne?null:e.getInvalidDate(),ye=te.getNewValuesFromNewActiveDate(le);j(se({},ye,{sections:re}))},fe=Z=>{const te=(re,le)=>{const ye=e.parse(re,v);if(ye==null||!e.isValid(ye))return null;const X=E_({utils:e,localeText:n,localizedDigits:L,format:v,date:ye,formatDensity:y,shouldRespectLeadingZeros:k,enableAccessibleFieldDOMStructure:C,isRtl:o});return x_(e,ye,X,le,!1)},ce=s.parseValueStr(Z,B.referenceValue,te),ne=s.updateReferenceValue(e,ce,B.referenceValue);j({value:ce,referenceValue:ne,sections:M(ce,B.sections)})},ue=({activeSection:Z,newSectionValue:te,shouldGoToNextSection:ce})=>{ce&&R<B.sections.length-1&&_(R+1);const ne=s.getActiveDateManager(e,B,Z),re=K(R,te),le=ne.getSections(re),ye=Nq(e,le,L);let X,ee;if(ye!=null&&e.isValid(ye)){const ie=x_(e,ye,le,ne.referenceDate,!0);X=ne.getNewValuesFromNewActiveDate(ie),ee=!0}else X=ne.getNewValuesFromNewActiveDate(ye),ee=(ye!=null&&!e.isValid(ye))!=(ne.date!=null&&!e.isValid(ne.date));return ee?j(se({},X,{sections:re})):H(ie=>se({},ie,X,{sections:re,tempValueStrAndroid:null}))},pe=Z=>H(te=>se({},te,{tempValueStrAndroid:Z}));return A.useEffect(()=>{const Z=M(B.value);b_(Z,a),H(te=>se({},te,{sections:Z}))},[v,e.locale,o]),A.useEffect(()=>{let Z;i.areValuesEqual(e,B.value,I)?Z=i.getTimezone(e,B.value)!==i.getTimezone(e,I):Z=!0,Z&&H(te=>se({},te,{value:I,referenceValue:s.updateReferenceValue(e,I,te.referenceValue),sections:M(I)}))},[I]),{state:B,activeSectionIndex:R,parsedSelectedSections:D,setSelectedSections:_,clearValue:U,clearActiveSection:Y,updateSectionValue:ue,updateValueFromValueStr:fe,setTempAndroidValueStr:pe,getSectionsFromValue:M,sectionsValueBoundaries:V,localizedDigits:L,timezone:O}},oK=5e3,Ol=t=>t.saveQuery!=null,iK=({sections:t,updateSectionValue:e,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:i})=>{const s=qt(),[a,l]=A.useState(null),u=ze(()=>l(null));A.useEffect(()=>{var v;a!=null&&((v=t[a.sectionIndex])==null?void 0:v.type)!==a.sectionType&&u()},[t,a,u]),A.useEffect(()=>{if(a!=null){const v=setTimeout(()=>u(),oK);return()=>{clearTimeout(v)}}return()=>{}},[a,u]);const f=({keyPressed:v,sectionIndex:y},x,S)=>{const k=v.toLowerCase(),T=t[y];if(a!=null&&(!S||S(a.value))&&a.sectionIndex===y){const O=`${a.value}${k}`,I=x(O,T);if(!Ol(I))return l({sectionIndex:y,value:O,sectionType:T.type}),I}const C=x(k,T);return Ol(C)&&!C.saveQuery?(u(),null):(l({sectionIndex:y,value:k,sectionType:T.type}),Ol(C)?null:C)},p=v=>{const y=(k,T,C)=>{const O=T.filter(I=>I.toLowerCase().startsWith(C));return O.length===0?{saveQuery:!1}:{sectionValue:O[0],shouldGoToNextSection:O.length===1}},x=(k,T,C,O)=>{const I=N=>u_(s,i,T.type,N);if(T.contentType==="letter")return y(T.format,I(T.format),k);if(C&&O!=null&&C0(s,C).contentType==="letter"){const N=I(C),L=y(C,N,k);return Ol(L)?{saveQuery:!1}:se({},L,{sectionValue:O(L.sectionValue,N)})}return{saveQuery:!1}};return f(v,(k,T)=>{switch(T.type){case"month":{const C=O=>m_(s,O,s.formats.month,T.format);return x(k,T,s.formats.month,C)}case"weekDay":{const C=(O,I)=>I.indexOf(O).toString();return x(k,T,s.formats.weekday,C)}case"meridiem":return x(k,T);default:return{saveQuery:!1}}})},m=v=>{const y=(S,k)=>{const T=ga(S,r),C=Number(T),O=n[k.type]({currentDate:null,format:k.format,contentType:k.contentType});if(C>O.maximum)return{saveQuery:!1};if(C<O.minimum)return{saveQuery:!0};const I=C*10>O.maximum||T.length===O.maximum.toString().length;return{sectionValue:h_(s,C,O,r,k),shouldGoToNextSection:I}};return f(v,(S,k)=>{if(k.contentType==="digit"||k.contentType==="digit-with-letter")return y(S,k);if(k.type==="month"){g_(s,"digit","month","MM");const T=y(S,{type:k.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Ol(T))return T;const C=m_(s,T.sectionValue,"MM",k.format);return se({},T,{sectionValue:C})}if(k.type==="weekDay"){const T=y(S,k);if(Ol(T))return T;const C=Sp(s,k.format)[Number(T.sectionValue)-1];return se({},T,{sectionValue:C})}return{saveQuery:!1}},S=>f_(S,r))};return{applyCharacterEditing:ze(v=>{const y=t[v.sectionIndex],S=f_(v.keyPressed,r)?m(se({},v,{keyPressed:T0(v.keyPressed,r)})):p(v);if(S==null){o(null);return}e({activeSection:y,newSectionValue:S.sectionValue,shouldGoToNextSection:S.shouldGoToNextSection})}),resetCharacterQuery:u}};function sK(t,e){return Array.isArray(e)?e.every(n=>t.indexOf(n)!==-1):t.indexOf(e)!==-1}const aK=(t,e)=>n=>{(n.key==="Enter"||n.key===" ")&&(t(n),n.preventDefault(),n.stopPropagation())},Sr=(t=document)=>{const e=t.activeElement;return e?e.shadowRoot?Sr(e.shadowRoot):e:null},lK="@media (pointer: fine)",cK=t=>{const{internalProps:{disabled:e,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:o,onClick:i,onFocus:s,onInput:a,onPaste:l,focused:u,autoFocus:f=!1},fieldValueManager:p,applyCharacterEditing:m,resetCharacterQuery:b,setSelectedSections:v,parsedSelectedSections:y,state:x,clearActiveSection:S,clearValue:k,updateSectionValue:T,updateValueFromValueStr:C,sectionOrder:O,areAllSectionsEmpty:I,sectionsValueBoundaries:N}=t,L=A.useRef(null),V=Ot(r,L),M=Oi(),B=qt(),H=vo(),[F,P]=A.useState(!1),_=A.useMemo(()=>({syncSelectionToDOM:()=>{if(!L.current)return;const ee=document.getSelection();if(!ee)return;if(y==null){ee.rangeCount>0&&L.current.getRoot().contains(ee.getRangeAt(0).startContainer)&&ee.removeAllRanges(),F&&L.current.getRoot().blur();return}if(!L.current.getRoot().contains(Sr(document)))return;const ie=new window.Range;let we;y==="all"?we=L.current.getRoot():x.sections[y].type==="empty"?we=L.current.getSectionContainer(y):we=L.current.getSectionContent(y),ie.selectNodeContents(we),we.focus(),ee.removeAllRanges(),ee.addRange(ie)},getActiveSectionIndexFromDOM:()=>{const ee=Sr(document);return!ee||!L.current||!L.current.getRoot().contains(ee)?null:L.current.getSectionIndexFromDOMElement(ee)},focusField:(ee=0)=>{if(!L.current||_.getActiveSectionIndexFromDOM()!=null)return;const ie=E0(ee,x.sections);P(!0),L.current.getSectionContent(ie).focus()},setSelectedSections:ee=>{if(!L.current)return;const ie=E0(ee,x.sections);P((ie==="all"?0:ie)!==null),v(ee)},isFieldFocused:()=>{const ee=Sr(document);return!!L.current&&L.current.getRoot().contains(ee)}}),[y,v,x.sections,F]),D=ze(ee=>{if(!L.current)return;const ie=x.sections[ee];L.current.getSectionContent(ee).innerHTML=ie.value||ie.placeholder,_.syncSelectionToDOM()}),R=ze((ee,...ie)=>{ee.isDefaultPrevented()||!L.current||(P(!0),i==null||i(ee,...ie),y==="all"?setTimeout(()=>{const we=document.getSelection().getRangeAt(0).startOffset;if(we===0){v(O.startIndex);return}let Ce=0,Pe=0;for(;Pe<we&&Ce<x.sections.length;){const Me=x.sections[Ce];Ce+=1,Pe+=`${Me.startSeparator}${Me.value||Me.placeholder}${Me.endSeparator}`.length}v(Ce-1)}):F?L.current.getRoot().contains(ee.target)||v(O.startIndex):(P(!0),v(O.startIndex)))}),j=ze(ee=>{if(a==null||a(ee),!L.current||y!=="all")return;const we=ee.target.textContent??"";L.current.getRoot().innerHTML=x.sections.map(Ce=>`${Ce.startSeparator}${Ce.value||Ce.placeholder}${Ce.endSeparator}`).join(""),_.syncSelectionToDOM(),we.length===0||we.charCodeAt(0)===10?(b(),k(),v("all")):we.length>1?C(we):(y==="all"&&v(0),m({keyPressed:we,sectionIndex:0}))}),K=ze(ee=>{if(l==null||l(ee),n||y!=="all"){ee.preventDefault();return}const ie=ee.clipboardData.getData("text");ee.preventDefault(),b(),C(ie)}),U=ze((...ee)=>{if(s==null||s(...ee),F||!L.current)return;P(!0),L.current.getSectionIndexFromDOMElement(Sr(document))!=null||v(O.startIndex)}),Y=ze((...ee)=>{o==null||o(...ee),setTimeout(()=>{if(!L.current)return;const ie=Sr(document);!L.current.getRoot().contains(ie)&&(P(!1),v(null))})}),fe=ze(ee=>ie=>{ie.isDefaultPrevented()||v(ee)}),ue=ze(ee=>{ee.preventDefault()}),pe=ze(ee=>()=>{v(ee)}),Z=ze(ee=>{if(ee.preventDefault(),n||e||typeof y!="number")return;const ie=x.sections[y],we=ee.clipboardData.getData("text"),Ce=/^[a-zA-Z]+$/.test(we),Pe=/^[0-9]+$/.test(we),Me=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(we);ie.contentType==="letter"&&Ce||ie.contentType==="digit"&&Pe||ie.contentType==="digit-with-letter"&&Me?(b(),T({activeSection:ie,newSectionValue:we,shouldGoToNextSection:!0})):!Ce&&!Pe&&(b(),C(we))}),te=ze(ee=>{ee.preventDefault(),ee.dataTransfer.dropEffect="none"}),ce=ze(ee=>{if(!L.current)return;const ie=ee.target,we=ie.textContent??"",Ce=L.current.getSectionIndexFromDOMElement(ie),Pe=x.sections[Ce];if(n||!L.current){D(Ce);return}if(we.length===0){if(Pe.value===""){D(Ce);return}const Me=ee.nativeEvent.inputType;if(Me==="insertParagraph"||Me==="insertLineBreak"){D(Ce);return}b(),S();return}m({keyPressed:we,sectionIndex:Ce}),D(Ce)});In(()=>{if(!(!F||!L.current)){if(y==="all")L.current.getRoot().focus();else if(typeof y=="number"){const ee=L.current.getSectionContent(y);ee&&ee.focus()}}},[y,F]);const ne=A.useMemo(()=>x.sections.reduce((ee,ie)=>(ee[ie.type]=N[ie.type]({currentDate:null,contentType:ie.contentType,format:ie.format}),ee),{}),[N,x.sections]),re=y==="all",le=A.useMemo(()=>x.sections.map((ee,ie)=>{const we=!re&&!e&&!n;return{container:{"data-sectionindex":ie,onClick:fe(ie)},content:{tabIndex:re||ie>0?-1:0,contentEditable:!re&&!e&&!n,role:"spinbutton",id:`${H}-${ee.type}`,"aria-labelledby":`${H}-${ee.type}`,"aria-readonly":n,"aria-valuenow":Hq(ee,B),"aria-valuemin":ne[ee.type].minimum,"aria-valuemax":ne[ee.type].maximum,"aria-valuetext":ee.value?Vq(ee,B):M.empty,"aria-label":M[ee.type],"aria-disabled":e,spellCheck:we?!1:void 0,autoCapitalize:we?"off":void 0,autoCorrect:we?"off":void 0,[parseInt(A.version,10)>=17?"enterKeyHint":"enterkeyhint"]:we?"next":void 0,children:ee.value||ee.placeholder,onInput:ce,onPaste:Z,onFocus:pe(ie),onDragOver:te,onMouseUp:ue,inputMode:ee.contentType==="letter"?"text":"numeric"},before:{children:ee.startSeparator},after:{children:ee.endSeparator}}}),[x.sections,pe,Z,te,ce,fe,ue,e,n,re,M,B,ne,H]),ye=ze(ee=>{C(ee.target.value)}),X=A.useMemo(()=>I?"":p.getV7HiddenInputValueFromSections(x.sections),[I,x.sections,p]);return A.useEffect(()=>{if(L.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
392
+ `));f&&L.current&&L.current.getSectionContent(O.startIndex).focus()},[]),{interactions:_,returnedValue:{autoFocus:f,readOnly:n,focused:u??F,sectionListRef:V,onBlur:Y,onClick:R,onFocus:U,onInput:j,onPaste:K,enableAccessibleFieldDOMStructure:!0,elements:le,tabIndex:y===0?-1:0,contentEditable:re,value:X,onChange:ye,areAllSectionsEmpty:I}}},Ml=t=>t.replace(/[\u2066\u2067\u2068\u2069]/g,""),uK=(t,e,n)=>{let r=0,o=n?1:0;const i=[];for(let s=0;s<t.length;s+=1){const a=t[s],l=k0(a,n?"input-rtl":"input-ltr",e),u=`${a.startSeparator}${l}${a.endSeparator}`,f=Ml(u).length,p=u.length,m=Ml(l),b=o+(m===""?0:l.indexOf(m[0]))+a.startSeparator.length,v=b+m.length;i.push(se({},a,{start:r,end:r+f,startInInput:b,endInInput:v})),r+=f,o+=p}return i},dK=t=>{const e=Ei(),n=A.useRef(void 0),r=A.useRef(void 0),{forwardedProps:{onFocus:o,onClick:i,onPaste:s,onBlur:a,inputRef:l,placeholder:u},internalProps:{readOnly:f=!1,disabled:p=!1},parsedSelectedSections:m,activeSectionIndex:b,state:v,fieldValueManager:y,valueManager:x,applyCharacterEditing:S,resetCharacterQuery:k,updateSectionValue:T,updateValueFromValueStr:C,clearActiveSection:O,clearValue:I,setTempAndroidValueStr:N,setSelectedSections:L,getSectionsFromValue:V,areAllSectionsEmpty:M,localizedDigits:B}=t,H=A.useRef(null),F=Ot(l,H),P=A.useMemo(()=>uK(v.sections,B,e),[v.sections,B,e]),_=A.useMemo(()=>({syncSelectionToDOM:()=>{if(!H.current)return;if(m==null){H.current.scrollLeft&&(H.current.scrollLeft=0);return}if(H.current!==Sr(document))return;const ce=H.current.scrollTop;if(m==="all")H.current.select();else{const ne=P[m],re=ne.type==="empty"?ne.startInInput-ne.startSeparator.length:ne.startInInput,le=ne.type==="empty"?ne.endInInput+ne.endSeparator.length:ne.endInInput;(re!==H.current.selectionStart||le!==H.current.selectionEnd)&&H.current===Sr(document)&&H.current.setSelectionRange(re,le),clearTimeout(r.current),r.current=setTimeout(()=>{H.current&&H.current===Sr(document)&&H.current.selectionStart===H.current.selectionEnd&&(H.current.selectionStart!==re||H.current.selectionEnd!==le)&&_.syncSelectionToDOM()})}H.current.scrollTop=ce},getActiveSectionIndexFromDOM:()=>{const ce=H.current.selectionStart??0,ne=H.current.selectionEnd??0;if(ce===0&&ne===0)return null;const re=ce<=P[0].startInInput?1:P.findIndex(le=>le.startInInput-le.startSeparator.length>ce);return re===-1?P.length-1:re-1},focusField:(ce=0)=>{var ne;Sr(document)!==H.current&&((ne=H.current)==null||ne.focus(),L(ce))},setSelectedSections:ce=>L(ce),isFieldFocused:()=>H.current===Sr(document)}),[H,m,P,L]),D=()=>{const ce=H.current.selectionStart??0;let ne;ce<=P[0].startInInput||ce>=P[P.length-1].endInInput?ne=1:ne=P.findIndex(le=>le.startInInput-le.startSeparator.length>ce);const re=ne===-1?P.length-1:ne-1;L(re)},R=ze((...ce)=>{o==null||o(...ce);const ne=H.current;clearTimeout(n.current),n.current=setTimeout(()=>{!ne||ne!==H.current||b==null&&(ne.value.length&&Number(ne.selectionEnd)-Number(ne.selectionStart)===ne.value.length?L("all"):D())})}),j=ze((ce,...ne)=>{ce.isDefaultPrevented()||(i==null||i(ce,...ne),D())}),K=ze(ce=>{if(s==null||s(ce),ce.preventDefault(),f||p)return;const ne=ce.clipboardData.getData("text");if(typeof m=="number"){const re=v.sections[m],le=/^[a-zA-Z]+$/.test(ne),ye=/^[0-9]+$/.test(ne),X=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(ne);if(re.contentType==="letter"&&le||re.contentType==="digit"&&ye||re.contentType==="digit-with-letter"&&X){k(),T({activeSection:re,newSectionValue:ne,shouldGoToNextSection:!0});return}if(le||ye)return}k(),C(ne)}),U=ze((...ce)=>{a==null||a(...ce),L(null)}),Y=ze(ce=>{if(f)return;const ne=ce.target.value;if(ne===""){k(),I();return}const re=ce.nativeEvent.data,le=re&&re.length>1,ye=le?re:ne,X=Ml(ye);if(m==="all"&&L(b),b==null||le){C(le?re:X);return}let ee;if(m==="all"&&X.length===1)ee=X;else{const ie=Ml(y.getV6InputValueFromSections(P,B,e));let we=-1,Ce=-1;for(let me=0;me<ie.length;me+=1)we===-1&&ie[me]!==X[me]&&(we=me),Ce===-1&&ie[ie.length-me-1]!==X[X.length-me-1]&&(Ce=me);const Pe=P[b];if(we<Pe.start||ie.length-Ce-1>Pe.end)return;const Ie=X.length-ie.length+Pe.end-Ml(Pe.endSeparator||"").length;ee=X.slice(Pe.start+Ml(Pe.startSeparator||"").length,Ie)}if(ee.length===0){Rq()&&N(ye),k(),O();return}S({keyPressed:ee,sectionIndex:b})}),fe=A.useMemo(()=>u!==void 0?u:y.getV6InputValueFromSections(V(x.emptyValue),B,e),[u,y,V,x.emptyValue,B,e]),ue=A.useMemo(()=>v.tempValueStrAndroid??y.getV6InputValueFromSections(v.sections,B,e),[v.sections,y,v.tempValueStrAndroid,B,e]);A.useEffect(()=>(H.current&&H.current===Sr(document)&&L("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const pe=A.useMemo(()=>b==null||v.sections[b].contentType==="letter"?"text":"numeric",[b,v.sections]),te=!(H.current&&H.current===Sr(document))&&M;return{interactions:_,returnedValue:{readOnly:f,onBlur:U,onClick:j,onFocus:R,onPaste:K,inputRef:F,enableAccessibleFieldDOMStructure:!1,placeholder:fe,inputMode:pe,autoComplete:"off",value:te?"":ue,onChange:Y}}},fK=t=>{const e=qt(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:i=!1,disabled:s=!1,readOnly:a=!1},forwardedProps:{onKeyDown:l,error:u,clearable:f,onClear:p},fieldValueManager:m,valueManager:b,validator:v}=t,y=Ei(),x=rK(t),{state:S,activeSectionIndex:k,parsedSelectedSections:T,setSelectedSections:C,clearValue:O,clearActiveSection:I,updateSectionValue:N,setTempAndroidValueStr:L,sectionsValueBoundaries:V,localizedDigits:M,timezone:B}=x,H=iK({sections:S.sections,updateSectionValue:N,sectionsValueBoundaries:V,localizedDigits:M,setTempAndroidValueStr:L,timezone:B}),{resetCharacterQuery:F}=H,P=b.areValuesEqual(e,S.value,b.emptyValue),_=i?cK:dK,D=A.useMemo(()=>zq(S.sections,y&&!i),[S.sections,y,i]),{returnedValue:R,interactions:j}=_(se({},t,x,H,{areAllSectionsEmpty:P,sectionOrder:D})),K=ze(Z=>{if(l==null||l(Z),!s)switch(!0){case((Z.ctrlKey||Z.metaKey)&&String.fromCharCode(Z.keyCode)==="A"&&!Z.shiftKey&&!Z.altKey):{Z.preventDefault(),C("all");break}case Z.key==="ArrowRight":{if(Z.preventDefault(),T==null)C(D.startIndex);else if(T==="all")C(D.endIndex);else{const te=D.neighbors[T].rightIndex;te!==null&&C(te)}break}case Z.key==="ArrowLeft":{if(Z.preventDefault(),T==null)C(D.endIndex);else if(T==="all")C(D.startIndex);else{const te=D.neighbors[T].leftIndex;te!==null&&C(te)}break}case Z.key==="Delete":{if(Z.preventDefault(),a)break;T==null||T==="all"?O():I(),F();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(Z.key):{if(Z.preventDefault(),a||k==null)break;T==="all"&&C(k);const te=S.sections[k],ce=m.getActiveDateManager(e,S,te),ne=Aq(e,B,te,Z.key,V,M,ce.date,{minutesStep:o});N({activeSection:te,newSectionValue:ne,shouldGoToNextSection:!1});break}}});In(()=>{j.syncSelectionToDOM()});const{hasValidationError:U}=k_({props:n,validator:v,timezone:B,value:S.value,onError:n.onError}),Y=A.useMemo(()=>u!==void 0?u:U,[U,u]);A.useEffect(()=>{!Y&&k==null&&F()},[S.referenceValue,k,Y]),A.useEffect(()=>{S.tempValueStrAndroid!=null&&k!=null&&(F(),I())},[S.sections]),A.useImperativeHandle(r,()=>({getSections:()=>S.sections,getActiveSectionIndex:j.getActiveSectionIndexFromDOM,setSelectedSections:j.setSelectedSections,focusField:j.focusField,isFieldFocused:j.isFieldFocused}));const fe=ze((Z,...te)=>{Z.preventDefault(),p==null||p(Z,...te),O(),j.isFieldFocused()?C(D.startIndex):j.focusField(0)}),ue={onKeyDown:K,onClear:fe,error:Y,clearable:!!(f&&!P&&!a&&!s)},pe={disabled:s,readOnly:a};return se({},t.forwardedProps,ue,pe,R)};function pK(t){return Ke("MuiIconButton",t)}const O_=je("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),hK=t=>{const{classes:e,disabled:n,color:r,edge:o,size:i,loading:s}=t,a={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${Ne(r)}`,o&&`edge${Ne(o)}`,`size${Ne(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return qe(a,pK,e)},mK=oe(ms,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.loading&&e.loading,n.color!=="default"&&e[`color${Ne(n.color)}`],n.edge&&e[`edge${Ne(n.edge)}`],e[`size${Ne(n.size)}`]]}})(bt(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:it(t.palette.action.active,t.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),bt(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(Hn()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),...Object.entries(t.palette).filter(Hn()).map(([e])=>({props:{color:e},style:{"--IconButton-hoverBg":t.vars?`rgba(${(t.vars||t).palette[e].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:it((t.vars||t).palette[e].main,t.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${O_.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${O_.loading}`]:{color:"transparent"}}))),gK=oe("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(t,e)=>e.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),_l=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:a="default",disabled:l=!1,disableFocusRipple:u=!1,size:f="medium",id:p,loading:m=null,loadingIndicator:b,...v}=r,y=vo(p),x=b??g.jsx(Yy,{"aria-labelledby":y,color:"inherit",size:16}),S={...r,edge:o,color:a,disabled:l,disableFocusRipple:u,loading:m,loadingIndicator:x,size:f},k=hK(S);return g.jsxs(mK,{id:m?y:p,className:ge(k.root,s),centerRipple:!0,focusRipple:!u,disabled:l||m,ref:n,...v,ownerState:S,children:[typeof m=="boolean"&&g.jsx("span",{className:k.loadingWrapper,style:{display:"contents"},children:g.jsx(gK,{className:k.loadingIndicator,ownerState:S,children:m&&x})}),i]})});process.env.NODE_ENV!=="production"&&(_l.propTypes={children:si(c.node,t=>A.Children.toArray(t.children).some(n=>A.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
393
393
  `)):null),classes:c.object,className:c.string,color:c.oneOfType([c.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),c.string]),disabled:c.bool,disableFocusRipple:c.bool,disableRipple:c.bool,edge:c.oneOf(["end","start",!1]),id:c.string,loading:c.bool,loadingIndicator:c.node,size:c.oneOfType([c.oneOf(["small","medium","large"]),c.string]),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function yK(t){return Ke("MuiInputAdornment",t)}const M_=je("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var __;const bK=(t,e)=>{const{ownerState:n}=t;return[e.root,e[`position${Ne(n.position)}`],n.disablePointerEvents===!0&&e.disablePointerEvents,e[n.variant]]},vK=t=>{const{classes:e,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:s}=t,a={root:["root",n&&"disablePointerEvents",o&&`position${Ne(o)}`,s,r&&"hiddenLabel",i&&`size${Ne(i)}`]};return qe(a,yK,e)},xK=oe("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:bK})(bt(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${M_.positionStart}&:not(.${M_.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),_0=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiInputAdornment"}),{children:o,className:i,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:u,variant:f,...p}=r,m=To()||{};let b=f;f&&m.variant&&process.env.NODE_ENV!=="production"&&f===m.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),m&&!b&&(b=m.variant);const v={...r,hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:a,position:u,variant:b},y=vK(v);return g.jsx(jc.Provider,{value:null,children:g.jsx(xK,{as:s,ownerState:v,className:ge(y.root,i),ref:n,...p,children:typeof o=="string"&&!l?g.jsx(ko,{color:"textSecondary",children:o}):g.jsxs(A.Fragment,{children:[u==="start"?__||(__=g.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});process.env.NODE_ENV!=="production"&&(_0.propTypes={children:c.node,classes:c.object,className:c.string,component:c.elementType,disablePointerEvents:c.bool,disableTypography:c.bool,position:c.oneOf(["end","start"]).isRequired,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOf(["filled","outlined","standard"])});const wK=Le(g.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),SK=Le(g.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),CK=Le(g.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),TK=Le(g.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");Le(g.jsxs(A.Fragment,{children:[g.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),g.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),Le(g.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),Le(g.jsxs(A.Fragment,{children:[g.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),g.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const kK=Le(g.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),EK=["clearable","onClear","InputProps","sx","slots","slotProps"],OK=["ownerState"],MK=t=>{const e=Oi(),{clearable:n,onClear:r,InputProps:o,sx:i,slots:s,slotProps:a}=t,l=at(t,EK),u=(s==null?void 0:s.clearButton)??_l,f=Mt({elementType:u,externalSlotProps:a==null?void 0:a.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:e.fieldClearLabel}}),p=at(f,OK),m=(s==null?void 0:s.clearIcon)??kK,b=Mt({elementType:m,externalSlotProps:a==null?void 0:a.clearIcon,ownerState:{}});return se({},l,{InputProps:se({},o,{endAdornment:g.jsxs(A.Fragment,{children:[n&&g.jsx(_0,{position:"end",sx:{marginRight:o!=null&&o.endAdornment?-1:-1.5},children:g.jsx(u,se({},p,{onClick:r,children:g.jsx(m,se({fontSize:"small"},b))}))}),o==null?void 0:o.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(i)?i:[i]]})},_K=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],IK=(t,e)=>A.useMemo(()=>{const n=se({},t),r={},o=i=>{n.hasOwnProperty(i)&&(r[i]=n[i],delete n[i])};return _K.forEach(o),w_.forEach(o),{forwardedProps:n,internalProps:r}},[t,e]),DK=A.createContext(null);function I_(t){const{contextValue:e,localeText:n,children:r}=t;return g.jsx(DK.Provider,{value:e,children:g.jsx(v0,{localeText:n,children:r})})}const AK=t=>{const e=qt(),n=yu();return se({},t,{disablePast:t.disablePast??!1,disableFuture:t.disableFuture??!1,format:t.format??e.formats.keyboardDate,minDate:ro(e,t.minDate,n.minDate),maxDate:ro(e,t.maxDate,n.maxDate)})},PK=t=>{const e=AK(t),{forwardedProps:n,internalProps:r}=IK(e,"date");return fK({forwardedProps:n,internalProps:r,valueManager:Jo,fieldValueManager:jq,validator:gu,valueType:"date"})};function NK(t){return Ke("MuiPickersTextField",t)}je("MuiPickersTextField",["root","focused","disabled","error","required"]);function $K(t){return Ke("MuiPickersInputBase",t)}const Il=je("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function LK(t){return Ke("MuiPickersSectionList",t)}const bu=je("MuiPickersSectionList",["root","section","sectionContent"]),BK=["slots","slotProps","elements","sectionListRef"],D_=oe("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(t,e)=>e.root})({direction:"ltr /*! @noflip */",outline:"none"}),A_=oe("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(t,e)=>e.section})({}),P_=oe("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(t,e)=>e.sectionSeparator})({whiteSpace:"pre"}),N_=oe("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(t,e)=>e.sectionContent})({outline:"none"}),FK=t=>{const{classes:e}=t;return qe({root:["root"],section:["section"],sectionContent:["sectionContent"]},LK,e)};function $_(t){const{slots:e,slotProps:n,element:r,classes:o}=t,i=(e==null?void 0:e.section)??A_,s=Mt({elementType:i,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),a=(e==null?void 0:e.sectionContent)??N_,l=Mt({elementType:a,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),u=(e==null?void 0:e.sectionSeparator)??P_,f=Mt({elementType:u,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),p=Mt({elementType:u,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return g.jsxs(i,se({},s,{children:[g.jsx(u,se({},f)),g.jsx(a,se({},l)),g.jsx(u,se({},p))]}))}process.env.NODE_ENV!=="production"&&($_.propTypes={classes:c.object.isRequired,element:c.shape({after:c.object.isRequired,before:c.object.isRequired,container:c.object.isRequired,content:c.object.isRequired}).isRequired,slotProps:c.object,slots:c.object});const L_=A.forwardRef(function(e,n){const r=rt({props:e,name:"MuiPickersSectionList"}),{slots:o,slotProps:i,elements:s,sectionListRef:a}=r,l=at(r,BK),u=FK(r),f=A.useRef(null),p=Ot(n,f),m=y=>{if(!f.current)throw new Error(`MUI X: Cannot call sectionListRef.${y} before the mount of the component.`);return f.current};A.useImperativeHandle(a,()=>({getRoot(){return m("getRoot")},getSectionContainer(y){return m("getSectionContainer").querySelector(`.${bu.section}[data-sectionindex="${y}"]`)},getSectionContent(y){return m("getSectionContent").querySelector(`.${bu.section}[data-sectionindex="${y}"] .${bu.sectionContent}`)},getSectionIndexFromDOMElement(y){const x=m("getSectionIndexFromDOMElement");if(y==null||!x.contains(y))return null;let S=null;return y.classList.contains(bu.section)?S=y:y.classList.contains(bu.sectionContent)&&(S=y.parentElement),S==null?null:Number(S.dataset.sectionindex)}}));const b=(o==null?void 0:o.root)??D_,v=Mt({elementType:b,externalSlotProps:i==null?void 0:i.root,externalForwardedProps:l,additionalProps:{ref:p,suppressContentEditableWarning:!0},className:u.root,ownerState:{}});return g.jsx(b,se({},v,{children:v.contentEditable?s.map(({content:y,before:x,after:S})=>`${x.children}${y.children}${S.children}`).join(""):g.jsx(A.Fragment,{children:s.map((y,x)=>g.jsx($_,{slots:o,slotProps:i,element:y,classes:u},x))})}))});process.env.NODE_ENV!=="production"&&(L_.propTypes={classes:c.object,contentEditable:c.bool.isRequired,elements:c.arrayOf(c.shape({after:c.object.isRequired,before:c.object.isRequired,container:c.object.isRequired,content:c.object.isRequired})).isRequired,sectionListRef:c.oneOfType([c.func,c.shape({current:c.shape({getRoot:c.func.isRequired,getSectionContainer:c.func.isRequired,getSectionContent:c.func.isRequired,getSectionIndexFromDOMElement:c.func.isRequired})})]),slotProps:c.object,slots:c.object});const RK=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],zK=t=>Math.round(t*1e5)/1e5,Tp=oe("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>se({},t.typography.body1,{color:(t.vars||t).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${zK(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),I0=oe(D_,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(t,e)=>e.sectionsContainer})(({theme:t})=>({padding:"4px 0 5px",fontFamily:t.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:e,focused:n,filled:r,label:o})=>!e&&!n&&!r&&o==null,style:t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:t.palette.mode==="light"?.42:.5}}]})),VK=oe(A_,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(t,e)=>e.section})(({theme:t})=>({fontFamily:t.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),HK=oe(N_,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(t,e)=>e.content})(({theme:t})=>({fontFamily:t.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),WK=oe(P_,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(t,e)=>e.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),jK=oe("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(t,e)=>e.hiddenInput})(se({},XP)),UK=t=>{const{focused:e,disabled:n,error:r,classes:o,fullWidth:i,readOnly:s,color:a,size:l,endAdornment:u,startAdornment:f}=t,p={root:["root",e&&!n&&"focused",n&&"disabled",s&&"readOnly",r&&"error",i&&"fullWidth",`color${Ne(a)}`,l==="small"&&"inputSizeSmall",!!f&&"adornedStart",!!u&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return qe(p,$K,o)},kp=A.forwardRef(function(e,n){const r=rt({props:e,name:"MuiPickersInputBase"}),{elements:o,areAllSectionsEmpty:i,value:s,onChange:a,id:l,endAdornment:u,startAdornment:f,renderSuffix:p,slots:m,slotProps:b,contentEditable:v,tabIndex:y,onInput:x,onPaste:S,onKeyDown:k,name:T,readOnly:C,inputProps:O,inputRef:I,sectionListRef:N}=r,L=at(r,RK),V=A.useRef(null),M=Ot(n,V),B=Ot(O==null?void 0:O.ref,I),H=Ei(),F=To();if(!F)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const P=U=>{var Y;if(F.disabled){U.stopPropagation();return}(Y=F.onFocus)==null||Y.call(F,U)};A.useEffect(()=>{F&&F.setAdornedStart(!!f)},[F,f]),A.useEffect(()=>{F&&(i?F.onEmpty():F.onFilled())},[F,i]);const _=se({},r,F,{isRtl:H}),D=UK(_),R=(m==null?void 0:m.root)||Tp,j=Mt({elementType:R,externalSlotProps:b==null?void 0:b.root,externalForwardedProps:L,additionalProps:{"aria-invalid":F.error,ref:M},className:D.root,ownerState:_}),K=(m==null?void 0:m.input)||I0;return g.jsxs(R,se({},j,{children:[f,g.jsx(L_,{sectionListRef:N,elements:o,contentEditable:v,tabIndex:y,className:D.sectionsContainer,onFocus:P,onBlur:F.onBlur,onInput:x,onPaste:S,onKeyDown:k,slots:{root:K,section:VK,sectionContent:HK,sectionSeparator:WK},slotProps:{root:{ownerState:_},sectionContent:{className:Il.sectionContent},sectionSeparator:({position:U})=>({className:U==="before"?Il.sectionBefore:Il.sectionAfter})}}),u,p?p(se({},F)):null,g.jsx(jK,se({name:T,className:D.input,value:s,onChange:a,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:C,required:F.required,disabled:F.disabled},O,{ref:B}))]}))});process.env.NODE_ENV!=="production"&&(kp.propTypes={areAllSectionsEmpty:c.bool.isRequired,className:c.string,component:c.elementType,contentEditable:c.bool.isRequired,elements:c.arrayOf(c.shape({after:c.object.isRequired,before:c.object.isRequired,container:c.object.isRequired,content:c.object.isRequired})).isRequired,endAdornment:c.node,fullWidth:c.bool,id:c.string,inputProps:c.object,inputRef:kn,label:c.node,margin:c.oneOf(["dense","none","normal"]),name:c.string,onChange:c.func.isRequired,onClick:c.func.isRequired,onInput:c.func.isRequired,onKeyDown:c.func.isRequired,onPaste:c.func.isRequired,ownerState:c.any,readOnly:c.bool,renderSuffix:c.func,sectionListRef:c.oneOfType([c.func,c.shape({current:c.shape({getRoot:c.func.isRequired,getSectionContainer:c.func.isRequired,getSectionContent:c.func.isRequired,getSectionIndexFromDOMElement:c.func.isRequired})})]),slotProps:c.object,slots:c.object,startAdornment:c.node,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.string.isRequired});function qK(t){return Ke("MuiPickersOutlinedInput",t)}const Oo=se({},Il,je("MuiPickersOutlinedInput",["root","notchedOutline","input"])),KK=["children","className","label","notched","shrink"],YK=oe("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}}),B_=oe("span")(({theme:t})=>({fontFamily:t.typography.fontFamily,fontSize:"inherit"})),GK=oe("legend")(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]}));function JK(t){const{className:e,label:n}=t,r=at(t,KK),o=n!=null&&n!=="",i=se({},t,{withLabel:o});return g.jsx(YK,se({"aria-hidden":!0,className:e},r,{ownerState:i,children:g.jsx(GK,{ownerState:i,children:o?g.jsx(B_,{children:n}):g.jsx(B_,{className:"notranslate",children:"​"})})}))}const XK=["label","autoFocus","ownerState","notched"],ZK=oe(Tp,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${Oo.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${Oo.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}},[`&.${Oo.focused} .${Oo.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${Oo.disabled}`]:{[`& .${Oo.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled},"*":{color:(t.vars||t).palette.action.disabled}},[`&.${Oo.error} .${Oo.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},variants:Object.keys((t.vars??t).palette).filter(n=>{var r;return((r=(t.vars??t).palette[n])==null?void 0:r.main)??!1}).map(n=>({props:{color:n},style:{[`&.${Oo.focused}:not(.${Oo.error}) .${Oo.notchedOutline}`]:{borderColor:(t.vars||t).palette[n].main}}}))}}),QK=oe(I0,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(t,e)=>e.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),eY=t=>{const{classes:e}=t,r=qe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},qK,e);return se({},e,r)},D0=A.forwardRef(function(e,n){const r=rt({props:e,name:"MuiPickersOutlinedInput"}),{label:o,ownerState:i,notched:s}=r,a=at(r,XK),l=To(),u=se({},r,i,l,{color:(l==null?void 0:l.color)||"primary"}),f=eY(u);return g.jsx(kp,se({slots:{root:ZK,input:QK},renderSuffix:p=>g.jsx(JK,{shrink:!!(s||p.adornedStart||p.focused||p.filled),notched:!!(s||p.adornedStart||p.focused||p.filled),className:f.notchedOutline,label:o!=null&&o!==""&&(l!=null&&l.required)?g.jsxs(A.Fragment,{children:[o," ","*"]}):o,ownerState:u})},a,{label:o,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(D0.propTypes={areAllSectionsEmpty:c.bool.isRequired,className:c.string,component:c.elementType,contentEditable:c.bool.isRequired,elements:c.arrayOf(c.shape({after:c.object.isRequired,before:c.object.isRequired,container:c.object.isRequired,content:c.object.isRequired})).isRequired,endAdornment:c.node,fullWidth:c.bool,id:c.string,inputProps:c.object,inputRef:kn,label:c.node,margin:c.oneOf(["dense","none","normal"]),name:c.string,notched:c.bool,onChange:c.func.isRequired,onClick:c.func.isRequired,onInput:c.func.isRequired,onKeyDown:c.func.isRequired,onPaste:c.func.isRequired,ownerState:c.any,readOnly:c.bool,renderSuffix:c.func,sectionListRef:c.oneOfType([c.func,c.shape({current:c.shape({getRoot:c.func.isRequired,getSectionContainer:c.func.isRequired,getSectionContent:c.func.isRequired,getSectionIndexFromDOMElement:c.func.isRequired})})]),slotProps:c.object,slots:c.object,startAdornment:c.node,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.string.isRequired}),D0.muiName="Input";function Ep(t,...e){const n=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${t}; visit ${n} for the full message.`}function Dl(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function F_(t){if(A.isValidElement(t)||ai.isValidElementType(t)||!Dl(t))return t;const e={};return Object.keys(t).forEach(n=>{e[n]=F_(t[n])}),e}function Op(t,e,n={clone:!0}){const r=n.clone?{...t}:t;return Dl(t)&&Dl(e)&&Object.keys(e).forEach(o=>{A.isValidElement(e[o])||ai.isValidElementType(e[o])?r[o]=e[o]:Dl(e[o])&&Object.prototype.hasOwnProperty.call(t,o)&&Dl(t[o])?r[o]=Op(t[o],e[o],n):n.clone?r[o]=Dl(e[o])?F_(e[o]):e[o]:r[o]=e[o]}),r}const tY=t=>{const e=Object.keys(t).map(n=>({key:n,val:t[n]}))||[];return e.sort((n,r)=>n.val-r.val),e.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function nY(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=t,i=tY(e),s=Object.keys(i);function a(m){return`@media (min-width:${typeof e[m]=="number"?e[m]:m}${n})`}function l(m){return`@media (max-width:${(typeof e[m]=="number"?e[m]:m)-r/100}${n})`}function u(m,b){const v=s.indexOf(b);return`@media (min-width:${typeof e[m]=="number"?e[m]:m}${n}) and (max-width:${(v!==-1&&typeof e[s[v]]=="number"?e[s[v]]:b)-r/100}${n})`}function f(m){return s.indexOf(m)+1<s.length?u(m,s[s.indexOf(m)+1]):a(m)}function p(m){const b=s.indexOf(m);return b===0?a(s[1]):b===s.length-1?l(s[b]):u(m,s[s.indexOf(m)+1]).replace("@media","@media not all and")}return{keys:s,values:i,up:a,down:l,between:u,only:f,not:p,unit:n,...o}}function R_(t,e){if(!t.containerQueries)return e;const n=Object.keys(e).filter(r=>r.startsWith("@container")).sort((r,o)=>{var s,a;const i=/min-width:\s*([0-9.]+)/;return+(((s=r.match(i))==null?void 0:s[1])||0)-+(((a=o.match(i))==null?void 0:a[1])||0)});return n.length?n.reduce((r,o)=>{const i=e[o];return delete r[o],r[o]=i,r},{...e}):e}function rY(t,e){return e==="@"||e.startsWith("@")&&(t.some(n=>e.startsWith(`@${n}`))||!!e.match(/^@\d/))}function oY(t,e){const n=e.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${e})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
394
394
  For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Ep(18,`(${e})`));return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return t.containerQueries(o).up(i)}function iY(t){const e=(i,s)=>i.replace("@media",s?`@container ${s}`:"@container");function n(i,s){i.up=(...a)=>e(t.breakpoints.up(...a),s),i.down=(...a)=>e(t.breakpoints.down(...a),s),i.between=(...a)=>e(t.breakpoints.between(...a),s),i.only=(...a)=>e(t.breakpoints.only(...a),s),i.not=(...a)=>{const l=e(t.breakpoints.not(...a),s);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=i=>(n(r,i),r);return n(o),{...t,containerQueries:o}}const sY={borderRadius:4},vs=process.env.NODE_ENV!=="production"?c.oneOfType([c.number,c.string,c.object,c.array]):{};function vu(t,e){return e?Op(t,e,{clone:!1}):t}const Mp={xs:0,sm:600,md:900,lg:1200,xl:1536},z_={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${Mp[t]}px)`},aY={containerQueries:t=>({up:e=>{let n=typeof e=="number"?e:Mp[e]||e;return typeof n=="number"&&(n=`${n}px`),t?`@container ${t} (min-width:${n})`:`@container (min-width:${n})`}})};function Mi(t,e,n){const r=t.theme||{};if(Array.isArray(e)){const i=r.breakpoints||z_;return e.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(e[l]),s),{})}if(typeof e=="object"){const i=r.breakpoints||z_;return Object.keys(e).reduce((s,a)=>{if(rY(i.keys,a)){const l=oY(r.containerQueries?r:aY,a);l&&(s[l]=n(e[a],a))}else if(Object.keys(i.values||Mp).includes(a)){const l=i.up(a);s[l]=n(e[a],a)}else{const l=a;s[l]=e[l]}return s},{})}return n(e)}function lY(t={}){var n;return((n=t.keys)==null?void 0:n.reduce((r,o)=>{const i=t.up(o);return r[i]={},r},{}))||{}}function V_(t,e){return t.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},e)}function H_(t){if(typeof t!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Ep(7));return t.charAt(0).toUpperCase()+t.slice(1)}function _p(t,e,n=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&n){const r=`vars.${e}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,t);if(r!=null)return r}return e.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,t)}function Ip(t,e,n,r=n){let o;return typeof t=="function"?o=t(n):Array.isArray(t)?o=t[n]||r:o=_p(t,n)||r,e&&(o=e(o,r,t)),o}function vn(t){const{prop:e,cssProperty:n=t.prop,themeKey:r,transform:o}=t,i=s=>{if(s[e]==null)return null;const a=s[e],l=s.theme,u=_p(l,r)||{};return Mi(s,a,p=>{let m=Ip(u,o,p);return p===m&&typeof p=="string"&&(m=Ip(u,o,`${e}${p==="default"?"":H_(p)}`,p)),n===!1?m:{[n]:m}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[e]:vs}:{},i.filterProps=[e],i}function cY(t){const e={};return n=>(e[n]===void 0&&(e[n]=t(n)),e[n])}const uY={m:"margin",p:"padding"},dY={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},W_={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},fY=cY(t=>{if(t.length>2)if(W_[t])t=W_[t];else return[t];const[e,n]=t.split(""),r=uY[e],o=dY[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Dp=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ap=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],pY=[...Dp,...Ap];function xu(t,e,n,r){const o=_p(t,e,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const s=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>o.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${s} > ${o.length-1}, you need to add the missing values.`].join(`
395
395
  `)):console.error([`MUI: The \`theme.${e}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${e}\` as a number.`].join(`
@@ -398,12 +398,12 @@ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Ep(18,`(${e})`));return
398
398
  The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Ep(9,t));let r=t.substring(e+1,t.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
399
399
  The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Ep(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function nG(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):e.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function rG(t,e){if(t=Y_(t),e=eG(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]*=1-e;return nG(t)}function oG(t){return Ke("MuiPickersFilledInput",t)}const ba=se({},Il,je("MuiPickersFilledInput",["root","underline","input"])),iG=["label","autoFocus","disableUnderline","ownerState"],sG=oe(Tp,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>ZY(t)&&t!=="disableUnderline"})(({theme:t})=>{const e=t.palette.mode==="light",n=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r}},[`&.${ba.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r},[`&.${ba.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((t.vars??t).palette).filter(s=>(t.vars??t).palette[s].main).map(s=>{var a;return{props:{color:s,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(a=(t.vars||t).palette[s])==null?void 0:a.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ba.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ba.error}`]:{"&:before, &:after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ba.disabled}, .${ba.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${ba.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:s})=>!!s,style:{paddingLeft:12}},{props:({endAdornment:s})=>!!s,style:{paddingRight:12}}]}}),aG=oe(I0,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(t,e)=>e.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:t})=>!!t,style:{paddingLeft:0}},{props:({endAdornment:t})=>!!t,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),lG=t=>{const{classes:e,disableUnderline:n}=t,o=qe({root:["root",!n&&"underline"],input:["input"]},oG,e);return se({},e,o)},P0=A.forwardRef(function(e,n){const r=rt({props:e,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:i=!1,ownerState:s}=r,a=at(r,iG),l=To(),u=se({},r,s,l,{color:(l==null?void 0:l.color)||"primary"}),f=lG(u);return g.jsx(kp,se({slots:{root:sG,input:aG},slotProps:{root:{disableUnderline:i}}},a,{label:o,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(P0.propTypes={areAllSectionsEmpty:c.bool.isRequired,className:c.string,component:c.elementType,contentEditable:c.bool.isRequired,disableUnderline:c.bool,elements:c.arrayOf(c.shape({after:c.object.isRequired,before:c.object.isRequired,container:c.object.isRequired,content:c.object.isRequired})).isRequired,endAdornment:c.node,fullWidth:c.bool,hiddenLabel:c.bool,id:c.string,inputProps:c.object,inputRef:kn,label:c.node,margin:c.oneOf(["dense","none","normal"]),name:c.string,onChange:c.func.isRequired,onClick:c.func.isRequired,onInput:c.func.isRequired,onKeyDown:c.func.isRequired,onPaste:c.func.isRequired,ownerState:c.any,readOnly:c.bool,renderSuffix:c.func,sectionListRef:c.oneOfType([c.func,c.shape({current:c.shape({getRoot:c.func.isRequired,getSectionContainer:c.func.isRequired,getSectionContent:c.func.isRequired,getSectionIndexFromDOMElement:c.func.isRequired})})]),slotProps:c.object,slots:c.object,startAdornment:c.node,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.string.isRequired}),P0.muiName="Input";function cG(t){return Ke("MuiPickersFilledInput",t)}const Su=se({},Il,je("MuiPickersInput",["root","input"])),uG=["label","autoFocus","disableUnderline","ownerState"],dG=oe(Tp,{name:"MuiPickersInput",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>{let n=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((t.vars??t).palette).filter(r=>(t.vars??t).palette[r].main).map(r=>({props:{color:r},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[r].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Su.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Su.error}`]:{"&:before, &:after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Su.disabled}, .${Su.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Su.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),fG=t=>{const{classes:e,disableUnderline:n}=t,o=qe({root:["root",!n&&"underline"],input:["input"]},cG,e);return se({},e,o)},N0=A.forwardRef(function(e,n){const r=rt({props:e,name:"MuiPickersInput"}),{label:o,disableUnderline:i=!1,ownerState:s}=r,a=at(r,uG),l=To(),u=se({},r,s,l,{disableUnderline:i,color:(l==null?void 0:l.color)||"primary"}),f=fG(u);return g.jsx(kp,se({slots:{root:dG}},a,{label:o,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(N0.propTypes={areAllSectionsEmpty:c.bool.isRequired,className:c.string,component:c.elementType,contentEditable:c.bool.isRequired,disableUnderline:c.bool,elements:c.arrayOf(c.shape({after:c.object.isRequired,before:c.object.isRequired,container:c.object.isRequired,content:c.object.isRequired})).isRequired,endAdornment:c.node,fullWidth:c.bool,id:c.string,inputProps:c.object,inputRef:kn,label:c.node,margin:c.oneOf(["dense","none","normal"]),name:c.string,onChange:c.func.isRequired,onClick:c.func.isRequired,onInput:c.func.isRequired,onKeyDown:c.func.isRequired,onPaste:c.func.isRequired,ownerState:c.any,readOnly:c.bool,renderSuffix:c.func,sectionListRef:c.oneOfType([c.func,c.shape({current:c.shape({getRoot:c.func.isRequired,getSectionContainer:c.func.isRequired,getSectionContent:c.func.isRequired,getSectionIndexFromDOMElement:c.func.isRequired})})]),slotProps:c.object,slots:c.object,startAdornment:c.node,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.string.isRequired}),N0.muiName="Input";const pG=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],hG={standard:N0,filled:P0,outlined:D0},mG=oe(Ty,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({maxWidth:"100%"}),gG=t=>{const{focused:e,disabled:n,classes:r,required:o}=t;return qe({root:["root",e&&!n&&"focused",n&&"disabled",o&&"required"]},NK,r)},G_=A.forwardRef(function(e,n){const r=rt({props:e,name:"MuiPickersTextField"}),{onFocus:o,onBlur:i,className:s,color:a="primary",disabled:l=!1,error:u=!1,variant:f="outlined",required:p=!1,InputProps:m,inputProps:b,inputRef:v,sectionListRef:y,elements:x,areAllSectionsEmpty:S,onClick:k,onKeyDown:T,onKeyUp:C,onPaste:O,onInput:I,endAdornment:N,startAdornment:L,tabIndex:V,contentEditable:M,focused:B,value:H,onChange:F,fullWidth:P,id:_,name:D,helperText:R,FormHelperTextProps:j,label:K,InputLabelProps:U}=r,Y=at(r,pG),fe=A.useRef(null),ue=Ot(n,fe),pe=vo(_),Z=R&&pe?`${pe}-helper-text`:void 0,te=K&&pe?`${pe}-label`:void 0,ce=se({},r,{color:a,disabled:l,error:u,focused:B,required:p,variant:f}),ne=gG(ce),re=hG[f];return g.jsxs(mG,se({className:ge(ne.root,s),ref:ue,focused:B,onFocus:o,onBlur:i,disabled:l,variant:f,error:u,color:a,fullWidth:P,required:p,ownerState:ce},Y,{children:[g.jsx(Cy,se({htmlFor:pe,id:te},U,{children:K})),g.jsx(re,se({elements:x,areAllSectionsEmpty:S,onClick:k,onKeyDown:T,onKeyUp:C,onInput:I,onPaste:O,endAdornment:N,startAdornment:L,tabIndex:V,contentEditable:M,value:H,onChange:F,id:pe,fullWidth:P,inputProps:b,inputRef:v,sectionListRef:y,label:K,name:D,role:"group","aria-labelledby":te,"aria-describedby":Z,"aria-live":Z?"polite":void 0},m)),R&&g.jsx(ky,se({id:Z},j,{children:R}))]}))});process.env.NODE_ENV!=="production"&&(G_.propTypes={areAllSectionsEmpty:c.bool.isRequired,className:c.string,color:c.oneOf(["error","info","primary","secondary","success","warning"]),component:c.elementType,contentEditable:c.bool.isRequired,disabled:c.bool.isRequired,elements:c.arrayOf(c.shape({after:c.object.isRequired,before:c.object.isRequired,container:c.object.isRequired,content:c.object.isRequired})).isRequired,endAdornment:c.node,error:c.bool.isRequired,focused:c.bool,FormHelperTextProps:c.object,fullWidth:c.bool,helperText:c.node,hiddenLabel:c.bool,id:c.string,InputLabelProps:c.object,inputProps:c.object,InputProps:c.object,inputRef:kn,label:c.node,margin:c.oneOf(["dense","none","normal"]),name:c.string,onBlur:c.func.isRequired,onChange:c.func.isRequired,onClick:c.func.isRequired,onFocus:c.func.isRequired,onInput:c.func.isRequired,onKeyDown:c.func.isRequired,onPaste:c.func.isRequired,readOnly:c.bool,required:c.bool,sectionListRef:c.oneOfType([c.func,c.shape({current:c.shape({getRoot:c.func.isRequired,getSectionContainer:c.func.isRequired,getSectionContent:c.func.isRequired,getSectionIndexFromDOMElement:c.func.isRequired})})]),size:c.oneOf(["medium","small"]),startAdornment:c.node,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.string.isRequired,variant:c.oneOf(["filled","outlined","standard"])});const yG=["enableAccessibleFieldDOMStructure"],bG=["InputProps","readOnly"],vG=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],xG=t=>{let{enableAccessibleFieldDOMStructure:e}=t,n=at(t,yG);if(e){const{InputProps:p,readOnly:m}=n,b=at(n,bG);return se({},b,{InputProps:se({},p??{},{readOnly:m})})}const{onPaste:r,onKeyDown:o,inputMode:i,readOnly:s,InputProps:a,inputProps:l,inputRef:u}=n,f=at(n,vG);return se({},f,{InputProps:se({},a??{},{readOnly:s}),inputProps:se({},l??{},{inputMode:i,onPaste:r,onKeyDown:o,ref:u})})},wG=["slots","slotProps","InputProps","inputProps"],Fp=A.forwardRef(function(e,n){const r=rt({props:e,name:"MuiDateField"}),{slots:o,slotProps:i,InputProps:s,inputProps:a}=r,l=at(r,wG),u=r,f=(o==null?void 0:o.textField)??(e.enableAccessibleFieldDOMStructure?G_:Xc),p=Mt({elementType:f,externalSlotProps:i==null?void 0:i.textField,externalForwardedProps:l,additionalProps:{ref:n},ownerState:u});p.inputProps=se({},a,p.inputProps),p.InputProps=se({},s,p.InputProps);const m=PK(p),b=xG(m),v=MK(se({},b,{slots:o,slotProps:i}));return g.jsx(f,se({},v))});process.env.NODE_ENV!=="production"&&(Fp.propTypes={autoFocus:c.bool,className:c.string,clearable:c.bool,color:c.oneOf(["error","info","primary","secondary","success","warning"]),component:c.elementType,defaultValue:c.object,disabled:c.bool,disableFuture:c.bool,disablePast:c.bool,enableAccessibleFieldDOMStructure:c.bool,focused:c.bool,format:c.string,formatDensity:c.oneOf(["dense","spacious"]),FormHelperTextProps:c.object,fullWidth:c.bool,helperText:c.node,hiddenLabel:c.bool,id:c.string,InputLabelProps:c.object,inputProps:c.object,InputProps:c.object,inputRef:kn,label:c.node,margin:c.oneOf(["dense","none","normal"]),maxDate:c.object,minDate:c.object,name:c.string,onBlur:c.func,onChange:c.func,onClear:c.func,onError:c.func,onFocus:c.func,onSelectedSectionsChange:c.func,readOnly:c.bool,referenceDate:c.object,required:c.bool,selectedSections:c.oneOfType([c.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),c.number]),shouldDisableDate:c.func,shouldDisableMonth:c.func,shouldDisableYear:c.func,shouldRespectLeadingZeros:c.bool,size:c.oneOf(["medium","small"]),slotProps:c.object,slots:c.object,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,unstableFieldRef:c.oneOfType([c.func,c.object]),value:c.object,variant:c.oneOf(["filled","outlined","standard"])});const J_=jx({themeId:Ka});function SG(t){return Ke("MuiPickersToolbar",t)}je("MuiPickersToolbar",["root","content"]);const CG=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],TG=t=>{const{classes:e}=t;return qe({root:["root"],content:["content"]},SG,e)},kG=oe("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:t.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),EG=oe("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(t,e)=>e.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),OG=A.forwardRef(function(e,n){const r=rt({props:e,name:"MuiPickersToolbar"}),{children:o,className:i,toolbarTitle:s,hidden:a,titleId:l}=r,u=at(r,CG),f=r,p=TG(f);return a?null:g.jsxs(kG,se({ref:n,className:ge(p.root,i),ownerState:f},u,{children:[g.jsx(ko,{color:"text.secondary",variant:"overline",id:l,children:s}),g.jsx(EG,{className:p.content,ownerState:f,children:o})]}))});function MG(t){return Ke("MuiDatePickerToolbar",t)}je("MuiDatePickerToolbar",["root","title"]);const _G=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],IG=t=>{const{classes:e}=t;return qe({root:["root"],title:["title"]},MG,e)},DG=oe(OG,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(t,e)=>e.root})({}),AG=oe(ko,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(t,e)=>e.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),X_=A.forwardRef(function(e,n){const r=rt({props:e,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:i,toolbarFormat:s,toolbarPlaceholder:a="––",views:l,className:u}=r,f=at(r,_G),p=qt(),m=Oi(),b=IG(r),v=A.useMemo(()=>{if(!o)return a;const x=S0(p,{format:s,views:l},!0);return p.formatByString(o,x)},[o,s,a,p,l]),y=r;return g.jsx(DG,se({ref:n,toolbarTitle:m.datePickerToolbarTitle,isLandscape:i,className:ge(b.root,u)},f,{children:g.jsx(AG,{variant:"h4",align:i?"left":"center",ownerState:y,className:b.title,children:v})}))});process.env.NODE_ENV!=="production"&&(X_.propTypes={classes:c.object,className:c.string,disabled:c.bool,hidden:c.bool,isLandscape:c.bool.isRequired,onChange:c.func.isRequired,onViewChange:c.func.isRequired,readOnly:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),titleId:c.string,toolbarFormat:c.string,toolbarPlaceholder:c.node,value:c.object,view:c.oneOf(["day","month","year"]).isRequired,views:c.arrayOf(c.oneOf(["day","month","year"]).isRequired).isRequired});function Z_(t,e){const n=qt(),r=yu(),o=rt({props:t,name:e}),i=A.useMemo(()=>{var s;return((s=o.localeText)==null?void 0:s.toolbarTitle)==null?o.localeText:se({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle})},[o.localeText]);return se({},o,{localeText:i},vq({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:ro(n,o.minDate,r.minDate),maxDate:ro(n,o.maxDate,r.maxDate),slots:se({toolbar:X_},o.slots)})}function PG(t){return Ke("MuiPickersPopper",t)}je("MuiPickersPopper",["root","paper"]);const NG="@media (prefers-reduced-motion: reduce)",Pl=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),Q_=Pl&&Pl[1]?parseInt(Pl[1],10):null,e2=Pl&&Pl[2]?parseInt(Pl[2],10):null,$G=Q_&&Q_<10||e2&&e2<13||!1,t2=()=>J_(NG,{defaultMatches:!1})||$G,LG=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],BG=t=>{const{classes:e}=t;return qe({root:["root"],paper:["paper"]},PG,e)},FG=oe(ml,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({zIndex:t.zIndex.modal})),RG=oe(fs,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(t,e)=>e.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:t})=>["top","top-start","top-end"].includes(t),style:{transformOrigin:"bottom center"}}]});function zG(t,e){return e.documentElement.clientWidth<t.clientX||e.documentElement.clientHeight<t.clientY}function VG(t,e){const n=A.useRef(!1),r=A.useRef(!1),o=A.useRef(null),i=A.useRef(!1);A.useEffect(()=>{if(!t)return;function l(){i.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),i.current=!1}},[t]);const s=ze(l=>{if(!i.current)return;const u=r.current;r.current=!1;const f=_n(o.current);if(!o.current||"clientX"in l&&zG(l,f))return;if(n.current){n.current=!1;return}let p;l.composedPath?p=l.composedPath().indexOf(o.current)>-1:p=!f.documentElement.contains(l.target)||o.current.contains(l.target),!p&&!u&&e(l)}),a=()=>{r.current=!0};return A.useEffect(()=>{if(t){const l=_n(o.current),u=()=>{n.current=!0};return l.addEventListener("touchstart",s),l.addEventListener("touchmove",u),()=>{l.removeEventListener("touchstart",s),l.removeEventListener("touchmove",u)}}},[t,s]),A.useEffect(()=>{if(t){const l=_n(o.current);return l.addEventListener("click",s),()=>{l.removeEventListener("click",s),r.current=!1}}},[t,s]),[o,a,a]}const HG=A.forwardRef((t,e)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:i,paperSlotProps:s,paperClasses:a,onPaperClick:l,onPaperTouchStart:u}=t,f=at(t,LG),p=se({},o,{placement:r}),m=Mt({elementType:n,externalSlotProps:s,additionalProps:{tabIndex:-1,elevation:8,ref:e},className:a,ownerState:p});return g.jsx(n,se({},f,m,{onClick:b=>{var v;l(b),(v=m.onClick)==null||v.call(m,b)},onTouchStart:b=>{var v;u(b),(v=m.onTouchStart)==null||v.call(m,b)},ownerState:p,children:i}))});function WG(t){const e=rt({props:t,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:o=null,shouldRestoreFocus:i,onBlur:s,onDismiss:a,open:l,role:u,placement:f,slots:p,slotProps:m,reduceAnimations:b}=e;A.useEffect(()=>{function _(D){l&&D.key==="Escape"&&a()}return document.addEventListener("keydown",_),()=>{document.removeEventListener("keydown",_)}},[a,l]);const v=A.useRef(null);A.useEffect(()=>{u==="tooltip"||i&&!i()||(l?v.current=Sr(document):v.current&&v.current instanceof HTMLElement&&setTimeout(()=>{v.current instanceof HTMLElement&&v.current.focus()}))},[l,u,i]);const[y,x,S]=VG(l,s??a),k=A.useRef(null),T=Ot(k,o),C=Ot(T,y),O=e,I=BG(O),N=t2(),L=b??N,V=_=>{_.key==="Escape"&&(_.stopPropagation(),a())},M=(p==null?void 0:p.desktopTransition)??L?Ho:vl,B=(p==null?void 0:p.desktopTrapFocus)??Gc,H=(p==null?void 0:p.desktopPaper)??RG,F=(p==null?void 0:p.popper)??FG,P=Mt({elementType:F,externalSlotProps:m==null?void 0:m.popper,additionalProps:{transition:!0,role:u,open:l,anchorEl:n,placement:f,onKeyDown:V},className:I.root,ownerState:e});return g.jsx(F,se({},P,{children:({TransitionProps:_,placement:D})=>g.jsx(B,se({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:u==="tooltip",isEnabled:()=>!0},m==null?void 0:m.desktopTrapFocus,{children:g.jsx(M,se({},_,m==null?void 0:m.desktopTransition,{children:g.jsx(HG,{PaperComponent:H,ownerState:O,popperPlacement:D,ref:C,onPaperClick:x,onPaperTouchStart:S,paperClasses:I.paper,paperSlotProps:m==null?void 0:m.desktopPaper,children:r})}))}))}))}const jG=({open:t,onOpen:e,onClose:n})=>{const r=A.useRef(typeof t=="boolean").current,[o,i]=A.useState(!1);A.useEffect(()=>{if(r){if(typeof t!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(t)}},[r,t]);const s=A.useCallback(a=>{r||i(a),a&&e&&e(),!a&&n&&n()},[r,e,n]);return{isOpen:o,setIsOpen:s}},UG=t=>{const{action:e,hasChanged:n,dateState:r,isControlled:o}=t,i=!o&&!r.hasBeenModifiedSinceMount;return e.name==="setValueFromField"?!0:e.name==="setValueFromAction"?i&&["accept","today","clear"].includes(e.pickerAction)?!0:n(r.lastPublishedValue):e.name==="setValueFromView"&&e.selectionState!=="shallow"||e.name==="setValueFromShortcut"?i?!0:n(r.lastPublishedValue):!1},qG=t=>{const{action:e,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:i}=t,s=!o&&!r.hasBeenModifiedSinceMount;return e.name==="setValueFromAction"?s&&["accept","today","clear"].includes(e.pickerAction)?!0:n(r.lastCommittedValue):e.name==="setValueFromView"&&e.selectionState==="finish"&&i?s?!0:n(r.lastCommittedValue):e.name==="setValueFromShortcut"?e.changeImportance==="accept"&&n(r.lastCommittedValue):!1},KG=t=>{const{action:e,closeOnSelect:n}=t;return e.name==="setValueFromAction"?!0:e.name==="setValueFromView"?e.selectionState==="finish"&&n:e.name==="setValueFromShortcut"?e.changeImportance==="accept":!1},YG=({props:t,valueManager:e,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:i,onChange:s,value:a,defaultValue:l,closeOnSelect:u=r==="desktop",timezone:f,referenceDate:p}=t,{current:m}=A.useRef(l),{current:b}=A.useRef(a!==void 0),[v,y]=A.useState(f);process.env.NODE_ENV!=="production"&&(A.useEffect(()=>{b!==(a!==void 0)&&console.error([`MUI X: A component is changing the ${b?"":"un"}controlled value of a picker to be ${b?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled valuefor the lifetime of the component.","The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
400
400
  `))},[a]),A.useEffect(()=>{!b&&m!==l&&console.error(["MUI X: A component is changing the defaultValue of an uncontrolled picker after being initialized. To suppress this warning opt to use a controlled value."].join(`
401
- `))},[JSON.stringify(m)]));const x=qt(),S=ya(),{isOpen:k,setIsOpen:T}=jG(t),{timezone:C,value:O,handleValueChange:I}=O0({timezone:f,value:a,defaultValue:m,referenceDate:p,onChange:s,valueManager:e}),[N,L]=A.useState(()=>{let re;return O!==void 0?re=O:m!==void 0?re=m:re=e.emptyValue,{draft:re,lastPublishedValue:re,lastCommittedValue:re,lastControlledValue:a,hasBeenModifiedSinceMount:!1}}),V=e.getTimezone(x,N.draft);v!==f&&(y(f),f&&V&&f!==V&&L(re=>se({},re,{draft:e.setTimezone(x,f,re.draft)})));const{getValidationErrorForNewValue:M}=k_({props:t,validator:o,timezone:C,value:N.draft,onError:t.onError}),B=ze(re=>{const le={action:re,dateState:N,hasChanged:Ce=>!e.areValuesEqual(x,re.value,Ce),isControlled:b,closeOnSelect:u},ye=UG(le),X=qG(le),ee=KG(le);L(Ce=>se({},Ce,{draft:re.value,lastPublishedValue:ye?re.value:Ce.lastPublishedValue,lastCommittedValue:X?re.value:Ce.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let ie=null;const we=()=>(ie||(ie={validationError:re.name==="setValueFromField"?re.context.validationError:M(re.value)},re.name==="setValueFromShortcut"&&(ie.shortcut=re.shortcut)),ie);ye&&I(re.value,we()),X&&i&&i(re.value,we()),ee&&T(!1)});if(N.lastControlledValue!==a){const re=e.areValuesEqual(x,N.draft,O);L(le=>se({},le,{lastControlledValue:a},re?{}:{lastCommittedValue:O,lastPublishedValue:O,draft:O,hasBeenModifiedSinceMount:!0}))}const H=ze(()=>{B({value:e.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),F=ze(()=>{B({value:N.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),P=ze(()=>{B({value:N.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),_=ze(()=>{B({value:N.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),D=ze(()=>{B({value:e.getTodayValue(x,C,n),name:"setValueFromAction",pickerAction:"today"})}),R=ze(re=>{re.preventDefault(),T(!0)}),j=ze(re=>{re==null||re.preventDefault(),T(!1)}),K=ze((re,le="partial")=>B({name:"setValueFromView",value:re,selectionState:le})),U=ze((re,le,ye)=>B({name:"setValueFromShortcut",value:re,changeImportance:le,shortcut:ye})),Y=ze((re,le)=>B({name:"setValueFromField",value:re,context:le})),fe={onClear:H,onAccept:F,onDismiss:P,onCancel:_,onSetToday:D,onOpen:R,onClose:j},ue={value:N.draft,onChange:Y},pe=A.useMemo(()=>e.cleanValue(x,N.draft),[x,e,N.draft]),Z={value:pe,onChange:K,onClose:j,open:k},ce=se({},fe,{value:pe,onChange:K,onSelectShortcut:U,isValid:re=>{const le=o({adapter:S,value:re,timezone:C,props:t});return!e.hasError(le)}}),ne=A.useMemo(()=>({onOpen:R,onClose:j,open:k}),[k,j,R]);return{open:k,fieldProps:ue,viewProps:Z,layoutProps:ce,actions:fe,contextValue:ne}};let $0=!1;function n2({onChange:t,onViewChange:e,openTo:n,view:r,views:o,autoFocus:i,focusedView:s,onFocusedViewChange:a}){process.env.NODE_ENV!=="production"&&($0||(r!=null&&!o.includes(r)&&(console.warn(`MUI X: \`view="${r}"\` is not a valid prop.`,`It must be an element of \`views=["${o.join('", "')}"]\`.`),$0=!0),r==null&&n!=null&&!o.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${o.join('", "')}"]\`.`),$0=!0)));const l=A.useRef(n),u=A.useRef(o),f=A.useRef(o.includes(n)?n:o[0]),[p,m]=Lo({name:"useViews",state:"view",controlled:r,default:f.current}),b=A.useRef(i?p:null),[v,y]=Lo({name:"useViews",state:"focusedView",controlled:s,default:b.current});A.useEffect(()=>{(l.current&&l.current!==n||u.current&&u.current.some(N=>!o.includes(N)))&&(m(o.includes(n)?n:o[0]),u.current=o,l.current=n)},[n,m,p,o]);const x=o.indexOf(p),S=o[x-1]??null,k=o[x+1]??null,T=ze((N,L)=>{y(L?N:V=>N===V?null:V),a==null||a(N,L)}),C=ze(N=>{T(N,!0),N!==p&&(m(N),e&&e(N))}),O=ze(()=>{k&&C(k)}),I=ze((N,L,V)=>{const M=L==="finish",B=V?o.indexOf(V)<o.length-1:!!k;if(t(N,M&&B?"partial":L,V),V&&V!==p){const F=o[o.indexOf(V)+1];F&&C(F)}else M&&O()});return{view:p,setView:C,focusedView:v,setFocusedView:T,nextView:k,previousView:S,defaultView:o.includes(n)?n:o[0],goToNextView:O,setValueAndGoToNextView:I}}const GG=["className","sx"],JG=({props:t,propsFromPickerValue:e,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:i})=>{const{onChange:s,open:a,onClose:l}=e,{view:u,views:f,openTo:p,onViewChange:m,viewRenderers:b,timezone:v}=t,y=at(t,GG),{view:x,setView:S,defaultView:k,focusedView:T,setFocusedView:C,setValueAndGoToNextView:O}=n2({view:u,views:f,openTo:p,onChange:s,onViewChange:m,autoFocus:r}),{hasUIView:I,viewModeLookup:N}=A.useMemo(()=>f.reduce((P,_)=>{let D;return b[_]!=null?D="UI":D="field",P.viewModeLookup[_]=D,D==="UI"&&(P.hasUIView=!0),P},{hasUIView:!1,viewModeLookup:{}}),[b,f]),L=A.useMemo(()=>f.reduce((P,_)=>b[_]!=null&&kq(_)?P+1:P,0),[b,f]),V=N[x],M=ze(()=>V==="UI"),[B,H]=A.useState(V==="UI"?x:null);return B!==x&&N[x]==="UI"&&H(x),In(()=>{V==="field"&&a&&(l(),setTimeout(()=>{var P,_;(P=i==null?void 0:i.current)==null||P.setSelectedSections(x),(_=i==null?void 0:i.current)==null||_.focusField(x)}))},[x]),In(()=>{if(!a)return;let P=x;V==="field"&&B!=null&&(P=B),P!==k&&N[P]==="UI"&&N[k]==="UI"&&(P=k),P!==x&&S(P),C(P,!0)},[a]),{hasUIView:I,shouldRestoreFocus:M,layoutProps:{views:f,view:B,onViewChange:S},renderCurrentView:()=>{if(B==null)return null;const P=b[B];if(P==null)return null;const _=se({},y,n,e,{views:f,timezone:v,onChange:O,view:B,onViewChange:S,focusedView:T,onFocusedViewChange:C,showViewSwitcher:L>1,timeViewsCount:L});return o?o(b,B,_):P(_)}}};function r2(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const XG=(t,e)=>{const[n,r]=A.useState(r2);return In(()=>{const i=()=>{r(r2())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),sK(t,["hours","minutes","seconds"])?!1:(e||n)==="landscape"},ZG=({props:t,propsFromPickerValue:e,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=t,i=XG(n.views,o),s=Ei();return{layoutProps:se({},n,e,{isLandscape:i,isRtl:s,wrapperVariant:r,disabled:t.disabled,readOnly:t.readOnly})}};function QG(t){const{props:e,pickerValueResponse:n}=t;return A.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:e.disabled??!1,readOnly:e.readOnly??!1}),[n.viewProps.value,n.open,e.disabled,e.readOnly])}const o2=({props:t,valueManager:e,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:i,autoFocusView:s,rendererInterceptor:a,fieldRef:l})=>{process.env.NODE_ENV!=="production"&&t.renderInput!=null&&i_(["MUI X: The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const u=YG({props:t,valueManager:e,valueType:n,wrapperVariant:r,validator:i}),f=JG({props:t,additionalViewProps:o,autoFocusView:s,fieldRef:l,propsFromPickerValue:u.viewProps,rendererInterceptor:a}),p=ZG({props:t,wrapperVariant:r,propsFromPickerValue:u.layoutProps,propsFromPickerViews:f.layoutProps}),m=QG({props:t,pickerValueResponse:u});return{open:u.open,actions:u.actions,fieldProps:u.fieldProps,renderCurrentView:f.renderCurrentView,hasUIView:f.hasUIView,shouldRestoreFocus:f.shouldRestoreFocus,layoutProps:p.layoutProps,contextValue:u.contextValue,ownerState:m}};function i2(t){return Ke("MuiPickersLayout",t)}const va=je("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),eJ=["onAccept","onClear","onCancel","onSetToday","actions"];function s2(t){const{onAccept:e,onClear:n,onCancel:r,onSetToday:o,actions:i}=t,s=at(t,eJ),a=Oi();if(i==null||i.length===0)return null;const l=i==null?void 0:i.map(u=>{switch(u){case"clear":return g.jsx(no,{onClick:n,children:a.clearButtonLabel},u);case"cancel":return g.jsx(no,{onClick:r,children:a.cancelButtonLabel},u);case"accept":return g.jsx(no,{onClick:e,children:a.okButtonLabel},u);case"today":return g.jsx(no,{onClick:o,children:a.todayButtonLabel},u);default:return null}});return g.jsx(sp,se({},s,{children:l}))}process.env.NODE_ENV!=="production"&&(s2.propTypes={actions:c.arrayOf(c.oneOf(["accept","cancel","clear","today"]).isRequired),disableSpacing:c.bool,onAccept:c.func.isRequired,onCancel:c.func.isRequired,onClear:c.func.isRequired,onSetToday:c.func.isRequired,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function tJ(t){return Ke("MuiListItem",t)}je("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const nJ=je("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function rJ(t){return Ke("MuiListItemSecondaryAction",t)}je("MuiListItemSecondaryAction",["root","disableGutters"]);const oJ=t=>{const{disableGutters:e,classes:n}=t;return qe({root:["root",e&&"disableGutters"]},rJ,n)},iJ=oe("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.disableGutters&&e.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:t})=>t.disableGutters,style:{right:0}}]}),L0=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiListItemSecondaryAction"}),{className:o,...i}=r,s=A.useContext(hs),a={...r,disableGutters:s.disableGutters},l=oJ(a);return g.jsx(iJ,{className:ge(l.root,o),ownerState:a,ref:n,...i})});process.env.NODE_ENV!=="production"&&(L0.propTypes={children:c.node,classes:c.object,className:c.string,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])}),L0.muiName="ListItemSecondaryAction";const sJ=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.alignItems==="flex-start"&&e.alignItemsFlexStart,n.divider&&e.divider,!n.disableGutters&&e.gutters,!n.disablePadding&&e.padding,n.hasSecondaryAction&&e.secondaryAction]},aJ=t=>{const{alignItems:e,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:s,hasSecondaryAction:a}=t;return qe({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",s&&"divider",e==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"]},tJ,n)},lJ=oe("div",{name:"MuiListItem",slot:"Root",overridesResolver:sJ})(bt(({theme:t})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${nJ.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),cJ=oe("li",{name:"MuiListItem",slot:"Container",overridesResolver:(t,e)=>e.container})({position:"relative"}),a2=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiListItem"}),{alignItems:o="center",children:i,className:s,component:a,components:l={},componentsProps:u={},ContainerComponent:f="li",ContainerProps:{className:p,...m}={},dense:b=!1,disableGutters:v=!1,disablePadding:y=!1,divider:x=!1,secondaryAction:S,slotProps:k={},slots:T={},...C}=r,O=A.useContext(hs),I=A.useMemo(()=>({dense:b||O.dense||!1,alignItems:o,disableGutters:v}),[o,O.dense,b,v]),N=A.useRef(null),L=A.Children.toArray(i),V=L.length&&ec(L[L.length-1],["ListItemSecondaryAction"]),M={...r,alignItems:o,dense:I.dense,disableGutters:v,disablePadding:y,divider:x,hasSecondaryAction:V},B=aJ(M),H=Ot(N,n),F=T.root||l.Root||lJ,P=k.root||u.root||{},_={className:ge(B.root,P.className,s),...C};let D=a||"li";return V?(D=!_.component&&!a?"div":D,f==="li"&&(D==="li"?D="div":_.component==="li"&&(_.component="div")),g.jsx(hs.Provider,{value:I,children:g.jsxs(cJ,{as:f,className:ge(B.container,p),ref:H,ownerState:M,...m,children:[g.jsx(F,{...P,...!Wc(F)&&{as:D,ownerState:{...M,...P.ownerState}},..._,children:L}),L.pop()]})})):g.jsx(hs.Provider,{value:I,children:g.jsxs(F,{...P,as:D,ref:H,...!Wc(F)&&{ownerState:{...M,...P.ownerState}},..._,children:[L,S&&g.jsx(L0,{children:S})]})})});process.env.NODE_ENV!=="production"&&(a2.propTypes={alignItems:c.oneOf(["center","flex-start"]),children:si(c.node,t=>{const e=A.Children.toArray(t.children);let n=-1;for(let r=e.length-1;r>=0;r-=1){const o=e[r];if(ec(o,["ListItemSecondaryAction"])){n=r;break}}return n!==-1&&n!==e.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:c.object,className:c.string,component:c.elementType,components:c.shape({Root:c.elementType}),componentsProps:c.shape({root:c.object}),ContainerComponent:Ba,ContainerProps:c.object,dense:c.bool,disableGutters:c.bool,disablePadding:c.bool,divider:c.bool,secondaryAction:c.node,slotProps:c.shape({root:c.object}),slots:c.shape({root:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});const uJ=Le(g.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function dJ(t){return Ke("MuiChip",t)}const vt=je("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),fJ=t=>{const{classes:e,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:a,variant:l}=t,u={root:["root",l,n&&"disabled",`size${Ne(r)}`,`color${Ne(o)}`,a&&"clickable",a&&`clickableColor${Ne(o)}`,s&&"deletable",s&&`deletableColor${Ne(o)}`,`${l}${Ne(o)}`],label:["label",`label${Ne(r)}`],avatar:["avatar",`avatar${Ne(r)}`,`avatarColor${Ne(o)}`],icon:["icon",`icon${Ne(r)}`,`iconColor${Ne(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Ne(r)}`,`deleteIconColor${Ne(o)}`,`deleteIcon${Ne(l)}Color${Ne(o)}`]};return qe(u,dJ,e)},pJ=oe("div",{name:"MuiChip",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{color:r,iconColor:o,clickable:i,onDelete:s,size:a,variant:l}=n;return[{[`& .${vt.avatar}`]:e.avatar},{[`& .${vt.avatar}`]:e[`avatar${Ne(a)}`]},{[`& .${vt.avatar}`]:e[`avatarColor${Ne(r)}`]},{[`& .${vt.icon}`]:e.icon},{[`& .${vt.icon}`]:e[`icon${Ne(a)}`]},{[`& .${vt.icon}`]:e[`iconColor${Ne(o)}`]},{[`& .${vt.deleteIcon}`]:e.deleteIcon},{[`& .${vt.deleteIcon}`]:e[`deleteIcon${Ne(a)}`]},{[`& .${vt.deleteIcon}`]:e[`deleteIconColor${Ne(r)}`]},{[`& .${vt.deleteIcon}`]:e[`deleteIcon${Ne(l)}Color${Ne(r)}`]},e.root,e[`size${Ne(a)}`],e[`color${Ne(r)}`],i&&e.clickable,i&&r!=="default"&&e[`clickableColor${Ne(r)})`],s&&e.deletable,s&&r!=="default"&&e[`deletableColor${Ne(r)}`],e[l],e[`${l}${Ne(r)}`]]}})(bt(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[700]:t.palette.grey[300];return{maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${vt.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${vt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:e,fontSize:t.typography.pxToRem(12)},[`& .${vt.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${vt.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${vt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${vt.icon}`]:{marginLeft:5,marginRight:-6},[`& .${vt.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.26)`:it(t.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:it(t.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${vt.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${vt.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(t.palette).filter(Hn(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(t.vars||t).palette[n].main,color:(t.vars||t).palette[n].contrastText,[`& .${vt.deleteIcon}`]:{color:t.vars?`rgba(${t.vars.palette[n].contrastTextChannel} / 0.7)`:it(t.palette[n].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${vt.icon}`]:{color:t.vars?t.vars.palette.Chip.defaultIconColor:e}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${vt.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${vt.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:it(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}},...Object.entries(t.palette).filter(Hn(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${vt.focusVisible}`]:{background:(t.vars||t).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:it(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)},[`&.${vt.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:it(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},"&:active":{boxShadow:(t.vars||t).shadows[1]}}},...Object.entries(t.palette).filter(Hn(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${vt.focusVisible}`]:{backgroundColor:(t.vars||t).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${vt.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${vt.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${vt.avatar}`]:{marginLeft:4},[`& .${vt.avatarSmall}`]:{marginLeft:2},[`& .${vt.icon}`]:{marginLeft:4},[`& .${vt.iconSmall}`]:{marginLeft:2},[`& .${vt.deleteIcon}`]:{marginRight:5},[`& .${vt.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(t.palette).filter(Hn()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(t.vars||t).palette[n].main,border:`1px solid ${t.vars?`rgba(${t.vars.palette[n].mainChannel} / 0.7)`:it(t.palette[n].main,.7)}`,[`&.${vt.clickable}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:it(t.palette[n].main,t.palette.action.hoverOpacity)},[`&.${vt.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.focusOpacity})`:it(t.palette[n].main,t.palette.action.focusOpacity)},[`& .${vt.deleteIcon}`]:{color:t.vars?`rgba(${t.vars.palette[n].mainChannel} / 0.7)`:it(t.palette[n].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[n].main}}}}))]}})),hJ=oe("span",{name:"MuiChip",slot:"Label",overridesResolver:(t,e)=>{const{ownerState:n}=t,{size:r}=n;return[e.label,e[`label${Ne(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function l2(t){return t.key==="Backspace"||t.key==="Delete"}const c2=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:l,deleteIcon:u,disabled:f=!1,icon:p,label:m,onClick:b,onDelete:v,onKeyDown:y,onKeyUp:x,size:S="medium",variant:k="filled",tabIndex:T,skipFocusWhenDisabled:C=!1,...O}=r,I=A.useRef(null),N=Ot(I,n),L=K=>{K.stopPropagation(),v&&v(K)},V=K=>{K.currentTarget===K.target&&l2(K)&&K.preventDefault(),y&&y(K)},M=K=>{K.currentTarget===K.target&&v&&l2(K)&&v(K),x&&x(K)},B=s!==!1&&b?!0:s,H=B||v?ms:l||"div",F={...r,component:H,disabled:f,size:S,color:a,iconColor:A.isValidElement(p)&&p.props.color||a,onDelete:!!v,clickable:B,variant:k},P=fJ(F),_=H===ms?{component:l||"div",focusVisibleClassName:P.focusVisible,...v&&{disableRipple:!0}}:{};let D=null;v&&(D=u&&A.isValidElement(u)?A.cloneElement(u,{className:ge(u.props.className,P.deleteIcon),onClick:L}):g.jsx(uJ,{className:ge(P.deleteIcon),onClick:L}));let R=null;o&&A.isValidElement(o)&&(R=A.cloneElement(o,{className:ge(P.avatar,o.props.className)}));let j=null;return p&&A.isValidElement(p)&&(j=A.cloneElement(p,{className:ge(P.icon,p.props.className)})),process.env.NODE_ENV!=="production"&&R&&j&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."),g.jsxs(pJ,{as:H,className:ge(P.root,i),disabled:B&&f?!0:void 0,onClick:b,onKeyDown:V,onKeyUp:M,ref:N,tabIndex:C&&f?-1:T,ownerState:F,..._,...O,children:[R||j,g.jsx(hJ,{className:ge(P.label),ownerState:F,children:m}),D]})});process.env.NODE_ENV!=="production"&&(c2.propTypes={avatar:c.element,children:YP,classes:c.object,className:c.string,clickable:c.bool,color:c.oneOfType([c.oneOf(["default","primary","secondary","error","info","success","warning"]),c.string]),component:c.elementType,deleteIcon:c.element,disabled:c.bool,icon:c.element,label:c.node,onClick:c.func,onDelete:c.func,onKeyDown:c.func,onKeyUp:c.func,size:c.oneOfType([c.oneOf(["medium","small"]),c.string]),skipFocusWhenDisabled:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),tabIndex:c.number,variant:c.oneOfType([c.oneOf(["filled","outlined"]),c.string])});const Cu=36,Rp=2,zp=320,mJ=280,B0=336,gJ=["items","changeImportance","isLandscape","onChange","isValid"],yJ=["getValue"];function u2(t){const{items:e,changeImportance:n="accept",onChange:r,isValid:o}=t,i=at(t,gJ);if(e==null||e.length===0)return null;const s=e.map(a=>{let{getValue:l}=a,u=at(a,yJ);const f=l({isValid:o});return se({},u,{label:u.label,onClick:()=>{r(f,n,u)},disabled:!o(f)})});return g.jsx(Ey,se({dense:!0,sx:[{maxHeight:B0,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:s.map(a=>g.jsx(a2,{children:g.jsx(c2,se({},a))},a.id??a.label))}))}process.env.NODE_ENV!=="production"&&(u2.propTypes={changeImportance:c.oneOf(["accept","set"]),className:c.string,component:c.elementType,dense:c.bool,disablePadding:c.bool,isLandscape:c.bool.isRequired,isValid:c.func.isRequired,items:c.arrayOf(c.shape({getValue:c.func.isRequired,id:c.string,label:c.string.isRequired})),onChange:c.func.isRequired,style:c.object,subheader:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function bJ(t){return t.view!==null}const vJ=t=>{const{classes:e,isLandscape:n}=t;return qe({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},i2,e)},xJ=t=>{const{wrapperVariant:e,onAccept:n,onClear:r,onCancel:o,onSetToday:i,view:s,views:a,onViewChange:l,value:u,onChange:f,onSelectShortcut:p,isValid:m,isLandscape:b,disabled:v,readOnly:y,children:x,slots:S,slotProps:k}=t,T=vJ(t),C=(S==null?void 0:S.actionBar)??s2,O=Mt({elementType:C,externalSlotProps:k==null?void 0:k.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:i,actions:e==="desktop"?[]:["cancel","accept"]},className:T.actionBar,ownerState:se({},t,{wrapperVariant:e})}),I=g.jsx(C,se({},O)),N=S==null?void 0:S.toolbar,L=Mt({elementType:N,externalSlotProps:k==null?void 0:k.toolbar,additionalProps:{isLandscape:b,onChange:f,value:u,view:s,onViewChange:l,views:a,disabled:v,readOnly:y},className:T.toolbar,ownerState:se({},t,{wrapperVariant:e})}),V=bJ(L)&&N?g.jsx(N,se({},L)):null,M=x,B=S==null?void 0:S.tabs,H=s&&B?g.jsx(B,se({view:s,onViewChange:l,className:T.tabs},k==null?void 0:k.tabs)):null,F=(S==null?void 0:S.shortcuts)??u2,P=Mt({elementType:F,externalSlotProps:k==null?void 0:k.shortcuts,additionalProps:{isValid:m,isLandscape:b,onChange:p},className:T.shortcuts,ownerState:{isValid:m,isLandscape:b,onChange:p,wrapperVariant:e}}),_=s&&F?g.jsx(F,se({},P)):null;return{toolbar:V,content:M,tabs:H,actionBar:I,shortcuts:_}},wJ=t=>{const{isLandscape:e,classes:n}=t;return qe({root:["root",e&&"landscape"],contentWrapper:["contentWrapper"]},i2,n)},SJ=oe("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${va.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${va.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${va.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${va.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${va.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${va.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${va.shortcuts}`]:{gridColumn:3}}}]}),CJ=oe("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(t,e)=>e.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),F0=A.forwardRef(function(e,n){const r=rt({props:e,name:"MuiPickersLayout"}),{toolbar:o,content:i,tabs:s,actionBar:a,shortcuts:l}=xJ(r),{sx:u,className:f,isLandscape:p,wrapperVariant:m}=r,b=wJ(r);return g.jsxs(SJ,{ref:n,sx:u,className:ge(b.root,f),ownerState:r,children:[p?l:o,p?o:l,g.jsx(CJ,{className:b.contentWrapper,children:m==="desktop"?g.jsxs(A.Fragment,{children:[i,s]}):g.jsxs(A.Fragment,{children:[s,i]})}),a]})});process.env.NODE_ENV!=="production"&&(F0.propTypes={children:c.node,classes:c.object,className:c.string,disabled:c.bool,isLandscape:c.bool.isRequired,isRtl:c.bool.isRequired,isValid:c.func.isRequired,onAccept:c.func.isRequired,onCancel:c.func.isRequired,onChange:c.func.isRequired,onClear:c.func.isRequired,onClose:c.func.isRequired,onDismiss:c.func.isRequired,onOpen:c.func.isRequired,onSelectShortcut:c.func.isRequired,onSetToday:c.func.isRequired,onViewChange:c.func.isRequired,orientation:c.oneOf(["landscape","portrait"]),readOnly:c.bool,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.any,view:c.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),views:c.arrayOf(c.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired).isRequired,wrapperVariant:c.oneOf(["desktop","mobile"])});const TJ=["props","getOpenDialogAriaText"],kJ=["ownerState"],EJ=["ownerState"],OJ=t=>{var we;let{props:e,getOpenDialogAriaText:n}=t,r=at(t,TJ);const{slots:o,slotProps:i,className:s,sx:a,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:m,timezone:b,name:v,label:y,inputRef:x,readOnly:S,disabled:k,autoFocus:T,localeText:C,reduceAnimations:O}=e,I=A.useRef(null),N=A.useRef(null),L=vo(),V=((we=i==null?void 0:i.toolbar)==null?void 0:we.hidden)??!1,{open:M,actions:B,hasUIView:H,layoutProps:F,renderCurrentView:P,shouldRestoreFocus:_,fieldProps:D,contextValue:R,ownerState:j}=o2(se({},r,{props:e,fieldRef:N,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),K=o.inputAdornment??_0,U=Mt({elementType:K,externalSlotProps:i==null?void 0:i.inputAdornment,additionalProps:{position:"end"},ownerState:e}),Y=at(U,kJ),fe=o.openPickerButton??_l,ue=Mt({elementType:fe,externalSlotProps:i==null?void 0:i.openPickerButton,additionalProps:{disabled:k||S,onClick:M?B.onClose:B.onOpen,"aria-label":n(D.value),edge:Y.position},ownerState:e}),pe=at(ue,EJ),Z=o.openPickerIcon,te=Mt({elementType:Z,externalSlotProps:i==null?void 0:i.openPickerIcon,ownerState:j}),ce=o.field,ne=Mt({elementType:ce,externalSlotProps:i==null?void 0:i.field,additionalProps:se({},D,V&&{id:L},{readOnly:S,disabled:k,className:s,sx:a,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:m,timezone:b,label:y,name:v,autoFocus:T&&!e.open,focused:M?!0:void 0},x?{inputRef:x}:{}),ownerState:e});H&&(ne.InputProps=se({},ne.InputProps,{ref:I},!e.disableOpenPicker&&{[`${Y.position}Adornment`]:g.jsx(K,se({},Y,{children:g.jsx(fe,se({},pe,{children:g.jsx(Z,se({},te))}))}))}));const re=se({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},ne.slots),le=o.layout??F0;let ye=L;V&&(y?ye=`${L}-label`:ye=void 0);const X=se({},i,{toolbar:se({},i==null?void 0:i.toolbar,{titleId:L}),popper:se({"aria-labelledby":ye},i==null?void 0:i.popper)}),ee=Ot(N,ne.unstableFieldRef);return{renderPicker:()=>g.jsxs(I_,{contextValue:R,localeText:C,children:[g.jsx(ce,se({},ne,{slots:re,slotProps:X,unstableFieldRef:ee})),g.jsx(WG,se({role:"dialog",placement:"bottom-start",anchorEl:I.current},B,{open:M,slots:o,slotProps:X,shouldRestoreFocus:_,reduceAnimations:O,children:g.jsx(le,se({},F,X==null?void 0:X.layout,{slots:o,slotProps:X,children:P()}))}))]})}},d2=({shouldDisableDate:t,shouldDisableMonth:e,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:s,timezone:a})=>{const l=ya();return A.useCallback(u=>gu({adapter:l,value:u,timezone:a,props:{shouldDisableDate:t,shouldDisableMonth:e,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:s}})!==null,[l,t,e,n,r,o,i,s,a])},MJ=(t,e,n)=>(r,o)=>{switch(o.type){case"changeMonth":return se({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!t});case"changeMonthTimezone":{const i=o.newTimezone;if(n.getTimezone(r.currentMonth)===i)return r;let s=n.setTimezone(r.currentMonth,i);return n.getMonth(s)!==n.getMonth(r.currentMonth)&&(s=n.setMonth(s,n.getMonth(r.currentMonth))),se({},r,{currentMonth:s})}case"finishMonthSwitchingAnimation":return se({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const i=o.focusedDay!=null&&!e&&!n.isSameMonth(r.currentMonth,o.focusedDay);return se({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:i&&!t&&!o.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},_J=t=>{const{value:e,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:i=!1,maxDate:s,minDate:a,onMonthChange:l,reduceAnimations:u,shouldDisableDate:f,timezone:p}=t,m=qt(),b=A.useRef(MJ(!!u,i,m)).current,v=A.useMemo(()=>Jo.getInitialReferenceValue({value:e,utils:m,timezone:p,props:t,referenceDate:n,granularity:Go.day}),[n,p]),[y,x]=A.useReducer(b,{isMonthSwitchingAnimating:!1,focusedDay:v,currentMonth:m.startOfMonth(v),slideDirection:"left"});A.useEffect(()=>{x({type:"changeMonthTimezone",newTimezone:m.getTimezone(v)})},[v,m]);const S=A.useCallback(I=>{x(se({type:"changeMonth"},I)),l&&l(I.newMonth)},[l]),k=A.useCallback(I=>{const N=I;m.isSameMonth(N,y.currentMonth)||S({newMonth:m.startOfMonth(N),direction:m.isAfterDay(N,y.currentMonth)?"left":"right"})},[y.currentMonth,S,m]),T=d2({shouldDisableDate:f,minDate:a,maxDate:s,disableFuture:r,disablePast:o,timezone:p}),C=A.useCallback(()=>{x({type:"finishMonthSwitchingAnimation"})},[]),O=ze((I,N)=>{T(I)||x({type:"changeFocusedDay",focusedDay:I,withoutMonthSwitchingAnimation:N})});return{referenceDate:v,calendarState:y,changeMonth:k,changeFocusedDay:O,isDateDisabled:T,onMonthSwitchingAnimationEnd:C,handleChangeMonth:S}},IJ=t=>Ke("MuiPickersFadeTransitionGroup",t);je("MuiPickersFadeTransitionGroup",["root"]);const DJ=t=>{const{classes:e}=t;return qe({root:["root"]},IJ,e)},AJ=oe(Nc,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"block",position:"relative"});function f2(t){const e=rt({props:t,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=e,s=DJ(e),a=wo();return o?n:g.jsx(AJ,{className:ge(s.root,r),children:g.jsx(Ho,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:a.transitions.duration.enteringScreen,enter:a.transitions.duration.enteringScreen,exit:0},children:n},i)})}function PJ(t){return Ke("MuiPickersDay",t)}const xa=je("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),NJ=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],$J=t=>{const{selected:e,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:a,classes:l}=t,u=s&&!a;return qe({root:["root",e&&!u&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",s&&a&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},PJ,l)},p2=({theme:t})=>se({},t.typography.caption,{width:Cu,height:Cu,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:t.transitions.create("background-color",{duration:t.transitions.duration.short}),color:(t.vars||t).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:it(t.palette.primary.main,t.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.focusOpacity})`:it(t.palette.primary.main,t.palette.action.focusOpacity),[`&.${xa.selected}`]:{willChange:"background-color",backgroundColor:(t.vars||t).palette.primary.dark}},[`&.${xa.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,fontWeight:t.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(t.vars||t).palette.primary.dark}},[`&.${xa.disabled}:not(.${xa.selected})`]:{color:(t.vars||t).palette.text.disabled},[`&.${xa.disabled}&.${xa.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Rp}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(t.vars||t).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${xa.selected})`]:{border:`1px solid ${(t.vars||t).palette.text.secondary}`}}}]}),h2=(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableMargin&&e.dayWithMargin,!n.disableHighlightToday&&n.today&&e.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&e.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&e.hiddenDaySpacingFiller]},LJ=oe(ms,{name:"MuiPickersDay",slot:"Root",overridesResolver:h2})(p2),BJ=oe("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:h2})(({theme:t})=>se({},p2({theme:t}),{opacity:0,pointerEvents:"none"})),Tu=()=>{},m2=A.forwardRef(function(e,n){const r=rt({props:e,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,day:s,disabled:a=!1,disableHighlightToday:l=!1,disableMargin:u=!1,isAnimating:f,onClick:p,onDaySelect:m,onFocus:b=Tu,onBlur:v=Tu,onKeyDown:y=Tu,onMouseDown:x=Tu,onMouseEnter:S=Tu,outsideCurrentMonth:k,selected:T=!1,showDaysOutsideCurrentMonth:C=!1,children:O,today:I=!1}=r,N=at(r,NJ),L=se({},r,{autoFocus:o,disabled:a,disableHighlightToday:l,disableMargin:u,selected:T,showDaysOutsideCurrentMonth:C,today:I}),V=$J(L),M=qt(),B=A.useRef(null),H=Ot(B,n);In(()=>{o&&!a&&!f&&!k&&B.current.focus()},[o,a,f,k]);const F=_=>{x(_),k&&_.preventDefault()},P=_=>{a||m(s),k&&_.currentTarget.focus(),p&&p(_)};return k&&!C?g.jsx(BJ,{className:ge(V.root,V.hiddenDaySpacingFiller,i),ownerState:L,role:N.role}):g.jsx(LJ,se({className:ge(V.root,i),ref:H,centerRipple:!0,disabled:a,tabIndex:T?0:-1,onKeyDown:_=>y(_,s),onFocus:_=>b(_,s),onBlur:_=>v(_,s),onMouseEnter:_=>S(_,s),onClick:P,onMouseDown:F},N,{ownerState:L,children:O||M.format(s,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(m2.propTypes={action:c.oneOfType([c.func,c.shape({current:c.shape({focusVisible:c.func.isRequired})})]),centerRipple:c.bool,classes:c.object,className:c.string,component:c.elementType,day:c.object.isRequired,disabled:c.bool,disableHighlightToday:c.bool,disableMargin:c.bool,disableRipple:c.bool,disableTouchRipple:c.bool,focusRipple:c.bool,focusVisibleClassName:c.string,isAnimating:c.bool,isFirstVisibleCell:c.bool.isRequired,isLastVisibleCell:c.bool.isRequired,onBlur:c.func,onDaySelect:c.func.isRequired,onFocus:c.func,onFocusVisible:c.func,onKeyDown:c.func,onMouseEnter:c.func,outsideCurrentMonth:c.bool.isRequired,selected:c.bool,showDaysOutsideCurrentMonth:c.bool,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),tabIndex:c.number,today:c.bool,TouchRippleProps:c.object,touchRippleRef:c.oneOfType([c.func,c.shape({current:c.shape({pulsate:c.func.isRequired,start:c.func.isRequired,stop:c.func.isRequired})})])});const FJ=A.memo(m2),RJ=t=>Ke("MuiPickersSlideTransition",t),so=je("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),zJ=["children","className","reduceAnimations","slideDirection","transKey","classes"],VJ=t=>{const{classes:e,slideDirection:n}=t,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return qe(r,RJ,e)},HJ=oe(Nc,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(t,e)=>[e.root,{[`.${so["slideEnter-left"]}`]:e["slideEnter-left"]},{[`.${so["slideEnter-right"]}`]:e["slideEnter-right"]},{[`.${so.slideEnterActive}`]:e.slideEnterActive},{[`.${so.slideExit}`]:e.slideExit},{[`.${so["slideExitActiveLeft-left"]}`]:e["slideExitActiveLeft-left"]},{[`.${so["slideExitActiveLeft-right"]}`]:e["slideExitActiveLeft-right"]}]})(({theme:t})=>{const e=t.transitions.create("transform",{duration:t.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${so["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${so["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${so.slideEnterActive}`]:{transform:"translate(0%)",transition:e},[`& .${so.slideExit}`]:{transform:"translate(0%)"},[`& .${so["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:e,zIndex:0},[`& .${so["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:e,zIndex:0}}});function WJ(t){const e=rt({props:t,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:i}=e,s=at(e,zJ),a=VJ(e),l=wo();if(o)return g.jsx("div",{className:ge(a.root,r),children:n});const u={exit:a.exit,enterActive:a.enterActive,enter:a.enter,exitActive:a.exitActive};return g.jsx(HJ,{className:ge(a.root,r),childFactory:f=>A.cloneElement(f,{classNames:u}),role:"presentation",children:g.jsx(uy,se({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:u},s,{children:n}),i)})}const jJ=t=>Ke("MuiDayCalendar",t);je("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const UJ=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],qJ=["ownerState"],KJ=t=>{const{classes:e}=t;return qe({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},jJ,e)},g2=(Cu+Rp*2)*6,YJ=oe("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({}),GJ=oe("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(t,e)=>e.header})({display:"flex",justifyContent:"center",alignItems:"center"}),JJ=oe(ko,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(t,e)=>e.weekDayLabel})(({theme:t})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(t.vars||t).palette.text.secondary})),XJ=oe(ko,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(t,e)=>e.weekNumberLabel})(({theme:t})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:t.palette.text.disabled})),ZJ=oe(ko,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(t,e)=>e.weekNumber})(({theme:t})=>se({},t.typography.caption,{width:Cu,height:Cu,padding:0,margin:`0 ${Rp}px`,color:t.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),QJ=oe("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(t,e)=>e.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:g2}),eX=oe(WJ,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(t,e)=>e.slideTransition})({minHeight:g2}),tX=oe("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(t,e)=>e.monthContainer})({overflow:"hidden"}),nX=oe("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(t,e)=>e.weekContainer})({margin:`${Rp}px 0`,display:"flex",justifyContent:"center"});function rX(t){let{parentProps:e,day:n,focusableDay:r,selectedDays:o,isDateDisabled:i,currentMonthNumber:s,isViewFocused:a}=t,l=at(t,UJ);const{disabled:u,disableHighlightToday:f,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:m,slots:b,slotProps:v,timezone:y}=e,x=qt(),S=Cp(y),k=r!==null&&x.isSameDay(n,r),T=o.some(H=>x.isSameDay(H,n)),C=x.isSameDay(n,S),O=(b==null?void 0:b.day)??FJ,I=Mt({elementType:O,externalSlotProps:v==null?void 0:v.day,additionalProps:se({disableHighlightToday:f,showDaysOutsideCurrentMonth:m,role:"gridcell",isAnimating:p,"data-timestamp":x.toJsDate(n).valueOf()},l),ownerState:se({},e,{day:n,selected:T})}),N=at(I,qJ),L=A.useMemo(()=>u||i(n),[u,i,n]),V=A.useMemo(()=>x.getMonth(n)!==s,[x,n,s]),M=A.useMemo(()=>{const H=x.startOfMonth(x.setMonth(n,s));return m?x.isSameDay(n,x.startOfWeek(H)):x.isSameDay(n,H)},[s,n,m,x]),B=A.useMemo(()=>{const H=x.endOfMonth(x.setMonth(n,s));return m?x.isSameDay(n,x.endOfWeek(H)):x.isSameDay(n,H)},[s,n,m,x]);return g.jsx(O,se({},N,{day:n,disabled:L,autoFocus:a&&k,today:C,outsideCurrentMonth:V,isFirstVisibleCell:M,isLastVisibleCell:B,selected:T,tabIndex:k?0:-1,"aria-selected":T,"aria-current":C?"date":void 0}))}function oX(t){const e=rt({props:t,name:"MuiDayCalendar"}),n=qt(),{onFocusedDayChange:r,className:o,currentMonth:i,selectedDays:s,focusedDay:a,loading:l,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:f,readOnly:p,reduceAnimations:m,renderLoading:b=()=>g.jsx("span",{children:"..."}),slideDirection:v,TransitionProps:y,disablePast:x,disableFuture:S,minDate:k,maxDate:T,shouldDisableDate:C,shouldDisableMonth:O,shouldDisableYear:I,dayOfWeekFormatter:N=Ce=>n.format(Ce,"weekdayShort").charAt(0).toUpperCase(),hasFocus:L,onFocusedViewChange:V,gridLabelId:M,displayWeekNumber:B,fixedWeekNumber:H,autoFocus:F,timezone:P}=e,_=Cp(P),D=KJ(e),R=Ei(),j=d2({shouldDisableDate:C,shouldDisableMonth:O,shouldDisableYear:I,minDate:k,maxDate:T,disablePast:x,disableFuture:S,timezone:P}),K=Oi(),[U,Y]=Lo({name:"DayCalendar",state:"hasFocus",controlled:L,default:F??!1}),[fe,ue]=A.useState(()=>a||_),pe=ze(Ce=>{p||u(Ce)}),Z=Ce=>{j(Ce)||(r(Ce),ue(Ce),V==null||V(!0),Y(!0))},te=ze((Ce,Ae)=>{switch(Ce.key){case"ArrowUp":Z(n.addDays(Ae,-7)),Ce.preventDefault();break;case"ArrowDown":Z(n.addDays(Ae,7)),Ce.preventDefault();break;case"ArrowLeft":{const Me=n.addDays(Ae,R?1:-1),Ie=n.addMonths(Ae,R?1:-1),me=hu({utils:n,date:Me,minDate:R?Me:n.startOfMonth(Ie),maxDate:R?n.endOfMonth(Ie):Me,isDateDisabled:j,timezone:P});Z(me||Me),Ce.preventDefault();break}case"ArrowRight":{const Me=n.addDays(Ae,R?-1:1),Ie=n.addMonths(Ae,R?-1:1),me=hu({utils:n,date:Me,minDate:R?n.startOfMonth(Ie):Me,maxDate:R?Me:n.endOfMonth(Ie),isDateDisabled:j,timezone:P});Z(me||Me),Ce.preventDefault();break}case"Home":Z(n.startOfWeek(Ae)),Ce.preventDefault();break;case"End":Z(n.endOfWeek(Ae)),Ce.preventDefault();break;case"PageUp":Z(n.addMonths(Ae,1)),Ce.preventDefault();break;case"PageDown":Z(n.addMonths(Ae,-1)),Ce.preventDefault();break}}),ce=ze((Ce,Ae)=>Z(Ae)),ne=ze((Ce,Ae)=>{U&&n.isSameDay(fe,Ae)&&(V==null||V(!1))}),re=n.getMonth(i),le=n.getYear(i),ye=A.useMemo(()=>s.filter(Ce=>!!Ce).map(Ce=>n.startOfDay(Ce)),[n,s]),X=`${le}-${re}`,ee=A.useMemo(()=>A.createRef(),[X]),ie=A.useMemo(()=>{const Ce=n.startOfMonth(i),Ae=n.endOfMonth(i);return j(fe)||n.isAfterDay(fe,Ae)||n.isBeforeDay(fe,Ce)?hu({utils:n,date:fe,minDate:Ce,maxDate:Ae,disablePast:x,disableFuture:S,isDateDisabled:j,timezone:P}):fe},[i,S,x,fe,j,n,P]),we=A.useMemo(()=>{const Ce=n.getWeekArray(i);let Ae=n.addMonths(i,1);for(;H&&Ce.length<H;){const Me=n.getWeekArray(Ae),Ie=n.isSameDay(Ce[Ce.length-1][0],Me[0][0]);Me.slice(Ie?1:0).forEach(me=>{Ce.length<H&&Ce.push(me)}),Ae=n.addMonths(Ae,1)}return Ce},[i,H,n]);return g.jsxs(YJ,{role:"grid","aria-labelledby":M,className:D.root,children:[g.jsxs(GJ,{role:"row",className:D.header,children:[B&&g.jsx(XJ,{variant:"caption",role:"columnheader","aria-label":K.calendarWeekNumberHeaderLabel,className:D.weekNumberLabel,children:K.calendarWeekNumberHeaderText}),Cq(n,_).map((Ce,Ae)=>g.jsx(JJ,{variant:"caption",role:"columnheader","aria-label":n.format(Ce,"weekday"),className:D.weekDayLabel,children:N(Ce)},Ae.toString()))]}),l?g.jsx(QJ,{className:D.loadingContainer,children:b()}):g.jsx(eX,se({transKey:X,onExited:f,reduceAnimations:m,slideDirection:v,className:ge(o,D.slideTransition)},y,{nodeRef:ee,children:g.jsx(tX,{ref:ee,role:"rowgroup",className:D.monthContainer,children:we.map((Ce,Ae)=>g.jsxs(nX,{role:"row",className:D.weekContainer,"aria-rowindex":Ae+1,children:[B&&g.jsx(ZJ,{className:D.weekNumber,role:"rowheader","aria-label":K.calendarWeekNumberAriaLabelText(n.getWeekNumber(Ce[0])),children:K.calendarWeekNumberText(n.getWeekNumber(Ce[0]))}),Ce.map((Me,Ie)=>g.jsx(rX,{parentProps:e,day:Me,selectedDays:ye,focusableDay:ie,onKeyDown:te,onFocus:ce,onBlur:ne,onDaySelect:pe,isDateDisabled:j,currentMonthNumber:re,isViewFocused:U,"aria-colindex":Ie+1},Me.toString()))]},`week-${Ce[0]}`))})}))]})}function iX(t){return Ke("MuiPickersMonth",t)}const Vp=je("MuiPickersMonth",["root","monthButton","disabled","selected"]),sX=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],aX=t=>{const{disabled:e,selected:n,classes:r}=t;return qe({root:["root"],monthButton:["monthButton",e&&"disabled",n&&"selected"]},iX,r)},lX=oe("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(t,e)=>[e.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),cX=oe("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(t,e)=>[e.monthButton,{[`&.${Vp.disabled}`]:e.disabled},{[`&.${Vp.selected}`]:e.selected}]})(({theme:t})=>se({color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:it(t.palette.action.active,t.palette.action.hoverOpacity)},"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:it(t.palette.action.active,t.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Vp.disabled}`]:{color:(t.vars||t).palette.text.secondary},[`&.${Vp.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,"&:focus, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}}})),uX=A.memo(function(e){const n=rt({props:e,name:"MuiPickersMonth"}),{autoFocus:r,className:o,children:i,disabled:s,selected:a,value:l,tabIndex:u,onClick:f,onKeyDown:p,onFocus:m,onBlur:b,"aria-current":v,"aria-label":y,slots:x,slotProps:S}=n,k=at(n,sX),T=A.useRef(null),C=aX(n);In(()=>{var N;r&&((N=T.current)==null||N.focus())},[r]);const O=(x==null?void 0:x.monthButton)??cX,I=Mt({elementType:O,externalSlotProps:S==null?void 0:S.monthButton,additionalProps:{children:i,disabled:s,tabIndex:u,ref:T,type:"button",role:"radio","aria-current":v,"aria-checked":a,"aria-label":y,onClick:N=>f(N,l),onKeyDown:N=>p(N,l),onFocus:N=>m(N,l),onBlur:N=>b(N,l)},ownerState:n,className:C.monthButton});return g.jsx(lX,se({className:ge(C.root,o),ownerState:n},k,{children:g.jsx(O,se({},I))}))});function dX(t){return Ke("MuiMonthCalendar",t)}je("MuiMonthCalendar",["root"]);const fX=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],pX=t=>{const{classes:e}=t;return qe({root:["root"]},dX,e)};function hX(t,e){const n=qt(),r=yu(),o=rt({props:t,name:e});return se({disableFuture:!1,disablePast:!1},o,{minDate:ro(n,o.minDate,r.minDate),maxDate:ro(n,o.maxDate,r.maxDate)})}const mX=oe("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:zp,boxSizing:"border-box"}),y2=A.forwardRef(function(e,n){const r=hX(e,"MuiMonthCalendar"),{className:o,value:i,defaultValue:s,referenceDate:a,disabled:l,disableFuture:u,disablePast:f,maxDate:p,minDate:m,onChange:b,shouldDisableMonth:v,readOnly:y,autoFocus:x=!1,onMonthFocus:S,hasFocus:k,onFocusedViewChange:T,monthsPerRow:C=3,timezone:O,gridLabelId:I,slots:N,slotProps:L}=r,V=at(r,fX),{value:M,handleValueChange:B,timezone:H}=M0({name:"MonthCalendar",timezone:O,value:i,defaultValue:s,referenceDate:a,onChange:b,valueManager:Jo}),F=Cp(H),P=Ei(),_=qt(),D=A.useMemo(()=>Jo.getInitialReferenceValue({value:M,utils:_,props:r,timezone:H,referenceDate:a,granularity:Go.month}),[]),R=r,j=pX(R),K=A.useMemo(()=>_.getMonth(F),[_,F]),U=A.useMemo(()=>M!=null?_.getMonth(M):null,[M,_]),[Y,fe]=A.useState(()=>U||_.getMonth(D)),[ue,pe]=Lo({name:"MonthCalendar",state:"hasFocus",controlled:k,default:x??!1}),Z=ze(X=>{pe(X),T&&T(X)}),te=A.useCallback(X=>{const ee=_.startOfMonth(f&&_.isAfter(F,m)?F:m),ie=_.startOfMonth(u&&_.isBefore(F,p)?F:p),we=_.startOfMonth(X);return _.isBefore(we,ee)||_.isAfter(we,ie)?!0:v?v(we):!1},[u,f,p,m,F,v,_]),ce=ze((X,ee)=>{if(y)return;const ie=_.setMonth(M??D,ee);B(ie)}),ne=ze(X=>{te(_.setMonth(M??D,X))||(fe(X),Z(!0),S&&S(X))});A.useEffect(()=>{fe(X=>U!==null&&X!==U?U:X)},[U]);const re=ze((X,ee)=>{switch(X.key){case"ArrowUp":ne((12+ee-3)%12),X.preventDefault();break;case"ArrowDown":ne((12+ee+3)%12),X.preventDefault();break;case"ArrowLeft":ne((12+ee+(P?1:-1))%12),X.preventDefault();break;case"ArrowRight":ne((12+ee+(P?-1:1))%12),X.preventDefault();break}}),le=ze((X,ee)=>{ne(ee)}),ye=ze((X,ee)=>{Y===ee&&Z(!1)});return g.jsx(mX,se({ref:n,className:ge(j.root,o),ownerState:R,role:"radiogroup","aria-labelledby":I},V,{children:w0(_,M??D).map(X=>{const ee=_.getMonth(X),ie=_.format(X,"monthShort"),we=_.format(X,"month"),Ce=ee===U,Ae=l||te(X);return g.jsx(uX,{selected:Ce,value:ee,onClick:ce,onKeyDown:re,autoFocus:ue&&ee===Y,disabled:Ae,tabIndex:ee===Y&&!Ae?0:-1,onFocus:le,onBlur:ye,"aria-current":K===ee?"date":void 0,"aria-label":we,monthsPerRow:C,slots:N,slotProps:L,children:ie},ie)})}))});process.env.NODE_ENV!=="production"&&(y2.propTypes={autoFocus:c.bool,classes:c.object,className:c.string,defaultValue:c.object,disabled:c.bool,disableFuture:c.bool,disableHighlightToday:c.bool,disablePast:c.bool,gridLabelId:c.string,hasFocus:c.bool,maxDate:c.object,minDate:c.object,monthsPerRow:c.oneOf([3,4]),onChange:c.func,onFocusedViewChange:c.func,onMonthFocus:c.func,readOnly:c.bool,referenceDate:c.object,shouldDisableMonth:c.func,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,value:c.object});function gX(t){return Ke("MuiPickersYear",t)}const Hp=je("MuiPickersYear",["root","yearButton","selected","disabled"]),yX=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],bX=t=>{const{disabled:e,selected:n,classes:r}=t;return qe({root:["root"],yearButton:["yearButton",e&&"disabled",n&&"selected"]},gX,r)},vX=oe("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(t,e)=>[e.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),xX=oe("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(t,e)=>[e.yearButton,{[`&.${Hp.disabled}`]:e.disabled},{[`&.${Hp.selected}`]:e.selected}]})(({theme:t})=>se({color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.focusOpacity})`:it(t.palette.action.active,t.palette.action.focusOpacity)},"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:it(t.palette.action.active,t.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Hp.disabled}`]:{color:(t.vars||t).palette.text.secondary},[`&.${Hp.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,"&:focus, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}}})),wX=A.memo(function(e){const n=rt({props:e,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:i,disabled:s,selected:a,value:l,tabIndex:u,onClick:f,onKeyDown:p,onFocus:m,onBlur:b,"aria-current":v,slots:y,slotProps:x}=n,S=at(n,yX),k=A.useRef(null),T=bX(n);In(()=>{var I;r&&((I=k.current)==null||I.focus())},[r]);const C=(y==null?void 0:y.yearButton)??xX,O=Mt({elementType:C,externalSlotProps:x==null?void 0:x.yearButton,additionalProps:{children:i,disabled:s,tabIndex:u,ref:k,type:"button",role:"radio","aria-current":v,"aria-checked":a,onClick:I=>f(I,l),onKeyDown:I=>p(I,l),onFocus:I=>m(I,l),onBlur:I=>b(I,l)},ownerState:n,className:T.yearButton});return g.jsx(vX,se({className:ge(T.root,o),ownerState:n},S,{children:g.jsx(C,se({},O))}))});function SX(t){return Ke("MuiYearCalendar",t)}je("MuiYearCalendar",["root"]);const CX=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],TX=t=>{const{classes:e}=t;return qe({root:["root"]},SX,e)};function kX(t,e){const n=qt(),r=yu(),o=rt({props:t,name:e});return se({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:ro(n,o.minDate,r.minDate),maxDate:ro(n,o.maxDate,r.maxDate)})}const EX=oe("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:zp,maxHeight:mJ,boxSizing:"border-box",position:"relative"}),b2=A.forwardRef(function(e,n){const r=kX(e,"MuiYearCalendar"),{autoFocus:o,className:i,value:s,defaultValue:a,referenceDate:l,disabled:u,disableFuture:f,disablePast:p,maxDate:m,minDate:b,onChange:v,readOnly:y,shouldDisableYear:x,onYearFocus:S,hasFocus:k,onFocusedViewChange:T,yearsOrder:C="asc",yearsPerRow:O,timezone:I,gridLabelId:N,slots:L,slotProps:V}=r,M=at(r,CX),{value:B,handleValueChange:H,timezone:F}=M0({name:"YearCalendar",timezone:I,value:s,defaultValue:a,referenceDate:l,onChange:v,valueManager:Jo}),P=Cp(F),_=Ei(),D=qt(),R=A.useMemo(()=>Jo.getInitialReferenceValue({value:B,utils:D,props:r,timezone:F,referenceDate:l,granularity:Go.year}),[]),j=r,K=TX(j),U=A.useMemo(()=>D.getYear(P),[D,P]),Y=A.useMemo(()=>B!=null?D.getYear(B):null,[B,D]),[fe,ue]=A.useState(()=>Y||D.getYear(R)),[pe,Z]=Lo({name:"YearCalendar",state:"hasFocus",controlled:k,default:o??!1}),te=ze(Me=>{Z(Me),T&&T(Me)}),ce=A.useCallback(Me=>{if(p&&D.isBeforeYear(Me,P)||f&&D.isAfterYear(Me,P)||b&&D.isBeforeYear(Me,b)||m&&D.isAfterYear(Me,m))return!0;if(!x)return!1;const Ie=D.startOfYear(Me);return x(Ie)},[f,p,m,b,P,x,D]),ne=ze((Me,Ie)=>{if(y)return;const me=D.setYear(B??R,Ie);H(me)}),re=ze(Me=>{ce(D.setYear(B??R,Me))||(ue(Me),te(!0),S==null||S(Me))});A.useEffect(()=>{ue(Me=>Y!==null&&Me!==Y?Y:Me)},[Y]);const le=C!=="desc"?O*1:O*-1,ye=_&&C==="asc"||!_&&C==="desc"?-1:1,X=ze((Me,Ie)=>{switch(Me.key){case"ArrowUp":re(Ie-le),Me.preventDefault();break;case"ArrowDown":re(Ie+le),Me.preventDefault();break;case"ArrowLeft":re(Ie-ye),Me.preventDefault();break;case"ArrowRight":re(Ie+ye),Me.preventDefault();break}}),ee=ze((Me,Ie)=>{re(Ie)}),ie=ze((Me,Ie)=>{fe===Ie&&te(!1)}),we=A.useRef(null),Ce=Ot(n,we);A.useEffect(()=>{if(o||we.current===null)return;const Me=we.current.querySelector('[tabindex="0"]');if(!Me)return;const Ie=Me.offsetHeight,me=Me.offsetTop,Be=we.current.clientHeight,De=we.current.scrollTop,yt=me+Ie;Ie>Be||me<De||(we.current.scrollTop=yt-Be/2-Ie/2)},[o]);const Ae=D.getYearRange([b,m]);return C==="desc"&&Ae.reverse(),g.jsx(EX,se({ref:Ce,className:ge(K.root,i),ownerState:j,role:"radiogroup","aria-labelledby":N},M,{children:Ae.map(Me=>{const Ie=D.getYear(Me),me=Ie===Y,Be=u||ce(Me);return g.jsx(wX,{selected:me,value:Ie,onClick:ne,onKeyDown:X,autoFocus:pe&&Ie===fe,disabled:Be,tabIndex:Ie===fe&&!Be?0:-1,onFocus:ee,onBlur:ie,"aria-current":U===Ie?"date":void 0,yearsPerRow:O,slots:L,slotProps:V,children:D.format(Me,"year")},D.format(Me,"year"))})}))});process.env.NODE_ENV!=="production"&&(b2.propTypes={autoFocus:c.bool,classes:c.object,className:c.string,defaultValue:c.object,disabled:c.bool,disableFuture:c.bool,disableHighlightToday:c.bool,disablePast:c.bool,gridLabelId:c.string,hasFocus:c.bool,maxDate:c.object,minDate:c.object,onChange:c.func,onFocusedViewChange:c.func,onYearFocus:c.func,readOnly:c.bool,referenceDate:c.object,shouldDisableYear:c.func,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,value:c.object,yearsOrder:c.oneOf(["asc","desc"]),yearsPerRow:c.oneOf([3,4])});const OX=t=>Ke("MuiPickersCalendarHeader",t),MX=je("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function _X(t){return Ke("MuiPickersArrowSwitcher",t)}je("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const IX=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],DX=["ownerState"],AX=["ownerState"],PX=oe("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex"}),NX=oe("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(t,e)=>e.spacer})(({theme:t})=>({width:t.spacing(3)})),v2=oe(_l,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(t,e)=>e.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),$X=t=>{const{classes:e}=t;return qe({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},_X,e)},LX=A.forwardRef(function(e,n){const r=Ei(),o=rt({props:e,name:"MuiPickersArrowSwitcher"}),{children:i,className:s,slots:a,slotProps:l,isNextDisabled:u,isNextHidden:f,onGoToNext:p,nextLabel:m,isPreviousDisabled:b,isPreviousHidden:v,onGoToPrevious:y,previousLabel:x,labelId:S}=o,k=at(o,IX),T=o,C=$X(T),O={isDisabled:u,isHidden:f,goTo:p,label:m},I={isDisabled:b,isHidden:v,goTo:y,label:x},N=(a==null?void 0:a.previousIconButton)??v2,L=Mt({elementType:N,externalSlotProps:l==null?void 0:l.previousIconButton,additionalProps:{size:"medium",title:I.label,"aria-label":I.label,disabled:I.isDisabled,edge:"end",onClick:I.goTo},ownerState:se({},T,{hidden:I.isHidden}),className:ge(C.button,C.previousIconButton)}),V=(a==null?void 0:a.nextIconButton)??v2,M=Mt({elementType:V,externalSlotProps:l==null?void 0:l.nextIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"start",onClick:O.goTo},ownerState:se({},T,{hidden:O.isHidden}),className:ge(C.button,C.nextIconButton)}),B=(a==null?void 0:a.leftArrowIcon)??SK,H=Mt({elementType:B,externalSlotProps:l==null?void 0:l.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:T,className:C.leftArrowIcon}),F=at(H,DX),P=(a==null?void 0:a.rightArrowIcon)??CK,_=Mt({elementType:P,externalSlotProps:l==null?void 0:l.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:T,className:C.rightArrowIcon}),D=at(_,AX);return g.jsxs(PX,se({ref:n,className:ge(C.root,s),ownerState:T},k,{children:[g.jsx(N,se({},L,{children:r?g.jsx(P,se({},D)):g.jsx(B,se({},F))})),i?g.jsx(ko,{variant:"subtitle1",component:"span",id:S,children:i}):g.jsx(NX,{className:C.spacer,ownerState:T}),g.jsx(V,se({},M,{children:r?g.jsx(B,se({},F)):g.jsx(P,se({},D))}))]}))});function BX(t,{disableFuture:e,maxDate:n,timezone:r}){const o=qt();return A.useMemo(()=>{const i=o.date(void 0,r),s=o.startOfMonth(e&&o.isBefore(i,n)?i:n);return!o.isAfter(s,t)},[e,n,t,o,r])}function FX(t,{disablePast:e,minDate:n,timezone:r}){const o=qt();return A.useMemo(()=>{const i=o.date(void 0,r),s=o.startOfMonth(e&&o.isAfter(i,n)?i:n);return!o.isBefore(s,t)},[e,n,t,o,r])}const RX=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],zX=["ownerState"],VX=t=>{const{classes:e}=t;return qe({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},OX,e)},HX=oe("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),WX=oe("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(t,e)=>e.labelContainer})(({theme:t})=>se({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},t.typography.body1,{fontWeight:t.typography.fontWeightMedium})),jX=oe("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(t,e)=>e.label})({marginRight:6}),UX=oe(_l,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(t,e)=>e.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${MX.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),qX=oe(wK,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(t,e)=>e.switchViewIcon})(({theme:t})=>({willChange:"transform",transition:t.transitions.create("transform"),transform:"rotate(0deg)"})),x2=A.forwardRef(function(e,n){const r=Oi(),o=qt(),i=rt({props:e,name:"MuiPickersCalendarHeader"}),{slots:s,slotProps:a,currentMonth:l,disabled:u,disableFuture:f,disablePast:p,maxDate:m,minDate:b,onMonthChange:v,onViewChange:y,view:x,reduceAnimations:S,views:k,labelId:T,className:C,timezone:O,format:I=`${o.formats.month} ${o.formats.year}`}=i,N=at(i,RX),L=i,V=VX(i),M=(s==null?void 0:s.switchViewButton)??UX,B=Mt({elementType:M,externalSlotProps:a==null?void 0:a.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(x)},ownerState:L,className:V.switchViewButton}),H=(s==null?void 0:s.switchViewIcon)??qX,F=Mt({elementType:H,externalSlotProps:a==null?void 0:a.switchViewIcon,ownerState:L,className:V.switchViewIcon}),P=at(F,zX),_=()=>v(o.addMonths(l,1),"left"),D=()=>v(o.addMonths(l,-1),"right"),R=BX(l,{disableFuture:f,maxDate:m,timezone:O}),j=FX(l,{disablePast:p,minDate:b,timezone:O}),K=()=>{if(!(k.length===1||!y||u))if(k.length===2)y(k.find(Y=>Y!==x)||k[0]);else{const Y=k.indexOf(x)!==0?0:1;y(k[Y])}};if(k.length===1&&k[0]==="year")return null;const U=o.formatByString(l,I);return g.jsxs(HX,se({},N,{ownerState:L,className:ge(V.root,C),ref:n,children:[g.jsxs(WX,{role:"presentation",onClick:K,ownerState:L,"aria-live":"polite",className:V.labelContainer,children:[g.jsx(f2,{reduceAnimations:S,transKey:U,children:g.jsx(jX,{id:T,ownerState:L,className:V.label,children:U})}),k.length>1&&!u&&g.jsx(M,se({},B,{children:g.jsx(H,se({},P))}))]}),g.jsx(Ho,{in:x==="day",appear:!S,enter:!S,children:g.jsx(LX,{slots:s,slotProps:a,onGoToPrevious:D,isPreviousDisabled:j,previousLabel:r.previousMonth,onGoToNext:_,isNextDisabled:R,nextLabel:r.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(x2.propTypes={classes:c.object,className:c.string,currentMonth:c.object.isRequired,disabled:c.bool,disableFuture:c.bool,disablePast:c.bool,format:c.string,labelId:c.string,maxDate:c.object.isRequired,minDate:c.object.isRequired,onMonthChange:c.func.isRequired,onViewChange:c.func,reduceAnimations:c.bool.isRequired,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string.isRequired,view:c.oneOf(["day","month","year"]).isRequired,views:c.arrayOf(c.oneOf(["day","month","year"]).isRequired).isRequired});const KX=oe("div")({overflow:"hidden",width:zp,maxHeight:B0,display:"flex",flexDirection:"column",margin:"0 auto"}),YX=t=>Ke("MuiDateCalendar",t);je("MuiDateCalendar",["root","viewTransitionContainer"]);const GX=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],JX=t=>{const{classes:e}=t;return qe({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},YX,e)};function XX(t,e){const n=qt(),r=yu(),o=t2(),i=rt({props:t,name:e});return se({},i,{loading:i.loading??!1,disablePast:i.disablePast??!1,disableFuture:i.disableFuture??!1,openTo:i.openTo??"day",views:i.views??["year","day"],reduceAnimations:i.reduceAnimations??o,renderLoading:i.renderLoading??(()=>g.jsx("span",{children:"..."})),minDate:ro(n,i.minDate,r.minDate),maxDate:ro(n,i.maxDate,r.maxDate)})}const ZX=oe(KX,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexDirection:"column",height:B0}),QX=oe(f2,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(t,e)=>e.viewTransitionContainer})({}),w2=A.forwardRef(function(e,n){const r=qt(),o=vo(),i=XX(e,"MuiDateCalendar"),{autoFocus:s,onViewChange:a,value:l,defaultValue:u,referenceDate:f,disableFuture:p,disablePast:m,onChange:b,onYearChange:v,onMonthChange:y,reduceAnimations:x,shouldDisableDate:S,shouldDisableMonth:k,shouldDisableYear:T,view:C,views:O,openTo:I,className:N,disabled:L,readOnly:V,minDate:M,maxDate:B,disableHighlightToday:H,focusedView:F,onFocusedViewChange:P,showDaysOutsideCurrentMonth:_,fixedWeekNumber:D,dayOfWeekFormatter:R,slots:j,slotProps:K,loading:U,renderLoading:Y,displayWeekNumber:fe,yearsOrder:ue,yearsPerRow:pe,monthsPerRow:Z,timezone:te}=i,ce=at(i,GX),{value:ne,handleValueChange:re,timezone:le}=M0({name:"DateCalendar",timezone:te,value:l,defaultValue:u,referenceDate:f,onChange:b,valueManager:Jo}),{view:ye,setView:X,focusedView:ee,setFocusedView:ie,goToNextView:we,setValueAndGoToNextView:Ce}=n2({view:C,views:O,openTo:I,onChange:re,onViewChange:a,autoFocus:s,focusedView:F,onFocusedViewChange:P}),{referenceDate:Ae,calendarState:Me,changeFocusedDay:Ie,changeMonth:me,handleChangeMonth:Be,isDateDisabled:De,onMonthSwitchingAnimationEnd:yt}=_J({value:ne,referenceDate:f,reduceAnimations:x,onMonthChange:y,minDate:M,maxDate:B,shouldDisableDate:S,disablePast:m,disableFuture:p,timezone:le}),ct=L&&ne||M,wn=L&&ne||B,Pn=`${o}-grid-label`,on=ee!==null,gn=(j==null?void 0:j.calendarHeader)??x2,Sn=Mt({elementType:gn,externalSlotProps:K==null?void 0:K.calendarHeader,additionalProps:{views:O,view:ye,currentMonth:Me.currentMonth,onViewChange:X,onMonthChange:(Qe,Pt)=>Be({newMonth:Qe,direction:Pt}),minDate:ct,maxDate:wn,disabled:L,disablePast:m,disableFuture:p,reduceAnimations:x,timezone:le,labelId:Pn},ownerState:i}),Jn=ze(Qe=>{const Pt=r.startOfMonth(Qe),Xn=r.endOfMonth(Qe),ir=De(Qe)?hu({utils:r,date:Qe,minDate:r.isBefore(M,Pt)?Pt:M,maxDate:r.isAfter(B,Xn)?Xn:B,disablePast:m,disableFuture:p,isDateDisabled:De,timezone:le}):Qe;ir?(Ce(ir,"finish"),y==null||y(Pt)):(we(),me(Pt)),Ie(ir,!0)}),ot=ze(Qe=>{const Pt=r.startOfYear(Qe),Xn=r.endOfYear(Qe),ir=De(Qe)?hu({utils:r,date:Qe,minDate:r.isBefore(M,Pt)?Pt:M,maxDate:r.isAfter(B,Xn)?Xn:B,disablePast:m,disableFuture:p,isDateDisabled:De,timezone:le}):Qe;ir?(Ce(ir,"finish"),v==null||v(ir)):(we(),me(Pt)),Ie(ir,!0)}),Mn=ze(Qe=>re(Qe&&wp(r,Qe,ne??Ae),"finish",ye));A.useEffect(()=>{ne!=null&&r.isValid(ne)&&me(ne)},[ne]);const Zt=i,be=JX(Zt),Ve={disablePast:m,disableFuture:p,maxDate:B,minDate:M},Ee={disableHighlightToday:H,readOnly:V,disabled:L,timezone:le,gridLabelId:Pn,slots:j,slotProps:K},He=A.useRef(ye);A.useEffect(()=>{He.current!==ye&&(ee===He.current&&ie(ye,!0),He.current=ye)},[ee,ie,ye]);const Ye=A.useMemo(()=>[ne],[ne]);return g.jsxs(ZX,se({ref:n,className:ge(be.root,N),ownerState:Zt},ce,{children:[g.jsx(gn,se({},Sn,{slots:j,slotProps:K})),g.jsx(QX,{reduceAnimations:x,className:be.viewTransitionContainer,transKey:ye,ownerState:Zt,children:g.jsxs("div",{children:[ye==="year"&&g.jsx(b2,se({},Ve,Ee,{value:ne,onChange:ot,shouldDisableYear:T,hasFocus:on,onFocusedViewChange:Qe=>ie("year",Qe),yearsOrder:ue,yearsPerRow:pe,referenceDate:Ae})),ye==="month"&&g.jsx(y2,se({},Ve,Ee,{hasFocus:on,className:N,value:ne,onChange:Jn,shouldDisableMonth:k,onFocusedViewChange:Qe=>ie("month",Qe),monthsPerRow:Z,referenceDate:Ae})),ye==="day"&&g.jsx(oX,se({},Me,Ve,Ee,{onMonthSwitchingAnimationEnd:yt,onFocusedDayChange:Ie,reduceAnimations:x,selectedDays:Ye,onSelectedDaysChange:Mn,shouldDisableDate:S,shouldDisableMonth:k,shouldDisableYear:T,hasFocus:on,onFocusedViewChange:Qe=>ie("day",Qe),showDaysOutsideCurrentMonth:_,fixedWeekNumber:D,dayOfWeekFormatter:R,displayWeekNumber:fe,loading:U,renderLoading:Y}))]})})]}))});process.env.NODE_ENV!=="production"&&(w2.propTypes={autoFocus:c.bool,classes:c.object,className:c.string,dayOfWeekFormatter:c.func,defaultValue:c.object,disabled:c.bool,disableFuture:c.bool,disableHighlightToday:c.bool,disablePast:c.bool,displayWeekNumber:c.bool,fixedWeekNumber:c.number,focusedView:c.oneOf(["day","month","year"]),loading:c.bool,maxDate:c.object,minDate:c.object,monthsPerRow:c.oneOf([3,4]),onChange:c.func,onFocusedViewChange:c.func,onMonthChange:c.func,onViewChange:c.func,onYearChange:c.func,openTo:c.oneOf(["day","month","year"]),readOnly:c.bool,reduceAnimations:c.bool,referenceDate:c.object,renderLoading:c.func,shouldDisableDate:c.func,shouldDisableMonth:c.func,shouldDisableYear:c.func,showDaysOutsideCurrentMonth:c.bool,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,value:c.object,view:c.oneOf(["day","month","year"]),views:c.arrayOf(c.oneOf(["day","month","year"]).isRequired),yearsOrder:c.oneOf(["asc","desc"]),yearsPerRow:c.oneOf([3,4])});const Nl=({view:t,onViewChange:e,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:s,referenceDate:a,onChange:l,className:u,classes:f,disableFuture:p,disablePast:m,minDate:b,maxDate:v,shouldDisableDate:y,shouldDisableMonth:x,shouldDisableYear:S,reduceAnimations:k,onMonthChange:T,monthsPerRow:C,onYearChange:O,yearsOrder:I,yearsPerRow:N,slots:L,slotProps:V,loading:M,renderLoading:B,disableHighlightToday:H,readOnly:F,disabled:P,showDaysOutsideCurrentMonth:_,dayOfWeekFormatter:D,sx:R,autoFocus:j,fixedWeekNumber:K,displayWeekNumber:U,timezone:Y})=>g.jsx(w2,{view:t,onViewChange:e,views:n.filter(l_),focusedView:r&&l_(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:s,referenceDate:a,onChange:l,className:u,classes:f,disableFuture:p,disablePast:m,minDate:b,maxDate:v,shouldDisableDate:y,shouldDisableMonth:x,shouldDisableYear:S,reduceAnimations:k,onMonthChange:T,monthsPerRow:C,onYearChange:O,yearsOrder:I,yearsPerRow:N,slots:L,slotProps:V,loading:M,renderLoading:B,disableHighlightToday:H,readOnly:F,disabled:P,showDaysOutsideCurrentMonth:_,dayOfWeekFormatter:D,sx:R,autoFocus:j,fixedWeekNumber:K,displayWeekNumber:U,timezone:Y}),S2=A.forwardRef(function(e,n){var u,f;const r=Oi(),o=qt(),i=Z_(e,"MuiDesktopDatePicker"),s=se({day:Nl,month:Nl,year:Nl},i.viewRenderers),a=se({},i,{viewRenderers:s,format:S0(o,i,!1),yearsPerRow:i.yearsPerRow??4,slots:se({openPickerIcon:TK,field:Fp},i.slots),slotProps:se({},i.slotProps,{field:p=>{var m;return se({},sd((m=i.slotProps)==null?void 0:m.field,p),S_(i),{ref:n})},toolbar:se({hidden:!0},(u=i.slotProps)==null?void 0:u.toolbar)})}),{renderPicker:l}=OJ({props:a,valueManager:Jo,valueType:"date",getOpenDialogAriaText:C_({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(f=a.localeText)==null?void 0:f.openDatePickerDialogue}),validator:gu});return l()});S2.propTypes={autoFocus:c.bool,className:c.string,closeOnSelect:c.bool,dayOfWeekFormatter:c.func,defaultValue:c.object,disabled:c.bool,disableFuture:c.bool,disableHighlightToday:c.bool,disableOpenPicker:c.bool,disablePast:c.bool,displayWeekNumber:c.bool,enableAccessibleFieldDOMStructure:c.any,fixedWeekNumber:c.number,format:c.string,formatDensity:c.oneOf(["dense","spacious"]),inputRef:kn,label:c.node,loading:c.bool,localeText:c.object,maxDate:c.object,minDate:c.object,monthsPerRow:c.oneOf([3,4]),name:c.string,onAccept:c.func,onChange:c.func,onClose:c.func,onError:c.func,onMonthChange:c.func,onOpen:c.func,onSelectedSectionsChange:c.func,onViewChange:c.func,onYearChange:c.func,open:c.bool,openTo:c.oneOf(["day","month","year"]),orientation:c.oneOf(["landscape","portrait"]),readOnly:c.bool,reduceAnimations:c.bool,referenceDate:c.object,renderLoading:c.func,selectedSections:c.oneOfType([c.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),c.number]),shouldDisableDate:c.func,shouldDisableMonth:c.func,shouldDisableYear:c.func,showDaysOutsideCurrentMonth:c.bool,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,value:c.object,view:c.oneOf(["day","month","year"]),viewRenderers:c.shape({day:c.func,month:c.func,year:c.func}),views:c.arrayOf(c.oneOf(["day","month","year"]).isRequired),yearsOrder:c.oneOf(["asc","desc"]),yearsPerRow:c.oneOf([3,4])};function eZ(t){return Ke("MuiDialogContent",t)}je("MuiDialogContent",["root","dividers"]);const tZ=je("MuiDialogTitle",["root"]),nZ=t=>{const{classes:e,dividers:n}=t;return qe({root:["root",n&&"dividers"]},eZ,e)},rZ=oe("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.dividers&&e.dividers]}})(bt(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${tZ.root} + &`]:{paddingTop:0}}}]}))),C2=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiDialogContent"}),{className:o,dividers:i=!1,...s}=r,a={...r,dividers:i},l=nZ(a);return g.jsx(rZ,{className:ge(l.root,o),ownerState:a,ref:n,...s})});process.env.NODE_ENV!=="production"&&(C2.propTypes={children:c.node,classes:c.object,className:c.string,dividers:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function oZ(t){return Ke("MuiDialog",t)}const ku=je("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),T2=A.createContext({});process.env.NODE_ENV!=="production"&&(T2.displayName="DialogContext");const iZ=oe(Dy,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),sZ=t=>{const{classes:e,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=t,s={root:["root"],container:["container",`scroll${Ne(n)}`],paper:["paper",`paperScroll${Ne(n)}`,`paperWidth${Ne(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return qe(s,oZ,e)},aZ=oe(Ay,{name:"MuiDialog",slot:"Root",overridesResolver:(t,e)=>e.root})({"@media print":{position:"absolute !important"}}),lZ=oe("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.container,e[`scroll${Ne(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),cZ=oe(fs,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.paper,e[`scrollPaper${Ne(n.scroll)}`],e[`paperWidth${Ne(String(n.maxWidth))}`],n.fullWidth&&e.paperFullWidth,n.fullScreen&&e.paperFullScreen]}})(bt(({theme:t})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${ku.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(e=>e!=="xs").map(e=>({props:{maxWidth:e},style:{maxWidth:`${t.breakpoints.values[e]}${t.breakpoints.unit}`,[`&.${ku.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${ku.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),k2=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiDialog"}),o=wo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,"aria-modal":l=!0,BackdropComponent:u,BackdropProps:f,children:p,className:m,disableEscapeKeyDown:b=!1,fullScreen:v=!1,fullWidth:y=!1,maxWidth:x="sm",onBackdropClick:S,onClick:k,onClose:T,open:C,PaperComponent:O=fs,PaperProps:I={},scroll:N="paper",slots:L={},slotProps:V={},TransitionComponent:M=Ho,transitionDuration:B=i,TransitionProps:H,...F}=r,P={...r,disableEscapeKeyDown:b,fullScreen:v,fullWidth:y,maxWidth:x,scroll:N},_=sZ(P),D=A.useRef(),R=ie=>{D.current=ie.target===ie.currentTarget},j=ie=>{k&&k(ie),D.current&&(D.current=null,S&&S(ie),T&&T(ie,"backdropClick"))},K=vo(a),U=A.useMemo(()=>({titleId:K}),[K]),Y={transition:M,...L},fe={transition:H,paper:I,backdrop:f,...V},ue={slots:Y,slotProps:fe},[pe,Z]=_t("root",{elementType:aZ,shouldForwardComponentProp:!0,externalForwardedProps:ue,ownerState:P,className:ge(_.root,m),ref:n}),[te,ce]=_t("backdrop",{elementType:iZ,shouldForwardComponentProp:!0,externalForwardedProps:ue,ownerState:P}),[ne,re]=_t("paper",{elementType:cZ,shouldForwardComponentProp:!0,externalForwardedProps:ue,ownerState:P,className:ge(_.paper,I.className)}),[le,ye]=_t("container",{elementType:lZ,externalForwardedProps:ue,ownerState:P,className:ge(_.container)}),[X,ee]=_t("transition",{elementType:Ho,externalForwardedProps:ue,ownerState:P,additionalProps:{appear:!0,in:C,timeout:B,role:"presentation"}});return g.jsx(pe,{closeAfterTransition:!0,slots:{backdrop:te},slotProps:{backdrop:{transitionDuration:B,as:u,...ce}},disableEscapeKeyDown:b,onClose:T,open:C,onClick:j,...Z,...F,children:g.jsx(X,{...ee,children:g.jsx(le,{onMouseDown:R,...ye,children:g.jsx(ne,{as:O,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":K,"aria-modal":l,...re,children:g.jsx(T2.Provider,{value:U,children:p})})})})})});process.env.NODE_ENV!=="production"&&(k2.propTypes={"aria-describedby":c.string,"aria-labelledby":c.string,"aria-modal":c.oneOfType([c.oneOf(["false","true"]),c.bool]),BackdropComponent:c.elementType,BackdropProps:c.object,children:c.node,classes:c.object,className:c.string,disableEscapeKeyDown:c.bool,fullScreen:c.bool,fullWidth:c.bool,maxWidth:c.oneOfType([c.oneOf(["xs","sm","md","lg","xl",!1]),c.string]),onBackdropClick:c.func,onClick:c.func,onClose:c.func,open:c.bool.isRequired,PaperComponent:c.elementType,PaperProps:c.object,scroll:c.oneOf(["body","paper"]),slotProps:c.shape({backdrop:c.oneOfType([c.func,c.object]),container:c.oneOfType([c.func,c.object]),paper:c.oneOfType([c.func,c.object]),root:c.oneOfType([c.func,c.object]),transition:c.oneOfType([c.func,c.object])}),slots:c.shape({backdrop:c.elementType,container:c.elementType,paper:c.elementType,root:c.elementType,transition:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),TransitionComponent:c.elementType,transitionDuration:c.oneOfType([c.number,c.shape({appear:c.number,enter:c.number,exit:c.number})]),TransitionProps:c.object});const uZ=oe(k2)({[`& .${ku.container}`]:{outline:0},[`& .${ku.paper}`]:{outline:0,minWidth:zp}}),dZ=oe(C2)({"&:first-of-type":{padding:0}});function fZ(t){const{children:e,onDismiss:n,open:r,slots:o,slotProps:i}=t,s=(o==null?void 0:o.dialog)??uZ,a=(o==null?void 0:o.mobileTransition)??Ho;return g.jsx(s,se({open:r,onClose:n},i==null?void 0:i.dialog,{TransitionComponent:a,TransitionProps:i==null?void 0:i.mobileTransition,PaperComponent:o==null?void 0:o.mobilePaper,PaperProps:i==null?void 0:i.mobilePaper,children:g.jsx(dZ,{children:e})}))}const pZ=["props","getOpenDialogAriaText"],hZ=t=>{var Y;let{props:e,getOpenDialogAriaText:n}=t,r=at(t,pZ);const{slots:o,slotProps:i,className:s,sx:a,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:m,timezone:b,name:v,label:y,inputRef:x,readOnly:S,disabled:k,localeText:T}=e,C=A.useRef(null),O=vo(),I=((Y=i==null?void 0:i.toolbar)==null?void 0:Y.hidden)??!1,{open:N,actions:L,layoutProps:V,renderCurrentView:M,fieldProps:B,contextValue:H}=o2(se({},r,{props:e,fieldRef:C,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),F=o.field,P=Mt({elementType:F,externalSlotProps:i==null?void 0:i.field,additionalProps:se({},B,I&&{id:O},!(k||S)&&{onClick:L.onOpen,onKeyDown:aK(L.onOpen)},{readOnly:S??!0,disabled:k,className:s,sx:a,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:m,timezone:b,label:y,name:v},x?{inputRef:x}:{}),ownerState:e});P.inputProps=se({},P.inputProps,{"aria-label":n(B.value)});const _=se({textField:o.textField},P.slots),D=o.layout??F0;let R=O;I&&(y?R=`${O}-label`:R=void 0);const j=se({},i,{toolbar:se({},i==null?void 0:i.toolbar,{titleId:O}),mobilePaper:se({"aria-labelledby":R},i==null?void 0:i.mobilePaper)}),K=Ot(C,P.unstableFieldRef);return{renderPicker:()=>g.jsxs(I_,{contextValue:H,localeText:T,children:[g.jsx(F,se({},P,{slots:_,slotProps:j,unstableFieldRef:K})),g.jsx(fZ,se({},L,{open:N,slots:o,slotProps:j,children:g.jsx(D,se({},V,j==null?void 0:j.layout,{slots:o,slotProps:j,children:M()}))}))]})}},E2=A.forwardRef(function(e,n){var u,f;const r=Oi(),o=qt(),i=Z_(e,"MuiMobileDatePicker"),s=se({day:Nl,month:Nl,year:Nl},i.viewRenderers),a=se({},i,{viewRenderers:s,format:S0(o,i,!1),slots:se({field:Fp},i.slots),slotProps:se({},i.slotProps,{field:p=>{var m;return se({},sd((m=i.slotProps)==null?void 0:m.field,p),S_(i),{ref:n})},toolbar:se({hidden:!1},(u=i.slotProps)==null?void 0:u.toolbar)})}),{renderPicker:l}=hZ({props:a,valueManager:Jo,valueType:"date",getOpenDialogAriaText:C_({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(f=a.localeText)==null?void 0:f.openDatePickerDialogue}),validator:gu});return l()});E2.propTypes={autoFocus:c.bool,className:c.string,closeOnSelect:c.bool,dayOfWeekFormatter:c.func,defaultValue:c.object,disabled:c.bool,disableFuture:c.bool,disableHighlightToday:c.bool,disableOpenPicker:c.bool,disablePast:c.bool,displayWeekNumber:c.bool,enableAccessibleFieldDOMStructure:c.any,fixedWeekNumber:c.number,format:c.string,formatDensity:c.oneOf(["dense","spacious"]),inputRef:kn,label:c.node,loading:c.bool,localeText:c.object,maxDate:c.object,minDate:c.object,monthsPerRow:c.oneOf([3,4]),name:c.string,onAccept:c.func,onChange:c.func,onClose:c.func,onError:c.func,onMonthChange:c.func,onOpen:c.func,onSelectedSectionsChange:c.func,onViewChange:c.func,onYearChange:c.func,open:c.bool,openTo:c.oneOf(["day","month","year"]),orientation:c.oneOf(["landscape","portrait"]),readOnly:c.bool,reduceAnimations:c.bool,referenceDate:c.object,renderLoading:c.func,selectedSections:c.oneOfType([c.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),c.number]),shouldDisableDate:c.func,shouldDisableMonth:c.func,shouldDisableYear:c.func,showDaysOutsideCurrentMonth:c.bool,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,value:c.object,view:c.oneOf(["day","month","year"]),viewRenderers:c.shape({day:c.func,month:c.func,year:c.func}),views:c.arrayOf(c.oneOf(["day","month","year"]).isRequired),yearsOrder:c.oneOf(["asc","desc"]),yearsPerRow:c.oneOf([3,4])};const mZ=["desktopModeMediaQuery"],O2=A.forwardRef(function(e,n){const r=rt({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=lK}=r,i=at(r,mZ);return J_(o,{defaultMatches:!0})?g.jsx(S2,se({ref:n},i)):g.jsx(E2,se({ref:n},i))});process.env.NODE_ENV!=="production"&&(O2.propTypes={autoFocus:c.bool,className:c.string,closeOnSelect:c.bool,dayOfWeekFormatter:c.func,defaultValue:c.object,desktopModeMediaQuery:c.string,disabled:c.bool,disableFuture:c.bool,disableHighlightToday:c.bool,disableOpenPicker:c.bool,disablePast:c.bool,displayWeekNumber:c.bool,enableAccessibleFieldDOMStructure:c.any,fixedWeekNumber:c.number,format:c.string,formatDensity:c.oneOf(["dense","spacious"]),inputRef:kn,label:c.node,loading:c.bool,localeText:c.object,maxDate:c.object,minDate:c.object,monthsPerRow:c.oneOf([3,4]),name:c.string,onAccept:c.func,onChange:c.func,onClose:c.func,onError:c.func,onMonthChange:c.func,onOpen:c.func,onSelectedSectionsChange:c.func,onViewChange:c.func,onYearChange:c.func,open:c.bool,openTo:c.oneOf(["day","month","year"]),orientation:c.oneOf(["landscape","portrait"]),readOnly:c.bool,reduceAnimations:c.bool,referenceDate:c.object,renderLoading:c.func,selectedSections:c.oneOfType([c.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),c.number]),shouldDisableDate:c.func,shouldDisableMonth:c.func,shouldDisableYear:c.func,showDaysOutsideCurrentMonth:c.bool,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,value:c.object,view:c.oneOf(["day","month","year"]),viewRenderers:c.shape({day:c.func,month:c.func,year:c.func}),views:c.arrayOf(c.oneOf(["day","month","year"]).isRequired),yearsOrder:c.oneOf(["asc","desc"]),yearsPerRow:c.oneOf([3,4])});var Wp={exports:{}},gZ=Wp.exports,M2;function yZ(){return M2||(M2=1,(function(t,e){(function(n,r){t.exports=r()})(gZ,(function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(i,s,a){var l=s.prototype;a.utc=function(y){var x={date:y,utc:!0,args:arguments};return new s(x)},l.utc=function(y){var x=a(this.toDate(),{locale:this.$L,utc:!0});return y?x.add(this.utcOffset(),n):x},l.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var u=l.parse;l.parse=function(y){y.utc&&(this.$u=!0),this.$utils().u(y.$offset)||(this.$offset=y.$offset),u.call(this,y)};var f=l.init;l.init=function(){if(this.$u){var y=this.$d;this.$y=y.getUTCFullYear(),this.$M=y.getUTCMonth(),this.$D=y.getUTCDate(),this.$W=y.getUTCDay(),this.$H=y.getUTCHours(),this.$m=y.getUTCMinutes(),this.$s=y.getUTCSeconds(),this.$ms=y.getUTCMilliseconds()}else f.call(this)};var p=l.utcOffset;l.utcOffset=function(y,x){var S=this.$utils().u;if(S(y))return this.$u?0:S(this.$offset)?p.call(this):this.$offset;if(typeof y=="string"&&(y=(function(O){O===void 0&&(O="");var I=O.match(r);if(!I)return null;var N=(""+I[0]).match(o)||["-",0,0],L=N[0],V=60*+N[1]+ +N[2];return V===0?0:L==="+"?V:-V})(y),y===null))return this;var k=Math.abs(y)<=16?60*y:y;if(k===0)return this.utc(x);var T=this.clone();if(x)return T.$offset=k,T.$u=!1,T;var C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(T=this.local().add(k+C,n)).$offset=k,T.$x.$localOffset=C,T};var m=l.format;l.format=function(y){var x=y||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,x)},l.valueOf=function(){var y=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*y},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var b=l.toDate;l.toDate=function(y){return y==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():b.call(this)};var v=l.diff;l.diff=function(y,x,S){if(y&&this.$u===y.$u)return v.call(this,y,x,S);var k=this.local(),T=a(y).local();return v.call(k,T,x,S)}}}))})(Wp)),Wp.exports}var bZ=yZ();const vZ=Un(bZ);rn.extend(vZ),rn.extend(e_);const _2=t=>{if(!t)return null;const e=rn.utc(t);return e&&e.isValid()?rn(e):null},jp=t=>{const e=t==null?void 0:t.utc();return!e||!e.isValid()?"":e.toISOString()},xZ=t=>{const e=rn(wZ(t),["D MMM YYYY","D MMMM YYYY","DD MMM YYYY","DD MMMM YYYY","YYYY-MM-DD","MM-DD-YYYY","YYYY/MM/DD","MM/DD/YYYY"],!0);return jp(e)},wZ=t=>t.toLowerCase().replace(/\b\w/g,e=>e.toUpperCase()),SZ={invalidDate:"Date selected is invalid",minDate:"Date selected is too far in the past",maxDate:"Date selected is too far in the future",disableFuture:"Date selected cannot be in the future",disablePast:"Date selected cannot be in the past"},Up=t=>{const{name:e,label:n=Ln(e),required:r=!1,readOnly:o=!1,format:i="MM/DD/YYYY",errorMessages:s,isDatePicker:a=!1,margin:l="dense",staticLabel:u=!1,staticLabelProps:f={fontSize:".9em",color:"#808080"},errorMode:p="normal"}=t,[m,b,v]=Ht.useField({name:e}),{setValue:y,setError:x}=v,{value:S}=m,{error:k}=b,[T,C]=A.useState(_2(S)),[O,I]=A.useState(null),N={...SZ,...s},L=["staticLabel","staticLabelProps","label","errorMessages","isDatePicker","dateFieldProps","datePickerProps","onChange","errorMode"],V=(B,H)=>jp(B)!==H;A.useEffect(()=>{V(T,S)&&y(jp(T))},[T]),A.useEffect(()=>{V(T,S)&&C(_2(S))},[S]),A.useEffect(()=>{const B=O?N[O]??O:"";x(B)},[O]);const M={label:u?void 0:n,format:i,onError:I,value:T,onChange:(B,H)=>{var F;C(B?B.utc():null),(F=t.onChange)==null||F.call(t,jp(B),H)},...lr({...t},L)};return o?g.jsx(Ti,{label:n,value:T!=null&&T.isValid()?T.format(i):"",staticLabel:u,staticLabelProps:f}):g.jsxs(z.FormControl,{fullWidth:!0,margin:l,children:[(u||o)&&g.jsx(z.Typography,{...f,children:n}),g.jsxs(z.Box,{children:[g.jsx(v0,{dateAdapter:bq,children:g.jsx(z.Box,{children:a?g.jsx(O2,{...M,slotProps:{textField:{fullWidth:!0,error:!!k,required:!!r}}}):g.jsx(Fp,{id:`${e}-df`,...M,fullWidth:!0,slotProps:{textField:{error:!!k}}})})}),g.jsx(yr,{name:e,id:`${e}-err`,errorMode:p})]})]})},CZ=t=>{const{nameTo:e,nameFrom:n,labelTo:r=Ln(e),labelFrom:o=Ln(n),fromFieldProps:i,toFieldProps:s,staticLabels:a=!1}=t,l=["nameTo","nameFrom","toFieldProps","fromFieldProps","labelTo","labelFrom"],u=z.useMediaQuery(z.useTheme().breakpoints.down("sm"));return g.jsxs("div",{style:{display:"flex",flexDirection:u?"column":"row",justifyContent:"space-between",gap:"10px"},children:[g.jsx(Up,{name:n,staticLabel:a,label:o,...lr({...t,...i},l)}),g.jsx(Up,{name:e,staticLabel:a,label:r,...lr({...t,...s},l)})]})},TZ=t=>{const{onUploadFiles:e}=t,n=z.useTheme();return g.jsxs(jf,{children:[g.jsx(pj,{options:[{label:"Monospace",value:"monospace"},{label:"Serif",value:"serif"}]}),g.jsx(An,{}),g.jsx(Ej,{}),g.jsx(An,{}),g.jsx(bj,{}),g.jsx(An,{}),g.jsx(SE,{}),g.jsx(DE,{}),g.jsx(NE,{}),g.jsx(z6,{}),g.jsx(H6,{}),g.jsx(j6,{}),g.jsx(An,{}),g.jsx(K6,{defaultTextColor:n.palette.text.primary,swatchColors:[{value:"#000000",label:"Black"},{value:"#ffffff",label:"White"},{value:"#888888",label:"Grey"},{value:"#ff0000",label:"Red"},{value:"#ff9900",label:"Orange"},{value:"#ffff00",label:"Yellow"},{value:"#00d000",label:"Green"},{value:"#0000ff",label:"Blue"}]}),g.jsx(y6,{swatchColors:[{value:"#595959",label:"Dark grey"},{value:"#dddddd",label:"Light grey"},{value:"#ffa6a6",label:"Light red"},{value:"#ffd699",label:"Light orange"},{value:"#ffff00",label:"Yellow"},{value:"#99cc99",label:"Light green"},{value:"#90c6ff",label:"Light blue"},{value:"#8085e9",label:"Light purple"}]}),g.jsx(An,{}),g.jsx(g6,{}),g.jsx(An,{}),g.jsx(Ij,{}),g.jsx(An,{}),g.jsx(AE,{}),g.jsx(CE,{}),g.jsx(q6,{}),AW()&&g.jsxs(g.Fragment,{children:[g.jsx(P6,{}),g.jsx(X6,{})]}),g.jsx(An,{}),g.jsx(l6,{}),g.jsx(An,{}),g.jsx(f6,{}),g.jsx(p6,{}),g.jsx(An,{}),e&&g.jsx(D6,{onUploadFiles:e}),g.jsx(An,{}),g.jsx(v6,{}),g.jsx(n6,{}),g.jsx(An,{}),g.jsx(F6,{}),g.jsx(An,{}),g.jsx($E,{}),g.jsx(PE,{})]})},kZ=t=>{if(!t.children.length)return;const e=t.querySelectorAll("span");e&&e.forEach(n=>{var r,o;const i=n.getAttribute("style"),s=(o=(r=n.parentElement)===null||r===void 0?void 0:r.closest("span"))===null||o===void 0?void 0:o.getAttribute("style");n.setAttribute("style",`${s};${i}`)})},EZ=vr.create({name:"textStyle",priority:101,addOptions(){return{HTMLAttributes:{},mergeNestedSpanStyles:!1}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?(this.options.mergeNestedSpanStyles&&kZ(t),{}):!1}]},renderHTML({HTMLAttributes:t}){return["span",Ct(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({tr:t})=>{const{selection:e}=t;return t.doc.nodesBetween(e.from,e.to,(n,r)=>{if(n.isTextblock)return!0;n.marks.filter(o=>o.type===this.type).some(o=>Object.values(o.attrs).some(i=>!!i))||t.removeMark(r,r+n.nodeSize,this.type)}),!0}}}}),OZ=cn.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:t=>{var e;return(e=t.style.color)===null||e===void 0?void 0:e.replace(/['"]+/g,"")},renderHTML:t=>t.color?{style:`color: ${t.color}`}:{}}}}]},addCommands(){return{setColor:t=>({chain:e})=>e().setMark("textStyle",{color:t}).run(),unsetColor:()=>({chain:t})=>t().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),MZ=cn.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:t=>t.style.fontFamily,renderHTML:t=>t.fontFamily?{style:`font-family: ${t.fontFamily}`}:{}}}}]},addCommands(){return{setFontFamily:t=>({chain:e})=>e().setMark("textStyle",{fontFamily:t}).run(),unsetFontFamily:()=>({chain:t})=>t().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}}),_Z="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",IZ="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",R0="numeric",z0="ascii",V0="alpha",Eu="asciinumeric",Ou="alphanumeric",H0="domain",I2="emoji",DZ="scheme",AZ="slashscheme",W0="whitespace";function PZ(t,e){return t in e||(e[t]=[]),e[t]}function wa(t,e,n){e[R0]&&(e[Eu]=!0,e[Ou]=!0),e[z0]&&(e[Eu]=!0,e[V0]=!0),e[Eu]&&(e[Ou]=!0),e[V0]&&(e[Ou]=!0),e[Ou]&&(e[H0]=!0),e[I2]&&(e[H0]=!0);for(const r in e){const o=PZ(r,n);o.indexOf(t)<0&&o.push(t)}}function NZ(t,e){const n={};for(const r in e)e[r].indexOf(t)>=0&&(n[r]=!0);return n}function Cr(t=null){this.j={},this.jr=[],this.jd=null,this.t=t}Cr.groups={},Cr.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let r=0;r<e.jr.length;r++){const o=e.jr[r][0],i=e.jr[r][1];if(i&&o.test(t))return i}return e.jd},has(t,e=!1){return e?t in this.j:!!this.go(t)},ta(t,e,n,r){for(let o=0;o<t.length;o++)this.tt(t[o],e,n,r)},tr(t,e,n,r){r=r||Cr.groups;let o;return e&&e.j?o=e:(o=new Cr(e),n&&r&&wa(e,n,r)),this.jr.push([t,o]),o},ts(t,e,n,r){let o=this;const i=t.length;if(!i)return o;for(let s=0;s<i-1;s++)o=o.tt(t[s]);return o.tt(t[i-1],e,n,r)},tt(t,e,n,r){r=r||Cr.groups;const o=this;if(e&&e.j)return o.j[t]=e,e;const i=e;let s,a=o.go(t);if(a?(s=new Cr,Object.assign(s.j,a.j),s.jr.push.apply(s.jr,a.jr),s.jd=a.jd,s.t=a.t):s=new Cr,i){if(r)if(s.t&&typeof s.t=="string"){const l=Object.assign(NZ(s.t,r),n);wa(i,l,r)}else n&&wa(i,n,r);s.t=i}return o.j[t]=s,s}};const pt=(t,e,n,r,o)=>t.ta(e,n,r,o),mn=(t,e,n,r,o)=>t.tr(e,n,r,o),D2=(t,e,n,r,o)=>t.ts(e,n,r,o),$e=(t,e,n,r,o)=>t.tt(e,n,r,o),_i="WORD",j0="UWORD",A2="ASCIINUMERICAL",P2="ALPHANUMERICAL",Mu="LOCALHOST",U0="TLD",q0="UTLD",qp="SCHEME",$l="SLASH_SCHEME",K0="NUM",Y0="WS",G0="NL",_u="OPENBRACE",Iu="CLOSEBRACE",Kp="OPENBRACKET",Yp="CLOSEBRACKET",Gp="OPENPAREN",Jp="CLOSEPAREN",Xp="OPENANGLEBRACKET",Zp="CLOSEANGLEBRACKET",Qp="FULLWIDTHLEFTPAREN",eh="FULLWIDTHRIGHTPAREN",th="LEFTCORNERBRACKET",nh="RIGHTCORNERBRACKET",rh="LEFTWHITECORNERBRACKET",oh="RIGHTWHITECORNERBRACKET",ih="FULLWIDTHLESSTHAN",sh="FULLWIDTHGREATERTHAN",ah="AMPERSAND",lh="APOSTROPHE",ch="ASTERISK",xs="AT",uh="BACKSLASH",dh="BACKTICK",fh="CARET",ws="COLON",J0="COMMA",ph="DOLLAR",Xo="DOT",hh="EQUALS",X0="EXCLAMATION",ao="HYPHEN",Du="PERCENT",mh="PIPE",gh="PLUS",yh="POUND",Au="QUERY",Z0="QUOTE",N2="FULLWIDTHMIDDLEDOT",Q0="SEMI",Zo="SLASH",Pu="TILDE",bh="UNDERSCORE",$2="EMOJI",vh="SYM";var L2=Object.freeze({__proto__:null,ALPHANUMERICAL:P2,AMPERSAND:ah,APOSTROPHE:lh,ASCIINUMERICAL:A2,ASTERISK:ch,AT:xs,BACKSLASH:uh,BACKTICK:dh,CARET:fh,CLOSEANGLEBRACKET:Zp,CLOSEBRACE:Iu,CLOSEBRACKET:Yp,CLOSEPAREN:Jp,COLON:ws,COMMA:J0,DOLLAR:ph,DOT:Xo,EMOJI:$2,EQUALS:hh,EXCLAMATION:X0,FULLWIDTHGREATERTHAN:sh,FULLWIDTHLEFTPAREN:Qp,FULLWIDTHLESSTHAN:ih,FULLWIDTHMIDDLEDOT:N2,FULLWIDTHRIGHTPAREN:eh,HYPHEN:ao,LEFTCORNERBRACKET:th,LEFTWHITECORNERBRACKET:rh,LOCALHOST:Mu,NL:G0,NUM:K0,OPENANGLEBRACKET:Xp,OPENBRACE:_u,OPENBRACKET:Kp,OPENPAREN:Gp,PERCENT:Du,PIPE:mh,PLUS:gh,POUND:yh,QUERY:Au,QUOTE:Z0,RIGHTCORNERBRACKET:nh,RIGHTWHITECORNERBRACKET:oh,SCHEME:qp,SEMI:Q0,SLASH:Zo,SLASH_SCHEME:$l,SYM:vh,TILDE:Pu,TLD:U0,UNDERSCORE:bh,UTLD:q0,UWORD:j0,WORD:_i,WS:Y0});const Ii=/[a-z]/,Nu=new RegExp("\\p{L}","u"),ev=new RegExp("\\p{Emoji}","u"),Di=/\d/,tv=/\s/,B2="\r",nv=`
401
+ `))},[JSON.stringify(m)]));const x=qt(),S=ya(),{isOpen:k,setIsOpen:T}=jG(t),{timezone:C,value:O,handleValueChange:I}=O0({timezone:f,value:a,defaultValue:m,referenceDate:p,onChange:s,valueManager:e}),[N,L]=A.useState(()=>{let re;return O!==void 0?re=O:m!==void 0?re=m:re=e.emptyValue,{draft:re,lastPublishedValue:re,lastCommittedValue:re,lastControlledValue:a,hasBeenModifiedSinceMount:!1}}),V=e.getTimezone(x,N.draft);v!==f&&(y(f),f&&V&&f!==V&&L(re=>se({},re,{draft:e.setTimezone(x,f,re.draft)})));const{getValidationErrorForNewValue:M}=k_({props:t,validator:o,timezone:C,value:N.draft,onError:t.onError}),B=ze(re=>{const le={action:re,dateState:N,hasChanged:Ce=>!e.areValuesEqual(x,re.value,Ce),isControlled:b,closeOnSelect:u},ye=UG(le),X=qG(le),ee=KG(le);L(Ce=>se({},Ce,{draft:re.value,lastPublishedValue:ye?re.value:Ce.lastPublishedValue,lastCommittedValue:X?re.value:Ce.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let ie=null;const we=()=>(ie||(ie={validationError:re.name==="setValueFromField"?re.context.validationError:M(re.value)},re.name==="setValueFromShortcut"&&(ie.shortcut=re.shortcut)),ie);ye&&I(re.value,we()),X&&i&&i(re.value,we()),ee&&T(!1)});if(N.lastControlledValue!==a){const re=e.areValuesEqual(x,N.draft,O);L(le=>se({},le,{lastControlledValue:a},re?{}:{lastCommittedValue:O,lastPublishedValue:O,draft:O,hasBeenModifiedSinceMount:!0}))}const H=ze(()=>{B({value:e.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),F=ze(()=>{B({value:N.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),P=ze(()=>{B({value:N.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),_=ze(()=>{B({value:N.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),D=ze(()=>{B({value:e.getTodayValue(x,C,n),name:"setValueFromAction",pickerAction:"today"})}),R=ze(re=>{re.preventDefault(),T(!0)}),j=ze(re=>{re==null||re.preventDefault(),T(!1)}),K=ze((re,le="partial")=>B({name:"setValueFromView",value:re,selectionState:le})),U=ze((re,le,ye)=>B({name:"setValueFromShortcut",value:re,changeImportance:le,shortcut:ye})),Y=ze((re,le)=>B({name:"setValueFromField",value:re,context:le})),fe={onClear:H,onAccept:F,onDismiss:P,onCancel:_,onSetToday:D,onOpen:R,onClose:j},ue={value:N.draft,onChange:Y},pe=A.useMemo(()=>e.cleanValue(x,N.draft),[x,e,N.draft]),Z={value:pe,onChange:K,onClose:j,open:k},ce=se({},fe,{value:pe,onChange:K,onSelectShortcut:U,isValid:re=>{const le=o({adapter:S,value:re,timezone:C,props:t});return!e.hasError(le)}}),ne=A.useMemo(()=>({onOpen:R,onClose:j,open:k}),[k,j,R]);return{open:k,fieldProps:ue,viewProps:Z,layoutProps:ce,actions:fe,contextValue:ne}};let $0=!1;function n2({onChange:t,onViewChange:e,openTo:n,view:r,views:o,autoFocus:i,focusedView:s,onFocusedViewChange:a}){process.env.NODE_ENV!=="production"&&($0||(r!=null&&!o.includes(r)&&(console.warn(`MUI X: \`view="${r}"\` is not a valid prop.`,`It must be an element of \`views=["${o.join('", "')}"]\`.`),$0=!0),r==null&&n!=null&&!o.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${o.join('", "')}"]\`.`),$0=!0)));const l=A.useRef(n),u=A.useRef(o),f=A.useRef(o.includes(n)?n:o[0]),[p,m]=Lo({name:"useViews",state:"view",controlled:r,default:f.current}),b=A.useRef(i?p:null),[v,y]=Lo({name:"useViews",state:"focusedView",controlled:s,default:b.current});A.useEffect(()=>{(l.current&&l.current!==n||u.current&&u.current.some(N=>!o.includes(N)))&&(m(o.includes(n)?n:o[0]),u.current=o,l.current=n)},[n,m,p,o]);const x=o.indexOf(p),S=o[x-1]??null,k=o[x+1]??null,T=ze((N,L)=>{y(L?N:V=>N===V?null:V),a==null||a(N,L)}),C=ze(N=>{T(N,!0),N!==p&&(m(N),e&&e(N))}),O=ze(()=>{k&&C(k)}),I=ze((N,L,V)=>{const M=L==="finish",B=V?o.indexOf(V)<o.length-1:!!k;if(t(N,M&&B?"partial":L,V),V&&V!==p){const F=o[o.indexOf(V)+1];F&&C(F)}else M&&O()});return{view:p,setView:C,focusedView:v,setFocusedView:T,nextView:k,previousView:S,defaultView:o.includes(n)?n:o[0],goToNextView:O,setValueAndGoToNextView:I}}const GG=["className","sx"],JG=({props:t,propsFromPickerValue:e,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:i})=>{const{onChange:s,open:a,onClose:l}=e,{view:u,views:f,openTo:p,onViewChange:m,viewRenderers:b,timezone:v}=t,y=at(t,GG),{view:x,setView:S,defaultView:k,focusedView:T,setFocusedView:C,setValueAndGoToNextView:O}=n2({view:u,views:f,openTo:p,onChange:s,onViewChange:m,autoFocus:r}),{hasUIView:I,viewModeLookup:N}=A.useMemo(()=>f.reduce((P,_)=>{let D;return b[_]!=null?D="UI":D="field",P.viewModeLookup[_]=D,D==="UI"&&(P.hasUIView=!0),P},{hasUIView:!1,viewModeLookup:{}}),[b,f]),L=A.useMemo(()=>f.reduce((P,_)=>b[_]!=null&&kq(_)?P+1:P,0),[b,f]),V=N[x],M=ze(()=>V==="UI"),[B,H]=A.useState(V==="UI"?x:null);return B!==x&&N[x]==="UI"&&H(x),In(()=>{V==="field"&&a&&(l(),setTimeout(()=>{var P,_;(P=i==null?void 0:i.current)==null||P.setSelectedSections(x),(_=i==null?void 0:i.current)==null||_.focusField(x)}))},[x]),In(()=>{if(!a)return;let P=x;V==="field"&&B!=null&&(P=B),P!==k&&N[P]==="UI"&&N[k]==="UI"&&(P=k),P!==x&&S(P),C(P,!0)},[a]),{hasUIView:I,shouldRestoreFocus:M,layoutProps:{views:f,view:B,onViewChange:S},renderCurrentView:()=>{if(B==null)return null;const P=b[B];if(P==null)return null;const _=se({},y,n,e,{views:f,timezone:v,onChange:O,view:B,onViewChange:S,focusedView:T,onFocusedViewChange:C,showViewSwitcher:L>1,timeViewsCount:L});return o?o(b,B,_):P(_)}}};function r2(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const XG=(t,e)=>{const[n,r]=A.useState(r2);return In(()=>{const i=()=>{r(r2())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),sK(t,["hours","minutes","seconds"])?!1:(e||n)==="landscape"},ZG=({props:t,propsFromPickerValue:e,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=t,i=XG(n.views,o),s=Ei();return{layoutProps:se({},n,e,{isLandscape:i,isRtl:s,wrapperVariant:r,disabled:t.disabled,readOnly:t.readOnly})}};function QG(t){const{props:e,pickerValueResponse:n}=t;return A.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:e.disabled??!1,readOnly:e.readOnly??!1}),[n.viewProps.value,n.open,e.disabled,e.readOnly])}const o2=({props:t,valueManager:e,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:i,autoFocusView:s,rendererInterceptor:a,fieldRef:l})=>{process.env.NODE_ENV!=="production"&&t.renderInput!=null&&i_(["MUI X: The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const u=YG({props:t,valueManager:e,valueType:n,wrapperVariant:r,validator:i}),f=JG({props:t,additionalViewProps:o,autoFocusView:s,fieldRef:l,propsFromPickerValue:u.viewProps,rendererInterceptor:a}),p=ZG({props:t,wrapperVariant:r,propsFromPickerValue:u.layoutProps,propsFromPickerViews:f.layoutProps}),m=QG({props:t,pickerValueResponse:u});return{open:u.open,actions:u.actions,fieldProps:u.fieldProps,renderCurrentView:f.renderCurrentView,hasUIView:f.hasUIView,shouldRestoreFocus:f.shouldRestoreFocus,layoutProps:p.layoutProps,contextValue:u.contextValue,ownerState:m}};function i2(t){return Ke("MuiPickersLayout",t)}const va=je("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),eJ=["onAccept","onClear","onCancel","onSetToday","actions"];function s2(t){const{onAccept:e,onClear:n,onCancel:r,onSetToday:o,actions:i}=t,s=at(t,eJ),a=Oi();if(i==null||i.length===0)return null;const l=i==null?void 0:i.map(u=>{switch(u){case"clear":return g.jsx(no,{onClick:n,children:a.clearButtonLabel},u);case"cancel":return g.jsx(no,{onClick:r,children:a.cancelButtonLabel},u);case"accept":return g.jsx(no,{onClick:e,children:a.okButtonLabel},u);case"today":return g.jsx(no,{onClick:o,children:a.todayButtonLabel},u);default:return null}});return g.jsx(sp,se({},s,{children:l}))}process.env.NODE_ENV!=="production"&&(s2.propTypes={actions:c.arrayOf(c.oneOf(["accept","cancel","clear","today"]).isRequired),disableSpacing:c.bool,onAccept:c.func.isRequired,onCancel:c.func.isRequired,onClear:c.func.isRequired,onSetToday:c.func.isRequired,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function tJ(t){return Ke("MuiListItem",t)}je("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const nJ=je("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function rJ(t){return Ke("MuiListItemSecondaryAction",t)}je("MuiListItemSecondaryAction",["root","disableGutters"]);const oJ=t=>{const{disableGutters:e,classes:n}=t;return qe({root:["root",e&&"disableGutters"]},rJ,n)},iJ=oe("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.disableGutters&&e.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:t})=>t.disableGutters,style:{right:0}}]}),L0=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiListItemSecondaryAction"}),{className:o,...i}=r,s=A.useContext(hs),a={...r,disableGutters:s.disableGutters},l=oJ(a);return g.jsx(iJ,{className:ge(l.root,o),ownerState:a,ref:n,...i})});process.env.NODE_ENV!=="production"&&(L0.propTypes={children:c.node,classes:c.object,className:c.string,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])}),L0.muiName="ListItemSecondaryAction";const sJ=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.alignItems==="flex-start"&&e.alignItemsFlexStart,n.divider&&e.divider,!n.disableGutters&&e.gutters,!n.disablePadding&&e.padding,n.hasSecondaryAction&&e.secondaryAction]},aJ=t=>{const{alignItems:e,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:s,hasSecondaryAction:a}=t;return qe({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",s&&"divider",e==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"]},tJ,n)},lJ=oe("div",{name:"MuiListItem",slot:"Root",overridesResolver:sJ})(bt(({theme:t})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${nJ.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),cJ=oe("li",{name:"MuiListItem",slot:"Container",overridesResolver:(t,e)=>e.container})({position:"relative"}),a2=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiListItem"}),{alignItems:o="center",children:i,className:s,component:a,components:l={},componentsProps:u={},ContainerComponent:f="li",ContainerProps:{className:p,...m}={},dense:b=!1,disableGutters:v=!1,disablePadding:y=!1,divider:x=!1,secondaryAction:S,slotProps:k={},slots:T={},...C}=r,O=A.useContext(hs),I=A.useMemo(()=>({dense:b||O.dense||!1,alignItems:o,disableGutters:v}),[o,O.dense,b,v]),N=A.useRef(null),L=A.Children.toArray(i),V=L.length&&ec(L[L.length-1],["ListItemSecondaryAction"]),M={...r,alignItems:o,dense:I.dense,disableGutters:v,disablePadding:y,divider:x,hasSecondaryAction:V},B=aJ(M),H=Ot(N,n),F=T.root||l.Root||lJ,P=k.root||u.root||{},_={className:ge(B.root,P.className,s),...C};let D=a||"li";return V?(D=!_.component&&!a?"div":D,f==="li"&&(D==="li"?D="div":_.component==="li"&&(_.component="div")),g.jsx(hs.Provider,{value:I,children:g.jsxs(cJ,{as:f,className:ge(B.container,p),ref:H,ownerState:M,...m,children:[g.jsx(F,{...P,...!Wc(F)&&{as:D,ownerState:{...M,...P.ownerState}},..._,children:L}),L.pop()]})})):g.jsx(hs.Provider,{value:I,children:g.jsxs(F,{...P,as:D,ref:H,...!Wc(F)&&{ownerState:{...M,...P.ownerState}},..._,children:[L,S&&g.jsx(L0,{children:S})]})})});process.env.NODE_ENV!=="production"&&(a2.propTypes={alignItems:c.oneOf(["center","flex-start"]),children:si(c.node,t=>{const e=A.Children.toArray(t.children);let n=-1;for(let r=e.length-1;r>=0;r-=1){const o=e[r];if(ec(o,["ListItemSecondaryAction"])){n=r;break}}return n!==-1&&n!==e.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:c.object,className:c.string,component:c.elementType,components:c.shape({Root:c.elementType}),componentsProps:c.shape({root:c.object}),ContainerComponent:Ba,ContainerProps:c.object,dense:c.bool,disableGutters:c.bool,disablePadding:c.bool,divider:c.bool,secondaryAction:c.node,slotProps:c.shape({root:c.object}),slots:c.shape({root:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});const uJ=Le(g.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function dJ(t){return Ke("MuiChip",t)}const vt=je("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),fJ=t=>{const{classes:e,disabled:n,size:r,color:o,iconColor:i,onDelete:s,clickable:a,variant:l}=t,u={root:["root",l,n&&"disabled",`size${Ne(r)}`,`color${Ne(o)}`,a&&"clickable",a&&`clickableColor${Ne(o)}`,s&&"deletable",s&&`deletableColor${Ne(o)}`,`${l}${Ne(o)}`],label:["label",`label${Ne(r)}`],avatar:["avatar",`avatar${Ne(r)}`,`avatarColor${Ne(o)}`],icon:["icon",`icon${Ne(r)}`,`iconColor${Ne(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Ne(r)}`,`deleteIconColor${Ne(o)}`,`deleteIcon${Ne(l)}Color${Ne(o)}`]};return qe(u,dJ,e)},pJ=oe("div",{name:"MuiChip",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{color:r,iconColor:o,clickable:i,onDelete:s,size:a,variant:l}=n;return[{[`& .${vt.avatar}`]:e.avatar},{[`& .${vt.avatar}`]:e[`avatar${Ne(a)}`]},{[`& .${vt.avatar}`]:e[`avatarColor${Ne(r)}`]},{[`& .${vt.icon}`]:e.icon},{[`& .${vt.icon}`]:e[`icon${Ne(a)}`]},{[`& .${vt.icon}`]:e[`iconColor${Ne(o)}`]},{[`& .${vt.deleteIcon}`]:e.deleteIcon},{[`& .${vt.deleteIcon}`]:e[`deleteIcon${Ne(a)}`]},{[`& .${vt.deleteIcon}`]:e[`deleteIconColor${Ne(r)}`]},{[`& .${vt.deleteIcon}`]:e[`deleteIcon${Ne(l)}Color${Ne(r)}`]},e.root,e[`size${Ne(a)}`],e[`color${Ne(r)}`],i&&e.clickable,i&&r!=="default"&&e[`clickableColor${Ne(r)})`],s&&e.deletable,s&&r!=="default"&&e[`deletableColor${Ne(r)}`],e[l],e[`${l}${Ne(r)}`]]}})(bt(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[700]:t.palette.grey[300];return{maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${vt.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${vt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:e,fontSize:t.typography.pxToRem(12)},[`& .${vt.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${vt.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${vt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${vt.icon}`]:{marginLeft:5,marginRight:-6},[`& .${vt.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.26)`:it(t.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:it(t.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${vt.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${vt.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(t.palette).filter(Hn(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(t.vars||t).palette[n].main,color:(t.vars||t).palette[n].contrastText,[`& .${vt.deleteIcon}`]:{color:t.vars?`rgba(${t.vars.palette[n].contrastTextChannel} / 0.7)`:it(t.palette[n].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${vt.icon}`]:{color:t.vars?t.vars.palette.Chip.defaultIconColor:e}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${vt.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${vt.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:it(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}},...Object.entries(t.palette).filter(Hn(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${vt.focusVisible}`]:{background:(t.vars||t).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:it(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)},[`&.${vt.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:it(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},"&:active":{boxShadow:(t.vars||t).shadows[1]}}},...Object.entries(t.palette).filter(Hn(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${vt.focusVisible}`]:{backgroundColor:(t.vars||t).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${vt.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${vt.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${vt.avatar}`]:{marginLeft:4},[`& .${vt.avatarSmall}`]:{marginLeft:2},[`& .${vt.icon}`]:{marginLeft:4},[`& .${vt.iconSmall}`]:{marginLeft:2},[`& .${vt.deleteIcon}`]:{marginRight:5},[`& .${vt.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(t.palette).filter(Hn()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(t.vars||t).palette[n].main,border:`1px solid ${t.vars?`rgba(${t.vars.palette[n].mainChannel} / 0.7)`:it(t.palette[n].main,.7)}`,[`&.${vt.clickable}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:it(t.palette[n].main,t.palette.action.hoverOpacity)},[`&.${vt.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.focusOpacity})`:it(t.palette[n].main,t.palette.action.focusOpacity)},[`& .${vt.deleteIcon}`]:{color:t.vars?`rgba(${t.vars.palette[n].mainChannel} / 0.7)`:it(t.palette[n].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[n].main}}}}))]}})),hJ=oe("span",{name:"MuiChip",slot:"Label",overridesResolver:(t,e)=>{const{ownerState:n}=t,{size:r}=n;return[e.label,e[`label${Ne(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function l2(t){return t.key==="Backspace"||t.key==="Delete"}const c2=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiChip"}),{avatar:o,className:i,clickable:s,color:a="default",component:l,deleteIcon:u,disabled:f=!1,icon:p,label:m,onClick:b,onDelete:v,onKeyDown:y,onKeyUp:x,size:S="medium",variant:k="filled",tabIndex:T,skipFocusWhenDisabled:C=!1,...O}=r,I=A.useRef(null),N=Ot(I,n),L=K=>{K.stopPropagation(),v&&v(K)},V=K=>{K.currentTarget===K.target&&l2(K)&&K.preventDefault(),y&&y(K)},M=K=>{K.currentTarget===K.target&&v&&l2(K)&&v(K),x&&x(K)},B=s!==!1&&b?!0:s,H=B||v?ms:l||"div",F={...r,component:H,disabled:f,size:S,color:a,iconColor:A.isValidElement(p)&&p.props.color||a,onDelete:!!v,clickable:B,variant:k},P=fJ(F),_=H===ms?{component:l||"div",focusVisibleClassName:P.focusVisible,...v&&{disableRipple:!0}}:{};let D=null;v&&(D=u&&A.isValidElement(u)?A.cloneElement(u,{className:ge(u.props.className,P.deleteIcon),onClick:L}):g.jsx(uJ,{className:ge(P.deleteIcon),onClick:L}));let R=null;o&&A.isValidElement(o)&&(R=A.cloneElement(o,{className:ge(P.avatar,o.props.className)}));let j=null;return p&&A.isValidElement(p)&&(j=A.cloneElement(p,{className:ge(P.icon,p.props.className)})),process.env.NODE_ENV!=="production"&&R&&j&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."),g.jsxs(pJ,{as:H,className:ge(P.root,i),disabled:B&&f?!0:void 0,onClick:b,onKeyDown:V,onKeyUp:M,ref:N,tabIndex:C&&f?-1:T,ownerState:F,..._,...O,children:[R||j,g.jsx(hJ,{className:ge(P.label),ownerState:F,children:m}),D]})});process.env.NODE_ENV!=="production"&&(c2.propTypes={avatar:c.element,children:YP,classes:c.object,className:c.string,clickable:c.bool,color:c.oneOfType([c.oneOf(["default","primary","secondary","error","info","success","warning"]),c.string]),component:c.elementType,deleteIcon:c.element,disabled:c.bool,icon:c.element,label:c.node,onClick:c.func,onDelete:c.func,onKeyDown:c.func,onKeyUp:c.func,size:c.oneOfType([c.oneOf(["medium","small"]),c.string]),skipFocusWhenDisabled:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),tabIndex:c.number,variant:c.oneOfType([c.oneOf(["filled","outlined"]),c.string])});const Cu=36,Rp=2,zp=320,mJ=280,B0=336,gJ=["items","changeImportance","isLandscape","onChange","isValid"],yJ=["getValue"];function u2(t){const{items:e,changeImportance:n="accept",onChange:r,isValid:o}=t,i=at(t,gJ);if(e==null||e.length===0)return null;const s=e.map(a=>{let{getValue:l}=a,u=at(a,yJ);const f=l({isValid:o});return se({},u,{label:u.label,onClick:()=>{r(f,n,u)},disabled:!o(f)})});return g.jsx(Ey,se({dense:!0,sx:[{maxHeight:B0,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:s.map(a=>g.jsx(a2,{children:g.jsx(c2,se({},a))},a.id??a.label))}))}process.env.NODE_ENV!=="production"&&(u2.propTypes={changeImportance:c.oneOf(["accept","set"]),className:c.string,component:c.elementType,dense:c.bool,disablePadding:c.bool,isLandscape:c.bool.isRequired,isValid:c.func.isRequired,items:c.arrayOf(c.shape({getValue:c.func.isRequired,id:c.string,label:c.string.isRequired})),onChange:c.func.isRequired,style:c.object,subheader:c.node,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function bJ(t){return t.view!==null}const vJ=t=>{const{classes:e,isLandscape:n}=t;return qe({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},i2,e)},xJ=t=>{const{wrapperVariant:e,onAccept:n,onClear:r,onCancel:o,onSetToday:i,view:s,views:a,onViewChange:l,value:u,onChange:f,onSelectShortcut:p,isValid:m,isLandscape:b,disabled:v,readOnly:y,children:x,slots:S,slotProps:k}=t,T=vJ(t),C=(S==null?void 0:S.actionBar)??s2,O=Mt({elementType:C,externalSlotProps:k==null?void 0:k.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:i,actions:e==="desktop"?[]:["cancel","accept"]},className:T.actionBar,ownerState:se({},t,{wrapperVariant:e})}),I=g.jsx(C,se({},O)),N=S==null?void 0:S.toolbar,L=Mt({elementType:N,externalSlotProps:k==null?void 0:k.toolbar,additionalProps:{isLandscape:b,onChange:f,value:u,view:s,onViewChange:l,views:a,disabled:v,readOnly:y},className:T.toolbar,ownerState:se({},t,{wrapperVariant:e})}),V=bJ(L)&&N?g.jsx(N,se({},L)):null,M=x,B=S==null?void 0:S.tabs,H=s&&B?g.jsx(B,se({view:s,onViewChange:l,className:T.tabs},k==null?void 0:k.tabs)):null,F=(S==null?void 0:S.shortcuts)??u2,P=Mt({elementType:F,externalSlotProps:k==null?void 0:k.shortcuts,additionalProps:{isValid:m,isLandscape:b,onChange:p},className:T.shortcuts,ownerState:{isValid:m,isLandscape:b,onChange:p,wrapperVariant:e}}),_=s&&F?g.jsx(F,se({},P)):null;return{toolbar:V,content:M,tabs:H,actionBar:I,shortcuts:_}},wJ=t=>{const{isLandscape:e,classes:n}=t;return qe({root:["root",e&&"landscape"],contentWrapper:["contentWrapper"]},i2,n)},SJ=oe("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${va.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${va.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${va.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${va.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${va.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${va.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${va.shortcuts}`]:{gridColumn:3}}}]}),CJ=oe("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(t,e)=>e.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),F0=A.forwardRef(function(e,n){const r=rt({props:e,name:"MuiPickersLayout"}),{toolbar:o,content:i,tabs:s,actionBar:a,shortcuts:l}=xJ(r),{sx:u,className:f,isLandscape:p,wrapperVariant:m}=r,b=wJ(r);return g.jsxs(SJ,{ref:n,sx:u,className:ge(b.root,f),ownerState:r,children:[p?l:o,p?o:l,g.jsx(CJ,{className:b.contentWrapper,children:m==="desktop"?g.jsxs(A.Fragment,{children:[i,s]}):g.jsxs(A.Fragment,{children:[s,i]})}),a]})});process.env.NODE_ENV!=="production"&&(F0.propTypes={children:c.node,classes:c.object,className:c.string,disabled:c.bool,isLandscape:c.bool.isRequired,isRtl:c.bool.isRequired,isValid:c.func.isRequired,onAccept:c.func.isRequired,onCancel:c.func.isRequired,onChange:c.func.isRequired,onClear:c.func.isRequired,onClose:c.func.isRequired,onDismiss:c.func.isRequired,onOpen:c.func.isRequired,onSelectShortcut:c.func.isRequired,onSetToday:c.func.isRequired,onViewChange:c.func.isRequired,orientation:c.oneOf(["landscape","portrait"]),readOnly:c.bool,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),value:c.any,view:c.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),views:c.arrayOf(c.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired).isRequired,wrapperVariant:c.oneOf(["desktop","mobile"])});const TJ=["props","getOpenDialogAriaText"],kJ=["ownerState"],EJ=["ownerState"],OJ=t=>{var we;let{props:e,getOpenDialogAriaText:n}=t,r=at(t,TJ);const{slots:o,slotProps:i,className:s,sx:a,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:m,timezone:b,name:v,label:y,inputRef:x,readOnly:S,disabled:k,autoFocus:T,localeText:C,reduceAnimations:O}=e,I=A.useRef(null),N=A.useRef(null),L=vo(),V=((we=i==null?void 0:i.toolbar)==null?void 0:we.hidden)??!1,{open:M,actions:B,hasUIView:H,layoutProps:F,renderCurrentView:P,shouldRestoreFocus:_,fieldProps:D,contextValue:R,ownerState:j}=o2(se({},r,{props:e,fieldRef:N,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),K=o.inputAdornment??_0,U=Mt({elementType:K,externalSlotProps:i==null?void 0:i.inputAdornment,additionalProps:{position:"end"},ownerState:e}),Y=at(U,kJ),fe=o.openPickerButton??_l,ue=Mt({elementType:fe,externalSlotProps:i==null?void 0:i.openPickerButton,additionalProps:{disabled:k||S,onClick:M?B.onClose:B.onOpen,"aria-label":n(D.value),edge:Y.position},ownerState:e}),pe=at(ue,EJ),Z=o.openPickerIcon,te=Mt({elementType:Z,externalSlotProps:i==null?void 0:i.openPickerIcon,ownerState:j}),ce=o.field,ne=Mt({elementType:ce,externalSlotProps:i==null?void 0:i.field,additionalProps:se({},D,V&&{id:L},{readOnly:S,disabled:k,className:s,sx:a,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:m,timezone:b,label:y,name:v,autoFocus:T&&!e.open,focused:M?!0:void 0},x?{inputRef:x}:{}),ownerState:e});H&&(ne.InputProps=se({},ne.InputProps,{ref:I},!e.disableOpenPicker&&{[`${Y.position}Adornment`]:g.jsx(K,se({},Y,{children:g.jsx(fe,se({},pe,{children:g.jsx(Z,se({},te))}))}))}));const re=se({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},ne.slots),le=o.layout??F0;let ye=L;V&&(y?ye=`${L}-label`:ye=void 0);const X=se({},i,{toolbar:se({},i==null?void 0:i.toolbar,{titleId:L}),popper:se({"aria-labelledby":ye},i==null?void 0:i.popper)}),ee=Ot(N,ne.unstableFieldRef);return{renderPicker:()=>g.jsxs(I_,{contextValue:R,localeText:C,children:[g.jsx(ce,se({},ne,{slots:re,slotProps:X,unstableFieldRef:ee})),g.jsx(WG,se({role:"dialog",placement:"bottom-start",anchorEl:I.current},B,{open:M,slots:o,slotProps:X,shouldRestoreFocus:_,reduceAnimations:O,children:g.jsx(le,se({},F,X==null?void 0:X.layout,{slots:o,slotProps:X,children:P()}))}))]})}},d2=({shouldDisableDate:t,shouldDisableMonth:e,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:s,timezone:a})=>{const l=ya();return A.useCallback(u=>gu({adapter:l,value:u,timezone:a,props:{shouldDisableDate:t,shouldDisableMonth:e,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:s}})!==null,[l,t,e,n,r,o,i,s,a])},MJ=(t,e,n)=>(r,o)=>{switch(o.type){case"changeMonth":return se({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!t});case"changeMonthTimezone":{const i=o.newTimezone;if(n.getTimezone(r.currentMonth)===i)return r;let s=n.setTimezone(r.currentMonth,i);return n.getMonth(s)!==n.getMonth(r.currentMonth)&&(s=n.setMonth(s,n.getMonth(r.currentMonth))),se({},r,{currentMonth:s})}case"finishMonthSwitchingAnimation":return se({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const i=o.focusedDay!=null&&!e&&!n.isSameMonth(r.currentMonth,o.focusedDay);return se({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:i&&!t&&!o.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},_J=t=>{const{value:e,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:i=!1,maxDate:s,minDate:a,onMonthChange:l,reduceAnimations:u,shouldDisableDate:f,timezone:p}=t,m=qt(),b=A.useRef(MJ(!!u,i,m)).current,v=A.useMemo(()=>Jo.getInitialReferenceValue({value:e,utils:m,timezone:p,props:t,referenceDate:n,granularity:Go.day}),[n,p]),[y,x]=A.useReducer(b,{isMonthSwitchingAnimating:!1,focusedDay:v,currentMonth:m.startOfMonth(v),slideDirection:"left"});A.useEffect(()=>{x({type:"changeMonthTimezone",newTimezone:m.getTimezone(v)})},[v,m]);const S=A.useCallback(I=>{x(se({type:"changeMonth"},I)),l&&l(I.newMonth)},[l]),k=A.useCallback(I=>{const N=I;m.isSameMonth(N,y.currentMonth)||S({newMonth:m.startOfMonth(N),direction:m.isAfterDay(N,y.currentMonth)?"left":"right"})},[y.currentMonth,S,m]),T=d2({shouldDisableDate:f,minDate:a,maxDate:s,disableFuture:r,disablePast:o,timezone:p}),C=A.useCallback(()=>{x({type:"finishMonthSwitchingAnimation"})},[]),O=ze((I,N)=>{T(I)||x({type:"changeFocusedDay",focusedDay:I,withoutMonthSwitchingAnimation:N})});return{referenceDate:v,calendarState:y,changeMonth:k,changeFocusedDay:O,isDateDisabled:T,onMonthSwitchingAnimationEnd:C,handleChangeMonth:S}},IJ=t=>Ke("MuiPickersFadeTransitionGroup",t);je("MuiPickersFadeTransitionGroup",["root"]);const DJ=t=>{const{classes:e}=t;return qe({root:["root"]},IJ,e)},AJ=oe(Nc,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"block",position:"relative"});function f2(t){const e=rt({props:t,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=e,s=DJ(e),a=wo();return o?n:g.jsx(AJ,{className:ge(s.root,r),children:g.jsx(Ho,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:a.transitions.duration.enteringScreen,enter:a.transitions.duration.enteringScreen,exit:0},children:n},i)})}function PJ(t){return Ke("MuiPickersDay",t)}const xa=je("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),NJ=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],$J=t=>{const{selected:e,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:a,classes:l}=t,u=s&&!a;return qe({root:["root",e&&!u&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",s&&a&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},PJ,l)},p2=({theme:t})=>se({},t.typography.caption,{width:Cu,height:Cu,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:t.transitions.create("background-color",{duration:t.transitions.duration.short}),color:(t.vars||t).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:it(t.palette.primary.main,t.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.focusOpacity})`:it(t.palette.primary.main,t.palette.action.focusOpacity),[`&.${xa.selected}`]:{willChange:"background-color",backgroundColor:(t.vars||t).palette.primary.dark}},[`&.${xa.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,fontWeight:t.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(t.vars||t).palette.primary.dark}},[`&.${xa.disabled}:not(.${xa.selected})`]:{color:(t.vars||t).palette.text.disabled},[`&.${xa.disabled}&.${xa.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Rp}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(t.vars||t).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${xa.selected})`]:{border:`1px solid ${(t.vars||t).palette.text.secondary}`}}}]}),h2=(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableMargin&&e.dayWithMargin,!n.disableHighlightToday&&n.today&&e.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&e.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&e.hiddenDaySpacingFiller]},LJ=oe(ms,{name:"MuiPickersDay",slot:"Root",overridesResolver:h2})(p2),BJ=oe("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:h2})(({theme:t})=>se({},p2({theme:t}),{opacity:0,pointerEvents:"none"})),Tu=()=>{},m2=A.forwardRef(function(e,n){const r=rt({props:e,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,day:s,disabled:a=!1,disableHighlightToday:l=!1,disableMargin:u=!1,isAnimating:f,onClick:p,onDaySelect:m,onFocus:b=Tu,onBlur:v=Tu,onKeyDown:y=Tu,onMouseDown:x=Tu,onMouseEnter:S=Tu,outsideCurrentMonth:k,selected:T=!1,showDaysOutsideCurrentMonth:C=!1,children:O,today:I=!1}=r,N=at(r,NJ),L=se({},r,{autoFocus:o,disabled:a,disableHighlightToday:l,disableMargin:u,selected:T,showDaysOutsideCurrentMonth:C,today:I}),V=$J(L),M=qt(),B=A.useRef(null),H=Ot(B,n);In(()=>{o&&!a&&!f&&!k&&B.current.focus()},[o,a,f,k]);const F=_=>{x(_),k&&_.preventDefault()},P=_=>{a||m(s),k&&_.currentTarget.focus(),p&&p(_)};return k&&!C?g.jsx(BJ,{className:ge(V.root,V.hiddenDaySpacingFiller,i),ownerState:L,role:N.role}):g.jsx(LJ,se({className:ge(V.root,i),ref:H,centerRipple:!0,disabled:a,tabIndex:T?0:-1,onKeyDown:_=>y(_,s),onFocus:_=>b(_,s),onBlur:_=>v(_,s),onMouseEnter:_=>S(_,s),onClick:P,onMouseDown:F},N,{ownerState:L,children:O||M.format(s,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(m2.propTypes={action:c.oneOfType([c.func,c.shape({current:c.shape({focusVisible:c.func.isRequired})})]),centerRipple:c.bool,classes:c.object,className:c.string,component:c.elementType,day:c.object.isRequired,disabled:c.bool,disableHighlightToday:c.bool,disableMargin:c.bool,disableRipple:c.bool,disableTouchRipple:c.bool,focusRipple:c.bool,focusVisibleClassName:c.string,isAnimating:c.bool,isFirstVisibleCell:c.bool.isRequired,isLastVisibleCell:c.bool.isRequired,onBlur:c.func,onDaySelect:c.func.isRequired,onFocus:c.func,onFocusVisible:c.func,onKeyDown:c.func,onMouseEnter:c.func,outsideCurrentMonth:c.bool.isRequired,selected:c.bool,showDaysOutsideCurrentMonth:c.bool,style:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),tabIndex:c.number,today:c.bool,TouchRippleProps:c.object,touchRippleRef:c.oneOfType([c.func,c.shape({current:c.shape({pulsate:c.func.isRequired,start:c.func.isRequired,stop:c.func.isRequired})})])});const FJ=A.memo(m2),RJ=t=>Ke("MuiPickersSlideTransition",t),so=je("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),zJ=["children","className","reduceAnimations","slideDirection","transKey","classes"],VJ=t=>{const{classes:e,slideDirection:n}=t,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return qe(r,RJ,e)},HJ=oe(Nc,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(t,e)=>[e.root,{[`.${so["slideEnter-left"]}`]:e["slideEnter-left"]},{[`.${so["slideEnter-right"]}`]:e["slideEnter-right"]},{[`.${so.slideEnterActive}`]:e.slideEnterActive},{[`.${so.slideExit}`]:e.slideExit},{[`.${so["slideExitActiveLeft-left"]}`]:e["slideExitActiveLeft-left"]},{[`.${so["slideExitActiveLeft-right"]}`]:e["slideExitActiveLeft-right"]}]})(({theme:t})=>{const e=t.transitions.create("transform",{duration:t.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${so["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${so["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${so.slideEnterActive}`]:{transform:"translate(0%)",transition:e},[`& .${so.slideExit}`]:{transform:"translate(0%)"},[`& .${so["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:e,zIndex:0},[`& .${so["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:e,zIndex:0}}});function WJ(t){const e=rt({props:t,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:i}=e,s=at(e,zJ),a=VJ(e),l=wo();if(o)return g.jsx("div",{className:ge(a.root,r),children:n});const u={exit:a.exit,enterActive:a.enterActive,enter:a.enter,exitActive:a.exitActive};return g.jsx(HJ,{className:ge(a.root,r),childFactory:f=>A.cloneElement(f,{classNames:u}),role:"presentation",children:g.jsx(uy,se({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:u},s,{children:n}),i)})}const jJ=t=>Ke("MuiDayCalendar",t);je("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const UJ=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],qJ=["ownerState"],KJ=t=>{const{classes:e}=t;return qe({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},jJ,e)},g2=(Cu+Rp*2)*6,YJ=oe("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({}),GJ=oe("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(t,e)=>e.header})({display:"flex",justifyContent:"center",alignItems:"center"}),JJ=oe(ko,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(t,e)=>e.weekDayLabel})(({theme:t})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(t.vars||t).palette.text.secondary})),XJ=oe(ko,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(t,e)=>e.weekNumberLabel})(({theme:t})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:t.palette.text.disabled})),ZJ=oe(ko,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(t,e)=>e.weekNumber})(({theme:t})=>se({},t.typography.caption,{width:Cu,height:Cu,padding:0,margin:`0 ${Rp}px`,color:t.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),QJ=oe("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(t,e)=>e.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:g2}),eX=oe(WJ,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(t,e)=>e.slideTransition})({minHeight:g2}),tX=oe("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(t,e)=>e.monthContainer})({overflow:"hidden"}),nX=oe("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(t,e)=>e.weekContainer})({margin:`${Rp}px 0`,display:"flex",justifyContent:"center"});function rX(t){let{parentProps:e,day:n,focusableDay:r,selectedDays:o,isDateDisabled:i,currentMonthNumber:s,isViewFocused:a}=t,l=at(t,UJ);const{disabled:u,disableHighlightToday:f,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:m,slots:b,slotProps:v,timezone:y}=e,x=qt(),S=Cp(y),k=r!==null&&x.isSameDay(n,r),T=o.some(H=>x.isSameDay(H,n)),C=x.isSameDay(n,S),O=(b==null?void 0:b.day)??FJ,I=Mt({elementType:O,externalSlotProps:v==null?void 0:v.day,additionalProps:se({disableHighlightToday:f,showDaysOutsideCurrentMonth:m,role:"gridcell",isAnimating:p,"data-timestamp":x.toJsDate(n).valueOf()},l),ownerState:se({},e,{day:n,selected:T})}),N=at(I,qJ),L=A.useMemo(()=>u||i(n),[u,i,n]),V=A.useMemo(()=>x.getMonth(n)!==s,[x,n,s]),M=A.useMemo(()=>{const H=x.startOfMonth(x.setMonth(n,s));return m?x.isSameDay(n,x.startOfWeek(H)):x.isSameDay(n,H)},[s,n,m,x]),B=A.useMemo(()=>{const H=x.endOfMonth(x.setMonth(n,s));return m?x.isSameDay(n,x.endOfWeek(H)):x.isSameDay(n,H)},[s,n,m,x]);return g.jsx(O,se({},N,{day:n,disabled:L,autoFocus:a&&k,today:C,outsideCurrentMonth:V,isFirstVisibleCell:M,isLastVisibleCell:B,selected:T,tabIndex:k?0:-1,"aria-selected":T,"aria-current":C?"date":void 0}))}function oX(t){const e=rt({props:t,name:"MuiDayCalendar"}),n=qt(),{onFocusedDayChange:r,className:o,currentMonth:i,selectedDays:s,focusedDay:a,loading:l,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:f,readOnly:p,reduceAnimations:m,renderLoading:b=()=>g.jsx("span",{children:"..."}),slideDirection:v,TransitionProps:y,disablePast:x,disableFuture:S,minDate:k,maxDate:T,shouldDisableDate:C,shouldDisableMonth:O,shouldDisableYear:I,dayOfWeekFormatter:N=Ce=>n.format(Ce,"weekdayShort").charAt(0).toUpperCase(),hasFocus:L,onFocusedViewChange:V,gridLabelId:M,displayWeekNumber:B,fixedWeekNumber:H,autoFocus:F,timezone:P}=e,_=Cp(P),D=KJ(e),R=Ei(),j=d2({shouldDisableDate:C,shouldDisableMonth:O,shouldDisableYear:I,minDate:k,maxDate:T,disablePast:x,disableFuture:S,timezone:P}),K=Oi(),[U,Y]=Lo({name:"DayCalendar",state:"hasFocus",controlled:L,default:F??!1}),[fe,ue]=A.useState(()=>a||_),pe=ze(Ce=>{p||u(Ce)}),Z=Ce=>{j(Ce)||(r(Ce),ue(Ce),V==null||V(!0),Y(!0))},te=ze((Ce,Pe)=>{switch(Ce.key){case"ArrowUp":Z(n.addDays(Pe,-7)),Ce.preventDefault();break;case"ArrowDown":Z(n.addDays(Pe,7)),Ce.preventDefault();break;case"ArrowLeft":{const Me=n.addDays(Pe,R?1:-1),Ie=n.addMonths(Pe,R?1:-1),me=hu({utils:n,date:Me,minDate:R?Me:n.startOfMonth(Ie),maxDate:R?n.endOfMonth(Ie):Me,isDateDisabled:j,timezone:P});Z(me||Me),Ce.preventDefault();break}case"ArrowRight":{const Me=n.addDays(Pe,R?-1:1),Ie=n.addMonths(Pe,R?-1:1),me=hu({utils:n,date:Me,minDate:R?n.startOfMonth(Ie):Me,maxDate:R?Me:n.endOfMonth(Ie),isDateDisabled:j,timezone:P});Z(me||Me),Ce.preventDefault();break}case"Home":Z(n.startOfWeek(Pe)),Ce.preventDefault();break;case"End":Z(n.endOfWeek(Pe)),Ce.preventDefault();break;case"PageUp":Z(n.addMonths(Pe,1)),Ce.preventDefault();break;case"PageDown":Z(n.addMonths(Pe,-1)),Ce.preventDefault();break}}),ce=ze((Ce,Pe)=>Z(Pe)),ne=ze((Ce,Pe)=>{U&&n.isSameDay(fe,Pe)&&(V==null||V(!1))}),re=n.getMonth(i),le=n.getYear(i),ye=A.useMemo(()=>s.filter(Ce=>!!Ce).map(Ce=>n.startOfDay(Ce)),[n,s]),X=`${le}-${re}`,ee=A.useMemo(()=>A.createRef(),[X]),ie=A.useMemo(()=>{const Ce=n.startOfMonth(i),Pe=n.endOfMonth(i);return j(fe)||n.isAfterDay(fe,Pe)||n.isBeforeDay(fe,Ce)?hu({utils:n,date:fe,minDate:Ce,maxDate:Pe,disablePast:x,disableFuture:S,isDateDisabled:j,timezone:P}):fe},[i,S,x,fe,j,n,P]),we=A.useMemo(()=>{const Ce=n.getWeekArray(i);let Pe=n.addMonths(i,1);for(;H&&Ce.length<H;){const Me=n.getWeekArray(Pe),Ie=n.isSameDay(Ce[Ce.length-1][0],Me[0][0]);Me.slice(Ie?1:0).forEach(me=>{Ce.length<H&&Ce.push(me)}),Pe=n.addMonths(Pe,1)}return Ce},[i,H,n]);return g.jsxs(YJ,{role:"grid","aria-labelledby":M,className:D.root,children:[g.jsxs(GJ,{role:"row",className:D.header,children:[B&&g.jsx(XJ,{variant:"caption",role:"columnheader","aria-label":K.calendarWeekNumberHeaderLabel,className:D.weekNumberLabel,children:K.calendarWeekNumberHeaderText}),Cq(n,_).map((Ce,Pe)=>g.jsx(JJ,{variant:"caption",role:"columnheader","aria-label":n.format(Ce,"weekday"),className:D.weekDayLabel,children:N(Ce)},Pe.toString()))]}),l?g.jsx(QJ,{className:D.loadingContainer,children:b()}):g.jsx(eX,se({transKey:X,onExited:f,reduceAnimations:m,slideDirection:v,className:ge(o,D.slideTransition)},y,{nodeRef:ee,children:g.jsx(tX,{ref:ee,role:"rowgroup",className:D.monthContainer,children:we.map((Ce,Pe)=>g.jsxs(nX,{role:"row",className:D.weekContainer,"aria-rowindex":Pe+1,children:[B&&g.jsx(ZJ,{className:D.weekNumber,role:"rowheader","aria-label":K.calendarWeekNumberAriaLabelText(n.getWeekNumber(Ce[0])),children:K.calendarWeekNumberText(n.getWeekNumber(Ce[0]))}),Ce.map((Me,Ie)=>g.jsx(rX,{parentProps:e,day:Me,selectedDays:ye,focusableDay:ie,onKeyDown:te,onFocus:ce,onBlur:ne,onDaySelect:pe,isDateDisabled:j,currentMonthNumber:re,isViewFocused:U,"aria-colindex":Ie+1},Me.toString()))]},`week-${Ce[0]}`))})}))]})}function iX(t){return Ke("MuiPickersMonth",t)}const Vp=je("MuiPickersMonth",["root","monthButton","disabled","selected"]),sX=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],aX=t=>{const{disabled:e,selected:n,classes:r}=t;return qe({root:["root"],monthButton:["monthButton",e&&"disabled",n&&"selected"]},iX,r)},lX=oe("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(t,e)=>[e.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),cX=oe("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(t,e)=>[e.monthButton,{[`&.${Vp.disabled}`]:e.disabled},{[`&.${Vp.selected}`]:e.selected}]})(({theme:t})=>se({color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:it(t.palette.action.active,t.palette.action.hoverOpacity)},"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:it(t.palette.action.active,t.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Vp.disabled}`]:{color:(t.vars||t).palette.text.secondary},[`&.${Vp.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,"&:focus, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}}})),uX=A.memo(function(e){const n=rt({props:e,name:"MuiPickersMonth"}),{autoFocus:r,className:o,children:i,disabled:s,selected:a,value:l,tabIndex:u,onClick:f,onKeyDown:p,onFocus:m,onBlur:b,"aria-current":v,"aria-label":y,slots:x,slotProps:S}=n,k=at(n,sX),T=A.useRef(null),C=aX(n);In(()=>{var N;r&&((N=T.current)==null||N.focus())},[r]);const O=(x==null?void 0:x.monthButton)??cX,I=Mt({elementType:O,externalSlotProps:S==null?void 0:S.monthButton,additionalProps:{children:i,disabled:s,tabIndex:u,ref:T,type:"button",role:"radio","aria-current":v,"aria-checked":a,"aria-label":y,onClick:N=>f(N,l),onKeyDown:N=>p(N,l),onFocus:N=>m(N,l),onBlur:N=>b(N,l)},ownerState:n,className:C.monthButton});return g.jsx(lX,se({className:ge(C.root,o),ownerState:n},k,{children:g.jsx(O,se({},I))}))});function dX(t){return Ke("MuiMonthCalendar",t)}je("MuiMonthCalendar",["root"]);const fX=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],pX=t=>{const{classes:e}=t;return qe({root:["root"]},dX,e)};function hX(t,e){const n=qt(),r=yu(),o=rt({props:t,name:e});return se({disableFuture:!1,disablePast:!1},o,{minDate:ro(n,o.minDate,r.minDate),maxDate:ro(n,o.maxDate,r.maxDate)})}const mX=oe("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:zp,boxSizing:"border-box"}),y2=A.forwardRef(function(e,n){const r=hX(e,"MuiMonthCalendar"),{className:o,value:i,defaultValue:s,referenceDate:a,disabled:l,disableFuture:u,disablePast:f,maxDate:p,minDate:m,onChange:b,shouldDisableMonth:v,readOnly:y,autoFocus:x=!1,onMonthFocus:S,hasFocus:k,onFocusedViewChange:T,monthsPerRow:C=3,timezone:O,gridLabelId:I,slots:N,slotProps:L}=r,V=at(r,fX),{value:M,handleValueChange:B,timezone:H}=M0({name:"MonthCalendar",timezone:O,value:i,defaultValue:s,referenceDate:a,onChange:b,valueManager:Jo}),F=Cp(H),P=Ei(),_=qt(),D=A.useMemo(()=>Jo.getInitialReferenceValue({value:M,utils:_,props:r,timezone:H,referenceDate:a,granularity:Go.month}),[]),R=r,j=pX(R),K=A.useMemo(()=>_.getMonth(F),[_,F]),U=A.useMemo(()=>M!=null?_.getMonth(M):null,[M,_]),[Y,fe]=A.useState(()=>U||_.getMonth(D)),[ue,pe]=Lo({name:"MonthCalendar",state:"hasFocus",controlled:k,default:x??!1}),Z=ze(X=>{pe(X),T&&T(X)}),te=A.useCallback(X=>{const ee=_.startOfMonth(f&&_.isAfter(F,m)?F:m),ie=_.startOfMonth(u&&_.isBefore(F,p)?F:p),we=_.startOfMonth(X);return _.isBefore(we,ee)||_.isAfter(we,ie)?!0:v?v(we):!1},[u,f,p,m,F,v,_]),ce=ze((X,ee)=>{if(y)return;const ie=_.setMonth(M??D,ee);B(ie)}),ne=ze(X=>{te(_.setMonth(M??D,X))||(fe(X),Z(!0),S&&S(X))});A.useEffect(()=>{fe(X=>U!==null&&X!==U?U:X)},[U]);const re=ze((X,ee)=>{switch(X.key){case"ArrowUp":ne((12+ee-3)%12),X.preventDefault();break;case"ArrowDown":ne((12+ee+3)%12),X.preventDefault();break;case"ArrowLeft":ne((12+ee+(P?1:-1))%12),X.preventDefault();break;case"ArrowRight":ne((12+ee+(P?-1:1))%12),X.preventDefault();break}}),le=ze((X,ee)=>{ne(ee)}),ye=ze((X,ee)=>{Y===ee&&Z(!1)});return g.jsx(mX,se({ref:n,className:ge(j.root,o),ownerState:R,role:"radiogroup","aria-labelledby":I},V,{children:w0(_,M??D).map(X=>{const ee=_.getMonth(X),ie=_.format(X,"monthShort"),we=_.format(X,"month"),Ce=ee===U,Pe=l||te(X);return g.jsx(uX,{selected:Ce,value:ee,onClick:ce,onKeyDown:re,autoFocus:ue&&ee===Y,disabled:Pe,tabIndex:ee===Y&&!Pe?0:-1,onFocus:le,onBlur:ye,"aria-current":K===ee?"date":void 0,"aria-label":we,monthsPerRow:C,slots:N,slotProps:L,children:ie},ie)})}))});process.env.NODE_ENV!=="production"&&(y2.propTypes={autoFocus:c.bool,classes:c.object,className:c.string,defaultValue:c.object,disabled:c.bool,disableFuture:c.bool,disableHighlightToday:c.bool,disablePast:c.bool,gridLabelId:c.string,hasFocus:c.bool,maxDate:c.object,minDate:c.object,monthsPerRow:c.oneOf([3,4]),onChange:c.func,onFocusedViewChange:c.func,onMonthFocus:c.func,readOnly:c.bool,referenceDate:c.object,shouldDisableMonth:c.func,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,value:c.object});function gX(t){return Ke("MuiPickersYear",t)}const Hp=je("MuiPickersYear",["root","yearButton","selected","disabled"]),yX=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],bX=t=>{const{disabled:e,selected:n,classes:r}=t;return qe({root:["root"],yearButton:["yearButton",e&&"disabled",n&&"selected"]},gX,r)},vX=oe("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(t,e)=>[e.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),xX=oe("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(t,e)=>[e.yearButton,{[`&.${Hp.disabled}`]:e.disabled},{[`&.${Hp.selected}`]:e.selected}]})(({theme:t})=>se({color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.focusOpacity})`:it(t.palette.action.active,t.palette.action.focusOpacity)},"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:it(t.palette.action.active,t.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Hp.disabled}`]:{color:(t.vars||t).palette.text.secondary},[`&.${Hp.selected}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.main,"&:focus, &:hover":{backgroundColor:(t.vars||t).palette.primary.dark}}})),wX=A.memo(function(e){const n=rt({props:e,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:i,disabled:s,selected:a,value:l,tabIndex:u,onClick:f,onKeyDown:p,onFocus:m,onBlur:b,"aria-current":v,slots:y,slotProps:x}=n,S=at(n,yX),k=A.useRef(null),T=bX(n);In(()=>{var I;r&&((I=k.current)==null||I.focus())},[r]);const C=(y==null?void 0:y.yearButton)??xX,O=Mt({elementType:C,externalSlotProps:x==null?void 0:x.yearButton,additionalProps:{children:i,disabled:s,tabIndex:u,ref:k,type:"button",role:"radio","aria-current":v,"aria-checked":a,onClick:I=>f(I,l),onKeyDown:I=>p(I,l),onFocus:I=>m(I,l),onBlur:I=>b(I,l)},ownerState:n,className:T.yearButton});return g.jsx(vX,se({className:ge(T.root,o),ownerState:n},S,{children:g.jsx(C,se({},O))}))});function SX(t){return Ke("MuiYearCalendar",t)}je("MuiYearCalendar",["root"]);const CX=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],TX=t=>{const{classes:e}=t;return qe({root:["root"]},SX,e)};function kX(t,e){const n=qt(),r=yu(),o=rt({props:t,name:e});return se({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:ro(n,o.minDate,r.minDate),maxDate:ro(n,o.maxDate,r.maxDate)})}const EX=oe("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:zp,maxHeight:mJ,boxSizing:"border-box",position:"relative"}),b2=A.forwardRef(function(e,n){const r=kX(e,"MuiYearCalendar"),{autoFocus:o,className:i,value:s,defaultValue:a,referenceDate:l,disabled:u,disableFuture:f,disablePast:p,maxDate:m,minDate:b,onChange:v,readOnly:y,shouldDisableYear:x,onYearFocus:S,hasFocus:k,onFocusedViewChange:T,yearsOrder:C="asc",yearsPerRow:O,timezone:I,gridLabelId:N,slots:L,slotProps:V}=r,M=at(r,CX),{value:B,handleValueChange:H,timezone:F}=M0({name:"YearCalendar",timezone:I,value:s,defaultValue:a,referenceDate:l,onChange:v,valueManager:Jo}),P=Cp(F),_=Ei(),D=qt(),R=A.useMemo(()=>Jo.getInitialReferenceValue({value:B,utils:D,props:r,timezone:F,referenceDate:l,granularity:Go.year}),[]),j=r,K=TX(j),U=A.useMemo(()=>D.getYear(P),[D,P]),Y=A.useMemo(()=>B!=null?D.getYear(B):null,[B,D]),[fe,ue]=A.useState(()=>Y||D.getYear(R)),[pe,Z]=Lo({name:"YearCalendar",state:"hasFocus",controlled:k,default:o??!1}),te=ze(Me=>{Z(Me),T&&T(Me)}),ce=A.useCallback(Me=>{if(p&&D.isBeforeYear(Me,P)||f&&D.isAfterYear(Me,P)||b&&D.isBeforeYear(Me,b)||m&&D.isAfterYear(Me,m))return!0;if(!x)return!1;const Ie=D.startOfYear(Me);return x(Ie)},[f,p,m,b,P,x,D]),ne=ze((Me,Ie)=>{if(y)return;const me=D.setYear(B??R,Ie);H(me)}),re=ze(Me=>{ce(D.setYear(B??R,Me))||(ue(Me),te(!0),S==null||S(Me))});A.useEffect(()=>{ue(Me=>Y!==null&&Me!==Y?Y:Me)},[Y]);const le=C!=="desc"?O*1:O*-1,ye=_&&C==="asc"||!_&&C==="desc"?-1:1,X=ze((Me,Ie)=>{switch(Me.key){case"ArrowUp":re(Ie-le),Me.preventDefault();break;case"ArrowDown":re(Ie+le),Me.preventDefault();break;case"ArrowLeft":re(Ie-ye),Me.preventDefault();break;case"ArrowRight":re(Ie+ye),Me.preventDefault();break}}),ee=ze((Me,Ie)=>{re(Ie)}),ie=ze((Me,Ie)=>{fe===Ie&&te(!1)}),we=A.useRef(null),Ce=Ot(n,we);A.useEffect(()=>{if(o||we.current===null)return;const Me=we.current.querySelector('[tabindex="0"]');if(!Me)return;const Ie=Me.offsetHeight,me=Me.offsetTop,Be=we.current.clientHeight,De=we.current.scrollTop,yt=me+Ie;Ie>Be||me<De||(we.current.scrollTop=yt-Be/2-Ie/2)},[o]);const Pe=D.getYearRange([b,m]);return C==="desc"&&Pe.reverse(),g.jsx(EX,se({ref:Ce,className:ge(K.root,i),ownerState:j,role:"radiogroup","aria-labelledby":N},M,{children:Pe.map(Me=>{const Ie=D.getYear(Me),me=Ie===Y,Be=u||ce(Me);return g.jsx(wX,{selected:me,value:Ie,onClick:ne,onKeyDown:X,autoFocus:pe&&Ie===fe,disabled:Be,tabIndex:Ie===fe&&!Be?0:-1,onFocus:ee,onBlur:ie,"aria-current":U===Ie?"date":void 0,yearsPerRow:O,slots:L,slotProps:V,children:D.format(Me,"year")},D.format(Me,"year"))})}))});process.env.NODE_ENV!=="production"&&(b2.propTypes={autoFocus:c.bool,classes:c.object,className:c.string,defaultValue:c.object,disabled:c.bool,disableFuture:c.bool,disableHighlightToday:c.bool,disablePast:c.bool,gridLabelId:c.string,hasFocus:c.bool,maxDate:c.object,minDate:c.object,onChange:c.func,onFocusedViewChange:c.func,onYearFocus:c.func,readOnly:c.bool,referenceDate:c.object,shouldDisableYear:c.func,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,value:c.object,yearsOrder:c.oneOf(["asc","desc"]),yearsPerRow:c.oneOf([3,4])});const OX=t=>Ke("MuiPickersCalendarHeader",t),MX=je("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function _X(t){return Ke("MuiPickersArrowSwitcher",t)}je("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const IX=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],DX=["ownerState"],AX=["ownerState"],PX=oe("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex"}),NX=oe("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(t,e)=>e.spacer})(({theme:t})=>({width:t.spacing(3)})),v2=oe(_l,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(t,e)=>e.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),$X=t=>{const{classes:e}=t;return qe({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},_X,e)},LX=A.forwardRef(function(e,n){const r=Ei(),o=rt({props:e,name:"MuiPickersArrowSwitcher"}),{children:i,className:s,slots:a,slotProps:l,isNextDisabled:u,isNextHidden:f,onGoToNext:p,nextLabel:m,isPreviousDisabled:b,isPreviousHidden:v,onGoToPrevious:y,previousLabel:x,labelId:S}=o,k=at(o,IX),T=o,C=$X(T),O={isDisabled:u,isHidden:f,goTo:p,label:m},I={isDisabled:b,isHidden:v,goTo:y,label:x},N=(a==null?void 0:a.previousIconButton)??v2,L=Mt({elementType:N,externalSlotProps:l==null?void 0:l.previousIconButton,additionalProps:{size:"medium",title:I.label,"aria-label":I.label,disabled:I.isDisabled,edge:"end",onClick:I.goTo},ownerState:se({},T,{hidden:I.isHidden}),className:ge(C.button,C.previousIconButton)}),V=(a==null?void 0:a.nextIconButton)??v2,M=Mt({elementType:V,externalSlotProps:l==null?void 0:l.nextIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"start",onClick:O.goTo},ownerState:se({},T,{hidden:O.isHidden}),className:ge(C.button,C.nextIconButton)}),B=(a==null?void 0:a.leftArrowIcon)??SK,H=Mt({elementType:B,externalSlotProps:l==null?void 0:l.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:T,className:C.leftArrowIcon}),F=at(H,DX),P=(a==null?void 0:a.rightArrowIcon)??CK,_=Mt({elementType:P,externalSlotProps:l==null?void 0:l.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:T,className:C.rightArrowIcon}),D=at(_,AX);return g.jsxs(PX,se({ref:n,className:ge(C.root,s),ownerState:T},k,{children:[g.jsx(N,se({},L,{children:r?g.jsx(P,se({},D)):g.jsx(B,se({},F))})),i?g.jsx(ko,{variant:"subtitle1",component:"span",id:S,children:i}):g.jsx(NX,{className:C.spacer,ownerState:T}),g.jsx(V,se({},M,{children:r?g.jsx(B,se({},F)):g.jsx(P,se({},D))}))]}))});function BX(t,{disableFuture:e,maxDate:n,timezone:r}){const o=qt();return A.useMemo(()=>{const i=o.date(void 0,r),s=o.startOfMonth(e&&o.isBefore(i,n)?i:n);return!o.isAfter(s,t)},[e,n,t,o,r])}function FX(t,{disablePast:e,minDate:n,timezone:r}){const o=qt();return A.useMemo(()=>{const i=o.date(void 0,r),s=o.startOfMonth(e&&o.isAfter(i,n)?i:n);return!o.isBefore(s,t)},[e,n,t,o,r])}const RX=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],zX=["ownerState"],VX=t=>{const{classes:e}=t;return qe({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},OX,e)},HX=oe("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),WX=oe("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(t,e)=>e.labelContainer})(({theme:t})=>se({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},t.typography.body1,{fontWeight:t.typography.fontWeightMedium})),jX=oe("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(t,e)=>e.label})({marginRight:6}),UX=oe(_l,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(t,e)=>e.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${MX.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),qX=oe(wK,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(t,e)=>e.switchViewIcon})(({theme:t})=>({willChange:"transform",transition:t.transitions.create("transform"),transform:"rotate(0deg)"})),x2=A.forwardRef(function(e,n){const r=Oi(),o=qt(),i=rt({props:e,name:"MuiPickersCalendarHeader"}),{slots:s,slotProps:a,currentMonth:l,disabled:u,disableFuture:f,disablePast:p,maxDate:m,minDate:b,onMonthChange:v,onViewChange:y,view:x,reduceAnimations:S,views:k,labelId:T,className:C,timezone:O,format:I=`${o.formats.month} ${o.formats.year}`}=i,N=at(i,RX),L=i,V=VX(i),M=(s==null?void 0:s.switchViewButton)??UX,B=Mt({elementType:M,externalSlotProps:a==null?void 0:a.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(x)},ownerState:L,className:V.switchViewButton}),H=(s==null?void 0:s.switchViewIcon)??qX,F=Mt({elementType:H,externalSlotProps:a==null?void 0:a.switchViewIcon,ownerState:L,className:V.switchViewIcon}),P=at(F,zX),_=()=>v(o.addMonths(l,1),"left"),D=()=>v(o.addMonths(l,-1),"right"),R=BX(l,{disableFuture:f,maxDate:m,timezone:O}),j=FX(l,{disablePast:p,minDate:b,timezone:O}),K=()=>{if(!(k.length===1||!y||u))if(k.length===2)y(k.find(Y=>Y!==x)||k[0]);else{const Y=k.indexOf(x)!==0?0:1;y(k[Y])}};if(k.length===1&&k[0]==="year")return null;const U=o.formatByString(l,I);return g.jsxs(HX,se({},N,{ownerState:L,className:ge(V.root,C),ref:n,children:[g.jsxs(WX,{role:"presentation",onClick:K,ownerState:L,"aria-live":"polite",className:V.labelContainer,children:[g.jsx(f2,{reduceAnimations:S,transKey:U,children:g.jsx(jX,{id:T,ownerState:L,className:V.label,children:U})}),k.length>1&&!u&&g.jsx(M,se({},B,{children:g.jsx(H,se({},P))}))]}),g.jsx(Ho,{in:x==="day",appear:!S,enter:!S,children:g.jsx(LX,{slots:s,slotProps:a,onGoToPrevious:D,isPreviousDisabled:j,previousLabel:r.previousMonth,onGoToNext:_,isNextDisabled:R,nextLabel:r.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(x2.propTypes={classes:c.object,className:c.string,currentMonth:c.object.isRequired,disabled:c.bool,disableFuture:c.bool,disablePast:c.bool,format:c.string,labelId:c.string,maxDate:c.object.isRequired,minDate:c.object.isRequired,onMonthChange:c.func.isRequired,onViewChange:c.func,reduceAnimations:c.bool.isRequired,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string.isRequired,view:c.oneOf(["day","month","year"]).isRequired,views:c.arrayOf(c.oneOf(["day","month","year"]).isRequired).isRequired});const KX=oe("div")({overflow:"hidden",width:zp,maxHeight:B0,display:"flex",flexDirection:"column",margin:"0 auto"}),YX=t=>Ke("MuiDateCalendar",t);je("MuiDateCalendar",["root","viewTransitionContainer"]);const GX=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],JX=t=>{const{classes:e}=t;return qe({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},YX,e)};function XX(t,e){const n=qt(),r=yu(),o=t2(),i=rt({props:t,name:e});return se({},i,{loading:i.loading??!1,disablePast:i.disablePast??!1,disableFuture:i.disableFuture??!1,openTo:i.openTo??"day",views:i.views??["year","day"],reduceAnimations:i.reduceAnimations??o,renderLoading:i.renderLoading??(()=>g.jsx("span",{children:"..."})),minDate:ro(n,i.minDate,r.minDate),maxDate:ro(n,i.maxDate,r.maxDate)})}const ZX=oe(KX,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"flex",flexDirection:"column",height:B0}),QX=oe(f2,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(t,e)=>e.viewTransitionContainer})({}),w2=A.forwardRef(function(e,n){const r=qt(),o=vo(),i=XX(e,"MuiDateCalendar"),{autoFocus:s,onViewChange:a,value:l,defaultValue:u,referenceDate:f,disableFuture:p,disablePast:m,onChange:b,onYearChange:v,onMonthChange:y,reduceAnimations:x,shouldDisableDate:S,shouldDisableMonth:k,shouldDisableYear:T,view:C,views:O,openTo:I,className:N,disabled:L,readOnly:V,minDate:M,maxDate:B,disableHighlightToday:H,focusedView:F,onFocusedViewChange:P,showDaysOutsideCurrentMonth:_,fixedWeekNumber:D,dayOfWeekFormatter:R,slots:j,slotProps:K,loading:U,renderLoading:Y,displayWeekNumber:fe,yearsOrder:ue,yearsPerRow:pe,monthsPerRow:Z,timezone:te}=i,ce=at(i,GX),{value:ne,handleValueChange:re,timezone:le}=M0({name:"DateCalendar",timezone:te,value:l,defaultValue:u,referenceDate:f,onChange:b,valueManager:Jo}),{view:ye,setView:X,focusedView:ee,setFocusedView:ie,goToNextView:we,setValueAndGoToNextView:Ce}=n2({view:C,views:O,openTo:I,onChange:re,onViewChange:a,autoFocus:s,focusedView:F,onFocusedViewChange:P}),{referenceDate:Pe,calendarState:Me,changeFocusedDay:Ie,changeMonth:me,handleChangeMonth:Be,isDateDisabled:De,onMonthSwitchingAnimationEnd:yt}=_J({value:ne,referenceDate:f,reduceAnimations:x,onMonthChange:y,minDate:M,maxDate:B,shouldDisableDate:S,disablePast:m,disableFuture:p,timezone:le}),ct=L&&ne||M,wn=L&&ne||B,Pn=`${o}-grid-label`,on=ee!==null,gn=(j==null?void 0:j.calendarHeader)??x2,Sn=Mt({elementType:gn,externalSlotProps:K==null?void 0:K.calendarHeader,additionalProps:{views:O,view:ye,currentMonth:Me.currentMonth,onViewChange:X,onMonthChange:(Qe,Pt)=>Be({newMonth:Qe,direction:Pt}),minDate:ct,maxDate:wn,disabled:L,disablePast:m,disableFuture:p,reduceAnimations:x,timezone:le,labelId:Pn},ownerState:i}),Jn=ze(Qe=>{const Pt=r.startOfMonth(Qe),Xn=r.endOfMonth(Qe),ir=De(Qe)?hu({utils:r,date:Qe,minDate:r.isBefore(M,Pt)?Pt:M,maxDate:r.isAfter(B,Xn)?Xn:B,disablePast:m,disableFuture:p,isDateDisabled:De,timezone:le}):Qe;ir?(Ce(ir,"finish"),y==null||y(Pt)):(we(),me(Pt)),Ie(ir,!0)}),ot=ze(Qe=>{const Pt=r.startOfYear(Qe),Xn=r.endOfYear(Qe),ir=De(Qe)?hu({utils:r,date:Qe,minDate:r.isBefore(M,Pt)?Pt:M,maxDate:r.isAfter(B,Xn)?Xn:B,disablePast:m,disableFuture:p,isDateDisabled:De,timezone:le}):Qe;ir?(Ce(ir,"finish"),v==null||v(ir)):(we(),me(Pt)),Ie(ir,!0)}),Mn=ze(Qe=>re(Qe&&wp(r,Qe,ne??Pe),"finish",ye));A.useEffect(()=>{ne!=null&&r.isValid(ne)&&me(ne)},[ne]);const Zt=i,be=JX(Zt),Ve={disablePast:m,disableFuture:p,maxDate:B,minDate:M},Ee={disableHighlightToday:H,readOnly:V,disabled:L,timezone:le,gridLabelId:Pn,slots:j,slotProps:K},He=A.useRef(ye);A.useEffect(()=>{He.current!==ye&&(ee===He.current&&ie(ye,!0),He.current=ye)},[ee,ie,ye]);const Ye=A.useMemo(()=>[ne],[ne]);return g.jsxs(ZX,se({ref:n,className:ge(be.root,N),ownerState:Zt},ce,{children:[g.jsx(gn,se({},Sn,{slots:j,slotProps:K})),g.jsx(QX,{reduceAnimations:x,className:be.viewTransitionContainer,transKey:ye,ownerState:Zt,children:g.jsxs("div",{children:[ye==="year"&&g.jsx(b2,se({},Ve,Ee,{value:ne,onChange:ot,shouldDisableYear:T,hasFocus:on,onFocusedViewChange:Qe=>ie("year",Qe),yearsOrder:ue,yearsPerRow:pe,referenceDate:Pe})),ye==="month"&&g.jsx(y2,se({},Ve,Ee,{hasFocus:on,className:N,value:ne,onChange:Jn,shouldDisableMonth:k,onFocusedViewChange:Qe=>ie("month",Qe),monthsPerRow:Z,referenceDate:Pe})),ye==="day"&&g.jsx(oX,se({},Me,Ve,Ee,{onMonthSwitchingAnimationEnd:yt,onFocusedDayChange:Ie,reduceAnimations:x,selectedDays:Ye,onSelectedDaysChange:Mn,shouldDisableDate:S,shouldDisableMonth:k,shouldDisableYear:T,hasFocus:on,onFocusedViewChange:Qe=>ie("day",Qe),showDaysOutsideCurrentMonth:_,fixedWeekNumber:D,dayOfWeekFormatter:R,displayWeekNumber:fe,loading:U,renderLoading:Y}))]})})]}))});process.env.NODE_ENV!=="production"&&(w2.propTypes={autoFocus:c.bool,classes:c.object,className:c.string,dayOfWeekFormatter:c.func,defaultValue:c.object,disabled:c.bool,disableFuture:c.bool,disableHighlightToday:c.bool,disablePast:c.bool,displayWeekNumber:c.bool,fixedWeekNumber:c.number,focusedView:c.oneOf(["day","month","year"]),loading:c.bool,maxDate:c.object,minDate:c.object,monthsPerRow:c.oneOf([3,4]),onChange:c.func,onFocusedViewChange:c.func,onMonthChange:c.func,onViewChange:c.func,onYearChange:c.func,openTo:c.oneOf(["day","month","year"]),readOnly:c.bool,reduceAnimations:c.bool,referenceDate:c.object,renderLoading:c.func,shouldDisableDate:c.func,shouldDisableMonth:c.func,shouldDisableYear:c.func,showDaysOutsideCurrentMonth:c.bool,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,value:c.object,view:c.oneOf(["day","month","year"]),views:c.arrayOf(c.oneOf(["day","month","year"]).isRequired),yearsOrder:c.oneOf(["asc","desc"]),yearsPerRow:c.oneOf([3,4])});const Nl=({view:t,onViewChange:e,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:s,referenceDate:a,onChange:l,className:u,classes:f,disableFuture:p,disablePast:m,minDate:b,maxDate:v,shouldDisableDate:y,shouldDisableMonth:x,shouldDisableYear:S,reduceAnimations:k,onMonthChange:T,monthsPerRow:C,onYearChange:O,yearsOrder:I,yearsPerRow:N,slots:L,slotProps:V,loading:M,renderLoading:B,disableHighlightToday:H,readOnly:F,disabled:P,showDaysOutsideCurrentMonth:_,dayOfWeekFormatter:D,sx:R,autoFocus:j,fixedWeekNumber:K,displayWeekNumber:U,timezone:Y})=>g.jsx(w2,{view:t,onViewChange:e,views:n.filter(l_),focusedView:r&&l_(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:s,referenceDate:a,onChange:l,className:u,classes:f,disableFuture:p,disablePast:m,minDate:b,maxDate:v,shouldDisableDate:y,shouldDisableMonth:x,shouldDisableYear:S,reduceAnimations:k,onMonthChange:T,monthsPerRow:C,onYearChange:O,yearsOrder:I,yearsPerRow:N,slots:L,slotProps:V,loading:M,renderLoading:B,disableHighlightToday:H,readOnly:F,disabled:P,showDaysOutsideCurrentMonth:_,dayOfWeekFormatter:D,sx:R,autoFocus:j,fixedWeekNumber:K,displayWeekNumber:U,timezone:Y}),S2=A.forwardRef(function(e,n){var u,f;const r=Oi(),o=qt(),i=Z_(e,"MuiDesktopDatePicker"),s=se({day:Nl,month:Nl,year:Nl},i.viewRenderers),a=se({},i,{viewRenderers:s,format:S0(o,i,!1),yearsPerRow:i.yearsPerRow??4,slots:se({openPickerIcon:TK,field:Fp},i.slots),slotProps:se({},i.slotProps,{field:p=>{var m;return se({},sd((m=i.slotProps)==null?void 0:m.field,p),S_(i),{ref:n})},toolbar:se({hidden:!0},(u=i.slotProps)==null?void 0:u.toolbar)})}),{renderPicker:l}=OJ({props:a,valueManager:Jo,valueType:"date",getOpenDialogAriaText:C_({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(f=a.localeText)==null?void 0:f.openDatePickerDialogue}),validator:gu});return l()});S2.propTypes={autoFocus:c.bool,className:c.string,closeOnSelect:c.bool,dayOfWeekFormatter:c.func,defaultValue:c.object,disabled:c.bool,disableFuture:c.bool,disableHighlightToday:c.bool,disableOpenPicker:c.bool,disablePast:c.bool,displayWeekNumber:c.bool,enableAccessibleFieldDOMStructure:c.any,fixedWeekNumber:c.number,format:c.string,formatDensity:c.oneOf(["dense","spacious"]),inputRef:kn,label:c.node,loading:c.bool,localeText:c.object,maxDate:c.object,minDate:c.object,monthsPerRow:c.oneOf([3,4]),name:c.string,onAccept:c.func,onChange:c.func,onClose:c.func,onError:c.func,onMonthChange:c.func,onOpen:c.func,onSelectedSectionsChange:c.func,onViewChange:c.func,onYearChange:c.func,open:c.bool,openTo:c.oneOf(["day","month","year"]),orientation:c.oneOf(["landscape","portrait"]),readOnly:c.bool,reduceAnimations:c.bool,referenceDate:c.object,renderLoading:c.func,selectedSections:c.oneOfType([c.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),c.number]),shouldDisableDate:c.func,shouldDisableMonth:c.func,shouldDisableYear:c.func,showDaysOutsideCurrentMonth:c.bool,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,value:c.object,view:c.oneOf(["day","month","year"]),viewRenderers:c.shape({day:c.func,month:c.func,year:c.func}),views:c.arrayOf(c.oneOf(["day","month","year"]).isRequired),yearsOrder:c.oneOf(["asc","desc"]),yearsPerRow:c.oneOf([3,4])};function eZ(t){return Ke("MuiDialogContent",t)}je("MuiDialogContent",["root","dividers"]);const tZ=je("MuiDialogTitle",["root"]),nZ=t=>{const{classes:e,dividers:n}=t;return qe({root:["root",n&&"dividers"]},eZ,e)},rZ=oe("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.dividers&&e.dividers]}})(bt(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${tZ.root} + &`]:{paddingTop:0}}}]}))),C2=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiDialogContent"}),{className:o,dividers:i=!1,...s}=r,a={...r,dividers:i},l=nZ(a);return g.jsx(rZ,{className:ge(l.root,o),ownerState:a,ref:n,...s})});process.env.NODE_ENV!=="production"&&(C2.propTypes={children:c.node,classes:c.object,className:c.string,dividers:c.bool,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object])});function oZ(t){return Ke("MuiDialog",t)}const ku=je("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),T2=A.createContext({});process.env.NODE_ENV!=="production"&&(T2.displayName="DialogContext");const iZ=oe(Dy,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),sZ=t=>{const{classes:e,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=t,s={root:["root"],container:["container",`scroll${Ne(n)}`],paper:["paper",`paperScroll${Ne(n)}`,`paperWidth${Ne(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return qe(s,oZ,e)},aZ=oe(Ay,{name:"MuiDialog",slot:"Root",overridesResolver:(t,e)=>e.root})({"@media print":{position:"absolute !important"}}),lZ=oe("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.container,e[`scroll${Ne(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),cZ=oe(fs,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.paper,e[`scrollPaper${Ne(n.scroll)}`],e[`paperWidth${Ne(String(n.maxWidth))}`],n.fullWidth&&e.paperFullWidth,n.fullScreen&&e.paperFullScreen]}})(bt(({theme:t})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${ku.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(e=>e!=="xs").map(e=>({props:{maxWidth:e},style:{maxWidth:`${t.breakpoints.values[e]}${t.breakpoints.unit}`,[`&.${ku.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${ku.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),k2=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiDialog"}),o=wo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,"aria-modal":l=!0,BackdropComponent:u,BackdropProps:f,children:p,className:m,disableEscapeKeyDown:b=!1,fullScreen:v=!1,fullWidth:y=!1,maxWidth:x="sm",onBackdropClick:S,onClick:k,onClose:T,open:C,PaperComponent:O=fs,PaperProps:I={},scroll:N="paper",slots:L={},slotProps:V={},TransitionComponent:M=Ho,transitionDuration:B=i,TransitionProps:H,...F}=r,P={...r,disableEscapeKeyDown:b,fullScreen:v,fullWidth:y,maxWidth:x,scroll:N},_=sZ(P),D=A.useRef(),R=ie=>{D.current=ie.target===ie.currentTarget},j=ie=>{k&&k(ie),D.current&&(D.current=null,S&&S(ie),T&&T(ie,"backdropClick"))},K=vo(a),U=A.useMemo(()=>({titleId:K}),[K]),Y={transition:M,...L},fe={transition:H,paper:I,backdrop:f,...V},ue={slots:Y,slotProps:fe},[pe,Z]=_t("root",{elementType:aZ,shouldForwardComponentProp:!0,externalForwardedProps:ue,ownerState:P,className:ge(_.root,m),ref:n}),[te,ce]=_t("backdrop",{elementType:iZ,shouldForwardComponentProp:!0,externalForwardedProps:ue,ownerState:P}),[ne,re]=_t("paper",{elementType:cZ,shouldForwardComponentProp:!0,externalForwardedProps:ue,ownerState:P,className:ge(_.paper,I.className)}),[le,ye]=_t("container",{elementType:lZ,externalForwardedProps:ue,ownerState:P,className:ge(_.container)}),[X,ee]=_t("transition",{elementType:Ho,externalForwardedProps:ue,ownerState:P,additionalProps:{appear:!0,in:C,timeout:B,role:"presentation"}});return g.jsx(pe,{closeAfterTransition:!0,slots:{backdrop:te},slotProps:{backdrop:{transitionDuration:B,as:u,...ce}},disableEscapeKeyDown:b,onClose:T,open:C,onClick:j,...Z,...F,children:g.jsx(X,{...ee,children:g.jsx(le,{onMouseDown:R,...ye,children:g.jsx(ne,{as:O,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":K,"aria-modal":l,...re,children:g.jsx(T2.Provider,{value:U,children:p})})})})})});process.env.NODE_ENV!=="production"&&(k2.propTypes={"aria-describedby":c.string,"aria-labelledby":c.string,"aria-modal":c.oneOfType([c.oneOf(["false","true"]),c.bool]),BackdropComponent:c.elementType,BackdropProps:c.object,children:c.node,classes:c.object,className:c.string,disableEscapeKeyDown:c.bool,fullScreen:c.bool,fullWidth:c.bool,maxWidth:c.oneOfType([c.oneOf(["xs","sm","md","lg","xl",!1]),c.string]),onBackdropClick:c.func,onClick:c.func,onClose:c.func,open:c.bool.isRequired,PaperComponent:c.elementType,PaperProps:c.object,scroll:c.oneOf(["body","paper"]),slotProps:c.shape({backdrop:c.oneOfType([c.func,c.object]),container:c.oneOfType([c.func,c.object]),paper:c.oneOfType([c.func,c.object]),root:c.oneOfType([c.func,c.object]),transition:c.oneOfType([c.func,c.object])}),slots:c.shape({backdrop:c.elementType,container:c.elementType,paper:c.elementType,root:c.elementType,transition:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),TransitionComponent:c.elementType,transitionDuration:c.oneOfType([c.number,c.shape({appear:c.number,enter:c.number,exit:c.number})]),TransitionProps:c.object});const uZ=oe(k2)({[`& .${ku.container}`]:{outline:0},[`& .${ku.paper}`]:{outline:0,minWidth:zp}}),dZ=oe(C2)({"&:first-of-type":{padding:0}});function fZ(t){const{children:e,onDismiss:n,open:r,slots:o,slotProps:i}=t,s=(o==null?void 0:o.dialog)??uZ,a=(o==null?void 0:o.mobileTransition)??Ho;return g.jsx(s,se({open:r,onClose:n},i==null?void 0:i.dialog,{TransitionComponent:a,TransitionProps:i==null?void 0:i.mobileTransition,PaperComponent:o==null?void 0:o.mobilePaper,PaperProps:i==null?void 0:i.mobilePaper,children:g.jsx(dZ,{children:e})}))}const pZ=["props","getOpenDialogAriaText"],hZ=t=>{var Y;let{props:e,getOpenDialogAriaText:n}=t,r=at(t,pZ);const{slots:o,slotProps:i,className:s,sx:a,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:m,timezone:b,name:v,label:y,inputRef:x,readOnly:S,disabled:k,localeText:T}=e,C=A.useRef(null),O=vo(),I=((Y=i==null?void 0:i.toolbar)==null?void 0:Y.hidden)??!1,{open:N,actions:L,layoutProps:V,renderCurrentView:M,fieldProps:B,contextValue:H}=o2(se({},r,{props:e,fieldRef:C,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),F=o.field,P=Mt({elementType:F,externalSlotProps:i==null?void 0:i.field,additionalProps:se({},B,I&&{id:O},!(k||S)&&{onClick:L.onOpen,onKeyDown:aK(L.onOpen)},{readOnly:S??!0,disabled:k,className:s,sx:a,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:m,timezone:b,label:y,name:v},x?{inputRef:x}:{}),ownerState:e});P.inputProps=se({},P.inputProps,{"aria-label":n(B.value)});const _=se({textField:o.textField},P.slots),D=o.layout??F0;let R=O;I&&(y?R=`${O}-label`:R=void 0);const j=se({},i,{toolbar:se({},i==null?void 0:i.toolbar,{titleId:O}),mobilePaper:se({"aria-labelledby":R},i==null?void 0:i.mobilePaper)}),K=Ot(C,P.unstableFieldRef);return{renderPicker:()=>g.jsxs(I_,{contextValue:H,localeText:T,children:[g.jsx(F,se({},P,{slots:_,slotProps:j,unstableFieldRef:K})),g.jsx(fZ,se({},L,{open:N,slots:o,slotProps:j,children:g.jsx(D,se({},V,j==null?void 0:j.layout,{slots:o,slotProps:j,children:M()}))}))]})}},E2=A.forwardRef(function(e,n){var u,f;const r=Oi(),o=qt(),i=Z_(e,"MuiMobileDatePicker"),s=se({day:Nl,month:Nl,year:Nl},i.viewRenderers),a=se({},i,{viewRenderers:s,format:S0(o,i,!1),slots:se({field:Fp},i.slots),slotProps:se({},i.slotProps,{field:p=>{var m;return se({},sd((m=i.slotProps)==null?void 0:m.field,p),S_(i),{ref:n})},toolbar:se({hidden:!1},(u=i.slotProps)==null?void 0:u.toolbar)})}),{renderPicker:l}=hZ({props:a,valueManager:Jo,valueType:"date",getOpenDialogAriaText:C_({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:(f=a.localeText)==null?void 0:f.openDatePickerDialogue}),validator:gu});return l()});E2.propTypes={autoFocus:c.bool,className:c.string,closeOnSelect:c.bool,dayOfWeekFormatter:c.func,defaultValue:c.object,disabled:c.bool,disableFuture:c.bool,disableHighlightToday:c.bool,disableOpenPicker:c.bool,disablePast:c.bool,displayWeekNumber:c.bool,enableAccessibleFieldDOMStructure:c.any,fixedWeekNumber:c.number,format:c.string,formatDensity:c.oneOf(["dense","spacious"]),inputRef:kn,label:c.node,loading:c.bool,localeText:c.object,maxDate:c.object,minDate:c.object,monthsPerRow:c.oneOf([3,4]),name:c.string,onAccept:c.func,onChange:c.func,onClose:c.func,onError:c.func,onMonthChange:c.func,onOpen:c.func,onSelectedSectionsChange:c.func,onViewChange:c.func,onYearChange:c.func,open:c.bool,openTo:c.oneOf(["day","month","year"]),orientation:c.oneOf(["landscape","portrait"]),readOnly:c.bool,reduceAnimations:c.bool,referenceDate:c.object,renderLoading:c.func,selectedSections:c.oneOfType([c.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),c.number]),shouldDisableDate:c.func,shouldDisableMonth:c.func,shouldDisableYear:c.func,showDaysOutsideCurrentMonth:c.bool,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,value:c.object,view:c.oneOf(["day","month","year"]),viewRenderers:c.shape({day:c.func,month:c.func,year:c.func}),views:c.arrayOf(c.oneOf(["day","month","year"]).isRequired),yearsOrder:c.oneOf(["asc","desc"]),yearsPerRow:c.oneOf([3,4])};const mZ=["desktopModeMediaQuery"],O2=A.forwardRef(function(e,n){const r=rt({props:e,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=lK}=r,i=at(r,mZ);return J_(o,{defaultMatches:!0})?g.jsx(S2,se({ref:n},i)):g.jsx(E2,se({ref:n},i))});process.env.NODE_ENV!=="production"&&(O2.propTypes={autoFocus:c.bool,className:c.string,closeOnSelect:c.bool,dayOfWeekFormatter:c.func,defaultValue:c.object,desktopModeMediaQuery:c.string,disabled:c.bool,disableFuture:c.bool,disableHighlightToday:c.bool,disableOpenPicker:c.bool,disablePast:c.bool,displayWeekNumber:c.bool,enableAccessibleFieldDOMStructure:c.any,fixedWeekNumber:c.number,format:c.string,formatDensity:c.oneOf(["dense","spacious"]),inputRef:kn,label:c.node,loading:c.bool,localeText:c.object,maxDate:c.object,minDate:c.object,monthsPerRow:c.oneOf([3,4]),name:c.string,onAccept:c.func,onChange:c.func,onClose:c.func,onError:c.func,onMonthChange:c.func,onOpen:c.func,onSelectedSectionsChange:c.func,onViewChange:c.func,onYearChange:c.func,open:c.bool,openTo:c.oneOf(["day","month","year"]),orientation:c.oneOf(["landscape","portrait"]),readOnly:c.bool,reduceAnimations:c.bool,referenceDate:c.object,renderLoading:c.func,selectedSections:c.oneOfType([c.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),c.number]),shouldDisableDate:c.func,shouldDisableMonth:c.func,shouldDisableYear:c.func,showDaysOutsideCurrentMonth:c.bool,slotProps:c.object,slots:c.object,sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),timezone:c.string,value:c.object,view:c.oneOf(["day","month","year"]),viewRenderers:c.shape({day:c.func,month:c.func,year:c.func}),views:c.arrayOf(c.oneOf(["day","month","year"]).isRequired),yearsOrder:c.oneOf(["asc","desc"]),yearsPerRow:c.oneOf([3,4])});var Wp={exports:{}},gZ=Wp.exports,M2;function yZ(){return M2||(M2=1,(function(t,e){(function(n,r){t.exports=r()})(gZ,(function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(i,s,a){var l=s.prototype;a.utc=function(y){var x={date:y,utc:!0,args:arguments};return new s(x)},l.utc=function(y){var x=a(this.toDate(),{locale:this.$L,utc:!0});return y?x.add(this.utcOffset(),n):x},l.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var u=l.parse;l.parse=function(y){y.utc&&(this.$u=!0),this.$utils().u(y.$offset)||(this.$offset=y.$offset),u.call(this,y)};var f=l.init;l.init=function(){if(this.$u){var y=this.$d;this.$y=y.getUTCFullYear(),this.$M=y.getUTCMonth(),this.$D=y.getUTCDate(),this.$W=y.getUTCDay(),this.$H=y.getUTCHours(),this.$m=y.getUTCMinutes(),this.$s=y.getUTCSeconds(),this.$ms=y.getUTCMilliseconds()}else f.call(this)};var p=l.utcOffset;l.utcOffset=function(y,x){var S=this.$utils().u;if(S(y))return this.$u?0:S(this.$offset)?p.call(this):this.$offset;if(typeof y=="string"&&(y=(function(O){O===void 0&&(O="");var I=O.match(r);if(!I)return null;var N=(""+I[0]).match(o)||["-",0,0],L=N[0],V=60*+N[1]+ +N[2];return V===0?0:L==="+"?V:-V})(y),y===null))return this;var k=Math.abs(y)<=16?60*y:y;if(k===0)return this.utc(x);var T=this.clone();if(x)return T.$offset=k,T.$u=!1,T;var C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(T=this.local().add(k+C,n)).$offset=k,T.$x.$localOffset=C,T};var m=l.format;l.format=function(y){var x=y||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,x)},l.valueOf=function(){var y=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*y},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var b=l.toDate;l.toDate=function(y){return y==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():b.call(this)};var v=l.diff;l.diff=function(y,x,S){if(y&&this.$u===y.$u)return v.call(this,y,x,S);var k=this.local(),T=a(y).local();return v.call(k,T,x,S)}}}))})(Wp)),Wp.exports}var bZ=yZ();const vZ=Un(bZ);rn.extend(vZ),rn.extend(e_);const _2=t=>{if(!t)return null;const e=rn.utc(t);return e&&e.isValid()?rn(e):null},jp=t=>{const e=t==null?void 0:t.utc();return!e||!e.isValid()?"":e.toISOString()},xZ=t=>{const e=rn(wZ(t),["D MMM YYYY","D MMMM YYYY","DD MMM YYYY","DD MMMM YYYY","YYYY-MM-DD","MM-DD-YYYY","YYYY/MM/DD","MM/DD/YYYY"],!0);return jp(e)},wZ=t=>t.toLowerCase().replace(/\b\w/g,e=>e.toUpperCase()),SZ={invalidDate:"Date selected is invalid",minDate:"Date selected is too far in the past",maxDate:"Date selected is too far in the future",disableFuture:"Date selected cannot be in the future",disablePast:"Date selected cannot be in the past"},Up=t=>{const{name:e,label:n=Ln(e),required:r=!1,readOnly:o=!1,format:i="MM/DD/YYYY",errorMessages:s,isDatePicker:a=!1,margin:l="dense",staticLabel:u=!1,staticLabelProps:f={fontSize:".9em",color:"#808080"},errorMode:p="normal"}=t,[m,b,v]=Ht.useField({name:e}),{setValue:y,setError:x}=v,{value:S}=m,{error:k}=b,[T,C]=A.useState(_2(S)),[O,I]=A.useState(null),N={...SZ,...s},L=["staticLabel","staticLabelProps","label","errorMessages","isDatePicker","dateFieldProps","datePickerProps","onChange","errorMode"],V=(B,H)=>jp(B)!==H;A.useEffect(()=>{V(T,S)&&y(jp(T))},[T]),A.useEffect(()=>{V(T,S)&&C(_2(S))},[S]),A.useEffect(()=>{const B=O?N[O]??O:"";x(B)},[O]);const M={label:u?void 0:n,format:i,onError:I,value:T,onChange:(B,H)=>{var F;C(B?B.utc():null),(F=t.onChange)==null||F.call(t,jp(B),H)},...lr({...t},L)};return o?g.jsx(Ti,{label:n,value:T!=null&&T.isValid()?T.format(i):"",staticLabel:u,staticLabelProps:f}):g.jsxs(z.FormControl,{fullWidth:!0,margin:l,children:[(u||o)&&g.jsx(z.Typography,{...f,children:n}),g.jsxs(z.Box,{children:[g.jsx(v0,{dateAdapter:bq,children:g.jsx(z.Box,{children:a?g.jsx(O2,{...M,slotProps:{textField:{fullWidth:!0,error:!!k,required:!!r}}}):g.jsx(Fp,{id:`${e}-df`,...M,fullWidth:!0,slotProps:{textField:{error:!!k}}})})}),g.jsx(yr,{name:e,id:`${e}-err`,errorMode:p})]})]})},CZ=t=>{const{nameTo:e,nameFrom:n,labelTo:r=Ln(e),labelFrom:o=Ln(n),fromFieldProps:i,toFieldProps:s,staticLabels:a=!1}=t,l=["nameTo","nameFrom","toFieldProps","fromFieldProps","labelTo","labelFrom"],u=z.useMediaQuery(z.useTheme().breakpoints.down("sm"));return g.jsxs("div",{style:{display:"flex",flexDirection:u?"column":"row",justifyContent:"space-between",gap:"10px"},children:[g.jsx(Up,{name:n,staticLabel:a,label:o,...lr({...t,...i},l)}),g.jsx(Up,{name:e,staticLabel:a,label:r,...lr({...t,...s},l)})]})},TZ=t=>{const{onUploadFiles:e}=t,n=z.useTheme();return g.jsxs(jf,{children:[g.jsx(pj,{options:[{label:"Monospace",value:"monospace"},{label:"Serif",value:"serif"}]}),g.jsx(An,{}),g.jsx(Ej,{}),g.jsx(An,{}),g.jsx(bj,{}),g.jsx(An,{}),g.jsx(SE,{}),g.jsx(DE,{}),g.jsx(NE,{}),g.jsx(z6,{}),g.jsx(H6,{}),g.jsx(j6,{}),g.jsx(An,{}),g.jsx(K6,{defaultTextColor:n.palette.text.primary,swatchColors:[{value:"#000000",label:"Black"},{value:"#ffffff",label:"White"},{value:"#888888",label:"Grey"},{value:"#ff0000",label:"Red"},{value:"#ff9900",label:"Orange"},{value:"#ffff00",label:"Yellow"},{value:"#00d000",label:"Green"},{value:"#0000ff",label:"Blue"}]}),g.jsx(y6,{swatchColors:[{value:"#595959",label:"Dark grey"},{value:"#dddddd",label:"Light grey"},{value:"#ffa6a6",label:"Light red"},{value:"#ffd699",label:"Light orange"},{value:"#ffff00",label:"Yellow"},{value:"#99cc99",label:"Light green"},{value:"#90c6ff",label:"Light blue"},{value:"#8085e9",label:"Light purple"}]}),g.jsx(An,{}),g.jsx(g6,{}),g.jsx(An,{}),g.jsx(Ij,{}),g.jsx(An,{}),g.jsx(AE,{}),g.jsx(CE,{}),g.jsx(q6,{}),AW()&&g.jsxs(g.Fragment,{children:[g.jsx(P6,{}),g.jsx(X6,{})]}),g.jsx(An,{}),g.jsx(l6,{}),g.jsx(An,{}),g.jsx(f6,{}),g.jsx(p6,{}),g.jsx(An,{}),e&&g.jsx(D6,{onUploadFiles:e}),g.jsx(An,{}),g.jsx(v6,{}),g.jsx(n6,{}),g.jsx(An,{}),g.jsx(F6,{}),g.jsx(An,{}),g.jsx($E,{}),g.jsx(PE,{})]})},kZ=t=>{if(!t.children.length)return;const e=t.querySelectorAll("span");e&&e.forEach(n=>{var r,o;const i=n.getAttribute("style"),s=(o=(r=n.parentElement)===null||r===void 0?void 0:r.closest("span"))===null||o===void 0?void 0:o.getAttribute("style");n.setAttribute("style",`${s};${i}`)})},EZ=vr.create({name:"textStyle",priority:101,addOptions(){return{HTMLAttributes:{},mergeNestedSpanStyles:!1}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?(this.options.mergeNestedSpanStyles&&kZ(t),{}):!1}]},renderHTML({HTMLAttributes:t}){return["span",Ct(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({tr:t})=>{const{selection:e}=t;return t.doc.nodesBetween(e.from,e.to,(n,r)=>{if(n.isTextblock)return!0;n.marks.filter(o=>o.type===this.type).some(o=>Object.values(o.attrs).some(i=>!!i))||t.removeMark(r,r+n.nodeSize,this.type)}),!0}}}}),OZ=cn.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:t=>{var e;return(e=t.style.color)===null||e===void 0?void 0:e.replace(/['"]+/g,"")},renderHTML:t=>t.color?{style:`color: ${t.color}`}:{}}}}]},addCommands(){return{setColor:t=>({chain:e})=>e().setMark("textStyle",{color:t}).run(),unsetColor:()=>({chain:t})=>t().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),MZ=cn.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:t=>t.style.fontFamily,renderHTML:t=>t.fontFamily?{style:`font-family: ${t.fontFamily}`}:{}}}}]},addCommands(){return{setFontFamily:t=>({chain:e})=>e().setMark("textStyle",{fontFamily:t}).run(),unsetFontFamily:()=>({chain:t})=>t().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}}),_Z="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",IZ="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",R0="numeric",z0="ascii",V0="alpha",Eu="asciinumeric",Ou="alphanumeric",H0="domain",I2="emoji",DZ="scheme",AZ="slashscheme",W0="whitespace";function PZ(t,e){return t in e||(e[t]=[]),e[t]}function wa(t,e,n){e[R0]&&(e[Eu]=!0,e[Ou]=!0),e[z0]&&(e[Eu]=!0,e[V0]=!0),e[Eu]&&(e[Ou]=!0),e[V0]&&(e[Ou]=!0),e[Ou]&&(e[H0]=!0),e[I2]&&(e[H0]=!0);for(const r in e){const o=PZ(r,n);o.indexOf(t)<0&&o.push(t)}}function NZ(t,e){const n={};for(const r in e)e[r].indexOf(t)>=0&&(n[r]=!0);return n}function Cr(t=null){this.j={},this.jr=[],this.jd=null,this.t=t}Cr.groups={},Cr.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let r=0;r<e.jr.length;r++){const o=e.jr[r][0],i=e.jr[r][1];if(i&&o.test(t))return i}return e.jd},has(t,e=!1){return e?t in this.j:!!this.go(t)},ta(t,e,n,r){for(let o=0;o<t.length;o++)this.tt(t[o],e,n,r)},tr(t,e,n,r){r=r||Cr.groups;let o;return e&&e.j?o=e:(o=new Cr(e),n&&r&&wa(e,n,r)),this.jr.push([t,o]),o},ts(t,e,n,r){let o=this;const i=t.length;if(!i)return o;for(let s=0;s<i-1;s++)o=o.tt(t[s]);return o.tt(t[i-1],e,n,r)},tt(t,e,n,r){r=r||Cr.groups;const o=this;if(e&&e.j)return o.j[t]=e,e;const i=e;let s,a=o.go(t);if(a?(s=new Cr,Object.assign(s.j,a.j),s.jr.push.apply(s.jr,a.jr),s.jd=a.jd,s.t=a.t):s=new Cr,i){if(r)if(s.t&&typeof s.t=="string"){const l=Object.assign(NZ(s.t,r),n);wa(i,l,r)}else n&&wa(i,n,r);s.t=i}return o.j[t]=s,s}};const pt=(t,e,n,r,o)=>t.ta(e,n,r,o),mn=(t,e,n,r,o)=>t.tr(e,n,r,o),D2=(t,e,n,r,o)=>t.ts(e,n,r,o),$e=(t,e,n,r,o)=>t.tt(e,n,r,o),_i="WORD",j0="UWORD",A2="ASCIINUMERICAL",P2="ALPHANUMERICAL",Mu="LOCALHOST",U0="TLD",q0="UTLD",qp="SCHEME",$l="SLASH_SCHEME",K0="NUM",Y0="WS",G0="NL",_u="OPENBRACE",Iu="CLOSEBRACE",Kp="OPENBRACKET",Yp="CLOSEBRACKET",Gp="OPENPAREN",Jp="CLOSEPAREN",Xp="OPENANGLEBRACKET",Zp="CLOSEANGLEBRACKET",Qp="FULLWIDTHLEFTPAREN",eh="FULLWIDTHRIGHTPAREN",th="LEFTCORNERBRACKET",nh="RIGHTCORNERBRACKET",rh="LEFTWHITECORNERBRACKET",oh="RIGHTWHITECORNERBRACKET",ih="FULLWIDTHLESSTHAN",sh="FULLWIDTHGREATERTHAN",ah="AMPERSAND",lh="APOSTROPHE",ch="ASTERISK",xs="AT",uh="BACKSLASH",dh="BACKTICK",fh="CARET",ws="COLON",J0="COMMA",ph="DOLLAR",Xo="DOT",hh="EQUALS",X0="EXCLAMATION",ao="HYPHEN",Du="PERCENT",mh="PIPE",gh="PLUS",yh="POUND",Au="QUERY",Z0="QUOTE",N2="FULLWIDTHMIDDLEDOT",Q0="SEMI",Zo="SLASH",Pu="TILDE",bh="UNDERSCORE",$2="EMOJI",vh="SYM";var L2=Object.freeze({__proto__:null,ALPHANUMERICAL:P2,AMPERSAND:ah,APOSTROPHE:lh,ASCIINUMERICAL:A2,ASTERISK:ch,AT:xs,BACKSLASH:uh,BACKTICK:dh,CARET:fh,CLOSEANGLEBRACKET:Zp,CLOSEBRACE:Iu,CLOSEBRACKET:Yp,CLOSEPAREN:Jp,COLON:ws,COMMA:J0,DOLLAR:ph,DOT:Xo,EMOJI:$2,EQUALS:hh,EXCLAMATION:X0,FULLWIDTHGREATERTHAN:sh,FULLWIDTHLEFTPAREN:Qp,FULLWIDTHLESSTHAN:ih,FULLWIDTHMIDDLEDOT:N2,FULLWIDTHRIGHTPAREN:eh,HYPHEN:ao,LEFTCORNERBRACKET:th,LEFTWHITECORNERBRACKET:rh,LOCALHOST:Mu,NL:G0,NUM:K0,OPENANGLEBRACKET:Xp,OPENBRACE:_u,OPENBRACKET:Kp,OPENPAREN:Gp,PERCENT:Du,PIPE:mh,PLUS:gh,POUND:yh,QUERY:Au,QUOTE:Z0,RIGHTCORNERBRACKET:nh,RIGHTWHITECORNERBRACKET:oh,SCHEME:qp,SEMI:Q0,SLASH:Zo,SLASH_SCHEME:$l,SYM:vh,TILDE:Pu,TLD:U0,UNDERSCORE:bh,UTLD:q0,UWORD:j0,WORD:_i,WS:Y0});const Ii=/[a-z]/,Nu=new RegExp("\\p{L}","u"),ev=new RegExp("\\p{Emoji}","u"),Di=/\d/,tv=/\s/,B2="\r",nv=`
402
402
  `,$Z="️",LZ="‍",rv="";let xh=null,wh=null;function BZ(t=[]){const e={};Cr.groups=e;const n=new Cr;xh==null&&(xh=R2(_Z)),wh==null&&(wh=R2(IZ)),$e(n,"'",lh),$e(n,"{",_u),$e(n,"}",Iu),$e(n,"[",Kp),$e(n,"]",Yp),$e(n,"(",Gp),$e(n,")",Jp),$e(n,"<",Xp),$e(n,">",Zp),$e(n,"(",Qp),$e(n,")",eh),$e(n,"「",th),$e(n,"」",nh),$e(n,"『",rh),$e(n,"』",oh),$e(n,"<",ih),$e(n,">",sh),$e(n,"&",ah),$e(n,"*",ch),$e(n,"@",xs),$e(n,"`",dh),$e(n,"^",fh),$e(n,":",ws),$e(n,",",J0),$e(n,"$",ph),$e(n,".",Xo),$e(n,"=",hh),$e(n,"!",X0),$e(n,"-",ao),$e(n,"%",Du),$e(n,"|",mh),$e(n,"+",gh),$e(n,"#",yh),$e(n,"?",Au),$e(n,'"',Z0),$e(n,"/",Zo),$e(n,";",Q0),$e(n,"~",Pu),$e(n,"_",bh),$e(n,"\\",uh),$e(n,"・",N2);const r=mn(n,Di,K0,{[R0]:!0});mn(r,Di,r);const o=mn(r,Ii,A2,{[Eu]:!0}),i=mn(r,Nu,P2,{[Ou]:!0}),s=mn(n,Ii,_i,{[z0]:!0});mn(s,Di,o),mn(s,Ii,s),mn(o,Di,o),mn(o,Ii,o);const a=mn(n,Nu,j0,{[V0]:!0});mn(a,Ii),mn(a,Di,i),mn(a,Nu,a),mn(i,Di,i),mn(i,Ii),mn(i,Nu,i);const l=$e(n,nv,G0,{[W0]:!0}),u=$e(n,B2,Y0,{[W0]:!0}),f=mn(n,tv,Y0,{[W0]:!0});$e(n,rv,f),$e(u,nv,l),$e(u,rv,f),mn(u,tv,f),$e(f,B2),$e(f,nv),mn(f,tv,f),$e(f,rv,f);const p=mn(n,ev,$2,{[I2]:!0});$e(p,"#"),mn(p,ev,p),$e(p,$Z,p);const m=$e(p,LZ);$e(m,"#"),mn(m,ev,p);const b=[[Ii,s],[Di,o]],v=[[Ii,null],[Nu,a],[Di,i]];for(let y=0;y<xh.length;y++)Ss(n,xh[y],U0,_i,b);for(let y=0;y<wh.length;y++)Ss(n,wh[y],q0,j0,v);wa(U0,{tld:!0,ascii:!0},e),wa(q0,{utld:!0,alpha:!0},e),Ss(n,"file",qp,_i,b),Ss(n,"mailto",qp,_i,b),Ss(n,"http",$l,_i,b),Ss(n,"https",$l,_i,b),Ss(n,"ftp",$l,_i,b),Ss(n,"ftps",$l,_i,b),wa(qp,{scheme:!0,ascii:!0},e),wa($l,{slashscheme:!0,ascii:!0},e),t=t.sort((y,x)=>y[0]>x[0]?1:-1);for(let y=0;y<t.length;y++){const x=t[y][0],k=t[y][1]?{[DZ]:!0}:{[AZ]:!0};x.indexOf("-")>=0?k[H0]=!0:Ii.test(x)?Di.test(x)?k[Eu]=!0:k[z0]=!0:k[R0]=!0,D2(n,x,x,k)}return D2(n,"localhost",Mu,{ascii:!0}),n.jd=new Cr(vh),{start:n,tokens:Object.assign({groups:e},L2)}}function F2(t,e){const n=FZ(e.replace(/[A-Z]/g,a=>a.toLowerCase())),r=n.length,o=[];let i=0,s=0;for(;s<r;){let a=t,l=null,u=0,f=null,p=-1,m=-1;for(;s<r&&(l=a.go(n[s]));)a=l,a.accepts()?(p=0,m=0,f=a):p>=0&&(p+=n[s].length,m++),u+=n[s].length,i+=n[s].length,s++;i-=p,s-=m,u-=p,o.push({t:f.t,v:e.slice(i-u,i),s:i-u,e:i})}return o}function FZ(t){const e=[],n=t.length;let r=0;for(;r<n;){let o=t.charCodeAt(r),i,s=o<55296||o>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?t[r]:t.slice(r,r+2);e.push(s),r+=s.length}return e}function Ss(t,e,n,r,o){let i;const s=e.length;for(let a=0;a<s-1;a++){const l=e[a];t.j[l]?i=t.j[l]:(i=new Cr(r),i.jr=o.slice(),t.j[l]=i),t=i}return i=new Cr(n),i.jr=o.slice(),t.j[e[s-1]]=i,i}function R2(t){const e=[],n=[];let r=0,o="0123456789";for(;r<t.length;){let i=0;for(;o.indexOf(t[r+i])>=0;)i++;if(i>0){e.push(n.join(""));for(let s=parseInt(t.substring(r,r+i),10);s>0;s--)n.pop();r+=i}else n.push(t[r]),r++}return e}const $u={defaultProtocol:"http",events:null,format:z2,formatHref:z2,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function ov(t,e=null){let n=Object.assign({},$u);t&&(n=Object.assign(n,t instanceof ov?t.o:t));const r=n.ignoreTags,o=[];for(let i=0;i<r.length;i++)o.push(r[i].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=o}ov.prototype={o:$u,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const r=e!=null;let o=this.o[t];return o&&(typeof o=="object"?(o=n.t in o?o[n.t]:$u[t],typeof o=="function"&&r&&(o=o(e,n))):typeof o=="function"&&r&&(o=o(e,n.t,n)),o)},getObj(t,e,n){let r=this.o[t];return typeof r=="function"&&e!=null&&(r=r(e,n.t,n)),r},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function z2(t){return t}function V2(t,e){this.t="token",this.v=t,this.tk=e}V2.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),r=t.get("format",e,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t=$u.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),r=t.get("formatHref",n,this),o=t.get("tagName",n,e),i=this.toFormattedString(t),s={},a=t.get("className",n,e),l=t.get("target",n,e),u=t.get("rel",n,e),f=t.getObj("attributes",n,e),p=t.getObj("events",n,e);return s.href=r,a&&(s.class=a),l&&(s.target=l),u&&(s.rel=u),f&&Object.assign(s,f),{tagName:o,attributes:s,content:i,eventListeners:p}}};function Sh(t,e){class n extends V2{constructor(o,i){super(o,i),this.t=t}}for(const r in e)n.prototype[r]=e[r];return n.t=t,n}const H2=Sh("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),W2=Sh("text"),RZ=Sh("nl"),Ch=Sh("url",{isLink:!0,toHref(t=$u.defaultProtocol){return this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==Mu&&t[1].t===ws}}),lo=t=>new Cr(t);function zZ({groups:t}){const e=t.domain.concat([ah,ch,xs,uh,dh,fh,ph,hh,ao,K0,Du,mh,gh,yh,Zo,vh,Pu,bh]),n=[lh,ws,J0,Xo,X0,Du,Au,Z0,Q0,Xp,Zp,_u,Iu,Yp,Kp,Gp,Jp,Qp,eh,th,nh,rh,oh,ih,sh],r=[ah,lh,ch,uh,dh,fh,ph,hh,ao,_u,Iu,Du,mh,gh,yh,Au,Zo,vh,Pu,bh],o=lo(),i=$e(o,Pu);pt(i,r,i),pt(i,t.domain,i);const s=lo(),a=lo(),l=lo();pt(o,t.domain,s),pt(o,t.scheme,a),pt(o,t.slashscheme,l),pt(s,r,i),pt(s,t.domain,s);const u=$e(s,xs);$e(i,xs,u),$e(a,xs,u),$e(l,xs,u);const f=$e(i,Xo);pt(f,r,i),pt(f,t.domain,i);const p=lo();pt(u,t.domain,p),pt(p,t.domain,p);const m=$e(p,Xo);pt(m,t.domain,p);const b=lo(H2);pt(m,t.tld,b),pt(m,t.utld,b),$e(u,Mu,b);const v=$e(p,ao);$e(v,ao,v),pt(v,t.domain,p),pt(b,t.domain,p),$e(b,Xo,m),$e(b,ao,v);const y=$e(b,ws);pt(y,t.numeric,H2);const x=$e(s,ao),S=$e(s,Xo);$e(x,ao,x),pt(x,t.domain,s),pt(S,r,i),pt(S,t.domain,s);const k=lo(Ch);pt(S,t.tld,k),pt(S,t.utld,k),pt(k,t.domain,s),pt(k,r,i),$e(k,Xo,S),$e(k,ao,x),$e(k,xs,u);const T=$e(k,ws),C=lo(Ch);pt(T,t.numeric,C);const O=lo(Ch),I=lo();pt(O,e,O),pt(O,n,I),pt(I,e,O),pt(I,n,I),$e(k,Zo,O),$e(C,Zo,O);const N=$e(a,ws),L=$e(l,ws),V=$e(L,Zo),M=$e(V,Zo);pt(a,t.domain,s),$e(a,Xo,S),$e(a,ao,x),pt(l,t.domain,s),$e(l,Xo,S),$e(l,ao,x),pt(N,t.domain,O),$e(N,Zo,O),$e(N,Au,O),pt(M,t.domain,O),pt(M,e,O),$e(M,Zo,O);const B=[[_u,Iu],[Kp,Yp],[Gp,Jp],[Xp,Zp],[Qp,eh],[th,nh],[rh,oh],[ih,sh]];for(let H=0;H<B.length;H++){const[F,P]=B[H],_=$e(O,F);$e(I,F,_),$e(_,P,O);const D=lo(Ch);pt(_,e,D);const R=lo();pt(_,n),pt(D,e,D),pt(D,n,R),pt(R,e,D),pt(R,n,R),$e(D,P,O),$e(R,P,O)}return $e(o,Mu,k),$e(o,G0,RZ),{start:o,tokens:L2}}function VZ(t,e,n){let r=n.length,o=0,i=[],s=[];for(;o<r;){let a=t,l=null,u=null,f=0,p=null,m=-1;for(;o<r&&!(l=a.go(n[o].t));)s.push(n[o++]);for(;o<r&&(u=l||a.go(n[o].t));)l=null,a=u,a.accepts()?(m=0,p=a):m>=0&&m++,o++,f++;if(m<0)o-=f,o<r&&(s.push(n[o]),o++);else{s.length>0&&(i.push(iv(W2,e,s)),s=[]),o-=m,f-=m;const b=p.t,v=n.slice(o-f,o);i.push(iv(b,e,v))}}return s.length>0&&i.push(iv(W2,e,s)),i}function iv(t,e,n){const r=n[0].s,o=n[n.length-1].e,i=e.slice(r,o);return new t(i,n)}const HZ=typeof console<"u"&&console&&console.warn||(()=>{}),WZ="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",Kt={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function jZ(){return Cr.groups={},Kt.scanner=null,Kt.parser=null,Kt.tokenQueue=[],Kt.pluginQueue=[],Kt.customSchemes=[],Kt.initialized=!1,Kt}function j2(t,e=!1){if(Kt.initialized&&HZ(`linkifyjs: already initialized - will not register custom scheme "${t}" ${WZ}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
403
403
  1. Must only contain digits, lowercase ASCII letters or "-"
404
404
  2. Cannot start or end with "-"
405
- 3. "-" cannot repeat`);Kt.customSchemes.push([t,e])}function UZ(){Kt.scanner=BZ(Kt.customSchemes);for(let t=0;t<Kt.tokenQueue.length;t++)Kt.tokenQueue[t][1]({scanner:Kt.scanner});Kt.parser=zZ(Kt.scanner.tokens);for(let t=0;t<Kt.pluginQueue.length;t++)Kt.pluginQueue[t][1]({scanner:Kt.scanner,parser:Kt.parser});return Kt.initialized=!0,Kt}function sv(t){return Kt.initialized||UZ(),VZ(Kt.parser.start,t,F2(Kt.scanner.start,t))}sv.scan=F2;function U2(t,e=null,n=null){if(e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const r=new ov(n),o=sv(t),i=[];for(let s=0;s<o.length;s++){const a=o[s];a.isLink&&(!e||a.t===e)&&r.check(a)&&i.push(a.toFormattedObject(r))}return i}const av="[\0-   ᠎ -\u2029  ]",qZ=new RegExp(av),KZ=new RegExp(`${av}$`),YZ=new RegExp(av,"g");function GZ(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function JZ(t){return new en({key:new On("autolink"),appendTransaction:(e,n,r)=>{const o=e.some(u=>u.docChanged)&&!n.doc.eq(r.doc),i=e.some(u=>u.getMeta("preventAutolink"));if(!o||i)return;const{tr:s}=r,a=PR(n.doc,[...e]);if(RR(a).forEach(({newRange:u})=>{const f=$R(r.doc,u,b=>b.isTextblock);let p,m;if(f.length>1)p=f[0],m=r.doc.textBetween(p.pos,p.pos+p.node.nodeSize,void 0," ");else if(f.length){const b=r.doc.textBetween(u.from,u.to," "," ");if(!KZ.test(b))return;p=f[0],m=r.doc.textBetween(p.pos,u.to,void 0," ")}if(p&&m){const b=m.split(qZ).filter(Boolean);if(b.length<=0)return!1;const v=b[b.length-1],y=p.pos+m.lastIndexOf(v);if(!v)return!1;const x=sv(v).map(S=>S.toObject(t.defaultProtocol));if(!GZ(x))return!1;x.filter(S=>S.isLink).map(S=>({...S,from:y+S.start+1,to:y+S.end+1})).filter(S=>r.schema.marks.code?!r.doc.rangeHasMark(S.from,S.to,r.schema.marks.code):!0).filter(S=>t.validate(S.value)).filter(S=>t.shouldAutoLink(S.value)).forEach(S=>{Gg(S.from,S.to,r.doc).some(k=>k.mark.type===t.type)||s.addMark(S.from,S.to,t.type.create({href:S.href}))})}}),!!s.steps.length)return s}})}function XZ(t){return new en({key:new On("handleClickLink"),props:{handleClick:(e,n,r)=>{var o,i;if(r.button!==0||!e.editable)return!1;let s=r.target;const a=[];for(;s.nodeName!=="DIV";)a.push(s),s=s.parentNode;if(!a.find(m=>m.nodeName==="A"))return!1;const l=Yg(e.state,t.type.name),u=r.target,f=(o=u==null?void 0:u.href)!==null&&o!==void 0?o:l.href,p=(i=u==null?void 0:u.target)!==null&&i!==void 0?i:l.target;return u&&f?(window.open(f,p),!0):!1}}})}function ZZ(t){return new en({key:new On("handlePasteLink"),props:{handlePaste:(e,n,r)=>{const{state:o}=e,{selection:i}=o,{empty:s}=i;if(s)return!1;let a="";r.content.forEach(u=>{a+=u.textContent});const l=U2(a,{defaultProtocol:t.defaultProtocol}).find(u=>u.isLink&&u.value===a);return!a||!l?!1:t.editor.commands.setMark(t.type,{href:l.href})}}})}function Sa(t,e){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(r=>{const o=typeof r=="string"?r:r.scheme;o&&n.push(o)}),!t||t.replace(YZ,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}const QZ=vr.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{if(typeof t=="string"){j2(t);return}j2(t.scheme,t.optionalSlashes)})},onDestroy(){jZ()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(t,e)=>!!Sa(t,e.protocols),validate:t=>!!t,shouldAutoLink:t=>!!t}},addAttributes(){return{href:{default:null,parseHTML(t){return t.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:n=>!!Sa(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!Sa(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",Ct(this.options.HTMLAttributes,t),0]:["a",Ct(this.options.HTMLAttributes,{...t,href:""}),0]},addCommands(){return{setLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:r=>!!Sa(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,t).setMeta("preventAutolink",!0).run():!1},toggleLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:r=>!!Sa(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run():!1},unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[cs({find:t=>{const e=[];if(t){const{protocols:n,defaultProtocol:r}=this.options,o=U2(t).filter(i=>i.isLink&&this.options.isAllowedUri(i.value,{defaultValidate:s=>!!Sa(s,n),protocols:n,defaultProtocol:r}));o.length&&o.forEach(i=>e.push({text:i.value,data:{href:i.href},index:i.start}))}return e},type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[],{protocols:e,defaultProtocol:n}=this.options;return this.options.autolink&&t.push(JZ({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:r=>this.options.isAllowedUri(r,{defaultValidate:o=>!!Sa(o,e),protocols:e,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&t.push(XZ({type:this.type})),this.options.linkOnPaste&&t.push(ZZ({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),t}});function eQ(t){var e;const{char:n,allowSpaces:r,allowToIncludeChar:o,allowedPrefixes:i,startOfLine:s,$position:a}=t,l=r&&!o,u=u3(n),f=new RegExp(`\\s${u}$`),p=s?"^":"",m=o?"":u,b=l?new RegExp(`${p}${u}.*?(?=\\s${m}|$)`,"gm"):new RegExp(`${p}(?:^)?${u}[^\\s${m}]*`,"gm"),v=((e=a.nodeBefore)===null||e===void 0?void 0:e.isText)&&a.nodeBefore.text;if(!v)return null;const y=a.pos-v.length,x=Array.from(v.matchAll(b)).pop();if(!x||x.input===void 0||x.index===void 0)return null;const S=x.input.slice(Math.max(0,x.index-1),x.index),k=new RegExp(`^[${i==null?void 0:i.join("")}\0]?$`).test(S);if(i!==null&&!k)return null;const T=y+x.index;let C=T+x[0].length;return l&&f.test(v.slice(C-1,C+1))&&(x[0]+=" ",C+=1),T<a.pos&&C>=a.pos?{range:{from:T,to:C},query:x[0].slice(n.length),text:x[0]}:null}const tQ=new On("suggestion");function nQ({pluginKey:t=tQ,editor:e,char:n="@",allowSpaces:r=!1,allowToIncludeChar:o=!1,allowedPrefixes:i=[" "],startOfLine:s=!1,decorationTag:a="span",decorationClass:l="suggestion",decorationContent:u="",decorationEmptyClass:f="is-empty",command:p=()=>null,items:m=()=>[],render:b=()=>({}),allow:v=()=>!0,findSuggestionMatch:y=eQ}){let x;const S=b==null?void 0:b(),k=new en({key:t,view(){return{update:async(T,C)=>{var O,I,N,L,V,M,B;const H=(O=this.key)===null||O===void 0?void 0:O.getState(C),F=(I=this.key)===null||I===void 0?void 0:I.getState(T.state),P=H.active&&F.active&&H.range.from!==F.range.from,_=!H.active&&F.active,D=H.active&&!F.active,R=!_&&!D&&H.query!==F.query,j=_||P&&R,K=R||P,U=D||P&&R;if(!j&&!K&&!U)return;const Y=U&&!j?H:F,fe=T.dom.querySelector(`[data-decoration-id="${Y.decorationId}"]`);x={editor:e,range:Y.range,query:Y.query,text:Y.text,items:[],command:ue=>p({editor:e,range:Y.range,props:ue}),decorationNode:fe,clientRect:fe?()=>{var ue;const{decorationId:pe}=(ue=this.key)===null||ue===void 0?void 0:ue.getState(e.state),Z=T.dom.querySelector(`[data-decoration-id="${pe}"]`);return(Z==null?void 0:Z.getBoundingClientRect())||null}:null},j&&((N=S==null?void 0:S.onBeforeStart)===null||N===void 0||N.call(S,x)),K&&((L=S==null?void 0:S.onBeforeUpdate)===null||L===void 0||L.call(S,x)),(K||j)&&(x.items=await m({editor:e,query:Y.query})),U&&((V=S==null?void 0:S.onExit)===null||V===void 0||V.call(S,x)),K&&((M=S==null?void 0:S.onUpdate)===null||M===void 0||M.call(S,x)),j&&((B=S==null?void 0:S.onStart)===null||B===void 0||B.call(S,x))},destroy:()=>{var T;x&&((T=S==null?void 0:S.onExit)===null||T===void 0||T.call(S,x))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(T,C,O,I){const{isEditable:N}=e,{composing:L}=e.view,{selection:V}=T,{empty:M,from:B}=V,H={...C};if(H.composing=L,N&&(M||e.view.composing)){(B<C.range.from||B>C.range.to)&&!L&&!C.composing&&(H.active=!1);const F=y({char:n,allowSpaces:r,allowToIncludeChar:o,allowedPrefixes:i,startOfLine:s,$position:V.$from}),P=`id_${Math.floor(Math.random()*4294967295)}`;F&&v({editor:e,state:I,range:F.range,isActive:C.active})?(H.active=!0,H.decorationId=C.decorationId?C.decorationId:P,H.range=F.range,H.query=F.query,H.text=F.text):H.active=!1}else H.active=!1;return H.active||(H.decorationId=null,H.range={from:0,to:0},H.query=null,H.text=null),H}},props:{handleKeyDown(T,C){var O;const{active:I,range:N}=k.getState(T.state);return I&&((O=S==null?void 0:S.onKeyDown)===null||O===void 0?void 0:O.call(S,{view:T,event:C,range:N}))||!1},decorations(T){const{active:C,range:O,decorationId:I,query:N}=k.getState(T);if(!C)return null;const L=!(N!=null&&N.length),V=[l];return L&&V.push(f),Jt.create(T.doc,[Yn.inline(O.from,O.to,{nodeName:a,class:V.join(" "),"data-decoration-id":I,"data-decoration-content":u})])}}});return k}function rQ({editor:t,overrideSuggestionOptions:e,extensionName:n,char:r="@"}){const o=new On;return{editor:t,char:r,pluginKey:o,command:({editor:i,range:s,props:a})=>{var l,u,f;const p=i.view.state.selection.$to.nodeAfter;((l=p==null?void 0:p.text)===null||l===void 0?void 0:l.startsWith(" "))&&(s.to+=1),i.chain().focus().insertContentAt(s,[{type:n,attrs:{...a,mentionSuggestionChar:r}},{type:"text",text:" "}]).run(),(f=(u=i.view.dom.ownerDocument.defaultView)===null||u===void 0?void 0:u.getSelection())===null||f===void 0||f.collapseToEnd()},allow:({state:i,range:s})=>{const a=i.doc.resolve(s.from),l=i.schema.nodes[n];return!!a.parent.type.contentMatch.matchType(l)},...e}}function q2(t){return(t.options.suggestions.length?t.options.suggestions:[t.options.suggestion]).map(e=>rQ({editor:t.editor,overrideSuggestionOptions:e,extensionName:t.name,char:e.char}))}function K2(t,e){const n=q2(t),r=n.find(o=>o.char===e);return r||(n.length?n[0]:null)}const oQ=tn.create({name:"mention",priority:101,addOptions(){return{HTMLAttributes:{},renderText({node:t,suggestion:e}){var n,r;return`${(n=e==null?void 0:e.char)!==null&&n!==void 0?n:"@"}${(r=t.attrs.label)!==null&&r!==void 0?r:t.attrs.id}`},deleteTriggerWithBackspace:!1,renderHTML({options:t,node:e,suggestion:n}){var r,o;return["span",Ct(this.HTMLAttributes,t.HTMLAttributes),`${(r=n==null?void 0:n.char)!==null&&r!==void 0?r:"@"}${(o=e.attrs.label)!==null&&o!==void 0?o:e.attrs.id}`]},suggestions:[],suggestion:{}}},group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes(){return{id:{default:null,parseHTML:t=>t.getAttribute("data-id"),renderHTML:t=>t.id?{"data-id":t.id}:{}},label:{default:null,parseHTML:t=>t.getAttribute("data-label"),renderHTML:t=>t.label?{"data-label":t.label}:{}},mentionSuggestionChar:{default:"@",parseHTML:t=>t.getAttribute("data-mention-suggestion-char"),renderHTML:t=>({"data-mention-suggestion-char":t.mentionSuggestionChar})}}},parseHTML(){return[{tag:`span[data-type="${this.name}"]`}]},renderHTML({node:t,HTMLAttributes:e}){const n=K2(this,t.attrs.mentionSuggestionChar);if(this.options.renderLabel!==void 0)return console.warn("renderLabel is deprecated use renderText and renderHTML instead"),["span",Ct({"data-type":this.name},this.options.HTMLAttributes,e),this.options.renderLabel({options:this.options,node:t,suggestion:n})];const r={...this.options};r.HTMLAttributes=Ct({"data-type":this.name},this.options.HTMLAttributes,e);const o=this.options.renderHTML({options:r,node:t,suggestion:n});return typeof o=="string"?["span",Ct({"data-type":this.name},this.options.HTMLAttributes,e),o]:o},renderText({node:t}){const e={options:this.options,node:t,suggestion:K2(this,t.attrs.mentionSuggestionChar)};return this.options.renderLabel!==void 0?(console.warn("renderLabel is deprecated use renderText and renderHTML instead"),this.options.renderLabel(e)):this.options.renderText(e)},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:t,state:e})=>{let n=!1;const{selection:r}=e,{empty:o,anchor:i}=r;if(!o)return!1;e.doc.nodesBetween(i-1,i,(l,u)=>{if(l.type.name===this.name)return n=!0,t.insertText(this.options.deleteTriggerWithBackspace?"":this.options.suggestion.char||"",u,u+l.nodeSize),!1});let s=new fi,a=0;return e.doc.nodesBetween(i-1,i,(l,u)=>{if(l.type.name===this.name)return n=!0,s=l,a=u,!1}),n&&t.insertText(this.options.deleteTriggerWithBackspace?"":s.attrs.mentionSuggestionChar,a,a+s.nodeSize),n})}},addProseMirrorPlugins(){return q2(this).map(nQ)}}),Y2=cn.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new en({key:new On("placeholder"),props:{decorations:({doc:t,selection:e})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,o=[];if(!n)return null;const i=this.editor.isEmpty;return t.descendants((s,a)=>{const l=r>=a&&r<=a+s.nodeSize,u=!s.isLeaf&&lf(s);if((l||!this.options.showOnlyCurrent)&&u){const f=[this.options.emptyNodeClass];i&&f.push(this.options.emptyEditorClass);const p=Yn.node(a,a+s.nodeSize,{class:f.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:s,pos:a,hasAnchor:l}):this.options.placeholder});o.push(p)}return this.options.includeChildren}),Jt.create(t,o)}}})]}}),iQ=vr.create({name:"subscript",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"sub"},{style:"vertical-align",getAttrs(t){return t!=="sub"?!1:null}}]},renderHTML({HTMLAttributes:t}){return["sub",Ct(this.options.HTMLAttributes,t),0]},addCommands(){return{setSubscript:()=>({commands:t})=>t.setMark(this.name),toggleSubscript:()=>({commands:t})=>t.toggleMark(this.name),unsetSubscript:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-,":()=>this.editor.commands.toggleSubscript()}}}),sQ=tn.create({name:"tableCell",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:t=>{const e=t.getAttribute("colwidth");return e?e.split(",").map(r=>parseInt(r,10)):null}}}},tableRole:"cell",isolating:!0,parseHTML(){return[{tag:"td"}]},renderHTML({HTMLAttributes:t}){return["td",Ct(this.options.HTMLAttributes,t),0]}}),aQ=tn.create({name:"tableHeader",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:t=>{const e=t.getAttribute("colwidth");return e?e.split(",").map(r=>parseInt(r,10)):null}}}},tableRole:"header_cell",isolating:!0,parseHTML(){return[{tag:"th"}]},renderHTML({HTMLAttributes:t}){return["th",Ct(this.options.HTMLAttributes,t),0]}}),lQ=tn.create({name:"tableRow",addOptions(){return{HTMLAttributes:{}}},content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML(){return[{tag:"tr"}]},renderHTML({HTMLAttributes:t}){return["tr",Ct(this.options.HTMLAttributes,t),0]}}),cQ=/^\s*(\[([( |x])?\])\s$/,uQ=tn.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:t=>{const e=t.getAttribute("data-checked");return e===""||e==="true"},renderHTML:t=>({"data-checked":t.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:t,HTMLAttributes:e}){return["li",Ct(this.options.HTMLAttributes,e,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){const t={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...t,Tab:()=>this.editor.commands.sinkListItem(this.name)}:t},addNodeView(){return({node:t,HTMLAttributes:e,getPos:n,editor:r})=>{const o=document.createElement("li"),i=document.createElement("label"),s=document.createElement("span"),a=document.createElement("input"),l=document.createElement("div"),u=()=>{var f,p;a.ariaLabel=((p=(f=this.options.a11y)===null||f===void 0?void 0:f.checkboxLabel)===null||p===void 0?void 0:p.call(f,t,a.checked))||`Task item checkbox for ${t.textContent||"empty task item"}`};return u(),i.contentEditable="false",a.type="checkbox",a.addEventListener("mousedown",f=>f.preventDefault()),a.addEventListener("change",f=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){a.checked=!a.checked;return}const{checked:p}=f.target;r.isEditable&&typeof n=="function"&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:m})=>{const b=n();if(typeof b!="number")return!1;const v=m.doc.nodeAt(b);return m.setNodeMarkup(b,void 0,{...v==null?void 0:v.attrs,checked:p}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(t,p)||(a.checked=!a.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([f,p])=>{o.setAttribute(f,p)}),o.dataset.checked=t.attrs.checked,a.checked=t.attrs.checked,i.append(a,s),o.append(i,l),Object.entries(e).forEach(([f,p])=>{o.setAttribute(f,p)}),{dom:o,contentDOM:l,update:f=>f.type!==this.type?!1:(o.dataset.checked=f.attrs.checked,a.checked=f.attrs.checked,u(),!0)}}},addInputRules(){return[al({find:cQ,type:this.type,getAttributes:t=>({checked:t[t.length-1]==="x"})})]}}),dQ=tn.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:t}){return["ul",Ct(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}}),fQ=cn.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:null}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:t=>{const e=t.style.textAlign;return this.options.alignments.includes(e)?e:this.options.defaultAlignment},renderHTML:t=>t.textAlign?{style:`text-align: ${t.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>this.options.alignments.includes(t)?this.options.types.map(n=>e.updateAttributes(n,{textAlign:t})).every(n=>n):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.map(e=>t.resetAttributes(e,"textAlign")).every(e=>e),toggleTextAlign:t=>({editor:e,commands:n})=>this.options.alignments.includes(t)?e.isActive({textAlign:t})?n.unsetTextAlign():n.setTextAlign(t):!1}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),G2=J.forwardRef((t,e)=>{const[n,r]=J.useState(0),o=l=>{if(l>=t.items.length)return;const u=t.items[l],f={id:u.id,label:u.mentionLabel};t.command(f)},i=()=>{r((n+t.items.length-1)%t.items.length)},s=()=>{r((n+1)%t.items.length)},a=()=>{o(n)};return J.useEffect(()=>r(0),[t.items]),J.useImperativeHandle(e,()=>({onKeyDown:({event:l})=>l.key==="ArrowUp"?(i(),!0):l.key==="ArrowDown"?(s(),!0):l.key==="Enter"?(a(),!0):!1})),t.items.length>0?g.jsx(z.Paper,{elevation:5,children:g.jsx(z.List,{dense:!0,sx:{overflow:"hidden"},children:t.items.map((l,u)=>g.jsx(z.ListItem,{disablePadding:!0,children:g.jsx(z.ListItemButton,{selected:u===n,onClick:()=>o(u),children:l.mentionLabel})},l.id))})}):null});G2.displayName="SuggestionList";const J2={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0,toJSON(){return{}}},pQ={items:async({query:t})=>Promise.resolve(["Lea Thompson","Cyndi Lauper","Tom Cruise","Madonna","Jerry Hall","Joan Collins","Winona Ryder","Christina Applegate","Alyssa Milano","Molly Ringwald","Ally Sheedy","Debbie Harry","Olivia Newton-John","Elton John","Michael J. Fox","Axl Rose","Emilio Estevez","Ralph Macchio","Rob Lowe","Jennifer Grey","Mickey Rourke","John Cusack","Matthew Broderick","Justine Bateman","Lisa Bonet","Benicio Monserrate Rafael del Toro Sánchez"].map((e,n)=>({mentionLabel:e,id:n.toString()})).filter(e=>e.mentionLabel.toLowerCase().startsWith(t.toLowerCase())).slice(0,5)),render:()=>{let t,e;return{onStart:n=>{t=new EO(G2,{props:n,editor:n.editor}),e=au("body",{getReferenceClientRect:()=>{var r;return((r=n.clientRect)==null?void 0:r.call(n))??J2},appendTo:()=>document.body,content:t.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start"})[0]},onUpdate(n){t==null||t.updateProps(n),e==null||e.setProps({getReferenceClientRect:()=>{var r;return((r=n.clientRect)==null?void 0:r.call(n))??J2}})},onKeyDown(n){return n.event.key==="Escape"?(e==null||e.hide(),!0):t!=null&&t.ref?t.ref.onKeyDown(n):!1},onExit(){e==null||e.destroy(),t==null||t.destroy(),e=void 0,t=void 0}}}},hQ=QZ.extend({inclusive:!1}),mQ=iQ.extend({excludes:"superscript"}),gQ=gM.extend({excludes:"subscript"});function yQ({placeholder:t}={}){return J.useMemo(()=>[r7.configure({resizable:!0}),lQ,aQ,sQ,pT,mT,gT,xT,DT,NT,$T,mQ,gQ,BT,uT,cT,hT,IT,Xb,LT,hQ.configure({autolink:!0,linkOnPaste:!0,openOnClick:!1}),V9,vT,R9,fQ.configure({types:["heading","paragraph","image"]}),EZ,OZ,MZ,Lj,jT.configure({multicolor:!0}),_T,n8,yT,dQ,uQ.configure({nested:!0}),oQ.configure({suggestion:pQ}),Y2.configure({placeholder:t}),MT],[t])}function X2(t){return Array.from(t).filter(e=>(e.type||"").toLowerCase().startsWith("image/"))}const bQ=t=>{const e=yQ({placeholder:"Add your own content here..."});if(t.renderContentOnly)return g.jsx(hM,{content:t.renderContentOnly,extensions:e});const{name:n,label:r,labelProps:o={fontSize:"0.9em",color:"#808080",fontWeight:"400"},onUploadFiles:i,readOnly:s=!1}=t,[a,l,u]=Ht.useField({name:n}),{setValue:f}=u,{value:p}=a;J.useEffect(()=>{var S,k,T;(T=(k=(S=m==null?void 0:m.current)==null?void 0:S.editor)==null?void 0:k.commands)==null||T.setContent(p)},[p]);const m=J.useRef(null),b=J.useCallback((S,k)=>{var C;const T=(C=m.current)==null?void 0:C.editor;if(!(!T||!i))if(i instanceof Promise)i(S).then(O=>{ib({images:O,editor:T,position:k})});else{const O=i(S);ib({images:O,editor:T,position:k})}},[]),v=J.useCallback((S,k,T,C)=>{var I;if(!(k instanceof DragEvent)||!k.dataTransfer)return!1;const O=X2(k.dataTransfer.files);if(O.length>0){const N=(I=S.posAtCoords({left:k.clientX,top:k.clientY}))==null?void 0:I.pos;return b(O,N),k.preventDefault(),!0}return!1},[b]),y=J.useCallback((S,k,T)=>{if(!k.clipboardData)return!1;const C=X2(k.clipboardData.files);return C.length>0?(b(C),!0):!1},[b]),x=g.jsx(z.Box,{sx:{"& .ProseMirror":{"& h1, & h2, & h3, & h4, & h5, & h6":{scrollMarginTop:s?0:50}}},children:g.jsx(pM,{ref:m,extensions:e,content:p,editable:!s,editorProps:{handleDrop:v,handlePaste:y},renderControls:s?void 0:()=>g.jsx(TZ,{onUploadFiles:i}),onBlur:()=>{var S,k;return f(((k=(S=m.current)==null?void 0:S.editor)==null?void 0:k.getHTML())??"")},RichTextFieldProps:{variant:"outlined",MenuBarProps:{hide:s}},children:()=>g.jsxs(g.Fragment,{children:[g.jsx(T7,{}),g.jsx(F7,{})]})})});return g.jsxs(z.Box,{display:"flex",flexDirection:"column",children:[r&&g.jsx(z.Typography,{...o,children:r}),x]})},Z2=t=>{const{colSpan:e,isExpanded:n,renderExpand:r,obj:o,asMobileCard:i=!1,reRenderExpand:s=!1}=t,[a,l]=J.useState(!1),[u,f]=J.useState(void 0);J.useEffect(()=>{n&&(!a||s)&&(l(!0),f(r(o)))},[n,o]);const p={"&:last-child > td":{borderBottom:"unset"}};return i?g.jsx(z.Collapse,{in:n,children:u}):g.jsx(z.TableRow,{sx:p,children:g.jsx(z.TableCell,{sx:{paddingBottom:0,paddingTop:0},colSpan:e,children:g.jsx(z.Collapse,{in:n,children:u})})})},lv=({isLoading:t,children:e})=>{const[n,r]=J.useState(!1);return J.useEffect(()=>{let o,i;return t?o=setTimeout(()=>r(!0),300):n?i=setTimeout(()=>r(!1),200):(o&&clearTimeout(o),r(!1)),()=>{o&&clearTimeout(o),i&&clearTimeout(i)}},[t,n]),g.jsxs(z.Box,{position:"relative","data-testid":`loading-overlay_${t?"active":"inactive"}`,children:[e,g.jsx(z.Box,{sx:{position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(255,255,255,0.6)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:10,pointerEvents:n?"auto":"none",opacity:n?1:0,transition:"opacity 0.3s ease"},children:g.jsx(z.CircularProgress,{})})]})},Qo=t=>{const{gap:e=1,alignItems:n="center",...r}=t;return g.jsx(z.Box,{display:"flex",flexDirection:"row",gap:e,alignItems:n,...r})},Lu=t=>{const{gap:e=1,...n}=t;return g.jsx(z.Box,{display:"flex",flexDirection:"column",gap:e,...n})};function Q2({icon:t,children:e,sx:n,...r}){return e?g.jsx(z.Tooltip,{title:e,children:g.jsx(t,{"data-testid":"MBv2_table-tooltip",fontSize:"small",sx:n??{ml:.5},...r})}):null}function eI(t){return g.jsx(Q2,{icon:$U,...t})}const cv=t=>{const{id:e,getRowKey:n=me=>"id"in me&&(typeof me.id=="string"||typeof me.id=="number")&&me.id!=null?me.id:(console.warn(`Table: "id" not found or undefined in ${JSON.stringify(me)}. If provided, id must have a value and be type string or number. Please implement the Table.getRowKey prop so Table knows how to uniquely identify this row.`),String(JSON.stringify(me))),columns:r,data:o=[],onRowClick:i,onRowClickObj:s,checkedKeys:a,setCheckedKeys:l,renderExpand:u,sortField:f,sortOrder:p,onSortChange:m,allowSortCols:b,fixedLayout:v=!1,className:y,emptyTableMsg:x="No items to display",errorTableMsg:S,retryCallback:k,isLoading:T=!1,disableMobileCards:C=!1,highlightSelectedRow:O=!1,selectedRowColor:I,selectedRowKey:N,headerRowStyle:L={},stickyHeader:V,reRenderExpand:M=!1,expandOnRowClick:B=!1,tooltipProps:H={},...F}=t,{palette:P}=z.useTheme(),_=P.grey[P.mode=="dark"?600:50],[D,R]=J.useState(void 0),[j,K]=J.useState(typeof O=="string"||typeof O=="number"?O:void 0);vQ(t);const U=me=>{me!==f?m&&m(me,"asc"):m&&m(f,p==="asc"?"desc":"asc")},Y=me=>f===me?p:null,fe=z.useMediaQuery(z.useTheme().breakpoints.down("sm")),ue=r.filter(me=>!me.hideCol&&(!fe||!me.hideOnMobile));u&&!fe&&ue.unshift({key:"MBv2_Expandable_Column",fieldName:"id",label:"",render:(me,Be)=>{const De=n(Be),yt=D===De;return g.jsx(z.IconButton,{"data-testid":"expand-collapse-btn","aria-label":yt?"collapse row":"expand row",size:"small",onClick:()=>X(De),children:yt?g.jsx(pp,{"data-testid":"collapse-up"}):g.jsx(y0,{"data-testid":"expand-down"})})}}),a&&l&&ue.unshift({key:"MBv2_Checkbox_Column",fieldName:"id",label:"",hideOnMobile:!0,render:(me,Be)=>{const De=n(Be);return g.jsx(z.Checkbox,{onChange:()=>{const yt=a.includes(De);l(yt?a.filter(ct=>ct!==De):[...a,De])},checked:a.includes(De)})}});const pe=m!==void 0,Z=me=>pe?b?b.includes(me):!0:!1,te=g.jsxs(z.Box,{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"row",children:[g.jsx(LU,{})," ",x]}),ce=g.jsxs(z.Box,{"data-testid":"table-fetch-error-msg",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"row",children:[g.jsx(dw,{color:"error"})," ",S,k&&g.jsx(z.Button,{variant:"text",onClick:k,children:"Retry?"})]}),ne=()=>{if(S)return g.jsx(z.TableRow,{children:g.jsx(z.TableCell,{colSpan:r.length,align:"center",sx:{borderBottom:"unset"},children:ce})});if(o.length===0)return g.jsx(z.TableRow,{children:g.jsx(z.TableCell,{colSpan:r.length,align:"center",sx:{borderBottom:"unset"},children:te})})},re=()=>{if(S)return ce;if(o.length===0)return te},le=me=>{O&&K(me)},ye=me=>{const Be=n(me);if((i||s)&&(i==null||i(Be),s==null||s(me),le(Be)),u&&B){const De=D===Be?void 0:Be;R(De),le(De)}},X=me=>{const Be=D===me?void 0:me;R(Be),le(Be)},ee=me=>{if(!u)return;const Be=D===n(me);return g.jsxs(g.Fragment,{children:[g.jsxs(z.Button,{"data-testid":"show-more-less-btn",variant:"text",onClick:()=>X(n(me)),children:[Be?g.jsx(pp,{}):g.jsx(y0,{})," Show"," ",Be?"Less":"More"]}),g.jsx(Z2,{colSpan:r.length,isExpanded:n(me)===D,obj:me,renderExpand:De=>u(De),asMobileCard:!0})]})},ie=I??_,we=me=>{const De=(O?j:N)===n(me)?ie:"inherit",yt=i||s||B;return{cursor:yt?"pointer":"default",backgroundColor:De,...u?{"& > td":{borderBottom:"unset"}}:{"&:last-child td":{borderBottom:"unset"}},...yt&&{"&:hover":{backgroundColor:De===ie?rG(De,.1):ie}}}},Ce=me=>g.jsx(eI,{...H,children:me}),Ae=(me,Be)=>{const De=me.find(ct=>ct.key==="MBv2_Checkbox_Column"),yt=ue.filter(ct=>ct.key!=="MBv2_Checkbox_Column");return g.jsxs(Qo,{alignItems:"flex-start",children:[De&&g.jsx(Lu,{children:Ll(De,Be,fe)}),g.jsxs(Lu,{width:"100%",children:[g.jsx("table",{className:"MBv2_Table_Stack",children:g.jsx("tbody",{className:"MBv2_Table_Stack_Body",children:yt.map(ct=>g.jsxs("tr",{className:"MBv2_Table_Stack_Row",children:[g.jsxs("td",{className:`MBv2_Table_Stack_Cell_Label MBv2_Table_Stack_Col_${xn(ct)}`,style:{textWrap:"nowrap"},children:[ct.label??Ln(xn(ct)),Ce(ct.tooltip)]}),g.jsx("td",{className:`MBv2_Table_Stack_Cell_Value MBv2_Table_Stack_Val_${xn(ct)}`,style:{paddingLeft:"10px"},children:Ll(ct,Be,fe)})]},`row-${n(Be)}-${xn(ct)}`))})}),ee(Be)]})]})},Me=()=>g.jsxs("div",{...e?{id:`mobile-table-${e}`}:{},className:y,"data-testid":"mui-table-mobile",children:[pe&&g.jsxs(g.Fragment,{children:[g.jsxs(z.Box,{display:"flex",className:"MBv2_Table_Stack_Sort",children:[g.jsx(z.TextField,{select:!0,sx:{flexGrow:1},size:"small",value:f??"",label:"Sort By...",onChange:me=>U(me.target.value),fullWidth:!0,children:ue.map(me=>{if(Z(xn(me)))return g.jsx(z.MenuItem,{value:xn(me),children:me.label??Ln(xn(me))},`rowHeader-${xn(me)}`)})}),g.jsx(z.IconButton,{onClick:()=>{f&&U(f)},children:g.jsx(jU,{className:`sort-icon-${p}`})})]}),g.jsx(z.Divider,{sx:{margin:"10px 0"}})]}),re()??o.map(me=>g.jsx(z.Card,{className:"MBv2_Table_Stack_Container",sx:{margin:"5px 0",padding:"5px",overflowX:"auto",...we(me)},onClick:()=>ye(me),"data-testid":`card-${n(me)}`,children:Ae(ue,me)},n(me)))]}),Ie=()=>g.jsx(z.TableContainer,{component:z.Card,"data-testid":"mui-table",...e?{tableId:`table-${e}`}:{},className:y,style:V?{maxHeight:V,overflow:"auto"}:{},children:g.jsxs(z.Table,{stickyHeader:V!=="undefined",style:{tableLayout:v?"fixed":"auto"},className:"MBv2_Table",sx:L?{"& .MuiTableCell-head":{...L}}:{},...F,children:[g.jsx(z.TableHead,{className:"MBv2_Table_Head",children:g.jsx(z.TableRow,{className:"MBv2_Table_Head_Row",children:ue.map((me,Be)=>{const De=Z(xn(me));return g.jsx(z.TableCell,{width:Array.isArray(v)?v[Be]:"auto",sx:me.tableCellSx??{},children:g.jsx(z.Box,{style:{display:"flex",alignItems:"center"},children:g.jsxs(z.Box,{sx:[De&&{"&:hover":{cursor:"pointer",backgroundColor:P.mode==="dark"?"#222222":"#ededed",borderRadius:2}}],style:{display:"flex",alignItems:"center",padding:"5px",paddingLeft:"6px",marginLeft:"-6px"},onClick:De?()=>U(xn(me)):void 0,children:[g.jsx("strong",{className:"MBv2_Table_Col_Label",style:{wordBreak:"normal"},"data-testid":"column-title",children:me.label??Ln(xn(me))}),Ce(me.tooltip),De&&Y(xn(me))==="asc"&&g.jsx(pp,{style:{marginLeft:"5px"}}),De&&Y(xn(me))==="desc"&&g.jsx(y0,{style:{marginLeft:"5px"}}),De&&Y(xn(me))!=="asc"&&Y(xn(me))!=="desc"&&g.jsx(HU,{style:{marginLeft:"5px"}})]})})},`rowHeader-${xn(me)}`)})})}),g.jsx(z.TableBody,{className:"MBv2_Table_Body",children:ne()??o.map(me=>g.jsxs(J.Fragment,{children:[g.jsx(z.TableRow,{"data-testid":`row-${n(me)}`,className:"MBv2_Table_Body_Row",onClick:()=>ye(me),sx:we(me),children:ue.map(Be=>g.jsx(z.TableCell,{className:`MBv2_Table_Body_Cell MBv2_Table_Body_Col_${xn(Be)}`,children:Ll(Be,me,fe)},`row-${n(me)}-${xn(Be)}`))}),u&&g.jsx(Z2,{colSpan:ue.length,isExpanded:n(me)===D,obj:me,renderExpand:Be=>u(Be),reRenderExpand:M})]},n(me)))})]})});return g.jsx(lv,{isLoading:T,children:fe&&!C?Me():Ie()})},vQ=t=>{const{fixedLayout:e,checkedKeys:n,setCheckedKeys:r,renderExpand:o,columns:i,expandOnRowClick:s,onRowClick:a,onRowClickObj:l,selectedRowKey:u,highlightSelectedRow:f}=t,p="Table component:";Array.isArray(e)&&(!o&&e.length!==i.length&&console.warn(`${p} Length of "fixedLayout" is not equal to the length of "columns". Got=${e.length}. Expected=${i.length}`),o&&e.length!==i.length+1&&console.warn(`${p} Length of "fixedLayout" is not equal to the length of "columns"+1. Make sure you're including a percentage for the expand/collapse column AND each column in "columns".`)),s&&!o&&console.warn(`${p} renderExpand should be defined when expandOnRowClick is defined`),a&&l&&console.warn(`${p} 'onRowClick' and 'onRowClickObj' are both defined. Only one should be defined.`),(n||r)&&o&&console.warn(`${p} checkedKeys/setCheckedKeys & renderExpand cannot both be defined`),n&&!r&&console.warn(`${p} if checkedKeys is defined, setCheckedKeys must also be defined`),!n&&r&&console.warn(`${p} if setCheckedKeys is defined, checkedKeys must also be defined`);const m=i.map(y=>xn(y)),b=m.filter((y,x)=>m.indexOf(y)!==x),v=[...new Set(b)];v.length>0&&console.warn(`${p} duplicate key/fieldName found in 'columns': ${v.join(", ")}. Make sure to define a unique 'key' if you have multiple column definitions with the same 'fieldName'.`),f&&u&&console.warn(`${p} must choose 'highlightSelectedRow' (uncontrolled) or 'selectedRowKey' (controlled)`)},xn=t=>t.key??t.fieldName,xQ=(t,e)=>e.split(".").reduce((n,r)=>{if(n&&typeof n=="object")return n[r]},t),Ll=(t,e,n=!1)=>{const r=xQ(e,t.fieldName);return t.render?t.render(r,e,n):r},tI=t=>{const{paginationState:e,onPageChange:n,onRowsPerPageChange:r,hidePaginationControls:o=!1,rowsPerPageOptions:i=[5,10,25],...s}=t,{pageNo:a,pageSize:l,totalCount:u,sortField:f,sortOrder:p}=e,m=x=>{n(x)},b=x=>{r(parseInt(x.target.value,10))},v=z.useMediaQuery(z.useTheme().breakpoints.down("sm")),y=!t.data||t.data&&t.data.length===0;return g.jsxs(z.Box,{children:[g.jsx(cv,{sortOrder:p,sortField:f,...s}),!o&&!y&&g.jsx(z.TablePagination,{"data-testid":"pagination-controls",component:"div",rowsPerPageOptions:v?[]:i,count:u,rowsPerPage:l,page:a,onPageChange:(x,S)=>m(S),onRowsPerPageChange:b,sx:{flexGrow:1,marginRight:{xs:0,md:15}}})]})},nI=()=>({height:window.innerHeight,width:window.innerWidth}),rI=()=>{const[t,e]=J.useState(nI());return J.useEffect(()=>{const n=()=>{e(nI())};return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),t},Tr=t=>{const{name:e="button",color:n="primary",fullWidthOnMobile:r=!0,type:o="button",variant:i="contained"}=t,{width:s}=rI(),a=["locationInBar","closeDialog","fullWidthOnMobile"],l=r&&s<600;return g.jsx(z.Button,{role:"button",name:e,color:n,variant:i,type:o,fullWidth:t.fullWidth?!0:l,...lr({...t},a)})},wQ=t=>{const{citation:e,anchorEl:n,onDeleteCitation:r,onClose:o}=t;if(r)return g.jsx(z.Popper,{open:e!==null,anchorEl:n,placement:"bottom-end",style:{zIndex:1300},children:e&&g.jsxs(z.Box,{component:z.Paper,p:1,display:"flex",gap:1,boxShadow:9,"data-testid":`citation-table_delete-prompt-${e.id}`,children:[g.jsxs(z.Typography,{variant:"body2",children:["Are you sure you want to delete this ",e.fileName?"attachment":"citation","?"]}),g.jsxs(z.Box,{display:"flex",flexDirection:"row",children:[g.jsx(Tr,{size:"small",variant:"text",onClick:o,"data-testid":`citation-table_delete-prompt-${e.id}-noBtn`,children:"No"}),g.jsx(Tr,{size:"small",color:"error",startIcon:g.jsx(e0,{}),onClick:()=>r(e.id).finally(o),"data-testid":`citation-table_delete-prompt-${e.id}-yesBtn`,children:"Yes"})]})]})})},SQ=t=>{const{citation:e,anchorEl:n,onClose:r,open:o}=t;return g.jsx(z.Popper,{open:o,anchorEl:n,placement:"bottom-end",style:{zIndex:1300},children:e&&g.jsxs(z.Box,{component:z.Paper,p:1,display:"flex",gap:1,boxShadow:9,"data-testid":`citation-table_launch-link-prompt-${e.id}`,flexDirection:"column",alignItems:"end",children:[g.jsxs(z.Typography,{variant:"body2",sx:{wordBreak:"break-all",maxWidth:"350px"},children:["Are you sure you want to go to ",g.jsx("br",{}),g.jsx("b",{children:e.url}),"?"]}),g.jsxs(z.Box,{display:"flex",flexDirection:"row",children:[g.jsx(Tr,{size:"small",variant:"text",onClick:r,"data-testid":`citation-table_launch-prompt-${e.id}-noBtn`,children:"No"}),g.jsx(Tr,{size:"small",startIcon:g.jsx(b0,{}),onClick:()=>{window.open(e.url,"_blank","noopener,noreferrer"),r()},"data-testid":`citation-table_launch-prompt-${e.id}-yesBtn`,children:"Yes"})]})]})})};function uv({canLaunchUrl:t,citation:e,asLink:n}){const r=J.useRef(null),[o,i]=J.useState(!1),s=()=>{i(!1)};return!t||e.fileName?null:g.jsxs(g.Fragment,{children:[n?g.jsx(z.Link,{ref:r,component:"button",sx:{cursor:"pointer"},type:"button",onClick:()=>i(!0),children:e.url}):g.jsx(z.Tooltip,{title:"Open URL",children:g.jsx(z.IconButton,{ref:r,color:"primary",onClick:()=>{i(!0)},"data-testid":`citation-table_launch-link-btn-${e.id}`,sx:{visibility:t!=null&&t(e)?"visible":"hidden"},children:g.jsx(b0,{})})}),g.jsx(SQ,{citation:e,anchorEl:r.current,onClose:s,open:o})]})}function oI({onDownloadAttachment:t,citation:e}){if(!(!t||!e.fileName))return g.jsx(z.Tooltip,{title:"Download",children:g.jsx(z.IconButton,{color:"primary",onClick:()=>t==null?void 0:t(e),"data-testid":`citation-table_download-btn-${e.id}`,children:g.jsx(PU,{})})})}function iI({onPreviewAttachment:t,citation:e}){if(!t||!e.fileName)return;const n=["pdf","png","jpg","jpeg","gif","bmp","svg","webp","mp3","wav","mp4","webm","html","htm","txt","xml","json","csv"],r=e.fileName.split(".").pop();if(!(!r||!n.includes(r)))return g.jsx(z.Tooltip,{title:"View File",children:g.jsx(z.IconButton,{color:"primary",onClick:()=>t==null?void 0:t(e),"data-testid":`citation-table_view-file-btn-${e.id}`,children:g.jsx(b0,{})})})}const CQ=t=>{const{refreshKey:e,title:n,onCancel:r,onNewCitation:o,onNewAttachment:i,onEditCitation:s,onEditAttachment:a,onViewCitation:l,onViewAttachment:u,onDeleteCitation:f,onDownloadAttachment:p,onPreviewAttachment:m,onSelect:b,getCitationsPaginated:v,selectedIds:y,setSelectedIds:x,onError:S=()=>{},condenseTable:k=!1,canSelect:T=!1,canLaunchUrl:C,addlActions:O,readOnly:I=!1,showCloseBtn:N=!1,canSearch:L=!1}=t,V=!!t.canCreate&&!I,M=!!a&&!!s&&!I,B=!!u&&!!l&&I&&k,H=!!f&&!I,{palette:F}=z.useTheme(),[P,_]=J.useState([]),[D,R]=J.useState(!1),[j,K]=J.useState(!0),[U,Y]=J.useState(null),[fe,ue]=J.useState(null),[pe,Z]=J.useState({pageNo:0,pageSize:k?5:10,totalCount:0,search:L?"":void 0}),te=()=>{R(!1),K(!0),v({pageNo:pe.pageNo,pageSize:pe.pageSize,search:pe.search},y).then(Ie=>(_(Ie.data),Z(me=>({...me,totalCount:Ie.totalCount})),Ie)).catch(Ie=>{S(Ie),R(!0),_([])}).finally(()=>K(!1))};J.useEffect(te,[pe.pageNo,pe.pageSize,e,pe.search]);const ce=()=>{ue(null),Y(null)},ne=g.jsx(Tr,{variant:T?"outlined":"contained",size:T?"small":"medium",onClick:o,startIcon:g.jsx(Hf,{}),children:"Add Citation"}),re=g.jsx(Tr,{variant:T?"outlined":"contained",size:T?"small":"medium",onClick:i,startIcon:g.jsx(KM,{}),children:"Add Attachment"}),le=Ie=>{if(!(!M&&!B)){if(M)return g.jsx(z.Tooltip,{title:"Edit",children:g.jsx(z.IconButton,{color:"primary",onClick:()=>Ie.fileName?a(Ie.id):s(Ie.id),"data-testid":`citation-table_edit-btn-${Ie.id}`,children:g.jsx(NU,{})})});if(B)return g.jsx(z.Tooltip,{title:"View",children:g.jsx(z.IconButton,{color:"primary",onClick:()=>Ie.fileName?u(Ie.id):l(Ie.id),"data-testid":`citation-table_view-btn-${Ie.id}`,children:g.jsx(UU,{})})})}},ye=Ie=>{if(!(!H||I))return g.jsx(z.Tooltip,{title:"Delete",children:g.jsx(z.IconButton,{color:"error",onClick:me=>{ue(Ie),Y(me.currentTarget)},"data-testid":`citation-table_delete-btn-${Ie.id}`,children:g.jsx(e0,{})})})},X=Ie=>g.jsx(uv,{citation:Ie,canLaunchUrl:C}),ee=Ie=>g.jsx(iI,{citation:Ie,onPreviewAttachment:m}),ie=Ie=>g.jsx(oI,{citation:Ie,onDownloadAttachment:p}),we=B||M||H||C||m||p||O,Ce=[...aI(F,k),{fieldName:"id",key:"Action",label:"Action",hideCol:!we,render:(Ie,me)=>g.jsxs(z.Box,{display:"flex",flexDirection:"row-reverse",children:[O==null?void 0:O(me),ye(me),le(me),ee(me),X(me),ie(me)]})}],Ae=J.useCallback(Ie=>{Z(me=>({...me,pageNo:0,search:Ie}))},[]),Me=()=>L?g.jsx(JM,{onSearch:Ae}):null;return g.jsxs(Lu,{children:[g.jsxs(z.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[g.jsx(z.Typography,{variant:k?"h6":"h2",children:n}),!T&&V&&g.jsxs(z.Box,{display:"flex",flexDirection:"row",gap:1,children:[ne,re]}),N&&g.jsx(z.IconButton,{onClick:r,children:g.jsx(fp,{})})]}),Me(),g.jsx(tI,{"data-testid":"citation-table",size:k?"x-small":"medium",isLoading:j,columns:Ce,data:P,paginationState:pe,onPageChange:Ie=>Z(me=>({...me,pageNo:Ie})),onRowsPerPageChange:Ie=>Z(me=>({...me,pageSize:Ie,pageNo:0})),errorTableMsg:D?"Failed to load citations.":void 0,retryCallback:te,setCheckedKeys:T?x:void 0,checkedKeys:T?y:void 0}),T&&g.jsxs(z.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",children:[g.jsx(z.Box,{display:"flex",flexDirection:"row",gap:".25rem",children:V&&g.jsxs(g.Fragment,{children:[ne,re]})}),!I&&g.jsxs(z.Box,{display:"flex",flexDirection:"row",gap:".25rem",children:[g.jsx(Tr,{variant:"outlined",size:"small",onClick:r,children:"Cancel"}),g.jsxs(Tr,{variant:"contained",size:"small",onClick:()=>b(y),children:["Select",y.length>0&&` (${y.length})`]})]})]}),g.jsx(wQ,{citation:fe,anchorEl:U,onDeleteCitation:f,onClose:ce})]})},sI=(t,e)=>{const n=t?bs.truncate(e,{length:30,omission:"..."}):e,r=n==null?void 0:n.endsWith("...");return g.jsx("span",{style:{wordBreak:"break-all"},children:r?g.jsx(z.Tooltip,{title:e,children:g.jsx("span",{children:n})}):e})},aI=(t,e=!1)=>[{fieldName:"fileName",key:"CitationOrAttachment",label:"Type",render:(n,r)=>g.jsx(z.Tooltip,{title:n?"Attachment":"URL",children:n?g.jsx(KM,{sx:{color:t.grey[500],marginTop:"4px"},"data-testid":`attachment-icon-${r.id}`}):g.jsx(Hf,{sx:{color:t.grey[500],marginTop:"6px"},"data-testid":`url-icon-${r.id}`})}),ignoreDiff:!0},{fieldName:"title",render:n=>sI(e,n)},{fieldName:"fileName",key:"URL/File Name",label:"URL/Other Identifier/File Name",render:(n,r)=>sI(e,n||r.url),isEqual:(n,r)=>n.fileName&&r.fileName?n.fileName===r.fileName:n.url===r.url},{fieldName:"source",hideCol:e},{fieldName:"details",hideCol:e},{fieldName:"accessedAt",hideCol:e,render:(n,r)=>{if(!r.fileName)return(n==null?void 0:n.slice(0,10))??""}},{fieldName:"classification",hideCol:e}];var dv,lI;function TQ(){if(lI)return dv;lI=1;function t(S){this._maxSize=S,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(S){return this._values[S]},t.prototype.set=function(S,k){return this._size>=this._maxSize&&this.clear(),S in this._values||this._size++,this._values[S]=k};var e=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,i=/^\s*(['"]?)(.*?)(\1)\s*$/,s=512,a=new t(s),l=new t(s),u=new t(s);dv={Cache:t,split:p,normalizePath:f,setter:function(S){var k=f(S);return l.get(S)||l.set(S,function(C,O){for(var I=0,N=k.length,L=C;I<N-1;){var V=k[I];if(V==="__proto__"||V==="constructor"||V==="prototype")return C;L=L[k[I++]]}L[k[I]]=O})},getter:function(S,k){var T=f(S);return u.get(S)||u.set(S,function(O){for(var I=0,N=T.length;I<N;)if(O!=null||!k)O=O[T[I++]];else return;return O})},join:function(S){return S.reduce(function(k,T){return k+(b(T)||n.test(T)?"["+T+"]":(k?".":"")+T)},"")},forEach:function(S,k,T){m(Array.isArray(S)?S:p(S),k,T)}};function f(S){return a.get(S)||a.set(S,p(S).map(function(k){return k.replace(i,"$2")}))}function p(S){return S.match(e)||[""]}function m(S,k,T){var C=S.length,O,I,N,L;for(I=0;I<C;I++)O=S[I],O&&(x(O)&&(O='"'+O+'"'),L=b(O),N=!L&&/^\d+$/.test(O),k.call(T,O,L,N,I,S))}function b(S){return typeof S=="string"&&S&&["'",'"'].indexOf(S.charAt(0))!==-1}function v(S){return S.match(r)&&!S.match(n)}function y(S){return o.test(S)}function x(S){return!b(S)&&(v(S)||y(S))}return dv}var Ca=TQ(),fv,cI;function kQ(){if(cI)return fv;cI=1;const t=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,e=f=>f.match(t)||[],n=f=>f[0].toUpperCase()+f.slice(1),r=(f,p)=>e(f).join(p).toLowerCase(),o=f=>e(f).reduce((p,m)=>`${p}${p?m[0].toUpperCase()+m.slice(1).toLowerCase():m.toLowerCase()}`,"");return fv={words:e,upperFirst:n,camelCase:o,pascalCase:f=>n(o(f)),snakeCase:f=>r(f,"_"),kebabCase:f=>r(f,"-"),sentenceCase:f=>n(r(f," ")),titleCase:f=>e(f).map(n).join(" ")},fv}var pv=kQ(),Th={exports:{}},uI;function EQ(){if(uI)return Th.exports;uI=1,Th.exports=function(o){return t(e(o),o)},Th.exports.array=t;function t(o,i){var s=o.length,a=new Array(s),l={},u=s,f=n(i),p=r(o);for(i.forEach(function(b){if(!p.has(b[0])||!p.has(b[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});u--;)l[u]||m(o[u],u,new Set);return a;function m(b,v,y){if(y.has(b)){var x;try{x=", node was:"+JSON.stringify(b)}catch{x=""}throw new Error("Cyclic dependency"+x)}if(!p.has(b))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(b));if(!l[v]){l[v]=!0;var S=f.get(b)||new Set;if(S=Array.from(S),v=S.length){y.add(b);do{var k=S[--v];m(k,p.get(k),y)}while(v);y.delete(b)}a[--s]=b}}}function e(o){for(var i=new Set,s=0,a=o.length;s<a;s++){var l=o[s];i.add(l[0]),i.add(l[1])}return Array.from(i)}function n(o){for(var i=new Map,s=0,a=o.length;s<a;s++){var l=o[s];i.has(l[0])||i.set(l[0],new Set),i.has(l[1])||i.set(l[1],new Set),i.get(l[0]).add(l[1])}return i}function r(o){for(var i=new Map,s=0,a=o.length;s<a;s++)i.set(o[s],s);return i}return Th.exports}var OQ=EQ();const MQ=Un(OQ),_Q=Object.prototype.toString,IQ=Error.prototype.toString,DQ=RegExp.prototype.toString,AQ=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",PQ=/^Symbol\((.*)\)(.*)$/;function NQ(t){return t!=+t?"NaN":t===0&&1/t<0?"-0":""+t}function dI(t,e=!1){if(t==null||t===!0||t===!1)return""+t;const n=typeof t;if(n==="number")return NQ(t);if(n==="string")return e?`"${t}"`:t;if(n==="function")return"[Function "+(t.name||"anonymous")+"]";if(n==="symbol")return AQ.call(t).replace(PQ,"Symbol($1)");const r=_Q.call(t).slice(8,-1);return r==="Date"?isNaN(t.getTime())?""+t:t.toISOString(t):r==="Error"||t instanceof Error?"["+IQ.call(t)+"]":r==="RegExp"?DQ.call(t):null}function Cs(t,e){let n=dI(t,e);return n!==null?n:JSON.stringify(t,function(r,o){let i=dI(this[r],e);return i!==null?i:o},2)}function fI(t){return t==null?[]:[].concat(t)}let pI,hI,mI,$Q=/\$\{\s*(\w+)\s*\}/g;pI=Symbol.toStringTag;class gI{constructor(e,n,r,o){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[pI]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],fI(e).forEach(i=>{if(pr.isError(i)){this.errors.push(...i.errors);const s=i.inner.length?i.inner:[i];this.inner.push(...s)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}hI=Symbol.hasInstance,mI=Symbol.toStringTag;class pr extends Error{static formatError(e,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof e=="string"?e.replace($Q,(o,i)=>Cs(n[i])):typeof e=="function"?e(n):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,n,r,o,i){const s=new gI(e,n,r,o);if(i)return s;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[mI]="Error",this.name=s.name,this.message=s.message,this.type=s.type,this.value=s.value,this.path=s.path,this.errors=s.errors,this.inner=s.inner,Error.captureStackTrace&&Error.captureStackTrace(this,pr)}static[hI](e){return gI[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let ei={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:t,type:e,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${Cs(r,!0)}\`).`:".";return e!=="mixed"?`${t} must be a \`${e}\` type, but the final value was: \`${Cs(n,!0)}\``+o:`${t} must match the configured type. The validated value was: \`${Cs(n,!0)}\``+o}},kr={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},LQ={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},hv={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},BQ={isValue:"${path} field must be ${value}"},kh={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:ei,string:kr,number:LQ,date:hv,object:kh,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:BQ,tuple:{notType:t=>{const{path:e,value:n,spec:r}=t,o=r.types.length;if(Array.isArray(n)){if(n.length<o)return`${e} tuple value has too few items, expected a length of ${o} but got ${n.length} for value: \`${Cs(n,!0)}\``;if(n.length>o)return`${e} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${Cs(n,!0)}\``}return pr.formatError(ei.notType,t)}}});const mv=t=>t&&t.__isYupSchema__;class Eh{static fromOptions(e,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:i}=n,s=typeof r=="function"?r:(...a)=>a.every(l=>l===r);return new Eh(e,(a,l)=>{var u;let f=s(...a)?o:i;return(u=f==null?void 0:f(l))!=null?u:l})}constructor(e,n){this.fn=void 0,this.refs=e,this.refs=e,this.fn=n}resolve(e,n){let r=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),o=this.fn(r,e,n);if(o===void 0||o===e)return e;if(!mv(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const Oh={context:"$",value:"."};class Ta{constructor(e,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof e!="string")throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),e==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Oh.context,this.isValue=this.key[0]===Oh.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?Oh.context:this.isValue?Oh.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Ca.getter(this.path,!0),this.map=n.map}getValue(e,n,r){let o=this.isContext?r:this.isValue?e:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(e,n){return this.getValue(e,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}Ta.prototype.__isYupRef=!0;const ka=t=>t==null;function Bl(t){function e({value:n,path:r="",options:o,originalValue:i,schema:s},a,l){const{name:u,test:f,params:p,message:m,skipAbsent:b}=t;let{parent:v,context:y,abortEarly:x=s.spec.abortEarly,disableStackTrace:S=s.spec.disableStackTrace}=o;const k={value:n,parent:v,context:y};function T(B={}){const H=yI(Object.assign({value:n,originalValue:i,label:s.spec.label,path:B.path||r,spec:s.spec,disableStackTrace:B.disableStackTrace||S},p,B.params),k),F=new pr(pr.formatError(B.message||m,H),n,H.path,B.type||u,H.disableStackTrace);return F.params=H,F}const C=x?a:l;let O={path:r,parent:v,type:u,from:o.from,createError:T,resolve(B){return bI(B,k)},options:o,originalValue:i,schema:s};const I=B=>{pr.isError(B)?C(B):B?l(null):C(T())},N=B=>{pr.isError(B)?C(B):a(B)};if(b&&ka(n))return I(!0);let V;try{var M;if(V=f.call(O,n,O),typeof((M=V)==null?void 0:M.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${O.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(V).then(I,N)}}catch(B){N(B);return}I(V)}return e.OPTIONS=t,e}function yI(t,e){if(!t)return t;for(const n of Object.keys(t))t[n]=bI(t[n],e);return t}function bI(t,e){return Ta.isRef(t)?t.getValue(e.value,e.parent,e.context):t}function FQ(t,e,n,r=n){let o,i,s;return e?(Ca.forEach(e,(a,l,u)=>{let f=l?a.slice(1,a.length-1):a;t=t.resolve({context:r,parent:o,value:n});let p=t.type==="tuple",m=u?parseInt(f,10):0;if(t.innerType||p){if(p&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(n&&m>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${e}. because there is no value at that index. `);o=n,n=n&&n[m],t=p?t.spec.types[m]:t.innerType}if(!u){if(!t.fields||!t.fields[f])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${s} which is a type: "${t.type}")`);o=n,n=n&&n[f],t=t.fields[f]}i=f,s=l?"["+a+"]":"."+a}),{schema:t,parent:o,parentPath:i}):{parent:o,parentPath:e,schema:t}}class Mh extends Set{describe(){const e=[];for(const n of this.values())e.push(Ta.isRef(n)?n.describe():n);return e}resolveAll(e){let n=[];for(const r of this.values())n.push(e(r));return n}clone(){return new Mh(this.values())}merge(e,n){const r=this.clone();return e.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function Fl(t,e=new Map){if(mv(t)||!t||typeof t!="object")return t;if(e.has(t))return e.get(t);let n;if(t instanceof Date)n=new Date(t.getTime()),e.set(t,n);else if(t instanceof RegExp)n=new RegExp(t),e.set(t,n);else if(Array.isArray(t)){n=new Array(t.length),e.set(t,n);for(let r=0;r<t.length;r++)n[r]=Fl(t[r],e)}else if(t instanceof Map){n=new Map,e.set(t,n);for(const[r,o]of t.entries())n.set(r,Fl(o,e))}else if(t instanceof Set){n=new Set,e.set(t,n);for(const r of t)n.add(Fl(r,e))}else if(t instanceof Object){n={},e.set(t,n);for(const[r,o]of Object.entries(t))n[r]=Fl(o,e)}else throw Error(`Unable to clone ${t}`);return n}function RQ(t){if(!(t!=null&&t.length))return;const e=[];let n="",r=!1,o=!1;for(let i=0;i<t.length;i++){const s=t[i];if(s==="["&&!o){n&&(e.push(...n.split(".").filter(Boolean)),n=""),r=!0;continue}if(s==="]"&&!o){n&&(/^\d+$/.test(n)?e.push(n):e.push(n.replace(/^"|"$/g,"")),n=""),r=!1;continue}if(s==='"'){o=!o;continue}if(s==="."&&!r&&!o){n&&(e.push(n),n="");continue}n+=s}return n&&e.push(...n.split(".").filter(Boolean)),e}function zQ(t,e){const n=e?`${e}.${t.path}`:t.path;return t.errors.map(r=>({message:r,path:RQ(n)}))}function vI(t,e){var n;if(!((n=t.inner)!=null&&n.length)&&t.errors.length)return zQ(t,e);const r=e?`${e}.${t.path}`:t.path;return t.inner.flatMap(o=>vI(o,r))}class ti{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Mh,this._blacklist=new Mh,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(ei.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},e==null?void 0:e.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Fl(Object.assign({},this.spec,e)),n}label(e){let n=this.clone();return n.spec.label=e,n}meta(...e){if(e.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},e[0]),n}withMutation(e){let n=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=n,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let n=this,r=e.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(e._whitelist,e._blacklist),r._blacklist=n._blacklist.merge(e._blacklist,e._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{e.tests.forEach(s=>{i.test(s.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(e){return e==null?!!(this.spec.nullable&&e===null||this.spec.optional&&e===void 0):this._typeCheck(e)}resolve(e){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,i)=>i.resolve(o,e),n),n=n.resolve(e)}return n}resolveOptions(e){var n,r,o,i;return Object.assign({},e,{from:e.from||[],strict:(n=e.strict)!=null?n:this.spec.strict,abortEarly:(r=e.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=e.recursive)!=null?o:this.spec.recursive,disableStackTrace:(i=e.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(e,n={}){let r=this.resolve(Object.assign({},n,{value:e})),o=n.assert==="ignore-optionality",i=r._cast(e,n);if(n.assert!==!1&&!r.isType(i)){if(o&&ka(i))return i;let s=Cs(e),a=Cs(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
405
+ 3. "-" cannot repeat`);Kt.customSchemes.push([t,e])}function UZ(){Kt.scanner=BZ(Kt.customSchemes);for(let t=0;t<Kt.tokenQueue.length;t++)Kt.tokenQueue[t][1]({scanner:Kt.scanner});Kt.parser=zZ(Kt.scanner.tokens);for(let t=0;t<Kt.pluginQueue.length;t++)Kt.pluginQueue[t][1]({scanner:Kt.scanner,parser:Kt.parser});return Kt.initialized=!0,Kt}function sv(t){return Kt.initialized||UZ(),VZ(Kt.parser.start,t,F2(Kt.scanner.start,t))}sv.scan=F2;function U2(t,e=null,n=null){if(e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const r=new ov(n),o=sv(t),i=[];for(let s=0;s<o.length;s++){const a=o[s];a.isLink&&(!e||a.t===e)&&r.check(a)&&i.push(a.toFormattedObject(r))}return i}const av="[\0-   ᠎ -\u2029  ]",qZ=new RegExp(av),KZ=new RegExp(`${av}$`),YZ=new RegExp(av,"g");function GZ(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function JZ(t){return new en({key:new On("autolink"),appendTransaction:(e,n,r)=>{const o=e.some(u=>u.docChanged)&&!n.doc.eq(r.doc),i=e.some(u=>u.getMeta("preventAutolink"));if(!o||i)return;const{tr:s}=r,a=PR(n.doc,[...e]);if(RR(a).forEach(({newRange:u})=>{const f=$R(r.doc,u,b=>b.isTextblock);let p,m;if(f.length>1)p=f[0],m=r.doc.textBetween(p.pos,p.pos+p.node.nodeSize,void 0," ");else if(f.length){const b=r.doc.textBetween(u.from,u.to," "," ");if(!KZ.test(b))return;p=f[0],m=r.doc.textBetween(p.pos,u.to,void 0," ")}if(p&&m){const b=m.split(qZ).filter(Boolean);if(b.length<=0)return!1;const v=b[b.length-1],y=p.pos+m.lastIndexOf(v);if(!v)return!1;const x=sv(v).map(S=>S.toObject(t.defaultProtocol));if(!GZ(x))return!1;x.filter(S=>S.isLink).map(S=>({...S,from:y+S.start+1,to:y+S.end+1})).filter(S=>r.schema.marks.code?!r.doc.rangeHasMark(S.from,S.to,r.schema.marks.code):!0).filter(S=>t.validate(S.value)).filter(S=>t.shouldAutoLink(S.value)).forEach(S=>{Gg(S.from,S.to,r.doc).some(k=>k.mark.type===t.type)||s.addMark(S.from,S.to,t.type.create({href:S.href}))})}}),!!s.steps.length)return s}})}function XZ(t){return new en({key:new On("handleClickLink"),props:{handleClick:(e,n,r)=>{var o,i;if(r.button!==0||!e.editable)return!1;let s=r.target;const a=[];for(;s.nodeName!=="DIV";)a.push(s),s=s.parentNode;if(!a.find(m=>m.nodeName==="A"))return!1;const l=Yg(e.state,t.type.name),u=r.target,f=(o=u==null?void 0:u.href)!==null&&o!==void 0?o:l.href,p=(i=u==null?void 0:u.target)!==null&&i!==void 0?i:l.target;return u&&f?(window.open(f,p),!0):!1}}})}function ZZ(t){return new en({key:new On("handlePasteLink"),props:{handlePaste:(e,n,r)=>{const{state:o}=e,{selection:i}=o,{empty:s}=i;if(s)return!1;let a="";r.content.forEach(u=>{a+=u.textContent});const l=U2(a,{defaultProtocol:t.defaultProtocol}).find(u=>u.isLink&&u.value===a);return!a||!l?!1:t.editor.commands.setMark(t.type,{href:l.href})}}})}function Sa(t,e){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(r=>{const o=typeof r=="string"?r:r.scheme;o&&n.push(o)}),!t||t.replace(YZ,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}const QZ=vr.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{if(typeof t=="string"){j2(t);return}j2(t.scheme,t.optionalSlashes)})},onDestroy(){jZ()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(t,e)=>!!Sa(t,e.protocols),validate:t=>!!t,shouldAutoLink:t=>!!t}},addAttributes(){return{href:{default:null,parseHTML(t){return t.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:n=>!!Sa(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!Sa(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",Ct(this.options.HTMLAttributes,t),0]:["a",Ct(this.options.HTMLAttributes,{...t,href:""}),0]},addCommands(){return{setLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:r=>!!Sa(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,t).setMeta("preventAutolink",!0).run():!1},toggleLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:r=>!!Sa(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run():!1},unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[cs({find:t=>{const e=[];if(t){const{protocols:n,defaultProtocol:r}=this.options,o=U2(t).filter(i=>i.isLink&&this.options.isAllowedUri(i.value,{defaultValidate:s=>!!Sa(s,n),protocols:n,defaultProtocol:r}));o.length&&o.forEach(i=>e.push({text:i.value,data:{href:i.href},index:i.start}))}return e},type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[],{protocols:e,defaultProtocol:n}=this.options;return this.options.autolink&&t.push(JZ({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:r=>this.options.isAllowedUri(r,{defaultValidate:o=>!!Sa(o,e),protocols:e,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&t.push(XZ({type:this.type})),this.options.linkOnPaste&&t.push(ZZ({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),t}});function eQ(t){var e;const{char:n,allowSpaces:r,allowToIncludeChar:o,allowedPrefixes:i,startOfLine:s,$position:a}=t,l=r&&!o,u=u3(n),f=new RegExp(`\\s${u}$`),p=s?"^":"",m=o?"":u,b=l?new RegExp(`${p}${u}.*?(?=\\s${m}|$)`,"gm"):new RegExp(`${p}(?:^)?${u}[^\\s${m}]*`,"gm"),v=((e=a.nodeBefore)===null||e===void 0?void 0:e.isText)&&a.nodeBefore.text;if(!v)return null;const y=a.pos-v.length,x=Array.from(v.matchAll(b)).pop();if(!x||x.input===void 0||x.index===void 0)return null;const S=x.input.slice(Math.max(0,x.index-1),x.index),k=new RegExp(`^[${i==null?void 0:i.join("")}\0]?$`).test(S);if(i!==null&&!k)return null;const T=y+x.index;let C=T+x[0].length;return l&&f.test(v.slice(C-1,C+1))&&(x[0]+=" ",C+=1),T<a.pos&&C>=a.pos?{range:{from:T,to:C},query:x[0].slice(n.length),text:x[0]}:null}const tQ=new On("suggestion");function nQ({pluginKey:t=tQ,editor:e,char:n="@",allowSpaces:r=!1,allowToIncludeChar:o=!1,allowedPrefixes:i=[" "],startOfLine:s=!1,decorationTag:a="span",decorationClass:l="suggestion",decorationContent:u="",decorationEmptyClass:f="is-empty",command:p=()=>null,items:m=()=>[],render:b=()=>({}),allow:v=()=>!0,findSuggestionMatch:y=eQ}){let x;const S=b==null?void 0:b(),k=new en({key:t,view(){return{update:async(T,C)=>{var O,I,N,L,V,M,B;const H=(O=this.key)===null||O===void 0?void 0:O.getState(C),F=(I=this.key)===null||I===void 0?void 0:I.getState(T.state),P=H.active&&F.active&&H.range.from!==F.range.from,_=!H.active&&F.active,D=H.active&&!F.active,R=!_&&!D&&H.query!==F.query,j=_||P&&R,K=R||P,U=D||P&&R;if(!j&&!K&&!U)return;const Y=U&&!j?H:F,fe=T.dom.querySelector(`[data-decoration-id="${Y.decorationId}"]`);x={editor:e,range:Y.range,query:Y.query,text:Y.text,items:[],command:ue=>p({editor:e,range:Y.range,props:ue}),decorationNode:fe,clientRect:fe?()=>{var ue;const{decorationId:pe}=(ue=this.key)===null||ue===void 0?void 0:ue.getState(e.state),Z=T.dom.querySelector(`[data-decoration-id="${pe}"]`);return(Z==null?void 0:Z.getBoundingClientRect())||null}:null},j&&((N=S==null?void 0:S.onBeforeStart)===null||N===void 0||N.call(S,x)),K&&((L=S==null?void 0:S.onBeforeUpdate)===null||L===void 0||L.call(S,x)),(K||j)&&(x.items=await m({editor:e,query:Y.query})),U&&((V=S==null?void 0:S.onExit)===null||V===void 0||V.call(S,x)),K&&((M=S==null?void 0:S.onUpdate)===null||M===void 0||M.call(S,x)),j&&((B=S==null?void 0:S.onStart)===null||B===void 0||B.call(S,x))},destroy:()=>{var T;x&&((T=S==null?void 0:S.onExit)===null||T===void 0||T.call(S,x))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(T,C,O,I){const{isEditable:N}=e,{composing:L}=e.view,{selection:V}=T,{empty:M,from:B}=V,H={...C};if(H.composing=L,N&&(M||e.view.composing)){(B<C.range.from||B>C.range.to)&&!L&&!C.composing&&(H.active=!1);const F=y({char:n,allowSpaces:r,allowToIncludeChar:o,allowedPrefixes:i,startOfLine:s,$position:V.$from}),P=`id_${Math.floor(Math.random()*4294967295)}`;F&&v({editor:e,state:I,range:F.range,isActive:C.active})?(H.active=!0,H.decorationId=C.decorationId?C.decorationId:P,H.range=F.range,H.query=F.query,H.text=F.text):H.active=!1}else H.active=!1;return H.active||(H.decorationId=null,H.range={from:0,to:0},H.query=null,H.text=null),H}},props:{handleKeyDown(T,C){var O;const{active:I,range:N}=k.getState(T.state);return I&&((O=S==null?void 0:S.onKeyDown)===null||O===void 0?void 0:O.call(S,{view:T,event:C,range:N}))||!1},decorations(T){const{active:C,range:O,decorationId:I,query:N}=k.getState(T);if(!C)return null;const L=!(N!=null&&N.length),V=[l];return L&&V.push(f),Jt.create(T.doc,[Yn.inline(O.from,O.to,{nodeName:a,class:V.join(" "),"data-decoration-id":I,"data-decoration-content":u})])}}});return k}function rQ({editor:t,overrideSuggestionOptions:e,extensionName:n,char:r="@"}){const o=new On;return{editor:t,char:r,pluginKey:o,command:({editor:i,range:s,props:a})=>{var l,u,f;const p=i.view.state.selection.$to.nodeAfter;((l=p==null?void 0:p.text)===null||l===void 0?void 0:l.startsWith(" "))&&(s.to+=1),i.chain().focus().insertContentAt(s,[{type:n,attrs:{...a,mentionSuggestionChar:r}},{type:"text",text:" "}]).run(),(f=(u=i.view.dom.ownerDocument.defaultView)===null||u===void 0?void 0:u.getSelection())===null||f===void 0||f.collapseToEnd()},allow:({state:i,range:s})=>{const a=i.doc.resolve(s.from),l=i.schema.nodes[n];return!!a.parent.type.contentMatch.matchType(l)},...e}}function q2(t){return(t.options.suggestions.length?t.options.suggestions:[t.options.suggestion]).map(e=>rQ({editor:t.editor,overrideSuggestionOptions:e,extensionName:t.name,char:e.char}))}function K2(t,e){const n=q2(t),r=n.find(o=>o.char===e);return r||(n.length?n[0]:null)}const oQ=tn.create({name:"mention",priority:101,addOptions(){return{HTMLAttributes:{},renderText({node:t,suggestion:e}){var n,r;return`${(n=e==null?void 0:e.char)!==null&&n!==void 0?n:"@"}${(r=t.attrs.label)!==null&&r!==void 0?r:t.attrs.id}`},deleteTriggerWithBackspace:!1,renderHTML({options:t,node:e,suggestion:n}){var r,o;return["span",Ct(this.HTMLAttributes,t.HTMLAttributes),`${(r=n==null?void 0:n.char)!==null&&r!==void 0?r:"@"}${(o=e.attrs.label)!==null&&o!==void 0?o:e.attrs.id}`]},suggestions:[],suggestion:{}}},group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes(){return{id:{default:null,parseHTML:t=>t.getAttribute("data-id"),renderHTML:t=>t.id?{"data-id":t.id}:{}},label:{default:null,parseHTML:t=>t.getAttribute("data-label"),renderHTML:t=>t.label?{"data-label":t.label}:{}},mentionSuggestionChar:{default:"@",parseHTML:t=>t.getAttribute("data-mention-suggestion-char"),renderHTML:t=>({"data-mention-suggestion-char":t.mentionSuggestionChar})}}},parseHTML(){return[{tag:`span[data-type="${this.name}"]`}]},renderHTML({node:t,HTMLAttributes:e}){const n=K2(this,t.attrs.mentionSuggestionChar);if(this.options.renderLabel!==void 0)return console.warn("renderLabel is deprecated use renderText and renderHTML instead"),["span",Ct({"data-type":this.name},this.options.HTMLAttributes,e),this.options.renderLabel({options:this.options,node:t,suggestion:n})];const r={...this.options};r.HTMLAttributes=Ct({"data-type":this.name},this.options.HTMLAttributes,e);const o=this.options.renderHTML({options:r,node:t,suggestion:n});return typeof o=="string"?["span",Ct({"data-type":this.name},this.options.HTMLAttributes,e),o]:o},renderText({node:t}){const e={options:this.options,node:t,suggestion:K2(this,t.attrs.mentionSuggestionChar)};return this.options.renderLabel!==void 0?(console.warn("renderLabel is deprecated use renderText and renderHTML instead"),this.options.renderLabel(e)):this.options.renderText(e)},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:t,state:e})=>{let n=!1;const{selection:r}=e,{empty:o,anchor:i}=r;if(!o)return!1;e.doc.nodesBetween(i-1,i,(l,u)=>{if(l.type.name===this.name)return n=!0,t.insertText(this.options.deleteTriggerWithBackspace?"":this.options.suggestion.char||"",u,u+l.nodeSize),!1});let s=new fi,a=0;return e.doc.nodesBetween(i-1,i,(l,u)=>{if(l.type.name===this.name)return n=!0,s=l,a=u,!1}),n&&t.insertText(this.options.deleteTriggerWithBackspace?"":s.attrs.mentionSuggestionChar,a,a+s.nodeSize),n})}},addProseMirrorPlugins(){return q2(this).map(nQ)}}),Y2=cn.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new en({key:new On("placeholder"),props:{decorations:({doc:t,selection:e})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,o=[];if(!n)return null;const i=this.editor.isEmpty;return t.descendants((s,a)=>{const l=r>=a&&r<=a+s.nodeSize,u=!s.isLeaf&&lf(s);if((l||!this.options.showOnlyCurrent)&&u){const f=[this.options.emptyNodeClass];i&&f.push(this.options.emptyEditorClass);const p=Yn.node(a,a+s.nodeSize,{class:f.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:s,pos:a,hasAnchor:l}):this.options.placeholder});o.push(p)}return this.options.includeChildren}),Jt.create(t,o)}}})]}}),iQ=vr.create({name:"subscript",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"sub"},{style:"vertical-align",getAttrs(t){return t!=="sub"?!1:null}}]},renderHTML({HTMLAttributes:t}){return["sub",Ct(this.options.HTMLAttributes,t),0]},addCommands(){return{setSubscript:()=>({commands:t})=>t.setMark(this.name),toggleSubscript:()=>({commands:t})=>t.toggleMark(this.name),unsetSubscript:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-,":()=>this.editor.commands.toggleSubscript()}}}),sQ=tn.create({name:"tableCell",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:t=>{const e=t.getAttribute("colwidth");return e?e.split(",").map(r=>parseInt(r,10)):null}}}},tableRole:"cell",isolating:!0,parseHTML(){return[{tag:"td"}]},renderHTML({HTMLAttributes:t}){return["td",Ct(this.options.HTMLAttributes,t),0]}}),aQ=tn.create({name:"tableHeader",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:t=>{const e=t.getAttribute("colwidth");return e?e.split(",").map(r=>parseInt(r,10)):null}}}},tableRole:"header_cell",isolating:!0,parseHTML(){return[{tag:"th"}]},renderHTML({HTMLAttributes:t}){return["th",Ct(this.options.HTMLAttributes,t),0]}}),lQ=tn.create({name:"tableRow",addOptions(){return{HTMLAttributes:{}}},content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML(){return[{tag:"tr"}]},renderHTML({HTMLAttributes:t}){return["tr",Ct(this.options.HTMLAttributes,t),0]}}),cQ=/^\s*(\[([( |x])?\])\s$/,uQ=tn.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:t=>{const e=t.getAttribute("data-checked");return e===""||e==="true"},renderHTML:t=>({"data-checked":t.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:t,HTMLAttributes:e}){return["li",Ct(this.options.HTMLAttributes,e,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},addKeyboardShortcuts(){const t={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...t,Tab:()=>this.editor.commands.sinkListItem(this.name)}:t},addNodeView(){return({node:t,HTMLAttributes:e,getPos:n,editor:r})=>{const o=document.createElement("li"),i=document.createElement("label"),s=document.createElement("span"),a=document.createElement("input"),l=document.createElement("div"),u=()=>{var f,p;a.ariaLabel=((p=(f=this.options.a11y)===null||f===void 0?void 0:f.checkboxLabel)===null||p===void 0?void 0:p.call(f,t,a.checked))||`Task item checkbox for ${t.textContent||"empty task item"}`};return u(),i.contentEditable="false",a.type="checkbox",a.addEventListener("mousedown",f=>f.preventDefault()),a.addEventListener("change",f=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){a.checked=!a.checked;return}const{checked:p}=f.target;r.isEditable&&typeof n=="function"&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:m})=>{const b=n();if(typeof b!="number")return!1;const v=m.doc.nodeAt(b);return m.setNodeMarkup(b,void 0,{...v==null?void 0:v.attrs,checked:p}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(t,p)||(a.checked=!a.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([f,p])=>{o.setAttribute(f,p)}),o.dataset.checked=t.attrs.checked,a.checked=t.attrs.checked,i.append(a,s),o.append(i,l),Object.entries(e).forEach(([f,p])=>{o.setAttribute(f,p)}),{dom:o,contentDOM:l,update:f=>f.type!==this.type?!1:(o.dataset.checked=f.attrs.checked,a.checked=f.attrs.checked,u(),!0)}}},addInputRules(){return[al({find:cQ,type:this.type,getAttributes:t=>({checked:t[t.length-1]==="x"})})]}}),dQ=tn.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:t}){return["ul",Ct(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}}),fQ=cn.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:null}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:t=>{const e=t.style.textAlign;return this.options.alignments.includes(e)?e:this.options.defaultAlignment},renderHTML:t=>t.textAlign?{style:`text-align: ${t.textAlign}`}:{}}}}]},addCommands(){return{setTextAlign:t=>({commands:e})=>this.options.alignments.includes(t)?this.options.types.map(n=>e.updateAttributes(n,{textAlign:t})).every(n=>n):!1,unsetTextAlign:()=>({commands:t})=>this.options.types.map(e=>t.resetAttributes(e,"textAlign")).every(e=>e),toggleTextAlign:t=>({editor:e,commands:n})=>this.options.alignments.includes(t)?e.isActive({textAlign:t})?n.unsetTextAlign():n.setTextAlign(t):!1}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),G2=J.forwardRef((t,e)=>{const[n,r]=J.useState(0),o=l=>{if(l>=t.items.length)return;const u=t.items[l],f={id:u.id,label:u.mentionLabel};t.command(f)},i=()=>{r((n+t.items.length-1)%t.items.length)},s=()=>{r((n+1)%t.items.length)},a=()=>{o(n)};return J.useEffect(()=>r(0),[t.items]),J.useImperativeHandle(e,()=>({onKeyDown:({event:l})=>l.key==="ArrowUp"?(i(),!0):l.key==="ArrowDown"?(s(),!0):l.key==="Enter"?(a(),!0):!1})),t.items.length>0?g.jsx(z.Paper,{elevation:5,children:g.jsx(z.List,{dense:!0,sx:{overflow:"hidden"},children:t.items.map((l,u)=>g.jsx(z.ListItem,{disablePadding:!0,children:g.jsx(z.ListItemButton,{selected:u===n,onClick:()=>o(u),children:l.mentionLabel})},l.id))})}):null});G2.displayName="SuggestionList";const J2={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0,toJSON(){return{}}},pQ={items:async({query:t})=>Promise.resolve(["Lea Thompson","Cyndi Lauper","Tom Cruise","Madonna","Jerry Hall","Joan Collins","Winona Ryder","Christina Applegate","Alyssa Milano","Molly Ringwald","Ally Sheedy","Debbie Harry","Olivia Newton-John","Elton John","Michael J. Fox","Axl Rose","Emilio Estevez","Ralph Macchio","Rob Lowe","Jennifer Grey","Mickey Rourke","John Cusack","Matthew Broderick","Justine Bateman","Lisa Bonet","Benicio Monserrate Rafael del Toro Sánchez"].map((e,n)=>({mentionLabel:e,id:n.toString()})).filter(e=>e.mentionLabel.toLowerCase().startsWith(t.toLowerCase())).slice(0,5)),render:()=>{let t,e;return{onStart:n=>{t=new EO(G2,{props:n,editor:n.editor}),e=au("body",{getReferenceClientRect:()=>{var r;return((r=n.clientRect)==null?void 0:r.call(n))??J2},appendTo:()=>document.body,content:t.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start"})[0]},onUpdate(n){t==null||t.updateProps(n),e==null||e.setProps({getReferenceClientRect:()=>{var r;return((r=n.clientRect)==null?void 0:r.call(n))??J2}})},onKeyDown(n){return n.event.key==="Escape"?(e==null||e.hide(),!0):t!=null&&t.ref?t.ref.onKeyDown(n):!1},onExit(){e==null||e.destroy(),t==null||t.destroy(),e=void 0,t=void 0}}}},hQ=QZ.extend({inclusive:!1}),mQ=iQ.extend({excludes:"superscript"}),gQ=gM.extend({excludes:"subscript"});function yQ({placeholder:t}={}){return J.useMemo(()=>[r7.configure({resizable:!0}),lQ,aQ,sQ,pT,mT,gT,xT,DT,NT,$T,mQ,gQ,BT,uT,cT,hT,IT,Xb,LT,hQ.configure({autolink:!0,linkOnPaste:!0,openOnClick:!1}),V9,vT,R9,fQ.configure({types:["heading","paragraph","image"]}),EZ,OZ,MZ,Lj,jT.configure({multicolor:!0}),_T,n8,yT,dQ,uQ.configure({nested:!0}),oQ.configure({suggestion:pQ}),Y2.configure({placeholder:t}),MT],[t])}function X2(t){return Array.from(t).filter(e=>(e.type||"").toLowerCase().startsWith("image/"))}const bQ=t=>{const e=yQ({placeholder:"Add your own content here..."});if(t.renderContentOnly)return g.jsx(hM,{content:t.renderContentOnly,extensions:e});const{name:n,label:r,labelProps:o={fontSize:"0.9em",color:"#808080",fontWeight:"400"},onUploadFiles:i,readOnly:s=!1}=t,[a,l,u]=Ht.useField({name:n}),{setValue:f}=u,{value:p}=a;J.useEffect(()=>{var S,k,T;(T=(k=(S=m==null?void 0:m.current)==null?void 0:S.editor)==null?void 0:k.commands)==null||T.setContent(p)},[p]);const m=J.useRef(null),b=J.useCallback((S,k)=>{var C;const T=(C=m.current)==null?void 0:C.editor;if(!(!T||!i))if(i instanceof Promise)i(S).then(O=>{ib({images:O,editor:T,position:k})});else{const O=i(S);ib({images:O,editor:T,position:k})}},[]),v=J.useCallback((S,k,T,C)=>{var I;if(!(k instanceof DragEvent)||!k.dataTransfer)return!1;const O=X2(k.dataTransfer.files);if(O.length>0){const N=(I=S.posAtCoords({left:k.clientX,top:k.clientY}))==null?void 0:I.pos;return b(O,N),k.preventDefault(),!0}return!1},[b]),y=J.useCallback((S,k,T)=>{if(!k.clipboardData)return!1;const C=X2(k.clipboardData.files);return C.length>0?(b(C),!0):!1},[b]),x=g.jsx(z.Box,{sx:{"& .ProseMirror":{"& h1, & h2, & h3, & h4, & h5, & h6":{scrollMarginTop:s?0:50}}},children:g.jsx(pM,{ref:m,extensions:e,content:p,editable:!s,editorProps:{handleDrop:v,handlePaste:y},renderControls:s?void 0:()=>g.jsx(TZ,{onUploadFiles:i}),onBlur:()=>{var S,k;return f(((k=(S=m.current)==null?void 0:S.editor)==null?void 0:k.getHTML())??"")},RichTextFieldProps:{variant:"outlined",MenuBarProps:{hide:s}},children:()=>g.jsxs(g.Fragment,{children:[g.jsx(T7,{}),g.jsx(F7,{})]})})});return g.jsxs(z.Box,{display:"flex",flexDirection:"column",children:[r&&g.jsx(z.Typography,{...o,children:r}),x]})},Z2=t=>{const{colSpan:e,isExpanded:n,renderExpand:r,obj:o,asMobileCard:i=!1,reRenderExpand:s=!1}=t,[a,l]=J.useState(!1),[u,f]=J.useState(void 0);J.useEffect(()=>{n&&(!a||s)&&(l(!0),f(r(o)))},[n,o]);const p={"&:last-child > td":{borderBottom:"unset"}};return i?g.jsx(z.Collapse,{in:n,children:u}):g.jsx(z.TableRow,{sx:p,children:g.jsx(z.TableCell,{sx:{paddingBottom:0,paddingTop:0},colSpan:e,children:g.jsx(z.Collapse,{in:n,children:u})})})},lv=({isLoading:t,children:e})=>{const[n,r]=J.useState(!1);return J.useEffect(()=>{let o,i;return t?o=setTimeout(()=>r(!0),300):n?i=setTimeout(()=>r(!1),200):(o&&clearTimeout(o),r(!1)),()=>{o&&clearTimeout(o),i&&clearTimeout(i)}},[t,n]),g.jsxs(z.Box,{position:"relative","data-testid":`loading-overlay_${t?"active":"inactive"}`,children:[e,g.jsx(z.Box,{sx:{position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(255,255,255,0.6)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:10,pointerEvents:n?"auto":"none",opacity:n?1:0,transition:"opacity 0.3s ease"},children:g.jsx(z.CircularProgress,{})})]})},Qo=t=>{const{gap:e=1,alignItems:n="center",...r}=t;return g.jsx(z.Box,{display:"flex",flexDirection:"row",gap:e,alignItems:n,...r})},Lu=t=>{const{gap:e=1,...n}=t;return g.jsx(z.Box,{display:"flex",flexDirection:"column",gap:e,...n})};function Q2({icon:t,children:e,sx:n,...r}){return e?g.jsx(z.Tooltip,{title:e,children:g.jsx(t,{"data-testid":"MBv2_table-tooltip",fontSize:"small",sx:n??{ml:.5},...r})}):null}function eI(t){return g.jsx(Q2,{icon:$U,...t})}const cv=t=>{const{id:e,getRowKey:n=me=>"id"in me&&(typeof me.id=="string"||typeof me.id=="number")&&me.id!=null?me.id:(console.warn(`Table: "id" not found or undefined in ${JSON.stringify(me)}. If provided, id must have a value and be type string or number. Please implement the Table.getRowKey prop so Table knows how to uniquely identify this row.`),String(JSON.stringify(me))),columns:r,data:o=[],onRowClick:i,onRowClickObj:s,checkedKeys:a,setCheckedKeys:l,renderExpand:u,sortField:f,sortOrder:p,onSortChange:m,allowSortCols:b,fixedLayout:v=!1,className:y,emptyTableMsg:x="No items to display",errorTableMsg:S,retryCallback:k,isLoading:T=!1,disableMobileCards:C=!1,highlightSelectedRow:O=!1,selectedRowColor:I,selectedRowKey:N,headerRowStyle:L={},stickyHeader:V,reRenderExpand:M=!1,expandOnRowClick:B=!1,tooltipProps:H={},...F}=t,{palette:P}=z.useTheme(),_=P.grey[P.mode=="dark"?600:50],[D,R]=J.useState(void 0),[j,K]=J.useState(typeof O=="string"||typeof O=="number"?O:void 0);vQ(t);const U=me=>{me!==f?m&&m(me,"asc"):m&&m(f,p==="asc"?"desc":"asc")},Y=me=>f===me?p:null,fe=z.useMediaQuery(z.useTheme().breakpoints.down("sm")),ue=r.filter(me=>!me.hideCol&&(!fe||!me.hideOnMobile));u&&!fe&&ue.unshift({key:"MBv2_Expandable_Column",fieldName:"id",label:"",render:(me,Be)=>{const De=n(Be),yt=D===De;return g.jsx(z.IconButton,{"data-testid":"expand-collapse-btn","aria-label":yt?"collapse row":"expand row",size:"small",onClick:()=>X(De),children:yt?g.jsx(pp,{"data-testid":"collapse-up"}):g.jsx(y0,{"data-testid":"expand-down"})})}}),a&&l&&ue.unshift({key:"MBv2_Checkbox_Column",fieldName:"id",label:"",hideOnMobile:!0,render:(me,Be)=>{const De=n(Be);return g.jsx(z.Checkbox,{onChange:()=>{const yt=a.includes(De);l(yt?a.filter(ct=>ct!==De):[...a,De])},checked:a.includes(De)})}});const pe=m!==void 0,Z=me=>pe?b?b.includes(me):!0:!1,te=g.jsxs(z.Box,{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"row",children:[g.jsx(LU,{})," ",x]}),ce=g.jsxs(z.Box,{"data-testid":"table-fetch-error-msg",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"row",children:[g.jsx(dw,{color:"error"})," ",S,k&&g.jsx(z.Button,{variant:"text",onClick:k,children:"Retry?"})]}),ne=()=>{if(S)return g.jsx(z.TableRow,{children:g.jsx(z.TableCell,{colSpan:r.length,align:"center",sx:{borderBottom:"unset"},children:ce})});if(o.length===0)return g.jsx(z.TableRow,{children:g.jsx(z.TableCell,{colSpan:r.length,align:"center",sx:{borderBottom:"unset"},children:te})})},re=()=>{if(S)return ce;if(o.length===0)return te},le=me=>{O&&K(me)},ye=me=>{const Be=n(me);if((i||s)&&(i==null||i(Be),s==null||s(me),le(Be)),u&&B){const De=D===Be?void 0:Be;R(De),le(De)}},X=me=>{const Be=D===me?void 0:me;R(Be),le(Be)},ee=me=>{if(!u)return;const Be=D===n(me);return g.jsxs(g.Fragment,{children:[g.jsxs(z.Button,{"data-testid":"show-more-less-btn",variant:"text",onClick:()=>X(n(me)),children:[Be?g.jsx(pp,{}):g.jsx(y0,{})," Show"," ",Be?"Less":"More"]}),g.jsx(Z2,{colSpan:r.length,isExpanded:n(me)===D,obj:me,renderExpand:De=>u(De),asMobileCard:!0})]})},ie=I??_,we=me=>{const De=(O?j:N)===n(me)?ie:"inherit",yt=i||s||B;return{cursor:yt?"pointer":"default",backgroundColor:De,...u?{"& > td":{borderBottom:"unset"}}:{"&:last-child td":{borderBottom:"unset"}},...yt&&{"&:hover":{backgroundColor:De===ie?rG(De,.1):ie}}}},Ce=me=>g.jsx(eI,{...H,children:me}),Pe=(me,Be)=>{const De=me.find(ct=>ct.key==="MBv2_Checkbox_Column"),yt=ue.filter(ct=>ct.key!=="MBv2_Checkbox_Column");return g.jsxs(Qo,{alignItems:"flex-start",children:[De&&g.jsx(Lu,{children:Ll(De,Be,fe)}),g.jsxs(Lu,{width:"100%",children:[g.jsx("table",{className:"MBv2_Table_Stack",children:g.jsx("tbody",{className:"MBv2_Table_Stack_Body",children:yt.map(ct=>g.jsxs("tr",{className:"MBv2_Table_Stack_Row",children:[g.jsxs("td",{className:`MBv2_Table_Stack_Cell_Label MBv2_Table_Stack_Col_${xn(ct)}`,style:{textWrap:"nowrap"},children:[ct.label??Ln(xn(ct)),Ce(ct.tooltip)]}),g.jsx("td",{className:`MBv2_Table_Stack_Cell_Value MBv2_Table_Stack_Val_${xn(ct)}`,style:{paddingLeft:"10px"},children:Ll(ct,Be,fe)})]},`row-${n(Be)}-${xn(ct)}`))})}),ee(Be)]})]})},Me=()=>g.jsxs("div",{...e?{id:`mobile-table-${e}`}:{},className:y,"data-testid":"mui-table-mobile",children:[pe&&g.jsxs(g.Fragment,{children:[g.jsxs(z.Box,{display:"flex",className:"MBv2_Table_Stack_Sort",children:[g.jsx(z.TextField,{select:!0,sx:{flexGrow:1},size:"small",value:f??"",label:"Sort By...",onChange:me=>U(me.target.value),fullWidth:!0,children:ue.map(me=>{if(Z(xn(me)))return g.jsx(z.MenuItem,{value:xn(me),children:me.label??Ln(xn(me))},`rowHeader-${xn(me)}`)})}),g.jsx(z.IconButton,{onClick:()=>{f&&U(f)},children:g.jsx(jU,{className:`sort-icon-${p}`})})]}),g.jsx(z.Divider,{sx:{margin:"10px 0"}})]}),re()??o.map(me=>g.jsx(z.Card,{className:"MBv2_Table_Stack_Container",sx:{margin:"5px 0",padding:"5px",overflowX:"auto",...we(me)},onClick:()=>ye(me),"data-testid":`card-${n(me)}`,children:Pe(ue,me)},n(me)))]}),Ie=()=>g.jsx(z.TableContainer,{component:z.Card,"data-testid":"mui-table",...e?{tableId:`table-${e}`}:{},className:y,style:V?{maxHeight:V,overflow:"auto"}:{},children:g.jsxs(z.Table,{stickyHeader:V!=="undefined",style:{tableLayout:v?"fixed":"auto"},className:"MBv2_Table",sx:L?{"& .MuiTableCell-head":{...L}}:{},...F,children:[g.jsx(z.TableHead,{className:"MBv2_Table_Head",children:g.jsx(z.TableRow,{className:"MBv2_Table_Head_Row",children:ue.map((me,Be)=>{const De=Z(xn(me));return g.jsx(z.TableCell,{width:Array.isArray(v)?v[Be]:"auto",sx:me.tableCellSx??{},children:g.jsx(z.Box,{style:{display:"flex",alignItems:"center"},children:g.jsxs(z.Box,{sx:[De&&{"&:hover":{cursor:"pointer",backgroundColor:P.mode==="dark"?"#222222":"#ededed",borderRadius:2}}],style:{display:"flex",alignItems:"center",padding:"5px",paddingLeft:"6px",marginLeft:"-6px"},onClick:De?()=>U(xn(me)):void 0,children:[g.jsx("strong",{className:"MBv2_Table_Col_Label",style:{wordBreak:"normal"},"data-testid":"column-title",children:me.label??Ln(xn(me))}),Ce(me.tooltip),De&&Y(xn(me))==="asc"&&g.jsx(pp,{style:{marginLeft:"5px"}}),De&&Y(xn(me))==="desc"&&g.jsx(y0,{style:{marginLeft:"5px"}}),De&&Y(xn(me))!=="asc"&&Y(xn(me))!=="desc"&&g.jsx(HU,{style:{marginLeft:"5px"}})]})})},`rowHeader-${xn(me)}`)})})}),g.jsx(z.TableBody,{className:"MBv2_Table_Body",children:ne()??o.map(me=>g.jsxs(J.Fragment,{children:[g.jsx(z.TableRow,{"data-testid":`row-${n(me)}`,className:"MBv2_Table_Body_Row",onClick:()=>ye(me),sx:we(me),children:ue.map(Be=>g.jsx(z.TableCell,{className:`MBv2_Table_Body_Cell MBv2_Table_Body_Col_${xn(Be)}`,children:Ll(Be,me,fe)},`row-${n(me)}-${xn(Be)}`))}),u&&g.jsx(Z2,{colSpan:ue.length,isExpanded:n(me)===D,obj:me,renderExpand:Be=>u(Be),reRenderExpand:M})]},n(me)))})]})});return g.jsx(lv,{isLoading:T,children:fe&&!C?Me():Ie()})},vQ=t=>{const{fixedLayout:e,checkedKeys:n,setCheckedKeys:r,renderExpand:o,columns:i,expandOnRowClick:s,onRowClick:a,onRowClickObj:l,selectedRowKey:u,highlightSelectedRow:f}=t,p="Table component:";Array.isArray(e)&&(!o&&e.length!==i.length&&console.warn(`${p} Length of "fixedLayout" is not equal to the length of "columns". Got=${e.length}. Expected=${i.length}`),o&&e.length!==i.length+1&&console.warn(`${p} Length of "fixedLayout" is not equal to the length of "columns"+1. Make sure you're including a percentage for the expand/collapse column AND each column in "columns".`)),s&&!o&&console.warn(`${p} renderExpand should be defined when expandOnRowClick is defined`),a&&l&&console.warn(`${p} 'onRowClick' and 'onRowClickObj' are both defined. Only one should be defined.`),(n||r)&&o&&console.warn(`${p} checkedKeys/setCheckedKeys & renderExpand cannot both be defined`),n&&!r&&console.warn(`${p} if checkedKeys is defined, setCheckedKeys must also be defined`),!n&&r&&console.warn(`${p} if setCheckedKeys is defined, checkedKeys must also be defined`);const m=i.map(y=>xn(y)),b=m.filter((y,x)=>m.indexOf(y)!==x),v=[...new Set(b)];v.length>0&&console.warn(`${p} duplicate key/fieldName found in 'columns': ${v.join(", ")}. Make sure to define a unique 'key' if you have multiple column definitions with the same 'fieldName'.`),f&&u&&console.warn(`${p} must choose 'highlightSelectedRow' (uncontrolled) or 'selectedRowKey' (controlled)`)},xn=t=>t.key??t.fieldName,xQ=(t,e)=>e.split(".").reduce((n,r)=>{if(n&&typeof n=="object")return n[r]},t),Ll=(t,e,n=!1)=>{const r=xQ(e,t.fieldName);return t.render?t.render(r,e,n):r},tI=t=>{const{paginationState:e,onPageChange:n,onRowsPerPageChange:r,hidePaginationControls:o=!1,rowsPerPageOptions:i=[5,10,25],...s}=t,{pageNo:a,pageSize:l,totalCount:u,sortField:f,sortOrder:p}=e,m=x=>{n(x)},b=x=>{r(parseInt(x.target.value,10))},v=z.useMediaQuery(z.useTheme().breakpoints.down("sm")),y=!t.data||t.data&&t.data.length===0;return g.jsxs(z.Box,{children:[g.jsx(cv,{sortOrder:p,sortField:f,...s}),!o&&!y&&g.jsx(z.TablePagination,{"data-testid":"pagination-controls",component:"div",rowsPerPageOptions:v?[]:i,count:u,rowsPerPage:l,page:a,onPageChange:(x,S)=>m(S),onRowsPerPageChange:b,sx:{flexGrow:1,marginRight:{xs:0,md:15}}})]})},nI=()=>({height:window.innerHeight,width:window.innerWidth}),rI=()=>{const[t,e]=J.useState(nI());return J.useEffect(()=>{const n=()=>{e(nI())};return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),t},Tr=t=>{const{name:e="button",color:n="primary",fullWidthOnMobile:r=!0,type:o="button",variant:i="contained"}=t,{width:s}=rI(),a=["locationInBar","closeDialog","fullWidthOnMobile"],l=r&&s<600;return g.jsx(z.Button,{role:"button",name:e,color:n,variant:i,type:o,fullWidth:t.fullWidth?!0:l,...lr({...t},a)})},wQ=t=>{const{citation:e,anchorEl:n,onDeleteCitation:r,onClose:o}=t;if(r)return g.jsx(z.Popper,{open:e!==null,anchorEl:n,placement:"bottom-end",style:{zIndex:1300},children:e&&g.jsxs(z.Box,{component:z.Paper,p:1,display:"flex",gap:1,boxShadow:9,"data-testid":`citation-table_delete-prompt-${e.id}`,children:[g.jsxs(z.Typography,{variant:"body2",children:["Are you sure you want to delete this ",e.fileName?"attachment":"citation","?"]}),g.jsxs(z.Box,{display:"flex",flexDirection:"row",children:[g.jsx(Tr,{size:"small",variant:"text",onClick:o,"data-testid":`citation-table_delete-prompt-${e.id}-noBtn`,children:"No"}),g.jsx(Tr,{size:"small",color:"error",startIcon:g.jsx(e0,{}),onClick:()=>r(e.id).finally(o),"data-testid":`citation-table_delete-prompt-${e.id}-yesBtn`,children:"Yes"})]})]})})},SQ=t=>{const{citation:e,anchorEl:n,onClose:r,open:o}=t;return g.jsx(z.Popper,{open:o,anchorEl:n,placement:"bottom-end",style:{zIndex:1300},children:e&&g.jsxs(z.Box,{component:z.Paper,p:1,display:"flex",gap:1,boxShadow:9,"data-testid":`citation-table_launch-link-prompt-${e.id}`,flexDirection:"column",alignItems:"end",children:[g.jsxs(z.Typography,{variant:"body2",sx:{wordBreak:"break-all",maxWidth:"350px"},children:["Are you sure you want to go to ",g.jsx("br",{}),g.jsx("b",{children:e.url}),"?"]}),g.jsxs(z.Box,{display:"flex",flexDirection:"row",children:[g.jsx(Tr,{size:"small",variant:"text",onClick:r,"data-testid":`citation-table_launch-prompt-${e.id}-noBtn`,children:"No"}),g.jsx(Tr,{size:"small",startIcon:g.jsx(b0,{}),onClick:()=>{window.open(e.url,"_blank","noopener,noreferrer"),r()},"data-testid":`citation-table_launch-prompt-${e.id}-yesBtn`,children:"Yes"})]})]})})};function uv({canLaunchUrl:t,citation:e,asLink:n}){const r=J.useRef(null),[o,i]=J.useState(!1),s=()=>{i(!1)};return!t||e.fileName?null:g.jsxs(g.Fragment,{children:[n?g.jsx(z.Link,{ref:r,component:"button",sx:{cursor:"pointer"},type:"button",onClick:()=>i(!0),children:e.url}):g.jsx(z.Tooltip,{title:"Open URL",children:g.jsx(z.IconButton,{ref:r,color:"primary",onClick:()=>{i(!0)},"data-testid":`citation-table_launch-link-btn-${e.id}`,sx:{visibility:t!=null&&t(e)?"visible":"hidden"},children:g.jsx(b0,{})})}),g.jsx(SQ,{citation:e,anchorEl:r.current,onClose:s,open:o})]})}function oI({onDownloadAttachment:t,citation:e}){if(!(!t||!e.fileName))return g.jsx(z.Tooltip,{title:"Download",children:g.jsx(z.IconButton,{color:"primary",onClick:()=>t==null?void 0:t(e),"data-testid":`citation-table_download-btn-${e.id}`,children:g.jsx(PU,{})})})}function iI({onPreviewAttachment:t,citation:e}){if(!t||!e.fileName)return;const n=["pdf","png","jpg","jpeg","gif","bmp","svg","webp","mp3","wav","mp4","webm","html","htm","txt","xml","json","csv"],r=e.fileName.split(".").pop();if(!(!r||!n.includes(r)))return g.jsx(z.Tooltip,{title:"View File",children:g.jsx(z.IconButton,{color:"primary",onClick:()=>t==null?void 0:t(e),"data-testid":`citation-table_view-file-btn-${e.id}`,children:g.jsx(b0,{})})})}const CQ=t=>{const{refreshKey:e,title:n,onCancel:r,onNewCitation:o,onNewAttachment:i,onEditCitation:s,onEditAttachment:a,onViewCitation:l,onViewAttachment:u,onDeleteCitation:f,onDownloadAttachment:p,onPreviewAttachment:m,onSelect:b,getCitationsPaginated:v,selectedIds:y,setSelectedIds:x,onError:S=()=>{},condenseTable:k=!1,canSelect:T=!1,canLaunchUrl:C,addlActions:O,readOnly:I=!1,showCloseBtn:N=!1,canSearch:L=!1}=t,V=!!t.canCreate&&!I,M=!!a&&!!s&&!I,B=!!u&&!!l&&I&&k,H=!!f&&!I,{palette:F}=z.useTheme(),[P,_]=J.useState([]),[D,R]=J.useState(!1),[j,K]=J.useState(!0),[U,Y]=J.useState(null),[fe,ue]=J.useState(null),[pe,Z]=J.useState({pageNo:0,pageSize:k?5:10,totalCount:0,search:L?"":void 0}),te=()=>{R(!1),K(!0),v({pageNo:pe.pageNo,pageSize:pe.pageSize,search:pe.search},y).then(Ie=>(_(Ie.data),Z(me=>({...me,totalCount:Ie.totalCount})),Ie)).catch(Ie=>{S(Ie),R(!0),_([])}).finally(()=>K(!1))};J.useEffect(te,[pe.pageNo,pe.pageSize,e,pe.search]);const ce=()=>{ue(null),Y(null)},ne=g.jsx(Tr,{variant:T?"outlined":"contained",size:T?"small":"medium",onClick:o,startIcon:g.jsx(Hf,{}),children:"Add Citation"}),re=g.jsx(Tr,{variant:T?"outlined":"contained",size:T?"small":"medium",onClick:i,startIcon:g.jsx(KM,{}),children:"Add Attachment"}),le=Ie=>{if(!(!M&&!B)){if(M)return g.jsx(z.Tooltip,{title:"Edit",children:g.jsx(z.IconButton,{color:"primary",onClick:()=>Ie.fileName?a(Ie.id):s(Ie.id),"data-testid":`citation-table_edit-btn-${Ie.id}`,children:g.jsx(NU,{})})});if(B)return g.jsx(z.Tooltip,{title:"View",children:g.jsx(z.IconButton,{color:"primary",onClick:()=>Ie.fileName?u(Ie.id):l(Ie.id),"data-testid":`citation-table_view-btn-${Ie.id}`,children:g.jsx(UU,{})})})}},ye=Ie=>{if(!(!H||I))return g.jsx(z.Tooltip,{title:"Delete",children:g.jsx(z.IconButton,{color:"error",onClick:me=>{ue(Ie),Y(me.currentTarget)},"data-testid":`citation-table_delete-btn-${Ie.id}`,children:g.jsx(e0,{})})})},X=Ie=>g.jsx(uv,{citation:Ie,canLaunchUrl:C}),ee=Ie=>g.jsx(iI,{citation:Ie,onPreviewAttachment:m}),ie=Ie=>g.jsx(oI,{citation:Ie,onDownloadAttachment:p}),we=B||M||H||C||m||p||O,Ce=[...aI(F,k),{fieldName:"id",key:"Action",label:"Action",hideCol:!we,render:(Ie,me)=>g.jsxs(z.Box,{display:"flex",flexDirection:"row-reverse",children:[O==null?void 0:O(me),ye(me),le(me),ee(me),X(me),ie(me)]})}],Pe=J.useCallback(Ie=>{Z(me=>({...me,pageNo:0,search:Ie}))},[]),Me=()=>L?g.jsx(JM,{onSearch:Pe}):null;return g.jsxs(Lu,{children:[g.jsxs(z.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[g.jsx(z.Typography,{variant:k?"h6":"h2",children:n}),!T&&V&&g.jsxs(z.Box,{display:"flex",flexDirection:"row",gap:1,children:[ne,re]}),N&&g.jsx(z.IconButton,{onClick:r,children:g.jsx(fp,{})})]}),Me(),g.jsx(tI,{"data-testid":"citation-table",size:k?"x-small":"medium",isLoading:j,columns:Ce,data:P,paginationState:pe,onPageChange:Ie=>Z(me=>({...me,pageNo:Ie})),onRowsPerPageChange:Ie=>Z(me=>({...me,pageSize:Ie,pageNo:0})),errorTableMsg:D?"Failed to load citations.":void 0,retryCallback:te,setCheckedKeys:T?x:void 0,checkedKeys:T?y:void 0}),T&&g.jsxs(z.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",children:[g.jsx(z.Box,{display:"flex",flexDirection:"row",gap:".25rem",children:V&&g.jsxs(g.Fragment,{children:[ne,re]})}),!I&&g.jsxs(z.Box,{display:"flex",flexDirection:"row",gap:".25rem",children:[g.jsx(Tr,{variant:"outlined",size:"small",onClick:r,children:"Cancel"}),g.jsxs(Tr,{variant:"contained",size:"small",onClick:()=>b(y),children:["Select",y.length>0&&` (${y.length})`]})]})]}),g.jsx(wQ,{citation:fe,anchorEl:U,onDeleteCitation:f,onClose:ce})]})},sI=(t,e)=>{const n=t?bs.truncate(e,{length:30,omission:"..."}):e,r=n==null?void 0:n.endsWith("...");return g.jsx("span",{style:{wordBreak:"break-all"},children:r?g.jsx(z.Tooltip,{title:e,children:g.jsx("span",{children:n})}):e})},aI=(t,e=!1)=>[{fieldName:"fileName",key:"CitationOrAttachment",label:"Type",render:(n,r)=>g.jsx(z.Tooltip,{title:n?"Attachment":"URL",children:n?g.jsx(KM,{sx:{color:t.grey[500],marginTop:"4px"},"data-testid":`attachment-icon-${r.id}`}):g.jsx(Hf,{sx:{color:t.grey[500],marginTop:"6px"},"data-testid":`url-icon-${r.id}`})}),ignoreDiff:!0},{fieldName:"title",render:n=>sI(e,n)},{fieldName:"fileName",key:"URL/File Name",label:"URL/Other Identifier/File Name",render:(n,r)=>sI(e,n||r.url),isEqual:(n,r)=>n.fileName&&r.fileName?n.fileName===r.fileName:n.url===r.url},{fieldName:"source",hideCol:e},{fieldName:"details",hideCol:e},{fieldName:"accessedAt",hideCol:e,render:(n,r)=>{if(!r.fileName)return(n==null?void 0:n.slice(0,10))??""}},{fieldName:"classification",hideCol:e}];var dv,lI;function TQ(){if(lI)return dv;lI=1;function t(S){this._maxSize=S,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(S){return this._values[S]},t.prototype.set=function(S,k){return this._size>=this._maxSize&&this.clear(),S in this._values||this._size++,this._values[S]=k};var e=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,i=/^\s*(['"]?)(.*?)(\1)\s*$/,s=512,a=new t(s),l=new t(s),u=new t(s);dv={Cache:t,split:p,normalizePath:f,setter:function(S){var k=f(S);return l.get(S)||l.set(S,function(C,O){for(var I=0,N=k.length,L=C;I<N-1;){var V=k[I];if(V==="__proto__"||V==="constructor"||V==="prototype")return C;L=L[k[I++]]}L[k[I]]=O})},getter:function(S,k){var T=f(S);return u.get(S)||u.set(S,function(O){for(var I=0,N=T.length;I<N;)if(O!=null||!k)O=O[T[I++]];else return;return O})},join:function(S){return S.reduce(function(k,T){return k+(b(T)||n.test(T)?"["+T+"]":(k?".":"")+T)},"")},forEach:function(S,k,T){m(Array.isArray(S)?S:p(S),k,T)}};function f(S){return a.get(S)||a.set(S,p(S).map(function(k){return k.replace(i,"$2")}))}function p(S){return S.match(e)||[""]}function m(S,k,T){var C=S.length,O,I,N,L;for(I=0;I<C;I++)O=S[I],O&&(x(O)&&(O='"'+O+'"'),L=b(O),N=!L&&/^\d+$/.test(O),k.call(T,O,L,N,I,S))}function b(S){return typeof S=="string"&&S&&["'",'"'].indexOf(S.charAt(0))!==-1}function v(S){return S.match(r)&&!S.match(n)}function y(S){return o.test(S)}function x(S){return!b(S)&&(v(S)||y(S))}return dv}var Ca=TQ(),fv,cI;function kQ(){if(cI)return fv;cI=1;const t=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,e=f=>f.match(t)||[],n=f=>f[0].toUpperCase()+f.slice(1),r=(f,p)=>e(f).join(p).toLowerCase(),o=f=>e(f).reduce((p,m)=>`${p}${p?m[0].toUpperCase()+m.slice(1).toLowerCase():m.toLowerCase()}`,"");return fv={words:e,upperFirst:n,camelCase:o,pascalCase:f=>n(o(f)),snakeCase:f=>r(f,"_"),kebabCase:f=>r(f,"-"),sentenceCase:f=>n(r(f," ")),titleCase:f=>e(f).map(n).join(" ")},fv}var pv=kQ(),Th={exports:{}},uI;function EQ(){if(uI)return Th.exports;uI=1,Th.exports=function(o){return t(e(o),o)},Th.exports.array=t;function t(o,i){var s=o.length,a=new Array(s),l={},u=s,f=n(i),p=r(o);for(i.forEach(function(b){if(!p.has(b[0])||!p.has(b[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});u--;)l[u]||m(o[u],u,new Set);return a;function m(b,v,y){if(y.has(b)){var x;try{x=", node was:"+JSON.stringify(b)}catch{x=""}throw new Error("Cyclic dependency"+x)}if(!p.has(b))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(b));if(!l[v]){l[v]=!0;var S=f.get(b)||new Set;if(S=Array.from(S),v=S.length){y.add(b);do{var k=S[--v];m(k,p.get(k),y)}while(v);y.delete(b)}a[--s]=b}}}function e(o){for(var i=new Set,s=0,a=o.length;s<a;s++){var l=o[s];i.add(l[0]),i.add(l[1])}return Array.from(i)}function n(o){for(var i=new Map,s=0,a=o.length;s<a;s++){var l=o[s];i.has(l[0])||i.set(l[0],new Set),i.has(l[1])||i.set(l[1],new Set),i.get(l[0]).add(l[1])}return i}function r(o){for(var i=new Map,s=0,a=o.length;s<a;s++)i.set(o[s],s);return i}return Th.exports}var OQ=EQ();const MQ=Un(OQ),_Q=Object.prototype.toString,IQ=Error.prototype.toString,DQ=RegExp.prototype.toString,AQ=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",PQ=/^Symbol\((.*)\)(.*)$/;function NQ(t){return t!=+t?"NaN":t===0&&1/t<0?"-0":""+t}function dI(t,e=!1){if(t==null||t===!0||t===!1)return""+t;const n=typeof t;if(n==="number")return NQ(t);if(n==="string")return e?`"${t}"`:t;if(n==="function")return"[Function "+(t.name||"anonymous")+"]";if(n==="symbol")return AQ.call(t).replace(PQ,"Symbol($1)");const r=_Q.call(t).slice(8,-1);return r==="Date"?isNaN(t.getTime())?""+t:t.toISOString(t):r==="Error"||t instanceof Error?"["+IQ.call(t)+"]":r==="RegExp"?DQ.call(t):null}function Cs(t,e){let n=dI(t,e);return n!==null?n:JSON.stringify(t,function(r,o){let i=dI(this[r],e);return i!==null?i:o},2)}function fI(t){return t==null?[]:[].concat(t)}let pI,hI,mI,$Q=/\$\{\s*(\w+)\s*\}/g;pI=Symbol.toStringTag;class gI{constructor(e,n,r,o){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[pI]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],fI(e).forEach(i=>{if(pr.isError(i)){this.errors.push(...i.errors);const s=i.inner.length?i.inner:[i];this.inner.push(...s)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}hI=Symbol.hasInstance,mI=Symbol.toStringTag;class pr extends Error{static formatError(e,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof e=="string"?e.replace($Q,(o,i)=>Cs(n[i])):typeof e=="function"?e(n):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,n,r,o,i){const s=new gI(e,n,r,o);if(i)return s;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[mI]="Error",this.name=s.name,this.message=s.message,this.type=s.type,this.value=s.value,this.path=s.path,this.errors=s.errors,this.inner=s.inner,Error.captureStackTrace&&Error.captureStackTrace(this,pr)}static[hI](e){return gI[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let ei={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:t,type:e,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${Cs(r,!0)}\`).`:".";return e!=="mixed"?`${t} must be a \`${e}\` type, but the final value was: \`${Cs(n,!0)}\``+o:`${t} must match the configured type. The validated value was: \`${Cs(n,!0)}\``+o}},kr={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},LQ={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},hv={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},BQ={isValue:"${path} field must be ${value}"},kh={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"};Object.assign(Object.create(null),{mixed:ei,string:kr,number:LQ,date:hv,object:kh,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:BQ,tuple:{notType:t=>{const{path:e,value:n,spec:r}=t,o=r.types.length;if(Array.isArray(n)){if(n.length<o)return`${e} tuple value has too few items, expected a length of ${o} but got ${n.length} for value: \`${Cs(n,!0)}\``;if(n.length>o)return`${e} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${Cs(n,!0)}\``}return pr.formatError(ei.notType,t)}}});const mv=t=>t&&t.__isYupSchema__;class Eh{static fromOptions(e,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:i}=n,s=typeof r=="function"?r:(...a)=>a.every(l=>l===r);return new Eh(e,(a,l)=>{var u;let f=s(...a)?o:i;return(u=f==null?void 0:f(l))!=null?u:l})}constructor(e,n){this.fn=void 0,this.refs=e,this.refs=e,this.fn=n}resolve(e,n){let r=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),o=this.fn(r,e,n);if(o===void 0||o===e)return e;if(!mv(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const Oh={context:"$",value:"."};class Ta{constructor(e,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof e!="string")throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),e==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Oh.context,this.isValue=this.key[0]===Oh.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?Oh.context:this.isValue?Oh.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Ca.getter(this.path,!0),this.map=n.map}getValue(e,n,r){let o=this.isContext?r:this.isValue?e:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(e,n){return this.getValue(e,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}Ta.prototype.__isYupRef=!0;const ka=t=>t==null;function Bl(t){function e({value:n,path:r="",options:o,originalValue:i,schema:s},a,l){const{name:u,test:f,params:p,message:m,skipAbsent:b}=t;let{parent:v,context:y,abortEarly:x=s.spec.abortEarly,disableStackTrace:S=s.spec.disableStackTrace}=o;const k={value:n,parent:v,context:y};function T(B={}){const H=yI(Object.assign({value:n,originalValue:i,label:s.spec.label,path:B.path||r,spec:s.spec,disableStackTrace:B.disableStackTrace||S},p,B.params),k),F=new pr(pr.formatError(B.message||m,H),n,H.path,B.type||u,H.disableStackTrace);return F.params=H,F}const C=x?a:l;let O={path:r,parent:v,type:u,from:o.from,createError:T,resolve(B){return bI(B,k)},options:o,originalValue:i,schema:s};const I=B=>{pr.isError(B)?C(B):B?l(null):C(T())},N=B=>{pr.isError(B)?C(B):a(B)};if(b&&ka(n))return I(!0);let V;try{var M;if(V=f.call(O,n,O),typeof((M=V)==null?void 0:M.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${O.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(V).then(I,N)}}catch(B){N(B);return}I(V)}return e.OPTIONS=t,e}function yI(t,e){if(!t)return t;for(const n of Object.keys(t))t[n]=bI(t[n],e);return t}function bI(t,e){return Ta.isRef(t)?t.getValue(e.value,e.parent,e.context):t}function FQ(t,e,n,r=n){let o,i,s;return e?(Ca.forEach(e,(a,l,u)=>{let f=l?a.slice(1,a.length-1):a;t=t.resolve({context:r,parent:o,value:n});let p=t.type==="tuple",m=u?parseInt(f,10):0;if(t.innerType||p){if(p&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(n&&m>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${e}. because there is no value at that index. `);o=n,n=n&&n[m],t=p?t.spec.types[m]:t.innerType}if(!u){if(!t.fields||!t.fields[f])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${s} which is a type: "${t.type}")`);o=n,n=n&&n[f],t=t.fields[f]}i=f,s=l?"["+a+"]":"."+a}),{schema:t,parent:o,parentPath:i}):{parent:o,parentPath:e,schema:t}}class Mh extends Set{describe(){const e=[];for(const n of this.values())e.push(Ta.isRef(n)?n.describe():n);return e}resolveAll(e){let n=[];for(const r of this.values())n.push(e(r));return n}clone(){return new Mh(this.values())}merge(e,n){const r=this.clone();return e.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function Fl(t,e=new Map){if(mv(t)||!t||typeof t!="object")return t;if(e.has(t))return e.get(t);let n;if(t instanceof Date)n=new Date(t.getTime()),e.set(t,n);else if(t instanceof RegExp)n=new RegExp(t),e.set(t,n);else if(Array.isArray(t)){n=new Array(t.length),e.set(t,n);for(let r=0;r<t.length;r++)n[r]=Fl(t[r],e)}else if(t instanceof Map){n=new Map,e.set(t,n);for(const[r,o]of t.entries())n.set(r,Fl(o,e))}else if(t instanceof Set){n=new Set,e.set(t,n);for(const r of t)n.add(Fl(r,e))}else if(t instanceof Object){n={},e.set(t,n);for(const[r,o]of Object.entries(t))n[r]=Fl(o,e)}else throw Error(`Unable to clone ${t}`);return n}function RQ(t){if(!(t!=null&&t.length))return;const e=[];let n="",r=!1,o=!1;for(let i=0;i<t.length;i++){const s=t[i];if(s==="["&&!o){n&&(e.push(...n.split(".").filter(Boolean)),n=""),r=!0;continue}if(s==="]"&&!o){n&&(/^\d+$/.test(n)?e.push(n):e.push(n.replace(/^"|"$/g,"")),n=""),r=!1;continue}if(s==='"'){o=!o;continue}if(s==="."&&!r&&!o){n&&(e.push(n),n="");continue}n+=s}return n&&e.push(...n.split(".").filter(Boolean)),e}function zQ(t,e){const n=e?`${e}.${t.path}`:t.path;return t.errors.map(r=>({message:r,path:RQ(n)}))}function vI(t,e){var n;if(!((n=t.inner)!=null&&n.length)&&t.errors.length)return zQ(t,e);const r=e?`${e}.${t.path}`:t.path;return t.inner.flatMap(o=>vI(o,r))}class ti{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Mh,this._blacklist=new Mh,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(ei.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},e==null?void 0:e.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Fl(Object.assign({},this.spec,e)),n}label(e){let n=this.clone();return n.spec.label=e,n}meta(...e){if(e.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},e[0]),n}withMutation(e){let n=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=n,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let n=this,r=e.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(e._whitelist,e._blacklist),r._blacklist=n._blacklist.merge(e._blacklist,e._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{e.tests.forEach(s=>{i.test(s.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(e){return e==null?!!(this.spec.nullable&&e===null||this.spec.optional&&e===void 0):this._typeCheck(e)}resolve(e){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,i)=>i.resolve(o,e),n),n=n.resolve(e)}return n}resolveOptions(e){var n,r,o,i;return Object.assign({},e,{from:e.from||[],strict:(n=e.strict)!=null?n:this.spec.strict,abortEarly:(r=e.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=e.recursive)!=null?o:this.spec.recursive,disableStackTrace:(i=e.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(e,n={}){let r=this.resolve(Object.assign({},n,{value:e})),o=n.assert==="ignore-optionality",i=r._cast(e,n);if(n.assert!==!1&&!r.isType(i)){if(o&&ka(i))return i;let s=Cs(e),a=Cs(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
406
406
 
407
407
  attempted value: ${s}
408
408
  `+(a!==s?`result of cast: ${a}`:""))}return i}_cast(e,n){let r=e===void 0?e:this.transforms.reduce((o,i)=>i.call(this,o,e,this,n),e);return r===void 0&&(r=this.getDefault(n)),r}_validate(e,n={},r,o){let{path:i,originalValue:s=e,strict:a=this.spec.strict}=n,l=e;a||(l=this._cast(l,Object.assign({assert:!1},n)));let u=[];for(let f of Object.values(this.internalTests))f&&u.push(f);this.runTests({path:i,value:l,originalValue:s,options:n,tests:u},r,f=>{if(f.length)return o(f,l);this.runTests({path:i,value:l,originalValue:s,options:n,tests:this.tests},r,o)})}runTests(e,n,r){let o=!1,{tests:i,value:s,originalValue:a,path:l,options:u}=e,f=y=>{o||(o=!0,n(y,s))},p=y=>{o||(o=!0,r(y,s))},m=i.length,b=[];if(!m)return p([]);let v={value:s,originalValue:a,path:l,options:u,schema:this};for(let y=0;y<i.length;y++){const x=i[y];x(v,f,function(k){k&&(Array.isArray(k)?b.push(...k):b.push(k)),--m<=0&&p(b)})}}asNestedTest({key:e,index:n,parent:r,parentPath:o,originalParent:i,options:s}){const a=e??n;if(a==null)throw TypeError("Must include `key` or `index` for nested validations");const l=typeof a=="number";let u=r[a];const f=Object.assign({},s,{strict:!0,parent:r,value:u,originalValue:i[a],key:void 0,[l?"index":"key"]:a,path:l||a.includes(".")?`${o||""}[${l?a:`"${a}"`}]`:(o?`${o}.`:"")+e});return(p,m,b)=>this.resolve(f)._validate(u,f,m,b)}validate(e,n){var r;let o=this.resolve(Object.assign({},n,{value:e})),i=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return new Promise((s,a)=>o._validate(e,n,(l,u)=>{pr.isError(l)&&(l.value=u),a(l)},(l,u)=>{l.length?a(new pr(l,u,void 0,void 0,i)):s(u)}))}validateSync(e,n){var r;let o=this.resolve(Object.assign({},n,{value:e})),i,s=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return o._validate(e,Object.assign({},n,{sync:!0}),(a,l)=>{throw pr.isError(a)&&(a.value=l),a},(a,l)=>{if(a.length)throw new pr(a,e,void 0,void 0,s);i=l}),i}isValid(e,n){return this.validate(e,n).then(()=>!0,r=>{if(pr.isError(r))return!1;throw r})}isValidSync(e,n){try{return this.validateSync(e,n),!0}catch(r){if(pr.isError(r))return!1;throw r}}_getDefault(e){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,e):Fl(n)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,n){const r=this.clone({nullable:e});return r.internalTests.nullable=Bl({message:n,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),r}optionality(e,n){const r=this.clone({optional:e});return r.internalTests.optionality=Bl({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(e=ei.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=ei.notNull){return this.nullability(!1,e)}required(e=ei.required){return this.clone().withMutation(n=>n.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let n=this.clone();return n.transforms.push(e),n}test(...e){let n;if(e.length===1?typeof e[0]=="function"?n={test:e[0]}:n=e[0]:e.length===2?n={name:e[0],test:e[1]}:n={name:e[0],message:e[1],test:e[2]},n.message===void 0&&(n.message=ei.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=Bl(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(s=>!(s.OPTIONS.name===n.name&&(i||s.OPTIONS.test===o.OPTIONS.test))),r.tests.push(o),r}when(e,n){!Array.isArray(e)&&typeof e!="string"&&(n=e,e=".");let r=this.clone(),o=fI(e).map(i=>new Ta(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new Eh(o,n):Eh.fromOptions(o,n)),r}typeError(e){let n=this.clone();return n.internalTests.typeError=Bl({message:e,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(e,n=ei.oneOf){let r=this.clone();return e.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=Bl({message:n,name:"oneOf",skipAbsent:!0,test(o){let i=this.schema._whitelist,s=i.resolveAll(this.resolve);return s.includes(o)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:s}})}}),r}notOneOf(e,n=ei.notOneOf){let r=this.clone();return e.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=Bl({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,s=i.resolveAll(this.resolve);return s.includes(o)?this.createError({params:{values:Array.from(i).join(", "),resolved:s}}):!0}}),r}strip(e=!0){let n=this.clone();return n.spec.strip=e,n}describe(e){const n=(e?this.resolve(e):this).clone(),{label:r,meta:o,optional:i,nullable:s}=n.spec;return{meta:o,label:r,optional:i,nullable:s,default:n.getDefault(e),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.filter((l,u,f)=>f.findIndex(p=>p.OPTIONS.name===l.OPTIONS.name)===u).map(l=>{const u=l.OPTIONS.params&&e?yI(Object.assign({},l.OPTIONS.params),e):l.OPTIONS.params;return{name:l.OPTIONS.name,params:u}})}}get"~standard"(){const e=this;return{version:1,vendor:"yup",async validate(r){try{return{value:await e.validate(r,{abortEarly:!1})}}catch(o){if(o instanceof pr)return{issues:vI(o)};throw o}}}}}ti.prototype.__isYupSchema__=!0;for(const t of["validate","validateSync"])ti.prototype[`${t}At`]=function(e,n,r={}){const{parent:o,parentPath:i,schema:s}=FQ(this,e,n,r.context);return s[t](o&&o[i],Object.assign({},r,{parent:o,path:e}))};for(const t of["equals","is"])ti.prototype[t]=ti.prototype.oneOf;for(const t of["not","nope"])ti.prototype[t]=ti.prototype.notOneOf;const VQ=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function HQ(t){const e=gv(t);if(!e)return Date.parse?Date.parse(t):Number.NaN;if(e.z===void 0&&e.plusMinus===void 0)return new Date(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond).valueOf();let n=0;return e.z!=="Z"&&e.plusMinus!==void 0&&(n=e.hourOffset*60+e.minuteOffset,e.plusMinus==="+"&&(n=0-n)),Date.UTC(e.year,e.month,e.day,e.hour,e.minute+n,e.second,e.millisecond)}function gv(t){var e,n;const r=VQ.exec(t);return r?{year:Ai(r[1]),month:Ai(r[2],1)-1,day:Ai(r[3],1),hour:Ai(r[4]),minute:Ai(r[5]),second:Ai(r[6]),millisecond:r[7]?Ai(r[7].substring(0,3)):0,precision:(e=(n=r[7])==null?void 0:n.length)!=null?e:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:Ai(r[10]),minuteOffset:Ai(r[11])}:null}function Ai(t,e=0){return Number(t)||e}let WQ=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,jQ=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,UQ=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,qQ="^\\d{4}-\\d{2}-\\d{2}",KQ="\\d{2}:\\d{2}:\\d{2}",YQ="(([+-]\\d{2}(:?\\d{2})?)|Z)",GQ=new RegExp(`${qQ}T${KQ}(\\.\\d+)?${YQ}$`),JQ=t=>ka(t)||t===t.trim(),XQ={}.toString();function Rl(){return new xI}class xI extends ti{constructor(){super({type:"string",check(e){return e instanceof String&&(e=e.valueOf()),typeof e=="string"}}),this.withMutation(()=>{this.transform((e,n)=>{if(!this.spec.coerce||this.isType(e)||Array.isArray(e))return e;const r=e!=null&&e.toString?e.toString():e;return r===XQ?e:r})})}required(e){return super.required(e).withMutation(n=>n.test({message:e||ei.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(n=>n.OPTIONS.name!=="required"),e))}length(e,n=kr.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(r){return r.length===this.resolve(e)}})}min(e,n=kr.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(r){return r.length>=this.resolve(e)}})}max(e,n=kr.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:e},skipAbsent:!0,test(r){return r.length<=this.resolve(e)}})}matches(e,n){let r=!1,o,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:o,name:i}=n:o=n),this.test({name:i||"matches",message:o||kr.matches,params:{regex:e},skipAbsent:!0,test:s=>s===""&&r||s.search(e)!==-1})}email(e=kr.email){return this.matches(WQ,{name:"email",message:e,excludeEmptyString:!0})}url(e=kr.url){return this.matches(jQ,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=kr.uuid){return this.matches(UQ,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let n="",r,o;return e&&(typeof e=="object"?{message:n="",allowOffset:r=!1,precision:o=void 0}=e:n=e),this.matches(GQ,{name:"datetime",message:n||kr.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||kr.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:i=>{if(!i||r)return!0;const s=gv(i);return s?!!s.z:!1}}).test({name:"datetime_precision",message:n||kr.datetime_precision,params:{precision:o},skipAbsent:!0,test:i=>{if(!i||o==null)return!0;const s=gv(i);return s?s.precision===o:!1}})}ensure(){return this.default("").transform(e=>e===null?"":e)}trim(e=kr.trim){return this.transform(n=>n!=null?n.trim():n).test({message:e,name:"trim",test:JQ})}lowercase(e=kr.lowercase){return this.transform(n=>ka(n)?n:n.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>ka(n)||n===n.toLowerCase()})}uppercase(e=kr.uppercase){return this.transform(n=>ka(n)?n:n.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>ka(n)||n===n.toUpperCase()})}}Rl.prototype=xI.prototype;let wI=new Date(""),ZQ=t=>Object.prototype.toString.call(t)==="[object Date]";function yv(){return new Bu}class Bu extends ti{constructor(){super({type:"date",check(e){return ZQ(e)&&!isNaN(e.getTime())}}),this.withMutation(()=>{this.transform((e,n)=>!this.spec.coerce||this.isType(e)||e===null?e:(e=HQ(e),isNaN(e)?Bu.INVALID_DATE:new Date(e)))})}prepareParam(e,n){let r;if(Ta.isRef(e))r=e;else{let o=this.cast(e);if(!this._typeCheck(o))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=o}return r}min(e,n=hv.min){let r=this.prepareParam(e,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(o){return o>=this.resolve(r)}})}max(e,n=hv.max){let r=this.prepareParam(e,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(o){return o<=this.resolve(r)}})}}Bu.INVALID_DATE=wI,yv.prototype=Bu.prototype,yv.INVALID_DATE=wI;function QQ(t,e=[]){let n=[],r=new Set,o=new Set(e.map(([s,a])=>`${s}-${a}`));function i(s,a){let l=Ca.split(s)[0];r.add(l),o.has(`${a}-${l}`)||n.push([a,l])}for(const s of Object.keys(t)){let a=t[s];r.add(s),Ta.isRef(a)&&a.isSibling?i(a.path,s):mv(a)&&"deps"in a&&a.deps.forEach(l=>i(l,s))}return MQ.array(Array.from(r),n).reverse()}function SI(t,e){let n=1/0;return t.some((r,o)=>{var i;if((i=e.path)!=null&&i.includes(r))return n=o,!0}),n}function CI(t){return(e,n)=>SI(t,e)-SI(t,n)}const eee=(t,e,n)=>{if(typeof t!="string")return t;let r=t;try{r=JSON.parse(t)}catch{}return n.isType(r)?r:t};function _h(t){if("fields"in t){const e={};for(const[n,r]of Object.entries(t.fields))e[n]=_h(r);return t.setFields(e)}if(t.type==="array"){const e=t.optional();return e.innerType&&(e.innerType=_h(e.innerType)),e}return t.type==="tuple"?t.optional().clone({types:t.spec.types.map(_h)}):"optional"in t?t.optional():t}const tee=(t,e)=>{const n=[...Ca.normalizePath(e)];if(n.length===1)return n[0]in t;let r=n.pop(),o=Ca.getter(Ca.join(n),!0)(t);return!!(o&&r in o)};let TI=t=>Object.prototype.toString.call(t)==="[object Object]";function kI(t,e){let n=Object.keys(t.fields);return Object.keys(e).filter(r=>n.indexOf(r)===-1)}const nee=CI([]);function bv(t){return new EI(t)}class EI extends ti{constructor(e){super({type:"object",check(n){return TI(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=nee,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,n={}){var r;let o=super._cast(e,n);if(o===void 0)return this.getDefault(n);if(!this._typeCheck(o))return o;let i=this.fields,s=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(o).filter(p=>!this._nodes.includes(p))),l={},u=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),f=!1;for(const p of a){let m=i[p],b=p in o,v=o[p];if(m){let y;u.path=(n.path?`${n.path}.`:"")+p,m=m.resolve({value:v,context:n.context,parent:l});let x=m instanceof ti?m.spec:void 0,S=x==null?void 0:x.strict;if(x!=null&&x.strip){f=f||p in o;continue}y=!n.__validating||!S?m.cast(v,u):v,y!==void 0&&(l[p]=y)}else b&&!s&&(l[p]=v);(b!==p in l||l[p]!==v)&&(f=!0)}return f?l:o}_validate(e,n={},r,o){let{from:i=[],originalValue:s=e,recursive:a=this.spec.recursive}=n;n.from=[{schema:this,value:s},...i],n.__validating=!0,n.originalValue=s,super._validate(e,n,r,(l,u)=>{if(!a||!TI(u)){o(l,u);return}s=s||u;let f=[];for(let p of this._nodes){let m=this.fields[p];!m||Ta.isRef(m)||f.push(m.asNestedTest({options:n,key:p,parent:u,parentPath:n.path,originalParent:s}))}this.runTests({tests:f,value:u,originalValue:s,options:n},r,p=>{o(p.sort(this._sortErrors).concat(l),u)})})}clone(e){const n=super.clone(e);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(e){let n=super.concat(e),r=n.fields;for(let[o,i]of Object.entries(this.fields)){const s=r[o];r[o]=s===void 0?i:s}return n.withMutation(o=>o.setFields(r,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var o;const i=this.fields[r];let s=e;(o=s)!=null&&o.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(s):void 0}),n}setFields(e,n){let r=this.clone();return r.fields=e,r._nodes=QQ(e,n),r._sortErrors=CI(Object.keys(e)),n&&(r._excludedEdges=n),r}shape(e,n=[]){return this.clone().withMutation(r=>{let o=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),o=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,e),o)})}partial(){const e={};for(const[n,r]of Object.entries(this.fields))e[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(e)}deepPartial(){return _h(this)}pick(e){const n={};for(const r of e)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,o])=>e.includes(r)&&e.includes(o)))}omit(e){const n=[];for(const r of Object.keys(this.fields))e.includes(r)||n.push(r);return this.pick(n)}from(e,n,r){let o=Ca.getter(e,!0);return this.transform(i=>{if(!i)return i;let s=i;return tee(i,e)&&(s=Object.assign({},i),r||delete s[e],s[n]=o(i)),s})}json(){return this.transform(eee)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||kh.exact,test(n){if(n==null)return!0;const r=kI(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,n=kh.noUnknown){typeof e!="boolean"&&(n=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(o){if(o==null)return!0;const i=kI(this.schema,o);return!e||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,n=kh.noUnknown){return this.noUnknown(!e,n)}transformKeys(e){return this.transform(n=>{if(!n)return n;const r={};for(const o of Object.keys(n))r[e(o)]=n[o];return r})}camelCase(){return this.transformKeys(pv.camelCase)}snakeCase(){return this.transformKeys(pv.snakeCase)}constantCase(){return this.transformKeys(e=>pv.snakeCase(e).toUpperCase())}describe(e){const n=(e?this.resolve(e):this).clone(),r=super.describe(e);r.fields={};for(const[i,s]of Object.entries(n.fields)){var o;let a=e;(o=a)!=null&&o.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[i]})),r.fields[i]=s.describe(a)}return r}}bv.prototype=EI.prototype;const ree=t=>{const{open:e,anchorEl:n,onGenerateCitation:r,onClose:o}=t;return g.jsx(z.Popper,{open:e,anchorEl:n,placement:"bottom-end",style:{zIndex:1300},sx:{maxWidth:"500px"},children:g.jsxs(Lu,{component:z.Paper,p:1,boxShadow:9,gap:.25,children:[g.jsx(z.Typography,{variant:"body1",children:"Paste in a preformatted citation"}),g.jsx(z.Typography,{variant:"body2",color:"text.secondary",fontStyle:"italic",fontSize:".8em",children:"For best results, ensure your citations use a vertical bar ( | ) to separate the title, source, url, etc. Incomplete citations are allowed but may result in incompletely filled fields."}),g.jsx(Ht.Formik,{initialValues:{pasteExistingCitation:""},onSubmit:({pasteExistingCitation:i})=>{r(see(i)),o()},children:({values:i,submitForm:s,setFieldValue:a})=>g.jsxs(Qo,{flexWrap:"wrap",justifyContent:"flex-end",children:[g.jsx(UM,{name:"pasteExistingCitation",errorMode:"collapse",label:"",placeholder:"Scientific News Today | How to Organize Your Workspace for Maximum Efficiency | https://mock-news-site.com | ACCESSED 2 JAN 2026 | Public Source",endIcon:g.jsx(z.Tooltip,{title:"Paste from Clipboard",children:g.jsx(z.IconButton,{"data-testid":"paste-content-button",onClick:()=>{navigator.clipboard.readText().then(l=>a("pasteExistingCitation",l))},children:g.jsx(AU,{})})})}),g.jsxs(Qo,{children:[g.jsx(Tr,{size:"small",variant:"outlined",onClick:o,"data-testid":"citation-table_paste-prompt_cancel",children:"Cancel"}),g.jsx(Tr,{size:"small",type:"submit",onClick:s,"data-testid":"citation-table_paste-prompt_submit",disabled:!i.pasteExistingCitation,children:"Prefill Citation"})]})]})})]})})},oee=["https://","http://","www."],iee=new RegExp(oee.join("|")),see=t=>{const e=t.replace(/\.\s*$/,"").split("|").map(f=>f.trim()).filter(Boolean),n=e.findIndex(f=>f.match(iee)),r=e.findIndex(f=>f.toUpperCase().startsWith("ACCESSED")),o=e.findIndex(f=>/\bSOURCE\b/.test(f.toUpperCase()));let s=[n,r,o].find(f=>f!==-1)??e.length;const a=s-1,l=s-2;return{type:"Url",source:Ih(e,l),title:Ih(e,a),url:Ih(e,n),accessedAt:aee(e,r),classification:lee(e,o),details:Ih(e,o)}},Ih=(t,e)=>e<0||e>=t.length?"":t[e],aee=(t,e)=>e<0||e>=t.length?"":xZ(t[e].toUpperCase().replace(/^ACCESSED\s+/,"")),lee=(t,e)=>e<0||e>=t.length?"":t[e].toUpperCase().includes("PUBLIC")?"Public Source":"Proprietary Source",OI=t=>{const{loading:e=!1,type:n="submit",size:r="medium",...o}=t,s={small:16,medium:20,large:24}[r];return g.jsx(Tr,{type:n,disabled:e,size:r,startIcon:e?g.jsx(z.CircularProgress,{size:s,color:"inherit"}):null,...o})},MI=t=>{const{onCancel:e,onViewCitationTable:n,readOnly:r=!1,showViewAllCitationsBtn:o=!1,isLoading:i,onSaveClicked:s}=t;return r&&!o?null:r?g.jsx(z.DialogActions,{sx:{px:0},children:g.jsx(z.Button,{onClick:n,size:"small",variant:"outlined",children:"Back To Table"})}):g.jsxs(z.DialogActions,{sx:{px:0,justifyContent:"space-between"},children:[g.jsx(z.Box,{children:o&&g.jsx(z.Button,{onClick:n,size:"small",variant:"outlined",children:"View All Citations"})}),g.jsxs(Qo,{children:[g.jsx(z.Button,{onClick:e,variant:"outlined",size:"small",children:"Cancel"}),g.jsx(OI,{size:"small",loading:i,type:"button",onClick:s,children:"Save"})]})]})},cee=t=>{const{onSave:e,onCancel:n,onViewCitationTable:r,onClose:o,modifyCitation:i,readOnly:s=!1,showViewAllCitationsBtn:a=!1,canLaunchUrl:l}=t,u=J.useRef(null),[f,p]=J.useState(!1),[m,b]=J.useState(!1),v=J.useRef(null),[y,x]=J.useState(!1),[S,k]=J.useState({type:"Url",source:"",title:"",accessedAt:null,url:"",classification:"",details:""});J.useEffect(()=>{i&&k({...i,type:"Url"})},[]);const T={disabled:f,margin:"none",readOnly:s},C=!s;return g.jsxs(z.Box,{minWidth:"400px",maxWidth:"500px",children:[g.jsxs(Qo,{justifyContent:"space-between",children:[g.jsxs(Qo,{gap:2,children:[g.jsxs(z.Typography,{variant:"h6",margin:"10px 0",children:[s?"View":"Edit"," Citation"]}),C&&g.jsx(z.Button,{variant:"outlined",size:"small",ref:v,onClick:()=>x(!0),children:"Paste & Prefill"})]}),g.jsx(z.IconButton,{onClick:o,children:g.jsx(fp,{})})]}),g.jsx(Ht.Formik,{innerRef:u,enableReinitialize:!0,initialValues:S,onSubmit:async O=>{p(!0),e(O).catch(I=>{throw p(!1),I}).finally(()=>p(!1))},validationSchema:bv({title:Rl().required("Title is required"),accessedAt:yv().required("Accessed At is required"),url:Rl().required("URL is required"),classification:Rl().required("Classification is required")}),validateOnBlur:m,validateOnChange:m,children:({submitForm:O,setValues:I,values:N})=>g.jsxs(Ht.Form,{autoComplete:"off",children:[g.jsxs(z.Box,{display:"flex",flexDirection:"column",gap:s?1:0,alignItems:"flex-start",children:[g.jsx(ki,{...T,name:"title",required:!0}),g.jsx(ki,{...T,name:"source"}),g.jsx(ki,{...T,name:"details",label:"Details (e.g. Source Description)"}),g.jsx(Up,{...T,name:"accessedAt",required:!0,isDatePicker:!0}),s&&(l!=null&&l(N))?g.jsx(g.Fragment,{children:g.jsx(Ti,{label:"URL / Other Identifier",readOnlyValue:g.jsx(uv,{citation:N,canLaunchUrl:l,asLink:!0}),value:N.url??""})}):g.jsx(ki,{...T,name:"url",label:"URL / Other Identifier",required:!0,endIcon:g.jsx(uv,{citation:N,canLaunchUrl:l})}),g.jsx(jM,{...T,name:"classification",row:!0,required:!0,radios:uee})]}),g.jsx(MI,{isLoading:f,onSaveClicked:()=>{b(!0),O()},readOnly:s,showViewAllCitationsBtn:a,onViewCitationTable:r,onCancel:n}),g.jsx(ree,{open:y,onGenerateCitation:L=>{I(L,!0)},anchorEl:v.current,onClose:()=>x(!1)})]})})]})},uee=[{label:"Public Source",value:"Public Source",helperText:"URL is accessible to anyone from any location without special permissions. You can safely access this URL on any computer, including public or shared devices."},{label:"Proprietary Source",value:"Proprietary Source",helperText:"For private, sensitive, or access-controlled content. Use a VPN, or take extra precautions, when accessing to protect your privacy."}],dee=t=>{const{onSave:e,onCancel:n,onViewCitationTable:r,onClose:o,modifyCitation:i,readOnly:s=!1,showViewAllCitationsBtn:a=!1,onDownloadAttachment:l,onPreviewAttachment:u}=t,f=J.useRef(null),[p,m]=J.useState(!1),[b,v]=J.useState(!1),[y,x]=J.useState({type:"Attachment",title:"",file:void 0,fileName:""});return J.useEffect(()=>{i&&x({...i,type:"Attachment",file:void 0})},[]),g.jsxs(z.Box,{minWidth:"400px",maxWidth:"500px",children:[g.jsxs(z.Box,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",children:[g.jsxs(z.Typography,{variant:"h6",margin:"10px 0",children:[s?"View":"Edit"," Attachment"]}),g.jsx(z.IconButton,{onClick:o,children:g.jsx(fp,{})})]}),g.jsx(Ht.Formik,{innerRef:f,enableReinitialize:!0,initialValues:y,validationSchema:bv().shape({title:Rl().required("Title is required"),fileName:Rl().required("A file is required")}),validateOnBlur:b,validateOnChange:b,onSubmit:async S=>{m(!0),e(S).catch(k=>{throw m(!1),k}).finally(()=>m(!1))},children:({values:S,setFieldValue:k,handleSubmit:T})=>{var O;const C=!s&&!S.id;return J.useEffect(()=>{var I,N;(I=S.file)!=null&&I.name&&k("fileName",(N=S.file)==null?void 0:N.name)},[(O=S.file)==null?void 0:O.name]),g.jsxs(Ht.Form,{autoComplete:"off",children:[g.jsx(ki,{name:"title",disabled:p,required:!0,margin:"none",readOnly:s}),g.jsxs(z.Box,{marginTop:C?1:0,children:[g.jsxs(Qo,{alignItems:"flex-start",children:[C&&g.jsx(kM,{name:"file",errorMode:"hidden"}),g.jsxs(Qo,{alignItems:"flex-end",children:[g.jsx(ki,{readOnly:!0,name:"fileName",label:C?"":"File Name"}),!C&&g.jsxs(Qo,{children:[g.jsx(oI,{citation:S,onDownloadAttachment:l}),g.jsx(iI,{citation:S,onPreviewAttachment:u})]})]})]}),g.jsx(yr,{name:"fileName"})]}),g.jsx(MI,{isLoading:p,onSaveClicked:()=>{v(!0),T()},readOnly:s,showViewAllCitationsBtn:a,onViewCitationTable:r,onCancel:n})]})}})]})},Fu=t=>{const{open:e=!1,onClose:n,title:r,children:o,actions:i,closeBtnLabel:s,closeButtonPosition:a,closeButtonProps:l={},disableDismiss:u=!1,...f}=t;if(!e)return null;const p=a==="bottom"||a==="top-and-bottom",m=a==="top"||a==="top-and-bottom",b=()=>{if(s&&p)return g.jsx(z.Button,{className:"MBv2_Modal_Close",onClick:t.onClose,...l,children:s})},v=()=>{if(i)return g.jsx(z.DialogActions,{className:"MBv2_Modal_Actions",children:g.jsxs(z.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%",gap:"0.25rem",children:[g.jsx(z.Box,{children:b()}),g.jsxs(z.Box,{display:"flex",gap:".25rem",children:[...i]})]})});if(s&&p)return g.jsx(z.DialogActions,{className:"MBv2_Modal_Actions",children:g.jsx(z.Box,{children:b()})})};return g.jsxs(z.Dialog,{className:"MBv2_Modal",open:e,onClose:()=>{u||n==null||n()},...f,children:[typeof r=="string"?g.jsx(z.DialogTitle,{className:"MBv2_Modal_Title",children:g.jsxs(z.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[r,m&&g.jsx(z.IconButton,{"data-testid":"modal-header-close-btn",onClick:n,children:g.jsx(fp,{})})]})}):r,o&&(typeof o=="string"?g.jsx(z.DialogContent,{className:"MBv2_Modal_Content",children:g.jsx(z.DialogContentText,{className:"MBv2_Modal_Content_Text",children:o})}):o),v()]})};function fee(t){return Ke("MuiAlert",t)}const _I=je("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),pee=Le(g.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),hee=Le(g.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),mee=Le(g.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),gee=Le(g.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),yee=Le(g.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),bee=t=>{const{variant:e,color:n,severity:r,classes:o}=t,i={root:["root",`color${Ne(n||r)}`,`${e}${Ne(n||r)}`,`${e}`],icon:["icon"],message:["message"],action:["action"]};return qe(i,fee,o)},vee=oe(fs,{name:"MuiAlert",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${Ne(n.color||n.severity)}`]]}})(bt(({theme:t})=>{const e=t.palette.mode==="light"?Vs:Va,n=t.palette.mode==="light"?Va:Vs;return{...t.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter(Hn(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:e(t.palette[r].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${r}StandardBg`]:n(t.palette[r].light,.9),[`& .${_I.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(Hn(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:e(t.palette[r].light,.6),border:`1px solid ${(t.vars||t).palette[r].light}`,[`& .${_I.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(Hn(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:t.typography.fontWeightMedium,...t.vars?{color:t.vars.palette.Alert[`${r}FilledColor`],backgroundColor:t.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:t.palette.mode==="dark"?t.palette[r].dark:t.palette[r].main,color:t.palette.getContrastText(t.palette[r].main)}}}))]}})),xee=oe("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(t,e)=>e.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),wee=oe("div",{name:"MuiAlert",slot:"Message",overridesResolver:(t,e)=>e.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),See=oe("div",{name:"MuiAlert",slot:"Action",overridesResolver:(t,e)=>e.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),II={success:g.jsx(pee,{fontSize:"inherit"}),warning:g.jsx(hee,{fontSize:"inherit"}),error:g.jsx(mee,{fontSize:"inherit"}),info:g.jsx(gee,{fontSize:"inherit"})},DI=A.forwardRef(function(e,n){const r=mt({props:e,name:"MuiAlert"}),{action:o,children:i,className:s,closeText:a="Close",color:l,components:u={},componentsProps:f={},icon:p,iconMapping:m=II,onClose:b,role:v="alert",severity:y="success",slotProps:x={},slots:S={},variant:k="standard",...T}=r,C={...r,color:l,severity:y,variant:k,colorSeverity:l||y},O=bee(C),I={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...S},slotProps:{...f,...x}},[N,L]=_t("root",{ref:n,shouldForwardComponentProp:!0,className:ge(O.root,s),elementType:vee,externalForwardedProps:{...I,...T},ownerState:C,additionalProps:{role:v,elevation:0}}),[V,M]=_t("icon",{className:O.icon,elementType:xee,externalForwardedProps:I,ownerState:C}),[B,H]=_t("message",{className:O.message,elementType:wee,externalForwardedProps:I,ownerState:C}),[F,P]=_t("action",{className:O.action,elementType:See,externalForwardedProps:I,ownerState:C}),[_,D]=_t("closeButton",{elementType:_l,externalForwardedProps:I,ownerState:C}),[R,j]=_t("closeIcon",{elementType:yee,externalForwardedProps:I,ownerState:C});return g.jsxs(N,{...L,children:[p!==!1?g.jsx(V,{...M,children:p||m[y]||II[y]}):null,g.jsx(B,{...H,children:i}),o!=null?g.jsx(F,{...P,children:o}):null,o==null&&b?g.jsx(F,{...P,children:g.jsx(_,{size:"small","aria-label":a,title:a,color:"inherit",onClick:b,...D,children:g.jsx(R,{fontSize:"small",...j})})}):null]})});process.env.NODE_ENV!=="production"&&(DI.propTypes={action:c.node,children:c.node,classes:c.object,className:c.string,closeText:c.string,color:c.oneOfType([c.oneOf(["error","info","success","warning"]),c.string]),components:c.shape({CloseButton:c.elementType,CloseIcon:c.elementType}),componentsProps:c.shape({closeButton:c.object,closeIcon:c.object}),icon:c.node,iconMapping:c.shape({error:c.node,info:c.node,success:c.node,warning:c.node}),onClose:c.func,role:c.string,severity:c.oneOfType([c.oneOf(["error","info","success","warning"]),c.string]),slotProps:c.shape({action:c.oneOfType([c.func,c.object]),closeButton:c.oneOfType([c.func,c.object]),closeIcon:c.oneOfType([c.func,c.object]),icon:c.oneOfType([c.func,c.object]),message:c.oneOfType([c.func,c.object]),root:c.oneOfType([c.func,c.object])}),slots:c.shape({action:c.elementType,closeButton:c.elementType,closeIcon:c.elementType,icon:c.elementType,message:c.elementType,root:c.elementType}),sx:c.oneOfType([c.arrayOf(c.oneOfType([c.func,c.object,c.bool])),c.func,c.object]),variant:c.oneOfType([c.oneOf(["filled","outlined","standard"]),c.string])});const Ru=t=>{var b;const{noIcon:e=!1,children:n,severity:r="success",variant:o="leftBorder",sx:i,title:s,...a}=t,{palette:l}=z.useTheme(),u=e?{icon:!1}:{},f=o==="leftBorder"?"standard":o,p=o==="leftBorder"?{...i,borderLeft:`4px solid ${(b=l[r])==null?void 0:b.main}`}:i,m=s?{icon:{sx:{mt:"6px"}}}:{};return g.jsxs(DI,{severity:r,variant:f,sx:p,slotProps:m,...u,...a,children:[s&&g.jsx(z.Typography,{variant:"h3",children:s}),n]})},AI=t=>g.jsx(Ru,{severity:"error",...t}),PI=t=>g.jsx(Ru,{severity:"success",...t}),Cee=t=>{const{alert:e,setAlert:n}=t,r=()=>n(void 0);return g.jsxs(g.Fragment,{children:[(e==null?void 0:e.type)==="Error"&&g.jsx(AI,{"data-testid":"citation-menu-error",onClose:r,title:e.title,children:e.message.toString()}),(e==null?void 0:e.type)==="Success"&&g.jsx(PI,{"data-testid":"citation-menu-success",onClose:r,children:e.message})]})};function NI({getCitationsPaginated:t,onCreateCitation:e,onUpdateCitation:n,onDeleteCitation:r,getCitationById:o,onDownloadAttachment:i,onPreviewAttachment:s,onSelectCitations:a,onClose:l,initialSelectedIds:u=[],onContentChange:f,onError:p=()=>{},renderAsPopup:m=!1,canSelect:b=!1,tableTitle:v="Attachments & Citations",addlActions:y,canLaunchUrl:x,readOnly:S,canSearch:k=!1}){const[T,C]=J.useState("Insert Citation/Attachment(s)"),[O,I]=J.useState(u),[N,L]=J.useState(void 0),[V,M]=J.useState(void 0),[B,H]=J.useState(!1),[F,P]=J.useState(!1),_=ee=>{M(void 0),C(ee)},[D,R]=J.useState(0);J.useEffect(()=>{f==null||f()},[T,V,f]);const j=(ee=!1)=>{(!m||ee)&&R(ie=>ie+1)},K=(ee,ie)=>{var Me;const we=typeof((Me=ie.response)==null?void 0:Me.data)=="string"&&ie.response.data,Ce=typeof ie.message=="string"&&ie.message;M({type:"Error",title:ee,message:we??Ce}),p(ie)},U=ee=>M({type:"Success",title:"",message:ee}),Y=async ee=>{if(T==="Insert Citation/Attachment(s)")throw Error("onSave called with invalid state");ee.id?await(n==null?void 0:n(ee).then(()=>{B?l():(_("Insert Citation/Attachment(s)"),j())}).catch(ie=>{K("Failed to update",ie)})):await(e==null?void 0:e(ee).then(ie=>{I([...O,ie.id]),_("Insert Citation/Attachment(s)"),j()}).catch(ie=>{K("Failed to create",ie)}))},fe=r&&(async ee=>r(ee).then(()=>{j(!0),I(O.filter(ie=>ie!==ee)),U("Successfully deleted")}).catch(ie=>K("Failed to delete",ie))),ue=o&&(ee=>{o(ee).then(ie=>{const we=!!ie.fileName;L(ie),_(we?"Attachment":"Citation")}).catch(ie=>{K("Failed to load",ie)}).finally(()=>P(!1))}),pe=n&&ue,Z=n&&ue,te=i&&(async ee=>i(ee).catch(ie=>{K(`Failed to download ${ee.fileName}`,ie)})),ce=s&&(async ee=>s(ee).catch(ie=>{K(`Failed to view ${ee.fileName}`,ie)})),ne=g.jsx(CQ,{refreshKey:D,getCitationsPaginated:(ee,ie)=>t(ee,ie).then(we=>(f==null||f(),we)),onCancel:l,onNewCitation:()=>{L(void 0),_("Citation")},onNewAttachment:()=>{L(void 0),_("Attachment")},onEditCitation:pe,onEditAttachment:Z,onViewCitation:ue,onViewAttachment:ue,onDeleteCitation:fe,onDownloadAttachment:te,onPreviewAttachment:ce,onSelect:a,setSelectedIds:I,selectedIds:O,onError:p,condenseTable:m,canSelect:b,title:v,addlActions:y,canCreate:!!e,canLaunchUrl:x,readOnly:S,showCloseBtn:m,canSearch:k}),re=g.jsx(cee,{modifyCitation:N,onSave:Y,onCancel:()=>B?l():_("Insert Citation/Attachment(s)"),onViewCitationTable:()=>{_("Insert Citation/Attachment(s)"),H(!1)},onClose:()=>m?l():_("Insert Citation/Attachment(s)"),readOnly:S,showViewAllCitationsBtn:S&&!B||!S&&B,canLaunchUrl:x}),le=g.jsx(dee,{onSave:Y,onCancel:()=>B?l():_("Insert Citation/Attachment(s)"),onViewCitationTable:()=>{_("Insert Citation/Attachment(s)"),H(!1)},onClose:()=>m?l():_("Insert Citation/Attachment(s)"),modifyCitation:N,readOnly:S,showViewAllCitationsBtn:S&&!B||!S&&B,onDownloadAttachment:te,onPreviewAttachment:ce}),ye=g.jsx(Cee,{alert:V,setAlert:M});J.useEffect(()=>{m&&u.length===1&&ue&&(P(!0),H(!0),ue(u[0]))},[]);const X=()=>{switch(T){case"Insert Citation/Attachment(s)":return ne;case"Citation":return re;case"Attachment":return le}};return m?g.jsxs(z.Box,{children:[ye,g.jsx(z.Box,{paddingTop:"8px",children:g.jsx(lv,{isLoading:F,children:X()})})]}):g.jsxs(z.Box,{width:"100%",children:[T==="Insert Citation/Attachment(s)"&&ye,g.jsx(z.Box,{paddingTop:"8px",children:ne}),g.jsx(Fu,{open:T!=="Insert Citation/Attachment(s)",children:g.jsxs(z.Box,{padding:"10px 20px",minWidth:"400px","data-testid":"citation-form-modal",children:[ye,T==="Citation"?re:le]})})]})}function $I({getSelectedCitationsPaginated:t,getCitationsPaginated:e,readOnly:n,initialSelectedIds:r=[],...o}){const i=(s,a)=>n?t(s,r):e(s,a);return g.jsx(NI,{renderAsPopup:!0,canSelect:!n,getCitationsPaginated:i,readOnly:n,tableTitle:`${n?"Selected":"Insert"} Citation/Attachment(s)`,initialSelectedIds:r,...o})}const Tee=z.styled("div",{name:"CitationBubbleMenu",slot:"content",overridesResolver:(t,e)=>e.content})(({theme:t})=>{const e=t.palette.mode==="dark";return{padding:t.spacing(1.5,2,.5),backgroundColor:e?"#101010":"#f9f9f9",border:`1px solid ${t.palette.grey[e?700:200]}`}});function kee({getCitationsPaginated:t,getSelectedCitationsPaginated:e,onCreateCitation:n,onUpdateCitation:r,onDeleteCitation:o,getCitationById:i,onDownloadAttachment:s,onPreviewAttachment:a,canLaunchUrl:l,readOnly:u,canSearch:f,...p}){const m=Tt();if(m&&!("citationBubbleMenuHandler"in(m==null?void 0:m.storage)))throw new Error("You must add the CitationBubbleMenuHandler extension to the useEditor `extensions` array in order to use this component!");const b=m==null?void 0:m.storage.citationBubbleMenuHandler,v=b.isOpen,y=b.selectedIds,x=b.selectedNodePos,S=O=>{m&&(O.length===0?m.commands.deleteCitation(x):y.length===0?m.commands.insertCitation({ids:O}):m.commands.updateCitation({ids:O},x))},k=O=>{S(O),m==null||m.commands.closeCitationBubbleMenu()},T=()=>{S(y),m==null||m.commands.closeCitationBubbleMenu()},C=J.useCallback(()=>{requestAnimationFrame(()=>{m!=null&&m.view&&m.view.dispatch(m.view.state.tr)})},[m]);return m?g.jsx(Sy,{editor:m,open:v,...b.bubbleMenuOptions,...p,children:g.jsx(Tee,{children:g.jsx($I,{getCitationsPaginated:t,getSelectedCitationsPaginated:O=>e(O,y),onCreateCitation:n,onUpdateCitation:r,onDeleteCitation:o,getCitationById:i,onDownloadAttachment:s,onPreviewAttachment:a,onSelectCitations:k,onClose:T,initialSelectedIds:y,onContentChange:C,canLaunchUrl:l,readOnly:u,canSearch:f})})}):null}const Eee=()=>cn.create({name:"citationBubbleMenuHandler",addStorage(){return{isOpen:!1,selectedIds:[],bubbleMenuOptions:void 0,selectedNodePos:0}},addCommands(){return{openCitationBubbleMenu:(t={},e)=>({editor:n,dispatch:r})=>{var a;const{doc:o}=n.state,i=o.nodeAt(e??0),s=((a=i==null?void 0:i.attrs)==null?void 0:a.ids)??[];return r&&(this.storage.isOpen=!0,this.storage.selectedIds=s,this.storage.bubbleMenuOptions=t,this.storage.selectedNodePos=e??0),!0},closeCitationBubbleMenu:()=>({commands:t,dispatch:e})=>this.storage.isOpen?(t.focus(),e&&(this.storage.isOpen=!1,this.storage.selectedIds=[],this.storage.selectedNodePos=0),!0):!1}},onSelectionUpdate(){this.storage.isOpen&&!this.editor.isActive("citation")&&this.editor.commands.closeCitationBubbleMenu()},addKeyboardShortcuts(){return{"Mod-Shift-c":()=>(this.editor.commands.openCitationBubbleMenu(),!0)}}});function Oee(t){const e=Tt(),n=J.useRef(null);return g.jsx(wt,{buttonRef:n,tooltipLabel:"Insert Citation/Attachment",tooltipShortcutKeys:["mod","Shift","C"],disabled:!(e!=null&&e.isEditable),onClick:()=>e==null?void 0:e.commands.openCitationBubbleMenu({anchorEl:n.current,placement:"bottom"}),...t,children:g.jsxs(z.Box,{display:"flex",flexDirection:"row",gap:"4px",alignItems:"center",children:[g.jsx(_U,{fontSize:"small"}),g.jsx(z.Typography,{variant:"body2",children:"Insert Citation/Attachment"})]})})}const LI=J.createContext(void 0),BI=()=>{const t=J.useContext(LI);if(!t)throw new Error("useSync must be used inside CitationFieldProvider");return t},Mee=({node:t,HTMLAttributes:e,selected:n,extension:r,updateAttributes:o,deleteNode:i})=>{const s=t.attrs.ids||[],{citations:a,isLoaded:l}=BI(),[u,f]=J.useState(s?String(s):""),[p,m]=J.useState([]),b=r.options.citationMaxLength;if(J.useEffect(()=>{if(!l)return;const v=a.filter(S=>s.includes(S.id)),y=v.map(S=>bs.truncate(S.title,{length:b,omission:"..."})).join(", ");f(y),m(v);const x=v.map(S=>S.id);x.length===0?setTimeout(i,0):x.length!==s.length&&setTimeout(()=>o({ids:v.map(S=>S.id)}),0)},[a,s,l]),p.length!==0)return g.jsx(_b,{as:"span",...e,"data-testid":"citation-node-component",children:g.jsx(z.Tooltip,{title:g.jsx(z.Box,{className:"citation-tooltip",children:p.map((v,y)=>{var k;const S=!!v.fileName?[v.title,v.fileName]:[v.title,v.source,v.details,(k=v.accessedAt)==null?void 0:k.slice(0,10),v.url,v.classification];return g.jsxs(z.Typography,{variant:"subtitle2",children:[S.filter(Boolean).join(" | "),y<p.length-1&&g.jsx(z.Divider,{className:"citation-tooltip-divider"})]},v.id)})}),slotProps:{tooltip:{sx:{maxWidth:500}}},children:g.jsx("a",{href:"#",onClick:v=>{v.preventDefault(),v.stopPropagation()},className:n?"selected-citation-link":"citation-link",children:u})})})},_ee=tn.create({name:"citation",group:"inline",inline:!0,atom:!0,selectable:!0,addAttributes(){return{ids:{default:[],parseHTML:t=>{const e=t.getAttribute("ids");return e?e.split(",").map(n=>parseInt(n.trim(),10)).filter(n=>!isNaN(n)):[]},renderHTML:t=>({ids:Array.isArray(t.ids)?t.ids.join(","):""})}}},parseHTML(){return[{tag:"citation"}]},renderHTML({HTMLAttributes:t}){return["citation",Ct(t)]},addNodeView(){return Ib(Mee)},addProseMirrorPlugins(){return[new en({props:{handleClickOn:(t,e,n,r,o,i)=>n&&n.type.name==="citation"?(this.editor.commands.openCitationBubbleMenu({},r),!0):!1}})]},addCommands(){return{insertCitation:t=>({commands:e})=>e.insertContent({type:"citation",attrs:t}),updateCitation:(t,e)=>({state:n,dispatch:r,tr:o})=>{const i=n.doc.nodeAt(e);return!i||i.type.name!=="citation"?!1:(o.setNodeMarkup(e,void 0,t),r&&r(o),!0)},deleteCitation:t=>({tr:e,dispatch:n})=>{if(typeof t!="number")return!1;const r=t,o=t+1;return n&&n(e.delete(r,o)),!0}}}});function FI({editor:t,canComment:e=!0,onComment:n,commentCount:r,commentResolved:o,...i}){const s=J.useRef(null);if(!n)return null;const a=o?g.jsx(iE,{sx:{width:14,height:14},"data-testid":"resolved-checkmark"}):r,l=o?"success":"primary",u=o?{"& .MuiBadge-badge":{padding:0,height:16,minWidth:16}}:{"& .MuiBadge-badge":{fontSize:14,height:16,minWidth:16}};return e?g.jsx(wt,{buttonRef:s,tooltipLabel:"Comments",onClick:()=>{if(!t)return;const{from:f,to:p}=t.state.selection,m=t.state.doc.textBetween(f,p,`
409
- `).trim();n(m)},...i,children:g.jsx(z.Box,{display:"flex",flexDirection:"row",gap:"4px",alignItems:"center",children:g.jsx(z.Badge,{"data-testid":"comment-button-badge",badgeContent:a,color:l,sx:u,children:g.jsx(VU,{sx:{fontSize:"22px"}})})})}):null}const Iee=t=>{var Z;const{name:e,label:n=Ln(e),hideLabel:r=!1,required:o=!1,readOnly:i,margin:s="dense",citationMaxLength:a=24,getCitationsPaginated:l,getSelectedCitationsPaginated:u,onCreateCitation:f,onUpdateCitation:p,onDeleteCitation:m,getCitationById:b,onDownloadAttachment:v,onPreviewAttachment:y,onError:x=()=>{},placeholder:S="Start typing here...",errorMode:k="normal",canLaunchUrl:T,canSearch:C=!1,redoUndo:O=!1}=t,I=[FT.configure({code:!1,codeBlock:!1,heading:!1,blockquote:!1,horizontalRule:!1,strike:!1}),Xb,Y2.configure({placeholder:S}),Eee(),_ee.configure({citationMaxLength:a})],[N,L,V]=Ht.useField({name:e}),{setValue:M}=V,{value:B}=N,{addUpdateCitation:H,deleteCitation:F,batchUpdate:P,citations:_}=BI();J.useEffect(()=>{var ne;const te=(ne=D==null?void 0:D.current)==null?void 0:ne.editor;if(!te)return;te.getHTML()!==B&&setTimeout(()=>{te.commands.setContent(B)},0)},[B]);const D=J.useRef(null),R={normal:{marginTop:"16px",marginBottom:"8px"},dense:{marginTop:"8px",marginBottom:"4px"},none:{margin:0}},j=(te=void 0)=>{var re,le;const ce=((le=(re=D.current)==null?void 0:re.editor)==null?void 0:le.getHTML())??"",ne=!ce.replace(/<\/?p>|<br>/g,"").trim();M(ne?"":ce,te)},K=J.useMemo(()=>bs.debounce(()=>j(!1),500),[M]),U=Hs(),{showDiff:Y,getPreviousValue:fe}=Ws(),ue=i??U;if(Y){const te=fe(e)??"",ce=B,ne=/<citation\s+ids="([^"]*)"><\/citation>/g,re=(X,ee)=>{const ie=ee.split(",").map(Number);return`<sup>${_.filter(we=>ie.includes(we.id)).map(we=>we.title)}</sup>`},le=te.replace(ne,re),ye=ce.replace(ne,re);return g.jsx(Ti,{label:n,value:ye,showDiff:!0,diffSnapshot:le,mode:"html"})}const pe=bs.pick(t,["canComment","onComment","commentCount","commentResolved"]);return g.jsxs(z.Box,{id:`citation-field_${e}`,sx:{"& .ProseMirror":{"& h1, & h2, & h3, & h4, & h5, & h6":{scrollMarginTop:ue?0:50}},".MuiTiptap-RichTextContent-readonly ":{padding:0}},...R[s],display:"flex",flexDirection:"column",width:"100%",children:[g.jsxs(z.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[!r&&g.jsx(z.InputLabel,{htmlFor:`citation-field_${e}`,required:!i&&o,children:n}),i&&g.jsx(FI,{...pe,editor:(Z=D==null?void 0:D.current)==null?void 0:Z.editor})]}),g.jsx(pM,{ref:D,extensions:I,content:B,editable:!ue,renderControls:()=>{var te;return g.jsxs(jf,{justifyContent:"space-between",children:[g.jsxs(jf,{children:[g.jsx(Oee,{}),g.jsx(An,{}),g.jsx(SE,{}),g.jsx(DE,{}),g.jsx(NE,{}),g.jsx(An,{}),g.jsx(AE,{}),g.jsx(CE,{})]}),g.jsx(FI,{...pe,editor:(te=D==null?void 0:D.current)==null?void 0:te.editor})]})},onBlur:()=>j(),onUpdate:K,RichTextFieldProps:{variant:ue?"standard":"outlined",MenuBarProps:{hide:ue},footer:O&&g.jsxs(z.Stack,{direction:"row",spacing:2,sx:{borderTop:te=>`1px solid ${te.palette.divider}`,p:1},children:[g.jsx($E,{}),g.jsx(PE,{})]})},children:()=>g.jsx(kee,{getCitationsPaginated:(te,ce)=>l(te,ce).then(ne=>(P(ne.data),ne)),getSelectedCitationsPaginated:u,onCreateCitation:f&&(te=>f(te).then(ce=>(H(ce),ce))),onUpdateCitation:p&&(te=>p(te).then(ce=>(H(ce),ce))),onDeleteCitation:m&&(te=>m(te).then(()=>F(te))),getCitationById:b,onDownloadAttachment:v,onPreviewAttachment:y,onError:x,canLaunchUrl:T,readOnly:ue,canSearch:C})}),g.jsx(yr,{name:e,id:`${e}-err`,errorMode:k})]})},Dee=t=>g.jsx(CM,{name:t.name,label:"Not Applicable",errorMode:"hidden"}),Aee=t=>{const{name:e="submit"}=t;return g.jsx(Tr,{name:e,type:"submit",...t})},Pee=t=>{const{label:e="Return to Top",icon:n=pp,scrollThresholdPx:r=100}=t,o=z.useScrollTrigger({threshold:r}),i=J.useCallback(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);return g.jsx(z.Zoom,{in:o,children:g.jsx(z.Box,{sx:{position:"fixed",bottom:32,right:32,zIndex:1},children:g.jsxs(z.Fab,{onClick:i,color:"primary",size:"small",variant:"extended","aria-label":"Scroll back to top",children:[g.jsx(n,{fontSize:"medium"}),e]})})})},RI=t=>{const{label:e,menuOptions:n=[],icon:r}=t,o=bo.useNavigate(),[i,s]=A.useState(null),a=!!i,l=p=>{s(p.currentTarget)},u=()=>{s(null)};if(n.length===0)return null;const f=r&&!e;return g.jsxs(g.Fragment,{children:[g.jsx(z.Button,{startIcon:f?void 0:r,variant:"outlined",color:"inherit",sx:{minWidth:0,...f&&{paddingLeft:"6px",paddingRight:"6px"}},onClick:l,children:f?r:e}),g.jsx(z.Menu,{anchorEl:i,open:a,onClick:u,children:n.map(p=>g.jsxs(z.MenuItem,{...La(p,o),children:[p.icon&&g.jsx(z.ListItemIcon,{children:p.icon}),g.jsx(z.ListItemText,{primary:p.label})]},p.label))})]})},Nee=()=>{const{values:t,errors:e,status:n}=Ht.useFormikContext(),{palette:r}=z.useTheme();return g.jsx(z.Paper,{style:{backgroundColor:r.mode==="dark"?"#303030":"#f0f0f0",margin:"10px 0"},children:g.jsxs(z.List,{children:[g.jsxs(z.ListItem,{children:[g.jsx(z.Typography,{display:"block",variant:"h6",children:"Values"}),g.jsx("br",{}),g.jsx(z.Divider,{variant:"inset"}),g.jsx("pre",{children:JSON.stringify(t,null,2)})]}),g.jsx(z.Divider,{variant:"inset",component:"li"}),g.jsxs(z.ListItem,{id:"testing",children:[g.jsx(z.Typography,{display:"block",variant:"h6",children:"Errors"}),g.jsx("br",{}),g.jsx(z.Divider,{variant:"inset"}),g.jsx("pre",{children:JSON.stringify(e,null,2)})]}),g.jsxs(z.ListItem,{children:[g.jsx(z.Typography,{display:"block",variant:"h6",children:"Status"}),g.jsx("br",{}),g.jsx(z.Divider,{variant:"inset"}),g.jsx("pre",{children:JSON.stringify(n,null,2)})]})]})})},$ee=t=>{const{steps:e,orientation:n,inlineLabel:r=n=="vertical",isResponsive:o=!1}=t,{width:i}=rI();let s=!r,a=n;o&&(n&&console.warn("Stepper: Ignoring orientation. isResponsive is set to true, so the orientation is determined automatically based on the window size."),a=i<600?"vertical":"horizontal",a=="vertical"?s=!1:s=!r),n=="vertical"&&!r&&(console.warn("Stepper: ignoring inlineLabel={false}. Must use inline labels when orientation is vertical"),s=!1);const l=["steps","inlineLabel","orientation","isResponsive"],u={alternativeLabel:s,orientation:a,...lr({...t},l)};return g.jsx(z.Stepper,{...u,children:e.map(f=>g.jsx(z.Step,{children:g.jsx(z.StepLabel,{children:f})},f))})},Lee=t=>{const{name:e,label:n=Ln(e),labelProps:r={fontSize:"1.1em",color:"#808080",fontWeight:"600"},initialState:o,renderFormGroup:i,addButtonContent:s="Add Another",removeButtonContent:a=t.removePosition==="right"?g.jsx(GM,{}):"Remove",variant:l="card",addButtonSx:u,removeButtonSx:f,allowRemoveAll:p=!1,readOnly:m=!1,emptyListMsg:b="None",showDivider:v=!1,removePosition:y="bottom"}=t,[x]=Ht.useField({name:e}),{value:S}=x,k=T=>({display:"flex",flexDirection:T==="bottom"?"column":"row",alignItems:T==="bottom"?"flex-start":"center"});return g.jsxs(z.FormControl,{fullWidth:!0,children:[g.jsx(z.Typography,{...r,children:n}),m&&x.value.length===0?g.jsx(z.Typography,{children:b}):g.jsx(Ht.FieldArray,{name:e,render:T=>g.jsxs("div",{children:[S.map((C,O)=>g.jsx(J.Fragment,{children:g.jsx(Bee,{variant:l,content:g.jsxs(z.Box,{"data-testid":"form-group-container",sx:typeof y=="string"?k(y):{...y},children:[g.jsxs(z.Box,{width:"100%",children:[i(`${e}.${O}`,O),v&&O!==S.length-1&&g.jsx(z.Divider,{"data-testid":"divider"})]}),!m&&S.length>(p?0:1)&&g.jsx(z.Button,{"data-testid":"repeatable-form-group_remove-btn",sx:f,onClick:()=>T.remove(O),children:a})]})})},`${e}-${O}`)),!m&&g.jsx(z.Button,{"data-testid":"repeatable-form-group_add-btn",onClick:()=>T.push(o),sx:u,children:s})]})})]})},Bee=({variant:t,content:e})=>{switch(t){case"card":return g.jsx(z.Card,{"data-testid":"repeatable-form-group_card",sx:{padding:"8px",marginBottom:"8px"},children:g.jsx(z.CardContent,{children:e})});case"elevatedCard":return g.jsx(z.Card,{"data-testid":"repeatable-form-group_elevated-card",elevation:4,sx:{border:"unset",padding:"8px",marginBottom:"8px"},children:g.jsx(z.CardContent,{children:e})});case"none":return e}},Fee=t=>{const{confirmBtnLabel:e,onConfirm:n,confirmButtonProps:r={color:"primary",variant:"contained"},closeBtnLabel:o="Cancel",closeButtonPosition:i="bottom",...s}=t;return g.jsx(Fu,{actions:[g.jsx(z.Button,{className:"MBv2_ConfirmationModal_ConfirmBtn",onClick:n,...r,children:e})],closeBtnLabel:o,closeButtonPosition:i,...s})},Ree=t=>{const{closeBtnLabel:e="OK",closeButtonPosition:n="bottom",closeButtonProps:r={color:"primary",variant:"contained"},...o}=t;return g.jsx(Fu,{closeBtnLabel:e,closeButtonPosition:n,closeButtonProps:r,...o})},zee=t=>{const{primaryBtnLabel:e,onPrimaryAction:n,primaryActionProps:r={color:"primary",variant:"contained"},secondaryBtnLabel:o,onSecondaryAction:i,secondaryActionProps:s={color:"primary",variant:"outlined"},closeBtnLabel:a="Cancel",closeButtonPosition:l="bottom",...u}=t;return g.jsx(Fu,{actions:[g.jsx(z.Button,{className:"MBv2_DecisionModal_SecondaryAction",onClick:i,...s,children:o}),g.jsx(z.Button,{className:"MBv2_DecisionModal_PrimaryAction",onClick:n,...r,children:e})],closeBtnLabel:a,closeButtonPosition:l,...u})},Vee={added:{icon:OU,label:"Added",color:"success"},deleted:{icon:GM,label:"Deleted",color:"error"},modified:{icon:IU,label:"Modified",color:"info"},unmodified:{label:"Unmodified",color:"default"}},Hee=(t,e)=>g.jsxs(g.Fragment,{children:[g.jsx(z.Box,{"data-testid":"diff-table-cell-removed",sx:{backgroundColor:up},children:g.jsx("s",{children:t})}),g.jsx(z.Box,{"data-testid":"diff-table-cell-added",sx:{backgroundColor:cp},children:g.jsx("u",{children:e})})]}),Wee=(t,e,n,r=!1)=>{var i;let o={};for(const s of t)if(!s.ignoreDiff){const a=Ll(s,e,r),l=Ll(s,n,r);(((i=s.isEqual)==null?void 0:i.call(s,e,n))??SM.isEqual(a,l))||(o[xn(s)]=Hee(a,l))}return o},zI=(t,e,n,r=!1,o)=>{const i=[],s=[];let a=0,l=0;for(e.sort((u,f)=>u.id-f.id),n.sort((u,f)=>u.id-f.id);a<e.length&&l<n.length;){const u=e[a],f=n[l];if(u.id===f.id){const p=Wee(t,u,f,r);(o==null?void 0:o(u,f))??Object.keys(p).length===0?s.push({...f,changeType:"unmodified"}):i.push({...f,changeType:"modified",modifiedDiff:p}),a++,l++}else u.id<f.id?(i.push({...u,changeType:"deleted"}),a++):(i.push({...f,changeType:"added"}),l++)}for(;a<e.length;)i.push({...e[a],changeType:"deleted"}),a++;for(;l<n.length;)i.push({...n[l],changeType:"added"}),l++;return{dataDiff:i,dataUnmodified:s}},VI=t=>{const{beforeData:e,afterData:n,columns:r,isEqual:o,size:i,isMobileScreen:s}=t;t.renderExpand!=null&&o==null&&console.warn("DiffTable: isEqual prop should be provided when renderExpand is provided");const{dataDiff:a,dataUnmodified:l}=zI(r,e,n,s,o);return{columns:[{fieldName:"changeType",render:f=>{const p=Vee[f];return g.jsx(z.Chip,{color:p.color,size:i=="small"||i=="x-small"?"small":"medium",label:g.jsxs(z.Typography,{children:[p.icon&&g.jsx(Um,{icon:p.icon}),p.label]})})}},...r.map(f=>({...f,render:(p,m)=>{var b;return((b=m.modifiedDiff)==null?void 0:b[xn(f)])??Ll(f,m,s)}}))],data:a,unmodifiedData:l,renderExpand:t.renderExpand?f=>{const p=e.find(m=>m.id===f.id);return g.jsx(mw,{previousSnapshot:p,currentSnapshot:f,showDiff:f.changeType==="modified",children:t.renderExpand(f)})}:void 0}},HI=({columns:t,data:e,unmodifiedData:n=[],emptyTableMsg:r="No changes to display",renderExpand:o,size:i})=>{const[s,a]=J.useState(!1),l=()=>a(!s),u=`${s?"Hide":"Show"} ${n.length} unmodified row${n.length>1?"s":""}`;return g.jsxs(z.Box,{children:[g.jsx(cv,{columns:t,data:[...e,...s?n:[]],emptyTableMsg:r,renderExpand:o,size:i}),n.length>0&&g.jsx(z.Box,{children:g.jsx(z.Button,{onClick:l,children:u})})]})},jee=t=>{const{emptyTableMsg:e="No changes to display",...n}=t,r=z.useMediaQuery(z.useTheme().breakpoints.down("sm")),o="beforeData"in n?VI({...n,isMobileScreen:r}):n;return g.jsx(HI,{...o,size:t.size})},Uee=t=>{const{featureMenuOptions:e=[],copyright:n,logo:r,sx:o={},fontColor:i="primary"}=t,{palette:s}=z.useTheme(),a=bo.useNavigate();return g.jsxs(z.Box,{className:"MBv2_Footer",sx:{backgroundColor:s.mode==="dark"?"#222222":"#ededed",padding:"25px 30px",...o},children:[g.jsx(z.Box,{className:"MBv2_Footer_Logo",sx:{display:"flex",gap:2,alignItems:"center",paddingBottom:1},children:typeof r=="string"?g.jsx("img",{draggable:"false",src:r,style:{width:"200px"},alt:"logo"}):r}),g.jsxs(z.Box,{display:"flex",justifyContent:"space-between",flexWrap:"wrap",className:"MBv2_Footer_Nav_Links_Container",gap:2,children:[g.jsx(z.Box,{sx:{flexGrow:1},className:"MBv2_Footer_Nav_Links",display:"flex",flexDirection:"row",justifyContent:"flex-start",gap:3,children:e==null?void 0:e.map(l=>g.jsx(z.Link,{"data-testid":l.label,sx:{cursor:"pointer",fontSize:15},color:i,...La(l,a),children:l.label},l.label))}),n&&g.jsx(z.Typography,{style:{fontSize:15},"data-testid":"copyright",className:"MBv2_Footer_Copyright",color:i,children:n})]})]})},WI=t=>{const{menuOptionLists:e,anchor:n="left",children:r}=t,{pathname:o}=bo.useLocation(),i=bo.useNavigate(),[s,a]=J.useState(!1),l=(m,b)=>g.jsx(z.MenuList,{children:m.map(v=>g.jsxs(z.MenuItem,{...La(v,i,()=>a(!1)),children:[v.icon&&g.jsx(z.ListItemIcon,{children:v.icon}),g.jsx(z.ListItemText,{primary:v.label})]},`mobile-drawer-group-${b}-item-${v.path}`))}),f=(()=>{if(e){const m=e.filter(b=>b&&b.length>0);return m.length===0?null:m.map((b,v)=>g.jsxs(J.Fragment,{children:[l(b,v),v<m.length-1&&g.jsx(z.Divider,{})]},`mobile-drawer-group-${v}`))}return r?g.jsx(z.Box,{role:"presentation",onClick:()=>a(!1),children:r}):null})(),p=f??!1;return J.useEffect(()=>{a(!1)},[o]),p&&g.jsxs(g.Fragment,{children:[g.jsx(z.IconButton,{onClick:()=>a(!0),color:"inherit",title:"Menu",children:g.jsx(FU,{})}),g.jsx(z.Drawer,{"data-testid":"mobile-drawer",anchor:n,open:s,onClose:()=>a(!1),children:g.jsx(z.Box,{sx:{width:300},display:"flex",flexDirection:"column",justifyContent:"space-between",children:g.jsx(z.Box,{display:"flex",justifyContent:"start",flexDirection:"column",children:f})})})]})},jI=t=>{const{env:e,isProd:n}=t;return n?null:g.jsx(z.Paper,{sx:{borderRadius:0,display:"flex",alignItems:"center",justifyContent:"center"},children:g.jsxs(z.Typography,{variant:"h6",color:"error",children:[e," Environment - Test Data Only"]})})},UI=t=>{const{displayName:e,userMenuOptions:n}=t;return g.jsx(RI,{label:e,menuOptions:n,icon:g.jsx(zU,{})})},Dh=t=>{const{menuOptions:e,orientation:n="horizontal",activeTabIdx:r,sx:o=n=="vertical"?{"& .MuiTabs-indicator":{left:0}}:void 0,slotProps:i={indicator:{sx:n=="horizontal"?{height:4}:{width:4}}}}=t,{palette:s}=z.useTheme(),a=bo.useNavigate();return g.jsx(z.Tabs,{orientation:n,value:r??!1,sx:o,slotProps:i,children:e.map((l,u)=>g.jsx(z.Tab,{icon:l.icon,label:l.label,value:u,...La(l,a),sx:{alignItems:n=="vertical"?"flex-start":void 0,borderBottom:n=="vertical"?"1px solid":void 0,borderColor:"divider","&.Mui-selected":{backgroundColor:n=="vertical"?s.grey[s.mode=="dark"?800:50]:void 0,color:"inherit"}}},l.label))})},qI=t=>{const{featureMenuOptions:e=[],activeTabIdx:n,sx:r}=t;return e.length>0&&g.jsx(z.Paper,{sx:{pl:4,pr:4,borderRadius:0},"data-testid":"navBar",children:g.jsx(Dh,{menuOptions:e,activeTabIdx:n,sx:r})})},KI=t=>{const{onToggle:e}=t,{palette:n}=z.useTheme(),r=n.mode==="dark";return g.jsx(z.IconButton,{onClick:e,color:"inherit",title:"Dark Mode Toggle",children:r?g.jsx(YM,{}):g.jsx(qM,{})})},qee=t=>{const{envInfo:e,headerRef:n,logo:r,featureMenuOptions:o=[],userMenuOptions:i=[],onToggleDarkMode:s,quickLinks:a=[],displayName:l,banner:u,position:f="fixed",children:p,sx:m,navBarSx:b}=t,v=bo.useNavigate(),y=z.useMediaQuery(z.useTheme().breakpoints.down("sm")),{palette:x}=z.useTheme(),{pathname:S}=bo.useLocation(),k=x.mode==="dark",[T,C]=A.useState(void 0);A.useEffect(()=>{const N=o.findIndex(L=>L.path&&S.startsWith(L.path));C(N>=0?N:void 0)},[S,o]);const O=s&&g.jsx(KI,{onToggle:s}),I=s&&(y||!y&&l)?[{icon:k?g.jsx(YM,{}):g.jsx(qM,{}),label:`Switch to ${k?"Light":"Dark"} mode`,onClick:s},...i]:i;return g.jsxs(z.AppBar,{ref:n,position:f,sx:m,elevation:4,children:[e&&g.jsx(jI,{...e}),u,g.jsxs(z.Toolbar,{sx:{color:"white",display:"flex",justifyContent:"space-between",gap:2},children:[g.jsx(z.Button,{disableRipple:!0,component:bo.Link,to:"/",children:r&&typeof r=="string"?g.jsx("img",{draggable:"false",src:r,style:{width:"200px",filter:"brightness(0) invert(1)"},alt:"logo"}):r}),g.jsxs(z.Box,{display:"flex",gap:2,alignItems:"center",children:[!l&&!y&&O,y&&g.jsx(WI,{menuOptionLists:[o,a,I],anchor:"right"}),!y&&g.jsxs(g.Fragment,{children:[g.jsx(z.Box,{display:"flex",gap:0,children:a==null?void 0:a.map((N,L)=>g.jsxs(z.Box,{display:"flex",alignItems:"center",children:[L>0&&g.jsx(z.Typography,{className:"quickLink-divider",color:x.primary.contrastText,children:"|"}),g.jsx(z.Button,{variant:"text",sx:{color:"white"},...La(N,v),children:g.jsxs(z.Box,{display:"flex",gap:"3px",alignItems:"center",children:[N.icon,N.label]})})]},N.label))}),p,l&&g.jsx(UI,{displayName:l,userMenuOptions:I})]})]})]}),!y&&g.jsx(qI,{featureMenuOptions:o,activeTabIdx:T,sx:b})]})},Kee=t=>{const{sx:e,menuOptions:n=[]}=t,{pathname:r}=bo.useLocation(),o=z.useMediaQuery(z.useTheme().breakpoints.down("sm")),[i,s]=J.useState(void 0);return J.useEffect(()=>{const a=n.findIndex(l=>l.path&&r.startsWith(l.path))??-1;s(a>=0?a:void 0)},[r,n]),!o&&n.length>0&&g.jsx(z.Box,{sx:e,children:g.jsx(z.Card,{sx:{height:"100%",width:200},children:g.jsx(Dh,{orientation:"vertical",menuOptions:n,activeTabIdx:i})})})},Yee=t=>{const{featureMenuOptions:e=[],activeTabIdx:n,sx:r}=t,{palette:o}=z.useTheme();return e.length>0&&g.jsx(Dh,{menuOptions:e,activeTabIdx:n,sx:{margin:"8px",backgroundColor:o.primary.dark,borderRadius:"8px","& .MuiTab-root":{color:o.secondary.light,flexDirection:"row",gap:"2px","& .MuiTab-icon":{marginBottom:"unset"},minHeight:"58px"},"& .MuiTab-root.Mui-selected":{color:o.primary.contrastText,fontSize:"120%"},"& .MuiTabs-indicator":{display:"none"},...r}})},Gee=({children:t,getCitations:e})=>{const[n,r]=J.useState([]),[o,i]=J.useState(!1);J.useEffect(()=>{(async()=>e().then(f=>{r(p=>{const m=new Set(p.map(v=>v.id));return[...p.filter(v=>!m.has(v.id)),...f]}),i(!0)}).catch(f=>{console.error(`Error fetching citations: ${f==null?void 0:f.toString()}`)}))()},[]);const s=J.useCallback(u=>{r(f=>{const p=f.map(v=>{const y=u.find(x=>x.id===v.id);return y||v}),m=new Set(f.map(v=>v.id)),b=u.filter(v=>!m.has(v.id));return[...p,...b]})},[]),a=J.useCallback(u=>{const f=n.findIndex(p=>p.id===u.id);r(f!==-1?p=>{const m=[...p];return m[f]=u,m}:[...n,u])},[n]),l=J.useCallback(u=>r(n.filter(f=>f.id!==u)),[n]);return g.jsx(LI.Provider,{value:{citations:n,isLoaded:o,addUpdateCitation:a,deleteCitation:l,batchUpdate:s},children:t})},Jee=t=>g.jsx(Ru,{severity:"info",...t}),Xee=t=>g.jsx(Ru,{severity:"warning",...t}),YI=t=>{const{crumbs:e}=t,n=bo.useNavigate(),r=e.map(o=>({label:o.label,onClick:()=>{var i;o.path?n(o.path):(i=o.onClick)==null||i.call(o)}}));return g.jsx(z.Breadcrumbs,{"aria-label":"breadcrumb",separator:g.jsx(RU,{}),sx:{marginBottom:2},children:r.map(({label:o,...i},s)=>s<e.length-1?g.jsx(z.Link,{color:"primary",sx:{cursor:"pointer",fontWeight:"600"},underline:"hover",...La(i,n),children:o},o):g.jsx(z.Typography,{color:"text.primary",children:o},o))})},Zee=t=>{const{title:e,message:n,type:r,onClose:o,autoHideDuration:i,variant:s="leftBorder",elevation:a=6}=t,l=Qee(r);return g.jsx(z.Snackbar,{"data-testid":"message-snackbar",anchorOrigin:{vertical:"bottom",horizontal:"right"},open:!0,onClose:u=>{u==null&&o()},autoHideDuration:i,children:g.jsx(Ru,{"data-testid":"message-snackbar-alert",severity:l,iconMapping:{info:GI(r),warning:GI(r)},onClose:o,elevation:a,variant:s,children:n?g.jsxs(g.Fragment,{children:[g.jsx(z.AlertTitle,{"data-testid":"alertTitle",sx:{fontWeight:"bold"},children:e}),n]}):e})})},Qee=t=>t=="logout"?"info":t=="timeout"?"warning":t,GI=t=>{if(t=="timeout")return g.jsx(EU,{});if(t=="logout")return g.jsx(BU,{})},ete=t=>{tte(t);const{title:e,createButtonLabel:n="Add Item",showAddButton:r=!1,onAdd:o=()=>alert("Not implemented yet"),breadcrumbs:i=[],children:s,sx:a={},bottomGutter:l=!1}=t,u=z.useMediaQuery(z.useTheme().breakpoints.down("sm"));return!e&&(!r||!n)?null:g.jsxs(z.Box,{"data-testid":"MBv2-Page-Header",sx:{...a,...l&&{marginBottom:"4px"}},children:[i.length>0&&g.jsx(YI,{crumbs:i}),g.jsxs(z.Box,{className:"MBv2_PageHeader_Header",display:"flex",flexDirection:u?"column":"row",justifyContent:"space-between",alignItems:"center",gap:1,children:[g.jsxs(z.Box,{className:"MBv2_PageHeader_TitleAndCreateBtn",display:"flex",flexDirection:"row",justifyContent:u||!s?"space-between":"start",alignItems:"center",width:"100%",gap:1,children:[typeof e=="string"?g.jsx(z.Typography,{className:"MBv2_PageHeader_Title",variant:"h2",children:e}):e,r&&g.jsxs(Tr,{className:"MBv2_PageHeader_CreateBtn",onClick:()=>o(),children:[g.jsx(MU,{style:{marginRight:"0.5rem"}}),n]})]}),s&&g.jsx(z.Box,{width:u?"100%":"50%",children:s})]})]})},tte=t=>{const{showAddButton:e,onAdd:n,createButtonLabel:r}=t,o="PageHeader component:";e&&!n&&console.warn(`${o} "showAddButton" is true but "onAdd" is not defined.`),e&&!r&&console.warn(`${o} "showAddButton" is true but "createButtonLabel" is not defined`)},nte=t=>{const{title:e,titleIcon:n,fullWidthIcon:r=!1,children:o,actionLabel:i,action:s,sx:a}=t,l=z.useMediaQuery(z.useTheme().breakpoints.down("sm"));return g.jsxs(z.Card,{sx:a||{padding:"30px 40px",display:"flex",flexDirection:"column",gap:"1rem"},children:[n&&g.jsx(z.Box,{className:"MBv2_SingleActionCard_Img",sx:[r?{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",gap:"20px",marginBottom:"10px"}:{display:"inline"}],children:n}),g.jsx(z.Typography,{variant:"h1",display:"inline",fontSize:"calc(20px + .9vw)",className:"MBv2_SingleActionCard_Title",children:e}),o,g.jsx(z.Button,{variant:"contained",color:"primary",onClick:s,fullWidth:l,className:"MBv2_SingleActionCard_ActionButton",children:i})]})},rte=t=>{const{title:e="Loading...",message:n}=t;return g.jsxs(z.Box,{className:"loading-page",sx:{gap:2},"data-testid":"loading-page",children:[g.jsxs(z.Box,{className:"text-content",children:[g.jsx(z.Typography,{variant:"h1","data-testid":"title",children:e}),n&&g.jsx(z.Typography,{"data-testid":"message",children:n})]}),g.jsx(z.CircularProgress,{size:75,"data-testid":"loading-spinner"})]})};function ote({...t}){return g.jsx(NI,{onSelectCitations:()=>{},onClose:()=>{},...t})}const ite=t=>{const{size:e="small"}=t;let n=`${e}px`;switch(e){case"x-small":n="6px";break;case"small":n="10px";break;case"medium":n="14px";break;case"large":n="18px";break;case"x-large":n="22px";break}return g.jsx(z.Box,{height:n})};Pe.AlertModal=Ree,Pe.Autocomplete=xM,Pe.Breadcrumbs=YI,Pe.Button=Tr,Pe.Checkbox=CM,Pe.CheckboxGroup=X7,Pe.CitationField=Iee,Pe.CitationFieldProvider=Gee,Pe.CitationManager=ote,Pe.Column=Lu,Pe.ConfirmationModal=Fee,Pe.DarkModeToggle=KI,Pe.DateField=Up,Pe.DateRangeField=CZ,Pe.DecisionModal=zee,Pe.Diff=bM,Pe.DiffProvider=mw,Pe.DiffTable=jee,Pe.DiffTableView=HI,Pe.Drawer=WI,Pe.DynamicAutocomplete=G7,Pe.EnvironmentBanner=jI,Pe.ErrorAlert=AI,Pe.FileList=eU,Pe.FileUpload=kM,Pe.FloatingNavBar=Yee,Pe.Footer=Uee,Pe.FormDebugger=Nee,Pe.Header=qee,Pe.HelpTooltip=eI,Pe.IconTooltip=Q2,Pe.InfoAlert=Jee,Pe.LoadingButton=OI,Pe.LoadingIndicator=rte,Pe.LoadingOverlay=lv,Pe.Location=SU,Pe.MenuButton=RI,Pe.Modal=Fu,Pe.MultiAutocomplete=J7,Pe.NavBar=qI,Pe.NotApplicableCheckbox=Dee,Pe.PageHeader=ete,Pe.PaginatedTable=tI,Pe.ProfileMenu=UI,Pe.RadioGroup=jM,Pe.RangeSlider=CU,Pe.ReadOnly=Ti,Pe.ReadOnlyProvider=pw,Pe.RepeatableFormGroup=Lee,Pe.RichTextField=bQ,Pe.Row=Qo,Pe.ScrollToTop=Pee,Pe.SearchField=JM,Pe.Select=TU,Pe.SelectableCitationManager=$I,Pe.Sidebar=Kee,Pe.SingleActionCard=nte,Pe.Snackbar=Zee,Pe.Spacer=ite,Pe.Stepper=$ee,Pe.Submit=Aee,Pe.SuccessAlert=PI,Pe.Switch=kU,Pe.Table=cv,Pe.Tabs=Dh,Pe.TextArea=UM,Pe.TextField=ki,Pe.TextIcon=Um,Pe.ValidationError=yr,Pe.WarningAlert=Xee,Pe.baseCitationTableColumns=aI,Pe.buildDiffData=zI,Pe.buildTableDiff=VI,Pe.createAppTheme=MP,Pe.useDiff=Ws,Pe.useReadOnly=Hs,Object.defineProperty(Pe,Symbol.toStringTag,{value:"Module"})}));
409
+ `).trim();n(m)},...i,children:g.jsx(z.Box,{display:"flex",flexDirection:"row",gap:"4px",alignItems:"center",children:g.jsx(z.Badge,{"data-testid":"comment-button-badge",badgeContent:a,color:l,sx:u,children:g.jsx(VU,{sx:{fontSize:"22px"}})})})}):null}const Iee=t=>{var Z;const{name:e,label:n=Ln(e),hideLabel:r=!1,required:o=!1,readOnly:i,margin:s="dense",citationMaxLength:a=24,getCitationsPaginated:l,getSelectedCitationsPaginated:u,onCreateCitation:f,onUpdateCitation:p,onDeleteCitation:m,getCitationById:b,onDownloadAttachment:v,onPreviewAttachment:y,onError:x=()=>{},placeholder:S="Start typing here...",errorMode:k="normal",canLaunchUrl:T,canSearch:C=!1,redoUndo:O=!1}=t,I=[FT.configure({code:!1,codeBlock:!1,heading:!1,blockquote:!1,horizontalRule:!1,strike:!1}),Xb,Y2.configure({placeholder:S}),Eee(),_ee.configure({citationMaxLength:a})],[N,L,V]=Ht.useField({name:e}),{setValue:M}=V,{value:B}=N,{addUpdateCitation:H,deleteCitation:F,batchUpdate:P,citations:_}=BI();J.useEffect(()=>{var ne;const te=(ne=D==null?void 0:D.current)==null?void 0:ne.editor;if(!te)return;te.getHTML()!==B&&setTimeout(()=>{te.commands.setContent(B)},0)},[B]);const D=J.useRef(null),R={normal:{marginTop:"16px",marginBottom:"8px"},dense:{marginTop:"8px",marginBottom:"4px"},none:{margin:0}},j=(te=void 0)=>{var re,le;const ce=((le=(re=D.current)==null?void 0:re.editor)==null?void 0:le.getHTML())??"",ne=!ce.replace(/<\/?p>|<br>/g,"").trim();M(ne?"":ce,te)},K=J.useMemo(()=>bs.debounce(()=>j(!1),500),[M]),U=Hs(),{showDiff:Y,getPreviousValue:fe}=Ws(),ue=i??U;if(Y){const te=fe(e)??"",ce=B,ne=/<citation\s+ids="([^"]*)"><\/citation>/g,re=(X,ee)=>{const ie=ee.split(",").map(Number);return`<sup>${_.filter(we=>ie.includes(we.id)).map(we=>we.title)}</sup>`},le=te.replace(ne,re),ye=ce.replace(ne,re);return g.jsx(Ti,{label:n,value:ye,showDiff:!0,diffSnapshot:le,mode:"html"})}const pe=bs.pick(t,["canComment","onComment","commentCount","commentResolved"]);return g.jsxs(z.Box,{id:`citation-field_${e}`,sx:{"& .ProseMirror":{"& h1, & h2, & h3, & h4, & h5, & h6":{scrollMarginTop:ue?0:50}},".MuiTiptap-RichTextContent-readonly ":{padding:0}},...R[s],display:"flex",flexDirection:"column",width:"100%",children:[g.jsxs(z.Box,{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",children:[!r&&g.jsx(z.InputLabel,{htmlFor:`citation-field_${e}`,required:!i&&o,children:n}),i&&g.jsx(FI,{...pe,editor:(Z=D==null?void 0:D.current)==null?void 0:Z.editor})]}),g.jsx(pM,{ref:D,extensions:I,content:B,editable:!ue,renderControls:()=>{var te;return g.jsxs(jf,{justifyContent:"space-between",children:[g.jsxs(jf,{children:[g.jsx(Oee,{}),g.jsx(An,{}),g.jsx(SE,{}),g.jsx(DE,{}),g.jsx(NE,{}),g.jsx(An,{}),g.jsx(AE,{}),g.jsx(CE,{})]}),g.jsx(FI,{...pe,editor:(te=D==null?void 0:D.current)==null?void 0:te.editor})]})},onBlur:()=>j(),onUpdate:K,RichTextFieldProps:{variant:ue?"standard":"outlined",MenuBarProps:{hide:ue},footer:O&&g.jsxs(z.Stack,{direction:"row",spacing:2,sx:{borderTop:te=>`1px solid ${te.palette.divider}`,p:1},children:[g.jsx($E,{}),g.jsx(PE,{})]})},children:()=>g.jsx(kee,{getCitationsPaginated:(te,ce)=>l(te,ce).then(ne=>(P(ne.data),ne)),getSelectedCitationsPaginated:u,onCreateCitation:f&&(te=>f(te).then(ce=>(H(ce),ce))),onUpdateCitation:p&&(te=>p(te).then(ce=>(H(ce),ce))),onDeleteCitation:m&&(te=>m(te).then(()=>F(te))),getCitationById:b,onDownloadAttachment:v,onPreviewAttachment:y,onError:x,canLaunchUrl:T,readOnly:ue,canSearch:C})}),g.jsx(yr,{name:e,id:`${e}-err`,errorMode:k})]})},Dee=t=>g.jsx(CM,{name:t.name,label:"Not Applicable",errorMode:"hidden"}),Aee=t=>{const{name:e="submit"}=t;return g.jsx(Tr,{name:e,type:"submit",...t})},Pee=t=>{const{label:e="Return to Top",icon:n=pp,scrollThresholdPx:r=100}=t,o=z.useScrollTrigger({threshold:r}),i=J.useCallback(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);return g.jsx(z.Zoom,{in:o,children:g.jsx(z.Box,{sx:{position:"fixed",bottom:32,right:32,zIndex:1},children:g.jsxs(z.Fab,{onClick:i,color:"primary",size:"small",variant:"extended","aria-label":"Scroll back to top",children:[g.jsx(n,{fontSize:"medium"}),e]})})})},RI=t=>{const{label:e,menuOptions:n=[],icon:r}=t,o=bo.useNavigate(),[i,s]=A.useState(null),a=!!i,l=p=>{s(p.currentTarget)},u=()=>{s(null)};if(n.length===0)return null;const f=r&&!e;return g.jsxs(g.Fragment,{children:[g.jsx(z.Button,{startIcon:f?void 0:r,variant:"outlined",color:"inherit",sx:{minWidth:0,...f&&{paddingLeft:"6px",paddingRight:"6px"}},onClick:l,children:f?r:e}),g.jsx(z.Menu,{anchorEl:i,open:a,onClick:u,children:n.map(p=>g.jsxs(z.MenuItem,{...La(p,o),children:[p.icon&&g.jsx(z.ListItemIcon,{children:p.icon}),g.jsx(z.ListItemText,{primary:p.label})]},p.label))})]})},Nee=()=>{const{values:t,errors:e,status:n}=Ht.useFormikContext(),{palette:r}=z.useTheme();return g.jsx(z.Paper,{style:{backgroundColor:r.mode==="dark"?"#303030":"#f0f0f0",margin:"10px 0"},children:g.jsxs(z.List,{children:[g.jsxs(z.ListItem,{children:[g.jsx(z.Typography,{display:"block",variant:"h6",children:"Values"}),g.jsx("br",{}),g.jsx(z.Divider,{variant:"inset"}),g.jsx("pre",{children:JSON.stringify(t,null,2)})]}),g.jsx(z.Divider,{variant:"inset",component:"li"}),g.jsxs(z.ListItem,{id:"testing",children:[g.jsx(z.Typography,{display:"block",variant:"h6",children:"Errors"}),g.jsx("br",{}),g.jsx(z.Divider,{variant:"inset"}),g.jsx("pre",{children:JSON.stringify(e,null,2)})]}),g.jsxs(z.ListItem,{children:[g.jsx(z.Typography,{display:"block",variant:"h6",children:"Status"}),g.jsx("br",{}),g.jsx(z.Divider,{variant:"inset"}),g.jsx("pre",{children:JSON.stringify(n,null,2)})]})]})})},$ee=t=>{const{steps:e,orientation:n,inlineLabel:r=n=="vertical",isResponsive:o=!1}=t,{width:i}=rI();let s=!r,a=n;o&&(n&&console.warn("Stepper: Ignoring orientation. isResponsive is set to true, so the orientation is determined automatically based on the window size."),a=i<600?"vertical":"horizontal",a=="vertical"?s=!1:s=!r),n=="vertical"&&!r&&(console.warn("Stepper: ignoring inlineLabel={false}. Must use inline labels when orientation is vertical"),s=!1);const l=["steps","inlineLabel","orientation","isResponsive"],u={alternativeLabel:s,orientation:a,...lr({...t},l)};return g.jsx(z.Stepper,{...u,children:e.map(f=>g.jsx(z.Step,{children:g.jsx(z.StepLabel,{children:f})},f))})},Lee=t=>{const{name:e,label:n=Ln(e),labelProps:r={fontSize:"1.1em",color:"#808080",fontWeight:"600"},initialState:o,renderFormGroup:i,addButtonContent:s="Add Another",removeButtonContent:a=t.removePosition==="right"?g.jsx(GM,{}):"Remove",variant:l="card",addButtonSx:u,removeButtonSx:f,allowRemoveAll:p=!1,readOnly:m=!1,emptyListMsg:b="None",showDivider:v=!1,removePosition:y="bottom"}=t,[x]=Ht.useField({name:e}),{value:S}=x,k=T=>({display:"flex",flexDirection:T==="bottom"?"column":"row",alignItems:T==="bottom"?"flex-start":"center"});return g.jsxs(z.FormControl,{fullWidth:!0,children:[g.jsx(z.Typography,{...r,children:n}),m&&x.value.length===0?g.jsx(z.Typography,{children:b}):g.jsx(Ht.FieldArray,{name:e,render:T=>g.jsxs("div",{children:[S.map((C,O)=>g.jsx(J.Fragment,{children:g.jsx(Bee,{variant:l,content:g.jsxs(z.Box,{"data-testid":"form-group-container",sx:typeof y=="string"?k(y):{...y},children:[g.jsxs(z.Box,{width:"100%",children:[i(`${e}.${O}`,O),v&&O!==S.length-1&&g.jsx(z.Divider,{"data-testid":"divider"})]}),!m&&S.length>(p?0:1)&&g.jsx(z.Button,{"data-testid":"repeatable-form-group_remove-btn",sx:f,onClick:()=>T.remove(O),children:a})]})})},`${e}-${O}`)),!m&&g.jsx(z.Button,{"data-testid":"repeatable-form-group_add-btn",onClick:()=>T.push(o),sx:u,children:s})]})})]})},Bee=({variant:t,content:e})=>{switch(t){case"card":return g.jsx(z.Card,{"data-testid":"repeatable-form-group_card",sx:{padding:"8px",marginBottom:"8px"},children:g.jsx(z.CardContent,{children:e})});case"elevatedCard":return g.jsx(z.Card,{"data-testid":"repeatable-form-group_elevated-card",elevation:4,sx:{border:"unset",padding:"8px",marginBottom:"8px"},children:g.jsx(z.CardContent,{children:e})});case"none":return e}},Fee=t=>{const{confirmBtnLabel:e,onConfirm:n,confirmButtonProps:r={color:"primary",variant:"contained"},closeBtnLabel:o="Cancel",closeButtonPosition:i="bottom",...s}=t;return g.jsx(Fu,{actions:[g.jsx(z.Button,{className:"MBv2_ConfirmationModal_ConfirmBtn",onClick:n,...r,children:e})],closeBtnLabel:o,closeButtonPosition:i,...s})},Ree=t=>{const{closeBtnLabel:e="OK",closeButtonPosition:n="bottom",closeButtonProps:r={color:"primary",variant:"contained"},...o}=t;return g.jsx(Fu,{closeBtnLabel:e,closeButtonPosition:n,closeButtonProps:r,...o})},zee=t=>{const{primaryBtnLabel:e,onPrimaryAction:n,primaryActionProps:r={color:"primary",variant:"contained"},secondaryBtnLabel:o,onSecondaryAction:i,secondaryActionProps:s={color:"primary",variant:"outlined"},closeBtnLabel:a="Cancel",closeButtonPosition:l="bottom",...u}=t;return g.jsx(Fu,{actions:[g.jsx(z.Button,{className:"MBv2_DecisionModal_SecondaryAction",onClick:i,...s,children:o}),g.jsx(z.Button,{className:"MBv2_DecisionModal_PrimaryAction",onClick:n,...r,children:e})],closeBtnLabel:a,closeButtonPosition:l,...u})},Vee={added:{icon:OU,label:"Added",color:"success"},deleted:{icon:GM,label:"Deleted",color:"error"},modified:{icon:IU,label:"Modified",color:"info"},unmodified:{label:"Unmodified",color:"default"}},Hee=(t,e)=>g.jsxs(g.Fragment,{children:[g.jsx(z.Box,{"data-testid":"diff-table-cell-removed",sx:{backgroundColor:up},children:g.jsx("s",{children:t})}),g.jsx(z.Box,{"data-testid":"diff-table-cell-added",sx:{backgroundColor:cp},children:g.jsx("u",{children:e})})]}),Wee=(t,e,n,r=!1)=>{var i;let o={};for(const s of t)if(!s.ignoreDiff){const a=Ll(s,e,r),l=Ll(s,n,r);(((i=s.isEqual)==null?void 0:i.call(s,e,n))??SM.isEqual(a,l))||(o[xn(s)]=Hee(a,l))}return o},zI=(t,e,n,r=!1,o)=>{const i=[],s=[];let a=0,l=0;for(e.sort((u,f)=>u.id-f.id),n.sort((u,f)=>u.id-f.id);a<e.length&&l<n.length;){const u=e[a],f=n[l];if(u.id===f.id){const p=Wee(t,u,f,r);(o==null?void 0:o(u,f))??Object.keys(p).length===0?s.push({...f,changeType:"unmodified"}):i.push({...f,changeType:"modified",modifiedDiff:p}),a++,l++}else u.id<f.id?(i.push({...u,changeType:"deleted"}),a++):(i.push({...f,changeType:"added"}),l++)}for(;a<e.length;)i.push({...e[a],changeType:"deleted"}),a++;for(;l<n.length;)i.push({...n[l],changeType:"added"}),l++;return{dataDiff:i,dataUnmodified:s}},VI=t=>{const{beforeData:e,afterData:n,columns:r,isEqual:o,size:i,isMobileScreen:s}=t;t.renderExpand!=null&&o==null&&console.warn("DiffTable: isEqual prop should be provided when renderExpand is provided");const{dataDiff:a,dataUnmodified:l}=zI(r,e,n,s,o);return{columns:[{fieldName:"changeType",render:f=>{const p=Vee[f];return g.jsx(z.Chip,{color:p.color,size:i=="small"||i=="x-small"?"small":"medium",label:g.jsxs(z.Typography,{children:[p.icon&&g.jsx(Um,{icon:p.icon}),p.label]})})}},...r.map(f=>({...f,render:(p,m)=>{var b;return((b=m.modifiedDiff)==null?void 0:b[xn(f)])??Ll(f,m,s)}}))],data:a,unmodifiedData:l,renderExpand:t.renderExpand?f=>{const p=e.find(m=>m.id===f.id);return g.jsx(mw,{previousSnapshot:p,currentSnapshot:f,showDiff:f.changeType==="modified",children:t.renderExpand(f)})}:void 0}},HI=({columns:t,data:e,unmodifiedData:n=[],emptyTableMsg:r="No changes to display",renderExpand:o,size:i})=>{const[s,a]=J.useState(!1),l=()=>a(!s),u=`${s?"Hide":"Show"} ${n.length} unmodified row${n.length>1?"s":""}`;return g.jsxs(z.Box,{children:[g.jsx(cv,{columns:t,data:[...e,...s?n:[]],emptyTableMsg:r,renderExpand:o,size:i}),n.length>0&&g.jsx(z.Box,{children:g.jsx(z.Button,{onClick:l,children:u})})]})},jee=t=>{const{emptyTableMsg:e="No changes to display",...n}=t,r=z.useMediaQuery(z.useTheme().breakpoints.down("sm")),o="beforeData"in n?VI({...n,isMobileScreen:r}):n;return g.jsx(HI,{...o,size:t.size})},Uee=t=>{const{featureMenuOptions:e=[],copyright:n,logo:r,sx:o={},fontColor:i="primary"}=t,{palette:s}=z.useTheme(),a=bo.useNavigate();return g.jsxs(z.Box,{className:"MBv2_Footer",sx:{backgroundColor:s.mode==="dark"?"#222222":"#ededed",padding:"25px 30px",...o},children:[g.jsx(z.Box,{className:"MBv2_Footer_Logo",sx:{display:"flex",gap:2,alignItems:"center",paddingBottom:1},children:typeof r=="string"?g.jsx("img",{draggable:"false",src:r,style:{width:"200px"},alt:"logo"}):r}),g.jsxs(z.Box,{display:"flex",justifyContent:"space-between",flexWrap:"wrap",className:"MBv2_Footer_Nav_Links_Container",gap:2,children:[g.jsx(z.Box,{sx:{flexGrow:1},className:"MBv2_Footer_Nav_Links",display:"flex",flexDirection:"row",justifyContent:"flex-start",gap:3,children:e==null?void 0:e.map(l=>g.jsx(z.Link,{"data-testid":l.label,sx:{cursor:"pointer",fontSize:15},color:i,...La(l,a),children:l.label},l.label))}),n&&g.jsx(z.Typography,{style:{fontSize:15},"data-testid":"copyright",className:"MBv2_Footer_Copyright",color:i,children:n})]})]})},WI=t=>{const{menuOptionLists:e,anchor:n="left",children:r}=t,{pathname:o}=bo.useLocation(),i=bo.useNavigate(),[s,a]=J.useState(!1),l=(m,b)=>g.jsx(z.MenuList,{children:m.map(v=>g.jsxs(z.MenuItem,{...La(v,i,()=>a(!1)),children:[v.icon&&g.jsx(z.ListItemIcon,{children:v.icon}),g.jsx(z.ListItemText,{primary:v.label})]},`mobile-drawer-group-${b}-item-${v.path}`))}),f=(()=>{if(e){const m=e.filter(b=>b&&b.length>0);return m.length===0?null:m.map((b,v)=>g.jsxs(J.Fragment,{children:[l(b,v),v<m.length-1&&g.jsx(z.Divider,{})]},`mobile-drawer-group-${v}`))}return r?g.jsx(z.Box,{role:"presentation",onClick:()=>a(!1),children:r}):null})(),p=f??!1;return J.useEffect(()=>{a(!1)},[o]),p&&g.jsxs(g.Fragment,{children:[g.jsx(z.IconButton,{onClick:()=>a(!0),color:"inherit",title:"Menu",children:g.jsx(FU,{})}),g.jsx(z.Drawer,{"data-testid":"mobile-drawer",anchor:n,open:s,onClose:()=>a(!1),children:g.jsx(z.Box,{sx:{width:300},display:"flex",flexDirection:"column",justifyContent:"space-between",children:g.jsx(z.Box,{display:"flex",justifyContent:"start",flexDirection:"column",children:f})})})]})},jI=t=>{const{env:e,isProd:n}=t;return n?null:g.jsx(z.Paper,{sx:{borderRadius:0,display:"flex",alignItems:"center",justifyContent:"center"},children:g.jsxs(z.Typography,{variant:"h6",color:"error",children:[e," Environment - Test Data Only"]})})},UI=t=>{const{displayName:e,userMenuOptions:n}=t;return g.jsx(RI,{label:e,menuOptions:n,icon:g.jsx(zU,{})})},Dh=t=>{const{menuOptions:e,orientation:n="horizontal",activeTabIdx:r,sx:o=n=="vertical"?{"& .MuiTabs-indicator":{left:0}}:void 0,slotProps:i={indicator:{sx:n=="horizontal"?{height:4}:{width:4}}}}=t,{palette:s}=z.useTheme(),a=bo.useNavigate();return g.jsx(z.Tabs,{orientation:n,value:r??!1,sx:o,slotProps:i,children:e.map((l,u)=>g.jsx(z.Tab,{icon:l.icon,label:l.label,value:u,...La(l,a),sx:{alignItems:n=="vertical"?"flex-start":void 0,borderBottom:n=="vertical"?"1px solid":void 0,borderColor:"divider","&.Mui-selected":{backgroundColor:n=="vertical"?s.grey[s.mode=="dark"?800:50]:void 0,color:"inherit"}}},l.label))})},qI=t=>{const{featureMenuOptions:e=[],activeTabIdx:n,sx:r}=t;return e.length>0&&g.jsx(z.Paper,{sx:{pl:4,pr:4,borderRadius:0},"data-testid":"navBar",children:g.jsx(Dh,{menuOptions:e,activeTabIdx:n,sx:r})})},KI=t=>{const{onToggle:e}=t,{palette:n}=z.useTheme(),r=n.mode==="dark";return g.jsx(z.IconButton,{onClick:e,color:"inherit",title:"Dark Mode Toggle",children:r?g.jsx(YM,{}):g.jsx(qM,{})})},qee=t=>{const{envInfo:e,headerRef:n,logo:r,featureMenuOptions:o=[],userMenuOptions:i=[],onToggleDarkMode:s,quickLinks:a=[],displayName:l,banner:u,position:f="fixed",children:p,sx:m,navBarSx:b}=t,v=bo.useNavigate(),y=z.useMediaQuery(z.useTheme().breakpoints.down("sm")),{palette:x}=z.useTheme(),{pathname:S}=bo.useLocation(),k=x.mode==="dark",[T,C]=A.useState(void 0);A.useEffect(()=>{const N=o.findIndex(L=>L.path&&S.startsWith(L.path));C(N>=0?N:void 0)},[S,o]);const O=s&&g.jsx(KI,{onToggle:s}),I=s&&(y||!y&&l)?[{icon:k?g.jsx(YM,{}):g.jsx(qM,{}),label:`Switch to ${k?"Light":"Dark"} mode`,onClick:s},...i]:i;return g.jsxs(z.AppBar,{ref:n,position:f,sx:m,elevation:4,children:[e&&g.jsx(jI,{...e}),u,g.jsxs(z.Toolbar,{sx:{color:"white",display:"flex",justifyContent:"space-between",gap:2},children:[g.jsx(z.Button,{disableRipple:!0,component:bo.Link,to:"/",children:r&&typeof r=="string"?g.jsx("img",{draggable:"false",src:r,style:{width:"200px",filter:"brightness(0) invert(1)"},alt:"logo"}):r}),g.jsxs(z.Box,{display:"flex",gap:2,alignItems:"center",children:[!l&&!y&&O,y&&g.jsx(WI,{menuOptionLists:[o,a,I],anchor:"right"}),!y&&g.jsxs(g.Fragment,{children:[g.jsx(z.Box,{display:"flex",gap:0,children:a==null?void 0:a.map((N,L)=>g.jsxs(z.Box,{display:"flex",alignItems:"center",children:[L>0&&g.jsx(z.Typography,{className:"quickLink-divider",color:x.primary.contrastText,children:"|"}),g.jsx(z.Button,{variant:"text",sx:{color:"white"},...La(N,v),children:g.jsxs(z.Box,{display:"flex",gap:"3px",alignItems:"center",children:[N.icon,N.label]})})]},N.label))}),p,l&&g.jsx(UI,{displayName:l,userMenuOptions:I})]})]})]}),!y&&g.jsx(qI,{featureMenuOptions:o,activeTabIdx:T,sx:b})]})},Kee=t=>{const{sx:e,menuOptions:n=[]}=t,{pathname:r}=bo.useLocation(),o=z.useMediaQuery(z.useTheme().breakpoints.down("sm")),[i,s]=J.useState(void 0);return J.useEffect(()=>{const a=n.findIndex(l=>l.path&&r.startsWith(l.path))??-1;s(a>=0?a:void 0)},[r,n]),!o&&n.length>0&&g.jsx(z.Box,{sx:e,children:g.jsx(z.Card,{sx:{height:"100%",width:200},children:g.jsx(Dh,{orientation:"vertical",menuOptions:n,activeTabIdx:i})})})},Yee=t=>{const{featureMenuOptions:e=[],activeTabIdx:n,sx:r}=t,{palette:o}=z.useTheme();return e.length>0&&g.jsx(Dh,{menuOptions:e,activeTabIdx:n,sx:{margin:"8px",backgroundColor:o.primary.dark,borderRadius:"8px","& .MuiTab-root":{color:o.secondary.light,flexDirection:"row",gap:"2px","& .MuiTab-icon":{marginBottom:"unset"},minHeight:"58px"},"& .MuiTab-root.Mui-selected":{color:o.primary.contrastText,fontSize:"120%"},"& .MuiTabs-indicator":{display:"none"},...r}})},Gee=({children:t,getCitations:e})=>{const[n,r]=J.useState([]),[o,i]=J.useState(!1);J.useEffect(()=>{(async()=>e().then(f=>{r(p=>{const m=new Set(p.map(v=>v.id));return[...p.filter(v=>!m.has(v.id)),...f]}),i(!0)}).catch(f=>{console.error(`Error fetching citations: ${f==null?void 0:f.toString()}`)}))()},[]);const s=J.useCallback(u=>{r(f=>{const p=f.map(v=>{const y=u.find(x=>x.id===v.id);return y||v}),m=new Set(f.map(v=>v.id)),b=u.filter(v=>!m.has(v.id));return[...p,...b]})},[]),a=J.useCallback(u=>{const f=n.findIndex(p=>p.id===u.id);r(f!==-1?p=>{const m=[...p];return m[f]=u,m}:[...n,u])},[n]),l=J.useCallback(u=>r(n.filter(f=>f.id!==u)),[n]);return g.jsx(LI.Provider,{value:{citations:n,isLoaded:o,addUpdateCitation:a,deleteCitation:l,batchUpdate:s},children:t})},Jee=t=>g.jsx(Ru,{severity:"info",...t}),Xee=t=>g.jsx(Ru,{severity:"warning",...t}),YI=t=>{const{crumbs:e}=t,n=bo.useNavigate(),r=e.map(o=>({label:o.label,onClick:()=>{var i;o.path?n(o.path):(i=o.onClick)==null||i.call(o)}}));return g.jsx(z.Breadcrumbs,{"aria-label":"breadcrumb",separator:g.jsx(RU,{}),sx:{marginBottom:2},children:r.map(({label:o,...i},s)=>s<e.length-1?g.jsx(z.Link,{color:"primary",sx:{cursor:"pointer",fontWeight:"600"},underline:"hover",...La(i,n),children:o},o):g.jsx(z.Typography,{color:"text.primary",children:o},o))})},Zee=t=>{const{title:e,message:n,type:r,onClose:o,autoHideDuration:i,variant:s="leftBorder",elevation:a=6}=t,l=Qee(r);return g.jsx(z.Snackbar,{"data-testid":"message-snackbar",anchorOrigin:{vertical:"bottom",horizontal:"right"},open:!0,onClose:u=>{u==null&&o()},autoHideDuration:i,children:g.jsx(Ru,{"data-testid":"message-snackbar-alert",severity:l,iconMapping:{info:GI(r),warning:GI(r)},onClose:o,elevation:a,variant:s,children:n?g.jsxs(g.Fragment,{children:[g.jsx(z.AlertTitle,{"data-testid":"alertTitle",sx:{fontWeight:"bold"},children:e}),n]}):e})})},Qee=t=>t=="logout"?"info":t=="timeout"?"warning":t,GI=t=>{if(t=="timeout")return g.jsx(EU,{});if(t=="logout")return g.jsx(BU,{})},ete=t=>{tte(t);const{title:e,createButtonLabel:n="Add Item",showAddButton:r=!1,onAdd:o=()=>alert("Not implemented yet"),breadcrumbs:i=[],children:s,sx:a={},bottomGutter:l=!1}=t,u=z.useMediaQuery(z.useTheme().breakpoints.down("sm"));return!e&&(!r||!n)?null:g.jsxs(z.Box,{"data-testid":"MBv2-Page-Header",sx:{...a,...l&&{marginBottom:"4px"}},children:[i.length>0&&g.jsx(YI,{crumbs:i}),g.jsxs(z.Box,{className:"MBv2_PageHeader_Header",display:"flex",flexDirection:u?"column":"row",justifyContent:"space-between",alignItems:"center",gap:1,children:[g.jsxs(z.Box,{className:"MBv2_PageHeader_TitleAndCreateBtn",display:"flex",flexDirection:"row",justifyContent:u||!s?"space-between":"start",alignItems:"center",width:"100%",gap:1,children:[typeof e=="string"?g.jsx(z.Typography,{className:"MBv2_PageHeader_Title",variant:"h2",children:e}):e,r&&g.jsxs(Tr,{className:"MBv2_PageHeader_CreateBtn",onClick:()=>o(),children:[g.jsx(MU,{style:{marginRight:"0.5rem"}}),n]})]}),s&&g.jsx(z.Box,{width:u?"100%":"50%",children:s})]})]})},tte=t=>{const{showAddButton:e,onAdd:n,createButtonLabel:r}=t,o="PageHeader component:";e&&!n&&console.warn(`${o} "showAddButton" is true but "onAdd" is not defined.`),e&&!r&&console.warn(`${o} "showAddButton" is true but "createButtonLabel" is not defined`)},nte=t=>{const{title:e,titleIcon:n,fullWidthIcon:r=!1,children:o,actionLabel:i,action:s,sx:a}=t,l=z.useMediaQuery(z.useTheme().breakpoints.down("sm"));return g.jsxs(z.Card,{sx:a||{padding:"30px 40px",display:"flex",flexDirection:"column",gap:"1rem"},children:[n&&g.jsx(z.Box,{className:"MBv2_SingleActionCard_Img",sx:[r?{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",gap:"20px",marginBottom:"10px"}:{display:"inline"}],children:n}),g.jsx(z.Typography,{variant:"h1",display:"inline",fontSize:"calc(20px + .9vw)",className:"MBv2_SingleActionCard_Title",children:e}),o,g.jsx(z.Button,{variant:"contained",color:"primary",onClick:s,fullWidth:l,className:"MBv2_SingleActionCard_ActionButton",children:i})]})},rte=t=>{const{title:e="Loading...",message:n}=t;return g.jsxs(z.Box,{className:"loading-page",sx:{gap:2},"data-testid":"loading-page",children:[g.jsxs(z.Box,{className:"text-content",children:[g.jsx(z.Typography,{variant:"h1","data-testid":"title",children:e}),n&&g.jsx(z.Typography,{"data-testid":"message",children:n})]}),g.jsx(z.CircularProgress,{size:75,"data-testid":"loading-spinner"})]})};function ote({...t}){return g.jsx(NI,{onSelectCitations:()=>{},onClose:()=>{},...t})}const ite=t=>{const{size:e="small"}=t;let n=`${e}px`;switch(e){case"x-small":n="6px";break;case"small":n="10px";break;case"medium":n="14px";break;case"large":n="18px";break;case"x-large":n="22px";break}return g.jsx(z.Box,{height:n})},ste=t=>{const{text:e,indent:n=!1}=t;return e?g.jsx(z.Box,{component:"blockquote",sx:{borderLeft:"4px solid",borderColor:"primary.main",pl:1,bgcolor:"action.hover",m:0,ml:n?3:0},children:g.jsxs(z.Typography,{variant:"h6",component:"p",fontStyle:"italic",fontWeight:600,gutterBottom:!0,children:['"',e,'"']})}):null};Ae.AlertModal=Ree,Ae.Autocomplete=xM,Ae.Blockquote=ste,Ae.Breadcrumbs=YI,Ae.Button=Tr,Ae.Checkbox=CM,Ae.CheckboxGroup=X7,Ae.CitationField=Iee,Ae.CitationFieldProvider=Gee,Ae.CitationManager=ote,Ae.Column=Lu,Ae.ConfirmationModal=Fee,Ae.DarkModeToggle=KI,Ae.DateField=Up,Ae.DateRangeField=CZ,Ae.DecisionModal=zee,Ae.Diff=bM,Ae.DiffProvider=mw,Ae.DiffTable=jee,Ae.DiffTableView=HI,Ae.Drawer=WI,Ae.DynamicAutocomplete=G7,Ae.EnvironmentBanner=jI,Ae.ErrorAlert=AI,Ae.FileList=eU,Ae.FileUpload=kM,Ae.FloatingNavBar=Yee,Ae.Footer=Uee,Ae.FormDebugger=Nee,Ae.Header=qee,Ae.HelpTooltip=eI,Ae.IconTooltip=Q2,Ae.InfoAlert=Jee,Ae.LoadingButton=OI,Ae.LoadingIndicator=rte,Ae.LoadingOverlay=lv,Ae.Location=SU,Ae.MenuButton=RI,Ae.Modal=Fu,Ae.MultiAutocomplete=J7,Ae.NavBar=qI,Ae.NotApplicableCheckbox=Dee,Ae.PageHeader=ete,Ae.PaginatedTable=tI,Ae.ProfileMenu=UI,Ae.RadioGroup=jM,Ae.RangeSlider=CU,Ae.ReadOnly=Ti,Ae.ReadOnlyProvider=pw,Ae.RepeatableFormGroup=Lee,Ae.RichTextField=bQ,Ae.Row=Qo,Ae.ScrollToTop=Pee,Ae.SearchField=JM,Ae.Select=TU,Ae.SelectableCitationManager=$I,Ae.Sidebar=Kee,Ae.SingleActionCard=nte,Ae.Snackbar=Zee,Ae.Spacer=ite,Ae.Stepper=$ee,Ae.Submit=Aee,Ae.SuccessAlert=PI,Ae.Switch=kU,Ae.Table=cv,Ae.Tabs=Dh,Ae.TextArea=UM,Ae.TextField=ki,Ae.TextIcon=Um,Ae.ValidationError=yr,Ae.WarningAlert=Xee,Ae.baseCitationTableColumns=aI,Ae.buildDiffData=zI,Ae.buildTableDiff=VI,Ae.createAppTheme=MP,Ae.useDiff=Ws,Ae.useReadOnly=Hs,Object.defineProperty(Ae,Symbol.toStringTag,{value:"Module"})}));