@recursica/mui-adapter 0.24.0 → 0.26.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.
Files changed (72) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/index.d.ts +189 -28
  3. package/dist/mui-adapter.cjs +85 -85
  4. package/dist/mui-adapter.cjs.map +1 -1
  5. package/dist/mui-adapter.css +1 -1
  6. package/dist/mui-adapter.js +29694 -24393
  7. package/dist/mui-adapter.js.map +1 -1
  8. package/llms.txt +1 -0
  9. package/package.json +1 -1
  10. package/src/GlobalExemptions.modules.css +0 -6
  11. package/src/components/Accordion/Accordion.module.css +0 -8
  12. package/src/components/AssistiveElement/AssistiveElement.tsx +1 -1
  13. package/src/components/Autocomplete/Autocomplete.module.css +0 -8
  14. package/src/components/Avatar/Avatar.module.css +0 -8
  15. package/src/components/Button/BUTTON_IMPLEMENTATION_NOTES.md +12 -0
  16. package/src/components/Button/Button.module.css +6 -18
  17. package/src/components/Checkbox/Checkbox.tsx +4 -1
  18. package/src/components/Chip/Chip.module.css +0 -27
  19. package/src/components/DatePicker/DATEPICKER_IMPLEMENTATION_NOTES.md +29 -0
  20. package/src/components/DatePicker/DatePicker.icons.tsx +35 -0
  21. package/src/components/DatePicker/DatePicker.module.css +451 -42
  22. package/src/components/DatePicker/DatePicker.stories.tsx +23 -25
  23. package/src/components/DatePicker/DatePicker.tsx +229 -47
  24. package/src/components/DatePicker/USAGE.md +14 -1
  25. package/src/components/Dropdown/Dropdown.module.css +0 -7
  26. package/src/components/FileInput/FileInput.module.css +0 -21
  27. package/src/components/FileInput/FileInput.tsx +6 -0
  28. package/src/components/FileUpload/FileUpload.module.css +0 -11
  29. package/src/components/HoverCard/HoverCard.module.css +1 -7
  30. package/src/components/Label/Label.module.css +0 -6
  31. package/src/components/Link/Link.module.css +0 -13
  32. package/src/components/Menu/Menu.module.css +0 -5
  33. package/src/components/Modal/Modal.module.css +0 -11
  34. package/src/components/NumberInput/NumberInput.module.css +0 -7
  35. package/src/components/Pagination/Pagination.module.css +0 -81
  36. package/src/components/Popover/IMPLEMENTATION_NOTES.md +22 -0
  37. package/src/components/Popover/Popover.module.css +118 -0
  38. package/src/components/Popover/Popover.stories.tsx +133 -0
  39. package/src/components/Popover/Popover.tsx +275 -0
  40. package/src/components/Popover/USAGE.md +69 -0
  41. package/src/components/Popover/index.ts +1 -0
  42. package/src/components/SegmentedControl/IMPLEMENTATION_NOTES.md +6 -0
  43. package/src/components/SegmentedControl/SegmentedControl.module.css +32 -11
  44. package/src/components/SegmentedControl/SegmentedControl.tsx +18 -4
  45. package/src/components/Slider/IMPLEMENTATION_NOTES.md +29 -0
  46. package/src/components/Slider/Slider.module.css +80 -17
  47. package/src/components/Slider/Slider.stories.tsx +1 -1
  48. package/src/components/Slider/Slider.tsx +36 -1
  49. package/src/components/Stepper/IMPLEMENTATION_NOTES.md +54 -0
  50. package/src/components/Stepper/Stepper.module.css +139 -106
  51. package/src/components/Stepper/Stepper.tsx +76 -10
  52. package/src/components/Stepper/USAGE.md +4 -0
  53. package/src/components/Tabs/IMPLEMENTATION_NOTES.md +12 -0
  54. package/src/components/Tabs/Tabs.module.css +107 -24
  55. package/src/components/Tabs/Tabs.tsx +1 -0
  56. package/src/components/TextArea/TextArea.module.css +20 -11
  57. package/src/components/TextArea/TextArea.tsx +12 -23
  58. package/src/components/TextField/TextField.module.css +0 -8
  59. package/src/components/TimePicker/TimePicker.module.css +0 -16
  60. package/src/components/Timeline/IMPLEMENTATION_NOTES.md +24 -3
  61. package/src/components/Timeline/Timeline.module.css +55 -73
  62. package/src/components/Timeline/Timeline.tsx +23 -27
  63. package/src/components/Timeline/TimelineItem.tsx +38 -35
  64. package/src/components/Toast/Toast.module.css +0 -7
  65. package/src/components/Tooltip/Tooltip.module.css +0 -9
  66. package/src/components/TransferList/TRANSFERLIST_IMPLEMENTATION_NOTES.md +140 -0
  67. package/src/components/TransferList/TransferList.module.css +174 -38
  68. package/src/components/TransferList/TransferList.stories.tsx +110 -6
  69. package/src/components/TransferList/TransferList.tsx +417 -8
  70. package/src/components/TransferList/USAGE.md +37 -6
  71. package/src/components/index.ts +1 -0
  72. package/src/index.ts +3 -0
@@ -1,33 +1,30 @@
1
- "use strict";var zh=Object.defineProperty;var Wh=(e,t,n)=>t in e?zh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var q=(e,t,n)=>Wh(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react/jsx-runtime"),Y=require("react"),pe=require("@mui/material"),Fn=require("@emotion/react"),Uh=require("@emotion/styled"),fr=require("react-dom");var Mi=typeof document<"u"?document.currentScript:null;function Fd(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const C=Fd(Y),qh=Fd(fr),Hh=["className","classes","style","sx","color","bgcolor","backgroundColor","typography","fontFamily","fontSize","fontWeight","lineHeight","letterSpacing","textAlign","border","borderTop","borderBottom","borderLeft","borderRight","borderColor","borderRadius","boxShadow","display","position","zIndex"],Yh=new Set(["m","my","mx","mt","mb","ml","mr","p","py","px","pt","pb","pl","pr","gap","rowGap","columnGap","top","left","bottom","right"]),ft={"rec-none":"var(--recursica_brand_dimensions_general_none)","rec-sm":"var(--recursica_brand_dimensions_general_sm)","rec-default":"var(--recursica_brand_dimensions_general_default)","rec-md":"var(--recursica_brand_dimensions_general_md)","rec-lg":"var(--recursica_brand_dimensions_general_lg)","rec-xl":"var(--recursica_brand_dimensions_general_xl)","rec-2xl":"var(--recursica_brand_dimensions_general_2xl)"};function Br(e){const t={...e};return"sx"in t&&delete t.sx,t}function me(e,t){if(t)return e;const n={...e};for(const o of Hh)o in n&&delete n[o];for(const[o,s]of Object.entries(n))typeof s=="string"&&s.startsWith("rec-")&&Yh.has(o)&&s in ft&&(n[o]=ft[s]);return n}const Gh="Accordion-module__root___Dem6d",Kh="Accordion-module__item___7ryVk",Xh="Accordion-module__noDivider___Ni2tT",Qh="Accordion-module__control___b4wgX",Zh="Accordion-module__label___Ss7uW",Jh="Accordion-module__chevron___i-HVZ",eg="Accordion-module__iconLeftWrapper___5oLen",tg="Accordion-module__panel___Wx50w",ng="Accordion-module__content___PEM9t",fn={root:Gh,item:Kh,noDivider:Xh,control:Qh,label:Zh,chevron:Jh,iconLeftWrapper:eg,panel:tg,content:ng},og=()=>b.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{width:"100%",height:"100%"},children:b.jsx("polyline",{points:"6 9 12 15 18 9"})}),Ea=Y.createContext(null),Bd=Y.forwardRef(function({variant:t="default",overStyled:n=!1,value:o,defaultValue:s,onChange:i,multiple:a=!1,chevron:l,children:c,...u},d){const m=me(u,n),h=m.className,f=[fn.root,h].filter(Boolean).join(" ")||void 0,[g,p]=Y.useState(s!==void 0?s:a?[]:null),y=o!==void 0?o:g,x=I=>{let w;if(a){const S=Array.isArray(y)?y:y?[y]:[];w=S.includes(I)?S.filter(E=>E!==I):[...S,I]}else w=y===I?null:I;p(w),i==null||i(w)};return b.jsx(Ea.Provider,{value:{value:y,onChange:x,chevron:l},children:b.jsx("div",{ref:d,...m,className:f,"data-variant":t,children:c})})});Bd.displayName="Accordion";const _a=Y.forwardRef(function({title:t,leftIcon:n,divider:o=!0,children:s,value:i,disabled:a=!1,overStyled:l=!1,style:c,...u},d){const m=me(u,l),h=m.className,f=[fn.item,o?void 0:fn.noDivider,h].filter(Boolean).join(" ")||void 0,g=Y.useContext(Ea),p=g?Array.isArray(g.value)?g.value.includes(i):g.value===i:void 0,y=()=>{g==null||g.onChange(i)},x={backgroundColor:"transparent",...c};return b.jsx(pe.Accordion,{ref:d,...m,className:f,disableGutters:!0,elevation:0,square:!0,expanded:p,onChange:y,disabled:a,"data-disabled":a||void 0,style:x,children:t?b.jsxs(b.Fragment,{children:[b.jsx(Hs,{leftIcon:n,children:t}),b.jsx(Ys,{children:s})]}):s})});_a.displayName="AccordionItem";const Hs=Y.forwardRef(function({leftIcon:t,children:n,overStyled:o=!1,...s},i){const a=me(s,o),l=a.className,c=[fn.control,l].filter(Boolean).join(" ")||void 0,u=Y.useContext(Ea),d=(u==null?void 0:u.chevron)??b.jsx(og,{});return b.jsxs(pe.AccordionSummary,{ref:i,...a,className:c,expandIcon:b.jsx("span",{className:fn.chevron,children:d}),children:[t&&b.jsx("span",{className:fn.iconLeftWrapper,"aria-hidden":!0,children:t}),b.jsx("div",{className:fn.label,children:n})]})});Hs.displayName="AccordionControl";const Ys=Y.forwardRef(function({overStyled:t=!1,children:n,...o},s){const i=me(o,t),a=i.className,l=[fn.panel,a].filter(Boolean).join(" ")||void 0;return b.jsx(pe.AccordionDetails,{ref:s,...i,className:l,children:b.jsx("div",{className:fn.content,children:n})})});Ys.displayName="AccordionPanel";const Gs=Bd;Gs.Item=_a;Gs.Control=Hs;Gs.Panel=Ys;const rg="AssistiveElement-module__root___WhQ43",sg="AssistiveElement-module__text___vrHAg",ig="AssistiveElement-module__icon___Q-CVz",ns={root:rg,text:sg,icon:ig},bn=Y.forwardRef(function(t,n){const{assistiveVariant:o="help",assistiveWithIcon:s=!0,overStyled:i=!1,className:a,children:l,role:c,...u}=t,d=me(u,i),m=()=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("circle",{cx:"12",cy:"12",r:"10"}),b.jsx("path",{d:"M12 16v-4"}),b.jsx("path",{d:"M12 8h.01"})]}),h=()=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"}),b.jsx("path",{d:"M12 9v4"}),b.jsx("path",{d:"M12 17h.01"})]}),f=o==="error",g=c??(f?"alert":void 0);return b.jsxs(pe.FormHelperText,{ref:n,...d,component:"div",error:f,role:g,"data-variant":o,className:a?`${ns.root} ${a}`:ns.root,children:[s&&b.jsx("div",{className:ns.icon,children:o==="error"?b.jsx(h,{}):b.jsx(m,{})}),b.jsx("div",{className:ns.text,children:l})]})});bn.displayName="AssistiveElement";const ag="Label-module__root___e6HXZ",lg="Label-module__innerLayout___Xxapo",cg="Label-module__text___OGeEw",ug="Label-module__required___Ggrzc",dg="Label-module__endNodes___es7ew",pg="Label-module__optionalText___Y2yun",fg="Label-module__actionArea___O-f1X",mg="Label-module__editIcon___9hO1G",Xt={root:ag,innerLayout:lg,text:cg,required:ug,endNodes:dg,optionalText:pg,actionArea:fg,editIcon:mg},Oa=Y.forwardRef(function(t,n){const{overStyled:o=!1,required:s=!1,labelOptionalText:i="",labelWithEditIcon:a=!1,onLabelEditClick:l,labelActionArea:c,children:u,className:d,...m}=t,h=me(m,o),f=()=>b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[b.jsx("path",{d:"M12 20h9"}),b.jsx("path",{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"})]});return b.jsx(pe.InputLabel,{ref:n,...h,shrink:!0,className:d?`${Xt.root} ${d}`:Xt.root,children:b.jsxs("div",{className:Xt.innerLayout,children:[b.jsxs("span",{className:Xt.textWrapper,children:[b.jsx("span",{className:Xt.text,children:u}),s&&b.jsx("span",{className:Xt.required,children:" *"})]}),b.jsxs("div",{className:Xt.endNodes,children:[c&&b.jsx("span",{className:Xt.actionArea,children:c}),a&&b.jsx("button",{type:"button",className:Xt.editIcon,onClick:l,"aria-label":"Edit label",children:b.jsx(f,{})})]}),!s&&i&&!c&&b.jsx("span",{className:Xt.optionalText,children:i===!0?"(optional)":i})]})})});Oa.displayName="Label";const hg="FormControlLayout-module__root___yNDhZ",gg="FormControlLayout-module__leftSection___GBM1r",bg="FormControlLayout-module__rightSection___bcL4v",nr={root:hg,leftSection:gg,rightSection:bg},yn=Y.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i="default",controlMaxWidth:a,controlMinWidth:l,leftSection:c,className:u,children:d,style:m,...h}=t,f=me(h,o);return b.jsxs("div",{ref:n,className:u?`${nr.root} ${u}`:nr.root,"data-form-layout":s,style:{...m,...a?{"--form-control-max-width":a}:{},...l?{"--form-control-min-width":l}:{}},...f,children:[s==="side-by-side"?b.jsx("div",{className:nr.leftSection,"data-label-size":i,children:c}):c&&b.jsx("div",{className:nr.leftSection,"data-label-size":i,children:c}),b.jsx("div",{className:nr.rightSection,children:d})]})});yn.displayName="FormControlLayout";const yg="FormControlWrapper-module__root___c-UHo",vg="FormControlWrapper-module__inputSection___HenXk",$i={root:yg,inputSection:vg},Jt=Y.forwardRef(function(t,n){const{overStyled:o=!1,label:s,assistiveText:i,description:a,helperText:l,assistiveWithIcon:c=!0,error:u,required:d,disabled:m,focused:h,id:f,formLayout:g="stacked",labelSize:p="default",labelOptionalText:y,labelWithEditIcon:x,onLabelEditClick:I,labelActionArea:w,controlMaxWidth:S,controlMinWidth:E,className:T,style:R,children:N,...L}=t,V=me(L,o),A=Y.useId(),v=f||`recursica-fc-${A}`,P=i||a||l,O=`${v}-label`,_=P?`${v}-assistive`:void 0,k=u?`${v}-error`:void 0,D=Y.Children.map(N,M=>{if(Y.isValidElement(M)){const z=M.props;return Y.cloneElement(M,{"aria-labelledby":O,..._&&!z["aria-describedby"]?{"aria-describedby":_}:{},...k&&!z["aria-errormessage"]?{"aria-errormessage":k}:{}})}return M});return b.jsx(pe.FormControl,{ref:n,error:!!u,required:d,disabled:m,focused:h,className:T?`${$i.root} ${T}`:$i.root,style:R,"data-error":u?"true":void 0,"data-disabled":m?"true":void 0,"data-focused":h?"true":void 0,...V,children:b.jsx(yn,{formLayout:g,labelSize:p,controlMaxWidth:S,controlMinWidth:E,leftSection:s&&b.jsx(Oa,{id:O,htmlFor:v,required:d,labelOptionalText:y,labelWithEditIcon:x,onLabelEditClick:I,labelActionArea:w,children:s}),children:b.jsxs("div",{className:$i.inputSection,children:[D,(P||u)&&b.jsx(bn,{id:u?k:_,assistiveVariant:u?"error":"help",assistiveWithIcon:c,children:u&&typeof u=="string"?u:P})]})})})});Jt.displayName="FormControlWrapper";const xg="ReadOnlyField-module__root___hKci7",Sg="ReadOnlyField-module__text___bPxk9",go={root:xg,text:Sg},ka=Y.forwardRef(function(t,n){const{value:o,type:s="text",readOnlyComponent:i,emptyValueComponent:a,className:l,...c}=t;if(a&&typeof a!="string"){const m=a;if(m.check&&m.check(o))return b.jsx(Jt,{ref:n,className:`${go.root} ${l||""}`,...c,children:b.jsx(m,{value:o})})}if(o==null||o===""||Array.isArray(o)&&o.length===0)return b.jsx(Jt,{ref:n,className:`${go.root} ${l||""}`,...c,children:b.jsx("p",{className:go.text,children:"N/A"})});if(i){const m=i;return b.jsx(Jt,{ref:n,className:`${go.root} ${l||""}`,...c,children:b.jsx(m,{value:o})})}let d=o;return s==="boolean"||s==="switch"?(d=o?"True":"False",s==="switch"&&(d=o?"On":"Off")):Array.isArray(o)?d=o.join(", "):d=String(o),b.jsx(Jt,{ref:n,className:`${go.root} ${l||""}`,...c,children:b.jsx("p",{className:go.text,children:d})})});ka.displayName="ReadOnlyField";const Yt=Y.forwardRef(function({readOnly:t,readOnlyComponent:n,readOnlyType:o="text",readOnlyValue:s,readOnlyNativeProps:i,emptyValueComponent:a,activeComponent:l,overStyled:c,onLabelEditClick:u,...d},m){if(t){if(n){const h=n;return b.jsx(Jt,{ref:m,...d,onLabelEditClick:u,overStyled:c,children:b.jsx(h,{...i})})}return b.jsx(ka,{ref:m,type:o,value:s,emptyValueComponent:a,onLabelEditClick:u,overStyled:c,...d})}return b.jsx(Jt,{ref:m,...d,onLabelEditClick:u,overStyled:c,children:l})});Yt.displayName="WithReadOnlyWrapper";const Cg="Autocomplete-module__layoutOverride___IIkyG",wg="Autocomplete-module__root___22Jqm",Tg="Autocomplete-module__input___MlbJR",Ig="Autocomplete-module__section___WRvD5",Eg="Autocomplete-module__dropdown___A9XVI",_g="Autocomplete-module__option___cZsvO",bt={layoutOverride:Cg,root:wg,input:Tg,section:Ig,dropdown:Eg,option:_g},zd=Y.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,withAsterisk:p,id:y,className:x,style:I,disabled:w,readOnly:S,readOnlyComponent:E,emptyValueComponent:T,value:R,defaultValue:N,data:L,leftSection:V,rightSection:A,placeholder:v,ListboxProps:P,...O}=t,k=me(O,o);delete k.size,delete k.variant,delete k.radius;const D={root:bt.root,inputRoot:bt.input,listbox:bt.dropdown,option:bt.option},M=k.classNames;if(M&&typeof M=="object"&&!Array.isArray(M)){const j=M;D.root=j.wrapper?`${bt.root} ${j.wrapper}`:bt.root,D.inputRoot=j.input?`${bt.input} ${j.input}`:bt.input,D.listbox=j.dropdown?`${bt.dropdown} ${j.dropdown}`:bt.dropdown,D.option=j.option?`${bt.option} ${j.option}`:bt.option}const z=x?`${bt.layoutOverride} ${x}`:bt.layoutOverride;return b.jsx(Yt,{className:z,style:I,controlMaxWidth:"var(--autocomplete-control-max-width)",controlMinWidth:"var(--autocomplete-control-min-width)",overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,id:y,disabled:w,readOnly:S,readOnlyComponent:E,emptyValueComponent:T,readOnlyType:"text",readOnlyValue:R!==void 0?R:N,readOnlyNativeProps:t,activeComponent:b.jsx(pe.Autocomplete,{ref:n,freeSolo:!0,disableClearable:!0,classes:D,disabled:w,value:R,defaultValue:N,forcePopupIcon:!1,"data-error":f?"true":void 0,"data-disabled":w?"true":void 0,"data-with-left-section":V?"true":void 0,"data-with-right-section":A?"true":void 0,ListboxProps:{...P,className:D.listbox},options:L||[],renderInput:j=>{const{InputProps:B,...W}=j;return b.jsx(pe.TextField,{...W,placeholder:v,variant:"standard",InputProps:{...B,startAdornment:V?b.jsx("span",{className:bt.section,"data-position":"left",children:V}):B.startAdornment,endAdornment:A?b.jsx("span",{className:bt.section,"data-position":"right",children:A}):B.endAdornment}})}})})});zd.displayName="Autocomplete";const Og="Avatar-module__root___fXu-J",kg="Avatar-module__iconWrapper___ojly2",Pg="Avatar-module__textWrapper___zp-jD",Rg="Avatar-module__image___ieqGp",Ng="Avatar-module__placeholder___IDW7-",Bt={root:Og,iconWrapper:kg,textWrapper:Pg,image:Rg,placeholder:Ng},Wd=Y.forwardRef(function({size:t="default",variant:n="solid",icon:o,children:s,src:i,overStyled:a=!1,...l},c){const u=me(l,a),d=u;let m="text";i?m="image":o&&(m="icon");const h={root:Bt.root,image:Bt.image,placeholder:Bt.placeholder},f=d.classNames;if(f&&typeof f=="object"&&!Array.isArray(f)){const p=f;h.root=p.root?`${Bt.root} ${p.root}`:Bt.root,h.image=p.image?`${Bt.image} ${p.image}`:Bt.image,h.placeholder=p.placeholder?`${Bt.placeholder} ${p.placeholder}`:Bt.placeholder}const g=d.className;return b.jsx(pe.Avatar,{ref:c,className:g,classes:h,variant:"circular",src:i,"data-variant":n,"data-size":t,"data-style":m,...u,children:o!=null?b.jsx("span",{className:Bt.iconWrapper,"aria-hidden":!0,children:o}):s!=null?b.jsx("span",{className:Bt.textWrapper,children:s}):void 0})});Wd.displayName="Avatar";const Mg=Wd,$g="Badge-module__root___5osNT",or={root:$g},Ud=Y.forwardRef(function({variant:t="primary-color",overStyled:n=!1,...o},s){const i=me(o,n),a={root:or.root},l=i.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const d=l;a.root=d.root?`${or.root} ${d.root}`:or.root}const c=i.className,u=c?`${or.root} ${c}`:or.root;return b.jsx(pe.Badge,{ref:s,variant:"standard","data-variant":t,...i,className:u,classes:a})});Ud.displayName="Badge";const Dg=Ud,Ag=Y.forwardRef(function(t,n){return b.jsx(pe.Box,{ref:n,...t})}),jg="Breadcrumb-module__root___x-9ln",Lg="Breadcrumb-module__separator___qrUX-",In={root:jg,separator:Lg},qd=Y.forwardRef(function({overStyled:t=!1,separator:n=">",...o},s){const i=me({separator:n,...o},t),a={root:In.root,separator:In.separator},l=i.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const d=l;a.root=d.root?`${In.root} ${d.root}`:In.root,a.separator=d.separator?`${In.separator} ${d.separator}`:In.separator}const c=i.className,u=c?`${In.root} ${c}`:In.root;return b.jsx(pe.Breadcrumbs,{ref:s,...i,className:u,classes:a})});qd.displayName="Breadcrumb";const Vg="Loader-module__root___6iYOP",fc={root:Vg},Pa=Y.forwardRef(function({variant:t="oval",size:n="default",overStyled:o=!1,...s},i){const l={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[n]||"default",c=me(s,o),u=c.className,d=u?`${fc.root} ${u}`:fc.root,m=()=>t==="bars"||t==="dots"?b.jsxs(b.Fragment,{children:[b.jsx("span",{}),b.jsx("span",{}),b.jsx("span",{})]}):null;return b.jsx("span",{ref:i,"data-variant":t,"data-size":l,...c,className:d,children:m()})});Pa.displayName="Loader";const Fg="Button-module__root___Q2R8-",Bg="Button-module__labelText___rFV5p",zg="Button-module__iconWrapper___uEKPa",rr={root:Fg,labelText:Bg,iconWrapper:zg};function Wg(e){return e==null||e===""?!1:typeof e=="string"?e.trim()!=="":!0}const zr=Y.forwardRef(function({variant:t="solid",size:n="default",icon:o,children:s,overStyled:i=!1,loaderVariant:a="oval",loaderSize:l,useRecursicaLoader:c=!0,...u},d){const m=me(u,i),h=m;delete h.color;const f=!!o||!!h.startIcon,g=!!h.endIcon,p=Wg(s),y=(f||g)&&!p;let x="label";y?x="icon-only":(f||g)&&(x="icon-label"),typeof process<"u"&&process.env.NODE_ENV!=="production"&&y&&!h["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const I=h.className,w=I?`${rr.root} ${I}`:rr.root;delete h.className;const S=l??(n==="small"?"small":"default");let E=h.loadingIndicator;return c&&(E=b.jsx(Pa,{variant:a,size:S})),b.jsx(pe.Button,{ref:d,disableRipple:!0,disableElevation:!0,className:w,loading:!!h.loading,loadingIndicator:E,fullWidth:!!h.fullWidth,startIcon:h.loading?b.jsx("span",{className:rr.iconWrapper,"aria-hidden":!0,children:E}):o!=null?b.jsx("span",{className:rr.iconWrapper,"aria-hidden":!0,children:o}):void 0,"data-variant":t,"data-size":n,"data-content":x,...h.loading?{"data-loading":"true"}:{},...m,disabled:!!h.disabled||!!h.loading,children:b.jsx("span",{className:rr.labelText,children:s})})});zr.displayName="Button";const Ug="Card-module__root___c9KvZ",qg="Card-module__header___PTXf2",Hg="Card-module__footer___Mu-JC",Yg="Card-module__section___BRT8H",Gg="Card-module__content___oFIQa",vn={root:Ug,header:qg,footer:Hg,section:Yg,content:Gg},Hd=Y.forwardRef(function({overStyled:t=!1,...n},o){const s=me(n,t);["flex","flexGrow","flexShrink","flexBasis","grow","h","height"].forEach(u=>{u in n&&!(u in s)&&(s[u]=n[u])});const a={root:vn.root},l=s.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const u=l;Object.keys(u).forEach(d=>{a[d]?a[d]=`${a[d]} ${u[d]}`:a[d]=u[d]})}const c=s.className;return b.jsx(pe.Card,{ref:o,...s,className:c,classes:a})});Hd.displayName="Card";const Yd=Y.forwardRef(function({overStyled:t=!1,...n},o){const s=me(n,t),i=s.className;return b.jsx("div",{ref:o,...s,className:i?`${vn.section} ${i}`:vn.section})});Yd.displayName="CardSection";const Gd=Y.forwardRef(function({overStyled:t=!1,...n},o){const s=me(n,t),i=s.className;return b.jsx("div",{ref:o,...s,className:i?`${vn.header} ${i}`:vn.header})});Gd.displayName="CardHeader";const Kd=Y.forwardRef(function({overStyled:t=!1,...n},o){const s=me(n,t),i=s.className;return b.jsx("div",{ref:o,...s,className:i?`${vn.footer} ${i}`:vn.footer})});Kd.displayName="CardFooter";const Xd=Y.forwardRef(function({overStyled:t=!1,...n},o){const s=me(n,t),i=s.className;return b.jsx("div",{ref:o,...s,className:i?`${vn.content} ${i}`:vn.content})});Xd.displayName="CardContent";const Qd=Hd,Ks=Qd;Ks.Section=Yd;Ks.Header=Gd;Ks.Footer=Kd;Ks.Content=Xd;const Kg=Qd,Xg="Checkbox-module__groupRoot___cBS0o",Qg="Checkbox-module__root___mY3qk",Zg="Checkbox-module__body___5yC7q",Jg="Checkbox-module__inner___rTke4",eb="Checkbox-module__input___2kt-h",tb="Checkbox-module__inputChecked___zaCIH",nb="Checkbox-module__inputIndeterminate___CVPhn",ob="Checkbox-module__disabled___x7-eg",rb="Checkbox-module__icon___-O7i6",sb="Checkbox-module__labelWrapper___GpZkr",ib="Checkbox-module__label___cwRtI",Ke={groupRoot:Xg,root:Qg,body:Zg,inner:Jg,input:eb,inputChecked:tb,inputIndeterminate:nb,disabled:ob,icon:rb,labelWrapper:sb,label:ib},Zd=Y.createContext(null),Ra=Y.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:h,assistiveWithIcon:f,error:g,required:p,id:y,className:x,style:I,children:w,readOnly:S,readOnlyComponent:E,emptyValueComponent:T,value:R,defaultValue:N,onChange:L,row:V,...A}=t,v=me(A,o),P=v;delete P.size;const O=(_,k)=>{L&&L(k)};return b.jsx(Yt,{className:x,style:I,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:h,assistiveWithIcon:f,error:g,required:p,id:y,readOnly:S&&!!E,readOnlyComponent:E,emptyValueComponent:T,readOnlyType:"text",readOnlyValue:R!==void 0?R:N,readOnlyNativeProps:t,activeComponent:b.jsx(Zd.Provider,{value:{value:R!==void 0?R:N,onChange:O,name:P.name,readOnly:S||!!P.disabled},children:b.jsx(pe.FormGroup,{ref:n,row:V,...v,className:`${Ke.groupRoot} ${v.className||""}`.trim(),"data-layout":s,children:w})})})});Ra.displayName="CheckboxGroup";const Na=Y.forwardRef(function(t,n){const{overStyled:o=!1,readOnly:s,readOnlyComponent:i,disabled:a,formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,label:m,description:h,error:f,style:g,...p}=t,y=me(p,o),x=y;delete x.size,delete x.color;const I={root:Ke.root,checked:Ke.checked,disabled:Ke.disabled},w=x.classes;if(w&&typeof w=="object"&&!Array.isArray(w)){const _=w;I.root=_.root?`${Ke.root} ${_.root}`:Ke.root,I.checked=_.checked?`${Ke.checked} ${_.checked}`:Ke.checked,I.disabled=_.disabled?`${Ke.disabled} ${_.disabled}`:Ke.disabled}const S=x.className,E=S?`${Ke.root} ${S}`:Ke.root,T=Y.useContext(Zd),R=T!==null,N=R?T.readOnly:!1,L=R?(T.value||[]).includes(x.value):!!(x.checked??x.defaultChecked),V=R||x.checked!==void 0;if(s&&i){const _=i,k=b.jsx(_,{...t,checked:L,label:m});return l?b.jsx(yn,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:k}):b.jsx(b.Fragment,{children:k})}const A=_=>{if(R){const k=_.target.checked?[...T.value||[],x.value]:(T.value||[]).filter(D=>D!==x.value);T.onChange&&T.onChange(_,k)}else x.onChange&&x.onChange(_,_.target.checked)},v=_=>b.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",..._,children:b.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}),P=b.jsx(pe.Checkbox,{ref:n,className:m?Ke.inner:`${E} ${Ke.inner}`,classes:I,disabled:s||a||N,...y,...V?{checked:L}:{},onChange:A,disableRipple:!0,sx:m?{padding:0}:void 0,icon:b.jsx("div",{className:Ke.input}),checkedIcon:b.jsx("div",{className:`${Ke.input} ${Ke.inputChecked}`,children:b.jsx(v,{className:Ke.icon})}),indeterminateIcon:b.jsx("div",{className:`${Ke.input} ${Ke.inputIndeterminate}`,children:b.jsx("svg",{className:Ke.icon,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",children:b.jsx("rect",{x:"6",y:"14",width:"20",height:"4",fill:"currentColor"})})})}),O=m?b.jsx("div",{className:E,style:g,children:b.jsxs("div",{className:Ke.body,children:[P,b.jsxs("div",{className:Ke.labelWrapper,children:[b.jsx("label",{className:Ke.label,htmlFor:x.id,"data-disabled":s||a||N?!0:void 0,children:m}),f?b.jsx(bn,{assistiveVariant:"error",assistiveWithIcon:!1,children:f}):h&&b.jsx(bn,{assistiveVariant:"help",assistiveWithIcon:!1,children:h})]})]})}):b.jsx("div",{className:E,style:g,children:P});return l?b.jsx(yn,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:O}):O});Na.displayName="Checkbox";Na.Group=Ra;const ab="Chip-module__root___f5pFk",lb="Chip-module__label___Ov9pg",cb="Chip-module__checkIconWrapper___1OtE-",ub="Chip-module__innerWrapper___EnrTF",db="Chip-module__children___zbRAR",pb="Chip-module__leadingIcon___JBtjQ",fb="Chip-module__removeIconWrapper___VOO7u",xt={root:ab,label:lb,checkIconWrapper:cb,innerWrapper:ub,children:db,leadingIcon:pb,removeIconWrapper:fb};function mb(e){return b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[b.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),b.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function hb(e){return b.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:b.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}const kr=Y.forwardRef(function({error:t=!1,icon:n,onRemove:o,removeLabel:s="Remove",removeTabIndex:i,removeIconRef:a,children:l,checked:c,overStyled:u=!1,...d},m){const h=me(d,u),f=h,g={root:xt.root,label:xt.label,icon:xt.leadingIcon,deleteIcon:xt.removeIconWrapper},p=f.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const T=p;g.root=T.root?`${xt.root} ${T.root}`:xt.root,g.label=T.label?`${xt.label} ${T.label}`:xt.label}const y=f.className,x=y?`${xt.root} ${y}`:xt.root,I=t?"":void 0,w=c?"":void 0,S=!l&&(!!n||!!o),E=o!==void 0||f.onClick!==void 0||f.onChange!==void 0;return b.jsx(pe.Chip,{ref:m,className:x,classes:g,...I!==void 0?{"data-error":""}:{},...w!==void 0?{"data-checked":""}:{},...S?{"data-icon-only":""}:{},...E?{"data-interactive":""}:{},...h,icon:c?b.jsx("span",{className:xt.checkIconWrapper,"aria-hidden":!0,children:b.jsx(hb,{})}):n?b.jsx("span",{className:xt.leadingIcon,"aria-hidden":!0,children:n}):void 0,onDelete:o,deleteIcon:o?b.jsx("span",{ref:a,role:"button",className:xt.removeIconWrapper,"aria-label":s,tabIndex:i??0,onKeyDown:T=>{(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),T.stopPropagation(),o(T))},children:b.jsx(mb,{})}):void 0,label:b.jsx("span",{className:xt.innerWrapper,children:b.jsx("span",{className:xt.children,children:l})})})});kr.displayName="Chip";const Jd=Y.forwardRef(function({children:t,size:n,fluid:o,...s},i){const a={"rec-sm":"sm","rec-default":"md","rec-md":"md","rec-lg":"lg","rec-xl":"xl","rec-2xl":"xl"},l=o?!1:typeof n=="string"&&a[n]?a[n]:n;return b.jsx(pe.Container,{ref:i,maxWidth:l,...s,children:t})});Jd.displayName="Container";const gb=({disabled:e,label:t,assistiveText:n,error:o,required:s,withAsterisk:i,placeholder:a,value:l,defaultValue:c,onChange:u,readOnly:d,formLayout:m,leftSection:h,labelWithEditIcon:f,onLabelEditClick:g,...p})=>b.jsx("div",{...p,children:"DatePicker"}),bb="Dropdown-module__layoutOverride___FNcvP",yb="Dropdown-module__root___uVyL0",vb="Dropdown-module__input___dK4dN",xb="Dropdown-module__dropdown___gG-Sw",Sb="Dropdown-module__option___nAGU-",St={layoutOverride:bb,root:yb,input:vb,dropdown:xb,option:Sb},ep=Y.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",containerWidth:i,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:u,onLabelEditClick:d,label:m,assistiveText:h,assistiveWithIcon:f,error:g,required:p,withAsterisk:y,id:x,className:I,style:w,disabled:S,readOnly:E,readOnlyComponent:T,emptyValueComponent:R,value:N,defaultValue:L,data:V,searchable:A,clearable:v,...P}=t,O=me(P,o),_=O;delete _.size,delete _.variant;const k={...w||{},width:i||"100%"},D=I?`${St.layoutOverride} ${I}`:St.layoutOverride,M=()=>V?V.map((z,j)=>typeof z=="string"?b.jsx(pe.MenuItem,{value:z,className:St.option,"data-selected":z===(N??L)?"true":void 0,children:z},`${z}-${j}`):b.jsx(pe.MenuItem,{value:z.value,disabled:z.disabled,className:St.option,"data-selected":z.value===(N??L)?"true":void 0,children:z.label},`${z.value}-${j}`)):null;return b.jsx(Yt,{className:D,style:k,controlMaxWidth:"var(--dropdown-control-max-width)",controlMinWidth:"var(--dropdown-control-min-width)",overStyled:o,formLayout:s,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:u,onLabelEditClick:d,label:m,assistiveText:h,assistiveWithIcon:f,error:!!g,required:p,id:x,readOnly:E,readOnlyComponent:T,emptyValueComponent:R,readOnlyType:"text",readOnlyValue:N!==void 0?String(N):L?String(L):void 0,readOnlyNativeProps:t,activeComponent:b.jsx(pe.Select,{ref:n,disabled:S,value:N,defaultValue:L,error:!!g,required:p,displayEmpty:!0,className:St.root,classes:{select:St.input,icon:St.icon},MenuProps:{classes:{paper:St.dropdown}},"data-disabled":S?"true":void 0,"data-error":g?"true":void 0,inputProps:{"data-disabled":S?"true":void 0,"data-error":g?"true":void 0,..._.inputProps},...O,children:M()})})});ep.displayName="Dropdown";const Cb="FileInput-module__layoutOverride___HIOY6",wb="FileInput-module__root___UvQj-",Tb="FileInput-module__leadingIcon___z75c4",Ib="FileInput-module__content___Udsvh",Eb="FileInput-module__value___RX33R",_b="FileInput-module__chipRow___My6TF",Ob="FileInput-module__chipWrapper___q2CDy",kb="FileInput-module__trailingIcon___odGPm",an={layoutOverride:Cb,root:wb,leadingIcon:Tb,content:Ib,value:Eb,chipRow:_b,chipWrapper:Ob,trailingIcon:kb},Pb="_root_1qhn7_3",Rb="_contents_1qhn7_18",bo={root:Pb,contents:Rb},Ma=Y.forwardRef(function({layer:e,contentsOnly:t,children:n,className:o,style:s,...i},a){const l=t?o?`${bo.root} ${bo.contents} ${o}`:`${bo.root} ${bo.contents}`:o?`${bo.root} ${o}`:bo.root;return b.jsx("div",{ref:a,className:l,style:s,...t?{}:{"data-recursica-layer":String(e)},...i,children:n})});Ma.displayName="Layer";const $a=({emptyText:e="N/A"})=>b.jsx(Y.Fragment,{children:e});$a.displayName="EmptyValueRenderer";$a.check=e=>e==null||e===""||Array.isArray(e)&&e.length===0;const Nb={BASE_URL:"/",DEV:!1,MODE:"library",PROD:!0,SSR:!1,VITE_PLUGIN_MODE:"production",VITE_PLUGIN_PHRASE:"recursica_plugin_@K9mX7pQw2VbN8fRt3LzY6HjE4CuA5DsG1WvM9nP0XcB7",VITE_PLUGIN_PHRASE_TEST:"recursica_plugin_@19866374",VITE_RECURSICA_API_TEST:"https://dev-api.recursica.com",VITE_RECURSICA_API_URL:"https://api.recursica.com",VITE_RECURSICA_UI_URL:"https://api.recursica.com"},jn=(()=>{try{if(typeof process<"u"&&process.env&&process.env.NODE_ENV)return process.env.NODE_ENV!=="production"}catch{}try{if({url:typeof document>"u"?require("url").pathToFileURL(__filename).href:Mi&&Mi.tagName.toUpperCase()==="SCRIPT"&&Mi.src||new URL("mui-adapter.cjs",document.baseURI).href}&&Nb)return!0}catch{}if(typeof window<"u"){const e=window.location.hostname;return e==="localhost"||e==="127.0.0.1"||e.endsWith(".local")}return!1})(),ta=new Set;let Nn=!1;function tp(e){if(!jn)return console.warn("[Recursica] overStyled highlight is disabled in production builds."),!1;if(Nn=e!==void 0?e:!Nn,typeof document<"u"){const t=document.documentElement,n=Nn?"0 0 0 2px cyan":"none";t.style.setProperty("--recursica-over-styled-shadow",n),console.log(`[Recursica] Highlight outlines toggled: ${Nn?"ACTIVE (0 0 0 2px cyan)":"INACTIVE"}`)}else console.warn("[Recursica] document is undefined. Cannot set CSS property.");return ta.forEach(t=>t()),Nn}function Mb(){return jn&&Nn}function np(){const[e,t]=Y.useState(Nn);return Y.useEffect(()=>{if(!jn)return;Da(),Aa();const n=()=>t(Nn);return ta.add(n),()=>{ta.delete(n)}},[]),jn&&e}function Da(){if(!jn)return;if(typeof document>"u"){console.warn("[Recursica] document is undefined. Cannot inject overStyled styles.");return}const e="recursica-over-styled-styles";let t=document.getElementById(e);t||(t=document.createElement("style"),t.id=e,t.textContent=`
2
- :root {
3
- --recursica-over-styled-shadow: none;
4
- }
5
- .recursica-over-styled {
6
- display: contents !important;
7
- }
8
- .recursica-over-styled > * {
9
- box-shadow: var(--recursica-over-styled-shadow) !important;
10
- }
11
- `,document.head.appendChild(t))}function Aa(){if(!jn)return;if(typeof window>"u"){console.warn("[Recursica] window is undefined. Cannot register console command.");return}const e=t=>{try{t.recursica=t.recursica||{},t.recursica.toggleOverStyled=()=>`[Recursica] Overstyled outline highlight is now: ${tp()?"ON (cyan 2px box shadow)":"OFF"}`}catch{}};e(window),window.parent&&window.parent!==window&&e(window.parent)}const mc="data-recursica-theme";function $b({children:e,theme:t="light",initLayer0:n=!0}){return Y.useEffect(()=>{const o=document.documentElement;return o.setAttribute(mc,t),()=>{o.removeAttribute(mc)}},[t]),Y.useEffect(()=>{Da(),Aa()},[]),n?b.jsx(Ma,{layer:0,children:e}):b.jsx(b.Fragment,{children:e})}const Db=["Accordion","AssistiveElement","Autocomplete","Avatar","Badge","Breadcrumb","Button","Card","Checkbox","Chip","Container","DatePicker","Dropdown","EmptyValueRenderer","FileInput","Flex","FormControlLayout","FormControlWrapper","Grid","Group","HoverCard","Label","Layer","Link","Loader","Menu","Modal","NumberInput","Pagination","Panel","Popover","Radio","ReadOnlyField","SegmentedControl","Slider","Stack","Stepper","Switch","Table","Tabs","Text","TextArea","TextField","TimePicker","Timeline","Title","Toast","Tooltip","TransferList"],Ab=(e,t)=>{const n=document.activeElement;return new Promise((o,s)=>{if(t&&t.current){const i=document.createElement("textarea");i.readOnly=!0,i.defaultValue=e,t.current.appendChild(i),i.select();const a=document.execCommand("copy");t.current.removeChild(i),n&&n.focus(),a?o():s(new Error("Failed to copy"))}else s(new Error("Copy area reference is not defined"))})};function ja(e,t){const n=(t??"").split(",").map(i=>i.trim().toLowerCase()).filter(Boolean);if(n.length===0)return!0;const o=e.name.toLowerCase(),s=e.type.toLowerCase();return n.some(i=>i.startsWith(".")?o.endsWith(i):i.endsWith("/*")?s.startsWith(i.slice(0,-1)):s===i)}function ye(e){if(!jn||typeof e!="function"&&!(e&&e.$$typeof))return e;const t=Y.forwardRef((o,s)=>{const{overStyled:i}=o,a=np(),l=Y.createElement(e,{...o,ref:s});return i&&a?b.jsx("div",{className:"recursica-over-styled",children:l}):l});t.displayName=e.displayName||e.name||"Component";const n=Object.keys(e);for(const o of n){if(o==="render"||o==="$$typeof")continue;const s=e[o];(typeof s=="function"||s&&s.$$typeof)&&o[0]===o[0].toUpperCase()?t[o]=ye(s):t[o]=s}return t}function jb(){return b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[b.jsx("path",{d:"M12 3v12"}),b.jsx("path",{d:"M7 8l5-5 5 5"}),b.jsx("path",{d:"M4 21h16"})]})}function Lb(){return b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[b.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),b.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const op=Y.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:d,label:m,assistiveText:h,assistiveWithIcon:f,error:g,required:p,withAsterisk:y,id:x,className:I,style:w,disabled:S,readOnly:E,files:T,onFilesAdded:R,onFileRemove:N,accept:L,multiple:V=!1,maxSize:A,maxFiles:v,onFilesRejected:P,invalidFileTypeMessage:O="File type not accepted",maxFilesMessage:_=V?`Maximum of ${v} files allowed`:"Only one file is allowed",icon:k,placeholder:D="Select a file...",browseLabel:M="Choose file",removeFileLabel:z="Remove",clearLabel:j="Clear",...B}=t,X=me(B,o),Q=!S&&!E,G=!!T&&T.length>0,Z=Y.useRef(null),[te,H]=Y.useState(!1),[F,U]=Y.useState(!1),ae=Se=>{if(!Q)return;const ot=Array.from(Se);if(ot.length===0)return;const rt=V?v:1,ht=V?(T==null?void 0:T.length)??0:0,sn=[],gt=[];let er=!1,fo=!1;for(const mo of ot){const tr=!ja(mo,L);tr&&(er=!0);const ts=A!==void 0&&mo.size>A,ho=rt!==void 0&&ht+sn.length>=rt;ho&&(fo=!0),(tr||ts||ho?gt:sn).push(mo)}H(er),U(fo),sn.length>0&&(R==null||R(sn)),gt.length>0&&(P==null||P(gt))},K=Y.useRef(0),[ce,oe]=Y.useState(!1),be=Se=>{Se.preventDefault(),K.current+=1,oe(!0)},he=Se=>{Se.preventDefault(),K.current-=1,K.current<=0&&(K.current=0,oe(!1))},re=Se=>{Se.preventDefault()},J=Se=>{Se.preventDefault(),K.current=0,oe(!1),ae(Se.dataTransfer.files)},ge=()=>{var Se;Q&&((Se=Z.current)==null||Se.click())},ie=Se=>{Se.key!=="Enter"&&Se.key!==" "||(Se.preventDefault(),ge())},fe=Se=>{Se.target.files&&ae(Se.target.files),Se.target.value=""},se=()=>{!Q||!T||T.length===0||T.forEach(Se=>N==null?void 0:N(Se.id??Se.file.name))},[Te,ke]=Y.useState(0),ve=Y.useRef([]),we=Y.useRef((T==null?void 0:T.length)??0);Y.useEffect(()=>{var ot;const Se=(T==null?void 0:T.length)??0;if(Se>0&&Se<we.current){const rt=Math.min(Te,Se-1);ke(rt),(ot=ve.current[rt])==null||ot.focus()}we.current=Se},[T]);const Ne=Se=>{var ht;const ot=(T==null?void 0:T.length)??0;if(ot===0)return;let rt;Se.key==="ArrowRight"||Se.key==="ArrowDown"?rt=(Te+1)%ot:(Se.key==="ArrowLeft"||Se.key==="ArrowUp")&&(rt=(Te-1+ot)%ot),rt!==void 0&&(Se.preventDefault(),Se.stopPropagation(),ke(rt),(ht=ve.current[rt])==null||ht.focus())},Qe=g??(te?O:F?_:void 0),Kt=I?`${an.layoutOverride} ${I}`:an.layoutOverride;return b.jsx(Jt,{overStyled:o,className:Kt,style:w,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:d,label:m,assistiveText:h,assistiveWithIcon:f,error:Qe,required:p,disabled:S,id:x,controlMaxWidth:"var(--file-input-control-max-width)",controlMinWidth:"var(--file-input-control-min-width)",children:b.jsxs("div",{ref:n,className:an.root,role:"button","aria-label":M,"aria-disabled":S?"true":void 0,tabIndex:Q?0:-1,"data-disabled":S?"true":void 0,"data-readonly":E?"true":void 0,"data-error":Qe?"true":void 0,"data-dragging":ce?"true":void 0,onClick:Q?ge:void 0,onKeyDown:Q?ie:void 0,onDragEnter:Q?be:void 0,onDragLeave:Q?he:void 0,onDragOver:Q?re:void 0,onDrop:Q?J:void 0,...X,children:[b.jsx("span",{className:an.leadingIcon,"aria-hidden":!0,children:k??b.jsx(jb,{})}),b.jsxs("div",{className:an.content,children:[!G&&b.jsx("span",{className:an.value,"data-placeholder":"true",children:D}),G&&b.jsx("div",{className:an.chipRow,onKeyDown:E?void 0:Ne,children:T.map((Se,ot)=>{const rt=Se.id??Se.file.name;return b.jsx("span",{className:an.chipWrapper,onClick:ht=>ht.stopPropagation(),children:b.jsx(kr,{tabIndex:-1,removeLabel:E?void 0:z,removeTabIndex:!E&&ot===Te?0:-1,removeIconRef:ht=>{ve.current[ot]=ht},onRemove:E||S?void 0:()=>N==null?void 0:N(rt),children:Se.file.name})},rt)})})]}),G&&!E&&b.jsx(zr,{overStyled:!0,variant:"text",size:"small",icon:b.jsx(Lb,{}),"aria-label":j,className:an.trailingIcon,disabled:S,onClick:Se=>{Se.preventDefault(),Se.stopPropagation(),se()}}),b.jsx("input",{ref:Z,type:"file",hidden:!0,accept:L,multiple:V,disabled:!Q,onChange:fe})]})})});op.displayName="FileInput";const Vb="FileUpload-module__layoutOverride___bPpi8",Fb="FileUpload-module__root___Q-vcm",Bb="FileUpload-module__dropzone___jqua0",zb="FileUpload-module__uploadIcon___bb3Nc",Wb="FileUpload-module__dropzoneText___L7vS-",Ub="FileUpload-module__fileList___XIWLl",En={layoutOverride:Vb,root:Fb,dropzone:Bb,uploadIcon:zb,dropzoneText:Wb,fileList:Ub};function qb(){return b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[b.jsx("path",{d:"M12 3v12"}),b.jsx("path",{d:"M7 8l5-5 5 5"}),b.jsx("path",{d:"M4 21h16"})]})}const rp=Y.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:d,label:m,assistiveText:h,assistiveWithIcon:f,error:g,required:p,withAsterisk:y,id:x,className:I,style:w,disabled:S,readOnly:E,files:T,onFilesAdded:R,onFileRemove:N,accept:L,multiple:V=!0,maxSize:A,maxFiles:v,onFilesRejected:P,invalidFileTypeMessage:O="File type not accepted",maxFilesMessage:_=`Maximum of ${v} files allowed`,icon:k,dropzoneLabel:D="Drag and drop files here to upload",browseButtonLabel:M="Browse files",removeFileLabel:z="Remove",...j}=t,W=me(j,o),X=Y.useRef(null),[Q,G]=Y.useState(!1),[Z,te]=Y.useState(!1),H=ve=>{if(S)return;const we=Array.from(ve);if(we.length===0)return;const Ne=(T==null?void 0:T.length)??0,Qe=[],Kt=[];let Se=!1,ot=!1;for(const rt of we){const ht=!ja(rt,L);ht&&(Se=!0);const sn=A!==void 0&&rt.size>A,gt=v!==void 0&&Ne+Qe.length>=v;gt&&(ot=!0),(ht||sn||gt?Kt:Qe).push(rt)}G(Se),te(ot),Qe.length>0&&(R==null||R(Qe)),Kt.length>0&&(P==null||P(Kt))},F=Y.useRef(0),[U,ae]=Y.useState(!1),K=ve=>{ve.preventDefault(),F.current+=1,ae(!0)},ce=ve=>{ve.preventDefault(),F.current-=1,F.current<=0&&(F.current=0,ae(!1))},oe=ve=>{ve.preventDefault()},be=ve=>{ve.preventDefault(),F.current=0,ae(!1),H(ve.dataTransfer.files)},he=()=>{var ve;S||(ve=X.current)==null||ve.click()},re=ve=>{ve.target.files&&H(ve.target.files),ve.target.value=""},[J,ge]=Y.useState(0),ie=Y.useRef([]),fe=Y.useRef((T==null?void 0:T.length)??0);Y.useEffect(()=>{var we;const ve=(T==null?void 0:T.length)??0;if(ve>0&&ve<fe.current){const Ne=Math.min(J,ve-1);ge(Ne),(we=ie.current[Ne])==null||we.focus()}fe.current=ve},[T]);const se=ve=>{var Qe;const we=(T==null?void 0:T.length)??0;if(we===0)return;let Ne;ve.key==="ArrowRight"||ve.key==="ArrowDown"?Ne=(J+1)%we:(ve.key==="ArrowLeft"||ve.key==="ArrowUp")&&(Ne=(J-1+we)%we),Ne!==void 0&&(ve.preventDefault(),ge(Ne),(Qe=ie.current[Ne])==null||Qe.focus())},Te=g??(Q?O:Z?_:void 0),ke=I?`${En.layoutOverride} ${I}`:En.layoutOverride;return b.jsx(Jt,{overStyled:o,className:ke,style:w,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:d,label:m,assistiveText:h,assistiveWithIcon:f,error:Te,required:p,disabled:S,id:x,children:b.jsxs("div",{ref:n,className:En.root,"data-disabled":S?"true":void 0,"data-error":Te?"true":void 0,...W,children:[!E&&b.jsxs("div",{className:En.dropzone,"data-dragging":U?"true":void 0,onDragEnter:S?void 0:K,onDragLeave:S?void 0:ce,onDragOver:S?void 0:oe,onDrop:S?void 0:be,children:[b.jsx("span",{className:En.uploadIcon,children:k??b.jsx(qb,{})}),b.jsx("span",{className:En.dropzoneText,children:D}),b.jsx(zr,{variant:"outline",disabled:S,onClick:he,children:M}),b.jsx("input",{ref:X,type:"file",hidden:!0,accept:L,multiple:V,disabled:S,onChange:re})]}),T&&T.length>0&&(E?b.jsx("div",{className:En.fileList,children:T.map(ve=>{const we=ve.id??ve.file.name;return b.jsx(kr,{tabIndex:-1,children:ve.file.name},we)})}):b.jsx("div",{className:En.fileList,onKeyDown:se,children:T.map((ve,we)=>{const Ne=ve.id??ve.file.name;return b.jsx(kr,{tabIndex:-1,removeLabel:z,removeTabIndex:we===J?0:-1,removeIconRef:Qe=>{ie.current[we]=Qe},onRemove:S?void 0:()=>N==null?void 0:N(Ne),children:ve.file.name},Ne)})}))]})})});rp.displayName="FileUpload";const sp=Y.forwardRef(function({children:t,gap:n="rec-default",rowGap:o,columnGap:s,direction:i,align:a,justify:l,wrap:c,...u},d){const m=Br(u),h=typeof n=="string"&&n in ft?ft[n]:n,f=typeof o=="string"&&o in ft?ft[o]:o,g=typeof s=="string"&&s in ft?ft[s]:s;return b.jsx(pe.Box,{ref:d,...m,display:"flex",gap:h,rowGap:f,columnGap:g,flexDirection:i,alignItems:a,justifyContent:l,flexWrap:c,children:t})});sp.displayName="Flex";const Hb="Grid-module__root___s-qPY",Yb="Grid-module__col___tbuNg",Gb="Grid-module__hiddenFromXs___Ap3ch",Kb="Grid-module__hiddenFromSm___ZD0Wm",Xb="Grid-module__hiddenFromMd___O3Zhg",Qb="Grid-module__hiddenFromLg___RxDrc",Zb="Grid-module__hiddenFromXl___k7ytz",Jb="Grid-module__visibleFromSm___w20SX",ey="Grid-module__visibleFromMd___ePFrO",ty="Grid-module__visibleFromLg___L6vtD",ny="Grid-module__visibleFromXl___HLWTL",qt={root:Hb,col:Yb,hiddenFromXs:Gb,hiddenFromSm:Kb,hiddenFromMd:Xb,hiddenFromLg:Qb,hiddenFromXl:Zb,visibleFromSm:Jb,visibleFromMd:ey,visibleFromLg:ty,visibleFromXl:ny},ip=Y.createContext({grow:!1});function La(e){if(e===void 0||typeof e!="object")return e;const{base:t,...n}=e;return t!==void 0?{xs:t,...n}:n}function hc(e){return e==="auto"?"grow":e==="content"?"auto":e}function oy(e){const t=La(e);if(t===void 0||typeof t!="object")return hc(t);const n={};return Object.entries(t).forEach(([o,s])=>{n[o]=hc(s)}),n}function ry(e){return La(e)}function sy(e){if(e===void 0||typeof e=="number")return e;const t=La(e);return t.xs??t.sm??t.md??t.lg??t.xl}const iy={xs:qt.hiddenFromXs,sm:qt.hiddenFromSm,md:qt.hiddenFromMd,lg:qt.hiddenFromLg,xl:qt.hiddenFromXl},ay={sm:qt.visibleFromSm,md:qt.visibleFromMd,lg:qt.visibleFromLg,xl:qt.visibleFromXl};function gc(e){return e==="base"?"xs":e}const ap=Y.forwardRef(function({children:t,gap:n="rec-default",columns:o=12,grow:s=!1,justify:i,align:a,style:l,...c},u){const d=Br(c),m=typeof n=="string"&&n in ft?ft[n]:n;return b.jsx(ip.Provider,{value:{grow:s},children:b.jsx(pe.Grid,{ref:u,...d,container:!0,columns:o,spacing:m,className:qt.root,style:{justifyContent:i,alignItems:a,...l},children:t})})});ap.displayName="Grid";const Va=Y.forwardRef(function({children:t,span:n,offset:o,order:s,visibleFrom:i,hiddenFrom:a,style:l,className:c,...u},d){const{grow:m}=Y.useContext(ip),h=Br(u),f=sy(s),g=i?ay[gc(i)]:a?iy[gc(a)]:void 0,p=[qt.col,g,c].filter(Boolean).join(" ");return b.jsx(pe.Grid,{ref:d,size:oy(n),offset:ry(o),className:p,...h,style:{order:f,...m?{flexGrow:1}:{},...l},children:t})});Va.displayName="GridCol";const lp=ap;lp.Col=Va;const cp=Y.forwardRef(function({children:t,gap:n="rec-default",rowGap:o,columnGap:s,justify:i,align:a,wrap:l,...c},u){const d=Br(c),m=typeof n=="string"&&n in ft?ft[n]:n,h=typeof o=="string"&&o in ft?ft[o]:o,f=typeof s=="string"&&s in ft?ft[s]:s;return b.jsx(pe.Stack,{ref:u,...d,direction:"row",flexWrap:l||"wrap",justifyContent:i,alignItems:a,spacing:m,sx:{...h?{rowGap:h}:{},...f?{columnGap:f}:{}},children:t})});cp.displayName="Group";const ly="HoverCard-module__dropdown___FBPFW",cy="HoverCard-module__arrow___S9AkE",bc={dropdown:ly,arrow:cy},up=function({overStyled:t=!1,withBeak:n=!0,position:o="top",openDelay:s=0,closeDelay:i=150,disabled:a=!1,offset:l=5,children:c,...u}){const d=me(u,t),m={tooltip:bc.dropdown,arrow:bc.arrow},h=d.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const p=h;Object.keys(p).forEach(y=>{m[y]?m[y]=`${m[y]} ${p[y]}`:m[y]=p[y]})}let f=null,g=null;return Y.Children.forEach(c,p=>{var y,x;if(Y.isValidElement(p)){const I=p;((y=I.type)==null?void 0:y.displayName)==="HoverCardTarget"?f=I.props.children:((x=I.type)==null?void 0:x.displayName)==="HoverCardDropdown"&&(g=I.props.children)}}),f||(f=b.jsx("div",{})),g||(g=b.jsx("div",{})),b.jsx(pe.Tooltip,{...d,title:g,placement:o,arrow:n,enterDelay:s,leaveDelay:i,disableHoverListener:a,slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,l]}}]}},classes:m,children:Y.isValidElement(f)?f:b.jsx("span",{children:f})})};up.displayName="HoverCard";const dp=function({children:t}){return b.jsx(b.Fragment,{children:t})};dp.displayName="HoverCardTarget";const pp=function({children:t}){return b.jsx(b.Fragment,{children:t})};pp.displayName="HoverCardDropdown";const Fa=up;Fa.Target=dp;Fa.Dropdown=pp;const uy="Link-module__root___I0VGE",dy="Link-module__iconWrapper___W-LlF",py="Link-module__labelText___wSvUy",os={root:uy,iconWrapper:dy,labelText:py},fp=Y.forwardRef(function({icon:t,children:n,overStyled:o=!1,...s},i){const a=me(s,o),c=a.className,u=c?`${os.root} ${c}`:os.root;return b.jsxs(pe.Link,{ref:i,className:u,underline:"none",...t?{"data-has-icon":""}:{},...a,children:[t&&b.jsx("span",{className:os.iconWrapper,"aria-hidden":!0,children:t}),b.jsx("span",{className:os.labelText,children:n})]})});fp.displayName="Link";const fy="Menu-module__dropdown___j4xuA",my="Menu-module__item___NMXha",hy="Menu-module__divider___wPiNq",yr={dropdown:fy,item:my,divider:hy},mp=Y.forwardRef(function({overStyled:t=!1,className:n,...o},s){const i=me(o,t);return b.jsx(pe.Menu,{ref:s,...i,className:`${yr.dropdown} ${n||""}`,classes:{paper:yr.dropdown,list:yr.dropdown}})});mp.displayName="Menu";const hp=Y.forwardRef(function({overStyled:t=!1,className:n,...o},s){const i=me(o,t);return b.jsx(pe.MenuItem,{ref:s,className:`${yr.item} ${n||""}`,...i})});hp.displayName="MenuItem";const gp=Y.forwardRef(function({overStyled:t=!1,className:n,...o},s){const i=me(o,t);return b.jsx(pe.Divider,{ref:s,className:`${yr.divider} ${n||""}`,...i})});gp.displayName="MenuDivider";const gy="Modal-module__root___ytPLl",by="Modal-module__inner___SSUJE",yy="Modal-module__content___dWO-B",vy="Modal-module__header___ILG9i",xy="Modal-module__title___A5OeE",Sy="Modal-module__scrollArea___KD-hm",Cy="Modal-module__footer___rro2w",wy="Modal-module__close___-ER1C",pn={root:gy,inner:by,content:yy,header:vy,title:xy,scrollArea:Sy,footer:Cy,close:wy},Ty=()=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:b.jsx("path",{d:"M18 6L6 18M6 6l12 12"})}),bp=Y.forwardRef(function({overStyled:t=!1,opened:n=!1,withCloseButton:o=!0,title:s,children:i,onClose:a,className:l,...c},u){const d=me(c,t);let m=null;const h=[];return Y.Children.forEach(i,f=>{var g;Y.isValidElement(f)&&(f.type===za||((g=f.type)==null?void 0:g.displayName)==="Modal.Footer")?m=f:h.push(f)}),b.jsxs(pe.Dialog,{ref:u,...d,className:`${pn.root} ${l||""}`,classes:{paper:pn.inner},open:n||d.open||!1,onClose:a,children:[(s||o)&&b.jsxs("div",{className:pn.header,children:[s&&b.jsx("div",{className:pn.title,children:s}),o&&b.jsx(pe.IconButton,{onClick:f=>a==null?void 0:a(f,"backdropClick"),className:pn.close,children:b.jsx(Ty,{})})]}),b.jsx(Ba,{children:h}),m]})});bp.displayName="Modal";const yp=Y.forwardRef(function({overStyled:t=!1,className:n,...o},s){const i=me(o,t);return b.jsx(pe.DialogTitle,{ref:s,className:`${pn.title} ${n||""}`,...i})});yp.displayName="Modal.Title";const Ba=Y.forwardRef(function({overStyled:t=!1,className:n,children:o,...s},i){const a=me(s,t),l=Y.useRef(null),[c,u]=Y.useState(!1),[d,m]=Y.useState(!1),h=Y.useCallback(()=>{if(l.current){const{scrollTop:f,scrollHeight:g,clientHeight:p}=l.current;u(f>0),m(Math.ceil(f+p)<g)}},[]);return Y.useEffect(()=>(h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)),[h,o]),b.jsx(pe.DialogContent,{ref:f=>{typeof i=="function"?i(f):i&&(i.current=f),l&&(l.current=f)},onScroll:()=>h(),"data-scrolled-top":c||void 0,"data-scrolled-bottom":d||void 0,className:`${pn.content} ${pn.scrollArea} ${n||""}`,...a,children:o})});Ba.displayName="Modal.Body";const za=Y.forwardRef(function({overStyled:t=!1,className:n,...o},s){const i=me(o,t);return b.jsx(pe.DialogActions,{ref:s,className:`${pn.footer} ${n||""}`,...i})});za.displayName="Modal.Footer";const Xs=bp;Xs.Title=yp;Xs.Body=Ba;Xs.Footer=za;const Iy="NumberInput-module__layoutOverride___5-9T4",Ey="NumberInput-module__root___C6rAn",_y="NumberInput-module__input___Ss8p7",Oy="NumberInput-module__section___MijP0",ky="NumberInput-module__controls___8UfQ2",Py="NumberInput-module__control___Qre9-",Gn={layoutOverride:Iy,root:Ey,input:_y,section:Oy,controls:ky,control:Py},vp=Y.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,id:p,className:y,style:x,disabled:I,readOnly:w,readOnlyComponent:S,emptyValueComponent:E,value:T,defaultValue:R,leftSection:N,rightSection:L,min:V,max:A,step:v,hideControls:P=!1,...O}=t,_=me(O,o),k=_;delete k.size,delete k.variant,delete k.radius;const D={wrapper:Gn.root,input:Gn.input,section:Gn.section,controls:Gn.controls,control:Gn.control},M=y?`${Gn.layoutOverride} ${y}`:Gn.layoutOverride,z=N?b.jsx("div",{className:D.section,"data-position":"left",children:N}):void 0,j=L?b.jsx("div",{className:D.section,"data-position":"right",children:L}):void 0;return b.jsx(Yt,{className:M,style:x,controlMaxWidth:"var(--number-input-control-max-width)",controlMinWidth:"var(--number-input-control-min-width)",overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,id:p,readOnly:w,readOnlyComponent:S,emptyValueComponent:E,readOnlyType:"text",readOnlyValue:T!==void 0?T==null?void 0:T.toString():R==null?void 0:R.toString(),readOnlyNativeProps:t,activeComponent:b.jsx(pe.TextField,{ref:n,..._,classes:D,disabled:I,value:T,defaultValue:R,label:void 0,error:void 0,required:void 0,InputProps:{startAdornment:z,endAdornment:j},inputProps:{min:V,max:A,step:v,...k.inputProps}})})});vp.displayName="NumberInput";const Ry="Pagination-module__root___ITRjt",_n={root:Ry};function Ny(e){const t={root:_n.root,ul:_n.ul},n=e.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const i=n;t.root=i.root?`${_n.root} ${i.root}`:_n.root,t.ul=i.ul?`${_n.ul} ${i.ul}`:_n.ul}const o=e.className;return{className:o?`${_n.root} ${o}`:_n.root,classNames:t}}const xp=Y.forwardRef(function(t,n){const{overStyled:o=!1,withLabels:s,total:i,withEdges:a,withControls:l,...c}=t,u=me(c,o),d=Ny(u);return b.jsx("div",{ref:n,className:d.className,children:b.jsx(pe.Pagination,{...u,count:i,showFirstButton:a,showLastButton:a,hidePrevButton:l===!1?!0:void 0,hideNextButton:l===!1?!0:void 0,classes:d.classNames})})});xp.displayName="Pagination";const My=xp,$y="Panel-module__content___wdGo-",Dy="Panel-module__inner___ruA2b",Ay="Panel-module__header___o7SiC",jy="Panel-module__title___181OP",Ly="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP",Vy="Panel-module__body___SEC3T",Fy="Panel-module__footer___t6-hz",Pn={content:$y,inner:Dy,header:Ay,title:jy,titleTruncate:Ly,body:Vy,footer:Fy},Sp=function({overStyled:t=!1,placement:n="right",keepMounted:o=!0,wrapHeaderText:s=!1,opened:i,...a}){const l=me(a,t),c={content:Pn.content,header:Pn.header,title:s?Pn.titleTruncate:Pn.title,body:Pn.body,inner:Pn.inner},u=l.classNames;if(u&&typeof u=="object"&&!Array.isArray(u)){const d=u;Object.keys(d).forEach(m=>{c[m]?c[m]=`${c[m]} ${d[m]}`:c[m]=d[m]})}return b.jsx(pe.Drawer,{anchor:n,keepMounted:o,open:!!i,...l,classes:c})};Sp.displayName="Panel";const Wa=Y.forwardRef(function({overStyled:t=!1,...n},o){const s=me(n,t),i=s.className,a=i?`${Pn.footer} ${i}`:Pn.footer;return b.jsx("div",{ref:o,...s,className:a})});Wa.displayName="PanelFooter";const Cp=Sp;Cp.Footer=Wa;const By="Radio-module__groupRoot___bfUii",zy="Radio-module__root___kAjTD",Wy="Radio-module__body___q2Wpj",Uy="Radio-module__inner___QaTBB",qy="Radio-module__radio___MfgN-",Hy="Radio-module__radioChecked___ZFb28",Yy="Radio-module__disabled___0-cna",Gy="Radio-module__icon___DWznm",Ky="Radio-module__labelWrapper___dB0Gi",Xy="Radio-module__label___vAFIP",st={groupRoot:By,root:zy,body:Wy,inner:Uy,radio:qy,radioChecked:Hy,disabled:Yy,icon:Gy,labelWrapper:Ky,label:Xy},Ua=Y.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:h,assistiveWithIcon:f,error:g,required:p,id:y,className:x,style:I,children:w,readOnly:S,readOnlyComponent:E,emptyValueComponent:T,value:R,defaultValue:N,onChange:L,...V}=t,A=me(V,o),v=A;return delete v.size,b.jsx(Yt,{className:x,style:I,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:h,assistiveWithIcon:f,error:g,id:y,readOnly:S&&!!E,readOnlyComponent:E,emptyValueComponent:T,readOnlyType:"text",readOnlyValue:R!==void 0?R:N,readOnlyNativeProps:t,activeComponent:b.jsx(pe.RadioGroup,{ref:n,...A,value:R,defaultValue:N,onChange:L?(P,O)=>L(O):void 0,className:st.groupRoot,"data-layout":s,children:w})})});Ua.displayName="RadioGroup";const Qy=({className:e,style:t})=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:e,style:t,children:b.jsx("circle",{cx:"8",cy:"8",r:"5"})}),qa=Y.forwardRef(function(t,n){const{overStyled:o=!1,readOnly:s,readOnlyComponent:i,disabled:a,formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,label:m,description:h,error:f,style:g,...p}=t,y=me(p,o),x=y;delete x.size,delete x.color;const I={root:st.root,checked:st.checked,disabled:st.disabled},w=x.classes;if(w&&typeof w=="object"&&!Array.isArray(w)){const N=w;I.root=N.root?`${st.root} ${N.root}`:st.root,I.checked=N.checked?`${st.checked} ${N.checked}`:st.checked,I.disabled=N.disabled?`${st.disabled} ${N.disabled}`:st.disabled}const S=x.className,E=S?`${st.root} ${S}`:st.root;if(s&&i){const N=!!(x.checked??x.defaultChecked),L=i,V=b.jsx(L,{...t,checked:N,label:x.label});return l?b.jsx(yn,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:V}):b.jsx(b.Fragment,{children:V})}const T=b.jsx(pe.Radio,{ref:n,...y,icon:b.jsx("div",{className:st.radio}),checkedIcon:b.jsx("div",{className:`${st.radio} ${st.radioChecked}`,children:b.jsx(Qy,{className:st.icon})}),className:m?st.inner:`${E} ${st.inner}`,classes:I,disabled:s||a,disableRipple:!0,sx:m?{padding:0}:void 0}),R=m?b.jsx("div",{className:E,style:g,children:b.jsxs("div",{className:st.body,children:[T,b.jsxs("div",{className:st.labelWrapper,children:[b.jsx("label",{className:st.label,htmlFor:x.id,"data-disabled":s||a?!0:void 0,children:m}),f?b.jsx(bn,{assistiveVariant:"error",assistiveWithIcon:!1,children:f}):h&&b.jsx(bn,{assistiveVariant:"help",assistiveWithIcon:!1,children:h})]})]})}):b.jsx("div",{className:E,style:g,children:T});return l?b.jsx(yn,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:R}):R});qa.displayName="Radio";qa.Group=Ua;const Zy="SegmentedControl-module__root___JFRhg",Jy="SegmentedControl-module__label___mS17q",ev="SegmentedControl-module__control___znOdQ",zt={root:Zy,label:Jy,control:ev};function tv(e){const t={root:zt.root,control:zt.control,label:zt.label},n=e.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const i=n;t.root=i.root?`${zt.root} ${i.root}`:zt.root,t.control=i.control?`${zt.control} ${i.control}`:zt.control,t.label=i.label?`${zt.label} ${i.label}`:zt.label}const o=e.className;return{className:o?`${zt.root} ${o}`:zt.root,classNames:t}}const wp=Y.forwardRef(function({overStyled:t=!1,orientation:n="horizontal",fullWidth:o,data:s=[],value:i,onChange:a,...l},c){const u=me(l,t),d=u;delete d.disabled;const m=tv(d),h=(f,g)=>{g!==null&&a&&a(g)};return b.jsx(pe.ToggleButtonGroup,{ref:c,...u,className:m.className,classes:m.classNames,orientation:n,fullWidth:o,"data-orientation":n,exclusive:!0,value:i,onChange:h,children:s.map(f=>{const g=typeof f=="string"?f:f.value,p=typeof f=="string"?f:f.label,y=typeof f=="string"?!1:f.disabled;return b.jsx(pe.ToggleButton,{value:g,disabled:y,className:m.classNames.control,children:b.jsx("div",{className:m.classNames.label,children:p})},g)})})});wp.displayName="SegmentedControl";const nv=wp,ov="Slider-module__layoutOverride___zYPun",rv="Slider-module__sliderContainer___y8I0J",sv="Slider-module__sliderTrackWrapper___UHpVh",iv="Slider-module__iconWrapper___uqHpC",av="Slider-module__sliderRoot___LI86H",lv="Slider-module__sliderTrack___oqnlG",cv="Slider-module__sliderBar___TI4VY",uv="Slider-module__sliderThumb___OFn8p",dv="Slider-module__sliderMark___1lM2B",pv="Slider-module__sliderTooltip___J1Aqb",fv="Slider-module__minMaxGuide___TaGqz",mv="Slider-module__rightGuideContainer___8dOT8",hv="Slider-module__currentValue___dGV2T",gv="Slider-module__inputField___6x578",bv="Slider-module__readOnlyValue___-ZzMW",je={layoutOverride:ov,sliderContainer:rv,sliderTrackWrapper:sv,iconWrapper:iv,sliderRoot:av,sliderTrack:lv,sliderBar:cv,sliderThumb:uv,sliderMark:dv,sliderTooltip:pv,minMaxGuide:fv,rightGuideContainer:mv,currentValue:hv,inputField:gv,readOnlyValue:bv},yv=({value:e})=>b.jsx("div",{className:je.readOnlyValue,children:e}),Tp=Y.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:d,label:m,tooltipLabel:h,assistiveText:f,assistiveWithIcon:g,error:p,required:y,withAsterisk:x,id:I,className:w,style:S,disabled:E,readOnly:T,readOnlyComponent:R,emptyValueComponent:N,value:L,defaultValue:V,icon:A,showInput:v=!1,showMinMaxLabels:P=!0,min:O=0,max:_=100,step:k=1,onChange:D,onChangeEnd:M,...z}=t,[j,B]=Y.useState(()=>L!==void 0?Array.isArray(L)?L[0]:L:V!==void 0?Array.isArray(V)?V[0]:V:O),W=L!==void 0?Array.isArray(L)?L[0]:L:j,[X,Q]=Y.useState(W.toString());Y.useEffect(()=>{Q(W.toString())},[W]);const G=(oe,be)=>{const he=Array.isArray(be)?be[0]:be;L===void 0&&B(he),D==null||D(he)},Z=oe=>{const be=oe.target.value;Q(be);const he=parseFloat(be);if(!isNaN(he)){const re=Math.max(O,Math.min(_,he));G(null,re)}},te=()=>{Q(W.toString())},H=me(z,o),F=H;delete F.size,delete F.color,delete F.wrapperProps;const U={root:je.sliderRoot,rail:je.sliderTrack,track:je.sliderBar,thumb:je.sliderThumb,mark:je.sliderMark,markLabel:je.sliderMarkLabel,valueLabel:je.sliderTooltip},ae=F.classNames;if(ae&&typeof ae=="object"&&!Array.isArray(ae)){const oe=ae;U.root=oe.root?`${je.sliderRoot} ${oe.root}`:je.sliderRoot,U.rail=oe.track?`${je.sliderTrack} ${oe.track}`:je.sliderTrack,U.track=oe.bar?`${je.sliderBar} ${oe.bar}`:je.sliderBar,U.thumb=oe.thumb?`${je.sliderThumb} ${oe.thumb}`:je.sliderThumb,U.mark=oe.mark?`${je.sliderMark} ${oe.mark}`:je.sliderMark,U.markLabel=oe.markLabel?`${je.sliderMarkLabel} ${oe.markLabel}`:je.sliderMarkLabel}const K=w?`${je.layoutOverride} ${w}`:je.layoutOverride,ce=A?b.jsx("span",{className:je.iconWrapper,"aria-hidden":!0,children:A}):null;return b.jsx(Yt,{ref:n,className:K,style:S,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:d,label:m,assistiveText:f,assistiveWithIcon:g,error:!!p,required:y,id:I,readOnly:T,readOnlyComponent:R||yv,emptyValueComponent:N,readOnlyType:"text",readOnlyValue:W,readOnlyNativeProps:{value:W},activeComponent:b.jsxs("div",{className:je.sliderContainer,"data-form-layout":s,"data-disabled":E?"true":void 0,"data-error":p?"true":void 0,children:[ce,P&&b.jsx("span",{className:je.minMaxGuide,children:O}),b.jsx("div",{className:je.sliderTrackWrapper,children:b.jsx(pe.Slider,{...H,classes:U,disabled:E,value:W,onChange:G,onChangeCommitted:M,min:O,max:_,step:k,valueLabelDisplay:h===null?"off":"auto",valueLabelFormat:typeof h=="function"?h:void 0})}),b.jsxs("div",{className:je.rightGuideContainer,children:[!v&&b.jsx("span",{className:je.currentValue,children:W}),P&&b.jsx("span",{className:je.minMaxGuide,children:_})]}),v&&b.jsx("input",{type:"number",className:je.inputField,value:X,onChange:Z,onBlur:te,min:O,max:_,step:k??void 0,disabled:E,"data-error":p?"true":void 0})]})})});Tp.displayName="Slider";const Ip=Y.forwardRef(function({children:t,gap:n="rec-default",align:o,justify:s,...i},a){const l=Br(i),c=typeof n=="string"&&n in ft?ft[n]:n;return b.jsx(pe.Stack,{ref:a,...l,spacing:c,alignItems:o,justifyContent:s,children:t})});Ip.displayName="Stack";const vv="Stepper-module__root___jbSYO",xv="Stepper-module__horizontal___USHT1",Sv="Stepper-module__steps___4HPO6",Cv="Stepper-module__step___s2nqL",wv="Stepper-module__stepLabel___N6nuy",Tv="Stepper-module__stepDescription___DnDAy",Iv="Stepper-module__separator___pU0No",Ev="Stepper-module__vertical___d4mOs",_v="Stepper-module__large___J18-y",Ov="Stepper-module__small___Ub-zb",kv="Stepper-module__stepIcon___YQHNq",Pv="Stepper-module__verticalSeparator___frWc1",Nt={root:vv,horizontal:xv,steps:Sv,step:Cv,stepLabel:wv,stepDescription:Tv,separator:Iv,vertical:Ev,large:_v,small:Ov,stepIcon:kv,verticalSeparator:Pv},Ep=Y.forwardRef(function(t,n){const{overStyled:o=!1,size:s="large",orientation:i="horizontal",className:a,style:l,...c}=t,u=me(c,o);return b.jsx("div",{className:`${Nt.root} ${i==="horizontal"?Nt.horizontal:Nt.vertical} ${s==="large"?Nt.large:Nt.small} ${a||""}`,style:l,"data-size":s,"data-orientation":i,children:b.jsx(pe.Stepper,{ref:n,...u,orientation:i,connector:b.jsx(pe.StepConnector,{classes:{root:i==="horizontal"?Nt.separator:Nt.verticalSeparator}}),classes:{root:Nt.steps}})})});Ep.displayName="Stepper";const Rv=Y.forwardRef(function(t,n){const{overStyled:o=!1,className:s,...i}=t;return b.jsx(pe.Step,{ref:n,...me(i,o),classes:{root:Nt.step},className:s||""})});Rv.displayName="Step";const Nv=Y.forwardRef(function(t,n){const{overStyled:o=!1,className:s,...i}=t;return b.jsx(pe.StepButton,{ref:n,className:s||"",...me(i,o)})});Nv.displayName="StepButton";const Mv=Y.forwardRef(function(t,n){const{overStyled:o=!1,className:s,description:i,...a}=t;return b.jsx(pe.StepLabel,{ref:n,...me(a,o),className:s||"",classes:{label:Nt.stepLabel,iconContainer:Nt.stepIcon},optional:i?b.jsx("div",{className:Nt.stepDescription,children:i}):a.optional})});Mv.displayName="StepLabel";const $v=Y.forwardRef(function(t,n){const{overStyled:o=!1,className:s,...i}=t;return b.jsx(pe.StepConnector,{ref:n,className:s||"",...me(i,o)})});$v.displayName="StepConnector";const Dv="Switch-module__root___Y5Ydi",Av="Switch-module__switchRoot___5nKws",jv="Switch-module__track___7ObdZ",Lv="Switch-module__thumb___-FTeK",Vv="Switch-module__body___Sw9Wr",Fv="Switch-module__switchBase___-sCur",Bv="Switch-module__thumbIconWrapper___sCY-1",zv="Switch-module__checkIcon___ZBAQN",Wv="Switch-module__closeIcon___bLLGw",Uv="Switch-module__labelWrapper___YSOwx",qv="Switch-module__label___LrH7V",Hv="Switch-module__groupRoot___-Uepi",$e={root:Dv,switchRoot:Av,track:jv,thumb:Lv,body:Vv,switchBase:Fv,thumbIconWrapper:Bv,checkIcon:zv,closeIcon:Wv,labelWrapper:Uv,label:qv,groupRoot:Hv},_p=Y.createContext(null),Ha=Y.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:h,assistiveWithIcon:f,error:g,required:p,id:y,className:x,style:I,children:w,readOnly:S,readOnlyComponent:E,emptyValueComponent:T,value:R,defaultValue:N,onChange:L,...V}=t,A=me(V,o),v=A;delete v.size;const P=(O,_)=>{L&&L(_)};return b.jsx(Yt,{className:x,style:I,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:h,assistiveWithIcon:f,error:g,required:p,id:y,readOnly:S&&!!E,readOnlyComponent:E,emptyValueComponent:T,readOnlyType:"text",readOnlyValue:R!==void 0?R:N,readOnlyNativeProps:t,activeComponent:b.jsx(_p.Provider,{value:{value:R!==void 0?R:N,onChange:P,name:v.name,readOnly:S||!!v.disabled},children:b.jsx(pe.FormGroup,{ref:n,...A,className:`${$e.groupRoot} ${A.className||""}`.trim(),"data-layout":s,children:w})})})});Ha.displayName="SwitchGroup";function Yv(e){return b.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:b.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Gv(e){return b.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:b.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}const Ya=Y.forwardRef(function(t,n){const{overStyled:o=!1,readOnly:s,readOnlyComponent:i,disabled:a,formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,label:m,description:h,error:f,style:g,...p}=t,y=me(p,o),x=y;delete x.size,delete x.color,delete x.radius,delete x.variant;const I={root:$e.switchRoot,body:$e.body,track:$e.track,switchBase:$e.switchBase,trackLabel:$e.trackLabel,labelWrapper:$e.labelWrapper,label:$e.label},w=x.classes;if(w&&typeof w=="object"&&!Array.isArray(w)){const _=w;I.root=_.root?`${$e.switchRoot} ${_.root}`:$e.switchRoot,I.body=_.body?`${$e.body} ${_.body}`:$e.body,I.track=_.track?`${$e.track} ${_.track}`:$e.track,I.trackLabel=_.trackLabel?`${$e.trackLabel} ${_.trackLabel}`:$e.trackLabel,I.labelWrapper=_.labelWrapper?`${$e.labelWrapper} ${_.labelWrapper}`:$e.labelWrapper,I.label=_.label?`${$e.label} ${_.label}`:$e.label}const S=x.className,E=S?`${$e.root} ${S}`:$e.root,T=Y.useContext(_p),R=T!==null,N=R?!!T.readOnly:!1,L=R?(T.value||[]).includes(x.value):!!(x.checked??x.defaultChecked),V=_=>{var z;if(!R)return;const k=T.value||[],D=x.value,M=_.target.checked?[...k,D]:k.filter(j=>j!==D);(z=T.onChange)==null||z.call(T,_,M)};if(s&&i){const _=i,k=b.jsx(_,{...t,checked:L,label:x.label});return l?b.jsx(yn,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:k}):b.jsx(b.Fragment,{children:k})}const A=b.jsx("span",{className:$e.thumb,children:b.jsxs("span",{className:$e.thumbIconWrapper,children:[b.jsx(Yv,{className:$e.checkIcon}),b.jsx(Gv,{className:$e.closeIcon})]})}),v=s||a||N,P=b.jsx(pe.Switch,{ref:n,className:m?$e.inner:`${E} ${$e.inner}`,classes:I,color:"default",disabled:v,"data-disabled":v||void 0,icon:A,checkedIcon:A,...y,...R?{checked:L,onChange:V}:{},disableRipple:!0}),O=m?b.jsx("div",{className:E,style:g,children:b.jsxs("div",{className:$e.body,children:[P,b.jsxs("div",{className:$e.labelWrapper,children:[b.jsx("label",{className:$e.label,htmlFor:x.id,"data-disabled":s||a?!0:void 0,children:m}),f?b.jsx(bn,{assistiveVariant:"error",assistiveWithIcon:!1,children:f}):h&&b.jsx(bn,{assistiveVariant:"help",assistiveWithIcon:!1,children:h})]})]})}):P;return l?b.jsx(yn,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:O}):O});Ya.displayName="Switch";Ya.Group=Ha;const Kv="Table-module__root___aMWWS",Xv={root:Kv},Op=Y.forwardRef(function({overStyled:t=!1,...n},o){const s=me(n,t),i=s.className,a=Xv.root,l=i?`${a} ${i}`:a;return b.jsx(pe.Table,{ref:o,...s,className:l})});Op.displayName="Table";const kp=Y.forwardRef(function({overStyled:t=!1,...n},o){const s=me(n,t);return b.jsx(pe.TableBody,{ref:o,...s})});kp.displayName="TableBody";const Pp=Y.forwardRef(function({overStyled:t=!1,...n},o){const s=me(n,t);return b.jsx(pe.TableCell,{ref:o,...s})});Pp.displayName="TableCell";const Rp=Y.forwardRef(function({overStyled:t=!1,...n},o){const s=me(n,t);return b.jsx(pe.TableContainer,{ref:o,...s})});Rp.displayName="TableContainer";const Np=Y.forwardRef(function({overStyled:t=!1,...n},o){const s=me(n,t);return b.jsx(pe.TableHead,{ref:o,...s})});Np.displayName="TableHead";const Mp=Y.forwardRef(function({overStyled:t=!1,...n},o){const s=me(n,t);return b.jsx(pe.TableRow,{ref:o,...s})});Mp.displayName="TableRow";const $p=Y.forwardRef(function({overStyled:t=!1,...n},o){const s=me(n,t);return b.jsx(pe.TableFooter,{ref:o,...s})});$p.displayName="TableFooter";const Dp=Y.forwardRef(function({overStyled:t=!1,...n},o){const s=me(n,t);return b.jsx(pe.TableSortLabel,{ref:o,...s})});Dp.displayName="TableSortLabel";const Bn=Op;Bn.Body=kp;Bn.Cell=Pp;Bn.Container=Rp;Bn.Head=Np;Bn.Row=Mp;Bn.Footer=$p;Bn.SortLabel=Dp;const Qv="Tabs-module__root___-VKVI",Zv="Tabs-module__list___qRVME",Jv="Tabs-module__indicator___kvQsf",ex="Tabs-module__tab___IdDYc",tx="Tabs-module__panel___08i9c",vr={root:Qv,list:Zv,indicator:Jv,tab:ex,panel:tx};function co(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rs={exports:{}},ss={exports:{}},De={};/** @license React v16.13.1
1
+ "use strict";var nb=Object.defineProperty;var ob=(e,t,n)=>t in e?nb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var X=(e,t,n)=>ob(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react/jsx-runtime"),H=require("react"),ye=require("@mui/material"),Jn=require("@emotion/react"),rb=require("@emotion/styled"),Ir=require("react-dom");var na=typeof document<"u"?document.currentScript:null;function Rp(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const C=Rp(H),sb=Rp(Ir),ib=["className","classes","style","sx","color","bgcolor","backgroundColor","typography","fontFamily","fontSize","fontWeight","lineHeight","letterSpacing","textAlign","border","borderTop","borderBottom","borderLeft","borderRight","borderColor","borderRadius","boxShadow","display","position","zIndex"],ab=new Set(["m","my","mx","mt","mb","ml","mr","p","py","px","pt","pb","pl","pr","gap","rowGap","columnGap","top","left","bottom","right"]),yt={"rec-none":"var(--recursica_brand_dimensions_general_none)","rec-sm":"var(--recursica_brand_dimensions_general_sm)","rec-default":"var(--recursica_brand_dimensions_general_default)","rec-md":"var(--recursica_brand_dimensions_general_md)","rec-lg":"var(--recursica_brand_dimensions_general_lg)","rec-xl":"var(--recursica_brand_dimensions_general_xl)","rec-2xl":"var(--recursica_brand_dimensions_general_2xl)"};function os(e){const t={...e};return"sx"in t&&delete t.sx,t}function ve(e,t){if(t)return e;const n={...e};for(const o of ib)o in n&&delete n[o];for(const[o,s]of Object.entries(n))typeof s=="string"&&s.startsWith("rec-")&&ab.has(o)&&s in yt&&(n[o]=yt[s]);return n}const lb="Accordion-module__root___Dem6d",cb="Accordion-module__item___7ryVk",ub="Accordion-module__noDivider___Ni2tT",db="Accordion-module__control___b4wgX",pb="Accordion-module__label___Ss7uW",fb="Accordion-module__chevron___i-HVZ",mb="Accordion-module__iconLeftWrapper___5oLen",hb="Accordion-module__panel___Wx50w",gb="Accordion-module__content___PEM9t",En={root:lb,item:cb,noDivider:ub,control:db,label:pb,chevron:fb,iconLeftWrapper:mb,panel:hb,content:gb},bb=()=>h.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{width:"100%",height:"100%"},children:h.jsx("polyline",{points:"6 9 12 15 18 9"})}),Xa=H.createContext(null),Np=H.forwardRef(function({variant:t="default",overStyled:n=!1,value:o,defaultValue:s,onChange:i,multiple:a=!1,chevron:l,children:c,...u},d){const m=ve(u,n),g=m.className,p=[En.root,g].filter(Boolean).join(" ")||void 0,[b,f]=H.useState(s!==void 0?s:a?[]:null),y=o!==void 0?o:b,x=T=>{let S;if(a){const w=Array.isArray(y)?y:y?[y]:[];S=w.includes(T)?w.filter(E=>E!==T):[...w,T]}else S=y===T?null:T;f(S),i==null||i(S)};return h.jsx(Xa.Provider,{value:{value:y,onChange:x,chevron:l},children:h.jsx("div",{ref:d,...m,className:p,"data-variant":t,children:c})})});Np.displayName="Accordion";const Qa=H.forwardRef(function({title:t,leftIcon:n,divider:o=!0,children:s,value:i,disabled:a=!1,overStyled:l=!1,style:c,...u},d){const m=ve(u,l),g=m.className,p=[En.item,o?void 0:En.noDivider,g].filter(Boolean).join(" ")||void 0,b=H.useContext(Xa),f=b?Array.isArray(b.value)?b.value.includes(i):b.value===i:void 0,y=()=>{b==null||b.onChange(i)},x={backgroundColor:"transparent",...c};return h.jsx(ye.Accordion,{ref:d,...m,className:p,disableGutters:!0,elevation:0,square:!0,expanded:f,onChange:y,disabled:a,"data-disabled":a||void 0,style:x,children:t?h.jsxs(h.Fragment,{children:[h.jsx(pi,{leftIcon:n,children:t}),h.jsx(fi,{children:s})]}):s})});Qa.displayName="AccordionItem";const pi=H.forwardRef(function({leftIcon:t,children:n,overStyled:o=!1,...s},i){const a=ve(s,o),l=a.className,c=[En.control,l].filter(Boolean).join(" ")||void 0,u=H.useContext(Xa),d=(u==null?void 0:u.chevron)??h.jsx(bb,{});return h.jsxs(ye.AccordionSummary,{ref:i,...a,className:c,expandIcon:h.jsx("span",{className:En.chevron,children:d}),children:[t&&h.jsx("span",{className:En.iconLeftWrapper,"aria-hidden":!0,children:t}),h.jsx("div",{className:En.label,children:n})]})});pi.displayName="AccordionControl";const fi=H.forwardRef(function({overStyled:t=!1,children:n,...o},s){const i=ve(o,t),a=i.className,l=[En.panel,a].filter(Boolean).join(" ")||void 0;return h.jsx(ye.AccordionDetails,{ref:s,...i,className:l,children:h.jsx("div",{className:En.content,children:n})})});fi.displayName="AccordionPanel";const mi=Np;mi.Item=Qa;mi.Control=pi;mi.Panel=fi;const yb="AssistiveElement-module__root___WhQ43",vb="AssistiveElement-module__text___vrHAg",xb="AssistiveElement-module__icon___Q-CVz",vs={root:yb,text:vb,icon:xb},Mn=H.forwardRef(function(t,n){const{assistiveVariant:o="help",assistiveWithIcon:s=!0,overStyled:i=!1,className:a,children:l,role:c,...u}=t,d=ve(u,i),m=()=>h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("circle",{cx:"12",cy:"12",r:"10"}),h.jsx("path",{d:"M12 16v-4"}),h.jsx("path",{d:"M12 8h.01"})]}),g=()=>h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"}),h.jsx("path",{d:"M12 9v4"}),h.jsx("path",{d:"M12 17h.01"})]}),p=o==="error",b=c??(p?"alert":void 0);return h.jsxs(ye.FormHelperText,{ref:n,...d,component:"div",error:p,role:b,"data-variant":o,className:a?`${vs.root} ${a}`:vs.root,children:[s&&h.jsx("div",{className:vs.icon,children:o==="error"?h.jsx(g,{}):h.jsx(m,{})}),h.jsx("span",{className:vs.text,children:l})]})});Mn.displayName="AssistiveElement";const Cb="Label-module__root___e6HXZ",wb="Label-module__innerLayout___Xxapo",Sb="Label-module__text___OGeEw",Tb="Label-module__required___Ggrzc",Ib="Label-module__endNodes___es7ew",Eb="Label-module__optionalText___Y2yun",kb="Label-module__actionArea___O-f1X",Ob="Label-module__editIcon___9hO1G",un={root:Cb,innerLayout:wb,text:Sb,required:Tb,endNodes:Ib,optionalText:Eb,actionArea:kb,editIcon:Ob},Za=H.forwardRef(function(t,n){const{overStyled:o=!1,required:s=!1,labelOptionalText:i="",labelWithEditIcon:a=!1,onLabelEditClick:l,labelActionArea:c,children:u,className:d,...m}=t,g=ve(m,o),p=()=>h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("path",{d:"M12 20h9"}),h.jsx("path",{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"})]});return h.jsx(ye.InputLabel,{ref:n,...g,shrink:!0,className:d?`${un.root} ${d}`:un.root,children:h.jsxs("div",{className:un.innerLayout,children:[h.jsxs("span",{className:un.textWrapper,children:[h.jsx("span",{className:un.text,children:u}),s&&h.jsx("span",{className:un.required,children:" *"})]}),h.jsxs("div",{className:un.endNodes,children:[c&&h.jsx("span",{className:un.actionArea,children:c}),a&&h.jsx("button",{type:"button",className:un.editIcon,onClick:l,"aria-label":"Edit label",children:h.jsx(p,{})})]}),!s&&i&&!c&&h.jsx("span",{className:un.optionalText,children:i===!0?"(optional)":i})]})})});Za.displayName="Label";const _b="FormControlLayout-module__root___yNDhZ",Pb="FormControlLayout-module__leftSection___GBM1r",Mb="FormControlLayout-module__rightSection___bcL4v",mr={root:_b,leftSection:Pb,rightSection:Mb},Dn=H.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i="default",controlMaxWidth:a,controlMinWidth:l,leftSection:c,className:u,children:d,style:m,...g}=t,p=ve(g,o);return h.jsxs("div",{ref:n,className:u?`${mr.root} ${u}`:mr.root,"data-form-layout":s,style:{...m,...a?{"--form-control-max-width":a}:{},...l?{"--form-control-min-width":l}:{}},...p,children:[s==="side-by-side"?h.jsx("div",{className:mr.leftSection,"data-label-size":i,children:c}):c&&h.jsx("div",{className:mr.leftSection,"data-label-size":i,children:c}),h.jsx("div",{className:mr.rightSection,children:d})]})});Dn.displayName="FormControlLayout";const Db="FormControlWrapper-module__root___c-UHo",Rb="FormControlWrapper-module__inputSection___HenXk",oa={root:Db,inputSection:Rb},hn=H.forwardRef(function(t,n){const{overStyled:o=!1,label:s,assistiveText:i,description:a,helperText:l,assistiveWithIcon:c=!0,error:u,required:d,disabled:m,focused:g,id:p,formLayout:b="stacked",labelSize:f="default",labelOptionalText:y,labelWithEditIcon:x,onLabelEditClick:T,labelActionArea:S,controlMaxWidth:w,controlMinWidth:E,className:I,style:R,children:N,...j}=t,V=ve(j,o),$=H.useId(),v=p||`recursica-fc-${$}`,O=i||a||l,P=`${v}-label`,k=O?`${v}-assistive`:void 0,M=u?`${v}-error`:void 0,_=H.Children.map(N,A=>{if(H.isValidElement(A)){const B=A.props;return H.cloneElement(A,{"aria-labelledby":P,...k&&!B["aria-describedby"]?{"aria-describedby":k}:{},...M&&!B["aria-errormessage"]?{"aria-errormessage":M}:{}})}return A});return h.jsx(ye.FormControl,{ref:n,error:!!u,required:d,disabled:m,focused:g,className:I?`${oa.root} ${I}`:oa.root,style:R,"data-error":u?"true":void 0,"data-disabled":m?"true":void 0,"data-focused":g?"true":void 0,...V,children:h.jsx(Dn,{formLayout:b,labelSize:f,controlMaxWidth:w,controlMinWidth:E,leftSection:s&&h.jsx(Za,{id:P,htmlFor:v,required:d,labelOptionalText:y,labelWithEditIcon:x,onLabelEditClick:T,labelActionArea:S,children:s}),children:h.jsxs("div",{className:oa.inputSection,children:[_,(O||u)&&h.jsx(Mn,{id:u?M:k,assistiveVariant:u?"error":"help",assistiveWithIcon:c,children:u&&typeof u=="string"?u:O})]})})})});hn.displayName="FormControlWrapper";const Nb="ReadOnlyField-module__root___hKci7",$b="ReadOnlyField-module__text___bPxk9",Po={root:Nb,text:$b},Ja=H.forwardRef(function(t,n){const{value:o,type:s="text",readOnlyComponent:i,emptyValueComponent:a,className:l,...c}=t;if(a&&typeof a!="string"){const m=a;if(m.check&&m.check(o))return h.jsx(hn,{ref:n,className:`${Po.root} ${l||""}`,...c,children:h.jsx(m,{value:o})})}if(o==null||o===""||Array.isArray(o)&&o.length===0)return h.jsx(hn,{ref:n,className:`${Po.root} ${l||""}`,...c,children:h.jsx("p",{className:Po.text,children:"N/A"})});if(i){const m=i;return h.jsx(hn,{ref:n,className:`${Po.root} ${l||""}`,...c,children:h.jsx(m,{value:o})})}let d=o;return s==="boolean"||s==="switch"?(d=o?"True":"False",s==="switch"&&(d=o?"On":"Off")):Array.isArray(o)?d=o.join(", "):d=String(o),h.jsx(hn,{ref:n,className:`${Po.root} ${l||""}`,...c,children:h.jsx("p",{className:Po.text,children:d})})});Ja.displayName="ReadOnlyField";const Vt=H.forwardRef(function({readOnly:t,readOnlyComponent:n,readOnlyType:o="text",readOnlyValue:s,readOnlyNativeProps:i,emptyValueComponent:a,activeComponent:l,overStyled:c,onLabelEditClick:u,...d},m){if(t){if(n){const g=n;return h.jsx(hn,{ref:m,...d,onLabelEditClick:u,overStyled:c,children:h.jsx(g,{...i})})}return h.jsx(Ja,{ref:m,type:o,value:s,emptyValueComponent:a,onLabelEditClick:u,overStyled:c,...d})}return h.jsx(hn,{ref:m,...d,onLabelEditClick:u,overStyled:c,children:l})});Vt.displayName="WithReadOnlyWrapper";const jb="Autocomplete-module__layoutOverride___IIkyG",Ab="Autocomplete-module__root___22Jqm",Lb="Autocomplete-module__input___MlbJR",Vb="Autocomplete-module__section___WRvD5",Fb="Autocomplete-module__dropdown___A9XVI",Bb="Autocomplete-module__option___cZsvO",St={layoutOverride:jb,root:Ab,input:Lb,section:Vb,dropdown:Fb,option:Bb},$p=H.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:g,error:p,required:b,withAsterisk:f,id:y,className:x,style:T,disabled:S,readOnly:w,readOnlyComponent:E,emptyValueComponent:I,value:R,defaultValue:N,data:j,leftSection:V,rightSection:$,placeholder:v,ListboxProps:O,...P}=t,M=ve(P,o);delete M.size,delete M.variant,delete M.radius;const _={root:St.root,inputRoot:St.input,listbox:St.dropdown,option:St.option},A=M.classNames;if(A&&typeof A=="object"&&!Array.isArray(A)){const L=A;_.root=L.wrapper?`${St.root} ${L.wrapper}`:St.root,_.inputRoot=L.input?`${St.input} ${L.input}`:St.input,_.listbox=L.dropdown?`${St.dropdown} ${L.dropdown}`:St.dropdown,_.option=L.option?`${St.option} ${L.option}`:St.option}const B=x?`${St.layoutOverride} ${x}`:St.layoutOverride;return h.jsx(Vt,{className:B,style:T,controlMaxWidth:"var(--autocomplete-control-max-width)",controlMinWidth:"var(--autocomplete-control-min-width)",overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:g,error:p,required:b,id:y,disabled:S,readOnly:w,readOnlyComponent:E,emptyValueComponent:I,readOnlyType:"text",readOnlyValue:R!==void 0?R:N,readOnlyNativeProps:t,activeComponent:h.jsx(ye.Autocomplete,{ref:n,freeSolo:!0,disableClearable:!0,classes:_,disabled:S,value:R,defaultValue:N,forcePopupIcon:!1,"data-error":p?"true":void 0,"data-disabled":S?"true":void 0,"data-with-left-section":V?"true":void 0,"data-with-right-section":$?"true":void 0,ListboxProps:{...O,className:_.listbox},options:j||[],renderInput:L=>{const{InputProps:F,...W}=L;return h.jsx(ye.TextField,{...W,placeholder:v,variant:"standard",InputProps:{...F,startAdornment:V?h.jsx("span",{className:St.section,"data-position":"left",children:V}):F.startAdornment,endAdornment:$?h.jsx("span",{className:St.section,"data-position":"right",children:$}):F.endAdornment}})}})})});$p.displayName="Autocomplete";const zb="Avatar-module__root___fXu-J",Wb="Avatar-module__iconWrapper___ojly2",Ub="Avatar-module__textWrapper___zp-jD",Hb="Avatar-module__image___ieqGp",qb="Avatar-module__placeholder___IDW7-",nn={root:zb,iconWrapper:Wb,textWrapper:Ub,image:Hb,placeholder:qb},jp=H.forwardRef(function({size:t="default",variant:n="solid",icon:o,children:s,src:i,overStyled:a=!1,...l},c){const u=ve(l,a),d=u;let m="text";i?m="image":o&&(m="icon");const g={root:nn.root,image:nn.image,placeholder:nn.placeholder},p=d.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const f=p;g.root=f.root?`${nn.root} ${f.root}`:nn.root,g.image=f.image?`${nn.image} ${f.image}`:nn.image,g.placeholder=f.placeholder?`${nn.placeholder} ${f.placeholder}`:nn.placeholder}const b=d.className;return h.jsx(ye.Avatar,{ref:c,className:b,classes:g,variant:"circular",src:i,"data-variant":n,"data-size":t,"data-style":m,...u,children:o!=null?h.jsx("span",{className:nn.iconWrapper,"aria-hidden":!0,children:o}):s!=null?h.jsx("span",{className:nn.textWrapper,children:s}):void 0})});jp.displayName="Avatar";const Yb=jp,Gb="Badge-module__root___5osNT",hr={root:Gb},Ap=H.forwardRef(function({variant:t="primary-color",overStyled:n=!1,...o},s){const i=ve(o,n),a={root:hr.root},l=i.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const d=l;a.root=d.root?`${hr.root} ${d.root}`:hr.root}const c=i.className,u=c?`${hr.root} ${c}`:hr.root;return h.jsx(ye.Badge,{ref:s,variant:"standard","data-variant":t,...i,className:u,classes:a})});Ap.displayName="Badge";const Lp=Ap,Kb=H.forwardRef(function(t,n){return h.jsx(ye.Box,{ref:n,...t})}),Xb="Breadcrumb-module__root___x-9ln",Qb="Breadcrumb-module__separator___qrUX-",An={root:Xb,separator:Qb},Vp=H.forwardRef(function({overStyled:t=!1,separator:n=">",...o},s){const i=ve({separator:n,...o},t),a={root:An.root,separator:An.separator},l=i.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const d=l;a.root=d.root?`${An.root} ${d.root}`:An.root,a.separator=d.separator?`${An.separator} ${d.separator}`:An.separator}const c=i.className,u=c?`${An.root} ${c}`:An.root;return h.jsx(ye.Breadcrumbs,{ref:s,...i,className:u,classes:a})});Vp.displayName="Breadcrumb";const Zb="Loader-module__root___6iYOP",Zc={root:Zb},el=H.forwardRef(function({variant:t="oval",size:n="default",overStyled:o=!1,...s},i){const l={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[n]||"default",c=ve(s,o),u=c.className,d=u?`${Zc.root} ${u}`:Zc.root,m=()=>t==="bars"||t==="dots"?h.jsxs(h.Fragment,{children:[h.jsx("span",{}),h.jsx("span",{}),h.jsx("span",{})]}):null;return h.jsx("span",{ref:i,"data-variant":t,"data-size":l,...c,className:d,children:m()})});el.displayName="Loader";const Jb="Button-module__root___Q2R8-",ey="Button-module__labelText___rFV5p",ty="Button-module__iconWrapper___uEKPa",gr={root:Jb,labelText:ey,iconWrapper:ty};function ny(e){return e==null||e===""?!1:typeof e=="string"?e.trim()!=="":!0}const kn=H.forwardRef(function({variant:t="solid",size:n="default",icon:o,children:s,overStyled:i=!1,loaderVariant:a="oval",loaderSize:l,useRecursicaLoader:c=!0,...u},d){const m=ve(u,i),g=m;delete g.color;const p=!!o||!!g.startIcon,b=!!g.endIcon,f=ny(s),y=(p||b)&&!f;let x="label";y?x="icon-only":(p||b)&&(x="icon-label"),typeof process<"u"&&process.env.NODE_ENV!=="production"&&y&&!g["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const T=g.className,S=T?`${gr.root} ${T}`:gr.root;delete g.className;const w=l??(n==="small"?"small":"default");let E=g.loadingIndicator;return c&&(E=h.jsx(el,{variant:a,size:w})),h.jsx(ye.Button,{ref:d,disableRipple:!0,disableElevation:!0,className:S,loading:!!g.loading,loadingIndicator:E,fullWidth:!!g.fullWidth,startIcon:g.loading?h.jsx("span",{className:gr.iconWrapper,"aria-hidden":!0,children:E}):o!=null?h.jsx("span",{className:gr.iconWrapper,"aria-hidden":!0,children:o}):void 0,"data-variant":t,"data-size":n,"data-content":x,...g.loading?{"data-loading":"true"}:{},...m,disabled:!!g.disabled||!!g.loading,children:h.jsx("span",{className:gr.labelText,children:s})})});kn.displayName="Button";const oy="Card-module__root___c9KvZ",ry="Card-module__header___PTXf2",sy="Card-module__footer___Mu-JC",iy="Card-module__section___BRT8H",ay="Card-module__content___oFIQa",Rn={root:oy,header:ry,footer:sy,section:iy,content:ay},Fp=H.forwardRef(function({overStyled:t=!1,...n},o){const s=ve(n,t);["flex","flexGrow","flexShrink","flexBasis","grow","h","height"].forEach(u=>{u in n&&!(u in s)&&(s[u]=n[u])});const a={root:Rn.root},l=s.classNames;if(l&&typeof l=="object"&&!Array.isArray(l)){const u=l;Object.keys(u).forEach(d=>{a[d]?a[d]=`${a[d]} ${u[d]}`:a[d]=u[d]})}const c=s.className;return h.jsx(ye.Card,{ref:o,...s,className:c,classes:a})});Fp.displayName="Card";const Bp=H.forwardRef(function({overStyled:t=!1,...n},o){const s=ve(n,t),i=s.className;return h.jsx("div",{ref:o,...s,className:i?`${Rn.section} ${i}`:Rn.section})});Bp.displayName="CardSection";const zp=H.forwardRef(function({overStyled:t=!1,...n},o){const s=ve(n,t),i=s.className;return h.jsx("div",{ref:o,...s,className:i?`${Rn.header} ${i}`:Rn.header})});zp.displayName="CardHeader";const Wp=H.forwardRef(function({overStyled:t=!1,...n},o){const s=ve(n,t),i=s.className;return h.jsx("div",{ref:o,...s,className:i?`${Rn.footer} ${i}`:Rn.footer})});Wp.displayName="CardFooter";const Up=H.forwardRef(function({overStyled:t=!1,...n},o){const s=ve(n,t),i=s.className;return h.jsx("div",{ref:o,...s,className:i?`${Rn.content} ${i}`:Rn.content})});Up.displayName="CardContent";const Hp=Fp,hi=Hp;hi.Section=Bp;hi.Header=zp;hi.Footer=Wp;hi.Content=Up;const ly=Hp,cy="Checkbox-module__groupRoot___cBS0o",uy="Checkbox-module__root___mY3qk",dy="Checkbox-module__body___5yC7q",py="Checkbox-module__inner___rTke4",fy="Checkbox-module__input___2kt-h",my="Checkbox-module__inputChecked___zaCIH",hy="Checkbox-module__inputIndeterminate___CVPhn",gy="Checkbox-module__disabled___x7-eg",by="Checkbox-module__icon___-O7i6",yy="Checkbox-module__labelWrapper___GpZkr",vy="Checkbox-module__label___cwRtI",st={groupRoot:cy,root:uy,body:dy,inner:py,input:fy,inputChecked:my,inputIndeterminate:hy,disabled:gy,icon:by,labelWrapper:yy,label:vy},qp=H.createContext(null),Br=H.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:g,assistiveWithIcon:p,error:b,required:f,id:y,className:x,style:T,children:S,readOnly:w,readOnlyComponent:E,emptyValueComponent:I,value:R,defaultValue:N,onChange:j,row:V,...$}=t,v=ve($,o),O=v;delete O.size;const P=(k,M)=>{j&&j(M)};return h.jsx(Vt,{className:x,style:T,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:g,assistiveWithIcon:p,error:b,required:f,id:y,readOnly:w&&!!E,readOnlyComponent:E,emptyValueComponent:I,readOnlyType:"text",readOnlyValue:R!==void 0?R:N,readOnlyNativeProps:t,activeComponent:h.jsx(qp.Provider,{value:{value:R!==void 0?R:N,onChange:P,name:O.name,readOnly:w||!!O.disabled},children:h.jsx(ye.FormGroup,{ref:n,row:V,...v,className:`${st.groupRoot} ${v.className||""}`.trim(),"data-layout":s,children:S})})})});Br.displayName="CheckboxGroup";const zr=H.forwardRef(function(t,n){const{overStyled:o=!1,readOnly:s,readOnlyComponent:i,disabled:a,formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,label:m,description:g,error:p,style:b,...f}=t,y=ve(f,o),x=y;delete x.size,delete x.color;const T={root:st.root,checked:st.checked,disabled:st.disabled},S=x.classes;if(S&&typeof S=="object"&&!Array.isArray(S)){const k=S;T.root=k.root?`${st.root} ${k.root}`:st.root,T.checked=k.checked?`${st.checked} ${k.checked}`:st.checked,T.disabled=k.disabled?`${st.disabled} ${k.disabled}`:st.disabled}const w=x.className,E=w?`${st.root} ${w}`:st.root,I=H.useContext(qp),R=I!==null&&x.checked===void 0,N=R?I.readOnly:!1,j=R?(I.value||[]).includes(x.value):!!(x.checked??x.defaultChecked),V=R||x.checked!==void 0;if(s&&i){const k=i,M=h.jsx(k,{...t,checked:j,label:m});return l?h.jsx(Dn,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:M}):h.jsx(h.Fragment,{children:M})}const $=k=>{if(R){const M=k.target.checked?[...I.value||[],x.value]:(I.value||[]).filter(_=>_!==x.value);I.onChange&&I.onChange(k,M)}else x.onChange&&x.onChange(k,k.target.checked)},v=k=>h.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",...k,children:h.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}),O=h.jsx(ye.Checkbox,{ref:n,className:m?st.inner:`${E} ${st.inner}`,classes:T,disabled:s||a||N,...y,...V?{checked:j}:{},onChange:$,disableRipple:!0,sx:m?{padding:0}:void 0,icon:h.jsx("div",{className:st.input}),checkedIcon:h.jsx("div",{className:`${st.input} ${st.inputChecked}`,children:h.jsx(v,{className:st.icon})}),indeterminateIcon:h.jsx("div",{className:`${st.input} ${st.inputIndeterminate}`,children:h.jsx("svg",{className:st.icon,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",children:h.jsx("rect",{x:"6",y:"14",width:"20",height:"4",fill:"currentColor"})})})}),P=m?h.jsx("div",{className:E,style:b,children:h.jsxs("div",{className:st.body,children:[O,h.jsxs("div",{className:st.labelWrapper,children:[h.jsx("label",{className:st.label,htmlFor:x.id,"data-disabled":s||a||N?!0:void 0,children:m}),p?h.jsx(Mn,{assistiveVariant:"error",assistiveWithIcon:!1,children:p}):g&&h.jsx(Mn,{assistiveVariant:"help",assistiveWithIcon:!1,children:g})]})]})}):h.jsx("div",{className:E,style:b,children:O});return l?h.jsx(Dn,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:P}):P});zr.displayName="Checkbox";zr.Group=Br;const xy="Chip-module__root___f5pFk",Cy="Chip-module__label___Ov9pg",wy="Chip-module__checkIconWrapper___1OtE-",Sy="Chip-module__innerWrapper___EnrTF",Ty="Chip-module__children___zbRAR",Iy="Chip-module__leadingIcon___JBtjQ",Ey="Chip-module__removeIconWrapper___VOO7u",Et={root:xy,label:Cy,checkIconWrapper:wy,innerWrapper:Sy,children:Ty,leadingIcon:Iy,removeIconWrapper:Ey};function ky(e){return h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[h.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),h.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function Oy(e){return h.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:h.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}const Wr=H.forwardRef(function({error:t=!1,icon:n,onRemove:o,removeLabel:s="Remove",removeTabIndex:i,removeIconRef:a,children:l,checked:c,overStyled:u=!1,...d},m){const g=ve(d,u),p=g,b={root:Et.root,label:Et.label,icon:Et.leadingIcon,deleteIcon:Et.removeIconWrapper},f=p.classNames;if(f&&typeof f=="object"&&!Array.isArray(f)){const I=f;b.root=I.root?`${Et.root} ${I.root}`:Et.root,b.label=I.label?`${Et.label} ${I.label}`:Et.label}const y=p.className,x=y?`${Et.root} ${y}`:Et.root,T=t?"":void 0,S=c?"":void 0,w=!l&&(!!n||!!o),E=o!==void 0||p.onClick!==void 0||p.onChange!==void 0;return h.jsx(ye.Chip,{ref:m,className:x,classes:b,...T!==void 0?{"data-error":""}:{},...S!==void 0?{"data-checked":""}:{},...w?{"data-icon-only":""}:{},...E?{"data-interactive":""}:{},...g,icon:c?h.jsx("span",{className:Et.checkIconWrapper,"aria-hidden":!0,children:h.jsx(Oy,{})}):n?h.jsx("span",{className:Et.leadingIcon,"aria-hidden":!0,children:n}):void 0,onDelete:o,deleteIcon:o?h.jsx("span",{ref:a,role:"button",className:Et.removeIconWrapper,"aria-label":s,tabIndex:i??0,onKeyDown:I=>{(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),I.stopPropagation(),o(I))},children:h.jsx(ky,{})}):void 0,label:h.jsx("span",{className:Et.innerWrapper,children:h.jsx("span",{className:Et.children,children:l})})})});Wr.displayName="Chip";const Yp=H.forwardRef(function({children:t,size:n,fluid:o,...s},i){const a={"rec-sm":"sm","rec-default":"md","rec-md":"md","rec-lg":"lg","rec-xl":"xl","rec-2xl":"xl"},l=o?!1:typeof n=="string"&&a[n]?a[n]:n;return h.jsx(ye.Container,{ref:i,maxWidth:l,...s,children:t})});Yp.displayName="Container";function je(e,...t){const n=new URL("https://mui.com/x/production-error");return n.searchParams.set("code",e.toString()),t.forEach(o=>n.searchParams.append("args[]",o)),`MUI X error #${e}; visit ${n} for the full message.`}function D(){return D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},D.apply(null,arguments)}function Ce(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function To(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xs={exports:{}},Cs={exports:{}},Be={};/** @license React v16.13.1
12
2
  * react-is.production.min.js
13
3
  *
14
4
  * Copyright (c) Facebook, Inc. and its affiliates.
15
5
  *
16
6
  * This source code is licensed under the MIT license found in the
17
7
  * LICENSE file in the root directory of this source tree.
18
- */var yc;function nx(){if(yc)return De;yc=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function w(E){if(typeof E=="object"&&E!==null){var T=E.$$typeof;switch(T){case t:switch(E=E.type,E){case c:case u:case o:case i:case s:case m:return E;default:switch(E=E&&E.$$typeof,E){case l:case d:case g:case f:case a:return E;default:return T}}case n:return T}}}function S(E){return w(E)===u}return De.AsyncMode=c,De.ConcurrentMode=u,De.ContextConsumer=l,De.ContextProvider=a,De.Element=t,De.ForwardRef=d,De.Fragment=o,De.Lazy=g,De.Memo=f,De.Portal=n,De.Profiler=i,De.StrictMode=s,De.Suspense=m,De.isAsyncMode=function(E){return S(E)||w(E)===c},De.isConcurrentMode=S,De.isContextConsumer=function(E){return w(E)===l},De.isContextProvider=function(E){return w(E)===a},De.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},De.isForwardRef=function(E){return w(E)===d},De.isFragment=function(E){return w(E)===o},De.isLazy=function(E){return w(E)===g},De.isMemo=function(E){return w(E)===f},De.isPortal=function(E){return w(E)===n},De.isProfiler=function(E){return w(E)===i},De.isStrictMode=function(E){return w(E)===s},De.isSuspense=function(E){return w(E)===m},De.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===o||E===u||E===i||E===s||E===m||E===h||typeof E=="object"&&E!==null&&(E.$$typeof===g||E.$$typeof===f||E.$$typeof===a||E.$$typeof===l||E.$$typeof===d||E.$$typeof===y||E.$$typeof===x||E.$$typeof===I||E.$$typeof===p)},De.typeOf=w,De}var Ae={};/** @license React v16.13.1
8
+ */var Jc;function _y(){if(Jc)return Be;Jc=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function S(E){if(typeof E=="object"&&E!==null){var I=E.$$typeof;switch(I){case t:switch(E=E.type,E){case c:case u:case o:case i:case s:case m:return E;default:switch(E=E&&E.$$typeof,E){case l:case d:case b:case p:case a:return E;default:return I}}case n:return I}}}function w(E){return S(E)===u}return Be.AsyncMode=c,Be.ConcurrentMode=u,Be.ContextConsumer=l,Be.ContextProvider=a,Be.Element=t,Be.ForwardRef=d,Be.Fragment=o,Be.Lazy=b,Be.Memo=p,Be.Portal=n,Be.Profiler=i,Be.StrictMode=s,Be.Suspense=m,Be.isAsyncMode=function(E){return w(E)||S(E)===c},Be.isConcurrentMode=w,Be.isContextConsumer=function(E){return S(E)===l},Be.isContextProvider=function(E){return S(E)===a},Be.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},Be.isForwardRef=function(E){return S(E)===d},Be.isFragment=function(E){return S(E)===o},Be.isLazy=function(E){return S(E)===b},Be.isMemo=function(E){return S(E)===p},Be.isPortal=function(E){return S(E)===n},Be.isProfiler=function(E){return S(E)===i},Be.isStrictMode=function(E){return S(E)===s},Be.isSuspense=function(E){return S(E)===m},Be.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===o||E===u||E===i||E===s||E===m||E===g||typeof E=="object"&&E!==null&&(E.$$typeof===b||E.$$typeof===p||E.$$typeof===a||E.$$typeof===l||E.$$typeof===d||E.$$typeof===y||E.$$typeof===x||E.$$typeof===T||E.$$typeof===f)},Be.typeOf=S,Be}var ze={};/** @license React v16.13.1
19
9
  * react-is.development.js
20
10
  *
21
11
  * Copyright (c) Facebook, Inc. and its affiliates.
22
12
  *
23
13
  * This source code is licensed under the MIT license found in the
24
14
  * LICENSE file in the root directory of this source tree.
25
- */var vc;function ox(){return vc||(vc=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function w(K){return typeof K=="string"||typeof K=="function"||K===o||K===u||K===i||K===s||K===m||K===h||typeof K=="object"&&K!==null&&(K.$$typeof===g||K.$$typeof===f||K.$$typeof===a||K.$$typeof===l||K.$$typeof===d||K.$$typeof===y||K.$$typeof===x||K.$$typeof===I||K.$$typeof===p)}function S(K){if(typeof K=="object"&&K!==null){var ce=K.$$typeof;switch(ce){case t:var oe=K.type;switch(oe){case c:case u:case o:case i:case s:case m:return oe;default:var be=oe&&oe.$$typeof;switch(be){case l:case d:case g:case f:case a:return be;default:return ce}}case n:return ce}}}var E=c,T=u,R=l,N=a,L=t,V=d,A=o,v=g,P=f,O=n,_=i,k=s,D=m,M=!1;function z(K){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(K)||S(K)===c}function j(K){return S(K)===u}function B(K){return S(K)===l}function W(K){return S(K)===a}function X(K){return typeof K=="object"&&K!==null&&K.$$typeof===t}function Q(K){return S(K)===d}function G(K){return S(K)===o}function Z(K){return S(K)===g}function te(K){return S(K)===f}function H(K){return S(K)===n}function F(K){return S(K)===i}function U(K){return S(K)===s}function ae(K){return S(K)===m}Ae.AsyncMode=E,Ae.ConcurrentMode=T,Ae.ContextConsumer=R,Ae.ContextProvider=N,Ae.Element=L,Ae.ForwardRef=V,Ae.Fragment=A,Ae.Lazy=v,Ae.Memo=P,Ae.Portal=O,Ae.Profiler=_,Ae.StrictMode=k,Ae.Suspense=D,Ae.isAsyncMode=z,Ae.isConcurrentMode=j,Ae.isContextConsumer=B,Ae.isContextProvider=W,Ae.isElement=X,Ae.isForwardRef=Q,Ae.isFragment=G,Ae.isLazy=Z,Ae.isMemo=te,Ae.isPortal=H,Ae.isProfiler=F,Ae.isStrictMode=U,Ae.isSuspense=ae,Ae.isValidElementType=w,Ae.typeOf=S})()),Ae}var xc;function Ap(){return xc||(xc=1,process.env.NODE_ENV==="production"?ss.exports=nx():ss.exports=ox()),ss.exports}/*
15
+ */var eu;function Py(){return eu||(eu=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function S(U){return typeof U=="string"||typeof U=="function"||U===o||U===u||U===i||U===s||U===m||U===g||typeof U=="object"&&U!==null&&(U.$$typeof===b||U.$$typeof===p||U.$$typeof===a||U.$$typeof===l||U.$$typeof===d||U.$$typeof===y||U.$$typeof===x||U.$$typeof===T||U.$$typeof===f)}function w(U){if(typeof U=="object"&&U!==null){var ce=U.$$typeof;switch(ce){case t:var ne=U.type;switch(ne){case c:case u:case o:case i:case s:case m:return ne;default:var de=ne&&ne.$$typeof;switch(de){case l:case d:case b:case p:case a:return de;default:return ce}}case n:return ce}}}var E=c,I=u,R=l,N=a,j=t,V=d,$=o,v=b,O=p,P=n,k=i,M=s,_=m,A=!1;function B(U){return A||(A=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(U)||w(U)===c}function L(U){return w(U)===u}function F(U){return w(U)===l}function W(U){return w(U)===a}function G(U){return typeof U=="object"&&U!==null&&U.$$typeof===t}function Q(U){return w(U)===d}function K(U){return w(U)===o}function Z(U){return w(U)===b}function se(U){return w(U)===p}function Y(U){return w(U)===n}function z(U){return w(U)===i}function q(U){return w(U)===s}function J(U){return w(U)===m}ze.AsyncMode=E,ze.ConcurrentMode=I,ze.ContextConsumer=R,ze.ContextProvider=N,ze.Element=j,ze.ForwardRef=V,ze.Fragment=$,ze.Lazy=v,ze.Memo=O,ze.Portal=P,ze.Profiler=k,ze.StrictMode=M,ze.Suspense=_,ze.isAsyncMode=B,ze.isConcurrentMode=L,ze.isContextConsumer=F,ze.isContextProvider=W,ze.isElement=G,ze.isForwardRef=Q,ze.isFragment=K,ze.isLazy=Z,ze.isMemo=se,ze.isPortal=Y,ze.isProfiler=z,ze.isStrictMode=q,ze.isSuspense=J,ze.isValidElementType=S,ze.typeOf=w})()),ze}var tu;function Gp(){return tu||(tu=1,process.env.NODE_ENV==="production"?Cs.exports=_y():Cs.exports=Py()),Cs.exports}/*
26
16
  object-assign
27
17
  (c) Sindre Sorhus
28
18
  @license MIT
29
- */var Di,Sc;function rx(){if(Sc)return Di;Sc=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function s(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Di=s()?Object.assign:function(i,a){for(var l,c=o(i),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var m in l)t.call(l,m)&&(c[m]=l[m]);if(e){u=e(l);for(var h=0;h<u.length;h++)n.call(l,u[h])&&(c[u[h]]=l[u[h]])}}return c},Di}var Ai,Cc;function Ga(){if(Cc)return Ai;Cc=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ai=e,Ai}var ji,wc;function jp(){return wc||(wc=1,ji=Function.call.bind(Object.prototype.hasOwnProperty)),ji}var Li,Tc;function sx(){if(Tc)return Li;Tc=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ga(),n={},o=jp();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function s(i,a,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(o(i,d)){var m;try{if(typeof i[d]!="function"){var h=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}m=i[d](a,d,c,l,null,t)}catch(g){m=g}if(m&&!(m instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var f=u?u():"";e("Failed "+l+" type: "+m.message+(f??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Li=s,Li}var Vi,Ic;function ix(){if(Ic)return Vi;Ic=1;var e=Ap(),t=rx(),n=Ga(),o=jp(),s=sx(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return Vi=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function m(j){var B=j&&(u&&j[u]||j[d]);if(typeof B=="function")return B}var h="<<anonymous>>",f={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:I(),arrayOf:w,element:S(),elementType:E(),instanceOf:T,node:V(),objectOf:N,oneOf:R,oneOfType:L,shape:v,exact:P};function g(j,B){return j===B?j!==0||1/j===1/B:j!==j&&B!==B}function p(j,B){this.message=j,this.data=B&&typeof B=="object"?B:{},this.stack=""}p.prototype=Error.prototype;function y(j){if(process.env.NODE_ENV!=="production")var B={},W=0;function X(G,Z,te,H,F,U,ae){if(H=H||h,U=U||te,ae!==n){if(c){var K=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw K.name="Invariant Violation",K}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ce=H+":"+te;!B[ce]&&W<3&&(i("You are manually calling a React.PropTypes validation function for the `"+U+"` prop on `"+H+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),B[ce]=!0,W++)}}return Z[te]==null?G?Z[te]===null?new p("The "+F+" `"+U+"` is marked as required "+("in `"+H+"`, but its value is `null`.")):new p("The "+F+" `"+U+"` is marked as required in "+("`"+H+"`, but its value is `undefined`.")):null:j(Z,te,H,F,U)}var Q=X.bind(null,!1);return Q.isRequired=X.bind(null,!0),Q}function x(j){function B(W,X,Q,G,Z,te){var H=W[X],F=k(H);if(F!==j){var U=D(H);return new p("Invalid "+G+" `"+Z+"` of type "+("`"+U+"` supplied to `"+Q+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return y(B)}function I(){return y(a)}function w(j){function B(W,X,Q,G,Z){if(typeof j!="function")return new p("Property `"+Z+"` of component `"+Q+"` has invalid PropType notation inside arrayOf.");var te=W[X];if(!Array.isArray(te)){var H=k(te);return new p("Invalid "+G+" `"+Z+"` of type "+("`"+H+"` supplied to `"+Q+"`, expected an array."))}for(var F=0;F<te.length;F++){var U=j(te,F,Q,G,Z+"["+F+"]",n);if(U instanceof Error)return U}return null}return y(B)}function S(){function j(B,W,X,Q,G){var Z=B[W];if(!l(Z)){var te=k(Z);return new p("Invalid "+Q+" `"+G+"` of type "+("`"+te+"` supplied to `"+X+"`, expected a single ReactElement."))}return null}return y(j)}function E(){function j(B,W,X,Q,G){var Z=B[W];if(!e.isValidElementType(Z)){var te=k(Z);return new p("Invalid "+Q+" `"+G+"` of type "+("`"+te+"` supplied to `"+X+"`, expected a single ReactElement type."))}return null}return y(j)}function T(j){function B(W,X,Q,G,Z){if(!(W[X]instanceof j)){var te=j.name||h,H=z(W[X]);return new p("Invalid "+G+" `"+Z+"` of type "+("`"+H+"` supplied to `"+Q+"`, expected ")+("instance of `"+te+"`."))}return null}return y(B)}function R(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function B(W,X,Q,G,Z){for(var te=W[X],H=0;H<j.length;H++)if(g(te,j[H]))return null;var F=JSON.stringify(j,function(ae,K){var ce=D(K);return ce==="symbol"?String(K):K});return new p("Invalid "+G+" `"+Z+"` of value `"+String(te)+"` "+("supplied to `"+Q+"`, expected one of "+F+"."))}return y(B)}function N(j){function B(W,X,Q,G,Z){if(typeof j!="function")return new p("Property `"+Z+"` of component `"+Q+"` has invalid PropType notation inside objectOf.");var te=W[X],H=k(te);if(H!=="object")return new p("Invalid "+G+" `"+Z+"` of type "+("`"+H+"` supplied to `"+Q+"`, expected an object."));for(var F in te)if(o(te,F)){var U=j(te,F,Q,G,Z+"."+F,n);if(U instanceof Error)return U}return null}return y(B)}function L(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var B=0;B<j.length;B++){var W=j[B];if(typeof W!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+M(W)+" at index "+B+"."),a}function X(Q,G,Z,te,H){for(var F=[],U=0;U<j.length;U++){var ae=j[U],K=ae(Q,G,Z,te,H,n);if(K==null)return null;K.data&&o(K.data,"expectedType")&&F.push(K.data.expectedType)}var ce=F.length>0?", expected one of type ["+F.join(", ")+"]":"";return new p("Invalid "+te+" `"+H+"` supplied to "+("`"+Z+"`"+ce+"."))}return y(X)}function V(){function j(B,W,X,Q,G){return O(B[W])?null:new p("Invalid "+Q+" `"+G+"` supplied to "+("`"+X+"`, expected a ReactNode."))}return y(j)}function A(j,B,W,X,Q){return new p((j||"React class")+": "+B+" type `"+W+"."+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Q+"`.")}function v(j){function B(W,X,Q,G,Z){var te=W[X],H=k(te);if(H!=="object")return new p("Invalid "+G+" `"+Z+"` of type `"+H+"` "+("supplied to `"+Q+"`, expected `object`."));for(var F in j){var U=j[F];if(typeof U!="function")return A(Q,G,Z,F,D(U));var ae=U(te,F,Q,G,Z+"."+F,n);if(ae)return ae}return null}return y(B)}function P(j){function B(W,X,Q,G,Z){var te=W[X],H=k(te);if(H!=="object")return new p("Invalid "+G+" `"+Z+"` of type `"+H+"` "+("supplied to `"+Q+"`, expected `object`."));var F=t({},W[X],j);for(var U in F){var ae=j[U];if(o(j,U)&&typeof ae!="function")return A(Q,G,Z,U,D(ae));if(!ae)return new p("Invalid "+G+" `"+Z+"` key `"+U+"` supplied to `"+Q+"`.\nBad object: "+JSON.stringify(W[X],null," ")+`
30
- Valid keys: `+JSON.stringify(Object.keys(j),null," "));var K=ae(te,U,Q,G,Z+"."+U,n);if(K)return K}return null}return y(B)}function O(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every(O);if(j===null||l(j))return!0;var B=m(j);if(B){var W=B.call(j),X;if(B!==j.entries){for(;!(X=W.next()).done;)if(!O(X.value))return!1}else for(;!(X=W.next()).done;){var Q=X.value;if(Q&&!O(Q[1]))return!1}}else return!1;return!0;default:return!1}}function _(j,B){return j==="symbol"?!0:B?B["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&B instanceof Symbol:!1}function k(j){var B=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":_(B,j)?"symbol":B}function D(j){if(typeof j>"u"||j===null)return""+j;var B=k(j);if(B==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return B}function M(j){var B=D(j);switch(B){case"array":case"object":return"an "+B;case"boolean":case"date":case"regexp":return"a "+B;default:return B}}function z(j){return!j.constructor||!j.constructor.name?h:j.constructor.name}return f.checkPropTypes=s,f.resetWarningCache=s.resetWarningCache,f.PropTypes=f,f},Vi}var Fi,Ec;function ax(){if(Ec)return Fi;Ec=1;var e=Ga();function t(){}function n(){}return n.resetWarningCache=t,Fi=function(){function o(a,l,c,u,d,m){if(m!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}o.isRequired=o;function s(){return o}var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:s,element:o,elementType:o,instanceOf:s,node:o,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Fi}var _c;function lx(){if(_c)return rs.exports;if(_c=1,process.env.NODE_ENV!=="production"){var e=Ap(),t=!0;rs.exports=ix()(e.isElement,t)}else rs.exports=ax()();return rs.exports}var cx=lx();const r=co(cx);function Lp(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Lp(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function ue(){for(var e,t,n=0,o="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Lp(e))&&(o&&(o+=" "),o+=t);return o}function Pr(e,t,n=!1){const o={...t};for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)){const i=s;if(i==="components"||i==="slots")o[i]={...e[i],...o[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],l=t[i];if(!l)o[i]=a||{};else if(!a)o[i]=l;else{o[i]={...l};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const u=c;o[i][u]=Pr(a[u],l[u],n)}}}else i==="className"&&n&&t.className?o.className=ue(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&n&&t.style?o.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:o[i]===void 0&&(o[i]=e[i])}return o}function Le(e,t,n=void 0){const o={};for(const s in e){const i=e[s];let a="",l=!0;for(let c=0;c<i.length;c+=1){const u=i[c];u&&(a+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(a+=" "+n[u]))}o[s]=a}return o}const Oc=e=>e,ux=()=>{let e=Oc;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Oc}}},dx=ux();function so(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}function le(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":so(7));return e.charAt(0).toUpperCase()+e.slice(1)}function kc(...e){return e.reduce((t,n)=>n==null?t:function(...s){t.apply(this,s),n.apply(this,s)},()=>{})}var is={exports:{}},Be={};/**
19
+ */var ra,nu;function My(){if(nu)return ra;nu=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function s(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ra=s()?Object.assign:function(i,a){for(var l,c=o(i),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var m in l)t.call(l,m)&&(c[m]=l[m]);if(e){u=e(l);for(var g=0;g<u.length;g++)n.call(l,u[g])&&(c[u[g]]=l[u[g]])}}return c},ra}var sa,ou;function tl(){if(ou)return sa;ou=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return sa=e,sa}var ia,ru;function Kp(){return ru||(ru=1,ia=Function.call.bind(Object.prototype.hasOwnProperty)),ia}var aa,su;function Dy(){if(su)return aa;su=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=tl(),n={},o=Kp();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function s(i,a,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(o(i,d)){var m;try{if(typeof i[d]!="function"){var g=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}m=i[d](a,d,c,l,null,t)}catch(b){m=b}if(m&&!(m instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var p=u?u():"";e("Failed "+l+" type: "+m.message+(p??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},aa=s,aa}var la,iu;function Ry(){if(iu)return la;iu=1;var e=Gp(),t=My(),n=tl(),o=Kp(),s=Dy(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return la=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function m(L){var F=L&&(u&&L[u]||L[d]);if(typeof F=="function")return F}var g="<<anonymous>>",p={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:T(),arrayOf:S,element:w(),elementType:E(),instanceOf:I,node:V(),objectOf:N,oneOf:R,oneOfType:j,shape:v,exact:O};function b(L,F){return L===F?L!==0||1/L===1/F:L!==L&&F!==F}function f(L,F){this.message=L,this.data=F&&typeof F=="object"?F:{},this.stack=""}f.prototype=Error.prototype;function y(L){if(process.env.NODE_ENV!=="production")var F={},W=0;function G(K,Z,se,Y,z,q,J){if(Y=Y||g,q=q||se,J!==n){if(c){var U=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw U.name="Invariant Violation",U}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ce=Y+":"+se;!F[ce]&&W<3&&(i("You are manually calling a React.PropTypes validation function for the `"+q+"` prop on `"+Y+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),F[ce]=!0,W++)}}return Z[se]==null?K?Z[se]===null?new f("The "+z+" `"+q+"` is marked as required "+("in `"+Y+"`, but its value is `null`.")):new f("The "+z+" `"+q+"` is marked as required in "+("`"+Y+"`, but its value is `undefined`.")):null:L(Z,se,Y,z,q)}var Q=G.bind(null,!1);return Q.isRequired=G.bind(null,!0),Q}function x(L){function F(W,G,Q,K,Z,se){var Y=W[G],z=M(Y);if(z!==L){var q=_(Y);return new f("Invalid "+K+" `"+Z+"` of type "+("`"+q+"` supplied to `"+Q+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return y(F)}function T(){return y(a)}function S(L){function F(W,G,Q,K,Z){if(typeof L!="function")return new f("Property `"+Z+"` of component `"+Q+"` has invalid PropType notation inside arrayOf.");var se=W[G];if(!Array.isArray(se)){var Y=M(se);return new f("Invalid "+K+" `"+Z+"` of type "+("`"+Y+"` supplied to `"+Q+"`, expected an array."))}for(var z=0;z<se.length;z++){var q=L(se,z,Q,K,Z+"["+z+"]",n);if(q instanceof Error)return q}return null}return y(F)}function w(){function L(F,W,G,Q,K){var Z=F[W];if(!l(Z)){var se=M(Z);return new f("Invalid "+Q+" `"+K+"` of type "+("`"+se+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return y(L)}function E(){function L(F,W,G,Q,K){var Z=F[W];if(!e.isValidElementType(Z)){var se=M(Z);return new f("Invalid "+Q+" `"+K+"` of type "+("`"+se+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return y(L)}function I(L){function F(W,G,Q,K,Z){if(!(W[G]instanceof L)){var se=L.name||g,Y=B(W[G]);return new f("Invalid "+K+" `"+Z+"` of type "+("`"+Y+"` supplied to `"+Q+"`, expected ")+("instance of `"+se+"`."))}return null}return y(F)}function R(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function F(W,G,Q,K,Z){for(var se=W[G],Y=0;Y<L.length;Y++)if(b(se,L[Y]))return null;var z=JSON.stringify(L,function(J,U){var ce=_(U);return ce==="symbol"?String(U):U});return new f("Invalid "+K+" `"+Z+"` of value `"+String(se)+"` "+("supplied to `"+Q+"`, expected one of "+z+"."))}return y(F)}function N(L){function F(W,G,Q,K,Z){if(typeof L!="function")return new f("Property `"+Z+"` of component `"+Q+"` has invalid PropType notation inside objectOf.");var se=W[G],Y=M(se);if(Y!=="object")return new f("Invalid "+K+" `"+Z+"` of type "+("`"+Y+"` supplied to `"+Q+"`, expected an object."));for(var z in se)if(o(se,z)){var q=L(se,z,Q,K,Z+"."+z,n);if(q instanceof Error)return q}return null}return y(F)}function j(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var F=0;F<L.length;F++){var W=L[F];if(typeof W!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+A(W)+" at index "+F+"."),a}function G(Q,K,Z,se,Y){for(var z=[],q=0;q<L.length;q++){var J=L[q],U=J(Q,K,Z,se,Y,n);if(U==null)return null;U.data&&o(U.data,"expectedType")&&z.push(U.data.expectedType)}var ce=z.length>0?", expected one of type ["+z.join(", ")+"]":"";return new f("Invalid "+se+" `"+Y+"` supplied to "+("`"+Z+"`"+ce+"."))}return y(G)}function V(){function L(F,W,G,Q,K){return P(F[W])?null:new f("Invalid "+Q+" `"+K+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return y(L)}function $(L,F,W,G,Q){return new f((L||"React class")+": "+F+" type `"+W+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Q+"`.")}function v(L){function F(W,G,Q,K,Z){var se=W[G],Y=M(se);if(Y!=="object")return new f("Invalid "+K+" `"+Z+"` of type `"+Y+"` "+("supplied to `"+Q+"`, expected `object`."));for(var z in L){var q=L[z];if(typeof q!="function")return $(Q,K,Z,z,_(q));var J=q(se,z,Q,K,Z+"."+z,n);if(J)return J}return null}return y(F)}function O(L){function F(W,G,Q,K,Z){var se=W[G],Y=M(se);if(Y!=="object")return new f("Invalid "+K+" `"+Z+"` of type `"+Y+"` "+("supplied to `"+Q+"`, expected `object`."));var z=t({},W[G],L);for(var q in z){var J=L[q];if(o(L,q)&&typeof J!="function")return $(Q,K,Z,q,_(J));if(!J)return new f("Invalid "+K+" `"+Z+"` key `"+q+"` supplied to `"+Q+"`.\nBad object: "+JSON.stringify(W[G],null," ")+`
20
+ Valid keys: `+JSON.stringify(Object.keys(L),null," "));var U=J(se,q,Q,K,Z+"."+q,n);if(U)return U}return null}return y(F)}function P(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(P);if(L===null||l(L))return!0;var F=m(L);if(F){var W=F.call(L),G;if(F!==L.entries){for(;!(G=W.next()).done;)if(!P(G.value))return!1}else for(;!(G=W.next()).done;){var Q=G.value;if(Q&&!P(Q[1]))return!1}}else return!1;return!0;default:return!1}}function k(L,F){return L==="symbol"?!0:F?F["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&F instanceof Symbol:!1}function M(L){var F=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":k(F,L)?"symbol":F}function _(L){if(typeof L>"u"||L===null)return""+L;var F=M(L);if(F==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return F}function A(L){var F=_(L);switch(F){case"array":case"object":return"an "+F;case"boolean":case"date":case"regexp":return"a "+F;default:return F}}function B(L){return!L.constructor||!L.constructor.name?g:L.constructor.name}return p.checkPropTypes=s,p.resetWarningCache=s.resetWarningCache,p.PropTypes=p,p},la}var ca,au;function Ny(){if(au)return ca;au=1;var e=tl();function t(){}function n(){}return n.resetWarningCache=t,ca=function(){function o(a,l,c,u,d,m){if(m!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}o.isRequired=o;function s(){return o}var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:s,element:o,elementType:o,instanceOf:s,node:o,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},ca}var lu;function $y(){if(lu)return xs.exports;if(lu=1,process.env.NODE_ENV!=="production"){var e=Gp(),t=!0;xs.exports=Ry()(e.isElement,t)}else xs.exports=Ny()();return xs.exports}var jy=$y();const r=To(jy);function wo(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}const gi="$$material";function Ay(e){for(var t=0,n,o=0,s=e.length;s>=4;++o,s-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Ly={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Vy(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Fy=/[A-Z]|^ms/g,By=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Xp=function(t){return t.charCodeAt(1)===45},cu=function(t){return t!=null&&typeof t!="boolean"},ua=Vy(function(e){return Xp(e)?e:e.replace(Fy,"-$&").toLowerCase()}),uu=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(By,function(o,s,i){return zn={name:s,styles:i,next:zn},s})}return Ly[t]!==1&&!Xp(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ys(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var s=n;if(s.anim===1)return zn={name:s.name,styles:s.styles,next:zn},s.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)zn={name:a.name,styles:a.styles,next:zn},a=a.next;var l=i.styles+";";return l}return zy(e,t,n)}}var c=n;return c}function zy(e,t,n){var o="";if(Array.isArray(n))for(var s=0;s<n.length;s++)o+=Ys(e,t,n[s])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;cu(l)&&(o+=ua(i)+":"+uu(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var c=0;c<a.length;c++)cu(a[c])&&(o+=ua(i)+":"+uu(i,a[c])+";");else{var u=Ys(e,t,a);switch(i){case"animation":case"animationName":{o+=ua(i)+":"+u+";";break}default:o+=i+"{"+u+"}"}}}return o}var du=/label:\s*([^\s;{]+)\s*(;|$)/g,zn;function Wy(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,s="";zn=void 0;var i=e[0];if(i==null||i.raw===void 0)o=!1,s+=Ys(n,t,i);else{var a=i;s+=a[0]}for(var l=1;l<e.length;l++)if(s+=Ys(n,t,e[l]),o){var c=i;s+=c[l]}du.lastIndex=0;for(var u="",d;(d=du.exec(s))!==null;)u+="-"+d[1];var m=Ay(s)+u;return{name:m,styles:s,next:zn}}/**
21
+ * @mui/styled-engine v7.3.10
22
+ *
23
+ * @license MIT
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */function Uy(e,t){const n=rb(e,t);return process.env.NODE_ENV!=="production"?(...o)=>{const s=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${s})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
27
+ `)):o.some(i=>i===void 0)&&console.error(`MUI: the styled(${s})(...args) API requires all its args to be defined.`),n(...o)}:n}function Hy(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const pu=[];function vo(e){return pu[0]=e,Wy(pu)}var ws={exports:{}},Ge={};/**
31
28
  * @license React
32
29
  * react-is.production.js
33
30
  *
@@ -35,7 +32,7 @@ Valid keys: `+JSON.stringify(Object.keys(j),null," "));var K=ae(te,U,Q,G,Z+"."+
35
32
  *
36
33
  * This source code is licensed under the MIT license found in the
37
34
  * LICENSE file in the root directory of this source tree.
38
- */var Pc;function px(){if(Pc)return Be;Pc=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function g(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case e:switch(p=p.type,p){case n:case s:case o:case c:case u:case h:return p;default:switch(p=p&&p.$$typeof,p){case a:case l:case m:case d:return p;case i:return p;default:return y}}case t:return y}}}return Be.ContextConsumer=i,Be.ContextProvider=a,Be.Element=e,Be.ForwardRef=l,Be.Fragment=n,Be.Lazy=m,Be.Memo=d,Be.Portal=t,Be.Profiler=s,Be.StrictMode=o,Be.Suspense=c,Be.SuspenseList=u,Be.isContextConsumer=function(p){return g(p)===i},Be.isContextProvider=function(p){return g(p)===a},Be.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},Be.isForwardRef=function(p){return g(p)===l},Be.isFragment=function(p){return g(p)===n},Be.isLazy=function(p){return g(p)===m},Be.isMemo=function(p){return g(p)===d},Be.isPortal=function(p){return g(p)===t},Be.isProfiler=function(p){return g(p)===s},Be.isStrictMode=function(p){return g(p)===o},Be.isSuspense=function(p){return g(p)===c},Be.isSuspenseList=function(p){return g(p)===u},Be.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===s||p===o||p===c||p===u||typeof p=="object"&&p!==null&&(p.$$typeof===m||p.$$typeof===d||p.$$typeof===a||p.$$typeof===i||p.$$typeof===l||p.$$typeof===f||p.getModuleId!==void 0)},Be.typeOf=g,Be}var ze={};/**
35
+ */var fu;function qy(){if(fu)return Ge;fu=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function b(f){if(typeof f=="object"&&f!==null){var y=f.$$typeof;switch(y){case e:switch(f=f.type,f){case n:case s:case o:case c:case u:case g:return f;default:switch(f=f&&f.$$typeof,f){case a:case l:case m:case d:return f;case i:return f;default:return y}}case t:return y}}}return Ge.ContextConsumer=i,Ge.ContextProvider=a,Ge.Element=e,Ge.ForwardRef=l,Ge.Fragment=n,Ge.Lazy=m,Ge.Memo=d,Ge.Portal=t,Ge.Profiler=s,Ge.StrictMode=o,Ge.Suspense=c,Ge.SuspenseList=u,Ge.isContextConsumer=function(f){return b(f)===i},Ge.isContextProvider=function(f){return b(f)===a},Ge.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},Ge.isForwardRef=function(f){return b(f)===l},Ge.isFragment=function(f){return b(f)===n},Ge.isLazy=function(f){return b(f)===m},Ge.isMemo=function(f){return b(f)===d},Ge.isPortal=function(f){return b(f)===t},Ge.isProfiler=function(f){return b(f)===s},Ge.isStrictMode=function(f){return b(f)===o},Ge.isSuspense=function(f){return b(f)===c},Ge.isSuspenseList=function(f){return b(f)===u},Ge.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===s||f===o||f===c||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===m||f.$$typeof===d||f.$$typeof===a||f.$$typeof===i||f.$$typeof===l||f.$$typeof===p||f.getModuleId!==void 0)},Ge.typeOf=b,Ge}var Ke={};/**
39
36
  * @license React
40
37
  * react-is.development.js
41
38
  *
@@ -43,24 +40,17 @@ Valid keys: `+JSON.stringify(Object.keys(j),null," "));var K=ae(te,U,Q,G,Z+"."+
43
40
  *
44
41
  * This source code is licensed under the MIT license found in the
45
42
  * LICENSE file in the root directory of this source tree.
46
- */var Rc;function fx(){return Rc||(Rc=1,process.env.NODE_ENV!=="production"&&(function(){function e(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case t:switch(p=p.type,p){case o:case i:case s:case u:case d:case f:return p;default:switch(p=p&&p.$$typeof,p){case l:case c:case h:case m:return p;case a:return p;default:return y}}case n:return y}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");ze.ContextConsumer=a,ze.ContextProvider=l,ze.Element=t,ze.ForwardRef=c,ze.Fragment=o,ze.Lazy=h,ze.Memo=m,ze.Portal=n,ze.Profiler=i,ze.StrictMode=s,ze.Suspense=u,ze.SuspenseList=d,ze.isContextConsumer=function(p){return e(p)===a},ze.isContextProvider=function(p){return e(p)===l},ze.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},ze.isForwardRef=function(p){return e(p)===c},ze.isFragment=function(p){return e(p)===o},ze.isLazy=function(p){return e(p)===h},ze.isMemo=function(p){return e(p)===m},ze.isPortal=function(p){return e(p)===n},ze.isProfiler=function(p){return e(p)===i},ze.isStrictMode=function(p){return e(p)===s},ze.isSuspense=function(p){return e(p)===u},ze.isSuspenseList=function(p){return e(p)===d},ze.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===o||p===i||p===s||p===u||p===d||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===m||p.$$typeof===l||p.$$typeof===a||p.$$typeof===c||p.$$typeof===g||p.getModuleId!==void 0)},ze.typeOf=e})()),ze}var Nc;function mx(){return Nc||(Nc=1,process.env.NODE_ENV==="production"?is.exports=px():is.exports=fx()),is.exports}var _s=mx();function Zt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Vp(e){if(C.isValidElement(e)||_s.isValidElementType(e)||!Zt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Vp(e[n])}),t}function kt(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return Zt(e)&&Zt(t)&&Object.keys(t).forEach(s=>{C.isValidElement(t[s])||_s.isValidElementType(t[s])?o[s]=t[s]:Zt(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&Zt(e[s])?o[s]=kt(e[s],t[s],n):n.clone?o[s]=Zt(t[s])?Vp(t[s]):t[s]:o[s]=t[s]}),o}function xr(e,t){return t?kt(e,t,{clone:!1}):e}const zn=process.env.NODE_ENV!=="production"?r.oneOfType([r.number,r.string,r.object,r.array]):{};function Mc(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,s)=>{var a,l;const i=/min-width:\s*([0-9.]+)/;return+(((a=o.match(i))==null?void 0:a[1])||0)-+(((l=s.match(i))==null?void 0:l[1])||0)});return n.length?n.reduce((o,s)=>{const i=t[s];return delete o[s],o[s]=i,o},{...t}):t}function hx(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function gx(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
47
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`);return null}const[,o,s]=n,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(s).up(i)}function bx(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...l)=>t(e.breakpoints.up(...l),a),i.down=(...l)=>t(e.breakpoints.down(...l),a),i.between=(...l)=>t(e.breakpoints.between(...l),a),i.only=(...l)=>t(e.breakpoints.only(...l),a),i.not=(...l)=>{const c=t(e.breakpoints.not(...l),a);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const o={},s=i=>(n(o,i),o);return n(s),{...e,containerQueries:s}}const Qs={xs:0,sm:600,md:900,lg:1200,xl:1536},$c={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Qs[e]}px)`},yx={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Qs[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function xn(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const i=o.breakpoints||$c;return t.reduce((a,l,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=o.breakpoints||$c;return Object.keys(t).reduce((a,l)=>{if(hx(i.keys,l)){const c=gx(o.containerQueries?o:yx,l);c&&(a[c]=n(t[l],l))}else if(Object.keys(i.values||Qs).includes(l)){const c=i.up(l);a[c]=n(t[l],l)}else{const c=l;a[c]=t[c]}return a},{})}return n(t)}function vx(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((o,s)=>{const i=e.up(s);return o[i]={},o},{}))||{}}function Dc(e,t){return e.reduce((n,o)=>{const s=n[o];return(!s||Object.keys(s).length===0)&&delete n[o],n},t)}function Zs(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((s,i)=>s&&s[i]?s[i]:null,e);if(o!=null)return o}return t.split(".").reduce((o,s)=>o&&o[s]!=null?o[s]:null,e)}function Os(e,t,n,o=n){let s;return typeof e=="function"?s=e(n):Array.isArray(e)?s=e[n]||o:s=Zs(e,n)||o,t&&(s=t(s,o,e)),s}function it(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:s}=e,i=a=>{if(a[t]==null)return null;const l=a[t],c=a.theme,u=Zs(c,o)||{};return xn(a,l,m=>{let h=Os(u,s,m);return m===h&&typeof m=="string"&&(h=Os(u,s,`${t}${m==="default"?"":le(m)}`,m)),n===!1?h:{[n]:h}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:zn}:{},i.filterProps=[t],i}function xx(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Sx={m:"margin",p:"padding"},Cx={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ac={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},wx=xx(e=>{if(e.length>2)if(Ac[e])e=Ac[e];else return[e];const[t,n]=e.split(""),o=Sx[t],s=Cx[n]||"";return Array.isArray(s)?s.map(i=>o+i):[o+s]}),Js=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ei=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Tx=[...Js,...ei];function Wr(e,t,n,o){const s=Zs(e,t,!0)??n;return typeof s=="number"||typeof s=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${i}.`),typeof s=="string"?s.startsWith("var(")&&i===0?0:s.startsWith("var(")&&i===1?s:`calc(${i} * ${s})`:s*i):Array.isArray(s)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>s.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${a} > ${s.length-1}, you need to add the missing values.`].join(`
43
+ */var mu;function Yy(){return mu||(mu=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var y=f.$$typeof;switch(y){case t:switch(f=f.type,f){case o:case i:case s:case u:case d:case p:return f;default:switch(f=f&&f.$$typeof,f){case l:case c:case g:case m:return f;case a:return f;default:return y}}case n:return y}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");Ke.ContextConsumer=a,Ke.ContextProvider=l,Ke.Element=t,Ke.ForwardRef=c,Ke.Fragment=o,Ke.Lazy=g,Ke.Memo=m,Ke.Portal=n,Ke.Profiler=i,Ke.StrictMode=s,Ke.Suspense=u,Ke.SuspenseList=d,Ke.isContextConsumer=function(f){return e(f)===a},Ke.isContextProvider=function(f){return e(f)===l},Ke.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},Ke.isForwardRef=function(f){return e(f)===c},Ke.isFragment=function(f){return e(f)===o},Ke.isLazy=function(f){return e(f)===g},Ke.isMemo=function(f){return e(f)===m},Ke.isPortal=function(f){return e(f)===n},Ke.isProfiler=function(f){return e(f)===i},Ke.isStrictMode=function(f){return e(f)===s},Ke.isSuspense=function(f){return e(f)===u},Ke.isSuspenseList=function(f){return e(f)===d},Ke.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===o||f===i||f===s||f===u||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===g||f.$$typeof===m||f.$$typeof===l||f.$$typeof===a||f.$$typeof===c||f.$$typeof===b||f.getModuleId!==void 0)},Ke.typeOf=e})()),Ke}var hu;function Gy(){return hu||(hu=1,process.env.NODE_ENV==="production"?ws.exports=qy():ws.exports=Yy()),ws.exports}var Gs=Gy();function fn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Qp(e){if(C.isValidElement(e)||Gs.isValidElementType(e)||!fn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Qp(e[n])}),t}function jt(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return fn(e)&&fn(t)&&Object.keys(t).forEach(s=>{C.isValidElement(t[s])||Gs.isValidElementType(t[s])?o[s]=t[s]:fn(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&fn(e[s])?o[s]=jt(e[s],t[s],n):n.clone?o[s]=fn(t[s])?Qp(t[s]):t[s]:o[s]=t[s]}),o}const Ky=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function Xy(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...s}=e,i=Ky(t),a=Object.keys(i);function l(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n})`}function c(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-o/100}${n})`}function u(g,p){const b=a.indexOf(p);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(b!==-1&&typeof t[a[b]]=="number"?t[a[b]]:p)-o/100}${n})`}function d(g){return a.indexOf(g)+1<a.length?u(g,a[a.indexOf(g)+1]):l(g)}function m(g){const p=a.indexOf(g);return p===0?l(a[1]):p===a.length-1?c(a[p]):u(g,a[a.indexOf(g)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:l,down:c,between:u,only:d,not:m,unit:n,...s}}function gu(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,s)=>{var a,l;const i=/min-width:\s*([0-9.]+)/;return+(((a=o.match(i))==null?void 0:a[1])||0)-+(((l=s.match(i))==null?void 0:l[1])||0)});return n.length?n.reduce((o,s)=>{const i=t[s];return delete o[s],o[s]=i,o},{...t}):t}function Qy(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Zy(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
44
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`);return null}const[,o,s]=n,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(s).up(i)}function Jy(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...l)=>t(e.breakpoints.up(...l),a),i.down=(...l)=>t(e.breakpoints.down(...l),a),i.between=(...l)=>t(e.breakpoints.between(...l),a),i.only=(...l)=>t(e.breakpoints.only(...l),a),i.not=(...l)=>{const c=t(e.breakpoints.not(...l),a);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const o={},s=i=>(n(o,i),o);return n(s),{...e,containerQueries:s}}const ev={borderRadius:4},eo=process.env.NODE_ENV!=="production"?r.oneOfType([r.number,r.string,r.object,r.array]):{};function Pr(e,t){return t?jt(e,t,{clone:!1}):e}const bi={xs:0,sm:600,md:900,lg:1200,xl:1536},bu={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${bi[e]}px)`},tv={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:bi[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Nn(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const i=o.breakpoints||bu;return t.reduce((a,l,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=o.breakpoints||bu;return Object.keys(t).reduce((a,l)=>{if(Qy(i.keys,l)){const c=Zy(o.containerQueries?o:tv,l);c&&(a[c]=n(t[l],l))}else if(Object.keys(i.values||bi).includes(l)){const c=i.up(l);a[c]=n(t[l],l)}else{const c=l;a[c]=t[c]}return a},{})}return n(t)}function nv(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((o,s)=>{const i=e.up(s);return o[i]={},o},{}))||{}}function yu(e,t){return e.reduce((n,o)=>{const s=n[o];return(!s||Object.keys(s).length===0)&&delete n[o],n},t)}function me(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":wo(7));return e.charAt(0).toUpperCase()+e.slice(1)}function yi(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((s,i)=>s&&s[i]?s[i]:null,e);if(o!=null)return o}return t.split(".").reduce((o,s)=>o&&o[s]!=null?o[s]:null,e)}function Ks(e,t,n,o=n){let s;return typeof e=="function"?s=e(n):Array.isArray(e)?s=e[n]||o:s=yi(e,n)||o,t&&(s=t(s,o,e)),s}function ht(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:s}=e,i=a=>{if(a[t]==null)return null;const l=a[t],c=a.theme,u=yi(c,o)||{};return Nn(a,l,m=>{let g=Ks(u,s,m);return m===g&&typeof m=="string"&&(g=Ks(u,s,`${t}${m==="default"?"":me(m)}`,m)),n===!1?g:{[n]:g}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:eo}:{},i.filterProps=[t],i}function ov(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const rv={m:"margin",p:"padding"},sv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vu={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},iv=ov(e=>{if(e.length>2)if(vu[e])e=vu[e];else return[e];const[t,n]=e.split(""),o=rv[t],s=sv[n]||"";return Array.isArray(s)?s.map(i=>o+i):[o+s]}),vi=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],xi=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],av=[...vi,...xi];function rs(e,t,n,o){const s=yi(e,t,!0)??n;return typeof s=="number"||typeof s=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${i}.`),typeof s=="string"?s.startsWith("var(")&&i===0?0:s.startsWith("var(")&&i===1?s:`calc(${i} * ${s})`:s*i):Array.isArray(s)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>s.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${a} > ${s.length-1}, you need to add the missing values.`].join(`
48
45
  `)):console.error([`MUI: The \`theme.${t}\` 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.${t}\` as a number.`].join(`
49
46
  `)));const l=s[a];return i>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof s=="function"?s:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${s}) is invalid.`,"It should be a number, an array or a function."].join(`
50
- `)),()=>{})}function Ka(e){return Wr(e,"spacing",8,"spacing")}function Ur(e,t){return typeof t=="string"||t==null?t:e(t)}function Ix(e,t){return n=>e.reduce((o,s)=>(o[s]=Ur(t,n),o),{})}function Ex(e,t,n,o){if(!t.includes(n))return null;const s=wx(n),i=Ix(s,o),a=e[n];return xn(e,a,i)}function Fp(e,t){const n=Ka(e.theme);return Object.keys(e).map(o=>Ex(e,t,o,n)).reduce(xr,{})}function et(e){return Fp(e,Js)}et.propTypes=process.env.NODE_ENV!=="production"?Js.reduce((e,t)=>(e[t]=zn,e),{}):{};et.filterProps=Js;function tt(e){return Fp(e,ei)}tt.propTypes=process.env.NODE_ENV!=="production"?ei.reduce((e,t)=>(e[t]=zn,e),{}):{};tt.filterProps=ei;process.env.NODE_ENV!=="production"&&Tx.reduce((e,t)=>(e[t]=zn,e),{});function ti(...e){const t=e.reduce((o,s)=>(s.filterProps.forEach(i=>{o[i]=s}),o),{}),n=o=>Object.keys(o).reduce((s,i)=>t[i]?xr(s,t[i](o)):s,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,s)=>Object.assign(o,s.propTypes),{}):{},n.filterProps=e.reduce((o,s)=>o.concat(s.filterProps),[]),n}function $t(e){return typeof e!="number"?e:`${e}px solid`}function Vt(e,t){return it({prop:e,themeKey:"borders",transform:t})}const _x=Vt("border",$t),Ox=Vt("borderTop",$t),kx=Vt("borderRight",$t),Px=Vt("borderBottom",$t),Rx=Vt("borderLeft",$t),Nx=Vt("borderColor"),Mx=Vt("borderTopColor"),$x=Vt("borderRightColor"),Dx=Vt("borderBottomColor"),Ax=Vt("borderLeftColor"),jx=Vt("outline",$t),Lx=Vt("outlineColor"),ni=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Wr(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:Ur(t,o)});return xn(e,e.borderRadius,n)}return null};ni.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:zn}:{};ni.filterProps=["borderRadius"];ti(_x,Ox,kx,Px,Rx,Nx,Mx,$x,Dx,Ax,ni,jx,Lx);const oi=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Wr(e.theme,"spacing",8,"gap"),n=o=>({gap:Ur(t,o)});return xn(e,e.gap,n)}return null};oi.propTypes=process.env.NODE_ENV!=="production"?{gap:zn}:{};oi.filterProps=["gap"];const ri=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Wr(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:Ur(t,o)});return xn(e,e.columnGap,n)}return null};ri.propTypes=process.env.NODE_ENV!=="production"?{columnGap:zn}:{};ri.filterProps=["columnGap"];const si=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Wr(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:Ur(t,o)});return xn(e,e.rowGap,n)}return null};si.propTypes=process.env.NODE_ENV!=="production"?{rowGap:zn}:{};si.filterProps=["rowGap"];const Vx=it({prop:"gridColumn"}),Fx=it({prop:"gridRow"}),Bx=it({prop:"gridAutoFlow"}),zx=it({prop:"gridAutoColumns"}),Wx=it({prop:"gridAutoRows"}),Ux=it({prop:"gridTemplateColumns"}),qx=it({prop:"gridTemplateRows"}),Hx=it({prop:"gridTemplateAreas"}),Yx=it({prop:"gridArea"});ti(oi,ri,si,Vx,Fx,Bx,zx,Wx,Ux,qx,Hx,Yx);function Mo(e,t){return t==="grey"?t:e}const Gx=it({prop:"color",themeKey:"palette",transform:Mo}),Kx=it({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Mo}),Xx=it({prop:"backgroundColor",themeKey:"palette",transform:Mo});ti(Gx,Kx,Xx);function _t(e){return e<=1&&e!==0?`${e*100}%`:e}const Qx=it({prop:"width",transform:_t}),Xa=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var s,i,a,l,c;const o=((a=(i=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||Qs[n];return o?((c=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:_t(n)}};return xn(e,e.maxWidth,t)}return null};Xa.filterProps=["maxWidth"];const Zx=it({prop:"minWidth",transform:_t}),Jx=it({prop:"height",transform:_t}),eS=it({prop:"maxHeight",transform:_t}),tS=it({prop:"minHeight",transform:_t});it({prop:"size",cssProperty:"width",transform:_t});it({prop:"size",cssProperty:"height",transform:_t});const nS=it({prop:"boxSizing"});ti(Qx,Xa,Zx,Jx,eS,tS,nS);const qr={border:{themeKey:"borders",transform:$t},borderTop:{themeKey:"borders",transform:$t},borderRight:{themeKey:"borders",transform:$t},borderBottom:{themeKey:"borders",transform:$t},borderLeft:{themeKey:"borders",transform:$t},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$t},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ni},color:{themeKey:"palette",transform:Mo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Mo},backgroundColor:{themeKey:"palette",transform:Mo},p:{style:tt},pt:{style:tt},pr:{style:tt},pb:{style:tt},pl:{style:tt},px:{style:tt},py:{style:tt},padding:{style:tt},paddingTop:{style:tt},paddingRight:{style:tt},paddingBottom:{style:tt},paddingLeft:{style:tt},paddingX:{style:tt},paddingY:{style:tt},paddingInline:{style:tt},paddingInlineStart:{style:tt},paddingInlineEnd:{style:tt},paddingBlock:{style:tt},paddingBlockStart:{style:tt},paddingBlockEnd:{style:tt},m:{style:et},mt:{style:et},mr:{style:et},mb:{style:et},ml:{style:et},mx:{style:et},my:{style:et},margin:{style:et},marginTop:{style:et},marginRight:{style:et},marginBottom:{style:et},marginLeft:{style:et},marginX:{style:et},marginY:{style:et},marginInline:{style:et},marginInlineStart:{style:et},marginInlineEnd:{style:et},marginBlock:{style:et},marginBlockStart:{style:et},marginBlockEnd:{style:et},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:oi},rowGap:{style:si},columnGap:{style:ri},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:_t},maxWidth:{style:Xa},minWidth:{transform:_t},height:{transform:_t},maxHeight:{transform:_t},minHeight:{transform:_t},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function oS(...e){const t=e.reduce((o,s)=>o.concat(Object.keys(s)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function rS(e,t){return typeof e=="function"?e(t):e}function sS(){function e(n,o,s,i){const a={[n]:o,theme:s},l=i[n];if(!l)return{[n]:o};const{cssProperty:c=n,themeKey:u,transform:d,style:m}=l;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[n]:o};const h=Zs(s,u)||{};return m?m(a):xn(a,o,g=>{let p=Os(h,d,g);return g===p&&typeof g=="string"&&(p=Os(h,d,`${n}${g==="default"?"":le(g)}`,g)),c===!1?p:{[c]:p}})}function t(n){const{sx:o,theme:s={},nested:i}=n||{};if(!o)return null;const a=s.unstable_sxConfig??qr;function l(c){let u=c;if(typeof c=="function")u=c(s);else if(typeof c!="object")return c;if(!u)return null;const d=vx(s.breakpoints),m=Object.keys(d);let h=d;return Object.keys(u).forEach(f=>{const g=rS(u[f],s);if(g!=null)if(typeof g=="object")if(a[f])h=xr(h,e(f,g,s,a));else{const p=xn({theme:s},g,y=>({[f]:y}));oS(p,g)?h[f]=t({sx:g,theme:s,nested:!0}):h=xr(h,p)}else h=xr(h,e(f,g,s,a))}),!i&&s.modularCssLayers?{"@layer sx":Mc(s,Dc(m,h))}:Mc(s,Dc(m,h))}return Array.isArray(o)?o.map(l):l(o)}return t}const Bo=sS();Bo.filterProps=["sx"];const iS=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??qr;return Object.keys(e).forEach(s=>{n[s]?t.systemProps[s]=e[s]:t.otherProps[s]=e[s]}),t};function aS(e){const{sx:t,...n}=e,{systemProps:o,otherProps:s}=iS(n);let i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return Zt(l)?{...o,...l}:o}:i={...o,...t},{...s,sx:i}}function lS(e){for(var t=0,n,o=0,s=e.length;s>=4;++o,s-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var cS={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function uS(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var dS=/[A-Z]|^ms/g,pS=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Bp=function(t){return t.charCodeAt(1)===45},jc=function(t){return t!=null&&typeof t!="boolean"},Bi=uS(function(e){return Bp(e)?e:e.replace(dS,"-$&").toLowerCase()}),Lc=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(pS,function(o,s,i){return Mn={name:s,styles:i,next:Mn},s})}return cS[t]!==1&&!Bp(t)&&typeof n=="number"&&n!==0?n+"px":n};function ks(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var s=n;if(s.anim===1)return Mn={name:s.name,styles:s.styles,next:Mn},s.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Mn={name:a.name,styles:a.styles,next:Mn},a=a.next;var l=i.styles+";";return l}return fS(e,t,n)}}var c=n;return c}function fS(e,t,n){var o="";if(Array.isArray(n))for(var s=0;s<n.length;s++)o+=ks(e,t,n[s])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;jc(l)&&(o+=Bi(i)+":"+Lc(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var c=0;c<a.length;c++)jc(a[c])&&(o+=Bi(i)+":"+Lc(i,a[c])+";");else{var u=ks(e,t,a);switch(i){case"animation":case"animationName":{o+=Bi(i)+":"+u+";";break}default:o+=i+"{"+u+"}"}}}return o}var Vc=/label:\s*([^\s;{]+)\s*(;|$)/g,Mn;function mS(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,s="";Mn=void 0;var i=e[0];if(i==null||i.raw===void 0)o=!1,s+=ks(n,t,i);else{var a=i;s+=a[0]}for(var l=1;l<e.length;l++)if(s+=ks(n,t,e[l]),o){var c=i;s+=c[l]}Vc.lastIndex=0;for(var u="",d;(d=Vc.exec(s))!==null;)u+="-"+d[1];var m=lS(s)+u;return{name:m,styles:s,next:Mn}}/**
51
- * @mui/styled-engine v7.3.10
52
- *
53
- * @license MIT
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE file in the root directory of this source tree.
56
- */function hS(e,t){const n=Uh(e,t);return process.env.NODE_ENV!=="production"?(...o)=>{const s=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${s})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
57
- `)):o.some(i=>i===void 0)&&console.error(`MUI: the styled(${s})(...args) API requires all its args to be defined.`),n(...o)}:n}function gS(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Fc=[];function oo(e){return Fc[0]=e,mS(Fc)}const bS=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function yS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...s}=e,i=bS(t),a=Object.keys(i);function l(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function c(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-o/100}${n})`}function u(h,f){const g=a.indexOf(f);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:f)-o/100}${n})`}function d(h){return a.indexOf(h)+1<a.length?u(h,a[a.indexOf(h)+1]):l(h)}function m(h){const f=a.indexOf(h);return f===0?l(a[1]):f===a.length-1?c(a[f]):u(h,a[a.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:l,down:c,between:u,only:d,not:m,unit:n,...s}}const vS={borderRadius:4};function zp(e=8,t=Ka({spacing:e})){if(e.mui)return e;const n=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function xS(e,t){var o;const n=this;if(n.vars){if(!((o=n.colorSchemes)!=null&&o[e])||typeof n.getColorSchemeSelector!="function")return{};let s=n.getColorSchemeSelector(e);return s==="&"?t:((s.includes("data-")||s.includes("."))&&(s=`*:where(${s.replace(/\s*&$/,"")}) &`),{[s]:t})}return n.palette.mode===e?t:{}}function Qa(e={},...t){const{breakpoints:n={},palette:o={},spacing:s,shape:i={},...a}=e,l=yS(n),c=zp(s);let u=kt({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:c,shape:{...vS,...i}},a);return u=bx(u),u.applyStyles=xS,u=t.reduce((d,m)=>kt(d,m),u),u.unstable_sxConfig={...qr,...a==null?void 0:a.unstable_sxConfig},u.unstable_sx=function(m){return Bo({sx:m,theme:this})},u}function SS(e){return Object.keys(e).length===0}function Wp(e=null){const t=C.useContext(Fn.ThemeContext);return!t||SS(t)?e:t}const CS=Qa();function Up(e=CS){return Wp(e)}const wS={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Me(e,t,n="Mui"){const o=wS[t];return o?`${n}-${o}`:`${dx.generate(e)}-${t}`}function _e(e,t,n="Mui"){const o={};return t.forEach(s=>{o[s]=Me(e,s,n)}),o}function qp(e,t=""){return e.displayName||e.name||t}function Bc(e,t,n){const o=qp(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function TS(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return qp(e,"Component");if(typeof e=="object")switch(e.$$typeof){case _s.ForwardRef:return Bc(e,e.render,"ForwardRef");case _s.Memo:return Bc(e,e.type,"memo");default:return}}}function Hp(e){const{variants:t,...n}=e,o={variants:t,style:oo(n),isProcessed:!0};return o.style===n||t&&t.forEach(s=>{typeof s.style!="function"&&(s.style=oo(s.style))}),o}const IS=Qa();function Ht(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function to(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function ES(e){return e?(t,n)=>n[e]:null}function _S(e,t,n){e.theme=RS(e.theme)?n:e.theme[t]||e.theme}function gs(e,t,n){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(s=>gs(e,s,n));if(Array.isArray(o==null?void 0:o.variants)){let s;if(o.isProcessed)s=n?to(o.style,n):o.style;else{const{variants:i,...a}=o;s=n?to(oo(a),n):a}return Yp(e,o.variants,[s],n)}return o!=null&&o.isProcessed?n?to(oo(o.style),n):o.style:n?to(oo(o),n):o}function Yp(e,t,n=[],o=void 0){var i;let s;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(s??(s={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(s))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&((i=e.ownerState)==null?void 0:i[c])!==l.props[c])continue e;typeof l.style=="function"?(s??(s={...e,...e.ownerState,ownerState:e.ownerState}),n.push(o?to(oo(l.style(s)),o):l.style(s))):n.push(o?to(oo(l.style),o):l.style)}return n}function OS(e={}){const{themeId:t,defaultTheme:n=IS,rootShouldForwardProp:o=Ht,slotShouldForwardProp:s=Ht}=e;function i(l){_S(l,t,n)}return(l,c={})=>{gS(l,T=>T.filter(R=>R!==Bo));const{name:u,slot:d,skipVariantsResolver:m,skipSx:h,overridesResolver:f=ES(Gp(d)),...g}=c,p=u&&u.startsWith("Mui")||d?"components":"custom",y=m!==void 0?m:d&&d!=="Root"&&d!=="root"||!1,x=h||!1;let I=Ht;d==="Root"||d==="root"?I=o:d?I=s:NS(l)&&(I=void 0);const w=hS(l,{shouldForwardProp:I,label:PS(u,d),...g}),S=T=>{if(T.__emotion_real===T)return T;if(typeof T=="function")return function(N){return gs(N,T,N.theme.modularCssLayers?p:void 0)};if(Zt(T)){const R=Hp(T);return function(L){return R.variants?gs(L,R,L.theme.modularCssLayers?p:void 0):L.theme.modularCssLayers?to(R.style,p):R.style}}return T},E=(...T)=>{const R=[],N=T.map(S),L=[];if(R.push(i),u&&f&&L.push(function(P){var D,M;const _=(M=(D=P.theme.components)==null?void 0:D[u])==null?void 0:M.styleOverrides;if(!_)return null;const k={};for(const z in _)k[z]=gs(P,_[z],P.theme.modularCssLayers?"theme":void 0);return f(P,k)}),u&&!y&&L.push(function(P){var k,D;const O=P.theme,_=(D=(k=O==null?void 0:O.components)==null?void 0:k[u])==null?void 0:D.variants;return _?Yp(P,_,[],P.theme.modularCssLayers?"theme":void 0):null}),x||L.push(Bo),Array.isArray(N[0])){const v=N.shift(),P=new Array(R.length).fill(""),O=new Array(L.length).fill("");let _;_=[...P,...v,...O],_.raw=[...P,...v.raw,...O],R.unshift(_)}const V=[...R,...N,...L],A=w(...V);return l.muiName&&(A.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(A.displayName=kS(u,d,l)),A};return w.withConfig&&(E.withConfig=w.withConfig),E}}function kS(e,t,n){return e?`${e}${le(t||"")}`:`Styled(${TS(n)})`}function PS(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Gp(t||"Root")}`),n}function RS(e){for(const t in e)return!1;return!0}function NS(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Gp(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Kp(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:Pr(t.components[n].defaultProps,o)}function MS({props:e,name:t,defaultTheme:n,themeId:o}){let s=Up(n);return s=s[o]||s,Kp({theme:s,name:t,props:e})}const Ln=typeof window<"u"?C.useLayoutEffect:C.useEffect;function $S(e,t,n,o,s){const[i,a]=C.useState(()=>s&&n?n(e).matches:o?o(e).matches:t);return Ln(()=>{if(!n)return;const l=n(e),c=()=>{a(l.matches)};return c(),l.addEventListener("change",c),()=>{l.removeEventListener("change",c)}},[e,n]),i}const DS={...C},Xp=DS.useSyncExternalStore;function AS(e,t,n,o,s){const i=C.useCallback(()=>t,[t]),a=C.useMemo(()=>{if(s&&n)return()=>n(e).matches;if(o!==null){const{matches:d}=o(e);return()=>d}return i},[i,e,o,s,n]),[l,c]=C.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const d=n(e);return[()=>d.matches,m=>(d.addEventListener("change",m),()=>{d.removeEventListener("change",m)})]},[i,n,e]);return Xp(c,l,a)}function Qp(e={}){const{themeId:t}=e;return function(o,s={}){let i=Wp();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:c=a?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:d=!1}=Kp({name:"MuiUseMediaQuery",props:s,theme:i});process.env.NODE_ENV!=="production"&&typeof o=="function"&&i===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
47
+ `)),()=>{})}function nl(e){return rs(e,"spacing",8,"spacing")}function ss(e,t){return typeof t=="string"||t==null?t:e(t)}function lv(e,t){return n=>e.reduce((o,s)=>(o[s]=ss(t,n),o),{})}function cv(e,t,n,o){if(!t.includes(n))return null;const s=iv(n),i=lv(s,o),a=e[n];return Nn(e,a,i)}function Zp(e,t){const n=nl(e.theme);return Object.keys(e).map(o=>cv(e,t,o,n)).reduce(Pr,{})}function dt(e){return Zp(e,vi)}dt.propTypes=process.env.NODE_ENV!=="production"?vi.reduce((e,t)=>(e[t]=eo,e),{}):{};dt.filterProps=vi;function pt(e){return Zp(e,xi)}pt.propTypes=process.env.NODE_ENV!=="production"?xi.reduce((e,t)=>(e[t]=eo,e),{}):{};pt.filterProps=xi;process.env.NODE_ENV!=="production"&&av.reduce((e,t)=>(e[t]=eo,e),{});function Jp(e=8,t=nl({spacing:e})){if(e.mui)return e;const n=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function Ci(...e){const t=e.reduce((o,s)=>(s.filterProps.forEach(i=>{o[i]=s}),o),{}),n=o=>Object.keys(o).reduce((s,i)=>t[i]?Pr(s,t[i](o)):s,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,s)=>Object.assign(o,s.propTypes),{}):{},n.filterProps=e.reduce((o,s)=>o.concat(s.filterProps),[]),n}function qt(e){return typeof e!="number"?e:`${e}px solid`}function Zt(e,t){return ht({prop:e,themeKey:"borders",transform:t})}const uv=Zt("border",qt),dv=Zt("borderTop",qt),pv=Zt("borderRight",qt),fv=Zt("borderBottom",qt),mv=Zt("borderLeft",qt),hv=Zt("borderColor"),gv=Zt("borderTopColor"),bv=Zt("borderRightColor"),yv=Zt("borderBottomColor"),vv=Zt("borderLeftColor"),xv=Zt("outline",qt),Cv=Zt("outlineColor"),wi=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=rs(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:ss(t,o)});return Nn(e,e.borderRadius,n)}return null};wi.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:eo}:{};wi.filterProps=["borderRadius"];Ci(uv,dv,pv,fv,mv,hv,gv,bv,yv,vv,wi,xv,Cv);const Si=e=>{if(e.gap!==void 0&&e.gap!==null){const t=rs(e.theme,"spacing",8,"gap"),n=o=>({gap:ss(t,o)});return Nn(e,e.gap,n)}return null};Si.propTypes=process.env.NODE_ENV!=="production"?{gap:eo}:{};Si.filterProps=["gap"];const Ti=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=rs(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:ss(t,o)});return Nn(e,e.columnGap,n)}return null};Ti.propTypes=process.env.NODE_ENV!=="production"?{columnGap:eo}:{};Ti.filterProps=["columnGap"];const Ii=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=rs(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:ss(t,o)});return Nn(e,e.rowGap,n)}return null};Ii.propTypes=process.env.NODE_ENV!=="production"?{rowGap:eo}:{};Ii.filterProps=["rowGap"];const wv=ht({prop:"gridColumn"}),Sv=ht({prop:"gridRow"}),Tv=ht({prop:"gridAutoFlow"}),Iv=ht({prop:"gridAutoColumns"}),Ev=ht({prop:"gridAutoRows"}),kv=ht({prop:"gridTemplateColumns"}),Ov=ht({prop:"gridTemplateRows"}),_v=ht({prop:"gridTemplateAreas"}),Pv=ht({prop:"gridArea"});Ci(Si,Ti,Ii,wv,Sv,Tv,Iv,Ev,kv,Ov,_v,Pv);function Go(e,t){return t==="grey"?t:e}const Mv=ht({prop:"color",themeKey:"palette",transform:Go}),Dv=ht({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Go}),Rv=ht({prop:"backgroundColor",themeKey:"palette",transform:Go});Ci(Mv,Dv,Rv);function Nt(e){return e<=1&&e!==0?`${e*100}%`:e}const Nv=ht({prop:"width",transform:Nt}),ol=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var s,i,a,l,c;const o=((a=(i=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||bi[n];return o?((c=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Nt(n)}};return Nn(e,e.maxWidth,t)}return null};ol.filterProps=["maxWidth"];const $v=ht({prop:"minWidth",transform:Nt}),jv=ht({prop:"height",transform:Nt}),Av=ht({prop:"maxHeight",transform:Nt}),Lv=ht({prop:"minHeight",transform:Nt});ht({prop:"size",cssProperty:"width",transform:Nt});ht({prop:"size",cssProperty:"height",transform:Nt});const Vv=ht({prop:"boxSizing"});Ci(Nv,ol,$v,jv,Av,Lv,Vv);const is={border:{themeKey:"borders",transform:qt},borderTop:{themeKey:"borders",transform:qt},borderRight:{themeKey:"borders",transform:qt},borderBottom:{themeKey:"borders",transform:qt},borderLeft:{themeKey:"borders",transform:qt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:qt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:wi},color:{themeKey:"palette",transform:Go},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Go},backgroundColor:{themeKey:"palette",transform:Go},p:{style:pt},pt:{style:pt},pr:{style:pt},pb:{style:pt},pl:{style:pt},px:{style:pt},py:{style:pt},padding:{style:pt},paddingTop:{style:pt},paddingRight:{style:pt},paddingBottom:{style:pt},paddingLeft:{style:pt},paddingX:{style:pt},paddingY:{style:pt},paddingInline:{style:pt},paddingInlineStart:{style:pt},paddingInlineEnd:{style:pt},paddingBlock:{style:pt},paddingBlockStart:{style:pt},paddingBlockEnd:{style:pt},m:{style:dt},mt:{style:dt},mr:{style:dt},mb:{style:dt},ml:{style:dt},mx:{style:dt},my:{style:dt},margin:{style:dt},marginTop:{style:dt},marginRight:{style:dt},marginBottom:{style:dt},marginLeft:{style:dt},marginX:{style:dt},marginY:{style:dt},marginInline:{style:dt},marginInlineStart:{style:dt},marginInlineEnd:{style:dt},marginBlock:{style:dt},marginBlockStart:{style:dt},marginBlockEnd:{style:dt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Si},rowGap:{style:Ii},columnGap:{style:Ti},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Nt},maxWidth:{style:ol},minWidth:{transform:Nt},height:{transform:Nt},maxHeight:{transform:Nt},minHeight:{transform:Nt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Fv(...e){const t=e.reduce((o,s)=>o.concat(Object.keys(s)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function Bv(e,t){return typeof e=="function"?e(t):e}function zv(){function e(n,o,s,i){const a={[n]:o,theme:s},l=i[n];if(!l)return{[n]:o};const{cssProperty:c=n,themeKey:u,transform:d,style:m}=l;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[n]:o};const g=yi(s,u)||{};return m?m(a):Nn(a,o,b=>{let f=Ks(g,d,b);return b===f&&typeof b=="string"&&(f=Ks(g,d,`${n}${b==="default"?"":me(b)}`,b)),c===!1?f:{[c]:f}})}function t(n){const{sx:o,theme:s={},nested:i}=n||{};if(!o)return null;const a=s.unstable_sxConfig??is;function l(c){let u=c;if(typeof c=="function")u=c(s);else if(typeof c!="object")return c;if(!u)return null;const d=nv(s.breakpoints),m=Object.keys(d);let g=d;return Object.keys(u).forEach(p=>{const b=Bv(u[p],s);if(b!=null)if(typeof b=="object")if(a[p])g=Pr(g,e(p,b,s,a));else{const f=Nn({theme:s},b,y=>({[p]:y}));Fv(f,b)?g[p]=t({sx:b,theme:s,nested:!0}):g=Pr(g,f)}else g=Pr(g,e(p,b,s,a))}),!i&&s.modularCssLayers?{"@layer sx":gu(s,yu(m,g))}:gu(s,yu(m,g))}return Array.isArray(o)?o.map(l):l(o)}return t}const nr=zv();nr.filterProps=["sx"];function Wv(e,t){var o;const n=this;if(n.vars){if(!((o=n.colorSchemes)!=null&&o[e])||typeof n.getColorSchemeSelector!="function")return{};let s=n.getColorSchemeSelector(e);return s==="&"?t:((s.includes("data-")||s.includes("."))&&(s=`*:where(${s.replace(/\s*&$/,"")}) &`),{[s]:t})}return n.palette.mode===e?t:{}}function rl(e={},...t){const{breakpoints:n={},palette:o={},spacing:s,shape:i={},...a}=e,l=Xy(n),c=Jp(s);let u=jt({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:c,shape:{...ev,...i}},a);return u=Jy(u),u.applyStyles=Wv,u=t.reduce((d,m)=>jt(d,m),u),u.unstable_sxConfig={...is,...a==null?void 0:a.unstable_sxConfig},u.unstable_sx=function(m){return nr({sx:m,theme:this})},u}function Uv(e){return Object.keys(e).length===0}function ef(e=null){const t=C.useContext(Jn.ThemeContext);return!t||Uv(t)?e:t}const Hv=rl();function tf(e=Hv){return ef(e)}const qv=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??is;return Object.keys(e).forEach(s=>{n[s]?t.systemProps[s]=e[s]:t.otherProps[s]=e[s]}),t};function Yv(e){const{sx:t,...n}=e,{systemProps:o,otherProps:s}=qv(n);let i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return fn(l)?{...o,...l}:o}:i={...o,...t},{...s,sx:i}}const xu=e=>e,Gv=()=>{let e=xu;return{configure(t){e=t},generate(t){return e(t)},reset(){e=xu}}},Kv=Gv();function nf(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=nf(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function ue(){for(var e,t,n=0,o="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=nf(e))&&(o&&(o+=" "),o+=t);return o}const Xv={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Re(e,t,n="Mui"){const o=Xv[t];return o?`${n}-${o}`:`${Kv.generate(e)}-${t}`}function Pe(e,t,n="Mui"){const o={};return t.forEach(s=>{o[s]=Re(e,s,n)}),o}function of(e,t=""){return e.displayName||e.name||t}function Cu(e,t,n){const o=of(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function Qv(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return of(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Gs.ForwardRef:return Cu(e,e.render,"ForwardRef");case Gs.Memo:return Cu(e,e.type,"memo");default:return}}}function rf(e){const{variants:t,...n}=e,o={variants:t,style:vo(n),isProcessed:!0};return o.style===n||t&&t.forEach(s=>{typeof s.style!="function"&&(s.style=vo(s.style))}),o}const Zv=rl();function At(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function bo(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Jv(e){return e?(t,n)=>n[e]:null}function ex(e,t,n){e.theme=rx(e.theme)?n:e.theme[t]||e.theme}function js(e,t,n){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(s=>js(e,s,n));if(Array.isArray(o==null?void 0:o.variants)){let s;if(o.isProcessed)s=n?bo(o.style,n):o.style;else{const{variants:i,...a}=o;s=n?bo(vo(a),n):a}return sf(e,o.variants,[s],n)}return o!=null&&o.isProcessed?n?bo(vo(o.style),n):o.style:n?bo(vo(o),n):o}function sf(e,t,n=[],o=void 0){var i;let s;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(s??(s={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(s))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&((i=e.ownerState)==null?void 0:i[c])!==l.props[c])continue e;typeof l.style=="function"?(s??(s={...e,...e.ownerState,ownerState:e.ownerState}),n.push(o?bo(vo(l.style(s)),o):l.style(s))):n.push(o?bo(vo(l.style),o):l.style)}return n}function tx(e={}){const{themeId:t,defaultTheme:n=Zv,rootShouldForwardProp:o=At,slotShouldForwardProp:s=At}=e;function i(l){ex(l,t,n)}return(l,c={})=>{Hy(l,I=>I.filter(R=>R!==nr));const{name:u,slot:d,skipVariantsResolver:m,skipSx:g,overridesResolver:p=Jv(af(d)),...b}=c,f=u&&u.startsWith("Mui")||d?"components":"custom",y=m!==void 0?m:d&&d!=="Root"&&d!=="root"||!1,x=g||!1;let T=At;d==="Root"||d==="root"?T=o:d?T=s:sx(l)&&(T=void 0);const S=Uy(l,{shouldForwardProp:T,label:ox(u,d),...b}),w=I=>{if(I.__emotion_real===I)return I;if(typeof I=="function")return function(N){return js(N,I,N.theme.modularCssLayers?f:void 0)};if(fn(I)){const R=rf(I);return function(j){return R.variants?js(j,R,j.theme.modularCssLayers?f:void 0):j.theme.modularCssLayers?bo(R.style,f):R.style}}return I},E=(...I)=>{const R=[],N=I.map(w),j=[];if(R.push(i),u&&p&&j.push(function(O){var _,A;const k=(A=(_=O.theme.components)==null?void 0:_[u])==null?void 0:A.styleOverrides;if(!k)return null;const M={};for(const B in k)M[B]=js(O,k[B],O.theme.modularCssLayers?"theme":void 0);return p(O,M)}),u&&!y&&j.push(function(O){var M,_;const P=O.theme,k=(_=(M=P==null?void 0:P.components)==null?void 0:M[u])==null?void 0:_.variants;return k?sf(O,k,[],O.theme.modularCssLayers?"theme":void 0):null}),x||j.push(nr),Array.isArray(N[0])){const v=N.shift(),O=new Array(R.length).fill(""),P=new Array(j.length).fill("");let k;k=[...O,...v,...P],k.raw=[...O,...v.raw,...P],R.unshift(k)}const V=[...R,...N,...j],$=S(...V);return l.muiName&&($.muiName=l.muiName),process.env.NODE_ENV!=="production"&&($.displayName=nx(u,d,l)),$};return S.withConfig&&(E.withConfig=S.withConfig),E}}function nx(e,t,n){return e?`${e}${me(t||"")}`:`Styled(${Qv(n)})`}function ox(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${af(t||"Root")}`),n}function rx(e){for(const t in e)return!1;return!0}function sx(e){return typeof e=="string"&&e.charCodeAt(0)>96}function af(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Ur(e,t,n=!1){const o={...t};for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)){const i=s;if(i==="components"||i==="slots")o[i]={...e[i],...o[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],l=t[i];if(!l)o[i]=a||{};else if(!a)o[i]=l;else{o[i]={...l};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const u=c;o[i][u]=Ur(a[u],l[u],n)}}}else i==="className"&&n&&t.className?o.className=ue(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&n&&t.style?o.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:o[i]===void 0&&(o[i]=e[i])}return o}function lf(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:Ur(t.components[n].defaultProps,o)}function ix({props:e,name:t,defaultTheme:n,themeId:o}){let s=tf(n);return s=s[o]||s,lf({theme:s,name:t,props:e})}const qn=typeof window<"u"?C.useLayoutEffect:C.useEffect;function ax(e,t,n,o,s){const[i,a]=C.useState(()=>s&&n?n(e).matches:o?o(e).matches:t);return qn(()=>{if(!n)return;const l=n(e),c=()=>{a(l.matches)};return c(),l.addEventListener("change",c),()=>{l.removeEventListener("change",c)}},[e,n]),i}const lx={...C},cf=lx.useSyncExternalStore;function cx(e,t,n,o,s){const i=C.useCallback(()=>t,[t]),a=C.useMemo(()=>{if(s&&n)return()=>n(e).matches;if(o!==null){const{matches:d}=o(e);return()=>d}return i},[i,e,o,s,n]),[l,c]=C.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const d=n(e);return[()=>d.matches,m=>(d.addEventListener("change",m),()=>{d.removeEventListener("change",m)})]},[i,n,e]);return cf(c,l,a)}function uf(e={}){const{themeId:t}=e;return function(o,s={}){let i=ef();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:c=a?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:d=!1}=lf({name:"MuiUseMediaQuery",props:s,theme:i});process.env.NODE_ENV!=="production"&&typeof o=="function"&&i===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
58
48
  `));let m=typeof o=="function"?o(i):o;m=m.replace(/^@media( ?)/m,""),m.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
59
- `));const f=(Xp!==void 0?AS:$S)(m,l,c,u,d);return process.env.NODE_ENV!=="production"&&C.useDebugValue({query:m,match:f}),f}}Qp();function jS(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Za(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),jS(e,t,n)}function LS(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(o=>o+o)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((o,s)=>s<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function Vn(e){if(e.type)return e;if(e.charAt(0)==="#")return Vn(LS(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
60
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:so(9,e));let o=e.substring(t+1,e.length-1),s;if(n==="color"){if(o=o.split(" "),s=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(s))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${s}\` color space.
61
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:so(10,s))}else o=o.split(",");return o=o.map(i=>parseFloat(i)),{type:n,values:o,colorSpace:s}}const VS=e=>{const t=Vn(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},mr=(e,t)=>{try{return VS(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function ii(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((s,i)=>i<3?parseInt(s,10):s):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function Zp(e){e=Vn(e);const{values:t}=e,n=t[0],o=t[1]/100,s=t[2]/100,i=o*Math.min(s,1-s),a=(u,d=(u+n/30)%12)=>s-i*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),ii({type:l,values:c})}function na(e){e=Vn(e);let t=e.type==="hsl"||e.type==="hsla"?Vn(Zp(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function zc(e,t){const n=na(e),o=na(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function Ps(e,t){return e=Vn(e),t=Za(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ii(e)}function Kn(e,t,n){try{return Ps(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function ai(e,t){if(e=Vn(e),t=Za(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ii(e)}function Ve(e,t,n){try{return ai(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function li(e,t){if(e=Vn(e),t=Za(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ii(e)}function Fe(e,t,n){try{return li(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function FS(e,t=.15){return na(e)>.5?ai(e,t):li(e,t)}function as(e,t,n){try{return FS(e,t)}catch{return e}}const BS="exact-prop: ​";function Jp(e){return process.env.NODE_ENV==="production"?e:{...e,[BS]:t=>{const n=Object.keys(t).filter(o=>!e.hasOwnProperty(o));return n.length>0?new Error(`The following props are not supported: ${n.map(o=>`\`${o}\``).join(", ")}. Please remove them.`):null}}}const zS=C.createContext();process.env.NODE_ENV!=="production"&&(r.node,r.bool);const Wn=()=>C.useContext(zS)??!1,WS=C.createContext(void 0);process.env.NODE_ENV!=="production"&&(r.node,r.object);function US(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const s=t.components[n];return s.defaultProps?Pr(s.defaultProps,o,t.components.mergeClassNameAndStyle):!s.styleOverrides&&!s.variants?Pr(s,o,t.components.mergeClassNameAndStyle):o}function qS({props:e,name:t}){const n=C.useContext(WS);return US({props:e,name:t,theme:{components:n}})}let Wc=0;function HS(e){const[t,n]=C.useState(e),o=e||t;return C.useEffect(()=>{t==null&&(Wc+=1,n(`mui-${Wc}`))},[t]),o}const YS={...C},Uc=YS.useId;function Ja(e){if(Uc!==void 0){const t=Uc();return e??t}return HS(e)}const qc={theme:void 0};function GS(e){let t,n;return function(s){let i=t;return(i===void 0||s.theme!==n)&&(qc.theme=s.theme,i=Hp(e(qc)),t=i,n=s.theme),i}}function KS(e=""){function t(...o){if(!o.length)return"";const s=o[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${s}${t(...o.slice(1))})`:`, ${s}`}return(o,...s)=>`var(--${e?`${e}-`:""}${o}${t(...s)})`}const Hc=(e,t,n,o=[])=>{let s=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(s)?s[Number(i)]=n:s&&typeof s=="object"&&(s[i]=n):s&&typeof s=="object"&&(s[i]||(s[i]=o.includes(i)?[]:{}),s=s[i])})},XS=(e,t,n)=>{function o(s,i=[],a=[]){Object.entries(s).forEach(([l,c])=>{(!n||n&&!n([...i,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?o(c,[...i,l],Array.isArray(c)?[...a,l]:a):t([...i,l],c,a))})}o(e)},QS=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function zi(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},s={},i={},a={};return XS(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!o||!o(l,c))){const d=`--${n?`${n}-`:""}${l.join("-")}`,m=QS(l,c);Object.assign(s,{[d]:m}),Hc(i,l,`var(${d})`,u),Hc(a,l,`var(${d}, ${m})`,u)}},l=>l[0]==="vars"),{css:s,vars:i,varsWithDefaults:a}}function ZS(e,t={}){const{getSelector:n=x,disableCssColorScheme:o,colorSchemeSelector:s,enableContrastVars:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...u}=e,{vars:d,css:m,varsWithDefaults:h}=zi(u,t);let f=h;const g={},{[c]:p,...y}=a;if(Object.entries(y||{}).forEach(([S,E])=>{const{vars:T,css:R,varsWithDefaults:N}=zi(E,t);f=kt(f,N),g[S]={css:R,vars:T}}),p){const{css:S,vars:E,varsWithDefaults:T}=zi(p,t);f=kt(f,T),g[c]={css:S,vars:E}}function x(S,E){var R,N;let T=s;if(s==="class"&&(T=".%s"),s==="data"&&(T="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(T=`[${s}="%s"]`),S){if(T==="media")return e.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${((N=(R=a[S])==null?void 0:R.palette)==null?void 0:N.mode)||S})`]:{":root":E}};if(T)return e.defaultColorScheme===S?`:root, ${T.replace("%s",String(S))}`:T.replace("%s",String(S))}return":root"}return{vars:f,generateThemeVars:()=>{let S={...d};return Object.entries(g).forEach(([,{vars:E}])=>{S=kt(S,E)}),S},generateStyleSheets:()=>{var L,V;const S=[],E=e.defaultColorScheme||"light";function T(A,v){Object.keys(v).length&&S.push(typeof A=="string"?{[A]:{...v}}:A)}T(n(void 0,{...m}),m);const{[E]:R,...N}=g;if(R){const{css:A}=R,v=(V=(L=a[E])==null?void 0:L.palette)==null?void 0:V.mode,P=!o&&v?{colorScheme:v,...A}:{...A};T(n(E,{...P}),P)}return Object.entries(N).forEach(([A,{css:v}])=>{var _,k;const P=(k=(_=a[A])==null?void 0:_.palette)==null?void 0:k.mode,O=!o&&P?{colorScheme:P,...v}:{...v};T(n(A,{...O}),O)}),i&&S.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),S}}}function JS(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function $o(e,t){var n,o,s;return C.isValidElement(e)&&t.indexOf(e.type.muiName??((s=(o=(n=e.type)==null?void 0:n._payload)==null?void 0:o.value)==null?void 0:s.muiName))!==-1}const Rr={black:"#000",white:"#fff"},eC={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},yo={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},vo={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},sr={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},xo={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},So={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Co={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function ef(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Rr.white,default:Rr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const tf=ef();function nf(){return{text:{primary:Rr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Rr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const oa=nf();function Yc(e,t,n,o){const s=o.light||o,i=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=li(e.main,s):t==="dark"&&(e.dark=ai(e.main,i)))}function Gc(e,t,n,o,s){const i=s.light||s,a=s.dark||s*1.5;t[n]||(t.hasOwnProperty(o)?t[n]=t[o]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function tC(e="light"){return e==="dark"?{main:xo[200],light:xo[50],dark:xo[400]}:{main:xo[700],light:xo[400],dark:xo[800]}}function nC(e="light"){return e==="dark"?{main:yo[200],light:yo[50],dark:yo[400]}:{main:yo[500],light:yo[300],dark:yo[700]}}function oC(e="light"){return e==="dark"?{main:vo[500],light:vo[300],dark:vo[700]}:{main:vo[700],light:vo[400],dark:vo[800]}}function rC(e="light"){return e==="dark"?{main:So[400],light:So[300],dark:So[700]}:{main:So[700],light:So[500],dark:So[900]}}function sC(e="light"){return e==="dark"?{main:Co[400],light:Co[300],dark:Co[700]}:{main:Co[800],light:Co[500],dark:Co[900]}}function iC(e="light"){return e==="dark"?{main:sr[400],light:sr[300],dark:sr[700]}:{main:"#ed6c02",light:sr[500],dark:sr[900]}}function aC(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function el(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,colorSpace:s,...i}=e,a=e.primary||tC(t),l=e.secondary||nC(t),c=e.error||oC(t),u=e.info||rC(t),d=e.success||sC(t),m=e.warning||iC(t);function h(y){if(s)return aC(y);const x=zc(y,oa.text.primary)>=n?oa.text.primary:tf.text.primary;if(process.env.NODE_ENV!=="production"){const I=zc(y,x);I<3&&console.error([`MUI: The contrast ratio of ${I}:1 for ${x} on ${y}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
62
- `))}return x}const f=({color:y,name:x,mainShade:I=500,lightShade:w=300,darkShade:S=700})=>{if(y={...y},!y.main&&y[I]&&(y.main=y[I]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
63
- The color object needs to have a \`main\` property or a \`${I}\` property.`:so(11,x?` (${x})`:"",I));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
49
+ `));const p=(cf!==void 0?cx:ax)(m,l,c,u,d);return process.env.NODE_ENV!=="production"&&C.useDebugValue({query:m,match:p}),p}}uf();function ux(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function sl(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),ux(e,t,n)}function dx(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(o=>o+o)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((o,s)=>s<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function Yn(e){if(e.type)return e;if(e.charAt(0)==="#")return Yn(dx(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
50
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:wo(9,e));let o=e.substring(t+1,e.length-1),s;if(n==="color"){if(o=o.split(" "),s=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(s))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${s}\` color space.
51
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:wo(10,s))}else o=o.split(",");return o=o.map(i=>parseFloat(i)),{type:n,values:o,colorSpace:s}}const px=e=>{const t=Yn(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},Er=(e,t)=>{try{return px(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Ei(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((s,i)=>i<3?parseInt(s,10):s):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function df(e){e=Yn(e);const{values:t}=e,n=t[0],o=t[1]/100,s=t[2]/100,i=o*Math.min(s,1-s),a=(u,d=(u+n/30)%12)=>s-i*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Ei({type:l,values:c})}function Ia(e){e=Yn(e);let t=e.type==="hsl"||e.type==="hsla"?Yn(df(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function wu(e,t){const n=Ia(e),o=Ia(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function Xs(e,t){return e=Yn(e),t=sl(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ei(e)}function ao(e,t,n){try{return Xs(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function ki(e,t){if(e=Yn(e),t=sl(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Ei(e)}function He(e,t,n){try{return ki(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Oi(e,t){if(e=Yn(e),t=sl(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ei(e)}function qe(e,t,n){try{return Oi(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function fx(e,t=.15){return Ia(e)>.5?ki(e,t):Oi(e,t)}function Ss(e,t,n){try{return fx(e,t)}catch{return e}}const mx="exact-prop: ​";function pf(e){return process.env.NODE_ENV==="production"?e:{...e,[mx]:t=>{const n=Object.keys(t).filter(o=>!e.hasOwnProperty(o));return n.length>0?new Error(`The following props are not supported: ${n.map(o=>`\`${o}\``).join(", ")}. Please remove them.`):null}}}const hx=C.createContext();process.env.NODE_ENV!=="production"&&(r.node,r.bool);const cn=()=>C.useContext(hx)??!1,gx=C.createContext(void 0);process.env.NODE_ENV!=="production"&&(r.node,r.object);function bx(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const s=t.components[n];return s.defaultProps?Ur(s.defaultProps,o,t.components.mergeClassNameAndStyle):!s.styleOverrides&&!s.variants?Ur(s,o,t.components.mergeClassNameAndStyle):o}function yx({props:e,name:t}){const n=C.useContext(gx);return bx({props:e,name:t,theme:{components:n}})}let Su=0;function vx(e){const[t,n]=C.useState(e),o=e||t;return C.useEffect(()=>{t==null&&(Su+=1,n(`mui-${Su}`))},[t]),o}const xx={...C},Tu=xx.useId;function il(e){if(Tu!==void 0){const t=Tu();return e??t}return vx(e)}const Iu={theme:void 0};function Cx(e){let t,n;return function(s){let i=t;return(i===void 0||s.theme!==n)&&(Iu.theme=s.theme,i=rf(e(Iu)),t=i,n=s.theme),i}}function wx(e=""){function t(...o){if(!o.length)return"";const s=o[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${s}${t(...o.slice(1))})`:`, ${s}`}return(o,...s)=>`var(--${e?`${e}-`:""}${o}${t(...s)})`}const Eu=(e,t,n,o=[])=>{let s=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(s)?s[Number(i)]=n:s&&typeof s=="object"&&(s[i]=n):s&&typeof s=="object"&&(s[i]||(s[i]=o.includes(i)?[]:{}),s=s[i])})},Sx=(e,t,n)=>{function o(s,i=[],a=[]){Object.entries(s).forEach(([l,c])=>{(!n||n&&!n([...i,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?o(c,[...i,l],Array.isArray(c)?[...a,l]:a):t([...i,l],c,a))})}o(e)},Tx=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function da(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},s={},i={},a={};return Sx(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!o||!o(l,c))){const d=`--${n?`${n}-`:""}${l.join("-")}`,m=Tx(l,c);Object.assign(s,{[d]:m}),Eu(i,l,`var(${d})`,u),Eu(a,l,`var(${d}, ${m})`,u)}},l=>l[0]==="vars"),{css:s,vars:i,varsWithDefaults:a}}function Ix(e,t={}){const{getSelector:n=x,disableCssColorScheme:o,colorSchemeSelector:s,enableContrastVars:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...u}=e,{vars:d,css:m,varsWithDefaults:g}=da(u,t);let p=g;const b={},{[c]:f,...y}=a;if(Object.entries(y||{}).forEach(([w,E])=>{const{vars:I,css:R,varsWithDefaults:N}=da(E,t);p=jt(p,N),b[w]={css:R,vars:I}}),f){const{css:w,vars:E,varsWithDefaults:I}=da(f,t);p=jt(p,I),b[c]={css:w,vars:E}}function x(w,E){var R,N;let I=s;if(s==="class"&&(I=".%s"),s==="data"&&(I="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(I=`[${s}="%s"]`),w){if(I==="media")return e.defaultColorScheme===w?":root":{[`@media (prefers-color-scheme: ${((N=(R=a[w])==null?void 0:R.palette)==null?void 0:N.mode)||w})`]:{":root":E}};if(I)return e.defaultColorScheme===w?`:root, ${I.replace("%s",String(w))}`:I.replace("%s",String(w))}return":root"}return{vars:p,generateThemeVars:()=>{let w={...d};return Object.entries(b).forEach(([,{vars:E}])=>{w=jt(w,E)}),w},generateStyleSheets:()=>{var j,V;const w=[],E=e.defaultColorScheme||"light";function I($,v){Object.keys(v).length&&w.push(typeof $=="string"?{[$]:{...v}}:$)}I(n(void 0,{...m}),m);const{[E]:R,...N}=b;if(R){const{css:$}=R,v=(V=(j=a[E])==null?void 0:j.palette)==null?void 0:V.mode,O=!o&&v?{colorScheme:v,...$}:{...$};I(n(E,{...O}),O)}return Object.entries(N).forEach(([$,{css:v}])=>{var k,M;const O=(M=(k=a[$])==null?void 0:k.palette)==null?void 0:M.mode,P=!o&&O?{colorScheme:O,...v}:{...v};I(n($,{...P}),P)}),i&&w.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),w}}}function Ex(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function Ae(e,t,n=void 0){const o={};for(const s in e){const i=e[s];let a="",l=!0;for(let c=0;c<i.length;c+=1){const u=i[c];u&&(a+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(a+=" "+n[u]))}o[s]=a}return o}function Ko(e,t){var n,o,s;return C.isValidElement(e)&&t.indexOf(e.type.muiName??((s=(o=(n=e.type)==null?void 0:n._payload)==null?void 0:o.value)==null?void 0:s.muiName))!==-1}const Hr={black:"#000",white:"#fff"},kx={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Mo={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Do={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},br={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ro={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},No={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},$o={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function ff(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Hr.white,default:Hr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const mf=ff();function hf(){return{text:{primary:Hr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Hr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Ea=hf();function ku(e,t,n,o){const s=o.light||o,i=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Oi(e.main,s):t==="dark"&&(e.dark=ki(e.main,i)))}function Ou(e,t,n,o,s){const i=s.light||s,a=s.dark||s*1.5;t[n]||(t.hasOwnProperty(o)?t[n]=t[o]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function Ox(e="light"){return e==="dark"?{main:Ro[200],light:Ro[50],dark:Ro[400]}:{main:Ro[700],light:Ro[400],dark:Ro[800]}}function _x(e="light"){return e==="dark"?{main:Mo[200],light:Mo[50],dark:Mo[400]}:{main:Mo[500],light:Mo[300],dark:Mo[700]}}function Px(e="light"){return e==="dark"?{main:Do[500],light:Do[300],dark:Do[700]}:{main:Do[700],light:Do[400],dark:Do[800]}}function Mx(e="light"){return e==="dark"?{main:No[400],light:No[300],dark:No[700]}:{main:No[700],light:No[500],dark:No[900]}}function Dx(e="light"){return e==="dark"?{main:$o[400],light:$o[300],dark:$o[700]}:{main:$o[800],light:$o[500],dark:$o[900]}}function Rx(e="light"){return e==="dark"?{main:br[400],light:br[300],dark:br[700]}:{main:"#ed6c02",light:br[500],dark:br[900]}}function Nx(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function al(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,colorSpace:s,...i}=e,a=e.primary||Ox(t),l=e.secondary||_x(t),c=e.error||Px(t),u=e.info||Mx(t),d=e.success||Dx(t),m=e.warning||Rx(t);function g(y){if(s)return Nx(y);const x=wu(y,Ea.text.primary)>=n?Ea.text.primary:mf.text.primary;if(process.env.NODE_ENV!=="production"){const T=wu(y,x);T<3&&console.error([`MUI: The contrast ratio of ${T}:1 for ${x} on ${y}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
52
+ `))}return x}const p=({color:y,name:x,mainShade:T=500,lightShade:S=300,darkShade:w=700})=>{if(y={...y},!y.main&&y[T]&&(y.main=y[T]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
53
+ The color object needs to have a \`main\` property or a \`${T}\` property.`:wo(11,x?` (${x})`:"",T));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
64
54
  \`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
65
55
 
66
56
  Did you intend to use one of the following approaches?
@@ -73,20 +63,33 @@ const theme1 = createTheme({ palette: {
73
63
 
74
64
  const theme2 = createTheme({ palette: {
75
65
  primary: { main: green[500] },
76
- } });`:so(12,x?` (${x})`:"",JSON.stringify(y.main)));return s?(Gc(s,y,"light",w,o),Gc(s,y,"dark",S,o)):(Yc(y,"light",w,o),Yc(y,"dark",S,o)),y.contrastText||(y.contrastText=h(y.main)),y};let g;return t==="light"?g=ef():t==="dark"&&(g=nf()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),kt({common:{...Rr},mode:t,primary:f({color:a,name:"primary"}),secondary:f({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:c,name:"error"}),warning:f({color:m,name:"warning"}),info:f({color:u,name:"info"}),success:f({color:d,name:"success"}),grey:eC,contrastThreshold:n,getContrastText:h,augmentColor:f,tonalOffset:o,...g},i)}function lC(e){const t={};return Object.entries(e).forEach(o=>{const[s,i]=o;typeof i=="object"&&(t[s]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function cC(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function uC(e){return Math.round(e*1e5)/1e5}const Kc={textTransform:"uppercase"},Xc='"Roboto", "Helvetica", "Arial", sans-serif';function dC(e,t){const{fontFamily:n=Xc,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d,...m}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=o/14,f=d||(y=>`${y/c*h}rem`),g=(y,x,I,w,S)=>({fontFamily:n,fontWeight:y,fontSize:f(x),lineHeight:I,...n===Xc?{letterSpacing:`${uC(w/x)}em`}:{},...S,...u}),p={h1:g(s,96,1.167,-1.5),h2:g(s,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(a,14,1.75,.4,Kc),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,Kc),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return kt({htmlFontSize:c,pxToRem:f,fontFamily:n,fontSize:o,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...p},m,{clone:!1})}const pC=.2,fC=.14,mC=.12;function Ge(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${pC})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${fC})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${mC})`].join(",")}const hC=["none",Ge(0,2,1,-1,0,1,1,0,0,1,3,0),Ge(0,3,1,-2,0,2,2,0,0,1,5,0),Ge(0,3,3,-2,0,3,4,0,0,1,8,0),Ge(0,2,4,-1,0,4,5,0,0,1,10,0),Ge(0,3,5,-1,0,5,8,0,0,1,14,0),Ge(0,3,5,-1,0,6,10,0,0,1,18,0),Ge(0,4,5,-2,0,7,10,1,0,2,16,1),Ge(0,5,5,-3,0,8,10,1,0,3,14,2),Ge(0,5,6,-3,0,9,12,1,0,3,16,2),Ge(0,6,6,-3,0,10,14,1,0,4,18,3),Ge(0,6,7,-4,0,11,15,1,0,4,20,3),Ge(0,7,8,-4,0,12,17,2,0,5,22,4),Ge(0,7,8,-4,0,13,19,2,0,5,24,4),Ge(0,7,9,-4,0,14,21,2,0,5,26,4),Ge(0,8,9,-5,0,15,22,2,0,6,28,5),Ge(0,8,10,-5,0,16,24,2,0,6,30,5),Ge(0,8,11,-5,0,17,26,2,0,6,32,5),Ge(0,9,11,-5,0,18,28,2,0,7,34,6),Ge(0,9,12,-6,0,19,29,2,0,7,36,6),Ge(0,10,13,-6,0,20,31,3,0,8,38,7),Ge(0,10,13,-6,0,21,33,3,0,8,40,7),Ge(0,10,14,-6,0,22,35,3,0,8,42,7),Ge(0,11,14,-7,0,23,36,3,0,9,44,8),Ge(0,11,15,-7,0,24,38,3,0,9,46,8)],gC={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},of={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Qc(e){return`${Math.round(e)}ms`}function bC(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function yC(e){const t={...gC,...e.easing},n={...of,...e.duration};return{getAutoHeightDuration:bC,create:(s=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:c=0,...u}=i;if(process.env.NODE_ENV!=="production"){const d=h=>typeof h=="string",m=h=>!Number.isNaN(parseFloat(h));!d(s)&&!Array.isArray(s)&&console.error('MUI: Argument "props" must be a string or Array.'),!m(a)&&!d(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!m(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
77
- `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(s)?s:[s]).map(d=>`${d} ${typeof a=="string"?a:Qc(a)} ${l} ${typeof c=="string"?c:Qc(c)}`).join(",")},...e,easing:t,duration:n}}const vC={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function xC(e){return Zt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function rf(e={}){const t={...e};function n(o){const s=Object.entries(o);for(let i=0;i<s.length;i++){const[a,l]=s[i];!xC(l)||a.startsWith("unstable_")?delete o[a]:Zt(l)&&(o[a]={...l},n(o[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
66
+ } });`:wo(12,x?` (${x})`:"",JSON.stringify(y.main)));return s?(Ou(s,y,"light",S,o),Ou(s,y,"dark",w,o)):(ku(y,"light",S,o),ku(y,"dark",w,o)),y.contrastText||(y.contrastText=g(y.main)),y};let b;return t==="light"?b=ff():t==="dark"&&(b=hf()),process.env.NODE_ENV!=="production"&&(b||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),jt({common:{...Hr},mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:c,name:"error"}),warning:p({color:m,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:d,name:"success"}),grey:kx,contrastThreshold:n,getContrastText:g,augmentColor:p,tonalOffset:o,...b},i)}function $x(e){const t={};return Object.entries(e).forEach(o=>{const[s,i]=o;typeof i=="object"&&(t[s]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function jx(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Ax(e){return Math.round(e*1e5)/1e5}const _u={textTransform:"uppercase"},Pu='"Roboto", "Helvetica", "Arial", sans-serif';function Lx(e,t){const{fontFamily:n=Pu,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d,...m}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const g=o/14,p=d||(y=>`${y/c*g}rem`),b=(y,x,T,S,w)=>({fontFamily:n,fontWeight:y,fontSize:p(x),lineHeight:T,...n===Pu?{letterSpacing:`${Ax(S/x)}em`}:{},...w,...u}),f={h1:b(s,96,1.167,-1.5),h2:b(s,60,1.2,-.5),h3:b(i,48,1.167,0),h4:b(i,34,1.235,.25),h5:b(i,24,1.334,0),h6:b(a,20,1.6,.15),subtitle1:b(i,16,1.75,.15),subtitle2:b(a,14,1.57,.1),body1:b(i,16,1.5,.15),body2:b(i,14,1.43,.15),button:b(a,14,1.75,.4,_u),caption:b(i,12,1.66,.4),overline:b(i,12,2.66,1,_u),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return jt({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:o,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...f},m,{clone:!1})}const Vx=.2,Fx=.14,Bx=.12;function rt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Vx})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Fx})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Bx})`].join(",")}const zx=["none",rt(0,2,1,-1,0,1,1,0,0,1,3,0),rt(0,3,1,-2,0,2,2,0,0,1,5,0),rt(0,3,3,-2,0,3,4,0,0,1,8,0),rt(0,2,4,-1,0,4,5,0,0,1,10,0),rt(0,3,5,-1,0,5,8,0,0,1,14,0),rt(0,3,5,-1,0,6,10,0,0,1,18,0),rt(0,4,5,-2,0,7,10,1,0,2,16,1),rt(0,5,5,-3,0,8,10,1,0,3,14,2),rt(0,5,6,-3,0,9,12,1,0,3,16,2),rt(0,6,6,-3,0,10,14,1,0,4,18,3),rt(0,6,7,-4,0,11,15,1,0,4,20,3),rt(0,7,8,-4,0,12,17,2,0,5,22,4),rt(0,7,8,-4,0,13,19,2,0,5,24,4),rt(0,7,9,-4,0,14,21,2,0,5,26,4),rt(0,8,9,-5,0,15,22,2,0,6,28,5),rt(0,8,10,-5,0,16,24,2,0,6,30,5),rt(0,8,11,-5,0,17,26,2,0,6,32,5),rt(0,9,11,-5,0,18,28,2,0,7,34,6),rt(0,9,12,-6,0,19,29,2,0,7,36,6),rt(0,10,13,-6,0,20,31,3,0,8,38,7),rt(0,10,13,-6,0,21,33,3,0,8,40,7),rt(0,10,14,-6,0,22,35,3,0,8,42,7),rt(0,11,14,-7,0,23,36,3,0,9,44,8),rt(0,11,15,-7,0,24,38,3,0,9,46,8)],Wx={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},gf={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Mu(e){return`${Math.round(e)}ms`}function Ux(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Hx(e){const t={...Wx,...e.easing},n={...gf,...e.duration};return{getAutoHeightDuration:Ux,create:(s=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:c=0,...u}=i;if(process.env.NODE_ENV!=="production"){const d=g=>typeof g=="string",m=g=>!Number.isNaN(parseFloat(g));!d(s)&&!Array.isArray(s)&&console.error('MUI: Argument "props" must be a string or Array.'),!m(a)&&!d(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!m(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
67
+ `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(s)?s:[s]).map(d=>`${d} ${typeof a=="string"?a:Mu(a)} ${l} ${typeof c=="string"?c:Mu(c)}`).join(",")},...e,easing:t,duration:n}}const qx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Yx(e){return fn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function bf(e={}){const t={...e};function n(o){const s=Object.entries(o);for(let i=0;i<s.length;i++){const[a,l]=s[i];!Yx(l)||a.startsWith("unstable_")?delete o[a]:fn(l)&&(o[a]={...l},n(o[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
78
68
 
79
69
  const theme = ${JSON.stringify(t,null,2)};
80
70
 
81
71
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
82
72
  theme.transitions = createTransitions(theme.transitions || {});
83
73
 
84
- export default theme;`}function Zc(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const SC=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let o=0;o<t.length;o+=1)n+=+t[o];return n};function CC(e){Object.assign(e,{alpha(t,n){const o=this||e;return o.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:o.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:Ps(t,SC(n))},lighten(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #fff ${Zc(n)})`:li(t,n)},darken(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #000 ${Zc(n)})`:ai(t,n)}})}function ra(e={},...t){const{breakpoints:n,mixins:o={},spacing:s,palette:i={},transitions:a={},typography:l={},shape:c,colorSpace:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://v7.mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":so(20));const m=el({...i,colorSpace:u}),h=Qa(e);let f=kt(h,{mixins:cC(h.breakpoints,o),palette:m,shadows:hC.slice(),typography:dC(m,l),transitions:yC(a),zIndex:{...vC}});if(f=kt(f,d),f=t.reduce((g,p)=>kt(g,p),f),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],p=(y,x)=>{let I;for(I in y){const w=y[I];if(g.includes(I)&&Object.keys(w).length>0){if(process.env.NODE_ENV!=="production"){const S=Me("",I);console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${I}\` internal state.`,"You can not override it like this: ",JSON.stringify(y,null,2),"",`Instead, you need to use the '&.${S}' syntax:`,JSON.stringify({root:{[`&.${S}`]:w}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
85
- `))}y[I]={}}}};Object.keys(f.components).forEach(y=>{const x=f.components[y].styleOverrides;x&&y.startsWith("Mui")&&p(x,y)})}return f.unstable_sxConfig={...qr,...d==null?void 0:d.unstable_sxConfig},f.unstable_sx=function(p){return Bo({sx:p,theme:this})},f.toRuntimeSource=rf,CC(f),f}function sa(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const wC=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=sa(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function sf(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function af(e){return e==="dark"?wC:[]}function TC(e){const{palette:t={mode:"light"},opacity:n,overlays:o,colorSpace:s,...i}=e,a=el({...t,colorSpace:s});return{palette:a,opacity:{...sf(a.mode),...n},overlays:o||af(a.mode),...i}}function IC(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const EC=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],_C=e=>(t,n)=>{const o=e.rootSelector||":root",s=e.colorSchemeSelector;let i=s;if(s==="class"&&(i=".%s"),s==="data"&&(i="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(i=`[${s}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return EC(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:a}}:i?{[i.replace("%s",t)]:a,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...a}}}if(i&&i!=="media")return`${o}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}return o};function OC(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ee(e,t,n){!e[t]&&n&&(e[t]=n)}function hr(e){return typeof e!="string"||!e.startsWith("hsl")?e:Zp(e)}function ln(e,t){`${t}Channel`in e||(e[`${t}Channel`]=mr(hr(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
86
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function kC(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Qt=e=>{try{return e()}catch{}},PC=(e="mui")=>KS(e);function Wi(e,t,n,o,s){if(!n)return;n=n===!0?{}:n;const i=s==="dark"?"dark":"light";if(!o){t[s]=TC({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:a,...l}=ra({...o,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[s]={...n,palette:a,opacity:{...sf(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||af(i)},l}function RC(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:s=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=IC,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,m=Object.keys(n)[0],h=o||(n.light&&m!=="light"?"light":m),f=PC(i),{[h]:g,light:p,dark:y,...x}=n,I={...x};let w=g;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(w=!0),!w)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:so(21,h));let S;a&&(S="oklch");const E=Wi(S,I,w,d,h);p&&!I.light&&Wi(S,I,p,void 0,"light"),y&&!I.dark&&Wi(S,I,y,void 0,"dark");let T={defaultColorScheme:h,...E,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:f,colorSchemes:I,font:{...lC(E.typography),...E.font},spacing:kC(d.spacing)};Object.keys(T.colorSchemes).forEach(A=>{const v=T.colorSchemes[A].palette,P=_=>{const k=_.split("-"),D=k[1],M=k[2];return f(_,v[D][M])};v.mode==="light"&&(ee(v.common,"background","#fff"),ee(v.common,"onBackground","#000")),v.mode==="dark"&&(ee(v.common,"background","#000"),ee(v.common,"onBackground","#fff"));function O(_,k,D){if(S){let M;return _===Kn&&(M=`transparent ${((1-D)*100).toFixed(0)}%`),_===Ve&&(M=`#000 ${(D*100).toFixed(0)}%`),_===Fe&&(M=`#fff ${(D*100).toFixed(0)}%`),`color-mix(in ${S}, ${k}, ${M})`}return _(k,D)}if(OC(v,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),v.mode==="light"){ee(v.Alert,"errorColor",O(Ve,a?f("palette-error-light"):v.error.light,.6)),ee(v.Alert,"infoColor",O(Ve,a?f("palette-info-light"):v.info.light,.6)),ee(v.Alert,"successColor",O(Ve,a?f("palette-success-light"):v.success.light,.6)),ee(v.Alert,"warningColor",O(Ve,a?f("palette-warning-light"):v.warning.light,.6)),ee(v.Alert,"errorFilledBg",P("palette-error-main")),ee(v.Alert,"infoFilledBg",P("palette-info-main")),ee(v.Alert,"successFilledBg",P("palette-success-main")),ee(v.Alert,"warningFilledBg",P("palette-warning-main")),ee(v.Alert,"errorFilledColor",Qt(()=>v.getContrastText(v.error.main))),ee(v.Alert,"infoFilledColor",Qt(()=>v.getContrastText(v.info.main))),ee(v.Alert,"successFilledColor",Qt(()=>v.getContrastText(v.success.main))),ee(v.Alert,"warningFilledColor",Qt(()=>v.getContrastText(v.warning.main))),ee(v.Alert,"errorStandardBg",O(Fe,a?f("palette-error-light"):v.error.light,.9)),ee(v.Alert,"infoStandardBg",O(Fe,a?f("palette-info-light"):v.info.light,.9)),ee(v.Alert,"successStandardBg",O(Fe,a?f("palette-success-light"):v.success.light,.9)),ee(v.Alert,"warningStandardBg",O(Fe,a?f("palette-warning-light"):v.warning.light,.9)),ee(v.Alert,"errorIconColor",P("palette-error-main")),ee(v.Alert,"infoIconColor",P("palette-info-main")),ee(v.Alert,"successIconColor",P("palette-success-main")),ee(v.Alert,"warningIconColor",P("palette-warning-main")),ee(v.AppBar,"defaultBg",P("palette-grey-100")),ee(v.Avatar,"defaultBg",P("palette-grey-400")),ee(v.Button,"inheritContainedBg",P("palette-grey-300")),ee(v.Button,"inheritContainedHoverBg",P("palette-grey-A100")),ee(v.Chip,"defaultBorder",P("palette-grey-400")),ee(v.Chip,"defaultAvatarColor",P("palette-grey-700")),ee(v.Chip,"defaultIconColor",P("palette-grey-700")),ee(v.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ee(v.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ee(v.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ee(v.LinearProgress,"primaryBg",O(Fe,a?f("palette-primary-main"):v.primary.main,.62)),ee(v.LinearProgress,"secondaryBg",O(Fe,a?f("palette-secondary-main"):v.secondary.main,.62)),ee(v.LinearProgress,"errorBg",O(Fe,a?f("palette-error-main"):v.error.main,.62)),ee(v.LinearProgress,"infoBg",O(Fe,a?f("palette-info-main"):v.info.main,.62)),ee(v.LinearProgress,"successBg",O(Fe,a?f("palette-success-main"):v.success.main,.62)),ee(v.LinearProgress,"warningBg",O(Fe,a?f("palette-warning-light"):v.warning.main,.62)),ee(v.Skeleton,"bg",S?O(Kn,a?f("palette-text-primary"):v.text.primary,.11):`rgba(${P("palette-text-primaryChannel")} / 0.11)`),ee(v.Slider,"primaryTrack",O(Fe,a?f("palette-primary-main"):v.primary.main,.62)),ee(v.Slider,"secondaryTrack",O(Fe,a?f("palette-secondary-main"):v.secondary.main,.62)),ee(v.Slider,"errorTrack",O(Fe,a?f("palette-error-main"):v.error.main,.62)),ee(v.Slider,"infoTrack",O(Fe,a?f("palette-info-main"):v.info.main,.62)),ee(v.Slider,"successTrack",O(Fe,a?f("palette-success-main"):v.success.main,.62)),ee(v.Slider,"warningTrack",O(Fe,a?f("palette-warning-main"):v.warning.main,.62));const _=S?O(Ve,a?f("palette-background-default"):v.background.default,.6825):as(v.background.default,.8);ee(v.SnackbarContent,"bg",_),ee(v.SnackbarContent,"color",Qt(()=>S?oa.text.primary:v.getContrastText(_))),ee(v.SpeedDialAction,"fabHoverBg",as(v.background.paper,.15)),ee(v.StepConnector,"border",P("palette-grey-400")),ee(v.StepContent,"border",P("palette-grey-400")),ee(v.Switch,"defaultColor",P("palette-common-white")),ee(v.Switch,"defaultDisabledColor",P("palette-grey-100")),ee(v.Switch,"primaryDisabledColor",O(Fe,a?f("palette-primary-main"):v.primary.main,.62)),ee(v.Switch,"secondaryDisabledColor",O(Fe,a?f("palette-secondary-main"):v.secondary.main,.62)),ee(v.Switch,"errorDisabledColor",O(Fe,a?f("palette-error-main"):v.error.main,.62)),ee(v.Switch,"infoDisabledColor",O(Fe,a?f("palette-info-main"):v.info.main,.62)),ee(v.Switch,"successDisabledColor",O(Fe,a?f("palette-success-main"):v.success.main,.62)),ee(v.Switch,"warningDisabledColor",O(Fe,a?f("palette-warning-main"):v.warning.main,.62)),ee(v.TableCell,"border",O(Fe,Kn(a?f("palette-divider"):v.divider,1),.88)),ee(v.Tooltip,"bg",O(Kn,a?f("palette-grey-700"):v.grey[700],.92))}if(v.mode==="dark"){ee(v.Alert,"errorColor",O(Fe,a?f("palette-error-light"):v.error.light,.6)),ee(v.Alert,"infoColor",O(Fe,a?f("palette-info-light"):v.info.light,.6)),ee(v.Alert,"successColor",O(Fe,a?f("palette-success-light"):v.success.light,.6)),ee(v.Alert,"warningColor",O(Fe,a?f("palette-warning-light"):v.warning.light,.6)),ee(v.Alert,"errorFilledBg",P("palette-error-dark")),ee(v.Alert,"infoFilledBg",P("palette-info-dark")),ee(v.Alert,"successFilledBg",P("palette-success-dark")),ee(v.Alert,"warningFilledBg",P("palette-warning-dark")),ee(v.Alert,"errorFilledColor",Qt(()=>v.getContrastText(v.error.dark))),ee(v.Alert,"infoFilledColor",Qt(()=>v.getContrastText(v.info.dark))),ee(v.Alert,"successFilledColor",Qt(()=>v.getContrastText(v.success.dark))),ee(v.Alert,"warningFilledColor",Qt(()=>v.getContrastText(v.warning.dark))),ee(v.Alert,"errorStandardBg",O(Ve,a?f("palette-error-light"):v.error.light,.9)),ee(v.Alert,"infoStandardBg",O(Ve,a?f("palette-info-light"):v.info.light,.9)),ee(v.Alert,"successStandardBg",O(Ve,a?f("palette-success-light"):v.success.light,.9)),ee(v.Alert,"warningStandardBg",O(Ve,a?f("palette-warning-light"):v.warning.light,.9)),ee(v.Alert,"errorIconColor",P("palette-error-main")),ee(v.Alert,"infoIconColor",P("palette-info-main")),ee(v.Alert,"successIconColor",P("palette-success-main")),ee(v.Alert,"warningIconColor",P("palette-warning-main")),ee(v.AppBar,"defaultBg",P("palette-grey-900")),ee(v.AppBar,"darkBg",P("palette-background-paper")),ee(v.AppBar,"darkColor",P("palette-text-primary")),ee(v.Avatar,"defaultBg",P("palette-grey-600")),ee(v.Button,"inheritContainedBg",P("palette-grey-800")),ee(v.Button,"inheritContainedHoverBg",P("palette-grey-700")),ee(v.Chip,"defaultBorder",P("palette-grey-700")),ee(v.Chip,"defaultAvatarColor",P("palette-grey-300")),ee(v.Chip,"defaultIconColor",P("palette-grey-300")),ee(v.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ee(v.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ee(v.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ee(v.LinearProgress,"primaryBg",O(Ve,a?f("palette-primary-main"):v.primary.main,.5)),ee(v.LinearProgress,"secondaryBg",O(Ve,a?f("palette-secondary-main"):v.secondary.main,.5)),ee(v.LinearProgress,"errorBg",O(Ve,a?f("palette-error-main"):v.error.main,.5)),ee(v.LinearProgress,"infoBg",O(Ve,a?f("palette-info-main"):v.info.main,.5)),ee(v.LinearProgress,"successBg",O(Ve,a?f("palette-success-main"):v.success.main,.5)),ee(v.LinearProgress,"warningBg",O(Ve,a?f("palette-warning-main"):v.warning.main,.5)),ee(v.Skeleton,"bg",S?O(Kn,a?f("palette-text-primary"):v.text.primary,.13):`rgba(${P("palette-text-primaryChannel")} / 0.13)`),ee(v.Slider,"primaryTrack",O(Ve,a?f("palette-primary-main"):v.primary.main,.5)),ee(v.Slider,"secondaryTrack",O(Ve,a?f("palette-secondary-main"):v.secondary.main,.5)),ee(v.Slider,"errorTrack",O(Ve,a?f("palette-error-main"):v.error.main,.5)),ee(v.Slider,"infoTrack",O(Ve,a?f("palette-info-main"):v.info.main,.5)),ee(v.Slider,"successTrack",O(Ve,a?f("palette-success-main"):v.success.main,.5)),ee(v.Slider,"warningTrack",O(Ve,a?f("palette-warning-light"):v.warning.main,.5));const _=S?O(Fe,a?f("palette-background-default"):v.background.default,.985):as(v.background.default,.98);ee(v.SnackbarContent,"bg",_),ee(v.SnackbarContent,"color",Qt(()=>S?tf.text.primary:v.getContrastText(_))),ee(v.SpeedDialAction,"fabHoverBg",as(v.background.paper,.15)),ee(v.StepConnector,"border",P("palette-grey-600")),ee(v.StepContent,"border",P("palette-grey-600")),ee(v.Switch,"defaultColor",P("palette-grey-300")),ee(v.Switch,"defaultDisabledColor",P("palette-grey-600")),ee(v.Switch,"primaryDisabledColor",O(Ve,a?f("palette-primary-main"):v.primary.main,.55)),ee(v.Switch,"secondaryDisabledColor",O(Ve,a?f("palette-secondary-main"):v.secondary.main,.55)),ee(v.Switch,"errorDisabledColor",O(Ve,a?f("palette-error-main"):v.error.main,.55)),ee(v.Switch,"infoDisabledColor",O(Ve,a?f("palette-info-main"):v.info.main,.55)),ee(v.Switch,"successDisabledColor",O(Ve,a?f("palette-success-main"):v.success.main,.55)),ee(v.Switch,"warningDisabledColor",O(Ve,a?f("palette-warning-light"):v.warning.main,.55)),ee(v.TableCell,"border",O(Ve,Kn(a?f("palette-divider"):v.divider,1),.68)),ee(v.Tooltip,"bg",O(Kn,a?f("palette-grey-700"):v.grey[700],.92))}a||(ln(v.background,"default"),ln(v.background,"paper"),ln(v.common,"background"),ln(v.common,"onBackground"),ln(v,"divider")),Object.keys(v).forEach(_=>{const k=v[_];_!=="tonalOffset"&&!a&&k&&typeof k=="object"&&(k.main&&ee(v[_],"mainChannel",mr(hr(k.main))),k.light&&ee(v[_],"lightChannel",mr(hr(k.light))),k.dark&&ee(v[_],"darkChannel",mr(hr(k.dark))),k.contrastText&&ee(v[_],"contrastTextChannel",mr(hr(k.contrastText))),_==="text"&&(ln(v[_],"primary"),ln(v[_],"secondary")),_==="action"&&(k.active&&ln(v[_],"active"),k.selected&&ln(v[_],"selected")))})}),T=t.reduce((A,v)=>kt(A,v),T);const R={prefix:i,disableCssColorScheme:s,shouldSkipGeneratingVar:l,getSelector:_C(T),enableContrastVars:a},{vars:N,generateThemeVars:L,generateStyleSheets:V}=ZS(T,R);return T.vars=N,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([A,v])=>{T[A]=v}),T.generateThemeVars=L,T.generateStyleSheets=V,T.generateSpacing=function(){return zp(d.spacing,Ka(this))},T.getColorSchemeSelector=JS(c),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=l,T.unstable_sxConfig={...qr,...d==null?void 0:d.unstable_sxConfig},T.unstable_sx=function(v){return Bo({sx:v,theme:this})},T.toRuntimeSource=rf,T}function Jc(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:el({...n===!0?{}:n.palette,mode:t})})}function NC(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:s=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,l=i||"light",c=s==null?void 0:s[l],u={...s,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return ra(e,...t);let d=n;"palette"in e||u[l]&&(u[l]!==!0?d=u[l].palette:l==="dark"&&(d={mode:"dark"}));const m=ra({...e,palette:d},...t);return m.defaultColorScheme=l,m.colorSchemes=u,m.palette.mode==="light"&&(m.colorSchemes.light={...u.light!==!0&&u.light,palette:m.palette},Jc(m,"dark",u.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:m.palette},Jc(m,"light",u.light)),m}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),RC({...a,colorSchemes:u,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const tl=NC(),ci="$$material";function Hr(){const e=Up(tl);return process.env.NODE_ENV!=="production"&&C.useDebugValue(e),e[ci]||e}function MC(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Zo=e=>MC(e)&&e!=="classes",ne=OS({themeId:ci,defaultTheme:tl,rootShouldForwardProp:Zo});function $C(){return aS}const Je=GS;process.env.NODE_ENV!=="production"&&(r.node,r.object.isRequired);function Ye(e){return qS(e)}function DC(e){return Me("MuiSvgIcon",e)}_e("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const AC=e=>{const{color:t,fontSize:n,classes:o}=e,s={root:["root",t!=="inherit"&&`color${le(t)}`,`fontSize${le(n)}`]};return Le(s,DC,o)},jC=ne("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${le(n.color)}`],t[`fontSize${le(n.fontSize)}`]]}})(Je(({theme:e})=>{var t,n,o,s,i,a,l,c,u,d,m,h,f,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(t=e.transitions)==null?void 0:t.create)==null?void 0:s.call(t,"fill",{duration:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:p=>!p.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,p])=>p&&p.main).map(([p])=>{var y,x;return{props:{color:p},style:{color:(x=(y=(e.vars??e).palette)==null?void 0:y[p])==null?void 0:x.main}}}),{props:{color:"action"},style:{color:(h=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(g=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Rs=C.forwardRef(function(t,n){const o=Ye({props:t,name:"MuiSvgIcon"}),{children:s,className:i,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:m,viewBox:h="0 0 24 24",...f}=o,g=C.isValidElement(s)&&s.type==="svg",p={...o,color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:g},y={};d||(y.viewBox=h);const x=AC(p);return b.jsxs(jC,{as:l,className:ue(x.root,i),focusable:"false",color:u,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n,...y,...f,...g&&s.props,ownerState:p,children:[g?s.props.children:s,m?b.jsx("title",{children:m}):null]})});process.env.NODE_ENV!=="production"&&(Rs.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),r.string]),component:r.elementType,fontSize:r.oneOfType([r.oneOf(["inherit","large","medium","small"]),r.string]),htmlColor:r.string,inheritViewBox:r.bool,shapeRendering:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),titleAccess:r.string,viewBox:r.string});Rs.muiName="SvgIcon";function ut(e,t){function n(o,s){return b.jsx(Rs,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:s,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Rs.muiName,C.memo(C.forwardRef(n))}function tn(e){return e&&e.ownerDocument||document}function Nr(e){return tn(e).defaultView||window}function eu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function LC(e,t,n,o,s){if(process.env.NODE_ENV==="production")return null;const i=s||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function VC(e){const{controlled:t,default:n,name:o,state:s="value"}=e,{current:i}=C.useRef(t!==void 0),[a,l]=C.useState(n),c=i?t:a;if(process.env.NODE_ENV!=="production"){C.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${s} state of ${o} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} element for 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(`
74
+ export default theme;`}function Du(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Gx=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let o=0;o<t.length;o+=1)n+=+t[o];return n};function Kx(e){Object.assign(e,{alpha(t,n){const o=this||e;return o.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:o.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:Xs(t,Gx(n))},lighten(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #fff ${Du(n)})`:Oi(t,n)},darken(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #000 ${Du(n)})`:ki(t,n)}})}function ka(e={},...t){const{breakpoints:n,mixins:o={},spacing:s,palette:i={},transitions:a={},typography:l={},shape:c,colorSpace:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://v7.mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":wo(20));const m=al({...i,colorSpace:u}),g=rl(e);let p=jt(g,{mixins:jx(g.breakpoints,o),palette:m,shadows:zx.slice(),typography:Lx(m,l),transitions:Hx(a),zIndex:{...qx}});if(p=jt(p,d),p=t.reduce((b,f)=>jt(b,f),p),process.env.NODE_ENV!=="production"){const b=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(y,x)=>{let T;for(T in y){const S=y[T];if(b.includes(T)&&Object.keys(S).length>0){if(process.env.NODE_ENV!=="production"){const w=Re("",T);console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${T}\` internal state.`,"You can not override it like this: ",JSON.stringify(y,null,2),"",`Instead, you need to use the '&.${w}' syntax:`,JSON.stringify({root:{[`&.${w}`]:S}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
75
+ `))}y[T]={}}}};Object.keys(p.components).forEach(y=>{const x=p.components[y].styleOverrides;x&&y.startsWith("Mui")&&f(x,y)})}return p.unstable_sxConfig={...is,...d==null?void 0:d.unstable_sxConfig},p.unstable_sx=function(f){return nr({sx:f,theme:this})},p.toRuntimeSource=bf,Kx(p),p}function Oa(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const Xx=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Oa(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function yf(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function vf(e){return e==="dark"?Xx:[]}function Qx(e){const{palette:t={mode:"light"},opacity:n,overlays:o,colorSpace:s,...i}=e,a=al({...t,colorSpace:s});return{palette:a,opacity:{...yf(a.mode),...n},overlays:o||vf(a.mode),...i}}function Zx(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Jx=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],eC=e=>(t,n)=>{const o=e.rootSelector||":root",s=e.colorSchemeSelector;let i=s;if(s==="class"&&(i=".%s"),s==="data"&&(i="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(i=`[${s}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return Jx(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:a}}:i?{[i.replace("%s",t)]:a,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...a}}}if(i&&i!=="media")return`${o}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}return o};function tC(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ie(e,t,n){!e[t]&&n&&(e[t]=n)}function kr(e){return typeof e!="string"||!e.startsWith("hsl")?e:df(e)}function xn(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Er(kr(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
76
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function nC(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const dn=e=>{try{return e()}catch{}},oC=(e="mui")=>wx(e);function pa(e,t,n,o,s){if(!n)return;n=n===!0?{}:n;const i=s==="dark"?"dark":"light";if(!o){t[s]=Qx({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:a,...l}=ka({...o,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[s]={...n,palette:a,opacity:{...yf(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||vf(i)},l}function rC(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:s=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=Zx,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,m=Object.keys(n)[0],g=o||(n.light&&m!=="light"?"light":m),p=oC(i),{[g]:b,light:f,dark:y,...x}=n,T={...x};let S=b;if((g==="dark"&&!("dark"in n)||g==="light"&&!("light"in n))&&(S=!0),!S)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${g}\` option is either missing or invalid.`:wo(21,g));let w;a&&(w="oklch");const E=pa(w,T,S,d,g);f&&!T.light&&pa(w,T,f,void 0,"light"),y&&!T.dark&&pa(w,T,y,void 0,"dark");let I={defaultColorScheme:g,...E,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:p,colorSchemes:T,font:{...$x(E.typography),...E.font},spacing:nC(d.spacing)};Object.keys(I.colorSchemes).forEach($=>{const v=I.colorSchemes[$].palette,O=k=>{const M=k.split("-"),_=M[1],A=M[2];return p(k,v[_][A])};v.mode==="light"&&(ie(v.common,"background","#fff"),ie(v.common,"onBackground","#000")),v.mode==="dark"&&(ie(v.common,"background","#000"),ie(v.common,"onBackground","#fff"));function P(k,M,_){if(w){let A;return k===ao&&(A=`transparent ${((1-_)*100).toFixed(0)}%`),k===He&&(A=`#000 ${(_*100).toFixed(0)}%`),k===qe&&(A=`#fff ${(_*100).toFixed(0)}%`),`color-mix(in ${w}, ${M}, ${A})`}return k(M,_)}if(tC(v,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),v.mode==="light"){ie(v.Alert,"errorColor",P(He,a?p("palette-error-light"):v.error.light,.6)),ie(v.Alert,"infoColor",P(He,a?p("palette-info-light"):v.info.light,.6)),ie(v.Alert,"successColor",P(He,a?p("palette-success-light"):v.success.light,.6)),ie(v.Alert,"warningColor",P(He,a?p("palette-warning-light"):v.warning.light,.6)),ie(v.Alert,"errorFilledBg",O("palette-error-main")),ie(v.Alert,"infoFilledBg",O("palette-info-main")),ie(v.Alert,"successFilledBg",O("palette-success-main")),ie(v.Alert,"warningFilledBg",O("palette-warning-main")),ie(v.Alert,"errorFilledColor",dn(()=>v.getContrastText(v.error.main))),ie(v.Alert,"infoFilledColor",dn(()=>v.getContrastText(v.info.main))),ie(v.Alert,"successFilledColor",dn(()=>v.getContrastText(v.success.main))),ie(v.Alert,"warningFilledColor",dn(()=>v.getContrastText(v.warning.main))),ie(v.Alert,"errorStandardBg",P(qe,a?p("palette-error-light"):v.error.light,.9)),ie(v.Alert,"infoStandardBg",P(qe,a?p("palette-info-light"):v.info.light,.9)),ie(v.Alert,"successStandardBg",P(qe,a?p("palette-success-light"):v.success.light,.9)),ie(v.Alert,"warningStandardBg",P(qe,a?p("palette-warning-light"):v.warning.light,.9)),ie(v.Alert,"errorIconColor",O("palette-error-main")),ie(v.Alert,"infoIconColor",O("palette-info-main")),ie(v.Alert,"successIconColor",O("palette-success-main")),ie(v.Alert,"warningIconColor",O("palette-warning-main")),ie(v.AppBar,"defaultBg",O("palette-grey-100")),ie(v.Avatar,"defaultBg",O("palette-grey-400")),ie(v.Button,"inheritContainedBg",O("palette-grey-300")),ie(v.Button,"inheritContainedHoverBg",O("palette-grey-A100")),ie(v.Chip,"defaultBorder",O("palette-grey-400")),ie(v.Chip,"defaultAvatarColor",O("palette-grey-700")),ie(v.Chip,"defaultIconColor",O("palette-grey-700")),ie(v.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ie(v.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ie(v.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ie(v.LinearProgress,"primaryBg",P(qe,a?p("palette-primary-main"):v.primary.main,.62)),ie(v.LinearProgress,"secondaryBg",P(qe,a?p("palette-secondary-main"):v.secondary.main,.62)),ie(v.LinearProgress,"errorBg",P(qe,a?p("palette-error-main"):v.error.main,.62)),ie(v.LinearProgress,"infoBg",P(qe,a?p("palette-info-main"):v.info.main,.62)),ie(v.LinearProgress,"successBg",P(qe,a?p("palette-success-main"):v.success.main,.62)),ie(v.LinearProgress,"warningBg",P(qe,a?p("palette-warning-light"):v.warning.main,.62)),ie(v.Skeleton,"bg",w?P(ao,a?p("palette-text-primary"):v.text.primary,.11):`rgba(${O("palette-text-primaryChannel")} / 0.11)`),ie(v.Slider,"primaryTrack",P(qe,a?p("palette-primary-main"):v.primary.main,.62)),ie(v.Slider,"secondaryTrack",P(qe,a?p("palette-secondary-main"):v.secondary.main,.62)),ie(v.Slider,"errorTrack",P(qe,a?p("palette-error-main"):v.error.main,.62)),ie(v.Slider,"infoTrack",P(qe,a?p("palette-info-main"):v.info.main,.62)),ie(v.Slider,"successTrack",P(qe,a?p("palette-success-main"):v.success.main,.62)),ie(v.Slider,"warningTrack",P(qe,a?p("palette-warning-main"):v.warning.main,.62));const k=w?P(He,a?p("palette-background-default"):v.background.default,.6825):Ss(v.background.default,.8);ie(v.SnackbarContent,"bg",k),ie(v.SnackbarContent,"color",dn(()=>w?Ea.text.primary:v.getContrastText(k))),ie(v.SpeedDialAction,"fabHoverBg",Ss(v.background.paper,.15)),ie(v.StepConnector,"border",O("palette-grey-400")),ie(v.StepContent,"border",O("palette-grey-400")),ie(v.Switch,"defaultColor",O("palette-common-white")),ie(v.Switch,"defaultDisabledColor",O("palette-grey-100")),ie(v.Switch,"primaryDisabledColor",P(qe,a?p("palette-primary-main"):v.primary.main,.62)),ie(v.Switch,"secondaryDisabledColor",P(qe,a?p("palette-secondary-main"):v.secondary.main,.62)),ie(v.Switch,"errorDisabledColor",P(qe,a?p("palette-error-main"):v.error.main,.62)),ie(v.Switch,"infoDisabledColor",P(qe,a?p("palette-info-main"):v.info.main,.62)),ie(v.Switch,"successDisabledColor",P(qe,a?p("palette-success-main"):v.success.main,.62)),ie(v.Switch,"warningDisabledColor",P(qe,a?p("palette-warning-main"):v.warning.main,.62)),ie(v.TableCell,"border",P(qe,ao(a?p("palette-divider"):v.divider,1),.88)),ie(v.Tooltip,"bg",P(ao,a?p("palette-grey-700"):v.grey[700],.92))}if(v.mode==="dark"){ie(v.Alert,"errorColor",P(qe,a?p("palette-error-light"):v.error.light,.6)),ie(v.Alert,"infoColor",P(qe,a?p("palette-info-light"):v.info.light,.6)),ie(v.Alert,"successColor",P(qe,a?p("palette-success-light"):v.success.light,.6)),ie(v.Alert,"warningColor",P(qe,a?p("palette-warning-light"):v.warning.light,.6)),ie(v.Alert,"errorFilledBg",O("palette-error-dark")),ie(v.Alert,"infoFilledBg",O("palette-info-dark")),ie(v.Alert,"successFilledBg",O("palette-success-dark")),ie(v.Alert,"warningFilledBg",O("palette-warning-dark")),ie(v.Alert,"errorFilledColor",dn(()=>v.getContrastText(v.error.dark))),ie(v.Alert,"infoFilledColor",dn(()=>v.getContrastText(v.info.dark))),ie(v.Alert,"successFilledColor",dn(()=>v.getContrastText(v.success.dark))),ie(v.Alert,"warningFilledColor",dn(()=>v.getContrastText(v.warning.dark))),ie(v.Alert,"errorStandardBg",P(He,a?p("palette-error-light"):v.error.light,.9)),ie(v.Alert,"infoStandardBg",P(He,a?p("palette-info-light"):v.info.light,.9)),ie(v.Alert,"successStandardBg",P(He,a?p("palette-success-light"):v.success.light,.9)),ie(v.Alert,"warningStandardBg",P(He,a?p("palette-warning-light"):v.warning.light,.9)),ie(v.Alert,"errorIconColor",O("palette-error-main")),ie(v.Alert,"infoIconColor",O("palette-info-main")),ie(v.Alert,"successIconColor",O("palette-success-main")),ie(v.Alert,"warningIconColor",O("palette-warning-main")),ie(v.AppBar,"defaultBg",O("palette-grey-900")),ie(v.AppBar,"darkBg",O("palette-background-paper")),ie(v.AppBar,"darkColor",O("palette-text-primary")),ie(v.Avatar,"defaultBg",O("palette-grey-600")),ie(v.Button,"inheritContainedBg",O("palette-grey-800")),ie(v.Button,"inheritContainedHoverBg",O("palette-grey-700")),ie(v.Chip,"defaultBorder",O("palette-grey-700")),ie(v.Chip,"defaultAvatarColor",O("palette-grey-300")),ie(v.Chip,"defaultIconColor",O("palette-grey-300")),ie(v.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ie(v.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ie(v.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ie(v.LinearProgress,"primaryBg",P(He,a?p("palette-primary-main"):v.primary.main,.5)),ie(v.LinearProgress,"secondaryBg",P(He,a?p("palette-secondary-main"):v.secondary.main,.5)),ie(v.LinearProgress,"errorBg",P(He,a?p("palette-error-main"):v.error.main,.5)),ie(v.LinearProgress,"infoBg",P(He,a?p("palette-info-main"):v.info.main,.5)),ie(v.LinearProgress,"successBg",P(He,a?p("palette-success-main"):v.success.main,.5)),ie(v.LinearProgress,"warningBg",P(He,a?p("palette-warning-main"):v.warning.main,.5)),ie(v.Skeleton,"bg",w?P(ao,a?p("palette-text-primary"):v.text.primary,.13):`rgba(${O("palette-text-primaryChannel")} / 0.13)`),ie(v.Slider,"primaryTrack",P(He,a?p("palette-primary-main"):v.primary.main,.5)),ie(v.Slider,"secondaryTrack",P(He,a?p("palette-secondary-main"):v.secondary.main,.5)),ie(v.Slider,"errorTrack",P(He,a?p("palette-error-main"):v.error.main,.5)),ie(v.Slider,"infoTrack",P(He,a?p("palette-info-main"):v.info.main,.5)),ie(v.Slider,"successTrack",P(He,a?p("palette-success-main"):v.success.main,.5)),ie(v.Slider,"warningTrack",P(He,a?p("palette-warning-light"):v.warning.main,.5));const k=w?P(qe,a?p("palette-background-default"):v.background.default,.985):Ss(v.background.default,.98);ie(v.SnackbarContent,"bg",k),ie(v.SnackbarContent,"color",dn(()=>w?mf.text.primary:v.getContrastText(k))),ie(v.SpeedDialAction,"fabHoverBg",Ss(v.background.paper,.15)),ie(v.StepConnector,"border",O("palette-grey-600")),ie(v.StepContent,"border",O("palette-grey-600")),ie(v.Switch,"defaultColor",O("palette-grey-300")),ie(v.Switch,"defaultDisabledColor",O("palette-grey-600")),ie(v.Switch,"primaryDisabledColor",P(He,a?p("palette-primary-main"):v.primary.main,.55)),ie(v.Switch,"secondaryDisabledColor",P(He,a?p("palette-secondary-main"):v.secondary.main,.55)),ie(v.Switch,"errorDisabledColor",P(He,a?p("palette-error-main"):v.error.main,.55)),ie(v.Switch,"infoDisabledColor",P(He,a?p("palette-info-main"):v.info.main,.55)),ie(v.Switch,"successDisabledColor",P(He,a?p("palette-success-main"):v.success.main,.55)),ie(v.Switch,"warningDisabledColor",P(He,a?p("palette-warning-light"):v.warning.main,.55)),ie(v.TableCell,"border",P(He,ao(a?p("palette-divider"):v.divider,1),.68)),ie(v.Tooltip,"bg",P(ao,a?p("palette-grey-700"):v.grey[700],.92))}a||(xn(v.background,"default"),xn(v.background,"paper"),xn(v.common,"background"),xn(v.common,"onBackground"),xn(v,"divider")),Object.keys(v).forEach(k=>{const M=v[k];k!=="tonalOffset"&&!a&&M&&typeof M=="object"&&(M.main&&ie(v[k],"mainChannel",Er(kr(M.main))),M.light&&ie(v[k],"lightChannel",Er(kr(M.light))),M.dark&&ie(v[k],"darkChannel",Er(kr(M.dark))),M.contrastText&&ie(v[k],"contrastTextChannel",Er(kr(M.contrastText))),k==="text"&&(xn(v[k],"primary"),xn(v[k],"secondary")),k==="action"&&(M.active&&xn(v[k],"active"),M.selected&&xn(v[k],"selected")))})}),I=t.reduce(($,v)=>jt($,v),I);const R={prefix:i,disableCssColorScheme:s,shouldSkipGeneratingVar:l,getSelector:eC(I),enableContrastVars:a},{vars:N,generateThemeVars:j,generateStyleSheets:V}=Ix(I,R);return I.vars=N,Object.entries(I.colorSchemes[I.defaultColorScheme]).forEach(([$,v])=>{I[$]=v}),I.generateThemeVars=j,I.generateStyleSheets=V,I.generateSpacing=function(){return Jp(d.spacing,nl(this))},I.getColorSchemeSelector=Ex(c),I.spacing=I.generateSpacing(),I.shouldSkipGeneratingVar=l,I.unstable_sxConfig={...is,...d==null?void 0:d.unstable_sxConfig},I.unstable_sx=function(v){return nr({sx:v,theme:this})},I.toRuntimeSource=bf,I}function Ru(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:al({...n===!0?{}:n.palette,mode:t})})}function sC(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:s=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,l=i||"light",c=s==null?void 0:s[l],u={...s,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return ka(e,...t);let d=n;"palette"in e||u[l]&&(u[l]!==!0?d=u[l].palette:l==="dark"&&(d={mode:"dark"}));const m=ka({...e,palette:d},...t);return m.defaultColorScheme=l,m.colorSchemes=u,m.palette.mode==="light"&&(m.colorSchemes.light={...u.light!==!0&&u.light,palette:m.palette},Ru(m,"dark",u.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:m.palette},Ru(m,"light",u.light)),m}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),rC({...a,colorSchemes:u,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const ll=sC();function Io(){const e=tf(ll);return process.env.NODE_ENV!=="production"&&C.useDebugValue(e),e[gi]||e}function ke({props:e,name:t}){return ix({props:e,name:t,defaultTheme:ll,themeId:gi})}function iC(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const pr=e=>iC(e)&&e!=="classes",te=tx({themeId:gi,defaultTheme:ll,rootShouldForwardProp:pr}),aC=["localeText"],Qs=C.createContext(null);process.env.NODE_ENV!=="production"&&(Qs.displayName="PickerAdapterContext");const as=function(t){const{localeText:n}=t,o=Ce(t,aC),{adapter:s,localeText:i}=C.useContext(Qs)??{adapter:void 0,localeText:void 0},a=ke({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:m,localeText:g}=a,p=C.useMemo(()=>D({},g,i,n),[g,i,n]),b=C.useMemo(()=>{if(!c)return s||null;const x=new c({locale:m,formats:u,instance:d});if(!x.isMUIAdapter)throw new Error(process.env.NODE_ENV!=="production"?"MUI X Date Pickers: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`. Using adapters from @date-io directly is not supported. For example, use `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`. See https://mui.com/x/react-date-pickers/quickstart/#installation":je(143));return x},[c,m,u,d,s]),f=C.useMemo(()=>b?{minDate:b.date("1900-01-01T00:00:00.000"),maxDate:b.date("2099-12-31T00:00:00.000")}:null,[b]),y=C.useMemo(()=>({adapter:b,defaultDates:f,localeText:p}),[f,b,p]);return h.jsx(Qs.Provider,{value:y,children:l})};process.env.NODE_ENV!=="production"&&(as.displayName="LocalizationProvider");process.env.NODE_ENV!=="production"&&(as.propTypes={adapterLocale:r.any,children:r.node,dateAdapter:r.func,dateFormats:r.shape({dayOfMonth:r.string,dayOfMonthFull:r.string,fullDate:r.string,fullTime12h:r.string,fullTime24h:r.string,hours12h:r.string,hours24h:r.string,keyboardDate:r.string,keyboardDateTime12h:r.string,keyboardDateTime24h:r.string,meridiem:r.string,minutes:r.string,month:r.string,monthShort:r.string,normalDate:r.string,normalDateWithWeekday:r.string,seconds:r.string,shortDate:r.string,weekday:r.string,weekdayShort:r.string,year:r.string}),dateLibInstance:r.any,localeText:r.object});var As={exports:{}},lC=As.exports,Nu;function cC(){return Nu||(Nu=1,(function(e,t){(function(n,o){e.exports=o()})(lC,(function(){var n=1e3,o=6e4,s=36e5,i="millisecond",a="second",l="minute",c="hour",u="day",d="week",m="month",g="quarter",p="year",b="date",f="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|YYYY|YY|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,T={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 k=["th","st","nd","rd"],M=P%100;return"["+P+(k[(M-20)%10]||k[M]||k[0])+"]"}},S=function(P,k,M){var _=String(P);return!_||_.length>=k?P:""+Array(k+1-_.length).join(M)+P},w={s:S,z:function(P){var k=-P.utcOffset(),M=Math.abs(k),_=Math.floor(M/60),A=M%60;return(k<=0?"+":"-")+S(_,2,"0")+":"+S(A,2,"0")},m:function P(k,M){if(k.date()<M.date())return-P(M,k);var _=12*(M.year()-k.year())+(M.month()-k.month()),A=k.clone().add(_,m),B=M-A<0,L=k.clone().add(_+(B?-1:1),m);return+(-(_+(M-A)/(B?A-L:L-A))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:m,y:p,w:d,d:u,D:b,h:c,m:l,s:a,ms:i,Q:g}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},E="en",I={};I[E]=T;var R="$isDayjsObject",N=function(P){return P instanceof v||!(!P||!P[R])},j=function P(k,M,_){var A;if(!k)return E;if(typeof k=="string"){var B=k.toLowerCase();I[B]&&(A=B),M&&(I[B]=M,A=B);var L=k.split("-");if(!A&&L.length>1)return P(L[0])}else{var F=k.name;I[F]=k,A=F}return!_&&A&&(E=A),A||!_&&E},V=function(P,k){if(N(P))return P.clone();var M=typeof k=="object"?k:{};return M.date=P,M.args=arguments,new v(M)},$=w;$.l=j,$.i=N,$.w=function(P,k){return V(P,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var v=(function(){function P(M){this.$L=j(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[R]=!0}var k=P.prototype;return k.parse=function(M){this.$d=(function(_){var A=_.date,B=_.utc;if(A===null)return new Date(NaN);if($.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var L=A.match(y);if(L){var F=L[2]-1||0,W=(L[7]||"0").substring(0,3);return B?new Date(Date.UTC(L[1],F,L[3]||1,L[4]||0,L[5]||0,L[6]||0,W)):new Date(L[1],F,L[3]||1,L[4]||0,L[5]||0,L[6]||0,W)}}return new Date(A)})(M),this.init()},k.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},k.$utils=function(){return $},k.isValid=function(){return this.$d.toString()!==f},k.isSame=function(M,_){var A=V(M);return this.startOf(_)<=A&&A<=this.endOf(_)},k.isAfter=function(M,_){return V(M)<this.startOf(_)},k.isBefore=function(M,_){return this.endOf(_)<V(M)},k.$g=function(M,_,A){return $.u(M)?this[_]:this.set(A,M)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(M,_){var A=this,B=!!$.u(_)||_,L=$.p(M),F=function(z,q){var J=$.w(A.$u?Date.UTC(A.$y,q,z):new Date(A.$y,q,z),A);return B?J:J.endOf(u)},W=function(z,q){return $.w(A.toDate()[z].apply(A.toDate("s"),(B?[0,0,0,0]:[23,59,59,999]).slice(q)),A)},G=this.$W,Q=this.$M,K=this.$D,Z="set"+(this.$u?"UTC":"");switch(L){case p:return B?F(1,0):F(31,11);case m:return B?F(1,Q):F(0,Q+1);case d:var se=this.$locale().weekStart||0,Y=(G<se?G+7:G)-se;return F(B?K-Y:K+(6-Y),Q);case u:case b:return W(Z+"Hours",0);case c:return W(Z+"Minutes",1);case l:return W(Z+"Seconds",2);case a:return W(Z+"Milliseconds",3);default:return this.clone()}},k.endOf=function(M){return this.startOf(M,!1)},k.$set=function(M,_){var A,B=$.p(M),L="set"+(this.$u?"UTC":""),F=(A={},A[u]=L+"Date",A[b]=L+"Date",A[m]=L+"Month",A[p]=L+"FullYear",A[c]=L+"Hours",A[l]=L+"Minutes",A[a]=L+"Seconds",A[i]=L+"Milliseconds",A)[B],W=B===u?this.$D+(_-this.$W):_;if(B===m||B===p){var G=this.clone().set(b,1);G.$d[F](W),G.init(),this.$d=G.set(b,Math.min(this.$D,G.daysInMonth())).$d}else F&&this.$d[F](W);return this.init(),this},k.set=function(M,_){return this.clone().$set(M,_)},k.get=function(M){return this[$.p(M)]()},k.add=function(M,_){var A,B=this;M=Number(M);var L=$.p(_),F=function(Q){var K=V(B);return $.w(K.date(K.date()+Math.round(Q*M)),B)};if(L===m)return this.set(m,this.$M+M);if(L===p)return this.set(p,this.$y+M);if(L===u)return F(1);if(L===d)return F(7);var W=(A={},A[l]=o,A[c]=s,A[a]=n,A)[L]||1,G=this.$d.getTime()+M*W;return $.w(G,this)},k.subtract=function(M,_){return this.add(-1*M,_)},k.format=function(M){var _=this,A=this.$locale();if(!this.isValid())return A.invalidDate||f;var B=M||"YYYY-MM-DDTHH:mm:ssZ",L=$.z(this),F=this.$H,W=this.$m,G=this.$M,Q=A.weekdays,K=A.months,Z=A.meridiem,se=function(q,J,U,ce){return q&&(q[J]||q(_,B))||U[J].slice(0,ce)},Y=function(q){return $.s(F%12||12,q,"0")},z=Z||function(q,J,U){var ce=q<12?"AM":"PM";return U?ce.toLowerCase():ce};return B.replace(x,(function(q,J){return J||(function(U){switch(U){case"YY":return String(_.$y).slice(-2);case"YYYY":return $.s(_.$y,4,"0");case"M":return G+1;case"MM":return $.s(G+1,2,"0");case"MMM":return se(A.monthsShort,G,K,3);case"MMMM":return se(K,G);case"D":return _.$D;case"DD":return $.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return se(A.weekdaysMin,_.$W,Q,2);case"ddd":return se(A.weekdaysShort,_.$W,Q,3);case"dddd":return Q[_.$W];case"H":return String(F);case"HH":return $.s(F,2,"0");case"h":return Y(1);case"hh":return Y(2);case"a":return z(F,W,!0);case"A":return z(F,W,!1);case"m":return String(W);case"mm":return $.s(W,2,"0");case"s":return String(_.$s);case"ss":return $.s(_.$s,2,"0");case"SSS":return $.s(_.$ms,3,"0");case"Z":return L}return null})(q)||L.replace(":","")}))},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(M,_,A){var B,L=this,F=$.p(_),W=V(M),G=(W.utcOffset()-this.utcOffset())*o,Q=this-W,K=function(){return $.m(L,W)};switch(F){case p:B=K()/12;break;case m:B=K();break;case g:B=K()/3;break;case d:B=(Q-G)/6048e5;break;case u:B=(Q-G)/864e5;break;case c:B=Q/s;break;case l:B=Q/o;break;case a:B=Q/n;break;default:B=Q}return A?B:$.a(B)},k.daysInMonth=function(){return this.endOf(m).$D},k.$locale=function(){return I[this.$L]},k.locale=function(M,_){if(!M)return this.$L;var A=this.clone(),B=j(M,_,!0);return B&&(A.$L=B),A},k.clone=function(){return $.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},P})(),O=v.prototype;return V.prototype=O,[["$ms",i],["$s",a],["$m",l],["$H",c],["$W",u],["$M",m],["$y",p],["$D",b]].forEach((function(P){O[P[1]]=function(k){return this.$g(k,P[0],P[1])}})),V.extend=function(P,k){return P.$i||(P(k,v,V),P.$i=!0),V},V.locale=j,V.isDayjs=N,V.unix=function(P){return V(1e3*P)},V.en=I[E],V.Ls=I,V.p={},V}))})(As)),As.exports}var uC=cC();const gt=To(uC);var Ls={exports:{}},dC=Ls.exports,$u;function pC(){return $u||($u=1,(function(e,t){(function(n,o){e.exports=o()})(dC,(function(){var n="week",o="year";return function(s,i,a){var l=i.prototype;l.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=a(this).startOf(o).add(1,o).date(u),m=a(this).endOf(n);if(d.isBefore(m))return 1}var g=a(this).startOf(o).date(u).startOf(n).subtract(1,"millisecond"),p=this.diff(g,n,!0);return p<0?a(this).startOf("week").week():Math.ceil(p)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})(Ls)),Ls.exports}var fC=pC();const mC=To(fC);var Vs={exports:{}},hC=Vs.exports,ju;function gC(){return ju||(ju=1,(function(e,t){(function(n,o){e.exports=o()})(hC,(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"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,i=/\d\d/,a=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,c={},u=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(x){this[y]=+x}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=(function(x){if(!x||x==="Z")return 0;var T=x.match(/([+-]|\d\d)/g),S=60*T[1]+(+T[2]||0);return S===0?0:T[0]==="+"?-S:S})(y)}],g=function(y){var x=c[y];return x&&(x.indexOf?x:x.s.concat(x.f))},p=function(y,x){var T,S=c.meridiem;if(S){for(var w=1;w<=24;w+=1)if(y.indexOf(S(w,0,x))>-1){T=w>12;break}}else T=y===(x?"pm":"PM");return T},b={A:[l,function(y){this.afternoon=p(y,!1)}],a:[l,function(y){this.afternoon=p(y,!0)}],Q:[s,function(y){this.month=3*(y-1)+1}],S:[s,function(y){this.milliseconds=100*+y}],SS:[i,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[i,d("day")],Do:[l,function(y){var x=c.ordinal,T=y.match(/\d+/);if(this.day=T[0],x)for(var S=1;S<=31;S+=1)x(S).replace(/\[|\]/g,"")===y&&(this.day=S)}],w:[a,d("week")],ww:[i,d("week")],M:[a,d("month")],MM:[i,d("month")],MMM:[l,function(y){var x=g("months"),T=(g("monthsShort")||x.map((function(S){return S.slice(0,3)}))).indexOf(y)+1;if(T<1)throw new Error;this.month=T%12||T}],MMMM:[l,function(y){var x=g("months").indexOf(y)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(y){this.year=u(y)}],YYYY:[/\d{4}/,d("year")],Z:m,ZZ:m};function f(y){var x,T;x=y,T=c&&c.formats;for(var S=(y=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(V,$,v){var O=v&&v.toUpperCase();return $||T[v]||n[v]||T[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(P,k,M){return k||M.slice(1)}))}))).match(o),w=S.length,E=0;E<w;E+=1){var I=S[E],R=b[I],N=R&&R[0],j=R&&R[1];S[E]=j?{regex:N,parser:j}:I.replace(/^\[|\]$/g,"")}return function(V){for(var $={},v=0,O=0;v<w;v+=1){var P=S[v];if(typeof P=="string")O+=P.length;else{var k=P.regex,M=P.parser,_=V.slice(O),A=k.exec(_)[0];M.call($,A),V=V.replace(A,"")}}return(function(B){var L=B.afternoon;if(L!==void 0){var F=B.hours;L?F<12&&(B.hours+=12):F===12&&(B.hours=0),delete B.afternoon}})($),$}}return function(y,x,T){T.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(u=y.parseTwoDigitYear);var S=x.prototype,w=S.parse;S.parse=function(E){var I=E.date,R=E.utc,N=E.args;this.$u=R;var j=N[1];if(typeof j=="string"){var V=N[2]===!0,$=N[3]===!0,v=V||$,O=N[2];$&&(O=N[2]),c=this.$locale(),!V&&O&&(c=T.Ls[O]),this.$d=(function(_,A,B,L){try{if(["x","X"].indexOf(A)>-1)return new Date((A==="X"?1e3:1)*_);var F=f(A)(_),W=F.year,G=F.month,Q=F.day,K=F.hours,Z=F.minutes,se=F.seconds,Y=F.milliseconds,z=F.zone,q=F.week,J=new Date,U=Q||(W||G?1:J.getDate()),ce=W||J.getFullYear(),ne=0;W&&!G||(ne=G>0?G-1:J.getMonth());var de,fe=K||0,ae=Z||0,oe=se||0,he=Y||0;return z?new Date(Date.UTC(ce,ne,U,fe,ae,oe,he+60*z.offset*1e3)):B?new Date(Date.UTC(ce,ne,U,fe,ae,oe,he)):(de=new Date(ce,ne,U,fe,ae,oe,he),q&&(de=L(de).week(q).toDate()),de)}catch{return new Date("")}})(I,j,R,T),this.init(),O&&O!==!0&&(this.$L=this.locale(O).$L),v&&I!=this.format(j)&&(this.$d=new Date("")),c={}}else if(j instanceof Array)for(var P=j.length,k=1;k<=P;k+=1){N[1]=j[k-1];var M=T.apply(this,N);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}k===P&&(this.$d=new Date(""))}else w.call(this,E)}}}))})(Vs)),Vs.exports}var bC=gC();const xf=To(bC);var Fs={exports:{}},yC=Fs.exports,Au;function vC(){return Au||(Au=1,(function(e,t){(function(n,o){e.exports=o()})(yC,(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(o,s,i){var a=s.prototype,l=a.format;i.en.formats=n,a.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=(function(m,g){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(p,b,f){var y=f&&f.toUpperCase();return b||g[f]||n[f]||g[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(x,T,S){return T||S.slice(1)}))}))})(c,u===void 0?{}:u);return l.call(this,d)}}}))})(Fs)),Fs.exports}var xC=vC();const CC=To(xC);var Bs={exports:{}},wC=Bs.exports,Lu;function SC(){return Lu||(Lu=1,(function(e,t){(function(n,o){e.exports=o()})(wC,(function(){return function(n,o,s){o.prototype.isBetween=function(i,a,l,c){var u=s(i),d=s(a),m=(c=c||"()")[0]==="(",g=c[1]===")";return(m?this.isAfter(u,l):!this.isBefore(u,l))&&(g?this.isBefore(d,l):!this.isAfter(d,l))||(m?this.isBefore(u,l):!this.isAfter(u,l))&&(g?this.isAfter(d,l):!this.isBefore(d,l))}}}))})(Bs)),Bs.exports}var TC=SC();const IC=To(TC);var zs={exports:{}},EC=zs.exports,Vu;function kC(){return Vu||(Vu=1,(function(e,t){(function(n,o){e.exports=o()})(EC,(function(){return function(n,o){var s=o.prototype,i=s.format;s.format=function(a){var l=this,c=this.$locale();if(!this.isValid())return i.bind(this)(a);var u=this.$utils(),d=(a||"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(m){switch(m){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),m==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),m==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return m}}));return i.bind(this)(d)}}}))})(zs)),zs.exports}var OC=kC();const _C=To(OC),Fu=new Set;function $n(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
77
+ `):e;Fu.has(n)||(Fu.add(n),t==="error"?console.error(n):console.warn(n))}gt.extend(CC);gt.extend(mC);gt.extend(IC);gt.extend(_C);const PC={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"},MC={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",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"};function fa(){throw new Error(process.env.NODE_ENV!=="production"?"MUI X Date Pickers: Missing dayjs UTC plugin. UTC and timezone support requires the dayjs UTC plugin to be enabled. See https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc for setup instructions.":je(138))}function Bu(){throw new Error(process.env.NODE_ENV!=="production"?"MUI X Date Pickers: Missing dayjs timezone plugin. Timezone support requires both the dayjs UTC and timezone plugins to be enabled. See https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone for setup instructions.":je(139))}class Cf{constructor({locale:t,formats:n}={}){X(this,"isMUIAdapter",!0);X(this,"isTimezoneCompatible",!0);X(this,"lib","dayjs");X(this,"escapedCharacters",{start:"[",end:"]"});X(this,"formatTokenMap",PC);X(this,"setLocaleToValue",t=>{const n=this.getCurrentLocaleCode();return n===t.locale()?t:t.locale(n)});X(this,"hasUTCPlugin",()=>typeof gt.utc<"u");X(this,"hasTimezonePlugin",()=>typeof gt.tz<"u");X(this,"isSame",(t,n,o)=>{const s=this.setTimezone(n,this.getTimezone(t));return t.format(o)===s.format(o)});X(this,"cleanTimezone",t=>{switch(t){case"default":return;case"system":return gt.tz.guess();default:return t}});X(this,"createSystemDate",t=>this.setLocaleToValue(gt(t)));X(this,"createUTCDate",t=>(this.hasUTCPlugin()||fa(),this.setLocaleToValue(gt.utc(t))));X(this,"createTZDate",(t,n)=>{this.hasUTCPlugin()||fa(),this.hasTimezonePlugin()||Bu();const o=t!==void 0&&!t.endsWith("Z");return this.setLocaleToValue(gt(t).tz(this.cleanTimezone(n),o))});X(this,"getLocaleFormats",()=>{const t=gt.Ls,n=this.locale||"en";let o=t[n];return o===void 0&&(process.env.NODE_ENV!=="production"&&$n(["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."]),o=t.en),o.formats});X(this,"adjustOffset",t=>{if(!this.hasTimezonePlugin())return t;const n=this.getTimezone(t);if(n!=="UTC"){const o=t.tz(this.cleanTimezone(n),!0);if(o.$offset===(t.$offset??0))return t;t.$offset=o.$offset}return t});X(this,"restoreDayOfMonth",(t,n)=>{const o=this.getTimezone(t);if(!this.hasUTCPlugin()||o==="system"||o==="UTC")return t;const s=gt.utc(t.format("YYYY-MM-DDTHH:mm:ss.SSS"));if(!s.isValid())return t;const i=Math.min(n.date(),s.daysInMonth());return t.date()===i?t:t.set("date",i)});X(this,"date",(t,n="default")=>t===null?null:n==="UTC"?this.createUTCDate(t):n==="system"||n==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(t):this.createTZDate(t,n));X(this,"getInvalidDate",()=>gt(new Date("Invalid date")));X(this,"getTimezone",t=>{var n;if(this.hasTimezonePlugin()){const o=(n=t.$x)==null?void 0:n.$timezone;if(o)return o}return this.hasUTCPlugin()&&t.isUTC()?"UTC":"system"});X(this,"setTimezone",(t,n)=>{if(this.getTimezone(t)===n)return t;if(n==="UTC")return this.hasUTCPlugin()||fa(),t.utc();if(n==="system")return t.local();if(!this.hasTimezonePlugin()){if(n==="default")return t;Bu()}return this.setLocaleToValue(gt.tz(t,this.cleanTimezone(n)))});X(this,"toJsDate",t=>t.toDate());X(this,"parse",(t,n)=>t===""?null:gt(t,n,this.locale,!0));X(this,"getCurrentLocaleCode",()=>this.locale||"en");X(this,"is12HourCycleInCurrentLocale",()=>/A|a/.test(this.getLocaleFormats().LT||""));X(this,"expandFormat",t=>{const n=this.getLocaleFormats(),o=s=>s.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(i,a,l)=>a||l.slice(1));return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(s,i,a)=>{const l=a&&a.toUpperCase();return i||n[a]||o(n[l])})});X(this,"isValid",t=>t==null?!1:t.isValid());X(this,"format",(t,n)=>this.formatByString(t,this.formats[n]));X(this,"formatByString",(t,n)=>this.setLocaleToValue(t).format(n));X(this,"formatNumber",t=>t);X(this,"isEqual",(t,n)=>t===null&&n===null?!0:t===null||n===null?!1:t.toDate().getTime()===n.toDate().getTime());X(this,"isSameYear",(t,n)=>this.isSame(t,n,"YYYY"));X(this,"isSameMonth",(t,n)=>this.isSame(t,n,"YYYY-MM"));X(this,"isSameDay",(t,n)=>this.isSame(t,n,"YYYY-MM-DD"));X(this,"isSameHour",(t,n)=>t.isSame(n,"hour"));X(this,"isAfter",(t,n)=>t>n);X(this,"isAfterYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()>n.utc():t.isAfter(n,"year"));X(this,"isAfterDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()>n.utc():t.isAfter(n,"day"));X(this,"isBefore",(t,n)=>t<n);X(this,"isBeforeYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()<n.utc():t.isBefore(n,"year"));X(this,"isBeforeDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()<n.utc():t.isBefore(n,"day"));X(this,"isWithinRange",(t,[n,o])=>t>=n&&t<=o);X(this,"startOfYear",t=>this.adjustOffset(t.startOf("year")));X(this,"startOfMonth",t=>this.adjustOffset(t.startOf("month")));X(this,"startOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).startOf("week")));X(this,"startOfDay",t=>this.adjustOffset(t.startOf("day")));X(this,"endOfYear",t=>this.adjustOffset(t.endOf("year")));X(this,"endOfMonth",t=>this.adjustOffset(t.endOf("month")));X(this,"endOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).endOf("week")));X(this,"endOfDay",t=>this.adjustOffset(t.endOf("day")));X(this,"addYears",(t,n)=>this.adjustOffset(this.restoreDayOfMonth(t.add(n,"year"),t)));X(this,"addMonths",(t,n)=>this.adjustOffset(this.restoreDayOfMonth(t.add(n,"month"),t)));X(this,"addWeeks",(t,n)=>this.adjustOffset(t.add(n,"week")));X(this,"addDays",(t,n)=>this.adjustOffset(t.add(n,"day")));X(this,"addHours",(t,n)=>this.adjustOffset(t.add(n,"hour")));X(this,"addMinutes",(t,n)=>this.adjustOffset(t.add(n,"minute")));X(this,"addSeconds",(t,n)=>this.adjustOffset(t.add(n,"second")));X(this,"getYear",t=>t.year());X(this,"getMonth",t=>t.month());X(this,"getDate",t=>t.date());X(this,"getHours",t=>t.hour());X(this,"getMinutes",t=>t.minute());X(this,"getSeconds",t=>t.second());X(this,"getMilliseconds",t=>t.millisecond());X(this,"setYear",(t,n)=>this.adjustOffset(this.restoreDayOfMonth(t.set("year",n),t)));X(this,"setMonth",(t,n)=>this.adjustOffset(this.restoreDayOfMonth(t.set("month",n),t)));X(this,"setDate",(t,n)=>this.adjustOffset(t.set("date",n)));X(this,"setHours",(t,n)=>this.adjustOffset(t.set("hour",n)));X(this,"setMinutes",(t,n)=>this.adjustOffset(t.set("minute",n)));X(this,"setSeconds",(t,n)=>this.adjustOffset(t.set("second",n)));X(this,"setMilliseconds",(t,n)=>this.adjustOffset(t.set("millisecond",n)));X(this,"getDaysInMonth",t=>t.daysInMonth());X(this,"getWeekArray",t=>{const n=this.startOfWeek(this.startOfMonth(t)),o=this.endOfWeek(this.endOfMonth(t));let s=0,i=n;const a=[];for(;i<o;){const l=Math.floor(s/7);a[l]=a[l]||[],a[l].push(i),i=this.addDays(i,1),s+=1}return a});X(this,"getWeekNumber",t=>t.week());X(this,"getYearRange",([t,n])=>{const o=this.startOfYear(t),s=this.endOfYear(n),i=[];let a=o;for(;this.isBefore(a,s);)i.push(a),a=this.addYears(a,1);return i});this.locale=t,this.formats=D({},MC,n),gt.extend(xf)}getDayOfWeek(t){return t.day()+1}}const cl=uf({themeId:gi}),Ft=r.oneOfType([r.func,r.object]);function Gn(e,t,n){return typeof e=="function"?e(t,n):e}const mn=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),wf=({openTo:e,defaultOpenTo:t,views:n,defaultViews:o})=>{const s=n??o;let i;if(e!=null)i=e;else if(s.includes(t))i=t;else if(s.length>0)i=s[0];else throw new Error(process.env.NODE_ENV!=="production"?'MUI X Date Pickers: The `views` prop must contain at least one view. The date picker needs at least one view to display. Add a valid view to the views array (e.g., ["year", "month", "day"]).':je(153));return{views:s,openTo:i}},Zs=(e,t,n)=>{let o=t;return o=e.setHours(o,e.getHours(n)),o=e.setMinutes(o,e.getMinutes(n)),o=e.setSeconds(o,e.getSeconds(n)),o=e.setMilliseconds(o,e.getMilliseconds(n)),o},qr=({date:e,disableFuture:t,disablePast:n,maxDate:o,minDate:s,isDateDisabled:i,adapter:a,timezone:l})=>{const c=Zs(a,a.date(void 0,l),e);n&&a.isBefore(s,c)&&(s=c),t&&a.isAfter(o,c)&&(o=c);let u=e,d=e;for(a.isBefore(e,s)&&(u=s,d=null),a.isAfter(e,o)&&(d&&(d=o),u=null);u||d;){if(u&&a.isAfter(u,o)&&(u=null),d&&a.isBefore(d,s)&&(d=null),u){if(!i(u))return u;u=a.addDays(u,1)}if(d){if(!i(d))return d;d=a.addDays(d,-1)}}return null},DC=(e,t)=>e.isValid(t)?t:null,zu=(e,t,n)=>t==null||!e.isValid(t)?n:t,RC=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),ul=(e,t)=>{const o=[e.startOfYear(t)];for(;o.length<12;){const s=o[o.length-1];o.push(e.addMonths(s,1))}return o},dl=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),Wn=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},NC=["year","month","day"],Wu=e=>NC.includes(e),pl=(e,{format:t,views:n},o)=>{if(t!=null)return t;const s=e.formats;return mn(n,["year"])?s.year:mn(n,["month"])?s.month:mn(n,["day"])?s.dayOfMonth:mn(n,["month","year"])?`${s.month} ${s.year}`:mn(n,["day","month"])?`${s.month} ${s.dayOfMonth}`:o?/en/.test(e.getCurrentLocaleCode())?s.normalDateWithWeekday:s.normalDate:s.keyboardDate},$C=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(n,o))},jC=["hours","minutes","seconds"],AC=["hours","minutes","seconds","meridiem"],or=e=>jC.includes(e),Sf=e=>AC.includes(e),LC=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,Yr=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Tf=(e,t,n,o)=>{const s=Yr(o.getHours(e),t,n);return o.setHours(e,s)},Uu=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),ls=(e,t)=>(n,o)=>e?t.isAfter(n,o):Uu(n,t)>Uu(o,t),If=(e,{format:t,views:n,ampm:o})=>{if(t!=null)return t;const s=e.formats;return mn(n,["hours"])?o?`${s.hours12h} ${s.meridiem}`:s.hours24h:mn(n,["minutes"])?s.minutes:mn(n,["seconds"])?s.seconds:mn(n,["minutes","seconds"])?`${s.minutes}:${s.seconds}`:mn(n,["hours","minutes","seconds"])?o?`${s.hours12h}:${s.minutes}:${s.seconds} ${s.meridiem}`:`${s.hours24h}:${s.minutes}:${s.seconds}`:o?`${s.hours12h}:${s.minutes} ${s.meridiem}`:`${s.hours24h}:${s.minutes}`},an={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},VC=e=>Math.max(...e.map(t=>an[t.type]??1)),yr=(e,t,n)=>{if(t===an.year)return e.startOfYear(n);if(t===an.month)return e.startOfMonth(n);if(t===an.day)return e.startOfDay(n);let o=n;return t<an.minutes&&(o=e.setMinutes(o,0)),t<an.seconds&&(o=e.setSeconds(o,0)),t<an.milliseconds&&(o=e.setMilliseconds(o,0)),o},FC=({props:e,adapter:t,granularity:n,timezone:o,getTodayDate:s})=>{let i=s?s():yr(t,n,dl(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=yr(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=yr(t,n,e.maxDate));const a=ls(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=yr(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Zs(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=yr(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Zs(t,i,e.maxTime))),i},fl=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X: The token "${t}" is not supported by the Date and Time Pickers.
78
+ 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.`:je(157,t));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},_i=(e,t)=>{const n=[],o=e.date(void 0,"default"),s=e.startOfWeek(o),i=e.endOfWeek(o);let a=s;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(l=>e.formatByString(l,t))},Ef=(e,t,n,o)=>{switch(n){case"month":return ul(e,e.date(void 0,t)).map(s=>e.formatByString(s,o));case"weekDay":return _i(e,o);case"meridiem":{const s=e.date(void 0,t);return[e.startOfDay(s),e.endOfDay(s)].map(i=>e.formatByString(i,o))}default:return[]}},Hu="s",BC=["0","1","2","3","4","5","6","7","8","9"],zC=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),Hu)==="0"?BC:Array.from({length:10}).map((o,s)=>e.formatByString(e.setSeconds(t,s),Hu))},bn=(e,t)=>{if(t[0]==="0")return e;const n=[];let o="";for(let s=0;s<e.length;s+=1){o+=e[s];const i=t.indexOf(o);i>-1&&(n.push(i.toString()),o="")}return n.join("")},ml=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),qu=(e,t)=>{const n=bn(e,t);return n!==" "&&!Number.isNaN(Number(n))},hl=(e,t)=>Number(e).toString().padStart(t,"0"),kf=(e,t,n,o,s)=>{if(process.env.NODE_ENV!=="production"&&s.type!=="day"&&s.contentType==="digit-with-letter")throw new Error([`MUI X: The token "${s.format}" is a digit format with letter in it.'
79
+ This type of format is only supported for 'day' sections`].join(`
80
+ `));if(s.type==="day"&&s.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,s.format)}let i=t.toString();return s.hasLeadingZerosInInput&&(i=hl(i,s.maxLength)),ml(i,o)},WC=(e,t,n)=>{let o=e.value||e.placeholder;const s=e.hasLeadingZerosInFormat;return e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(o=Number(bn(o,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!s&&o.length===1&&(o=`${o}‎`),o},Yu=(e,t,n,o)=>{if(process.env.NODE_ENV!=="production"&&fl(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},UC=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,Of=(e,t,n,o)=>{if(t!=="digit")return!1;const s=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&o==="YY"?!0:e.formatByString(e.setYear(s,1),o).startsWith("0");case"month":return e.formatByString(e.startOfYear(s),o).length>1;case"day":return e.formatByString(e.startOfMonth(s),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(s),o).length>1;case"hours":return e.formatByString(e.setHours(s,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(s,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(s,1),o).length>1;default:throw new Error(process.env.NODE_ENV!=="production"?"MUI X:Invalid section type":je(158))}},HC=(e,t,n)=>{const o=t.some(c=>c.type==="day"),s=[],i=[];for(let c=0;c<t.length;c+=1){const u=t[c];o&&u.type==="weekDay"||(s.push(u.format),i.push(WC(u,"non-input",n)))}const a=s.join(" "),l=i.join(" ");return e.parse(l,a)},qC=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),YC=(e,t,n)=>{const o=e.date(void 0,n),s=e.endOfYear(o),i=e.endOfDay(o),{maxDaysInMonth:a,longestMonth:l}=ul(e,o).reduce((c,u)=>{const d=e.getDaysInMonth(u);return d>c.maxDaysInMonth?{maxDaysInMonth:d,longestMonth:u}:c},{maxDaysInMonth:0,longestMonth:null});return{year:({format:c})=>({minimum:0,maximum:UC(e,c)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(s)+1}),day:({currentDate:c})=>({minimum:1,maximum:e.isValid(c)?e.getDaysInMonth(c):a,longestMonth:l}),weekDay:({format:c,contentType:u})=>{if(u==="digit"){const d=_i(e,c).map(Number);return{minimum:Math.min(...d),maximum:Math.max(...d)}}return{minimum:1,maximum:7}},hours:({format:c})=>{const u=e.getHours(i),d=Number(bn(e.formatByString(e.startOfDay(o),c),t)),m=Number(bn(e.formatByString(e.endOfDay(o),c),t));return m!==u?d===0?{minimum:0,maximum:m}:{minimum:1,maximum:d}:d>u?{minimum:1,maximum:d}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let Gu=!1;const Ku=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!Gu){const n=["empty"];["date","date-time"].includes(t)&&n.push("weekDay","day","month","year"),["time","date-time"].includes(t)&&n.push("hours","minutes","seconds","meridiem");const o=e.find(s=>!n.includes(s.type));o&&(console.warn(`MUI X: The field component you are using is not compatible with the "${o.type}" date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),Gu=!0)}},GC=(e,t,n,o)=>{switch(t.type){case"year":return e.setYear(o,e.getYear(n));case"month":return e.setMonth(o,e.getMonth(n));case"weekDay":{let s=e.formatByString(n,t.format);t.hasLeadingZerosInInput&&(s=hl(s,t.maxLength));const i=_i(e,t.format),a=i.indexOf(s),c=i.indexOf(t.value)-a;return e.addDays(n,c)}case"day":return e.setDate(o,e.getDate(n));case"meridiem":{const s=e.getHours(n)<12?"am":"pm";return Tf(o,s,!0,e)}case"hours":return e.setHours(o,e.getHours(n));case"minutes":return e.setMinutes(o,e.getMinutes(n));case"seconds":return e.setSeconds(o,e.getSeconds(n));default:return o}},Xu={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},Qu=(e,t,n,o,s)=>[...n].sort((i,a)=>Xu[i.type]-Xu[a.type]).reduce((i,a)=>!s||a.modified?GC(e,a,t,i):i,o),KC=e=>{const t={};return e.forEach((n,o)=>{const s=o===0?null:o-1,i=o===e.length-1?null:o+1;t[o]={leftIndex:s,rightIndex:i}}),{neighbors:t,startIndex:0,endIndex:e.length-1}},_a=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(o=>o.type===e);return n===-1?null:n}return e},XC=["value","referenceDate"],xt={emptyValue:null,getTodayValue:dl,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=Ce(e,XC);return o.adapter.isValid(t)?t:n??FC(o)},cleanValue:DC,areValuesEqual:RC,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},_f={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getHiddenInputValueFromSections:qC,parseValueStr:(e,t,n)=>n(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,n)=>n,clearDateSections:e=>e.map(t=>D({},t,{value:""}))};function QC(){return Yv}const ct=Cx;process.env.NODE_ENV!=="production"&&(r.node,r.object.isRequired);function Je(e){return yx(e)}function ZC(e){return typeof e.main=="string"}function JC(e,t=[]){if(!ZC(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Ot(e=[]){return([,t])=>t&&JC(t,e)}function ew(e){return Re("MuiTypography",e)}Pe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const tw={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},nw=QC(),ow=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:s,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${me(t)}`,n&&"gutterBottom",o&&"noWrap",s&&"paragraph"]};return Ae(l,ew,a)},rw=te("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${me(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(ct(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,o])=>n!=="inherit"&&o&&typeof o=="object").map(([n,o])=>({props:{variant:n},style:o})),...Object.entries(e.palette).filter(Ot()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${me(n)}`},style:{color:(e.vars||e).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}}]}})),Zu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Jt=C.forwardRef(function(t,n){const{color:o,...s}=Je({props:t,name:"MuiTypography"}),i=!tw[o],a=nw({...s,...i&&{color:o}}),{align:l="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:m=!1,paragraph:g=!1,variant:p="body1",variantMapping:b=Zu,...f}=a,y={...a,align:l,color:o,className:c,component:u,gutterBottom:d,noWrap:m,paragraph:g,variant:p,variantMapping:b},x=u||(g?"p":b[p]||Zu[p])||"span",T=ow(y);return h.jsx(rw,{as:x,ref:n,className:ue(T.root,c),...f,ownerState:y,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...f.style}})});process.env.NODE_ENV!=="production"&&(Jt.propTypes={align:r.oneOf(["center","inherit","justify","left","right"]),children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),r.string]),component:r.elementType,gutterBottom:r.bool,noWrap:r.bool,paragraph:r.bool,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),r.string]),variantMapping:r.object});function Ve(e,t,n=void 0){const o={};for(const s in e){const i=e[s];let a="",l=!0;for(let c=0;c<i.length;c+=1){const u=i[c];u&&(a+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(a+=" "+n[u]))}o[s]=a}return o}const Ju=e=>e,sw=()=>{let e=Ju;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ju}}},iw=sw(),aw={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ye(e,t,n="Mui"){const o=aw[t];return o?`${n}-${o}`:`${iw.generate(e)}-${t}`}function Ze(e,t,n="Mui"){const o={};return t.forEach(s=>{o[s]=Ye(e,s,n)}),o}function Pf(e){return Ye("MuiPickersToolbar",e)}Ze("MuiPickersToolbar",["root","title","content"]);const gl=C.createContext(()=>!0);process.env.NODE_ENV!=="production"&&(gl.displayName="IsValidValueContext");function lw(){return C.useContext(gl)}const bl=C.createContext(null);process.env.NODE_ENV!=="production"&&(bl.displayName="PickerFieldPrivateContext");function cw(){return C.useContext(bl)}const Pi=C.createContext(null);process.env.NODE_ENV!=="production"&&(Pi.displayName="PickerContext");const Eo=()=>{const e=C.useContext(Pi);if(e==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: The `usePickerContext` hook can only be called inside the context of a Picker component":je(151));return e},yl=C.createContext(null);process.env.NODE_ENV!=="production"&&(yl.displayName="PickerActionsContext");const vl=C.createContext({ownerState:{isPickerDisabled:!1,isPickerReadOnly:!1,isPickerValueEmpty:!1,isPickerOpen:!1,pickerVariant:"desktop",pickerOrientation:"portrait"},rootRefObject:{current:null},labelId:void 0,dismissViews:()=>{},hasUIView:!0,getCurrentViewMode:()=>"UI",triggerElement:null,viewContainerRole:null,defaultActionBarActions:[],onPopperExited:void 0});process.env.NODE_ENV!=="production"&&(vl.displayName="PickerPrivateContext");function Mf(e){const{contextValue:t,actionsContextValue:n,privateContextValue:o,fieldPrivateContextValue:s,isValidContextValue:i,localeText:a,children:l}=e;return h.jsx(Pi.Provider,{value:t,children:h.jsx(yl.Provider,{value:n,children:h.jsx(vl.Provider,{value:o,children:h.jsx(bl.Provider,{value:s,children:h.jsx(gl.Provider,{value:i,children:h.jsx(as,{localeText:a,children:l})})})})})})}const at=()=>C.useContext(vl);function xl(){const{ownerState:e}=at(),t=cn();return C.useMemo(()=>D({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const uw=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],dw=e=>Ve({root:["root"],title:["title"],content:["content"]},Pf,e),pw=te("div",{name:"MuiPickersToolbar",slot:"Root"})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{pickerOrientation:"landscape"},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),fw=te("div",{name:"MuiPickersToolbar",slot:"Content",shouldForwardProp:e=>At(e)&&e!=="landscapeDirection"})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{pickerOrientation:"landscape"},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{pickerOrientation:"landscape",landscapeDirection:"row"},style:{flexDirection:"row"}}]}),Cl=C.forwardRef(function(t,n){const o=ke({props:t,name:"MuiPickersToolbar"}),{children:s,className:i,classes:a,toolbarTitle:l,hidden:c,titleId:u,landscapeDirection:d}=o,m=Ce(o,uw),g=xl(),p=dw(a);return c?null:h.jsxs(pw,D({ref:n,className:ue(p.root,i),ownerState:g},m,{children:[h.jsx(Jt,{variant:"overline",id:u,className:p.title,sx:{color:"text.secondary"},children:l}),h.jsx(fw,{className:p.content,ownerState:g,landscapeDirection:d,children:s})]}))});process.env.NODE_ENV!=="production"&&(Cl.displayName="PickersToolbar");const mw=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:D({},e)}}}}),Df={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="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",nextStepButtonLabel:"Next",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",timeRangePickerToolbarTitle:"Select time range",clockLabelText:(e,t)=>`Select ${e}. ${t?`Selected time is ${t}`:"No time selected"}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:e=>e?`Choose date, selected date is ${e}`:"Choose date",openTimePickerDialogue:e=>e?`Choose time, selected time is ${e}`:"Choose time",openRangePickerDialogue:e=>e?`Choose range, selected range is ${e}`:"Choose range",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.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"},hw=Df;mw(Df);const wl=()=>{const e=C.useContext(Qs);if(e===null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Can not find the date and time pickers localization context.\nIt looks like you forgot to wrap your component in LocalizationProvider.\nThis can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package":je(149));if(e.adapter===null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Can not find the date and time pickers adapter from its localization context.\nIt looks like you forgot to pass a `dateAdapter` to your LocalizationProvider.":je(150));const t=C.useMemo(()=>D({},hw,e.localeText),[e.localeText]);return C.useMemo(()=>D({},e,{localeText:t}),[e,t])},Me=()=>wl().adapter,Dt=()=>wl().localeText,Pa=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],Ma=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Rf=["minDateTime","maxDateTime"],gw=[...Pa,...Ma,...Rf],Mi=e=>gw.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),bw=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","fieldRef","startFieldRef","endFieldRef","disabled","readOnly","dateSeparator","autoFocus","focused"],yw=(e,t)=>C.useMemo(()=>{const n=D({},e),o={},s=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return bw.forEach(s),t==="date"?Pa.forEach(s):t==="time"?Ma.forEach(s):t==="date-time"&&(Pa.forEach(s),Ma.forEach(s),Rf.forEach(s)),{forwardedProps:n,internalProps:o}},[e,t]),vw=({adapter:e,format:t})=>{let n=10,o=t,s=e.expandFormat(t);for(;s!==o;)if(o=s,s=e.expandFormat(o),n-=1,n<0)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the component.":je(154));return s},xw=({adapter:e,expandedFormat:t})=>{const n=[],{start:o,end:s}=e.escapedCharacters,i=new RegExp(`(\\${o}[^\\${s}]*\\${s})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},Cw=(e,t,n,o)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),o).length,format:o});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:o});case"day":return t.fieldDayPlaceholder({format:o});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:o});case"hours":return t.fieldHoursPlaceholder({format:o});case"minutes":return t.fieldMinutesPlaceholder({format:o});case"seconds":return t.fieldSecondsPlaceholder({format:o});case"meridiem":return t.fieldMeridiemPlaceholder({format:o});default:return o}},ww=({adapter:e,date:t,shouldRespectLeadingZeros:n,localeText:o,localizedDigits:s,now:i,token:a,startSeparator:l})=>{if(a==="")throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Should not call `commitToken` with an empty token":je(155));const c=fl(e,a),u=Of(e,c.contentType,c.type,a),d=n?u:c.contentType==="digit",m=e.isValid(t);let g=m?e.formatByString(t,a):"",p=null;if(d)if(u)p=g===""?e.formatByString(i,a).length:g.length;else{if(c.maxLength==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X: The token ${a} should have a 'maxLength' property on it's adapter`:je(156,a));p=c.maxLength,m&&(g=ml(hl(bn(g,s),p),s))}return D({},c,{format:a,maxLength:p,value:g,placeholder:Cw(e,o,c,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:d,startSeparator:l,endSeparator:"",modified:!1})},Sw=e=>{var p;const{adapter:t,expandedFormat:n,escapedParts:o}=e,s=t.date(void 0),i=[];let a="";const l=Object.keys(t.formatTokenMap).sort((b,f)=>f.length-b.length),c=/^([a-zA-Z]+)/,u=new RegExp(`^(${l.join("|")})*$`),d=new RegExp(`^(${l.join("|")})`),m=b=>o.find(f=>f.start<=b&&f.end>=b);let g=0;for(;g<n.length;){const b=m(g),f=b!=null,y=(p=c.exec(n.slice(g)))==null?void 0:p[1];if(!f&&y!=null&&u.test(y)){let x=y;for(;x.length>0;){const T=d.exec(x)[1];x=x.slice(T.length),i.push(ww(D({},e,{now:s,token:T,startSeparator:a}))),a=""}g+=y.length}else{const x=n[g];f&&(b==null?void 0:b.start)===g||(b==null?void 0:b.end)===g||(i.length===0?a+=x:(i[i.length-1].endSeparator+=x,i[i.length-1].isEndFormatSeparator=!0)),g+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},Tw=({isRtl:e,formatDensity:t,sections:n})=>n.map(o=>{const s=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`⁩${a}⁦`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return o.startSeparator=s(o.startSeparator),o.endSeparator=s(o.endSeparator),o}),ed=e=>{let t=vw(e);e.isRtl&&(t=t.split(" ").reverse().join(" "));const n=xw(D({},e,{expandedFormat:t})),o=Sw(D({},e,{expandedFormat:t,escapedParts:n}));return Tw(D({},e,{sections:o}))},Sl=()=>C.useContext(Pi),Iw=()=>{const e=C.useContext(yl);if(e==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: The `usePickerActionsContext` can only be called in fields that are used as a slot of a Picker component":je(148));return e};function Ew(e){return Ye("MuiDatePickerToolbar",e)}Ze("MuiDatePickerToolbar",["root","title"]);const kw=["toolbarFormat","toolbarPlaceholder","className","classes"],Ow=e=>Ve({root:["root"],title:["title"]},Ew,e),_w=te(Cl,{name:"MuiDatePickerToolbar",slot:"Root"})({}),Pw=te(Jt,{name:"MuiDatePickerToolbar",slot:"Title"})({variants:[{props:{pickerOrientation:"landscape"},style:{margin:"auto 16px auto auto"}}]}),Tl=C.forwardRef(function(t,n){const o=ke({props:t,name:"MuiDatePickerToolbar"}),{toolbarFormat:s,toolbarPlaceholder:i="––",className:a,classes:l}=o,c=Ce(o,kw),u=Me(),{value:d,views:m,orientation:g}=Eo(),p=Dt(),b=xl(),f=Ow(l),y=C.useMemo(()=>{if(!u.isValid(d))return i;const x=pl(u,{format:s,views:m},!0);return u.formatByString(d,x)},[d,s,i,u,m]);return h.jsx(_w,D({ref:n,toolbarTitle:p.datePickerToolbarTitle,className:ue(f.root,a)},c,{children:h.jsx(Pw,{variant:"h4",align:g==="landscape"?"left":"center",ownerState:b,className:f.title,children:y})}))});process.env.NODE_ENV!=="production"&&(Tl.displayName="DatePickerToolbar");process.env.NODE_ENV!=="production"&&(Tl.propTypes={classes:r.object,className:r.string,hidden:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),titleId:r.string,toolbarFormat:r.string,toolbarPlaceholder:r.node});const cs=({props:e,value:t,timezone:n,adapter:o})=>{if(t===null)return null;const{shouldDisableDate:s,shouldDisableMonth:i,shouldDisableYear:a,disablePast:l,disableFuture:c,minDate:u,maxDate:d}=e,m=o.date(void 0,n);switch(!0){case!o.isValid(t):return"invalidDate";case!!(s&&s(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(c&&o.isAfterDay(t,m)):return"disableFuture";case!!(l&&o.isBeforeDay(t,m)):return"disablePast";case!!(u&&o.isBeforeDay(t,u)):return"minDate";case!!(d&&o.isAfterDay(t,d)):return"maxDate";default:return null}};cs.valueManager=xt;const Di=({adapter:e,value:t,timezone:n,props:o})=>{if(t===null)return null;const{minTime:s,maxTime:i,minutesStep:a,shouldDisableTime:l,disableIgnoringDatePartForTimeValidation:c=!1,disablePast:u,disableFuture:d}=o,m=e.date(void 0,n),g=ls(c,e);switch(!0){case!e.isValid(t):return"invalidDate";case!!(s&&g(s,t)):return"minTime";case!!(i&&g(t,i)):return"maxTime";case!!(d&&e.isAfter(t,m)):return"disableFuture";case!!(u&&e.isBefore(t,m)):return"disablePast";case!!(l&&l(t,"hours")):return"shouldDisableTime-hours";case!!(l&&l(t,"minutes")):return"shouldDisableTime-minutes";case!!(l&&l(t,"seconds")):return"shouldDisableTime-seconds";case!!(a&&e.getMinutes(t)%a!==0):return"minutesStep";default:return null}};Di.valueManager=xt;const Kt=typeof window<"u"?C.useLayoutEffect:C.useEffect;function be(e){const t=C.useRef(e);return Kt(()=>{t.current=e}),C.useRef((...n)=>(0,t.current)(...n)).current}function Nf(e){const{props:t,validator:n,value:o,timezone:s,onError:i}=e,a=Me(),l=C.useRef(n.valueManager.defaultErrorState),c=n({adapter:a,value:o,timezone:s,props:t}),u=n.valueManager.hasError(c);C.useEffect(()=>{i&&!n.valueManager.isSameError(c,l.current)&&i(c,o),l.current=c},[n,i,c,o]);const d=be(m=>n({adapter:a,value:m,timezone:s,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}const Mw=()=>wl().defaultDates,ko=e=>{const t=Me(),n=C.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function Dw(){return C.useMemo(()=>({valueType:"date",validator:cs,internal_valueManager:xt,internal_fieldValueManager:_f,internal_useApplyDefaultValuesToFieldInternalProps:Nw,internal_useOpenPickerButtonAriaLabel:Rw}),[])}function Rw(e){const t=Me(),n=Dt();return C.useMemo(()=>{const o=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(o)},[e,n,t])}function Nw(e){const t=Me(),n=us(e);return C.useMemo(()=>D({},e,n,{format:e.format??t.formats.keyboardDate}),[e,n,t])}function us(e){const t=Me(),n=Mw();return C.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,minDate:zu(t,e.minDate,n.minDate),maxDate:zu(t,e.maxDate,n.maxDate)}),[e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}function $f(e,t){const n=ke({props:e,name:t}),o=us(n),s=C.useMemo(()=>{var i;return((i=n.localeText)==null?void 0:i.toolbarTitle)==null?n.localeText:D({},n.localeText,{datePickerToolbarTitle:n.localeText.toolbarTitle})},[n.localeText]);return D({},n,o,{localeText:s},wf({views:n.views,openTo:n.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{slots:D({toolbar:Tl},n.slots)})}function wt(...e){const t=C.useRef(void 0),n=C.useCallback(o=>{const s=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{s.forEach(i=>i==null?void 0:i())}},e);return C.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}function $w(e){return typeof e=="string"}function jw(e,t,n){return e===void 0||$w(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Aw(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Lw(e){if(e===void 0)return{};const t={};for(const n of Object.keys(e))Aw(n,e[n])&&(t[n]=e[n]);return t}function td(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Vw(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:s,className:i}=e;if(!t){const p=ue(n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),b={...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},f={...n,...s,...o};return p.length>0&&(f.className=p),Object.keys(b).length>0&&(f.style=b),{props:f,internalRef:void 0}}const a=Lw({...s,...o}),l=td(o),c=td(s),u=t(a),d=ue(u==null?void 0:u.className,n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),m={...u==null?void 0:u.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},g={...u,...n,...c,...l};return d.length>0&&(g.className=d),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:u.ref}}function Le(e){var m;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:s=!1,...i}=e,a=s?{}:Gn(n,o),{props:l,internalRef:c}=Vw({...i,externalSlotProps:a}),u=wt(c,a==null?void 0:a.ref,(m=e.additionalProps)==null?void 0:m.ref);return jw(t,{...l,ref:u},o)}const nd={};function jf(e,t){const n=C.useRef(nd);return n.current===nd&&(n.current=e(t)),n}const Fw=[];function Bw(e){C.useEffect(e,Fw)}let zw=class Af{constructor(){X(this,"currentId",null);X(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});X(this,"disposeEffect",()=>this.clear)}static create(){return new Af}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}};function Il(){const e=jf(zw.create).current;return Bw(e.disposeEffect),e}function to(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function Ww(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Lf(e,t,n,o,s){const i=e[t],a=s||t;if(i==null||typeof window>"u")return null;let l;const c=i.type;return typeof c=="function"&&!Ww(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const ds=to(r.element,Lf);ds.isRequired=to(r.element.isRequired,Lf);function Ri(e){var t;return parseInt(C.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function Da(e,t){return Da=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Da(e,t)}function El(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Da(e,t)}function Uw(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Hw(e,t){e.classList?e.classList.add(t):Uw(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function od(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function qw(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=od(e.className,t):e.setAttribute("class",od(e.className&&e.className.baseVal||"",t))}const rd={disabled:!1};var Yw=process.env.NODE_ENV!=="production"?r.oneOfType([r.number,r.shape({enter:r.number,exit:r.number,appear:r.number}).isRequired]):null,Gw=process.env.NODE_ENV!=="production"?r.oneOfType([r.string,r.shape({enter:r.string,exit:r.string,active:r.string}),r.shape({enter:r.string,enterDone:r.string,enterActive:r.string,exit:r.string,exitDone:r.string,exitActive:r.string})]):null;const Js=H.createContext(null);var Vf=function(t){return t.scrollTop},Or="unmounted",ho="exited",go="entering",zo="entered",Ra="exiting",Bt=(function(e){El(t,e);function t(o,s){var i;i=e.call(this,o,s)||this;var a=s,l=a&&!a.isMounting?o.enter:o.appear,c;return i.appearStatus=null,o.in?l?(c=ho,i.appearStatus=go):c=zo:o.unmountOnExit||o.mountOnEnter?c=Or:c=ho,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(s,i){var a=s.in;return a&&i.status===Or?{status:ho}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var i=null;if(s!==this.props){var a=this.state.status;this.props.in?a!==go&&a!==zo&&(i=go):(a===go||a===zo)&&(i=Ra)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,i,a,l;return i=a=l=s,s!=null&&typeof s!="number"&&(i=s.exit,a=s.enter,l=s.appear!==void 0?s.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(s,i){if(s===void 0&&(s=!1),i!==null)if(this.cancelNextCallback(),i===go){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Ir.findDOMNode(this);a&&Vf(a)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ho&&this.setState({status:Or})},n.performEnter=function(s){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:s,c=this.props.nodeRef?[l]:[Ir.findDOMNode(this),l],u=c[0],d=c[1],m=this.getTimeouts(),g=l?m.appear:m.enter;if(!s&&!a||rd.disabled){this.safeSetState({status:zo},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:go},function(){i.props.onEntering(u,d),i.onTransitionEnd(g,function(){i.safeSetState({status:zo},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var s=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:Ir.findDOMNode(this);if(!i||rd.disabled){this.safeSetState({status:ho},function(){s.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Ra},function(){s.props.onExiting(l),s.onTransitionEnd(a.exit,function(){s.safeSetState({status:ho},function(){s.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,i){i=this.setNextCallback(i),this.setState(s,i)},n.setNextCallback=function(s){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,s(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(s,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Ir.findDOMNode(this),l=s==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===Or)return null;var i=this.props,a=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 l=Ce(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return H.createElement(Js.Provider,{value:null},typeof a=="function"?a(s,l):H.cloneElement(H.Children.only(a),l))},t})(H.Component);Bt.contextType=Js;Bt.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:r.shape({current:typeof Element>"u"?r.any:function(e,t,n,o,s,i){var a=e[t];return r.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,o,s,i)}}),children:r.oneOfType([r.func.isRequired,r.element.isRequired]).isRequired,in:r.bool,mountOnEnter:r.bool,unmountOnExit:r.bool,appear:r.bool,enter:r.bool,exit:r.bool,timeout:function(t){var n=Yw;t.addEndListener||(n=n.isRequired);for(var o=arguments.length,s=new Array(o>1?o-1:0),i=1;i<o;i++)s[i-1]=arguments[i];return n.apply(void 0,[t].concat(s))},addEndListener:r.func,onEnter:r.func,onEntering:r.func,onEntered:r.func,onExit:r.func,onExiting:r.func,onExited:r.func}:{};function jo(){}Bt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:jo,onEntering:jo,onEntered:jo,onExit:jo,onExiting:jo,onExited:jo};Bt.UNMOUNTED=Or;Bt.EXITED=ho;Bt.ENTERING=go;Bt.ENTERED=zo;Bt.EXITING=Ra;var Kw=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return Hw(t,o)})},ma=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return qw(t,o)})},kl=(function(e){El(t,e);function t(){for(var o,s=arguments.length,i=new Array(s),a=0;a<s;a++)i[a]=arguments[a];return o=e.call.apply(e,[this].concat(i))||this,o.appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(l,c){var u=o.resolveArguments(l,c),d=u[0],m=u[1];o.removeClasses(d,"exit"),o.addClass(d,m?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(l,c)},o.onEntering=function(l,c){var u=o.resolveArguments(l,c),d=u[0],m=u[1],g=m?"appear":"enter";o.addClass(d,g,"active"),o.props.onEntering&&o.props.onEntering(l,c)},o.onEntered=function(l,c){var u=o.resolveArguments(l,c),d=u[0],m=u[1],g=m?"appear":"enter";o.removeClasses(d,g),o.addClass(d,g,"done"),o.props.onEntered&&o.props.onEntered(l,c)},o.onExit=function(l){var c=o.resolveArguments(l),u=c[0];o.removeClasses(u,"appear"),o.removeClasses(u,"enter"),o.addClass(u,"exit","base"),o.props.onExit&&o.props.onExit(l)},o.onExiting=function(l){var c=o.resolveArguments(l),u=c[0];o.addClass(u,"exit","active"),o.props.onExiting&&o.props.onExiting(l)},o.onExited=function(l){var c=o.resolveArguments(l),u=c[0];o.removeClasses(u,"exit"),o.addClass(u,"exit","done"),o.props.onExited&&o.props.onExited(l)},o.resolveArguments=function(l,c){return o.props.nodeRef?[o.props.nodeRef.current,l]:[l,c]},o.getClassNames=function(l){var c=o.props.classNames,u=typeof c=="string",d=u&&c?c+"-":"",m=u?""+d+l:c[l],g=u?m+"-active":c[l+"Active"],p=u?m+"-done":c[l+"Done"];return{baseClassName:m,activeClassName:g,doneClassName:p}},o}var n=t.prototype;return n.addClass=function(s,i,a){var l=this.getClassNames(i)[a+"ClassName"],c=this.getClassNames("enter"),u=c.doneClassName;i==="appear"&&a==="done"&&u&&(l+=" "+u),a==="active"&&s&&Vf(s),l&&(this.appliedClasses[i][a]=l,Kw(s,l))},n.removeClasses=function(s,i){var a=this.appliedClasses[i],l=a.base,c=a.active,u=a.done;this.appliedClasses[i]={},l&&ma(s,l),c&&ma(s,c),u&&ma(s,u)},n.render=function(){var s=this.props;s.classNames;var i=Ce(s,["classNames"]);return H.createElement(Bt,D({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(H.Component);kl.defaultProps={classNames:""};kl.propTypes=process.env.NODE_ENV!=="production"?D({},Bt.propTypes,{classNames:Gw,onEnter:r.func,onEntering:r.func,onEntered:r.func,onExit:r.func,onExiting:r.func,onExited:r.func}):{};function Xw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ol(e,t){var n=function(i){return t&&H.isValidElement(i)?t(i):i},o=Object.create(null);return e&&H.Children.map(e,function(s){return s}).forEach(function(s){o[s.key]=n(s)}),o}function Qw(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var o=Object.create(null),s=[];for(var i in e)i in t?s.length&&(o[i]=s,s=[]):s.push(i);var a,l={};for(var c in t){if(o[c])for(a=0;a<o[c].length;a++){var u=o[c][a];l[o[c][a]]=n(u)}l[c]=n(c)}for(a=0;a<s.length;a++)l[s[a]]=n(s[a]);return l}function yo(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Zw(e,t){return Ol(e.children,function(n){return H.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:yo(n,"appear",e),enter:yo(n,"enter",e),exit:yo(n,"exit",e)})})}function Jw(e,t,n){var o=Ol(e.children),s=Qw(t,o);return Object.keys(s).forEach(function(i){var a=s[i];if(H.isValidElement(a)){var l=i in t,c=i in o,u=t[i],d=H.isValidElement(u)&&!u.props.in;c&&(!l||d)?s[i]=H.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:yo(a,"exit",e),enter:yo(a,"enter",e)}):!c&&l&&!d?s[i]=H.cloneElement(a,{in:!1}):c&&l&&H.isValidElement(u)&&(s[i]=H.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:yo(a,"exit",e),enter:yo(a,"enter",e)}))}}),s}var eS=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},tS={component:"div",childFactory:function(t){return t}},ps=(function(e){El(t,e);function t(o,s){var i;i=e.call(this,o,s)||this;var a=i.handleExited.bind(Xw(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(s,i){var a=i.children,l=i.handleExited,c=i.firstRender;return{children:c?Zw(s,l):Jw(s,a,l),firstRender:!1}},n.handleExited=function(s,i){var a=Ol(this.props.children);s.key in a||(s.props.onExited&&s.props.onExited(i),this.mounted&&this.setState(function(l){var c=D({},l.children);return delete c[s.key],{children:c}}))},n.render=function(){var s=this.props,i=s.component,a=s.childFactory,l=Ce(s,["component","childFactory"]),c=this.state.contextValue,u=eS(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?H.createElement(Js.Provider,{value:c},u):H.createElement(Js.Provider,{value:c},H.createElement(i,l,u))},t})(H.Component);ps.propTypes=process.env.NODE_ENV!=="production"?{component:r.any,children:r.node,appear:r.bool,enter:r.bool,exit:r.bool,childFactory:r.func}:{};ps.defaultProps=tS;const Ff=e=>e.scrollTop;function vt(e,t){return n=>{if(t){const o=e.current;n===void 0?t(o):t(o,n)}}}function Bf(e,t,n,o,s,i){const a=e==="exited"&&!t?o:n[e]||n.exited;return s||i?{...a,...s,...i}:a}function rr(e,t){const{timeout:n,easing:o,style:s={}}=e;return{duration:s.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:s.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:s.transitionDelay}}function It(...e){const t=C.useRef(void 0),n=C.useCallback(o=>{const s=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{s.forEach(i=>i==null?void 0:i())}},e);return C.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}function Mr(e){return`scale(${e}, ${e**2})`}const nS={entering:{opacity:1,transform:Mr(1)},entered:{opacity:1,transform:"none"},exiting:{opacity:0,transform:Mr(.75)},exited:{opacity:0,transform:Mr(.75)}},oS={opacity:0,transform:Mr(.75),visibility:"hidden"},ei=C.forwardRef(function(t,n){const{addEndListener:o,appear:s=!0,children:i,easing:a,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:m,onExited:g,onExiting:p,style:b,timeout:f="auto",...y}=t,x=Il(),T=C.useRef(),S=Io(),w=C.useRef(null),E=It(w,Ri(i),n),I=vt(w,d),R=vt(w,(O,P)=>{Ff(O);const{duration:k,delay:M,easing:_}=rr({style:b,timeout:f,easing:a},{mode:"enter"});let A;f==="auto"?(A=S.transitions.getAutoHeightDuration(O.clientHeight),T.current=A):A=k,O.style.transition=[S.transitions.create("opacity",{duration:A,delay:M}),S.transitions.create("transform",{duration:A*.666,delay:M,easing:_})].join(","),c&&c(O,P)}),N=vt(w,u),j=vt(w,p),V=vt(w,O=>{const{duration:P,delay:k,easing:M}=rr({style:b,timeout:f,easing:a},{mode:"exit"});let _;f==="auto"?(_=S.transitions.getAutoHeightDuration(O.clientHeight),T.current=_):_=P,O.style.transition=[S.transitions.create("opacity",{duration:_,delay:k}),S.transitions.create("transform",{duration:_*.666,delay:k||_*.333,easing:M})].join(","),O.style.opacity=0,O.style.transform=Mr(.75),m&&m(O)}),$=vt(w,O=>{O.style.transition="",g&&g(O)}),v=O=>{f==="auto"&&x.start(T.current||0,O),o&&o(w.current,O)};return h.jsx(Bt,{appear:s,in:l,nodeRef:w,onEnter:R,onEntered:N,onEntering:I,onExit:V,onExited:$,onExiting:j,addEndListener:v,timeout:f==="auto"?null:f,...y,children:(O,{ownerState:P,...k})=>{const M=Bf(O,l,nS,oS,b,i.props.style);return C.cloneElement(i,{style:M,ref:E,...k})}})});process.env.NODE_ENV!=="production"&&(ei.propTypes={addEndListener:r.func,appear:r.bool,children:ds.isRequired,easing:r.oneOfType([r.shape({enter:r.string,exit:r.string}),r.string]),in:r.bool,onEnter:r.func,onEntered:r.func,onEntering:r.func,onExit:r.func,onExited:r.func,onExiting:r.func,style:r.object,timeout:r.oneOfType([r.oneOf(["auto"]),r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})])});ei&&(ei.muiSupportAuto=!0);const rS={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},sS={opacity:0,visibility:"hidden"},Kn=C.forwardRef(function(t,n){const o=Io(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:c,in:u,onEnter:d,onEntered:m,onEntering:g,onExit:p,onExited:b,onExiting:f,style:y,timeout:x=s,...T}=t,S=C.useRef(null),w=It(S,Ri(l),n),E=vt(S,g),I=vt(S,(v,O)=>{Ff(v);const P=rr({style:y,timeout:x,easing:c},{mode:"enter"});v.style.transition=o.transitions.create("opacity",P),d&&d(v,O)}),R=vt(S,m),N=vt(S,f),j=vt(S,v=>{const O=rr({style:y,timeout:x,easing:c},{mode:"exit"});v.style.transition=o.transitions.create("opacity",O),p&&p(v)}),V=vt(S,v=>{v.style.transition="",b&&b(v)}),$=v=>{i&&i(S.current,v)};return h.jsx(Bt,{appear:a,in:u,nodeRef:S,onEnter:I,onEntered:R,onEntering:E,onExit:j,onExited:V,onExiting:N,addEndListener:$,timeout:x,...T,children:(v,{ownerState:O,...P})=>{const k=Bf(v,u,rS,sS,y,l.props.style);return C.cloneElement(l,{style:k,ref:w,...P})}})});process.env.NODE_ENV!=="production"&&(Kn.propTypes={addEndListener:r.func,appear:r.bool,children:ds.isRequired,easing:r.oneOfType([r.shape({enter:r.string,exit:r.string}),r.string]),in:r.bool,onEnter:r.func,onEntered:r.func,onEntering:r.func,onExit:r.func,onExited:r.func,onExiting:r.func,style:r.object,timeout:r.oneOfType([r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})])});function iS(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function zf(e,t,n,o){const s=e[t];if(s==null||!Number.isInteger(s)){const i=iS(s);return new RangeError(`Invalid ${o} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Wf(e,t,n,o){return e[t]===void 0?null:zf(e,t,n,o)}function Na(){return null}Wf.isRequired=zf;Na.isRequired=Na;const aS=process.env.NODE_ENV==="production"?Na:Wf;function lS(e){return Re("MuiPaper",e)}Pe("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 cS=e=>{const{square:t,elevation:n,variant:o,classes:s}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return Ae(i,lS,s)},uS=te("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(ct(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),fs=C.forwardRef(function(t,n){var p;const o=Je({props:t,name:"MuiPaper"}),s=Io(),{className:i,component:a="div",elevation:l=1,square:c=!1,variant:u="elevation",...d}=o,m={...o,component:a,elevation:l,square:c,variant:u},g=cS(m);return process.env.NODE_ENV!=="production"&&s.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
81
+ `)),h.jsx(uS,{as:a,ownerState:m,className:ue(g.root,i),ref:n,...d,style:{...u==="elevation"&&{"--Paper-shadow":(s.vars||s).shadows[l],...s.vars&&{"--Paper-overlay":(p=s.vars.overlays)==null?void 0:p[l]},...!s.vars&&s.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Xs("#fff",Oa(l))}, ${Xs("#fff",Oa(l))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(fs.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,elevation:to(aS,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:r.bool,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["elevation","outlined"]),r.string])});const Ni=r.oneOfType([r.func,r.object]);function sr(e,t,n,o,s){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=s||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}function yn(e){return e&&e.ownerDocument||document}var Pt="top",Xt="bottom",Qt="right",Mt="left",_l="auto",ms=[Pt,Xt,Qt,Mt],ir="start",Gr="end",dS="clippingParents",Uf="viewport",vr="popper",pS="reference",sd=ms.reduce(function(e,t){return e.concat([t+"-"+ir,t+"-"+Gr])},[]),Hf=[].concat(ms,[_l]).reduce(function(e,t){return e.concat([t,t+"-"+ir,t+"-"+Gr])},[]),fS="beforeRead",mS="read",hS="afterRead",gS="beforeMain",bS="main",yS="afterMain",vS="beforeWrite",xS="write",CS="afterWrite",wS=[fS,mS,hS,gS,bS,yS,vS,xS,CS];function vn(e){return e?(e.nodeName||"").toLowerCase():null}function Lt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function So(e){var t=Lt(e).Element;return e instanceof t||e instanceof Element}function Yt(e){var t=Lt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Pl(e){if(typeof ShadowRoot>"u")return!1;var t=Lt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function SS(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},s=t.attributes[n]||{},i=t.elements[n];!Yt(i)||!vn(i)||(Object.assign(i.style,o),Object.keys(s).forEach(function(a){var l=s[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function TS(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var s=t.elements[o],i=t.attributes[o]||{},a=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),l=a.reduce(function(c,u){return c[u]="",c},{});!Yt(s)||!vn(s)||(Object.assign(s.style,l),Object.keys(i).forEach(function(c){s.removeAttribute(c)}))})}}const IS={name:"applyStyles",enabled:!0,phase:"write",fn:SS,effect:TS,requires:["computeStyles"]};function gn(e){return e.split("-")[0]}var xo=Math.max,ti=Math.min,ar=Math.round;function $a(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function qf(){return!/^((?!chrome|android).)*safari/i.test($a())}function lr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),s=1,i=1;t&&Yt(e)&&(s=e.offsetWidth>0&&ar(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ar(o.height)/e.offsetHeight||1);var a=So(e)?Lt(e):window,l=a.visualViewport,c=!qf()&&n,u=(o.left+(c&&l?l.offsetLeft:0))/s,d=(o.top+(c&&l?l.offsetTop:0))/i,m=o.width/s,g=o.height/i;return{width:m,height:g,top:d,right:u+m,bottom:d+g,left:u,x:u,y:d}}function Ml(e){var t=lr(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Yf(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Pl(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function jn(e){return Lt(e).getComputedStyle(e)}function ES(e){return["table","td","th"].indexOf(vn(e))>=0}function no(e){return((So(e)?e.ownerDocument:e.document)||window.document).documentElement}function $i(e){return vn(e)==="html"?e:e.assignedSlot||e.parentNode||(Pl(e)?e.host:null)||no(e)}function id(e){return!Yt(e)||jn(e).position==="fixed"?null:e.offsetParent}function kS(e){var t=/firefox/i.test($a()),n=/Trident/i.test($a());if(n&&Yt(e)){var o=jn(e);if(o.position==="fixed")return null}var s=$i(e);for(Pl(s)&&(s=s.host);Yt(s)&&["html","body"].indexOf(vn(s))<0;){var i=jn(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function hs(e){for(var t=Lt(e),n=id(e);n&&ES(n)&&jn(n).position==="static";)n=id(n);return n&&(vn(n)==="html"||vn(n)==="body"&&jn(n).position==="static")?t:n||kS(e)||t}function Dl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Dr(e,t,n){return xo(e,ti(t,n))}function OS(e,t,n){var o=Dr(e,t,n);return o>n?n:o}function Gf(){return{top:0,right:0,bottom:0,left:0}}function Kf(e){return Object.assign({},Gf(),e)}function Xf(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var _S=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Kf(typeof t!="number"?t:Xf(t,ms))};function PS(e){var t,n=e.state,o=e.name,s=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=gn(n.placement),c=Dl(l),u=[Mt,Qt].indexOf(l)>=0,d=u?"height":"width";if(!(!i||!a)){var m=_S(s.padding,n),g=Ml(i),p=c==="y"?Pt:Mt,b=c==="y"?Xt:Qt,f=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],y=a[c]-n.rects.reference[c],x=hs(i),T=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,S=f/2-y/2,w=m[p],E=T-g[d]-m[b],I=T/2-g[d]/2+S,R=Dr(w,I,E),N=c;n.modifiersData[o]=(t={},t[N]=R,t.centerOffset=R-I,t)}}function MS(e){var t=e.state,n=e.options,o=n.element,s=o===void 0?"[data-popper-arrow]":o;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||Yf(t.elements.popper,s)&&(t.elements.arrow=s))}const DS={name:"arrow",enabled:!0,phase:"main",fn:PS,effect:MS,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function cr(e){return e.split("-")[1]}var RS={top:"auto",right:"auto",bottom:"auto",left:"auto"};function NS(e,t){var n=e.x,o=e.y,s=t.devicePixelRatio||1;return{x:ar(n*s)/s||0,y:ar(o*s)/s||0}}function ad(e){var t,n=e.popper,o=e.popperRect,s=e.placement,i=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,m=e.isFixed,g=a.x,p=g===void 0?0:g,b=a.y,f=b===void 0?0:b,y=typeof d=="function"?d({x:p,y:f}):{x:p,y:f};p=y.x,f=y.y;var x=a.hasOwnProperty("x"),T=a.hasOwnProperty("y"),S=Mt,w=Pt,E=window;if(u){var I=hs(n),R="clientHeight",N="clientWidth";if(I===Lt(n)&&(I=no(n),jn(I).position!=="static"&&l==="absolute"&&(R="scrollHeight",N="scrollWidth")),I=I,s===Pt||(s===Mt||s===Qt)&&i===Gr){w=Xt;var j=m&&I===E&&E.visualViewport?E.visualViewport.height:I[R];f-=j-o.height,f*=c?1:-1}if(s===Mt||(s===Pt||s===Xt)&&i===Gr){S=Qt;var V=m&&I===E&&E.visualViewport?E.visualViewport.width:I[N];p-=V-o.width,p*=c?1:-1}}var $=Object.assign({position:l},u&&RS),v=d===!0?NS({x:p,y:f},Lt(n)):{x:p,y:f};if(p=v.x,f=v.y,c){var O;return Object.assign({},$,(O={},O[w]=T?"0":"",O[S]=x?"0":"",O.transform=(E.devicePixelRatio||1)<=1?"translate("+p+"px, "+f+"px)":"translate3d("+p+"px, "+f+"px, 0)",O))}return Object.assign({},$,(t={},t[w]=T?f+"px":"",t[S]=x?p+"px":"",t.transform="",t))}function $S(e){var t=e.state,n=e.options,o=n.gpuAcceleration,s=o===void 0?!0:o,i=n.adaptive,a=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:gn(t.placement),variation:cr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ad(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ad(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const jS={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:$S,data:{}};var Ts={passive:!0};function AS(e){var t=e.state,n=e.instance,o=e.options,s=o.scroll,i=s===void 0?!0:s,a=o.resize,l=a===void 0?!0:a,c=Lt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,Ts)}),l&&c.addEventListener("resize",n.update,Ts),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Ts)}),l&&c.removeEventListener("resize",n.update,Ts)}}const LS={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:AS,data:{}};var VS={left:"right",right:"left",bottom:"top",top:"bottom"};function Ws(e){return e.replace(/left|right|bottom|top/g,function(t){return VS[t]})}var FS={start:"end",end:"start"};function ld(e){return e.replace(/start|end/g,function(t){return FS[t]})}function Rl(e){var t=Lt(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Nl(e){return lr(no(e)).left+Rl(e).scrollLeft}function BS(e,t){var n=Lt(e),o=no(e),s=n.visualViewport,i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(s){i=s.width,a=s.height;var u=qf();(u||!u&&t==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}return{width:i,height:a,x:l+Nl(e),y:c}}function zS(e){var t,n=no(e),o=Rl(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=xo(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=xo(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),l=-o.scrollLeft+Nl(e),c=-o.scrollTop;return jn(s||n).direction==="rtl"&&(l+=xo(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}function $l(e){var t=jn(e),n=t.overflow,o=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+o)}function Qf(e){return["html","body","#document"].indexOf(vn(e))>=0?e.ownerDocument.body:Yt(e)&&$l(e)?e:Qf($i(e))}function Rr(e,t){var n;t===void 0&&(t=[]);var o=Qf(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),i=Lt(o),a=s?[i].concat(i.visualViewport||[],$l(o)?o:[]):o,l=t.concat(a);return s?l:l.concat(Rr($i(a)))}function ja(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function WS(e,t){var n=lr(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function cd(e,t,n){return t===Uf?ja(BS(e,n)):So(t)?WS(t,n):ja(zS(no(e)))}function US(e){var t=Rr($i(e)),n=["absolute","fixed"].indexOf(jn(e).position)>=0,o=n&&Yt(e)?hs(e):e;return So(o)?t.filter(function(s){return So(s)&&Yf(s,o)&&vn(s)!=="body"}):[]}function HS(e,t,n,o){var s=t==="clippingParents"?US(e):[].concat(t),i=[].concat(s,[n]),a=i[0],l=i.reduce(function(c,u){var d=cd(e,u,o);return c.top=xo(d.top,c.top),c.right=ti(d.right,c.right),c.bottom=ti(d.bottom,c.bottom),c.left=xo(d.left,c.left),c},cd(e,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Zf(e){var t=e.reference,n=e.element,o=e.placement,s=o?gn(o):null,i=o?cr(o):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(s){case Pt:c={x:a,y:t.y-n.height};break;case Xt:c={x:a,y:t.y+t.height};break;case Qt:c={x:t.x+t.width,y:l};break;case Mt:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=s?Dl(s):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case ir:c[u]=c[u]-(t[d]/2-n[d]/2);break;case Gr:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function Kr(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=o===void 0?e.placement:o,i=n.strategy,a=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?dS:l,u=n.rootBoundary,d=u===void 0?Uf:u,m=n.elementContext,g=m===void 0?vr:m,p=n.altBoundary,b=p===void 0?!1:p,f=n.padding,y=f===void 0?0:f,x=Kf(typeof y!="number"?y:Xf(y,ms)),T=g===vr?pS:vr,S=e.rects.popper,w=e.elements[b?T:g],E=HS(So(w)?w:w.contextElement||no(e.elements.popper),c,d,a),I=lr(e.elements.reference),R=Zf({reference:I,element:S,placement:s}),N=ja(Object.assign({},S,R)),j=g===vr?N:I,V={top:E.top-j.top+x.top,bottom:j.bottom-E.bottom+x.bottom,left:E.left-j.left+x.left,right:j.right-E.right+x.right},$=e.modifiersData.offset;if(g===vr&&$){var v=$[s];Object.keys(V).forEach(function(O){var P=[Qt,Xt].indexOf(O)>=0?1:-1,k=[Pt,Xt].indexOf(O)>=0?"y":"x";V[O]+=v[k]*P})}return V}function qS(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?Hf:c,d=cr(o),m=d?l?sd:sd.filter(function(b){return cr(b)===d}):ms,g=m.filter(function(b){return u.indexOf(b)>=0});g.length===0&&(g=m);var p=g.reduce(function(b,f){return b[f]=Kr(e,{placement:f,boundary:s,rootBoundary:i,padding:a})[gn(f)],b},{});return Object.keys(p).sort(function(b,f){return p[b]-p[f]})}function YS(e){if(gn(e)===_l)return[];var t=Ws(e);return[ld(e),t,ld(t)]}function GS(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var s=n.mainAxis,i=s===void 0?!0:s,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,m=n.rootBoundary,g=n.altBoundary,p=n.flipVariations,b=p===void 0?!0:p,f=n.allowedAutoPlacements,y=t.options.placement,x=gn(y),T=x===y,S=c||(T||!b?[Ws(y)]:YS(y)),w=[y].concat(S).reduce(function(Q,K){return Q.concat(gn(K)===_l?qS(t,{placement:K,boundary:d,rootBoundary:m,padding:u,flipVariations:b,allowedAutoPlacements:f}):K)},[]),E=t.rects.reference,I=t.rects.popper,R=new Map,N=!0,j=w[0],V=0;V<w.length;V++){var $=w[V],v=gn($),O=cr($)===ir,P=[Pt,Xt].indexOf(v)>=0,k=P?"width":"height",M=Kr(t,{placement:$,boundary:d,rootBoundary:m,altBoundary:g,padding:u}),_=P?O?Qt:Mt:O?Xt:Pt;E[k]>I[k]&&(_=Ws(_));var A=Ws(_),B=[];if(i&&B.push(M[v]<=0),l&&B.push(M[_]<=0,M[A]<=0),B.every(function(Q){return Q})){j=$,N=!1;break}R.set($,B)}if(N)for(var L=b?3:1,F=function(K){var Z=w.find(function(se){var Y=R.get(se);if(Y)return Y.slice(0,K).every(function(z){return z})});if(Z)return j=Z,"break"},W=L;W>0;W--){var G=F(W);if(G==="break")break}t.placement!==j&&(t.modifiersData[o]._skip=!0,t.placement=j,t.reset=!0)}}const KS={name:"flip",enabled:!0,phase:"main",fn:GS,requiresIfExists:["offset"],data:{_skip:!1}};function ud(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function dd(e){return[Pt,Qt,Xt,Mt].some(function(t){return e[t]>=0})}function XS(e){var t=e.state,n=e.name,o=t.rects.reference,s=t.rects.popper,i=t.modifiersData.preventOverflow,a=Kr(t,{elementContext:"reference"}),l=Kr(t,{altBoundary:!0}),c=ud(a,o),u=ud(l,s,i),d=dd(c),m=dd(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":m})}const QS={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:XS};function ZS(e,t,n){var o=gn(e),s=[Mt,Pt].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*s,[Mt,Qt].indexOf(o)>=0?{x:l,y:a}:{x:a,y:l}}function JS(e){var t=e.state,n=e.options,o=e.name,s=n.offset,i=s===void 0?[0,0]:s,a=Hf.reduce(function(d,m){return d[m]=ZS(m,t.rects,i),d},{}),l=a[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=a}const eT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:JS};function tT(e){var t=e.state,n=e.name;t.modifiersData[n]=Zf({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const nT={name:"popperOffsets",enabled:!0,phase:"read",fn:tT,data:{}};function oT(e){return e==="x"?"y":"x"}function rT(e){var t=e.state,n=e.options,o=e.name,s=n.mainAxis,i=s===void 0?!0:s,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,m=n.padding,g=n.tether,p=g===void 0?!0:g,b=n.tetherOffset,f=b===void 0?0:b,y=Kr(t,{boundary:c,rootBoundary:u,padding:m,altBoundary:d}),x=gn(t.placement),T=cr(t.placement),S=!T,w=Dl(x),E=oT(w),I=t.modifiersData.popperOffsets,R=t.rects.reference,N=t.rects.popper,j=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,V=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,v={x:0,y:0};if(I){if(i){var O,P=w==="y"?Pt:Mt,k=w==="y"?Xt:Qt,M=w==="y"?"height":"width",_=I[w],A=_+y[P],B=_-y[k],L=p?-N[M]/2:0,F=T===ir?R[M]:N[M],W=T===ir?-N[M]:-R[M],G=t.elements.arrow,Q=p&&G?Ml(G):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Gf(),Z=K[P],se=K[k],Y=Dr(0,R[M],Q[M]),z=S?R[M]/2-L-Y-Z-V.mainAxis:F-Y-Z-V.mainAxis,q=S?-R[M]/2+L+Y+se+V.mainAxis:W+Y+se+V.mainAxis,J=t.elements.arrow&&hs(t.elements.arrow),U=J?w==="y"?J.clientTop||0:J.clientLeft||0:0,ce=(O=$==null?void 0:$[w])!=null?O:0,ne=_+z-ce-U,de=_+q-ce,fe=Dr(p?ti(A,ne):A,_,p?xo(B,de):B);I[w]=fe,v[w]=fe-_}if(l){var ae,oe=w==="x"?Pt:Mt,he=w==="x"?Xt:Qt,ee=I[E],le=E==="y"?"height":"width",re=ee+y[oe],xe=ee-y[he],we=[Pt,Mt].indexOf(x)!==-1,pe=(ae=$==null?void 0:$[E])!=null?ae:0,Se=we?re:ee-R[le]-N[le]-pe+V.altAxis,Ee=we?ee+R[le]+N[le]-pe-V.altAxis:xe,Ue=p&&we?OS(Se,ee,Ee):Dr(p?Se:re,ee,p?Ee:xe);I[E]=Ue,v[E]=Ue-ee}t.modifiersData[o]=v}}const sT={name:"preventOverflow",enabled:!0,phase:"main",fn:rT,requiresIfExists:["offset"]};function iT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function aT(e){return e===Lt(e)||!Yt(e)?Rl(e):iT(e)}function lT(e){var t=e.getBoundingClientRect(),n=ar(t.width)/e.offsetWidth||1,o=ar(t.height)/e.offsetHeight||1;return n!==1||o!==1}function cT(e,t,n){n===void 0&&(n=!1);var o=Yt(t),s=Yt(t)&&lT(t),i=no(t),a=lr(e,s,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((vn(t)!=="body"||$l(i))&&(l=aT(t)),Yt(t)?(c=lr(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Nl(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function uT(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function s(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&s(c)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||s(i)}),o}function dT(e){var t=uT(e);return wS.reduce(function(n,o){return n.concat(t.filter(function(s){return s.phase===o}))},[])}function pT(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function fT(e){var t=e.reduce(function(n,o){var s=n[o.name];return n[o.name]=s?Object.assign({},s,o,{options:Object.assign({},s.options,o.options),data:Object.assign({},s.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var pd={placement:"bottom",modifiers:[],strategy:"absolute"};function fd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function mT(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,s=t.defaultOptions,i=s===void 0?pd:s;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},pd,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},m=[],g=!1,p={state:d,setOptions:function(x){var T=typeof x=="function"?x(d.options):x;f(),d.options=Object.assign({},i,d.options,T),d.scrollParents={reference:So(l)?Rr(l):l.contextElement?Rr(l.contextElement):[],popper:Rr(c)};var S=dT(fT([].concat(o,d.options.modifiers)));return d.orderedModifiers=S.filter(function(w){return w.enabled}),b(),p.update()},forceUpdate:function(){if(!g){var x=d.elements,T=x.reference,S=x.popper;if(fd(T,S)){d.rects={reference:cT(T,hs(S),d.options.strategy==="fixed"),popper:Ml(S)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(V){return d.modifiersData[V.name]=Object.assign({},V.data)});for(var w=0;w<d.orderedModifiers.length;w++){if(d.reset===!0){d.reset=!1,w=-1;continue}var E=d.orderedModifiers[w],I=E.fn,R=E.options,N=R===void 0?{}:R,j=E.name;typeof I=="function"&&(d=I({state:d,options:N,name:j,instance:p})||d)}}}},update:pT(function(){return new Promise(function(y){p.forceUpdate(),y(d)})}),destroy:function(){f(),g=!0}};if(!fd(l,c))return p;p.setOptions(u).then(function(y){!g&&u.onFirstUpdate&&u.onFirstUpdate(y)});function b(){d.orderedModifiers.forEach(function(y){var x=y.name,T=y.options,S=T===void 0?{}:T,w=y.effect;if(typeof w=="function"){var E=w({state:d,name:x,instance:p,options:S}),I=function(){};m.push(E||I)}})}function f(){m.forEach(function(y){return y()}),m=[]}return p}}var hT=[LS,nT,jS,IS,eT,KS,sT,DS,QS],gT=mT({defaultModifiers:hT});function Aa(e){return typeof e=="string"}function Jf(e,t,n){return e===void 0||Aa(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function em(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function md(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function tm(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:s,className:i}=e;if(!t){const p=ue(n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),b={...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},f={...n,...s,...o};return p.length>0&&(f.className=p),Object.keys(b).length>0&&(f.style=b),{props:f,internalRef:void 0}}const a=em({...s,...o}),l=md(o),c=md(s),u=t(a),d=ue(u==null?void 0:u.className,n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),m={...u==null?void 0:u.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},g={...u,...n,...c,...l};return d.length>0&&(g.className=d),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:u.ref}}function nm(e,t,n){return typeof e=="function"?e(t,n):e}function bT(e){var m;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:s=!1,...i}=e,a=s?{}:nm(n,o),{props:l,internalRef:c}=tm({...i,externalSlotProps:a}),u=It(c,a==null?void 0:a.ref,(m=e.additionalProps)==null?void 0:m.ref);return Jf(t,{...l,ref:u},o)}function om(){return!(/jsdom|HappyDOM/.test(window.navigator.userAgent)||process.env.NODE_ENV==="test")}function hd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function yT(e){return typeof e=="function"?e():e}const Xr=C.forwardRef(function(t,n){const{children:o,container:s,disablePortal:i=!1}=t,[a,l]=C.useState(null),c=It(C.isValidElement(o)?Ri(o):null,n);if(qn(()=>{i||l(yT(s)||document.body)},[s,i]),qn(()=>{if(a&&!i)return hd(n,a),()=>{hd(n,null)}},[n,a,i]),i){if(C.isValidElement(o)){const u={ref:c};return C.cloneElement(o,u)}return o}return a&&sb.createPortal(o,a)});process.env.NODE_ENV!=="production"&&(Xr.propTypes={children:r.node,container:r.oneOfType([sr,r.func]),disablePortal:r.bool});process.env.NODE_ENV!=="production"&&(Xr.propTypes=pf(Xr.propTypes));function vT(e){return Re("MuiPopper",e)}Pe("MuiPopper",["root"]);function xT(e,t){if(t==="ltr")return e;switch(e){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 e}}function ni(e){return typeof e=="function"?e():e}function ji(e){return e.nodeType!==void 0}function CT(e){return!ji(e)}const wT=e=>{const{classes:t}=e;return Ae({root:["root"]},vT,t)},ST={},TT=C.forwardRef(function(t,n){const{anchorEl:o,children:s,direction:i,disablePortal:a,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:m,slotProps:g={},slots:p={},TransitionProps:b,ownerState:f,...y}=t,x=C.useRef(null),T=It(x,n),S=C.useRef(null),w=It(S,m),E=C.useRef(w);qn(()=>{E.current=w},[w]),C.useImperativeHandle(m,()=>S.current,[]);const I=xT(u,i),[R,N]=C.useState(I),[j,V]=C.useState(ni(o));C.useEffect(()=>{S.current&&S.current.forceUpdate()}),C.useEffect(()=>{o&&V(ni(o))},[o]),qn(()=>{if(!j||!c)return;const k=B=>{N(B.placement)};if(process.env.NODE_ENV!=="production"&&j&&ji(j)&&j.nodeType===1){const B=j.getBoundingClientRect();om()&&B.top===0&&B.left===0&&B.right===0&&B.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(`
82
+ `))}let M=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:B})=>{k(B)}}];l!=null&&(M=M.concat(l)),d&&d.modifiers!=null&&(M=M.concat(d.modifiers));const _=gT(j,x.current,{placement:I,...d,modifiers:M});E.current(_);const A=x.current;return()=>{if(A){const{style:B}=A,L=B.position,F=B.top,W=B.left,G=B.transform;_.destroy(),B.position=L,B.top=F,B.left=W,B.transform=G}else _.destroy();E.current(null)}},[j,a,l,c,d,I]);const $={placement:R};b!==null&&($.TransitionProps=b);const v=wT(t),O=p.root??"div",P=bT({elementType:O,externalSlotProps:g.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:T},ownerState:t,className:v.root});return h.jsx(O,{...P,children:typeof s=="function"?s($):s})}),rm=C.forwardRef(function(t,n){const{anchorEl:o,children:s,container:i,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:d,placement:m="bottom",popperOptions:g=ST,popperRef:p,style:b,transition:f=!1,slotProps:y={},slots:x={},...T}=t,[S,w]=C.useState(!0),E=()=>{w(!1)},I=()=>{w(!0)};if(!c&&!d&&(!f||S))return null;let R;if(i)R=i;else if(o){const V=ni(o);R=V&&ji(V)?yn(V).body:yn(null).body}const N=!d&&c&&(!f||S)?"none":void 0,j=f?{in:d,onEnter:E,onExited:I}:void 0;return h.jsx(Xr,{disablePortal:l,container:R,children:h.jsx(TT,{anchorEl:o,direction:a,disablePortal:l,modifiers:u,ref:n,open:f?!S:d,placement:m,popperOptions:g,popperRef:p,slotProps:y,slots:x,...T,style:{position:"fixed",top:0,left:0,display:N,...b},TransitionProps:j,children:s})})});process.env.NODE_ENV!=="production"&&(rm.propTypes={anchorEl:to(r.oneOfType([sr,r.object,r.func]),e=>{if(e.open){const t=ni(e.anchorEl);if(t&&ji(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="production"&&om()&&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(`
83
+ `))}else if(!t||typeof t.getBoundingClientRect!="function"||CT(t)&&t.contextElement!=null&&t.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(`
84
+ `))}return null}),children:r.oneOfType([r.node,r.func]),container:r.oneOfType([sr,r.func]),direction:r.oneOf(["ltr","rtl"]),disablePortal:r.bool,keepMounted:r.bool,modifiers:r.arrayOf(r.shape({data:r.object,effect:r.func,enabled:r.bool,fn:r.func,name:r.any,options:r.object,phase:r.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:r.arrayOf(r.string),requiresIfExists:r.arrayOf(r.string)})),open:r.bool.isRequired,placement:r.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:r.shape({modifiers:r.array,onFirstUpdate:r.func,placement:r.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:r.oneOf(["absolute","fixed"])}),popperRef:Ni,slotProps:r.shape({root:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType}),transition:r.bool});const IT=te(rm,{name:"MuiPopper",slot:"Root"})({}),sm=C.forwardRef(function(t,n){const o=cn(),s=Je({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:m,modifiers:g,open:p,placement:b,popperOptions:f,popperRef:y,transition:x,slots:T,slotProps:S,...w}=s,E=(T==null?void 0:T.root)??(l==null?void 0:l.Root),I={anchorEl:i,container:u,disablePortal:d,keepMounted:m,modifiers:g,open:p,placement:b,popperOptions:f,popperRef:y,transition:x,...w};return h.jsx(IT,{as:a,direction:o?"rtl":"ltr",slots:{root:E},slotProps:S??c,...I,ref:n})});process.env.NODE_ENV!=="production"&&(sm.propTypes={anchorEl:r.oneOfType([sr,r.object,r.func]),children:r.oneOfType([r.node,r.func]),component:r.elementType,components:r.shape({Root:r.elementType}),componentsProps:r.shape({root:r.oneOfType([r.func,r.object])}),container:r.oneOfType([sr,r.func]),disablePortal:r.bool,keepMounted:r.bool,modifiers:r.arrayOf(r.shape({data:r.object,effect:r.func,enabled:r.bool,fn:r.func,name:r.any,options:r.object,phase:r.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:r.arrayOf(r.string),requiresIfExists:r.arrayOf(r.string)})),open:r.bool.isRequired,placement:r.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:r.shape({modifiers:r.array,onFirstUpdate:r.func,placement:r.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:r.oneOf(["absolute","fixed"])}),popperRef:Ni,slotProps:r.shape({root:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),transition:r.bool});function gd(e,t){var o;if(!e||!t)return!1;if(e.contains(t))return!0;const n=(o=t.getRootNode)==null?void 0:o.call(t);if(n&&n instanceof ShadowRoot){let s=t;for(;s;){if(e===s)return!0;s=s.parentNode??s.host??null}}return!1}function _r(e){var n;let t=e.activeElement;for(;((n=t==null?void 0:t.shadowRoot)==null?void 0:n.activeElement)!=null;)t=t.shadowRoot.activeElement;return t}const La="data-mui-focusable";function ET(e){return e?e.hasAttribute(La)?e:e.querySelector(`[${La}]`):null}const kT=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function OT(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function _T(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function PT(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||_T(e))}function MT(e){const t=[],n=[];return Array.from(e.querySelectorAll(kT)).forEach((o,s)=>{const i=OT(o);i===-1||!PT(o)||(i===0?t.push(o):n.push({documentOrder:s,tabIndex:i,node:o}))}),n.sort((o,s)=>o.tabIndex===s.tabIndex?o.documentOrder-s.documentOrder:o.tabIndex-s.tabIndex).map(o=>o.node).concat(t)}function DT(){return!0}function Qr(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:s=!1,getTabbable:i=MT,isEnabled:a=DT,open:l}=e,c=C.useRef(!1),u=C.useRef(null),d=C.useRef(null),m=C.useRef(null),g=C.useRef(null),p=C.useRef(!1),b=C.useRef(null),f=It(Ri(t),b),y=C.useRef(null);C.useEffect(()=>{!l||!b.current||(p.current=!n)},[n,l]),C.useEffect(()=>{if(c.current=!1,!l||!b.current)return;const S=yn(b.current),w=_r(S),E=ET(b.current)??b.current;return gd(b.current,w)||(E.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(`
85
+ `)),E.setAttribute("tabIndex","-1")),p.current&&E.focus()),()=>{s||(m.current&&m.current.focus&&(c.current=!0,m.current.focus()),m.current=null)}},[l]),C.useEffect(()=>{if(!l||!b.current)return;const S=yn(b.current),w=R=>{if(y.current=R,o||!a()||R.key!=="Tab")return;_r(S)===b.current&&R.shiftKey&&(c.current=!0,d.current&&d.current.focus())},E=()=>{var V,$;const R=b.current;if(R===null)return;const N=_r(S);if(!S.hasFocus()||!a()||c.current){c.current=!1;return}if(gd(R,N)||o&&N!==u.current&&N!==d.current)return;if(N!==g.current)g.current=null;else if(g.current!==null)return;if(!p.current)return;let j=[];if((N===u.current||N===d.current)&&(j=i(b.current)),j.length>0){const v=!!((V=y.current)!=null&&V.shiftKey&&(($=y.current)==null?void 0:$.key)==="Tab"),O=j[0],P=j[j.length-1];typeof O!="string"&&typeof P!="string"&&(v?P.focus():O.focus())}else R.focus()};S.addEventListener("focusin",E),S.addEventListener("keydown",w,!0);const I=setInterval(()=>{const R=_r(S);R&&R.tagName==="BODY"&&E()},50);return()=>{clearInterval(I),S.removeEventListener("focusin",E),S.removeEventListener("keydown",w,!0)}},[n,o,s,a,l,i]);const x=S=>{m.current===null&&(m.current=S.relatedTarget),p.current=!0,g.current=S.target;const w=t.props.onFocus;w&&w(S)},T=S=>{m.current===null&&(m.current=S.relatedTarget),p.current=!0};return h.jsxs(C.Fragment,{children:[h.jsx("div",{tabIndex:l?0:-1,onFocus:T,ref:u,"data-testid":"sentinelStart"}),C.cloneElement(t,{ref:f,onFocus:x}),h.jsx("div",{tabIndex:l?0:-1,onFocus:T,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Qr.propTypes={children:ds,disableAutoFocus:r.bool,disableEnforceFocus:r.bool,disableRestoreFocus:r.bool,getTabbable:r.func,isEnabled:r.func,open:r.bool.isRequired});process.env.NODE_ENV!=="production"&&(Qr.propTypes=pf(Qr.propTypes));function Xo(e){return e&&e.ownerDocument||document}const RT=e=>e.type==="hidden";function NT(e){const{nodeName:t}=e;return!!(["BUTTON","DETAILS","EMBED","IFRAME","KEYGEN","LABEL","SELECT","TEXTAREA"].includes(t)||t==="A"&&e.hasAttribute("href")||e instanceof HTMLInputElement&&!RT(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)}function $T(e){return Ye("MuiPickerPopper",e)}Ze("MuiPickerPopper",["root","paper"]);function Wo(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const jT=e=>{setTimeout(e,0)},im=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?im(t.shadowRoot):t:null},_n=e=>im(Xo(e)),oi=e=>Array.from(e.children).indexOf(_n(e)),am="@media (pointer: fine)";function lm(e){const t={};for(const n of Object.keys(e))(n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n]);return t}const AT=["PaperComponent","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],LT=e=>Ve({root:["root"],paper:["paper"]},$T,e),VT=te(sm,{name:"MuiPickerPopper",slot:"Root"})(({theme:e})=>({zIndex:e.zIndex.modal})),FT=te(fs,{name:"MuiPickerPopper",slot:"Paper"})({outline:0,transformOrigin:"top center",variants:[{props:({popperPlacement:e})=>new Set(["top","top-start","top-end"]).has(e),style:{transformOrigin:"bottom center"}}]});function BT(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function zT(e,t){const n=C.useRef(!1),o=C.useRef(!1),s=C.useRef(null),i=C.useRef(!1);C.useEffect(()=>{if(!e)return;function c(){i.current=!0}return document.addEventListener("mousedown",c,!0),document.addEventListener("touchstart",c,!0),()=>{document.removeEventListener("mousedown",c,!0),document.removeEventListener("touchstart",c,!0),i.current=!1}},[e]);const a=be(c=>{if(!i.current){o.current=!1;return}const u=o.current;o.current=!1;const d=Xo(s.current);if(!s.current||"clientX"in c&&BT(c,d))return;if(n.current){n.current=!1;return}let m;c.composedPath?m=c.composedPath().indexOf(s.current)>-1:m=!d.documentElement.contains(c.target)||s.current.contains(c.target),!m&&!u&&t(c)}),l=c=>{c.defaultMuiPrevented||(o.current=!0)};return C.useEffect(()=>{if(e){const c=Xo(s.current),u=()=>{n.current=!0};return c.addEventListener("touchstart",a),c.addEventListener("touchmove",u),()=>{c.removeEventListener("touchstart",a),c.removeEventListener("touchmove",u)}}},[e,a]),C.useEffect(()=>{if(e){const c=Xo(s.current);return c.addEventListener("click",a),()=>{c.removeEventListener("click",a),o.current=!1}}},[e,a]),[s,l,l]}const cm=C.forwardRef((e,t)=>{const{PaperComponent:n,ownerState:o,children:s,paperSlotProps:i,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=Ce(e,AT),d=Le({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:o});return h.jsx(n,D({},u,d,{onClick:m=>{var g;l(m),(g=d.onClick)==null||g.call(d,m)},onTouchStart:m=>{var g;c(m),(g=d.onTouchStart)==null||g.call(d,m)},ownerState:o,children:s}))});process.env.NODE_ENV!=="production"&&(cm.displayName="PickerPopperPaperWrapper");const WT=e=>{const t=e instanceof HTMLElement?e:null;return t?NT(t):!1};function UT(e){const t=ke({props:e,name:"MuiPickerPopper"}),{children:n,placement:o="bottom-start",slots:s,slotProps:i,classes:a}=t,{open:l,popupRef:c,reduceAnimations:u,keepOpenDuringFieldFocus:d}=Eo(),{ownerState:m,rootRefObject:g}=at(),{dismissViews:p,getCurrentViewMode:b,onPopperExited:f,triggerElement:y,viewContainerRole:x}=at();C.useEffect(()=>{function A(B){l&&B.key==="Escape"&&p()}return document.addEventListener("keydown",A),()=>{document.removeEventListener("keydown",A)}},[p,l]);const T=C.useRef(null);C.useEffect(()=>{x==="tooltip"||b()==="field"||(l?T.current=_n(g.current):T.current&&T.current instanceof HTMLElement&&setTimeout(()=>{T.current instanceof HTMLElement&&T.current.focus()}))},[l,x,b,g]);const S=LT(a),w=be(A=>{d&&y&&A&&"target"in A&&y.contains(A.target)||(x==="tooltip"?jT(()=>{var B,L;(B=g.current)!=null&&B.contains(_n(g.current))||(L=c.current)!=null&&L.contains(_n(c.current))||p()}):(A.composedPath().some(WT)&&(T.current=null),p()))}),[E,I,R]=zT(l,w),N=C.useRef(null),j=wt(N,c),V=wt(j,E),$=A=>{A.key==="Escape"&&(A.stopPropagation(),p())},v=(s==null?void 0:s.desktopTransition)??u?Kn:ei,O=(s==null?void 0:s.desktopTrapFocus)??Qr,P=(s==null?void 0:s.desktopPaper)??FT,k=(s==null?void 0:s.popper)??VT,M=Le({elementType:k,externalSlotProps:i==null?void 0:i.popper,additionalProps:{transition:!0,role:x??void 0,open:l,placement:o,anchorEl:y,onKeyDown:$},className:S.root,ownerState:m}),_=C.useMemo(()=>D({},m,{popperPlacement:M.placement}),[m,M.placement]);return h.jsx(k,D({},M,{children:({TransitionProps:A})=>h.jsx(O,D({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:x==="tooltip"},i==null?void 0:i.desktopTrapFocus,{children:h.jsx(v,D({},A,i==null?void 0:i.desktopTransition,{onExited:B=>{var L,F,W;f==null||f(),(F=(L=i==null?void 0:i.desktopTransition)==null?void 0:L.onExited)==null||F.call(L,B),(W=A==null?void 0:A.onExited)==null||W.call(A)},children:h.jsx(cm,{PaperComponent:P,ownerState:_,ref:V,onPaperClick:I,onPaperTouchStart:R,paperClasses:S.paper,paperSlotProps:i==null?void 0:i.desktopPaper,children:n})}))}))}))}let bd=0;function HT(e){const[t,n]=C.useState(e),o=e||t;return C.useEffect(()=>{t==null&&(bd+=1,n(`mui-${bd}`))},[t]),o}const qT={...C},yd=qT.useId;function Ai(e){if(yd!==void 0){const t=yd();return e??t}return HT(e)}const YT="@media (prefers-reduced-motion: reduce)",Qo=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),vd=Qo&&Qo[1]?parseInt(Qo[1],10):null,xd=Qo&&Qo[2]?parseInt(Qo[2],10):null,GT=vd&&vd<10||xd&&xd<13||!1;function um(e){const t=cl(YT,{defaultMatches:!1});return e??(t||GT)}function ur(e){const{controlled:t,default:n,name:o,state:s="value"}=e,{current:i}=C.useRef(t!==void 0),[a,l]=C.useState(n),c=i?t:a;if(process.env.NODE_ENV!=="production"){C.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${s} state of ${o} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} element for 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(`
87
86
  `))},[s,o,t]);const{current:d}=C.useRef(n);C.useEffect(()=>{!i&&JSON.stringify(n)!==JSON.stringify(d)&&console.error([`MUI: A component is changing the default ${s} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join(`
88
- `))},[JSON.stringify(n)])}const u=C.useCallback(d=>{i||l(d)},[]);return[c,u]}function Do(e){const t=C.useRef(e);return Ln(()=>{t.current=e}),C.useRef((...n)=>(0,t.current)(...n)).current}function yt(...e){const t=C.useRef(void 0),n=C.useCallback(o=>{const s=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{s.forEach(i=>i==null?void 0:i())}},e);return C.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}function FC(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function BC(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(u=>{FC(u,l[u])&&typeof a[u]=="function"&&(c[u]=(...d)=>{a[u](...d),l[u](...d)})}),c}if(typeof e=="function"||typeof t=="function")return a=>{const l=typeof t=="function"?t(a):t,c=typeof e=="function"?e({...a,...l}):e,u=ue(a==null?void 0:a.className,l==null?void 0:l.className,c==null?void 0:c.className),d=n(c,l);return{...l,...c,...d,...!!u&&{className:u},...(l==null?void 0:l.style)&&(c==null?void 0:c.style)&&{style:{...l.style,...c.style}},...(l==null?void 0:l.sx)&&(c==null?void 0:c.sx)&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const o=t,s=n(e,o),i=ue(o==null?void 0:o.className,e==null?void 0:e.className);return{...t,...e,...s,...!!i&&{className:i},...(o==null?void 0:o.style)&&(e==null?void 0:e.style)&&{style:{...o.style,...e.style}},...(o==null?void 0:o.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const ui=r.oneOfType([r.func,r.object]);function Un(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function zC(e){const{prototype:t={}}=e;return!!t.isReactComponent}function WC(e,t,n,o,s){const i=e[t],a=s||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!zC(i)&&(l="Did you accidentally provide a plain function component instead?"),i===C.Fragment&&(l="Did you accidentally provide a React.Fragment instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://v7.mui.com/r/caveat-with-refs-guide`):null}const nl=Un(r.elementType,WC);function tu(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
89
- `))}return!1}const nu={};function lf(e,t){const n=C.useRef(nu);return n.current===nu&&(n.current=e(t)),n}class Ns{constructor(){q(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 Ns}static use(){const t=lf(Ns.create).current,[n,o]=C.useState(!1);return t.shouldMount=n,t.setShouldMount=o,C.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=qC(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function UC(){return Ns.use()}function qC(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});return n.resolve=e,n.reject=t,n}function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},$.apply(null,arguments)}function Ce(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function ia(e,t){return ia=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},ia(e,t)}function cf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ia(e,t)}const ou={disabled:!1};var HC=process.env.NODE_ENV!=="production"?r.oneOfType([r.number,r.shape({enter:r.number,exit:r.number,appear:r.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&r.oneOfType([r.string,r.shape({enter:r.string,exit:r.string,active:r.string}),r.shape({enter:r.string,enterDone:r.string,enterActive:r.string,exit:r.string,exitDone:r.string,exitActive:r.string})]);const Ms=Y.createContext(null);var YC=function(t){return t.scrollTop},gr="unmounted",Jn="exited",eo="entering",_o="entered",aa="exiting",Gt=(function(e){cf(t,e);function t(o,s){var i;i=e.call(this,o,s)||this;var a=s,l=a&&!a.isMounting?o.enter:o.appear,c;return i.appearStatus=null,o.in?l?(c=Jn,i.appearStatus=eo):c=_o:o.unmountOnExit||o.mountOnEnter?c=gr:c=Jn,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(s,i){var a=s.in;return a&&i.status===gr?{status:Jn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var i=null;if(s!==this.props){var a=this.state.status;this.props.in?a!==eo&&a!==_o&&(i=eo):(a===eo||a===_o)&&(i=aa)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,i,a,l;return i=a=l=s,s!=null&&typeof s!="number"&&(i=s.exit,a=s.enter,l=s.appear!==void 0?s.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(s,i){if(s===void 0&&(s=!1),i!==null)if(this.cancelNextCallback(),i===eo){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:fr.findDOMNode(this);a&&YC(a)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Jn&&this.setState({status:gr})},n.performEnter=function(s){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:s,c=this.props.nodeRef?[l]:[fr.findDOMNode(this),l],u=c[0],d=c[1],m=this.getTimeouts(),h=l?m.appear:m.enter;if(!s&&!a||ou.disabled){this.safeSetState({status:_o},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:eo},function(){i.props.onEntering(u,d),i.onTransitionEnd(h,function(){i.safeSetState({status:_o},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var s=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:fr.findDOMNode(this);if(!i||ou.disabled){this.safeSetState({status:Jn},function(){s.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:aa},function(){s.props.onExiting(l),s.onTransitionEnd(a.exit,function(){s.safeSetState({status:Jn},function(){s.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,i){i=this.setNextCallback(i),this.setState(s,i)},n.setNextCallback=function(s){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,s(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(s,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:fr.findDOMNode(this),l=s==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===gr)return null;var i=this.props,a=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 l=Ce(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Y.createElement(Ms.Provider,{value:null},typeof a=="function"?a(s,l):Y.cloneElement(Y.Children.only(a),l))},t})(Y.Component);Gt.contextType=Ms;Gt.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:r.shape({current:typeof Element>"u"?r.any:function(e,t,n,o,s,i){var a=e[t];return r.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,o,s,i)}}),children:r.oneOfType([r.func.isRequired,r.element.isRequired]).isRequired,in:r.bool,mountOnEnter:r.bool,unmountOnExit:r.bool,appear:r.bool,enter:r.bool,exit:r.bool,timeout:function(t){var n=HC;t.addEndListener||(n=n.isRequired);for(var o=arguments.length,s=new Array(o>1?o-1:0),i=1;i<o;i++)s[i-1]=arguments[i];return n.apply(void 0,[t].concat(s))},addEndListener:r.func,onEnter:r.func,onEntering:r.func,onEntered:r.func,onExit:r.func,onExiting:r.func,onExited:r.func}:{};function wo(){}Gt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:wo,onEntering:wo,onEntered:wo,onExit:wo,onExiting:wo,onExited:wo};Gt.UNMOUNTED=gr;Gt.EXITED=Jn;Gt.ENTERING=eo;Gt.ENTERED=_o;Gt.EXITING=aa;function GC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ol(e,t){var n=function(i){return t&&Y.isValidElement(i)?t(i):i},o=Object.create(null);return e&&Y.Children.map(e,function(s){return s}).forEach(function(s){o[s.key]=n(s)}),o}function KC(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var o=Object.create(null),s=[];for(var i in e)i in t?s.length&&(o[i]=s,s=[]):s.push(i);var a,l={};for(var c in t){if(o[c])for(a=0;a<o[c].length;a++){var u=o[c][a];l[o[c][a]]=n(u)}l[c]=n(c)}for(a=0;a<s.length;a++)l[s[a]]=n(s[a]);return l}function no(e,t,n){return n[t]!=null?n[t]:e.props[t]}function XC(e,t){return ol(e.children,function(n){return Y.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:no(n,"appear",e),enter:no(n,"enter",e),exit:no(n,"exit",e)})})}function QC(e,t,n){var o=ol(e.children),s=KC(t,o);return Object.keys(s).forEach(function(i){var a=s[i];if(Y.isValidElement(a)){var l=i in t,c=i in o,u=t[i],d=Y.isValidElement(u)&&!u.props.in;c&&(!l||d)?s[i]=Y.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:no(a,"exit",e),enter:no(a,"enter",e)}):!c&&l&&!d?s[i]=Y.cloneElement(a,{in:!1}):c&&l&&Y.isValidElement(u)&&(s[i]=Y.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:no(a,"exit",e),enter:no(a,"enter",e)}))}}),s}var ZC=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},JC={component:"div",childFactory:function(t){return t}},rl=(function(e){cf(t,e);function t(o,s){var i;i=e.call(this,o,s)||this;var a=i.handleExited.bind(GC(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(s,i){var a=i.children,l=i.handleExited,c=i.firstRender;return{children:c?XC(s,l):QC(s,a,l),firstRender:!1}},n.handleExited=function(s,i){var a=ol(this.props.children);s.key in a||(s.props.onExited&&s.props.onExited(i),this.mounted&&this.setState(function(l){var c=$({},l.children);return delete c[s.key],{children:c}}))},n.render=function(){var s=this.props,i=s.component,a=s.childFactory,l=Ce(s,["component","childFactory"]),c=this.state.contextValue,u=ZC(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?Y.createElement(Ms.Provider,{value:c},u):Y.createElement(Ms.Provider,{value:c},Y.createElement(i,l,u))},t})(Y.Component);rl.propTypes=process.env.NODE_ENV!=="production"?{component:r.any,children:r.node,appear:r.bool,enter:r.bool,exit:r.bool,childFactory:r.func}:{};rl.defaultProps=JC;const ew=[];function tw(e){C.useEffect(e,ew)}let nw=class uf{constructor(){q(this,"currentId",null);q(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});q(this,"disposeEffect",()=>this.clear)}static create(){return new uf}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}};function sl(){const e=lf(nw.create).current;return tw(e.disposeEffect),e}function df(e){const{className:t,classes:n,pulsate:o=!1,rippleX:s,rippleY:i,rippleSize:a,in:l,onExited:c,timeout:u}=e,[d,m]=C.useState(!1),h=ue(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),f={width:a,height:a,top:-(a/2)+i,left:-(a/2)+s},g=ue(n.child,d&&n.childLeaving,o&&n.childPulsate);return!l&&!d&&m(!0),C.useEffect(()=>{if(!l&&c!=null){const p=setTimeout(c,u);return()=>{clearTimeout(p)}}},[c,l,u]),b.jsx("span",{className:h,style:f,children:b.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(df.propTypes={classes:r.object.isRequired,className:r.string,in:r.bool,onExited:r.func,pulsate:r.bool,rippleSize:r.number,rippleX:r.number,rippleY:r.number,timeout:r.number.isRequired});const Mt=_e("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),la=550,ow=80,rw=Fn.keyframes`
87
+ `))},[JSON.stringify(n)])}const u=C.useCallback(d=>{i||l(d)},[]);return[c,u]}const dm={hasNextStep:!1,hasSeveralSteps:!1,goToNextStep:()=>{},areViewsInSameStep:()=>!0};function KT(e){const{steps:t,isViewMatchingStep:n,onStepChange:o}=e;return s=>{if(t==null)return dm;const i=t.findIndex(l=>n(s.view,l)),a=i===-1||i===t.length-1?null:t[i+1];return{hasNextStep:a!=null,hasSeveralSteps:t.length>1,goToNextStep:()=>{a!=null&&o(D({},s,{step:a}))},areViewsInSameStep:(l,c)=>{const u=t.find(m=>n(l,m)),d=t.find(m=>n(c,m));return u===d}}}}let ha=!1;function gs({onChange:e,onViewChange:t,openTo:n,view:o,views:s,autoFocus:i,focusedView:a,onFocusedViewChange:l,getStepNavigation:c}){process.env.NODE_ENV!=="production"&&(ha||(o!=null&&!s.includes(o)&&(console.warn(`MUI X: \`view="${o}"\` is not a valid prop.`,`It must be an element of \`views=["${s.join('", "')}"]\`.`),ha=!0),o==null&&n!=null&&!s.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${s.join('", "')}"]\`.`),ha=!0)));const u=C.useRef(n),d=C.useRef(s),m=C.useRef(s.includes(n)?n:s[0]),[g,p]=ur({name:"useViews",state:"view",controlled:o,default:m.current}),b=C.useRef(i?g:null),[f,y]=ur({name:"useViews",state:"focusedView",controlled:a,default:b.current}),x=c?c({setView:p,view:g,defaultView:m.current,views:s}):dm;C.useEffect(()=>{(u.current&&u.current!==n||d.current&&d.current.some(j=>!s.includes(j)))&&(p(s.includes(n)?n:s[0]),d.current=s,u.current=n)},[n,p,g,s]);const T=s.indexOf(g),S=s[T-1]??null,w=s[T+1]??null,E=be((j,V)=>{y(V?j:$=>j===$?null:$),l==null||l(j,V)}),I=be(j=>{E(j,!0),j!==g&&(p(j),t&&t(j))}),R=be(()=>{w&&I(w)}),N=be((j,V,$)=>{const v=V==="finish",O=$?s.indexOf($)<s.length-1:!!w;e(j,v&&O?"partial":V,$);let k=null;if($!=null&&$!==g?k=$:v&&(k=g),k==null)return;const M=s[s.indexOf(k)+1];M==null||!x.areViewsInSameStep(k,M)||I(M)});return D({},x,{view:g,setView:I,focusedView:f,setFocusedView:E,nextView:w,previousView:S,defaultView:s.includes(n)?n:s[0],goToNextView:R,setValueAndGoToNextView:N})}function Cd(){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"}function XT(e,t){const[n,o]=C.useState(Cd);return Kt(()=>{const s=()=>{o(Cd())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),Wo(e,["hours","minutes","seconds"])?"portrait":t??n}const oo=({name:e,timezone:t,value:n,defaultValue:o,referenceDate:s,onChange:i,valueManager:a})=>{const l=Me(),[c,u]=ur({name:e,state:"value",controlled:n,default:o??a.emptyValue}),d=C.useMemo(()=>a.getTimezone(l,c),[l,a,c]),m=be(f=>d==null?f:a.setTimezone(l,d,f)),g=C.useMemo(()=>t||d||(s?l.getTimezone(Array.isArray(s)?s[0]:s):"default"),[t,d,s,l]),p=C.useMemo(()=>a.setTimezone(l,g,c),[a,l,g,c]),b=be((f,...y)=>{const x=m(f);u(x),i==null||i(x,...y)});return{value:p,handleValueChange:b,timezone:g}};function QT(e){const{props:t,valueManager:n,validator:o}=e,{value:s,defaultValue:i,onChange:a,referenceDate:l,timezone:c,onAccept:u,closeOnSelect:d,open:m,onOpen:g,onClose:p}=t,{current:b}=C.useRef(i),{current:f}=C.useRef(s!==void 0),{current:y}=C.useRef(m!==void 0),x=Me();process.env.NODE_ENV!=="production"&&t.renderInput!=null&&$n(["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)."]),process.env.NODE_ENV!=="production"&&(C.useEffect(()=>{f!==(s!==void 0)&&console.error([`MUI X: A component is changing the ${f?"":"un"}controlled value of a Picker to be ${f?"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(`
88
+ `))},[s]),C.useEffect(()=>{!f&&b!==i&&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(`
89
+ `))},[JSON.stringify(b)]));const{timezone:T,value:S,handleValueChange:w}=oo({name:"a picker component",timezone:c,value:s,defaultValue:b,referenceDate:l,onChange:a,valueManager:n}),[E,I]=C.useState(()=>({open:!1,lastExternalValue:S,clockShallowValue:void 0,lastCommittedValue:S,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:R}=Nf({props:t,validator:o,timezone:T,value:S,onError:t.onError}),N=be(v=>{const O=typeof v=="function"?v(E.open):v;y||I(P=>D({},P,{open:O})),O&&g&&g(),O||p==null||p()}),j=be((v,O)=>{const{changeImportance:P="accept",skipPublicationIfPristine:k=!1,validationError:M,shortcut:_,source:A,shouldClose:B=P==="accept"}=O??{};let L,F;!k&&!f&&!E.hasBeenModifiedSinceMount?(L=!0,F=P==="accept"):(L=!n.areValuesEqual(x,v,S),F=P==="accept"&&!n.areValuesEqual(x,v,E.lastCommittedValue)),I(Q=>D({},Q,{clockShallowValue:L?void 0:Q.clockShallowValue,lastCommittedValue:F?v:Q.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let W=null;const G=()=>{if(!W){let Q;A?Q=A:_?Q="view":Q="unknown",W={validationError:M??R(v),source:Q},_&&(W.shortcut=_)}return W};L&&w(v,G()),F&&u&&u(v,G()),B&&N(!1)});S!==E.lastExternalValue&&I(v=>D({},v,{lastExternalValue:S,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));const V=be((v,O="partial")=>{if(O==="shallow"){I(P=>D({},P,{clockShallowValue:v,hasBeenModifiedSinceMount:!0}));return}j(v,{changeImportance:O==="finish"&&d?"accept":"set",source:"view"})});C.useEffect(()=>{if(y){if(m===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: You must not mix controlling and uncontrolled mode for `open` prop":je(160));I(v=>D({},v,{open:m}))}},[y,m]);const $=C.useMemo(()=>n.cleanValue(x,E.clockShallowValue===void 0?S:E.clockShallowValue),[x,n,E.clockShallowValue,S]);return{timezone:T,state:E,setValue:j,setValueFromView:V,setOpen:N,value:S,viewValue:$}}const ZT=["className","sx"],pm=({ref:e,props:t,valueManager:n,valueType:o,variant:s,validator:i,onPopperExited:a,autoFocusView:l,rendererInterceptor:c,localeText:u,viewContainerRole:d,getStepNavigation:m})=>{const{views:g,view:p,openTo:b,onViewChange:f,viewRenderers:y,reduceAnimations:x,orientation:T,disableOpenPicker:S,closeOnSelect:w,disabled:E,readOnly:I,formatDensity:R,selectedSections:N,onSelectedSectionsChange:j,format:V,label:$,autoFocus:v,name:O,keepOpenDuringFieldFocus:P}=t,{className:k,sx:M}=t,_=Ce(t,ZT),A=Ai(),B=Me(),L=um(x),F=XT(g,T),{current:W}=C.useRef(b??null),[G,Q]=C.useState(null),K=C.useRef(null),Z=C.useRef(null),se=C.useRef(null),Y=wt(e,se),{timezone:z,state:q,setOpen:J,setValue:U,setValueFromView:ce,value:ne,viewValue:de}=QT({props:t,valueManager:n,validator:i}),{view:fe,setView:ae,defaultView:oe,focusedView:he,setFocusedView:ee,setValueAndGoToNextView:le,goToNextStep:re,hasNextStep:xe,hasSeveralSteps:we}=gs({view:p,views:g,openTo:b,onChange:ce,onViewChange:f,autoFocus:l,getStepNavigation:m}),pe=be(()=>{var lt;ne===null&&((lt=Z.current)!=null&&lt.clearValue)&&Z.current.clearValue(),U(n.emptyValue,{source:"view"})}),Se=be(()=>U(n.getTodayValue(B,z,o),{source:"view"})),Ee=be(()=>U(ne,{source:"view"})),Ue=be(()=>U(q.lastCommittedValue,{skipPublicationIfPristine:!0,source:"view"})),_t=be(()=>{U(ne,{skipPublicationIfPristine:!0,source:"view"})}),{hasUIView:Te,viewModeLookup:et,timeViewsCount:tt}=C.useMemo(()=>g.reduce((lt,tn)=>{const Qc=y[tn]==null?"field":"UI";return lt.viewModeLookup[tn]=Qc,Qc==="UI"&&(lt.hasUIView=!0,or(tn)&&(lt.timeViewsCount+=1)),lt},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[y,g]),ut=et[fe],ot=be(()=>ut),[nt,io]=C.useState(ut==="UI"?fe:null);nt!==fe&&et[fe]==="UI"&&io(fe),Kt(()=>{ut==="field"&&q.open&&(J(!1),setTimeout(()=>{var lt,tn;(lt=Z==null?void 0:Z.current)==null||lt.setSelectedSections(fe),(tn=Z==null?void 0:Z.current)==null||tn.focusField(fe)}))},[fe]),Kt(()=>{if(!q.open)return;let lt=fe;ut==="field"&&nt!=null&&(lt=nt),lt!==oe&&et[lt]==="UI"&&et[oe]==="UI"&&(lt=oe),lt!==fe&&ae(lt),ee(lt,!0)},[q.open]);const Ne=C.useMemo(()=>({isPickerValueEmpty:n.areValuesEqual(B,ne,n.emptyValue),isPickerOpen:q.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:F,pickerVariant:s}),[B,n,ne,q.open,F,s,t.disabled,t.readOnly]),Ct=C.useMemo(()=>S||!Te?"hidden":E||I?"disabled":"enabled",[S,Te,E,I]),en=be(re),zt=C.useMemo(()=>w&&!we?[]:["cancel","nextOrAccept"],[w,we]),_o=C.useMemo(()=>({setValue:U,setOpen:J,clearValue:pe,setValueToToday:Se,acceptValueChanges:Ee,cancelValueChanges:Ue,setView:ae,goToNextStep:en}),[U,J,pe,Se,Ee,Ue,ae,en]),Xc=C.useMemo(()=>D({},_o,{value:ne,timezone:z,open:q.open,views:g,view:nt,initialView:W,disabled:E??!1,readOnly:I??!1,autoFocus:v??!1,variant:s,orientation:F,popupRef:K,reduceAnimations:L,triggerRef:Q,triggerStatus:Ct,keepOpenDuringFieldFocus:!!P,hasNextStep:xe,fieldFormat:V??"",name:O,label:$,rootSx:M,rootRef:Y,rootClassName:k}),[_o,ne,Y,s,F,L,E,I,V,k,O,$,M,Ct,P,xe,z,q.open,nt,g,W,v]),eb=C.useMemo(()=>({dismissViews:_t,ownerState:Ne,hasUIView:Te,getCurrentViewMode:ot,rootRefObject:se,labelId:A,triggerElement:G,viewContainerRole:d,defaultActionBarActions:zt,onPopperExited:a}),[_t,Ne,Te,ot,A,G,d,zt,a]),tb=C.useMemo(()=>({formatDensity:R,selectedSections:N,onSelectedSectionsChange:j,internalFieldRef:Z}),[R,N,j,Z]);return{providerProps:{localeText:u,contextValue:Xc,privateContextValue:eb,actionsContextValue:_o,fieldPrivateContextValue:tb,isValidContextValue:lt=>{const tn=i({adapter:B,value:lt,timezone:z,props:t});return!n.hasError(tn)}},renderCurrentView:()=>{if(nt==null)return null;const lt=y[nt];if(lt==null)return null;const tn=D({},_,{views:g,timezone:z,value:de,onChange:le,view:nt,onViewChange:ae,showViewSwitcher:tt>1,timeViewsCount:tt},d==="tooltip"?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:he,onFocusedViewChange:ee});return c?h.jsx(c,{viewRenderers:y,popperView:nt,rendererProps:tn}):lt(tn)},ownerState:Ne}};function fm(e){return Ye("MuiPickersLayout",e)}const lo=Ze("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function wd(...e){return e.reduce((t,n)=>n==null?t:function(...s){t.apply(this,s),n.apply(this,s)},()=>{})}function JT(e){return Re("MuiSvgIcon",e)}Pe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const e0=e=>{const{color:t,fontSize:n,classes:o}=e,s={root:["root",t!=="inherit"&&`color${me(t)}`,`fontSize${me(n)}`]};return Ae(s,JT,o)},t0=te("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${me(n.color)}`],t[`fontSize${me(n.fontSize)}`]]}})(ct(({theme:e})=>{var t,n,o,s,i,a,l,c,u,d,m,g,p,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(t=e.transitions)==null?void 0:t.create)==null?void 0:s.call(t,"fill",{duration:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:f=>!f.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,f])=>f&&f.main).map(([f])=>{var y,x;return{props:{color:f},style:{color:(x=(y=(e.vars??e).palette)==null?void 0:y[f])==null?void 0:x.main}}}),{props:{color:"action"},style:{color:(g=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:g.active}},{props:{color:"disabled"},style:{color:(b=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:b.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),ri=C.forwardRef(function(t,n){const o=Je({props:t,name:"MuiSvgIcon"}),{children:s,className:i,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:m,viewBox:g="0 0 24 24",...p}=o,b=C.isValidElement(s)&&s.type==="svg",f={...o,color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:g,hasSvgAsChild:b},y={};d||(y.viewBox=g);const x=e0(f);return h.jsxs(t0,{as:l,className:ue(x.root,i),focusable:"false",color:u,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n,...y,...p,...b&&s.props,ownerState:f,children:[b?s.props.children:s,m?h.jsx("title",{children:m}):null]})});process.env.NODE_ENV!=="production"&&(ri.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),r.string]),component:r.elementType,fontSize:r.oneOfType([r.oneOf(["inherit","large","medium","small"]),r.string]),htmlColor:r.string,inheritViewBox:r.bool,shapeRendering:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),titleAccess:r.string,viewBox:r.string});ri.muiName="SvgIcon";function bt(e,t){function n(o,s){return h.jsx(ri,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:s,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=ri.muiName,C.memo(C.forwardRef(n))}function Zr(e){return yn(e).defaultView||window}function n0(e,t,n,o,s){if(process.env.NODE_ENV==="production")return null;const i=s||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function o0(e){const{controlled:t,default:n,name:o,state:s="value"}=e,{current:i}=C.useRef(t!==void 0),[a,l]=C.useState(n),c=i?t:a;if(process.env.NODE_ENV!=="production"){C.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${s} state of ${o} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} element for 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(`
90
+ `))},[s,o,t]);const{current:d}=C.useRef(n);C.useEffect(()=>{!i&&JSON.stringify(n)!==JSON.stringify(d)&&console.error([`MUI: A component is changing the default ${s} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join(`
91
+ `))},[JSON.stringify(n)])}const u=C.useCallback(d=>{i||l(d)},[]);return[c,u]}function Zo(e){const t=C.useRef(e);return qn(()=>{t.current=e}),C.useRef((...n)=>(0,t.current)(...n)).current}function r0(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function s0(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(u=>{r0(u,l[u])&&typeof a[u]=="function"&&(c[u]=(...d)=>{a[u](...d),l[u](...d)})}),c}if(typeof e=="function"||typeof t=="function")return a=>{const l=typeof t=="function"?t(a):t,c=typeof e=="function"?e({...a,...l}):e,u=ue(a==null?void 0:a.className,l==null?void 0:l.className,c==null?void 0:c.className),d=n(c,l);return{...l,...c,...d,...!!u&&{className:u},...(l==null?void 0:l.style)&&(c==null?void 0:c.style)&&{style:{...l.style,...c.style}},...(l==null?void 0:l.sx)&&(c==null?void 0:c.sx)&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const o=t,s=n(e,o),i=ue(o==null?void 0:o.className,e==null?void 0:e.className);return{...t,...e,...s,...!!i&&{className:i},...(o==null?void 0:o.style)&&(e==null?void 0:e.style)&&{style:{...o.style,...e.style}},...(o==null?void 0:o.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function i0(e){const{prototype:t={}}=e;return!!t.isReactComponent}function a0(e,t,n,o,s){const i=e[t],a=s||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!i0(i)&&(l="Did you accidentally provide a plain function component instead?"),i===C.Fragment&&(l="Did you accidentally provide a React.Fragment instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://v7.mui.com/r/caveat-with-refs-guide`):null}const jl=to(r.elementType,a0);function Sd(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
92
+ `))}return!1}class si{constructor(){X(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 si}static use(){const t=jf(si.create).current,[n,o]=C.useState(!1);return t.shouldMount=n,t.setShouldMount=o,C.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=c0(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function l0(){return si.use()}function c0(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});return n.resolve=e,n.reject=t,n}function mm(e){const{className:t,classes:n,pulsate:o=!1,rippleX:s,rippleY:i,rippleSize:a,in:l,onExited:c,timeout:u}=e,[d,m]=C.useState(!1),g=ue(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),p={width:a,height:a,top:-(a/2)+i,left:-(a/2)+s},b=ue(n.child,d&&n.childLeaving,o&&n.childPulsate);return!l&&!d&&m(!0),C.useEffect(()=>{if(!l&&c!=null){const f=setTimeout(c,u);return()=>{clearTimeout(f)}}},[c,l,u]),h.jsx("span",{className:g,style:p,children:h.jsx("span",{className:b})})}process.env.NODE_ENV!=="production"&&(mm.propTypes={classes:r.object.isRequired,className:r.string,in:r.bool,onExited:r.func,pulsate:r.bool,rippleSize:r.number,rippleX:r.number,rippleY:r.number,timeout:r.number.isRequired});const Ht=Pe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Va=550,u0=80,d0=Jn.keyframes`
90
93
  0% {
91
94
  transform: scale(0);
92
95
  opacity: 0.1;
@@ -96,7 +99,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
96
99
  transform: scale(1);
97
100
  opacity: 0.3;
98
101
  }
99
- `,sw=Fn.keyframes`
102
+ `,p0=Jn.keyframes`
100
103
  0% {
101
104
  opacity: 1;
102
105
  }
@@ -104,7 +107,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
104
107
  100% {
105
108
  opacity: 0;
106
109
  }
107
- `,iw=Fn.keyframes`
110
+ `,f0=Jn.keyframes`
108
111
  0% {
109
112
  transform: scale(1);
110
113
  }
@@ -116,23 +119,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
116
119
  100% {
117
120
  transform: scale(1);
118
121
  }
119
- `,aw=ne("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),lw=ne(df,{name:"MuiTouchRipple",slot:"Ripple"})`
122
+ `,m0=te("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),h0=te(mm,{name:"MuiTouchRipple",slot:"Ripple"})`
120
123
  opacity: 0;
121
124
  position: absolute;
122
125
 
123
- &.${Mt.rippleVisible} {
126
+ &.${Ht.rippleVisible} {
124
127
  opacity: 0.3;
125
128
  transform: scale(1);
126
- animation-name: ${rw};
127
- animation-duration: ${la}ms;
129
+ animation-name: ${d0};
130
+ animation-duration: ${Va}ms;
128
131
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
129
132
  }
130
133
 
131
- &.${Mt.ripplePulsate} {
134
+ &.${Ht.ripplePulsate} {
132
135
  animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
133
136
  }
134
137
 
135
- & .${Mt.child} {
138
+ & .${Ht.child} {
136
139
  opacity: 1;
137
140
  display: block;
138
141
  width: 100%;
@@ -141,25 +144,25 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
141
144
  background-color: currentColor;
142
145
  }
143
146
 
144
- & .${Mt.childLeaving} {
147
+ & .${Ht.childLeaving} {
145
148
  opacity: 0;
146
- animation-name: ${sw};
147
- animation-duration: ${la}ms;
149
+ animation-name: ${p0};
150
+ animation-duration: ${Va}ms;
148
151
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
149
152
  }
150
153
 
151
- & .${Mt.childPulsate} {
154
+ & .${Ht.childPulsate} {
152
155
  position: absolute;
153
156
  /* @noflip */
154
157
  left: 0px;
155
158
  top: 0;
156
- animation-name: ${iw};
159
+ animation-name: ${f0};
157
160
  animation-duration: 2500ms;
158
161
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
159
162
  animation-iteration-count: infinite;
160
163
  animation-delay: 200ms;
161
164
  }
162
- `,pf=C.forwardRef(function(t,n){const o=Ye({props:t,name:"MuiTouchRipple"}),{center:s=!1,classes:i={},className:a,...l}=o,[c,u]=C.useState([]),d=C.useRef(0),m=C.useRef(null);C.useEffect(()=>{m.current&&(m.current(),m.current=null)},[c]);const h=C.useRef(!1),f=sl(),g=C.useRef(null),p=C.useRef(null),y=C.useCallback(S=>{const{pulsate:E,rippleX:T,rippleY:R,rippleSize:N,cb:L}=S;u(V=>[...V,b.jsx(lw,{classes:{ripple:ue(i.ripple,Mt.ripple),rippleVisible:ue(i.rippleVisible,Mt.rippleVisible),ripplePulsate:ue(i.ripplePulsate,Mt.ripplePulsate),child:ue(i.child,Mt.child),childLeaving:ue(i.childLeaving,Mt.childLeaving),childPulsate:ue(i.childPulsate,Mt.childPulsate)},timeout:la,pulsate:E,rippleX:T,rippleY:R,rippleSize:N},d.current)]),d.current+=1,m.current=L},[i]),x=C.useCallback((S={},E={},T=()=>{})=>{const{pulsate:R=!1,center:N=s||E.pulsate,fakeElement:L=!1}=E;if((S==null?void 0:S.type)==="mousedown"&&h.current){h.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(h.current=!0);const V=L?null:p.current,A=V?V.getBoundingClientRect():{width:0,height:0,left:0,top:0};let v,P,O;if(N||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)v=Math.round(A.width/2),P=Math.round(A.height/2);else{const{clientX:_,clientY:k}=S.touches&&S.touches.length>0?S.touches[0]:S;v=Math.round(_-A.left),P=Math.round(k-A.top)}if(N)O=Math.sqrt((2*A.width**2+A.height**2)/3),O%2===0&&(O+=1);else{const _=Math.max(Math.abs((V?V.clientWidth:0)-v),v)*2+2,k=Math.max(Math.abs((V?V.clientHeight:0)-P),P)*2+2;O=Math.sqrt(_**2+k**2)}S!=null&&S.touches?g.current===null&&(g.current=()=>{y({pulsate:R,rippleX:v,rippleY:P,rippleSize:O,cb:T})},f.start(ow,()=>{g.current&&(g.current(),g.current=null)})):y({pulsate:R,rippleX:v,rippleY:P,rippleSize:O,cb:T})},[s,y,f]),I=C.useCallback(()=>{x({},{pulsate:!0})},[x]),w=C.useCallback((S,E)=>{if(f.clear(),(S==null?void 0:S.type)==="touchend"&&g.current){g.current(),g.current=null,f.start(0,()=>{w(S,E)});return}g.current=null,u(T=>T.length>0?T.slice(1):T),m.current=E},[f]);return C.useImperativeHandle(n,()=>({pulsate:I,start:x,stop:w}),[I,x,w]),b.jsx(aw,{className:ue(Mt.root,i.root,a),ref:p,...l,children:b.jsx(rl,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(pf.propTypes={center:r.bool,classes:r.object,className:r.string});function cw(e){return Me("MuiButtonBase",e)}const uw=_e("MuiButtonBase",["root","disabled","focusVisible"]),dw=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:s}=e,a=Le({root:["root",t&&"disabled",n&&"focusVisible"]},cw,s);return n&&o&&(a.root+=` ${o}`),a},pw=ne("button",{name:"MuiButtonBase",slot:"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"},[`&.${uw.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),io=C.forwardRef(function(t,n){const o=Ye({props:t,name:"MuiButtonBase"}),{action:s,centerRipple:i=!1,children:a,className:l,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:m=!1,focusRipple:h=!1,focusVisibleClassName:f,LinkComponent:g="a",onBlur:p,onClick:y,onContextMenu:x,onDragLeave:I,onFocus:w,onFocusVisible:S,onKeyDown:E,onKeyUp:T,onMouseDown:R,onMouseLeave:N,onMouseUp:L,onTouchEnd:V,onTouchMove:A,onTouchStart:v,tabIndex:P=0,TouchRippleProps:O,touchRippleRef:_,type:k,...D}=o,M=C.useRef(null),z=UC(),j=yt(z.ref,_),[B,W]=C.useState(!1);u&&B&&W(!1),C.useImperativeHandle(s,()=>({focusVisible:()=>{W(!0),M.current.focus()}}),[]);const X=z.shouldMount&&!d&&!u;C.useEffect(()=>{B&&h&&!d&&z.pulsate()},[d,h,B,z]);const Q=cn(z,"start",R,m),G=cn(z,"stop",x,m),Z=cn(z,"stop",I,m),te=cn(z,"stop",L,m),H=cn(z,"stop",se=>{B&&se.preventDefault(),N&&N(se)},m),F=cn(z,"start",v,m),U=cn(z,"stop",V,m),ae=cn(z,"stop",A,m),K=cn(z,"stop",se=>{tu(se.target)||W(!1),p&&p(se)},!1),ce=Do(se=>{M.current||(M.current=se.currentTarget),tu(se.target)&&(W(!0),S&&S(se)),w&&w(se)}),oe=()=>{const se=M.current;return se?se.tagName==="BUTTON"?!1:!(se.tagName==="A"&&se.href):c&&c!=="button"},be=Do(se=>{h&&!se.repeat&&B&&se.key===" "&&z.stop(se,()=>{z.start(se)}),se.target===se.currentTarget&&oe()&&se.key===" "&&se.preventDefault(),E&&E(se),se.target===se.currentTarget&&oe()&&se.key==="Enter"&&!u&&(se.preventDefault(),y&&y(se))}),he=Do(se=>{h&&se.key===" "&&B&&!se.defaultPrevented&&z.stop(se,()=>{z.pulsate(se)}),T&&T(se),y&&se.target===se.currentTarget&&oe()&&se.key===" "&&!se.defaultPrevented&&!u&&y(se)});let re=c;re==="button"&&(D.href||D.to)&&(re=g);const J={};if(re==="button"){const se=!!D.formAction;J.type=k===void 0&&!se?"button":k,J.disabled=u}else!D.href&&!D.to&&(J.role="button"),u&&(J["aria-disabled"]=u);const ge=yt(n,M),ie={...o,centerRipple:i,component:c,disabled:u,disableRipple:d,disableTouchRipple:m,focusRipple:h,tabIndex:P,focusVisible:B},fe=dw(ie);return b.jsxs(pw,{as:re,className:ue(fe.root,l),ownerState:ie,onBlur:K,onClick:y,onContextMenu:G,onFocus:ce,onKeyDown:be,onKeyUp:he,onMouseDown:Q,onMouseLeave:H,onMouseUp:te,onDragLeave:Z,onTouchEnd:U,onTouchMove:ae,onTouchStart:F,ref:ge,tabIndex:u?-1:P,type:k,...J,...D,children:[a,X?b.jsx(pf,{ref:j,center:i,...O}):null]})});function cn(e,t,n,o=!1){return Do(s=>(n&&n(s),o||e[t](s),!0))}process.env.NODE_ENV!=="production"&&(io.propTypes={action:ui,centerRipple:r.bool,children:r.node,classes:r.object,className:r.string,component:nl,disabled:r.bool,disableRipple:r.bool,disableTouchRipple:r.bool,focusRipple:r.bool,focusVisibleClassName:r.string,formAction:r.oneOfType([r.func,r.string]),href:r.any,LinkComponent:r.elementType,onBlur:r.func,onClick:r.func,onContextMenu:r.func,onDragLeave:r.func,onFocus:r.func,onFocusVisible:r.func,onKeyDown:r.func,onKeyUp:r.func,onMouseDown:r.func,onMouseLeave:r.func,onMouseUp:r.func,onTouchEnd:r.func,onTouchMove:r.func,onTouchStart:r.func,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tabIndex:r.number,TouchRippleProps:r.object,touchRippleRef:r.oneOfType([r.func,r.shape({current:r.shape({pulsate:r.func.isRequired,start:r.func.isRequired,stop:r.func.isRequired})})]),type:r.oneOfType([r.oneOf(["button","reset","submit"]),r.string])});function fw(e){return typeof e.main=="string"}function mw(e,t=[]){if(!fw(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Ct(e=[]){return([,t])=>t&&mw(t,e)}function hw(e){return Me("MuiCircularProgress",e)}_e("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Wt=44,ca=Fn.keyframes`
165
+ `,hm=C.forwardRef(function(t,n){const o=Je({props:t,name:"MuiTouchRipple"}),{center:s=!1,classes:i={},className:a,...l}=o,[c,u]=C.useState([]),d=C.useRef(0),m=C.useRef(null);C.useEffect(()=>{m.current&&(m.current(),m.current=null)},[c]);const g=C.useRef(!1),p=Il(),b=C.useRef(null),f=C.useRef(null),y=C.useCallback(w=>{const{pulsate:E,rippleX:I,rippleY:R,rippleSize:N,cb:j}=w;u(V=>[...V,h.jsx(h0,{classes:{ripple:ue(i.ripple,Ht.ripple),rippleVisible:ue(i.rippleVisible,Ht.rippleVisible),ripplePulsate:ue(i.ripplePulsate,Ht.ripplePulsate),child:ue(i.child,Ht.child),childLeaving:ue(i.childLeaving,Ht.childLeaving),childPulsate:ue(i.childPulsate,Ht.childPulsate)},timeout:Va,pulsate:E,rippleX:I,rippleY:R,rippleSize:N},d.current)]),d.current+=1,m.current=j},[i]),x=C.useCallback((w={},E={},I=()=>{})=>{const{pulsate:R=!1,center:N=s||E.pulsate,fakeElement:j=!1}=E;if((w==null?void 0:w.type)==="mousedown"&&g.current){g.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(g.current=!0);const V=j?null:f.current,$=V?V.getBoundingClientRect():{width:0,height:0,left:0,top:0};let v,O,P;if(N||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)v=Math.round($.width/2),O=Math.round($.height/2);else{const{clientX:k,clientY:M}=w.touches&&w.touches.length>0?w.touches[0]:w;v=Math.round(k-$.left),O=Math.round(M-$.top)}if(N)P=Math.sqrt((2*$.width**2+$.height**2)/3),P%2===0&&(P+=1);else{const k=Math.max(Math.abs((V?V.clientWidth:0)-v),v)*2+2,M=Math.max(Math.abs((V?V.clientHeight:0)-O),O)*2+2;P=Math.sqrt(k**2+M**2)}w!=null&&w.touches?b.current===null&&(b.current=()=>{y({pulsate:R,rippleX:v,rippleY:O,rippleSize:P,cb:I})},p.start(u0,()=>{b.current&&(b.current(),b.current=null)})):y({pulsate:R,rippleX:v,rippleY:O,rippleSize:P,cb:I})},[s,y,p]),T=C.useCallback(()=>{x({},{pulsate:!0})},[x]),S=C.useCallback((w,E)=>{if(p.clear(),(w==null?void 0:w.type)==="touchend"&&b.current){b.current(),b.current=null,p.start(0,()=>{S(w,E)});return}b.current=null,u(I=>I.length>0?I.slice(1):I),m.current=E},[p]);return C.useImperativeHandle(n,()=>({pulsate:T,start:x,stop:S}),[T,x,S]),h.jsx(m0,{className:ue(Ht.root,i.root,a),ref:f,...l,children:h.jsx(ps,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(hm.propTypes={center:r.bool,classes:r.object,className:r.string});function g0(e){return Re("MuiButtonBase",e)}const b0=Pe("MuiButtonBase",["root","disabled","focusVisible"]),y0=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:s}=e,a=Ae({root:["root",t&&"disabled",n&&"focusVisible"]},g0,s);return n&&o&&(a.root+=` ${o}`),a},v0=te("button",{name:"MuiButtonBase",slot:"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"},[`&.${b0.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Xn=C.forwardRef(function(t,n){const o=Je({props:t,name:"MuiButtonBase"}),{action:s,centerRipple:i=!1,children:a,className:l,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:m=!1,focusRipple:g=!1,focusVisibleClassName:p,LinkComponent:b="a",onBlur:f,onClick:y,onContextMenu:x,onDragLeave:T,onFocus:S,onFocusVisible:w,onKeyDown:E,onKeyUp:I,onMouseDown:R,onMouseLeave:N,onMouseUp:j,onTouchEnd:V,onTouchMove:$,onTouchStart:v,tabIndex:O=0,TouchRippleProps:P,touchRippleRef:k,type:M,..._}=o,A=C.useRef(null),B=l0(),L=It(B.ref,k),[F,W]=C.useState(!1);u&&F&&W(!1),C.useImperativeHandle(s,()=>({focusVisible:()=>{W(!0),A.current.focus()}}),[]);const G=B.shouldMount&&!d&&!u;C.useEffect(()=>{F&&g&&!d&&B.pulsate()},[d,g,F,B]);const Q=Cn(B,"start",R,m),K=Cn(B,"stop",x,m),Z=Cn(B,"stop",T,m),se=Cn(B,"stop",j,m),Y=Cn(B,"stop",re=>{F&&re.preventDefault(),N&&N(re)},m),z=Cn(B,"start",v,m),q=Cn(B,"stop",V,m),J=Cn(B,"stop",$,m),U=Cn(B,"stop",re=>{Sd(re.target)||W(!1),f&&f(re)},!1),ce=Zo(re=>{A.current||(A.current=re.currentTarget),Sd(re.target)&&(W(!0),w&&w(re)),S&&S(re)}),ne=()=>{const re=A.current;return re?re.tagName==="BUTTON"?!1:!(re.tagName==="A"&&re.href):c&&c!=="button"},de=Zo(re=>{g&&!re.repeat&&F&&re.key===" "&&B.stop(re,()=>{B.start(re)}),re.target===re.currentTarget&&ne()&&re.key===" "&&re.preventDefault(),E&&E(re),re.target===re.currentTarget&&ne()&&re.key==="Enter"&&!u&&(re.preventDefault(),y&&y(re))}),fe=Zo(re=>{g&&re.key===" "&&F&&!re.defaultPrevented&&B.stop(re,()=>{B.pulsate(re)}),I&&I(re),y&&re.target===re.currentTarget&&ne()&&re.key===" "&&!re.defaultPrevented&&!u&&y(re)});let ae=c;ae==="button"&&(_.href||_.to)&&(ae=b);const oe={};if(ae==="button"){const re=!!_.formAction;oe.type=M===void 0&&!re?"button":M,oe.disabled=u}else!_.href&&!_.to&&(oe.role="button"),u&&(oe["aria-disabled"]=u);const he=It(n,A),ee={...o,centerRipple:i,component:c,disabled:u,disableRipple:d,disableTouchRipple:m,focusRipple:g,tabIndex:O,focusVisible:F},le=y0(ee);return h.jsxs(v0,{as:ae,className:ue(le.root,l),ownerState:ee,onBlur:U,onClick:y,onContextMenu:K,onFocus:ce,onKeyDown:de,onKeyUp:fe,onMouseDown:Q,onMouseLeave:Y,onMouseUp:se,onDragLeave:Z,onTouchEnd:q,onTouchMove:J,onTouchStart:z,ref:he,tabIndex:u?-1:O,type:M,...oe,..._,children:[a,G?h.jsx(hm,{ref:L,center:i,...P}):null]})});function Cn(e,t,n,o=!1){return Zo(s=>(n&&n(s),o||e[t](s),!0))}process.env.NODE_ENV!=="production"&&(Xn.propTypes={action:Ni,centerRipple:r.bool,children:r.node,classes:r.object,className:r.string,component:jl,disabled:r.bool,disableRipple:r.bool,disableTouchRipple:r.bool,focusRipple:r.bool,focusVisibleClassName:r.string,formAction:r.oneOfType([r.func,r.string]),href:r.any,LinkComponent:r.elementType,onBlur:r.func,onClick:r.func,onContextMenu:r.func,onDragLeave:r.func,onFocus:r.func,onFocusVisible:r.func,onKeyDown:r.func,onKeyUp:r.func,onMouseDown:r.func,onMouseLeave:r.func,onMouseUp:r.func,onTouchEnd:r.func,onTouchMove:r.func,onTouchStart:r.func,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tabIndex:r.number,TouchRippleProps:r.object,touchRippleRef:r.oneOfType([r.func,r.shape({current:r.shape({pulsate:r.func.isRequired,start:r.func.isRequired,stop:r.func.isRequired})})]),type:r.oneOfType([r.oneOf(["button","reset","submit"]),r.string])});function x0(e){return Re("MuiCircularProgress",e)}Pe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const on=44,Fa=Jn.keyframes`
163
166
  0% {
164
167
  transform: rotate(0deg);
165
168
  }
@@ -167,7 +170,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
167
170
  100% {
168
171
  transform: rotate(360deg);
169
172
  }
170
- `,ua=Fn.keyframes`
173
+ `,Ba=Jn.keyframes`
171
174
  0% {
172
175
  stroke-dasharray: 1px, 200px;
173
176
  stroke-dashoffset: 0;
@@ -182,11 +185,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
182
185
  stroke-dasharray: 1px, 200px;
183
186
  stroke-dashoffset: -126px;
184
187
  }
185
- `,gw=typeof ca!="string"?Fn.css`
186
- animation: ${ca} 1.4s linear infinite;
187
- `:null,bw=typeof ua!="string"?Fn.css`
188
- animation: ${ua} 1.4s ease-in-out infinite;
189
- `:null,yw=e=>{const{classes:t,variant:n,color:o,disableShrink:s}=e,i={root:["root",n,`color${le(o)}`],svg:["svg"],track:["track"],circle:["circle",`circle${le(n)}`,s&&"circleDisableShrink"]};return Le(i,hw,t)},vw=ne("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${le(n.color)}`]]}})(Je(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:gw||{animation:`${ca} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ct()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),xw=ne("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Sw=ne("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${le(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Je(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:bw||{animation:`${ua} 1.4s ease-in-out infinite`}}]}))),Cw=ne("circle",{name:"MuiCircularProgress",slot:"Track"})(Je(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),di=C.forwardRef(function(t,n){const o=Ye({props:t,name:"MuiCircularProgress"}),{className:s,color:i="primary",disableShrink:a=!1,enableTrackSlot:l=!1,size:c=40,style:u,thickness:d=3.6,value:m=0,variant:h="indeterminate",...f}=o,g={...o,color:i,disableShrink:a,size:c,thickness:d,value:m,variant:h,enableTrackSlot:l},p=yw(g),y={},x={},I={};if(h==="determinate"){const w=2*Math.PI*((Wt-d)/2);y.strokeDasharray=w.toFixed(3),I["aria-valuenow"]=Math.round(m),y.strokeDashoffset=`${((100-m)/100*w).toFixed(3)}px`,x.transform="rotate(-90deg)"}return b.jsx(vw,{className:ue(p.root,s),style:{width:c,height:c,...x,...u},ownerState:g,ref:n,role:"progressbar",...I,...f,children:b.jsxs(xw,{className:p.svg,ownerState:g,viewBox:`${Wt/2} ${Wt/2} ${Wt} ${Wt}`,children:[l?b.jsx(Cw,{className:p.track,ownerState:g,cx:Wt,cy:Wt,r:(Wt-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,b.jsx(Sw,{className:p.circle,style:y,ownerState:g,cx:Wt,cy:Wt,r:(Wt-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(di.propTypes={classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","primary","secondary","error","info","success","warning"]),r.string]),disableShrink:Un(r.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:r.bool,size:r.oneOfType([r.number,r.string]),style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),thickness:r.number,value:r.number,variant:r.oneOf(["determinate","indeterminate"])});function ww(e){return Me("MuiButton",e)}const Xn=_e("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"]),ff=C.createContext({});process.env.NODE_ENV!=="production"&&(ff.displayName="ButtonGroupContext");const mf=C.createContext(void 0);process.env.NODE_ENV!=="production"&&(mf.displayName="ButtonGroupButtonContext");const Tw=e=>{const{color:t,disableElevation:n,fullWidth:o,size:s,variant:i,loading:a,loadingPosition:l,classes:c}=e,u={root:["root",a&&"loading",i,`${i}${le(t)}`,`size${le(s)}`,`${i}Size${le(s)}`,`color${le(t)}`,n&&"disableElevation",o&&"fullWidth",a&&`loadingPosition${le(l)}`],startIcon:["icon","startIcon",`iconSize${le(s)}`],endIcon:["icon","endIcon",`iconSize${le(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=Le(u,ww,c);return{...c,...d}},hf=[{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}}}],Iw=ne(io,{shouldForwardProp:e=>Zo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${le(n.color)}`],t[`size${le(n.size)}`],t[`${n.variant}Size${le(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Je(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Xn.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:o})=>o.startIcon||o.loading&&o.loadingPosition==="start",style:{"&::before":{content:'"\\200b"',width:0,overflow:"hidden"}}},{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Xn.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Xn.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).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)",[`&.${Xn.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Ct()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Xn.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Xn.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Xn.loading}`]:{color:"transparent"}}}]}})),Ew=ne("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${le(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...hf]})),_w=ne("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${le(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...hf]})),Ow=ne("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({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:(e.vars||e).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}}]})),ru=ne("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),dn=C.forwardRef(function(t,n){const o=C.useContext(ff),s=C.useContext(mf),i=Pr(o,t),a=Ye({props:i,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:m=!1,disableElevation:h=!1,disableFocusRipple:f=!1,endIcon:g,focusVisibleClassName:p,fullWidth:y=!1,id:x,loading:I=null,loadingIndicator:w,loadingPosition:S="center",size:E="medium",startIcon:T,type:R,variant:N="text",...L}=a,V=Ja(x),A=w??b.jsx(di,{"aria-labelledby":V,color:"inherit",size:16}),v={...a,color:c,component:u,disabled:m,disableElevation:h,disableFocusRipple:f,fullWidth:y,loading:I,loadingIndicator:A,loadingPosition:S,size:E,type:R,variant:N},P=Tw(v),O=(T||I&&S==="start")&&b.jsx(Ew,{className:P.startIcon,ownerState:v,children:T||b.jsx(ru,{className:P.loadingIconPlaceholder,ownerState:v})}),_=(g||I&&S==="end")&&b.jsx(_w,{className:P.endIcon,ownerState:v,children:g||b.jsx(ru,{className:P.loadingIconPlaceholder,ownerState:v})}),k=s||"",D=typeof I=="boolean"?b.jsx("span",{className:P.loadingWrapper,style:{display:"contents"},children:I&&b.jsx(Ow,{className:P.loadingIndicator,ownerState:v,children:A})}):null,{root:M,...z}=P;return b.jsxs(Iw,{ownerState:v,className:ue(o.className,P.root,d,k),component:u,disabled:m||I,focusRipple:!f,focusVisibleClassName:ue(P.focusVisible,p),ref:n,type:R,id:I?V:x,...L,classes:z,children:[O,S!=="end"&&D,l,S==="end"&&D,_]})});process.env.NODE_ENV!=="production"&&(dn.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","primary","secondary","success","error","info","warning"]),r.string]),component:r.elementType,disabled:r.bool,disableElevation:r.bool,disableFocusRipple:r.bool,disableRipple:r.bool,endIcon:r.node,focusVisibleClassName:r.string,fullWidth:r.bool,href:r.string,id:r.string,loading:r.bool,loadingIndicator:r.node,loadingPosition:r.oneOf(["center","end","start"]),size:r.oneOfType([r.oneOf(["small","medium","large"]),r.string]),startIcon:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),type:r.oneOfType([r.oneOf(["button","reset","submit"]),r.string]),variant:r.oneOfType([r.oneOf(["contained","outlined","text"]),r.string])});const gf=C.createContext(null);process.env.NODE_ENV!=="production"&&(gf.displayName="TabContext");process.env.NODE_ENV!=="production"&&(r.node,r.oneOfType([r.number,r.string]).isRequired);function kw(){return C.useContext(gf)}function Pw(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-P-${t}`}function Rw(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-T-${t}`}var ls={exports:{}},We={};/**
188
+ `,C0=typeof Fa!="string"?Jn.css`
189
+ animation: ${Fa} 1.4s linear infinite;
190
+ `:null,w0=typeof Ba!="string"?Jn.css`
191
+ animation: ${Ba} 1.4s ease-in-out infinite;
192
+ `:null,S0=e=>{const{classes:t,variant:n,color:o,disableShrink:s}=e,i={root:["root",n,`color${me(o)}`],svg:["svg"],track:["track"],circle:["circle",`circle${me(n)}`,s&&"circleDisableShrink"]};return Ae(i,x0,t)},T0=te("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${me(n.color)}`]]}})(ct(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:C0||{animation:`${Fa} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ot()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),I0=te("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),E0=te("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${me(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(ct(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:w0||{animation:`${Ba} 1.4s ease-in-out infinite`}}]}))),k0=te("circle",{name:"MuiCircularProgress",slot:"Track"})(ct(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Li=C.forwardRef(function(t,n){const o=Je({props:t,name:"MuiCircularProgress"}),{className:s,color:i="primary",disableShrink:a=!1,enableTrackSlot:l=!1,size:c=40,style:u,thickness:d=3.6,value:m=0,variant:g="indeterminate",...p}=o,b={...o,color:i,disableShrink:a,size:c,thickness:d,value:m,variant:g,enableTrackSlot:l},f=S0(b),y={},x={},T={};if(g==="determinate"){const S=2*Math.PI*((on-d)/2);y.strokeDasharray=S.toFixed(3),T["aria-valuenow"]=Math.round(m),y.strokeDashoffset=`${((100-m)/100*S).toFixed(3)}px`,x.transform="rotate(-90deg)"}return h.jsx(T0,{className:ue(f.root,s),style:{width:c,height:c,...x,...u},ownerState:b,ref:n,role:"progressbar",...T,...p,children:h.jsxs(I0,{className:f.svg,ownerState:b,viewBox:`${on/2} ${on/2} ${on} ${on}`,children:[l?h.jsx(k0,{className:f.track,ownerState:b,cx:on,cy:on,r:(on-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,h.jsx(E0,{className:f.circle,style:y,ownerState:b,cx:on,cy:on,r:(on-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(Li.propTypes={classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","primary","secondary","error","info","success","warning"]),r.string]),disableShrink:to(r.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:r.bool,size:r.oneOfType([r.number,r.string]),style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),thickness:r.number,value:r.number,variant:r.oneOf(["determinate","indeterminate"])});function O0(e){return Re("MuiButton",e)}const co=Pe("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"]),gm=C.createContext({});process.env.NODE_ENV!=="production"&&(gm.displayName="ButtonGroupContext");const bm=C.createContext(void 0);process.env.NODE_ENV!=="production"&&(bm.displayName="ButtonGroupButtonContext");const _0=e=>{const{color:t,disableElevation:n,fullWidth:o,size:s,variant:i,loading:a,loadingPosition:l,classes:c}=e,u={root:["root",a&&"loading",i,`${i}${me(t)}`,`size${me(s)}`,`${i}Size${me(s)}`,`color${me(t)}`,n&&"disableElevation",o&&"fullWidth",a&&`loadingPosition${me(l)}`],startIcon:["icon","startIcon",`iconSize${me(s)}`],endIcon:["icon","endIcon",`iconSize${me(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=Ae(u,O0,c);return{...c,...d}},ym=[{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}}}],P0=te(Xn,{shouldForwardProp:e=>pr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${me(n.color)}`],t[`size${me(n.size)}`],t[`${n.variant}Size${me(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(ct(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${co.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:o})=>o.startIcon||o.loading&&o.loadingPosition==="start",style:{"&::before":{content:'"\\200b"',width:0,overflow:"hidden"}}},{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${co.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${co.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).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)",[`&.${co.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Ot()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${co.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${co.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${co.loading}`]:{color:"transparent"}}}]}})),M0=te("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${me(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...ym]})),D0=te("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${me(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...ym]})),R0=te("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({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:(e.vars||e).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}}]})),Td=te("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Tn=C.forwardRef(function(t,n){const o=C.useContext(gm),s=C.useContext(bm),i=Ur(o,t),a=Je({props:i,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:m=!1,disableElevation:g=!1,disableFocusRipple:p=!1,endIcon:b,focusVisibleClassName:f,fullWidth:y=!1,id:x,loading:T=null,loadingIndicator:S,loadingPosition:w="center",size:E="medium",startIcon:I,type:R,variant:N="text",...j}=a,V=il(x),$=S??h.jsx(Li,{"aria-labelledby":V,color:"inherit",size:16}),v={...a,color:c,component:u,disabled:m,disableElevation:g,disableFocusRipple:p,fullWidth:y,loading:T,loadingIndicator:$,loadingPosition:w,size:E,type:R,variant:N},O=_0(v),P=(I||T&&w==="start")&&h.jsx(M0,{className:O.startIcon,ownerState:v,children:I||h.jsx(Td,{className:O.loadingIconPlaceholder,ownerState:v})}),k=(b||T&&w==="end")&&h.jsx(D0,{className:O.endIcon,ownerState:v,children:b||h.jsx(Td,{className:O.loadingIconPlaceholder,ownerState:v})}),M=s||"",_=typeof T=="boolean"?h.jsx("span",{className:O.loadingWrapper,style:{display:"contents"},children:T&&h.jsx(R0,{className:O.loadingIndicator,ownerState:v,children:$})}):null,{root:A,...B}=O;return h.jsxs(P0,{ownerState:v,className:ue(o.className,O.root,d,M),component:u,disabled:m||T,focusRipple:!p,focusVisibleClassName:ue(O.focusVisible,f),ref:n,type:R,id:T?V:x,...j,classes:B,children:[P,w!=="end"&&_,l,w==="end"&&_,k]})});process.env.NODE_ENV!=="production"&&(Tn.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","primary","secondary","success","error","info","warning"]),r.string]),component:r.elementType,disabled:r.bool,disableElevation:r.bool,disableFocusRipple:r.bool,disableRipple:r.bool,endIcon:r.node,focusVisibleClassName:r.string,fullWidth:r.bool,href:r.string,id:r.string,loading:r.bool,loadingIndicator:r.node,loadingPosition:r.oneOf(["center","end","start"]),size:r.oneOfType([r.oneOf(["small","medium","large"]),r.string]),startIcon:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),type:r.oneOfType([r.oneOf(["button","reset","submit"]),r.string]),variant:r.oneOfType([r.oneOf(["contained","outlined","text"]),r.string])});function N0(e){return Re("MuiDialogActions",e)}Pe("MuiDialogActions",["root","spacing"]);const $0=e=>{const{classes:t,disableSpacing:n}=e;return Ae({root:["root",!n&&"spacing"]},N0,t)},j0=te("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),vm=C.forwardRef(function(t,n){const o=Je({props:t,name:"MuiDialogActions"}),{className:s,disableSpacing:i=!1,...a}=o,l={...o,disableSpacing:i},c=$0(l);return h.jsx(j0,{className:ue(c.root,s),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(vm.propTypes={children:r.node,classes:r.object,className:r.string,disableSpacing:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const A0=["actions"],L0=te(vm,{name:"MuiPickersLayout",slot:"ActionBar"})({});function xm(e){const{actions:t}=e,n=Ce(e,A0),o=Dt(),{clearValue:s,setValueToToday:i,acceptValueChanges:a,cancelValueChanges:l,goToNextStep:c,hasNextStep:u}=Eo();if(t==null||t.length===0)return null;const d=t==null?void 0:t.map(m=>{switch(m){case"clear":return h.jsx(Tn,{onClick:s,children:o.clearButtonLabel},m);case"cancel":return h.jsx(Tn,{onClick:l,children:o.cancelButtonLabel},m);case"accept":return h.jsx(Tn,{onClick:a,children:o.okButtonLabel},m);case"today":return h.jsx(Tn,{onClick:i,children:o.todayButtonLabel},m);case"next":return h.jsx(Tn,{onClick:c,children:o.nextStepButtonLabel},m);case"nextOrAccept":return u?h.jsx(Tn,{onClick:c,children:o.nextStepButtonLabel},m):h.jsx(Tn,{onClick:a,children:o.okButtonLabel},m);default:return null}});return h.jsx(L0,D({},n,{children:d}))}process.env.NODE_ENV!=="production"&&(xm.propTypes={actions:r.arrayOf(r.oneOf(["accept","cancel","clear","next","nextOrAccept","today"]).isRequired),disableSpacing:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const Cm=C.memo(xm);process.env.NODE_ENV!=="production"&&(Cm.displayName="PickersActionBar");const Un=C.createContext({});process.env.NODE_ENV!=="production"&&(Un.displayName="ListContext");function V0(e){return Re("MuiList",e)}Pe("MuiList",["root","padding","dense","subheader"]);const F0=e=>{const{classes:t,disablePadding:n,dense:o,subheader:s}=e;return Ae({root:["root",!n&&"padding",o&&"dense",s&&"subheader"]},V0,t)},B0=te("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Al=C.forwardRef(function(t,n){const o=Je({props:t,name:"MuiList"}),{children:s,className:i,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:u,...d}=o,m=C.useMemo(()=>({dense:l}),[l]),g={...o,component:a,dense:l,disablePadding:c},p=F0(g);return h.jsx(Un.Provider,{value:m,children:h.jsxs(B0,{as:a,className:ue(p.root,i),ref:n,ownerState:g,...d,children:[u,s]})})});process.env.NODE_ENV!=="production"&&(Al.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,dense:r.bool,disablePadding:r.bool,subheader:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function it(e,t){const{className:n,elementType:o,ownerState:s,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:m={[e]:void 0},...g}=i,p=d[e]||o,b=nm(m[e],s),{props:{component:f,...y},internalRef:x}=tm({className:n,...c,externalForwardedProps:e==="root"?g:void 0,externalSlotProps:b}),T=It(x,b==null?void 0:b.ref,t.ref),S=e==="root"?f||u:f,w=Jf(p,{...e==="root"&&!u&&!d[e]&&a,...e!=="root"&&!d[e]&&a,...y,...S&&!l&&{as:S},...S&&l&&{component:S},ref:T},s);return[p,w]}function z0(e){return Re("MuiListItem",e)}Pe("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const W0=Pe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function U0(e){return Re("MuiListItemSecondaryAction",e)}Pe("MuiListItemSecondaryAction",["root","disableGutters"]);const H0=e=>{const{disableGutters:t,classes:n}=e;return Ae({root:["root",t&&"disableGutters"]},U0,n)},q0=te("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Ll=C.forwardRef(function(t,n){const o=Je({props:t,name:"MuiListItemSecondaryAction"}),{className:s,...i}=o,a=C.useContext(Un),l={...o,disableGutters:a.disableGutters},c=H0(l);return h.jsx(q0,{className:ue(c.root,s),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Ll.propTypes={children:r.node,classes:r.object,className:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});Ll.muiName="ListItemSecondaryAction";const Y0=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},G0=e=>{const{alignItems:t,classes:n,dense:o,disableGutters:s,disablePadding:i,divider:a,hasSecondaryAction:l}=e;return Ae({root:["root",o&&"dense",!s&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},z0,n)},K0=te("div",{name:"MuiListItem",slot:"Root",overridesResolver:Y0})(ct(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${W0.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),X0=te("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),wm=C.forwardRef(function(t,n){const o=Je({props:t,name:"MuiListItem"}),{alignItems:s="center",children:i,className:a,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:m,...g}={},dense:p=!1,disableGutters:b=!1,disablePadding:f=!1,divider:y=!1,secondaryAction:x,slotProps:T={},slots:S={},...w}=o,E=C.useContext(Un),I=C.useMemo(()=>({dense:p||E.dense||!1,alignItems:s,disableGutters:b}),[s,E.dense,p,b]),R=C.useRef(null),N=C.Children.toArray(i),j=N.length&&Ko(N[N.length-1],["ListItemSecondaryAction"]),V={...o,alignItems:s,dense:I.dense,disableGutters:b,disablePadding:f,divider:y,hasSecondaryAction:j},$=G0(V),v=It(R,n),O={slots:S,slotProps:T},[P,k]=it("secondaryAction",{elementType:Ll,externalForwardedProps:O,ownerState:V,className:$.secondaryAction}),M=S.root||c.Root||K0,_=T.root||u.root||{},A={className:ue($.root,_.className,a),...w};let B=l||"li";return j?(B=!A.component&&!l?"div":B,d==="li"&&(B==="li"?B="div":A.component==="li"&&(A.component="div")),h.jsx(Un.Provider,{value:I,children:h.jsxs(X0,{as:d,className:ue($.container,m),ref:v,ownerState:V,...g,children:[h.jsx(M,{..._,...!Aa(M)&&{as:B,ownerState:{...V,..._.ownerState}},...A,children:N}),N.pop()]})})):h.jsx(Un.Provider,{value:I,children:h.jsxs(M,{..._,as:B,ref:v,...!Aa(M)&&{ownerState:{...V,..._.ownerState}},...A,children:[N,x&&h.jsx(P,{...k,children:x})]})})});process.env.NODE_ENV!=="production"&&(wm.propTypes={alignItems:r.oneOf(["center","flex-start"]),children:to(r.node,e=>{const t=C.Children.toArray(e.children);let n=-1;for(let o=t.length-1;o>=0;o-=1){const s=t[o];if(Ko(s,["ListItemSecondaryAction"])){n=o;break}}return n!==-1&&n!==t.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:r.object,className:r.string,component:r.elementType,components:r.shape({Root:r.elementType}),componentsProps:r.shape({root:r.object}),ContainerComponent:jl,ContainerProps:r.object,dense:r.bool,disableGutters:r.bool,disablePadding:r.bool,divider:r.bool,secondaryAction:r.node,slotProps:r.shape({root:r.object,secondaryAction:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType,secondaryAction:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const Q0=bt(h.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 Z0(e){return Re("MuiChip",e)}const De=Pe("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"]),J0=e=>{const{classes:t,disabled:n,size:o,color:s,iconColor:i,onDelete:a,clickable:l,variant:c}=e,u={root:["root",c,n&&"disabled",`size${me(o)}`,`color${me(s)}`,l&&"clickable",l&&`clickableColor${me(s)}`,a&&"deletable",a&&`deletableColor${me(s)}`,`${c}${me(s)}`],label:["label",`label${me(o)}`],avatar:["avatar",`avatar${me(o)}`,`avatarColor${me(s)}`],icon:["icon",`icon${me(o)}`,`iconColor${me(i)}`],deleteIcon:["deleteIcon",`deleteIcon${me(o)}`,`deleteIconColor${me(s)}`,`deleteIcon${me(c)}Color${me(s)}`]};return Ae(u,Z0,t)},eI=te("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:o,iconColor:s,clickable:i,onDelete:a,size:l,variant:c}=n;return[{[`& .${De.avatar}`]:t.avatar},{[`& .${De.avatar}`]:t[`avatar${me(l)}`]},{[`& .${De.avatar}`]:t[`avatarColor${me(o)}`]},{[`& .${De.icon}`]:t.icon},{[`& .${De.icon}`]:t[`icon${me(l)}`]},{[`& .${De.icon}`]:t[`iconColor${me(s)}`]},{[`& .${De.deleteIcon}`]:t.deleteIcon},{[`& .${De.deleteIcon}`]:t[`deleteIcon${me(l)}`]},{[`& .${De.deleteIcon}`]:t[`deleteIconColor${me(o)}`]},{[`& .${De.deleteIcon}`]:t[`deleteIcon${me(c)}Color${me(o)}`]},t.root,t[`size${me(l)}`],t[`color${me(o)}`],i&&t.clickable,i&&o!=="default"&&t[`clickableColor${me(o)}`],a&&t.deletable,a&&o!=="default"&&t[`deletableColor${me(o)}`],t[c],t[`${c}${me(o)}`]]}})(ct(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${De.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${De.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${De.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${De.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${De.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${De.icon}`]:{marginLeft:5,marginRight:-6},[`& .${De.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${De.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${De.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Ot(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${De.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${De.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${De.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${De.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(Ot(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${De.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${De.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Ot(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${De.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${De.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${De.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${De.avatar}`]:{marginLeft:4},[`& .${De.avatarSmall}`]:{marginLeft:2},[`& .${De.icon}`]:{marginLeft:4},[`& .${De.iconSmall}`]:{marginLeft:2},[`& .${De.deleteIcon}`]:{marginRight:5},[`& .${De.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Ot()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${De.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${De.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${De.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),tI=te("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:o}=n;return[t.label,t[`label${me(o)}`]]}})({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 Id(e){return e.key==="Backspace"||e.key==="Delete"}const Sm=C.forwardRef(function(t,n){const o=Je({props:t,name:"MuiChip"}),{avatar:s,className:i,clickable:a,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:m,label:g,onClick:p,onDelete:b,onKeyDown:f,onKeyUp:y,size:x="medium",variant:T="filled",tabIndex:S,skipFocusWhenDisabled:w=!1,slots:E={},slotProps:I={},...R}=o,N=C.useRef(null),j=It(N,n),V=Z=>{Z.stopPropagation(),b(Z)},$=Z=>{Z.currentTarget===Z.target&&Id(Z)&&Z.preventDefault(),f&&f(Z)},v=Z=>{Z.currentTarget===Z.target&&b&&Id(Z)&&b(Z),y&&y(Z)},O=a!==!1&&p?!0:a,P=O||b?Xn:c||"div",k={...o,component:P,disabled:d,size:x,color:l,iconColor:C.isValidElement(m)&&m.props.color||l,onDelete:!!b,clickable:O,variant:T},M=J0(k),_=P===Xn?{component:c||"div",focusVisibleClassName:M.focusVisible,...b&&{disableRipple:!0}}:{};let A=null;b&&(A=u&&C.isValidElement(u)?C.cloneElement(u,{className:ue(u.props.className,M.deleteIcon),onClick:V}):h.jsx(Q0,{className:M.deleteIcon,onClick:V}));let B=null;s&&C.isValidElement(s)&&(B=C.cloneElement(s,{className:ue(M.avatar,s.props.className)}));let L=null;m&&C.isValidElement(m)&&(L=C.cloneElement(m,{className:ue(M.icon,m.props.className)})),process.env.NODE_ENV!=="production"&&B&&L&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const F={slots:E,slotProps:I},[W,G]=it("root",{elementType:eI,externalForwardedProps:{...F,...R},ownerState:k,shouldForwardComponentProp:!0,ref:j,className:ue(M.root,i),additionalProps:{disabled:O&&d?!0:void 0,tabIndex:w&&d?-1:S,..._},getSlotProps:Z=>({...Z,onClick:se=>{var Y;(Y=Z.onClick)==null||Y.call(Z,se),p==null||p(se)},onKeyDown:se=>{var Y;(Y=Z.onKeyDown)==null||Y.call(Z,se),$(se)},onKeyUp:se=>{var Y;(Y=Z.onKeyUp)==null||Y.call(Z,se),v(se)}})}),[Q,K]=it("label",{elementType:tI,externalForwardedProps:F,ownerState:k,className:M.label});return h.jsxs(W,{as:P,...G,children:[B||L,h.jsx(Q,{...K,children:g}),A]})});process.env.NODE_ENV!=="production"&&(Sm.propTypes={avatar:r.element,children:n0,classes:r.object,className:r.string,clickable:r.bool,color:r.oneOfType([r.oneOf(["default","primary","secondary","error","info","success","warning"]),r.string]),component:r.elementType,deleteIcon:r.element,disabled:r.bool,icon:r.element,label:r.node,onClick:r.func,onDelete:r.func,onKeyDown:r.func,onKeyUp:r.func,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),skipFocusWhenDisabled:r.bool,slotProps:r.shape({label:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({label:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tabIndex:r.number,variant:r.oneOfType([r.oneOf(["filled","outlined"]),r.string])});const ii=36,Vi=2,Fi=320,nI=280,Vl=336,Tm=232,oI=48,rI=["items","changeImportance"],sI=["getValue"],iI=te(Al,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function Im(e){const{items:t,changeImportance:n="accept"}=e,o=Ce(e,rI),{setValue:s}=Iw(),i=lw();if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:c}=l,u=Ce(l,sI);const d=c({isValid:i});return D({},u,{label:u.label,onClick:()=>{s(d,{changeImportance:n,shortcut:u,source:"view"})},disabled:!i(d)})});return h.jsx(iI,D({dense:!0,sx:[{maxHeight:Vl,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(l=>h.jsx(wm,{children:h.jsx(Sm,D({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(Im.propTypes={changeImportance:r.oneOf(["accept","set"]),className:r.string,component:r.elementType,dense:r.bool,disablePadding:r.bool,items:r.arrayOf(r.shape({getValue:r.func.isRequired,id:r.string,label:r.string.isRequired})),style:r.object,subheader:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const aI=["ownerState"];function lI(e){return e.view!==null}const cI=(e,t)=>{const{pickerOrientation:n}=t;return Ve({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},fm,e)},uI=e=>{const{ownerState:t,defaultActionBarActions:n}=at(),{view:o}=Eo(),s=cn(),{children:i,slots:a,slotProps:l,classes:c}=e,u=C.useMemo(()=>D({},t,{layoutDirection:s?"rtl":"ltr",hasShortcuts:!1}),[t,s]),d=cI(c,u),m=(a==null?void 0:a.actionBar)??Cm,g=Le({elementType:m,externalSlotProps:l==null?void 0:l.actionBar,additionalProps:{actions:n},className:d.actionBar,ownerState:u}),p=Ce(g,aI),b=h.jsx(m,D({},p)),f=a==null?void 0:a.toolbar,y=Le({elementType:f,externalSlotProps:l==null?void 0:l.toolbar,className:d.toolbar,ownerState:u}),x=lI(y)&&f?h.jsx(f,D({},y)):null,T=i,S=a==null?void 0:a.tabs,w=o&&S?h.jsx(S,D({className:d.tabs},l==null?void 0:l.tabs)):null,E=(a==null?void 0:a.shortcuts)??Im,I=Le({elementType:E,externalSlotProps:l==null?void 0:l.shortcuts,className:d.shortcuts,ownerState:u}),R=Array.isArray(I==null?void 0:I.items)&&I.items.length>0,N=o&&E?h.jsx(E,D({},I)):null;return{toolbar:x,content:T,tabs:w,actionBar:b,shortcuts:N,ownerState:D({},u,{hasShortcuts:R})}},dI=["sx","className","classes","children","slots","slotProps"],pI=(e,t)=>{const{pickerOrientation:n}=t;return Ve({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},fm,e)},fI=te("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${lo.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape",hasShortcuts:!1},style:{[`& .${lo.toolbar}`]:{gridColumn:1,gridRow:"1 / 3"}}},{props:{pickerOrientation:"landscape",hasShortcuts:!0},style:{[`& .${lo.toolbar}`]:{gridColumn:"2 / 4",gridRow:1,maxWidth:"max-content"},[`& .${lo.shortcuts}`]:{gridColumn:1,gridRow:2}}},{props:{pickerOrientation:"portrait"},style:{[`& .${lo.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${lo.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{hasShortcuts:!0,layoutDirection:"rtl"},style:{[`& .${lo.shortcuts}`]:{gridColumn:4}}}]}),mI=te("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),Bi=C.forwardRef(function(t,n){const o=ke({props:t,name:"MuiPickersLayout"}),{toolbar:s,content:i,tabs:a,actionBar:l,shortcuts:c,ownerState:u}=uI(o),{orientation:d,variant:m}=Eo(),{sx:g,className:p,classes:b}=o,f=Ce(o,dI),y=pI(b,u);return h.jsxs(fI,D({ref:n,sx:g,className:ue(y.root,p),ownerState:u},f,{children:[d==="landscape"?c:s,d==="landscape"?s:c,h.jsx(mI,{className:y.contentWrapper,ownerState:u,children:m==="desktop"?h.jsxs(C.Fragment,{children:[i,a]}):h.jsxs(C.Fragment,{children:[a,i]})}),l]}))});process.env.NODE_ENV!=="production"&&(Bi.displayName="PickersLayout");process.env.NODE_ENV!=="production"&&(Bi.propTypes={children:r.node,classes:r.object,className:r.string,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function Em(e){const{steps:t}=e;return KT({steps:t,isViewMatchingStep:(n,o)=>o.views==null||o.views.includes(n),onStepChange:({step:n,defaultView:o,setView:s,view:i,views:a})=>{const l=n.views==null?o:n.views.find(c=>a.includes(c));l!==i&&s(l)}})}const hI=["props","steps"],gI=["ownerState"],km=e=>{var I;let{props:t,steps:n}=e,o=Ce(e,hI);const{slots:s,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=Em({steps:n}),{providerProps:d,renderCurrentView:m,ownerState:g}=pm(D({},o,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"desktop",getStepNavigation:u})),p=d.privateContextValue.labelId,b=((I=i==null?void 0:i.toolbar)==null?void 0:I.hidden)??!1,f=s.field,y=Le({elementType:f,externalSlotProps:i==null?void 0:i.field,externalForwardedProps:lm(t),additionalProps:D({},b&&{id:p}),ownerState:g}),x=Ce(y,gI),T=s.layout??Bi;let S=p;b&&(a?S=`${p}-label`:S=void 0);const w=D({},i,{toolbar:D({},i==null?void 0:i.toolbar,{titleId:p}),popper:D({"aria-labelledby":S},i==null?void 0:i.popper)}),E=()=>h.jsxs(Mf,D({},d,{children:[h.jsx(f,D({},x,{slots:D({},s,x.slots),slotProps:D({},w,x.slotProps),inputRef:l})),h.jsx(UT,{slots:s,slotProps:w,children:h.jsx(T,D({},w==null?void 0:w.layout,{slots:s,slotProps:w,children:m()}))})]}));return process.env.NODE_ENV!=="production"&&(E.displayName="renderPicker"),{renderPicker:E}},Ao=e=>e.saveQuery!=null,bI=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:n,timezone:o,setCharacterQuery:s,setTempAndroidValueStr:i,updateSectionValue:a}})=>{const l=Me(),c=({keyPressed:m,sectionIndex:g},p,b)=>{const f=m.toLowerCase(),y=n.sections[g];if(n.characterQuery!=null&&(!b||b(n.characterQuery.value))&&n.characterQuery.sectionIndex===g){const T=`${n.characterQuery.value}${f}`,S=p(T,y);if(!Ao(S))return s({sectionIndex:g,value:T,sectionType:y.type}),S}const x=p(f,y);return Ao(x)&&!x.saveQuery?(s(null),null):(s({sectionIndex:g,value:f,sectionType:y.type}),Ao(x)?null:x)},u=m=>{const g=(f,y,x)=>{const T=y.filter(S=>S.toLowerCase().startsWith(x));return T.length===0?{saveQuery:!1}:{sectionValue:T[0],shouldGoToNextSection:T.length===1}},p=(f,y,x,T)=>{const S=w=>Ef(l,o,y.type,w);if(y.contentType==="letter")return g(y.format,S(y.format),f);if(x&&T!=null&&fl(l,x).contentType==="letter"){const w=S(x),E=g(x,w,f);return Ao(E)?{saveQuery:!1}:D({},E,{sectionValue:T(E.sectionValue,w)})}return{saveQuery:!1}};return c(m,(f,y)=>{switch(y.type){case"month":{const x=T=>Yu(l,T,l.formats.month,y.format);return p(f,y,l.formats.month,x)}case"weekDay":{const x=(T,S)=>S.indexOf(T).toString();return p(f,y,l.formats.weekday,x)}case"meridiem":return p(f,y);default:return{saveQuery:!1}}})},d=m=>{const g=({queryValue:b,skipIfBelowMinimum:f,section:y})=>{const x=bn(b,e),T=Number(x),S=t[y.type]({currentDate:null,format:y.format,contentType:y.contentType});if(T>S.maximum)return{saveQuery:!1};if(f&&T<S.minimum)return{saveQuery:!0};const w=T*10>S.maximum||x.length===S.maximum.toString().length;return{sectionValue:kf(l,T,S,e,y),shouldGoToNextSection:w}};return c(m,(b,f)=>{if(f.contentType==="digit"||f.contentType==="digit-with-letter")return g({queryValue:b,skipIfBelowMinimum:!1,section:f});if(f.type==="month"){Of(l,"digit","month","MM");const y=g({queryValue:b,skipIfBelowMinimum:!0,section:{type:f.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2}});if(Ao(y))return y;const x=Yu(l,y.sectionValue,"MM",f.format);return D({},y,{sectionValue:x})}if(f.type==="weekDay"){const y=g({queryValue:b,skipIfBelowMinimum:!0,section:f});if(Ao(y))return y;const x=_i(l,f.format)[Number(y.sectionValue)-1];return D({},y,{sectionValue:x})}return{saveQuery:!1}},b=>qu(b,e))};return be(m=>{const g=n.sections[m.sectionIndex],b=qu(m.keyPressed,e)?d(D({},m,{keyPressed:ml(m.keyPressed,e)})):u(m);if(b==null){i(null);return}a({section:g,newSectionValue:b.sectionValue,shouldGoToNextSection:b.shouldGoToNextSection})})},Ed={};function yI(e,t){const n=C.useRef(Ed);return n.current===Ed&&(n.current=e(t)),n}const vI=[];function xI(e){C.useEffect(e,vI)}class Fl{constructor(){X(this,"currentId",null);X(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});X(this,"disposeEffect",()=>this.clear)}static create(){return new Fl}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Us(){const e=yI(Fl.create).current;return xI(e.disposeEffect),e}const CI=5e3,wI=e=>{var fe;const t=Me(),n=Dt(),o=cn(),{manager:{validator:s,valueType:i,internal_valueManager:a,internal_fieldValueManager:l},internalPropsWithDefaults:c,internalPropsWithDefaults:{value:u,defaultValue:d,referenceDate:m,onChange:g,format:p,formatDensity:b="dense",selectedSections:f,onSelectedSectionsChange:y,shouldRespectLeadingZeros:x=!1,timezone:T},forwardedProps:{error:S}}=e,{value:w,handleValueChange:E,timezone:I}=oo({name:"a field component",timezone:T,value:u,defaultValue:d,referenceDate:m,onChange:g,valueManager:a}),R=C.useRef(w);C.useEffect(()=>{R.current=w},[w]);const{hasValidationError:N}=Nf({props:c,validator:s,timezone:I,value:w,onError:c.onError}),j=C.useMemo(()=>zC(t),[t]),V=C.useMemo(()=>YC(t,j,I),[t,j,I]),$=C.useCallback(ae=>l.getSectionsFromValue(ae,oe=>ed({adapter:t,localeText:n,localizedDigits:j,format:p,date:oe,formatDensity:b,shouldRespectLeadingZeros:x,isRtl:o})),[l,p,n,j,o,x,t,b]),[v,O]=C.useState(()=>{const ae=$(w);Ku(ae,i);const oe={sections:ae,lastExternalValue:w,lastSectionsDependencies:{format:p,isRtl:o,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},he=VC(ae),ee=a.getInitialReferenceValue({referenceDate:m,value:w,adapter:t,props:c,granularity:he,timezone:I});return D({},oe,{referenceValue:ee})}),[P,k]=ur({controlled:f,default:null,name:"useField",state:"selectedSections"}),M=ae=>{k(ae),y==null||y(ae)},_=C.useMemo(()=>_a(P,v.sections),[P,v.sections]),A=_==="all"?0:_,B=C.useMemo(()=>KC(v.sections),[v.sections]),L=C.useMemo(()=>v.sections.every(ae=>ae.value===""),[v.sections]),F=C.useMemo(()=>{if(A!=null)return!1;const ae=v.sections.filter(oe=>oe.value!=="");return ae.length>0&&v.sections.length-ae.length>0},[v.sections,A]),W=C.useMemo(()=>S!==void 0?S:N||F,[N,F,S]),G=ae=>{const oe={validationError:s({adapter:t,value:ae,timezone:I,props:c})};E(ae,oe)},Q=(ae,oe)=>{const he=[...v.sections];return he[ae]=D({},he[ae],{value:oe,modified:!0}),he},K=C.useRef(null),Z=Us(),se=ae=>{A!=null&&(K.current={sectionIndex:A,value:ae},Z.start(0,()=>{K.current=null}))},Y=()=>{a.areValuesEqual(t,w,a.emptyValue)?O(ae=>D({},ae,{sections:ae.sections.map(oe=>D({},oe,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(O(ae=>D({},ae,{characterQuery:null})),G(a.emptyValue))},z=()=>{if(A==null)return;const ae=v.sections[A];ae.value!==""&&(se(""),l.getDateFromSection(w,ae)===null?O(oe=>D({},oe,{sections:Q(A,""),tempValueStrAndroid:null,characterQuery:null})):(O(oe=>D({},oe,{characterQuery:null})),G(l.updateDateInValue(w,ae,null))))},q=ae=>{const oe=(ee,le)=>{const re=t.parse(ee,p);if(!t.isValid(re))return null;const xe=ed({adapter:t,localeText:n,localizedDigits:j,format:p,date:re,formatDensity:b,shouldRespectLeadingZeros:x,isRtl:o});return Qu(t,re,xe,le,!1)},he=l.parseValueStr(ae,v.referenceValue,oe);G(he)},J=Us(),U=({section:ae,newSectionValue:oe,shouldGoToNextSection:he})=>{Z.clear(),J.clear();const ee=l.getDateFromSection(w,ae);he&&A<v.sections.length-1&&M(A+1);const le=Q(A,oe),re=l.getDateSectionsFromValue(le,ae),xe=HC(t,re,j);if(t.isValid(xe)){const we=Qu(t,xe,re,l.getDateFromSection(v.referenceValue,ae),!0);return ee==null&&J.start(0,()=>{R.current===w&&O(pe=>D({},pe,{sections:l.clearDateSections(v.sections,ae),tempValueStrAndroid:null}))}),G(l.updateDateInValue(w,ae,we))}return re.every(we=>we.value!=="")&&(ee==null||t.isValid(ee))?(se(oe),G(l.updateDateInValue(w,ae,xe))):(ee!=null&&(se(oe),G(l.updateDateInValue(w,ae,xe))),O(we=>D({},we,{sections:le,tempValueStrAndroid:null})))},ce=ae=>O(oe=>D({},oe,{tempValueStrAndroid:ae})),ne=be(ae=>{O(oe=>D({},oe,{characterQuery:ae}))});if(w!==v.lastExternalValue){const ae=K.current!=null&&!t.isValid(l.getDateFromSection(w,v.sections[K.current.sectionIndex]));let oe;ae?oe=Q(K.current.sectionIndex,K.current.value):oe=$(w),O(he=>D({},he,{lastExternalValue:w,sections:oe,sectionsDependencies:{format:p,isRtl:o,locale:t.locale},referenceValue:ae?he.referenceValue:l.updateReferenceValue(t,w,he.referenceValue),tempValueStrAndroid:null}))}if(o!==v.lastSectionsDependencies.isRtl||p!==v.lastSectionsDependencies.format||t.locale!==v.lastSectionsDependencies.locale){const ae=$(w);Ku(ae,i),O(oe=>D({},oe,{lastSectionsDependencies:{format:p,isRtl:o,locale:t.locale},sections:ae,tempValueStrAndroid:null,characterQuery:null}))}v.characterQuery!=null&&!W&&A==null&&ne(null),v.characterQuery!=null&&((fe=v.sections[v.characterQuery.sectionIndex])==null?void 0:fe.type)!==v.characterQuery.sectionType&&ne(null),C.useEffect(()=>{K.current!=null&&(K.current=null)});const de=Us();return C.useEffect(()=>(v.characterQuery!=null&&de.start(CI,()=>ne(null)),()=>{}),[v.characterQuery,ne,de]),C.useEffect(()=>{v.tempValueStrAndroid!=null&&A!=null&&z()},[v.sections]),{activeSectionIndex:A,areAllSectionsEmpty:L,error:W,localizedDigits:j,parsedSelectedSections:_,sectionOrder:B,sectionsValueBoundaries:V,state:v,timezone:I,value:w,clearValue:Y,clearActiveSection:z,setCharacterQuery:ne,setSelectedSections:M,setTempAndroidValueStr:ce,updateSectionValue:U,updateValueFromValueStr:q,getSectionsFromValue:$}};function SI(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:o}=e,s=Sl(),i=cw(),a=wt(n.fieldRef,o?null:i==null?void 0:i.internalFieldRef,o?null:i==null?void 0:i.fieldRef),l=s==null?void 0:s.setValue,c=C.useCallback((d,m)=>l==null?void 0:l(d,{validationError:m.validationError,shouldClose:!1}),[l]),u=C.useMemo(()=>i!=null&&s!=null?D({value:s.value,onChange:c,timezone:s.timezone,disabled:s.disabled,readOnly:s.readOnly,autoFocus:s.autoFocus&&!s.open,focused:s.open?!0:void 0,format:s.fieldFormat,formatDensity:i.formatDensity,selectedSections:i.selectedSections,onSelectedSectionsChange:i.onSelectedSectionsChange,fieldRef:a},n):n,[s,i,n,c,a]);return t(u)}function Bl(e){const{focused:t,domGetters:n,stateResponse:{parsedSelectedSections:o,state:s}}=e;if(!n.isReady())return;const i=Xo(n.getRoot()).getSelection();if(!i)return;if(o==null){i.rangeCount>0&&i.getRangeAt(0).startContainer instanceof Node&&n.getRoot().contains(i.getRangeAt(0).startContainer)&&i.removeAllRanges(),t&&n.getRoot().blur();return}if(!n.getRoot().contains(_n(n.getRoot())))return;const a=new window.Range;let l;o==="all"?l=n.getRoot():s.sections[o].type==="empty"?l=n.getSectionContainer(o):l=n.getSectionContent(o),a.selectNodeContents(l),l.focus(),i.removeAllRanges(),i.addRange(a)}function TI(e){const{manager:{internal_fieldValueManager:t},focused:n,setFocused:o,domGetters:s,stateResponse:i,applyCharacterEditing:a,internalPropsWithDefaults:l,stateResponse:{parsedSelectedSections:c,sectionsValueBoundaries:u,sectionOrder:d,state:m,value:g,activeSectionIndex:p,localizedDigits:b,timezone:f,clearValue:y,clearActiveSection:x,setCharacterQuery:T,setSelectedSections:S,updateValueFromValueStr:w,updateSectionValue:E},internalPropsWithDefaults:{disabled:I=!1,readOnly:R=!1,minutesStep:N}}=e,j=Me(),V=be(A=>{var B;if(!I)switch(!0){case((A.ctrlKey||A.metaKey)&&(((B=A.key)==null?void 0:B.toUpperCase())==="A"||String.fromCharCode(A.keyCode)==="A")&&!A.shiftKey&&!A.altKey):{A.preventDefault(),S("all");break}case A.key==="ArrowRight":{if(A.preventDefault(),c==null)S(d.startIndex);else if(c==="all")S(d.endIndex);else{const L=d.neighbors[c].rightIndex;L!==null&&S(L)}break}case A.key==="ArrowLeft":{if(A.preventDefault(),c==null)S(d.endIndex);else if(c==="all")S(d.startIndex);else{const L=d.neighbors[c].leftIndex;L!==null&&S(L)}break}case A.key==="Delete":{if(A.preventDefault(),R)break;c==null||c==="all"?y():x();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(A.key):{if(A.preventDefault(),R||p==null)break;c==="all"&&S(p);const L=m.sections[p],F=kI(j,f,L,A.key,u,b,t.getDateFromSection(g,L),{minutesStep:N});E({section:L,newSectionValue:F,shouldGoToNextSection:!1});break}}}),$=Us(),v=be(()=>{if(!(I||!s.isReady())){if(c==="all"){o(!0),$.start(0,()=>{const A=document.getSelection();if(!A||A.rangeCount===0){S(d.startIndex);return}const B=A.getRangeAt(0).startOffset;if(B===0){S(d.startIndex);return}let L=0,F=0;for(;F<B&&L<m.sections.length;){const W=m.sections[L];L+=1,F+=`${W.startSeparator}${W.value||W.placeholder}${W.endSeparator}`.length}S(L-1)});return}n||(o(!0),c==null&&S(d.startIndex))}}),O=be(A=>{if(I||!s.isReady()||c==="all"||A.button!==0)return;const B=A.target,L=s.getRoot();if(!L.contains(B))return;const F=B.closest("[data-sectionindex]"),W=F?Number(F.dataset.sectionindex):II(L,A.clientX);W==null||!Number.isInteger(W)||(A.preventDefault(),o(!0),S(W))}),P=be(A=>{if(!s.isReady()||c!=="all")return;const L=A.target.textContent??"";s.getRoot().innerHTML=m.sections.map(F=>`${F.startSeparator}${F.value||F.placeholder}${F.endSeparator}`).join(""),Bl({focused:n,domGetters:s,stateResponse:i}),L.length===0||L.charCodeAt(0)===10?(y(),S("all")):L.length>1?w(L):(c==="all"&&S(0),a({keyPressed:L,sectionIndex:0}))}),k=be(A=>{if(R||c!=="all"){A.preventDefault();return}const B=A.clipboardData.getData("text");A.preventDefault(),T(null),w(B)}),M=be(()=>{if(n||I||!s.isReady())return;const A=_n(s.getRoot());o(!0),s.getSectionIndexFromDOMElement(A)!=null||S(d.startIndex)}),_=be(()=>{setTimeout(()=>{if(!s.isReady())return;const A=_n(s.getRoot());!s.getRoot().contains(A)&&(o(!1),S(null))})});return{onKeyDown:V,onBlur:_,onFocus:M,onClick:v,onMouseDown:O,onPaste:k,onInput:P,contentEditable:c==="all",tabIndex:l.disabled||c===0?-1:0}}function II(e,t){const n=e.querySelectorAll('[role="spinbutton"]');if(n.length===0)return null;let o=0,s=1/0;for(let i=0;i<n.length;i+=1){const a=n[i].getBoundingClientRect(),l=(a.left+a.right)/2,c=Math.abs(t-l);c<s&&(s=c,o=i)}return o}function EI(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function kI(e,t,n,o,s,i,a,l){const c=EI(o),u=o==="Home",d=o==="End",m=n.value===""||u||d,g=()=>{const b=s[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),f=T=>kf(e,T,b,i,n),y=n.type==="minutes"&&(l!=null&&l.minutesStep)?l.minutesStep:1;let x;if(m){if(n.type==="year"&&!d&&!u)return e.formatByString(e.date(void 0,t),n.format);c>0||u?x=b.minimum:x=b.maximum}else x=parseInt(bn(n.value,i),10)+c*y;return x%y!==0&&((c<0||u)&&(x+=y-(y+x)%y),(c>0||d)&&(x-=x%y)),x>b.maximum?f(b.minimum+(x-b.maximum-1)%(b.maximum-b.minimum+1)):x<b.minimum?f(b.maximum-(b.minimum-x-1)%(b.maximum-b.minimum+1)):f(x)},p=()=>{const b=Ef(e,t,n.type,n.format);if(b.length===0)return n.value;if(m)return c>0||u?b[0]:b[b.length-1];const x=((b.indexOf(n.value)+c)%b.length+b.length)%b.length;return b[x]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?g():p()}function OI(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:n,state:o,updateValueFromValueStr:s}}=e,i=be(l=>{s(l.target.value)});return{value:C.useMemo(()=>n?"":t.getHiddenInputValueFromSections(o.sections),[n,o.sections,t]),onChange:i}}function _I(e){const{stateResponse:{parsedSelectedSections:t,setSelectedSections:n},internalPropsWithDefaults:{disabled:o=!1}}=e,s=be(i=>{if(o||i.isDefaultPrevented())return;const a=Number(i.currentTarget.dataset.sectionindex);Number.isInteger(a)&&t!==a&&n(a)});return C.useCallback(i=>({"data-sectionindex":i,onClick:s}),[s])}function PI(e){const t=Me(),n=Dt(),{focused:o,domGetters:s,stateResponse:i,applyCharacterEditing:a,manager:{internal_fieldValueManager:l},stateResponse:{parsedSelectedSections:c,sectionsValueBoundaries:u,state:d,value:m,localizedDigits:g,clearActiveSection:p,setCharacterQuery:b,setSelectedSections:f,updateSectionValue:y,updateValueFromValueStr:x},internalPropsWithDefaults:{disabled:T=!1,readOnly:S=!1}}=e,w=c==="all",E=!w&&!T&&!S,I=be(v=>{if(!s.isReady())return;const O=d.sections[v];s.getSectionContent(v).innerHTML=O.value||O.placeholder,Bl({focused:o,domGetters:s,stateResponse:i})}),R=be(v=>{if(!s.isReady())return;const O=v.target,P=O.textContent??"",k=s.getSectionIndexFromDOMElement(O),M=d.sections[k];if(S){I(k);return}if(P.length===0){if(M.value===""){I(k);return}const _=v.nativeEvent.inputType;if(_==="insertParagraph"||_==="insertLineBreak"){I(k);return}I(k),p();return}a({keyPressed:P,sectionIndex:k}),I(k)}),N=be(v=>{v.preventDefault()}),j=be(v=>{if(v.preventDefault(),S||T||typeof c!="number")return;const O=d.sections[c],P=v.clipboardData.getData("text"),k=/^[a-zA-Z]+$/.test(P),M=/^[0-9]+$/.test(P),_=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(P);O.contentType==="letter"&&k||O.contentType==="digit"&&M||O.contentType==="digit-with-letter"&&_?(b(null),y({section:O,newSectionValue:P,shouldGoToNextSection:!0})):!k&&!M&&(b(null),x(P))}),V=be(v=>{v.preventDefault(),v.dataTransfer.dropEffect="none"}),$=C.useCallback(v=>()=>{T||f(v)},[T,f]);return C.useCallback((v,O)=>{const P=u[v.type]({currentDate:l.getDateFromSection(m,v),contentType:v.contentType,format:v.format});return{onInput:R,onPaste:j,onMouseUp:N,onDragOver:V,onFocus:$(O),"aria-readonly":S,"aria-valuenow":DI(v,t,g),"aria-valuemin":P.minimum,"aria-valuemax":P.maximum,"aria-valuetext":v.value?MI(v,t,g):n.empty,"aria-label":n[v.type],"aria-disabled":T,tabIndex:!E||w||O>0?-1:0,contentEditable:!w&&!T&&!S,role:"spinbutton","data-range-position":v.dateName||void 0,spellCheck:E?!1:void 0,autoCapitalize:E?"none":void 0,autoCorrect:E?"off":void 0,children:v.value||v.placeholder,inputMode:v.contentType==="letter"?"text":"numeric"}},[u,w,T,S,E,n,t,g,R,j,N,V,$,l,m])}function MI(e,t,n){if(e.value)switch(e.type){case"month":{if(e.contentType==="digit"){const s=t.setMonth(t.date(),Number(bn(e.value,n))-1);return t.isValid(s)?t.format(s,"month"):""}const o=t.parse(e.value,e.format);return o&&t.isValid(o)?t.format(o,"month"):void 0}case"day":if(e.contentType==="digit"){const o=t.setDate(t.startOfYear(t.date()),Number(bn(e.value,n)));return t.isValid(o)?t.format(o,"dayOfMonth"):""}return e.value;case"weekDay":return;default:return}}function DI(e,t,n){if(!e.value)return;const o=bn(e.value,n);switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(o);case"meridiem":{const s=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return s?t.getHours(s)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(o,10):Number(o);case"month":{if(e.contentType==="digit")return Number(o);const s=t.parse(e.value,e.format);return s?t.getMonth(s)+1:void 0}default:return e.contentType!=="letter"?Number(o):void 0}}const Om=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:o,manager:{valueType:s,internal_useOpenPickerButtonAriaLabel:i}}=e,{internalProps:a,forwardedProps:l}=yw(t,s);process.env.NODE_ENV!=="production"&&l.enableAccessibleFieldDOMStructure!=null&&$n(["MUI X: The `enableAccessibleFieldDOMStructure` prop has been removed.","The accessible DOM structure is now the default and only option.","You can safely remove the prop from your code.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v8/)."]);const c=SI({manager:n,internalProps:a,skipContextFieldRefAssignment:o}),{sectionListRef:u,onBlur:d,onClick:m,onMouseDown:g,onFocus:p,onInput:b,onPaste:f,onKeyDown:y,onClear:x,clearable:T}=l,{disabled:S=!1,readOnly:w=!1,autoFocus:E=!1,focused:I,fieldRef:R}=c,N=C.useRef(null),j=wt(u,N),V=C.useMemo(()=>({isReady:()=>N.current!=null,getRoot:()=>N.current.getRoot(),getSectionContainer:oe=>N.current.getSectionContainer(oe),getSectionContent:oe=>N.current.getSectionContent(oe),getSectionIndexFromDOMElement:oe=>N.current.getSectionIndexFromDOMElement(oe)}),[N]),$=wI({manager:n,internalPropsWithDefaults:c,forwardedProps:l}),{areAllSectionsEmpty:v,error:O,parsedSelectedSections:P,sectionOrder:k,state:M,value:_,clearValue:A,setSelectedSections:B}=$,L=bI({stateResponse:$}),F=i(_),[W,G]=C.useState(!1);function Q(oe=0){if(S||!N.current||kd(N)!=null)return;const he=_a(oe,M.sections);G(!0),N.current.getSectionContent(he).focus()}const K=TI({manager:n,internalPropsWithDefaults:c,stateResponse:$,applyCharacterEditing:L,focused:W,setFocused:G,domGetters:V}),Z=OI({manager:n,stateResponse:$}),se=_I({stateResponse:$,internalPropsWithDefaults:c}),Y=PI({manager:n,stateResponse:$,applyCharacterEditing:L,internalPropsWithDefaults:c,domGetters:V,focused:W}),z=be(oe=>{y==null||y(oe),K.onKeyDown(oe)}),q=be(oe=>{K.onBlur(oe);const he=oe.relatedTarget;V.isReady()&&he instanceof Node&&V.getRoot().contains(he)||d==null||d(oe)}),J=be(oe=>{K.onFocus(oe);const he=oe.relatedTarget;V.isReady()&&he instanceof Node&&V.getRoot().contains(he)||p==null||p(oe)}),U=be(oe=>{oe.isDefaultPrevented()||(m==null||m(oe),K.onClick(oe))}),ce=be(oe=>{oe.isDefaultPrevented()||(g==null||g(oe),K.onMouseDown(oe))}),ne=be(oe=>{f==null||f(oe),K.onPaste(oe)}),de=be(oe=>{b==null||b(oe),K.onInput(oe)}),fe=be((oe,...he)=>{oe.preventDefault(),x==null||x(oe,...he),A(),Od(N)?B(k.startIndex):Q(0)}),ae=C.useMemo(()=>M.sections.map((oe,he)=>{const ee=Y(oe,he);return{container:se(he),content:ee,before:{children:oe.startSeparator},after:{children:oe.endSeparator,"data-range-position":oe.isEndFormatSeparator?ee["data-range-position"]:void 0}}}),[M.sections,se,Y]);return C.useEffect(()=>{if(N.current==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`\nYou probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.\n\nLearn 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":je(249));E&&!S&&N.current.getSectionContent(k.startIndex).focus()},[]),Kt(()=>{if(!(!W||!N.current)){if(P==="all")N.current.getRoot().focus();else if(typeof P=="number"){const oe=N.current.getSectionContent(P);oe&&oe.focus()}}},[P,W]),Kt(()=>{Bl({focused:W,domGetters:V,stateResponse:$})}),C.useImperativeHandle(R,()=>({getSections:()=>M.sections,getActiveSectionIndex:()=>kd(N),setSelectedSections:oe=>{if(S||!N.current)return;const he=_a(oe,M.sections);G((he==="all"?0:he)!==null),B(oe)},focusField:Q,isFieldFocused:()=>Od(N),clearValue:A})),D({},l,K,{onBlur:q,onClick:U,onMouseDown:ce,onFocus:J,onInput:de,onPaste:ne,onKeyDown:z,onClear:fe},Z,{error:O,clearable:!!(T&&!v&&!w&&!S),focused:I??W,sectionListRef:j,elements:ae,areAllSectionsEmpty:v,disabled:S,readOnly:w,autoFocus:E,openPickerAriaLabel:F})};function kd(e){var n;const t=_n((n=e.current)==null?void 0:n.getRoot());return!t||!e.current||!e.current.getRoot().contains(t)?null:e.current.getSectionIndexFromDOMElement(t)}function Od(e){var n;const t=_n((n=e.current)==null?void 0:n.getRoot());return!!e.current&&e.current.getRoot().contains(t)}function RI(e={}){const{ampm:t}=e;return C.useMemo(()=>({valueType:"time",validator:Di,internal_valueManager:xt,internal_fieldValueManager:_f,internal_useApplyDefaultValuesToFieldInternalProps:$I,internal_useOpenPickerButtonAriaLabel:NI(t)}),[t])}function NI(e){return function(n){const o=Me(),s=Dt();return C.useMemo(()=>{const i=e??o.is12HourCycleInCurrentLocale()?"fullTime12h":"fullTime24h",a=o.isValid(n)?o.format(n,i):null;return s.openTimePickerDialogue(a)},[n,s,o])}}function $I(e){const t=Me(),n=_m(e),o=C.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return C.useMemo(()=>D({},e,n,{format:e.format??(o?t.formats.fullTime12h:t.formats.fullTime24h)}),[e,n,o,t])}function _m(e){return C.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1}),[e.disablePast,e.disableFuture])}const jI=e=>{const t=Dw();return Om({manager:t,props:e})};function AI(e){return Re("MuiIconButton",e)}const _d=Pe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),LI=e=>{const{classes:t,disabled:n,color:o,edge:s,size:i,loading:a}=e,l={root:["root",a&&"loading",n&&"disabled",o!=="default"&&`color${me(o)}`,s&&`edge${me(s)}`,`size${me(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Ae(l,AI,t)},VI=te(Xn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${me(n.color)}`],n.edge&&t[`edge${me(n.edge)}`],t[`size${me(n.size)}`]]}})(ct(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).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}}]})),ct(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Ot()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Ot()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${_d.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${_d.loading}`]:{color:"transparent"}}))),FI=te("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Qn=C.forwardRef(function(t,n){const o=Je({props:t,name:"MuiIconButton"}),{edge:s=!1,children:i,className:a,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:m,loading:g=null,loadingIndicator:p,...b}=o,f=il(m),y=p??h.jsx(Li,{"aria-labelledby":f,color:"inherit",size:16}),x={...o,edge:s,color:l,disabled:c,disableFocusRipple:u,loading:g,loadingIndicator:y,size:d},T=LI(x);return h.jsxs(VI,{id:g?f:m,className:ue(T.root,a),centerRipple:!0,focusRipple:!u,disabled:c||g,ref:n,...b,ownerState:x,children:[typeof g=="boolean"&&h.jsx("span",{className:T.loadingWrapper,style:{display:"contents"},children:h.jsx(FI,{className:T.loadingIndicator,ownerState:x,children:g&&y})}),i]})});process.env.NODE_ENV!=="production"&&(Qn.propTypes={children:to(r.node,e=>C.Children.toArray(e.children).some(n=>C.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(`
193
+ `)):null),classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),r.string]),disabled:r.bool,disableFocusRipple:r.bool,disableRipple:r.bool,edge:r.oneOf(["end","start",!1]),id:r.string,loading:r.bool,loadingIndicator:r.node,size:r.oneOfType([r.oneOf(["small","medium","large"]),r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const zi=C.createContext(void 0);process.env.NODE_ENV!=="production"&&(zi.displayName="FormControlContext");function Oo(){return C.useContext(zi)}function BI(e){return Re("MuiInputAdornment",e)}const Pd=Pe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Md;const zI=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${me(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},WI=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:o,position:s,size:i,variant:a}=e,l={root:["root",n&&"disablePointerEvents",s&&`position${me(s)}`,a,o&&"hiddenLabel",i&&`size${me(i)}`]};return Ae(l,BI,t)},UI=te("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:zI})(ct(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Pd.positionStart}&:not(.${Pd.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Pm=C.forwardRef(function(t,n){const o=Je({props:t,name:"MuiInputAdornment"}),{children:s,className:i,component:a="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:u,variant:d,...m}=o,g=Oo()||{};let p=d;d&&g.variant&&process.env.NODE_ENV!=="production"&&d===g.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),g&&!p&&(p=g.variant);const b={...o,hiddenLabel:g.hiddenLabel,size:g.size,disablePointerEvents:l,position:u,variant:p},f=WI(b);return h.jsx(zi.Provider,{value:null,children:h.jsx(UI,{as:a,ownerState:b,className:ue(f.root,i),ref:n,...m,children:typeof s=="string"&&!c?h.jsx(Jt,{color:"textSecondary",children:s}):h.jsxs(C.Fragment,{children:[u==="start"?Md||(Md=h.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,s]})})})});process.env.NODE_ENV!=="production"&&(Pm.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,disablePointerEvents:r.bool,disableTypography:r.bool,position:r.oneOf(["end","start"]).isRequired,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOf(["filled","outlined","standard"])});function zl(e){const{ownerState:t}=at(),n=cn();return C.useMemo(()=>D({},t,{isFieldDisabled:e.disabled??!1,isFieldReadOnly:e.readOnly??!1,isFieldRequired:e.required??!1,fieldDirection:n?"rtl":"ltr"}),[t,e.disabled,e.readOnly,e.required,n])}const HI=bt(h.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),qI=bt(h.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),YI=bt(h.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),GI=bt(h.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"),KI=bt(h.jsxs(C.Fragment,{children:[h.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"}),h.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");bt(h.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");bt(h.jsxs(C.Fragment,{children:[h.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"}),h.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const XI=bt(h.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");function Wl({props:e,states:t,muiFormControl:n}){return t.reduce((o,s)=>(o[s]=e[s],n&&typeof e[s]>"u"&&(o[s]=n[s]),o),{})}function QI(e){return Re("MuiFormLabel",e)}const Nr=Pe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),ZI=e=>{const{classes:t,color:n,focused:o,disabled:s,error:i,filled:a,required:l}=e,c={root:["root",`color${me(n)}`,s&&"disabled",i&&"error",a&&"filled",o&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return Ae(c,QI,t)},JI=te("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(ct(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Ot()).map(([t])=>({props:{color:t},style:{[`&.${Nr.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Nr.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Nr.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),eE=te("span",{name:"MuiFormLabel",slot:"Asterisk"})(ct(({theme:e})=>({[`&.${Nr.error}`]:{color:(e.vars||e).palette.error.main}}))),Mm=C.forwardRef(function(t,n){const o=Je({props:t,name:"MuiFormLabel"}),{children:s,className:i,color:a,component:l="label",disabled:c,error:u,filled:d,focused:m,required:g,...p}=o,b=Oo(),f=Wl({props:o,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),y={...o,color:f.color||"primary",component:l,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},x=ZI(y);return h.jsxs(JI,{as:l,ownerState:y,className:ue(x.root,i),ref:n,...p,children:[s,f.required&&h.jsxs(eE,{ownerState:y,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Mm.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["error","info","primary","secondary","success","warning"]),r.string]),component:r.elementType,disabled:r.bool,error:r.bool,filled:r.bool,focused:r.bool,required:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function tE(e){return Re("MuiInputLabel",e)}Pe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const nE=e=>{const{classes:t,formControl:n,size:o,shrink:s,disableAnimation:i,variant:a,required:l}=e,c={root:["root",n&&"formControl",!i&&"animated",s&&"shrink",o&&o!=="medium"&&`size${me(o)}`,a],asterisk:[l&&"asterisk"]},u=Ae(c,tE,t);return{...t,...u}},oE=te(Mm,{shouldForwardProp:e=>pr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Nr.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(ct(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.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:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.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:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.shrink&&o==="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:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Dm=C.forwardRef(function(t,n){const o=Je({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:i,shrink:a,variant:l,className:c,...u}=o,d=Oo();let m=a;typeof m>"u"&&d&&(m=d.filled||d.focused||d.adornedStart);const g=Wl({props:o,muiFormControl:d,states:["size","variant","required","focused"]}),p={...o,disableAnimation:s,formControl:d,shrink:m,size:g.size,variant:g.variant,required:g.required,focused:g.focused},b=nE(p);return h.jsx(oE,{"data-shrink":m,ref:n,className:ue(b.root,c),...u,ownerState:p,classes:b})});process.env.NODE_ENV!=="production"&&(Dm.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["error","info","primary","secondary","success","warning"]),r.string]),disableAnimation:r.bool,disabled:r.bool,error:r.bool,focused:r.bool,margin:r.oneOf(["dense"]),required:r.bool,shrink:r.bool,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOf(["filled","outlined","standard"])});function rE(e){return Re("MuiFormHelperText",e)}const Dd=Pe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Rd;const sE=e=>{const{classes:t,contained:n,size:o,disabled:s,error:i,filled:a,focused:l,required:c}=e,u={root:["root",s&&"disabled",i&&"error",o&&`size${me(o)}`,n&&"contained",l&&"focused",a&&"filled",c&&"required"]};return Ae(u,rE,t)},iE=te("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${me(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(ct(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Dd.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Dd.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Rm=C.forwardRef(function(t,n){const o=Je({props:t,name:"MuiFormHelperText"}),{children:s,className:i,component:a="p",disabled:l,error:c,filled:u,focused:d,margin:m,required:g,variant:p,...b}=o,f=Oo(),y=Wl({props:o,muiFormControl:f,states:["variant","size","disabled","error","filled","focused","required"]}),x={...o,component:a,contained:y.variant==="filled"||y.variant==="outlined",variant:y.variant,size:y.size,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required};delete x.ownerState;const T=sE(x);return h.jsx(iE,{as:a,className:ue(T.root,i),ref:n,...b,ownerState:x,children:s===" "?Rd||(Rd=h.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});process.env.NODE_ENV!=="production"&&(Rm.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,disabled:r.bool,error:r.bool,filled:r.bool,focused:r.bool,margin:r.oneOf(["dense"]),required:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["filled","outlined","standard"]),r.string])});function Nd(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function $d(e,t=!1){return e&&(Nd(e.value)&&e.value!==""||t&&Nd(e.defaultValue)&&e.defaultValue!=="")}function aE(e){return e.startAdornment}function lE(e){return Re("MuiFormControl",e)}Pe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const cE=e=>{const{classes:t,margin:n,fullWidth:o}=e,s={root:["root",n!=="none"&&`margin${me(n)}`,o&&"fullWidth"]};return Ae(s,lE,t)},uE=te("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${me(n.margin)}`],n.fullWidth&&t.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%"}}]}),Nm=C.forwardRef(function(t,n){const o=Je({props:t,name:"MuiFormControl"}),{children:s,className:i,color:a="primary",component:l="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:m=!1,hiddenLabel:g=!1,margin:p="none",required:b=!1,size:f="medium",variant:y="outlined",...x}=o,T={...o,color:a,component:l,disabled:c,error:u,fullWidth:m,hiddenLabel:g,margin:p,required:b,size:f,variant:y},S=cE(T),[w,E]=C.useState(()=>{let M=!1;return s&&C.Children.forEach(s,_=>{if(!Ko(_,["Input","Select"]))return;const A=Ko(_,["Select"])?_.props.input:_;A&&aE(A.props)&&(M=!0)}),M}),[I,R]=C.useState(()=>{let M=!1;return s&&C.Children.forEach(s,_=>{Ko(_,["Input","Select"])&&($d(_.props,!0)||$d(_.props.inputProps,!0))&&(M=!0)}),M}),[N,j]=C.useState(!1);c&&N&&j(!1);const V=d!==void 0&&!c?d:N;let $;const v=C.useRef(!1);process.env.NODE_ENV!=="production"&&($=()=>(v.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
194
+ `)),v.current=!0,()=>{v.current=!1}));const O=C.useCallback(()=>{R(!0)},[]),P=C.useCallback(()=>{R(!1)},[]),k=C.useMemo(()=>({adornedStart:w,setAdornedStart:E,color:a,disabled:c,error:u,filled:I,focused:V,fullWidth:m,hiddenLabel:g,size:f,onBlur:()=>{j(!1)},onFocus:()=>{j(!0)},onEmpty:P,onFilled:O,registerEffect:$,required:b,variant:y}),[w,a,c,u,I,V,m,g,$,P,O,b,f,y]);return h.jsx(zi.Provider,{value:k,children:h.jsx(uE,{as:l,ownerState:T,className:ue(S.root,i),ref:n,...x,children:s})})});process.env.NODE_ENV!=="production"&&(Nm.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["primary","secondary","error","info","success","warning"]),r.string]),component:r.elementType,disabled:r.bool,error:r.bool,focused:r.bool,fullWidth:r.bool,hiddenLabel:r.bool,margin:r.oneOf(["dense","none","normal"]),required:r.bool,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOf(["filled","outlined","standard"])});function dE(e){return Ye("MuiPickersTextField",e)}Ze("MuiPickersTextField",["root","focused","disabled","error","required"]);function pE(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}function fE(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":pE(7));return e.charAt(0).toUpperCase()+e.slice(1)}const mE={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function hE(e){return Ye("MuiPickersInputBase",e)}const Hn=Ze("MuiPickersInputBase",["root","focused","disabled","readOnly","error","notchedOutline","sectionsContainer","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input","inputSizeSmall","activeBar"]);function gE(e){return Ye("MuiPickersSectionList",e)}const Uo=Ze("MuiPickersSectionList",["root","section","sectionContent"]),bE=["slots","slotProps","elements","sectionListRef","classes"],$m=te("div",{name:"MuiPickersSectionList",slot:"Root"})({direction:"ltr /*! @noflip */",outline:"none"}),jm=te("span",{name:"MuiPickersSectionList",slot:"Section"})({}),Am=te("span",{name:"MuiPickersSectionList",slot:"SectionSeparator"})({whiteSpace:"pre"}),Lm=te("span",{name:"MuiPickersSectionList",slot:"SectionContent"})({outline:"none"}),yE=e=>Ve({root:["root"],section:["section"],sectionContent:["sectionContent"]},gE,e);function Vm(e){const{slots:t,slotProps:n,element:o,classes:s}=e,{ownerState:i}=at(),a=(t==null?void 0:t.section)??jm,l=Le({elementType:a,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:o.container,className:s.section,ownerState:i}),c=(t==null?void 0:t.sectionContent)??Lm,u=Le({elementType:c,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:o.content,additionalProps:{suppressContentEditableWarning:!0},className:s.sectionContent,ownerState:i}),d=(t==null?void 0:t.sectionSeparator)??Am,m=Le({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.before,ownerState:D({},i,{separatorPosition:"before"})}),g=Le({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.after,ownerState:D({},i,{separatorPosition:"after"})}),p=C.useRef(null),b=wt(u.ref,p),f=y=>{const x=y.relatedTarget,T=y.currentTarget.closest(`.${Uo.root}`);if(T&&x instanceof Node&&T.contains(x)){y.stopPropagation();return}};return h.jsxs(a,D({},l,{children:[h.jsx(d,D({},m)),h.jsx(c,D({},u,{ref:b,onBlur:f})),h.jsx(d,D({},g))]}))}process.env.NODE_ENV!=="production"&&(Vm.propTypes={classes:r.object.isRequired,element:r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired}).isRequired,slotProps:r.object,slots:r.object});const Ul=C.forwardRef(function(t,n){const o=ke({props:t,name:"MuiPickersSectionList"}),{slots:s,slotProps:i,elements:a,sectionListRef:l,classes:c}=o,u=Ce(o,bE),d=yE(c),{ownerState:m}=at(),g=C.useRef(null),p=wt(n,g),b=x=>{if(!g.current)throw new Error(process.env.NODE_ENV!=="production"?`MUI X: Cannot call sectionListRef.${x} before the mount of the component.`:je(145,x));return g.current};C.useImperativeHandle(l,()=>({getRoot(){return b("getRoot")},getSectionContainer(x){return b("getSectionContainer").querySelector(`.${Uo.section}[data-sectionindex="${x}"]`)},getSectionContent(x){return b("getSectionContent").querySelector(`.${Uo.section}[data-sectionindex="${x}"] .${Uo.sectionContent}`)},getSectionIndexFromDOMElement(x){const T=b("getSectionIndexFromDOMElement");if(x==null||!T.contains(x))return null;let S=null;return x.classList.contains(Uo.section)?S=x:x.classList.contains(Uo.sectionContent)&&(S=x.parentElement),S==null?null:Number(S.dataset.sectionindex)}}));const f=(s==null?void 0:s.root)??$m,y=Le({elementType:f,externalSlotProps:i==null?void 0:i.root,externalForwardedProps:u,additionalProps:{ref:p,suppressContentEditableWarning:!0},className:d.root,ownerState:m});return h.jsx(f,D({},y,{children:y.contentEditable?a.map(({content:x,before:T,after:S})=>`${T.children}${x.children}${S.children}`).join(""):h.jsx(C.Fragment,{children:a.map((x,T)=>h.jsx(Vm,{slots:s,slotProps:i,element:x,classes:d},T))})}))});process.env.NODE_ENV!=="production"&&(Ul.displayName="PickersSectionList");process.env.NODE_ENV!=="production"&&(Ul.propTypes={classes:r.object,contentEditable:r.bool.isRequired,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object});const Hl=C.createContext(null);process.env.NODE_ENV!=="production"&&(Hl.displayName="PickerTextFieldOwnerStateContext");const Wi=()=>{const e=C.useContext(Hl);if(e==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: The `usePickerTextFieldOwnerState` can only be called in components that are used inside a PickerTextField component":je(146));return e},vE=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputRef","sectionListRef","onFocus","onBlur","classes","ownerState"],xE=["ref"];function CE(e,t){return n=>{const o=Gn(e,n)??{};return D({},o,{className:ue(t,o.className)})}}const wE=e=>Math.round(e*1e5)/1e5,Ui=te("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>D({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${wE(.15/16)}em`,[`&.${Hn.disabled}`]:{color:(e.vars||e).palette.action.disabled,cursor:"default"},variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),ql=te($m,{name:"MuiPickersInputBase",slot:"SectionsContainer"})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{fieldDirection:"rtl"},style:{justifyContent:"end"}},{props:{inputSize:"small"},style:{paddingTop:1}},{props:{isFieldFocused:!1,isFieldValueEmpty:!0},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}},{props:{isFieldFocused:!1,isFieldValueEmpty:!0,hasStartAdornment:!1,inputHasLabel:!0,isLabelShrunk:!1},style:{opacity:0}}]})),SE=te(jm,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),TE=te(Lm,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none","@supports (-webkit-app-region: drag)":{[`.${Hn.root}:not(:focus-within) &`]:{WebkitUserModify:"read-only",userSelect:"none"}}})),IE=te(Am,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),EE=te("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(D({},mE)),kE=te("div",{name:"MuiPickersInputBase",slot:"ActiveBar"})(({theme:e,ownerState:t})=>({display:"none",position:"absolute",height:2,bottom:2,borderTopLeftRadius:2,borderTopRightRadius:2,transition:e.transitions.create(["width","left"],{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.primary.main,'[data-active-range-position="start"] &, [data-active-range-position="end"] &':{display:"block"},'[data-active-range-position="start"] &':{left:t.sectionOffsets[0]},'[data-active-range-position="end"] &':{left:t.sectionOffsets[1]}})),OE=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldReadOnly:s,hasFieldError:i,inputSize:a,isInputInFullWidth:l,inputColor:c,hasStartAdornment:u,hasEndAdornment:d}=t,m={root:["root",n&&!o&&"focused",o&&"disabled",s&&"readOnly",i&&"error",l&&"fullWidth",`color${fE(c)}`,a==="small"&&"inputSizeSmall",u&&"adornedStart",d&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"],activeBar:["activeBar"]};return Ve(m,hE,e)};function jd(e,t,n,o){var s;if(e.content["data-range-position"]!==void 0){const i=(s=t.current)==null?void 0:s.querySelectorAll(`[data-sectionindex="${n}"] [data-range-position="${o}"]`);if(i)return Array.from(i).reduce((a,l)=>a+l.offsetWidth,0)}return 0}function _E(e,t){var s,i,a,l,c;let n=0;if(((s=t.current)==null?void 0:s.getAttribute("data-active-range-position"))==="end")for(let u=e.length-1;u>=e.length/2;u-=1)n+=jd(e[u],t,u,"end");else for(let u=0;u<e.length/2;u+=1)n+=jd(e[u],t,u,"start");return{activeBarWidth:n,sectionOffsets:[((a=(i=t.current)==null?void 0:i.querySelector('[data-sectionindex="0"]'))==null?void 0:a.offsetLeft)||0,((c=(l=t.current)==null?void 0:l.querySelector(`[data-sectionindex="${e.length/2}"]`))==null?void 0:c.offsetLeft)||0]}}const bs=C.forwardRef(function(t,n){const o=ke({props:t,name:"MuiPickersInputBase"}),{elements:s,areAllSectionsEmpty:i,value:a,onChange:l,id:c,endAdornment:u,startAdornment:d,renderSuffix:m,slots:g,slotProps:p,contentEditable:b,tabIndex:f,onInput:y,onPaste:x,onKeyDown:T,name:S,readOnly:w,inputRef:E,sectionListRef:I,onFocus:R,onBlur:N,classes:j,ownerState:V}=o,$=Ce(o,vE),v=Wi(),O=C.useRef(null),P=C.useRef(null),k=C.useRef([]),M=wt(n,O),_=Oo();if(!_)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: PickersInputBase should always be used inside a PickersTextField component":je(152));const A=V??v,B=ce=>{var ne;(ne=_.onFocus)==null||ne.call(_,ce),R==null||R(ce)},L=ce=>{B(ce)},F=ce=>{var ne,de;if(T==null||T(ce),ce.key==="Enter"&&!ce.defaultMuiPrevented){if((ne=O.current)!=null&&ne.dataset.multiInput)return;const fe=(de=O.current)==null?void 0:de.closest("form"),ae=fe==null?void 0:fe.querySelector('[type="submit"]');if(!fe||!ae)return;ce.preventDefault(),fe.requestSubmit(ae)}},W=ce=>{var ne;(ne=_.onBlur)==null||ne.call(_,ce),N==null||N(ce)};C.useEffect(()=>{_&&_.setAdornedStart(!!d)},[_,d]),C.useEffect(()=>{_&&(i?_.onEmpty():_.onFilled())},[_,i]);const G=OE(j,A),Q=(g==null?void 0:g.root)||Ui,K=Le({elementType:Q,externalSlotProps:p==null?void 0:p.root,externalForwardedProps:$,additionalProps:{"aria-invalid":_.error,ref:M},className:G.root,ownerState:A}),Z=(g==null?void 0:g.input)||ql,se=(g==null?void 0:g.htmlInput)||EE,Y=Le({elementType:se,externalSlotProps:p==null?void 0:p.htmlInput,ownerState:A}),{ref:z}=Y,q=Ce(Y,xE),J=wt(z,E),U=s.some(ce=>ce.content["data-range-position"]!==void 0);return C.useEffect(()=>{if(!U||!A.isPickerOpen)return;const{activeBarWidth:ce,sectionOffsets:ne}=_E(s,O);k.current=[ne[0],ne[1]],P.current&&(P.current.style.width=`${ce}px`)},[s,U,A.isPickerOpen]),h.jsxs(Q,D({},K,{children:[d,h.jsx(Ul,{sectionListRef:I,elements:s,contentEditable:b,tabIndex:f,className:G.sectionsContainer,onFocus:B,onBlur:W,onInput:y,onPaste:x,onKeyDown:F,slots:{root:Z,section:SE,sectionContent:TE,sectionSeparator:IE},slotProps:{root:D({},p==null?void 0:p.input,{ownerState:A}),sectionContent:CE(p==null?void 0:p.sectionContent,Hn.sectionContent),sectionSeparator:({separatorPosition:ce})=>({className:ce==="before"?Hn.sectionBefore:Hn.sectionAfter})}}),u,m?m(D({},_)):null,h.jsx(se,D({name:S,className:G.input,value:a,onChange:l,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:w,required:_.required,disabled:_.disabled,onFocus:L},q,{ref:J})),U&&h.jsx(kE,{className:G.activeBar,ref:P,ownerState:{sectionOffsets:k.current}})]}))});process.env.NODE_ENV!=="production"&&(bs.displayName="PickersInputBase");process.env.NODE_ENV!=="production"&&(bs.propTypes={areAllSectionsEmpty:r.bool.isRequired,classes:r.object,className:r.string,contentEditable:r.bool.isRequired,"data-multi-input":r.string,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,id:r.string,inputRef:Ft,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onMouseDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired});function PE(e){return Ye("MuiPickersOutlinedInput",e)}const rn=D({},Hn,Ze("MuiPickersOutlinedInput",["root","notchedOutline","input"])),ME=["children","className","label","notched","shrink"],DE=te("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline"})(({theme:e})=>{const t=e.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:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}}),Ad=te("span",{slot:"internal",shouldForwardProp:void 0})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),RE=te("legend",{slot:"internal",shouldForwardProp:e=>At(e)&&e!=="notched"})(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{inputHasLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{inputHasLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{inputHasLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function NE(e){const{className:t,label:n,notched:o}=e,s=Ce(e,ME),i=Wi();return h.jsx(DE,D({"aria-hidden":!0,className:t},s,{ownerState:i,children:h.jsx(RE,{ownerState:i,notched:o,children:n?h.jsx(Ad,{children:n}):h.jsx(Ad,{className:"notranslate",children:"​"})})}))}const $E=["label","autoFocus","ownerState","classes","notched","slots","slotProps"],jE=te(Ui,{name:"MuiPickersOutlinedInput",slot:"Root"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${rn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${rn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${rn.focused} .${rn.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${rn.error} .${rn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${rn.disabled}`]:{[`& .${rn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},variants:Object.keys((e.vars??e).palette).filter(n=>{var o;return((o=(e.vars??e).palette[n])==null?void 0:o.main)??!1}).map(n=>({props:{inputColor:n},style:{[`&.${rn.focused}:not(.${rn.error}) .${rn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),AE=te(ql,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),LE=e=>{const n=Ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},PE,e);return D({},e,n)},Hi=C.forwardRef(function(t,n){const o=ke({props:t,name:"MuiPickersOutlinedInput"}),{label:s,classes:i,notched:a,slots:l,slotProps:c}=o,u=Ce(o,$E),d=Oo(),m=LE(i);return h.jsx(bs,D({},u,{slots:D({root:jE,input:AE},l),slotProps:c,renderSuffix:g=>{const p=typeof a<"u"?a:!!(g.adornedStart||g.focused||g.filled);return h.jsx(NE,{shrink:p,notched:p,className:m.notchedOutline,label:s!=null&&s!==""&&(d!=null&&d.required)?h.jsxs(C.Fragment,{children:[s," ","*"]}):s})},label:s,classes:m,ref:n}))});process.env.NODE_ENV!=="production"&&(Hi.displayName="PickersOutlinedInput");process.env.NODE_ENV!=="production"&&(Hi.propTypes={areAllSectionsEmpty:r.bool.isRequired,classes:r.object,className:r.string,contentEditable:r.bool.isRequired,"data-multi-input":r.string,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,id:r.string,inputRef:Ft,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,notched:r.bool,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onMouseDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired});Hi.muiName="Input";function VE(e){return Ye("MuiPickersFilledInput",e)}const uo=D({},Hn,Ze("MuiPickersFilledInput",["root","underline","input"])),FE=["label","autoFocus","disableUnderline","hiddenLabel","classes","slots","slotProps"],BE=te(Ui,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>At(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${uo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${uo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>{var l;return{props:{inputColor:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(l=(e.vars||e).palette[a])==null?void 0:l.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${uo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${uo.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${uo.disabled}, .${uo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${uo.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),zE=te(ql,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>At(e)&&e!=="hiddenLabel"})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{inputSize:"small"},style:{paddingTop:21,paddingBottom:4}},{props:{hasStartAdornment:!0},style:{paddingLeft:0}},{props:{hasEndAdornment:!0},style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,inputSize:"small"},style:{paddingTop:8,paddingBottom:9}}]}),WE=(e,t)=>{const{inputHasUnderline:n}=t,s=Ve({root:["root",n&&"underline"],input:["input"]},VE,e);return D({},e,s)},qi=C.forwardRef(function(t,n){const o=ke({props:t,name:"MuiPickersFilledInput"}),{label:s,disableUnderline:i=!1,hiddenLabel:a=!1,classes:l,slots:c,slotProps:u}=o,d=Ce(o,FE),m=Wi(),g=D({},m,{inputHasUnderline:!i}),p=WE(l,g);return h.jsx(bs,D({},d,{slots:D({root:BE,input:zE},c),slotProps:D({},u,{root:D({disableUnderline:i},u==null?void 0:u.root),input:D({hiddenLabel:a},u==null?void 0:u.input)}),label:s,classes:p,ref:n,ownerState:g}))});process.env.NODE_ENV!=="production"&&(qi.displayName="PickersFilledInput");process.env.NODE_ENV!=="production"&&(qi.propTypes={areAllSectionsEmpty:r.bool.isRequired,classes:r.object,className:r.string,contentEditable:r.bool.isRequired,"data-multi-input":r.string,disableUnderline:r.bool,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,hiddenLabel:r.bool,id:r.string,inputRef:Ft,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onMouseDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired});qi.muiName="Input";function UE(e){return Ye("MuiPickersFilledInput",e)}const xr=D({},Hn,Ze("MuiPickersInput",["root","underline","input"])),HE=["label","autoFocus","disableUnderline","ownerState","classes","slots","slotProps"],qE=te(Ui,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>At(e)&&e!=="disableUnderline"})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(o=>(e.vars??e).palette[o].main).map(o=>({props:{inputColor:o,inputHasUnderline:!0},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}})),{props:{inputHasUnderline:!0},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xr.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xr.disabled}, .${xr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${xr.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),YE=(e,t)=>{const{inputHasUnderline:n}=t,s=Ve({root:["root",!n&&"underline"],input:["input"]},UE,e);return D({},e,s)},Yi=C.forwardRef(function(t,n){const o=ke({props:t,name:"MuiPickersInput"}),{label:s,disableUnderline:i=!1,classes:a,slots:l,slotProps:c}=o,u=Ce(o,HE),d=Wi(),m=D({},d,{inputHasUnderline:!i}),g=YE(a,m);return h.jsx(bs,D({},u,{slots:D({root:qE},l),slotProps:D({},c,{root:D({disableUnderline:i},c==null?void 0:c.root)}),ownerState:m,label:s,classes:g,ref:n}))});process.env.NODE_ENV!=="production"&&(Yi.displayName="PickersInput");process.env.NODE_ENV!=="production"&&(Yi.propTypes={areAllSectionsEmpty:r.bool.isRequired,classes:r.object,className:r.string,contentEditable:r.bool.isRequired,"data-multi-input":r.string,disableUnderline:r.bool,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,id:r.string,inputRef:Ft,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onMouseDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired});Yi.muiName="Input";const GE=["onFocus","onBlur","className","classes","color","disabled","error","variant","required","hiddenLabel","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onMouseDown","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","label","slots","slotProps","data-active-range-position"],KE={standard:Yi,filled:qi,outlined:Hi},XE=te(Nm,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),QE=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldRequired:s}=t;return Ve({root:["root",n&&!o&&"focused",o&&"disabled",s&&"required"]},dE,e)},Gi=C.forwardRef(function(t,n){const o=ke({props:t,name:"MuiPickersTextField"});if(process.env.NODE_ENV!=="production"){const ee=t;(ee.InputProps||ee.inputProps||ee.InputLabelProps||ee.FormHelperTextProps)&&$n(["MUI X: `PickersTextField` no longer supports the `InputProps`, `inputProps`, `InputLabelProps` and `FormHelperTextProps` props.","They are silently dropped, which can hide configuration bugs in JavaScript codebases that do not benefit from TypeScript checks.","Use `slotProps.input`, `slotProps.htmlInput`, `slotProps.inputLabel` and `slotProps.formHelperText` instead.","You can run the `migrate-text-field-props` codemod to migrate automatically."])}const{onFocus:s,onBlur:i,className:a,classes:l,color:c="primary",disabled:u=!1,error:d=!1,variant:m="outlined",required:g=!1,hiddenLabel:p=!1,inputRef:b,sectionListRef:f,elements:y,areAllSectionsEmpty:x,onClick:T,onMouseDown:S,onKeyDown:w,onKeyUp:E,onPaste:I,onInput:R,endAdornment:N,startAdornment:j,tabIndex:V,contentEditable:$,focused:v,value:O,onChange:P,fullWidth:k,id:M,name:_,helperText:A,label:B,slots:L,slotProps:F,"data-active-range-position":W}=o,G=Ce(o,GE),Q=C.useRef(null),K=wt(n,Q),Z=Ai(M),se=A&&Z?`${Z}-helper-text`:void 0,Y=B&&Z?`${Z}-label`:void 0,z=F==null?void 0:F.input,q=F==null?void 0:F.inputLabel,J=zl({disabled:o.disabled,required:o.required,readOnly:z==null?void 0:z.readOnly}),U=C.useMemo(()=>D({},J,{isFieldValueEmpty:x,isFieldFocused:v??!1,hasFieldError:d??!1,inputSize:o.size??"medium",inputColor:c??"primary",isInputInFullWidth:k??!1,hasStartAdornment:!!(j??(z==null?void 0:z.startAdornment)),hasEndAdornment:!!(N??(z==null?void 0:z.endAdornment)),inputHasLabel:!!B,isLabelShrunk:!!(q!=null&&q.shrink)}),[J,x,v,d,o.size,c,k,j,N,z==null?void 0:z.startAdornment,z==null?void 0:z.endAdornment,B,q==null?void 0:q.shrink]),ce=QE(l,U),ne=(L==null?void 0:L.input)??KE[m],de=(L==null?void 0:L.root)??XE,fe=(L==null?void 0:L.inputLabel)??Dm,ae=(L==null?void 0:L.formHelperText)??Rm,oe={};m==="outlined"?(q&&typeof q.shrink<"u"&&(oe.notched=q.shrink),oe.label=B):m==="filled"&&(oe.hiddenLabel=p);const he=Le({elementType:de,externalSlotProps:F==null?void 0:F.root,externalForwardedProps:D({},G,{className:a}),additionalProps:{ref:K,focused:v,disabled:u,variant:m,error:d,color:c,fullWidth:k,required:g},className:ce.root,ownerState:U});return h.jsx(Hl.Provider,{value:U,children:h.jsxs(de,D({},he,{children:[B!=null&&B!==""&&h.jsx(fe,D({htmlFor:Z,id:Y},q,{children:B})),h.jsx(ne,D({elements:y,areAllSectionsEmpty:x,onClick:T,onMouseDown:S,onKeyDown:w,onKeyUp:E,onInput:R,onPaste:I,onFocus:s,onBlur:i,endAdornment:N,startAdornment:j,tabIndex:V,contentEditable:$,value:O,onChange:P,id:Z,fullWidth:k,inputRef:b,sectionListRef:f,label:B,name:_,role:"group","aria-labelledby":Y,"aria-describedby":se,"aria-live":se?"polite":void 0,"data-active-range-position":W},oe,z,{slots:D({},z==null?void 0:z.slots,(L==null?void 0:L.htmlInput)!==void 0&&{htmlInput:L.htmlInput}),slotProps:D({},z==null?void 0:z.slotProps,(F==null?void 0:F.htmlInput)!==void 0&&{htmlInput:F.htmlInput})})),A&&h.jsx(ae,D({id:se},F==null?void 0:F.formHelperText,{children:A}))]}))})});process.env.NODE_ENV!=="production"&&(Gi.displayName="PickersTextField");process.env.NODE_ENV!=="production"&&(Gi.propTypes={areAllSectionsEmpty:r.bool.isRequired,className:r.string,color:r.oneOf(["error","info","primary","secondary","success","warning"]),component:r.elementType,contentEditable:r.bool.isRequired,disabled:r.bool.isRequired,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,error:r.bool.isRequired,focused:r.bool,fullWidth:r.bool,helperText:r.node,hiddenLabel:r.bool,id:r.string,inputRef:Ft,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onBlur:r.func.isRequired,onChange:r.func.isRequired,onClick:r.func.isRequired,onFocus:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onMouseDown:r.func.isRequired,onPaste:r.func.isRequired,readOnly:r.bool,required:r.bool,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),size:r.oneOf(["medium","small"]),slotProps:r.object,slots:r.object,startAdornment:r.node,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired,variant:r.oneOf(["filled","outlined","standard"])});const ZE=["readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel","InputProps","inputProps","InputLabelProps","FormHelperTextProps"],JE=["ownerState"],ek=["ownerState"],tk=["ownerState"],nk=["ownerState"],ok=["InputProps","inputProps","InputLabelProps","FormHelperTextProps"],rk=e=>{var p;const t=e,{readOnly:n,onClear:o,clearable:s,clearButtonPosition:i,openPickerButtonPosition:a,openPickerAriaLabel:l,InputProps:c,inputProps:u,InputLabelProps:d,FormHelperTextProps:m}=t,g=Ce(t,ZE);return process.env.NODE_ENV!=="production"&&(c||u||d||m)&&$n(["MUI X: The `InputProps`, `inputProps`, `InputLabelProps` and `FormHelperTextProps` props are no longer supported on Picker / Field components.","They have been silently dropped because they would otherwise be forwarded as unknown attributes on the underlying form control.","Use the `slotProps` shape instead (`slotProps.input`, `slotProps.htmlInput`, `slotProps.inputLabel`, `slotProps.formHelperText`).","See https://mui.com/x/migration/migration-pickers-v8/#textfield-props for migration details."]),{clearable:s,onClear:o,clearButtonPosition:i,openPickerButtonPosition:a,openPickerAriaLabel:l,textFieldProps:D({},g,{slotProps:D({},g==null?void 0:g.slotProps,{input:D({},(p=g==null?void 0:g.slotProps)==null?void 0:p.input,{readOnly:n})})})}},Ki=C.createContext({slots:{},slotProps:{},inputRef:void 0});process.env.NODE_ENV!=="production"&&(Ki.displayName="PickerFieldUIContext");function Fm(e){var L;const{fieldResponse:t,defaultOpenPickerIcon:n}=e,o=Dt(),s=Sl(),i=C.useContext(Ki),{textFieldProps:a,onClear:l,clearable:c,openPickerAriaLabel:u,clearButtonPosition:d="end",openPickerButtonPosition:m="end"}=rk(t),g=zl(a),p=be(F=>{F.preventDefault(),s==null||s.setOpen(!0)}),b=s?s.triggerStatus:"hidden",f=c?d:null,y=b!=="hidden"?m:null,x=i.slots.textField??Gi,T=i.slots.inputAdornment??Pm,S=Le({elementType:T,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"start"},ownerState:D({},g,{position:"start"})}),w=Ce(S,JE),E=Le({elementType:T,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"end"},ownerState:D({},g,{position:"end"})}),I=Ce(E,ek),R=i.slots.openPickerButton??Qn,N=Le({elementType:R,externalSlotProps:i.slotProps.openPickerButton,additionalProps:{disabled:b==="disabled",onClick:p,"aria-label":u,"data-mui-picker-open-button":"true",edge:a.variant!=="standard"?y:!1},ownerState:g}),j=Ce(N,tk),V=i.slots.openPickerIcon??n,$=Le({elementType:V,externalSlotProps:i.slotProps.openPickerIcon,ownerState:g}),v=i.slots.clearButton??Qn,O=Le({elementType:v,externalSlotProps:i.slotProps.clearButton,className:"clearButton",additionalProps:{title:o.fieldClearLabel,tabIndex:-1,onClick:l,disabled:t.disabled||t.readOnly,edge:a.variant!=="standard"&&f!==y?f:!1},ownerState:g}),P=Ce(O,nk),k=i.slots.clearIcon??XI,M=Le({elementType:k,externalSlotProps:i.slotProps.clearIcon,additionalProps:{fontSize:"small"},ownerState:g});a.ref=wt(a.ref,s==null?void 0:s.rootRef);const _=(L=a.slotProps)==null?void 0:L.input,A={},B=wt(_==null?void 0:_.ref,s==null?void 0:s.triggerRef);return s&&(A.ref=B),!(_!=null&&_.startAdornment)&&(f==="start"||y==="start")&&(A.startAdornment=h.jsxs(T,D({},w,{children:[y==="start"&&h.jsx(R,D({},j,{children:h.jsx(V,D({},$))})),f==="start"&&h.jsx(v,D({},P,{children:h.jsx(k,D({},M))}))]}))),!(_!=null&&_.endAdornment)&&(f==="end"||y==="end")&&(A.endAdornment=h.jsxs(T,D({},I,{children:[f==="end"&&h.jsx(v,D({},P,{children:h.jsx(k,D({},M))})),y==="end"&&h.jsx(R,D({},j,{children:h.jsx(V,D({},$))}))]}))),!A.endAdornment&&!A.startAdornment&&i.slots.inputAdornment&&(A.endAdornment=h.jsx(T,D({},I))),f!=null&&(a.sx=[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(a.sx)?a.sx:[a.sx]]),a.slotProps=D({},a.slotProps,{input:D({},_,A)}),h.jsx(x,D({},a))}function sk(e,t){return e?t?n=>D({},Gn(t,n),Gn(e,n)):e:t}function Bm(e){const{ref:t,externalForwardedProps:n,slotProps:o}=e,s=C.useContext(Ki),i=Sl(),a=zl(n),l=n??{},{InputProps:c,inputProps:u,InputLabelProps:d,FormHelperTextProps:m}=l,g=Ce(l,ok);process.env.NODE_ENV!=="production"&&(c||u||d||m)&&$n(["MUI X: Field components no longer accept the `InputProps`, `inputProps`, `InputLabelProps` and `FormHelperTextProps` props.","They have been dropped to avoid leaking unknown attributes onto the underlying form control.","Use the nested `slotProps.textField.slotProps.{input,htmlInput,inputLabel,formHelperText}` shape instead."]);const p=Le({elementType:Gi,externalSlotProps:sk(s.slotProps.textField,o==null?void 0:o.textField),externalForwardedProps:g,additionalProps:{ref:t,sx:i==null?void 0:i.rootSx,label:i==null?void 0:i.label,name:i==null?void 0:i.name,className:i==null?void 0:i.rootClassName,inputRef:s.inputRef},ownerState:a});if(i&&i.keepOpenDuringFieldFocus&&i.triggerStatus==="enabled"&&!i.open&&!i.readOnly&&!i.disabled){const b=p.onFocus,f=p.onMouseDown,y=x=>{var E;const T=x.nativeEvent??x,S=(E=T==null?void 0:T.composedPath)==null?void 0:E.call(T);if(Array.isArray(S)){for(const I of S)if(I&&I.getAttribute&&I.getAttribute("data-mui-picker-open-button")==="true")return!0}const w=x.target;return w&&w.closest?!!w.closest('[data-mui-picker-open-button="true"]'):!1};p.onFocus=x=>{b==null||b(x),!x.isDefaultPrevented()&&!y(x)&&i.setOpen(!0)},p.onMouseDown=x=>{f==null||f(x),!x.isDefaultPrevented()&&!y(x)&&i.setOpen(!0)}}return p}function zm(e){const{slots:t={},slotProps:n={},inputRef:o,children:s}=e,i=C.useMemo(()=>({inputRef:o,slots:{openPickerButton:t.openPickerButton,openPickerIcon:t.openPickerIcon,textField:t.textField,inputAdornment:t.inputAdornment,clearIcon:t.clearIcon,clearButton:t.clearButton},slotProps:{openPickerButton:n.openPickerButton,openPickerIcon:n.openPickerIcon,textField:n.textField,inputAdornment:n.inputAdornment,clearIcon:n.clearIcon,clearButton:n.clearButton}}),[o,t.openPickerButton,t.openPickerIcon,t.textField,t.inputAdornment,t.clearIcon,t.clearButton,n.openPickerButton,n.openPickerIcon,n.textField,n.inputAdornment,n.clearIcon,n.clearButton]);return h.jsx(Ki.Provider,{value:i,children:s})}const ik=["slots","slotProps"],Xi=C.forwardRef(function(t,n){const o=ke({props:t,name:"MuiDateField"}),{slots:s,slotProps:i}=o,a=Ce(o,ik),l=Bm({slotProps:i,ref:n,externalForwardedProps:a}),c=jI(l);return h.jsx(zm,{slots:s,slotProps:i,inputRef:a.inputRef,children:h.jsx(Fm,{fieldResponse:c,defaultOpenPickerIcon:GI})})});process.env.NODE_ENV!=="production"&&(Xi.displayName="DateField");process.env.NODE_ENV!=="production"&&(Xi.propTypes={areAllSectionsEmpty:r.bool,autoFocus:r.bool,className:r.string,clearable:r.bool,clearButtonPosition:r.oneOf(["end","start"]),color:r.oneOf(["error","info","primary","secondary","success","warning"]),component:r.elementType,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disablePast:r.bool,endAdornment:r.node,error:r.bool,fieldRef:r.oneOfType([r.func,r.object]),focused:r.bool,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),fullWidth:r.bool,helperText:r.node,hiddenLabel:r.bool,id:r.string,inputRef:Ft,label:r.node,margin:r.oneOf(["dense","none","normal"]),maxDate:r.object,minDate:r.object,name:r.string,onBlur:r.func,onChange:r.func,onClear:r.func,onClick:r.func,onError:r.func,onFocus:r.func,onInput:r.func,onKeyDown:r.func,onMouseDown:r.func,onPaste:r.func,onSelectedSectionsChange:r.func,openPickerButtonPosition:r.oneOf(["end","start"]),readOnly:r.bool,referenceDate:r.object,required:r.bool,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableDate:r.func,shouldDisableMonth:r.func,shouldDisableYear:r.func,shouldRespectLeadingZeros:r.bool,size:r.oneOf(["medium","small"]),slotProps:r.object,slots:r.object,startAdornment:r.node,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,variant:r.oneOf(["filled","outlined","standard"])});const Wm=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:s,disableFuture:i,disablePast:a,timezone:l})=>{const c=Me();return C.useCallback(u=>cs({adapter:c,value:u,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:s,disableFuture:i,disablePast:a}})!==null,[c,e,t,n,o,s,i,a,l])},ak=(e,t)=>(n,o)=>{switch(o.type){case"setVisibleDate":return D({},n,{slideDirection:o.direction,currentMonth:o.month,isMonthSwitchingAnimating:!t.isSameMonth(o.month,n.currentMonth)&&!e&&!o.skipAnimation,focusedDay:o.focusedDay});case"changeMonthTimezone":{const s=o.newTimezone;if(t.getTimezone(n.currentMonth)===s)return n;let i=t.setTimezone(n.currentMonth,s);return t.getMonth(i)!==t.getMonth(n.currentMonth)&&(i=t.setMonth(i,t.getMonth(n.currentMonth))),D({},n,{currentMonth:i})}case"finishMonthSwitchingAnimation":return D({},n,{isMonthSwitchingAnimating:!1});default:throw new Error("missing support")}},lk=e=>{const{value:t,referenceDate:n,disableFuture:o,disablePast:s,maxDate:i,minDate:a,onMonthChange:l,onYearChange:c,reduceAnimations:u,shouldDisableDate:d,timezone:m,getCurrentMonthFromVisibleDate:g}=e,p=Me(),b=C.useRef(ak(!!u,p)).current,f=C.useMemo(()=>xt.getInitialReferenceValue({value:t,adapter:p,timezone:m,props:e,referenceDate:n,granularity:an.day}),[n,m]),[y,x]=C.useReducer(b,{isMonthSwitchingAnimating:!1,focusedDay:f,currentMonth:p.setDate(f,1),slideDirection:"left"}),T=Wm({shouldDisableDate:d,minDate:a,maxDate:i,disableFuture:o,disablePast:s,timezone:m});C.useEffect(()=>{x({type:"changeMonthTimezone",newTimezone:p.getTimezone(f)})},[f,p]);const S=be(({target:E,reason:I})=>{if(I==="cell-interaction"&&y.focusedDay!=null&&p.isSameDay(E,y.focusedDay))return;const R=I==="cell-interaction";let N,j;if(I==="cell-interaction")N=g(E,y.currentMonth),j=E;else if(N=p.isSameMonth(E,y.currentMonth)?y.currentMonth:p.startOfMonth(E),j=E,T(j)){const v=p.startOfMonth(E),O=p.endOfMonth(E);j=qr({adapter:p,date:j,minDate:p.isBefore(a,v)?v:a,maxDate:p.isAfter(i,O)?O:i,disablePast:s,disableFuture:o,isDateDisabled:T,timezone:m})}const V=!p.isSameMonth(y.currentMonth,N),$=!p.isSameYear(y.currentMonth,N);V&&(l==null||l(N)),$&&(c==null||c(p.startOfYear(N))),x({type:"setVisibleDate",month:N,direction:p.isAfterDay(N,y.currentMonth)?"left":"right",focusedDay:y.focusedDay!=null&&j!=null&&p.isSameDay(j,y.focusedDay)?y.focusedDay:j,skipAnimation:R})}),w=C.useCallback(()=>{x({type:"finishMonthSwitchingAnimation"})},[]);return{referenceDate:f,calendarState:y,setVisibleDate:S,isDateDisabled:T,onMonthSwitchingAnimationEnd:w}},ck=e=>Ye("MuiPickersFadeTransitionGroup",e);Ze("MuiPickersFadeTransitionGroup",["root"]);const uk=["children"],dk=e=>Ve({root:["root"]},ck,e),pk=te(ps,{name:"MuiPickersFadeTransitionGroup",slot:"Root"})({display:"block",position:"relative"});function Um(e){const t=ke({props:e,name:"MuiPickersFadeTransitionGroup"}),{className:n,reduceAnimations:o,transKey:s,classes:i}=t,{children:a}=t,l=Ce(t,uk),c=dk(i),u=Io();return o?a:h.jsx(pk,{className:ue(c.root,n),ownerState:l,children:h.jsx(Kn,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:u.transitions.duration.enteringScreen,enter:u.transitions.duration.enteringScreen,exit:0},children:a},s)})}function fk(e){return Ye("MuiPickerDay",e)}const mk=Ze("MuiPickerDay",["root","dayOutsideMonth","today","selected","disabled","fillerCell"]);function Hm(e){const{disabled:t,selected:n,today:o,outsideCurrentMonth:s,day:i,disableHighlightToday:a,showDaysOutsideCurrentMonth:l}=e,c=Me(),{ownerState:u}=at();return C.useMemo(()=>D({},u,{day:i,isDaySelected:n??!1,isDayDisabled:t??!1,isDayCurrent:o??!1,isDayOutsideMonth:s??!1,isDayStartOfWeek:c.isSameDay(i,c.startOfWeek(i)),isDayEndOfWeek:c.isSameDay(i,c.endOfWeek(i)),disableHighlightToday:a??!1,showDaysOutsideCurrentMonth:l??!1}),[c,u,i,n,t,o,s,a,l])}const hk=["autoFocus","className","classes","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","children","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableHighlightToday","showDaysOutsideCurrentMonth","isVisuallySelected","isDayFillerCell"],gk=(e,t)=>{const{isDaySelected:n,disableHighlightToday:o,isDayCurrent:s,isDayDisabled:i,isDayOutsideMonth:a,isDayFillerCell:l}=e;return Ve({root:["root",n&&!l&&"selected",i&&"disabled",!o&&s&&!n&&!l&&"today",a&&"dayOutsideMonth",l&&"fillerCell"]},fk,t)},Ld=te(Xn,{name:"MuiPickerDay",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableHighlightToday&&n.isDayCurrent&&t.today,n.isDayOutsideMonth&&t.dayOutsideMonth,n.isDayFillerCell&&t.fillerCell]}})(({theme:e})=>D({"--PickerDay-horizontalMargin":`${Vi}px`,"--PickerDay-size":`${ii}px`},e.typography.caption,{lineHeight:1,display:"flex",width:"var(--PickerDay-size)",height:"var(--PickerDay-size)",borderRadius:"calc(var(--PickerDay-size) / 2)",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.focusOpacity)},marginLeft:"var(--PickerDay-horizontalMargin)",marginRight:"var(--PickerDay-horizontalMargin)",variants:[{props:{isDaySelected:!0},style:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:focus, &:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark},[`&.${mk.disabled}`]:{opacity:.6}}},{props:{isDayDisabled:!0},style:{color:(e.vars||e).palette.text.disabled}},{props:{isDayFillerCell:!0},style:{opacity:0,pointerEvents:"none"}},{props:{isDayOutsideMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{isDayCurrent:!0,isDaySelected:!1},style:{outline:`1px solid ${(e.vars||e).palette.text.secondary}`,outlineOffset:-1}}]})),Cr=()=>{},Yl=C.forwardRef(function(t,n){const o=ke({props:t,name:"MuiPickerDay"}),s=Me(),{autoFocus:i=!1,className:a,classes:l,isAnimating:c,onClick:u,onDaySelect:d,onFocus:m=Cr,onBlur:g=Cr,onKeyDown:p=Cr,onMouseDown:b=Cr,onMouseEnter:f=Cr,children:y,day:x,selected:T,disabled:S,today:w,outsideCurrentMonth:E,disableHighlightToday:I,showDaysOutsideCurrentMonth:R,isDayFillerCell:N}=o,j=Ce(o,hk),V=Hm({day:x,selected:T,disabled:S,today:w,outsideCurrentMonth:E,disableHighlightToday:I,showDaysOutsideCurrentMonth:R}),$=D({},V,{isDayFillerCell:N??(E&&!R)}),v=gk($,l),O=C.useRef(null),P=wt(O,n);Kt(()=>{i&&!S&&!c&&!E&&O.current.focus()},[i,S,c,E]);const k=_=>{b(_),E&&_.preventDefault()},M=_=>{_.defaultMuiPrevented=!0,S||d(x),E&&_.currentTarget.focus(),u&&u(_)};return $.isDayFillerCell?h.jsx(Ld,{ref:P,role:j.role,ownerState:$,className:ue(v.root,a),as:"div"}):h.jsx(Ld,D({ref:P,centerRipple:!0,disabled:S,tabIndex:T?0:-1,onKeyDown:_=>p(_,x),onFocus:_=>m(_,x),onBlur:_=>g(_,x),onMouseEnter:_=>f(_,x),onClick:M,onMouseDown:k},j,{ownerState:$,className:ue(v.root,a),children:y??s.format(x,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(Yl.displayName="PickerDayRaw");process.env.NODE_ENV!=="production"&&(Yl.propTypes={action:r.oneOfType([r.func,r.shape({current:r.shape({focusVisible:r.func.isRequired})})]),centerRipple:r.bool,classes:r.object,className:r.string,component:r.elementType,day:r.object.isRequired,disabled:r.bool,disableHighlightToday:r.bool,disableRipple:r.bool,disableTouchRipple:r.bool,focusRipple:r.bool,focusVisibleClassName:r.string,isAnimating:r.bool,isDayFillerCell:r.bool,isFirstVisibleCell:r.bool,isLastVisibleCell:r.bool,isVisuallySelected:r.bool,nativeButton:r.bool,onBlur:r.func,onClick:r.func,onDaySelect:r.func.isRequired,onFocus:r.func,onFocusVisible:r.func,onKeyDown:r.func,onMouseDown:r.func,onMouseEnter:r.func,outsideCurrentMonth:r.bool,selected:r.bool,showDaysOutsideCurrentMonth:r.bool,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tabIndex:r.number,today:r.bool,TouchRippleProps:r.object,touchRippleRef:r.oneOfType([r.func,r.shape({current:r.shape({pulsate:r.func.isRequired,start:r.func.isRequired,stop:r.func.isRequired})})]),type:r.string});const qm=C.memo(Yl);process.env.NODE_ENV!=="production"&&(qm.displayName="PickerDay");const bk=e=>Ye("MuiPickersSlideTransition",e),po=Ze("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),yk=["children","className","reduceAnimations","slideDirection","transKey","classes"],vk=(e,t)=>{const{slideDirection:n}=t,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Ve(o,bk,e)},xk=["slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"],Ck=te(ps,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>xk.reduce((n,o)=>(n.push({[`.${po[o]}`]:t[o]}),n),[t.root])})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.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},[`& .${po["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${po["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${po.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${po.slideExit}`]:{transform:"translate(0%)"},[`& .${po["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${po["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function wk(e){const t=ke({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:s,slideDirection:i,transKey:a,classes:l}=t,c=Ce(t,yk),{ownerState:u}=at(),d=D({},u,{slideDirection:i}),m=vk(l,d),g=Io();if(s)return h.jsx("div",{className:ue(m.root,o),children:n});const p={exit:m.exit,enterActive:m.enterActive,enter:m.enter,exitActive:m.exitActive};return h.jsx(Ck,{className:ue(m.root,o),childFactory:b=>C.cloneElement(b,{classNames:p}),role:"none",ownerState:d,children:h.jsx(kl,D({mountOnEnter:!0,unmountOnExit:!0,timeout:g.transitions.duration.complex,classNames:p},c,{children:n}),a)})}const Sk=e=>Ye("MuiDayCalendar",e);Ze("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const Tk=["parentProps","day","focusedDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],Ik=["ownerState"],Ek=e=>Ve({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},Sk,e),Ym=(ii+Vi*2)*6,kk=te("div",{name:"MuiDayCalendar",slot:"Root"})({}),Ok=te("div",{name:"MuiDayCalendar",slot:"Header"})({display:"flex",justifyContent:"center",alignItems:"center"}),_k=te(Jt,{name:"MuiDayCalendar",slot:"WeekDayLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),Pk=te(Jt,{name:"MuiDayCalendar",slot:"WeekNumberLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.disabled})),Mk=te(Jt,{name:"MuiDayCalendar",slot:"WeekNumber"})(({theme:e})=>D({},e.typography.caption,{width:ii,height:ii,padding:0,margin:`0 ${Vi}px`,color:(e.vars||e).palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),Dk=te("div",{name:"MuiDayCalendar",slot:"LoadingContainer"})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Ym}),Rk=te(wk,{name:"MuiDayCalendar",slot:"SlideTransition"})({minHeight:Ym}),Nk=te("div",{name:"MuiDayCalendar",slot:"MonthContainer"})({overflow:"hidden"}),$k=te("div",{name:"MuiDayCalendar",slot:"WeekContainer"})({margin:`${Vi}px 0`,display:"flex",justifyContent:"center"});function jk(e){let{parentProps:t,day:n,focusedDay:o,selectedDays:s,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,c=Ce(e,Tk);const{currentMonth:u,disabled:d,disableHighlightToday:m,isMonthSwitchingAnimating:g,showDaysOutsideCurrentMonth:p,slots:b,slotProps:f,timezone:y}=t,x=Me(),T=ko(y),S=o!=null&&x.isSameDay(n,o),w=l&&S,E=s.some(k=>x.isSameDay(k,n)),I=x.isSameDay(n,T),R=C.useMemo(()=>d||i(n),[d,i,n]),N=C.useMemo(()=>x.getMonth(n)!==a,[x,n,a]),j=Hm({day:n,selected:E,disabled:R,today:I,outsideCurrentMonth:N,disableHighlightToday:m,showDaysOutsideCurrentMonth:p}),V=(b==null?void 0:b.day)??qm,$=Le({elementType:V,externalSlotProps:f==null?void 0:f.day,additionalProps:D({disableHighlightToday:m,showDaysOutsideCurrentMonth:p,role:"gridcell",isAnimating:g,"data-timestamp":x.toJsDate(n).valueOf()},c),ownerState:D({},j,{day:n,isDayDisabled:R,isDaySelected:E})}),v=Ce($,Ik),O=C.useMemo(()=>{const k=x.startOfMonth(u);return p?x.isSameDay(n,x.startOfWeek(k)):x.isSameDay(n,k)},[u,n,p,x]),P=C.useMemo(()=>{const k=x.endOfMonth(u);return p?x.isSameDay(n,x.endOfWeek(k)):x.isSameDay(n,k)},[u,n,p,x]);return h.jsx(V,D({},v,{day:n,disabled:R,autoFocus:!N&&w,today:I,outsideCurrentMonth:N,isFirstVisibleCell:O,isLastVisibleCell:P,selected:E,tabIndex:S?0:-1,"aria-selected":E,"aria-current":I?"date":void 0}))}function Ak(e){const t=ke({props:e,name:"MuiDayCalendar"}),n=Me(),{onFocusedDayChange:o,className:s,classes:i,currentMonth:a,selectedDays:l,focusedDay:c,loading:u,onSelectedDaysChange:d,onMonthSwitchingAnimationEnd:m,readOnly:g,reduceAnimations:p,renderLoading:b=()=>h.jsx("span",{children:"…"}),slideDirection:f,TransitionProps:y,disablePast:x,disableFuture:T,minDate:S,maxDate:w,shouldDisableDate:E,shouldDisableMonth:I,shouldDisableYear:R,dayOfWeekFormatter:N=J=>n.format(J,"weekdayShort").charAt(0).toUpperCase(),hasFocus:j,onFocusedViewChange:V,gridLabelId:$,displayWeekNumber:v,fixedWeekNumber:O,timezone:P}=t,k=ko(P),M=Ek(i),_=cn(),A=Wm({shouldDisableDate:E,shouldDisableMonth:I,shouldDisableYear:R,minDate:S,maxDate:w,disablePast:x,disableFuture:T,timezone:P}),B=Dt(),L=be(J=>{g||d(J)}),F=J=>{A(J)||(o(J),V==null||V(!0))},W=be((J,U)=>{switch(J.key){case"ArrowUp":F(n.addDays(U,-7)),J.preventDefault();break;case"ArrowDown":F(n.addDays(U,7)),J.preventDefault();break;case"ArrowLeft":{const ce=n.addDays(U,_?1:-1),ne=n.addMonths(U,_?1:-1),de=qr({adapter:n,date:ce,minDate:_?ce:n.startOfMonth(ne),maxDate:_?n.endOfMonth(ne):ce,isDateDisabled:A,timezone:P});F(de||ce),J.preventDefault();break}case"ArrowRight":{const ce=n.addDays(U,_?-1:1),ne=n.addMonths(U,_?-1:1),de=qr({adapter:n,date:ce,minDate:_?n.startOfMonth(ne):ce,maxDate:_?ce:n.endOfMonth(ne),isDateDisabled:A,timezone:P});F(de||ce),J.preventDefault();break}case"Home":F(n.startOfWeek(U)),J.preventDefault();break;case"End":F(n.endOfWeek(U)),J.preventDefault();break;case"PageUp":F(n.addMonths(U,1)),J.preventDefault();break;case"PageDown":F(n.addMonths(U,-1)),J.preventDefault();break;case"Enter":case" ":L(U),J.preventDefault();break}}),G=be((J,U)=>F(U)),Q=be((J,U)=>{c!=null&&n.isSameDay(c,U)&&(V==null||V(!1))}),K=n.getMonth(a),Z=n.getYear(a),se=C.useMemo(()=>l.filter(J=>!!J).map(J=>n.startOfDay(J)),[n,l]),Y=`${Z}-${K}`,z=C.useMemo(()=>C.createRef(),[Y]),q=C.useMemo(()=>{const J=n.getWeekArray(a);let U=n.addMonths(a,1);for(;O&&J.length<O;){const ce=n.getWeekArray(U),ne=n.isSameDay(J[J.length-1][0],ce[0][0]);ce.slice(ne?1:0).forEach(de=>{J.length<O&&J.push(de)}),U=n.addMonths(U,1)}return J},[a,O,n]);return h.jsxs(kk,{role:"grid","aria-labelledby":$,className:M.root,children:[h.jsxs(Ok,{role:"row",className:M.header,children:[v&&h.jsx(Pk,{variant:"caption",role:"columnheader","aria-label":B.calendarWeekNumberHeaderLabel,className:M.weekNumberLabel,children:B.calendarWeekNumberHeaderText}),$C(n,k).map((J,U)=>h.jsx(_k,{variant:"caption",role:"columnheader","aria-label":n.format(J,"weekday"),className:M.weekDayLabel,children:N(J)},U.toString()))]}),u?h.jsx(Dk,{className:M.loadingContainer,children:b()}):h.jsx(Rk,D({transKey:Y,onExited:m,reduceAnimations:p,slideDirection:f,className:ue(s,M.slideTransition)},y,{nodeRef:z,children:h.jsx(Nk,{ref:z,role:"rowgroup",className:M.monthContainer,children:q.map((J,U)=>h.jsxs($k,{role:"row",className:M.weekContainer,"aria-rowindex":U+1,children:[v&&h.jsx(Mk,{className:M.weekNumber,role:"rowheader","aria-label":B.calendarWeekNumberAriaLabelText(n.getWeekNumber(J[0])),children:B.calendarWeekNumberText(n.getWeekNumber(J[0]))}),J.map((ce,ne)=>h.jsx(jk,{parentProps:t,day:ce,selectedDays:se,isViewFocused:j,focusedDay:c,onKeyDown:W,onFocus:G,onBlur:Q,onDaySelect:L,isDateDisabled:A,currentMonthNumber:K,"aria-colindex":ne+1},ce.toString()))]},`week-${J[0]}`))})}))]})}function Gm(e){return Ye("MuiMonthCalendar",e)}const Is=Ze("MuiMonthCalendar",["root","button","disabled","selected"]),Lk=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],Vk=(e,t)=>{const n={button:["button",t.isMonthDisabled&&"disabled",t.isMonthSelected&&"selected"]};return Ve(n,Gm,e)},Fk=te("button",{name:"MuiMonthCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${Is.disabled}`]:t.disabled},{[`&.${Is.selected}`]:t.selected}]})(({theme:e})=>D({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Is.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Is.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Km=C.memo(function(t){const{autoFocus:n,classes:o,disabled:s,selected:i,value:a,onClick:l,onKeyDown:c,onFocus:u,onBlur:d,slots:m,slotProps:g}=t,p=Ce(t,Lk),b=C.useRef(null),{ownerState:f}=at(),y=D({},f,{isMonthDisabled:s,isMonthSelected:i}),x=Vk(o,y);Kt(()=>{var w;n&&((w=b.current)==null||w.focus())},[n]);const T=(m==null?void 0:m.monthButton)??Fk,S=Le({elementType:T,externalSlotProps:g==null?void 0:g.monthButton,externalForwardedProps:p,additionalProps:{disabled:s,ref:b,type:"button",role:"radio","aria-checked":i,onClick:w=>l(w,a),onKeyDown:w=>c(w,a),onFocus:w=>u(w,a),onBlur:w=>d(w,a)},ownerState:y,className:x.button});return h.jsx(T,D({},S))});process.env.NODE_ENV!=="production"&&(Km.displayName="MonthCalendarButton");const Bk=["autoFocus","className","currentMonth","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],zk=e=>Ve({root:["root"]},Gm,e);function Wk(e,t){const n=ke({props:e,name:t}),o=us(n);return D({},n,o,{monthsPerRow:n.monthsPerRow??3})}const Vd=(e,t,n,o,s)=>!!(e===t&&o&&s.isSameYear(n,o)),Uk=te("div",{name:"MuiMonthCalendar",slot:"Root",shouldForwardProp:e=>At(e)&&e!=="monthsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:16,padding:"8px 0",width:Fi,boxSizing:"border-box",variants:[{props:{monthsPerRow:3},style:{columnGap:24}},{props:{monthsPerRow:4},style:{columnGap:0}}]}),Gl=C.forwardRef(function(t,n){const o=Wk(t,"MuiMonthCalendar"),{autoFocus:s,className:i,currentMonth:a,classes:l,value:c,defaultValue:u,referenceDate:d,disabled:m,disableFuture:g,disablePast:p,maxDate:b,minDate:f,onChange:y,shouldDisableMonth:x,readOnly:T,onMonthFocus:S,hasFocus:w,onFocusedViewChange:E,monthsPerRow:I,timezone:R,gridLabelId:N,slots:j,slotProps:V}=o,$=Ce(o,Bk),{value:v,handleValueChange:O,timezone:P}=oo({name:"MonthCalendar",timezone:R,value:c,defaultValue:u,referenceDate:d,onChange:y,valueManager:xt}),k=ko(P),M=cn(),_=Me(),{ownerState:A}=at(),B=C.useMemo(()=>xt.getInitialReferenceValue({value:v,adapter:_,props:o,timezone:P,referenceDate:d,granularity:an.month}),[]),L=zk(l),F=C.useMemo(()=>_.getMonth(k),[_,k]),W=C.useMemo(()=>v!=null?_.getMonth(v):null,[v,_]),[G,Q]=C.useState(()=>W||_.getMonth(B)),[K,Z]=ur({name:"MonthCalendar",state:"hasFocus",controlled:w,default:s??!1}),se=be(ne=>{Z(ne),E&&E(ne)}),Y=C.useCallback(ne=>{const de=_.startOfMonth(p&&_.isAfter(k,f)?k:f),fe=_.startOfMonth(g&&_.isBefore(k,b)?k:b),ae=_.startOfMonth(ne);return _.isBefore(ae,de)||_.isAfter(ae,fe)?!0:x?x(ae):!1},[g,p,b,f,k,x,_]),z=be((ne,de)=>{if(T)return;const ae=(v&&a&&!_.isSameYear(v,a)?_.setYear(v,_.getYear(a)):v)??a??B,oe=_.setMonth(ae,de);O(oe)}),q=be(ne=>{Y(_.setMonth(v??a??B,ne))||(Q(ne),se(!0),S&&S(ne))});C.useEffect(()=>{Q(ne=>W!==null&&ne!==W?W:ne)},[W]);const J=be((ne,de)=>{switch(ne.key){case"ArrowUp":q((12+de-3)%12),ne.preventDefault();break;case"ArrowDown":q((12+de+3)%12),ne.preventDefault();break;case"ArrowLeft":q((12+de+(M?1:-1))%12),ne.preventDefault();break;case"ArrowRight":q((12+de+(M?-1:1))%12),ne.preventDefault();break;case"Enter":case" ":z(ne,de),ne.preventDefault();break}}),U=be((ne,de)=>{q(de)}),ce=be((ne,de)=>{G===de&&se(!1)});return h.jsx(Uk,D({ref:n,className:ue(L.root,i),ownerState:A,role:"radiogroup","aria-labelledby":N,monthsPerRow:I},$,{children:ul(_,a??v??B).map(ne=>{const de=_.getMonth(ne),fe=_.format(ne,"monthShort"),ae=_.format(ne,"month"),oe=Vd(de,W,ne,v,_),he=m||Y(ne);return h.jsx(Km,{selected:oe,value:de,onClick:z,onKeyDown:J,autoFocus:K&&de===G,disabled:he,tabIndex:de===G&&!he?0:-1,onFocus:U,onBlur:ce,"aria-current":Vd(de,F,ne,k,_)?"date":void 0,"aria-label":ae,slots:j,slotProps:V,classes:l,children:fe},fe)})}))});process.env.NODE_ENV!=="production"&&(Gl.displayName="MonthCalendar");process.env.NODE_ENV!=="production"&&(Gl.propTypes={autoFocus:r.bool,classes:r.object,className:r.string,currentMonth:r.object,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableHighlightToday:r.bool,disablePast:r.bool,gridLabelId:r.string,hasFocus:r.bool,maxDate:r.object,minDate:r.object,monthsPerRow:r.oneOf([3,4]),onChange:r.func,onFocusedViewChange:r.func,onMonthFocus:r.func,readOnly:r.bool,referenceDate:r.object,shouldDisableMonth:r.func,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object});function Xm(e){return Ye("MuiYearCalendar",e)}const Es=Ze("MuiYearCalendar",["root","button","disabled","selected"]),Hk=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],qk=(e,t)=>{const n={button:["button",t.isYearDisabled&&"disabled",t.isYearSelected&&"selected"]};return Ve(n,Xm,e)},Yk=te("button",{name:"MuiYearCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${Es.disabled}`]:t.disabled},{[`&.${Es.selected}`]:t.selected}]})(({theme:e})=>D({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.focusOpacity)},"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Es.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Es.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Qm=C.memo(function(t){const{autoFocus:n,classes:o,disabled:s,selected:i,value:a,onClick:l,onKeyDown:c,onFocus:u,onBlur:d,slots:m,slotProps:g}=t,p=Ce(t,Hk),b=C.useRef(null),{ownerState:f}=at(),y=D({},f,{isYearDisabled:s,isYearSelected:i}),x=qk(o,y);Kt(()=>{var w;n&&((w=b.current)==null||w.focus())},[n]);const T=(m==null?void 0:m.yearButton)??Yk,S=Le({elementType:T,externalSlotProps:g==null?void 0:g.yearButton,externalForwardedProps:p,additionalProps:{disabled:s,ref:b,type:"button",role:"radio","aria-checked":i,onClick:w=>l(w,a),onKeyDown:w=>c(w,a),onFocus:w=>u(w,a),onBlur:w=>d(w,a)},ownerState:y,className:x.button});return h.jsx(T,D({},S))});process.env.NODE_ENV!=="production"&&(Qm.displayName="YearCalendarButton");const Gk=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],Kk=e=>Ve({root:["root"]},Xm,e);function Xk(e,t){const n=ke({props:e,name:t}),o=us(n);return D({},n,o,{yearsPerRow:n.yearsPerRow??3,yearsOrder:n.yearsOrder??"asc"})}const Qk=te("div",{name:"MuiYearCalendar",slot:"Root",shouldForwardProp:e=>At(e)&&e!=="yearsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:12,padding:"6px 0",overflowY:"auto",height:"100%",width:Fi,maxHeight:nI,boxSizing:"border-box",position:"relative",variants:[{props:{yearsPerRow:3},style:{columnGap:24}},{props:{yearsPerRow:4},style:{columnGap:0,padding:"0 2px"}}]}),Zk=te("div",{name:"MuiYearCalendar",slot:"ButtonFiller"})({height:36,width:72}),Kl=C.forwardRef(function(t,n){const o=Xk(t,"MuiYearCalendar"),{autoFocus:s,className:i,classes:a,value:l,defaultValue:c,referenceDate:u,disabled:d,disableFuture:m,disablePast:g,maxDate:p,minDate:b,onChange:f,readOnly:y,shouldDisableYear:x,onYearFocus:T,hasFocus:S,onFocusedViewChange:w,yearsOrder:E,yearsPerRow:I,timezone:R,gridLabelId:N,slots:j,slotProps:V}=o,$=Ce(o,Gk),{value:v,handleValueChange:O,timezone:P}=oo({name:"YearCalendar",timezone:R,value:l,defaultValue:c,referenceDate:u,onChange:f,valueManager:xt}),k=ko(P),M=cn(),_=Me(),{ownerState:A}=at(),B=C.useMemo(()=>xt.getInitialReferenceValue({value:v,adapter:_,props:o,timezone:P,referenceDate:u,granularity:an.year}),[]),L=Kk(a),F=C.useMemo(()=>_.getYear(k),[_,k]),W=C.useMemo(()=>v!=null?_.getYear(v):null,[v,_]),[G,Q]=C.useState(()=>W||_.getYear(B)),[K,Z]=ur({name:"YearCalendar",state:"hasFocus",controlled:S,default:s??!1}),se=be(ee=>{Z(ee),w&&w(ee)}),Y=C.useCallback(ee=>{if(g&&_.isBeforeYear(ee,k)||m&&_.isAfterYear(ee,k)||b&&_.isBeforeYear(ee,b)||p&&_.isAfterYear(ee,p))return!0;if(!x)return!1;const le=_.startOfYear(ee);return x(le)},[m,g,p,b,k,x,_]),z=be((ee,le)=>{if(y)return;const re=_.setYear(v??B,le);O(re)}),q=be(ee=>{Y(_.setYear(v??B,ee))||(Q(ee),se(!0),T==null||T(ee))});C.useEffect(()=>{Q(ee=>W!==null&&ee!==W?W:ee)},[W]);const J=E!=="desc"?I*1:I*-1,U=M&&E==="asc"||!M&&E==="desc"?-1:1,ce=be((ee,le)=>{switch(ee.key){case"ArrowUp":q(le-J),ee.preventDefault();break;case"ArrowDown":q(le+J),ee.preventDefault();break;case"ArrowLeft":q(le-U),ee.preventDefault();break;case"ArrowRight":q(le+U),ee.preventDefault();break;case"Enter":case" ":z(ee,le),ee.preventDefault();break}}),ne=be((ee,le)=>{q(le)}),de=be((ee,le)=>{G===le&&se(!1)}),fe=C.useRef(null),ae=wt(n,fe);C.useEffect(()=>{if(s||fe.current===null)return;const ee=fe.current.querySelector('[tabindex="0"]');if(!ee)return;const le=ee.offsetHeight,re=ee.offsetTop,xe=fe.current.clientHeight,we=fe.current.scrollTop,pe=re+le;le>xe||re<we||(fe.current.scrollTop=pe-xe/2-le/2)},[s]);const oe=_.getYearRange([b,p]);E==="desc"&&oe.reverse();let he=I-oe.length%I;return he===I&&(he=0),h.jsxs(Qk,D({ref:ae,className:ue(L.root,i),ownerState:A,role:"radiogroup","aria-labelledby":N,yearsPerRow:I},$,{children:[oe.map(ee=>{const le=_.getYear(ee),re=le===W,xe=d||Y(ee);return h.jsx(Qm,{selected:re,value:le,onClick:z,onKeyDown:ce,autoFocus:K&&le===G,disabled:xe,tabIndex:le===G&&!xe?0:-1,onFocus:ne,onBlur:de,"aria-current":F===le?"date":void 0,slots:j,slotProps:V,classes:a,children:_.format(ee,"year")},_.format(ee,"year"))}),Array.from({length:he},(ee,le)=>h.jsx(Zk,{},le))]}))});process.env.NODE_ENV!=="production"&&(Kl.displayName="YearCalendar");process.env.NODE_ENV!=="production"&&(Kl.propTypes={autoFocus:r.bool,classes:r.object,className:r.string,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableHighlightToday:r.bool,disablePast:r.bool,gridLabelId:r.string,hasFocus:r.bool,maxDate:r.object,minDate:r.object,onChange:r.func,onFocusedViewChange:r.func,onYearFocus:r.func,readOnly:r.bool,referenceDate:r.object,shouldDisableYear:r.func,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,yearsOrder:r.oneOf(["asc","desc"]),yearsPerRow:r.oneOf([3,4])});const Jk=e=>Ye("MuiPickersCalendarHeader",e),eO=Ze("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function tO(e){return Ye("MuiPickersArrowSwitcher",e)}Ze("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const nO=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],oO=["ownerState"],rO=["ownerState"],sO=te("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),iO=te("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),Fd=te(Qn,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),aO=e=>Ve({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},tO,e),Xl=C.forwardRef(function(t,n){const o=cn(),s=ke({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:l,slotProps:c,isNextDisabled:u,isNextHidden:d,onGoToNext:m,nextLabel:g,isPreviousDisabled:p,isPreviousHidden:b,onGoToPrevious:f,previousLabel:y,labelId:x,classes:T}=s,S=Ce(s,nO),{ownerState:w}=at(),E=aO(T),I={isDisabled:u,isHidden:d,goTo:m,label:g},R={isDisabled:p,isHidden:b,goTo:f,label:y},N=(l==null?void 0:l.previousIconButton)??Fd,j=Le({elementType:N,externalSlotProps:c==null?void 0:c.previousIconButton,additionalProps:{size:"medium",title:R.label,"aria-label":R.label,disabled:R.isDisabled,edge:"end",onClick:R.goTo},ownerState:D({},w,{isButtonHidden:R.isHidden??!1}),className:ue(E.button,E.previousIconButton)}),V=(l==null?void 0:l.nextIconButton)??Fd,$=Le({elementType:V,externalSlotProps:c==null?void 0:c.nextIconButton,additionalProps:{size:"medium",title:I.label,"aria-label":I.label,disabled:I.isDisabled,edge:"start",onClick:I.goTo},ownerState:D({},w,{isButtonHidden:I.isHidden??!1}),className:ue(E.button,E.nextIconButton)}),v=(l==null?void 0:l.leftArrowIcon)??qI,O=Le({elementType:v,externalSlotProps:c==null?void 0:c.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:w,className:E.leftArrowIcon}),P=Ce(O,oO),k=(l==null?void 0:l.rightArrowIcon)??YI,M=Le({elementType:k,externalSlotProps:c==null?void 0:c.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:w,className:E.rightArrowIcon}),_=Ce(M,rO);return h.jsxs(sO,D({ref:n,className:ue(E.root,a),ownerState:w},S,{children:[h.jsx(N,D({},j,{children:o?h.jsx(k,D({},_)):h.jsx(v,D({},P))})),i?h.jsx(Jt,{variant:"subtitle1",component:"span",id:x,children:i}):h.jsx(iO,{className:E.spacer,ownerState:w}),h.jsx(V,D({},$,{children:o?h.jsx(v,D({},P)):h.jsx(k,D({},_))}))]}))});process.env.NODE_ENV!=="production"&&(Xl.displayName="PickersArrowSwitcher");function lO(e,{disableFuture:t,maxDate:n,timezone:o}){const s=Me();return C.useMemo(()=>{const i=s.date(void 0,o),a=s.startOfMonth(t&&s.isBefore(i,n)?i:n);return!s.isAfter(a,e)},[t,n,e,s,o])}function cO(e,{disablePast:t,minDate:n,timezone:o}){const s=Me();return C.useMemo(()=>{const i=s.date(void 0,o),a=s.startOfMonth(t&&s.isAfter(i,n)?i:n);return!s.isBefore(a,s.startOfMonth(e))},[t,n,e,s,o])}function Ql(e,t,n,o){const s=Me(),i=C.useMemo(()=>s.isValid(e)?e:null,[s,e]),a=LC(i,s),l=C.useCallback(c=>{const u=i==null?null:Tf(i,c,!!t,s);n(u,o??"partial")},[t,i,n,o,s]);return{meridiemMode:a,handleMeridiemChange:l}}const uO=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","classes","timezone","format"],dO=["ownerState"],pO=e=>Ve({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Jk,e),fO=te("div",{name:"MuiPickersCalendarHeader",slot:"Root"})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),mO=te("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer"})(({theme:e})=>D({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),hO=te("div",{name:"MuiPickersCalendarHeader",slot:"Label"})({marginRight:6}),gO=te(Qn,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton"})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${eO.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),bO=te(HI,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon"})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),Zl=C.forwardRef(function(t,n){const o=Dt(),s=Me(),i=ke({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:l,currentMonth:c,disabled:u,disableFuture:d,disablePast:m,maxDate:g,minDate:p,onMonthChange:b,onViewChange:f,view:y,reduceAnimations:x,views:T,labelId:S,className:w,classes:E,timezone:I,format:R=`${s.formats.month} ${s.formats.year}`}=i,N=Ce(i,uO),{ownerState:j}=at(),V=pO(E),$=(a==null?void 0:a.switchViewButton)??gO,v=Le({elementType:$,externalSlotProps:l==null?void 0:l.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(y)},ownerState:D({},j,{view:y}),className:V.switchViewButton}),O=(a==null?void 0:a.switchViewIcon)??bO,P=Le({elementType:O,externalSlotProps:l==null?void 0:l.switchViewIcon,ownerState:j,className:V.switchViewIcon}),k=Ce(P,dO),M=()=>b(s.addMonths(c,1)),_=()=>b(s.addMonths(c,-1)),A=lO(c,{disableFuture:d,maxDate:g,timezone:I}),B=cO(c,{disablePast:m,minDate:p,timezone:I}),L=()=>{if(!(T.length===1||!f||u))if(T.length===2)f(T.find(W=>W!==y)||T[0]);else{const W=T.indexOf(y)!==0?0:1;f(T[W])}};if(T.length===1&&T[0]==="year")return null;const F=s.formatByString(c,R);return h.jsxs(fO,D({},N,{ownerState:j,className:ue(V.root,w),ref:n,children:[h.jsxs(mO,{role:"none",onClick:L,ownerState:j,"aria-live":"polite",className:V.labelContainer,children:[h.jsx(Um,{reduceAnimations:x,transKey:F,children:h.jsx(hO,{id:S,ownerState:j,className:V.label,children:F})}),T.length>1&&!u&&h.jsx($,D({},v,{children:h.jsx(O,D({},k))}))]}),h.jsx(Kn,{in:y==="day",appear:!x,enter:!x,children:h.jsx(Xl,{slots:a,slotProps:l,onGoToPrevious:_,isPreviousDisabled:B,previousLabel:o.previousMonth,onGoToNext:M,isNextDisabled:A,nextLabel:o.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(Zl.displayName="PickersCalendarHeader");process.env.NODE_ENV!=="production"&&(Zl.propTypes={classes:r.object,className:r.string,currentMonth:r.object.isRequired,disabled:r.bool,disableFuture:r.bool,disablePast:r.bool,format:r.string,labelId:r.string,maxDate:r.object.isRequired,minDate:r.object.isRequired,onMonthChange:r.func.isRequired,onViewChange:r.func,reduceAnimations:r.bool.isRequired,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string.isRequired,view:r.oneOf(["day","month","year"]).isRequired,views:r.arrayOf(r.oneOf(["day","month","year"]).isRequired).isRequired});const Qi=te("div",{slot:"internal",shouldForwardProp:void 0})({overflow:"hidden",width:Fi,maxHeight:Vl,display:"flex",flexDirection:"column",margin:"0 auto"}),yO=e=>Ye("MuiDateCalendar",e);Ze("MuiDateCalendar",["root","viewTransitionContainer"]);const vO=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","classes","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],xO=e=>Ve({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},yO,e);function CO(e,t){const n=ke({props:e,name:t}),o=um(n.reduceAnimations),s=us(n);return D({},n,s,{loading:n.loading??!1,openTo:n.openTo??"day",views:n.views??["year","day"],reduceAnimations:o,renderLoading:n.renderLoading??(()=>h.jsx("span",{children:"…"}))})}const wO=te(Qi,{name:"MuiDateCalendar",slot:"Root"})({display:"flex",flexDirection:"column",height:Vl}),SO=te(Um,{name:"MuiDateCalendar",slot:"ViewTransitionContainer"})({}),Jl=C.forwardRef(function(t,n){const o=Me(),{ownerState:s}=at(),i=Ai(),a=CO(t,"MuiDateCalendar"),{autoFocus:l,onViewChange:c,value:u,defaultValue:d,referenceDate:m,disableFuture:g,disablePast:p,onChange:b,onMonthChange:f,reduceAnimations:y,shouldDisableDate:x,shouldDisableMonth:T,shouldDisableYear:S,view:w,views:E,openTo:I,className:R,classes:N,disabled:j,readOnly:V,minDate:$,maxDate:v,disableHighlightToday:O,focusedView:P,onFocusedViewChange:k,showDaysOutsideCurrentMonth:M,fixedWeekNumber:_,dayOfWeekFormatter:A,slots:B,slotProps:L,loading:F,renderLoading:W,displayWeekNumber:G,yearsOrder:Q,yearsPerRow:K,monthsPerRow:Z,timezone:se}=a,Y=Ce(a,vO),{value:z,handleValueChange:q,timezone:J}=oo({name:"DateCalendar",timezone:se,value:u,defaultValue:d,referenceDate:m,onChange:b,valueManager:xt}),{view:U,setView:ce,focusedView:ne,setFocusedView:de,goToNextView:fe,setValueAndGoToNextView:ae}=gs({view:w,views:E,openTo:I,onChange:q,onViewChange:c,autoFocus:l,focusedView:P,onFocusedViewChange:k}),{referenceDate:oe,calendarState:he,setVisibleDate:ee,isDateDisabled:le,onMonthSwitchingAnimationEnd:re}=lk({value:z,referenceDate:m,reduceAnimations:y,onMonthChange:f,minDate:$,maxDate:v,shouldDisableDate:x,disablePast:p,disableFuture:g,timezone:J,getCurrentMonthFromVisibleDate:(Ne,Ct)=>o.isSameMonth(Ne,Ct)?Ct:o.startOfMonth(Ne)}),xe=j&&z||$,we=j&&z||v,pe=`${i}-grid-label`,Se=ne!==null,Ee=(B==null?void 0:B.calendarHeader)??Zl,Ue=Le({elementType:Ee,externalSlotProps:L==null?void 0:L.calendarHeader,additionalProps:{views:E,view:U,currentMonth:he.currentMonth,onViewChange:ce,onMonthChange:Ne=>ee({target:Ne,reason:"header-navigation"}),minDate:xe,maxDate:we,disabled:j,disablePast:p,disableFuture:g,reduceAnimations:y,timezone:J,labelId:pe},ownerState:s}),_t=be(Ne=>{const Ct=o.startOfMonth(Ne),en=o.endOfMonth(Ne),zt=le(Ne)?qr({adapter:o,date:Ne,minDate:o.isBefore($,Ct)?Ct:$,maxDate:o.isAfter(v,en)?en:v,disablePast:p,disableFuture:g,isDateDisabled:le,timezone:J}):Ne;zt?(ae(zt,"finish"),ee({target:zt,reason:"cell-interaction"})):(fe(),ee({target:Ct,reason:"cell-interaction"}))}),Te=be(Ne=>{const Ct=o.startOfYear(Ne),en=o.endOfYear(Ne),zt=le(Ne)?qr({adapter:o,date:Ne,minDate:o.isBefore($,Ct)?Ct:$,maxDate:o.isAfter(v,en)?en:v,disablePast:p,disableFuture:g,isDateDisabled:le,timezone:J}):Ne;zt?(ae(zt,"finish"),ee({target:zt,reason:"cell-interaction"})):(fe(),ee({target:Ct,reason:"cell-interaction"}))}),et=be(Ne=>q(Ne&&Zs(o,Ne,z??oe),"finish",U));C.useEffect(()=>{o.isValid(z)&&ee({target:z,reason:"controlled-value-change"})},[z]);const tt=xO(N),ut={disablePast:p,disableFuture:g,maxDate:v,minDate:$},ot={disableHighlightToday:O,readOnly:V,disabled:j,timezone:J,gridLabelId:pe,slots:B,slotProps:L},nt=C.useRef(U);C.useEffect(()=>{nt.current!==U&&(ne===nt.current&&de(U,!0),nt.current=U)},[ne,de,U]);const io=C.useMemo(()=>[z],[z]);return h.jsxs(wO,D({ref:n,className:ue(tt.root,R),ownerState:s},Y,{children:[h.jsx(Ee,D({},Ue,{slots:B,slotProps:L})),h.jsx(SO,{reduceAnimations:y,className:tt.viewTransitionContainer,transKey:U,ownerState:s,children:h.jsxs("div",{children:[U==="year"&&h.jsx(Kl,D({},ut,ot,{value:z,onChange:Te,shouldDisableYear:S,hasFocus:Se,onFocusedViewChange:Ne=>de("year",Ne),yearsOrder:Q,yearsPerRow:K,referenceDate:oe})),U==="month"&&h.jsx(Gl,D({},ut,ot,{currentMonth:he.currentMonth,hasFocus:Se,className:R,value:z,onChange:_t,shouldDisableMonth:T,onFocusedViewChange:Ne=>de("month",Ne),monthsPerRow:Z,referenceDate:oe})),U==="day"&&h.jsx(Ak,D({},he,ut,ot,{onMonthSwitchingAnimationEnd:re,hasFocus:Se,onFocusedDayChange:Ne=>ee({target:Ne,reason:"cell-interaction"}),reduceAnimations:y,selectedDays:io,onSelectedDaysChange:et,shouldDisableDate:x,shouldDisableMonth:T,shouldDisableYear:S,onFocusedViewChange:Ne=>de("day",Ne),showDaysOutsideCurrentMonth:M,fixedWeekNumber:_,dayOfWeekFormatter:A,displayWeekNumber:G,loading:F,renderLoading:W}))]})})]}))});process.env.NODE_ENV!=="production"&&(Jl.displayName="DateCalendar");process.env.NODE_ENV!=="production"&&(Jl.propTypes={autoFocus:r.bool,classes:r.object,className:r.string,dayOfWeekFormatter:r.func,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableHighlightToday:r.bool,disablePast:r.bool,displayWeekNumber:r.bool,fixedWeekNumber:r.number,focusedView:r.oneOf(["day","month","year"]),loading:r.bool,maxDate:r.object,minDate:r.object,monthsPerRow:r.oneOf([3,4]),onChange:r.func,onFocusedViewChange:r.func,onMonthChange:r.func,onViewChange:r.func,onYearChange:r.func,openTo:r.oneOf(["day","month","year"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,renderLoading:r.func,shouldDisableDate:r.func,shouldDisableMonth:r.func,shouldDisableYear:r.func,showDaysOutsideCurrentMonth:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,view:r.oneOf(["day","month","year"]),views:r.arrayOf(r.oneOf(["day","month","year"]).isRequired),yearsOrder:r.oneOf(["asc","desc"]),yearsPerRow:r.oneOf([3,4])});const Co=({view:e,onViewChange:t,views:n,focusedView:o,onFocusedViewChange:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:g,minDate:p,maxDate:b,shouldDisableDate:f,shouldDisableMonth:y,shouldDisableYear:x,reduceAnimations:T,onMonthChange:S,monthsPerRow:w,onYearChange:E,yearsOrder:I,yearsPerRow:R,slots:N,slotProps:j,loading:V,renderLoading:$,disableHighlightToday:v,readOnly:O,disabled:P,showDaysOutsideCurrentMonth:k,dayOfWeekFormatter:M,sx:_,autoFocus:A,fixedWeekNumber:B,displayWeekNumber:L,timezone:F})=>h.jsx(Jl,{view:e,onViewChange:t,views:n.filter(Wu),focusedView:o&&Wu(o)?o:null,onFocusedViewChange:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:g,minDate:p,maxDate:b,shouldDisableDate:f,shouldDisableMonth:y,shouldDisableYear:x,reduceAnimations:T,onMonthChange:S,monthsPerRow:w,onYearChange:E,yearsOrder:I,yearsPerRow:R,slots:N,slotProps:j,loading:V,renderLoading:$,disableHighlightToday:v,readOnly:O,disabled:P,showDaysOutsideCurrentMonth:k,dayOfWeekFormatter:M,sx:_,autoFocus:A,fixedWeekNumber:B,displayWeekNumber:L,timezone:F});process.env.NODE_ENV!=="production"&&(Co.displayName="renderDateViewCalendar");const ec=C.forwardRef(function(t,n){var c;const o=Me(),s=$f(t,"MuiDesktopDatePicker"),i=D({day:Co,month:Co,year:Co},s.viewRenderers),a=D({},s,{closeOnSelect:s.closeOnSelect??!0,viewRenderers:i,format:pl(o,s,!1),yearsPerRow:s.yearsPerRow??4,slots:D({field:Xi},s.slots),slotProps:D({},s.slotProps,{field:u=>{var d;return D({},Gn((d=s.slotProps)==null?void 0:d.field,u),Mi(s))},toolbar:D({hidden:!0},(c=s.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=km({ref:n,props:a,valueManager:xt,valueType:"date",validator:cs,steps:null});return l()});process.env.NODE_ENV!=="production"&&(ec.displayName="DesktopDatePicker");process.env.NODE_ENV!=="production"&&(ec.propTypes={autoFocus:r.bool,className:r.string,closeOnSelect:r.bool,dayOfWeekFormatter:r.func,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableHighlightToday:r.bool,disableOpenPicker:r.bool,disablePast:r.bool,displayWeekNumber:r.bool,fixedWeekNumber:r.number,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),inputRef:Ft,keepOpenDuringFieldFocus:r.bool,label:r.node,loading:r.bool,localeText:r.object,maxDate:r.object,minDate:r.object,monthsPerRow:r.oneOf([3,4]),name:r.string,onAccept:r.func,onChange:r.func,onClose:r.func,onError:r.func,onMonthChange:r.func,onOpen:r.func,onSelectedSectionsChange:r.func,onViewChange:r.func,onYearChange:r.func,open:r.bool,openTo:r.oneOf(["day","month","year"]),orientation:r.oneOf(["landscape","portrait"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,renderLoading:r.func,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableDate:r.func,shouldDisableMonth:r.func,shouldDisableYear:r.func,showDaysOutsideCurrentMonth:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,view:r.oneOf(["day","month","year"]),viewRenderers:r.shape({day:r.func,month:r.func,year:r.func}),views:r.arrayOf(r.oneOf(["day","month","year"]).isRequired),yearsOrder:r.oneOf(["asc","desc"]),yearsPerRow:r.oneOf([3,4])});function TO(e){return Re("MuiDialogContent",e)}Pe("MuiDialogContent",["root","dividers"]);const IO=Pe("MuiDialogTitle",["root"]),EO=e=>{const{classes:t,dividers:n}=e;return Ae({root:["root",n&&"dividers"]},TO,t)},kO=te("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(ct(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${IO.root} + &`]:{paddingTop:0}}}]}))),Zm=C.forwardRef(function(t,n){const o=Je({props:t,name:"MuiDialogContent"}),{className:s,dividers:i=!1,...a}=o,l={...o,dividers:i},c=EO(l);return h.jsx(kO,{className:ue(c.root,s),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Zm.propTypes={children:r.node,classes:r.object,className:r.string,dividers:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function Jm(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function OO(e){const t=yn(e);return t.body===e?Zr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function $r(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Bd(e){return parseFloat(Zr(e).getComputedStyle(e).paddingRight)||0}function _O(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function zd(e,t,n,o,s){const i=[t,n,...o];[].forEach.call(e.children,a=>{const l=!i.includes(a),c=!_O(a);l&&c&&$r(a,s)})}function ga(e,t){let n=-1;return e.some((o,s)=>t(o)?(n=s,!0):!1),n}function PO(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(OO(o)){const a=Jm(Zr(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Bd(o)+a}px`;const l=yn(o).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Bd(c)+a}px`})}let i;if(o.parentNode instanceof DocumentFragment)i=yn(o).body;else{const a=o.parentElement,l=Zr(o);i=(a==null?void 0:a.nodeName)==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:o}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:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function MO(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class DO{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&$r(t.modalRef,!1);const s=MO(n);zd(n,t.mount,t.modalRef,s,!0);const i=ga(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:s}),o)}mount(t,n){const o=ga(this.containers,i=>i.modals.includes(t)),s=this.containers[o];s.restore||(s.restore=PO(s,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const s=ga(this.containers,a=>a.modals.includes(t)),i=this.containers[s];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(o,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&$r(t.modalRef,n),zd(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(s,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&$r(a.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function RO(e){return Re("MuiBackdrop",e)}Pe("MuiBackdrop",["root","invisible"]);const NO=e=>{const{classes:t,invisible:n}=e;return Ae({root:["root",n&&"invisible"]},RO,t)},$O=te("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.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"}}]}),tc=C.forwardRef(function(t,n){const o=Je({props:t,name:"MuiBackdrop"}),{children:s,className:i,component:a="div",invisible:l=!1,open:c,components:u={},componentsProps:d={},slotProps:m={},slots:g={},TransitionComponent:p,transitionDuration:b,...f}=o,y={...o,component:a,invisible:l},x=NO(y),T={transition:p,root:u.Root,...g},S={...d,...m},w={component:a,slots:T,slotProps:S},[E,I]=it("root",{elementType:$O,externalForwardedProps:w,className:ue(x.root,i),ownerState:y}),[R,N]=it("transition",{elementType:Kn,externalForwardedProps:w,ownerState:y});return h.jsx(R,{in:c,timeout:b,...f,...N,children:h.jsx(E,{"aria-hidden":!0,...I,ref:n,children:s})})});process.env.NODE_ENV!=="production"&&(tc.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,components:r.shape({Root:r.elementType}),componentsProps:r.shape({root:r.object}),invisible:r.bool,open:r.bool.isRequired,slotProps:r.shape({root:r.oneOfType([r.func,r.object]),transition:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType,transition:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),TransitionComponent:r.elementType,transitionDuration:r.oneOfType([r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})])});function jO(e){return typeof e=="function"?e():e}function AO(e){return e?e.props.hasOwnProperty("in"):!1}const Wd=()=>{},ks=new DO;function LO(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:s=!1,onTransitionEnter:i,onTransitionExited:a,children:l,onClose:c,open:u,rootRef:d}=e,m=C.useRef({}),g=C.useRef(null),p=C.useRef(null),b=It(p,d),[f,y]=C.useState(!u),x=AO(l);let T=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(T=!1);const S=()=>yn(g.current),w=()=>(m.current.modalRef=p.current,m.current.mount=g.current,m.current),E=()=>{ks.mount(w(),{disableScrollLock:o}),p.current&&(p.current.scrollTop=0)},I=Zo(()=>{const k=jO(t)||S().body;ks.add(w(),k),p.current&&E()}),R=()=>ks.isTopModal(w()),N=Zo(k=>{g.current=k,k&&(u&&R()?E():p.current&&$r(p.current,T))}),j=C.useCallback(()=>{ks.remove(w(),T)},[T]);C.useEffect(()=>()=>{j()},[j]),C.useEffect(()=>{u?I():(!x||!s)&&j()},[u,j,x,s,I]);const V=k=>M=>{var _;(_=k.onKeyDown)==null||_.call(k,M),!(M.key!=="Escape"||M.which===229||!R())&&(n||(M.stopPropagation(),c&&c(M,"escapeKeyDown")))},$=k=>M=>{var _;(_=k.onClick)==null||_.call(k,M),M.target===M.currentTarget&&c&&c(M,"backdropClick")};return{getRootProps:(k={})=>{const M=em(e);delete M.onTransitionEnter,delete M.onTransitionExited;const _={...M,...k};return{role:"presentation",..._,onKeyDown:V(_),ref:b}},getBackdropProps:(k={})=>{const M=k;return{"aria-hidden":!0,...M,onClick:$(M),open:u}},getTransitionProps:()=>{const k=()=>{y(!1),i&&i()},M=()=>{y(!0),a&&a(),s&&j()};return{onEnter:wd(k,(l==null?void 0:l.props.onEnter)??Wd),onExited:wd(M,(l==null?void 0:l.props.onExited)??Wd)}},rootRef:b,portalRef:N,isTopModal:R,exited:f,hasTransition:x}}function VO(e){return Re("MuiModal",e)}Pe("MuiModal",["root","hidden","backdrop"]);const FO=e=>{const{open:t,exited:n,classes:o}=e;return Ae({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},VO,o)},BO=te("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ct(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),zO=te(tc,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),eh=C.forwardRef(function(t,n){const o=Je({name:"MuiModal",props:t}),{BackdropComponent:s=zO,BackdropProps:i,classes:a,className:l,closeAfterTransition:c=!1,children:u,container:d,component:m,components:g={},componentsProps:p={},disableAutoFocus:b=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:y=!1,disablePortal:x=!1,disableRestoreFocus:T=!1,disableScrollLock:S=!1,hideBackdrop:w=!1,keepMounted:E=!1,onClose:I,onTransitionEnter:R,onTransitionExited:N,open:j,slotProps:V={},slots:$={},theme:v,...O}=o,P={...o,closeAfterTransition:c,disableAutoFocus:b,disableEnforceFocus:f,disableEscapeKeyDown:y,disablePortal:x,disableRestoreFocus:T,disableScrollLock:S,hideBackdrop:w,keepMounted:E},{getRootProps:k,getBackdropProps:M,getTransitionProps:_,portalRef:A,isTopModal:B,exited:L,hasTransition:F}=LO({...P,rootRef:n}),W={...P,exited:L},G=FO(W),Q={};if(u.props.tabIndex===void 0&&(Q.tabIndex="-1"),F){const{onEnter:q,onExited:J}=_();Q.onEnter=q,Q.onExited=J}const K={slots:{root:g.Root,backdrop:g.Backdrop,...$},slotProps:{...p,...V}},[Z,se]=it("root",{ref:n,elementType:BO,externalForwardedProps:{...K,...O,component:m},getSlotProps:k,ownerState:W,className:ue(l,G==null?void 0:G.root,!W.open&&W.exited&&(G==null?void 0:G.hidden))}),[Y,z]=it("backdrop",{ref:i==null?void 0:i.ref,elementType:s,externalForwardedProps:K,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:q=>M({...q,onClick:J=>{q!=null&&q.onClick&&q.onClick(J)}}),className:ue(i==null?void 0:i.className,G==null?void 0:G.backdrop),ownerState:W});return!E&&!j&&(!F||L)?null:h.jsx(Xr,{ref:A,container:d,disablePortal:x,children:h.jsxs(Z,{...se,children:[!w&&s?h.jsx(Y,{...z}):null,h.jsx(Qr,{disableEnforceFocus:f,disableAutoFocus:b,disableRestoreFocus:T,isEnabled:B,open:j,children:C.cloneElement(u,Q)})]})})});process.env.NODE_ENV!=="production"&&(eh.propTypes={BackdropComponent:r.elementType,BackdropProps:r.object,children:ds.isRequired,classes:r.object,className:r.string,closeAfterTransition:r.bool,component:r.elementType,components:r.shape({Backdrop:r.elementType,Root:r.elementType}),componentsProps:r.shape({backdrop:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),container:r.oneOfType([sr,r.func]),disableAutoFocus:r.bool,disableEnforceFocus:r.bool,disableEscapeKeyDown:r.bool,disablePortal:r.bool,disableRestoreFocus:r.bool,disableScrollLock:r.bool,hideBackdrop:r.bool,keepMounted:r.bool,onClose:r.func,onTransitionEnter:r.func,onTransitionExited:r.func,open:r.bool.isRequired,slotProps:r.shape({backdrop:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({backdrop:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function WO(e){return Re("MuiDialog",e)}const jr=Pe("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),th=C.createContext({});process.env.NODE_ENV!=="production"&&(th.displayName="DialogContext");const UO=te(tc,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),HO=e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:s,fullScreen:i}=e,a={root:["root"],backdrop:["backdrop"],container:["container",`scroll${me(n)}`],paper:["paper",`paperScroll${me(n)}`,`paperWidth${me(String(o))}`,s&&"paperFullWidth",i&&"paperFullScreen"]};return Ae(a,WO,t)},qO=te(eh,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),YO=te("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${me(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"}}}]}),GO=te(fs,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${me(n.scroll)}`],t[`paperWidth${me(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(ct(({theme:e})=>({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:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${jr.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${jr.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${jr.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),nh=C.forwardRef(function(t,n){const o=Je({props:t,name:"MuiDialog"}),s=Io(),i={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:u,BackdropProps:d,children:m,className:g,disableEscapeKeyDown:p=!1,fullScreen:b=!1,fullWidth:f=!1,maxWidth:y="sm",onClick:x,onClose:T,open:S,PaperComponent:w=fs,PaperProps:E={},role:I="dialog",scroll:R="paper",slots:N={},slotProps:j={},TransitionComponent:V=Kn,transitionDuration:$=i,TransitionProps:v,...O}=o,P={...o,disableEscapeKeyDown:p,fullScreen:b,fullWidth:f,maxWidth:y,scroll:R},k=HO(P),M=C.useRef(),_=ne=>{M.current=ne.target===ne.currentTarget},A=ne=>{x&&x(ne),M.current&&(M.current=null,T&&T(ne,"backdropClick"))},B=il(l),L=C.useMemo(()=>({titleId:B}),[B]),F={transition:V,...N},W={transition:v,paper:E,backdrop:d,...j},G={slots:F,slotProps:W},[Q,K]=it("root",{elementType:qO,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:P,className:ue(k.root,g),ref:n}),[Z,se]=it("backdrop",{elementType:UO,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:P,className:k.backdrop}),[Y,z]=it("paper",{elementType:GO,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:P,className:k.paper,additionalProps:{elevation:24,role:I,"aria-describedby":a,"aria-labelledby":B,"aria-modal":c,tabIndex:-1,[La]:""}}),[q,J]=it("container",{elementType:YO,externalForwardedProps:G,ownerState:P,className:k.container}),[U,ce]=it("transition",{elementType:Kn,externalForwardedProps:G,ownerState:P,additionalProps:{appear:!0,in:S,timeout:$,role:"presentation"}});return h.jsx(Q,{closeAfterTransition:!0,slots:{backdrop:Z},slotProps:{backdrop:{transitionDuration:$,as:u,...se}},disableEscapeKeyDown:p,onClose:T,open:S,onClick:A,...K,...O,children:h.jsx(U,{...ce,children:h.jsx(q,{onMouseDown:_,...J,children:h.jsx(Y,{as:w,...z,children:h.jsx(th.Provider,{value:L,children:m})})})})})});process.env.NODE_ENV!=="production"&&(nh.propTypes={"aria-describedby":r.string,"aria-labelledby":r.string,"aria-modal":r.oneOfType([r.oneOf(["false","true"]),r.bool]),BackdropComponent:r.elementType,BackdropProps:r.object,children:r.node,classes:r.object,className:r.string,disableEscapeKeyDown:r.bool,fullScreen:r.bool,fullWidth:r.bool,maxWidth:r.oneOfType([r.oneOf(["xs","sm","md","lg","xl",!1]),r.string]),onClick:r.func,onClose:r.func,open:r.bool.isRequired,PaperComponent:r.elementType,PaperProps:r.object,role:r.oneOf(["alertdialog","dialog"]),scroll:r.oneOf(["body","paper"]),slotProps:r.shape({backdrop:r.oneOfType([r.func,r.object]),container:r.oneOfType([r.func,r.object]),paper:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object]),transition:r.oneOfType([r.func,r.object])}),slots:r.shape({backdrop:r.elementType,container:r.elementType,paper:r.elementType,root:r.elementType,transition:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),TransitionComponent:r.elementType,transitionDuration:r.oneOfType([r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})]),TransitionProps:r.object});const KO=te(nh,{slot:"internal"})({[`& .${jr.container}`]:{outline:0},[`& .${jr.paper}`]:{outline:0,minWidth:Fi}}),XO=te(Zm,{slot:"internal"})({"&:first-of-type":{padding:0}});function QO(e){var c,u;const{children:t,slots:n,slotProps:o}=e,{open:s}=Eo(),{dismissViews:i,onPopperExited:a}=at(),l=(n==null?void 0:n.dialog)??KO;return h.jsx(l,D({open:s,onClose:()=>{i(),a==null||a()}},o==null?void 0:o.dialog,{PaperComponent:n==null?void 0:n.mobilePaper,slots:D({transition:(n==null?void 0:n.mobileTransition)??Kn},(c=o==null?void 0:o.dialog)==null?void 0:c.slots),slotProps:D({transition:o==null?void 0:o.mobileTransition,paper:o==null?void 0:o.mobilePaper},(u=o==null?void 0:o.dialog)==null?void 0:u.slotProps),children:h.jsx(XO,{children:t})}))}const ZO=["props","steps"],JO=["ownerState"],oh=e=>{var I;let{props:t,steps:n}=e,o=Ce(e,ZO);const{slots:s,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=Em({steps:n}),{providerProps:d,renderCurrentView:m,ownerState:g}=pm(D({},o,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"mobile",getStepNavigation:u})),p=d.privateContextValue.labelId,b=((I=i==null?void 0:i.toolbar)==null?void 0:I.hidden)??!1,f=s.field,y=Le({elementType:f,externalSlotProps:i==null?void 0:i.field,externalForwardedProps:lm(t),additionalProps:D({},b&&{id:p}),ownerState:g}),x=Ce(y,JO),T=s.layout??Bi;let S=p;b&&(a?S=`${p}-label`:S=void 0);const w=D({},i,{toolbar:D({},i==null?void 0:i.toolbar,{titleId:p}),mobilePaper:D({"aria-labelledby":S},i==null?void 0:i.mobilePaper)}),E=()=>h.jsxs(Mf,D({},d,{children:[h.jsx(f,D({},x,{slots:D({},s,x.slots),slotProps:D({},w,x.slotProps),inputRef:l})),h.jsx(QO,{slots:s,slotProps:w,children:h.jsx(T,D({},w==null?void 0:w.layout,{slots:s,slotProps:w,children:m()}))})]}));return process.env.NODE_ENV!=="production"&&(E.displayName="renderPicker"),{renderPicker:E}},nc=C.forwardRef(function(t,n){var c;const o=Me(),s=$f(t,"MuiMobileDatePicker"),i=D({day:Co,month:Co,year:Co},s.viewRenderers),a=D({},s,{viewRenderers:i,format:pl(o,s,!1),slots:D({field:Xi},s.slots),slotProps:D({},s.slotProps,{field:u=>{var d;return D({},Gn((d=s.slotProps)==null?void 0:d.field,u),Mi(s))},toolbar:D({hidden:!1},(c=s.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=oh({ref:n,props:a,valueManager:xt,valueType:"date",validator:cs,steps:null});return l()});process.env.NODE_ENV!=="production"&&(nc.displayName="MobileDatePicker");process.env.NODE_ENV!=="production"&&(nc.propTypes={autoFocus:r.bool,className:r.string,closeOnSelect:r.bool,dayOfWeekFormatter:r.func,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableHighlightToday:r.bool,disableOpenPicker:r.bool,disablePast:r.bool,displayWeekNumber:r.bool,fixedWeekNumber:r.number,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),inputRef:Ft,keepOpenDuringFieldFocus:r.bool,label:r.node,loading:r.bool,localeText:r.object,maxDate:r.object,minDate:r.object,monthsPerRow:r.oneOf([3,4]),name:r.string,onAccept:r.func,onChange:r.func,onClose:r.func,onError:r.func,onMonthChange:r.func,onOpen:r.func,onSelectedSectionsChange:r.func,onViewChange:r.func,onYearChange:r.func,open:r.bool,openTo:r.oneOf(["day","month","year"]),orientation:r.oneOf(["landscape","portrait"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,renderLoading:r.func,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableDate:r.func,shouldDisableMonth:r.func,shouldDisableYear:r.func,showDaysOutsideCurrentMonth:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,view:r.oneOf(["day","month","year"]),viewRenderers:r.shape({day:r.func,month:r.func,year:r.func}),views:r.arrayOf(r.oneOf(["day","month","year"]).isRequired),yearsOrder:r.oneOf(["asc","desc"]),yearsPerRow:r.oneOf([3,4])});const e_=["desktopModeMediaQuery"],oc=C.forwardRef(function(t,n){const o=ke({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:s=am}=o,i=Ce(o,e_);return cl(s,{defaultMatches:!0})?h.jsx(ec,D({ref:n},i)):h.jsx(nc,D({ref:n},i))});process.env.NODE_ENV!=="production"&&(oc.displayName="DatePicker");process.env.NODE_ENV!=="production"&&(oc.propTypes={autoFocus:r.bool,className:r.string,closeOnSelect:r.bool,dayOfWeekFormatter:r.func,defaultValue:r.object,desktopModeMediaQuery:r.string,disabled:r.bool,disableFuture:r.bool,disableHighlightToday:r.bool,disableOpenPicker:r.bool,disablePast:r.bool,displayWeekNumber:r.bool,fixedWeekNumber:r.number,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),inputRef:Ft,keepOpenDuringFieldFocus:r.bool,label:r.node,loading:r.bool,localeText:r.object,maxDate:r.object,minDate:r.object,monthsPerRow:r.oneOf([3,4]),name:r.string,onAccept:r.func,onChange:r.func,onClose:r.func,onError:r.func,onMonthChange:r.func,onOpen:r.func,onSelectedSectionsChange:r.func,onViewChange:r.func,onYearChange:r.func,open:r.bool,openTo:r.oneOf(["day","month","year"]),orientation:r.oneOf(["landscape","portrait"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,renderLoading:r.func,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableDate:r.func,shouldDisableMonth:r.func,shouldDisableYear:r.func,showDaysOutsideCurrentMonth:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,view:r.oneOf(["day","month","year"]),viewRenderers:r.shape({day:r.func,month:r.func,year:r.func}),views:r.arrayOf(r.oneOf(["day","month","year"]).isRequired),yearsOrder:r.oneOf(["asc","desc"]),yearsPerRow:r.oneOf([3,4])});function t_({className:e,style:t}){return h.jsxs("svg",{className:e,style:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[h.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),h.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),h.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),h.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]})}const n_="DatePicker-module__layoutOverride___X9yaM",o_="DatePicker-module__root___6XvRT",r_="DatePicker-module__field___SI6Zh",s_="DatePicker-module__dropdown___wjt08",fo={layoutOverride:n_,root:o_,field:r_,dropdown:s_},Ud="MM/DD/YY";function Lo(e){return e?gt(e):null}const rh=H.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:g,error:p,required:b,id:f,className:y,style:x,disabled:T,readOnly:S,readOnlyComponent:w,emptyValueComponent:E,value:I,defaultValue:R,onChange:N,minDate:j,maxDate:V,slots:$,slotProps:v,...O}=t,P=ve(O,o),[k,M]=H.useState(()=>Lo(I)??Lo(R)??null);H.useEffect(()=>{I!==void 0&&M(Lo(I))},[I]);const _=y?`${fo.layoutOverride} ${y}`:fo.layoutOverride,A=W=>{M(W),N==null||N(W?W.toDate():null)},B=(()=>{var G;return(G=Lo(I!==void 0?I:R))==null?void 0:G.format(Ud)})(),L=v!=null&&v.field&&typeof v.field=="object"?v.field:void 0,F=v!=null&&v.desktopPaper&&typeof v.desktopPaper=="object"?v.desktopPaper:void 0;return h.jsx(Vt,{ref:n,className:_,style:x,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:g,error:p,required:b,id:f,readOnly:S,readOnlyComponent:w,emptyValueComponent:E||void 0,readOnlyType:"text",readOnlyValue:B,readOnlyNativeProps:t,activeComponent:h.jsx("div",{className:fo.root,"data-error":p?"true":void 0,children:h.jsx(as,{dateAdapter:Cf,children:h.jsx(oc,{...P,value:k,onChange:A,disabled:T,format:Ud,minDate:Lo(j)??void 0,maxDate:Lo(V)??void 0,slots:{openPickerIcon:t_,...$},slotProps:{...v,field:{openPickerButtonPosition:"start",...L,className:L!=null&&L.className?`${fo.field} ${L.className}`:fo.field},desktopPaper:{...F,className:F!=null&&F.className?`${fo.dropdown} ${F.className}`:fo.dropdown}}})})})})});rh.displayName="DatePicker";const i_="Dropdown-module__layoutOverride___FNcvP",a_="Dropdown-module__root___uVyL0",l_="Dropdown-module__input___dK4dN",c_="Dropdown-module__dropdown___gG-Sw",u_="Dropdown-module__option___nAGU-",kt={layoutOverride:i_,root:a_,input:l_,dropdown:c_,option:u_},sh=H.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",containerWidth:i,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:u,onLabelEditClick:d,label:m,assistiveText:g,assistiveWithIcon:p,error:b,required:f,withAsterisk:y,id:x,className:T,style:S,disabled:w,readOnly:E,readOnlyComponent:I,emptyValueComponent:R,value:N,defaultValue:j,data:V,searchable:$,clearable:v,...O}=t,P=ve(O,o),k=P;delete k.size,delete k.variant;const M={...S||{},width:i||"100%"},_=T?`${kt.layoutOverride} ${T}`:kt.layoutOverride,A=()=>V?V.map((B,L)=>typeof B=="string"?h.jsx(ye.MenuItem,{value:B,className:kt.option,"data-selected":B===(N??j)?"true":void 0,children:B},`${B}-${L}`):h.jsx(ye.MenuItem,{value:B.value,disabled:B.disabled,className:kt.option,"data-selected":B.value===(N??j)?"true":void 0,children:B.label},`${B.value}-${L}`)):null;return h.jsx(Vt,{className:_,style:M,controlMaxWidth:"var(--dropdown-control-max-width)",controlMinWidth:"var(--dropdown-control-min-width)",overStyled:o,formLayout:s,labelSize:a,labelAlignment:l,labelOptionalText:c,labelWithEditIcon:u,onLabelEditClick:d,label:m,assistiveText:g,assistiveWithIcon:p,error:!!b,required:f,id:x,readOnly:E,readOnlyComponent:I,emptyValueComponent:R,readOnlyType:"text",readOnlyValue:N!==void 0?String(N):j?String(j):void 0,readOnlyNativeProps:t,activeComponent:h.jsx(ye.Select,{ref:n,disabled:w,value:N,defaultValue:j,error:!!b,required:f,displayEmpty:!0,className:kt.root,classes:{select:kt.input,icon:kt.icon},MenuProps:{classes:{paper:kt.dropdown}},"data-disabled":w?"true":void 0,"data-error":b?"true":void 0,inputProps:{"data-disabled":w?"true":void 0,"data-error":b?"true":void 0,...k.inputProps},...P,children:A()})})});sh.displayName="Dropdown";const d_="FileInput-module__layoutOverride___HIOY6",p_="FileInput-module__root___UvQj-",f_="FileInput-module__leadingIcon___z75c4",m_="FileInput-module__content___Udsvh",h_="FileInput-module__value___RX33R",g_="FileInput-module__chipRow___My6TF",b_="FileInput-module__chipWrapper___q2CDy",y_="FileInput-module__trailingIcon___odGPm",wn={layoutOverride:d_,root:p_,leadingIcon:f_,content:m_,value:h_,chipRow:g_,chipWrapper:b_,trailingIcon:y_},v_="_root_1qhn7_3",x_="_contents_1qhn7_18",Vo={root:v_,contents:x_},rc=H.forwardRef(function({layer:e,contentsOnly:t,children:n,className:o,style:s,...i},a){const l=t?o?`${Vo.root} ${Vo.contents} ${o}`:`${Vo.root} ${Vo.contents}`:o?`${Vo.root} ${o}`:Vo.root;return h.jsx("div",{ref:a,className:l,style:s,...t?{}:{"data-recursica-layer":String(e)},...i,children:n})});rc.displayName="Layer";const sc=({emptyText:e="N/A"})=>h.jsx(H.Fragment,{children:e});sc.displayName="EmptyValueRenderer";sc.check=e=>e==null||e===""||Array.isArray(e)&&e.length===0;const C_={BASE_URL:"/",DEV:!1,MODE:"library",PROD:!0,SSR:!1,VITE_PLUGIN_MODE:"production",VITE_PLUGIN_PHRASE:"recursica_plugin_@K9mX7pQw2VbN8fRt3LzY6HjE4CuA5DsG1WvM9nP0XcB7",VITE_PLUGIN_PHRASE_TEST:"recursica_plugin_@19866374",VITE_RECURSICA_API_TEST:"https://dev-api.recursica.com",VITE_RECURSICA_API_URL:"https://api.recursica.com",VITE_RECURSICA_UI_URL:"https://api.recursica.com"},Zn=(()=>{try{if(typeof process<"u"&&process.env&&process.env.NODE_ENV)return process.env.NODE_ENV!=="production"}catch{}try{if({url:typeof document>"u"?require("url").pathToFileURL(__filename).href:na&&na.tagName.toUpperCase()==="SCRIPT"&&na.src||new URL("mui-adapter.cjs",document.baseURI).href}&&C_)return!0}catch{}if(typeof window<"u"){const e=window.location.hostname;return e==="localhost"||e==="127.0.0.1"||e.endsWith(".local")}return!1})(),za=new Set;let Bn=!1;function ih(e){if(!Zn)return console.warn("[Recursica] overStyled highlight is disabled in production builds."),!1;if(Bn=e!==void 0?e:!Bn,typeof document<"u"){const t=document.documentElement,n=Bn?"0 0 0 2px cyan":"none";t.style.setProperty("--recursica-over-styled-shadow",n),console.log(`[Recursica] Highlight outlines toggled: ${Bn?"ACTIVE (0 0 0 2px cyan)":"INACTIVE"}`)}else console.warn("[Recursica] document is undefined. Cannot set CSS property.");return za.forEach(t=>t()),Bn}function w_(){return Zn&&Bn}function ah(){const[e,t]=H.useState(Bn);return H.useEffect(()=>{if(!Zn)return;ic(),ac();const n=()=>t(Bn);return za.add(n),()=>{za.delete(n)}},[]),Zn&&e}function ic(){if(!Zn)return;if(typeof document>"u"){console.warn("[Recursica] document is undefined. Cannot inject overStyled styles.");return}const e="recursica-over-styled-styles";let t=document.getElementById(e);t||(t=document.createElement("style"),t.id=e,t.textContent=`
195
+ :root {
196
+ --recursica-over-styled-shadow: none;
197
+ }
198
+ .recursica-over-styled {
199
+ display: contents !important;
200
+ }
201
+ .recursica-over-styled > * {
202
+ box-shadow: var(--recursica-over-styled-shadow) !important;
203
+ }
204
+ `,document.head.appendChild(t))}function ac(){if(!Zn)return;if(typeof window>"u"){console.warn("[Recursica] window is undefined. Cannot register console command.");return}const e=t=>{try{t.recursica=t.recursica||{},t.recursica.toggleOverStyled=()=>`[Recursica] Overstyled outline highlight is now: ${ih()?"ON (cyan 2px box shadow)":"OFF"}`}catch{}};e(window),window.parent&&window.parent!==window&&e(window.parent)}const Hd="data-recursica-theme";function S_({children:e,theme:t="light",initLayer0:n=!0}){return H.useEffect(()=>{const o=document.documentElement;return o.setAttribute(Hd,t),()=>{o.removeAttribute(Hd)}},[t]),H.useEffect(()=>{ic(),ac()},[]),n?h.jsx(rc,{layer:0,children:e}):h.jsx(h.Fragment,{children:e})}const T_=["Accordion","AssistiveElement","Autocomplete","Avatar","Badge","Box","Breadcrumb","Button","Card","Checkbox","CheckboxGroup","Chip","Container","DatePicker","Dropdown","EmptyValueRenderer","FileInput","FileUpload","Flex","FormControlLayout","FormControlWrapper","Grid","Group","HoverCard","Label","Layer","Link","Loader","Menu","Modal","NumberInput","Pagination","Panel","Popover","Radio","ReadOnlyField","SegmentedControl","Slider","Stack","Stepper","Switch","Table","Tabs","Text","TextArea","TextField","TimePicker","Timeline","Title","Toast","Tooltip","TransferList","Tree","Typography"],I_=(e,t)=>{const n=document.activeElement;return new Promise((o,s)=>{if(t&&t.current){const i=document.createElement("textarea");i.readOnly=!0,i.defaultValue=e,t.current.appendChild(i),i.select();const a=document.execCommand("copy");t.current.removeChild(i),n&&n.focus(),a?o():s(new Error("Failed to copy"))}else s(new Error("Copy area reference is not defined"))})};function lc(e,t){const n=(t??"").split(",").map(i=>i.trim().toLowerCase()).filter(Boolean);if(n.length===0)return!0;const o=e.name.toLowerCase(),s=e.type.toLowerCase();return n.some(i=>i.startsWith(".")?o.endsWith(i):i.endsWith("/*")?s.startsWith(i.slice(0,-1)):s===i)}function Ie(e){if(!Zn||typeof e!="function"&&!(e&&e.$$typeof))return e;const t=H.forwardRef((o,s)=>{const{overStyled:i}=o,a=ah(),l=H.createElement(e,{...o,ref:s});return i&&a?h.jsx("div",{className:"recursica-over-styled",children:l}):l});t.displayName=e.displayName||e.name||"Component";const n=Object.keys(e);for(const o of n){if(o==="render"||o==="$$typeof")continue;const s=e[o];(typeof s=="function"||s&&s.$$typeof)&&o[0]===o[0].toUpperCase()?t[o]=Ie(s):t[o]=s}return t}function E_(){return h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[h.jsx("path",{d:"M12 3v12"}),h.jsx("path",{d:"M7 8l5-5 5 5"}),h.jsx("path",{d:"M4 21h16"})]})}function k_(){return h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[h.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),h.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}const lh=H.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:d,label:m,assistiveText:g,assistiveWithIcon:p,error:b,required:f,withAsterisk:y,id:x,className:T,style:S,disabled:w,readOnly:E,files:I,onFilesAdded:R,onFileRemove:N,accept:j,multiple:V=!1,maxSize:$,maxFiles:v,onFilesRejected:O,invalidFileTypeMessage:P="File type not accepted",maxFilesMessage:k=V?`Maximum of ${v} files allowed`:"Only one file is allowed",icon:M,placeholder:_="Select a file...",browseLabel:A="Choose file",removeFileLabel:B="Remove",clearLabel:L="Clear",...F}=t,G=ve(F,o),Q=!w&&!E,K=!!I&&I.length>0,Z=H.useRef(null),[se,Y]=H.useState(!1),[z,q]=H.useState(!1),J=Te=>{if(!Q)return;const et=Array.from(Te);if(et.length===0)return;const tt=V?v:1,ut=V?(I==null?void 0:I.length)??0:0,ot=[],nt=[];let io=!1,Ne=!1;for(const Ct of et){const en=!lc(Ct,j);en&&(io=!0);const zt=$!==void 0&&Ct.size>$,_o=tt!==void 0&&ut+ot.length>=tt;_o&&(Ne=!0),(en||zt||_o?nt:ot).push(Ct)}Y(io),q(Ne),ot.length>0&&(R==null||R(ot)),nt.length>0&&(O==null||O(nt))},U=H.useRef(0),[ce,ne]=H.useState(!1),de=Te=>{Te.preventDefault(),U.current+=1,ne(!0)},fe=Te=>{Te.preventDefault(),U.current-=1,U.current<=0&&(U.current=0,ne(!1))},ae=Te=>{Te.preventDefault()},oe=Te=>{Te.preventDefault(),U.current=0,ne(!1),J(Te.dataTransfer.files)},he=()=>{var Te;Q&&((Te=Z.current)==null||Te.click())},ee=Te=>{Te.key!=="Enter"&&Te.key!==" "||(Te.preventDefault(),he())},le=Te=>{Te.target.files&&J(Te.target.files),Te.target.value=""},re=()=>{!Q||!I||I.length===0||I.forEach(Te=>N==null?void 0:N(Te.id??Te.file.name))},[xe,we]=H.useState(0),pe=H.useRef([]),Se=H.useRef((I==null?void 0:I.length)??0);H.useEffect(()=>{var et;const Te=(I==null?void 0:I.length)??0;if(Te>0&&Te<Se.current){const tt=Math.min(xe,Te-1);we(tt),(et=pe.current[tt])==null||et.focus()}Se.current=Te},[I]);const Ee=Te=>{var ut;const et=(I==null?void 0:I.length)??0;if(et===0)return;let tt;Te.key==="ArrowRight"||Te.key==="ArrowDown"?tt=(xe+1)%et:(Te.key==="ArrowLeft"||Te.key==="ArrowUp")&&(tt=(xe-1+et)%et),tt!==void 0&&(Te.preventDefault(),Te.stopPropagation(),we(tt),(ut=pe.current[tt])==null||ut.focus())},Ue=b??(se?P:z?k:void 0),_t=T?`${wn.layoutOverride} ${T}`:wn.layoutOverride;return h.jsx(hn,{overStyled:o,className:_t,style:S,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:d,label:m,assistiveText:g,assistiveWithIcon:p,error:Ue,required:f,disabled:w,id:x,controlMaxWidth:"var(--file-input-control-max-width)",controlMinWidth:"var(--file-input-control-min-width)",children:h.jsxs("div",{ref:n,className:wn.root,role:"button","aria-label":A,"aria-disabled":w?"true":void 0,tabIndex:Q?0:-1,"data-disabled":w?"true":void 0,"data-readonly":E?"true":void 0,"data-error":Ue?"true":void 0,"data-dragging":ce?"true":void 0,onClick:Q?he:void 0,onKeyDown:Q?ee:void 0,onDragEnter:Q?de:void 0,onDragLeave:Q?fe:void 0,onDragOver:Q?ae:void 0,onDrop:Q?oe:void 0,...G,children:[h.jsx("span",{className:wn.leadingIcon,"aria-hidden":!0,children:M??h.jsx(E_,{})}),h.jsxs("div",{className:wn.content,children:[!K&&h.jsx("span",{className:wn.value,"data-placeholder":"true",children:_}),K&&h.jsx("div",{className:wn.chipRow,onKeyDown:E?void 0:Ee,children:I.map((Te,et)=>{const tt=Te.id??Te.file.name;return h.jsx("span",{className:wn.chipWrapper,onClick:ut=>ut.stopPropagation(),children:h.jsx(Wr,{tabIndex:-1,removeLabel:E?void 0:B,removeTabIndex:!E&&et===xe?0:-1,removeIconRef:ut=>{pe.current[et]=ut},onRemove:E||w?void 0:()=>N==null?void 0:N(tt),children:Te.file.name})},tt)})})]}),K&&!E&&h.jsx(kn,{overStyled:!0,variant:"text",size:"small",icon:h.jsx(k_,{}),"aria-label":L,className:wn.trailingIcon,disabled:w,onClick:Te=>{Te.preventDefault(),Te.stopPropagation(),re()},onKeyDown:Te=>{Te.key!=="Enter"&&Te.key!==" "||(Te.preventDefault(),Te.stopPropagation(),re())}}),h.jsx("input",{ref:Z,type:"file",hidden:!0,accept:j,multiple:V,disabled:!Q,onChange:le})]})})});lh.displayName="FileInput";const O_="FileUpload-module__layoutOverride___bPpi8",__="FileUpload-module__root___Q-vcm",P_="FileUpload-module__dropzone___jqua0",M_="FileUpload-module__uploadIcon___bb3Nc",D_="FileUpload-module__dropzoneText___L7vS-",R_="FileUpload-module__fileList___XIWLl",Ln={layoutOverride:O_,root:__,dropzone:P_,uploadIcon:M_,dropzoneText:D_,fileList:R_};function N_(){return h.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[h.jsx("path",{d:"M12 3v12"}),h.jsx("path",{d:"M7 8l5-5 5 5"}),h.jsx("path",{d:"M4 21h16"})]})}const ch=H.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:d,label:m,assistiveText:g,assistiveWithIcon:p,error:b,required:f,withAsterisk:y,id:x,className:T,style:S,disabled:w,readOnly:E,files:I,onFilesAdded:R,onFileRemove:N,accept:j,multiple:V=!0,maxSize:$,maxFiles:v,onFilesRejected:O,invalidFileTypeMessage:P="File type not accepted",maxFilesMessage:k=`Maximum of ${v} files allowed`,icon:M,dropzoneLabel:_="Drag and drop files here to upload",browseButtonLabel:A="Browse files",removeFileLabel:B="Remove",...L}=t,W=ve(L,o),G=H.useRef(null),[Q,K]=H.useState(!1),[Z,se]=H.useState(!1),Y=pe=>{if(w)return;const Se=Array.from(pe);if(Se.length===0)return;const Ee=(I==null?void 0:I.length)??0,Ue=[],_t=[];let Te=!1,et=!1;for(const tt of Se){const ut=!lc(tt,j);ut&&(Te=!0);const ot=$!==void 0&&tt.size>$,nt=v!==void 0&&Ee+Ue.length>=v;nt&&(et=!0),(ut||ot||nt?_t:Ue).push(tt)}K(Te),se(et),Ue.length>0&&(R==null||R(Ue)),_t.length>0&&(O==null||O(_t))},z=H.useRef(0),[q,J]=H.useState(!1),U=pe=>{pe.preventDefault(),z.current+=1,J(!0)},ce=pe=>{pe.preventDefault(),z.current-=1,z.current<=0&&(z.current=0,J(!1))},ne=pe=>{pe.preventDefault()},de=pe=>{pe.preventDefault(),z.current=0,J(!1),Y(pe.dataTransfer.files)},fe=()=>{var pe;w||(pe=G.current)==null||pe.click()},ae=pe=>{pe.target.files&&Y(pe.target.files),pe.target.value=""},[oe,he]=H.useState(0),ee=H.useRef([]),le=H.useRef((I==null?void 0:I.length)??0);H.useEffect(()=>{var Se;const pe=(I==null?void 0:I.length)??0;if(pe>0&&pe<le.current){const Ee=Math.min(oe,pe-1);he(Ee),(Se=ee.current[Ee])==null||Se.focus()}le.current=pe},[I]);const re=pe=>{var Ue;const Se=(I==null?void 0:I.length)??0;if(Se===0)return;let Ee;pe.key==="ArrowRight"||pe.key==="ArrowDown"?Ee=(oe+1)%Se:(pe.key==="ArrowLeft"||pe.key==="ArrowUp")&&(Ee=(oe-1+Se)%Se),Ee!==void 0&&(pe.preventDefault(),he(Ee),(Ue=ee.current[Ee])==null||Ue.focus())},xe=b??(Q?P:Z?k:void 0),we=T?`${Ln.layoutOverride} ${T}`:Ln.layoutOverride;return h.jsx(hn,{overStyled:o,className:we,style:S,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:d,label:m,assistiveText:g,assistiveWithIcon:p,error:xe,required:f,disabled:w,id:x,children:h.jsxs("div",{ref:n,className:Ln.root,"data-disabled":w?"true":void 0,"data-error":xe?"true":void 0,...W,children:[!E&&h.jsxs("div",{className:Ln.dropzone,"data-dragging":q?"true":void 0,onDragEnter:w?void 0:U,onDragLeave:w?void 0:ce,onDragOver:w?void 0:ne,onDrop:w?void 0:de,children:[h.jsx("span",{className:Ln.uploadIcon,children:M??h.jsx(N_,{})}),h.jsx("span",{className:Ln.dropzoneText,children:_}),h.jsx(kn,{variant:"outline",disabled:w,onClick:fe,children:A}),h.jsx("input",{ref:G,type:"file",hidden:!0,accept:j,multiple:V,disabled:w,onChange:ae})]}),I&&I.length>0&&(E?h.jsx("div",{className:Ln.fileList,children:I.map(pe=>{const Se=pe.id??pe.file.name;return h.jsx(Wr,{tabIndex:-1,children:pe.file.name},Se)})}):h.jsx("div",{className:Ln.fileList,onKeyDown:re,children:I.map((pe,Se)=>{const Ee=pe.id??pe.file.name;return h.jsx(Wr,{tabIndex:-1,removeLabel:B,removeTabIndex:Se===oe?0:-1,removeIconRef:Ue=>{ee.current[Se]=Ue},onRemove:w?void 0:()=>N==null?void 0:N(Ee),children:pe.file.name},Ee)})}))]})})});ch.displayName="FileUpload";const uh=H.forwardRef(function({children:t,gap:n="rec-default",rowGap:o,columnGap:s,direction:i,align:a,justify:l,wrap:c,...u},d){const m=os(u),g=typeof n=="string"&&n in yt?yt[n]:n,p=typeof o=="string"&&o in yt?yt[o]:o,b=typeof s=="string"&&s in yt?yt[s]:s;return h.jsx(ye.Box,{ref:d,...m,display:"flex",gap:g,rowGap:p,columnGap:b,flexDirection:i,alignItems:a,justifyContent:l,flexWrap:c,children:t})});uh.displayName="Flex";const $_="Grid-module__root___s-qPY",j_="Grid-module__col___tbuNg",A_="Grid-module__hiddenFromXs___Ap3ch",L_="Grid-module__hiddenFromSm___ZD0Wm",V_="Grid-module__hiddenFromMd___O3Zhg",F_="Grid-module__hiddenFromLg___RxDrc",B_="Grid-module__hiddenFromXl___k7ytz",z_="Grid-module__visibleFromSm___w20SX",W_="Grid-module__visibleFromMd___ePFrO",U_="Grid-module__visibleFromLg___L6vtD",H_="Grid-module__visibleFromXl___HLWTL",ln={root:$_,col:j_,hiddenFromXs:A_,hiddenFromSm:L_,hiddenFromMd:V_,hiddenFromLg:F_,hiddenFromXl:B_,visibleFromSm:z_,visibleFromMd:W_,visibleFromLg:U_,visibleFromXl:H_},dh=H.createContext({grow:!1});function cc(e){if(e===void 0||typeof e!="object")return e;const{base:t,...n}=e;return t!==void 0?{xs:t,...n}:n}function qd(e){return e==="auto"?"grow":e==="content"?"auto":e}function q_(e){const t=cc(e);if(t===void 0||typeof t!="object")return qd(t);const n={};return Object.entries(t).forEach(([o,s])=>{n[o]=qd(s)}),n}function Y_(e){return cc(e)}function G_(e){if(e===void 0||typeof e=="number")return e;const t=cc(e);return t.xs??t.sm??t.md??t.lg??t.xl}const K_={xs:ln.hiddenFromXs,sm:ln.hiddenFromSm,md:ln.hiddenFromMd,lg:ln.hiddenFromLg,xl:ln.hiddenFromXl},X_={sm:ln.visibleFromSm,md:ln.visibleFromMd,lg:ln.visibleFromLg,xl:ln.visibleFromXl};function Yd(e){return e==="base"?"xs":e}const ph=H.forwardRef(function({children:t,gap:n="rec-default",columns:o=12,grow:s=!1,justify:i,align:a,style:l,...c},u){const d=os(c),m=typeof n=="string"&&n in yt?yt[n]:n;return h.jsx(dh.Provider,{value:{grow:s},children:h.jsx(ye.Grid,{ref:u,...d,container:!0,columns:o,spacing:m,className:ln.root,style:{justifyContent:i,alignItems:a,...l},children:t})})});ph.displayName="Grid";const uc=H.forwardRef(function({children:t,span:n,offset:o,order:s,visibleFrom:i,hiddenFrom:a,style:l,className:c,...u},d){const{grow:m}=H.useContext(dh),g=os(u),p=G_(s),b=i?X_[Yd(i)]:a?K_[Yd(a)]:void 0,f=[ln.col,b,c].filter(Boolean).join(" ");return h.jsx(ye.Grid,{ref:d,size:q_(n),offset:Y_(o),className:f,...g,style:{order:p,...m?{flexGrow:1}:{},...l},children:t})});uc.displayName="GridCol";const fh=ph;fh.Col=uc;const mh=H.forwardRef(function({children:t,gap:n="rec-default",rowGap:o,columnGap:s,justify:i,align:a,wrap:l,...c},u){const d=os(c),m=typeof n=="string"&&n in yt?yt[n]:n,g=typeof o=="string"&&o in yt?yt[o]:o,p=typeof s=="string"&&s in yt?yt[s]:s;return h.jsx(ye.Stack,{ref:u,...d,direction:"row",flexWrap:l||"wrap",justifyContent:i,alignItems:a,spacing:m,sx:{...g?{rowGap:g}:{},...p?{columnGap:p}:{}},children:t})});mh.displayName="Group";const Q_="HoverCard-module__dropdown___FBPFW",Z_="HoverCard-module__arrow___S9AkE",Gd={dropdown:Q_,arrow:Z_},hh=function({overStyled:t=!1,withBeak:n=!0,position:o="top",openDelay:s=0,closeDelay:i=150,disabled:a=!1,offset:l=5,children:c,...u}){const d=ve(u,t),m={tooltip:Gd.dropdown,arrow:Gd.arrow},g=d.classNames;if(g&&typeof g=="object"&&!Array.isArray(g)){const f=g;Object.keys(f).forEach(y=>{m[y]?m[y]=`${m[y]} ${f[y]}`:m[y]=f[y]})}let p=null,b=null;return H.Children.forEach(c,f=>{var y,x;if(H.isValidElement(f)){const T=f;((y=T.type)==null?void 0:y.displayName)==="HoverCardTarget"?p=T.props.children:((x=T.type)==null?void 0:x.displayName)==="HoverCardDropdown"&&(b=T.props.children)}}),p||(p=h.jsx("div",{})),b||(b=h.jsx("div",{})),h.jsx(ye.Tooltip,{...d,title:b,placement:o,arrow:n,enterDelay:s,leaveDelay:i,disableHoverListener:a,slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,l]}}]}},classes:m,children:H.isValidElement(p)?p:h.jsx("span",{children:p})})};hh.displayName="HoverCard";const gh=function({children:t}){return h.jsx(h.Fragment,{children:t})};gh.displayName="HoverCardTarget";const bh=function({children:t}){return h.jsx(h.Fragment,{children:t})};bh.displayName="HoverCardDropdown";const dc=hh;dc.Target=gh;dc.Dropdown=bh;const J_="Link-module__root___I0VGE",eP="Link-module__iconWrapper___W-LlF",tP="Link-module__labelText___wSvUy",Os={root:J_,iconWrapper:eP,labelText:tP},yh=H.forwardRef(function({icon:t,children:n,overStyled:o=!1,...s},i){const a=ve(s,o),c=a.className,u=c?`${Os.root} ${c}`:Os.root;return h.jsxs(ye.Link,{ref:i,className:u,underline:"none",...t?{"data-has-icon":""}:{},...a,children:[t&&h.jsx("span",{className:Os.iconWrapper,"aria-hidden":!0,children:t}),h.jsx("span",{className:Os.labelText,children:n})]})});yh.displayName="Link";const nP="Menu-module__dropdown___j4xuA",oP="Menu-module__item___NMXha",rP="Menu-module__divider___wPiNq",Ar={dropdown:nP,item:oP,divider:rP},vh=H.forwardRef(function({overStyled:t=!1,className:n,...o},s){const i=ve(o,t);return h.jsx(ye.Menu,{ref:s,...i,className:`${Ar.dropdown} ${n||""}`,classes:{paper:Ar.dropdown,list:Ar.dropdown}})});vh.displayName="Menu";const xh=H.forwardRef(function({overStyled:t=!1,className:n,...o},s){const i=ve(o,t);return h.jsx(ye.MenuItem,{ref:s,className:`${Ar.item} ${n||""}`,...i})});xh.displayName="MenuItem";const Ch=H.forwardRef(function({overStyled:t=!1,className:n,...o},s){const i=ve(o,t);return h.jsx(ye.Divider,{ref:s,className:`${Ar.divider} ${n||""}`,...i})});Ch.displayName="MenuDivider";const sP="Modal-module__root___ytPLl",iP="Modal-module__inner___SSUJE",aP="Modal-module__content___dWO-B",lP="Modal-module__header___ILG9i",cP="Modal-module__title___A5OeE",uP="Modal-module__scrollArea___KD-hm",dP="Modal-module__footer___rro2w",pP="Modal-module__close___-ER1C",In={root:sP,inner:iP,content:aP,header:lP,title:cP,scrollArea:uP,footer:dP,close:pP},fP=()=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:h.jsx("path",{d:"M18 6L6 18M6 6l12 12"})}),wh=H.forwardRef(function({overStyled:t=!1,opened:n=!1,withCloseButton:o=!0,title:s,children:i,onClose:a,className:l,...c},u){const d=ve(c,t);let m=null;const g=[];return H.Children.forEach(i,p=>{var b;H.isValidElement(p)&&(p.type===fc||((b=p.type)==null?void 0:b.displayName)==="Modal.Footer")?m=p:g.push(p)}),h.jsxs(ye.Dialog,{ref:u,...d,className:`${In.root} ${l||""}`,classes:{paper:In.inner},open:n||d.open||!1,onClose:a,children:[(s||o)&&h.jsxs("div",{className:In.header,children:[s&&h.jsx("div",{className:In.title,children:s}),o&&h.jsx(ye.IconButton,{onClick:p=>a==null?void 0:a(p,"backdropClick"),className:In.close,children:h.jsx(fP,{})})]}),h.jsx(pc,{children:g}),m]})});wh.displayName="Modal";const Sh=H.forwardRef(function({overStyled:t=!1,className:n,...o},s){const i=ve(o,t);return h.jsx(ye.DialogTitle,{ref:s,className:`${In.title} ${n||""}`,...i})});Sh.displayName="Modal.Title";const pc=H.forwardRef(function({overStyled:t=!1,className:n,children:o,...s},i){const a=ve(s,t),l=H.useRef(null),[c,u]=H.useState(!1),[d,m]=H.useState(!1),g=H.useCallback(()=>{if(l.current){const{scrollTop:p,scrollHeight:b,clientHeight:f}=l.current;u(p>0),m(Math.ceil(p+f)<b)}},[]);return H.useEffect(()=>(g(),window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)),[g,o]),h.jsx(ye.DialogContent,{ref:p=>{typeof i=="function"?i(p):i&&(i.current=p),l&&(l.current=p)},onScroll:()=>g(),"data-scrolled-top":c||void 0,"data-scrolled-bottom":d||void 0,className:`${In.content} ${In.scrollArea} ${n||""}`,...a,children:o})});pc.displayName="Modal.Body";const fc=H.forwardRef(function({overStyled:t=!1,className:n,...o},s){const i=ve(o,t);return h.jsx(ye.DialogActions,{ref:s,className:`${In.footer} ${n||""}`,...i})});fc.displayName="Modal.Footer";const Zi=wh;Zi.Title=Sh;Zi.Body=pc;Zi.Footer=fc;const mP="NumberInput-module__layoutOverride___5-9T4",hP="NumberInput-module__root___C6rAn",gP="NumberInput-module__input___Ss8p7",bP="NumberInput-module__section___MijP0",yP="NumberInput-module__controls___8UfQ2",vP="NumberInput-module__control___Qre9-",mo={layoutOverride:mP,root:hP,input:gP,section:bP,controls:yP,control:vP},Th=H.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:g,error:p,required:b,id:f,className:y,style:x,disabled:T,readOnly:S,readOnlyComponent:w,emptyValueComponent:E,value:I,defaultValue:R,leftSection:N,rightSection:j,min:V,max:$,step:v,hideControls:O=!1,...P}=t,k=ve(P,o),M=k;delete M.size,delete M.variant,delete M.radius;const _={wrapper:mo.root,input:mo.input,section:mo.section,controls:mo.controls,control:mo.control},A=y?`${mo.layoutOverride} ${y}`:mo.layoutOverride,B=N?h.jsx("div",{className:_.section,"data-position":"left",children:N}):void 0,L=j?h.jsx("div",{className:_.section,"data-position":"right",children:j}):void 0;return h.jsx(Vt,{className:A,style:x,controlMaxWidth:"var(--number-input-control-max-width)",controlMinWidth:"var(--number-input-control-min-width)",overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:g,error:p,required:b,id:f,readOnly:S,readOnlyComponent:w,emptyValueComponent:E,readOnlyType:"text",readOnlyValue:I!==void 0?I==null?void 0:I.toString():R==null?void 0:R.toString(),readOnlyNativeProps:t,activeComponent:h.jsx(ye.TextField,{ref:n,...k,classes:_,disabled:T,value:I,defaultValue:R,label:void 0,error:void 0,required:void 0,InputProps:{startAdornment:B,endAdornment:L},inputProps:{min:V,max:$,step:v,...M.inputProps}})})});Th.displayName="NumberInput";const xP="Pagination-module__root___ITRjt",Vn={root:xP};function CP(e){const t={root:Vn.root,ul:Vn.ul},n=e.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const i=n;t.root=i.root?`${Vn.root} ${i.root}`:Vn.root,t.ul=i.ul?`${Vn.ul} ${i.ul}`:Vn.ul}const o=e.className;return{className:o?`${Vn.root} ${o}`:Vn.root,classNames:t}}const Ih=H.forwardRef(function(t,n){const{overStyled:o=!1,withLabels:s,total:i,withEdges:a,withControls:l,...c}=t,u=ve(c,o),d=CP(u);return h.jsx("div",{ref:n,className:d.className,children:h.jsx(ye.Pagination,{...u,count:i,showFirstButton:a,showLastButton:a,hidePrevButton:l===!1?!0:void 0,hideNextButton:l===!1?!0:void 0,classes:d.classNames})})});Ih.displayName="Pagination";const wP=Ih,SP="Panel-module__content___wdGo-",TP="Panel-module__inner___ruA2b",IP="Panel-module__header___o7SiC",EP="Panel-module__title___181OP",kP="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP",OP="Panel-module__body___SEC3T",_P="Panel-module__footer___t6-hz",Fn={content:SP,inner:TP,header:IP,title:EP,titleTruncate:kP,body:OP,footer:_P},Eh=function({overStyled:t=!1,placement:n="right",keepMounted:o=!0,wrapHeaderText:s=!1,opened:i,...a}){const l=ve(a,t),c={content:Fn.content,header:Fn.header,title:s?Fn.titleTruncate:Fn.title,body:Fn.body,inner:Fn.inner},u=l.classNames;if(u&&typeof u=="object"&&!Array.isArray(u)){const d=u;Object.keys(d).forEach(m=>{c[m]?c[m]=`${c[m]} ${d[m]}`:c[m]=d[m]})}return h.jsx(ye.Drawer,{anchor:n,keepMounted:o,open:!!i,...l,classes:c})};Eh.displayName="Panel";const mc=H.forwardRef(function({overStyled:t=!1,...n},o){const s=ve(n,t),i=s.className,a=i?`${Fn.footer} ${i}`:Fn.footer;return h.jsx("div",{ref:o,...s,className:a})});mc.displayName="PanelFooter";const kh=Eh;kh.Footer=mc;const PP="Popover-module__dropdown___svhS6",MP="Popover-module__arrow___5A-0e",Kd={dropdown:PP,arrow:MP},Oh=function({overStyled:t=!1,withBeak:n=!0,position:o="top",defaultOpened:s=!1,opened:i,onChange:a,offset:l=8,width:c,children:u,...d}){const m=ve(d,t),g={tooltip:Kd.dropdown,arrow:Kd.arrow},p=m.classes;if(p&&typeof p=="object"&&!Array.isArray(p)){const V=p;Object.keys(V).forEach($=>{g[$]=g[$]?`${g[$]} ${V[$]}`:V[$]})}const[b,f]=H.useState(s),y=i!==void 0,x=y?i:b,T=V=>{y||f(V),a==null||a(V)};let S=null,w=null;if(H.Children.forEach(u,V=>{var $,v;if(H.isValidElement(V)){const O=V;(($=O.type)==null?void 0:$.displayName)==="PopoverTarget"?S=O.props.children:((v=O.type)==null?void 0:v.displayName)==="PopoverDropdown"&&(w=O.props.children)}}),!S)throw new Error("Popover requires a <Popover.Target> child.");if(!w)throw new Error("Popover requires a <Popover.Dropdown> child.");const E=H.useRef(null),I=H.useRef(null);H.useEffect(()=>{if(!x)return;const V=$=>{var O,P;const v=$.target;(O=E.current)!=null&&O.contains(v)||(P=I.current)!=null&&P.contains(v)||T(!1)};return document.addEventListener("mousedown",V),()=>document.removeEventListener("mousedown",V)},[x]);const R=V=>{var $,v;H.isValidElement(S)&&((v=($=S.props).onClick)==null||v.call($,V)),T(!x)},N={"aria-haspopup":"dialog","aria-expanded":x,"aria-labelledby":void 0,"aria-label":void 0},j=H.isValidElement(S)?H.cloneElement(S,{onClick:R,ref:E,...N}):h.jsx("span",{onClick:R,ref:E,...N,children:S});return h.jsx(ye.Tooltip,{...m,title:h.jsx("div",{ref:I,children:w}),open:x,onClose:()=>T(!1),placement:o,arrow:n,disableHoverListener:!0,disableFocusListener:!0,disableTouchListener:!0,slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,l]}}]},...c!==void 0?{tooltip:{style:{width:c}}}:{}},classes:g,children:j})};Oh.displayName="Popover";const _h=function({children:t}){return h.jsx(h.Fragment,{children:t})};_h.displayName="PopoverTarget";const Ph=function({children:t}){return h.jsx(h.Fragment,{children:t})};Ph.displayName="PopoverDropdown";const hc=Oh;hc.Target=_h;hc.Dropdown=Ph;const DP="Radio-module__groupRoot___bfUii",RP="Radio-module__root___kAjTD",NP="Radio-module__body___q2Wpj",$P="Radio-module__inner___QaTBB",jP="Radio-module__radio___MfgN-",AP="Radio-module__radioChecked___ZFb28",LP="Radio-module__disabled___0-cna",VP="Radio-module__icon___DWznm",FP="Radio-module__labelWrapper___dB0Gi",BP="Radio-module__label___vAFIP",mt={groupRoot:DP,root:RP,body:NP,inner:$P,radio:jP,radioChecked:AP,disabled:LP,icon:VP,labelWrapper:FP,label:BP},gc=H.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:g,assistiveWithIcon:p,error:b,required:f,id:y,className:x,style:T,children:S,readOnly:w,readOnlyComponent:E,emptyValueComponent:I,value:R,defaultValue:N,onChange:j,...V}=t,$=ve(V,o),v=$;return delete v.size,h.jsx(Vt,{className:x,style:T,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:g,assistiveWithIcon:p,error:b,id:y,readOnly:w&&!!E,readOnlyComponent:E,emptyValueComponent:I,readOnlyType:"text",readOnlyValue:R!==void 0?R:N,readOnlyNativeProps:t,activeComponent:h.jsx(ye.RadioGroup,{ref:n,...$,value:R,defaultValue:N,onChange:j?(O,P)=>j(P):void 0,className:mt.groupRoot,"data-layout":s,children:S})})});gc.displayName="RadioGroup";const zP=({className:e,style:t})=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:e,style:t,children:h.jsx("circle",{cx:"8",cy:"8",r:"5"})}),bc=H.forwardRef(function(t,n){const{overStyled:o=!1,readOnly:s,readOnlyComponent:i,disabled:a,formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,label:m,description:g,error:p,style:b,...f}=t,y=ve(f,o),x=y;delete x.size,delete x.color;const T={root:mt.root,checked:mt.checked,disabled:mt.disabled},S=x.classes;if(S&&typeof S=="object"&&!Array.isArray(S)){const N=S;T.root=N.root?`${mt.root} ${N.root}`:mt.root,T.checked=N.checked?`${mt.checked} ${N.checked}`:mt.checked,T.disabled=N.disabled?`${mt.disabled} ${N.disabled}`:mt.disabled}const w=x.className,E=w?`${mt.root} ${w}`:mt.root;if(s&&i){const N=!!(x.checked??x.defaultChecked),j=i,V=h.jsx(j,{...t,checked:N,label:x.label});return l?h.jsx(Dn,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:V}):h.jsx(h.Fragment,{children:V})}const I=h.jsx(ye.Radio,{ref:n,...y,icon:h.jsx("div",{className:mt.radio}),checkedIcon:h.jsx("div",{className:`${mt.radio} ${mt.radioChecked}`,children:h.jsx(zP,{className:mt.icon})}),className:m?mt.inner:`${E} ${mt.inner}`,classes:T,disabled:s||a,disableRipple:!0,sx:m?{padding:0}:void 0}),R=m?h.jsx("div",{className:E,style:b,children:h.jsxs("div",{className:mt.body,children:[I,h.jsxs("div",{className:mt.labelWrapper,children:[h.jsx("label",{className:mt.label,htmlFor:x.id,"data-disabled":s||a?!0:void 0,children:m}),p?h.jsx(Mn,{assistiveVariant:"error",assistiveWithIcon:!1,children:p}):g&&h.jsx(Mn,{assistiveVariant:"help",assistiveWithIcon:!1,children:g})]})]})}):h.jsx("div",{className:E,style:b,children:I});return l?h.jsx(Dn,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:R}):R});bc.displayName="Radio";bc.Group=gc;const WP="SegmentedControl-module__root___JFRhg",UP="SegmentedControl-module__control___znOdQ",HP="SegmentedControl-module__label___mS17q",sn={root:WP,control:UP,label:HP};function qP(e){const t={root:sn.root,control:sn.control,label:sn.label},n=e.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const i=n;t.root=i.root?`${sn.root} ${i.root}`:sn.root,t.control=i.control?`${sn.control} ${i.control}`:sn.control,t.label=i.label?`${sn.label} ${i.label}`:sn.label}const o=e.className;return{className:o?`${sn.root} ${o}`:sn.root,classNames:t}}const Mh=H.forwardRef(function({overStyled:t=!1,orientation:n="horizontal",fullWidth:o,data:s=[],value:i,onChange:a,...l},c){const u=ve(l,t),d=u;delete d.disabled;const m=qP(d),g=s.length?typeof s[0]=="string"?s[0]:s[0].value:void 0,[p,b]=H.useState(i??g),f=i!==void 0?i:p,y=(x,T)=>{T!==null&&(b(T),a==null||a(T))};return h.jsx(ye.ToggleButtonGroup,{ref:c,...u,className:m.className,classes:m.classNames,orientation:n,fullWidth:o,"data-orientation":n,exclusive:!0,value:f,onChange:y,children:s.map(x=>{const T=typeof x=="string"?x:x.value,S=typeof x=="string"?x:x.label,w=typeof x=="string"?!1:x.disabled;return h.jsx(ye.ToggleButton,{value:T,disabled:w,className:m.classNames.control,children:h.jsx("div",{className:m.classNames.label,children:S})},T)})})});Mh.displayName="SegmentedControl";const YP=Mh,GP="Slider-module__layoutOverride___zYPun",KP="Slider-module__sliderContainer___y8I0J",XP="Slider-module__sliderTrackWrapper___UHpVh",QP="Slider-module__iconWrapper___uqHpC",ZP="Slider-module__sliderRoot___LI86H",JP="Slider-module__sliderTrack___oqnlG",eM="Slider-module__sliderBar___TI4VY",tM="Slider-module__sliderThumb___OFn8p",nM="Slider-module__sliderMark___1lM2B",oM="Slider-module__sliderMarkLabel___MMZrq",rM="Slider-module__sliderTooltip___J1Aqb",sM="Slider-module__minMaxGuide___TaGqz",iM="Slider-module__rightGuideContainer___8dOT8",aM="Slider-module__currentValue___dGV2T",lM="Slider-module__inputField___6x578",cM="Slider-module__readOnlyValue___-ZzMW",We={layoutOverride:GP,sliderContainer:KP,sliderTrackWrapper:XP,iconWrapper:QP,sliderRoot:ZP,sliderTrack:JP,sliderBar:eM,sliderThumb:tM,sliderMark:nM,sliderMarkLabel:oM,sliderTooltip:rM,minMaxGuide:sM,rightGuideContainer:iM,currentValue:aM,inputField:lM,readOnlyValue:cM},uM=({value:e})=>h.jsx("div",{className:We.readOnlyValue,children:e}),Dh=H.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:d,label:m,tooltipLabel:g,assistiveText:p,assistiveWithIcon:b,error:f,required:y,withAsterisk:x,id:T,className:S,style:w,disabled:E,readOnly:I,readOnlyComponent:R,emptyValueComponent:N,value:j,defaultValue:V,icon:$,showInput:v=!1,showMinMaxLabels:O=!0,min:P=0,max:k=100,step:M=1,onChange:_,onChangeEnd:A,...B}=t,[L,F]=H.useState(()=>j!==void 0?Array.isArray(j)?j[0]:j:V!==void 0?Array.isArray(V)?V[0]:V:P),W=j!==void 0?Array.isArray(j)?j[0]:j:L,[G,Q]=H.useState(W.toString());H.useEffect(()=>{Q(W.toString())},[W]);const K=(pe,Se)=>{const Ee=Array.isArray(Se)?Se[0]:Se;j===void 0&&F(Ee),_==null||_(Ee)},Z=pe=>{const Se=pe.target.value;Q(Se);const Ee=parseFloat(Se);if(!isNaN(Ee)){const Ue=Math.max(P,Math.min(k,Ee));K(null,Ue)}},se=()=>{Q(W.toString())},Y=ve(B,o),z=Y;delete z.size,delete z.color,delete z.wrapperProps;const q=H.useRef(!1),[J,U]=H.useState(!1),ce=Y.onMouseDown,ne=Y.onFocus,de=Y.onBlur,fe=Y.onKeyDown,ae=pe=>{q.current=!0,ce==null||ce(pe)},oe=pe=>{U(q.current),q.current=!1,ne==null||ne(pe)},he=pe=>{U(!1),de==null||de(pe)},ee=pe=>{U(!1),fe==null||fe(pe)},le={root:We.sliderRoot,rail:We.sliderTrack,track:We.sliderBar,thumb:We.sliderThumb,mark:We.sliderMark,markLabel:We.sliderMarkLabel,valueLabel:We.sliderTooltip},re=z.classNames;if(re&&typeof re=="object"&&!Array.isArray(re)){const pe=re;le.root=pe.root?`${We.sliderRoot} ${pe.root}`:We.sliderRoot,le.rail=pe.track?`${We.sliderTrack} ${pe.track}`:We.sliderTrack,le.track=pe.bar?`${We.sliderBar} ${pe.bar}`:We.sliderBar,le.thumb=pe.thumb?`${We.sliderThumb} ${pe.thumb}`:We.sliderThumb,le.mark=pe.mark?`${We.sliderMark} ${pe.mark}`:We.sliderMark,le.markLabel=pe.markLabel?`${We.sliderMarkLabel} ${pe.markLabel}`:We.sliderMarkLabel}const xe=S?`${We.layoutOverride} ${S}`:We.layoutOverride,we=$?h.jsx("span",{className:We.iconWrapper,"aria-hidden":!0,children:$}):null;return h.jsx(Vt,{ref:n,className:xe,style:w,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:d,label:m,assistiveText:p,assistiveWithIcon:b,error:!!f,required:y,id:T,readOnly:I,readOnlyComponent:R||uM,emptyValueComponent:N,readOnlyType:"text",readOnlyValue:W,readOnlyNativeProps:{value:W},activeComponent:h.jsxs("div",{className:We.sliderContainer,"data-form-layout":s,"data-disabled":E?"true":void 0,"data-error":f?"true":void 0,"data-suppress-focus-ring":J?"true":void 0,children:[we,O&&h.jsx("span",{className:We.minMaxGuide,children:P}),h.jsx("div",{className:We.sliderTrackWrapper,children:h.jsx(ye.Slider,{...Y,classes:le,disabled:E,value:W,onChange:K,onMouseDown:ae,onFocus:oe,onBlur:he,onKeyDown:ee,onChangeCommitted:A,min:P,max:k,step:M,valueLabelDisplay:g===null?"off":"auto",valueLabelFormat:typeof g=="function"?g:void 0})}),h.jsxs("div",{className:We.rightGuideContainer,children:[!v&&h.jsx("span",{className:We.currentValue,children:W}),O&&h.jsx("span",{className:We.minMaxGuide,children:k})]}),v&&h.jsx("input",{type:"number",className:We.inputField,value:G,onChange:Z,onBlur:se,min:P,max:k,step:M??void 0,disabled:E,"data-error":f?"true":void 0})]})})});Dh.displayName="Slider";const Rh=H.forwardRef(function({children:t,gap:n="rec-default",align:o,justify:s,...i},a){const l=os(i),c=typeof n=="string"&&n in yt?yt[n]:n;return h.jsx(ye.Stack,{ref:a,...l,spacing:c,alignItems:o,justifyContent:s,children:t})});Rh.displayName="Stack";const dM="Stepper-module__root___jbSYO",pM="Stepper-module__horizontal___USHT1",fM="Stepper-module__steps___4HPO6",mM="Stepper-module__stepBody___TBvys",hM="Stepper-module__stepLabel___N6nuy",gM="Stepper-module__stepDescription___DnDAy",bM="Stepper-module__separator___pU0No",yM="Stepper-module__separatorLine___dJMu-",vM="Stepper-module__vertical___d4mOs",xM="Stepper-module__step___s2nqL",CM="Stepper-module__stepLabelRoot___qUhIH",wM="Stepper-module__stepIcon___YQHNq",SM="Stepper-module__large___J18-y",TM="Stepper-module__small___Ub-zb",IM="Stepper-module__stepIconCircle___TwUMT",EM="Stepper-module__stepCompletedIcon___B9MeL",Tt={root:dM,horizontal:pM,steps:fM,stepBody:mM,stepLabel:hM,stepDescription:gM,separator:bM,separatorLine:yM,vertical:vM,step:xM,stepLabelRoot:CM,stepIcon:wM,large:SM,small:TM,stepIconCircle:IM,stepCompletedIcon:EM};function kM(e){return h.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:h.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function OM(e){const{icon:t,active:n,completed:o,error:s}=e;return typeof t!="number"&&typeof t!="string"?h.jsx(h.Fragment,{children:t}):h.jsx("span",{className:Tt.stepIconCircle,"data-active":n||void 0,"data-completed":o||void 0,"data-error":s||void 0,children:o?h.jsx(kM,{className:Tt.stepCompletedIcon}):t})}const Nh=H.forwardRef(function(t,n){const{overStyled:o=!1,size:s="large",orientation:i="horizontal",className:a,style:l,...c}=t,u=ve(c,o),d=i==="horizontal";return h.jsx("div",{className:`${Tt.root} ${d?Tt.horizontal:Tt.vertical} ${s==="large"?Tt.large:Tt.small} ${a||""}`,style:l,"data-size":s,"data-orientation":i,children:h.jsx(ye.Stepper,{ref:n,...u,orientation:i,alternativeLabel:d,connector:d?h.jsx(ye.StepConnector,{classes:{root:Tt.separator,line:Tt.separatorLine}}):h.jsx(h.Fragment,{}),classes:{root:Tt.steps}})})});Nh.displayName="Stepper";const _M=H.forwardRef(function(t,n){const{overStyled:o=!1,className:s,...i}=t;return h.jsx(ye.Step,{ref:n,...ve(i,o),classes:{root:Tt.step},className:s||""})});_M.displayName="Step";const PM=H.forwardRef(function(t,n){const{overStyled:o=!1,className:s,...i}=t;return h.jsx(ye.StepButton,{ref:n,className:s||"",...ve(i,o)})});PM.displayName="StepButton";const MM=H.forwardRef(function(t,n){const{overStyled:o=!1,className:s,description:i,StepIconComponent:a,...l}=t;return h.jsx(ye.StepLabel,{ref:n,...ve(l,o),className:s||"",classes:{root:Tt.stepLabelRoot,label:Tt.stepLabel,iconContainer:Tt.stepIcon,labelContainer:Tt.stepBody},StepIconComponent:a??OM,optional:i?h.jsx("div",{className:Tt.stepDescription,children:i}):l.optional})});MM.displayName="StepLabel";const DM=H.forwardRef(function(t,n){const{overStyled:o=!1,className:s,...i}=t;return h.jsx(ye.StepConnector,{ref:n,className:s||"",...ve(i,o)})});DM.displayName="StepConnector";const RM="Switch-module__root___Y5Ydi",NM="Switch-module__switchRoot___5nKws",$M="Switch-module__track___7ObdZ",jM="Switch-module__thumb___-FTeK",AM="Switch-module__body___Sw9Wr",LM="Switch-module__switchBase___-sCur",VM="Switch-module__thumbIconWrapper___sCY-1",FM="Switch-module__checkIcon___ZBAQN",BM="Switch-module__closeIcon___bLLGw",zM="Switch-module__labelWrapper___YSOwx",WM="Switch-module__label___LrH7V",UM="Switch-module__groupRoot___-Uepi",Fe={root:RM,switchRoot:NM,track:$M,thumb:jM,body:AM,switchBase:LM,thumbIconWrapper:VM,checkIcon:FM,closeIcon:BM,labelWrapper:zM,label:WM,groupRoot:UM},$h=H.createContext(null),yc=H.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:g,assistiveWithIcon:p,error:b,required:f,id:y,className:x,style:T,children:S,readOnly:w,readOnlyComponent:E,emptyValueComponent:I,value:R,defaultValue:N,onChange:j,...V}=t,$=ve(V,o),v=$;delete v.size;const O=(P,k)=>{j&&j(k)};return h.jsx(Vt,{className:x,style:T,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,description:m,assistiveText:g,assistiveWithIcon:p,error:b,required:f,id:y,readOnly:w&&!!E,readOnlyComponent:E,emptyValueComponent:I,readOnlyType:"text",readOnlyValue:R!==void 0?R:N,readOnlyNativeProps:t,activeComponent:h.jsx($h.Provider,{value:{value:R!==void 0?R:N,onChange:O,name:v.name,readOnly:w||!!v.disabled},children:h.jsx(ye.FormGroup,{ref:n,...$,className:`${Fe.groupRoot} ${$.className||""}`.trim(),"data-layout":s,children:S})})})});yc.displayName="SwitchGroup";function HM(e){return h.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:h.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function qM(e){return h.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:h.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}const vc=H.forwardRef(function(t,n){const{overStyled:o=!1,readOnly:s,readOnlyComponent:i,disabled:a,formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,label:m,description:g,error:p,style:b,...f}=t,y=ve(f,o),x=y;delete x.size,delete x.color,delete x.radius,delete x.variant;const T={root:Fe.switchRoot,body:Fe.body,track:Fe.track,switchBase:Fe.switchBase,trackLabel:Fe.trackLabel,labelWrapper:Fe.labelWrapper,label:Fe.label},S=x.classes;if(S&&typeof S=="object"&&!Array.isArray(S)){const k=S;T.root=k.root?`${Fe.switchRoot} ${k.root}`:Fe.switchRoot,T.body=k.body?`${Fe.body} ${k.body}`:Fe.body,T.track=k.track?`${Fe.track} ${k.track}`:Fe.track,T.trackLabel=k.trackLabel?`${Fe.trackLabel} ${k.trackLabel}`:Fe.trackLabel,T.labelWrapper=k.labelWrapper?`${Fe.labelWrapper} ${k.labelWrapper}`:Fe.labelWrapper,T.label=k.label?`${Fe.label} ${k.label}`:Fe.label}const w=x.className,E=w?`${Fe.root} ${w}`:Fe.root,I=H.useContext($h),R=I!==null,N=R?!!I.readOnly:!1,j=R?(I.value||[]).includes(x.value):!!(x.checked??x.defaultChecked),V=k=>{var B;if(!R)return;const M=I.value||[],_=x.value,A=k.target.checked?[...M,_]:M.filter(L=>L!==_);(B=I.onChange)==null||B.call(I,k,A)};if(s&&i){const k=i,M=h.jsx(k,{...t,checked:j,label:x.label});return l?h.jsx(Dn,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:M}):h.jsx(h.Fragment,{children:M})}const $=h.jsx("span",{className:Fe.thumb,children:h.jsxs("span",{className:Fe.thumbIconWrapper,children:[h.jsx(HM,{className:Fe.checkIcon}),h.jsx(qM,{className:Fe.closeIcon})]})}),v=s||a||N,O=h.jsx(ye.Switch,{ref:n,className:m?Fe.inner:`${E} ${Fe.inner}`,classes:T,color:"default",disabled:v,"data-disabled":v||void 0,icon:$,checkedIcon:$,...y,...R?{checked:j,onChange:V}:{},disableRipple:!0}),P=m?h.jsx("div",{className:E,style:b,children:h.jsxs("div",{className:Fe.body,children:[O,h.jsxs("div",{className:Fe.labelWrapper,children:[h.jsx("label",{className:Fe.label,htmlFor:x.id,"data-disabled":s||a?!0:void 0,children:m}),p?h.jsx(Mn,{assistiveVariant:"error",assistiveWithIcon:!1,children:p}):g&&h.jsx(Mn,{assistiveVariant:"help",assistiveWithIcon:!1,children:g})]})]})}):O;return l?h.jsx(Dn,{formLayout:l,labelSize:c,controlMaxWidth:u,controlMinWidth:d,children:P}):P});vc.displayName="Switch";vc.Group=yc;const YM="Table-module__root___aMWWS",GM={root:YM},jh=H.forwardRef(function({overStyled:t=!1,...n},o){const s=ve(n,t),i=s.className,a=GM.root,l=i?`${a} ${i}`:a;return h.jsx(ye.Table,{ref:o,...s,className:l})});jh.displayName="Table";const Ah=H.forwardRef(function({overStyled:t=!1,...n},o){const s=ve(n,t);return h.jsx(ye.TableBody,{ref:o,...s})});Ah.displayName="TableBody";const Lh=H.forwardRef(function({overStyled:t=!1,...n},o){const s=ve(n,t);return h.jsx(ye.TableCell,{ref:o,...s})});Lh.displayName="TableCell";const Vh=H.forwardRef(function({overStyled:t=!1,...n},o){const s=ve(n,t);return h.jsx(ye.TableContainer,{ref:o,...s})});Vh.displayName="TableContainer";const Fh=H.forwardRef(function({overStyled:t=!1,...n},o){const s=ve(n,t);return h.jsx(ye.TableHead,{ref:o,...s})});Fh.displayName="TableHead";const Bh=H.forwardRef(function({overStyled:t=!1,...n},o){const s=ve(n,t);return h.jsx(ye.TableRow,{ref:o,...s})});Bh.displayName="TableRow";const zh=H.forwardRef(function({overStyled:t=!1,...n},o){const s=ve(n,t);return h.jsx(ye.TableFooter,{ref:o,...s})});zh.displayName="TableFooter";const Wh=H.forwardRef(function({overStyled:t=!1,...n},o){const s=ve(n,t);return h.jsx(ye.TableSortLabel,{ref:o,...s})});Wh.displayName="TableSortLabel";const ro=jh;ro.Body=Ah;ro.Cell=Lh;ro.Container=Vh;ro.Head=Fh;ro.Row=Bh;ro.Footer=zh;ro.SortLabel=Wh;const KM="Tabs-module__root___-VKVI",XM="Tabs-module__list___qRVME",QM="Tabs-module__indicator___kvQsf",ZM="Tabs-module__tab___IdDYc",JM="Tabs-module__panel___08i9c",Lr={root:KM,list:XM,indicator:QM,tab:ZM,panel:JM},Uh=C.createContext(null);process.env.NODE_ENV!=="production"&&(Uh.displayName="TabContext");process.env.NODE_ENV!=="production"&&(r.node,r.oneOfType([r.number,r.string]).isRequired);function e1(){return C.useContext(Uh)}function t1(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-P-${t}`}function n1(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-T-${t}`}var _s={exports:{}},Xe={};/**
190
205
  * @license React
191
206
  * react-is.production.js
192
207
  *
@@ -194,7 +209,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
194
209
  *
195
210
  * This source code is licensed under the MIT license found in the
196
211
  * LICENSE file in the root directory of this source tree.
197
- */var su;function Nw(){if(su)return We;su=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function g(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case e:switch(p=p.type,p){case n:case s:case o:case c:case u:case h:return p;default:switch(p=p&&p.$$typeof,p){case a:case l:case m:case d:return p;case i:return p;default:return y}}case t:return y}}}return We.ContextConsumer=i,We.ContextProvider=a,We.Element=e,We.ForwardRef=l,We.Fragment=n,We.Lazy=m,We.Memo=d,We.Portal=t,We.Profiler=s,We.StrictMode=o,We.Suspense=c,We.SuspenseList=u,We.isContextConsumer=function(p){return g(p)===i},We.isContextProvider=function(p){return g(p)===a},We.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},We.isForwardRef=function(p){return g(p)===l},We.isFragment=function(p){return g(p)===n},We.isLazy=function(p){return g(p)===m},We.isMemo=function(p){return g(p)===d},We.isPortal=function(p){return g(p)===t},We.isProfiler=function(p){return g(p)===s},We.isStrictMode=function(p){return g(p)===o},We.isSuspense=function(p){return g(p)===c},We.isSuspenseList=function(p){return g(p)===u},We.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===s||p===o||p===c||p===u||typeof p=="object"&&p!==null&&(p.$$typeof===m||p.$$typeof===d||p.$$typeof===a||p.$$typeof===i||p.$$typeof===l||p.$$typeof===f||p.getModuleId!==void 0)},We.typeOf=g,We}var Ue={};/**
212
+ */var Xd;function o1(){if(Xd)return Xe;Xd=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function b(f){if(typeof f=="object"&&f!==null){var y=f.$$typeof;switch(y){case e:switch(f=f.type,f){case n:case s:case o:case c:case u:case g:return f;default:switch(f=f&&f.$$typeof,f){case a:case l:case m:case d:return f;case i:return f;default:return y}}case t:return y}}}return Xe.ContextConsumer=i,Xe.ContextProvider=a,Xe.Element=e,Xe.ForwardRef=l,Xe.Fragment=n,Xe.Lazy=m,Xe.Memo=d,Xe.Portal=t,Xe.Profiler=s,Xe.StrictMode=o,Xe.Suspense=c,Xe.SuspenseList=u,Xe.isContextConsumer=function(f){return b(f)===i},Xe.isContextProvider=function(f){return b(f)===a},Xe.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},Xe.isForwardRef=function(f){return b(f)===l},Xe.isFragment=function(f){return b(f)===n},Xe.isLazy=function(f){return b(f)===m},Xe.isMemo=function(f){return b(f)===d},Xe.isPortal=function(f){return b(f)===t},Xe.isProfiler=function(f){return b(f)===s},Xe.isStrictMode=function(f){return b(f)===o},Xe.isSuspense=function(f){return b(f)===c},Xe.isSuspenseList=function(f){return b(f)===u},Xe.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===s||f===o||f===c||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===m||f.$$typeof===d||f.$$typeof===a||f.$$typeof===i||f.$$typeof===l||f.$$typeof===p||f.getModuleId!==void 0)},Xe.typeOf=b,Xe}var Qe={};/**
198
213
  * @license React
199
214
  * react-is.development.js
200
215
  *
@@ -202,29 +217,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
202
217
  *
203
218
  * This source code is licensed under the MIT license found in the
204
219
  * LICENSE file in the root directory of this source tree.
205
- */var iu;function Mw(){return iu||(iu=1,process.env.NODE_ENV!=="production"&&(function(){function e(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case t:switch(p=p.type,p){case o:case i:case s:case u:case d:case f:return p;default:switch(p=p&&p.$$typeof,p){case l:case c:case h:case m:return p;case a:return p;default:return y}}case n:return y}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");Ue.ContextConsumer=a,Ue.ContextProvider=l,Ue.Element=t,Ue.ForwardRef=c,Ue.Fragment=o,Ue.Lazy=h,Ue.Memo=m,Ue.Portal=n,Ue.Profiler=i,Ue.StrictMode=s,Ue.Suspense=u,Ue.SuspenseList=d,Ue.isContextConsumer=function(p){return e(p)===a},Ue.isContextProvider=function(p){return e(p)===l},Ue.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},Ue.isForwardRef=function(p){return e(p)===c},Ue.isFragment=function(p){return e(p)===o},Ue.isLazy=function(p){return e(p)===h},Ue.isMemo=function(p){return e(p)===m},Ue.isPortal=function(p){return e(p)===n},Ue.isProfiler=function(p){return e(p)===i},Ue.isStrictMode=function(p){return e(p)===s},Ue.isSuspense=function(p){return e(p)===u},Ue.isSuspenseList=function(p){return e(p)===d},Ue.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===o||p===i||p===s||p===u||p===d||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===m||p.$$typeof===l||p.$$typeof===a||p.$$typeof===c||p.$$typeof===g||p.getModuleId!==void 0)},Ue.typeOf=e})()),Ue}var au;function $w(){return au||(au=1,process.env.NODE_ENV==="production"?ls.exports=Nw():ls.exports=Mw()),ls.exports}var Dw=$w();function da(e){return typeof e=="string"}function bf(e,t,n){return e===void 0||da(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function yf(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function lu(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function vf(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:s,className:i}=e;if(!t){const f=ue(n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),g={...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},p={...n,...s,...o};return f.length>0&&(p.className=f),Object.keys(g).length>0&&(p.style=g),{props:p,internalRef:void 0}}const a=yf({...s,...o}),l=lu(o),c=lu(s),u=t(a),d=ue(u==null?void 0:u.className,n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),m={...u==null?void 0:u.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},h={...u,...n,...c,...l};return d.length>0&&(h.className=d),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:u.ref}}function xf(e,t,n){return typeof e=="function"?e(t,n):e}function Aw(e){var m;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:s=!1,...i}=e,a=s?{}:xf(n,o),{props:l,internalRef:c}=vf({...i,externalSlotProps:a}),u=yt(c,a==null?void 0:a.ref,(m=e.additionalProps)==null?void 0:m.ref);return bf(t,{...l,ref:u},o)}function br(e){var n;let t=e.activeElement;for(;((n=t==null?void 0:t.shadowRoot)==null?void 0:n.activeElement)!=null;)t=t.shadowRoot.activeElement;return t}function Sf(){return!(/jsdom|HappyDOM/.test(window.navigator.userAgent)||process.env.NODE_ENV==="test")}function Xe(e,t){const{className:n,elementType:o,ownerState:s,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:m={[e]:void 0},...h}=i,f=d[e]||o,g=xf(m[e],s),{props:{component:p,...y},internalRef:x}=vf({className:n,...c,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:g}),I=yt(x,g==null?void 0:g.ref,t.ref),w=e==="root"?p||u:p,S=bf(f,{...e==="root"&&!u&&!d[e]&&a,...e!=="root"&&!d[e]&&a,...y,...w&&!l&&{as:w},...w&&l&&{component:w},ref:I},s);return[f,S]}function qe({props:e,name:t}){return MS({props:e,name:t,defaultTheme:tl,themeId:ci})}function jw(e){return Me("MuiTabPanel",e)}_e("MuiTabPanel",["root","hidden"]);const Lw=e=>{const{classes:t,hidden:n}=e;return Le({root:["root",n&&"hidden"]},jw,t)},Vw=ne("div",{name:"MuiTabPanel",slot:"Root"})(({theme:e})=>({padding:e.spacing(3)})),Cf=C.forwardRef(function(t,n){const o=qe({props:t,name:"MuiTabPanel"}),{children:s,className:i,value:a,keepMounted:l=!1,...c}=o,u={...o},d=Lw(u),m=kw();if(m===null)throw new TypeError("No TabContext provided");const h=Pw(m,a),f=Rw(m,a);return b.jsx(Vw,{"aria-labelledby":f,className:ue(d.root,i),hidden:a!==m.value,id:h,ref:n,role:"tabpanel",ownerState:u,...c,children:(l||a===m.value)&&s})});process.env.NODE_ENV!=="production"&&(Cf.propTypes={children:r.node,classes:r.object,className:r.string,keepMounted:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.oneOfType([r.number,r.string]).isRequired});const $s=C.createContext({});process.env.NODE_ENV!=="production"&&($s.displayName="TimelineContext");function Fw(e){return Me("MuiTimeline",e)}_e("MuiTimeline",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);function pi(e){return e==="alternate-reverse"?"positionAlternateReverse":`position${le(e)}`}const Bw=e=>{const{position:t,classes:n}=e,o={root:["root",t&&pi(t)]};return Le(o,Fw,n)},zw=ne("ul",{name:"MuiTimeline",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.position&&t[pi(n.position)]]}})({display:"flex",flexDirection:"column",padding:"6px 16px",flexGrow:1}),wf=C.forwardRef(function(t,n){const o=qe({props:t,name:"MuiTimeline"}),{position:s="right",className:i,...a}=o,l={...o,position:s},c=Bw(l),u=C.useMemo(()=>({position:s}),[s]);return b.jsx($s.Provider,{value:u,children:b.jsx(zw,{className:ue(c.root,i),ownerState:l,ref:n,...a})})});process.env.NODE_ENV!=="production"&&(wf.propTypes={children:r.node,classes:r.object,className:r.string,position:r.oneOf(["alternate-reverse","alternate","left","right"]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function Ww(e){return Me("MuiTypography",e)}_e("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Uw={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},qw=$C(),Hw=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:s,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${le(t)}`,n&&"gutterBottom",o&&"noWrap",s&&"paragraph"]};return Le(l,Ww,a)},Yw=ne("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${le(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Je(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,o])=>n!=="inherit"&&o&&typeof o=="object").map(([n,o])=>({props:{variant:n},style:o})),...Object.entries(e.palette).filter(Ct()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${le(n)}`},style:{color:(e.vars||e).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}}]}})),cu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},uo=C.forwardRef(function(t,n){const{color:o,...s}=Ye({props:t,name:"MuiTypography"}),i=!Uw[o],a=qw({...s,...i&&{color:o}}),{align:l="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:m=!1,paragraph:h=!1,variant:f="body1",variantMapping:g=cu,...p}=a,y={...a,align:l,color:o,className:c,component:u,gutterBottom:d,noWrap:m,paragraph:h,variant:f,variantMapping:g},x=u||(h?"p":g[f]||cu[f])||"span",I=Hw(y);return b.jsx(Yw,{as:x,ref:n,className:ue(I.root,c),...p,ownerState:y,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...p.style}})});process.env.NODE_ENV!=="production"&&(uo.propTypes={align:r.oneOf(["center","inherit","justify","left","right"]),children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),r.string]),component:r.elementType,gutterBottom:r.bool,noWrap:r.bool,paragraph:r.bool,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),r.string]),variantMapping:r.object});const Gw=_e("MuiTimelineContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]),Kw=_e("MuiTimelineOppositeContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);function Xw(e){return Me("MuiTimelineItem",e)}_e("MuiTimelineItem",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse","missingOppositeContent"]);const Qw=e=>{const{position:t,classes:n,hasOppositeContent:o}=e,s={root:["root",pi(t),!o&&"missingOppositeContent"]};return Le(s,Xw,n)},Zw=ne("li",{name:"MuiTimelineItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[pi(n.position)]]}})(({ownerState:e})=>({listStyle:"none",display:"flex",position:"relative",minHeight:70,...e.position==="left"&&{flexDirection:"row-reverse"},...(e.position==="alternate"||e.position==="alternate-reverse")&&{[`&:nth-of-type(${e.position==="alternate"?"even":"odd"})`]:{flexDirection:"row-reverse",[`& .${Gw.root}`]:{textAlign:"right"},[`& .${Kw.root}`]:{textAlign:"left"}}},...!e.hasOppositeContent&&{"&::before":{content:'""',flex:1,padding:"6px 16px"}}})),Tf=C.forwardRef(function(t,n){const o=qe({props:t,name:"MuiTimelineItem"}),{position:s,className:i,...a}=o,{position:l}=C.useContext($s);let c=!1;C.Children.forEach(o.children,h=>{$o(h,["TimelineOppositeContent"])&&(c=!0)});const u={...o,position:s||l||"right",hasOppositeContent:c},d=Qw(u),m=C.useMemo(()=>({position:u.position}),[u.position]);return b.jsx($s.Provider,{value:m,children:b.jsx(Zw,{className:ue(d.root,i),ownerState:u,ref:n,...a})})});process.env.NODE_ENV!=="production"&&(Tf.propTypes={children:r.node,classes:r.object,className:r.string,position:r.oneOf(["alternate-reverse","alternate","left","right"]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function uu(e,t){var o;if(!e||!t)return!1;if(e.contains(t))return!0;const n=(o=t.getRootNode)==null?void 0:o.call(t);if(n&&n instanceof ShadowRoot){let s=t;for(;s;){if(e===s)return!0;s=s.parentNode??s.host??null}}return!1}const If=Y.forwardRef(function(t,n){const{variant:o="default",orientation:s="horizontal",inverted:i=!1,overStyled:a=!1,className:l,...c}=t,u=me(c,a);return b.jsx(pe.Tabs,{ref:n,...u,orientation:s,className:`${vr.root} ${l||""}`,"data-variant":o,"data-orientation":s,"data-inverted":i||void 0,classes:{flexContainer:vr.list,indicator:vr.indicator}})});If.displayName="Tabs";const Ef=Y.forwardRef(function(t,n){const{overStyled:o=!1,className:s,...i}=t,a=me(i,o);return b.jsx(pe.Tab,{ref:n,className:`${vr.tab} ${s||""}`,...a})});Ef.displayName="Tab";const _f=Y.forwardRef(function(t,n){const{overStyled:o=!1,className:s,...i}=t,a=me(i,o);return b.jsx(Cf,{ref:n,className:`${vr.panel} ${s||""}`,...a})});_f.displayName="TabPanel";const fi=Y.forwardRef(function({typographyClass:t,overStyled:n=!1,...o},s){const i=me(o,n),l=i.className,c=l?`${t} ${l}`:t;return b.jsx(pe.Typography,{ref:s,className:c,variant:"inherit",...i})});fi.displayName="Typography";const Of=Y.forwardRef(function({variant:t="body",...n},o){const s=`recursica_brand_typography_${t}`;return b.jsx(fi,{ref:o,typographyClass:s,...n})});Of.displayName="Text";const Jw="TextArea-module__layoutOverride___4MCdm",eT="TextArea-module__root___3dyeu",tT="TextArea-module__input___8l36v",On={layoutOverride:Jw,root:eT,input:tT},kf=Y.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,withAsterisk:p,id:y,className:x,style:I,disabled:w,readOnly:S,readOnlyComponent:E,emptyValueComponent:T,value:R,defaultValue:N,...L}=t,V=me(L,o),A=V;delete A.size,delete A.variant,delete A.radius;const v={wrapper:On.root,input:On.input},P=A.classNames;if(P&&typeof P=="object"&&!Array.isArray(P)){const _=P;v.wrapper=_.wrapper?`${On.root} ${_.wrapper}`:On.root,v.input=_.input?`${On.input} ${_.input}`:On.input}const O=x?`${On.layoutOverride} ${x}`:On.layoutOverride;return b.jsx(Yt,{className:O,style:I,controlMaxWidth:"var(--textarea-control-max-width)",controlMinWidth:"var(--textarea-control-min-width)",overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,id:y,readOnly:S,readOnlyComponent:E,emptyValueComponent:T,readOnlyType:"text",readOnlyValue:R!==void 0?R:N,readOnlyNativeProps:t,activeComponent:b.jsx(pe.TextField,{multiline:!0,inputRef:n,classes:v,disabled:w,value:R,defaultValue:N,label:void 0,error:void 0,required:void 0,...V})})});kf.displayName="TextArea";const nT="TextField-module__layoutOverride___SNZqc",oT="TextField-module__root___2ZYkG",rT="TextField-module__input___RL-My",sT="TextField-module__section___bCIJ0",un={layoutOverride:nT,root:oT,input:rT,section:sT},Pf=Y.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,id:p,className:y,style:x,disabled:I,readOnly:w,readOnlyComponent:S,emptyValueComponent:E,value:T,defaultValue:R,leftSection:N,rightSection:L,...V}=t,A=me(V,o),v=A;delete v.size,delete v.color;const P={wrapper:un.root,input:un.input,section:un.section},O=v.classes;if(O&&typeof O=="object"&&!Array.isArray(O)){const M=O;P.wrapper=M.root?`${un.root} ${M.root}`:un.root,P.input=M.input?`${un.input} ${M.input}`:un.input}const _=y?`${un.layoutOverride} ${y}`:un.layoutOverride,k=N?b.jsx("div",{className:P.section,"data-position":"left",children:N}):void 0,D=L?b.jsx("div",{className:P.section,"data-position":"right",children:L}):void 0;return b.jsx(Yt,{className:_,style:x,controlMaxWidth:"var(--text-field-control-max-width)",controlMinWidth:"var(--text-field-control-min-width)",overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,id:p,readOnly:w,readOnlyComponent:S,emptyValueComponent:E||void 0,readOnlyType:"text",readOnlyValue:T!==void 0?T:R,readOnlyNativeProps:t,activeComponent:b.jsx(pe.InputBase,{inputRef:n,...A,classes:{root:P.wrapper,input:P.input},disabled:I,value:T,defaultValue:R,startAdornment:k,endAdornment:D,"data-disabled":I?"true":void 0,"data-error":f?"true":void 0,"data-with-left-section":N?"true":void 0,"data-with-right-section":L?"true":void 0})})});Pf.displayName="TextField";function Re(e,...t){const n=new URL("https://mui.com/x/production-error");return n.searchParams.set("code",e.toString()),t.forEach(o=>n.searchParams.append("args[]",o)),`MUI X error #${e}; visit ${n} for the full message.`}const iT=["localeText"],Ds=C.createContext(null);process.env.NODE_ENV!=="production"&&(Ds.displayName="PickerAdapterContext");const mi=function(t){const{localeText:n}=t,o=Ce(t,iT),{adapter:s,localeText:i}=C.useContext(Ds)??{adapter:void 0,localeText:void 0},a=qe({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:m,localeText:h}=a,f=C.useMemo(()=>$({},h,i,n),[h,i,n]),g=C.useMemo(()=>{if(!c)return s||null;const x=new c({locale:m,formats:u,instance:d});if(!x.isMUIAdapter)throw new Error(process.env.NODE_ENV!=="production"?"MUI X Date Pickers: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`. Using adapters from @date-io directly is not supported. For example, use `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`. See https://mui.com/x/react-date-pickers/quickstart/#installation":Re(143));return x},[c,m,u,d,s]),p=C.useMemo(()=>g?{minDate:g.date("1900-01-01T00:00:00.000"),maxDate:g.date("2099-12-31T00:00:00.000")}:null,[g]),y=C.useMemo(()=>({adapter:g,defaultDates:p,localeText:f}),[p,g,f]);return b.jsx(Ds.Provider,{value:y,children:l})};process.env.NODE_ENV!=="production"&&(mi.displayName="LocalizationProvider");process.env.NODE_ENV!=="production"&&(mi.propTypes={adapterLocale:r.any,children:r.node,dateAdapter:r.func,dateFormats:r.shape({dayOfMonth:r.string,dayOfMonthFull:r.string,fullDate:r.string,fullTime12h:r.string,fullTime24h:r.string,hours12h:r.string,hours24h:r.string,keyboardDate:r.string,keyboardDateTime12h:r.string,keyboardDateTime24h:r.string,meridiem:r.string,minutes:r.string,month:r.string,monthShort:r.string,normalDate:r.string,normalDateWithWeekday:r.string,seconds:r.string,shortDate:r.string,weekday:r.string,weekdayShort:r.string,year:r.string}),dateLibInstance:r.any,localeText:r.object});var bs={exports:{}},aT=bs.exports,du;function lT(){return du||(du=1,(function(e,t){(function(n,o){e.exports=o()})(aT,(function(){var n=1e3,o=6e4,s=36e5,i="millisecond",a="second",l="minute",c="hour",u="day",d="week",m="month",h="quarter",f="year",g="date",p="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|YYYY|YY|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,I={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(O){var _=["th","st","nd","rd"],k=O%100;return"["+O+(_[(k-20)%10]||_[k]||_[0])+"]"}},w=function(O,_,k){var D=String(O);return!D||D.length>=_?O:""+Array(_+1-D.length).join(k)+O},S={s:w,z:function(O){var _=-O.utcOffset(),k=Math.abs(_),D=Math.floor(k/60),M=k%60;return(_<=0?"+":"-")+w(D,2,"0")+":"+w(M,2,"0")},m:function O(_,k){if(_.date()<k.date())return-O(k,_);var D=12*(k.year()-_.year())+(k.month()-_.month()),M=_.clone().add(D,m),z=k-M<0,j=_.clone().add(D+(z?-1:1),m);return+(-(D+(k-M)/(z?M-j:j-M))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:m,y:f,w:d,d:u,D:g,h:c,m:l,s:a,ms:i,Q:h}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},E="en",T={};T[E]=I;var R="$isDayjsObject",N=function(O){return O instanceof v||!(!O||!O[R])},L=function O(_,k,D){var M;if(!_)return E;if(typeof _=="string"){var z=_.toLowerCase();T[z]&&(M=z),k&&(T[z]=k,M=z);var j=_.split("-");if(!M&&j.length>1)return O(j[0])}else{var B=_.name;T[B]=_,M=B}return!D&&M&&(E=M),M||!D&&E},V=function(O,_){if(N(O))return O.clone();var k=typeof _=="object"?_:{};return k.date=O,k.args=arguments,new v(k)},A=S;A.l=L,A.i=N,A.w=function(O,_){return V(O,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var v=(function(){function O(k){this.$L=L(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[R]=!0}var _=O.prototype;return _.parse=function(k){this.$d=(function(D){var M=D.date,z=D.utc;if(M===null)return new Date(NaN);if(A.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var j=M.match(y);if(j){var B=j[2]-1||0,W=(j[7]||"0").substring(0,3);return z?new Date(Date.UTC(j[1],B,j[3]||1,j[4]||0,j[5]||0,j[6]||0,W)):new Date(j[1],B,j[3]||1,j[4]||0,j[5]||0,j[6]||0,W)}}return new Date(M)})(k),this.init()},_.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},_.$utils=function(){return A},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(k,D){var M=V(k);return this.startOf(D)<=M&&M<=this.endOf(D)},_.isAfter=function(k,D){return V(k)<this.startOf(D)},_.isBefore=function(k,D){return this.endOf(D)<V(k)},_.$g=function(k,D,M){return A.u(k)?this[D]:this.set(M,k)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(k,D){var M=this,z=!!A.u(D)||D,j=A.p(k),B=function(F,U){var ae=A.w(M.$u?Date.UTC(M.$y,U,F):new Date(M.$y,U,F),M);return z?ae:ae.endOf(u)},W=function(F,U){return A.w(M.toDate()[F].apply(M.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(U)),M)},X=this.$W,Q=this.$M,G=this.$D,Z="set"+(this.$u?"UTC":"");switch(j){case f:return z?B(1,0):B(31,11);case m:return z?B(1,Q):B(0,Q+1);case d:var te=this.$locale().weekStart||0,H=(X<te?X+7:X)-te;return B(z?G-H:G+(6-H),Q);case u:case g:return W(Z+"Hours",0);case c:return W(Z+"Minutes",1);case l:return W(Z+"Seconds",2);case a:return W(Z+"Milliseconds",3);default:return this.clone()}},_.endOf=function(k){return this.startOf(k,!1)},_.$set=function(k,D){var M,z=A.p(k),j="set"+(this.$u?"UTC":""),B=(M={},M[u]=j+"Date",M[g]=j+"Date",M[m]=j+"Month",M[f]=j+"FullYear",M[c]=j+"Hours",M[l]=j+"Minutes",M[a]=j+"Seconds",M[i]=j+"Milliseconds",M)[z],W=z===u?this.$D+(D-this.$W):D;if(z===m||z===f){var X=this.clone().set(g,1);X.$d[B](W),X.init(),this.$d=X.set(g,Math.min(this.$D,X.daysInMonth())).$d}else B&&this.$d[B](W);return this.init(),this},_.set=function(k,D){return this.clone().$set(k,D)},_.get=function(k){return this[A.p(k)]()},_.add=function(k,D){var M,z=this;k=Number(k);var j=A.p(D),B=function(Q){var G=V(z);return A.w(G.date(G.date()+Math.round(Q*k)),z)};if(j===m)return this.set(m,this.$M+k);if(j===f)return this.set(f,this.$y+k);if(j===u)return B(1);if(j===d)return B(7);var W=(M={},M[l]=o,M[c]=s,M[a]=n,M)[j]||1,X=this.$d.getTime()+k*W;return A.w(X,this)},_.subtract=function(k,D){return this.add(-1*k,D)},_.format=function(k){var D=this,M=this.$locale();if(!this.isValid())return M.invalidDate||p;var z=k||"YYYY-MM-DDTHH:mm:ssZ",j=A.z(this),B=this.$H,W=this.$m,X=this.$M,Q=M.weekdays,G=M.months,Z=M.meridiem,te=function(U,ae,K,ce){return U&&(U[ae]||U(D,z))||K[ae].slice(0,ce)},H=function(U){return A.s(B%12||12,U,"0")},F=Z||function(U,ae,K){var ce=U<12?"AM":"PM";return K?ce.toLowerCase():ce};return z.replace(x,(function(U,ae){return ae||(function(K){switch(K){case"YY":return String(D.$y).slice(-2);case"YYYY":return A.s(D.$y,4,"0");case"M":return X+1;case"MM":return A.s(X+1,2,"0");case"MMM":return te(M.monthsShort,X,G,3);case"MMMM":return te(G,X);case"D":return D.$D;case"DD":return A.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return te(M.weekdaysMin,D.$W,Q,2);case"ddd":return te(M.weekdaysShort,D.$W,Q,3);case"dddd":return Q[D.$W];case"H":return String(B);case"HH":return A.s(B,2,"0");case"h":return H(1);case"hh":return H(2);case"a":return F(B,W,!0);case"A":return F(B,W,!1);case"m":return String(W);case"mm":return A.s(W,2,"0");case"s":return String(D.$s);case"ss":return A.s(D.$s,2,"0");case"SSS":return A.s(D.$ms,3,"0");case"Z":return j}return null})(U)||j.replace(":","")}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(k,D,M){var z,j=this,B=A.p(D),W=V(k),X=(W.utcOffset()-this.utcOffset())*o,Q=this-W,G=function(){return A.m(j,W)};switch(B){case f:z=G()/12;break;case m:z=G();break;case h:z=G()/3;break;case d:z=(Q-X)/6048e5;break;case u:z=(Q-X)/864e5;break;case c:z=Q/s;break;case l:z=Q/o;break;case a:z=Q/n;break;default:z=Q}return M?z:A.a(z)},_.daysInMonth=function(){return this.endOf(m).$D},_.$locale=function(){return T[this.$L]},_.locale=function(k,D){if(!k)return this.$L;var M=this.clone(),z=L(k,D,!0);return z&&(M.$L=z),M},_.clone=function(){return A.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()},O})(),P=v.prototype;return V.prototype=P,[["$ms",i],["$s",a],["$m",l],["$H",c],["$W",u],["$M",m],["$y",f],["$D",g]].forEach((function(O){P[O[1]]=function(_){return this.$g(_,O[0],O[1])}})),V.extend=function(O,_){return O.$i||(O(_,v,V),O.$i=!0),V},V.locale=L,V.isDayjs=N,V.unix=function(O){return V(1e3*O)},V.en=T[E],V.Ls=T,V.p={},V}))})(bs)),bs.exports}var cT=lT();const pt=co(cT);var ys={exports:{}},uT=ys.exports,pu;function dT(){return pu||(pu=1,(function(e,t){(function(n,o){e.exports=o()})(uT,(function(){var n="week",o="year";return function(s,i,a){var l=i.prototype;l.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=a(this).startOf(o).add(1,o).date(u),m=a(this).endOf(n);if(d.isBefore(m))return 1}var h=a(this).startOf(o).date(u).startOf(n).subtract(1,"millisecond"),f=this.diff(h,n,!0);return f<0?a(this).startOf("week").week():Math.ceil(f)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})(ys)),ys.exports}var pT=dT();const fT=co(pT);var vs={exports:{}},mT=vs.exports,fu;function hT(){return fu||(fu=1,(function(e,t){(function(n,o){e.exports=o()})(mT,(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"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,i=/\d\d/,a=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,c={},u=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(x){this[y]=+x}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=(function(x){if(!x||x==="Z")return 0;var I=x.match(/([+-]|\d\d)/g),w=60*I[1]+(+I[2]||0);return w===0?0:I[0]==="+"?-w:w})(y)}],h=function(y){var x=c[y];return x&&(x.indexOf?x:x.s.concat(x.f))},f=function(y,x){var I,w=c.meridiem;if(w){for(var S=1;S<=24;S+=1)if(y.indexOf(w(S,0,x))>-1){I=S>12;break}}else I=y===(x?"pm":"PM");return I},g={A:[l,function(y){this.afternoon=f(y,!1)}],a:[l,function(y){this.afternoon=f(y,!0)}],Q:[s,function(y){this.month=3*(y-1)+1}],S:[s,function(y){this.milliseconds=100*+y}],SS:[i,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[i,d("day")],Do:[l,function(y){var x=c.ordinal,I=y.match(/\d+/);if(this.day=I[0],x)for(var w=1;w<=31;w+=1)x(w).replace(/\[|\]/g,"")===y&&(this.day=w)}],w:[a,d("week")],ww:[i,d("week")],M:[a,d("month")],MM:[i,d("month")],MMM:[l,function(y){var x=h("months"),I=(h("monthsShort")||x.map((function(w){return w.slice(0,3)}))).indexOf(y)+1;if(I<1)throw new Error;this.month=I%12||I}],MMMM:[l,function(y){var x=h("months").indexOf(y)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(y){this.year=u(y)}],YYYY:[/\d{4}/,d("year")],Z:m,ZZ:m};function p(y){var x,I;x=y,I=c&&c.formats;for(var w=(y=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(V,A,v){var P=v&&v.toUpperCase();return A||I[v]||n[v]||I[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(O,_,k){return _||k.slice(1)}))}))).match(o),S=w.length,E=0;E<S;E+=1){var T=w[E],R=g[T],N=R&&R[0],L=R&&R[1];w[E]=L?{regex:N,parser:L}:T.replace(/^\[|\]$/g,"")}return function(V){for(var A={},v=0,P=0;v<S;v+=1){var O=w[v];if(typeof O=="string")P+=O.length;else{var _=O.regex,k=O.parser,D=V.slice(P),M=_.exec(D)[0];k.call(A,M),V=V.replace(M,"")}}return(function(z){var j=z.afternoon;if(j!==void 0){var B=z.hours;j?B<12&&(z.hours+=12):B===12&&(z.hours=0),delete z.afternoon}})(A),A}}return function(y,x,I){I.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(u=y.parseTwoDigitYear);var w=x.prototype,S=w.parse;w.parse=function(E){var T=E.date,R=E.utc,N=E.args;this.$u=R;var L=N[1];if(typeof L=="string"){var V=N[2]===!0,A=N[3]===!0,v=V||A,P=N[2];A&&(P=N[2]),c=this.$locale(),!V&&P&&(c=I.Ls[P]),this.$d=(function(D,M,z,j){try{if(["x","X"].indexOf(M)>-1)return new Date((M==="X"?1e3:1)*D);var B=p(M)(D),W=B.year,X=B.month,Q=B.day,G=B.hours,Z=B.minutes,te=B.seconds,H=B.milliseconds,F=B.zone,U=B.week,ae=new Date,K=Q||(W||X?1:ae.getDate()),ce=W||ae.getFullYear(),oe=0;W&&!X||(oe=X>0?X-1:ae.getMonth());var be,he=G||0,re=Z||0,J=te||0,ge=H||0;return F?new Date(Date.UTC(ce,oe,K,he,re,J,ge+60*F.offset*1e3)):z?new Date(Date.UTC(ce,oe,K,he,re,J,ge)):(be=new Date(ce,oe,K,he,re,J,ge),U&&(be=j(be).week(U).toDate()),be)}catch{return new Date("")}})(T,L,R,I),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),v&&T!=this.format(L)&&(this.$d=new Date("")),c={}}else if(L instanceof Array)for(var O=L.length,_=1;_<=O;_+=1){N[1]=L[_-1];var k=I.apply(this,N);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}_===O&&(this.$d=new Date(""))}else S.call(this,E)}}}))})(vs)),vs.exports}var gT=hT();const Rf=co(gT);var xs={exports:{}},bT=xs.exports,mu;function yT(){return mu||(mu=1,(function(e,t){(function(n,o){e.exports=o()})(bT,(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(o,s,i){var a=s.prototype,l=a.format;i.en.formats=n,a.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=(function(m,h){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(f,g,p){var y=p&&p.toUpperCase();return g||h[p]||n[p]||h[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(x,I,w){return I||w.slice(1)}))}))})(c,u===void 0?{}:u);return l.call(this,d)}}}))})(xs)),xs.exports}var vT=yT();const xT=co(vT);var Ss={exports:{}},ST=Ss.exports,hu;function CT(){return hu||(hu=1,(function(e,t){(function(n,o){e.exports=o()})(ST,(function(){return function(n,o,s){o.prototype.isBetween=function(i,a,l,c){var u=s(i),d=s(a),m=(c=c||"()")[0]==="(",h=c[1]===")";return(m?this.isAfter(u,l):!this.isBefore(u,l))&&(h?this.isBefore(d,l):!this.isAfter(d,l))||(m?this.isBefore(u,l):!this.isAfter(u,l))&&(h?this.isAfter(d,l):!this.isBefore(d,l))}}}))})(Ss)),Ss.exports}var wT=CT();const TT=co(wT);var Cs={exports:{}},IT=Cs.exports,gu;function ET(){return gu||(gu=1,(function(e,t){(function(n,o){e.exports=o()})(IT,(function(){return function(n,o){var s=o.prototype,i=s.format;s.format=function(a){var l=this,c=this.$locale();if(!this.isValid())return i.bind(this)(a);var u=this.$utils(),d=(a||"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(m){switch(m){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),m==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),m==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return m}}));return i.bind(this)(d)}}}))})(Cs)),Cs.exports}var _T=ET();const OT=co(_T),bu=new Set;function Sn(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
206
- `):e;bu.has(n)||(bu.add(n),t==="error"?console.error(n):console.warn(n))}pt.extend(xT);pt.extend(fT);pt.extend(TT);pt.extend(OT);const kT={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"},PT={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",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"};function Ui(){throw new Error(process.env.NODE_ENV!=="production"?"MUI X Date Pickers: Missing dayjs UTC plugin. UTC and timezone support requires the dayjs UTC plugin to be enabled. See https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc for setup instructions.":Re(138))}function yu(){throw new Error(process.env.NODE_ENV!=="production"?"MUI X Date Pickers: Missing dayjs timezone plugin. Timezone support requires both the dayjs UTC and timezone plugins to be enabled. See https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone for setup instructions.":Re(139))}class RT{constructor({locale:t,formats:n}={}){q(this,"isMUIAdapter",!0);q(this,"isTimezoneCompatible",!0);q(this,"lib","dayjs");q(this,"escapedCharacters",{start:"[",end:"]"});q(this,"formatTokenMap",kT);q(this,"setLocaleToValue",t=>{const n=this.getCurrentLocaleCode();return n===t.locale()?t:t.locale(n)});q(this,"hasUTCPlugin",()=>typeof pt.utc<"u");q(this,"hasTimezonePlugin",()=>typeof pt.tz<"u");q(this,"isSame",(t,n,o)=>{const s=this.setTimezone(n,this.getTimezone(t));return t.format(o)===s.format(o)});q(this,"cleanTimezone",t=>{switch(t){case"default":return;case"system":return pt.tz.guess();default:return t}});q(this,"createSystemDate",t=>this.setLocaleToValue(pt(t)));q(this,"createUTCDate",t=>(this.hasUTCPlugin()||Ui(),this.setLocaleToValue(pt.utc(t))));q(this,"createTZDate",(t,n)=>{this.hasUTCPlugin()||Ui(),this.hasTimezonePlugin()||yu();const o=t!==void 0&&!t.endsWith("Z");return this.setLocaleToValue(pt(t).tz(this.cleanTimezone(n),o))});q(this,"getLocaleFormats",()=>{const t=pt.Ls,n=this.locale||"en";let o=t[n];return o===void 0&&(process.env.NODE_ENV!=="production"&&Sn(["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."]),o=t.en),o.formats});q(this,"adjustOffset",t=>{if(!this.hasTimezonePlugin())return t;const n=this.getTimezone(t);if(n!=="UTC"){const o=t.tz(this.cleanTimezone(n),!0);if(o.$offset===(t.$offset??0))return t;t.$offset=o.$offset}return t});q(this,"restoreDayOfMonth",(t,n)=>{const o=this.getTimezone(t);if(!this.hasUTCPlugin()||o==="system"||o==="UTC")return t;const s=pt.utc(t.format("YYYY-MM-DDTHH:mm:ss.SSS"));if(!s.isValid())return t;const i=Math.min(n.date(),s.daysInMonth());return t.date()===i?t:t.set("date",i)});q(this,"date",(t,n="default")=>t===null?null:n==="UTC"?this.createUTCDate(t):n==="system"||n==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(t):this.createTZDate(t,n));q(this,"getInvalidDate",()=>pt(new Date("Invalid date")));q(this,"getTimezone",t=>{var n;if(this.hasTimezonePlugin()){const o=(n=t.$x)==null?void 0:n.$timezone;if(o)return o}return this.hasUTCPlugin()&&t.isUTC()?"UTC":"system"});q(this,"setTimezone",(t,n)=>{if(this.getTimezone(t)===n)return t;if(n==="UTC")return this.hasUTCPlugin()||Ui(),t.utc();if(n==="system")return t.local();if(!this.hasTimezonePlugin()){if(n==="default")return t;yu()}return this.setLocaleToValue(pt.tz(t,this.cleanTimezone(n)))});q(this,"toJsDate",t=>t.toDate());q(this,"parse",(t,n)=>t===""?null:pt(t,n,this.locale,!0));q(this,"getCurrentLocaleCode",()=>this.locale||"en");q(this,"is12HourCycleInCurrentLocale",()=>/A|a/.test(this.getLocaleFormats().LT||""));q(this,"expandFormat",t=>{const n=this.getLocaleFormats(),o=s=>s.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(i,a,l)=>a||l.slice(1));return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(s,i,a)=>{const l=a&&a.toUpperCase();return i||n[a]||o(n[l])})});q(this,"isValid",t=>t==null?!1:t.isValid());q(this,"format",(t,n)=>this.formatByString(t,this.formats[n]));q(this,"formatByString",(t,n)=>this.setLocaleToValue(t).format(n));q(this,"formatNumber",t=>t);q(this,"isEqual",(t,n)=>t===null&&n===null?!0:t===null||n===null?!1:t.toDate().getTime()===n.toDate().getTime());q(this,"isSameYear",(t,n)=>this.isSame(t,n,"YYYY"));q(this,"isSameMonth",(t,n)=>this.isSame(t,n,"YYYY-MM"));q(this,"isSameDay",(t,n)=>this.isSame(t,n,"YYYY-MM-DD"));q(this,"isSameHour",(t,n)=>t.isSame(n,"hour"));q(this,"isAfter",(t,n)=>t>n);q(this,"isAfterYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()>n.utc():t.isAfter(n,"year"));q(this,"isAfterDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()>n.utc():t.isAfter(n,"day"));q(this,"isBefore",(t,n)=>t<n);q(this,"isBeforeYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()<n.utc():t.isBefore(n,"year"));q(this,"isBeforeDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()<n.utc():t.isBefore(n,"day"));q(this,"isWithinRange",(t,[n,o])=>t>=n&&t<=o);q(this,"startOfYear",t=>this.adjustOffset(t.startOf("year")));q(this,"startOfMonth",t=>this.adjustOffset(t.startOf("month")));q(this,"startOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).startOf("week")));q(this,"startOfDay",t=>this.adjustOffset(t.startOf("day")));q(this,"endOfYear",t=>this.adjustOffset(t.endOf("year")));q(this,"endOfMonth",t=>this.adjustOffset(t.endOf("month")));q(this,"endOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).endOf("week")));q(this,"endOfDay",t=>this.adjustOffset(t.endOf("day")));q(this,"addYears",(t,n)=>this.adjustOffset(this.restoreDayOfMonth(t.add(n,"year"),t)));q(this,"addMonths",(t,n)=>this.adjustOffset(this.restoreDayOfMonth(t.add(n,"month"),t)));q(this,"addWeeks",(t,n)=>this.adjustOffset(t.add(n,"week")));q(this,"addDays",(t,n)=>this.adjustOffset(t.add(n,"day")));q(this,"addHours",(t,n)=>this.adjustOffset(t.add(n,"hour")));q(this,"addMinutes",(t,n)=>this.adjustOffset(t.add(n,"minute")));q(this,"addSeconds",(t,n)=>this.adjustOffset(t.add(n,"second")));q(this,"getYear",t=>t.year());q(this,"getMonth",t=>t.month());q(this,"getDate",t=>t.date());q(this,"getHours",t=>t.hour());q(this,"getMinutes",t=>t.minute());q(this,"getSeconds",t=>t.second());q(this,"getMilliseconds",t=>t.millisecond());q(this,"setYear",(t,n)=>this.adjustOffset(this.restoreDayOfMonth(t.set("year",n),t)));q(this,"setMonth",(t,n)=>this.adjustOffset(this.restoreDayOfMonth(t.set("month",n),t)));q(this,"setDate",(t,n)=>this.adjustOffset(t.set("date",n)));q(this,"setHours",(t,n)=>this.adjustOffset(t.set("hour",n)));q(this,"setMinutes",(t,n)=>this.adjustOffset(t.set("minute",n)));q(this,"setSeconds",(t,n)=>this.adjustOffset(t.set("second",n)));q(this,"setMilliseconds",(t,n)=>this.adjustOffset(t.set("millisecond",n)));q(this,"getDaysInMonth",t=>t.daysInMonth());q(this,"getWeekArray",t=>{const n=this.startOfWeek(this.startOfMonth(t)),o=this.endOfWeek(this.endOfMonth(t));let s=0,i=n;const a=[];for(;i<o;){const l=Math.floor(s/7);a[l]=a[l]||[],a[l].push(i),i=this.addDays(i,1),s+=1}return a});q(this,"getWeekNumber",t=>t.week());q(this,"getYearRange",([t,n])=>{const o=this.startOfYear(t),s=this.endOfYear(n),i=[];let a=o;for(;this.isBefore(a,s);)i.push(a),a=this.addYears(a,1);return i});this.locale=t,this.formats=$({},PT,n),pt.extend(Rf)}getDayOfWeek(t){return t.day()+1}}const Nf=Qp({themeId:ci}),Tn=r.oneOfType([r.func,r.object]);function zo(e,t,n){return typeof e=="function"?e(t,n):e}const ir=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),NT=({openTo:e,defaultOpenTo:t,views:n,defaultViews:o})=>{const s=n??o;let i;if(e!=null)i=e;else if(s.includes(t))i=t;else if(s.length>0)i=s[0];else throw new Error(process.env.NODE_ENV!=="production"?'MUI X Date Pickers: The `views` prop must contain at least one view. The date picker needs at least one view to display. Add a valid view to the views array (e.g., ["year", "month", "day"]).':Re(153));return{views:s,openTo:i}},vu=(e,t,n)=>{let o=t;return o=e.setHours(o,e.getHours(n)),o=e.setMinutes(o,e.getMinutes(n)),o=e.setSeconds(o,e.getSeconds(n)),o=e.setMilliseconds(o,e.getMilliseconds(n)),o},MT=(e,t)=>e.isValid(t)?t:null,$T=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Mf=(e,t)=>{const o=[e.startOfYear(t)];for(;o.length<12;){const s=o[o.length-1];o.push(e.addMonths(s,1))}return o},il=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),$n=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},DT=["hours","minutes","seconds"],AT=["hours","minutes","seconds","meridiem"],Wo=e=>DT.includes(e),$f=e=>AT.includes(e),jT=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,Mr=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Df=(e,t,n,o)=>{const s=Mr(o.getHours(e),t,n);return o.setHours(e,s)},xu=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Yr=(e,t)=>(n,o)=>e?t.isAfter(n,o):xu(n,t)>xu(o,t),Af=(e,{format:t,views:n,ampm:o})=>{if(t!=null)return t;const s=e.formats;return ir(n,["hours"])?o?`${s.hours12h} ${s.meridiem}`:s.hours24h:ir(n,["minutes"])?s.minutes:ir(n,["seconds"])?s.seconds:ir(n,["minutes","seconds"])?`${s.minutes}:${s.seconds}`:ir(n,["hours","minutes","seconds"])?o?`${s.hours12h}:${s.minutes}:${s.seconds} ${s.meridiem}`:`${s.hours24h}:${s.minutes}:${s.seconds}`:o?`${s.hours12h}:${s.minutes} ${s.meridiem}`:`${s.hours24h}:${s.minutes}`},Rn={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},LT=e=>Math.max(...e.map(t=>Rn[t.type]??1)),ar=(e,t,n)=>{if(t===Rn.year)return e.startOfYear(n);if(t===Rn.month)return e.startOfMonth(n);if(t===Rn.day)return e.startOfDay(n);let o=n;return t<Rn.minutes&&(o=e.setMinutes(o,0)),t<Rn.seconds&&(o=e.setSeconds(o,0)),t<Rn.milliseconds&&(o=e.setMilliseconds(o,0)),o},VT=({props:e,adapter:t,granularity:n,timezone:o,getTodayDate:s})=>{let i=s?s():ar(t,n,il(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=ar(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=ar(t,n,e.maxDate));const a=Yr(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=ar(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:vu(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=ar(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:vu(t,i,e.maxTime))),i},al=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X: The token "${t}" is not supported by the Date and Time Pickers.
207
- 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.`:Re(157,t));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},hi=(e,t)=>{const n=[],o=e.date(void 0,"default"),s=e.startOfWeek(o),i=e.endOfWeek(o);let a=s;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(l=>e.formatByString(l,t))},jf=(e,t,n,o)=>{switch(n){case"month":return Mf(e,e.date(void 0,t)).map(s=>e.formatByString(s,o));case"weekDay":return hi(e,o);case"meridiem":{const s=e.date(void 0,t);return[e.startOfDay(s),e.endOfDay(s)].map(i=>e.formatByString(i,o))}default:return[]}},Su="s",FT=["0","1","2","3","4","5","6","7","8","9"],BT=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),Su)==="0"?FT:Array.from({length:10}).map((o,s)=>e.formatByString(e.setSeconds(t,s),Su))},nn=(e,t)=>{if(t[0]==="0")return e;const n=[];let o="";for(let s=0;s<e.length;s+=1){o+=e[s];const i=t.indexOf(o);i>-1&&(n.push(i.toString()),o="")}return n.join("")},ll=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),Cu=(e,t)=>{const n=nn(e,t);return n!==" "&&!Number.isNaN(Number(n))},cl=(e,t)=>Number(e).toString().padStart(t,"0"),Lf=(e,t,n,o,s)=>{if(process.env.NODE_ENV!=="production"&&s.type!=="day"&&s.contentType==="digit-with-letter")throw new Error([`MUI X: The token "${s.format}" is a digit format with letter in it.'
208
- This type of format is only supported for 'day' sections`].join(`
209
- `));if(s.type==="day"&&s.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,s.format)}let i=t.toString();return s.hasLeadingZerosInInput&&(i=cl(i,s.maxLength)),ll(i,o)},zT=(e,t,n)=>{let o=e.value||e.placeholder;const s=e.hasLeadingZerosInFormat;return e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(o=Number(nn(o,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!s&&o.length===1&&(o=`${o}‎`),o},wu=(e,t,n,o)=>{if(process.env.NODE_ENV!=="production"&&al(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},WT=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,Vf=(e,t,n,o)=>{if(t!=="digit")return!1;const s=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&o==="YY"?!0:e.formatByString(e.setYear(s,1),o).startsWith("0");case"month":return e.formatByString(e.startOfYear(s),o).length>1;case"day":return e.formatByString(e.startOfMonth(s),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(s),o).length>1;case"hours":return e.formatByString(e.setHours(s,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(s,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(s,1),o).length>1;default:throw new Error(process.env.NODE_ENV!=="production"?"MUI X:Invalid section type":Re(158))}},UT=(e,t,n)=>{const o=t.some(c=>c.type==="day"),s=[],i=[];for(let c=0;c<t.length;c+=1){const u=t[c];o&&u.type==="weekDay"||(s.push(u.format),i.push(zT(u,"non-input",n)))}const a=s.join(" "),l=i.join(" ");return e.parse(l,a)},qT=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),HT=(e,t,n)=>{const o=e.date(void 0,n),s=e.endOfYear(o),i=e.endOfDay(o),{maxDaysInMonth:a,longestMonth:l}=Mf(e,o).reduce((c,u)=>{const d=e.getDaysInMonth(u);return d>c.maxDaysInMonth?{maxDaysInMonth:d,longestMonth:u}:c},{maxDaysInMonth:0,longestMonth:null});return{year:({format:c})=>({minimum:0,maximum:WT(e,c)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(s)+1}),day:({currentDate:c})=>({minimum:1,maximum:e.isValid(c)?e.getDaysInMonth(c):a,longestMonth:l}),weekDay:({format:c,contentType:u})=>{if(u==="digit"){const d=hi(e,c).map(Number);return{minimum:Math.min(...d),maximum:Math.max(...d)}}return{minimum:1,maximum:7}},hours:({format:c})=>{const u=e.getHours(i),d=Number(nn(e.formatByString(e.startOfDay(o),c),t)),m=Number(nn(e.formatByString(e.endOfDay(o),c),t));return m!==u?d===0?{minimum:0,maximum:m}:{minimum:1,maximum:d}:d>u?{minimum:1,maximum:d}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let Tu=!1;const Iu=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!Tu){const n=["empty"];["date","date-time"].includes(t)&&n.push("weekDay","day","month","year"),["time","date-time"].includes(t)&&n.push("hours","minutes","seconds","meridiem");const o=e.find(s=>!n.includes(s.type));o&&(console.warn(`MUI X: The field component you are using is not compatible with the "${o.type}" date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),Tu=!0)}},YT=(e,t,n,o)=>{switch(t.type){case"year":return e.setYear(o,e.getYear(n));case"month":return e.setMonth(o,e.getMonth(n));case"weekDay":{let s=e.formatByString(n,t.format);t.hasLeadingZerosInInput&&(s=cl(s,t.maxLength));const i=hi(e,t.format),a=i.indexOf(s),c=i.indexOf(t.value)-a;return e.addDays(n,c)}case"day":return e.setDate(o,e.getDate(n));case"meridiem":{const s=e.getHours(n)<12?"am":"pm";return Df(o,s,!0,e)}case"hours":return e.setHours(o,e.getHours(n));case"minutes":return e.setMinutes(o,e.getMinutes(n));case"seconds":return e.setSeconds(o,e.getSeconds(n));default:return o}},Eu={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},_u=(e,t,n,o,s)=>[...n].sort((i,a)=>Eu[i.type]-Eu[a.type]).reduce((i,a)=>!s||a.modified?YT(e,a,t,i):i,o),GT=e=>{const t={};return e.forEach((n,o)=>{const s=o===0?null:o-1,i=o===e.length-1?null:o+1;t[o]={leftIndex:s,rightIndex:i}}),{neighbors:t,startIndex:0,endIndex:e.length-1}},pa=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(o=>o.type===e);return n===-1?null:n}return e},KT=["value","referenceDate"],qn={emptyValue:null,getTodayValue:il,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=Ce(e,KT);return o.adapter.isValid(t)?t:n??VT(o)},cleanValue:MT,areValuesEqual:$T,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},XT={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getHiddenInputValueFromSections:qT,parseValueStr:(e,t,n)=>n(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,n)=>n,clearDateSections:e=>e.map(t=>$({},t,{value:""}))};function wt(...e){const t=C.useRef(void 0),n=C.useCallback(o=>{const s=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{s.forEach(i=>i==null?void 0:i())}},e);return C.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}const Cn=typeof window<"u"?C.useLayoutEffect:C.useEffect;function xe(e){const t=C.useRef(e);return Cn(()=>{t.current=e}),C.useRef((...n)=>(0,t.current)(...n)).current}function Ao(e){return e&&e.ownerDocument||document}function Oo(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const QT=e=>{setTimeout(e,0)},Ff=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Ff(t.shadowRoot):t:null},hn=e=>Ff(Ao(e)),As=e=>Array.from(e.children).indexOf(hn(e)),ZT="@media (pointer: fine)";function Bf(e){const t={};for(const n of Object.keys(e))(n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n]);return t}const JT=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:$({},e)}}}}),zf={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="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",nextStepButtonLabel:"Next",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",timeRangePickerToolbarTitle:"Select time range",clockLabelText:(e,t)=>`Select ${e}. ${t?`Selected time is ${t}`:"No time selected"}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:e=>e?`Choose date, selected date is ${e}`:"Choose date",openTimePickerDialogue:e=>e?`Choose time, selected time is ${e}`:"Choose time",openRangePickerDialogue:e=>e?`Choose range, selected range is ${e}`:"Choose range",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.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"},e0=zf;JT(zf);const Wf=()=>{const e=C.useContext(Ds);if(e===null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Can not find the date and time pickers localization context.\nIt looks like you forgot to wrap your component in LocalizationProvider.\nThis can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package":Re(149));if(e.adapter===null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Can not find the date and time pickers adapter from its localization context.\nIt looks like you forgot to pass a `dateAdapter` to your LocalizationProvider.":Re(150));const t=C.useMemo(()=>$({},e0,e.localeText),[e.localeText]);return C.useMemo(()=>$({},e,{localeText:t}),[e,t])},lt=()=>Wf().adapter,rn=()=>Wf().localeText,fa=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],ma=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Uf=["minDateTime","maxDateTime"],t0=[...fa,...ma,...Uf],qf=e=>t0.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),n0=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","fieldRef","startFieldRef","endFieldRef","disabled","readOnly","dateSeparator","autoFocus","focused"],o0=(e,t)=>C.useMemo(()=>{const n=$({},e),o={},s=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return n0.forEach(s),t==="date"?fa.forEach(s):t==="time"?ma.forEach(s):t==="date-time"&&(fa.forEach(s),ma.forEach(s),Uf.forEach(s)),{forwardedProps:n,internalProps:o}},[e,t]),r0=({adapter:e,format:t})=>{let n=10,o=t,s=e.expandFormat(t);for(;s!==o;)if(o=s,s=e.expandFormat(o),n-=1,n<0)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the component.":Re(154));return s},s0=({adapter:e,expandedFormat:t})=>{const n=[],{start:o,end:s}=e.escapedCharacters,i=new RegExp(`(\\${o}[^\\${s}]*\\${s})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},i0=(e,t,n,o)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),o).length,format:o});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:o});case"day":return t.fieldDayPlaceholder({format:o});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:o});case"hours":return t.fieldHoursPlaceholder({format:o});case"minutes":return t.fieldMinutesPlaceholder({format:o});case"seconds":return t.fieldSecondsPlaceholder({format:o});case"meridiem":return t.fieldMeridiemPlaceholder({format:o});default:return o}},a0=({adapter:e,date:t,shouldRespectLeadingZeros:n,localeText:o,localizedDigits:s,now:i,token:a,startSeparator:l})=>{if(a==="")throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Should not call `commitToken` with an empty token":Re(155));const c=al(e,a),u=Vf(e,c.contentType,c.type,a),d=n?u:c.contentType==="digit",m=e.isValid(t);let h=m?e.formatByString(t,a):"",f=null;if(d)if(u)f=h===""?e.formatByString(i,a).length:h.length;else{if(c.maxLength==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X: The token ${a} should have a 'maxLength' property on it's adapter`:Re(156,a));f=c.maxLength,m&&(h=ll(cl(nn(h,s),f),s))}return $({},c,{format:a,maxLength:f,value:h,placeholder:i0(e,o,c,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:d,startSeparator:l,endSeparator:"",modified:!1})},l0=e=>{var f;const{adapter:t,expandedFormat:n,escapedParts:o}=e,s=t.date(void 0),i=[];let a="";const l=Object.keys(t.formatTokenMap).sort((g,p)=>p.length-g.length),c=/^([a-zA-Z]+)/,u=new RegExp(`^(${l.join("|")})*$`),d=new RegExp(`^(${l.join("|")})`),m=g=>o.find(p=>p.start<=g&&p.end>=g);let h=0;for(;h<n.length;){const g=m(h),p=g!=null,y=(f=c.exec(n.slice(h)))==null?void 0:f[1];if(!p&&y!=null&&u.test(y)){let x=y;for(;x.length>0;){const I=d.exec(x)[1];x=x.slice(I.length),i.push(a0($({},e,{now:s,token:I,startSeparator:a}))),a=""}h+=y.length}else{const x=n[h];p&&(g==null?void 0:g.start)===h||(g==null?void 0:g.end)===h||(i.length===0?a+=x:(i[i.length-1].endSeparator+=x,i[i.length-1].isEndFormatSeparator=!0)),h+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},c0=({isRtl:e,formatDensity:t,sections:n})=>n.map(o=>{const s=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`⁩${a}⁦`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return o.startSeparator=s(o.startSeparator),o.endSeparator=s(o.endSeparator),o}),Ou=e=>{let t=r0(e);e.isRtl&&(t=t.split(" ").reverse().join(" "));const n=s0($({},e,{expandedFormat:t})),o=l0($({},e,{expandedFormat:t,escapedParts:n}));return c0($({},e,{sections:o}))},gi=C.createContext(null);process.env.NODE_ENV!=="production"&&(gi.displayName="PickerContext");const Jo=()=>{const e=C.useContext(gi);if(e==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: The `usePickerContext` hook can only be called inside the context of a Picker component":Re(151));return e},ul=()=>C.useContext(gi),dl=C.createContext(()=>!0);process.env.NODE_ENV!=="production"&&(dl.displayName="IsValidValueContext");function u0(){return C.useContext(dl)}const pl=C.createContext(null);process.env.NODE_ENV!=="production"&&(pl.displayName="PickerFieldPrivateContext");function d0(){return C.useContext(pl)}const fl=C.createContext(null);process.env.NODE_ENV!=="production"&&(fl.displayName="PickerActionsContext");const ml=C.createContext({ownerState:{isPickerDisabled:!1,isPickerReadOnly:!1,isPickerValueEmpty:!1,isPickerOpen:!1,pickerVariant:"desktop",pickerOrientation:"portrait"},rootRefObject:{current:null},labelId:void 0,dismissViews:()=>{},hasUIView:!0,getCurrentViewMode:()=>"UI",triggerElement:null,viewContainerRole:null,defaultActionBarActions:[],onPopperExited:void 0});process.env.NODE_ENV!=="production"&&(ml.displayName="PickerPrivateContext");function Hf(e){const{contextValue:t,actionsContextValue:n,privateContextValue:o,fieldPrivateContextValue:s,isValidContextValue:i,localeText:a,children:l}=e;return b.jsx(gi.Provider,{value:t,children:b.jsx(fl.Provider,{value:n,children:b.jsx(ml.Provider,{value:o,children:b.jsx(pl.Provider,{value:s,children:b.jsx(dl.Provider,{value:i,children:b.jsx(mi,{localeText:a,children:l})})})})})})}const p0=()=>{const e=C.useContext(fl);if(e==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: The `usePickerActionsContext` can only be called in fields that are used as a slot of a Picker component":Re(148));return e},To=e=>e.saveQuery!=null,f0=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:n,timezone:o,setCharacterQuery:s,setTempAndroidValueStr:i,updateSectionValue:a}})=>{const l=lt(),c=({keyPressed:m,sectionIndex:h},f,g)=>{const p=m.toLowerCase(),y=n.sections[h];if(n.characterQuery!=null&&(!g||g(n.characterQuery.value))&&n.characterQuery.sectionIndex===h){const I=`${n.characterQuery.value}${p}`,w=f(I,y);if(!To(w))return s({sectionIndex:h,value:I,sectionType:y.type}),w}const x=f(p,y);return To(x)&&!x.saveQuery?(s(null),null):(s({sectionIndex:h,value:p,sectionType:y.type}),To(x)?null:x)},u=m=>{const h=(p,y,x)=>{const I=y.filter(w=>w.toLowerCase().startsWith(x));return I.length===0?{saveQuery:!1}:{sectionValue:I[0],shouldGoToNextSection:I.length===1}},f=(p,y,x,I)=>{const w=S=>jf(l,o,y.type,S);if(y.contentType==="letter")return h(y.format,w(y.format),p);if(x&&I!=null&&al(l,x).contentType==="letter"){const S=w(x),E=h(x,S,p);return To(E)?{saveQuery:!1}:$({},E,{sectionValue:I(E.sectionValue,S)})}return{saveQuery:!1}};return c(m,(p,y)=>{switch(y.type){case"month":{const x=I=>wu(l,I,l.formats.month,y.format);return f(p,y,l.formats.month,x)}case"weekDay":{const x=(I,w)=>w.indexOf(I).toString();return f(p,y,l.formats.weekday,x)}case"meridiem":return f(p,y);default:return{saveQuery:!1}}})},d=m=>{const h=({queryValue:g,skipIfBelowMinimum:p,section:y})=>{const x=nn(g,e),I=Number(x),w=t[y.type]({currentDate:null,format:y.format,contentType:y.contentType});if(I>w.maximum)return{saveQuery:!1};if(p&&I<w.minimum)return{saveQuery:!0};const S=I*10>w.maximum||x.length===w.maximum.toString().length;return{sectionValue:Lf(l,I,w,e,y),shouldGoToNextSection:S}};return c(m,(g,p)=>{if(p.contentType==="digit"||p.contentType==="digit-with-letter")return h({queryValue:g,skipIfBelowMinimum:!1,section:p});if(p.type==="month"){Vf(l,"digit","month","MM");const y=h({queryValue:g,skipIfBelowMinimum:!0,section:{type:p.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2}});if(To(y))return y;const x=wu(l,y.sectionValue,"MM",p.format);return $({},y,{sectionValue:x})}if(p.type==="weekDay"){const y=h({queryValue:g,skipIfBelowMinimum:!0,section:p});if(To(y))return y;const x=hi(l,p.format)[Number(y.sectionValue)-1];return $({},y,{sectionValue:x})}return{saveQuery:!1}},g=>Cu(g,e))};return xe(m=>{const h=n.sections[m.sectionIndex],g=Cu(m.keyPressed,e)?d($({},m,{keyPressed:ll(m.keyPressed,e)})):u(m);if(g==null){i(null);return}a({section:h,newSectionValue:g.sectionValue,shouldGoToNextSection:g.shouldGoToNextSection})})};function js(e){const{controlled:t,default:n,name:o,state:s="value"}=e,{current:i}=C.useRef(t!==void 0),[a,l]=C.useState(n),c=i?t:a;if(process.env.NODE_ENV!=="production"){C.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${s} state of ${o} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} element for 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(`
210
- `))},[s,o,t]);const{current:d}=C.useRef(n);C.useEffect(()=>{!i&&JSON.stringify(n)!==JSON.stringify(d)&&console.error([`MUI: A component is changing the default ${s} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join(`
211
- `))},[JSON.stringify(n)])}const u=C.useCallback(d=>{i||l(d)},[]);return[c,u]}const ku={};function m0(e,t){const n=C.useRef(ku);return n.current===ku&&(n.current=e(t)),n}const h0=[];function g0(e){C.useEffect(e,h0)}class hl{constructor(){q(this,"currentId",null);q(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});q(this,"disposeEffect",()=>this.clear)}static create(){return new hl}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function ws(){const e=m0(hl.create).current;return g0(e.disposeEffect),e}const bi=({adapter:e,value:t,timezone:n,props:o})=>{if(t===null)return null;const{minTime:s,maxTime:i,minutesStep:a,shouldDisableTime:l,disableIgnoringDatePartForTimeValidation:c=!1,disablePast:u,disableFuture:d}=o,m=e.date(void 0,n),h=Yr(c,e);switch(!0){case!e.isValid(t):return"invalidDate";case!!(s&&h(s,t)):return"minTime";case!!(i&&h(t,i)):return"maxTime";case!!(d&&e.isAfter(t,m)):return"disableFuture";case!!(u&&e.isBefore(t,m)):return"disablePast";case!!(l&&l(t,"hours")):return"shouldDisableTime-hours";case!!(l&&l(t,"minutes")):return"shouldDisableTime-minutes";case!!(l&&l(t,"seconds")):return"shouldDisableTime-seconds";case!!(a&&e.getMinutes(t)%a!==0):return"minutesStep";default:return null}};bi.valueManager=qn;function Yf(e){const{props:t,validator:n,value:o,timezone:s,onError:i}=e,a=lt(),l=C.useRef(n.valueManager.defaultErrorState),c=n({adapter:a,value:o,timezone:s,props:t}),u=n.valueManager.hasError(c);C.useEffect(()=>{i&&!n.valueManager.isSameError(c,l.current)&&i(c,o),l.current=c},[n,i,c,o]);const d=xe(m=>n({adapter:a,value:m,timezone:s,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}const Gr=({name:e,timezone:t,value:n,defaultValue:o,referenceDate:s,onChange:i,valueManager:a})=>{const l=lt(),[c,u]=js({name:e,state:"value",controlled:n,default:o??a.emptyValue}),d=C.useMemo(()=>a.getTimezone(l,c),[l,a,c]),m=xe(p=>d==null?p:a.setTimezone(l,d,p)),h=C.useMemo(()=>t||d||(s?l.getTimezone(Array.isArray(s)?s[0]:s):"default"),[t,d,s,l]),f=C.useMemo(()=>a.setTimezone(l,h,c),[a,l,h,c]),g=xe((p,...y)=>{const x=m(p);u(x),i==null||i(x,...y)});return{value:f,handleValueChange:g,timezone:h}},b0=5e3,y0=e=>{var he;const t=lt(),n=rn(),o=Wn(),{manager:{validator:s,valueType:i,internal_valueManager:a,internal_fieldValueManager:l},internalPropsWithDefaults:c,internalPropsWithDefaults:{value:u,defaultValue:d,referenceDate:m,onChange:h,format:f,formatDensity:g="dense",selectedSections:p,onSelectedSectionsChange:y,shouldRespectLeadingZeros:x=!1,timezone:I},forwardedProps:{error:w}}=e,{value:S,handleValueChange:E,timezone:T}=Gr({name:"a field component",timezone:I,value:u,defaultValue:d,referenceDate:m,onChange:h,valueManager:a}),R=C.useRef(S);C.useEffect(()=>{R.current=S},[S]);const{hasValidationError:N}=Yf({props:c,validator:s,timezone:T,value:S,onError:c.onError}),L=C.useMemo(()=>BT(t),[t]),V=C.useMemo(()=>HT(t,L,T),[t,L,T]),A=C.useCallback(re=>l.getSectionsFromValue(re,J=>Ou({adapter:t,localeText:n,localizedDigits:L,format:f,date:J,formatDensity:g,shouldRespectLeadingZeros:x,isRtl:o})),[l,f,n,L,o,x,t,g]),[v,P]=C.useState(()=>{const re=A(S);Iu(re,i);const J={sections:re,lastExternalValue:S,lastSectionsDependencies:{format:f,isRtl:o,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},ge=LT(re),ie=a.getInitialReferenceValue({referenceDate:m,value:S,adapter:t,props:c,granularity:ge,timezone:T});return $({},J,{referenceValue:ie})}),[O,_]=js({controlled:p,default:null,name:"useField",state:"selectedSections"}),k=re=>{_(re),y==null||y(re)},D=C.useMemo(()=>pa(O,v.sections),[O,v.sections]),M=D==="all"?0:D,z=C.useMemo(()=>GT(v.sections),[v.sections]),j=C.useMemo(()=>v.sections.every(re=>re.value===""),[v.sections]),B=C.useMemo(()=>{if(M!=null)return!1;const re=v.sections.filter(J=>J.value!=="");return re.length>0&&v.sections.length-re.length>0},[v.sections,M]),W=C.useMemo(()=>w!==void 0?w:N||B,[N,B,w]),X=re=>{const J={validationError:s({adapter:t,value:re,timezone:T,props:c})};E(re,J)},Q=(re,J)=>{const ge=[...v.sections];return ge[re]=$({},ge[re],{value:J,modified:!0}),ge},G=C.useRef(null),Z=ws(),te=re=>{M!=null&&(G.current={sectionIndex:M,value:re},Z.start(0,()=>{G.current=null}))},H=()=>{a.areValuesEqual(t,S,a.emptyValue)?P(re=>$({},re,{sections:re.sections.map(J=>$({},J,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(P(re=>$({},re,{characterQuery:null})),X(a.emptyValue))},F=()=>{if(M==null)return;const re=v.sections[M];re.value!==""&&(te(""),l.getDateFromSection(S,re)===null?P(J=>$({},J,{sections:Q(M,""),tempValueStrAndroid:null,characterQuery:null})):(P(J=>$({},J,{characterQuery:null})),X(l.updateDateInValue(S,re,null))))},U=re=>{const J=(ie,fe)=>{const se=t.parse(ie,f);if(!t.isValid(se))return null;const Te=Ou({adapter:t,localeText:n,localizedDigits:L,format:f,date:se,formatDensity:g,shouldRespectLeadingZeros:x,isRtl:o});return _u(t,se,Te,fe,!1)},ge=l.parseValueStr(re,v.referenceValue,J);X(ge)},ae=ws(),K=({section:re,newSectionValue:J,shouldGoToNextSection:ge})=>{Z.clear(),ae.clear();const ie=l.getDateFromSection(S,re);ge&&M<v.sections.length-1&&k(M+1);const fe=Q(M,J),se=l.getDateSectionsFromValue(fe,re),Te=UT(t,se,L);if(t.isValid(Te)){const ke=_u(t,Te,se,l.getDateFromSection(v.referenceValue,re),!0);return ie==null&&ae.start(0,()=>{R.current===S&&P(ve=>$({},ve,{sections:l.clearDateSections(v.sections,re),tempValueStrAndroid:null}))}),X(l.updateDateInValue(S,re,ke))}return se.every(ke=>ke.value!=="")&&(ie==null||t.isValid(ie))?(te(J),X(l.updateDateInValue(S,re,Te))):(ie!=null&&(te(J),X(l.updateDateInValue(S,re,Te))),P(ke=>$({},ke,{sections:fe,tempValueStrAndroid:null})))},ce=re=>P(J=>$({},J,{tempValueStrAndroid:re})),oe=xe(re=>{P(J=>$({},J,{characterQuery:re}))});if(S!==v.lastExternalValue){const re=G.current!=null&&!t.isValid(l.getDateFromSection(S,v.sections[G.current.sectionIndex]));let J;re?J=Q(G.current.sectionIndex,G.current.value):J=A(S),P(ge=>$({},ge,{lastExternalValue:S,sections:J,sectionsDependencies:{format:f,isRtl:o,locale:t.locale},referenceValue:re?ge.referenceValue:l.updateReferenceValue(t,S,ge.referenceValue),tempValueStrAndroid:null}))}if(o!==v.lastSectionsDependencies.isRtl||f!==v.lastSectionsDependencies.format||t.locale!==v.lastSectionsDependencies.locale){const re=A(S);Iu(re,i),P(J=>$({},J,{lastSectionsDependencies:{format:f,isRtl:o,locale:t.locale},sections:re,tempValueStrAndroid:null,characterQuery:null}))}v.characterQuery!=null&&!W&&M==null&&oe(null),v.characterQuery!=null&&((he=v.sections[v.characterQuery.sectionIndex])==null?void 0:he.type)!==v.characterQuery.sectionType&&oe(null),C.useEffect(()=>{G.current!=null&&(G.current=null)});const be=ws();return C.useEffect(()=>(v.characterQuery!=null&&be.start(b0,()=>oe(null)),()=>{}),[v.characterQuery,oe,be]),C.useEffect(()=>{v.tempValueStrAndroid!=null&&M!=null&&F()},[v.sections]),{activeSectionIndex:M,areAllSectionsEmpty:j,error:W,localizedDigits:L,parsedSelectedSections:D,sectionOrder:z,sectionsValueBoundaries:V,state:v,timezone:T,value:S,clearValue:H,clearActiveSection:F,setCharacterQuery:oe,setSelectedSections:k,setTempAndroidValueStr:ce,updateSectionValue:K,updateValueFromValueStr:U,getSectionsFromValue:A}};function v0(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:o}=e,s=ul(),i=d0(),a=wt(n.fieldRef,o?null:i==null?void 0:i.internalFieldRef,o?null:i==null?void 0:i.fieldRef),l=s==null?void 0:s.setValue,c=C.useCallback((d,m)=>l==null?void 0:l(d,{validationError:m.validationError,shouldClose:!1}),[l]),u=C.useMemo(()=>i!=null&&s!=null?$({value:s.value,onChange:c,timezone:s.timezone,disabled:s.disabled,readOnly:s.readOnly,autoFocus:s.autoFocus&&!s.open,focused:s.open?!0:void 0,format:s.fieldFormat,formatDensity:i.formatDensity,selectedSections:i.selectedSections,onSelectedSectionsChange:i.onSelectedSectionsChange,fieldRef:a},n):n,[s,i,n,c,a]);return t(u)}function gl(e){const{focused:t,domGetters:n,stateResponse:{parsedSelectedSections:o,state:s}}=e;if(!n.isReady())return;const i=Ao(n.getRoot()).getSelection();if(!i)return;if(o==null){i.rangeCount>0&&i.getRangeAt(0).startContainer instanceof Node&&n.getRoot().contains(i.getRangeAt(0).startContainer)&&i.removeAllRanges(),t&&n.getRoot().blur();return}if(!n.getRoot().contains(hn(n.getRoot())))return;const a=new window.Range;let l;o==="all"?l=n.getRoot():s.sections[o].type==="empty"?l=n.getSectionContainer(o):l=n.getSectionContent(o),a.selectNodeContents(l),l.focus(),i.removeAllRanges(),i.addRange(a)}function x0(e){const{manager:{internal_fieldValueManager:t},focused:n,setFocused:o,domGetters:s,stateResponse:i,applyCharacterEditing:a,internalPropsWithDefaults:l,stateResponse:{parsedSelectedSections:c,sectionsValueBoundaries:u,sectionOrder:d,state:m,value:h,activeSectionIndex:f,localizedDigits:g,timezone:p,clearValue:y,clearActiveSection:x,setCharacterQuery:I,setSelectedSections:w,updateValueFromValueStr:S,updateSectionValue:E},internalPropsWithDefaults:{disabled:T=!1,readOnly:R=!1,minutesStep:N}}=e,L=lt(),V=xe(M=>{var z;if(!T)switch(!0){case((M.ctrlKey||M.metaKey)&&(((z=M.key)==null?void 0:z.toUpperCase())==="A"||String.fromCharCode(M.keyCode)==="A")&&!M.shiftKey&&!M.altKey):{M.preventDefault(),w("all");break}case M.key==="ArrowRight":{if(M.preventDefault(),c==null)w(d.startIndex);else if(c==="all")w(d.endIndex);else{const j=d.neighbors[c].rightIndex;j!==null&&w(j)}break}case M.key==="ArrowLeft":{if(M.preventDefault(),c==null)w(d.endIndex);else if(c==="all")w(d.startIndex);else{const j=d.neighbors[c].leftIndex;j!==null&&w(j)}break}case M.key==="Delete":{if(M.preventDefault(),R)break;c==null||c==="all"?y():x();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(M.key):{if(M.preventDefault(),R||f==null)break;c==="all"&&w(f);const j=m.sections[f],B=w0(L,p,j,M.key,u,g,t.getDateFromSection(h,j),{minutesStep:N});E({section:j,newSectionValue:B,shouldGoToNextSection:!1});break}}}),A=ws(),v=xe(()=>{if(!(T||!s.isReady())){if(c==="all"){o(!0),A.start(0,()=>{const M=document.getSelection();if(!M||M.rangeCount===0){w(d.startIndex);return}const z=M.getRangeAt(0).startOffset;if(z===0){w(d.startIndex);return}let j=0,B=0;for(;B<z&&j<m.sections.length;){const W=m.sections[j];j+=1,B+=`${W.startSeparator}${W.value||W.placeholder}${W.endSeparator}`.length}w(j-1)});return}n||(o(!0),c==null&&w(d.startIndex))}}),P=xe(M=>{if(T||!s.isReady()||c==="all"||M.button!==0)return;const z=M.target,j=s.getRoot();if(!j.contains(z))return;const B=z.closest("[data-sectionindex]"),W=B?Number(B.dataset.sectionindex):S0(j,M.clientX);W==null||!Number.isInteger(W)||(M.preventDefault(),o(!0),w(W))}),O=xe(M=>{if(!s.isReady()||c!=="all")return;const j=M.target.textContent??"";s.getRoot().innerHTML=m.sections.map(B=>`${B.startSeparator}${B.value||B.placeholder}${B.endSeparator}`).join(""),gl({focused:n,domGetters:s,stateResponse:i}),j.length===0||j.charCodeAt(0)===10?(y(),w("all")):j.length>1?S(j):(c==="all"&&w(0),a({keyPressed:j,sectionIndex:0}))}),_=xe(M=>{if(R||c!=="all"){M.preventDefault();return}const z=M.clipboardData.getData("text");M.preventDefault(),I(null),S(z)}),k=xe(()=>{if(n||T||!s.isReady())return;const M=hn(s.getRoot());o(!0),s.getSectionIndexFromDOMElement(M)!=null||w(d.startIndex)}),D=xe(()=>{setTimeout(()=>{if(!s.isReady())return;const M=hn(s.getRoot());!s.getRoot().contains(M)&&(o(!1),w(null))})});return{onKeyDown:V,onBlur:D,onFocus:k,onClick:v,onMouseDown:P,onPaste:_,onInput:O,contentEditable:c==="all",tabIndex:l.disabled||c===0?-1:0}}function S0(e,t){const n=e.querySelectorAll('[role="spinbutton"]');if(n.length===0)return null;let o=0,s=1/0;for(let i=0;i<n.length;i+=1){const a=n[i].getBoundingClientRect(),l=(a.left+a.right)/2,c=Math.abs(t-l);c<s&&(s=c,o=i)}return o}function C0(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function w0(e,t,n,o,s,i,a,l){const c=C0(o),u=o==="Home",d=o==="End",m=n.value===""||u||d,h=()=>{const g=s[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),p=I=>Lf(e,I,g,i,n),y=n.type==="minutes"&&(l!=null&&l.minutesStep)?l.minutesStep:1;let x;if(m){if(n.type==="year"&&!d&&!u)return e.formatByString(e.date(void 0,t),n.format);c>0||u?x=g.minimum:x=g.maximum}else x=parseInt(nn(n.value,i),10)+c*y;return x%y!==0&&((c<0||u)&&(x+=y-(y+x)%y),(c>0||d)&&(x-=x%y)),x>g.maximum?p(g.minimum+(x-g.maximum-1)%(g.maximum-g.minimum+1)):x<g.minimum?p(g.maximum-(g.minimum-x-1)%(g.maximum-g.minimum+1)):p(x)},f=()=>{const g=jf(e,t,n.type,n.format);if(g.length===0)return n.value;if(m)return c>0||u?g[0]:g[g.length-1];const x=((g.indexOf(n.value)+c)%g.length+g.length)%g.length;return g[x]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?h():f()}function T0(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:n,state:o,updateValueFromValueStr:s}}=e,i=xe(l=>{s(l.target.value)});return{value:C.useMemo(()=>n?"":t.getHiddenInputValueFromSections(o.sections),[n,o.sections,t]),onChange:i}}function I0(e){const{stateResponse:{parsedSelectedSections:t,setSelectedSections:n},internalPropsWithDefaults:{disabled:o=!1}}=e,s=xe(i=>{if(o||i.isDefaultPrevented())return;const a=Number(i.currentTarget.dataset.sectionindex);Number.isInteger(a)&&t!==a&&n(a)});return C.useCallback(i=>({"data-sectionindex":i,onClick:s}),[s])}function E0(e){const t=lt(),n=rn(),{focused:o,domGetters:s,stateResponse:i,applyCharacterEditing:a,manager:{internal_fieldValueManager:l},stateResponse:{parsedSelectedSections:c,sectionsValueBoundaries:u,state:d,value:m,localizedDigits:h,clearActiveSection:f,setCharacterQuery:g,setSelectedSections:p,updateSectionValue:y,updateValueFromValueStr:x},internalPropsWithDefaults:{disabled:I=!1,readOnly:w=!1}}=e,S=c==="all",E=!S&&!I&&!w,T=xe(v=>{if(!s.isReady())return;const P=d.sections[v];s.getSectionContent(v).innerHTML=P.value||P.placeholder,gl({focused:o,domGetters:s,stateResponse:i})}),R=xe(v=>{if(!s.isReady())return;const P=v.target,O=P.textContent??"",_=s.getSectionIndexFromDOMElement(P),k=d.sections[_];if(w){T(_);return}if(O.length===0){if(k.value===""){T(_);return}const D=v.nativeEvent.inputType;if(D==="insertParagraph"||D==="insertLineBreak"){T(_);return}T(_),f();return}a({keyPressed:O,sectionIndex:_}),T(_)}),N=xe(v=>{v.preventDefault()}),L=xe(v=>{if(v.preventDefault(),w||I||typeof c!="number")return;const P=d.sections[c],O=v.clipboardData.getData("text"),_=/^[a-zA-Z]+$/.test(O),k=/^[0-9]+$/.test(O),D=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(O);P.contentType==="letter"&&_||P.contentType==="digit"&&k||P.contentType==="digit-with-letter"&&D?(g(null),y({section:P,newSectionValue:O,shouldGoToNextSection:!0})):!_&&!k&&(g(null),x(O))}),V=xe(v=>{v.preventDefault(),v.dataTransfer.dropEffect="none"}),A=C.useCallback(v=>()=>{I||p(v)},[I,p]);return C.useCallback((v,P)=>{const O=u[v.type]({currentDate:l.getDateFromSection(m,v),contentType:v.contentType,format:v.format});return{onInput:R,onPaste:L,onMouseUp:N,onDragOver:V,onFocus:A(P),"aria-readonly":w,"aria-valuenow":O0(v,t,h),"aria-valuemin":O.minimum,"aria-valuemax":O.maximum,"aria-valuetext":v.value?_0(v,t,h):n.empty,"aria-label":n[v.type],"aria-disabled":I,tabIndex:!E||S||P>0?-1:0,contentEditable:!S&&!I&&!w,role:"spinbutton","data-range-position":v.dateName||void 0,spellCheck:E?!1:void 0,autoCapitalize:E?"none":void 0,autoCorrect:E?"off":void 0,children:v.value||v.placeholder,inputMode:v.contentType==="letter"?"text":"numeric"}},[u,S,I,w,E,n,t,h,R,L,N,V,A,l,m])}function _0(e,t,n){if(e.value)switch(e.type){case"month":{if(e.contentType==="digit"){const s=t.setMonth(t.date(),Number(nn(e.value,n))-1);return t.isValid(s)?t.format(s,"month"):""}const o=t.parse(e.value,e.format);return o&&t.isValid(o)?t.format(o,"month"):void 0}case"day":if(e.contentType==="digit"){const o=t.setDate(t.startOfYear(t.date()),Number(nn(e.value,n)));return t.isValid(o)?t.format(o,"dayOfMonth"):""}return e.value;case"weekDay":return;default:return}}function O0(e,t,n){if(!e.value)return;const o=nn(e.value,n);switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(o);case"meridiem":{const s=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return s?t.getHours(s)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(o,10):Number(o);case"month":{if(e.contentType==="digit")return Number(o);const s=t.parse(e.value,e.format);return s?t.getMonth(s)+1:void 0}default:return e.contentType!=="letter"?Number(o):void 0}}const k0=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:o,manager:{valueType:s,internal_useOpenPickerButtonAriaLabel:i}}=e,{internalProps:a,forwardedProps:l}=o0(t,s);process.env.NODE_ENV!=="production"&&l.enableAccessibleFieldDOMStructure!=null&&Sn(["MUI X: The `enableAccessibleFieldDOMStructure` prop has been removed.","The accessible DOM structure is now the default and only option.","You can safely remove the prop from your code.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v8/)."]);const c=v0({manager:n,internalProps:a,skipContextFieldRefAssignment:o}),{sectionListRef:u,onBlur:d,onClick:m,onMouseDown:h,onFocus:f,onInput:g,onPaste:p,onKeyDown:y,onClear:x,clearable:I}=l,{disabled:w=!1,readOnly:S=!1,autoFocus:E=!1,focused:T,fieldRef:R}=c,N=C.useRef(null),L=wt(u,N),V=C.useMemo(()=>({isReady:()=>N.current!=null,getRoot:()=>N.current.getRoot(),getSectionContainer:J=>N.current.getSectionContainer(J),getSectionContent:J=>N.current.getSectionContent(J),getSectionIndexFromDOMElement:J=>N.current.getSectionIndexFromDOMElement(J)}),[N]),A=y0({manager:n,internalPropsWithDefaults:c,forwardedProps:l}),{areAllSectionsEmpty:v,error:P,parsedSelectedSections:O,sectionOrder:_,state:k,value:D,clearValue:M,setSelectedSections:z}=A,j=f0({stateResponse:A}),B=i(D),[W,X]=C.useState(!1);function Q(J=0){if(w||!N.current||Pu(N)!=null)return;const ge=pa(J,k.sections);X(!0),N.current.getSectionContent(ge).focus()}const G=x0({manager:n,internalPropsWithDefaults:c,stateResponse:A,applyCharacterEditing:j,focused:W,setFocused:X,domGetters:V}),Z=T0({manager:n,stateResponse:A}),te=I0({stateResponse:A,internalPropsWithDefaults:c}),H=E0({manager:n,stateResponse:A,applyCharacterEditing:j,internalPropsWithDefaults:c,domGetters:V,focused:W}),F=xe(J=>{y==null||y(J),G.onKeyDown(J)}),U=xe(J=>{G.onBlur(J);const ge=J.relatedTarget;V.isReady()&&ge instanceof Node&&V.getRoot().contains(ge)||d==null||d(J)}),ae=xe(J=>{G.onFocus(J);const ge=J.relatedTarget;V.isReady()&&ge instanceof Node&&V.getRoot().contains(ge)||f==null||f(J)}),K=xe(J=>{J.isDefaultPrevented()||(m==null||m(J),G.onClick(J))}),ce=xe(J=>{J.isDefaultPrevented()||(h==null||h(J),G.onMouseDown(J))}),oe=xe(J=>{p==null||p(J),G.onPaste(J)}),be=xe(J=>{g==null||g(J),G.onInput(J)}),he=xe((J,...ge)=>{J.preventDefault(),x==null||x(J,...ge),M(),Ru(N)?z(_.startIndex):Q(0)}),re=C.useMemo(()=>k.sections.map((J,ge)=>{const ie=H(J,ge);return{container:te(ge),content:ie,before:{children:J.startSeparator},after:{children:J.endSeparator,"data-range-position":J.isEndFormatSeparator?ie["data-range-position"]:void 0}}}),[k.sections,te,H]);return C.useEffect(()=>{if(N.current==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`\nYou probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.\n\nLearn 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":Re(249));E&&!w&&N.current.getSectionContent(_.startIndex).focus()},[]),Cn(()=>{if(!(!W||!N.current)){if(O==="all")N.current.getRoot().focus();else if(typeof O=="number"){const J=N.current.getSectionContent(O);J&&J.focus()}}},[O,W]),Cn(()=>{gl({focused:W,domGetters:V,stateResponse:A})}),C.useImperativeHandle(R,()=>({getSections:()=>k.sections,getActiveSectionIndex:()=>Pu(N),setSelectedSections:J=>{if(w||!N.current)return;const ge=pa(J,k.sections);X((ge==="all"?0:ge)!==null),z(J)},focusField:Q,isFieldFocused:()=>Ru(N),clearValue:M})),$({},l,G,{onBlur:U,onClick:K,onMouseDown:ce,onFocus:ae,onInput:be,onPaste:oe,onKeyDown:F,onClear:he},Z,{error:P,clearable:!!(I&&!v&&!S&&!w),focused:T??W,sectionListRef:L,elements:re,areAllSectionsEmpty:v,disabled:w,readOnly:S,autoFocus:E,openPickerAriaLabel:B})};function Pu(e){var n;const t=hn((n=e.current)==null?void 0:n.getRoot());return!t||!e.current||!e.current.getRoot().contains(t)?null:e.current.getSectionIndexFromDOMElement(t)}function Ru(e){var n;const t=hn((n=e.current)==null?void 0:n.getRoot());return!!e.current&&e.current.getRoot().contains(t)}const bl=e=>{const t=lt(),n=C.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function P0(e={}){const{ampm:t}=e;return C.useMemo(()=>({valueType:"time",validator:bi,internal_valueManager:qn,internal_fieldValueManager:XT,internal_useApplyDefaultValuesToFieldInternalProps:N0,internal_useOpenPickerButtonAriaLabel:R0(t)}),[t])}function R0(e){return function(n){const o=lt(),s=rn();return C.useMemo(()=>{const i=e??o.is12HourCycleInCurrentLocale()?"fullTime12h":"fullTime24h",a=o.isValid(n)?o.format(n,i):null;return s.openTimePickerDialogue(a)},[n,s,o])}}function N0(e){const t=lt(),n=Gf(e),o=C.useMemo(()=>e.ampm??t.is12HourCycleInCurrentLocale(),[e.ampm,t]);return C.useMemo(()=>$({},e,n,{format:e.format??(o?t.formats.fullTime12h:t.formats.fullTime24h)}),[e,n,o,t])}function Gf(e){return C.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1}),[e.disablePast,e.disableFuture])}const M0=e=>{const t=P0(e);return k0({manager:t,props:e})};function $0(e){return Me("MuiIconButton",e)}const Nu=_e("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),D0=e=>{const{classes:t,disabled:n,color:o,edge:s,size:i,loading:a}=e,l={root:["root",a&&"loading",n&&"disabled",o!=="default"&&`color${le(o)}`,s&&`edge${le(s)}`,`size${le(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Le(l,$0,t)},A0=ne(io,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${le(n.color)}`],n.edge&&t[`edge${le(n.edge)}`],t[`size${le(n.size)}`]]}})(Je(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).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}}]})),Je(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Ct()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Ct()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Nu.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Nu.loading}`]:{color:"transparent"}}))),j0=ne("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),ao=C.forwardRef(function(t,n){const o=Ye({props:t,name:"MuiIconButton"}),{edge:s=!1,children:i,className:a,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:m,loading:h=null,loadingIndicator:f,...g}=o,p=Ja(m),y=f??b.jsx(di,{"aria-labelledby":p,color:"inherit",size:16}),x={...o,edge:s,color:l,disabled:c,disableFocusRipple:u,loading:h,loadingIndicator:y,size:d},I=D0(x);return b.jsxs(A0,{id:h?p:m,className:ue(I.root,a),centerRipple:!0,focusRipple:!u,disabled:c||h,ref:n,...g,ownerState:x,children:[typeof h=="boolean"&&b.jsx("span",{className:I.loadingWrapper,style:{display:"contents"},children:b.jsx(j0,{className:I.loadingIndicator,ownerState:x,children:h&&y})}),i]})});process.env.NODE_ENV!=="production"&&(ao.propTypes={children:Un(r.node,e=>C.Children.toArray(e.children).some(n=>C.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(`
212
- `)):null),classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),r.string]),disabled:r.bool,disableFocusRipple:r.bool,disableRipple:r.bool,edge:r.oneOf(["end","start",!1]),id:r.string,loading:r.bool,loadingIndicator:r.node,size:r.oneOfType([r.oneOf(["small","medium","large"]),r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const yi=C.createContext(void 0);process.env.NODE_ENV!=="production"&&(yi.displayName="FormControlContext");function po(){return C.useContext(yi)}function L0(e){return Me("MuiInputAdornment",e)}const Mu=_e("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var $u;const V0=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${le(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},F0=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:o,position:s,size:i,variant:a}=e,l={root:["root",n&&"disablePointerEvents",s&&`position${le(s)}`,a,o&&"hiddenLabel",i&&`size${le(i)}`]};return Le(l,L0,t)},B0=ne("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:V0})(Je(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Mu.positionStart}&:not(.${Mu.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Kf=C.forwardRef(function(t,n){const o=Ye({props:t,name:"MuiInputAdornment"}),{children:s,className:i,component:a="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:u,variant:d,...m}=o,h=po()||{};let f=d;d&&h.variant&&process.env.NODE_ENV!=="production"&&d===h.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),h&&!f&&(f=h.variant);const g={...o,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:l,position:u,variant:f},p=F0(g);return b.jsx(yi.Provider,{value:null,children:b.jsx(B0,{as:a,ownerState:g,className:ue(p.root,i),ref:n,...m,children:typeof s=="string"&&!c?b.jsx(uo,{color:"textSecondary",children:s}):b.jsxs(C.Fragment,{children:[u==="start"?$u||($u=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,s]})})})});process.env.NODE_ENV!=="production"&&(Kf.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,disablePointerEvents:r.bool,disableTypography:r.bool,position:r.oneOf(["end","start"]).isRequired,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOf(["filled","outlined","standard"])});function z0(e){return typeof e=="string"}function W0(e,t,n){return e===void 0||z0(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function U0(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function q0(e){if(e===void 0)return{};const t={};for(const n of Object.keys(e))U0(n,e[n])&&(t[n]=e[n]);return t}function Du(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function H0(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:s,className:i}=e;if(!t){const f=ue(n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),g={...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},p={...n,...s,...o};return f.length>0&&(p.className=f),Object.keys(g).length>0&&(p.style=g),{props:p,internalRef:void 0}}const a=q0({...s,...o}),l=Du(o),c=Du(s),u=t(a),d=ue(u==null?void 0:u.className,n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),m={...u==null?void 0:u.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},h={...u,...n,...c,...l};return d.length>0&&(h.className=d),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:u.ref}}function He(e){var m;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:s=!1,...i}=e,a=s?{}:zo(n,o),{props:l,internalRef:c}=H0({...i,externalSlotProps:a}),u=wt(c,a==null?void 0:a.ref,(m=e.additionalProps)==null?void 0:m.ref);return W0(t,{...l,ref:u},o)}const vt=()=>C.useContext(ml);function yl(e){const{ownerState:t}=vt(),n=Wn();return C.useMemo(()=>$({},t,{isFieldDisabled:e.disabled??!1,isFieldReadOnly:e.readOnly??!1,isFieldRequired:e.required??!1,fieldDirection:n?"rtl":"ltr"}),[t,e.disabled,e.readOnly,e.required,n])}ut(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Y0=ut(b.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),G0=ut(b.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight");ut(b.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");const K0=ut(b.jsxs(C.Fragment,{children:[b.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"}),b.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");ut(b.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");ut(b.jsxs(C.Fragment,{children:[b.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"}),b.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const X0=ut(b.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");function at(e,t,n=void 0){const o={};for(const s in e){const i=e[s];let a="",l=!0;for(let c=0;c<i.length;c+=1){const u=i[c];u&&(a+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(a+=" "+n[u]))}o[s]=a}return o}let Au=0;function Q0(e){const[t,n]=C.useState(e),o=e||t;return C.useEffect(()=>{t==null&&(Au+=1,n(`mui-${Au}`))},[t]),o}const Z0={...C},ju=Z0.useId;function vl(e){if(ju!==void 0){const t=ju();return e??t}return Q0(e)}function xl({props:e,states:t,muiFormControl:n}){return t.reduce((o,s)=>(o[s]=e[s],n&&typeof e[s]>"u"&&(o[s]=n[s]),o),{})}function J0(e){return Me("MuiFormLabel",e)}const Sr=_e("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),eI=e=>{const{classes:t,color:n,focused:o,disabled:s,error:i,filled:a,required:l}=e,c={root:["root",`color${le(n)}`,s&&"disabled",i&&"error",a&&"filled",o&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return Le(c,J0,t)},tI=ne("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Je(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Ct()).map(([t])=>({props:{color:t},style:{[`&.${Sr.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Sr.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Sr.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),nI=ne("span",{name:"MuiFormLabel",slot:"Asterisk"})(Je(({theme:e})=>({[`&.${Sr.error}`]:{color:(e.vars||e).palette.error.main}}))),Xf=C.forwardRef(function(t,n){const o=Ye({props:t,name:"MuiFormLabel"}),{children:s,className:i,color:a,component:l="label",disabled:c,error:u,filled:d,focused:m,required:h,...f}=o,g=po(),p=xl({props:o,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),y={...o,color:p.color||"primary",component:l,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},x=eI(y);return b.jsxs(tI,{as:l,ownerState:y,className:ue(x.root,i),ref:n,...f,children:[s,p.required&&b.jsxs(nI,{ownerState:y,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Xf.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["error","info","primary","secondary","success","warning"]),r.string]),component:r.elementType,disabled:r.bool,error:r.bool,filled:r.bool,focused:r.bool,required:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function oI(e){return Me("MuiInputLabel",e)}_e("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const rI=e=>{const{classes:t,formControl:n,size:o,shrink:s,disableAnimation:i,variant:a,required:l}=e,c={root:["root",n&&"formControl",!i&&"animated",s&&"shrink",o&&o!=="medium"&&`size${le(o)}`,a],asterisk:[l&&"asterisk"]},u=Le(c,oI,t);return{...t,...u}},sI=ne(Xf,{shouldForwardProp:e=>Zo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Sr.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Je(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.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:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.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:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.shrink&&o==="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:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Qf=C.forwardRef(function(t,n){const o=Ye({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:i,shrink:a,variant:l,className:c,...u}=o,d=po();let m=a;typeof m>"u"&&d&&(m=d.filled||d.focused||d.adornedStart);const h=xl({props:o,muiFormControl:d,states:["size","variant","required","focused"]}),f={...o,disableAnimation:s,formControl:d,shrink:m,size:h.size,variant:h.variant,required:h.required,focused:h.focused},g=rI(f);return b.jsx(sI,{"data-shrink":m,ref:n,className:ue(g.root,c),...u,ownerState:f,classes:g})});process.env.NODE_ENV!=="production"&&(Qf.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["error","info","primary","secondary","success","warning"]),r.string]),disableAnimation:r.bool,disabled:r.bool,error:r.bool,focused:r.bool,margin:r.oneOf(["dense"]),required:r.bool,shrink:r.bool,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOf(["filled","outlined","standard"])});function iI(e){return Me("MuiFormHelperText",e)}const Lu=_e("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Vu;const aI=e=>{const{classes:t,contained:n,size:o,disabled:s,error:i,filled:a,focused:l,required:c}=e,u={root:["root",s&&"disabled",i&&"error",o&&`size${le(o)}`,n&&"contained",l&&"focused",a&&"filled",c&&"required"]};return Le(u,iI,t)},lI=ne("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${le(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Je(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Lu.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Lu.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Zf=C.forwardRef(function(t,n){const o=Ye({props:t,name:"MuiFormHelperText"}),{children:s,className:i,component:a="p",disabled:l,error:c,filled:u,focused:d,margin:m,required:h,variant:f,...g}=o,p=po(),y=xl({props:o,muiFormControl:p,states:["variant","size","disabled","error","filled","focused","required"]}),x={...o,component:a,contained:y.variant==="filled"||y.variant==="outlined",variant:y.variant,size:y.size,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required};delete x.ownerState;const I=aI(x);return b.jsx(lI,{as:a,className:ue(I.root,i),ref:n,...g,ownerState:x,children:s===" "?Vu||(Vu=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});process.env.NODE_ENV!=="production"&&(Zf.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,disabled:r.bool,error:r.bool,filled:r.bool,focused:r.bool,margin:r.oneOf(["dense"]),required:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["filled","outlined","standard"]),r.string])});function Fu(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Bu(e,t=!1){return e&&(Fu(e.value)&&e.value!==""||t&&Fu(e.defaultValue)&&e.defaultValue!=="")}function cI(e){return e.startAdornment}function uI(e){return Me("MuiFormControl",e)}_e("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const dI=e=>{const{classes:t,margin:n,fullWidth:o}=e,s={root:["root",n!=="none"&&`margin${le(n)}`,o&&"fullWidth"]};return Le(s,uI,t)},pI=ne("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${le(n.margin)}`],n.fullWidth&&t.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%"}}]}),Jf=C.forwardRef(function(t,n){const o=Ye({props:t,name:"MuiFormControl"}),{children:s,className:i,color:a="primary",component:l="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:m=!1,hiddenLabel:h=!1,margin:f="none",required:g=!1,size:p="medium",variant:y="outlined",...x}=o,I={...o,color:a,component:l,disabled:c,error:u,fullWidth:m,hiddenLabel:h,margin:f,required:g,size:p,variant:y},w=dI(I),[S,E]=C.useState(()=>{let k=!1;return s&&C.Children.forEach(s,D=>{if(!$o(D,["Input","Select"]))return;const M=$o(D,["Select"])?D.props.input:D;M&&cI(M.props)&&(k=!0)}),k}),[T,R]=C.useState(()=>{let k=!1;return s&&C.Children.forEach(s,D=>{$o(D,["Input","Select"])&&(Bu(D.props,!0)||Bu(D.props.inputProps,!0))&&(k=!0)}),k}),[N,L]=C.useState(!1);c&&N&&L(!1);const V=d!==void 0&&!c?d:N;let A;const v=C.useRef(!1);process.env.NODE_ENV!=="production"&&(A=()=>(v.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
213
- `)),v.current=!0,()=>{v.current=!1}));const P=C.useCallback(()=>{R(!0)},[]),O=C.useCallback(()=>{R(!1)},[]),_=C.useMemo(()=>({adornedStart:S,setAdornedStart:E,color:a,disabled:c,error:u,filled:T,focused:V,fullWidth:m,hiddenLabel:h,size:p,onBlur:()=>{L(!1)},onFocus:()=>{L(!0)},onEmpty:O,onFilled:P,registerEffect:A,required:g,variant:y}),[S,a,c,u,T,V,m,h,A,O,P,g,p,y]);return b.jsx(yi.Provider,{value:_,children:b.jsx(pI,{as:l,ownerState:I,className:ue(w.root,i),ref:n,...x,children:s})})});process.env.NODE_ENV!=="production"&&(Jf.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["primary","secondary","error","info","success","warning"]),r.string]),component:r.elementType,disabled:r.bool,error:r.bool,focused:r.bool,fullWidth:r.bool,hiddenLabel:r.bool,margin:r.oneOf(["dense","none","normal"]),required:r.bool,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOf(["filled","outlined","standard"])});const zu=e=>e,fI=()=>{let e=zu;return{configure(t){e=t},generate(t){return e(t)},reset(){e=zu}}},mI=fI(),hI={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ct(e,t,n="Mui"){const o=hI[t];return o?`${n}-${o}`:`${mI.generate(e)}-${t}`}function dt(e,t,n="Mui"){const o={};return t.forEach(s=>{o[s]=ct(e,s,n)}),o}function gI(e){return ct("MuiPickersTextField",e)}dt("MuiPickersTextField",["root","focused","disabled","error","required"]);function bI(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}function yI(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":bI(7));return e.charAt(0).toUpperCase()+e.slice(1)}const vI={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function xI(e){return ct("MuiPickersInputBase",e)}const Dn=dt("MuiPickersInputBase",["root","focused","disabled","readOnly","error","notchedOutline","sectionsContainer","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input","inputSizeSmall","activeBar"]);function SI(e){return ct("MuiPickersSectionList",e)}const ko=dt("MuiPickersSectionList",["root","section","sectionContent"]),CI=["slots","slotProps","elements","sectionListRef","classes"],em=ne("div",{name:"MuiPickersSectionList",slot:"Root"})({direction:"ltr /*! @noflip */",outline:"none"}),tm=ne("span",{name:"MuiPickersSectionList",slot:"Section"})({}),nm=ne("span",{name:"MuiPickersSectionList",slot:"SectionSeparator"})({whiteSpace:"pre"}),om=ne("span",{name:"MuiPickersSectionList",slot:"SectionContent"})({outline:"none"}),wI=e=>at({root:["root"],section:["section"],sectionContent:["sectionContent"]},SI,e);function rm(e){const{slots:t,slotProps:n,element:o,classes:s}=e,{ownerState:i}=vt(),a=(t==null?void 0:t.section)??tm,l=He({elementType:a,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:o.container,className:s.section,ownerState:i}),c=(t==null?void 0:t.sectionContent)??om,u=He({elementType:c,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:o.content,additionalProps:{suppressContentEditableWarning:!0},className:s.sectionContent,ownerState:i}),d=(t==null?void 0:t.sectionSeparator)??nm,m=He({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.before,ownerState:$({},i,{separatorPosition:"before"})}),h=He({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.after,ownerState:$({},i,{separatorPosition:"after"})}),f=C.useRef(null),g=wt(u.ref,f),p=y=>{const x=y.relatedTarget,I=y.currentTarget.closest(`.${ko.root}`);if(I&&x instanceof Node&&I.contains(x)){y.stopPropagation();return}};return b.jsxs(a,$({},l,{children:[b.jsx(d,$({},m)),b.jsx(c,$({},u,{ref:g,onBlur:p})),b.jsx(d,$({},h))]}))}process.env.NODE_ENV!=="production"&&(rm.propTypes={classes:r.object.isRequired,element:r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired}).isRequired,slotProps:r.object,slots:r.object});const Sl=C.forwardRef(function(t,n){const o=qe({props:t,name:"MuiPickersSectionList"}),{slots:s,slotProps:i,elements:a,sectionListRef:l,classes:c}=o,u=Ce(o,CI),d=wI(c),{ownerState:m}=vt(),h=C.useRef(null),f=wt(n,h),g=x=>{if(!h.current)throw new Error(process.env.NODE_ENV!=="production"?`MUI X: Cannot call sectionListRef.${x} before the mount of the component.`:Re(145,x));return h.current};C.useImperativeHandle(l,()=>({getRoot(){return g("getRoot")},getSectionContainer(x){return g("getSectionContainer").querySelector(`.${ko.section}[data-sectionindex="${x}"]`)},getSectionContent(x){return g("getSectionContent").querySelector(`.${ko.section}[data-sectionindex="${x}"] .${ko.sectionContent}`)},getSectionIndexFromDOMElement(x){const I=g("getSectionIndexFromDOMElement");if(x==null||!I.contains(x))return null;let w=null;return x.classList.contains(ko.section)?w=x:x.classList.contains(ko.sectionContent)&&(w=x.parentElement),w==null?null:Number(w.dataset.sectionindex)}}));const p=(s==null?void 0:s.root)??em,y=He({elementType:p,externalSlotProps:i==null?void 0:i.root,externalForwardedProps:u,additionalProps:{ref:f,suppressContentEditableWarning:!0},className:d.root,ownerState:m});return b.jsx(p,$({},y,{children:y.contentEditable?a.map(({content:x,before:I,after:w})=>`${I.children}${x.children}${w.children}`).join(""):b.jsx(C.Fragment,{children:a.map((x,I)=>b.jsx(rm,{slots:s,slotProps:i,element:x,classes:d},I))})}))});process.env.NODE_ENV!=="production"&&(Sl.displayName="PickersSectionList");process.env.NODE_ENV!=="production"&&(Sl.propTypes={classes:r.object,contentEditable:r.bool.isRequired,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object});const Cl=C.createContext(null);process.env.NODE_ENV!=="production"&&(Cl.displayName="PickerTextFieldOwnerStateContext");const vi=()=>{const e=C.useContext(Cl);if(e==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: The `usePickerTextFieldOwnerState` can only be called in components that are used inside a PickerTextField component":Re(146));return e},TI=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputRef","sectionListRef","onFocus","onBlur","classes","ownerState"],II=["ref"];function EI(e,t){return n=>{const o=zo(e,n)??{};return $({},o,{className:ue(t,o.className)})}}const _I=e=>Math.round(e*1e5)/1e5,xi=ne("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>$({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${_I(.15/16)}em`,[`&.${Dn.disabled}`]:{color:(e.vars||e).palette.action.disabled,cursor:"default"},variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),wl=ne(em,{name:"MuiPickersInputBase",slot:"SectionsContainer"})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{fieldDirection:"rtl"},style:{justifyContent:"end"}},{props:{inputSize:"small"},style:{paddingTop:1}},{props:{isFieldFocused:!1,isFieldValueEmpty:!0},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}},{props:{isFieldFocused:!1,isFieldValueEmpty:!0,hasStartAdornment:!1,inputHasLabel:!0,isLabelShrunk:!1},style:{opacity:0}}]})),OI=ne(tm,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),kI=ne(om,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none","@supports (-webkit-app-region: drag)":{[`.${Dn.root}:not(:focus-within) &`]:{WebkitUserModify:"read-only",userSelect:"none"}}})),PI=ne(nm,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),RI=ne("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})($({},vI)),NI=ne("div",{name:"MuiPickersInputBase",slot:"ActiveBar"})(({theme:e,ownerState:t})=>({display:"none",position:"absolute",height:2,bottom:2,borderTopLeftRadius:2,borderTopRightRadius:2,transition:e.transitions.create(["width","left"],{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.primary.main,'[data-active-range-position="start"] &, [data-active-range-position="end"] &':{display:"block"},'[data-active-range-position="start"] &':{left:t.sectionOffsets[0]},'[data-active-range-position="end"] &':{left:t.sectionOffsets[1]}})),MI=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldReadOnly:s,hasFieldError:i,inputSize:a,isInputInFullWidth:l,inputColor:c,hasStartAdornment:u,hasEndAdornment:d}=t,m={root:["root",n&&!o&&"focused",o&&"disabled",s&&"readOnly",i&&"error",l&&"fullWidth",`color${yI(c)}`,a==="small"&&"inputSizeSmall",u&&"adornedStart",d&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"],activeBar:["activeBar"]};return at(m,xI,e)};function Wu(e,t,n,o){var s;if(e.content["data-range-position"]!==void 0){const i=(s=t.current)==null?void 0:s.querySelectorAll(`[data-sectionindex="${n}"] [data-range-position="${o}"]`);if(i)return Array.from(i).reduce((a,l)=>a+l.offsetWidth,0)}return 0}function $I(e,t){var s,i,a,l,c;let n=0;if(((s=t.current)==null?void 0:s.getAttribute("data-active-range-position"))==="end")for(let u=e.length-1;u>=e.length/2;u-=1)n+=Wu(e[u],t,u,"end");else for(let u=0;u<e.length/2;u+=1)n+=Wu(e[u],t,u,"start");return{activeBarWidth:n,sectionOffsets:[((a=(i=t.current)==null?void 0:i.querySelector('[data-sectionindex="0"]'))==null?void 0:a.offsetLeft)||0,((c=(l=t.current)==null?void 0:l.querySelector(`[data-sectionindex="${e.length/2}"]`))==null?void 0:c.offsetLeft)||0]}}const Kr=C.forwardRef(function(t,n){const o=qe({props:t,name:"MuiPickersInputBase"}),{elements:s,areAllSectionsEmpty:i,value:a,onChange:l,id:c,endAdornment:u,startAdornment:d,renderSuffix:m,slots:h,slotProps:f,contentEditable:g,tabIndex:p,onInput:y,onPaste:x,onKeyDown:I,name:w,readOnly:S,inputRef:E,sectionListRef:T,onFocus:R,onBlur:N,classes:L,ownerState:V}=o,A=Ce(o,TI),v=vi(),P=C.useRef(null),O=C.useRef(null),_=C.useRef([]),k=wt(n,P),D=po();if(!D)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: PickersInputBase should always be used inside a PickersTextField component":Re(152));const M=V??v,z=ce=>{var oe;(oe=D.onFocus)==null||oe.call(D,ce),R==null||R(ce)},j=ce=>{z(ce)},B=ce=>{var oe,be;if(I==null||I(ce),ce.key==="Enter"&&!ce.defaultMuiPrevented){if((oe=P.current)!=null&&oe.dataset.multiInput)return;const he=(be=P.current)==null?void 0:be.closest("form"),re=he==null?void 0:he.querySelector('[type="submit"]');if(!he||!re)return;ce.preventDefault(),he.requestSubmit(re)}},W=ce=>{var oe;(oe=D.onBlur)==null||oe.call(D,ce),N==null||N(ce)};C.useEffect(()=>{D&&D.setAdornedStart(!!d)},[D,d]),C.useEffect(()=>{D&&(i?D.onEmpty():D.onFilled())},[D,i]);const X=MI(L,M),Q=(h==null?void 0:h.root)||xi,G=He({elementType:Q,externalSlotProps:f==null?void 0:f.root,externalForwardedProps:A,additionalProps:{"aria-invalid":D.error,ref:k},className:X.root,ownerState:M}),Z=(h==null?void 0:h.input)||wl,te=(h==null?void 0:h.htmlInput)||RI,H=He({elementType:te,externalSlotProps:f==null?void 0:f.htmlInput,ownerState:M}),{ref:F}=H,U=Ce(H,II),ae=wt(F,E),K=s.some(ce=>ce.content["data-range-position"]!==void 0);return C.useEffect(()=>{if(!K||!M.isPickerOpen)return;const{activeBarWidth:ce,sectionOffsets:oe}=$I(s,P);_.current=[oe[0],oe[1]],O.current&&(O.current.style.width=`${ce}px`)},[s,K,M.isPickerOpen]),b.jsxs(Q,$({},G,{children:[d,b.jsx(Sl,{sectionListRef:T,elements:s,contentEditable:g,tabIndex:p,className:X.sectionsContainer,onFocus:z,onBlur:W,onInput:y,onPaste:x,onKeyDown:B,slots:{root:Z,section:OI,sectionContent:kI,sectionSeparator:PI},slotProps:{root:$({},f==null?void 0:f.input,{ownerState:M}),sectionContent:EI(f==null?void 0:f.sectionContent,Dn.sectionContent),sectionSeparator:({separatorPosition:ce})=>({className:ce==="before"?Dn.sectionBefore:Dn.sectionAfter})}}),u,m?m($({},D)):null,b.jsx(te,$({name:w,className:X.input,value:a,onChange:l,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:S,required:D.required,disabled:D.disabled,onFocus:j},U,{ref:ae})),K&&b.jsx(NI,{className:X.activeBar,ref:O,ownerState:{sectionOffsets:_.current}})]}))});process.env.NODE_ENV!=="production"&&(Kr.displayName="PickersInputBase");process.env.NODE_ENV!=="production"&&(Kr.propTypes={areAllSectionsEmpty:r.bool.isRequired,classes:r.object,className:r.string,contentEditable:r.bool.isRequired,"data-multi-input":r.string,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,id:r.string,inputRef:Tn,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onMouseDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired});function DI(e){return ct("MuiPickersOutlinedInput",e)}const Ut=$({},Dn,dt("MuiPickersOutlinedInput",["root","notchedOutline","input"])),AI=["children","className","label","notched","shrink"],jI=ne("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline"})(({theme:e})=>{const t=e.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:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}}),Uu=ne("span",{slot:"internal",shouldForwardProp:void 0})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),LI=ne("legend",{slot:"internal",shouldForwardProp:e=>Ht(e)&&e!=="notched"})(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{inputHasLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{inputHasLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{inputHasLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function VI(e){const{className:t,label:n,notched:o}=e,s=Ce(e,AI),i=vi();return b.jsx(jI,$({"aria-hidden":!0,className:t},s,{ownerState:i,children:b.jsx(LI,{ownerState:i,notched:o,children:n?b.jsx(Uu,{children:n}):b.jsx(Uu,{className:"notranslate",children:"​"})})}))}const FI=["label","autoFocus","ownerState","classes","notched","slots","slotProps"],BI=ne(xi,{name:"MuiPickersOutlinedInput",slot:"Root"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ut.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ut.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ut.focused} .${Ut.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${Ut.error} .${Ut.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ut.disabled}`]:{[`& .${Ut.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},variants:Object.keys((e.vars??e).palette).filter(n=>{var o;return((o=(e.vars??e).palette[n])==null?void 0:o.main)??!1}).map(n=>({props:{inputColor:n},style:{[`&.${Ut.focused}:not(.${Ut.error}) .${Ut.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),zI=ne(wl,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),WI=e=>{const n=at({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},DI,e);return $({},e,n)},Si=C.forwardRef(function(t,n){const o=qe({props:t,name:"MuiPickersOutlinedInput"}),{label:s,classes:i,notched:a,slots:l,slotProps:c}=o,u=Ce(o,FI),d=po(),m=WI(i);return b.jsx(Kr,$({},u,{slots:$({root:BI,input:zI},l),slotProps:c,renderSuffix:h=>{const f=typeof a<"u"?a:!!(h.adornedStart||h.focused||h.filled);return b.jsx(VI,{shrink:f,notched:f,className:m.notchedOutline,label:s!=null&&s!==""&&(d!=null&&d.required)?b.jsxs(C.Fragment,{children:[s," ","*"]}):s})},label:s,classes:m,ref:n}))});process.env.NODE_ENV!=="production"&&(Si.displayName="PickersOutlinedInput");process.env.NODE_ENV!=="production"&&(Si.propTypes={areAllSectionsEmpty:r.bool.isRequired,classes:r.object,className:r.string,contentEditable:r.bool.isRequired,"data-multi-input":r.string,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,id:r.string,inputRef:Tn,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,notched:r.bool,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onMouseDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired});Si.muiName="Input";function UI(e){return ct("MuiPickersFilledInput",e)}const Qn=$({},Dn,dt("MuiPickersFilledInput",["root","underline","input"])),qI=["label","autoFocus","disableUnderline","hiddenLabel","classes","slots","slotProps"],HI=ne(xi,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>Ht(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Qn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Qn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>{var l;return{props:{inputColor:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(l=(e.vars||e).palette[a])==null?void 0:l.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Qn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qn.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Qn.disabled}, .${Qn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Qn.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),YI=ne(wl,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>Ht(e)&&e!=="hiddenLabel"})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{inputSize:"small"},style:{paddingTop:21,paddingBottom:4}},{props:{hasStartAdornment:!0},style:{paddingLeft:0}},{props:{hasEndAdornment:!0},style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,inputSize:"small"},style:{paddingTop:8,paddingBottom:9}}]}),GI=(e,t)=>{const{inputHasUnderline:n}=t,s=at({root:["root",n&&"underline"],input:["input"]},UI,e);return $({},e,s)},Ci=C.forwardRef(function(t,n){const o=qe({props:t,name:"MuiPickersFilledInput"}),{label:s,disableUnderline:i=!1,hiddenLabel:a=!1,classes:l,slots:c,slotProps:u}=o,d=Ce(o,qI),m=vi(),h=$({},m,{inputHasUnderline:!i}),f=GI(l,h);return b.jsx(Kr,$({},d,{slots:$({root:HI,input:YI},c),slotProps:$({},u,{root:$({disableUnderline:i},u==null?void 0:u.root),input:$({hiddenLabel:a},u==null?void 0:u.input)}),label:s,classes:f,ref:n,ownerState:h}))});process.env.NODE_ENV!=="production"&&(Ci.displayName="PickersFilledInput");process.env.NODE_ENV!=="production"&&(Ci.propTypes={areAllSectionsEmpty:r.bool.isRequired,classes:r.object,className:r.string,contentEditable:r.bool.isRequired,"data-multi-input":r.string,disableUnderline:r.bool,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,hiddenLabel:r.bool,id:r.string,inputRef:Tn,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onMouseDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired});Ci.muiName="Input";function KI(e){return ct("MuiPickersFilledInput",e)}const lr=$({},Dn,dt("MuiPickersInput",["root","underline","input"])),XI=["label","autoFocus","disableUnderline","ownerState","classes","slots","slotProps"],QI=ne(xi,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>Ht(e)&&e!=="disableUnderline"})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(o=>(e.vars??e).palette[o].main).map(o=>({props:{inputColor:o,inputHasUnderline:!0},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}})),{props:{inputHasUnderline:!0},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${lr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${lr.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${lr.disabled}, .${lr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${lr.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),ZI=(e,t)=>{const{inputHasUnderline:n}=t,s=at({root:["root",!n&&"underline"],input:["input"]},KI,e);return $({},e,s)},wi=C.forwardRef(function(t,n){const o=qe({props:t,name:"MuiPickersInput"}),{label:s,disableUnderline:i=!1,classes:a,slots:l,slotProps:c}=o,u=Ce(o,XI),d=vi(),m=$({},d,{inputHasUnderline:!i}),h=ZI(a,m);return b.jsx(Kr,$({},u,{slots:$({root:QI},l),slotProps:$({},c,{root:$({disableUnderline:i},c==null?void 0:c.root)}),ownerState:m,label:s,classes:h,ref:n}))});process.env.NODE_ENV!=="production"&&(wi.displayName="PickersInput");process.env.NODE_ENV!=="production"&&(wi.propTypes={areAllSectionsEmpty:r.bool.isRequired,classes:r.object,className:r.string,contentEditable:r.bool.isRequired,"data-multi-input":r.string,disableUnderline:r.bool,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,fullWidth:r.bool,id:r.string,inputRef:Tn,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onChange:r.func.isRequired,onClick:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onMouseDown:r.func.isRequired,onPaste:r.func.isRequired,ownerState:r.any,readOnly:r.bool,renderSuffix:r.func,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),slotProps:r.object,slots:r.object,startAdornment:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired});wi.muiName="Input";const JI=["onFocus","onBlur","className","classes","color","disabled","error","variant","required","hiddenLabel","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onMouseDown","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","label","slots","slotProps","data-active-range-position"],eE={standard:wi,filled:Ci,outlined:Si},tE=ne(Jf,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),nE=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldRequired:s}=t;return at({root:["root",n&&!o&&"focused",o&&"disabled",s&&"required"]},gI,e)},Ti=C.forwardRef(function(t,n){const o=qe({props:t,name:"MuiPickersTextField"});if(process.env.NODE_ENV!=="production"){const ie=t;(ie.InputProps||ie.inputProps||ie.InputLabelProps||ie.FormHelperTextProps)&&Sn(["MUI X: `PickersTextField` no longer supports the `InputProps`, `inputProps`, `InputLabelProps` and `FormHelperTextProps` props.","They are silently dropped, which can hide configuration bugs in JavaScript codebases that do not benefit from TypeScript checks.","Use `slotProps.input`, `slotProps.htmlInput`, `slotProps.inputLabel` and `slotProps.formHelperText` instead.","You can run the `migrate-text-field-props` codemod to migrate automatically."])}const{onFocus:s,onBlur:i,className:a,classes:l,color:c="primary",disabled:u=!1,error:d=!1,variant:m="outlined",required:h=!1,hiddenLabel:f=!1,inputRef:g,sectionListRef:p,elements:y,areAllSectionsEmpty:x,onClick:I,onMouseDown:w,onKeyDown:S,onKeyUp:E,onPaste:T,onInput:R,endAdornment:N,startAdornment:L,tabIndex:V,contentEditable:A,focused:v,value:P,onChange:O,fullWidth:_,id:k,name:D,helperText:M,label:z,slots:j,slotProps:B,"data-active-range-position":W}=o,X=Ce(o,JI),Q=C.useRef(null),G=wt(n,Q),Z=vl(k),te=M&&Z?`${Z}-helper-text`:void 0,H=z&&Z?`${Z}-label`:void 0,F=B==null?void 0:B.input,U=B==null?void 0:B.inputLabel,ae=yl({disabled:o.disabled,required:o.required,readOnly:F==null?void 0:F.readOnly}),K=C.useMemo(()=>$({},ae,{isFieldValueEmpty:x,isFieldFocused:v??!1,hasFieldError:d??!1,inputSize:o.size??"medium",inputColor:c??"primary",isInputInFullWidth:_??!1,hasStartAdornment:!!(L??(F==null?void 0:F.startAdornment)),hasEndAdornment:!!(N??(F==null?void 0:F.endAdornment)),inputHasLabel:!!z,isLabelShrunk:!!(U!=null&&U.shrink)}),[ae,x,v,d,o.size,c,_,L,N,F==null?void 0:F.startAdornment,F==null?void 0:F.endAdornment,z,U==null?void 0:U.shrink]),ce=nE(l,K),oe=(j==null?void 0:j.input)??eE[m],be=(j==null?void 0:j.root)??tE,he=(j==null?void 0:j.inputLabel)??Qf,re=(j==null?void 0:j.formHelperText)??Zf,J={};m==="outlined"?(U&&typeof U.shrink<"u"&&(J.notched=U.shrink),J.label=z):m==="filled"&&(J.hiddenLabel=f);const ge=He({elementType:be,externalSlotProps:B==null?void 0:B.root,externalForwardedProps:$({},X,{className:a}),additionalProps:{ref:G,focused:v,disabled:u,variant:m,error:d,color:c,fullWidth:_,required:h},className:ce.root,ownerState:K});return b.jsx(Cl.Provider,{value:K,children:b.jsxs(be,$({},ge,{children:[z!=null&&z!==""&&b.jsx(he,$({htmlFor:Z,id:H},U,{children:z})),b.jsx(oe,$({elements:y,areAllSectionsEmpty:x,onClick:I,onMouseDown:w,onKeyDown:S,onKeyUp:E,onInput:R,onPaste:T,onFocus:s,onBlur:i,endAdornment:N,startAdornment:L,tabIndex:V,contentEditable:A,value:P,onChange:O,id:Z,fullWidth:_,inputRef:g,sectionListRef:p,label:z,name:D,role:"group","aria-labelledby":H,"aria-describedby":te,"aria-live":te?"polite":void 0,"data-active-range-position":W},J,F,{slots:$({},F==null?void 0:F.slots,(j==null?void 0:j.htmlInput)!==void 0&&{htmlInput:j.htmlInput}),slotProps:$({},F==null?void 0:F.slotProps,(B==null?void 0:B.htmlInput)!==void 0&&{htmlInput:B.htmlInput})})),M&&b.jsx(re,$({id:te},B==null?void 0:B.formHelperText,{children:M}))]}))})});process.env.NODE_ENV!=="production"&&(Ti.displayName="PickersTextField");process.env.NODE_ENV!=="production"&&(Ti.propTypes={areAllSectionsEmpty:r.bool.isRequired,className:r.string,color:r.oneOf(["error","info","primary","secondary","success","warning"]),component:r.elementType,contentEditable:r.bool.isRequired,disabled:r.bool.isRequired,elements:r.arrayOf(r.shape({after:r.object.isRequired,before:r.object.isRequired,container:r.object.isRequired,content:r.object.isRequired})).isRequired,endAdornment:r.node,error:r.bool.isRequired,focused:r.bool,fullWidth:r.bool,helperText:r.node,hiddenLabel:r.bool,id:r.string,inputRef:Tn,label:r.node,margin:r.oneOf(["dense","none","normal"]),name:r.string,onBlur:r.func.isRequired,onChange:r.func.isRequired,onClick:r.func.isRequired,onFocus:r.func.isRequired,onInput:r.func.isRequired,onKeyDown:r.func.isRequired,onMouseDown:r.func.isRequired,onPaste:r.func.isRequired,readOnly:r.bool,required:r.bool,sectionListRef:r.oneOfType([r.func,r.shape({current:r.shape({getRoot:r.func.isRequired,getSectionContainer:r.func.isRequired,getSectionContent:r.func.isRequired,getSectionIndexFromDOMElement:r.func.isRequired})})]),size:r.oneOf(["medium","small"]),slotProps:r.object,slots:r.object,startAdornment:r.node,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.string.isRequired,variant:r.oneOf(["filled","outlined","standard"])});const oE=["readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel","InputProps","inputProps","InputLabelProps","FormHelperTextProps"],rE=["ownerState"],sE=["ownerState"],iE=["ownerState"],aE=["ownerState"],lE=["InputProps","inputProps","InputLabelProps","FormHelperTextProps"],cE=e=>{var f;const t=e,{readOnly:n,onClear:o,clearable:s,clearButtonPosition:i,openPickerButtonPosition:a,openPickerAriaLabel:l,InputProps:c,inputProps:u,InputLabelProps:d,FormHelperTextProps:m}=t,h=Ce(t,oE);return process.env.NODE_ENV!=="production"&&(c||u||d||m)&&Sn(["MUI X: The `InputProps`, `inputProps`, `InputLabelProps` and `FormHelperTextProps` props are no longer supported on Picker / Field components.","They have been silently dropped because they would otherwise be forwarded as unknown attributes on the underlying form control.","Use the `slotProps` shape instead (`slotProps.input`, `slotProps.htmlInput`, `slotProps.inputLabel`, `slotProps.formHelperText`).","See https://mui.com/x/migration/migration-pickers-v8/#textfield-props for migration details."]),{clearable:s,onClear:o,clearButtonPosition:i,openPickerButtonPosition:a,openPickerAriaLabel:l,textFieldProps:$({},h,{slotProps:$({},h==null?void 0:h.slotProps,{input:$({},(f=h==null?void 0:h.slotProps)==null?void 0:f.input,{readOnly:n})})})}},Ii=C.createContext({slots:{},slotProps:{},inputRef:void 0});process.env.NODE_ENV!=="production"&&(Ii.displayName="PickerFieldUIContext");function uE(e){var j;const{fieldResponse:t,defaultOpenPickerIcon:n}=e,o=rn(),s=ul(),i=C.useContext(Ii),{textFieldProps:a,onClear:l,clearable:c,openPickerAriaLabel:u,clearButtonPosition:d="end",openPickerButtonPosition:m="end"}=cE(t),h=yl(a),f=xe(B=>{B.preventDefault(),s==null||s.setOpen(!0)}),g=s?s.triggerStatus:"hidden",p=c?d:null,y=g!=="hidden"?m:null,x=i.slots.textField??Ti,I=i.slots.inputAdornment??Kf,w=He({elementType:I,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"start"},ownerState:$({},h,{position:"start"})}),S=Ce(w,rE),E=He({elementType:I,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"end"},ownerState:$({},h,{position:"end"})}),T=Ce(E,sE),R=i.slots.openPickerButton??ao,N=He({elementType:R,externalSlotProps:i.slotProps.openPickerButton,additionalProps:{disabled:g==="disabled",onClick:f,"aria-label":u,"data-mui-picker-open-button":"true",edge:a.variant!=="standard"?y:!1},ownerState:h}),L=Ce(N,iE),V=i.slots.openPickerIcon??n,A=He({elementType:V,externalSlotProps:i.slotProps.openPickerIcon,ownerState:h}),v=i.slots.clearButton??ao,P=He({elementType:v,externalSlotProps:i.slotProps.clearButton,className:"clearButton",additionalProps:{title:o.fieldClearLabel,tabIndex:-1,onClick:l,disabled:t.disabled||t.readOnly,edge:a.variant!=="standard"&&p!==y?p:!1},ownerState:h}),O=Ce(P,aE),_=i.slots.clearIcon??X0,k=He({elementType:_,externalSlotProps:i.slotProps.clearIcon,additionalProps:{fontSize:"small"},ownerState:h});a.ref=wt(a.ref,s==null?void 0:s.rootRef);const D=(j=a.slotProps)==null?void 0:j.input,M={},z=wt(D==null?void 0:D.ref,s==null?void 0:s.triggerRef);return s&&(M.ref=z),!(D!=null&&D.startAdornment)&&(p==="start"||y==="start")&&(M.startAdornment=b.jsxs(I,$({},S,{children:[y==="start"&&b.jsx(R,$({},L,{children:b.jsx(V,$({},A))})),p==="start"&&b.jsx(v,$({},O,{children:b.jsx(_,$({},k))}))]}))),!(D!=null&&D.endAdornment)&&(p==="end"||y==="end")&&(M.endAdornment=b.jsxs(I,$({},T,{children:[p==="end"&&b.jsx(v,$({},O,{children:b.jsx(_,$({},k))})),y==="end"&&b.jsx(R,$({},L,{children:b.jsx(V,$({},A))}))]}))),!M.endAdornment&&!M.startAdornment&&i.slots.inputAdornment&&(M.endAdornment=b.jsx(I,$({},T))),p!=null&&(a.sx=[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(a.sx)?a.sx:[a.sx]]),a.slotProps=$({},a.slotProps,{input:$({},D,M)}),b.jsx(x,$({},a))}function dE(e,t){return e?t?n=>$({},zo(t,n),zo(e,n)):e:t}function pE(e){const{ref:t,externalForwardedProps:n,slotProps:o}=e,s=C.useContext(Ii),i=ul(),a=yl(n),l=n??{},{InputProps:c,inputProps:u,InputLabelProps:d,FormHelperTextProps:m}=l,h=Ce(l,lE);process.env.NODE_ENV!=="production"&&(c||u||d||m)&&Sn(["MUI X: Field components no longer accept the `InputProps`, `inputProps`, `InputLabelProps` and `FormHelperTextProps` props.","They have been dropped to avoid leaking unknown attributes onto the underlying form control.","Use the nested `slotProps.textField.slotProps.{input,htmlInput,inputLabel,formHelperText}` shape instead."]);const f=He({elementType:Ti,externalSlotProps:dE(s.slotProps.textField,o==null?void 0:o.textField),externalForwardedProps:h,additionalProps:{ref:t,sx:i==null?void 0:i.rootSx,label:i==null?void 0:i.label,name:i==null?void 0:i.name,className:i==null?void 0:i.rootClassName,inputRef:s.inputRef},ownerState:a});if(i&&i.keepOpenDuringFieldFocus&&i.triggerStatus==="enabled"&&!i.open&&!i.readOnly&&!i.disabled){const g=f.onFocus,p=f.onMouseDown,y=x=>{var E;const I=x.nativeEvent??x,w=(E=I==null?void 0:I.composedPath)==null?void 0:E.call(I);if(Array.isArray(w)){for(const T of w)if(T&&T.getAttribute&&T.getAttribute("data-mui-picker-open-button")==="true")return!0}const S=x.target;return S&&S.closest?!!S.closest('[data-mui-picker-open-button="true"]'):!1};f.onFocus=x=>{g==null||g(x),!x.isDefaultPrevented()&&!y(x)&&i.setOpen(!0)},f.onMouseDown=x=>{p==null||p(x),!x.isDefaultPrevented()&&!y(x)&&i.setOpen(!0)}}return f}function fE(e){const{slots:t={},slotProps:n={},inputRef:o,children:s}=e,i=C.useMemo(()=>({inputRef:o,slots:{openPickerButton:t.openPickerButton,openPickerIcon:t.openPickerIcon,textField:t.textField,inputAdornment:t.inputAdornment,clearIcon:t.clearIcon,clearButton:t.clearButton},slotProps:{openPickerButton:n.openPickerButton,openPickerIcon:n.openPickerIcon,textField:n.textField,inputAdornment:n.inputAdornment,clearIcon:n.clearIcon,clearButton:n.clearButton}}),[o,t.openPickerButton,t.openPickerIcon,t.textField,t.inputAdornment,t.clearIcon,t.clearButton,n.openPickerButton,n.openPickerIcon,n.textField,n.inputAdornment,n.clearIcon,n.clearButton]);return b.jsx(Ii.Provider,{value:i,children:s})}const mE=["slots","slotProps"],Ei=C.forwardRef(function(t,n){const o=qe({props:t,name:"MuiTimeField"}),{slots:s,slotProps:i}=o,a=Ce(o,mE),l=pE({slotProps:i,ref:n,externalForwardedProps:a}),c=M0(l);return b.jsx(fE,{slots:s,slotProps:i,inputRef:a.inputRef,children:b.jsx(uE,{fieldResponse:c,defaultOpenPickerIcon:K0})})});process.env.NODE_ENV!=="production"&&(Ei.displayName="TimeField");process.env.NODE_ENV!=="production"&&(Ei.propTypes={ampm:r.bool,areAllSectionsEmpty:r.bool,autoFocus:r.bool,className:r.string,clearable:r.bool,clearButtonPosition:r.oneOf(["end","start"]),color:r.oneOf(["error","info","primary","secondary","success","warning"]),component:r.elementType,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,endAdornment:r.node,error:r.bool,fieldRef:r.oneOfType([r.func,r.object]),focused:r.bool,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),fullWidth:r.bool,helperText:r.node,hiddenLabel:r.bool,id:r.string,inputRef:Tn,label:r.node,margin:r.oneOf(["dense","none","normal"]),maxTime:r.object,minTime:r.object,minutesStep:r.number,name:r.string,onBlur:r.func,onChange:r.func,onClear:r.func,onClick:r.func,onError:r.func,onFocus:r.func,onInput:r.func,onKeyDown:r.func,onMouseDown:r.func,onPaste:r.func,onSelectedSectionsChange:r.func,openPickerButtonPosition:r.oneOf(["end","start"]),readOnly:r.bool,referenceDate:r.object,required:r.bool,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableTime:r.func,shouldRespectLeadingZeros:r.bool,size:r.oneOf(["medium","small"]),slotProps:r.object,slots:r.object,startAdornment:r.node,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,variant:r.oneOf(["filled","outlined","standard"])});function hE(e){return ct("MuiPickersToolbarText",e)}dt("MuiPickersToolbarText",["root"]);const gE=["className","classes","selected","value"],bE=e=>at({root:["root"]},hE,e),yE=ne(uo,{name:"MuiPickersToolbarText",slot:"Root"})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,"&[data-selected]":{color:(e.vars||e).palette.text.primary}})),Tl=C.forwardRef(function(t,n){const o=qe({props:t,name:"MuiPickersToolbarText"}),{className:s,classes:i,selected:a,value:l}=o,c=Ce(o,gE),u=bE(i);return b.jsx(yE,$({ref:n,className:ue(u.root,s),component:"span",ownerState:o},a&&{"data-selected":!0},c,{children:l}))});process.env.NODE_ENV!=="production"&&(Tl.displayName="PickersToolbarText");function sm(e){return ct("MuiPickersToolbar",e)}dt("MuiPickersToolbar",["root","title","content"]);const vE=["align","className","classes","selected","typographyClassName","value","variant","width"],xE=e=>at({root:["root"]},sm,e),SE=ne(dn,{name:"MuiPickersToolbarButton",slot:"Root"})({padding:0,minWidth:16,textTransform:"none"}),Po=C.forwardRef(function(t,n){const o=qe({props:t,name:"MuiPickersToolbarButton"}),{align:s,className:i,classes:a,selected:l,typographyClassName:c,value:u,variant:d,width:m}=o,h=Ce(o,vE),f=xE(a);return b.jsx(SE,$({variant:"text",ref:n,className:ue(f.root,i),ownerState:o},m?{sx:{width:m}}:{},h,{children:b.jsx(Tl,{align:s,className:c,variant:d,value:u,selected:l})}))});process.env.NODE_ENV!=="production"&&(Po.displayName="PickersToolbarButton");function im(){const{ownerState:e}=vt(),t=Wn();return C.useMemo(()=>$({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const CE=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],wE=e=>at({root:["root"],title:["title"],content:["content"]},sm,e),TE=ne("div",{name:"MuiPickersToolbar",slot:"Root"})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{pickerOrientation:"landscape"},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),IE=ne("div",{name:"MuiPickersToolbar",slot:"Content",shouldForwardProp:e=>Ht(e)&&e!=="landscapeDirection"})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{pickerOrientation:"landscape"},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{pickerOrientation:"landscape",landscapeDirection:"row"},style:{flexDirection:"row"}}]}),am=C.forwardRef(function(t,n){const o=qe({props:t,name:"MuiPickersToolbar"}),{children:s,className:i,classes:a,toolbarTitle:l,hidden:c,titleId:u,landscapeDirection:d}=o,m=Ce(o,CE),h=im(),f=wE(a);return c?null:b.jsxs(TE,$({ref:n,className:ue(f.root,i),ownerState:h},m,{children:[b.jsx(uo,{variant:"overline",id:u,className:f.title,sx:{color:"text.secondary"},children:l}),b.jsx(IE,{className:f.content,ownerState:h,landscapeDirection:d,children:s})]}))});process.env.NODE_ENV!=="production"&&(am.displayName="PickersToolbar");function Il(e,t,n,o){const s=lt(),i=C.useMemo(()=>s.isValid(e)?e:null,[s,e]),a=jT(i,s),l=C.useCallback(c=>{const u=i==null?null:Df(i,c,!!t,s);n(u,o??"partial")},[t,i,n,o,s]);return{meridiemMode:a,handleMeridiemChange:l}}function EE(e){return ct("MuiTimePickerToolbar",e)}const Cr=dt("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),_E=["ampm","ampmInClock","className","classes"],OE=(e,t)=>{const{pickerOrientation:n,toolbarDirection:o}=t;return at({root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n==="landscape"&&"hourMinuteLabelLandscape",o==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n==="landscape"&&"ampmLandscape"],ampmLabel:["ampmLabel"]},EE,e)},kE=ne(am,{name:"MuiTimePickerToolbar",slot:"Root"})({}),PE=ne(Tl,{name:"MuiTimePickerToolbar",slot:"Separator"})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),RE=ne("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${Cr.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${Cr.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})({display:"flex",justifyContent:"flex-end",alignItems:"flex-end",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{pickerOrientation:"landscape"},style:{marginTop:"auto"}}]}),NE=ne("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Cr.ampmLabel}`]:t.ampmLabel},{[`&.${Cr.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${Cr.ampmLabel}`]:{fontSize:17},variants:[{props:{pickerOrientation:"landscape"},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"}}]});function lm(e){const t=qe({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:o,className:s,classes:i}=t,a=Ce(t,_E),l=lt(),c=rn(),u=im(),d=OE(i,u),{value:m,setValue:h,disabled:f,readOnly:g,view:p,setView:y,views:x}=Jo(),I=!!(n&&!o&&x.includes("hours")),{meridiemMode:w,handleMeridiemChange:S}=Il(m,n,R=>h(R,{changeImportance:"set",source:"view"})),E=R=>l.isValid(m)?l.format(m,R):"--",T=b.jsx(PE,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:d.separator});return b.jsxs(kE,$({landscapeDirection:"row",toolbarTitle:c.timePickerToolbarTitle,ownerState:u,className:ue(d.root,s)},a,{children:[b.jsxs(RE,{className:d.hourMinuteLabel,ownerState:u,children:[Oo(x,"hours")&&b.jsx(Po,{tabIndex:-1,variant:"h3",onClick:()=>y("hours"),selected:p==="hours",value:E(n?"hours12h":"hours24h")}),Oo(x,["hours","minutes"])&&T,Oo(x,"minutes")&&b.jsx(Po,{tabIndex:-1,variant:"h3",onClick:()=>y("minutes"),selected:p==="minutes",value:E("minutes")}),Oo(x,["minutes","seconds"])&&T,Oo(x,"seconds")&&b.jsx(Po,{variant:"h3",onClick:()=>y("seconds"),selected:p==="seconds",value:E("seconds")})]}),I&&b.jsxs(NE,{className:d.ampmSelection,ownerState:u,children:[b.jsx(Po,{disableRipple:!0,variant:"subtitle2",selected:w==="am",typographyClassName:d.ampmLabel,value:$n(l,"am"),onClick:g?void 0:()=>S("am"),disabled:f}),b.jsx(Po,{disableRipple:!0,variant:"subtitle2",selected:w==="pm",typographyClassName:d.ampmLabel,value:$n(l,"pm"),onClick:g?void 0:()=>S("pm"),disabled:f})]})]}))}process.env.NODE_ENV!=="production"&&(lm.propTypes={ampm:r.bool,ampmInClock:r.bool,classes:r.object,className:r.string,hidden:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),titleId:r.string,toolbarFormat:r.string,toolbarPlaceholder:r.node});function cm(e,t){var l;const n=lt(),o=qe({props:e,name:t}),s=Gf(o),i=o.ampm??n.is12HourCycleInCurrentLocale(),a=C.useMemo(()=>{var c;return((c=o.localeText)==null?void 0:c.toolbarTitle)==null?o.localeText:$({},o.localeText,{timePickerToolbarTitle:o.localeText.toolbarTitle})},[o.localeText]);return $({},o,s,{ampm:i,localeText:a},NT({views:o.views,openTo:o.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{slots:$({toolbar:lm},o.slots),slotProps:$({},o.slotProps,{toolbar:$({ampm:i,ampmInClock:o.ampmInClock},(l=o.slotProps)==null?void 0:l.toolbar)})})}function ME(e){const{prototype:t={}}=e;return!!t.isReactComponent}function um(e,t,n,o,s){const i=e[t],a=s||t;if(i==null||typeof window>"u")return null;let l;const c=i.type;return typeof c=="function"&&!ME(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Xr=Un(r.element,um);Xr.isRequired=Un(r.element.isRequired,um);function _i(e){var t;return parseInt(C.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const dm=e=>e.scrollTop;function mt(e,t){return n=>{if(t){const o=e.current;n===void 0?t(o):t(o,n)}}}function pm(e,t,n,o,s,i){const a=e==="exited"&&!t?o:n[e]||n.exited;return s||i?{...a,...s,...i}:a}function Uo(e,t){const{timeout:n,easing:o,style:s={}}=e;return{duration:s.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:s.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:s.transitionDelay}}function wr(e){return`scale(${e}, ${e**2})`}const $E={entering:{opacity:1,transform:wr(1)},entered:{opacity:1,transform:"none"},exiting:{opacity:0,transform:wr(.75)},exited:{opacity:0,transform:wr(.75)}},DE={opacity:0,transform:wr(.75),visibility:"hidden"},Ls=C.forwardRef(function(t,n){const{addEndListener:o,appear:s=!0,children:i,easing:a,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:m,onExited:h,onExiting:f,style:g,timeout:p="auto",...y}=t,x=sl(),I=C.useRef(),w=Hr(),S=C.useRef(null),E=yt(S,_i(i),n),T=mt(S,d),R=mt(S,(P,O)=>{dm(P);const{duration:_,delay:k,easing:D}=Uo({style:g,timeout:p,easing:a},{mode:"enter"});let M;p==="auto"?(M=w.transitions.getAutoHeightDuration(P.clientHeight),I.current=M):M=_,P.style.transition=[w.transitions.create("opacity",{duration:M,delay:k}),w.transitions.create("transform",{duration:M*.666,delay:k,easing:D})].join(","),c&&c(P,O)}),N=mt(S,u),L=mt(S,f),V=mt(S,P=>{const{duration:O,delay:_,easing:k}=Uo({style:g,timeout:p,easing:a},{mode:"exit"});let D;p==="auto"?(D=w.transitions.getAutoHeightDuration(P.clientHeight),I.current=D):D=O,P.style.transition=[w.transitions.create("opacity",{duration:D,delay:_}),w.transitions.create("transform",{duration:D*.666,delay:_||D*.333,easing:k})].join(","),P.style.opacity=0,P.style.transform=wr(.75),m&&m(P)}),A=mt(S,P=>{P.style.transition="",h&&h(P)}),v=P=>{p==="auto"&&x.start(I.current||0,P),o&&o(S.current,P)};return b.jsx(Gt,{appear:s,in:l,nodeRef:S,onEnter:R,onEntered:N,onEntering:T,onExit:V,onExited:A,onExiting:L,addEndListener:v,timeout:p==="auto"?null:p,...y,children:(P,{ownerState:O,..._})=>{const k=pm(P,l,$E,DE,g,i.props.style);return C.cloneElement(i,{style:k,ref:E,..._})}})});process.env.NODE_ENV!=="production"&&(Ls.propTypes={addEndListener:r.func,appear:r.bool,children:Xr.isRequired,easing:r.oneOfType([r.shape({enter:r.string,exit:r.string}),r.string]),in:r.bool,onEnter:r.func,onEntered:r.func,onEntering:r.func,onExit:r.func,onExited:r.func,onExiting:r.func,style:r.object,timeout:r.oneOfType([r.oneOf(["auto"]),r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})])});Ls&&(Ls.muiSupportAuto=!0);const AE={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},jE={opacity:0,visibility:"hidden"},qo=C.forwardRef(function(t,n){const o=Hr(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:c,in:u,onEnter:d,onEntered:m,onEntering:h,onExit:f,onExited:g,onExiting:p,style:y,timeout:x=s,...I}=t,w=C.useRef(null),S=yt(w,_i(l),n),E=mt(w,h),T=mt(w,(v,P)=>{dm(v);const O=Uo({style:y,timeout:x,easing:c},{mode:"enter"});v.style.transition=o.transitions.create("opacity",O),d&&d(v,P)}),R=mt(w,m),N=mt(w,p),L=mt(w,v=>{const P=Uo({style:y,timeout:x,easing:c},{mode:"exit"});v.style.transition=o.transitions.create("opacity",P),f&&f(v)}),V=mt(w,v=>{v.style.transition="",g&&g(v)}),A=v=>{i&&i(w.current,v)};return b.jsx(Gt,{appear:a,in:u,nodeRef:w,onEnter:T,onEntered:R,onEntering:E,onExit:L,onExited:V,onExiting:N,addEndListener:A,timeout:x,...I,children:(v,{ownerState:P,...O})=>{const _=pm(v,u,AE,jE,y,l.props.style);return C.cloneElement(l,{style:_,ref:S,...O})}})});process.env.NODE_ENV!=="production"&&(qo.propTypes={addEndListener:r.func,appear:r.bool,children:Xr.isRequired,easing:r.oneOfType([r.shape({enter:r.string,exit:r.string}),r.string]),in:r.bool,onEnter:r.func,onEntered:r.func,onEntering:r.func,onExit:r.func,onExited:r.func,onExiting:r.func,style:r.object,timeout:r.oneOfType([r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})])});function LE(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function fm(e,t,n,o){const s=e[t];if(s==null||!Number.isInteger(s)){const i=LE(s);return new RangeError(`Invalid ${o} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function mm(e,t,n,o){return e[t]===void 0?null:fm(e,t,n,o)}function ha(){return null}mm.isRequired=fm;ha.isRequired=ha;const VE=process.env.NODE_ENV==="production"?ha:mm;function FE(e){return Me("MuiPaper",e)}_e("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 BE=e=>{const{square:t,elevation:n,variant:o,classes:s}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return Le(i,FE,s)},zE=ne("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Je(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Qr=C.forwardRef(function(t,n){var f;const o=Ye({props:t,name:"MuiPaper"}),s=Hr(),{className:i,component:a="div",elevation:l=1,square:c=!1,variant:u="elevation",...d}=o,m={...o,component:a,elevation:l,square:c,variant:u},h=BE(m);return process.env.NODE_ENV!=="production"&&s.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
214
- `)),b.jsx(zE,{as:a,ownerState:m,className:ue(h.root,i),ref:n,...d,style:{...u==="elevation"&&{"--Paper-shadow":(s.vars||s).shadows[l],...s.vars&&{"--Paper-overlay":(f=s.vars.overlays)==null?void 0:f[l]},...!s.vars&&s.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Ps("#fff",sa(l))}, ${Ps("#fff",sa(l))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(Qr.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,elevation:Un(VE,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:r.bool,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["elevation","outlined"]),r.string])});function Ho(e,t,n,o,s){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=s||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var Tt="top",jt="bottom",Lt="right",It="left",El="auto",Zr=[Tt,jt,Lt,It],Yo="start",$r="end",WE="clippingParents",hm="viewport",cr="popper",UE="reference",qu=Zr.reduce(function(e,t){return e.concat([t+"-"+Yo,t+"-"+$r])},[]),gm=[].concat(Zr,[El]).reduce(function(e,t){return e.concat([t,t+"-"+Yo,t+"-"+$r])},[]),qE="beforeRead",HE="read",YE="afterRead",GE="beforeMain",KE="main",XE="afterMain",QE="beforeWrite",ZE="write",JE="afterWrite",e_=[qE,HE,YE,GE,KE,XE,QE,ZE,JE];function on(e){return e?(e.nodeName||"").toLowerCase():null}function Pt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function lo(e){var t=Pt(e).Element;return e instanceof t||e instanceof Element}function Dt(e){var t=Pt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function _l(e){if(typeof ShadowRoot>"u")return!1;var t=Pt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function t_(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},s=t.attributes[n]||{},i=t.elements[n];!Dt(i)||!on(i)||(Object.assign(i.style,o),Object.keys(s).forEach(function(a){var l=s[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function n_(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var s=t.elements[o],i=t.attributes[o]||{},a=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),l=a.reduce(function(c,u){return c[u]="",c},{});!Dt(s)||!on(s)||(Object.assign(s.style,l),Object.keys(i).forEach(function(c){s.removeAttribute(c)}))})}}const o_={name:"applyStyles",enabled:!0,phase:"write",fn:t_,effect:n_,requires:["computeStyles"]};function en(e){return e.split("-")[0]}var ro=Math.max,Vs=Math.min,Go=Math.round;function ga(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function bm(){return!/^((?!chrome|android).)*safari/i.test(ga())}function Ko(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),s=1,i=1;t&&Dt(e)&&(s=e.offsetWidth>0&&Go(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Go(o.height)/e.offsetHeight||1);var a=lo(e)?Pt(e):window,l=a.visualViewport,c=!bm()&&n,u=(o.left+(c&&l?l.offsetLeft:0))/s,d=(o.top+(c&&l?l.offsetTop:0))/i,m=o.width/s,h=o.height/i;return{width:m,height:h,top:d,right:u+m,bottom:d+h,left:u,x:u,y:d}}function Ol(e){var t=Ko(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function ym(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&_l(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function wn(e){return Pt(e).getComputedStyle(e)}function r_(e){return["table","td","th"].indexOf(on(e))>=0}function Hn(e){return((lo(e)?e.ownerDocument:e.document)||window.document).documentElement}function Oi(e){return on(e)==="html"?e:e.assignedSlot||e.parentNode||(_l(e)?e.host:null)||Hn(e)}function Hu(e){return!Dt(e)||wn(e).position==="fixed"?null:e.offsetParent}function s_(e){var t=/firefox/i.test(ga()),n=/Trident/i.test(ga());if(n&&Dt(e)){var o=wn(e);if(o.position==="fixed")return null}var s=Oi(e);for(_l(s)&&(s=s.host);Dt(s)&&["html","body"].indexOf(on(s))<0;){var i=wn(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function Jr(e){for(var t=Pt(e),n=Hu(e);n&&r_(n)&&wn(n).position==="static";)n=Hu(n);return n&&(on(n)==="html"||on(n)==="body"&&wn(n).position==="static")?t:n||s_(e)||t}function kl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Tr(e,t,n){return ro(e,Vs(t,n))}function i_(e,t,n){var o=Tr(e,t,n);return o>n?n:o}function vm(){return{top:0,right:0,bottom:0,left:0}}function xm(e){return Object.assign({},vm(),e)}function Sm(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var a_=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,xm(typeof t!="number"?t:Sm(t,Zr))};function l_(e){var t,n=e.state,o=e.name,s=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=en(n.placement),c=kl(l),u=[It,Lt].indexOf(l)>=0,d=u?"height":"width";if(!(!i||!a)){var m=a_(s.padding,n),h=Ol(i),f=c==="y"?Tt:It,g=c==="y"?jt:Lt,p=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],y=a[c]-n.rects.reference[c],x=Jr(i),I=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,w=p/2-y/2,S=m[f],E=I-h[d]-m[g],T=I/2-h[d]/2+w,R=Tr(S,T,E),N=c;n.modifiersData[o]=(t={},t[N]=R,t.centerOffset=R-T,t)}}function c_(e){var t=e.state,n=e.options,o=n.element,s=o===void 0?"[data-popper-arrow]":o;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||ym(t.elements.popper,s)&&(t.elements.arrow=s))}const u_={name:"arrow",enabled:!0,phase:"main",fn:l_,effect:c_,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xo(e){return e.split("-")[1]}var d_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function p_(e,t){var n=e.x,o=e.y,s=t.devicePixelRatio||1;return{x:Go(n*s)/s||0,y:Go(o*s)/s||0}}function Yu(e){var t,n=e.popper,o=e.popperRect,s=e.placement,i=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,m=e.isFixed,h=a.x,f=h===void 0?0:h,g=a.y,p=g===void 0?0:g,y=typeof d=="function"?d({x:f,y:p}):{x:f,y:p};f=y.x,p=y.y;var x=a.hasOwnProperty("x"),I=a.hasOwnProperty("y"),w=It,S=Tt,E=window;if(u){var T=Jr(n),R="clientHeight",N="clientWidth";if(T===Pt(n)&&(T=Hn(n),wn(T).position!=="static"&&l==="absolute"&&(R="scrollHeight",N="scrollWidth")),T=T,s===Tt||(s===It||s===Lt)&&i===$r){S=jt;var L=m&&T===E&&E.visualViewport?E.visualViewport.height:T[R];p-=L-o.height,p*=c?1:-1}if(s===It||(s===Tt||s===jt)&&i===$r){w=Lt;var V=m&&T===E&&E.visualViewport?E.visualViewport.width:T[N];f-=V-o.width,f*=c?1:-1}}var A=Object.assign({position:l},u&&d_),v=d===!0?p_({x:f,y:p},Pt(n)):{x:f,y:p};if(f=v.x,p=v.y,c){var P;return Object.assign({},A,(P={},P[S]=I?"0":"",P[w]=x?"0":"",P.transform=(E.devicePixelRatio||1)<=1?"translate("+f+"px, "+p+"px)":"translate3d("+f+"px, "+p+"px, 0)",P))}return Object.assign({},A,(t={},t[S]=I?p+"px":"",t[w]=x?f+"px":"",t.transform="",t))}function f_(e){var t=e.state,n=e.options,o=n.gpuAcceleration,s=o===void 0?!0:o,i=n.adaptive,a=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:en(t.placement),variation:Xo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Yu(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Yu(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const m_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:f_,data:{}};var cs={passive:!0};function h_(e){var t=e.state,n=e.instance,o=e.options,s=o.scroll,i=s===void 0?!0:s,a=o.resize,l=a===void 0?!0:a,c=Pt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,cs)}),l&&c.addEventListener("resize",n.update,cs),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,cs)}),l&&c.removeEventListener("resize",n.update,cs)}}const g_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:h_,data:{}};var b_={left:"right",right:"left",bottom:"top",top:"bottom"};function Ts(e){return e.replace(/left|right|bottom|top/g,function(t){return b_[t]})}var y_={start:"end",end:"start"};function Gu(e){return e.replace(/start|end/g,function(t){return y_[t]})}function Pl(e){var t=Pt(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Rl(e){return Ko(Hn(e)).left+Pl(e).scrollLeft}function v_(e,t){var n=Pt(e),o=Hn(e),s=n.visualViewport,i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(s){i=s.width,a=s.height;var u=bm();(u||!u&&t==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}return{width:i,height:a,x:l+Rl(e),y:c}}function x_(e){var t,n=Hn(e),o=Pl(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=ro(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=ro(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),l=-o.scrollLeft+Rl(e),c=-o.scrollTop;return wn(s||n).direction==="rtl"&&(l+=ro(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}function Nl(e){var t=wn(e),n=t.overflow,o=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+o)}function Cm(e){return["html","body","#document"].indexOf(on(e))>=0?e.ownerDocument.body:Dt(e)&&Nl(e)?e:Cm(Oi(e))}function Ir(e,t){var n;t===void 0&&(t=[]);var o=Cm(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),i=Pt(o),a=s?[i].concat(i.visualViewport||[],Nl(o)?o:[]):o,l=t.concat(a);return s?l:l.concat(Ir(Oi(a)))}function ba(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function S_(e,t){var n=Ko(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Ku(e,t,n){return t===hm?ba(v_(e,n)):lo(t)?S_(t,n):ba(x_(Hn(e)))}function C_(e){var t=Ir(Oi(e)),n=["absolute","fixed"].indexOf(wn(e).position)>=0,o=n&&Dt(e)?Jr(e):e;return lo(o)?t.filter(function(s){return lo(s)&&ym(s,o)&&on(s)!=="body"}):[]}function w_(e,t,n,o){var s=t==="clippingParents"?C_(e):[].concat(t),i=[].concat(s,[n]),a=i[0],l=i.reduce(function(c,u){var d=Ku(e,u,o);return c.top=ro(d.top,c.top),c.right=Vs(d.right,c.right),c.bottom=Vs(d.bottom,c.bottom),c.left=ro(d.left,c.left),c},Ku(e,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function wm(e){var t=e.reference,n=e.element,o=e.placement,s=o?en(o):null,i=o?Xo(o):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(s){case Tt:c={x:a,y:t.y-n.height};break;case jt:c={x:a,y:t.y+t.height};break;case Lt:c={x:t.x+t.width,y:l};break;case It:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=s?kl(s):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case Yo:c[u]=c[u]-(t[d]/2-n[d]/2);break;case $r:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function Dr(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=o===void 0?e.placement:o,i=n.strategy,a=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?WE:l,u=n.rootBoundary,d=u===void 0?hm:u,m=n.elementContext,h=m===void 0?cr:m,f=n.altBoundary,g=f===void 0?!1:f,p=n.padding,y=p===void 0?0:p,x=xm(typeof y!="number"?y:Sm(y,Zr)),I=h===cr?UE:cr,w=e.rects.popper,S=e.elements[g?I:h],E=w_(lo(S)?S:S.contextElement||Hn(e.elements.popper),c,d,a),T=Ko(e.elements.reference),R=wm({reference:T,element:w,placement:s}),N=ba(Object.assign({},w,R)),L=h===cr?N:T,V={top:E.top-L.top+x.top,bottom:L.bottom-E.bottom+x.bottom,left:E.left-L.left+x.left,right:L.right-E.right+x.right},A=e.modifiersData.offset;if(h===cr&&A){var v=A[s];Object.keys(V).forEach(function(P){var O=[Lt,jt].indexOf(P)>=0?1:-1,_=[Tt,jt].indexOf(P)>=0?"y":"x";V[P]+=v[_]*O})}return V}function T_(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?gm:c,d=Xo(o),m=d?l?qu:qu.filter(function(g){return Xo(g)===d}):Zr,h=m.filter(function(g){return u.indexOf(g)>=0});h.length===0&&(h=m);var f=h.reduce(function(g,p){return g[p]=Dr(e,{placement:p,boundary:s,rootBoundary:i,padding:a})[en(p)],g},{});return Object.keys(f).sort(function(g,p){return f[g]-f[p]})}function I_(e){if(en(e)===El)return[];var t=Ts(e);return[Gu(e),t,Gu(t)]}function E_(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var s=n.mainAxis,i=s===void 0?!0:s,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,m=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,g=f===void 0?!0:f,p=n.allowedAutoPlacements,y=t.options.placement,x=en(y),I=x===y,w=c||(I||!g?[Ts(y)]:I_(y)),S=[y].concat(w).reduce(function(Q,G){return Q.concat(en(G)===El?T_(t,{placement:G,boundary:d,rootBoundary:m,padding:u,flipVariations:g,allowedAutoPlacements:p}):G)},[]),E=t.rects.reference,T=t.rects.popper,R=new Map,N=!0,L=S[0],V=0;V<S.length;V++){var A=S[V],v=en(A),P=Xo(A)===Yo,O=[Tt,jt].indexOf(v)>=0,_=O?"width":"height",k=Dr(t,{placement:A,boundary:d,rootBoundary:m,altBoundary:h,padding:u}),D=O?P?Lt:It:P?jt:Tt;E[_]>T[_]&&(D=Ts(D));var M=Ts(D),z=[];if(i&&z.push(k[v]<=0),l&&z.push(k[D]<=0,k[M]<=0),z.every(function(Q){return Q})){L=A,N=!1;break}R.set(A,z)}if(N)for(var j=g?3:1,B=function(G){var Z=S.find(function(te){var H=R.get(te);if(H)return H.slice(0,G).every(function(F){return F})});if(Z)return L=Z,"break"},W=j;W>0;W--){var X=B(W);if(X==="break")break}t.placement!==L&&(t.modifiersData[o]._skip=!0,t.placement=L,t.reset=!0)}}const __={name:"flip",enabled:!0,phase:"main",fn:E_,requiresIfExists:["offset"],data:{_skip:!1}};function Xu(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Qu(e){return[Tt,Lt,jt,It].some(function(t){return e[t]>=0})}function O_(e){var t=e.state,n=e.name,o=t.rects.reference,s=t.rects.popper,i=t.modifiersData.preventOverflow,a=Dr(t,{elementContext:"reference"}),l=Dr(t,{altBoundary:!0}),c=Xu(a,o),u=Xu(l,s,i),d=Qu(c),m=Qu(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":m})}const k_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:O_};function P_(e,t,n){var o=en(e),s=[It,Tt].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*s,[It,Lt].indexOf(o)>=0?{x:l,y:a}:{x:a,y:l}}function R_(e){var t=e.state,n=e.options,o=e.name,s=n.offset,i=s===void 0?[0,0]:s,a=gm.reduce(function(d,m){return d[m]=P_(m,t.rects,i),d},{}),l=a[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=a}const N_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:R_};function M_(e){var t=e.state,n=e.name;t.modifiersData[n]=wm({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const $_={name:"popperOffsets",enabled:!0,phase:"read",fn:M_,data:{}};function D_(e){return e==="x"?"y":"x"}function A_(e){var t=e.state,n=e.options,o=e.name,s=n.mainAxis,i=s===void 0?!0:s,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,m=n.padding,h=n.tether,f=h===void 0?!0:h,g=n.tetherOffset,p=g===void 0?0:g,y=Dr(t,{boundary:c,rootBoundary:u,padding:m,altBoundary:d}),x=en(t.placement),I=Xo(t.placement),w=!I,S=kl(x),E=D_(S),T=t.modifiersData.popperOffsets,R=t.rects.reference,N=t.rects.popper,L=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,V=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,v={x:0,y:0};if(T){if(i){var P,O=S==="y"?Tt:It,_=S==="y"?jt:Lt,k=S==="y"?"height":"width",D=T[S],M=D+y[O],z=D-y[_],j=f?-N[k]/2:0,B=I===Yo?R[k]:N[k],W=I===Yo?-N[k]:-R[k],X=t.elements.arrow,Q=f&&X?Ol(X):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:vm(),Z=G[O],te=G[_],H=Tr(0,R[k],Q[k]),F=w?R[k]/2-j-H-Z-V.mainAxis:B-H-Z-V.mainAxis,U=w?-R[k]/2+j+H+te+V.mainAxis:W+H+te+V.mainAxis,ae=t.elements.arrow&&Jr(t.elements.arrow),K=ae?S==="y"?ae.clientTop||0:ae.clientLeft||0:0,ce=(P=A==null?void 0:A[S])!=null?P:0,oe=D+F-ce-K,be=D+U-ce,he=Tr(f?Vs(M,oe):M,D,f?ro(z,be):z);T[S]=he,v[S]=he-D}if(l){var re,J=S==="x"?Tt:It,ge=S==="x"?jt:Lt,ie=T[E],fe=E==="y"?"height":"width",se=ie+y[J],Te=ie-y[ge],ke=[Tt,It].indexOf(x)!==-1,ve=(re=A==null?void 0:A[E])!=null?re:0,we=ke?se:ie-R[fe]-N[fe]-ve+V.altAxis,Ne=ke?ie+R[fe]+N[fe]-ve-V.altAxis:Te,Qe=f&&ke?i_(we,ie,Ne):Tr(f?we:se,ie,f?Ne:Te);T[E]=Qe,v[E]=Qe-ie}t.modifiersData[o]=v}}const j_={name:"preventOverflow",enabled:!0,phase:"main",fn:A_,requiresIfExists:["offset"]};function L_(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function V_(e){return e===Pt(e)||!Dt(e)?Pl(e):L_(e)}function F_(e){var t=e.getBoundingClientRect(),n=Go(t.width)/e.offsetWidth||1,o=Go(t.height)/e.offsetHeight||1;return n!==1||o!==1}function B_(e,t,n){n===void 0&&(n=!1);var o=Dt(t),s=Dt(t)&&F_(t),i=Hn(t),a=Ko(e,s,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((on(t)!=="body"||Nl(i))&&(l=V_(t)),Dt(t)?(c=Ko(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Rl(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function z_(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function s(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&s(c)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||s(i)}),o}function W_(e){var t=z_(e);return e_.reduce(function(n,o){return n.concat(t.filter(function(s){return s.phase===o}))},[])}function U_(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function q_(e){var t=e.reduce(function(n,o){var s=n[o.name];return n[o.name]=s?Object.assign({},s,o,{options:Object.assign({},s.options,o.options),data:Object.assign({},s.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var Zu={placement:"bottom",modifiers:[],strategy:"absolute"};function Ju(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function H_(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,s=t.defaultOptions,i=s===void 0?Zu:s;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Zu,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},m=[],h=!1,f={state:d,setOptions:function(x){var I=typeof x=="function"?x(d.options):x;p(),d.options=Object.assign({},i,d.options,I),d.scrollParents={reference:lo(l)?Ir(l):l.contextElement?Ir(l.contextElement):[],popper:Ir(c)};var w=W_(q_([].concat(o,d.options.modifiers)));return d.orderedModifiers=w.filter(function(S){return S.enabled}),g(),f.update()},forceUpdate:function(){if(!h){var x=d.elements,I=x.reference,w=x.popper;if(Ju(I,w)){d.rects={reference:B_(I,Jr(w),d.options.strategy==="fixed"),popper:Ol(w)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(V){return d.modifiersData[V.name]=Object.assign({},V.data)});for(var S=0;S<d.orderedModifiers.length;S++){if(d.reset===!0){d.reset=!1,S=-1;continue}var E=d.orderedModifiers[S],T=E.fn,R=E.options,N=R===void 0?{}:R,L=E.name;typeof T=="function"&&(d=T({state:d,options:N,name:L,instance:f})||d)}}}},update:U_(function(){return new Promise(function(y){f.forceUpdate(),y(d)})}),destroy:function(){p(),h=!0}};if(!Ju(l,c))return f;f.setOptions(u).then(function(y){!h&&u.onFirstUpdate&&u.onFirstUpdate(y)});function g(){d.orderedModifiers.forEach(function(y){var x=y.name,I=y.options,w=I===void 0?{}:I,S=y.effect;if(typeof S=="function"){var E=S({state:d,name:x,instance:f,options:w}),T=function(){};m.push(E||T)}})}function p(){m.forEach(function(y){return y()}),m=[]}return f}}var Y_=[g_,$_,m_,o_,N_,__,j_,u_,k_],G_=H_({defaultModifiers:Y_});function K_(e){return typeof e=="function"?e():e}const Ar=C.forwardRef(function(t,n){const{children:o,container:s,disablePortal:i=!1}=t,[a,l]=C.useState(null),c=yt(C.isValidElement(o)?_i(o):null,n);if(Ln(()=>{i||l(K_(s)||document.body)},[s,i]),Ln(()=>{if(a&&!i)return eu(n,a),()=>{eu(n,null)}},[n,a,i]),i){if(C.isValidElement(o)){const u={ref:c};return C.cloneElement(o,u)}return o}return a&&qh.createPortal(o,a)});process.env.NODE_ENV!=="production"&&(Ar.propTypes={children:r.node,container:r.oneOfType([Ho,r.func]),disablePortal:r.bool});process.env.NODE_ENV!=="production"&&(Ar.propTypes=Jp(Ar.propTypes));function X_(e){return Me("MuiPopper",e)}_e("MuiPopper",["root"]);function Q_(e,t){if(t==="ltr")return e;switch(e){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 e}}function Fs(e){return typeof e=="function"?e():e}function ki(e){return e.nodeType!==void 0}function Z_(e){return!ki(e)}const J_=e=>{const{classes:t}=e;return Le({root:["root"]},X_,t)},eO={},tO=C.forwardRef(function(t,n){const{anchorEl:o,children:s,direction:i,disablePortal:a,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:m,slotProps:h={},slots:f={},TransitionProps:g,ownerState:p,...y}=t,x=C.useRef(null),I=yt(x,n),w=C.useRef(null),S=yt(w,m),E=C.useRef(S);Ln(()=>{E.current=S},[S]),C.useImperativeHandle(m,()=>w.current,[]);const T=Q_(u,i),[R,N]=C.useState(T),[L,V]=C.useState(Fs(o));C.useEffect(()=>{w.current&&w.current.forceUpdate()}),C.useEffect(()=>{o&&V(Fs(o))},[o]),Ln(()=>{if(!L||!c)return;const _=z=>{N(z.placement)};if(process.env.NODE_ENV!=="production"&&L&&ki(L)&&L.nodeType===1){const z=L.getBoundingClientRect();Sf()&&z.top===0&&z.left===0&&z.right===0&&z.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(`
215
- `))}let k=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{_(z)}}];l!=null&&(k=k.concat(l)),d&&d.modifiers!=null&&(k=k.concat(d.modifiers));const D=G_(L,x.current,{placement:T,...d,modifiers:k});E.current(D);const M=x.current;return()=>{if(M){const{style:z}=M,j=z.position,B=z.top,W=z.left,X=z.transform;D.destroy(),z.position=j,z.top=B,z.left=W,z.transform=X}else D.destroy();E.current(null)}},[L,a,l,c,d,T]);const A={placement:R};g!==null&&(A.TransitionProps=g);const v=J_(t),P=f.root??"div",O=Aw({elementType:P,externalSlotProps:h.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:I},ownerState:t,className:v.root});return b.jsx(P,{...O,children:typeof s=="function"?s(A):s})}),Tm=C.forwardRef(function(t,n){const{anchorEl:o,children:s,container:i,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:d,placement:m="bottom",popperOptions:h=eO,popperRef:f,style:g,transition:p=!1,slotProps:y={},slots:x={},...I}=t,[w,S]=C.useState(!0),E=()=>{S(!1)},T=()=>{S(!0)};if(!c&&!d&&(!p||w))return null;let R;if(i)R=i;else if(o){const V=Fs(o);R=V&&ki(V)?tn(V).body:tn(null).body}const N=!d&&c&&(!p||w)?"none":void 0,L=p?{in:d,onEnter:E,onExited:T}:void 0;return b.jsx(Ar,{disablePortal:l,container:R,children:b.jsx(tO,{anchorEl:o,direction:a,disablePortal:l,modifiers:u,ref:n,open:p?!w:d,placement:m,popperOptions:h,popperRef:f,slotProps:y,slots:x,...I,style:{position:"fixed",top:0,left:0,display:N,...g},TransitionProps:L,children:s})})});process.env.NODE_ENV!=="production"&&(Tm.propTypes={anchorEl:Un(r.oneOfType([Ho,r.object,r.func]),e=>{if(e.open){const t=Fs(e.anchorEl);if(t&&ki(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="production"&&Sf()&&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(`
216
- `))}else if(!t||typeof t.getBoundingClientRect!="function"||Z_(t)&&t.contextElement!=null&&t.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(`
217
- `))}return null}),children:r.oneOfType([r.node,r.func]),container:r.oneOfType([Ho,r.func]),direction:r.oneOf(["ltr","rtl"]),disablePortal:r.bool,keepMounted:r.bool,modifiers:r.arrayOf(r.shape({data:r.object,effect:r.func,enabled:r.bool,fn:r.func,name:r.any,options:r.object,phase:r.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:r.arrayOf(r.string),requiresIfExists:r.arrayOf(r.string)})),open:r.bool.isRequired,placement:r.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:r.shape({modifiers:r.array,onFirstUpdate:r.func,placement:r.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:r.oneOf(["absolute","fixed"])}),popperRef:ui,slotProps:r.shape({root:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType}),transition:r.bool});const nO=ne(Tm,{name:"MuiPopper",slot:"Root"})({}),Im=C.forwardRef(function(t,n){const o=Wn(),s=Ye({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:m,modifiers:h,open:f,placement:g,popperOptions:p,popperRef:y,transition:x,slots:I,slotProps:w,...S}=s,E=(I==null?void 0:I.root)??(l==null?void 0:l.Root),T={anchorEl:i,container:u,disablePortal:d,keepMounted:m,modifiers:h,open:f,placement:g,popperOptions:p,popperRef:y,transition:x,...S};return b.jsx(nO,{as:a,direction:o?"rtl":"ltr",slots:{root:E},slotProps:w??c,...T,ref:n})});process.env.NODE_ENV!=="production"&&(Im.propTypes={anchorEl:r.oneOfType([Ho,r.object,r.func]),children:r.oneOfType([r.node,r.func]),component:r.elementType,components:r.shape({Root:r.elementType}),componentsProps:r.shape({root:r.oneOfType([r.func,r.object])}),container:r.oneOfType([Ho,r.func]),disablePortal:r.bool,keepMounted:r.bool,modifiers:r.arrayOf(r.shape({data:r.object,effect:r.func,enabled:r.bool,fn:r.func,name:r.any,options:r.object,phase:r.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:r.arrayOf(r.string),requiresIfExists:r.arrayOf(r.string)})),open:r.bool.isRequired,placement:r.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:r.shape({modifiers:r.array,onFirstUpdate:r.func,placement:r.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:r.oneOf(["absolute","fixed"])}),popperRef:ui,slotProps:r.shape({root:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),transition:r.bool});const ya="data-mui-focusable";function oO(e){return e?e.hasAttribute(ya)?e:e.querySelector(`[${ya}]`):null}const rO=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function sO(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function iO(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function aO(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||iO(e))}function lO(e){const t=[],n=[];return Array.from(e.querySelectorAll(rO)).forEach((o,s)=>{const i=sO(o);i===-1||!aO(o)||(i===0?t.push(o):n.push({documentOrder:s,tabIndex:i,node:o}))}),n.sort((o,s)=>o.tabIndex===s.tabIndex?o.documentOrder-s.documentOrder:o.tabIndex-s.tabIndex).map(o=>o.node).concat(t)}function cO(){return!0}function jr(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:s=!1,getTabbable:i=lO,isEnabled:a=cO,open:l}=e,c=C.useRef(!1),u=C.useRef(null),d=C.useRef(null),m=C.useRef(null),h=C.useRef(null),f=C.useRef(!1),g=C.useRef(null),p=yt(_i(t),g),y=C.useRef(null);C.useEffect(()=>{!l||!g.current||(f.current=!n)},[n,l]),C.useEffect(()=>{if(c.current=!1,!l||!g.current)return;const w=tn(g.current),S=br(w),E=oO(g.current)??g.current;return uu(g.current,S)||(E.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(`
218
- `)),E.setAttribute("tabIndex","-1")),f.current&&E.focus()),()=>{s||(m.current&&m.current.focus&&(c.current=!0,m.current.focus()),m.current=null)}},[l]),C.useEffect(()=>{if(!l||!g.current)return;const w=tn(g.current),S=R=>{if(y.current=R,o||!a()||R.key!=="Tab")return;br(w)===g.current&&R.shiftKey&&(c.current=!0,d.current&&d.current.focus())},E=()=>{var V,A;const R=g.current;if(R===null)return;const N=br(w);if(!w.hasFocus()||!a()||c.current){c.current=!1;return}if(uu(R,N)||o&&N!==u.current&&N!==d.current)return;if(N!==h.current)h.current=null;else if(h.current!==null)return;if(!f.current)return;let L=[];if((N===u.current||N===d.current)&&(L=i(g.current)),L.length>0){const v=!!((V=y.current)!=null&&V.shiftKey&&((A=y.current)==null?void 0:A.key)==="Tab"),P=L[0],O=L[L.length-1];typeof P!="string"&&typeof O!="string"&&(v?O.focus():P.focus())}else R.focus()};w.addEventListener("focusin",E),w.addEventListener("keydown",S,!0);const T=setInterval(()=>{const R=br(w);R&&R.tagName==="BODY"&&E()},50);return()=>{clearInterval(T),w.removeEventListener("focusin",E),w.removeEventListener("keydown",S,!0)}},[n,o,s,a,l,i]);const x=w=>{m.current===null&&(m.current=w.relatedTarget),f.current=!0,h.current=w.target;const S=t.props.onFocus;S&&S(w)},I=w=>{m.current===null&&(m.current=w.relatedTarget),f.current=!0};return b.jsxs(C.Fragment,{children:[b.jsx("div",{tabIndex:l?0:-1,onFocus:I,ref:u,"data-testid":"sentinelStart"}),C.cloneElement(t,{ref:p,onFocus:x}),b.jsx("div",{tabIndex:l?0:-1,onFocus:I,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(jr.propTypes={children:Xr,disableAutoFocus:r.bool,disableEnforceFocus:r.bool,disableRestoreFocus:r.bool,getTabbable:r.func,isEnabled:r.func,open:r.bool.isRequired});process.env.NODE_ENV!=="production"&&(jr.propTypes=Jp(jr.propTypes));const uO=e=>e.type==="hidden";function dO(e){const{nodeName:t}=e;return!!(["BUTTON","DETAILS","EMBED","IFRAME","KEYGEN","LABEL","SELECT","TEXTAREA"].includes(t)||t==="A"&&e.hasAttribute("href")||e instanceof HTMLInputElement&&!uO(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)}function pO(e){return ct("MuiPickerPopper",e)}dt("MuiPickerPopper",["root","paper"]);const fO=["PaperComponent","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],mO=e=>at({root:["root"],paper:["paper"]},pO,e),hO=ne(Im,{name:"MuiPickerPopper",slot:"Root"})(({theme:e})=>({zIndex:e.zIndex.modal})),gO=ne(Qr,{name:"MuiPickerPopper",slot:"Paper"})({outline:0,transformOrigin:"top center",variants:[{props:({popperPlacement:e})=>new Set(["top","top-start","top-end"]).has(e),style:{transformOrigin:"bottom center"}}]});function bO(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function yO(e,t){const n=C.useRef(!1),o=C.useRef(!1),s=C.useRef(null),i=C.useRef(!1);C.useEffect(()=>{if(!e)return;function c(){i.current=!0}return document.addEventListener("mousedown",c,!0),document.addEventListener("touchstart",c,!0),()=>{document.removeEventListener("mousedown",c,!0),document.removeEventListener("touchstart",c,!0),i.current=!1}},[e]);const a=xe(c=>{if(!i.current){o.current=!1;return}const u=o.current;o.current=!1;const d=Ao(s.current);if(!s.current||"clientX"in c&&bO(c,d))return;if(n.current){n.current=!1;return}let m;c.composedPath?m=c.composedPath().indexOf(s.current)>-1:m=!d.documentElement.contains(c.target)||s.current.contains(c.target),!m&&!u&&t(c)}),l=c=>{c.defaultMuiPrevented||(o.current=!0)};return C.useEffect(()=>{if(e){const c=Ao(s.current),u=()=>{n.current=!0};return c.addEventListener("touchstart",a),c.addEventListener("touchmove",u),()=>{c.removeEventListener("touchstart",a),c.removeEventListener("touchmove",u)}}},[e,a]),C.useEffect(()=>{if(e){const c=Ao(s.current);return c.addEventListener("click",a),()=>{c.removeEventListener("click",a),o.current=!1}}},[e,a]),[s,l,l]}const Em=C.forwardRef((e,t)=>{const{PaperComponent:n,ownerState:o,children:s,paperSlotProps:i,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=Ce(e,fO),d=He({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:o});return b.jsx(n,$({},u,d,{onClick:m=>{var h;l(m),(h=d.onClick)==null||h.call(d,m)},onTouchStart:m=>{var h;c(m),(h=d.onTouchStart)==null||h.call(d,m)},ownerState:o,children:s}))});process.env.NODE_ENV!=="production"&&(Em.displayName="PickerPopperPaperWrapper");const vO=e=>{const t=e instanceof HTMLElement?e:null;return t?dO(t):!1};function xO(e){const t=qe({props:e,name:"MuiPickerPopper"}),{children:n,placement:o="bottom-start",slots:s,slotProps:i,classes:a}=t,{open:l,popupRef:c,reduceAnimations:u,keepOpenDuringFieldFocus:d}=Jo(),{ownerState:m,rootRefObject:h}=vt(),{dismissViews:f,getCurrentViewMode:g,onPopperExited:p,triggerElement:y,viewContainerRole:x}=vt();C.useEffect(()=>{function M(z){l&&z.key==="Escape"&&f()}return document.addEventListener("keydown",M),()=>{document.removeEventListener("keydown",M)}},[f,l]);const I=C.useRef(null);C.useEffect(()=>{x==="tooltip"||g()==="field"||(l?I.current=hn(h.current):I.current&&I.current instanceof HTMLElement&&setTimeout(()=>{I.current instanceof HTMLElement&&I.current.focus()}))},[l,x,g,h]);const w=mO(a),S=xe(M=>{d&&y&&M&&"target"in M&&y.contains(M.target)||(x==="tooltip"?QT(()=>{var z,j;(z=h.current)!=null&&z.contains(hn(h.current))||(j=c.current)!=null&&j.contains(hn(c.current))||f()}):(M.composedPath().some(vO)&&(I.current=null),f()))}),[E,T,R]=yO(l,S),N=C.useRef(null),L=wt(N,c),V=wt(L,E),A=M=>{M.key==="Escape"&&(M.stopPropagation(),f())},v=(s==null?void 0:s.desktopTransition)??u?qo:Ls,P=(s==null?void 0:s.desktopTrapFocus)??jr,O=(s==null?void 0:s.desktopPaper)??gO,_=(s==null?void 0:s.popper)??hO,k=He({elementType:_,externalSlotProps:i==null?void 0:i.popper,additionalProps:{transition:!0,role:x??void 0,open:l,placement:o,anchorEl:y,onKeyDown:A},className:w.root,ownerState:m}),D=C.useMemo(()=>$({},m,{popperPlacement:k.placement}),[m,k.placement]);return b.jsx(_,$({},k,{children:({TransitionProps:M})=>b.jsx(P,$({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:x==="tooltip"},i==null?void 0:i.desktopTrapFocus,{children:b.jsx(v,$({},M,i==null?void 0:i.desktopTransition,{onExited:z=>{var j,B,W;p==null||p(),(B=(j=i==null?void 0:i.desktopTransition)==null?void 0:j.onExited)==null||B.call(j,z),(W=M==null?void 0:M.onExited)==null||W.call(M)},children:b.jsx(Em,{PaperComponent:O,ownerState:D,ref:V,onPaperClick:T,onPaperTouchStart:R,paperClasses:w.paper,paperSlotProps:i==null?void 0:i.desktopPaper,children:n})}))}))}))}const SO="@media (prefers-reduced-motion: reduce)",jo=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),ed=jo&&jo[1]?parseInt(jo[1],10):null,td=jo&&jo[2]?parseInt(jo[2],10):null,CO=ed&&ed<10||td&&td<13||!1;function wO(e){const t=Nf(SO,{defaultMatches:!1});return e??(t||CO)}const _m={hasNextStep:!1,hasSeveralSteps:!1,goToNextStep:()=>{},areViewsInSameStep:()=>!0};function TO(e){const{steps:t,isViewMatchingStep:n,onStepChange:o}=e;return s=>{if(t==null)return _m;const i=t.findIndex(l=>n(s.view,l)),a=i===-1||i===t.length-1?null:t[i+1];return{hasNextStep:a!=null,hasSeveralSteps:t.length>1,goToNextStep:()=>{a!=null&&o($({},s,{step:a}))},areViewsInSameStep:(l,c)=>{const u=t.find(m=>n(l,m)),d=t.find(m=>n(c,m));return u===d}}}}let qi=!1;function Pi({onChange:e,onViewChange:t,openTo:n,view:o,views:s,autoFocus:i,focusedView:a,onFocusedViewChange:l,getStepNavigation:c}){process.env.NODE_ENV!=="production"&&(qi||(o!=null&&!s.includes(o)&&(console.warn(`MUI X: \`view="${o}"\` is not a valid prop.`,`It must be an element of \`views=["${s.join('", "')}"]\`.`),qi=!0),o==null&&n!=null&&!s.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${s.join('", "')}"]\`.`),qi=!0)));const u=C.useRef(n),d=C.useRef(s),m=C.useRef(s.includes(n)?n:s[0]),[h,f]=js({name:"useViews",state:"view",controlled:o,default:m.current}),g=C.useRef(i?h:null),[p,y]=js({name:"useViews",state:"focusedView",controlled:a,default:g.current}),x=c?c({setView:f,view:h,defaultView:m.current,views:s}):_m;C.useEffect(()=>{(u.current&&u.current!==n||d.current&&d.current.some(L=>!s.includes(L)))&&(f(s.includes(n)?n:s[0]),d.current=s,u.current=n)},[n,f,h,s]);const I=s.indexOf(h),w=s[I-1]??null,S=s[I+1]??null,E=xe((L,V)=>{y(V?L:A=>L===A?null:A),l==null||l(L,V)}),T=xe(L=>{E(L,!0),L!==h&&(f(L),t&&t(L))}),R=xe(()=>{S&&T(S)}),N=xe((L,V,A)=>{const v=V==="finish",P=A?s.indexOf(A)<s.length-1:!!S;e(L,v&&P?"partial":V,A);let _=null;if(A!=null&&A!==h?_=A:v&&(_=h),_==null)return;const k=s[s.indexOf(_)+1];k==null||!x.areViewsInSameStep(_,k)||T(k)});return $({},x,{view:h,setView:T,focusedView:p,setFocusedView:E,nextView:S,previousView:w,defaultView:s.includes(n)?n:s[0],goToNextView:R,setValueAndGoToNextView:N})}function nd(){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"}function IO(e,t){const[n,o]=C.useState(nd);return Cn(()=>{const s=()=>{o(nd())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),Oo(e,["hours","minutes","seconds"])?"portrait":t??n}function EO(e){const{props:t,valueManager:n,validator:o}=e,{value:s,defaultValue:i,onChange:a,referenceDate:l,timezone:c,onAccept:u,closeOnSelect:d,open:m,onOpen:h,onClose:f}=t,{current:g}=C.useRef(i),{current:p}=C.useRef(s!==void 0),{current:y}=C.useRef(m!==void 0),x=lt();process.env.NODE_ENV!=="production"&&t.renderInput!=null&&Sn(["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)."]),process.env.NODE_ENV!=="production"&&(C.useEffect(()=>{p!==(s!==void 0)&&console.error([`MUI X: A component is changing the ${p?"":"un"}controlled value of a Picker to be ${p?"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(`
219
- `))},[s]),C.useEffect(()=>{!p&&g!==i&&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(`
220
- `))},[JSON.stringify(g)]));const{timezone:I,value:w,handleValueChange:S}=Gr({name:"a picker component",timezone:c,value:s,defaultValue:g,referenceDate:l,onChange:a,valueManager:n}),[E,T]=C.useState(()=>({open:!1,lastExternalValue:w,clockShallowValue:void 0,lastCommittedValue:w,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:R}=Yf({props:t,validator:o,timezone:I,value:w,onError:t.onError}),N=xe(v=>{const P=typeof v=="function"?v(E.open):v;y||T(O=>$({},O,{open:P})),P&&h&&h(),P||f==null||f()}),L=xe((v,P)=>{const{changeImportance:O="accept",skipPublicationIfPristine:_=!1,validationError:k,shortcut:D,source:M,shouldClose:z=O==="accept"}=P??{};let j,B;!_&&!p&&!E.hasBeenModifiedSinceMount?(j=!0,B=O==="accept"):(j=!n.areValuesEqual(x,v,w),B=O==="accept"&&!n.areValuesEqual(x,v,E.lastCommittedValue)),T(Q=>$({},Q,{clockShallowValue:j?void 0:Q.clockShallowValue,lastCommittedValue:B?v:Q.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let W=null;const X=()=>{if(!W){let Q;M?Q=M:D?Q="view":Q="unknown",W={validationError:k??R(v),source:Q},D&&(W.shortcut=D)}return W};j&&S(v,X()),B&&u&&u(v,X()),z&&N(!1)});w!==E.lastExternalValue&&T(v=>$({},v,{lastExternalValue:w,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));const V=xe((v,P="partial")=>{if(P==="shallow"){T(O=>$({},O,{clockShallowValue:v,hasBeenModifiedSinceMount:!0}));return}L(v,{changeImportance:P==="finish"&&d?"accept":"set",source:"view"})});C.useEffect(()=>{if(y){if(m===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: You must not mix controlling and uncontrolled mode for `open` prop":Re(160));T(v=>$({},v,{open:m}))}},[y,m]);const A=C.useMemo(()=>n.cleanValue(x,E.clockShallowValue===void 0?w:E.clockShallowValue),[x,n,E.clockShallowValue,w]);return{timezone:I,state:E,setValue:L,setValueFromView:V,setOpen:N,value:w,viewValue:A}}const _O=["className","sx"],Om=({ref:e,props:t,valueManager:n,valueType:o,variant:s,validator:i,onPopperExited:a,autoFocusView:l,rendererInterceptor:c,localeText:u,viewContainerRole:d,getStepNavigation:m})=>{const{views:h,view:f,openTo:g,onViewChange:p,viewRenderers:y,reduceAnimations:x,orientation:I,disableOpenPicker:w,closeOnSelect:S,disabled:E,readOnly:T,formatDensity:R,selectedSections:N,onSelectedSectionsChange:L,format:V,label:A,autoFocus:v,name:P,keepOpenDuringFieldFocus:O}=t,{className:_,sx:k}=t,D=Ce(t,_O),M=vl(),z=lt(),j=wO(x),B=IO(h,I),{current:W}=C.useRef(g??null),[X,Q]=C.useState(null),G=C.useRef(null),Z=C.useRef(null),te=C.useRef(null),H=wt(e,te),{timezone:F,state:U,setOpen:ae,setValue:K,setValueFromView:ce,value:oe,viewValue:be}=EO({props:t,valueManager:n,validator:i}),{view:he,setView:re,defaultView:J,focusedView:ge,setFocusedView:ie,setValueAndGoToNextView:fe,goToNextStep:se,hasNextStep:Te,hasSeveralSteps:ke}=Pi({view:f,views:h,openTo:g,onChange:ce,onViewChange:p,autoFocus:l,getStepNavigation:m}),ve=xe(()=>{var Ze;oe===null&&((Ze=Z.current)!=null&&Ze.clearValue)&&Z.current.clearValue(),K(n.emptyValue,{source:"view"})}),we=xe(()=>K(n.getTodayValue(z,F,o),{source:"view"})),Ne=xe(()=>K(oe,{source:"view"})),Qe=xe(()=>K(U.lastCommittedValue,{skipPublicationIfPristine:!0,source:"view"})),Kt=xe(()=>{K(oe,{skipPublicationIfPristine:!0,source:"view"})}),{hasUIView:Se,viewModeLookup:ot,timeViewsCount:rt}=C.useMemo(()=>h.reduce((Ze,Ft)=>{const pc=y[Ft]==null?"field":"UI";return Ze.viewModeLookup[Ft]=pc,pc==="UI"&&(Ze.hasUIView=!0,Wo(Ft)&&(Ze.timeViewsCount+=1)),Ze},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[y,h]),ht=ot[he],sn=xe(()=>ht),[gt,er]=C.useState(ht==="UI"?he:null);gt!==he&&ot[he]==="UI"&&er(he),Cn(()=>{ht==="field"&&U.open&&(ae(!1),setTimeout(()=>{var Ze,Ft;(Ze=Z==null?void 0:Z.current)==null||Ze.setSelectedSections(he),(Ft=Z==null?void 0:Z.current)==null||Ft.focusField(he)}))},[he]),Cn(()=>{if(!U.open)return;let Ze=he;ht==="field"&&gt!=null&&(Ze=gt),Ze!==J&&ot[Ze]==="UI"&&ot[J]==="UI"&&(Ze=J),Ze!==he&&re(Ze),ie(Ze,!0)},[U.open]);const fo=C.useMemo(()=>({isPickerValueEmpty:n.areValuesEqual(z,oe,n.emptyValue),isPickerOpen:U.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:B,pickerVariant:s}),[z,n,oe,U.open,B,s,t.disabled,t.readOnly]),mo=C.useMemo(()=>w||!Se?"hidden":E||T?"disabled":"enabled",[w,Se,E,T]),tr=xe(se),ts=C.useMemo(()=>S&&!ke?[]:["cancel","nextOrAccept"],[S,ke]),ho=C.useMemo(()=>({setValue:K,setOpen:ae,clearValue:ve,setValueToToday:we,acceptValueChanges:Ne,cancelValueChanges:Qe,setView:re,goToNextStep:tr}),[K,ae,ve,we,Ne,Qe,re,tr]),dc=C.useMemo(()=>$({},ho,{value:oe,timezone:F,open:U.open,views:h,view:gt,initialView:W,disabled:E??!1,readOnly:T??!1,autoFocus:v??!1,variant:s,orientation:B,popupRef:G,reduceAnimations:j,triggerRef:Q,triggerStatus:mo,keepOpenDuringFieldFocus:!!O,hasNextStep:Te,fieldFormat:V??"",name:P,label:A,rootSx:k,rootRef:H,rootClassName:_}),[ho,oe,H,s,B,j,E,T,V,_,P,A,k,mo,O,Te,F,U.open,gt,h,W,v]),Fh=C.useMemo(()=>({dismissViews:Kt,ownerState:fo,hasUIView:Se,getCurrentViewMode:sn,rootRefObject:te,labelId:M,triggerElement:X,viewContainerRole:d,defaultActionBarActions:ts,onPopperExited:a}),[Kt,fo,Se,sn,M,X,d,ts,a]),Bh=C.useMemo(()=>({formatDensity:R,selectedSections:N,onSelectedSectionsChange:L,internalFieldRef:Z}),[R,N,L,Z]);return{providerProps:{localeText:u,contextValue:dc,privateContextValue:Fh,actionsContextValue:ho,fieldPrivateContextValue:Bh,isValidContextValue:Ze=>{const Ft=i({adapter:z,value:Ze,timezone:F,props:t});return!n.hasError(Ft)}},renderCurrentView:()=>{if(gt==null)return null;const Ze=y[gt];if(Ze==null)return null;const Ft=$({},D,{views:h,timezone:F,value:be,onChange:fe,view:gt,onViewChange:re,showViewSwitcher:rt>1,timeViewsCount:rt},d==="tooltip"?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:ge,onFocusedViewChange:ie});return c?b.jsx(c,{viewRenderers:y,popperView:gt,rendererProps:Ft}):Ze(Ft)},ownerState:fo}};function km(e){return ct("MuiPickersLayout",e)}const Zn=dt("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function OO(e){return Me("MuiDialogActions",e)}_e("MuiDialogActions",["root","spacing"]);const kO=e=>{const{classes:t,disableSpacing:n}=e;return Le({root:["root",!n&&"spacing"]},OO,t)},PO=ne("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Pm=C.forwardRef(function(t,n){const o=Ye({props:t,name:"MuiDialogActions"}),{className:s,disableSpacing:i=!1,...a}=o,l={...o,disableSpacing:i},c=kO(l);return b.jsx(PO,{className:ue(c.root,s),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Pm.propTypes={children:r.node,classes:r.object,className:r.string,disableSpacing:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const RO=["actions"],NO=ne(Pm,{name:"MuiPickersLayout",slot:"ActionBar"})({});function Rm(e){const{actions:t}=e,n=Ce(e,RO),o=rn(),{clearValue:s,setValueToToday:i,acceptValueChanges:a,cancelValueChanges:l,goToNextStep:c,hasNextStep:u}=Jo();if(t==null||t.length===0)return null;const d=t==null?void 0:t.map(m=>{switch(m){case"clear":return b.jsx(dn,{onClick:s,children:o.clearButtonLabel},m);case"cancel":return b.jsx(dn,{onClick:l,children:o.cancelButtonLabel},m);case"accept":return b.jsx(dn,{onClick:a,children:o.okButtonLabel},m);case"today":return b.jsx(dn,{onClick:i,children:o.todayButtonLabel},m);case"next":return b.jsx(dn,{onClick:c,children:o.nextStepButtonLabel},m);case"nextOrAccept":return u?b.jsx(dn,{onClick:c,children:o.nextStepButtonLabel},m):b.jsx(dn,{onClick:a,children:o.okButtonLabel},m);default:return null}});return b.jsx(NO,$({},n,{children:d}))}process.env.NODE_ENV!=="production"&&(Rm.propTypes={actions:r.arrayOf(r.oneOf(["accept","cancel","clear","next","nextOrAccept","today"]).isRequired),disableSpacing:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const Nm=C.memo(Rm);process.env.NODE_ENV!=="production"&&(Nm.displayName="PickersActionBar");const An=C.createContext({});process.env.NODE_ENV!=="production"&&(An.displayName="ListContext");function MO(e){return Me("MuiList",e)}_e("MuiList",["root","padding","dense","subheader"]);const $O=e=>{const{classes:t,disablePadding:n,dense:o,subheader:s}=e;return Le({root:["root",!n&&"padding",o&&"dense",s&&"subheader"]},MO,t)},DO=ne("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Ml=C.forwardRef(function(t,n){const o=Ye({props:t,name:"MuiList"}),{children:s,className:i,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:u,...d}=o,m=C.useMemo(()=>({dense:l}),[l]),h={...o,component:a,dense:l,disablePadding:c},f=$O(h);return b.jsx(An.Provider,{value:m,children:b.jsxs(DO,{as:a,className:ue(f.root,i),ref:n,ownerState:h,...d,children:[u,s]})})});process.env.NODE_ENV!=="production"&&(Ml.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,dense:r.bool,disablePadding:r.bool,subheader:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function AO(e){return Me("MuiListItem",e)}_e("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const jO=_e("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function LO(e){return Me("MuiListItemSecondaryAction",e)}_e("MuiListItemSecondaryAction",["root","disableGutters"]);const VO=e=>{const{disableGutters:t,classes:n}=e;return Le({root:["root",t&&"disableGutters"]},LO,n)},FO=ne("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),$l=C.forwardRef(function(t,n){const o=Ye({props:t,name:"MuiListItemSecondaryAction"}),{className:s,...i}=o,a=C.useContext(An),l={...o,disableGutters:a.disableGutters},c=VO(l);return b.jsx(FO,{className:ue(c.root,s),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&($l.propTypes={children:r.node,classes:r.object,className:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});$l.muiName="ListItemSecondaryAction";const BO=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},zO=e=>{const{alignItems:t,classes:n,dense:o,disableGutters:s,disablePadding:i,divider:a,hasSecondaryAction:l}=e;return Le({root:["root",o&&"dense",!s&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},AO,n)},WO=ne("div",{name:"MuiListItem",slot:"Root",overridesResolver:BO})(Je(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${jO.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),UO=ne("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Mm=C.forwardRef(function(t,n){const o=Ye({props:t,name:"MuiListItem"}),{alignItems:s="center",children:i,className:a,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:m,...h}={},dense:f=!1,disableGutters:g=!1,disablePadding:p=!1,divider:y=!1,secondaryAction:x,slotProps:I={},slots:w={},...S}=o,E=C.useContext(An),T=C.useMemo(()=>({dense:f||E.dense||!1,alignItems:s,disableGutters:g}),[s,E.dense,f,g]),R=C.useRef(null),N=C.Children.toArray(i),L=N.length&&$o(N[N.length-1],["ListItemSecondaryAction"]),V={...o,alignItems:s,dense:T.dense,disableGutters:g,disablePadding:p,divider:y,hasSecondaryAction:L},A=zO(V),v=yt(R,n),P={slots:w,slotProps:I},[O,_]=Xe("secondaryAction",{elementType:$l,externalForwardedProps:P,ownerState:V,className:A.secondaryAction}),k=w.root||c.Root||WO,D=I.root||u.root||{},M={className:ue(A.root,D.className,a),...S};let z=l||"li";return L?(z=!M.component&&!l?"div":z,d==="li"&&(z==="li"?z="div":M.component==="li"&&(M.component="div")),b.jsx(An.Provider,{value:T,children:b.jsxs(UO,{as:d,className:ue(A.container,m),ref:v,ownerState:V,...h,children:[b.jsx(k,{...D,...!da(k)&&{as:z,ownerState:{...V,...D.ownerState}},...M,children:N}),N.pop()]})})):b.jsx(An.Provider,{value:T,children:b.jsxs(k,{...D,as:z,ref:v,...!da(k)&&{ownerState:{...V,...D.ownerState}},...M,children:[N,x&&b.jsx(O,{..._,children:x})]})})});process.env.NODE_ENV!=="production"&&(Mm.propTypes={alignItems:r.oneOf(["center","flex-start"]),children:Un(r.node,e=>{const t=C.Children.toArray(e.children);let n=-1;for(let o=t.length-1;o>=0;o-=1){const s=t[o];if($o(s,["ListItemSecondaryAction"])){n=o;break}}return n!==-1&&n!==t.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:r.object,className:r.string,component:r.elementType,components:r.shape({Root:r.elementType}),componentsProps:r.shape({root:r.object}),ContainerComponent:nl,ContainerProps:r.object,dense:r.bool,disableGutters:r.bool,disablePadding:r.bool,divider:r.bool,secondaryAction:r.node,slotProps:r.shape({root:r.object,secondaryAction:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType,secondaryAction:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const qO=ut(b.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 HO(e){return Me("MuiChip",e)}const Oe=_e("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"]),YO=e=>{const{classes:t,disabled:n,size:o,color:s,iconColor:i,onDelete:a,clickable:l,variant:c}=e,u={root:["root",c,n&&"disabled",`size${le(o)}`,`color${le(s)}`,l&&"clickable",l&&`clickableColor${le(s)}`,a&&"deletable",a&&`deletableColor${le(s)}`,`${c}${le(s)}`],label:["label",`label${le(o)}`],avatar:["avatar",`avatar${le(o)}`,`avatarColor${le(s)}`],icon:["icon",`icon${le(o)}`,`iconColor${le(i)}`],deleteIcon:["deleteIcon",`deleteIcon${le(o)}`,`deleteIconColor${le(s)}`,`deleteIcon${le(c)}Color${le(s)}`]};return Le(u,HO,t)},GO=ne("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:o,iconColor:s,clickable:i,onDelete:a,size:l,variant:c}=n;return[{[`& .${Oe.avatar}`]:t.avatar},{[`& .${Oe.avatar}`]:t[`avatar${le(l)}`]},{[`& .${Oe.avatar}`]:t[`avatarColor${le(o)}`]},{[`& .${Oe.icon}`]:t.icon},{[`& .${Oe.icon}`]:t[`icon${le(l)}`]},{[`& .${Oe.icon}`]:t[`iconColor${le(s)}`]},{[`& .${Oe.deleteIcon}`]:t.deleteIcon},{[`& .${Oe.deleteIcon}`]:t[`deleteIcon${le(l)}`]},{[`& .${Oe.deleteIcon}`]:t[`deleteIconColor${le(o)}`]},{[`& .${Oe.deleteIcon}`]:t[`deleteIcon${le(c)}Color${le(o)}`]},t.root,t[`size${le(l)}`],t[`color${le(o)}`],i&&t.clickable,i&&o!=="default"&&t[`clickableColor${le(o)}`],a&&t.deletable,a&&o!=="default"&&t[`deletableColor${le(o)}`],t[c],t[`${c}${le(o)}`]]}})(Je(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Oe.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Oe.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Oe.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Oe.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Oe.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Oe.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Oe.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Oe.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Oe.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Ct(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Oe.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Oe.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Oe.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Oe.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(Ct(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Oe.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${Oe.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Ct(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Oe.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Oe.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Oe.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Oe.avatar}`]:{marginLeft:4},[`& .${Oe.avatarSmall}`]:{marginLeft:2},[`& .${Oe.icon}`]:{marginLeft:4},[`& .${Oe.iconSmall}`]:{marginLeft:2},[`& .${Oe.deleteIcon}`]:{marginRight:5},[`& .${Oe.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Ct()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${Oe.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Oe.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Oe.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),KO=ne("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:o}=n;return[t.label,t[`label${le(o)}`]]}})({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 od(e){return e.key==="Backspace"||e.key==="Delete"}const $m=C.forwardRef(function(t,n){const o=Ye({props:t,name:"MuiChip"}),{avatar:s,className:i,clickable:a,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:m,label:h,onClick:f,onDelete:g,onKeyDown:p,onKeyUp:y,size:x="medium",variant:I="filled",tabIndex:w,skipFocusWhenDisabled:S=!1,slots:E={},slotProps:T={},...R}=o,N=C.useRef(null),L=yt(N,n),V=Z=>{Z.stopPropagation(),g(Z)},A=Z=>{Z.currentTarget===Z.target&&od(Z)&&Z.preventDefault(),p&&p(Z)},v=Z=>{Z.currentTarget===Z.target&&g&&od(Z)&&g(Z),y&&y(Z)},P=a!==!1&&f?!0:a,O=P||g?io:c||"div",_={...o,component:O,disabled:d,size:x,color:l,iconColor:C.isValidElement(m)&&m.props.color||l,onDelete:!!g,clickable:P,variant:I},k=YO(_),D=O===io?{component:c||"div",focusVisibleClassName:k.focusVisible,...g&&{disableRipple:!0}}:{};let M=null;g&&(M=u&&C.isValidElement(u)?C.cloneElement(u,{className:ue(u.props.className,k.deleteIcon),onClick:V}):b.jsx(qO,{className:k.deleteIcon,onClick:V}));let z=null;s&&C.isValidElement(s)&&(z=C.cloneElement(s,{className:ue(k.avatar,s.props.className)}));let j=null;m&&C.isValidElement(m)&&(j=C.cloneElement(m,{className:ue(k.icon,m.props.className)})),process.env.NODE_ENV!=="production"&&z&&j&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const B={slots:E,slotProps:T},[W,X]=Xe("root",{elementType:GO,externalForwardedProps:{...B,...R},ownerState:_,shouldForwardComponentProp:!0,ref:L,className:ue(k.root,i),additionalProps:{disabled:P&&d?!0:void 0,tabIndex:S&&d?-1:w,...D},getSlotProps:Z=>({...Z,onClick:te=>{var H;(H=Z.onClick)==null||H.call(Z,te),f==null||f(te)},onKeyDown:te=>{var H;(H=Z.onKeyDown)==null||H.call(Z,te),A(te)},onKeyUp:te=>{var H;(H=Z.onKeyUp)==null||H.call(Z,te),v(te)}})}),[Q,G]=Xe("label",{elementType:KO,externalForwardedProps:B,ownerState:_,className:k.label});return b.jsxs(W,{as:O,...X,children:[z||j,b.jsx(Q,{...G,children:h}),M]})});process.env.NODE_ENV!=="production"&&($m.propTypes={avatar:r.element,children:LC,classes:r.object,className:r.string,clickable:r.bool,color:r.oneOfType([r.oneOf(["default","primary","secondary","error","info","success","warning"]),r.string]),component:r.elementType,deleteIcon:r.element,disabled:r.bool,icon:r.element,label:r.node,onClick:r.func,onDelete:r.func,onKeyDown:r.func,onKeyUp:r.func,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),skipFocusWhenDisabled:r.bool,slotProps:r.shape({label:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({label:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tabIndex:r.number,variant:r.oneOfType([r.oneOf(["filled","outlined"]),r.string])});const Dm=320,Am=336,jm=232,XO=48,QO=["items","changeImportance"],ZO=["getValue"],JO=ne(Ml,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function Lm(e){const{items:t,changeImportance:n="accept"}=e,o=Ce(e,QO),{setValue:s}=p0(),i=u0();if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:c}=l,u=Ce(l,ZO);const d=c({isValid:i});return $({},u,{label:u.label,onClick:()=>{s(d,{changeImportance:n,shortcut:u,source:"view"})},disabled:!i(d)})});return b.jsx(JO,$({dense:!0,sx:[{maxHeight:Am,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(l=>b.jsx(Mm,{children:b.jsx($m,$({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(Lm.propTypes={changeImportance:r.oneOf(["accept","set"]),className:r.string,component:r.elementType,dense:r.bool,disablePadding:r.bool,items:r.arrayOf(r.shape({getValue:r.func.isRequired,id:r.string,label:r.string.isRequired})),style:r.object,subheader:r.node,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const ek=["ownerState"];function tk(e){return e.view!==null}const nk=(e,t)=>{const{pickerOrientation:n}=t;return at({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},km,e)},ok=e=>{const{ownerState:t,defaultActionBarActions:n}=vt(),{view:o}=Jo(),s=Wn(),{children:i,slots:a,slotProps:l,classes:c}=e,u=C.useMemo(()=>$({},t,{layoutDirection:s?"rtl":"ltr",hasShortcuts:!1}),[t,s]),d=nk(c,u),m=(a==null?void 0:a.actionBar)??Nm,h=He({elementType:m,externalSlotProps:l==null?void 0:l.actionBar,additionalProps:{actions:n},className:d.actionBar,ownerState:u}),f=Ce(h,ek),g=b.jsx(m,$({},f)),p=a==null?void 0:a.toolbar,y=He({elementType:p,externalSlotProps:l==null?void 0:l.toolbar,className:d.toolbar,ownerState:u}),x=tk(y)&&p?b.jsx(p,$({},y)):null,I=i,w=a==null?void 0:a.tabs,S=o&&w?b.jsx(w,$({className:d.tabs},l==null?void 0:l.tabs)):null,E=(a==null?void 0:a.shortcuts)??Lm,T=He({elementType:E,externalSlotProps:l==null?void 0:l.shortcuts,className:d.shortcuts,ownerState:u}),R=Array.isArray(T==null?void 0:T.items)&&T.items.length>0,N=o&&E?b.jsx(E,$({},T)):null;return{toolbar:x,content:I,tabs:S,actionBar:g,shortcuts:N,ownerState:$({},u,{hasShortcuts:R})}},rk=["sx","className","classes","children","slots","slotProps"],sk=(e,t)=>{const{pickerOrientation:n}=t;return at({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},km,e)},ik=ne("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Zn.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape",hasShortcuts:!1},style:{[`& .${Zn.toolbar}`]:{gridColumn:1,gridRow:"1 / 3"}}},{props:{pickerOrientation:"landscape",hasShortcuts:!0},style:{[`& .${Zn.toolbar}`]:{gridColumn:"2 / 4",gridRow:1,maxWidth:"max-content"},[`& .${Zn.shortcuts}`]:{gridColumn:1,gridRow:2}}},{props:{pickerOrientation:"portrait"},style:{[`& .${Zn.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Zn.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{hasShortcuts:!0,layoutDirection:"rtl"},style:{[`& .${Zn.shortcuts}`]:{gridColumn:4}}}]}),ak=ne("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),Ri=C.forwardRef(function(t,n){const o=qe({props:t,name:"MuiPickersLayout"}),{toolbar:s,content:i,tabs:a,actionBar:l,shortcuts:c,ownerState:u}=ok(o),{orientation:d,variant:m}=Jo(),{sx:h,className:f,classes:g}=o,p=Ce(o,rk),y=sk(g,u);return b.jsxs(ik,$({ref:n,sx:h,className:ue(y.root,f),ownerState:u},p,{children:[d==="landscape"?c:s,d==="landscape"?s:c,b.jsx(ak,{className:y.contentWrapper,ownerState:u,children:m==="desktop"?b.jsxs(C.Fragment,{children:[i,a]}):b.jsxs(C.Fragment,{children:[a,i]})}),l]}))});process.env.NODE_ENV!=="production"&&(Ri.displayName="PickersLayout");process.env.NODE_ENV!=="production"&&(Ri.propTypes={children:r.node,classes:r.object,className:r.string,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function Vm(e){const{steps:t}=e;return TO({steps:t,isViewMatchingStep:(n,o)=>o.views==null||o.views.includes(n),onStepChange:({step:n,defaultView:o,setView:s,view:i,views:a})=>{const l=n.views==null?o:n.views.find(c=>a.includes(c));l!==i&&s(l)}})}const lk=["props","steps"],ck=["ownerState"],uk=e=>{var T;let{props:t,steps:n}=e,o=Ce(e,lk);const{slots:s,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=Vm({steps:n}),{providerProps:d,renderCurrentView:m,ownerState:h}=Om($({},o,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"desktop",getStepNavigation:u})),f=d.privateContextValue.labelId,g=((T=i==null?void 0:i.toolbar)==null?void 0:T.hidden)??!1,p=s.field,y=He({elementType:p,externalSlotProps:i==null?void 0:i.field,externalForwardedProps:Bf(t),additionalProps:$({},g&&{id:f}),ownerState:h}),x=Ce(y,ck),I=s.layout??Ri;let w=f;g&&(a?w=`${f}-label`:w=void 0);const S=$({},i,{toolbar:$({},i==null?void 0:i.toolbar,{titleId:f}),popper:$({"aria-labelledby":w},i==null?void 0:i.popper)}),E=()=>b.jsxs(Hf,$({},d,{children:[b.jsx(p,$({},x,{slots:$({},s,x.slots),slotProps:$({},S,x.slotProps),inputRef:l})),b.jsx(xO,{slots:s,slotProps:S,children:b.jsx(I,$({},S==null?void 0:S.layout,{slots:s,slotProps:S,children:m()}))})]}));return process.env.NODE_ENV!=="production"&&(E.displayName="renderPicker"),{renderPicker:E}};function dk(e){return ct("MuiPickersArrowSwitcher",e)}dt("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const pk=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],fk=["ownerState"],mk=["ownerState"],hk=ne("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),gk=ne("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),rd=ne(ao,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),bk=e=>at({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},dk,e),Fm=C.forwardRef(function(t,n){const o=Wn(),s=qe({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:l,slotProps:c,isNextDisabled:u,isNextHidden:d,onGoToNext:m,nextLabel:h,isPreviousDisabled:f,isPreviousHidden:g,onGoToPrevious:p,previousLabel:y,labelId:x,classes:I}=s,w=Ce(s,pk),{ownerState:S}=vt(),E=bk(I),T={isDisabled:u,isHidden:d,goTo:m,label:h},R={isDisabled:f,isHidden:g,goTo:p,label:y},N=(l==null?void 0:l.previousIconButton)??rd,L=He({elementType:N,externalSlotProps:c==null?void 0:c.previousIconButton,additionalProps:{size:"medium",title:R.label,"aria-label":R.label,disabled:R.isDisabled,edge:"end",onClick:R.goTo},ownerState:$({},S,{isButtonHidden:R.isHidden??!1}),className:ue(E.button,E.previousIconButton)}),V=(l==null?void 0:l.nextIconButton)??rd,A=He({elementType:V,externalSlotProps:c==null?void 0:c.nextIconButton,additionalProps:{size:"medium",title:T.label,"aria-label":T.label,disabled:T.isDisabled,edge:"start",onClick:T.goTo},ownerState:$({},S,{isButtonHidden:T.isHidden??!1}),className:ue(E.button,E.nextIconButton)}),v=(l==null?void 0:l.leftArrowIcon)??Y0,P=He({elementType:v,externalSlotProps:c==null?void 0:c.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:S,className:E.leftArrowIcon}),O=Ce(P,fk),_=(l==null?void 0:l.rightArrowIcon)??G0,k=He({elementType:_,externalSlotProps:c==null?void 0:c.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:S,className:E.rightArrowIcon}),D=Ce(k,mk);return b.jsxs(hk,$({ref:n,className:ue(E.root,a),ownerState:S},w,{children:[b.jsx(N,$({},L,{children:o?b.jsx(_,$({},D)):b.jsx(v,$({},O))})),i?b.jsx(uo,{variant:"subtitle1",component:"span",id:x,children:i}):b.jsx(gk,{className:E.spacer,ownerState:S}),b.jsx(V,$({},A,{children:o?b.jsx(v,$({},O)):b.jsx(_,$({},D))}))]}))});process.env.NODE_ENV!=="production"&&(Fm.displayName="PickersArrowSwitcher");const Dl=ne("div",{slot:"internal",shouldForwardProp:void 0})({overflow:"hidden",width:Dm,maxHeight:Am,display:"flex",flexDirection:"column",margin:"0 auto"});function yk(e){return ct("MuiTimeClock",e)}dt("MuiTimeClock",["root","arrowSwitcher"]);const Qo=220,gn=36,Lr={x:Qo/2,y:Qo/2},Bm={x:Lr.x,y:0},vk=Bm.x-Lr.x,xk=Bm.y-Lr.y,Sk=e=>e*(180/Math.PI),zm=(e,t,n)=>{const o=t-Lr.x,s=n-Lr.y,i=Math.atan2(vk,xk)-Math.atan2(o,s);let a=Sk(i);a=Math.round(a/e)*e,a%=360;const l=Math.floor(a/e)||0,c=o**2+s**2,u=Math.sqrt(c);return{value:l,distance:u}},Ck=(e,t,n=1)=>{const o=n*6;let{value:s}=zm(o,e,t);return s=s*n%60,s},wk=(e,t,n)=>{const{value:o,distance:s}=zm(30,e,t);let i=o||12;return n?i%=12:s<Qo/2-gn&&(i+=12,i%=24),i};function Tk(e){return ct("MuiClockPointer",e)}dt("MuiClockPointer",["root","thumb"]);const Ik=["className","classes","isBetweenTwoClockValues","isInner","type","viewValue"],Ek=e=>at({root:["root"],thumb:["thumb"]},Tk,e),_k=ne("div",{name:"MuiClockPointer",slot:"Root"})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px",variants:[{props:{isClockPointerAnimated:!0},style:{transition:e.transitions.create(["transform","height"])}}]})),Ok=ne("div",{name:"MuiClockPointer",slot:"Thumb"})(({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${gn/2}px)`,border:`${(gn-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box",variants:[{props:{isClockPointerBetweenTwoValues:!1},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}));function kk(e){const t=qe({props:e,name:"MuiClockPointer"}),{className:n,classes:o,isBetweenTwoClockValues:s,isInner:i,type:a,viewValue:l}=t,c=Ce(t,Ik),u=C.useRef(a);C.useEffect(()=>{u.current=a},[a]);const{ownerState:d}=vt(),m=$({},d,{isClockPointerAnimated:u.current!==a,isClockPointerBetweenTwoValues:s}),h=Ek(o),f=()=>{let p=360/(a==="hours"?12:60)*l;return a==="hours"&&l>12&&(p-=360),{height:Math.round((i?.26:.4)*Qo),transform:`rotateZ(${p}deg)`}};return b.jsx(_k,$({style:f(),className:ue(h.root,n),ownerState:m},c,{children:b.jsx(Ok,{ownerState:m,className:h.thumb})}))}function Pk(e){return ct("MuiClock",e)}dt("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText","selected"]);const Rk=(e,t)=>{const n={root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton",t.clockMeridiemMode==="am"&&"selected"],pmButton:["pmButton",t.clockMeridiemMode==="pm"&&"selected"],meridiemText:["meridiemText"]};return at(n,Pk,e)},Nk=ne("div",{name:"MuiClock",slot:"Root"})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),Mk=ne("div",{name:"MuiClock",slot:"Clock"})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),$k=ne("div",{name:"MuiClock",slot:"Wrapper"})({"&:focus":{outline:"none"}}),Dk=ne("div",{name:"MuiClock",slot:"SquareMask"})({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none",variants:[{props:{isClockDisabled:!1},style:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}}]}),Ak=ne("div",{name:"MuiClock",slot:"Pin"})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),Wm=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:gn,variants:[{props:{clockMeridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),jk=ne(ao,{name:"MuiClock",slot:"AmButton"})(({theme:e})=>$({},Wm(e,"am"),{position:"absolute",left:8})),Lk=ne(ao,{name:"MuiClock",slot:"PmButton"})(({theme:e})=>$({},Wm(e,"pm"),{position:"absolute",right:8})),sd=ne(uo,{name:"MuiClock",slot:"MeridiemText"})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function Vk(e){const t=qe({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:o,autoFocus:s,children:i,value:a,handleMeridiemChange:l,isTimeDisabled:c,meridiemMode:u,minutesStep:d=1,onChange:m,selectedId:h,type:f,viewValue:g,viewRange:[p,y],disabled:x=!1,readOnly:I,className:w,classes:S}=t,E=lt(),T=rn(),{ownerState:R}=vt(),N=$({},R,{isClockDisabled:x,clockMeridiemMode:u}),L=C.useRef(!1),V=C.useRef(null),A=C.useRef(null),v=C.useRef(void 0),P=Rk(S,N),O=c(g,f),_=!n&&f==="hours"&&(g<1||g>12),k=(F,U)=>{x||I||c(F,f)||m(F,U)},D=(F,U)=>{const ae=A.current;if(!ae)return;const K=ae.getBoundingClientRect(),ce=F.clientX-K.left,oe=F.clientY-K.top,be=f==="seconds"||f==="minutes"?Ck(ce,oe,d):wk(ce,oe,!!n);k(be,U)},M=()=>{var F;L.current=!1,V.current=null,(F=v.current)==null||F.call(v)},z=xe(F=>{F.pointerId===V.current&&(F.preventDefault(),D(F,"shallow"))}),j=xe(F=>{F.pointerId===V.current&&(M(),D(F,"finish"))}),B=xe(F=>{F.pointerId===V.current&&M()}),W=F=>{if(F.button>0||F.isPrimary===!1||x||I)return;M(),L.current=!0,V.current=F.pointerId;const U=Ao(A.current);U.addEventListener("pointermove",z),U.addEventListener("pointerup",j),U.addEventListener("pointercancel",B),v.current=()=>{U.removeEventListener("pointermove",z),U.removeEventListener("pointerup",j),U.removeEventListener("pointercancel",B),v.current=void 0},D(F.nativeEvent,"shallow")},X=f==="hours"?!1:g%5!==0,Q=f==="minutes"?d:1,G=C.useRef(null);Cn(()=>{s&&G.current.focus()},[s]),C.useEffect(()=>()=>{var F;return(F=v.current)==null?void 0:F.call(v)},[]);const Z=F=>Math.max(p,Math.min(y,F)),te=F=>(F+(y+1))%(y+1),H=F=>{if(!L.current)switch(F.key){case"Home":k(p,"partial"),F.preventDefault();break;case"End":k(y,"partial"),F.preventDefault();break;case"ArrowUp":k(te(g+Q),"partial"),F.preventDefault();break;case"ArrowDown":k(te(g-Q),"partial"),F.preventDefault();break;case"PageUp":k(Z(g+5),"partial"),F.preventDefault();break;case"PageDown":k(Z(g-5),"partial"),F.preventDefault();break;case"Enter":case" ":k(g,"finish"),F.preventDefault();break}};return b.jsxs(Nk,{className:ue(P.root,w),children:[b.jsxs(Mk,{className:P.clock,children:[b.jsx(Dk,{ref:A,onPointerDown:W,ownerState:N,className:P.squareMask}),!O&&b.jsxs(C.Fragment,{children:[b.jsx(Ak,{className:P.pin}),a!=null&&b.jsx(kk,{type:f,viewValue:g,isInner:_,isBetweenTwoClockValues:X})]}),b.jsx($k,{"aria-activedescendant":h,"aria-label":T.clockLabelText(f,a==null?null:E.format(a,n?"fullTime12h":"fullTime24h")),ref:G,role:"listbox",onKeyDown:H,tabIndex:0,className:P.wrapper,children:i})]}),n&&o&&b.jsxs(C.Fragment,{children:[b.jsx(jk,{onClick:I?void 0:()=>l("am"),disabled:x||u===null,ownerState:N,className:P.amButton,title:$n(E,"am"),children:b.jsx(sd,{variant:"caption",className:P.meridiemText,children:$n(E,"am")})}),b.jsx(Lk,{disabled:x||u===null,onClick:I?void 0:()=>l("pm"),ownerState:N,className:P.pmButton,title:$n(E,"pm"),children:b.jsx(sd,{variant:"caption",className:P.meridiemText,children:$n(E,"pm")})})]})]})}function Fk(e){return ct("MuiClockNumber",e)}const us=dt("MuiClockNumber",["root","selected","disabled"]),Bk=["className","classes","disabled","index","inner","label","selected"],zk=(e,t)=>{const n={root:["root",t.isClockNumberSelected&&"selected",t.isClockNumberDisabled&&"disabled"]};return at(n,Fk,e)},Wk=ne("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${us.disabled}`]:t.disabled},{[`&.${us.selected}`]:t.selected}]})(({theme:e})=>({height:gn,width:gn,position:"absolute",left:`calc((100% - ${gn}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${us.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${us.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled},variants:[{props:{isClockNumberInInnerRing:!0},style:$({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]}));function Um(e){const t=qe({props:e,name:"MuiClockNumber"}),{className:n,classes:o,disabled:s,index:i,inner:a,label:l,selected:c}=t,u=Ce(t,Bk),{ownerState:d}=vt(),m=$({},d,{isClockNumberInInnerRing:a,isClockNumberSelected:c,isClockNumberDisabled:s}),h=zk(o,m),f=i%12/12*Math.PI*2-Math.PI/2,g=(Qo-gn-2)/2*(a?.65:1),p=Math.round(Math.cos(f)*g),y=Math.round(Math.sin(f)*g);return b.jsx(Wk,$({className:ue(h.root,n),"aria-disabled":s?!0:void 0,"aria-selected":c?!0:void 0,role:"option",style:{transform:`translate(${p}px, ${y+(Qo-gn)/2}px`},ownerState:m},u,{children:l}))}const Uk=({ampm:e,value:t,getClockNumberText:n,isDisabled:o,selectedId:s,adapter:i})=>{const a=t?i.getHours(t):null,l=[],c=e?1:0,u=e?12:23,d=m=>a===null?!1:e?m===12?a===12||a===0:a===m||a-12===m:a===m;for(let m=c;m<=u;m+=1){let h=m.toString();m===0&&(h="00");const f=!e&&(m===0||m>12);h=i.formatNumber(h);const g=d(m);l.push(b.jsx(Um,{id:g?s:void 0,index:m,inner:f,selected:g,disabled:o(m),label:h,"aria-label":n(h)},m))}return l},id=({adapter:e,value:t,isDisabled:n,getClockNumberText:o,selectedId:s})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([a,l],c)=>{const u=a===t;return b.jsx(Um,{label:l,id:u?s:void 0,index:c+1,inner:!1,disabled:n(a),selected:u,"aria-label":o(l)},a)})},Al=({value:e,referenceDate:t,adapter:n,props:o,timezone:s})=>{const i=C.useMemo(()=>qn.getInitialReferenceValue({value:e,adapter:n,props:o,referenceDate:t,granularity:Rn.day,timezone:s,getTodayDate:()=>il(n,s,"date")}),[t,s]);return e??i},qk=["ampm","ampmInClock","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","timezone"],Hk=e=>at({root:["root"],arrowSwitcher:["arrowSwitcher"]},yk,e),Yk=ne(Dl,{name:"MuiTimeClock",slot:"Root"})({display:"flex",flexDirection:"column",position:"relative"}),Gk=ne(Fm,{name:"MuiTimeClock",slot:"ArrowSwitcher"})({position:"absolute",right:12,top:15}),Kk=["hours","minutes"],jl=C.forwardRef(function(t,n){const o=lt(),s=qe({props:t,name:"MuiTimeClock"}),{ampm:i=o.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:l,slots:c,slotProps:u,value:d,defaultValue:m,referenceDate:h,disableIgnoringDatePartForTimeValidation:f=!1,maxTime:g,minTime:p,disableFuture:y,disablePast:x,minutesStep:I=1,shouldDisableTime:w,showViewSwitcher:S,onChange:E,view:T,views:R=Kk,openTo:N,onViewChange:L,focusedView:V,onFocusedViewChange:A,className:v,classes:P,disabled:O,readOnly:_,timezone:k}=s,D=Ce(s,qk),{value:M,handleValueChange:z,timezone:j}=Gr({name:"TimeClock",timezone:k,value:d,defaultValue:m,referenceDate:h,onChange:E,valueManager:qn}),B=Al({value:M,referenceDate:h,adapter:o,props:s,timezone:j}),W=rn(),X=bl(j),Q=vl(),{ownerState:G}=vt(),{view:Z,setView:te,previousView:H,nextView:F,setValueAndGoToNextView:U}=Pi({view:T,views:R,openTo:N,onViewChange:L,onChange:z,focusedView:V,onFocusedViewChange:A}),{meridiemMode:ae,handleMeridiemChange:K}=Il(B,i,U),ce=C.useCallback((he,re)=>{const J=Yr(f,o),ge=re==="hours"||re==="minutes"&&R.includes("seconds"),ie=({start:se,end:Te})=>!(p&&J(p,Te)||g&&J(se,g)||y&&J(se,X)||x&&J(X,ge?Te:se)),fe=(se,Te=1)=>{if(se%Te!==0)return!1;if(w)switch(re){case"hours":return!w(o.setHours(B,se),"hours");case"minutes":return!w(o.setMinutes(B,se),"minutes");case"seconds":return!w(o.setSeconds(B,se),"seconds");default:return!1}return!0};switch(re){case"hours":{const se=Mr(he,ae,i),Te=o.setHours(B,se);if(o.getHours(Te)!==se)return!0;const ke=o.setSeconds(o.setMinutes(Te,0),0),ve=o.setSeconds(o.setMinutes(Te,59),59);return!ie({start:ke,end:ve})||!fe(se)}case"minutes":{const se=o.setMinutes(B,he),Te=o.setSeconds(se,0),ke=o.setSeconds(se,59);return!ie({start:Te,end:ke})||!fe(he,I)}case"seconds":{const se=o.setSeconds(B,he);return!ie({start:se,end:se})||!fe(he)}default:throw new Error("not supported")}},[i,B,f,g,ae,p,I,w,o,y,x,X,R]),oe=C.useMemo(()=>{switch(Z){case"hours":{const he=(ge,ie)=>{const fe=Mr(ge,ae,i);U(o.setHours(B,fe),ie,"hours")},re=o.getHours(B);let J;return i?re>12?J=[12,23]:J=[0,11]:J=[0,23],{onChange:he,viewValue:re,children:Uk({value:M,adapter:o,ampm:i,getClockNumberText:W.hoursClockNumberText,isDisabled:ge=>O||ce(ge,"hours"),selectedId:Q}),viewRange:J}}case"minutes":{const he=o.getMinutes(B);return{viewValue:he,onChange:(J,ge)=>{U(o.setMinutes(B,J),ge,"minutes")},children:id({adapter:o,value:he,getClockNumberText:W.minutesClockNumberText,isDisabled:J=>O||ce(J,"minutes"),selectedId:Q}),viewRange:[0,59]}}case"seconds":{const he=o.getSeconds(B);return{viewValue:he,onChange:(J,ge)=>{U(o.setSeconds(B,J),ge,"seconds")},children:id({adapter:o,value:he,getClockNumberText:W.secondsClockNumberText,isDisabled:J=>O||ce(J,"seconds"),selectedId:Q}),viewRange:[0,59]}}default:throw new Error(process.env.NODE_ENV!=="production"?"MUI X: You must provide the type for ClockView":Re(147))}},[Z,o,M,i,W.hoursClockNumberText,W.minutesClockNumberText,W.secondsClockNumberText,ae,U,B,ce,Q,O]),be=Hk(P);return b.jsxs(Yk,$({ref:n,className:ue(be.root,v),ownerState:G},D,{children:[b.jsx(Vk,$({autoFocus:l??!!V,ampmInClock:a&&R.includes("hours"),value:M,type:Z,ampm:i,minutesStep:I,isTimeDisabled:ce,meridiemMode:ae,handleMeridiemChange:K,selectedId:Q,disabled:O,readOnly:_},oe)),S&&b.jsx(Gk,{className:be.arrowSwitcher,slots:c,slotProps:u,onGoToPrevious:()=>te(H),isPreviousDisabled:!H,previousLabel:W.openPreviousView,onGoToNext:()=>te(F),isNextDisabled:!F,nextLabel:W.openNextView,ownerState:G})]}))});process.env.NODE_ENV!=="production"&&(jl.displayName="TimeClock");process.env.NODE_ENV!=="production"&&(jl.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,classes:r.object,className:r.string,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,focusedView:r.oneOf(["hours","minutes","seconds"]),maxTime:r.object,minTime:r.object,minutesStep:r.number,onChange:r.func,onFocusedViewChange:r.func,onViewChange:r.func,openTo:r.oneOf(["hours","minutes","seconds"]),readOnly:r.bool,referenceDate:r.object,shouldDisableTime:r.func,showViewSwitcher:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,view:r.oneOf(["hours","minutes","seconds"]),views:r.arrayOf(r.oneOf(["hours","minutes","seconds"]).isRequired)});const ad=_e("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),ld=_e("MuiListItemIcon",["root","alignItemsFlexStart"]),cd=_e("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Xk(e){return Me("MuiMenuItem",e)}const ur=_e("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);function qm(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Hi(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function ud(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Hm(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function dr(e,t,n,o,s,i){let a=!1,l=s(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const c=o?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Hm(l,i)||c)l=s(e,l,n);else return l.focus(),!0}return!1}const Ll=C.forwardRef(function(t,n){const{actions:o,autoFocus:s=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:m="selectedMenu",...h}=t,f=C.useRef(null),g=C.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ln(()=>{s&&f.current.focus()},[s]),C.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(w,{direction:S})=>{const E=!f.current.style.width;if(w.clientHeight<f.current.clientHeight&&E){const T=`${qm(Nr(w))}px`;f.current.style[S==="rtl"?"paddingLeft":"paddingRight"]=T,f.current.style.width=`calc(100% + ${T})`}return f.current}}),[]);const p=w=>{const S=f.current,E=w.key;if(w.ctrlKey||w.metaKey||w.altKey){d&&d(w);return}const R=br(tn(S));if(E==="ArrowDown")w.preventDefault(),dr(S,R,u,c,Hi);else if(E==="ArrowUp")w.preventDefault(),dr(S,R,u,c,ud);else if(E==="Home")w.preventDefault(),dr(S,null,u,c,Hi);else if(E==="End")w.preventDefault(),dr(S,null,u,c,ud);else if(E.length===1){const N=g.current,L=E.toLowerCase(),V=performance.now();N.keys.length>0&&(V-N.lastTime>500?(N.keys=[],N.repeating=!0,N.previousKeyMatched=!0):N.repeating&&L!==N.keys[0]&&(N.repeating=!1)),N.lastTime=V,N.keys.push(L);const A=R&&!N.repeating&&Hm(R,N);N.previousKeyMatched&&(A||dr(S,R,!1,c,Hi,N))?w.preventDefault():N.previousKeyMatched=!1}d&&d(w)},y=yt(f,n);let x=-1;C.Children.forEach(a,(w,S)=>{if(!C.isValidElement(w)){x===S&&(x+=1,x>=a.length&&(x=-1));return}process.env.NODE_ENV!=="production"&&Dw.isFragment(w)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
221
- `)),w.props.disabled||(m==="selectedMenu"&&w.props.selected||x===-1)&&(x=S),x===S&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(x+=1,x>=a.length&&(x=-1))});const I=C.Children.map(a,(w,S)=>{if(S===x){const E={};return i&&(E.autoFocus=!0),w.props.tabIndex===void 0&&m==="selectedMenu"&&(E.tabIndex=0),C.cloneElement(w,E)}return w});return b.jsx(Ml,{role:"menu",ref:y,className:l,onKeyDown:p,tabIndex:s?0:-1,...h,children:I})});process.env.NODE_ENV!=="production"&&(Ll.propTypes={autoFocus:r.bool,autoFocusItem:r.bool,children:r.node,className:r.string,disabledItemsFocusable:r.bool,disableListWrap:r.bool,onKeyDown:r.func,variant:r.oneOf(["menu","selectedMenu"])});function Qk(e){const t=tn(e);return t.body===e?Nr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Er(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function dd(e){return parseFloat(Nr(e).getComputedStyle(e).paddingRight)||0}function Zk(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function pd(e,t,n,o,s){const i=[t,n,...o];[].forEach.call(e.children,a=>{const l=!i.includes(a),c=!Zk(a);l&&c&&Er(a,s)})}function Yi(e,t){let n=-1;return e.some((o,s)=>t(o)?(n=s,!0):!1),n}function Jk(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(Qk(o)){const a=qm(Nr(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${dd(o)+a}px`;const l=tn(o).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${dd(c)+a}px`})}let i;if(o.parentNode instanceof DocumentFragment)i=tn(o).body;else{const a=o.parentElement,l=Nr(o);i=(a==null?void 0:a.nodeName)==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:o}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:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function e1(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class t1{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&Er(t.modalRef,!1);const s=e1(n);pd(n,t.mount,t.modalRef,s,!0);const i=Yi(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:s}),o)}mount(t,n){const o=Yi(this.containers,i=>i.modals.includes(t)),s=this.containers[o];s.restore||(s.restore=Jk(s,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const s=Yi(this.containers,a=>a.modals.includes(t)),i=this.containers[s];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(o,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Er(t.modalRef,n),pd(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(s,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Er(a.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function n1(e){return Me("MuiBackdrop",e)}_e("MuiBackdrop",["root","invisible"]);const o1=e=>{const{classes:t,invisible:n}=e;return Le({root:["root",n&&"invisible"]},n1,t)},r1=ne("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.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"}}]}),Vl=C.forwardRef(function(t,n){const o=Ye({props:t,name:"MuiBackdrop"}),{children:s,className:i,component:a="div",invisible:l=!1,open:c,components:u={},componentsProps:d={},slotProps:m={},slots:h={},TransitionComponent:f,transitionDuration:g,...p}=o,y={...o,component:a,invisible:l},x=o1(y),I={transition:f,root:u.Root,...h},w={...d,...m},S={component:a,slots:I,slotProps:w},[E,T]=Xe("root",{elementType:r1,externalForwardedProps:S,className:ue(x.root,i),ownerState:y}),[R,N]=Xe("transition",{elementType:qo,externalForwardedProps:S,ownerState:y});return b.jsx(R,{in:c,timeout:g,...p,...N,children:b.jsx(E,{"aria-hidden":!0,...T,ref:n,children:s})})});process.env.NODE_ENV!=="production"&&(Vl.propTypes={children:r.node,classes:r.object,className:r.string,component:r.elementType,components:r.shape({Root:r.elementType}),componentsProps:r.shape({root:r.object}),invisible:r.bool,open:r.bool.isRequired,slotProps:r.shape({root:r.oneOfType([r.func,r.object]),transition:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType,transition:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),TransitionComponent:r.elementType,transitionDuration:r.oneOfType([r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})])});function s1(e){return typeof e=="function"?e():e}function i1(e){return e?e.props.hasOwnProperty("in"):!1}const fd=()=>{},ds=new t1;function a1(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:s=!1,onTransitionEnter:i,onTransitionExited:a,children:l,onClose:c,open:u,rootRef:d}=e,m=C.useRef({}),h=C.useRef(null),f=C.useRef(null),g=yt(f,d),[p,y]=C.useState(!u),x=i1(l);let I=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(I=!1);const w=()=>tn(h.current),S=()=>(m.current.modalRef=f.current,m.current.mount=h.current,m.current),E=()=>{ds.mount(S(),{disableScrollLock:o}),f.current&&(f.current.scrollTop=0)},T=Do(()=>{const _=s1(t)||w().body;ds.add(S(),_),f.current&&E()}),R=()=>ds.isTopModal(S()),N=Do(_=>{h.current=_,_&&(u&&R()?E():f.current&&Er(f.current,I))}),L=C.useCallback(()=>{ds.remove(S(),I)},[I]);C.useEffect(()=>()=>{L()},[L]),C.useEffect(()=>{u?T():(!x||!s)&&L()},[u,L,x,s,T]);const V=_=>k=>{var D;(D=_.onKeyDown)==null||D.call(_,k),!(k.key!=="Escape"||k.which===229||!R())&&(n||(k.stopPropagation(),c&&c(k,"escapeKeyDown")))},A=_=>k=>{var D;(D=_.onClick)==null||D.call(_,k),k.target===k.currentTarget&&c&&c(k,"backdropClick")};return{getRootProps:(_={})=>{const k=yf(e);delete k.onTransitionEnter,delete k.onTransitionExited;const D={...k,..._};return{role:"presentation",...D,onKeyDown:V(D),ref:g}},getBackdropProps:(_={})=>{const k=_;return{"aria-hidden":!0,...k,onClick:A(k),open:u}},getTransitionProps:()=>{const _=()=>{y(!1),i&&i()},k=()=>{y(!0),a&&a(),s&&L()};return{onEnter:kc(_,(l==null?void 0:l.props.onEnter)??fd),onExited:kc(k,(l==null?void 0:l.props.onExited)??fd)}},rootRef:g,portalRef:N,isTopModal:R,exited:p,hasTransition:x}}function l1(e){return Me("MuiModal",e)}_e("MuiModal",["root","hidden","backdrop"]);const c1=e=>{const{open:t,exited:n,classes:o}=e;return Le({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},l1,o)},u1=ne("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Je(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),d1=ne(Vl,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Ym=C.forwardRef(function(t,n){const o=Ye({name:"MuiModal",props:t}),{BackdropComponent:s=d1,BackdropProps:i,classes:a,className:l,closeAfterTransition:c=!1,children:u,container:d,component:m,components:h={},componentsProps:f={},disableAutoFocus:g=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:y=!1,disablePortal:x=!1,disableRestoreFocus:I=!1,disableScrollLock:w=!1,hideBackdrop:S=!1,keepMounted:E=!1,onClose:T,onTransitionEnter:R,onTransitionExited:N,open:L,slotProps:V={},slots:A={},theme:v,...P}=o,O={...o,closeAfterTransition:c,disableAutoFocus:g,disableEnforceFocus:p,disableEscapeKeyDown:y,disablePortal:x,disableRestoreFocus:I,disableScrollLock:w,hideBackdrop:S,keepMounted:E},{getRootProps:_,getBackdropProps:k,getTransitionProps:D,portalRef:M,isTopModal:z,exited:j,hasTransition:B}=a1({...O,rootRef:n}),W={...O,exited:j},X=c1(W),Q={};if(u.props.tabIndex===void 0&&(Q.tabIndex="-1"),B){const{onEnter:U,onExited:ae}=D();Q.onEnter=U,Q.onExited=ae}const G={slots:{root:h.Root,backdrop:h.Backdrop,...A},slotProps:{...f,...V}},[Z,te]=Xe("root",{ref:n,elementType:u1,externalForwardedProps:{...G,...P,component:m},getSlotProps:_,ownerState:W,className:ue(l,X==null?void 0:X.root,!W.open&&W.exited&&(X==null?void 0:X.hidden))}),[H,F]=Xe("backdrop",{ref:i==null?void 0:i.ref,elementType:s,externalForwardedProps:G,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:U=>k({...U,onClick:ae=>{U!=null&&U.onClick&&U.onClick(ae)}}),className:ue(i==null?void 0:i.className,X==null?void 0:X.backdrop),ownerState:W});return!E&&!L&&(!B||j)?null:b.jsx(Ar,{ref:M,container:d,disablePortal:x,children:b.jsxs(Z,{...te,children:[!S&&s?b.jsx(H,{...F}):null,b.jsx(jr,{disableEnforceFocus:p,disableAutoFocus:g,disableRestoreFocus:I,isEnabled:z,open:L,children:C.cloneElement(u,Q)})]})})});process.env.NODE_ENV!=="production"&&(Ym.propTypes={BackdropComponent:r.elementType,BackdropProps:r.object,children:Xr.isRequired,classes:r.object,className:r.string,closeAfterTransition:r.bool,component:r.elementType,components:r.shape({Backdrop:r.elementType,Root:r.elementType}),componentsProps:r.shape({backdrop:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),container:r.oneOfType([Ho,r.func]),disableAutoFocus:r.bool,disableEnforceFocus:r.bool,disableEscapeKeyDown:r.bool,disablePortal:r.bool,disableRestoreFocus:r.bool,disableScrollLock:r.bool,hideBackdrop:r.bool,keepMounted:r.bool,onClose:r.func,onTransitionEnter:r.func,onTransitionExited:r.func,open:r.bool.isRequired,slotProps:r.shape({backdrop:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({backdrop:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const Fl=C.createContext(null);process.env.NODE_ENV!=="production"&&(Fl.displayName="SelectFocusSourceContext");function p1(){return C.useContext(Fl)}Fl.Provider;function f1(e,t){if(t==null){e.focus();return}try{e.focus({focusVisible:t==="keyboard"})}catch{e.focus()}}const m1=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},h1=e=>{const{disabled:t,dense:n,divider:o,disableGutters:s,selected:i,classes:a}=e,c=Le({root:["root",n&&"dense",t&&"disabled",!s&&"gutters",o&&"divider",i&&"selected"]},Xk,a);return{...a,...c}},g1=ne(io,{shouldForwardProp:e=>Zo(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:m1})(Je(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ur.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${ur.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${ur.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${ur.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ur.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ad.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ad.inset}`]:{marginLeft:52},[`& .${cd.root}`]:{marginTop:0,marginBottom:0},[`& .${cd.inset}`]:{paddingLeft:36},[`& .${ld.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${ld.root} svg`]:{fontSize:"1.25rem"}}}]}))),Bl=C.forwardRef(function(t,n){const o=Ye({props:t,name:"MuiMenuItem"}),{autoFocus:s=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:m,className:h,...f}=o,g=p1(),p=C.useContext(An),y=C.useMemo(()=>({dense:a||p.dense||!1,disableGutters:c}),[p.dense,a,c]),x=C.useRef(null);Ln(()=>{s&&(x.current?f1(x.current,g):process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[s]);const I={...o,dense:y.dense,divider:l,disableGutters:c},w=h1(o),S=yt(x,n),{root:E,...T}=w;let R;return o.disabled||(R=m!==void 0?m:-1),b.jsx(An.Provider,{value:y,children:b.jsx(g1,{ref:S,role:d,tabIndex:R,component:i,focusVisibleClassName:ue(w.focusVisible,u),className:ue(w.root,h),...f,ownerState:I,classes:T})})});process.env.NODE_ENV!=="production"&&(Bl.propTypes={autoFocus:r.bool,children:r.node,classes:r.object,className:r.string,component:r.elementType,dense:r.bool,disabled:r.bool,disableGutters:r.bool,divider:r.bool,focusVisibleClassName:r.string,role:r.string,selected:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tabIndex:r.number});function b1(e){return ct("MuiDigitalClock",e)}dt("MuiDigitalClock",["root","list","item"]);const y1=["ampm","timeStep","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","views","skipDisabled","timezone"],v1=e=>at({root:["root"],list:["list"],item:["item"]},b1,e),x1=ne(Dl,{name:"MuiDigitalClock",slot:"Root"})({overflowY:"auto",width:"100%",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},maxHeight:jm,variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}),S1=ne(Ll,{name:"MuiDigitalClock",slot:"List"})({padding:0}),C1=ne(Bl,{name:"MuiDigitalClock",slot:"Item",shouldForwardProp:e=>e!=="itemValue"&&e!=="formattedValue"})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.focusOpacity)}})),zl=C.forwardRef(function(t,n){const o=lt(),s=C.useRef(null),i=wt(n,s),a=C.useRef(null),l=C.useRef(null),c=qe({props:t,name:"MuiDigitalClock"}),{ampm:u=o.is12HourCycleInCurrentLocale(),timeStep:d=30,autoFocus:m,slots:h,slotProps:f,value:g,defaultValue:p,referenceDate:y,disableIgnoringDatePartForTimeValidation:x=!1,maxTime:I,minTime:w,disableFuture:S,disablePast:E,minutesStep:T=1,shouldDisableTime:R,onChange:N,view:L,openTo:V,onViewChange:A,focusedView:v,onFocusedViewChange:P,className:O,classes:_,disabled:k,readOnly:D,views:M=["hours"],skipDisabled:z=!1,timezone:j}=c,B=Ce(c,y1),{value:W,handleValueChange:X,timezone:Q}=Gr({name:"DigitalClock",timezone:j,value:g,defaultValue:p,referenceDate:y,onChange:N,valueManager:qn}),G=rn(),Z=bl(Q),{ownerState:te}=vt(),H=$({},te,{hasDigitalClockAlreadyBeenRendered:!!s.current}),F=v1(_),U=(h==null?void 0:h.digitalClockItem)??C1,ae=He({elementType:U,externalSlotProps:f==null?void 0:f.digitalClockItem,ownerState:H,className:F.item}),K=Al({value:W,referenceDate:y,adapter:o,props:c,timezone:Q}),ce=xe(ie=>X(ie,"finish","hours")),{setValueAndGoToNextView:oe}=Pi({view:L,views:M,openTo:V,onViewChange:A,onChange:ce,focusedView:v,onFocusedViewChange:P}),be=xe(ie=>{oe(ie,"finish")});Cn(()=>{if(s.current===null)return;const ie=s.current.querySelector('[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]');if(!ie)return;const fe=ie.offsetTop;(m||v)&&ie!==l.current&&(l.current=ie,ie.focus()),s.current.scrollTop=fe-4});const he=C.useCallback(ie=>{const fe=Yr(x,o),se=()=>!(w&&fe(w,ie)||I&&fe(ie,I)||S&&fe(ie,Z)||E&&fe(Z,ie)),Te=()=>o.getMinutes(ie)%T!==0?!1:R?!R(ie,"hours"):!0;return!se()||!Te()},[x,o,w,I,S,Z,E,T,R]),re=C.useMemo(()=>{const ie=[];let se=o.startOfDay(K);for(;o.isSameDay(K,se);)ie.push(se),se=o.addMinutes(se,d);return ie},[K,d,o]),J=re.findIndex(ie=>o.isEqual(ie,K)),ge=ie=>{switch(ie.key){case"PageUp":{const fe=As(a.current)-5,se=a.current.children,Te=Math.max(0,fe),ke=se[Te];ke&&ke.focus(),ie.preventDefault();break}case"PageDown":{const fe=As(a.current)+5,se=a.current.children,Te=Math.min(se.length-1,fe),ke=se[Te];ke&&ke.focus(),ie.preventDefault();break}}};return b.jsx(x1,$({ref:i,className:ue(F.root,O),ownerState:H},B,{children:b.jsx(S1,{ref:a,role:"listbox","aria-label":G.timePickerToolbarTitle,className:F.list,onKeyDown:ge,children:re.map((ie,fe)=>{const se=he(ie);if(z&&se)return null;const Te=o.isEqual(ie,W),ke=o.format(ie,u?"fullTime12h":"fullTime24h"),we=J===fe||J===-1&&fe===0?0:-1;return b.jsx(U,$({onClick:()=>!D&&be(ie),selected:Te,disabled:k||se,disableRipple:D,role:"option","aria-disabled":D,"aria-selected":Te,tabIndex:we,itemValue:ie,formattedValue:ke},ae,{children:ke}),`${ie.valueOf()}-${ke}`)})})}))});process.env.NODE_ENV!=="production"&&(zl.displayName="DigitalClock");process.env.NODE_ENV!=="production"&&(zl.propTypes={ampm:r.bool,autoFocus:r.bool,classes:r.object,className:r.string,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,focusedView:r.oneOf(["hours"]),maxTime:r.object,minTime:r.object,minutesStep:r.number,onChange:r.func,onFocusedViewChange:r.func,onViewChange:r.func,openTo:r.oneOf(["hours"]),readOnly:r.bool,referenceDate:r.object,shouldDisableTime:r.func,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timeStep:r.number,timezone:r.string,value:r.object,view:r.oneOf(["hours"]),views:r.arrayOf(r.oneOf(["hours"]))});function w1(e){return ct("MuiMultiSectionDigitalClock",e)}dt("MuiMultiSectionDigitalClock",["root"]);function T1(e){return ct("MuiMultiSectionDigitalClockSection",e)}dt("MuiMultiSectionDigitalClockSection",["root","item"]);const I1=["autoFocus","onChange","className","classes","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],E1=e=>at({root:["root"],item:["item"]},T1,e),_1=ne(Ll,{name:"MuiMultiSectionDigitalClockSection",slot:"Root"})(({theme:e})=>({maxHeight:jm,width:56,padding:0,overflow:"hidden",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]})),O1=ne(Bl,{name:"MuiMultiSectionDigitalClockSection",slot:"Item"})(({theme:e})=>({padding:8,margin:"2px 4px",width:XO,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.focusOpacity)}})),Gm=C.forwardRef(function(t,n){const o=C.useRef(null),s=wt(n,o),i=C.useRef(null),a=C.useRef(!1),l=qe({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:c,onChange:u,className:d,classes:m,disabled:h,readOnly:f,items:g,active:p,slots:y,slotProps:x,skipDisabled:I}=l,w=Ce(l,I1),{ownerState:S}=vt(),E=$({},S,{hasDigitalClockAlreadyBeenRendered:!!o.current}),T=E1(m),R=(y==null?void 0:y.digitalClockSectionItem)??O1;Cn(()=>{if(o.current===null)return;const A=o.current.querySelector('[role="option"][tabindex="0"], [role="option"][aria-selected="true"]');if(!A)return;const v=document.activeElement,P=i.current===A,O=!!v&&o.current.contains(v),_=P&&a.current;if(p&&c&&(!P||_)&&(i.current==null||a.current||O)&&(i.current=A,a.current=!1,A.focus()),P)return;const k=A.offsetTop,D=A.offsetHeight,M=o.current.clientHeight,z=o.current.scrollHeight,j=k-M/2+D/2,B=z-M,W=Math.min(j,B);o.current.scrollTop=Math.max(0,W)});const N=xe(A=>{const v=A.relatedTarget,P=v==null?void 0:v.parentElement,O=v==null?void 0:v.getAttribute("role"),_=(P==null?void 0:P.nodeName)==="UL"&&P!==o.current||O==="gridcell";a.current=_,i.current&&(P==null?void 0:P.nodeName)==="UL"&&P!==o.current&&(i.current=null)});C.useEffect(()=>{p||(i.current=null)},[p]);const L=g.findIndex(A=>A.isFocused(A.value)),V=xe(A=>{switch(A.key){case"Tab":{a.current=!0;break}case"PageUp":{const v=As(o.current)-5,P=o.current.children,O=Math.max(0,v),_=P[O];_&&_.focus(),A.preventDefault();break}case"PageDown":{const v=As(o.current)+5,P=o.current.children,O=Math.min(P.length-1,v),_=P[O];_&&_.focus(),A.preventDefault();break}}});return b.jsx(_1,$({ref:s,className:ue(T.root,d),ownerState:E,role:"listbox",onKeyDown:V,onBlur:N},w,{children:g.map((A,v)=>{var D;const P=(D=A.isDisabled)==null?void 0:D.call(A,A.value),O=h||P;if(I&&O)return null;const _=A.isSelected(A.value),k=L===v||L===-1&&v===0?0:-1;return b.jsx(R,$({onClick:()=>!f&&u(A.value),selected:_,disabled:O,disableRipple:f,role:"option","aria-disabled":f||O||void 0,"aria-label":A.ariaLabel,"aria-selected":_,tabIndex:k,className:T.item},x==null?void 0:x.digitalClockSectionItem,{children:A.label}),A.label)})}))});process.env.NODE_ENV!=="production"&&(Gm.displayName="MultiSectionDigitalClockSection");const k1=({now:e,value:t,adapter:n,ampm:o,isDisabled:s,resolveAriaLabel:i,timeStep:a,valueOrReferenceDate:l})=>{const c=t?n.getHours(t):null,u=[],d=(g,p)=>{const y=p??c;return y===null?!1:o?g===12?y===12||y===0:y===g||y-12===g:y===g},m=g=>d(g,n.getHours(l)),h=n.setDate(n.setMonth(n.startOfDay(e),0),15),f=o?11:23;for(let g=0;g<=f;g+=a){let p=n.format(n.setHours(h,g),o?"hours12h":"hours24h");const y=i(parseInt(p,10).toString());p=n.formatNumber(p),u.push({value:g,label:p,isSelected:d,isDisabled:s,isFocused:m,ariaLabel:y})}return u},md=({value:e,adapter:t,isDisabled:n,timeStep:o,resolveLabel:s,resolveAriaLabel:i,hasValue:a=!0})=>{const l=u=>e===null?!1:a&&e===u,c=u=>e===u;return[...Array.from({length:Math.ceil(60/o)},(u,d)=>{const m=o*d;return{value:m,label:t.formatNumber(s(m)),isDisabled:n,isSelected:l,isFocused:c,ariaLabel:i(m.toString())}})]},P1=["ampm","timeSteps","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","skipDisabled","timezone"],R1=e=>at({root:["root"]},w1,e),N1=ne(Dl,{name:"MuiMultiSectionDigitalClock",slot:"Root"})(({theme:e})=>({flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),Wl=C.forwardRef(function(t,n){const o=lt(),s=Wn(),i=qe({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=o.is12HourCycleInCurrentLocale(),timeSteps:l,autoFocus:c,slots:u,slotProps:d,value:m,defaultValue:h,referenceDate:f,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:p,minTime:y,disableFuture:x,disablePast:I,minutesStep:w=1,shouldDisableTime:S,onChange:E,view:T,views:R=["hours","minutes"],openTo:N,onViewChange:L,focusedView:V,onFocusedViewChange:A,className:v,classes:P,disabled:O,readOnly:_,skipDisabled:k=!1,timezone:D}=i,M=Ce(i,P1),{value:z,handleValueChange:j,timezone:B}=Gr({name:"MultiSectionDigitalClock",timezone:D,value:m,defaultValue:h,referenceDate:f,onChange:E,valueManager:qn}),W=rn(),X=bl(B),Q=C.useMemo(()=>$({hours:1,minutes:5,seconds:5},l),[l]),G=Al({value:z,referenceDate:f,adapter:o,props:i,timezone:B}),Z=xe((ie,fe,se)=>j(ie,fe,se)),te=C.useMemo(()=>!a||!R.includes("hours")||R.includes("meridiem")?R:[...R,"meridiem"],[a,R]),{view:H,setValueAndGoToNextView:F,focusedView:U}=Pi({view:T,views:te,openTo:N,onViewChange:L,onChange:Z,focusedView:V,onFocusedViewChange:A}),ae=xe(ie=>{F(ie,"finish","meridiem")}),{meridiemMode:K,handleMeridiemChange:ce}=Il(G,a,ae,"finish"),oe=C.useCallback((ie,fe)=>{const se=Yr(g,o),Te=fe==="hours"||fe==="minutes"&&te.includes("seconds"),ke=({start:we,end:Ne})=>!(y&&se(y,Ne)||p&&se(we,p)||x&&se(we,X)||I&&se(X,Te?Ne:we)),ve=(we,Ne=1)=>{if(we%Ne!==0)return!1;if(S)switch(fe){case"hours":return!S(o.setHours(G,we),"hours");case"minutes":return!S(o.setMinutes(G,we),"minutes");case"seconds":return!S(o.setSeconds(G,we),"seconds");default:return!1}return!0};switch(fe){case"hours":{const we=Mr(ie,K,a),Ne=o.setHours(G,we);if(o.getHours(Ne)!==we)return!0;const Qe=o.setSeconds(o.setMinutes(Ne,0),0),Kt=o.setSeconds(o.setMinutes(Ne,59),59);return!ke({start:Qe,end:Kt})||!ve(we)}case"minutes":{const we=o.setMinutes(G,ie),Ne=o.setSeconds(we,0),Qe=o.setSeconds(we,59);return!ke({start:Ne,end:Qe})||!ve(ie,w)}case"seconds":{const we=o.setSeconds(G,ie);return!ke({start:we,end:we})||!ve(ie)}default:throw new Error("not supported")}},[a,G,g,p,K,y,w,S,o,x,I,X,te]),be=C.useCallback(ie=>{switch(ie){case"hours":return{onChange:fe=>{const se=Mr(fe,K,a);F(o.setHours(G,se),"finish","hours")},items:k1({now:X,value:z,ampm:a,adapter:o,isDisabled:fe=>oe(fe,"hours"),timeStep:Q.hours,resolveAriaLabel:W.hoursClockNumberText,valueOrReferenceDate:G})};case"minutes":return{onChange:fe=>{F(o.setMinutes(G,fe),"finish","minutes")},items:md({value:o.getMinutes(G),adapter:o,isDisabled:fe=>oe(fe,"minutes"),resolveLabel:fe=>o.format(o.setMinutes(X,fe),"minutes"),timeStep:Q.minutes,hasValue:!!z,resolveAriaLabel:W.minutesClockNumberText})};case"seconds":return{onChange:fe=>{F(o.setSeconds(G,fe),"finish","seconds")},items:md({value:o.getSeconds(G),adapter:o,isDisabled:fe=>oe(fe,"seconds"),resolveLabel:fe=>o.format(o.setSeconds(X,fe),"seconds"),timeStep:Q.seconds,hasValue:!!z,resolveAriaLabel:W.secondsClockNumberText})};case"meridiem":{const fe=$n(o,"am"),se=$n(o,"pm");return{onChange:ce,items:[{value:"am",label:fe,isSelected:()=>!!z&&K==="am",isFocused:()=>!!G&&K==="am",ariaLabel:fe},{value:"pm",label:se,isSelected:()=>!!z&&K==="pm",isFocused:()=>!!G&&K==="pm",ariaLabel:se}]}}default:throw new Error(process.env.NODE_ENV!=="production"?`MUI X Date Pickers: Unknown view "${ie}" found in MultiSectionDigitalClock. This view is not supported by the component. Use valid view values: "hours", "minutes", "seconds", or "meridiem".`:Re(144,ie))}},[X,z,a,o,Q.hours,Q.minutes,Q.seconds,W.hoursClockNumberText,W.minutesClockNumberText,W.secondsClockNumberText,K,F,G,oe,ce]),he=C.useMemo(()=>{if(!s)return te;const ie=te.filter(fe=>fe!=="meridiem");return ie.reverse(),te.includes("meridiem")&&ie.push("meridiem"),ie},[s,te]),re=C.useMemo(()=>te.reduce((ie,fe)=>$({},ie,{[fe]:be(fe)}),{}),[te,be]),{ownerState:J}=vt(),ge=R1(P);return b.jsx(N1,$({ref:n,className:ue(ge.root,v),ownerState:J,role:"group"},M,{children:he.map(ie=>b.jsx(Gm,{items:re[ie].items,onChange:re[ie].onChange,active:H===ie,autoFocus:c||U===ie,disabled:O,readOnly:_,slots:u,slotProps:d,skipDisabled:k,"aria-label":W.selectViewText(ie)},ie))}))});process.env.NODE_ENV!=="production"&&(Wl.displayName="MultiSectionDigitalClock");process.env.NODE_ENV!=="production"&&(Wl.propTypes={ampm:r.bool,autoFocus:r.bool,classes:r.object,className:r.string,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,focusedView:r.oneOf(["hours","meridiem","minutes","seconds"]),maxTime:r.object,minTime:r.object,minutesStep:r.number,onChange:r.func,onFocusedViewChange:r.func,onViewChange:r.func,openTo:r.oneOf(["hours","meridiem","minutes","seconds"]),readOnly:r.bool,referenceDate:r.object,shouldDisableTime:r.func,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timeSteps:r.shape({hours:r.number,minutes:r.number,seconds:r.number}),timezone:r.string,value:r.object,view:r.oneOf(["hours","meridiem","minutes","seconds"]),views:r.arrayOf(r.oneOf(["hours","meridiem","minutes","seconds"]).isRequired)});const Is=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:h,minTime:f,maxTime:g,shouldDisableTime:p,minutesStep:y,ampm:x,ampmInClock:I,slots:w,slotProps:S,readOnly:E,disabled:T,sx:R,autoFocus:N,showViewSwitcher:L,disableIgnoringDatePartForTimeValidation:V,timezone:A})=>b.jsx(jl,{view:e,onViewChange:t,focusedView:n&&Wo(n)?n:null,onFocusedViewChange:o,views:s.filter(Wo),value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:h,minTime:f,maxTime:g,shouldDisableTime:p,minutesStep:y,ampm:x,ampmInClock:I,slots:w,slotProps:S,readOnly:E,disabled:T,sx:R,autoFocus:N,showViewSwitcher:L,disableIgnoringDatePartForTimeValidation:V,timezone:A});process.env.NODE_ENV!=="production"&&(Is.displayName="renderTimeViewClock");const Km=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:h,minTime:f,maxTime:g,shouldDisableTime:p,minutesStep:y,ampm:x,slots:I,slotProps:w,readOnly:S,disabled:E,sx:T,autoFocus:R,disableIgnoringDatePartForTimeValidation:N,timeSteps:L,skipDisabled:V,timezone:A})=>b.jsx(zl,{view:e,onViewChange:t,focusedView:n&&Wo(n)?n:null,onFocusedViewChange:o,views:s.filter(Wo),value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:h,minTime:f,maxTime:g,shouldDisableTime:p,minutesStep:y,ampm:x,slots:I,slotProps:w,readOnly:S,disabled:E,sx:T,autoFocus:R,disableIgnoringDatePartForTimeValidation:N,timeStep:L==null?void 0:L.minutes,skipDisabled:V,timezone:A});process.env.NODE_ENV!=="production"&&(Km.displayName="renderDigitalClockTimeView");const va=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:h,minTime:f,maxTime:g,shouldDisableTime:p,minutesStep:y,ampm:x,slots:I,slotProps:w,readOnly:S,disabled:E,sx:T,autoFocus:R,disableIgnoringDatePartForTimeValidation:N,timeSteps:L,skipDisabled:V,timezone:A})=>b.jsx(Wl,{view:e,onViewChange:t,focusedView:n&&$f(n)?n:null,onFocusedViewChange:o,views:s.filter(Wo),value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:h,minTime:f,maxTime:g,shouldDisableTime:p,minutesStep:y,ampm:x,slots:I,slotProps:w,readOnly:S,disabled:E,sx:T,autoFocus:R,disableIgnoringDatePartForTimeValidation:N,timeSteps:L,skipDisabled:V,timezone:A});process.env.NODE_ENV!=="production"&&(va.displayName="renderMultiSectionDigitalClockTimeView");const M1=(e,t,n)=>n?t.filter(o=>!$f(o)||o==="hours"):e?[...t,"meridiem"]:t,$1=(e,t)=>1440/((e.hours??1)*(e.minutes??5))<=t;function D1({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:o}){const s=e??24,i=$({hours:1,minutes:5,seconds:5},n),a=$1(i,s);return{thresholdToRenderTimeInASingleColumn:s,timeSteps:i,shouldRenderTimeInASingleColumn:a,views:M1(t,o,a)}}const Ul=C.forwardRef(function(t,n){var p,y;const o=lt(),s=cm(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:i,views:a,timeSteps:l}=D1(s),c=i?Km:va,u=$({hours:c,minutes:c,seconds:c,meridiem:c},s.viewRenderers),d=s.ampmInClock??!0,h=((p=u.hours)==null?void 0:p.name)===va.name?a:a.filter(x=>x!=="meridiem"),f=$({},s,{ampmInClock:d,timeSteps:l,viewRenderers:u,format:Af(o,s),views:i?["hours"]:h,slots:$({field:Ei},s.slots),slotProps:$({},s.slotProps,{field:x=>{var I;return $({},zo((I=s.slotProps)==null?void 0:I.field,x),qf(s))},toolbar:$({hidden:!0,ampmInClock:d},(y=s.slotProps)==null?void 0:y.toolbar)})}),{renderPicker:g}=uk({ref:n,props:f,valueManager:qn,valueType:"time",validator:bi,steps:null});return g()});process.env.NODE_ENV!=="production"&&(Ul.displayName="DesktopTimePicker");process.env.NODE_ENV!=="production"&&(Ul.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,className:r.string,closeOnSelect:r.bool,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disableOpenPicker:r.bool,disablePast:r.bool,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),inputRef:Tn,keepOpenDuringFieldFocus:r.bool,label:r.node,localeText:r.object,maxTime:r.object,minTime:r.object,minutesStep:r.number,name:r.string,onAccept:r.func,onChange:r.func,onClose:r.func,onError:r.func,onOpen:r.func,onSelectedSectionsChange:r.func,onViewChange:r.func,open:r.bool,openTo:r.oneOf(["hours","meridiem","minutes","seconds"]),orientation:r.oneOf(["landscape","portrait"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableTime:r.func,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),thresholdToRenderTimeInASingleColumn:r.number,timeSteps:r.shape({hours:r.number,minutes:r.number,seconds:r.number}),timezone:r.string,value:r.object,view:r.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:r.shape({hours:r.func,meridiem:r.func,minutes:r.func,seconds:r.func}),views:r.arrayOf(r.oneOf(["hours","minutes","seconds"]).isRequired)});function A1(e){return Me("MuiDialogContent",e)}_e("MuiDialogContent",["root","dividers"]);const j1=_e("MuiDialogTitle",["root"]),L1=e=>{const{classes:t,dividers:n}=e;return Le({root:["root",n&&"dividers"]},A1,t)},V1=ne("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Je(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${j1.root} + &`]:{paddingTop:0}}}]}))),Xm=C.forwardRef(function(t,n){const o=Ye({props:t,name:"MuiDialogContent"}),{className:s,dividers:i=!1,...a}=o,l={...o,dividers:i},c=L1(l);return b.jsx(V1,{className:ue(c.root,s),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Xm.propTypes={children:r.node,classes:r.object,className:r.string,dividers:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function F1(e){return Me("MuiDialog",e)}const _r=_e("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Qm=C.createContext({});process.env.NODE_ENV!=="production"&&(Qm.displayName="DialogContext");const B1=ne(Vl,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),z1=e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:s,fullScreen:i}=e,a={root:["root"],backdrop:["backdrop"],container:["container",`scroll${le(n)}`],paper:["paper",`paperScroll${le(n)}`,`paperWidth${le(String(o))}`,s&&"paperFullWidth",i&&"paperFullScreen"]};return Le(a,F1,t)},W1=ne(Ym,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),U1=ne("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${le(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"}}}]}),q1=ne(Qr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${le(n.scroll)}`],t[`paperWidth${le(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Je(({theme:e})=>({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:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${_r.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${_r.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${_r.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Zm=C.forwardRef(function(t,n){const o=Ye({props:t,name:"MuiDialog"}),s=Hr(),i={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:u,BackdropProps:d,children:m,className:h,disableEscapeKeyDown:f=!1,fullScreen:g=!1,fullWidth:p=!1,maxWidth:y="sm",onClick:x,onClose:I,open:w,PaperComponent:S=Qr,PaperProps:E={},role:T="dialog",scroll:R="paper",slots:N={},slotProps:L={},TransitionComponent:V=qo,transitionDuration:A=i,TransitionProps:v,...P}=o,O={...o,disableEscapeKeyDown:f,fullScreen:g,fullWidth:p,maxWidth:y,scroll:R},_=z1(O),k=C.useRef(),D=oe=>{k.current=oe.target===oe.currentTarget},M=oe=>{x&&x(oe),k.current&&(k.current=null,I&&I(oe,"backdropClick"))},z=Ja(l),j=C.useMemo(()=>({titleId:z}),[z]),B={transition:V,...N},W={transition:v,paper:E,backdrop:d,...L},X={slots:B,slotProps:W},[Q,G]=Xe("root",{elementType:W1,shouldForwardComponentProp:!0,externalForwardedProps:X,ownerState:O,className:ue(_.root,h),ref:n}),[Z,te]=Xe("backdrop",{elementType:B1,shouldForwardComponentProp:!0,externalForwardedProps:X,ownerState:O,className:_.backdrop}),[H,F]=Xe("paper",{elementType:q1,shouldForwardComponentProp:!0,externalForwardedProps:X,ownerState:O,className:_.paper,additionalProps:{elevation:24,role:T,"aria-describedby":a,"aria-labelledby":z,"aria-modal":c,tabIndex:-1,[ya]:""}}),[U,ae]=Xe("container",{elementType:U1,externalForwardedProps:X,ownerState:O,className:_.container}),[K,ce]=Xe("transition",{elementType:qo,externalForwardedProps:X,ownerState:O,additionalProps:{appear:!0,in:w,timeout:A,role:"presentation"}});return b.jsx(Q,{closeAfterTransition:!0,slots:{backdrop:Z},slotProps:{backdrop:{transitionDuration:A,as:u,...te}},disableEscapeKeyDown:f,onClose:I,open:w,onClick:M,...G,...P,children:b.jsx(K,{...ce,children:b.jsx(U,{onMouseDown:D,...ae,children:b.jsx(H,{as:S,...F,children:b.jsx(Qm.Provider,{value:j,children:m})})})})})});process.env.NODE_ENV!=="production"&&(Zm.propTypes={"aria-describedby":r.string,"aria-labelledby":r.string,"aria-modal":r.oneOfType([r.oneOf(["false","true"]),r.bool]),BackdropComponent:r.elementType,BackdropProps:r.object,children:r.node,classes:r.object,className:r.string,disableEscapeKeyDown:r.bool,fullScreen:r.bool,fullWidth:r.bool,maxWidth:r.oneOfType([r.oneOf(["xs","sm","md","lg","xl",!1]),r.string]),onClick:r.func,onClose:r.func,open:r.bool.isRequired,PaperComponent:r.elementType,PaperProps:r.object,role:r.oneOf(["alertdialog","dialog"]),scroll:r.oneOf(["body","paper"]),slotProps:r.shape({backdrop:r.oneOfType([r.func,r.object]),container:r.oneOfType([r.func,r.object]),paper:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object]),transition:r.oneOfType([r.func,r.object])}),slots:r.shape({backdrop:r.elementType,container:r.elementType,paper:r.elementType,root:r.elementType,transition:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),TransitionComponent:r.elementType,transitionDuration:r.oneOfType([r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})]),TransitionProps:r.object});const H1=ne(Zm,{slot:"internal"})({[`& .${_r.container}`]:{outline:0},[`& .${_r.paper}`]:{outline:0,minWidth:Dm}}),Y1=ne(Xm,{slot:"internal"})({"&:first-of-type":{padding:0}});function G1(e){var c,u;const{children:t,slots:n,slotProps:o}=e,{open:s}=Jo(),{dismissViews:i,onPopperExited:a}=vt(),l=(n==null?void 0:n.dialog)??H1;return b.jsx(l,$({open:s,onClose:()=>{i(),a==null||a()}},o==null?void 0:o.dialog,{PaperComponent:n==null?void 0:n.mobilePaper,slots:$({transition:(n==null?void 0:n.mobileTransition)??qo},(c=o==null?void 0:o.dialog)==null?void 0:c.slots),slotProps:$({transition:o==null?void 0:o.mobileTransition,paper:o==null?void 0:o.mobilePaper},(u=o==null?void 0:o.dialog)==null?void 0:u.slotProps),children:b.jsx(Y1,{children:t})}))}const K1=["props","steps"],X1=["ownerState"],Q1=e=>{var T;let{props:t,steps:n}=e,o=Ce(e,K1);const{slots:s,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=Vm({steps:n}),{providerProps:d,renderCurrentView:m,ownerState:h}=Om($({},o,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"mobile",getStepNavigation:u})),f=d.privateContextValue.labelId,g=((T=i==null?void 0:i.toolbar)==null?void 0:T.hidden)??!1,p=s.field,y=He({elementType:p,externalSlotProps:i==null?void 0:i.field,externalForwardedProps:Bf(t),additionalProps:$({},g&&{id:f}),ownerState:h}),x=Ce(y,X1),I=s.layout??Ri;let w=f;g&&(a?w=`${f}-label`:w=void 0);const S=$({},i,{toolbar:$({},i==null?void 0:i.toolbar,{titleId:f}),mobilePaper:$({"aria-labelledby":w},i==null?void 0:i.mobilePaper)}),E=()=>b.jsxs(Hf,$({},d,{children:[b.jsx(p,$({},x,{slots:$({},s,x.slots),slotProps:$({},S,x.slotProps),inputRef:l})),b.jsx(G1,{slots:s,slotProps:S,children:b.jsx(I,$({},S==null?void 0:S.layout,{slots:s,slotProps:S,children:m()}))})]}));return process.env.NODE_ENV!=="production"&&(E.displayName="renderPicker"),{renderPicker:E}},ql=C.forwardRef(function(t,n){var u;const o=lt(),s=cm(t,"MuiMobileTimePicker"),i=$({hours:Is,minutes:Is,seconds:Is},s.viewRenderers),a=s.ampmInClock??!1,l=$({},s,{ampmInClock:a,viewRenderers:i,format:Af(o,s),slots:$({field:Ei},s.slots),slotProps:$({},s.slotProps,{field:d=>{var m;return $({},zo((m=s.slotProps)==null?void 0:m.field,d),qf(s))},toolbar:$({hidden:!1,ampmInClock:a},(u=s.slotProps)==null?void 0:u.toolbar)})}),{renderPicker:c}=Q1({ref:n,props:l,valueManager:qn,valueType:"time",validator:bi,steps:null});return c()});process.env.NODE_ENV!=="production"&&(ql.displayName="MobileTimePicker");process.env.NODE_ENV!=="production"&&(ql.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,className:r.string,closeOnSelect:r.bool,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disableOpenPicker:r.bool,disablePast:r.bool,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),inputRef:Tn,keepOpenDuringFieldFocus:r.bool,label:r.node,localeText:r.object,maxTime:r.object,minTime:r.object,minutesStep:r.number,name:r.string,onAccept:r.func,onChange:r.func,onClose:r.func,onError:r.func,onOpen:r.func,onSelectedSectionsChange:r.func,onViewChange:r.func,open:r.bool,openTo:r.oneOf(["hours","minutes","seconds"]),orientation:r.oneOf(["landscape","portrait"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableTime:r.func,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,view:r.oneOf(["hours","minutes","seconds"]),viewRenderers:r.shape({hours:r.func,minutes:r.func,seconds:r.func}),views:r.arrayOf(r.oneOf(["hours","minutes","seconds"]).isRequired)});const Z1=["desktopModeMediaQuery"],Hl=C.forwardRef(function(t,n){const o=qe({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:s=ZT}=o,i=Ce(o,Z1);return Nf(s,{defaultMatches:!0})?b.jsx(Ul,$({ref:n},i)):b.jsx(ql,$({ref:n},i))});process.env.NODE_ENV!=="production"&&(Hl.displayName="TimePicker");process.env.NODE_ENV!=="production"&&(Hl.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,className:r.string,closeOnSelect:r.bool,defaultValue:r.object,desktopModeMediaQuery:r.string,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disableOpenPicker:r.bool,disablePast:r.bool,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),inputRef:Tn,keepOpenDuringFieldFocus:r.bool,label:r.node,localeText:r.object,maxTime:r.object,minTime:r.object,minutesStep:r.number,name:r.string,onAccept:r.func,onChange:r.func,onClose:r.func,onError:r.func,onOpen:r.func,onSelectedSectionsChange:r.func,onViewChange:r.func,open:r.bool,openTo:r.oneOf(["hours","meridiem","minutes","seconds"]),orientation:r.oneOf(["landscape","portrait"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableTime:r.func,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),thresholdToRenderTimeInASingleColumn:r.number,timeSteps:r.shape({hours:r.number,minutes:r.number,seconds:r.number}),timezone:r.string,value:r.object,view:r.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:r.shape({hours:r.func,meridiem:r.func,minutes:r.func,seconds:r.func}),views:r.arrayOf(r.oneOf(["hours","minutes","seconds"]).isRequired)});const Jm=Y.forwardRef(function(t,n){const{overStyled:o=!1,disabled:s,data:i,onChange:a,className:l,value:c,defaultValue:u,error:d,...m}=t,h=me(m,o),f=h;delete f.size,delete f.variant,delete f.className;const g=l?`${St.root} ${l}`:St.root,p=c??u,y=()=>i.map((x,I)=>typeof x=="string"?b.jsx(pe.MenuItem,{value:x,className:St.option,"data-selected":x===p?"true":void 0,children:x},`${x}-${I}`):b.jsx(pe.MenuItem,{value:x.value,disabled:x.disabled,className:St.option,"data-selected":x.value===p?"true":void 0,children:x.label},`${x.value}-${I}`));return b.jsx(pe.Select,{ref:n,disabled:s,value:c,defaultValue:u,onChange:x=>a==null?void 0:a(x.target.value??null),displayEmpty:!0,error:!!d,className:g,classes:{select:St.input,icon:St.icon},MenuProps:{classes:{paper:St.dropdown}},"data-disabled":s?"true":void 0,"data-error":d?"true":void 0,inputProps:{"data-disabled":s?"true":void 0,"data-error":d?"true":void 0,...f.inputProps},...h,children:y()})});Jm.displayName="BareDropdown";const J1="TimePicker-module__layoutOverride___zKo4Q",eP="TimePicker-module__root___BcvRu",tP="TimePicker-module__field___lOxtw",nP="TimePicker-module__amPmSelect___mSdvt",pr={layoutOverride:J1,root:eP,field:tP,amPmSelect:nP};pt.extend(Rf);const eh="HH:mm:ss",th="HH:mm",oP=[{value:"AM",label:"AM"},{value:"PM",label:"PM"}];function Ro(e){if(!e)return;const t=e.length>5?eh:th;return pt(e,t)}function rP(e){const t=Ro(e);return t?t.format(e&&e.length>5?"h:mm:ss A":"h:mm A"):e}const nh=Y.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,id:p,className:y,style:x,disabled:I,readOnly:w,readOnlyComponent:S,emptyValueComponent:E,value:T,defaultValue:R,onChange:N,withSeconds:L,minTime:V,maxTime:A,...v}=t,P=me(v,o),[O,_]=Y.useState(()=>Ro(T)??Ro(R)??null);Y.useEffect(()=>{T!==void 0&&_(Ro(T)??null)},[T]);const k=O?O.hour()>=12:!1,D=y?`${pr.layoutOverride} ${y}`:pr.layoutOverride,M=B=>{_(B),N==null||N(B?B.format(L?eh:th):null)},z=B=>{M(B)},j=B=>{if(!O||!B)return;const W=B==="PM",X=O.hour(),Q=X>=12;if(W===Q)return;const G=W?X+12:X-12;M(O.hour(G))};return b.jsx(Yt,{ref:n,className:D,style:x,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:h,error:f,required:g,id:p,readOnly:w,readOnlyComponent:S,emptyValueComponent:E||void 0,readOnlyType:"text",readOnlyValue:rP(T!==void 0?T:R),readOnlyNativeProps:t,activeComponent:b.jsxs("div",{className:pr.root,"data-error":f?"true":void 0,children:[b.jsx(mi,{dateAdapter:RT,children:b.jsx(Hl,{...P,value:O,onChange:z,disabled:I,format:`hh:${L?"mm:ss":"mm"}`,views:L?["hours","minutes","seconds"]:["hours","minutes"],minTime:Ro(V),maxTime:Ro(A),slots:{openPickerButton:()=>null},slotProps:{field:{className:pr.field}}})}),b.jsx(Jm,{overStyled:!0,className:pr.amPmSelect,style:{width:"fit-content"},data:oP,value:k?"PM":"AM",onChange:j,disabled:I,error:!!f,"aria-label":"AM or PM"})]})})});nh.displayName="TimePicker";const sP="Timeline-module__root___LwRdZ",iP="Timeline-module__item___T5xdQ",aP="Timeline-module__itemBody___XAV-E",lP="Timeline-module__itemBullet___rPXCy",cP="Timeline-module__itemTitle___GgRRW",uP="Timeline-module__itemContent___vurs-",dP="Timeline-module__description___f9sxV",pP="Timeline-module__timestamp___owiRu",kn={root:sP,item:iP,itemBody:aP,itemBullet:lP,itemTitle:cP,itemContent:uP,description:dP,timestamp:pP},Yl=Y.forwardRef(function({overStyled:t=!1,timestamp:n,bulletVariant:o="default",bullet:s,children:i,...a},l){const c=me(a,t),u={item:kn.item,itemBody:kn.itemBody,itemContent:kn.itemContent,itemBullet:kn.itemBullet,itemTitle:kn.itemTitle},d=c.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const h=d;Object.keys(h).forEach(f=>{u[f]?u[f]=`${u[f]} ${h[f]}`:u[f]=h[f]})}const m=n?b.jsxs(b.Fragment,{children:[i&&b.jsx("div",{className:kn.description,children:i}),b.jsx("div",{className:kn.timestamp,children:n})]}):i;return b.jsx(Tf,{ref:l,...c,classes:u,"data-variant":o,children:m})});Yl.displayName="TimelineItem";const oh=Y.forwardRef(function({overStyled:t=!1,...n},o){const s=me(n,t),i={root:kn.root},a=s.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const l=a;Object.keys(l).forEach(c=>{i[c]?i[c]=`${i[c]} ${l[c]}`:i[c]=l[c]})}return b.jsx(wf,{ref:o,...s,classes:i})});oh.displayName="Timeline";const rh=oh;rh.Item=Yl;const sh=Y.forwardRef(function({order:t=1,component:n,...o},s){const i=`recursica_brand_typography_h${t}`,a=`h${t}`;return b.jsx(fi,{ref:s,typographyClass:i,component:n||a,...o})});sh.displayName="Title";const fP="Toast-module__root___MUvfI",mP="Toast-module__icon___VwvE1",hP="Toast-module__title___-H6R2",gP="Toast-module__description___-QwfC",bP="Toast-module__closeButton___vGr7g",yP="Toast-module__body___VLkXA",Io={root:fP,icon:mP,title:hP,description:gP,closeButton:bP,body:yP},vP=()=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:b.jsx("path",{d:"M18 6L6 18M6 6l12 12"})}),ih=Y.forwardRef(function({overStyled:t=!1,variant:n="default",withCloseButton:o=!0,title:s,icon:i,children:a,onClose:l,className:c,...u},d){const m=me(u,t),h={root:Io.root,message:Io.body,icon:Io.icon,action:Io.closeButton},f=m.classNames;if(f&&typeof f=="object"&&!Array.isArray(f)){const p=f;Object.keys(p).forEach(y=>{h[y]?h[y]=`${h[y]} ${p[y]}`:h[y]=p[y]})}const g=()=>{l&&l()};return b.jsxs(pe.Alert,{ref:d,...m,icon:i,"data-variant":n,className:`${c||""}`,classes:h,action:o?b.jsx(pe.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:g,children:b.jsx(vP,{})}):void 0,children:[s&&b.jsx(pe.AlertTitle,{className:Io.title,children:s}),b.jsx("div",{className:Io.description,children:a})]})});ih.displayName="Toast";const xP="Tooltip-module__tooltip___UA7H9",SP="Tooltip-module__arrow___4zROk",hd={tooltip:xP,arrow:SP},ah=function({overStyled:t=!1,withBeak:n=!0,label:o,opened:s,...i}){const{title:a,...l}=i,c=me(l,t),u={tooltip:hd.tooltip,arrow:hd.arrow},d=c.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const f=d;Object.keys(f).forEach(g=>{u[g]?u[g]=`${u[g]} ${f[g]}`:u[g]=f[g]})}const m=c.withArrow,h=n??m;return b.jsx(pe.Tooltip,{...c,title:o||a||"",open:s,placement:"top",arrow:h,classes:u})};ah.displayName="Tooltip";const CP=ah,wP=e=>b.jsx("div",{...e,children:"TransferList"}),gd={};function lh(e,t){const n=C.useRef(gd);return n.current===gd&&(n.current=e(t)),n}function xa(e,t,n,o){const s=lh(TP).current;return IP(s,e,t,n,o)&&EP(s,[e,t,n,o]),s.callback}function TP(){return{callback:null,cleanup:null,refs:[]}}function IP(e,t,n,o,s){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==o||e.refs[3]!==s}function EP(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const o=Array(t.length).fill(null);for(let s=0;s<t.length;s+=1){const i=t[s];if(i!=null)switch(typeof i){case"function":{const a=i(n);typeof a=="function"&&(o[s]=a);break}case"object":{i.current=n;break}}}e.cleanup=()=>{for(let s=0;s<t.length;s+=1){const i=t[s];if(i!=null)switch(typeof i){case"function":{const a=o[s];typeof a=="function"?a():i(null);break}case"object":{i.current=null;break}}}}}}}var _P=(e,t,n)=>{if(t.length===1&&t[0]===n){let o=!1;try{const s={};e(s)===s&&(o=!0)}catch{}if(o){let s;try{throw new Error}catch(i){({stack:s}=i)}console.warn(`The result function returned its own inputs without modification. e.g
220
+ */var Qd;function r1(){return Qd||(Qd=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var y=f.$$typeof;switch(y){case t:switch(f=f.type,f){case o:case i:case s:case u:case d:case p:return f;default:switch(f=f&&f.$$typeof,f){case l:case c:case g:case m:return f;case a:return f;default:return y}}case n:return y}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");Qe.ContextConsumer=a,Qe.ContextProvider=l,Qe.Element=t,Qe.ForwardRef=c,Qe.Fragment=o,Qe.Lazy=g,Qe.Memo=m,Qe.Portal=n,Qe.Profiler=i,Qe.StrictMode=s,Qe.Suspense=u,Qe.SuspenseList=d,Qe.isContextConsumer=function(f){return e(f)===a},Qe.isContextProvider=function(f){return e(f)===l},Qe.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},Qe.isForwardRef=function(f){return e(f)===c},Qe.isFragment=function(f){return e(f)===o},Qe.isLazy=function(f){return e(f)===g},Qe.isMemo=function(f){return e(f)===m},Qe.isPortal=function(f){return e(f)===n},Qe.isProfiler=function(f){return e(f)===i},Qe.isStrictMode=function(f){return e(f)===s},Qe.isSuspense=function(f){return e(f)===u},Qe.isSuspenseList=function(f){return e(f)===d},Qe.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===o||f===i||f===s||f===u||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===g||f.$$typeof===m||f.$$typeof===l||f.$$typeof===a||f.$$typeof===c||f.$$typeof===b||f.getModuleId!==void 0)},Qe.typeOf=e})()),Qe}var Zd;function s1(){return Zd||(Zd=1,process.env.NODE_ENV==="production"?_s.exports=o1():_s.exports=r1()),_s.exports}var i1=s1();function a1(e){return Re("MuiTabPanel",e)}Pe("MuiTabPanel",["root","hidden"]);const l1=e=>{const{classes:t,hidden:n}=e;return Ae({root:["root",n&&"hidden"]},a1,t)},c1=te("div",{name:"MuiTabPanel",slot:"Root"})(({theme:e})=>({padding:e.spacing(3)})),Hh=C.forwardRef(function(t,n){const o=ke({props:t,name:"MuiTabPanel"}),{children:s,className:i,value:a,keepMounted:l=!1,...c}=o,u={...o},d=l1(u),m=e1();if(m===null)throw new TypeError("No TabContext provided");const g=t1(m,a),p=n1(m,a);return h.jsx(c1,{"aria-labelledby":p,className:ue(d.root,i),hidden:a!==m.value,id:g,ref:n,role:"tabpanel",ownerState:u,...c,children:(l||a===m.value)&&s})});process.env.NODE_ENV!=="production"&&(Hh.propTypes={children:r.node,classes:r.object,className:r.string,keepMounted:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.oneOfType([r.number,r.string]).isRequired});const Jr=C.createContext({});process.env.NODE_ENV!=="production"&&(Jr.displayName="TimelineContext");function u1(e){return Re("MuiTimeline",e)}Pe("MuiTimeline",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);function fr(e){return e==="alternate-reverse"?"positionAlternateReverse":`position${me(e)}`}const d1=e=>{const{position:t,classes:n}=e,o={root:["root",t&&fr(t)]};return Ae(o,u1,n)},p1=te("ul",{name:"MuiTimeline",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.position&&t[fr(n.position)]]}})({display:"flex",flexDirection:"column",padding:"6px 16px",flexGrow:1}),qh=C.forwardRef(function(t,n){const o=ke({props:t,name:"MuiTimeline"}),{position:s="right",className:i,...a}=o,l={...o,position:s},c=d1(l),u=C.useMemo(()=>({position:s}),[s]);return h.jsx(Jr.Provider,{value:u,children:h.jsx(p1,{className:ue(c.root,i),ownerState:l,ref:n,...a})})});process.env.NODE_ENV!=="production"&&(qh.propTypes={children:r.node,classes:r.object,className:r.string,position:r.oneOf(["alternate-reverse","alternate","left","right"]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function f1(e){return Re("MuiTimelineConnector",e)}Pe("MuiTimelineConnector",["root"]);const m1=e=>{const{classes:t}=e;return Ae({root:["root"]},f1,t)},h1=te("span",{name:"MuiTimelineConnector",slot:"Root"})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.grey[400],flexGrow:1})),Yh=C.forwardRef(function(t,n){const o=ke({props:t,name:"MuiTimelineConnector"}),{className:s,...i}=o,a=o,l=m1(a);return h.jsx(h1,{className:ue(l.root,s),ownerState:a,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Yh.propTypes={children:r.node,classes:r.object,className:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function g1(e){return Re("MuiTimelineContent",e)}const b1=Pe("MuiTimelineContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]),y1=e=>{const{position:t,classes:n}=e,o={root:["root",fr(t)]};return Ae(o,g1,n)},v1=te(Jt,{name:"MuiTimelineContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[fr(n.position)]]}})(({ownerState:e})=>({flex:1,padding:"6px 16px",textAlign:"left",...e.position==="left"&&{textAlign:"right"}})),Gh=C.forwardRef(function(t,n){const o=ke({props:t,name:"MuiTimelineContent"}),{className:s,...i}=o,{position:a}=C.useContext(Jr),l={...o,position:a||"right"},c=y1(l);return h.jsx(v1,{component:"div",className:ue(c.root,s),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Gh.propTypes={children:r.node,classes:r.object,className:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function x1(e){return Re("MuiTimelineDot",e)}Pe("MuiTimelineDot",["root","filled","outlined","filledGrey","outlinedGrey","filledPrimary","outlinedPrimary","filledSecondary","outlinedSecondary"]);const C1=e=>{const{color:t,variant:n,classes:o}=e,s={root:["root",n,t!=="inherit"&&`${n}${me(t)}`]};return Ae(s,x1,o)},w1=te("span",{name:"MuiTimelineDot",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.color!=="inherit"&&`${n.variant}${me(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>({display:"flex",alignSelf:"baseline",borderStyle:"solid",borderWidth:2,padding:4,borderRadius:"50%",boxShadow:(t.vars||t).shadows[1],margin:"11.5px 0",...e.variant==="filled"&&{borderColor:"transparent",...e.color!=="inherit"&&{...e.color==="grey"?{color:(t.vars||t).palette.grey[50],backgroundColor:(t.vars||t).palette.grey[400]}:{color:(t.vars||t).palette[e.color].contrastText,backgroundColor:(t.vars||t).palette[e.color].main}}},...e.variant==="outlined"&&{boxShadow:"none",backgroundColor:"transparent",...e.color!=="inherit"&&{...e.color==="grey"?{borderColor:(t.vars||t).palette.grey[400]}:{borderColor:(t.vars||t).palette[e.color].main}}}})),Kh=C.forwardRef(function(t,n){const o=ke({props:t,name:"MuiTimelineDot"}),{className:s,color:i="grey",variant:a="filled",...l}=o,c={...o,color:i,variant:a},u=C1(c);return h.jsx(w1,{className:ue(u.root,s),ownerState:c,ref:n,...l})});process.env.NODE_ENV!=="production"&&(Kh.propTypes={children:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["error","grey","info","inherit","primary","secondary","success","warning"]),r.string]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["filled","outlined"]),r.string])});const S1=Pe("MuiTimelineOppositeContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);function T1(e){return Re("MuiTimelineItem",e)}Pe("MuiTimelineItem",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse","missingOppositeContent"]);const I1=e=>{const{position:t,classes:n,hasOppositeContent:o}=e,s={root:["root",fr(t),!o&&"missingOppositeContent"]};return Ae(s,T1,n)},E1=te("li",{name:"MuiTimelineItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[fr(n.position)]]}})(({ownerState:e})=>({listStyle:"none",display:"flex",position:"relative",minHeight:70,...e.position==="left"&&{flexDirection:"row-reverse"},...(e.position==="alternate"||e.position==="alternate-reverse")&&{[`&:nth-of-type(${e.position==="alternate"?"even":"odd"})`]:{flexDirection:"row-reverse",[`& .${b1.root}`]:{textAlign:"right"},[`& .${S1.root}`]:{textAlign:"left"}}},...!e.hasOppositeContent&&{"&::before":{content:'""',flex:1,padding:"6px 16px"}}})),Xh=C.forwardRef(function(t,n){const o=ke({props:t,name:"MuiTimelineItem"}),{position:s,className:i,...a}=o,{position:l}=C.useContext(Jr);let c=!1;C.Children.forEach(o.children,g=>{Ko(g,["TimelineOppositeContent"])&&(c=!0)});const u={...o,position:s||l||"right",hasOppositeContent:c},d=I1(u),m=C.useMemo(()=>({position:u.position}),[u.position]);return h.jsx(Jr.Provider,{value:m,children:h.jsx(E1,{className:ue(d.root,i),ownerState:u,ref:n,...a})})});process.env.NODE_ENV!=="production"&&(Xh.propTypes={children:r.node,classes:r.object,className:r.string,position:r.oneOf(["alternate-reverse","alternate","left","right"]),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function k1(e){return Re("MuiTimelineSeparator",e)}Pe("MuiTimelineSeparator",["root"]);const O1=e=>{const{classes:t}=e;return Ae({root:["root"]},k1,t)},_1=te("div",{name:"MuiTimelineSeparator",slot:"Root"})({display:"flex",flexDirection:"column",flex:0,alignItems:"center"}),Qh=C.forwardRef(function(t,n){const o=ke({props:t,name:"MuiTimelineSeparator"}),{className:s,...i}=o,a=o,l=O1(a);return h.jsx(_1,{className:ue(l.root,s),ownerState:a,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Qh.propTypes={children:r.node,classes:r.object,className:r.string,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const Zh=H.forwardRef(function(t,n){const{variant:o="default",orientation:s="horizontal",inverted:i=!1,overStyled:a=!1,className:l,...c}=t,u=ve(c,a);return h.jsx(ye.Tabs,{ref:n,...u,orientation:s,className:`${Lr.root} ${l||""}`,"data-variant":o,"data-orientation":s,"data-inverted":i||void 0,classes:{flexContainer:Lr.list,indicator:Lr.indicator}})});Zh.displayName="Tabs";const Jh=H.forwardRef(function(t,n){const{overStyled:o=!1,className:s,...i}=t,a=ve(i,o);return h.jsx(ye.Tab,{ref:n,disableRipple:!0,className:`${Lr.tab} ${s||""}`,...a})});Jh.displayName="Tab";const eg=H.forwardRef(function(t,n){const{overStyled:o=!1,className:s,...i}=t,a=ve(i,o);return h.jsx(Hh,{ref:n,className:`${Lr.panel} ${s||""}`,...a})});eg.displayName="TabPanel";const Ji=H.forwardRef(function({typographyClass:t,overStyled:n=!1,...o},s){const i=ve(o,n),l=i.className,c=l?`${t} ${l}`:t;return h.jsx(ye.Typography,{ref:s,className:c,variant:"inherit",...i})});Ji.displayName="Typography";const tg=H.forwardRef(function({variant:t="body",...n},o){const s=`recursica_brand_typography_${t}`;return h.jsx(Ji,{ref:o,typographyClass:s,...n})});tg.displayName="Text";const P1="TextArea-module__layoutOverride___4MCdm",M1="TextArea-module__root___3dyeu",D1="TextArea-module__input___8l36v",Ps={layoutOverride:P1,root:M1,input:D1},ng=H.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:g,error:p,required:b,withAsterisk:f,id:y,className:x,style:T,disabled:S,readOnly:w,readOnlyComponent:E,emptyValueComponent:I,value:R,defaultValue:N,autosize:j,...V}=t,$=ve(V,o),v=$;delete v.size,delete v.variant,delete v.radius;const O=x?`${Ps.layoutOverride} ${x}`:Ps.layoutOverride;return h.jsx(Vt,{className:O,style:T,controlMaxWidth:"var(--textarea-control-max-width)",controlMinWidth:"var(--textarea-control-min-width)",overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:g,error:p,required:b,id:y,readOnly:w,readOnlyComponent:E,emptyValueComponent:I,readOnlyType:"text",readOnlyValue:R!==void 0?R:N,readOnlyNativeProps:t,activeComponent:h.jsx(ye.TextField,{multiline:!0,variant:"standard",inputRef:n,disabled:S,value:R,defaultValue:N,label:void 0,error:!!p,required:void 0,slotProps:{input:{disableUnderline:!0,classes:{root:Ps.root,input:Ps.input},"data-autosize":j?"true":void 0}},...$})})});ng.displayName="TextArea";const R1="TextField-module__layoutOverride___SNZqc",N1="TextField-module__root___2ZYkG",$1="TextField-module__input___RL-My",j1="TextField-module__section___bCIJ0",Sn={layoutOverride:R1,root:N1,input:$1,section:j1},xc=H.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:g,error:p,required:b,id:f,className:y,style:x,disabled:T,readOnly:S,readOnlyComponent:w,emptyValueComponent:E,value:I,defaultValue:R,leftSection:N,rightSection:j,...V}=t,$=ve(V,o),v=$;delete v.size,delete v.color;const O={wrapper:Sn.root,input:Sn.input,section:Sn.section},P=v.classes;if(P&&typeof P=="object"&&!Array.isArray(P)){const A=P;O.wrapper=A.root?`${Sn.root} ${A.root}`:Sn.root,O.input=A.input?`${Sn.input} ${A.input}`:Sn.input}const k=y?`${Sn.layoutOverride} ${y}`:Sn.layoutOverride,M=N?h.jsx("div",{className:O.section,"data-position":"left",children:N}):void 0,_=j?h.jsx("div",{className:O.section,"data-position":"right",children:j}):void 0;return h.jsx(Vt,{className:k,style:x,controlMaxWidth:"var(--text-field-control-max-width)",controlMinWidth:"var(--text-field-control-min-width)",overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:g,error:p,required:b,id:f,readOnly:S,readOnlyComponent:w,emptyValueComponent:E||void 0,readOnlyType:"text",readOnlyValue:I!==void 0?I:R,readOnlyNativeProps:t,activeComponent:h.jsx(ye.InputBase,{inputRef:n,...$,classes:{root:O.wrapper,input:O.input},disabled:T,value:I,defaultValue:R,startAdornment:M,endAdornment:_,"data-disabled":T?"true":void 0,"data-error":p?"true":void 0,"data-with-left-section":N?"true":void 0,"data-with-right-section":j?"true":void 0})})});xc.displayName="TextField";const A1=e=>{const t=RI(e);return Om({manager:t,props:e})},L1=["slots","slotProps"],ea=C.forwardRef(function(t,n){const o=ke({props:t,name:"MuiTimeField"}),{slots:s,slotProps:i}=o,a=Ce(o,L1),l=Bm({slotProps:i,ref:n,externalForwardedProps:a}),c=A1(l);return h.jsx(zm,{slots:s,slotProps:i,inputRef:a.inputRef,children:h.jsx(Fm,{fieldResponse:c,defaultOpenPickerIcon:KI})})});process.env.NODE_ENV!=="production"&&(ea.displayName="TimeField");process.env.NODE_ENV!=="production"&&(ea.propTypes={ampm:r.bool,areAllSectionsEmpty:r.bool,autoFocus:r.bool,className:r.string,clearable:r.bool,clearButtonPosition:r.oneOf(["end","start"]),color:r.oneOf(["error","info","primary","secondary","success","warning"]),component:r.elementType,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,endAdornment:r.node,error:r.bool,fieldRef:r.oneOfType([r.func,r.object]),focused:r.bool,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),fullWidth:r.bool,helperText:r.node,hiddenLabel:r.bool,id:r.string,inputRef:Ft,label:r.node,margin:r.oneOf(["dense","none","normal"]),maxTime:r.object,minTime:r.object,minutesStep:r.number,name:r.string,onBlur:r.func,onChange:r.func,onClear:r.func,onClick:r.func,onError:r.func,onFocus:r.func,onInput:r.func,onKeyDown:r.func,onMouseDown:r.func,onPaste:r.func,onSelectedSectionsChange:r.func,openPickerButtonPosition:r.oneOf(["end","start"]),readOnly:r.bool,referenceDate:r.object,required:r.bool,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableTime:r.func,shouldRespectLeadingZeros:r.bool,size:r.oneOf(["medium","small"]),slotProps:r.object,slots:r.object,startAdornment:r.node,style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,variant:r.oneOf(["filled","outlined","standard"])});function V1(e){return Ye("MuiPickersToolbarText",e)}Ze("MuiPickersToolbarText",["root"]);const F1=["className","classes","selected","value"],B1=e=>Ve({root:["root"]},V1,e),z1=te(Jt,{name:"MuiPickersToolbarText",slot:"Root"})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,"&[data-selected]":{color:(e.vars||e).palette.text.primary}})),Cc=C.forwardRef(function(t,n){const o=ke({props:t,name:"MuiPickersToolbarText"}),{className:s,classes:i,selected:a,value:l}=o,c=Ce(o,F1),u=B1(i);return h.jsx(z1,D({ref:n,className:ue(u.root,s),component:"span",ownerState:o},a&&{"data-selected":!0},c,{children:l}))});process.env.NODE_ENV!=="production"&&(Cc.displayName="PickersToolbarText");const W1=["align","className","classes","selected","typographyClassName","value","variant","width"],U1=e=>Ve({root:["root"]},Pf,e),H1=te(Tn,{name:"MuiPickersToolbarButton",slot:"Root"})({padding:0,minWidth:16,textTransform:"none"}),Ho=C.forwardRef(function(t,n){const o=ke({props:t,name:"MuiPickersToolbarButton"}),{align:s,className:i,classes:a,selected:l,typographyClassName:c,value:u,variant:d,width:m}=o,g=Ce(o,W1),p=U1(a);return h.jsx(H1,D({variant:"text",ref:n,className:ue(p.root,i),ownerState:o},m?{sx:{width:m}}:{},g,{children:h.jsx(Cc,{align:s,className:c,variant:d,value:u,selected:l})}))});process.env.NODE_ENV!=="production"&&(Ho.displayName="PickersToolbarButton");function q1(e){return Ye("MuiTimePickerToolbar",e)}const Vr=Ze("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),Y1=["ampm","ampmInClock","className","classes"],G1=(e,t)=>{const{pickerOrientation:n,toolbarDirection:o}=t;return Ve({root:["root"],separator:["separator"],hourMinuteLabel:["hourMinuteLabel",n==="landscape"&&"hourMinuteLabelLandscape",o==="rtl"&&"hourMinuteLabelReverse"],ampmSelection:["ampmSelection",n==="landscape"&&"ampmLandscape"],ampmLabel:["ampmLabel"]},q1,e)},K1=te(Cl,{name:"MuiTimePickerToolbar",slot:"Root"})({}),X1=te(Cc,{name:"MuiTimePickerToolbar",slot:"Separator"})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),Q1=te("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${Vr.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${Vr.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})({display:"flex",justifyContent:"flex-end",alignItems:"flex-end",variants:[{props:{toolbarDirection:"rtl"},style:{flexDirection:"row-reverse"}},{props:{pickerOrientation:"landscape"},style:{marginTop:"auto"}}]}),Z1=te("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${Vr.ampmLabel}`]:t.ampmLabel},{[`&.${Vr.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${Vr.ampmLabel}`]:{fontSize:17},variants:[{props:{pickerOrientation:"landscape"},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"}}]});function og(e){const t=ke({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:o,className:s,classes:i}=t,a=Ce(t,Y1),l=Me(),c=Dt(),u=xl(),d=G1(i,u),{value:m,setValue:g,disabled:p,readOnly:b,view:f,setView:y,views:x}=Eo(),T=!!(n&&!o&&x.includes("hours")),{meridiemMode:S,handleMeridiemChange:w}=Ql(m,n,R=>g(R,{changeImportance:"set",source:"view"})),E=R=>l.isValid(m)?l.format(m,R):"--",I=h.jsx(X1,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:d.separator});return h.jsxs(K1,D({landscapeDirection:"row",toolbarTitle:c.timePickerToolbarTitle,ownerState:u,className:ue(d.root,s)},a,{children:[h.jsxs(Q1,{className:d.hourMinuteLabel,ownerState:u,children:[Wo(x,"hours")&&h.jsx(Ho,{tabIndex:-1,variant:"h3",onClick:()=>y("hours"),selected:f==="hours",value:E(n?"hours12h":"hours24h")}),Wo(x,["hours","minutes"])&&I,Wo(x,"minutes")&&h.jsx(Ho,{tabIndex:-1,variant:"h3",onClick:()=>y("minutes"),selected:f==="minutes",value:E("minutes")}),Wo(x,["minutes","seconds"])&&I,Wo(x,"seconds")&&h.jsx(Ho,{variant:"h3",onClick:()=>y("seconds"),selected:f==="seconds",value:E("seconds")})]}),T&&h.jsxs(Z1,{className:d.ampmSelection,ownerState:u,children:[h.jsx(Ho,{disableRipple:!0,variant:"subtitle2",selected:S==="am",typographyClassName:d.ampmLabel,value:Wn(l,"am"),onClick:b?void 0:()=>w("am"),disabled:p}),h.jsx(Ho,{disableRipple:!0,variant:"subtitle2",selected:S==="pm",typographyClassName:d.ampmLabel,value:Wn(l,"pm"),onClick:b?void 0:()=>w("pm"),disabled:p})]})]}))}process.env.NODE_ENV!=="production"&&(og.propTypes={ampm:r.bool,ampmInClock:r.bool,classes:r.object,className:r.string,hidden:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),titleId:r.string,toolbarFormat:r.string,toolbarPlaceholder:r.node});function rg(e,t){var l;const n=Me(),o=ke({props:e,name:t}),s=_m(o),i=o.ampm??n.is12HourCycleInCurrentLocale(),a=C.useMemo(()=>{var c;return((c=o.localeText)==null?void 0:c.toolbarTitle)==null?o.localeText:D({},o.localeText,{timePickerToolbarTitle:o.localeText.toolbarTitle})},[o.localeText]);return D({},o,s,{ampm:i,localeText:a},wf({views:o.views,openTo:o.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{slots:D({toolbar:og},o.slots),slotProps:D({},o.slotProps,{toolbar:D({ampm:i,ampmInClock:o.ampmInClock},(l=o.slotProps)==null?void 0:l.toolbar)})})}function J1(e){return Ye("MuiTimeClock",e)}Ze("MuiTimeClock",["root","arrowSwitcher"]);const dr=220,Pn=36,es={x:dr/2,y:dr/2},sg={x:es.x,y:0},eD=sg.x-es.x,tD=sg.y-es.y,nD=e=>e*(180/Math.PI),ig=(e,t,n)=>{const o=t-es.x,s=n-es.y,i=Math.atan2(eD,tD)-Math.atan2(o,s);let a=nD(i);a=Math.round(a/e)*e,a%=360;const l=Math.floor(a/e)||0,c=o**2+s**2,u=Math.sqrt(c);return{value:l,distance:u}},oD=(e,t,n=1)=>{const o=n*6;let{value:s}=ig(o,e,t);return s=s*n%60,s},rD=(e,t,n)=>{const{value:o,distance:s}=ig(30,e,t);let i=o||12;return n?i%=12:s<dr/2-Pn&&(i+=12,i%=24),i};function sD(e){return Ye("MuiClockPointer",e)}Ze("MuiClockPointer",["root","thumb"]);const iD=["className","classes","isBetweenTwoClockValues","isInner","type","viewValue"],aD=e=>Ve({root:["root"],thumb:["thumb"]},sD,e),lD=te("div",{name:"MuiClockPointer",slot:"Root"})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px",variants:[{props:{isClockPointerAnimated:!0},style:{transition:e.transitions.create(["transform","height"])}}]})),cD=te("div",{name:"MuiClockPointer",slot:"Thumb"})(({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Pn/2}px)`,border:`${(Pn-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box",variants:[{props:{isClockPointerBetweenTwoValues:!1},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}));function uD(e){const t=ke({props:e,name:"MuiClockPointer"}),{className:n,classes:o,isBetweenTwoClockValues:s,isInner:i,type:a,viewValue:l}=t,c=Ce(t,iD),u=C.useRef(a);C.useEffect(()=>{u.current=a},[a]);const{ownerState:d}=at(),m=D({},d,{isClockPointerAnimated:u.current!==a,isClockPointerBetweenTwoValues:s}),g=aD(o),p=()=>{let f=360/(a==="hours"?12:60)*l;return a==="hours"&&l>12&&(f-=360),{height:Math.round((i?.26:.4)*dr),transform:`rotateZ(${f}deg)`}};return h.jsx(lD,D({style:p(),className:ue(g.root,n),ownerState:m},c,{children:h.jsx(cD,{ownerState:m,className:g.thumb})}))}function dD(e){return Ye("MuiClock",e)}Ze("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText","selected"]);const pD=(e,t)=>{const n={root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton",t.clockMeridiemMode==="am"&&"selected"],pmButton:["pmButton",t.clockMeridiemMode==="pm"&&"selected"],meridiemText:["meridiemText"]};return Ve(n,dD,e)},fD=te("div",{name:"MuiClock",slot:"Root"})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),mD=te("div",{name:"MuiClock",slot:"Clock"})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),hD=te("div",{name:"MuiClock",slot:"Wrapper"})({"&:focus":{outline:"none"}}),gD=te("div",{name:"MuiClock",slot:"SquareMask"})({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none",variants:[{props:{isClockDisabled:!1},style:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}}]}),bD=te("div",{name:"MuiClock",slot:"Pin"})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),ag=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:Pn,variants:[{props:{clockMeridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),yD=te(Qn,{name:"MuiClock",slot:"AmButton"})(({theme:e})=>D({},ag(e,"am"),{position:"absolute",left:8})),vD=te(Qn,{name:"MuiClock",slot:"PmButton"})(({theme:e})=>D({},ag(e,"pm"),{position:"absolute",right:8})),Jd=te(Jt,{name:"MuiClock",slot:"MeridiemText"})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function xD(e){const t=ke({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:o,autoFocus:s,children:i,value:a,handleMeridiemChange:l,isTimeDisabled:c,meridiemMode:u,minutesStep:d=1,onChange:m,selectedId:g,type:p,viewValue:b,viewRange:[f,y],disabled:x=!1,readOnly:T,className:S,classes:w}=t,E=Me(),I=Dt(),{ownerState:R}=at(),N=D({},R,{isClockDisabled:x,clockMeridiemMode:u}),j=C.useRef(!1),V=C.useRef(null),$=C.useRef(null),v=C.useRef(void 0),O=pD(w,N),P=c(b,p),k=!n&&p==="hours"&&(b<1||b>12),M=(z,q)=>{x||T||c(z,p)||m(z,q)},_=(z,q)=>{const J=$.current;if(!J)return;const U=J.getBoundingClientRect(),ce=z.clientX-U.left,ne=z.clientY-U.top,de=p==="seconds"||p==="minutes"?oD(ce,ne,d):rD(ce,ne,!!n);M(de,q)},A=()=>{var z;j.current=!1,V.current=null,(z=v.current)==null||z.call(v)},B=be(z=>{z.pointerId===V.current&&(z.preventDefault(),_(z,"shallow"))}),L=be(z=>{z.pointerId===V.current&&(A(),_(z,"finish"))}),F=be(z=>{z.pointerId===V.current&&A()}),W=z=>{if(z.button>0||z.isPrimary===!1||x||T)return;A(),j.current=!0,V.current=z.pointerId;const q=Xo($.current);q.addEventListener("pointermove",B),q.addEventListener("pointerup",L),q.addEventListener("pointercancel",F),v.current=()=>{q.removeEventListener("pointermove",B),q.removeEventListener("pointerup",L),q.removeEventListener("pointercancel",F),v.current=void 0},_(z.nativeEvent,"shallow")},G=p==="hours"?!1:b%5!==0,Q=p==="minutes"?d:1,K=C.useRef(null);Kt(()=>{s&&K.current.focus()},[s]),C.useEffect(()=>()=>{var z;return(z=v.current)==null?void 0:z.call(v)},[]);const Z=z=>Math.max(f,Math.min(y,z)),se=z=>(z+(y+1))%(y+1),Y=z=>{if(!j.current)switch(z.key){case"Home":M(f,"partial"),z.preventDefault();break;case"End":M(y,"partial"),z.preventDefault();break;case"ArrowUp":M(se(b+Q),"partial"),z.preventDefault();break;case"ArrowDown":M(se(b-Q),"partial"),z.preventDefault();break;case"PageUp":M(Z(b+5),"partial"),z.preventDefault();break;case"PageDown":M(Z(b-5),"partial"),z.preventDefault();break;case"Enter":case" ":M(b,"finish"),z.preventDefault();break}};return h.jsxs(fD,{className:ue(O.root,S),children:[h.jsxs(mD,{className:O.clock,children:[h.jsx(gD,{ref:$,onPointerDown:W,ownerState:N,className:O.squareMask}),!P&&h.jsxs(C.Fragment,{children:[h.jsx(bD,{className:O.pin}),a!=null&&h.jsx(uD,{type:p,viewValue:b,isInner:k,isBetweenTwoClockValues:G})]}),h.jsx(hD,{"aria-activedescendant":g,"aria-label":I.clockLabelText(p,a==null?null:E.format(a,n?"fullTime12h":"fullTime24h")),ref:K,role:"listbox",onKeyDown:Y,tabIndex:0,className:O.wrapper,children:i})]}),n&&o&&h.jsxs(C.Fragment,{children:[h.jsx(yD,{onClick:T?void 0:()=>l("am"),disabled:x||u===null,ownerState:N,className:O.amButton,title:Wn(E,"am"),children:h.jsx(Jd,{variant:"caption",className:O.meridiemText,children:Wn(E,"am")})}),h.jsx(vD,{disabled:x||u===null,onClick:T?void 0:()=>l("pm"),ownerState:N,className:O.pmButton,title:Wn(E,"pm"),children:h.jsx(Jd,{variant:"caption",className:O.meridiemText,children:Wn(E,"pm")})})]})]})}function CD(e){return Ye("MuiClockNumber",e)}const Ms=Ze("MuiClockNumber",["root","selected","disabled"]),wD=["className","classes","disabled","index","inner","label","selected"],SD=(e,t)=>{const n={root:["root",t.isClockNumberSelected&&"selected",t.isClockNumberDisabled&&"disabled"]};return Ve(n,CD,e)},TD=te("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Ms.disabled}`]:t.disabled},{[`&.${Ms.selected}`]:t.selected}]})(({theme:e})=>({height:Pn,width:Pn,position:"absolute",left:`calc((100% - ${Pn}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${Ms.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${Ms.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled},variants:[{props:{isClockNumberInInnerRing:!0},style:D({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]}));function lg(e){const t=ke({props:e,name:"MuiClockNumber"}),{className:n,classes:o,disabled:s,index:i,inner:a,label:l,selected:c}=t,u=Ce(t,wD),{ownerState:d}=at(),m=D({},d,{isClockNumberInInnerRing:a,isClockNumberSelected:c,isClockNumberDisabled:s}),g=SD(o,m),p=i%12/12*Math.PI*2-Math.PI/2,b=(dr-Pn-2)/2*(a?.65:1),f=Math.round(Math.cos(p)*b),y=Math.round(Math.sin(p)*b);return h.jsx(TD,D({className:ue(g.root,n),"aria-disabled":s?!0:void 0,"aria-selected":c?!0:void 0,role:"option",style:{transform:`translate(${f}px, ${y+(dr-Pn)/2}px`},ownerState:m},u,{children:l}))}const ID=({ampm:e,value:t,getClockNumberText:n,isDisabled:o,selectedId:s,adapter:i})=>{const a=t?i.getHours(t):null,l=[],c=e?1:0,u=e?12:23,d=m=>a===null?!1:e?m===12?a===12||a===0:a===m||a-12===m:a===m;for(let m=c;m<=u;m+=1){let g=m.toString();m===0&&(g="00");const p=!e&&(m===0||m>12);g=i.formatNumber(g);const b=d(m);l.push(h.jsx(lg,{id:b?s:void 0,index:m,inner:p,selected:b,disabled:o(m),label:g,"aria-label":n(g)},m))}return l},ep=({adapter:e,value:t,isDisabled:n,getClockNumberText:o,selectedId:s})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([a,l],c)=>{const u=a===t;return h.jsx(lg,{label:l,id:u?s:void 0,index:c+1,inner:!1,disabled:n(a),selected:u,"aria-label":o(l)},a)})},wc=({value:e,referenceDate:t,adapter:n,props:o,timezone:s})=>{const i=C.useMemo(()=>xt.getInitialReferenceValue({value:e,adapter:n,props:o,referenceDate:t,granularity:an.day,timezone:s,getTodayDate:()=>dl(n,s,"date")}),[t,s]);return e??i},ED=["ampm","ampmInClock","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","timezone"],kD=e=>Ve({root:["root"],arrowSwitcher:["arrowSwitcher"]},J1,e),OD=te(Qi,{name:"MuiTimeClock",slot:"Root"})({display:"flex",flexDirection:"column",position:"relative"}),_D=te(Xl,{name:"MuiTimeClock",slot:"ArrowSwitcher"})({position:"absolute",right:12,top:15}),PD=["hours","minutes"],Sc=C.forwardRef(function(t,n){const o=Me(),s=ke({props:t,name:"MuiTimeClock"}),{ampm:i=o.is12HourCycleInCurrentLocale(),ampmInClock:a=!1,autoFocus:l,slots:c,slotProps:u,value:d,defaultValue:m,referenceDate:g,disableIgnoringDatePartForTimeValidation:p=!1,maxTime:b,minTime:f,disableFuture:y,disablePast:x,minutesStep:T=1,shouldDisableTime:S,showViewSwitcher:w,onChange:E,view:I,views:R=PD,openTo:N,onViewChange:j,focusedView:V,onFocusedViewChange:$,className:v,classes:O,disabled:P,readOnly:k,timezone:M}=s,_=Ce(s,ED),{value:A,handleValueChange:B,timezone:L}=oo({name:"TimeClock",timezone:M,value:d,defaultValue:m,referenceDate:g,onChange:E,valueManager:xt}),F=wc({value:A,referenceDate:g,adapter:o,props:s,timezone:L}),W=Dt(),G=ko(L),Q=Ai(),{ownerState:K}=at(),{view:Z,setView:se,previousView:Y,nextView:z,setValueAndGoToNextView:q}=gs({view:I,views:R,openTo:N,onViewChange:j,onChange:B,focusedView:V,onFocusedViewChange:$}),{meridiemMode:J,handleMeridiemChange:U}=Ql(F,i,q),ce=C.useCallback((fe,ae)=>{const oe=ls(p,o),he=ae==="hours"||ae==="minutes"&&R.includes("seconds"),ee=({start:re,end:xe})=>!(f&&oe(f,xe)||b&&oe(re,b)||y&&oe(re,G)||x&&oe(G,he?xe:re)),le=(re,xe=1)=>{if(re%xe!==0)return!1;if(S)switch(ae){case"hours":return!S(o.setHours(F,re),"hours");case"minutes":return!S(o.setMinutes(F,re),"minutes");case"seconds":return!S(o.setSeconds(F,re),"seconds");default:return!1}return!0};switch(ae){case"hours":{const re=Yr(fe,J,i),xe=o.setHours(F,re);if(o.getHours(xe)!==re)return!0;const we=o.setSeconds(o.setMinutes(xe,0),0),pe=o.setSeconds(o.setMinutes(xe,59),59);return!ee({start:we,end:pe})||!le(re)}case"minutes":{const re=o.setMinutes(F,fe),xe=o.setSeconds(re,0),we=o.setSeconds(re,59);return!ee({start:xe,end:we})||!le(fe,T)}case"seconds":{const re=o.setSeconds(F,fe);return!ee({start:re,end:re})||!le(fe)}default:throw new Error("not supported")}},[i,F,p,b,J,f,T,S,o,y,x,G,R]),ne=C.useMemo(()=>{switch(Z){case"hours":{const fe=(he,ee)=>{const le=Yr(he,J,i);q(o.setHours(F,le),ee,"hours")},ae=o.getHours(F);let oe;return i?ae>12?oe=[12,23]:oe=[0,11]:oe=[0,23],{onChange:fe,viewValue:ae,children:ID({value:A,adapter:o,ampm:i,getClockNumberText:W.hoursClockNumberText,isDisabled:he=>P||ce(he,"hours"),selectedId:Q}),viewRange:oe}}case"minutes":{const fe=o.getMinutes(F);return{viewValue:fe,onChange:(oe,he)=>{q(o.setMinutes(F,oe),he,"minutes")},children:ep({adapter:o,value:fe,getClockNumberText:W.minutesClockNumberText,isDisabled:oe=>P||ce(oe,"minutes"),selectedId:Q}),viewRange:[0,59]}}case"seconds":{const fe=o.getSeconds(F);return{viewValue:fe,onChange:(oe,he)=>{q(o.setSeconds(F,oe),he,"seconds")},children:ep({adapter:o,value:fe,getClockNumberText:W.secondsClockNumberText,isDisabled:oe=>P||ce(oe,"seconds"),selectedId:Q}),viewRange:[0,59]}}default:throw new Error(process.env.NODE_ENV!=="production"?"MUI X: You must provide the type for ClockView":je(147))}},[Z,o,A,i,W.hoursClockNumberText,W.minutesClockNumberText,W.secondsClockNumberText,J,q,F,ce,Q,P]),de=kD(O);return h.jsxs(OD,D({ref:n,className:ue(de.root,v),ownerState:K},_,{children:[h.jsx(xD,D({autoFocus:l??!!V,ampmInClock:a&&R.includes("hours"),value:A,type:Z,ampm:i,minutesStep:T,isTimeDisabled:ce,meridiemMode:J,handleMeridiemChange:U,selectedId:Q,disabled:P,readOnly:k},ne)),w&&h.jsx(_D,{className:de.arrowSwitcher,slots:c,slotProps:u,onGoToPrevious:()=>se(Y),isPreviousDisabled:!Y,previousLabel:W.openPreviousView,onGoToNext:()=>se(z),isNextDisabled:!z,nextLabel:W.openNextView,ownerState:K})]}))});process.env.NODE_ENV!=="production"&&(Sc.displayName="TimeClock");process.env.NODE_ENV!=="production"&&(Sc.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,classes:r.object,className:r.string,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,focusedView:r.oneOf(["hours","minutes","seconds"]),maxTime:r.object,minTime:r.object,minutesStep:r.number,onChange:r.func,onFocusedViewChange:r.func,onViewChange:r.func,openTo:r.oneOf(["hours","minutes","seconds"]),readOnly:r.bool,referenceDate:r.object,shouldDisableTime:r.func,showViewSwitcher:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,view:r.oneOf(["hours","minutes","seconds"]),views:r.arrayOf(r.oneOf(["hours","minutes","seconds"]).isRequired)});const tp=Pe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),np=Pe("MuiListItemIcon",["root","alignItemsFlexStart"]),op=Pe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function MD(e){return Re("MuiMenuItem",e)}const wr=Pe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);function ba(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function rp(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function cg(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Sr(e,t,n,o,s,i){let a=!1,l=s(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const c=o?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!cg(l,i)||c)l=s(e,l,n);else return l.focus(),!0}return!1}const Tc=C.forwardRef(function(t,n){const{actions:o,autoFocus:s=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:m="selectedMenu",...g}=t,p=C.useRef(null),b=C.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});qn(()=>{s&&p.current.focus()},[s]),C.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(S,{direction:w})=>{const E=!p.current.style.width;if(S.clientHeight<p.current.clientHeight&&E){const I=`${Jm(Zr(S))}px`;p.current.style[w==="rtl"?"paddingLeft":"paddingRight"]=I,p.current.style.width=`calc(100% + ${I})`}return p.current}}),[]);const f=S=>{const w=p.current,E=S.key;if(S.ctrlKey||S.metaKey||S.altKey){d&&d(S);return}const R=_r(yn(w));if(E==="ArrowDown")S.preventDefault(),Sr(w,R,u,c,ba);else if(E==="ArrowUp")S.preventDefault(),Sr(w,R,u,c,rp);else if(E==="Home")S.preventDefault(),Sr(w,null,u,c,ba);else if(E==="End")S.preventDefault(),Sr(w,null,u,c,rp);else if(E.length===1){const N=b.current,j=E.toLowerCase(),V=performance.now();N.keys.length>0&&(V-N.lastTime>500?(N.keys=[],N.repeating=!0,N.previousKeyMatched=!0):N.repeating&&j!==N.keys[0]&&(N.repeating=!1)),N.lastTime=V,N.keys.push(j);const $=R&&!N.repeating&&cg(R,N);N.previousKeyMatched&&($||Sr(w,R,!1,c,ba,N))?S.preventDefault():N.previousKeyMatched=!1}d&&d(S)},y=It(p,n);let x=-1;C.Children.forEach(a,(S,w)=>{if(!C.isValidElement(S)){x===w&&(x+=1,x>=a.length&&(x=-1));return}process.env.NODE_ENV!=="production"&&i1.isFragment(S)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
221
+ `)),S.props.disabled||(m==="selectedMenu"&&S.props.selected||x===-1)&&(x=w),x===w&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(x+=1,x>=a.length&&(x=-1))});const T=C.Children.map(a,(S,w)=>{if(w===x){const E={};return i&&(E.autoFocus=!0),S.props.tabIndex===void 0&&m==="selectedMenu"&&(E.tabIndex=0),C.cloneElement(S,E)}return S});return h.jsx(Al,{role:"menu",ref:y,className:l,onKeyDown:f,tabIndex:s?0:-1,...g,children:T})});process.env.NODE_ENV!=="production"&&(Tc.propTypes={autoFocus:r.bool,autoFocusItem:r.bool,children:r.node,className:r.string,disabledItemsFocusable:r.bool,disableListWrap:r.bool,onKeyDown:r.func,variant:r.oneOf(["menu","selectedMenu"])});const Ic=C.createContext(null);process.env.NODE_ENV!=="production"&&(Ic.displayName="SelectFocusSourceContext");function DD(){return C.useContext(Ic)}Ic.Provider;function RD(e,t){if(t==null){e.focus();return}try{e.focus({focusVisible:t==="keyboard"})}catch{e.focus()}}const ND=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},$D=e=>{const{disabled:t,dense:n,divider:o,disableGutters:s,selected:i,classes:a}=e,c=Ae({root:["root",n&&"dense",t&&"disabled",!s&&"gutters",o&&"divider",i&&"selected"]},MD,a);return{...a,...c}},jD=te(Xn,{shouldForwardProp:e=>pr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:ND})(ct(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${wr.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${wr.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${wr.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${wr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${tp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${tp.inset}`]:{marginLeft:52},[`& .${op.root}`]:{marginTop:0,marginBottom:0},[`& .${op.inset}`]:{paddingLeft:36},[`& .${np.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${np.root} svg`]:{fontSize:"1.25rem"}}}]}))),Ec=C.forwardRef(function(t,n){const o=Je({props:t,name:"MuiMenuItem"}),{autoFocus:s=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:m,className:g,...p}=o,b=DD(),f=C.useContext(Un),y=C.useMemo(()=>({dense:a||f.dense||!1,disableGutters:c}),[f.dense,a,c]),x=C.useRef(null);qn(()=>{s&&(x.current?RD(x.current,b):process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[s]);const T={...o,dense:y.dense,divider:l,disableGutters:c},S=$D(o),w=It(x,n),{root:E,...I}=S;let R;return o.disabled||(R=m!==void 0?m:-1),h.jsx(Un.Provider,{value:y,children:h.jsx(jD,{ref:w,role:d,tabIndex:R,component:i,focusVisibleClassName:ue(S.focusVisible,u),className:ue(S.root,g),...p,ownerState:T,classes:I})})});process.env.NODE_ENV!=="production"&&(Ec.propTypes={autoFocus:r.bool,children:r.node,classes:r.object,className:r.string,component:r.elementType,dense:r.bool,disabled:r.bool,disableGutters:r.bool,divider:r.bool,focusVisibleClassName:r.string,role:r.string,selected:r.bool,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),tabIndex:r.number});function AD(e){return Ye("MuiDigitalClock",e)}Ze("MuiDigitalClock",["root","list","item"]);const LD=["ampm","timeStep","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","views","skipDisabled","timezone"],VD=e=>Ve({root:["root"],list:["list"],item:["item"]},AD,e),FD=te(Qi,{name:"MuiDigitalClock",slot:"Root"})({overflowY:"auto",width:"100%",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},maxHeight:Tm,variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]}),BD=te(Tc,{name:"MuiDigitalClock",slot:"List"})({padding:0}),zD=te(Ec,{name:"MuiDigitalClock",slot:"Item",shouldForwardProp:e=>e!=="itemValue"&&e!=="formattedValue"})(({theme:e})=>({padding:"8px 16px",margin:"2px 4px","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.focusOpacity)}})),kc=C.forwardRef(function(t,n){const o=Me(),s=C.useRef(null),i=wt(n,s),a=C.useRef(null),l=C.useRef(null),c=ke({props:t,name:"MuiDigitalClock"}),{ampm:u=o.is12HourCycleInCurrentLocale(),timeStep:d=30,autoFocus:m,slots:g,slotProps:p,value:b,defaultValue:f,referenceDate:y,disableIgnoringDatePartForTimeValidation:x=!1,maxTime:T,minTime:S,disableFuture:w,disablePast:E,minutesStep:I=1,shouldDisableTime:R,onChange:N,view:j,openTo:V,onViewChange:$,focusedView:v,onFocusedViewChange:O,className:P,classes:k,disabled:M,readOnly:_,views:A=["hours"],skipDisabled:B=!1,timezone:L}=c,F=Ce(c,LD),{value:W,handleValueChange:G,timezone:Q}=oo({name:"DigitalClock",timezone:L,value:b,defaultValue:f,referenceDate:y,onChange:N,valueManager:xt}),K=Dt(),Z=ko(Q),{ownerState:se}=at(),Y=D({},se,{hasDigitalClockAlreadyBeenRendered:!!s.current}),z=VD(k),q=(g==null?void 0:g.digitalClockItem)??zD,J=Le({elementType:q,externalSlotProps:p==null?void 0:p.digitalClockItem,ownerState:Y,className:z.item}),U=wc({value:W,referenceDate:y,adapter:o,props:c,timezone:Q}),ce=be(ee=>G(ee,"finish","hours")),{setValueAndGoToNextView:ne}=gs({view:j,views:A,openTo:V,onViewChange:$,onChange:ce,focusedView:v,onFocusedViewChange:O}),de=be(ee=>{ne(ee,"finish")});Kt(()=>{if(s.current===null)return;const ee=s.current.querySelector('[role="listbox"] [role="option"][tabindex="0"], [role="listbox"] [role="option"][aria-selected="true"]');if(!ee)return;const le=ee.offsetTop;(m||v)&&ee!==l.current&&(l.current=ee,ee.focus()),s.current.scrollTop=le-4});const fe=C.useCallback(ee=>{const le=ls(x,o),re=()=>!(S&&le(S,ee)||T&&le(ee,T)||w&&le(ee,Z)||E&&le(Z,ee)),xe=()=>o.getMinutes(ee)%I!==0?!1:R?!R(ee,"hours"):!0;return!re()||!xe()},[x,o,S,T,w,Z,E,I,R]),ae=C.useMemo(()=>{const ee=[];let re=o.startOfDay(U);for(;o.isSameDay(U,re);)ee.push(re),re=o.addMinutes(re,d);return ee},[U,d,o]),oe=ae.findIndex(ee=>o.isEqual(ee,U)),he=ee=>{switch(ee.key){case"PageUp":{const le=oi(a.current)-5,re=a.current.children,xe=Math.max(0,le),we=re[xe];we&&we.focus(),ee.preventDefault();break}case"PageDown":{const le=oi(a.current)+5,re=a.current.children,xe=Math.min(re.length-1,le),we=re[xe];we&&we.focus(),ee.preventDefault();break}}};return h.jsx(FD,D({ref:i,className:ue(z.root,P),ownerState:Y},F,{children:h.jsx(BD,{ref:a,role:"listbox","aria-label":K.timePickerToolbarTitle,className:z.list,onKeyDown:he,children:ae.map((ee,le)=>{const re=fe(ee);if(B&&re)return null;const xe=o.isEqual(ee,W),we=o.format(ee,u?"fullTime12h":"fullTime24h"),Se=oe===le||oe===-1&&le===0?0:-1;return h.jsx(q,D({onClick:()=>!_&&de(ee),selected:xe,disabled:M||re,disableRipple:_,role:"option","aria-disabled":_,"aria-selected":xe,tabIndex:Se,itemValue:ee,formattedValue:we},J,{children:we}),`${ee.valueOf()}-${we}`)})})}))});process.env.NODE_ENV!=="production"&&(kc.displayName="DigitalClock");process.env.NODE_ENV!=="production"&&(kc.propTypes={ampm:r.bool,autoFocus:r.bool,classes:r.object,className:r.string,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,focusedView:r.oneOf(["hours"]),maxTime:r.object,minTime:r.object,minutesStep:r.number,onChange:r.func,onFocusedViewChange:r.func,onViewChange:r.func,openTo:r.oneOf(["hours"]),readOnly:r.bool,referenceDate:r.object,shouldDisableTime:r.func,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timeStep:r.number,timezone:r.string,value:r.object,view:r.oneOf(["hours"]),views:r.arrayOf(r.oneOf(["hours"]))});function WD(e){return Ye("MuiMultiSectionDigitalClock",e)}Ze("MuiMultiSectionDigitalClock",["root"]);function UD(e){return Ye("MuiMultiSectionDigitalClockSection",e)}Ze("MuiMultiSectionDigitalClockSection",["root","item"]);const HD=["autoFocus","onChange","className","classes","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],qD=e=>Ve({root:["root"],item:["item"]},UD,e),YD=te(Tc,{name:"MuiMultiSectionDigitalClockSection",slot:"Root"})(({theme:e})=>({maxHeight:Tm,width:56,padding:0,overflow:"hidden",scrollbarWidth:"thin","@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"auto"},"@media (pointer: fine)":{"&:hover":{overflowY:"auto"}},"@media (pointer: none), (pointer: coarse)":{overflowY:"auto"},"&:not(:first-of-type)":{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},variants:[{props:{hasDigitalClockAlreadyBeenRendered:!0},style:{"@media (prefers-reduced-motion: no-preference)":{scrollBehavior:"smooth"}}}]})),GD=te(Ec,{name:"MuiMultiSectionDigitalClockSection",slot:"Item"})(({theme:e})=>({padding:8,margin:"2px 4px",width:oI,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.hoverOpacity)},"&.Mui-selected":{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:focus-visible, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}},"&.Mui-focusVisible":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.focusOpacity)}})),ug=C.forwardRef(function(t,n){const o=C.useRef(null),s=wt(n,o),i=C.useRef(null),a=C.useRef(!1),l=ke({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:c,onChange:u,className:d,classes:m,disabled:g,readOnly:p,items:b,active:f,slots:y,slotProps:x,skipDisabled:T}=l,S=Ce(l,HD),{ownerState:w}=at(),E=D({},w,{hasDigitalClockAlreadyBeenRendered:!!o.current}),I=qD(m),R=(y==null?void 0:y.digitalClockSectionItem)??GD;Kt(()=>{if(o.current===null)return;const $=o.current.querySelector('[role="option"][tabindex="0"], [role="option"][aria-selected="true"]');if(!$)return;const v=document.activeElement,O=i.current===$,P=!!v&&o.current.contains(v),k=O&&a.current;if(f&&c&&(!O||k)&&(i.current==null||a.current||P)&&(i.current=$,a.current=!1,$.focus()),O)return;const M=$.offsetTop,_=$.offsetHeight,A=o.current.clientHeight,B=o.current.scrollHeight,L=M-A/2+_/2,F=B-A,W=Math.min(L,F);o.current.scrollTop=Math.max(0,W)});const N=be($=>{const v=$.relatedTarget,O=v==null?void 0:v.parentElement,P=v==null?void 0:v.getAttribute("role"),k=(O==null?void 0:O.nodeName)==="UL"&&O!==o.current||P==="gridcell";a.current=k,i.current&&(O==null?void 0:O.nodeName)==="UL"&&O!==o.current&&(i.current=null)});C.useEffect(()=>{f||(i.current=null)},[f]);const j=b.findIndex($=>$.isFocused($.value)),V=be($=>{switch($.key){case"Tab":{a.current=!0;break}case"PageUp":{const v=oi(o.current)-5,O=o.current.children,P=Math.max(0,v),k=O[P];k&&k.focus(),$.preventDefault();break}case"PageDown":{const v=oi(o.current)+5,O=o.current.children,P=Math.min(O.length-1,v),k=O[P];k&&k.focus(),$.preventDefault();break}}});return h.jsx(YD,D({ref:s,className:ue(I.root,d),ownerState:E,role:"listbox",onKeyDown:V,onBlur:N},S,{children:b.map(($,v)=>{var _;const O=(_=$.isDisabled)==null?void 0:_.call($,$.value),P=g||O;if(T&&P)return null;const k=$.isSelected($.value),M=j===v||j===-1&&v===0?0:-1;return h.jsx(R,D({onClick:()=>!p&&u($.value),selected:k,disabled:P,disableRipple:p,role:"option","aria-disabled":p||P||void 0,"aria-label":$.ariaLabel,"aria-selected":k,tabIndex:M,className:I.item},x==null?void 0:x.digitalClockSectionItem,{children:$.label}),$.label)})}))});process.env.NODE_ENV!=="production"&&(ug.displayName="MultiSectionDigitalClockSection");const KD=({now:e,value:t,adapter:n,ampm:o,isDisabled:s,resolveAriaLabel:i,timeStep:a,valueOrReferenceDate:l})=>{const c=t?n.getHours(t):null,u=[],d=(b,f)=>{const y=f??c;return y===null?!1:o?b===12?y===12||y===0:y===b||y-12===b:y===b},m=b=>d(b,n.getHours(l)),g=n.setDate(n.setMonth(n.startOfDay(e),0),15),p=o?11:23;for(let b=0;b<=p;b+=a){let f=n.format(n.setHours(g,b),o?"hours12h":"hours24h");const y=i(parseInt(f,10).toString());f=n.formatNumber(f),u.push({value:b,label:f,isSelected:d,isDisabled:s,isFocused:m,ariaLabel:y})}return u},sp=({value:e,adapter:t,isDisabled:n,timeStep:o,resolveLabel:s,resolveAriaLabel:i,hasValue:a=!0})=>{const l=u=>e===null?!1:a&&e===u,c=u=>e===u;return[...Array.from({length:Math.ceil(60/o)},(u,d)=>{const m=o*d;return{value:m,label:t.formatNumber(s(m)),isDisabled:n,isSelected:l,isFocused:c,ariaLabel:i(m.toString())}})]},XD=["ampm","timeSteps","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","classes","disabled","readOnly","skipDisabled","timezone"],QD=e=>Ve({root:["root"]},WD,e),ZD=te(Qi,{name:"MuiMultiSectionDigitalClock",slot:"Root"})(({theme:e})=>({flexDirection:"row",width:"100%",borderBottom:`1px solid ${(e.vars||e).palette.divider}`})),Oc=C.forwardRef(function(t,n){const o=Me(),s=cn(),i=ke({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=o.is12HourCycleInCurrentLocale(),timeSteps:l,autoFocus:c,slots:u,slotProps:d,value:m,defaultValue:g,referenceDate:p,disableIgnoringDatePartForTimeValidation:b=!1,maxTime:f,minTime:y,disableFuture:x,disablePast:T,minutesStep:S=1,shouldDisableTime:w,onChange:E,view:I,views:R=["hours","minutes"],openTo:N,onViewChange:j,focusedView:V,onFocusedViewChange:$,className:v,classes:O,disabled:P,readOnly:k,skipDisabled:M=!1,timezone:_}=i,A=Ce(i,XD),{value:B,handleValueChange:L,timezone:F}=oo({name:"MultiSectionDigitalClock",timezone:_,value:m,defaultValue:g,referenceDate:p,onChange:E,valueManager:xt}),W=Dt(),G=ko(F),Q=C.useMemo(()=>D({hours:1,minutes:5,seconds:5},l),[l]),K=wc({value:B,referenceDate:p,adapter:o,props:i,timezone:F}),Z=be((ee,le,re)=>L(ee,le,re)),se=C.useMemo(()=>!a||!R.includes("hours")||R.includes("meridiem")?R:[...R,"meridiem"],[a,R]),{view:Y,setValueAndGoToNextView:z,focusedView:q}=gs({view:I,views:se,openTo:N,onViewChange:j,onChange:Z,focusedView:V,onFocusedViewChange:$}),J=be(ee=>{z(ee,"finish","meridiem")}),{meridiemMode:U,handleMeridiemChange:ce}=Ql(K,a,J,"finish"),ne=C.useCallback((ee,le)=>{const re=ls(b,o),xe=le==="hours"||le==="minutes"&&se.includes("seconds"),we=({start:Se,end:Ee})=>!(y&&re(y,Ee)||f&&re(Se,f)||x&&re(Se,G)||T&&re(G,xe?Ee:Se)),pe=(Se,Ee=1)=>{if(Se%Ee!==0)return!1;if(w)switch(le){case"hours":return!w(o.setHours(K,Se),"hours");case"minutes":return!w(o.setMinutes(K,Se),"minutes");case"seconds":return!w(o.setSeconds(K,Se),"seconds");default:return!1}return!0};switch(le){case"hours":{const Se=Yr(ee,U,a),Ee=o.setHours(K,Se);if(o.getHours(Ee)!==Se)return!0;const Ue=o.setSeconds(o.setMinutes(Ee,0),0),_t=o.setSeconds(o.setMinutes(Ee,59),59);return!we({start:Ue,end:_t})||!pe(Se)}case"minutes":{const Se=o.setMinutes(K,ee),Ee=o.setSeconds(Se,0),Ue=o.setSeconds(Se,59);return!we({start:Ee,end:Ue})||!pe(ee,S)}case"seconds":{const Se=o.setSeconds(K,ee);return!we({start:Se,end:Se})||!pe(ee)}default:throw new Error("not supported")}},[a,K,b,f,U,y,S,w,o,x,T,G,se]),de=C.useCallback(ee=>{switch(ee){case"hours":return{onChange:le=>{const re=Yr(le,U,a);z(o.setHours(K,re),"finish","hours")},items:KD({now:G,value:B,ampm:a,adapter:o,isDisabled:le=>ne(le,"hours"),timeStep:Q.hours,resolveAriaLabel:W.hoursClockNumberText,valueOrReferenceDate:K})};case"minutes":return{onChange:le=>{z(o.setMinutes(K,le),"finish","minutes")},items:sp({value:o.getMinutes(K),adapter:o,isDisabled:le=>ne(le,"minutes"),resolveLabel:le=>o.format(o.setMinutes(G,le),"minutes"),timeStep:Q.minutes,hasValue:!!B,resolveAriaLabel:W.minutesClockNumberText})};case"seconds":return{onChange:le=>{z(o.setSeconds(K,le),"finish","seconds")},items:sp({value:o.getSeconds(K),adapter:o,isDisabled:le=>ne(le,"seconds"),resolveLabel:le=>o.format(o.setSeconds(G,le),"seconds"),timeStep:Q.seconds,hasValue:!!B,resolveAriaLabel:W.secondsClockNumberText})};case"meridiem":{const le=Wn(o,"am"),re=Wn(o,"pm");return{onChange:ce,items:[{value:"am",label:le,isSelected:()=>!!B&&U==="am",isFocused:()=>!!K&&U==="am",ariaLabel:le},{value:"pm",label:re,isSelected:()=>!!B&&U==="pm",isFocused:()=>!!K&&U==="pm",ariaLabel:re}]}}default:throw new Error(process.env.NODE_ENV!=="production"?`MUI X Date Pickers: Unknown view "${ee}" found in MultiSectionDigitalClock. This view is not supported by the component. Use valid view values: "hours", "minutes", "seconds", or "meridiem".`:je(144,ee))}},[G,B,a,o,Q.hours,Q.minutes,Q.seconds,W.hoursClockNumberText,W.minutesClockNumberText,W.secondsClockNumberText,U,z,K,ne,ce]),fe=C.useMemo(()=>{if(!s)return se;const ee=se.filter(le=>le!=="meridiem");return ee.reverse(),se.includes("meridiem")&&ee.push("meridiem"),ee},[s,se]),ae=C.useMemo(()=>se.reduce((ee,le)=>D({},ee,{[le]:de(le)}),{}),[se,de]),{ownerState:oe}=at(),he=QD(O);return h.jsx(ZD,D({ref:n,className:ue(he.root,v),ownerState:oe,role:"group"},A,{children:fe.map(ee=>h.jsx(ug,{items:ae[ee].items,onChange:ae[ee].onChange,active:Y===ee,autoFocus:c||q===ee,disabled:P,readOnly:k,slots:u,slotProps:d,skipDisabled:M,"aria-label":W.selectViewText(ee)},ee))}))});process.env.NODE_ENV!=="production"&&(Oc.displayName="MultiSectionDigitalClock");process.env.NODE_ENV!=="production"&&(Oc.propTypes={ampm:r.bool,autoFocus:r.bool,classes:r.object,className:r.string,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disablePast:r.bool,focusedView:r.oneOf(["hours","meridiem","minutes","seconds"]),maxTime:r.object,minTime:r.object,minutesStep:r.number,onChange:r.func,onFocusedViewChange:r.func,onViewChange:r.func,openTo:r.oneOf(["hours","meridiem","minutes","seconds"]),readOnly:r.bool,referenceDate:r.object,shouldDisableTime:r.func,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timeSteps:r.shape({hours:r.number,minutes:r.number,seconds:r.number}),timezone:r.string,value:r.object,view:r.oneOf(["hours","meridiem","minutes","seconds"]),views:r.arrayOf(r.oneOf(["hours","meridiem","minutes","seconds"]).isRequired)});const Hs=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:g,minTime:p,maxTime:b,shouldDisableTime:f,minutesStep:y,ampm:x,ampmInClock:T,slots:S,slotProps:w,readOnly:E,disabled:I,sx:R,autoFocus:N,showViewSwitcher:j,disableIgnoringDatePartForTimeValidation:V,timezone:$})=>h.jsx(Sc,{view:e,onViewChange:t,focusedView:n&&or(n)?n:null,onFocusedViewChange:o,views:s.filter(or),value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:g,minTime:p,maxTime:b,shouldDisableTime:f,minutesStep:y,ampm:x,ampmInClock:T,slots:S,slotProps:w,readOnly:E,disabled:I,sx:R,autoFocus:N,showViewSwitcher:j,disableIgnoringDatePartForTimeValidation:V,timezone:$});process.env.NODE_ENV!=="production"&&(Hs.displayName="renderTimeViewClock");const dg=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:g,minTime:p,maxTime:b,shouldDisableTime:f,minutesStep:y,ampm:x,slots:T,slotProps:S,readOnly:w,disabled:E,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:N,timeSteps:j,skipDisabled:V,timezone:$})=>h.jsx(kc,{view:e,onViewChange:t,focusedView:n&&or(n)?n:null,onFocusedViewChange:o,views:s.filter(or),value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:g,minTime:p,maxTime:b,shouldDisableTime:f,minutesStep:y,ampm:x,slots:T,slotProps:S,readOnly:w,disabled:E,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:N,timeStep:j==null?void 0:j.minutes,skipDisabled:V,timezone:$});process.env.NODE_ENV!=="production"&&(dg.displayName="renderDigitalClockTimeView");const Wa=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:o,views:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:g,minTime:p,maxTime:b,shouldDisableTime:f,minutesStep:y,ampm:x,slots:T,slotProps:S,readOnly:w,disabled:E,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:N,timeSteps:j,skipDisabled:V,timezone:$})=>h.jsx(Oc,{view:e,onViewChange:t,focusedView:n&&Sf(n)?n:null,onFocusedViewChange:o,views:s.filter(or),value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:m,disablePast:g,minTime:p,maxTime:b,shouldDisableTime:f,minutesStep:y,ampm:x,slots:T,slotProps:S,readOnly:w,disabled:E,sx:I,autoFocus:R,disableIgnoringDatePartForTimeValidation:N,timeSteps:j,skipDisabled:V,timezone:$});process.env.NODE_ENV!=="production"&&(Wa.displayName="renderMultiSectionDigitalClockTimeView");const JD=(e,t,n)=>n?t.filter(o=>!Sf(o)||o==="hours"):e?[...t,"meridiem"]:t,eR=(e,t)=>1440/((e.hours??1)*(e.minutes??5))<=t;function tR({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:o}){const s=e??24,i=D({hours:1,minutes:5,seconds:5},n),a=eR(i,s);return{thresholdToRenderTimeInASingleColumn:s,timeSteps:i,shouldRenderTimeInASingleColumn:a,views:JD(t,o,a)}}const _c=C.forwardRef(function(t,n){var f,y;const o=Me(),s=rg(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:i,views:a,timeSteps:l}=tR(s),c=i?dg:Wa,u=D({hours:c,minutes:c,seconds:c,meridiem:c},s.viewRenderers),d=s.ampmInClock??!0,g=((f=u.hours)==null?void 0:f.name)===Wa.name?a:a.filter(x=>x!=="meridiem"),p=D({},s,{ampmInClock:d,timeSteps:l,viewRenderers:u,format:If(o,s),views:i?["hours"]:g,slots:D({field:ea},s.slots),slotProps:D({},s.slotProps,{field:x=>{var T;return D({},Gn((T=s.slotProps)==null?void 0:T.field,x),Mi(s))},toolbar:D({hidden:!0,ampmInClock:d},(y=s.slotProps)==null?void 0:y.toolbar)})}),{renderPicker:b}=km({ref:n,props:p,valueManager:xt,valueType:"time",validator:Di,steps:null});return b()});process.env.NODE_ENV!=="production"&&(_c.displayName="DesktopTimePicker");process.env.NODE_ENV!=="production"&&(_c.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,className:r.string,closeOnSelect:r.bool,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disableOpenPicker:r.bool,disablePast:r.bool,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),inputRef:Ft,keepOpenDuringFieldFocus:r.bool,label:r.node,localeText:r.object,maxTime:r.object,minTime:r.object,minutesStep:r.number,name:r.string,onAccept:r.func,onChange:r.func,onClose:r.func,onError:r.func,onOpen:r.func,onSelectedSectionsChange:r.func,onViewChange:r.func,open:r.bool,openTo:r.oneOf(["hours","meridiem","minutes","seconds"]),orientation:r.oneOf(["landscape","portrait"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableTime:r.func,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),thresholdToRenderTimeInASingleColumn:r.number,timeSteps:r.shape({hours:r.number,minutes:r.number,seconds:r.number}),timezone:r.string,value:r.object,view:r.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:r.shape({hours:r.func,meridiem:r.func,minutes:r.func,seconds:r.func}),views:r.arrayOf(r.oneOf(["hours","minutes","seconds"]).isRequired)});const Pc=C.forwardRef(function(t,n){var u;const o=Me(),s=rg(t,"MuiMobileTimePicker"),i=D({hours:Hs,minutes:Hs,seconds:Hs},s.viewRenderers),a=s.ampmInClock??!1,l=D({},s,{ampmInClock:a,viewRenderers:i,format:If(o,s),slots:D({field:ea},s.slots),slotProps:D({},s.slotProps,{field:d=>{var m;return D({},Gn((m=s.slotProps)==null?void 0:m.field,d),Mi(s))},toolbar:D({hidden:!1,ampmInClock:a},(u=s.slotProps)==null?void 0:u.toolbar)})}),{renderPicker:c}=oh({ref:n,props:l,valueManager:xt,valueType:"time",validator:Di,steps:null});return c()});process.env.NODE_ENV!=="production"&&(Pc.displayName="MobileTimePicker");process.env.NODE_ENV!=="production"&&(Pc.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,className:r.string,closeOnSelect:r.bool,defaultValue:r.object,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disableOpenPicker:r.bool,disablePast:r.bool,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),inputRef:Ft,keepOpenDuringFieldFocus:r.bool,label:r.node,localeText:r.object,maxTime:r.object,minTime:r.object,minutesStep:r.number,name:r.string,onAccept:r.func,onChange:r.func,onClose:r.func,onError:r.func,onOpen:r.func,onSelectedSectionsChange:r.func,onViewChange:r.func,open:r.bool,openTo:r.oneOf(["hours","minutes","seconds"]),orientation:r.oneOf(["landscape","portrait"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableTime:r.func,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timezone:r.string,value:r.object,view:r.oneOf(["hours","minutes","seconds"]),viewRenderers:r.shape({hours:r.func,minutes:r.func,seconds:r.func}),views:r.arrayOf(r.oneOf(["hours","minutes","seconds"]).isRequired)});const nR=["desktopModeMediaQuery"],Mc=C.forwardRef(function(t,n){const o=ke({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:s=am}=o,i=Ce(o,nR);return cl(s,{defaultMatches:!0})?h.jsx(_c,D({ref:n},i)):h.jsx(Pc,D({ref:n},i))});process.env.NODE_ENV!=="production"&&(Mc.displayName="TimePicker");process.env.NODE_ENV!=="production"&&(Mc.propTypes={ampm:r.bool,ampmInClock:r.bool,autoFocus:r.bool,className:r.string,closeOnSelect:r.bool,defaultValue:r.object,desktopModeMediaQuery:r.string,disabled:r.bool,disableFuture:r.bool,disableIgnoringDatePartForTimeValidation:r.bool,disableOpenPicker:r.bool,disablePast:r.bool,format:r.string,formatDensity:r.oneOf(["dense","spacious"]),inputRef:Ft,keepOpenDuringFieldFocus:r.bool,label:r.node,localeText:r.object,maxTime:r.object,minTime:r.object,minutesStep:r.number,name:r.string,onAccept:r.func,onChange:r.func,onClose:r.func,onError:r.func,onOpen:r.func,onSelectedSectionsChange:r.func,onViewChange:r.func,open:r.bool,openTo:r.oneOf(["hours","meridiem","minutes","seconds"]),orientation:r.oneOf(["landscape","portrait"]),readOnly:r.bool,reduceAnimations:r.bool,referenceDate:r.object,selectedSections:r.oneOfType([r.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),r.number]),shouldDisableTime:r.func,skipDisabled:r.bool,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),thresholdToRenderTimeInASingleColumn:r.number,timeSteps:r.shape({hours:r.number,minutes:r.number,seconds:r.number}),timezone:r.string,value:r.object,view:r.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:r.shape({hours:r.func,meridiem:r.func,minutes:r.func,seconds:r.func}),views:r.arrayOf(r.oneOf(["hours","minutes","seconds"]).isRequired)});const pg=H.forwardRef(function(t,n){const{overStyled:o=!1,disabled:s,data:i,onChange:a,className:l,value:c,defaultValue:u,error:d,...m}=t,g=ve(m,o),p=g;delete p.size,delete p.variant,delete p.className;const b=l?`${kt.root} ${l}`:kt.root,f=c??u,y=()=>i.map((x,T)=>typeof x=="string"?h.jsx(ye.MenuItem,{value:x,className:kt.option,"data-selected":x===f?"true":void 0,children:x},`${x}-${T}`):h.jsx(ye.MenuItem,{value:x.value,disabled:x.disabled,className:kt.option,"data-selected":x.value===f?"true":void 0,children:x.label},`${x.value}-${T}`));return h.jsx(ye.Select,{ref:n,disabled:s,value:c,defaultValue:u,onChange:x=>a==null?void 0:a(x.target.value??null),displayEmpty:!0,error:!!d,className:b,classes:{select:kt.input,icon:kt.icon},MenuProps:{classes:{paper:kt.dropdown}},"data-disabled":s?"true":void 0,"data-error":d?"true":void 0,inputProps:{"data-disabled":s?"true":void 0,"data-error":d?"true":void 0,...p.inputProps},...g,children:y()})});pg.displayName="BareDropdown";const oR="TimePicker-module__layoutOverride___zKo4Q",rR="TimePicker-module__root___BcvRu",sR="TimePicker-module__field___lOxtw",iR="TimePicker-module__amPmSelect___mSdvt",Tr={layoutOverride:oR,root:rR,field:sR,amPmSelect:iR};gt.extend(xf);const fg="HH:mm:ss",mg="HH:mm",aR=[{value:"AM",label:"AM"},{value:"PM",label:"PM"}];function qo(e){if(!e)return;const t=e.length>5?fg:mg;return gt(e,t)}function lR(e){const t=qo(e);return t?t.format(e&&e.length>5?"h:mm:ss A":"h:mm A"):e}const hg=H.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:g,error:p,required:b,id:f,className:y,style:x,disabled:T,readOnly:S,readOnlyComponent:w,emptyValueComponent:E,value:I,defaultValue:R,onChange:N,withSeconds:j,minTime:V,maxTime:$,...v}=t,O=ve(v,o),[P,k]=H.useState(()=>qo(I)??qo(R)??null);H.useEffect(()=>{I!==void 0&&k(qo(I)??null)},[I]);const M=P?P.hour()>=12:!1,_=y?`${Tr.layoutOverride} ${y}`:Tr.layoutOverride,A=F=>{k(F),N==null||N(F?F.format(j?fg:mg):null)},B=F=>{A(F)},L=F=>{if(!P||!F)return;const W=F==="PM",G=P.hour(),Q=G>=12;if(W===Q)return;const K=W?G+12:G-12;A(P.hour(K))};return h.jsx(Vt,{ref:n,className:_,style:x,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:o,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,onLabelEditClick:u,label:d,assistiveText:m,assistiveWithIcon:g,error:p,required:b,id:f,readOnly:S,readOnlyComponent:w,emptyValueComponent:E||void 0,readOnlyType:"text",readOnlyValue:lR(I!==void 0?I:R),readOnlyNativeProps:t,activeComponent:h.jsxs("div",{className:Tr.root,"data-error":p?"true":void 0,children:[h.jsx(as,{dateAdapter:Cf,children:h.jsx(Mc,{...O,value:P,onChange:B,disabled:T,format:`hh:${j?"mm:ss":"mm"}`,views:j?["hours","minutes","seconds"]:["hours","minutes"],minTime:qo(V),maxTime:qo($),slots:{openPickerButton:()=>null},slotProps:{field:{className:Tr.field}}})}),h.jsx(pg,{overStyled:!0,className:Tr.amPmSelect,style:{width:"fit-content"},data:aR,value:M?"PM":"AM",onChange:L,disabled:T,error:!!p,"aria-label":"AM or PM"})]})})});hg.displayName="TimePicker";const cR="Timeline-module__root___LwRdZ",uR="Timeline-module__item___T5xdQ",dR="Timeline-module__itemBody___XAV-E",pR="Timeline-module__itemConnector___x8TSg",fR="Timeline-module__itemBullet___rPXCy",mR="Timeline-module__itemTitle___GgRRW",hR="Timeline-module__itemContent___vurs-",gR="Timeline-module__description___f9sxV",bR="Timeline-module__timestamp___owiRu",pn={root:cR,item:uR,itemBody:dR,itemConnector:pR,itemBullet:fR,itemTitle:mR,itemContent:hR,description:gR,timestamp:bR},Dc=H.forwardRef(function({overStyled:t=!1,timestamp:n,bulletVariant:o="default",bullet:s,title:i,children:a,__active:l=!1,__isLast:c=!1,...u},d){const m=ve(u,t),{className:g,...p}=m,b=n?h.jsxs(h.Fragment,{children:[a&&h.jsx("div",{className:pn.description,children:a}),h.jsx("div",{className:pn.timestamp,children:n})]}):a;return h.jsxs(Xh,{ref:d,"data-variant":o,"data-active":l||void 0,...p,className:g?`${pn.item} ${g}`:pn.item,children:[h.jsxs(Qh,{children:[h.jsx(Kh,{className:pn.itemBullet,children:s}),!c&&h.jsx(Yh,{className:pn.itemConnector})]}),h.jsxs(Gh,{className:pn.itemBody,children:[i&&h.jsx("div",{className:pn.itemTitle,children:i}),h.jsx("div",{className:pn.itemContent,children:b})]})]})});Dc.displayName="TimelineItem";const gg=H.forwardRef(function({overStyled:t=!1,active:n=-1,children:o,...s},i){const a=ve(s,t),l=H.Children.toArray(o),c=l.map((u,d)=>H.isValidElement(u)?H.cloneElement(u,{__active:n>=d,__isLast:d===l.length-1}):u);return h.jsx(qh,{ref:i,...a,classes:{root:pn.root},children:c})});gg.displayName="Timeline";const bg=gg;bg.Item=Dc;const yg=H.forwardRef(function({order:t=1,component:n,...o},s){const i=`recursica_brand_typography_h${t}`,a=`h${t}`;return h.jsx(Ji,{ref:s,typographyClass:i,component:n||a,...o})});yg.displayName="Title";const yR="Toast-module__root___MUvfI",vR="Toast-module__icon___VwvE1",xR="Toast-module__title___-H6R2",CR="Toast-module__description___-QwfC",wR="Toast-module__closeButton___vGr7g",SR="Toast-module__body___VLkXA",Fo={root:yR,icon:vR,title:xR,description:CR,closeButton:wR,body:SR},TR=()=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:h.jsx("path",{d:"M18 6L6 18M6 6l12 12"})}),vg=H.forwardRef(function({overStyled:t=!1,variant:n="default",withCloseButton:o=!0,title:s,icon:i,children:a,onClose:l,className:c,...u},d){const m=ve(u,t),g={root:Fo.root,message:Fo.body,icon:Fo.icon,action:Fo.closeButton},p=m.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const f=p;Object.keys(f).forEach(y=>{g[y]?g[y]=`${g[y]} ${f[y]}`:g[y]=f[y]})}const b=()=>{l&&l()};return h.jsxs(ye.Alert,{ref:d,...m,icon:i,"data-variant":n,className:`${c||""}`,classes:g,action:o?h.jsx(ye.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:b,children:h.jsx(TR,{})}):void 0,children:[s&&h.jsx(ye.AlertTitle,{className:Fo.title,children:s}),h.jsx("div",{className:Fo.description,children:a})]})});vg.displayName="Toast";const IR="Tooltip-module__tooltip___UA7H9",ER="Tooltip-module__arrow___4zROk",ip={tooltip:IR,arrow:ER},xg=function({overStyled:t=!1,withBeak:n=!0,label:o,opened:s,...i}){const{title:a,...l}=i,c=ve(l,t),u={tooltip:ip.tooltip,arrow:ip.arrow},d=c.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const p=d;Object.keys(p).forEach(b=>{u[b]?u[b]=`${u[b]} ${p[b]}`:u[b]=p[b]})}const m=c.withArrow,g=n??m;return h.jsx(ye.Tooltip,{...c,title:o||a||"",open:s,placement:"top",arrow:g,classes:u})};xg.displayName="Tooltip";const kR=xg,OR="TransferList-module__layoutOverride___nkb32",_R="TransferList-module__root___ikjI7",PR="TransferList-module__panes___dtwkW",MR="TransferList-module__pane___hy-kC",DR="TransferList-module__paneHeader___HZrKX",RR="TransferList-module__paneSearch___Xji-g",NR="TransferList-module__paneList___v0rcJ",$R="TransferList-module__emptyState___azPw-",jR="TransferList-module__transferColumn___3R2Ki",AR="TransferList-module__chevron___l-KdI",Ut={layoutOverride:OR,root:_R,panes:PR,pane:MR,paneHeader:DR,paneSearch:RR,paneList:NR,emptyState:$R,transferColumn:jR,chevron:AR};function ap({direction:e}){return h.jsx("svg",{className:Ut.chevron,"data-direction":e,viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:h.jsx("path",{d:"M6 3l5 5-5 5"})})}function lp({direction:e}){return h.jsx("svg",{className:Ut.chevron,"data-direction":e,viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:h.jsx("path",{d:"M3 3l5 5-5 5M9 3l5 5-5 5"})})}function LR(e){const t={},n=[];return e.forEach(o=>{var s;o.group?(t[s=o.group]??(t[s]=[])).push(o):n.push(o)}),{groups:t,ungrouped:n}}const Cg=H.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:s="stacked",labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:d,label:m,assistiveText:g,description:p,helperText:b,assistiveWithIcon:f,error:y,required:x,id:T,readOnly:S,readOnlyComponent:w,emptyValueComponent:E,data:I,defaultData:R,onChange:N,sourceLabel:j="Available",targetLabel:V="Selected",searchable:$=!0,searchPlaceholder:v="Filter items...",disabled:O=!1,className:P,style:k,...M}=t,_=ve(M,o),A=H.useId(),B=T||`recursica-transfer-list-${A}`,[L,F]=H.useState(()=>R??I??[[],[]]),W=I!==void 0?I:L,G=H.useCallback(re=>{I===void 0&&F(re),N==null||N(re)},[I,N]),[Q,K]=H.useState(""),[Z,se]=H.useState(""),[Y,z]=H.useState(()=>new Set),[q,J]=H.useState(()=>new Set),U=H.useMemo(()=>{if(!Q)return W[0];const re=Q.toLowerCase();return W[0].filter(xe=>xe.label.toLowerCase().includes(re))},[W,Q]),ce=H.useMemo(()=>{if(!Z)return W[1];const re=Z.toLowerCase();return W[1].filter(xe=>xe.label.toLowerCase().includes(re))},[W,Z]),ne=H.useCallback(()=>{if(Y.size===0)return;const re=W[0].filter(we=>!Y.has(we.value)),xe=W[0].filter(we=>Y.has(we.value));z(new Set),G([re,[...W[1],...xe]])},[W,Y,G]),de=H.useCallback(()=>{if(q.size===0)return;const re=W[1].filter(we=>!q.has(we.value)),xe=W[1].filter(we=>q.has(we.value));J(new Set),G([[...W[0],...xe],re])},[W,q,G]),fe=H.useCallback(()=>{W[0].length!==0&&(z(new Set),G([[],[...W[1],...W[0]]]))},[W,G]),ae=H.useCallback(()=>{W[1].length!==0&&(J(new Set),G([[...W[0],...W[1]],[]]))},[W,G]),oe=H.useCallback(re=>{z(xe=>{const we=new Set(xe);return we.has(re)?we.delete(re):we.add(re),we})},[]),he=H.useCallback(re=>{J(xe=>{const we=new Set(xe);return we.has(re)?we.delete(re):we.add(re),we})},[]),ee=(re,xe,we,pe,Se,Ee,Ue,_t)=>{const{groups:Te,ungrouped:et}=LR(we),tt=Object.keys(Te).sort(),ut=Se.size>0?`${Se.size} / ${pe.length}`:`${pe.length}`;return h.jsxs("div",{className:Ut.pane,"data-pane":re,children:[h.jsxs("div",{className:Ut.paneHeader,children:[h.jsx("span",{children:xe}),h.jsx(Lp,{children:ut})]}),$&&h.jsx("div",{className:Ut.paneSearch,children:h.jsx(xc,{value:Ue,onChange:ot=>_t(ot.currentTarget.value),placeholder:v,disabled:O,"aria-label":`Filter ${xe.toLowerCase()}`})}),h.jsxs("div",{className:Ut.paneList,children:[we.length===0&&h.jsx("div",{className:Ut.emptyState,children:"No items"}),et.length>0&&h.jsx(Br,{children:et.map(ot=>h.jsx(zr,{id:`${B}-${re}-${ot.value}`,label:ot.label,checked:Se.has(ot.value),onChange:()=>Ee(ot.value),disabled:O},ot.value))}),tt.map(ot=>h.jsx(Br,{label:ot,labelSize:"small",children:Te[ot].map(nt=>h.jsx(zr,{id:`${B}-${re}-${nt.value}`,label:nt.label,checked:Se.has(nt.value),onChange:()=>Ee(nt.value),disabled:O},nt.value))},ot))]})]})},le=P?`${Ut.layoutOverride} ${P}`:Ut.layoutOverride;return h.jsx(Vt,{ref:n,formLayout:s,labelSize:i,labelAlignment:a,labelOptionalText:l,labelWithEditIcon:c,labelActionArea:u,onLabelEditClick:d,label:m,assistiveText:g,description:p,helperText:b,assistiveWithIcon:f,error:y,required:x,disabled:O,id:B,className:le,style:k,readOnly:S,readOnlyComponent:w,emptyValueComponent:E,readOnlyType:"text",readOnlyValue:W[1].map(re=>re.label),readOnlyNativeProps:t,activeComponent:h.jsx("div",{className:Ut.root,"data-disabled":O?"true":void 0,"data-error":y?"true":void 0,..._,children:h.jsxs("div",{className:Ut.panes,children:[ee("source",j,U,W[0],Y,oe,Q,K),h.jsxs("div",{className:Ut.transferColumn,children:[h.jsx(kn,{variant:"outline",size:"small",icon:h.jsx(lp,{direction:"right"}),"aria-label":`Move all to ${V}`,disabled:O||W[0].length===0,onClick:fe}),h.jsx(kn,{variant:"outline",size:"small",icon:h.jsx(ap,{direction:"right"}),"aria-label":`Move selected to ${V}`,disabled:O||Y.size===0,onClick:ne}),h.jsx(kn,{variant:"outline",size:"small",icon:h.jsx(ap,{direction:"left"}),"aria-label":`Move selected to ${j}`,disabled:O||q.size===0,onClick:de}),h.jsx(kn,{variant:"outline",size:"small",icon:h.jsx(lp,{direction:"left"}),"aria-label":`Move all to ${j}`,disabled:O||W[1].length===0,onClick:ae})]}),ee("target",V,ce,W[1],q,he,Z,se)]})})})});Cg.displayName="TransferList";const cp={};function wg(e,t){const n=C.useRef(cp);return n.current===cp&&(n.current=e(t)),n}function Ua(e,t,n,o){const s=wg(VR).current;return FR(s,e,t,n,o)&&BR(s,[e,t,n,o]),s.callback}function VR(){return{callback:null,cleanup:null,refs:[]}}function FR(e,t,n,o,s){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==o||e.refs[3]!==s}function BR(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const o=Array(t.length).fill(null);for(let s=0;s<t.length;s+=1){const i=t[s];if(i!=null)switch(typeof i){case"function":{const a=i(n);typeof a=="function"&&(o[s]=a);break}case"object":{i.current=n;break}}}e.cleanup=()=>{for(let s=0;s<t.length;s+=1){const i=t[s];if(i!=null)switch(typeof i){case"function":{const a=o[s];typeof a=="function"?a():i(null);break}case"object":{i.current=null;break}}}}}}}var zR=(e,t,n)=>{if(t.length===1&&t[0]===n){let o=!1;try{const s={};e(s)===s&&(o=!0)}catch{}if(o){let s;try{throw new Error}catch(i){({stack:s}=i)}console.warn(`The result function returned its own inputs without modification. e.g
222
222
  \`createSelector([state => state.todos], todos => todos)\`
223
223
  This could lead to inefficient memoization and unnecessary re-renders.
224
- Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:s})}}},OP=(e,t,n)=>{const{memoize:o,memoizeOptions:s}=t,{inputSelectorResults:i,inputSelectorResultsCopy:a}=e,l=o(()=>({}),...s);if(!(l.apply(null,i)===l.apply(null,a))){let u;try{throw new Error}catch(d){({stack:u}=d)}console.warn(`An input selector returned a different result when passed same arguments.
224
+ Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:s})}}},WR=(e,t,n)=>{const{memoize:o,memoizeOptions:s}=t,{inputSelectorResults:i,inputSelectorResultsCopy:a}=e,l=o(()=>({}),...s);if(!(l.apply(null,i)===l.apply(null,a))){let u;try{throw new Error}catch(d){({stack:u}=d)}console.warn(`An input selector returned a different result when passed same arguments.
225
225
  This means your output selector will likely run more frequently than intended.
226
226
  Avoid returning a new reference inside your input selector, e.g.
227
- \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:i,secondInputs:a,stack:u})}},kP={inputStabilityCheck:"once",identityFunctionCheck:"once"},Bs=Symbol("NOT_FOUND");function PP(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function RP(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(o=>typeof o=="function"?`function ${o.name||"unnamed"}()`:typeof o).join(", ");throw new TypeError(`${t}[${n}]`)}}var bd=e=>Array.isArray(e)?e:[e];function NP(e){const t=Array.isArray(e[0])?e[0]:e;return RP(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function yd(e,t){const n=[],{length:o}=e;for(let s=0;s<o;s++)n.push(e[s].apply(null,t));return n}var MP=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:o}={...kP,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:_P},inputStabilityCheck:{shouldRun:o==="always"||o==="once"&&e,run:OP}}};function $P(e){let t;return{get(n){return t&&e(t.key,n)?t.value:Bs},put(n,o){t={key:n,value:o}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function DP(e,t){let n=[];function o(l){const c=n.findIndex(u=>t(l,u.key));if(c>-1){const u=n[c];return c>0&&(n.splice(c,1),n.unshift(u)),u.value}return Bs}function s(l,c){o(l)===Bs&&(n.unshift({key:l,value:c}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:o,put:s,getEntries:i,clear:a}}var AP=(e,t)=>e===t;function jP(e){return function(n,o){if(n===null||o===null||n.length!==o.length)return!1;const{length:s}=n;for(let i=0;i<s;i++)if(!e(n[i],o[i]))return!1;return!0}}function LP(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:o=AP,maxSize:s=1,resultEqualityCheck:i}=n,a=jP(o);let l=0;const c=s<=1?$P(a):DP(s,a);function u(){let d=c.get(arguments);if(d===Bs){if(d=e.apply(null,arguments),l++,i){const h=c.getEntries().find(f=>i(f.value,d));h&&(d=h.value,l!==0&&l--)}c.put(arguments,d)}return d}return u.clearCache=()=>{c.clear(),u.resetResultsCount()},u.resultsCount=()=>l,u.resetResultsCount=()=>{l=0},u}var VP=class{constructor(e){this.value=e}deref(){return this.value}},FP=()=>typeof WeakRef>"u"?VP:WeakRef,ch=FP(),BP=0,vd=1;function ps(){return{s:BP,v:void 0,o:null,p:null}}function zP(e){return e instanceof ch?e.deref():e}function WP(e,t={}){let n=ps();const{resultEqualityCheck:o}=t;let s,i=0;function a(){let l=n;const{length:c}=arguments;for(let m=0,h=c;m<h;m++){const f=arguments[m];if(typeof f=="function"||typeof f=="object"&&f!==null){let g=l.o;g===null&&(l.o=g=new WeakMap);const p=g.get(f);p===void 0?(l=ps(),g.set(f,l)):l=p}else{let g=l.p;g===null&&(l.p=g=new Map);const p=g.get(f);p===void 0?(l=ps(),g.set(f,l)):l=p}}const u=l;let d;if(l.s===vd)d=l.v;else if(d=e.apply(null,arguments),i++,o){const m=zP(s);m!=null&&o(m,d)&&(d=m,i!==0&&i--),s=typeof d=="object"&&d!==null||typeof d=="function"?new ch(d):d}return u.s=vd,u.v=d,d}return a.clearCache=()=>{n=ps(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function UP(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,o=(...s)=>{let i=0,a=0,l,c={},u=s.pop();typeof u=="object"&&(c=u,u=s.pop()),PP(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const d={...n,...c},{memoize:m,memoizeOptions:h=[],argsMemoize:f=WP,argsMemoizeOptions:g=[]}=d,p=bd(h),y=bd(g),x=NP(s),I=m(function(){return i++,u.apply(null,arguments)},...p);let w=!0;const S=f(function(){a++;const T=yd(x,arguments);if(l=I.apply(null,T),process.env.NODE_ENV!=="production"){const{devModeChecks:R={}}=d,{identityFunctionCheck:N,inputStabilityCheck:L}=MP(w,R);if(N.shouldRun&&N.run(u,T,l),L.shouldRun){const V=yd(x,arguments);L.run({inputSelectorResults:T,inputSelectorResultsCopy:V},{memoize:m,memoizeOptions:p},arguments)}w&&(w=!1)}return l},...y);return Object.assign(S,{resultFunc:u,memoizedResultFunc:I,dependencies:x,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>l,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:m,argsMemoize:f})};return Object.assign(o,{withTypes:()=>o}),o}const qP=UP({memoize:LP,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),Ee=(e,t,n,o,s,i,a,l,...c)=>{if(c.length>0)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Unsupported number of selectors. The createSelector function supports up to 8 input selectors. Consider combining selectors or restructuring your selector logic.":Re(179));let u;if(e&&t&&n&&o)u=(d,m,h,f)=>{const g=e(d,m,h,f),p=t(d,m,h,f),y=n(d,m,h,f);return o(g,p,y,m,h,f)};else if(e&&t&&n)u=(d,m,h,f)=>{const g=e(d,m,h,f),p=t(d,m,h,f);return n(g,p,m,h,f)};else if(e&&t)u=(d,m,h,f)=>{const g=e(d,m,h,f);return t(g,m,h,f)};else if(e)u=e;else throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Missing arguments for createSelector. At least one selector function is required. Provide one or more selector functions as arguments.":Re(180));return u},HP=e=>(...t)=>{const n=new WeakMap;let o=1;const s=t[t.length-1],i=t.length-1||1,a=Math.max(s.length-i,0);if(a>3)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Unsupported number of arguments for selector combiner. The combiner function supports up to 3 additional arguments beyond the selector outputs. Consider restructuring your selector to use fewer arguments.":Re(181));return(c,u,d,m)=>{let h=c.__cacheKey__;h||(h={id:o},c.__cacheKey__=h,o+=1);let f=n.get(h);if(!f){const g=t.length===1?[x=>x,s]:t;let p=t;const y=[void 0,void 0,void 0];switch(a){case 0:break;case 1:{p=[...g.slice(0,-1),()=>y[0],s];break}case 2:{p=[...g.slice(0,-1),()=>y[0],()=>y[1],s];break}case 3:{p=[...g.slice(0,-1),()=>y[0],()=>y[1],()=>y[2],s];break}default:throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Unsupported number of arguments for selector. The memoized selector supports up to 3 additional arguments. Consider restructuring your selector to use fewer arguments.":Re(182))}f=qP(...p),f.selectorArgs=y,n.set(h,f)}switch(a){case 3:f.selectorArgs[2]=m;case 2:f.selectorArgs[1]=d;case 1:f.selectorArgs[0]=u}switch(a){case 0:return f(c);case 1:return f(c,u);case 2:return f(c,u,d);case 3:return f(c,u,d,m);default:throw new Error("unreachable")}}},es=HP();var fs={exports:{}},Gi={};/**
227
+ \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:i,secondInputs:a,stack:u})}},UR={inputStabilityCheck:"once",identityFunctionCheck:"once"},ai=Symbol("NOT_FOUND");function HR(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function qR(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(o=>typeof o=="function"?`function ${o.name||"unnamed"}()`:typeof o).join(", ");throw new TypeError(`${t}[${n}]`)}}var up=e=>Array.isArray(e)?e:[e];function YR(e){const t=Array.isArray(e[0])?e[0]:e;return qR(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function dp(e,t){const n=[],{length:o}=e;for(let s=0;s<o;s++)n.push(e[s].apply(null,t));return n}var GR=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:o}={...UR,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:zR},inputStabilityCheck:{shouldRun:o==="always"||o==="once"&&e,run:WR}}};function KR(e){let t;return{get(n){return t&&e(t.key,n)?t.value:ai},put(n,o){t={key:n,value:o}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function XR(e,t){let n=[];function o(l){const c=n.findIndex(u=>t(l,u.key));if(c>-1){const u=n[c];return c>0&&(n.splice(c,1),n.unshift(u)),u.value}return ai}function s(l,c){o(l)===ai&&(n.unshift({key:l,value:c}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:o,put:s,getEntries:i,clear:a}}var QR=(e,t)=>e===t;function ZR(e){return function(n,o){if(n===null||o===null||n.length!==o.length)return!1;const{length:s}=n;for(let i=0;i<s;i++)if(!e(n[i],o[i]))return!1;return!0}}function JR(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:o=QR,maxSize:s=1,resultEqualityCheck:i}=n,a=ZR(o);let l=0;const c=s<=1?KR(a):XR(s,a);function u(){let d=c.get(arguments);if(d===ai){if(d=e.apply(null,arguments),l++,i){const g=c.getEntries().find(p=>i(p.value,d));g&&(d=g.value,l!==0&&l--)}c.put(arguments,d)}return d}return u.clearCache=()=>{c.clear(),u.resetResultsCount()},u.resultsCount=()=>l,u.resetResultsCount=()=>{l=0},u}var eN=class{constructor(e){this.value=e}deref(){return this.value}},tN=()=>typeof WeakRef>"u"?eN:WeakRef,Sg=tN(),nN=0,pp=1;function Ds(){return{s:nN,v:void 0,o:null,p:null}}function oN(e){return e instanceof Sg?e.deref():e}function rN(e,t={}){let n=Ds();const{resultEqualityCheck:o}=t;let s,i=0;function a(){let l=n;const{length:c}=arguments;for(let m=0,g=c;m<g;m++){const p=arguments[m];if(typeof p=="function"||typeof p=="object"&&p!==null){let b=l.o;b===null&&(l.o=b=new WeakMap);const f=b.get(p);f===void 0?(l=Ds(),b.set(p,l)):l=f}else{let b=l.p;b===null&&(l.p=b=new Map);const f=b.get(p);f===void 0?(l=Ds(),b.set(p,l)):l=f}}const u=l;let d;if(l.s===pp)d=l.v;else if(d=e.apply(null,arguments),i++,o){const m=oN(s);m!=null&&o(m,d)&&(d=m,i!==0&&i--),s=typeof d=="object"&&d!==null||typeof d=="function"?new Sg(d):d}return u.s=pp,u.v=d,d}return a.clearCache=()=>{n=Ds(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function sN(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,o=(...s)=>{let i=0,a=0,l,c={},u=s.pop();typeof u=="object"&&(c=u,u=s.pop()),HR(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const d={...n,...c},{memoize:m,memoizeOptions:g=[],argsMemoize:p=rN,argsMemoizeOptions:b=[]}=d,f=up(g),y=up(b),x=YR(s),T=m(function(){return i++,u.apply(null,arguments)},...f);let S=!0;const w=p(function(){a++;const I=dp(x,arguments);if(l=T.apply(null,I),process.env.NODE_ENV!=="production"){const{devModeChecks:R={}}=d,{identityFunctionCheck:N,inputStabilityCheck:j}=GR(S,R);if(N.shouldRun&&N.run(u,I,l),j.shouldRun){const V=dp(x,arguments);j.run({inputSelectorResults:I,inputSelectorResultsCopy:V},{memoize:m,memoizeOptions:f},arguments)}S&&(S=!1)}return l},...y);return Object.assign(w,{resultFunc:u,memoizedResultFunc:T,dependencies:x,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>l,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:m,argsMemoize:p})};return Object.assign(o,{withTypes:()=>o}),o}const iN=sN({memoize:JR,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),_e=(e,t,n,o,s,i,a,l,...c)=>{if(c.length>0)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Unsupported number of selectors. The createSelector function supports up to 8 input selectors. Consider combining selectors or restructuring your selector logic.":je(179));let u;if(e&&t&&n&&o)u=(d,m,g,p)=>{const b=e(d,m,g,p),f=t(d,m,g,p),y=n(d,m,g,p);return o(b,f,y,m,g,p)};else if(e&&t&&n)u=(d,m,g,p)=>{const b=e(d,m,g,p),f=t(d,m,g,p);return n(b,f,m,g,p)};else if(e&&t)u=(d,m,g,p)=>{const b=e(d,m,g,p);return t(b,m,g,p)};else if(e)u=e;else throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Missing arguments for createSelector. At least one selector function is required. Provide one or more selector functions as arguments.":je(180));return u},aN=e=>(...t)=>{const n=new WeakMap;let o=1;const s=t[t.length-1],i=t.length-1||1,a=Math.max(s.length-i,0);if(a>3)throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Unsupported number of arguments for selector combiner. The combiner function supports up to 3 additional arguments beyond the selector outputs. Consider restructuring your selector to use fewer arguments.":je(181));return(c,u,d,m)=>{let g=c.__cacheKey__;g||(g={id:o},c.__cacheKey__=g,o+=1);let p=n.get(g);if(!p){const b=t.length===1?[x=>x,s]:t;let f=t;const y=[void 0,void 0,void 0];switch(a){case 0:break;case 1:{f=[...b.slice(0,-1),()=>y[0],s];break}case 2:{f=[...b.slice(0,-1),()=>y[0],()=>y[1],s];break}case 3:{f=[...b.slice(0,-1),()=>y[0],()=>y[1],()=>y[2],s];break}default:throw new Error(process.env.NODE_ENV!=="production"?"MUI X: Unsupported number of arguments for selector. The memoized selector supports up to 3 additional arguments. Consider restructuring your selector to use fewer arguments.":je(182))}p=iN(...f),p.selectorArgs=y,n.set(g,p)}switch(a){case 3:p.selectorArgs[2]=m;case 2:p.selectorArgs[1]=d;case 1:p.selectorArgs[0]=u}switch(a){case 0:return p(c);case 1:return p(c,u);case 2:return p(c,u,d);case 3:return p(c,u,d,m);default:throw new Error("unreachable")}}},ys=aN();var Rs={exports:{}},ya={};/**
228
228
  * @license React
229
229
  * use-sync-external-store-shim.production.js
230
230
  *
@@ -232,7 +232,7 @@ Avoid returning a new reference inside your input selector, e.g.
232
232
  *
233
233
  * This source code is licensed under the MIT license found in the
234
234
  * LICENSE file in the root directory of this source tree.
235
- */var xd;function YP(){if(xd)return Gi;xd=1;var e=Y;function t(m,h){return m===h&&(m!==0||1/m===1/h)||m!==m&&h!==h}var n=typeof Object.is=="function"?Object.is:t,o=e.useState,s=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function l(m,h){var f=h(),g=o({inst:{value:f,getSnapshot:h}}),p=g[0].inst,y=g[1];return i(function(){p.value=f,p.getSnapshot=h,c(p)&&y({inst:p})},[m,f,h]),s(function(){return c(p)&&y({inst:p}),m(function(){c(p)&&y({inst:p})})},[m]),a(f),f}function c(m){var h=m.getSnapshot;m=m.value;try{var f=h();return!n(m,f)}catch{return!0}}function u(m,h){return h()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return Gi.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,Gi}var Ki={};/**
235
+ */var fp;function lN(){if(fp)return ya;fp=1;var e=H;function t(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var n=typeof Object.is=="function"?Object.is:t,o=e.useState,s=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function l(m,g){var p=g(),b=o({inst:{value:p,getSnapshot:g}}),f=b[0].inst,y=b[1];return i(function(){f.value=p,f.getSnapshot=g,c(f)&&y({inst:f})},[m,p,g]),s(function(){return c(f)&&y({inst:f}),m(function(){c(f)&&y({inst:f})})},[m]),a(p),p}function c(m){var g=m.getSnapshot;m=m.value;try{var p=g();return!n(m,p)}catch{return!0}}function u(m,g){return g()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return ya.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,ya}var va={};/**
236
236
  * @license React
237
237
  * use-sync-external-store-shim.development.js
238
238
  *
@@ -240,7 +240,7 @@ Avoid returning a new reference inside your input selector, e.g.
240
240
  *
241
241
  * This source code is licensed under the MIT license found in the
242
242
  * LICENSE file in the root directory of this source tree.
243
- */var Sd;function GP(){return Sd||(Sd=1,process.env.NODE_ENV!=="production"&&(function(){function e(f,g){return f===g&&(f!==0||1/f===1/g)||f!==f&&g!==g}function t(f,g){d||s.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=g();if(!m){var y=g();i(p,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),m=!0)}y=a({inst:{value:p,getSnapshot:g}});var x=y[0].inst,I=y[1];return c(function(){x.value=p,x.getSnapshot=g,n(x)&&I({inst:x})},[f,p,g]),l(function(){return n(x)&&I({inst:x}),f(function(){n(x)&&I({inst:x})})},[f]),u(p),p}function n(f){var g=f.getSnapshot;f=f.value;try{var p=g();return!i(f,p)}catch{return!0}}function o(f,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=Y,i=typeof Object.is=="function"?Object.is:e,a=s.useState,l=s.useEffect,c=s.useLayoutEffect,u=s.useDebugValue,d=!1,m=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:t;Ki.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ki}var Cd;function Gl(){return Cd||(Cd=1,process.env.NODE_ENV==="production"?fs.exports=YP():fs.exports=GP()),fs.exports}var KP=Gl(),ms={exports:{}},Xi={};/**
243
+ */var mp;function cN(){return mp||(mp=1,process.env.NODE_ENV!=="production"&&(function(){function e(p,b){return p===b&&(p!==0||1/p===1/b)||p!==p&&b!==b}function t(p,b){d||s.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var f=b();if(!m){var y=b();i(f,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),m=!0)}y=a({inst:{value:f,getSnapshot:b}});var x=y[0].inst,T=y[1];return c(function(){x.value=f,x.getSnapshot=b,n(x)&&T({inst:x})},[p,f,b]),l(function(){return n(x)&&T({inst:x}),p(function(){n(x)&&T({inst:x})})},[p]),u(f),f}function n(p){var b=p.getSnapshot;p=p.value;try{var f=b();return!i(p,f)}catch{return!0}}function o(p,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=H,i=typeof Object.is=="function"?Object.is:e,a=s.useState,l=s.useEffect,c=s.useLayoutEffect,u=s.useDebugValue,d=!1,m=!1,g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:t;va.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:g,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),va}var hp;function Rc(){return hp||(hp=1,process.env.NODE_ENV==="production"?Rs.exports=lN():Rs.exports=cN()),Rs.exports}var uN=Rc(),Ns={exports:{}},xa={};/**
244
244
  * @license React
245
245
  * use-sync-external-store-shim/with-selector.production.js
246
246
  *
@@ -248,7 +248,7 @@ Avoid returning a new reference inside your input selector, e.g.
248
248
  *
249
249
  * This source code is licensed under the MIT license found in the
250
250
  * LICENSE file in the root directory of this source tree.
251
- */var wd;function XP(){if(wd)return Xi;wd=1;var e=Y,t=Gl();function n(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var o=typeof Object.is=="function"?Object.is:n,s=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,l=e.useMemo,c=e.useDebugValue;return Xi.useSyncExternalStoreWithSelector=function(u,d,m,h,f){var g=i(null);if(g.current===null){var p={hasValue:!1,value:null};g.current=p}else p=g.current;g=l(function(){function x(T){if(!I){if(I=!0,w=T,T=h(T),f!==void 0&&p.hasValue){var R=p.value;if(f(R,T))return S=R}return S=T}if(R=S,o(w,T))return R;var N=h(T);return f!==void 0&&f(R,N)?(w=T,R):(w=T,S=N)}var I=!1,w,S,E=m===void 0?null:m;return[function(){return x(d())},E===null?void 0:function(){return x(E())}]},[d,m,h,f]);var y=s(u,g[0],g[1]);return a(function(){p.hasValue=!0,p.value=y},[y]),c(y),y},Xi}var Qi={};/**
251
+ */var gp;function dN(){if(gp)return xa;gp=1;var e=H,t=Rc();function n(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var o=typeof Object.is=="function"?Object.is:n,s=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,l=e.useMemo,c=e.useDebugValue;return xa.useSyncExternalStoreWithSelector=function(u,d,m,g,p){var b=i(null);if(b.current===null){var f={hasValue:!1,value:null};b.current=f}else f=b.current;b=l(function(){function x(I){if(!T){if(T=!0,S=I,I=g(I),p!==void 0&&f.hasValue){var R=f.value;if(p(R,I))return w=R}return w=I}if(R=w,o(S,I))return R;var N=g(I);return p!==void 0&&p(R,N)?(S=I,R):(S=I,w=N)}var T=!1,S,w,E=m===void 0?null:m;return[function(){return x(d())},E===null?void 0:function(){return x(E())}]},[d,m,g,p]);var y=s(u,b[0],b[1]);return a(function(){f.hasValue=!0,f.value=y},[y]),c(y),y},xa}var Ca={};/**
252
252
  * @license React
253
253
  * use-sync-external-store-shim/with-selector.development.js
254
254
  *
@@ -256,10 +256,10 @@ Avoid returning a new reference inside your input selector, e.g.
256
256
  *
257
257
  * This source code is licensed under the MIT license found in the
258
258
  * LICENSE file in the root directory of this source tree.
259
- */var Td;function QP(){return Td||(Td=1,process.env.NODE_ENV!=="production"&&(function(){function e(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=Y,n=Gl(),o=typeof Object.is=="function"?Object.is:e,s=n.useSyncExternalStore,i=t.useRef,a=t.useEffect,l=t.useMemo,c=t.useDebugValue;Qi.useSyncExternalStoreWithSelector=function(u,d,m,h,f){var g=i(null);if(g.current===null){var p={hasValue:!1,value:null};g.current=p}else p=g.current;g=l(function(){function x(T){if(!I){if(I=!0,w=T,T=h(T),f!==void 0&&p.hasValue){var R=p.value;if(f(R,T))return S=R}return S=T}if(R=S,o(w,T))return R;var N=h(T);return f!==void 0&&f(R,N)?(w=T,R):(w=T,S=N)}var I=!1,w,S,E=m===void 0?null:m;return[function(){return x(d())},E===null?void 0:function(){return x(E())}]},[d,m,h,f]);var y=s(u,g[0],g[1]);return a(function(){p.hasValue=!0,p.value=y},[y]),c(y),y},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Qi}var Id;function ZP(){return Id||(Id=1,process.env.NODE_ENV==="production"?ms.exports=XP():ms.exports=QP()),ms.exports}var JP=ZP();const eR=parseInt(C.version,10),tR=eR>=19,nR=tR?oR:rR;function Pe(e,t,n,o,s){return nR(e,t,n,o,s)}function oR(e,t,n,o,s){const i=C.useCallback(()=>t(e.getSnapshot(),n,o,s),[e,t,n,o,s]);return KP.useSyncExternalStore(e.subscribe,i,i)}function rR(e,t,n,o,s){return JP.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,i=>t(i,n,o,s))}class Kl{constructor(t){q(this,"subscribe",t=>(this.listeners.add(t),()=>{this.listeners.delete(t)}));q(this,"getSnapshot",()=>this.state);q(this,"use",(t,n,o,s)=>Pe(this,t,n,o,s));this.state=t,this.listeners=new Set,this.updateTick=0}static create(t){return new Kl(t)}setState(t){this.state=t,this.updateTick+=1;const n=this.updateTick,o=this.listeners.values();let s;for(;s=o.next(),!s.done;){if(n!==this.updateTick)return;const i=s.value;i(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState($({},this.state,t));return}}set(t,n){Object.is(this.state[t],n)||this.setState($({},this.state,{[t]:n}))}}function sR(e){return Me("MuiAlert",e)}const Ed=_e("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),iR=ut(b.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"),aR=ut(b.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),lR=ut(b.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"),cR=ut(b.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"),uR=ut(b.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"),dR=e=>{const{variant:t,color:n,severity:o,classes:s}=e,i={root:["root",`color${le(n||o)}`,`${t}${le(n||o)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Le(i,sR,s)},pR=ne(Qr,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${le(n.color||n.severity)}`]]}})(Je(({theme:e})=>{const t=e.palette.mode==="light"?e.darken:e.lighten,n=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Ct(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:n(e.palette[o].light,.9),[`& .${Ed.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(Ct(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${Ed.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(Ct(["dark"])).map(([o])=>({props:{colorSeverity:o,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}}}))]}})),fR=ne("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),mR=ne("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),hR=ne("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),_d={success:b.jsx(iR,{fontSize:"inherit"}),warning:b.jsx(aR,{fontSize:"inherit"}),error:b.jsx(lR,{fontSize:"inherit"}),info:b.jsx(cR,{fontSize:"inherit"})},uh=C.forwardRef(function(t,n){const o=Ye({props:t,name:"MuiAlert"}),{action:s,children:i,className:a,closeText:l="Close",color:c,components:u={},componentsProps:d={},icon:m,iconMapping:h=_d,onClose:f,role:g="alert",severity:p="success",slotProps:y={},slots:x={},variant:I="standard",...w}=o,S={...o,color:c,severity:p,variant:I,colorSeverity:c||p},E=dR(S),T={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...x},slotProps:{...d,...y}},[R,N]=Xe("root",{ref:n,shouldForwardComponentProp:!0,className:ue(E.root,a),elementType:pR,externalForwardedProps:{...T,...w},ownerState:S,additionalProps:{role:g,elevation:0}}),[L,V]=Xe("icon",{className:E.icon,elementType:fR,externalForwardedProps:T,ownerState:S}),[A,v]=Xe("message",{className:E.message,elementType:mR,externalForwardedProps:T,ownerState:S}),[P,O]=Xe("action",{className:E.action,elementType:hR,externalForwardedProps:T,ownerState:S}),[_,k]=Xe("closeButton",{elementType:ao,externalForwardedProps:T,ownerState:S}),[D,M]=Xe("closeIcon",{elementType:uR,externalForwardedProps:T,ownerState:S});return b.jsxs(R,{...N,children:[m!==!1?b.jsx(L,{...V,children:m||h[p]||_d[p]}):null,b.jsx(A,{...v,children:i}),s!=null?b.jsx(P,{...O,children:s}):null,s==null&&f?b.jsx(P,{...O,children:b.jsx(_,{size:"small","aria-label":l,title:l,color:"inherit",onClick:f,...k,children:b.jsx(D,{fontSize:"small",...M})})}):null]})});process.env.NODE_ENV!=="production"&&(uh.propTypes={action:r.node,children:r.node,classes:r.object,className:r.string,closeText:r.string,color:r.oneOfType([r.oneOf(["error","info","success","warning"]),r.string]),components:r.shape({CloseButton:r.elementType,CloseIcon:r.elementType}),componentsProps:r.shape({closeButton:r.object,closeIcon:r.object}),icon:r.node,iconMapping:r.shape({error:r.node,info:r.node,success:r.node,warning:r.node}),onClose:r.func,role:r.string,severity:r.oneOfType([r.oneOf(["error","info","success","warning"]),r.string]),slotProps:r.shape({action:r.oneOfType([r.func,r.object]),closeButton:r.oneOfType([r.func,r.object]),closeIcon:r.oneOfType([r.func,r.object]),icon:r.oneOfType([r.func,r.object]),message:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({action:r.elementType,closeButton:r.elementType,closeIcon:r.elementType,icon:r.elementType,message:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["filled","outlined","standard"]),r.string])});function dh(e,t,n=void 0){const o={};for(const s in e){const i=e[s];let a="",l=!0;for(let c=0;c<i.length;c+=1){const u=i[c];u&&(a+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(a+=" "+n[u]))}o[s]=a}return o}const Od=e=>e,gR=()=>{let e=Od;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Od}}},bR=gR(),yR={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Xl(e,t,n="Mui"){const o=yR[t];return o?`${n}-${o}`:`${bR.generate(e)}-${t}`}function ph(e,t,n="Mui"){const o={};return t.forEach(s=>{o[s]=Xl(e,s,n)}),o}function vR(e){return Xl("MuiRichTreeView",e)}ph("MuiRichTreeView",["root","item","itemContent","itemGroupTransition","itemIconContainer","itemLabel","itemCheckbox","itemLabelInput"]);function fh(e){return qe}const Ql=Object.freeze([]),Lo=Object.freeze({}),Zl=C.createContext(null);process.env.NODE_ENV!=="production"&&(Zl.displayName="TreeViewContext");const Yn=()=>{const e=C.useContext(Zl);if(e==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X Tree View: Could not find the Tree View context. This happens when a component is rendered outside of a SimpleTreeView or RichTreeView parent component. Ensure your component is a child of a Tree View component. This can also happen if you are bundling multiple versions of the Tree View.":Re(190));return e},Jl=C.createContext({classes:{},slots:{},slotProps:{}});process.env.NODE_ENV!=="production"&&(Jl.displayName="TreeViewStyleContext");const ec=()=>C.useContext(Jl),xR=e=>{const{store:t,apiRef:n,rootRef:o}=e,s=lh(()=>t.buildPublicAPI()).current;SR(s,n);const i=C.useCallback(l=>{let c=null,u=null;const d=[],m={};t.itemPluginManager.listPlugins().forEach(g=>{const p=g({props:l,rootRef:c,contentRef:u});p!=null&&p.rootRef&&(c=p.rootRef),p!=null&&p.contentRef&&(u=p.contentRef),p!=null&&p.propsEnhancers&&(d.push(p.propsEnhancers),Object.keys(p.propsEnhancers).forEach(y=>{m[y]=!0}))});const h=g=>p=>{const y={};return d.forEach(x=>{const I=x[g];I!=null&&Object.assign(y,I(p))}),y},f=Object.fromEntries(Object.keys(m).map(g=>[g,h(g)]));return{contentRef:u,rootRef:c,propsEnhancers:f}},[t]),a=C.useCallback(({itemId:l,children:c,idAttribute:u})=>{let d=c;const m=t.itemPluginManager.listWrappers();for(let h=m.length-1;h>=0;h-=1){const f=m[h];d=f({store:t,itemId:l,children:d,idAttribute:u})}return d},[t]);return C.useMemo(()=>({runItemPlugins:i,wrapItem:a,publicAPI:s,store:t,rootRef:o}),[i,a,s,t,o])};function SR(e,t){t!=null&&t.current!==e&&(t.current=e)}function CR(e){const{store:t,apiRef:n,rootRef:o,classes:s=Lo,slots:i=Lo,slotProps:a=Lo,children:l}=e,c=xR({store:t,apiRef:n,rootRef:o}),u=C.useMemo(()=>({classes:s,slots:{collapseIcon:i.collapseIcon,expandIcon:i.expandIcon,endIcon:i.endIcon},slotProps:{collapseIcon:a.collapseIcon,expandIcon:a.expandIcon,endIcon:a.endIcon}}),[s,i.collapseIcon,i.expandIcon,i.endIcon,a.collapseIcon,a.expandIcon,a.endIcon]);return b.jsx(Zl.Provider,{value:c,children:b.jsx(Jl.Provider,{value:u,children:l})})}function wR(...e){const t=C.useRef(void 0),n=C.useCallback(o=>{const s=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{s.forEach(i=>i==null?void 0:i())}},e);return C.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}function TR(e){return typeof e=="string"}function IR(e,t,n){return e===void 0||TR(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function ER(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Rt(e){if(e===void 0)return{};const t={};for(const n of Object.keys(e))ER(n,e[n])&&(t[n]=e[n]);return t}function kd(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function _R(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:s,className:i}=e;if(!t){const f=ue(n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),g={...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},p={...n,...s,...o};return f.length>0&&(p.className=f),Object.keys(g).length>0&&(p.style=g),{props:p,internalRef:void 0}}const a=Rt({...s,...o}),l=kd(o),c=kd(s),u=t(a),d=ue(u==null?void 0:u.className,n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),m={...u==null?void 0:u.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},h={...u,...n,...c,...l};return d.length>0&&(h.className=d),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:u.ref}}function Sa(e,t,n){return typeof e=="function"?e(t,n):e}function Et(e){var m;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:s=!1,...i}=e,a=s?{}:Sa(n,o),{props:l,internalRef:c}=_R({...i,externalSlotProps:a}),u=wR(c,a==null?void 0:a.ref,(m=e.additionalProps)==null?void 0:m.ref);return IR(t,{...l,ref:u},o)}const OR=Object.is;function kR(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,o=0;for(const s in e)if(n+=1,!OR(e[s],t[s])||!(s in t))return!1;for(const s in t)o+=1;return n===o}function PR(e,t,n,o,s){if(process.env.NODE_ENV==="production")return null;const i=s||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function RR(e){return Me("MuiCollapse",e)}_e("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const NR=e=>{const{orientation:t,classes:n}=e;return Le({root:["root",t],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",t],wrapperInner:["wrapperInner",t]},RR,n)},MR=ne("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(Je(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),$R=ne("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),DR=ne("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),zs=C.forwardRef(function(t,n){const o=Ye({props:t,name:"MuiCollapse"}),{addEndListener:s,children:i,className:a,collapsedSize:l="0px",component:c,easing:u,in:d,onEnter:m,onEntered:h,onEntering:f,onExit:g,onExited:p,onExiting:y,orientation:x="vertical",slots:I={},slotProps:w={},style:S,timeout:E=of.standard,TransitionComponent:T=Gt,...R}=o,N={...o,orientation:x,collapsedSize:l},L=NR(N),V=Hr(),A=sl(),v=C.useRef(null),P=C.useRef(),O=typeof l=="number"?`${l}px`:l,_=x==="horizontal",k=_?"width":"height",D=C.useRef(null),M=yt(n,D),z=()=>v.current?v.current[_?"clientWidth":"clientHeight"]:0,j=mt(D,(oe,be)=>{v.current&&_&&(v.current.style.position="absolute"),oe.style[k]=O,m&&m(oe,be)}),B=mt(D,(oe,be)=>{const he=z();v.current&&_&&(v.current.style.position="");const{duration:re,easing:J}=Uo({style:S,timeout:E,easing:u},{mode:"enter"});if(E==="auto"){const ge=V.transitions.getAutoHeightDuration(he);oe.style.transitionDuration=`${ge}ms`,P.current=ge}else oe.style.transitionDuration=typeof re=="string"?re:`${re}ms`;oe.style[k]=`${he}px`,oe.style.transitionTimingFunction=J,f&&f(oe,be)}),W=mt(D,(oe,be)=>{oe.style[k]="auto",h&&h(oe,be)}),X=mt(D,oe=>{oe.style[k]=`${z()}px`,g&&g(oe)}),Q=mt(D,p),G=mt(D,oe=>{const be=z(),{duration:he,easing:re}=Uo({style:S,timeout:E,easing:u},{mode:"exit"});if(E==="auto"){const J=V.transitions.getAutoHeightDuration(be);oe.style.transitionDuration=`${J}ms`,P.current=J}else oe.style.transitionDuration=typeof he=="string"?he:`${he}ms`;oe.style[k]=O,oe.style.transitionTimingFunction=re,y&&y(oe)}),Z=oe=>{E==="auto"&&A.start(P.current||0,oe),s&&s(D.current,oe)},te={slots:I,slotProps:w,component:c},[H,F]=Xe("root",{ref:M,className:ue(L.root,a),elementType:MR,externalForwardedProps:te,ownerState:N,additionalProps:{style:{[_?"minWidth":"minHeight"]:O,...S}}}),[U,ae]=Xe("wrapper",{ref:v,className:L.wrapper,elementType:$R,externalForwardedProps:te,ownerState:N}),[K,ce]=Xe("wrapperInner",{className:L.wrapperInner,elementType:DR,externalForwardedProps:te,ownerState:N});return b.jsx(T,{in:d,onEnter:j,onEntered:W,onEntering:B,onExit:X,onExited:Q,onExiting:G,addEndListener:Z,nodeRef:D,timeout:E==="auto"?null:E,...R,children:(oe,{ownerState:be,...he})=>{const re={...N,state:oe};return b.jsx(H,{...F,className:ue(F.className,{entered:L.entered,exited:!d&&O==="0px"&&L.hidden}[oe]),ownerState:re,...he,children:b.jsx(U,{...ae,ownerState:re,children:b.jsx(K,{...ce,ownerState:re,children:i})})})}})});process.env.NODE_ENV!=="production"&&(zs.propTypes={addEndListener:r.func,children:r.node,classes:r.object,className:r.string,collapsedSize:r.oneOfType([r.number,r.string]),component:nl,easing:r.oneOfType([r.shape({enter:r.string,exit:r.string}),r.string]),in:r.bool,onEnter:r.func,onEntered:r.func,onEntering:r.func,onExit:r.func,onExited:r.func,onExiting:r.func,orientation:r.oneOf(["horizontal","vertical"]),slotProps:r.shape({root:r.oneOfType([r.func,r.object]),wrapper:r.oneOfType([r.func,r.object]),wrapperInner:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType,wrapper:r.elementType,wrapperInner:r.elementType}),style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timeout:r.oneOfType([r.oneOf(["auto"]),r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})])});zs&&(zs.muiSupportAuto=!0);function AR(e){return Me("PrivateSwitchBase",e)}_e("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const jR=e=>{const{classes:t,checked:n,disabled:o,edge:s}=e,i={root:["root",n&&"checked",o&&"disabled",s&&`edge${le(s)}`],input:["input"]};return Le(i,AR,t)},LR=ne(io,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),VR=ne("input",{name:"MuiSwitchBase",shouldForwardProp:Zo})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),mh=C.forwardRef(function(t,n){const{autoFocus:o,checked:s,checkedIcon:i,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:m,inputProps:h,inputRef:f,name:g,onBlur:p,onChange:y,onFocus:x,readOnly:I,required:w=!1,tabIndex:S,type:E,value:T,slots:R={},slotProps:N={},...L}=t,[V,A]=VC({controlled:s,default:!!a,name:"SwitchBase",state:"checked"}),v=po(),P=G=>{x&&x(G),v&&v.onFocus&&v.onFocus(G)},O=G=>{p&&p(G),v&&v.onBlur&&v.onBlur(G)},_=G=>{if(G.nativeEvent.defaultPrevented||I)return;const Z=G.target.checked;A(Z),y&&y(G,Z)};let k=l;v&&typeof k>"u"&&(k=v.disabled);const D=E==="checkbox"||E==="radio",M={...t,checked:V,disabled:k,disableFocusRipple:c,edge:u},z=jR(M),j={slots:R,slotProps:{input:h,...N}},[B,W]=Xe("root",{ref:n,elementType:LR,className:z.root,shouldForwardComponentProp:!0,externalForwardedProps:{...j,component:"span",...L},getSlotProps:G=>({...G,onFocus:Z=>{var te;(te=G.onFocus)==null||te.call(G,Z),P(Z)},onBlur:Z=>{var te;(te=G.onBlur)==null||te.call(G,Z),O(Z)}}),ownerState:M,additionalProps:{centerRipple:!0,focusRipple:!c,role:void 0,tabIndex:null}}),[X,Q]=Xe("input",{ref:f,elementType:VR,className:z.input,externalForwardedProps:j,getSlotProps:G=>({...G,onChange:Z=>{var te;(te=G.onChange)==null||te.call(G,Z),_(Z)}}),ownerState:M,additionalProps:{autoFocus:o,checked:s,defaultChecked:a,disabled:k,id:D?m:void 0,name:g,readOnly:I,required:w,tabIndex:S,type:E,...E==="checkbox"&&T===void 0?{}:{value:T}}});return b.jsxs(B,{...W,children:[b.jsx(X,{...Q}),V?i:d]})});process.env.NODE_ENV!=="production"&&(mh.propTypes={autoFocus:r.bool,checked:r.bool,checkedIcon:r.node.isRequired,classes:r.object,className:r.string,defaultChecked:r.bool,disabled:r.bool,disableFocusRipple:r.bool,edge:r.oneOf(["end","start",!1]),icon:r.node.isRequired,id:r.string,inputProps:r.object,inputRef:ui,name:r.string,onBlur:r.func,onChange:r.func,onFocus:r.func,readOnly:r.bool,required:r.bool,slotProps:r.shape({input:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({input:r.elementType,root:r.elementType}),sx:r.object,tabIndex:r.oneOfType([r.number,r.string]),type:r.string.isRequired,value:r.any});const FR=ut(b.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),BR=ut(b.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),zR=ut(b.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function WR(e){return Me("MuiCheckbox",e)}const Zi=_e("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),UR=e=>{const{classes:t,indeterminate:n,color:o,size:s}=e,i={root:["root",n&&"indeterminate",`color${le(o)}`,`size${le(s)}`]},a=Le(i,WR,t);return{...t,...a}},qR=ne(mh,{shouldForwardProp:e=>Zo(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${le(n.size)}`],n.color!=="default"&&t[`color${le(n.color)}`]]}})(Je(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Ct()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Ct()).map(([t])=>({props:{color:t},style:{[`&.${Zi.checked}, &.${Zi.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Zi.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),HR=b.jsx(BR,{}),YR=b.jsx(FR,{}),GR=b.jsx(zR,{}),hh=C.forwardRef(function(t,n){const o=Ye({props:t,name:"MuiCheckbox"}),{checkedIcon:s=HR,color:i="primary",icon:a=YR,indeterminate:l=!1,indeterminateIcon:c=GR,inputProps:u,size:d="medium",disableRipple:m=!1,className:h,slots:f={},slotProps:g={},...p}=o,y=l?c:a,x=l?c:s,I={...o,disableRipple:m,color:i,indeterminate:l,size:d},w=UR(I),S=g.input??u,[E,T]=Xe("root",{ref:n,elementType:qR,className:ue(w.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:g,...p},ownerState:I,additionalProps:{type:"checkbox",icon:C.cloneElement(y,{fontSize:y.props.fontSize??d}),checkedIcon:C.cloneElement(x,{fontSize:x.props.fontSize??d}),disableRipple:m,slots:f,slotProps:{input:BC(typeof S=="function"?S(I):S,{"data-indeterminate":l,"aria-checked":l?"mixed":void 0})}}});return b.jsx(E,{...T,classes:w})});process.env.NODE_ENV!=="production"&&(hh.propTypes={checked:r.bool,checkedIcon:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["default","primary","secondary","error","info","success","warning"]),r.string]),defaultChecked:r.bool,disabled:r.bool,disableRipple:r.bool,icon:r.node,id:r.string,indeterminate:r.bool,indeterminateIcon:r.node,inputProps:r.object,onChange:r.func,required:r.bool,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),slotProps:r.shape({input:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({input:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.any});const At="__TREE_VIEW_ROOT_PARENT_ID__",gh=e=>{const t={};return e.forEach((n,o)=>{t[n]=o}),t},Ws=(e,t)=>{if(t==null)return!1;let n=e[t];if(!n)return!1;if(n.disabled)return!0;for(;n.parentId!=null;){if(n=e[n.parentId],!n)return!1;if(n.disabled)return!0}return!1};function bh(e){const{storeParameters:t,items:n,parentId:o,depth:s,isItemExpandable:i,otherItemsMetaLookup:a}=e,l={},c={},u=[],d=[],m=h=>{const f=t.getItemId?t.getItemId(h):h.id;KR({id:f,parentId:o,item:h,itemMetaLookup:a,siblingsMetaLookup:l});const g=t.getItemLabel?t.getItemLabel(h):h.label;if(g==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: All items must have a \`label\` property. You can use the \`getItemLabel\` prop to specify a custom label for each item. An item was provided without a label: ${JSON.stringify(h)}`:Re(192,JSON.stringify(h)));const p=(t.getItemChildren?t.getItemChildren(h):h.children)||[];d.push({id:f,children:p}),c[f]=h,l[f]={id:f,label:g,parentId:o,idAttribute:void 0,expandable:i(h,p),disabled:t.isItemDisabled?t.isItemDisabled(h):!1,selectable:t.isItemSelectionDisabled?!t.isItemSelectionDisabled(h):!0,depth:s},u.push(f)};for(const h of n)m(h);return{metaLookup:l,modelLookup:c,orderedChildrenIds:u,childrenIndexes:gh(u),itemsChildren:d}}function Pd(e){const{storeParameters:t,items:n,parentId:o,depth:s,isItemExpandable:i,existingItemMetaLookup:a}=e,l={},c={},u={},d={},m=$({},a),h=(f,g,p)=>{const y=bh({storeParameters:t,items:f,parentId:g,depth:p,isItemExpandable:i,otherItemsMetaLookup:m});Object.assign(l,y.metaLookup),Object.assign(m,y.metaLookup),Object.assign(c,y.modelLookup),u[g??At]=y.orderedChildrenIds,d[g??At]=y.childrenIndexes;for(const x of y.itemsChildren)h(x.children,x.id,p+1)};return h(n,o,s),{itemMetaLookup:l,itemModelLookup:c,itemOrderedChildrenIdsLookup:u,itemChildrenIndexesLookup:d}}function KR({id:e,parentId:t,item:n,itemMetaLookup:o,siblingsMetaLookup:s}){if(e==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: All items must have a unique \`id\` property. You can use the \`getItemId\` prop to specify a custom id for each item. An item was provided without an id: ${JSON.stringify(n)}`:Re(193,JSON.stringify(n)));if(s[e]!=null||o[e]!=null&&o[e].parentId!==t)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: All items must have a unique \`id\` property. The id "${e}" is used by multiple items. Use the \`getItemId\` prop to specify a custom id for each item if needed.`:Re(194,e))}const XR=[],de={domStructure:Ee(e=>e.domStructure),disabledItemFocusable:Ee(e=>e.disabledItemsFocusable),itemMetaLookup:Ee(e=>e.itemMetaLookup),itemOrderedChildrenIdsLookup:Ee(e=>e.itemOrderedChildrenIdsLookup),itemMeta:Ee((e,t)=>e.itemMetaLookup[t??At]??null),itemOrderedChildrenIds:Ee((e,t)=>e.itemOrderedChildrenIdsLookup[t??At]??XR),itemModel:Ee((e,t)=>e.itemModelLookup[t]),isItemDisabled:Ee((e,t)=>Ws(e.itemMetaLookup,t)),itemIndex:Ee((e,t)=>{const n=e.itemMetaLookup[t];return n==null?-1:e.itemChildrenIndexesLookup[n.parentId??At][n.id]}),itemParentId:Ee((e,t)=>{var n;return((n=e.itemMetaLookup[t])==null?void 0:n.parentId)??null}),itemDepth:Ee((e,t)=>{var n;return((n=e.itemMetaLookup[t])==null?void 0:n.depth)??0}),canItemBeFocused:Ee((e,t)=>e.disabledItemsFocusable||e.itemModelLookup[t]!=null&&!Ws(e.itemMetaLookup,t)),itemChildrenIndentation:Ee(e=>e.itemChildrenIndentation),itemHeight:Ee(e=>e.itemHeight)},Rd=Ee(e=>e.providedTreeId??e.treeId),Ni={treeId:Rd,treeItemIdAttribute:Ee(Rd,(e,t,n)=>n??`${e??""}-${t}`)};class Vo{constructor(t){q(this,"getItem",t=>de.itemModel(this.store.state,t));q(this,"getItemTree",()=>{const t=n=>{const o=de.itemModel(this.store.state,n),s=$({},o),i=de.itemOrderedChildrenIds(this.store.state,n);return i.length>0?s.children=i.map(t):delete s.children,s};return de.itemOrderedChildrenIds(this.store.state,null).map(t)});q(this,"getItemOrderedChildrenIds",t=>de.itemOrderedChildrenIds(this.store.state,t));q(this,"getParentId",t=>{const n=de.itemMeta(this.store.state,t);return(n==null?void 0:n.parentId)||null});q(this,"setIsItemDisabled",({itemId:t,shouldBeDisabled:n})=>{if(!this.store.state.itemMetaLookup[t])return;const o=$({},this.store.state.itemMetaLookup);o[t]=$({},o[t],{disabled:n??!o[t].disabled}),this.store.set("itemMetaLookup",o)});q(this,"addItems",({items:t,parentId:n=null,index:o})=>{if(t.length===0)return;if(n!=null&&de.itemMeta(this.store.state,n)==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: Unable to add items to the parent with id "${n}" because it is not present in the tree. Pass the id of an existing item, or \`null\` to add the items at the root level.`:Re(295,n));const s=n==null?-1:de.itemDepth(this.store.state,n),i=this.store.parameters.dataSource,a=(x,I)=>I!=null&&I.length>0?!0:i==null?!1:i.getChildrenCount(x)!==0,{itemMetaLookup:l,itemModelLookup:c,itemOrderedChildrenIdsLookup:u,itemChildrenIndexesLookup:d}=Pd({storeParameters:this.store.parameters,items:t,parentId:n,depth:s+1,isItemExpandable:a,existingItemMetaLookup:this.store.state.itemMetaLookup});for(const x of Object.keys(l))if(this.store.state.itemMetaLookup[x]!=null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: All items must have a unique \`id\` property. The id "${x}" is used by multiple items. Use the \`getItemId\` prop to specify a custom id for each item if needed.`:Re(194,x));const m=n??At,h=de.itemOrderedChildrenIds(this.store.state,n),f=o??h.length;if(f<0||f>h.length)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: Unable to add items at index "${f}" because it is out of range. The index must be between 0 and the amount of children of the parent item (${h.length}).`:Re(296,f,h.length));const g=u[m],p=[...h];p.splice(f,0,...g),u[m]=p,d[m]=gh(p);const y=$({},this.store.state.itemMetaLookup,l);n!=null&&!y[n].expandable&&(y[n]=$({},y[n],{expandable:!0})),this.store.update({itemMetaLookup:y,itemModelLookup:$({},this.store.state.itemModelLookup,c),itemOrderedChildrenIdsLookup:$({},this.store.state.itemOrderedChildrenIdsLookup,u),itemChildrenIndexesLookup:$({},this.store.state.itemChildrenIndexesLookup,d)}),this.store.selection.propagateSelectionToNewItems(n,g)});q(this,"buildPublicAPI",()=>({getItem:this.getItem,getItemDOMElement:this.getItemDOMElement,getItemOrderedChildrenIds:this.getItemOrderedChildrenIds,getItemTree:this.getItemTree,getParentId:this.getParentId,setIsItemDisabled:this.setIsItemDisabled}));q(this,"getItemDOMElement",t=>{const n=de.itemMeta(this.store.state,t);if(n==null)return null;const o=Ni.treeItemIdAttribute(this.store.state,t,n.idAttribute);return document.getElementById(o)});q(this,"setItemChildren",({items:t,parentId:n,getChildrenCount:o})=>{const s=n??At,i=n==null?-1:de.itemDepth(this.store.state,n),{metaLookup:a,modelLookup:l,orderedChildrenIds:c,childrenIndexes:u}=bh({storeParameters:this.store.parameters,items:t,parentId:n,depth:i+1,isItemExpandable:o?d=>o(d)!==0:()=>!1,otherItemsMetaLookup:de.itemMetaLookup(this.store.state)});this.store.update({itemModelLookup:$({},this.store.state.itemModelLookup,l),itemMetaLookup:$({},this.store.state.itemMetaLookup,a),itemOrderedChildrenIdsLookup:$({},this.store.state.itemOrderedChildrenIdsLookup,{[s]:c}),itemChildrenIndexesLookup:$({},this.store.state.itemChildrenIndexesLookup,{[s]:u})})});q(this,"removeChildren",t=>{const n=this.store.state.itemMetaLookup,o=Object.keys(n).reduce((l,c)=>{const u=n[c];return u.parentId===t?l:$({},l,{[u.id]:u})},{}),s=$({},this.store.state.itemOrderedChildrenIdsLookup),i=$({},this.store.state.itemChildrenIndexesLookup),a=t??At;delete i[a],delete s[a],this.store.update({itemMetaLookup:o,itemOrderedChildrenIdsLookup:s,itemChildrenIndexesLookup:i})});q(this,"handleItemClick",(t,n)=>{var o,s;(s=(o=this.store.parameters).onItemClick)==null||s.call(o,t,n)});this.store=t}}q(Vo,"shouldRebuildItemsState",(t,n)=>["items","isItemDisabled","isItemSelectionDisabled","getItemId","getItemLabel","getItemChildren"].some(o=>{const s=o;return t[s]!==n[s]})),q(Vo,"buildItemsStateIfNeeded",t=>Pd({storeParameters:t,items:t.items,parentId:null,depth:0,isItemExpandable:(n,o)=>!!o&&o.length>0}));const Ji=es(e=>e.expandedItems,e=>{const t=new Map;return e.forEach(n=>{t.set(n,!0)}),t}),nt={expandedItemsRaw:Ee(e=>e.expandedItems),expandedItemsMap:Ji,flatList:es(de.itemOrderedChildrenIdsLookup,Ji,(e,t)=>{function n(o){if(!t.has(o))return[o];const s=[o],i=e[o]||[];for(const a of i)s.push(...n(a));return s}return(e[At]??[]).flatMap(n)}),triggerSlot:Ee(e=>e.expansionTrigger),isItemExpanded:Ee(Ji,(e,t)=>e.has(t)),isItemExpandable:Ee(de.itemMeta,(e,t)=>(e==null?void 0:e.expandable)??!1)},yh=es(e=>e.selectedItems,e=>Array.isArray(e)?e:e!=null?[e]:[]),vh=es(yh,e=>{const t=new Map;return e.forEach(n=>{t.set(n,!0)}),t}),Ca=Ee((e,t)=>{var n;return((n=e.itemMetaLookup[t])==null?void 0:n.selectable)??!0}),wa=Ee(vh,(e,t)=>e.has(t)),xh=Ee(de.isItemDisabled,Ca,e=>!e.disableSelection,(e,t,n,o)=>n&&!e&&t),Sh=Ee(e=>e.selectionPropagation),Nd=Ee((e,t)=>{if(wa(e,t))return"selected";if(de.itemOrderedChildrenIds(e,t).length===0)return"unselected";let n=!1,o=!1;const s=a=>{a!==t&&xh(e,a)&&(wa(e,a)?n=!0:o=!0),de.itemOrderedChildrenIds(e,a).forEach(s)};return s(t),Sh(e).parents?n&&o?"indeterminate":n&&!o?"selected":"unselected":n?"indeterminate":"unselected"}),Ie={selectedItemsRaw:Ee(e=>e.selectedItems),selectedItems:yh,selectedItemsMap:vh,enabled:Ee(e=>!e.disableSelection),isMultiSelectEnabled:Ee(e=>e.multiSelect),isCheckboxSelectionEnabled:Ee(e=>e.checkboxSelection),propagationRules:Sh,isItemSelected:wa,itemSelectionStatus:Nd,isItemIndeterminate:Ee(Nd,(e,t)=>e==="indeterminate"),isFeatureEnabledForItem:Ee(Ca,e=>!e.disableSelection,(e,t,n)=>t&&e),canItemBeSelected:xh,isItemSelectable:Ca},Md=es(Ie.selectedItems,nt.expandedItemsMap,de.itemMetaLookup,de.disabledItemFocusable,e=>de.itemOrderedChildrenIds(e,null),(e,t,n,o,s)=>{const i=e.find(l=>{if(!o&&Ws(n,l))return!1;const c=n[l];return c&&(c.parentId==null||t.has(c.parentId))});if(i!=null)return i;const a=s.find(l=>o||!Ws(n,l));return a??null}),No={defaultFocusableItemId:Md,isItemTheDefaultFocusableItem:Ee(Md,(e,t)=>e===t),focusedItemId:Ee(e=>e.focusedItemId),isItemFocused:Ee((e,t)=>e.focusedItemId===t)},Us={isEmpty:Ee(e=>e.lazyLoadedItems==null?!0:Object.keys(e.lazyLoadedItems.loading).length===0&&Object.keys(e.lazyLoadedItems.errors).length===0),isItemLoading:Ee((e,t)=>{var n;return((n=e.lazyLoadedItems)==null?void 0:n.loading[t??At])??!1}),itemHasError:Ee((e,t)=>{var n;return!!((n=e.lazyLoadedItems)!=null&&n.errors[t??At])}),itemError:Ee((e,t)=>{var n;return(n=e.lazyLoadedItems)==null?void 0:n.errors[t??At]})},mn={isItemEditable:Ee(e=>e.isItemEditable,de.itemModel,(e,t,n)=>!t||e==null?!1:typeof e=="boolean"?e:e(t)),isItemBeingEdited:Ee((e,t)=>t==null?!1:e.editedItemId===t),isAnyItemBeingEdited:Ee(e=>!!e.editedItemId)},Ch=e=>Array.isArray(e)?e.length>0&&e.some(Ch):!!e,wh=({itemId:e,children:t})=>{const{store:n,publicAPI:o}=Yn(),s=Pe(n,nt.isItemExpandable,e),i=Pe(n,Us.isItemLoading,e),a=Pe(n,Us.itemHasError,e),l=Ch(t)||s,c=Pe(n,nt.isItemExpanded,e),u=Pe(n,No.isItemFocused,e),d=Pe(n,Ie.isItemSelected,e),m=Pe(n,Ie.isItemIndeterminate,e),h=Pe(n,de.isItemDisabled,e),f=Pe(n,mn.isItemBeingEdited,e),g=Pe(n,mn.isItemEditable,e),p={expandable:l,expanded:c,focused:u,selected:d,indeterminate:m,disabled:h,editing:f,editable:g,loading:i,error:a},y=R=>{if(p.disabled)return;p.focused||n.focus.focusItem(R,e);const N=Ie.isMultiSelectEnabled(n.state)&&(R.shiftKey||R.ctrlKey||R.metaKey);p.expandable&&!(N&&nt.isItemExpanded(n.state,e))&&n.expansion.setItemExpansion({event:R,itemId:e})},x=R=>{if(!Ie.canItemBeSelected(n.state,e))return;!p.focused&&!p.editing&&n.focus.focusItem(R,e),Ie.isMultiSelectEnabled(n.state)&&(R.shiftKey||R.ctrlKey||R.metaKey)?R.shiftKey?n.selection.expandSelectionRange(R,e):n.selection.setItemSelection({event:R,itemId:e,keepExistingSelection:!0}):n.selection.setItemSelection({event:R,itemId:e,shouldBeSelected:!0})},I=R=>{const N=R.nativeEvent.shiftKey,L=Ie.isMultiSelectEnabled(n.state);L&&N?n.selection.expandSelectionRange(R,e):n.selection.setItemSelection({event:R,itemId:e,keepExistingSelection:L,shouldBeSelected:R.target.checked})},w=()=>{n.labelEditing&&(f?n.labelEditing.setEditedItem(null):n.labelEditing.setEditedItem(e))};return{interactions:{handleExpansion:y,handleSelection:x,handleCheckboxSelection:I,toggleItemEditing:w,handleSaveItemLabel:(R,N)=>{n.labelEditing&&mn.isItemBeingEdited(n.state,e)&&(n.labelEditing.updateItemLabel(e,N),w(),n.focus.focusItem(R,e))},handleCancelItemLabelEditing:R=>{n.labelEditing&&mn.isItemBeingEdited(n.state,e)&&(w(),n.focus.focusItem(R,e))}},status:p,publicAPI:o}},tc=C.createContext(()=>-1);process.env.NODE_ENV!=="production"&&(tc.displayName="TreeViewItemDepthContext");const Ta=(e,t)=>{let n=t.length-1;for(;n>=0&&!de.canItemBeFocused(e,t[n]);)n-=1;if(n!==-1)return t[n]},nc=(e,t)=>{const n=de.itemMeta(e,t);if(!n)return null;const o=de.itemOrderedChildrenIds(e,n.parentId),s=de.itemIndex(e,t);if(s===0)return n.parentId;let i=s-1;for(;!de.canItemBeFocused(e,o[i])&&i>=0;)i-=1;if(i===-1)return n.parentId==null?null:nc(e,n.parentId);let a=o[i],l=Ta(e,de.itemOrderedChildrenIds(e,a));for(;nt.isItemExpanded(e,a)&&l!=null;)a=l,l=Ta(e,de.itemOrderedChildrenIds(e,a));return a},Or=(e,t)=>{if(nt.isItemExpanded(e,t)){const o=de.itemOrderedChildrenIds(e,t).find(s=>de.canItemBeFocused(e,s));if(o!=null)return o}let n=de.itemMeta(e,t);for(;n!=null;){const o=de.itemOrderedChildrenIds(e,n.parentId),s=de.itemIndex(e,n.id);if(s<o.length-1){let i=s+1;for(;!de.canItemBeFocused(e,o[i])&&i<o.length-1;)i+=1;if(de.canItemBeFocused(e,o[i]))return o[i]}n=de.itemMeta(e,n.parentId)}return null},Th=e=>{let t=null;for(;t==null||nt.isItemExpanded(e,t);){const n=de.itemOrderedChildrenIds(e,t),o=Ta(e,n);if(o==null)return t;t=o}return t},Vr=e=>de.itemOrderedChildrenIds(e,null).find(t=>de.canItemBeFocused(e,t)),Ih=(e,t,n)=>{if(t===n)return[t,n];const o=de.itemMeta(e,t),s=de.itemMeta(e,n);if(!o||!s)return[t,n];if(o.parentId===s.id||s.parentId===o.id)return s.parentId===o.id?[o.id,s.id]:[s.id,o.id];const i=[o.id],a=[s.id];let l=o.parentId,c=s.parentId,u=a.indexOf(l)!==-1,d=i.indexOf(c)!==-1,m=!0,h=!0;for(;!d&&!u;)m&&(i.push(l),u=a.indexOf(l)!==-1,m=l!==null,!u&&m&&(l=de.itemParentId(e,l))),h&&!u&&(a.push(c),d=i.indexOf(c)!==-1,h=c!==null,!d&&h&&(c=de.itemParentId(e,c)));const f=u?l:c,g=de.itemOrderedChildrenIds(e,f),p=i[i.indexOf(f)-1],y=a[a.indexOf(f)-1];return g.indexOf(p)<g.indexOf(y)?[t,n]:[n,t]},QR=(e,t,n)=>{const o=c=>{if(nt.isItemExpandable(e,c)&&nt.isItemExpanded(e,c))return de.itemOrderedChildrenIds(e,c)[0];let u=de.itemMeta(e,c);for(;u!=null;){const d=de.itemOrderedChildrenIds(e,u.parentId),m=de.itemIndex(e,u.id);if(m<d.length-1)return d[m+1];u=u.parentId?de.itemMeta(e,u.parentId):null}throw new Error(process.env.NODE_ENV!=="production"?"MUI X Tree View: Invalid range - unable to find a path between the two items. This may occur if the items are not in the same tree or the tree structure is invalid. Verify that both items exist in the tree.":Re(191))},[s,i]=Ih(e,t,n),a=[s];let l=s;for(;l!==i;)l=o(l),de.isItemDisabled(e,l)||a.push(l);return a},ZR=e=>{let t=Vr(e);const n=[];for(;t!=null;)n.push(t),t=Or(e,t);return n},Ia=(e,t)=>t!==e.closest('*[role="treeitem"]');class JR{constructor(t){q(this,"setExpandedItems",(t,n)=>{var o,s;this.store.parameters.expandedItems===void 0&&this.store.set("expandedItems",n),(s=(o=this.store.parameters).onExpandedItemsChange)==null||s.call(o,t,n)});q(this,"isItemExpanded",t=>nt.isItemExpanded(this.store.state,t));q(this,"buildPublicAPI",()=>({isItemExpanded:this.isItemExpanded,setItemExpansion:this.setItemExpansion}));q(this,"setItemExpansion",({itemId:t,event:n=null,shouldBeExpanded:o})=>{const s=nt.isItemExpanded(this.store.state,t),i=o??!s;if(s===i)return;const a={isExpansionPrevented:!1,shouldBeExpanded:i,itemId:t};this.store.publishEvent("beforeItemToggleExpansion",a,n),!a.isExpansionPrevented&&this.applyItemExpansion({itemId:t,event:n,shouldBeExpanded:i})});q(this,"applyItemExpansion",({itemId:t,event:n,shouldBeExpanded:o})=>{var a,l;const s=nt.expandedItemsRaw(this.store.state);let i;o?i=[t].concat(s):i=s.filter(c=>c!==t),(l=(a=this.store.parameters).onItemExpansionToggle)==null||l.call(a,n,t,o),this.setExpandedItems(n,i)});q(this,"expandAllSiblings",(t,n)=>{const o=de.itemMeta(this.store.state,n);if(o==null)return;const i=de.itemOrderedChildrenIds(this.store.state,o.parentId).filter(l=>nt.isItemExpandable(this.store.state,l)&&!nt.isItemExpanded(this.store.state,l)),a=nt.expandedItemsRaw(this.store.state).concat(i);i.length>0&&(this.store.parameters.onItemExpansionToggle&&i.forEach(l=>{this.store.parameters.onItemExpansionToggle(t,l,!0)}),this.setExpandedItems(t,a))});q(this,"addExpandableItems",t=>{const n=$({},this.store.state.itemMetaLookup);for(const o of t)n[o]=$({},n[o],{expandable:!0});this.store.set("itemMetaLookup",n)});this.store=t}}class eN{constructor(t){q(this,"setFocusedItemId",t=>{No.focusedItemId(this.store.state)!==t&&this.store.set("focusedItemId",t)});q(this,"applyItemFocus",(t,n)=>{var o,s,i;(o=this.store.items.getItemDOMElement(n))==null||o.focus(),this.setFocusedItemId(n),(i=(s=this.store.parameters).onItemFocus)==null||i.call(s,t,n)});q(this,"buildPublicAPI",()=>({focusItem:this.focusItem}));q(this,"focusItem",(t,n)=>{const o=de.itemMeta(this.store.state,n);o&&(o.parentId==null||nt.isItemExpanded(this.store.state,o.parentId))&&this.applyItemFocus(t,n)});q(this,"removeFocusedItem",()=>{const t=No.focusedItemId(this.store.state);if(t==null)return;if(de.itemMeta(this.store.state,t)){const o=this.store.items.getItemDOMElement(t);o&&o.blur()}this.setFocusedItemId(null)});q(this,"handleRootFocus",t=>{if(t.defaultMuiPrevented)return;const n=No.defaultFocusableItemId(this.store.state);t.target===t.currentTarget&&n!=null&&this.applyItemFocus(t,n)});q(this,"handleRootBlur",t=>{t.defaultMuiPrevented||this.setFocusedItemId(null)});this.store=t;let n=t.state;this.store.disposables.defer(this.store.subscribe(o=>{if(o.itemMetaLookup===n.itemMetaLookup){n=o;return}const s=No.focusedItemId(o);if(s==null||de.itemMeta(o,s)){n=o;return}const i=l=>l==null||!de.itemMeta(o,l)?null:l,a=i(Or(n,s))??i(nc(n,s))??Vr(o);a==null?this.setFocusedItemId(null):this.applyItemFocus(null,a),n=o}))}}const tN=({props:e})=>{const{itemId:t}=e,{store:n}=Yn(),o=Pe(n,Ie.isCheckboxSelectionEnabled),s=Pe(n,Ie.isFeatureEnabledForItem,t),i=Pe(n,Ie.canItemBeSelected,t),a=Pe(n,de.isItemDisabled,t),l=Pe(n,Ie.isItemSelectable,t),c=Pe(n,Ie.itemSelectionStatus,t),u=a||!l;return{propsEnhancers:{root:()=>{let d;return u?d=void 0:c==="selected"?d=!0:c==="indeterminate"?d="mixed":i?d=!1:d=void 0,{"aria-checked":d}},checkbox:({externalEventHandlers:d,interactions:m})=>({tabIndex:-1,onChange:f=>{var g;(g=d.onChange)==null||g.call(d,f),!f.defaultMuiPrevented&&Ie.canItemBeSelected(n.state,t)&&m.handleCheckboxSelection(f)},visible:o&&s,disabled:!i,checked:c==="selected",indeterminate:c==="indeterminate"})}}};class nN{constructor(t){q(this,"lastSelectedItem",null);q(this,"lastSelectedRange",{});q(this,"setSelectedItems",(t,n,o)=>{const{selectionPropagation:s=Lo,selectedItems:i,onItemSelectionToggle:a,onSelectedItemsChange:l}=this.store.parameters,c=Ie.selectedItemsRaw(this.store.state);let u;const d=Ie.isMultiSelectEnabled(this.store.state);if(d&&(s.descendants||s.parents)?u=oN({store:this.store,selectionPropagation:s,newModel:n,oldModel:c,additionalItemsToPropagate:o}):u=n,i===void 0&&this.store.set("selectedItems",u),a)if(d){const m=Eh({newModel:u,oldModel:c});a&&(m.added.forEach(h=>{a(t,h,!0)}),m.removed.forEach(h=>{a(t,h,!1)}))}else u!==c&&(c!=null&&a(t,c,!1),u!=null&&a(t,u,!0));l==null||l(t,u)});q(this,"selectRange",(t,[n,o])=>{if(!Ie.isMultiSelectEnabled(this.store.state))return;let i=Ie.selectedItems(this.store.state).slice();Object.keys(this.lastSelectedRange).length>0&&(i=i.filter(u=>!this.lastSelectedRange[u]));const a=Es(i),l=QR(this.store.state,n,o).filter(u=>Ie.isItemSelectable(this.store.state,u)),c=l.filter(u=>!a[u]);i=i.concat(c),this.setSelectedItems(t,i),this.lastSelectedRange=Es(l)});q(this,"getItemSelection",t=>Ie.itemSelectionStatus(this.store.state,t));q(this,"buildPublicAPI",()=>({getItemSelection:this.getItemSelection,setItemSelection:this.setItemSelection}));q(this,"propagateSelectionToNewItems",(t,n)=>{const{selectionPropagation:o=Lo}=this.store.parameters;if(t==null||n.length===0||!o.descendants||!Ie.isMultiSelectEnabled(this.store.state)||!Ie.isItemSelected(this.store.state,t))return;const s=Ie.selectedItems(this.store.state).concat(n);this.setSelectedItems(null,s,n)});q(this,"setItemSelection",({itemId:t,event:n=null,keepExistingSelection:o=!1,shouldBeSelected:s})=>{if(!Ie.enabled(this.store.state))return;let i;const a=Ie.isMultiSelectEnabled(this.store.state);if(o&&a){const l=Ie.selectedItems(this.store.state),c=Ie.isItemSelected(this.store.state,t);c&&(s===!1||s==null)?i=l.filter(u=>u!==t):!c&&(s===!0||s==null)?i=[t].concat(l):i=l}else s===!1||s==null&&Ie.isItemSelected(this.store.state,t)?i=a?[]:null:i=a?[t]:t;this.setSelectedItems(n,i,[t]),this.lastSelectedItem=t,this.lastSelectedRange={}});q(this,"selectAllNavigableItems",t=>{if(!Ie.isMultiSelectEnabled(this.store.state))return;const o=ZR(this.store.state);this.setSelectedItems(t,o),this.lastSelectedRange=Es(o)});q(this,"expandSelectionRange",(t,n)=>{if(this.lastSelectedItem!=null){const[o,s]=Ih(this.store.state,n,this.lastSelectedItem);this.selectRange(t,[o,s])}});q(this,"selectRangeFromStartToItem",(t,n)=>{this.selectRange(t,[Vr(this.store.state),n])});q(this,"selectRangeFromItemToEnd",(t,n)=>{this.selectRange(t,[n,Th(this.store.state)])});q(this,"selectItemFromArrowNavigation",(t,n,o)=>{if(!Ie.isMultiSelectEnabled(this.store.state))return;let i=Ie.selectedItems(this.store.state).slice();Object.keys(this.lastSelectedRange).length===0?(Ie.isItemSelected(this.store.state,o)||i.push(o),this.lastSelectedRange={[n]:!0,[o]:!0}):(this.lastSelectedRange[n]||(this.lastSelectedRange={}),this.lastSelectedRange[o]?(i=i.filter(a=>a!==n),delete this.lastSelectedRange[n]):(Ie.isItemSelected(this.store.state,o)||i.push(o),this.lastSelectedRange[o]=!0)),this.setSelectedItems(t,i)});this.store=t,t.itemPluginManager.register(tN,null)}}function oN({store:e,selectionPropagation:t,newModel:n,oldModel:o,additionalItemsToPropagate:s}){if(!t.descendants&&!t.parents)return n;let i=!1;const a=Es(n),l=Eh({newModel:n,oldModel:o});return s==null||s.forEach(c=>{a[c]?l.added.includes(c)||l.added.push(c):l.removed.includes(c)||l.removed.push(c)}),l.added.forEach(c=>{if(t.descendants){const u=d=>{d!==c&&Ie.canItemBeSelected(e.state,d)&&(i=!0,a[d]=!0),de.itemOrderedChildrenIds(e.state,d).forEach(u)};u(c)}if(t.parents){const u=m=>Ie.canItemBeSelected(e.state,m)?a[m]?de.itemOrderedChildrenIds(e.state,m).every(u):!1:de.itemOrderedChildrenIds(e.state,m).every(u),d=m=>{const h=de.itemParentId(e.state,m);if(h==null)return;de.itemOrderedChildrenIds(e.state,h).every(u)&&(Ie.canItemBeSelected(e.state,h)&&(i=!0,a[h]=!0),d(h))};d(c)}}),l.removed.forEach(c=>{if(t.parents){let u=de.itemParentId(e.state,c);for(;u!=null;)a[u]&&(i=!0,delete a[u]),u=de.itemParentId(e.state,u)}if(t.descendants){const u=d=>{d!==c&&(i=!0,delete a[d]),de.itemOrderedChildrenIds(e.state,d).forEach(u)};u(c)}}),i?Object.keys(a):n}function Eh({oldModel:e,newModel:t}){const n=new Map;t.forEach(s=>{n.set(s,!0)});const o=new Map;return e.forEach(s=>{o.set(s,!0)}),{added:t.filter(s=>!o.has(s)),removed:e.filter(s=>!n.has(s))}}function Es(e){const t={};return e.forEach(n=>{t[n]=!0}),t}const rN=(e,t,n)=>typeof n=="function"?n(e,t):n,_h=e=>{const{runItemPlugins:t,publicAPI:n,store:o}=Yn(),s=C.useContext(tc),i=Pe(o,rN,e.itemId,s),{id:a,itemId:l,label:c,children:u,rootRef:d}=e,{rootRef:m,contentRef:h,propsEnhancers:f}=t(e),{interactions:g,status:p}=wh({itemId:l,children:u}),y=C.useRef(null),x=C.useRef(null),I=xa(d,m,y),w=xa(h,x),S=C.useRef(null),E=Pe(o,Ie.isCheckboxSelectionEnabled),T=Pe(o,Ni.treeItemIdAttribute,l,a),R=Pe(o,No.isItemTheDefaultFocusableItem,l),N=Pe(o,de.itemHeight),L={rootRefObject:y,contentRefObject:x,interactions:g},V=H=>F=>{var U;(U=H.onFocus)==null||U.call(H,F),!F.defaultMuiPrevented&&!p.focused&&de.canItemBeFocused(o.state,l)&&F.currentTarget===F.target&&o.focus.focusItem(F,l)},A=H=>F=>{var ae,K,ce,oe,be;if((ae=H.onBlur)==null||ae.call(H,F),F.defaultMuiPrevented)return;const U=o.items.getItemDOMElement(l);p.editing||F.relatedTarget&&Ia(F.relatedTarget,U)&&(F.target&&((ce=(K=F.target)==null?void 0:K.dataset)==null?void 0:ce.element)==="labelInput"&&Ia(F.target,U)||((be=(oe=F.relatedTarget)==null?void 0:oe.dataset)==null?void 0:be.element)==="labelInput")||o.focus.removeFocusedItem()},v=H=>F=>{var U,ae,K;(U=H.onKeyDown)==null||U.call(H,F),!(F.defaultMuiPrevented||((K=(ae=F.target)==null?void 0:ae.dataset)==null?void 0:K.element)==="labelInput")&&o.keyboardNavigation.handleItemKeyDown(F,l)},P=H=>F=>{var U;(U=H.onDoubleClick)==null||U.call(H,F),!F.defaultMuiPrevented&&g.toggleItemEditing()},O=H=>F=>{var U,ae;(U=H.onClick)==null||U.call(H,F),o.items.handleItemClick(F,l),!(F.defaultMuiPrevented||(ae=S.current)!=null&&ae.contains(F.target))&&(nt.triggerSlot(o.state)==="content"&&g.handleExpansion(F),E||g.handleSelection(F))},_=H=>F=>{var U;(U=H.onMouseDown)==null||U.call(H,F),!F.defaultMuiPrevented&&(F.shiftKey||F.ctrlKey||F.metaKey||p.disabled)&&F.preventDefault()},k=H=>F=>{var U;(U=H.onClick)==null||U.call(H,F),!F.defaultMuiPrevented&&nt.triggerSlot(o.state)==="iconContainer"&&g.handleExpansion(F)};return{getContextProviderProps:()=>({itemId:l,id:a}),getRootProps:(H={})=>{var K;const F=$({},Rt(e),Rt(H)),U=$({},F,{ref:I,role:"treeitem",tabIndex:R?0:-1,id:T,"aria-expanded":p.expandable?p.expanded:void 0,"aria-disabled":p.disabled||void 0},H,{style:$({},H.style??{},{"--TreeView-itemDepth":i},N==null?{}:{"--TreeView-itemHeight":`${N}px`}),onFocus:V(F),onBlur:A(F),onKeyDown:v(F)}),ae=((K=f.root)==null?void 0:K.call(f,$({},L,{externalEventHandlers:F})))??{};return $({},U,ae)},getContentProps:(H={})=>{var K;const F=Rt(H),U=$({},F,H,{ref:w,onClick:O(F),onMouseDown:_(F)});["expanded","selected","focused","disabled","editing","editable"].forEach(ce=>{p[ce]&&(U[`data-${ce}`]="")});const ae=((K=f.content)==null?void 0:K.call(f,$({},L,{externalEventHandlers:F})))??{};return $({},U,ae)},getGroupTransitionProps:(H={})=>{const F=Rt(H);return $({},F,{unmountOnExit:!0,component:"ul",role:"group",in:p.expanded,children:u},H)},getIconContainerProps:(H={})=>{const F=Rt(H);return $({},F,H,{onClick:k(F)})},getCheckboxProps:(H={})=>{var K;const F=Rt(H),U=$({},F,{ref:S,"aria-hidden":!0},H),ae=((K=f.checkbox)==null?void 0:K.call(f,$({},L,{externalEventHandlers:F})))??{};return $({},U,ae)},getLabelProps:(H={})=>{var K;const F=$({},Rt(H)),U=$({},F,{children:c},H,{onDoubleClick:P(F)}),ae=((K=f.label)==null?void 0:K.call(f,$({},L,{externalEventHandlers:F})))??{};return $({},ae,U)},getLabelInputProps:(H={})=>{var ae;const F=Rt(H),U=((ae=f.labelInput)==null?void 0:ae.call(f,$({},L,{externalEventHandlers:F})))??{};return $({},H,U)},getDragAndDropOverlayProps:(H={})=>{var ae;const F=Rt(H),U=((ae=f.dragAndDropOverlay)==null?void 0:ae.call(f,$({},L,{externalEventHandlers:F})))??{};return $({},H,U)},getErrorContainerProps:(H={})=>{const F=Rt(H);return $({},F,H)},getLoadingContainerProps:(H={})=>{const F=Rt(H);return $({size:"12px",thickness:6},F,H)},rootRef:I,status:p,publicAPI:n}};function sN(e){return Xl("MuiTreeItem",e)}ph("MuiTreeItem",["root","content","groupTransition","iconContainer","label","checkbox","labelInput","dragAndDropOverlay","errorIcon","loadingIcon"]);const iN=ut(b.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"TreeViewExpandIcon"),aN=ut(b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"TreeViewCollapseIcon"),lN=["ownerState"];function ea(e,t,n){return e!==void 0?e:t!==void 0?t:n}function oc(e){const{slots:t,slotProps:n,status:o}=e,{slots:s,slotProps:i}=ec(),a={collapseIcon:ea(t==null?void 0:t.collapseIcon,s.collapseIcon,aN),expandIcon:ea(t==null?void 0:t.expandIcon,s.expandIcon,iN),endIcon:ea(t==null?void 0:t.endIcon,s.endIcon),icon:t==null?void 0:t.icon};let l;a!=null&&a.icon?l="icon":o.expandable?o.expanded?l="collapseIcon":l="expandIcon":l="endIcon";const c=a[l],u=Et({elementType:c,externalSlotProps:m=>$({},Sa(i[l],m),Sa(n==null?void 0:n[l],m)),ownerState:{}}),d=Ce(u,lN);return c?b.jsx(c,$({},d)):null}process.env.NODE_ENV!=="production"&&(oc.propTypes={slotProps:r.object,slots:r.object,status:r.shape({disabled:r.bool.isRequired,editable:r.bool.isRequired,editing:r.bool.isRequired,error:r.bool.isRequired,expandable:r.bool.isRequired,expanded:r.bool.isRequired,focused:r.bool.isRequired,indeterminate:r.bool,loading:r.bool.isRequired,selected:r.bool.isRequired}).isRequired});const cN=ne("div",{name:"MuiTreeItemDragAndDropOverlay",slot:"Root",shouldForwardProp:e=>Ht(e)&&e!=="action"})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.alpha((e.vars||e).palette.primary.dark,(e.vars||e).palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function Oh(e){return e.action==null?null:b.jsx(cN,$({},e))}process.env.NODE_ENV!=="production"&&(Oh.propTypes={action:r.oneOf(["make-child","move-to-parent","reorder-above","reorder-below"]),style:r.object});function rc(e){const{children:t,itemId:n,id:o}=e,{wrapItem:s,store:i}=Yn(),a=Pe(i,Ni.treeItemIdAttribute,n,o);return b.jsx(C.Fragment,{children:s({children:t,itemId:n,store:i,idAttribute:a})})}process.env.NODE_ENV!=="production"&&(rc.propTypes={children:r.node,id:r.string,itemId:r.string.isRequired});const uN=ne("input",{name:"MuiTreeItem",slot:"LabelInput"})(({theme:e})=>$({},e.typography.body1,{width:"100%",backgroundColor:(e.vars||e).palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${(e.vars||e).palette.primary.main}`}})),dN=["visible"],pN=["id","itemId","label","disabled","disableSelection","children","slots","slotProps","classes"],fN=fh(),kh=ne("li",{name:"MuiTreeItem",slot:"Root"})({listStyle:"none",margin:0,padding:0,outline:0}),Ph=ne("div",{name:"MuiTreeItem",slot:"Content",shouldForwardProp:e=>Ht(e)&&e!=="status"})(({theme:e})=>({padding:e.spacing(.5,1),paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`,borderRadius:e.shape.borderRadius,width:"100%",height:"var(--TreeView-itemHeight, unset)",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&[data-disabled]":{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent",cursor:"auto"},"&[data-focused]":{backgroundColor:(e.vars||e).palette.action.focus},"&[data-selected]":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}}},"&[data-selected][data-focused]":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}})),Rh=ne("div",{name:"MuiTreeItem",slot:"Label",shouldForwardProp:e=>Ht(e)&&e!=="editable"})(({theme:e})=>$({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),Nh=ne("div",{name:"MuiTreeItem",slot:"IconContainer"})({width:16,display:"flex",flexShrink:0,justifyContent:"center",position:"relative",cursor:"inherit","& svg":{fontSize:18}}),Mh=ne(zs,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition})({margin:0,padding:0}),mN=ne("div",{name:"MuiTreeItem",slot:"ErrorIcon"})({position:"absolute",right:-3,width:7,height:7,borderRadius:"50%",backgroundColor:"red"}),hN=ne(di,{name:"MuiTreeItem",slot:"LoadingIcon"})({color:"text.primary"}),$h=ne(C.forwardRef((e,t)=>{const{visible:n}=e,o=Ce(e,dN);return n?b.jsx(hh,$({},o,{ref:t})):null}),{name:"MuiTreeItem",slot:"Checkbox"})({padding:0});process.env.NODE_ENV!=="production"&&($h.displayName="TreeItemCheckbox");const gN=e=>{const{classes:t}=ec(),n=$({},e,{root:ue(e==null?void 0:e.root,t.root),content:ue(e==null?void 0:e.content,t.itemContent),iconContainer:ue(e==null?void 0:e.iconContainer,t.itemIconContainer),checkbox:ue(e==null?void 0:e.checkbox,t.itemCheckbox),label:ue(e==null?void 0:e.label,t.itemLabel),groupTransition:ue(e==null?void 0:e.groupTransition,t.itemGroupTransition),labelInput:ue(e==null?void 0:e.labelInput,t.itemLabelInput),dragAndDropOverlay:ue(e==null?void 0:e.dragAndDropOverlay,t.itemDragAndDropOverlay),errorIcon:ue(e==null?void 0:e.errorIcon,t.itemErrorIcon),loadingIcon:ue(e==null?void 0:e.loadingIcon,t.itemLoadingIcon)});return dh({root:["root"],content:["content"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],groupTransition:["groupTransition"],labelInput:["labelInput"],dragAndDropOverlay:["dragAndDropOverlay"],errorIcon:["errorIcon"],loadingIcon:["loadingIcon"]},sN,n)},sc=C.forwardRef(function(t,n){const o=fN({props:t,name:"MuiTreeItem"}),{id:s,itemId:i,label:a,disabled:l,disableSelection:c,children:u,slots:d={},slotProps:m={},classes:h}=o,f=Ce(o,pN),{getContextProviderProps:g,getRootProps:p,getContentProps:y,getIconContainerProps:x,getCheckboxProps:I,getLabelProps:w,getGroupTransitionProps:S,getLabelInputProps:E,getDragAndDropOverlayProps:T,getErrorContainerProps:R,getLoadingContainerProps:N,status:L}=_h({id:s,itemId:i,children:u,label:a,disabled:l,disableSelection:c}),V=gN(h),A=d.root??kh,v=Et({elementType:A,getSlotProps:p,externalForwardedProps:f,externalSlotProps:m.root,additionalProps:{ref:n},ownerState:{},className:V.root}),P=d.content??Ph,O=Et({elementType:P,getSlotProps:y,externalSlotProps:m.content,ownerState:{},className:V.content}),_=d.iconContainer??Nh,k=Et({elementType:_,getSlotProps:x,externalSlotProps:m.iconContainer,ownerState:{},className:V.iconContainer}),D=d.label??Rh,M=Et({elementType:D,getSlotProps:w,externalSlotProps:m.label,ownerState:{},className:V.label}),z=d.checkbox??$h,j=Et({elementType:z,getSlotProps:I,externalSlotProps:m.checkbox,ownerState:{},className:V.checkbox}),B=d.groupTransition??void 0,W=Et({elementType:B,getSlotProps:S,externalSlotProps:m.groupTransition,ownerState:{},className:V.groupTransition}),X=d.labelInput??uN,Q=Et({elementType:X,getSlotProps:E,externalSlotProps:m.labelInput,ownerState:{},className:V.labelInput}),G=d.dragAndDropOverlay??Oh,Z=Et({elementType:G,getSlotProps:T,externalSlotProps:m.dragAndDropOverlay,ownerState:{},className:V.dragAndDropOverlay}),te=d.errorIcon??mN,H=Et({elementType:te,getSlotProps:R,externalSlotProps:m.errorIcon,ownerState:{},className:V.errorIcon}),F=d.loadingIcon??hN,U=Et({elementType:F,getSlotProps:N,externalSlotProps:m.loadingIcon,ownerState:{},className:V.loadingIcon});return b.jsx(rc,$({},g(),{children:b.jsxs(A,$({},v,{children:[b.jsxs(P,$({},O,{children:[b.jsxs(_,$({},k,{children:[L.error&&b.jsx(te,$({},H)),L.loading?b.jsx(F,$({},U)):b.jsx(oc,{status:L,slots:d,slotProps:m})]})),b.jsx(z,$({},j)),L.editing?b.jsx(X,$({},Q)):b.jsx(D,$({},M)),b.jsx(G,$({},Z))]})),u&&b.jsx(Mh,$({as:B},W))]}))}))});process.env.NODE_ENV!=="production"&&(sc.displayName="TreeItem");process.env.NODE_ENV!=="production"&&(sc.propTypes={children:r.any,classes:r.object,className:r.string,disabled:r.bool,disableSelection:r.bool,id:r.string,itemId:r.string.isRequired,label:r.node,onBlur:r.func,onFocus:PR,onKeyDown:r.func,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function bN(e,t,n){const o=Pe(e,Ni.treeId),s=Pe(e,de.itemChildrenIndentation),i=Pe(e,Ie.isMultiSelectEnabled);return a=>$({ref:n,role:"tree",id:o,"aria-multiselectable":i},t,a,{style:$({},t.style,{"--TreeView-itemChildrenIndentation":typeof s=="number"?`${s}px`:s}),onFocus:l=>{var c;(c=a.onFocus)==null||c.call(a,l),e.focus.handleRootFocus(l)},onBlur:l=>{var c;(c=a.onBlur)==null||c.call(a,l),e.focus.handleRootBlur(l)}})}const yN=["ownerState"],ic=C.createContext(null);process.env.NODE_ENV!=="production"&&(ic.displayName="RichTreeViewItemsContext");const vN=()=>Ql,xN=e=>de.itemOrderedChildrenIds(e,null),Dh=C.memo(function({itemSlot:t,itemSlotProps:n,itemId:o,skipChildren:s}){const i=C.useContext(ic),{store:a}=Yn(),l=Pe(a,de.itemMeta,o),c=Pe(a,s?vN:de.itemOrderedChildrenIds,o),u=t??sc,d=Et({elementType:u,externalSlotProps:n,additionalProps:{label:l==null?void 0:l.label,id:l==null?void 0:l.idAttribute,itemId:o},ownerState:{itemId:o,label:l==null?void 0:l.label}}),m=Ce(d,yN);return b.jsx(u,$({},m,{children:i?c==null?void 0:c.map(i):null}))},kR);process.env.NODE_ENV!=="production"&&(Dh.displayName="RichTreeViewItem");function SN(e){const{slots:t,slotProps:n,ownerState:o,forwardedProps:s,rootRef:i}=e,{store:a}=Yn(),{classes:l}=ec(),c=t==null?void 0:t.item,u=n==null?void 0:n.item,d=Pe(a,de.domStructure),m=Pe(a,d==="flat"?nt.flatList:xN),h=bN(a,s,i),f=t.root,g=Et({elementType:f,externalSlotProps:n==null?void 0:n.root,className:l.root,getSlotProps:h,ownerState:o}),p=d==="flat",y=C.useCallback(x=>b.jsx(Dh,{itemSlot:c,itemSlotProps:u,itemId:x,skipChildren:p},x),[c,u,p]);return b.jsx(ic.Provider,{value:y,children:b.jsx(f,$({},g,{children:m.map(y)}))})}const CN=["apiRef","slots","slotProps","disabledItemsFocusable","items","isItemDisabled","isItemSelectionDisabled","getItemLabel","getItemChildren","getItemId","onItemClick","itemChildrenIndentation","id","expandedItems","defaultExpandedItems","onExpandedItemsChange","onItemExpansionToggle","expansionTrigger","disableSelection","selectedItems","defaultSelectedItems","multiSelect","checkboxSelection","selectionPropagation","onSelectedItemsChange","onItemSelectionToggle","onItemFocus","itemHeight","onItemLabelChange","isItemEditable","domStructure"];function wN(e){const{apiRef:t,slots:n,slotProps:o,disabledItemsFocusable:s,items:i,isItemDisabled:a,isItemSelectionDisabled:l,getItemLabel:c,getItemChildren:u,getItemId:d,onItemClick:m,itemChildrenIndentation:h,id:f,expandedItems:g,defaultExpandedItems:p,onExpandedItemsChange:y,onItemExpansionToggle:x,expansionTrigger:I,disableSelection:w,selectedItems:S,defaultSelectedItems:E,multiSelect:T,checkboxSelection:R,selectionPropagation:N,onSelectedItemsChange:L,onItemSelectionToggle:V,onItemFocus:A,itemHeight:v,onItemLabelChange:P,isItemEditable:O,domStructure:_}=e,k=Ce(e,CN),D=C.useMemo(()=>({disabledItemsFocusable:s,items:i,isItemDisabled:a,isItemSelectionDisabled:l,getItemLabel:c,getItemChildren:u,getItemId:d,onItemClick:m,itemChildrenIndentation:h,id:f,expandedItems:g,defaultExpandedItems:p,onExpandedItemsChange:y,onItemExpansionToggle:x,expansionTrigger:I,disableSelection:w,selectedItems:S,defaultSelectedItems:E,multiSelect:T,checkboxSelection:R,selectionPropagation:N,onSelectedItemsChange:L,onItemSelectionToggle:V,onItemFocus:A,itemHeight:v,onItemLabelChange:P,isItemEditable:O,domStructure:_}),[s,i,a,l,c,u,d,m,h,f,g,p,y,x,I,w,S,E,T,R,N,L,V,A,v,P,O,_]);return{apiRef:t,slots:n,slotProps:o,parameters:D,forwardedProps:k}}const TN=()=>{},IN=typeof document<"u"?C.useLayoutEffect:TN;function ac(e){C.useEffect(e,Ql)}const EN={...C},Fr=typeof Symbol.dispose=="symbol"?Symbol.dispose:Symbol.for("Symbol.dispose"),$d=typeof SuppressedError=="function"?SuppressedError:void 0;function _N(e,t){if($d)return new $d(e,t);const n=new Error("An error was suppressed during disposal.");return Object.assign(n,{name:"SuppressedError",error:e,suppressed:t})}function hs(e){if(e)throw new ReferenceError("MUI X: The disposable stack is disposed.")}class lc{constructor(){q(this,"stack",[]);q(this,"isDisposed",!1)}get disposed(){return this.isDisposed}use(t){if(hs(this.isDisposed),t!=null){const n=t[Fr];if(typeof n!="function")throw new TypeError("MUI X: The value is not disposable.");this.stack.push(()=>n.call(t))}return t}adopt(t,n){return hs(this.isDisposed),this.stack.push(()=>n(t)),t}defer(t){hs(this.isDisposed),this.stack.push(t)}move(){hs(this.isDisposed);const t=new lc;return t.stack=this.stack,this.stack=[],this.isDisposed=!0,t}dispose(){if(this.isDisposed)return;this.isDisposed=!0;let t=!1,n;for(let o=this.stack.length-1;o>=0;o-=1)try{this.stack[o]()}catch(s){n=t?_N(s,n):s,t=!0}if(this.stack=[],t)throw n}[Fr](){this.dispose()}}const ON=globalThis.DisposableStack??lc;function kN(e){const t=[];let n=e;for(;typeof n=="object"&&n!==null&&"error"in n&&"suppressed"in n;)t.push(n.error),n=n.suppressed;return t.push(n),t}const PN=16,Dd=EN,Eo=Dd.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE??Dd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function RN(){var e,t,n;try{const o=((t=(e=Eo==null?void 0:Eo.A)==null?void 0:e.getOwner)==null?void 0:t.call(e))??((n=Eo==null?void 0:Eo.ReactCurrentOwner)==null?void 0:n.current)??null;return o==null||typeof o.mode!="number"?!1:(o.mode&PN)!==0}catch{return!1}}const qs=Symbol("useDisposable.mount"),NN=Symbol("useDisposable.devState"),Fo=Symbol();function MN(e){const t=C.useRef(Fo);if(t.current===Fo){const n=e(),o=()=>{n[Fr](),t.current=Fo};n[qs]=()=>o,t.current=n}return ac(t.current[qs]),t.current}function $N(e){const t=C.useRef(Fo);if(t.current===Fo){const n=e(),o={detectedStrict:RN(),mountCount:0,disposed:!1};n[NN]=o,n[qs]=()=>{if(o.mountCount+=1,o.mountCount>1&&o.disposed)throw new Error(process.env.NODE_ENV!=="production"?`MUI X: useDisposable failed to detect React StrictMode.
259
+ */var bp;function pN(){return bp||(bp=1,process.env.NODE_ENV!=="production"&&(function(){function e(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=H,n=Rc(),o=typeof Object.is=="function"?Object.is:e,s=n.useSyncExternalStore,i=t.useRef,a=t.useEffect,l=t.useMemo,c=t.useDebugValue;Ca.useSyncExternalStoreWithSelector=function(u,d,m,g,p){var b=i(null);if(b.current===null){var f={hasValue:!1,value:null};b.current=f}else f=b.current;b=l(function(){function x(I){if(!T){if(T=!0,S=I,I=g(I),p!==void 0&&f.hasValue){var R=f.value;if(p(R,I))return w=R}return w=I}if(R=w,o(S,I))return R;var N=g(I);return p!==void 0&&p(R,N)?(S=I,R):(S=I,w=N)}var T=!1,S,w,E=m===void 0?null:m;return[function(){return x(d())},E===null?void 0:function(){return x(E())}]},[d,m,g,p]);var y=s(u,b[0],b[1]);return a(function(){f.hasValue=!0,f.value=y},[y]),c(y),y},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ca}var yp;function fN(){return yp||(yp=1,process.env.NODE_ENV==="production"?Ns.exports=dN():Ns.exports=pN()),Ns.exports}var mN=fN();const hN=parseInt(C.version,10),gN=hN>=19,bN=gN?yN:vN;function $e(e,t,n,o,s){return bN(e,t,n,o,s)}function yN(e,t,n,o,s){const i=C.useCallback(()=>t(e.getSnapshot(),n,o,s),[e,t,n,o,s]);return uN.useSyncExternalStore(e.subscribe,i,i)}function vN(e,t,n,o,s){return mN.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,i=>t(i,n,o,s))}class Nc{constructor(t){X(this,"subscribe",t=>(this.listeners.add(t),()=>{this.listeners.delete(t)}));X(this,"getSnapshot",()=>this.state);X(this,"use",(t,n,o,s)=>$e(this,t,n,o,s));this.state=t,this.listeners=new Set,this.updateTick=0}static create(t){return new Nc(t)}setState(t){this.state=t,this.updateTick+=1;const n=this.updateTick,o=this.listeners.values();let s;for(;s=o.next(),!s.done;){if(n!==this.updateTick)return;const i=s.value;i(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState(D({},this.state,t));return}}set(t,n){Object.is(this.state[t],n)||this.setState(D({},this.state,{[t]:n}))}}function xN(e){return Re("MuiAlert",e)}const vp=Pe("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),CN=bt(h.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"),wN=bt(h.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),SN=bt(h.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"),TN=bt(h.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"),IN=bt(h.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"),EN=e=>{const{variant:t,color:n,severity:o,classes:s}=e,i={root:["root",`color${me(n||o)}`,`${t}${me(n||o)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Ae(i,xN,s)},kN=te(fs,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${me(n.color||n.severity)}`]]}})(ct(({theme:e})=>{const t=e.palette.mode==="light"?e.darken:e.lighten,n=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Ot(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:n(e.palette[o].light,.9),[`& .${vp.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(Ot(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${vp.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(Ot(["dark"])).map(([o])=>({props:{colorSeverity:o,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}}}))]}})),ON=te("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),_N=te("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),PN=te("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),xp={success:h.jsx(CN,{fontSize:"inherit"}),warning:h.jsx(wN,{fontSize:"inherit"}),error:h.jsx(SN,{fontSize:"inherit"}),info:h.jsx(TN,{fontSize:"inherit"})},Tg=C.forwardRef(function(t,n){const o=Je({props:t,name:"MuiAlert"}),{action:s,children:i,className:a,closeText:l="Close",color:c,components:u={},componentsProps:d={},icon:m,iconMapping:g=xp,onClose:p,role:b="alert",severity:f="success",slotProps:y={},slots:x={},variant:T="standard",...S}=o,w={...o,color:c,severity:f,variant:T,colorSeverity:c||f},E=EN(w),I={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...x},slotProps:{...d,...y}},[R,N]=it("root",{ref:n,shouldForwardComponentProp:!0,className:ue(E.root,a),elementType:kN,externalForwardedProps:{...I,...S},ownerState:w,additionalProps:{role:b,elevation:0}}),[j,V]=it("icon",{className:E.icon,elementType:ON,externalForwardedProps:I,ownerState:w}),[$,v]=it("message",{className:E.message,elementType:_N,externalForwardedProps:I,ownerState:w}),[O,P]=it("action",{className:E.action,elementType:PN,externalForwardedProps:I,ownerState:w}),[k,M]=it("closeButton",{elementType:Qn,externalForwardedProps:I,ownerState:w}),[_,A]=it("closeIcon",{elementType:IN,externalForwardedProps:I,ownerState:w});return h.jsxs(R,{...N,children:[m!==!1?h.jsx(j,{...V,children:m||g[f]||xp[f]}):null,h.jsx($,{...v,children:i}),s!=null?h.jsx(O,{...P,children:s}):null,s==null&&p?h.jsx(O,{...P,children:h.jsx(k,{size:"small","aria-label":l,title:l,color:"inherit",onClick:p,...M,children:h.jsx(_,{fontSize:"small",...A})})}):null]})});process.env.NODE_ENV!=="production"&&(Tg.propTypes={action:r.node,children:r.node,classes:r.object,className:r.string,closeText:r.string,color:r.oneOfType([r.oneOf(["error","info","success","warning"]),r.string]),components:r.shape({CloseButton:r.elementType,CloseIcon:r.elementType}),componentsProps:r.shape({closeButton:r.object,closeIcon:r.object}),icon:r.node,iconMapping:r.shape({error:r.node,info:r.node,success:r.node,warning:r.node}),onClose:r.func,role:r.string,severity:r.oneOfType([r.oneOf(["error","info","success","warning"]),r.string]),slotProps:r.shape({action:r.oneOfType([r.func,r.object]),closeButton:r.oneOfType([r.func,r.object]),closeIcon:r.oneOfType([r.func,r.object]),icon:r.oneOfType([r.func,r.object]),message:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({action:r.elementType,closeButton:r.elementType,closeIcon:r.elementType,icon:r.elementType,message:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),variant:r.oneOfType([r.oneOf(["filled","outlined","standard"]),r.string])});function Ig(e,t,n=void 0){const o={};for(const s in e){const i=e[s];let a="",l=!0;for(let c=0;c<i.length;c+=1){const u=i[c];u&&(a+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(a+=" "+n[u]))}o[s]=a}return o}const Cp=e=>e,MN=()=>{let e=Cp;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Cp}}},DN=MN(),RN={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function $c(e,t,n="Mui"){const o=RN[t];return o?`${n}-${o}`:`${DN.generate(e)}-${t}`}function Eg(e,t,n="Mui"){const o={};return t.forEach(s=>{o[s]=$c(e,s,n)}),o}function NN(e){return $c("MuiRichTreeView",e)}Eg("MuiRichTreeView",["root","item","itemContent","itemGroupTransition","itemIconContainer","itemLabel","itemCheckbox","itemLabelInput"]);function kg(e){return ke}const jc=Object.freeze([]),Jo=Object.freeze({}),Ac=C.createContext(null);process.env.NODE_ENV!=="production"&&(Ac.displayName="TreeViewContext");const so=()=>{const e=C.useContext(Ac);if(e==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI X Tree View: Could not find the Tree View context. This happens when a component is rendered outside of a SimpleTreeView or RichTreeView parent component. Ensure your component is a child of a Tree View component. This can also happen if you are bundling multiple versions of the Tree View.":je(190));return e},Lc=C.createContext({classes:{},slots:{},slotProps:{}});process.env.NODE_ENV!=="production"&&(Lc.displayName="TreeViewStyleContext");const Vc=()=>C.useContext(Lc),$N=e=>{const{store:t,apiRef:n,rootRef:o}=e,s=wg(()=>t.buildPublicAPI()).current;jN(s,n);const i=C.useCallback(l=>{let c=null,u=null;const d=[],m={};t.itemPluginManager.listPlugins().forEach(b=>{const f=b({props:l,rootRef:c,contentRef:u});f!=null&&f.rootRef&&(c=f.rootRef),f!=null&&f.contentRef&&(u=f.contentRef),f!=null&&f.propsEnhancers&&(d.push(f.propsEnhancers),Object.keys(f.propsEnhancers).forEach(y=>{m[y]=!0}))});const g=b=>f=>{const y={};return d.forEach(x=>{const T=x[b];T!=null&&Object.assign(y,T(f))}),y},p=Object.fromEntries(Object.keys(m).map(b=>[b,g(b)]));return{contentRef:u,rootRef:c,propsEnhancers:p}},[t]),a=C.useCallback(({itemId:l,children:c,idAttribute:u})=>{let d=c;const m=t.itemPluginManager.listWrappers();for(let g=m.length-1;g>=0;g-=1){const p=m[g];d=p({store:t,itemId:l,children:d,idAttribute:u})}return d},[t]);return C.useMemo(()=>({runItemPlugins:i,wrapItem:a,publicAPI:s,store:t,rootRef:o}),[i,a,s,t,o])};function jN(e,t){t!=null&&t.current!==e&&(t.current=e)}function AN(e){const{store:t,apiRef:n,rootRef:o,classes:s=Jo,slots:i=Jo,slotProps:a=Jo,children:l}=e,c=$N({store:t,apiRef:n,rootRef:o}),u=C.useMemo(()=>({classes:s,slots:{collapseIcon:i.collapseIcon,expandIcon:i.expandIcon,endIcon:i.endIcon},slotProps:{collapseIcon:a.collapseIcon,expandIcon:a.expandIcon,endIcon:a.endIcon}}),[s,i.collapseIcon,i.expandIcon,i.endIcon,a.collapseIcon,a.expandIcon,a.endIcon]);return h.jsx(Ac.Provider,{value:c,children:h.jsx(Lc.Provider,{value:u,children:l})})}function LN(...e){const t=C.useRef(void 0),n=C.useCallback(o=>{const s=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{s.forEach(i=>i==null?void 0:i())}},e);return C.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}function VN(e){return typeof e=="string"}function FN(e,t,n){return e===void 0||VN(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function BN(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Wt(e){if(e===void 0)return{};const t={};for(const n of Object.keys(e))BN(n,e[n])&&(t[n]=e[n]);return t}function wp(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function zN(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:s,className:i}=e;if(!t){const p=ue(n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),b={...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},f={...n,...s,...o};return p.length>0&&(f.className=p),Object.keys(b).length>0&&(f.style=b),{props:f,internalRef:void 0}}const a=Wt({...s,...o}),l=wp(o),c=wp(s),u=t(a),d=ue(u==null?void 0:u.className,n==null?void 0:n.className,i,s==null?void 0:s.className,o==null?void 0:o.className),m={...u==null?void 0:u.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},g={...u,...n,...c,...l};return d.length>0&&(g.className=d),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:u.ref}}function Ha(e,t,n){return typeof e=="function"?e(t,n):e}function Rt(e){var m;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:s=!1,...i}=e,a=s?{}:Ha(n,o),{props:l,internalRef:c}=zN({...i,externalSlotProps:a}),u=LN(c,a==null?void 0:a.ref,(m=e.additionalProps)==null?void 0:m.ref);return FN(t,{...l,ref:u},o)}const WN=Object.is;function UN(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,o=0;for(const s in e)if(n+=1,!WN(e[s],t[s])||!(s in t))return!1;for(const s in t)o+=1;return n===o}function HN(e,t,n,o,s){if(process.env.NODE_ENV==="production")return null;const i=s||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function qN(e){return Re("MuiCollapse",e)}Pe("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const YN=e=>{const{orientation:t,classes:n}=e;return Ae({root:["root",t],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",t],wrapperInner:["wrapperInner",t]},qN,n)},GN=te("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(ct(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),KN=te("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),XN=te("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),li=C.forwardRef(function(t,n){const o=Je({props:t,name:"MuiCollapse"}),{addEndListener:s,children:i,className:a,collapsedSize:l="0px",component:c,easing:u,in:d,onEnter:m,onEntered:g,onEntering:p,onExit:b,onExited:f,onExiting:y,orientation:x="vertical",slots:T={},slotProps:S={},style:w,timeout:E=gf.standard,TransitionComponent:I=Bt,...R}=o,N={...o,orientation:x,collapsedSize:l},j=YN(N),V=Io(),$=Il(),v=C.useRef(null),O=C.useRef(),P=typeof l=="number"?`${l}px`:l,k=x==="horizontal",M=k?"width":"height",_=C.useRef(null),A=It(n,_),B=()=>v.current?v.current[k?"clientWidth":"clientHeight"]:0,L=vt(_,(ne,de)=>{v.current&&k&&(v.current.style.position="absolute"),ne.style[M]=P,m&&m(ne,de)}),F=vt(_,(ne,de)=>{const fe=B();v.current&&k&&(v.current.style.position="");const{duration:ae,easing:oe}=rr({style:w,timeout:E,easing:u},{mode:"enter"});if(E==="auto"){const he=V.transitions.getAutoHeightDuration(fe);ne.style.transitionDuration=`${he}ms`,O.current=he}else ne.style.transitionDuration=typeof ae=="string"?ae:`${ae}ms`;ne.style[M]=`${fe}px`,ne.style.transitionTimingFunction=oe,p&&p(ne,de)}),W=vt(_,(ne,de)=>{ne.style[M]="auto",g&&g(ne,de)}),G=vt(_,ne=>{ne.style[M]=`${B()}px`,b&&b(ne)}),Q=vt(_,f),K=vt(_,ne=>{const de=B(),{duration:fe,easing:ae}=rr({style:w,timeout:E,easing:u},{mode:"exit"});if(E==="auto"){const oe=V.transitions.getAutoHeightDuration(de);ne.style.transitionDuration=`${oe}ms`,O.current=oe}else ne.style.transitionDuration=typeof fe=="string"?fe:`${fe}ms`;ne.style[M]=P,ne.style.transitionTimingFunction=ae,y&&y(ne)}),Z=ne=>{E==="auto"&&$.start(O.current||0,ne),s&&s(_.current,ne)},se={slots:T,slotProps:S,component:c},[Y,z]=it("root",{ref:A,className:ue(j.root,a),elementType:GN,externalForwardedProps:se,ownerState:N,additionalProps:{style:{[k?"minWidth":"minHeight"]:P,...w}}}),[q,J]=it("wrapper",{ref:v,className:j.wrapper,elementType:KN,externalForwardedProps:se,ownerState:N}),[U,ce]=it("wrapperInner",{className:j.wrapperInner,elementType:XN,externalForwardedProps:se,ownerState:N});return h.jsx(I,{in:d,onEnter:L,onEntered:W,onEntering:F,onExit:G,onExited:Q,onExiting:K,addEndListener:Z,nodeRef:_,timeout:E==="auto"?null:E,...R,children:(ne,{ownerState:de,...fe})=>{const ae={...N,state:ne};return h.jsx(Y,{...z,className:ue(z.className,{entered:j.entered,exited:!d&&P==="0px"&&j.hidden}[ne]),ownerState:ae,...fe,children:h.jsx(q,{...J,ownerState:ae,children:h.jsx(U,{...ce,ownerState:ae,children:i})})})}})});process.env.NODE_ENV!=="production"&&(li.propTypes={addEndListener:r.func,children:r.node,classes:r.object,className:r.string,collapsedSize:r.oneOfType([r.number,r.string]),component:jl,easing:r.oneOfType([r.shape({enter:r.string,exit:r.string}),r.string]),in:r.bool,onEnter:r.func,onEntered:r.func,onEntering:r.func,onExit:r.func,onExited:r.func,onExiting:r.func,orientation:r.oneOf(["horizontal","vertical"]),slotProps:r.shape({root:r.oneOfType([r.func,r.object]),wrapper:r.oneOfType([r.func,r.object]),wrapperInner:r.oneOfType([r.func,r.object])}),slots:r.shape({root:r.elementType,wrapper:r.elementType,wrapperInner:r.elementType}),style:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),timeout:r.oneOfType([r.oneOf(["auto"]),r.number,r.shape({appear:r.number,enter:r.number,exit:r.number})])});li&&(li.muiSupportAuto=!0);function QN(e){return Re("PrivateSwitchBase",e)}Pe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const ZN=e=>{const{classes:t,checked:n,disabled:o,edge:s}=e,i={root:["root",n&&"checked",o&&"disabled",s&&`edge${me(s)}`],input:["input"]};return Ae(i,QN,t)},JN=te(Xn,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),e$=te("input",{name:"MuiSwitchBase",shouldForwardProp:pr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Og=C.forwardRef(function(t,n){const{autoFocus:o,checked:s,checkedIcon:i,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:m,inputProps:g,inputRef:p,name:b,onBlur:f,onChange:y,onFocus:x,readOnly:T,required:S=!1,tabIndex:w,type:E,value:I,slots:R={},slotProps:N={},...j}=t,[V,$]=o0({controlled:s,default:!!a,name:"SwitchBase",state:"checked"}),v=Oo(),O=K=>{x&&x(K),v&&v.onFocus&&v.onFocus(K)},P=K=>{f&&f(K),v&&v.onBlur&&v.onBlur(K)},k=K=>{if(K.nativeEvent.defaultPrevented||T)return;const Z=K.target.checked;$(Z),y&&y(K,Z)};let M=l;v&&typeof M>"u"&&(M=v.disabled);const _=E==="checkbox"||E==="radio",A={...t,checked:V,disabled:M,disableFocusRipple:c,edge:u},B=ZN(A),L={slots:R,slotProps:{input:g,...N}},[F,W]=it("root",{ref:n,elementType:JN,className:B.root,shouldForwardComponentProp:!0,externalForwardedProps:{...L,component:"span",...j},getSlotProps:K=>({...K,onFocus:Z=>{var se;(se=K.onFocus)==null||se.call(K,Z),O(Z)},onBlur:Z=>{var se;(se=K.onBlur)==null||se.call(K,Z),P(Z)}}),ownerState:A,additionalProps:{centerRipple:!0,focusRipple:!c,role:void 0,tabIndex:null}}),[G,Q]=it("input",{ref:p,elementType:e$,className:B.input,externalForwardedProps:L,getSlotProps:K=>({...K,onChange:Z=>{var se;(se=K.onChange)==null||se.call(K,Z),k(Z)}}),ownerState:A,additionalProps:{autoFocus:o,checked:s,defaultChecked:a,disabled:M,id:_?m:void 0,name:b,readOnly:T,required:S,tabIndex:w,type:E,...E==="checkbox"&&I===void 0?{}:{value:I}}});return h.jsxs(F,{...W,children:[h.jsx(G,{...Q}),V?i:d]})});process.env.NODE_ENV!=="production"&&(Og.propTypes={autoFocus:r.bool,checked:r.bool,checkedIcon:r.node.isRequired,classes:r.object,className:r.string,defaultChecked:r.bool,disabled:r.bool,disableFocusRipple:r.bool,edge:r.oneOf(["end","start",!1]),icon:r.node.isRequired,id:r.string,inputProps:r.object,inputRef:Ni,name:r.string,onBlur:r.func,onChange:r.func,onFocus:r.func,readOnly:r.bool,required:r.bool,slotProps:r.shape({input:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({input:r.elementType,root:r.elementType}),sx:r.object,tabIndex:r.oneOfType([r.number,r.string]),type:r.string.isRequired,value:r.any});const t$=bt(h.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),n$=bt(h.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),o$=bt(h.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function r$(e){return Re("MuiCheckbox",e)}const wa=Pe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),s$=e=>{const{classes:t,indeterminate:n,color:o,size:s}=e,i={root:["root",n&&"indeterminate",`color${me(o)}`,`size${me(s)}`]},a=Ae(i,r$,t);return{...t,...a}},i$=te(Og,{shouldForwardProp:e=>pr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${me(n.size)}`],n.color!=="default"&&t[`color${me(n.color)}`]]}})(ct(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Ot()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Ot()).map(([t])=>({props:{color:t},style:{[`&.${wa.checked}, &.${wa.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${wa.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),a$=h.jsx(n$,{}),l$=h.jsx(t$,{}),c$=h.jsx(o$,{}),_g=C.forwardRef(function(t,n){const o=Je({props:t,name:"MuiCheckbox"}),{checkedIcon:s=a$,color:i="primary",icon:a=l$,indeterminate:l=!1,indeterminateIcon:c=c$,inputProps:u,size:d="medium",disableRipple:m=!1,className:g,slots:p={},slotProps:b={},...f}=o,y=l?c:a,x=l?c:s,T={...o,disableRipple:m,color:i,indeterminate:l,size:d},S=s$(T),w=b.input??u,[E,I]=it("root",{ref:n,elementType:i$,className:ue(S.root,g),shouldForwardComponentProp:!0,externalForwardedProps:{slots:p,slotProps:b,...f},ownerState:T,additionalProps:{type:"checkbox",icon:C.cloneElement(y,{fontSize:y.props.fontSize??d}),checkedIcon:C.cloneElement(x,{fontSize:x.props.fontSize??d}),disableRipple:m,slots:p,slotProps:{input:s0(typeof w=="function"?w(T):w,{"data-indeterminate":l,"aria-checked":l?"mixed":void 0})}}});return h.jsx(E,{...I,classes:S})});process.env.NODE_ENV!=="production"&&(_g.propTypes={checked:r.bool,checkedIcon:r.node,classes:r.object,className:r.string,color:r.oneOfType([r.oneOf(["default","primary","secondary","error","info","success","warning"]),r.string]),defaultChecked:r.bool,disabled:r.bool,disableRipple:r.bool,icon:r.node,id:r.string,indeterminate:r.bool,indeterminateIcon:r.node,inputProps:r.object,onChange:r.func,required:r.bool,size:r.oneOfType([r.oneOf(["medium","small"]),r.string]),slotProps:r.shape({input:r.oneOfType([r.func,r.object]),root:r.oneOfType([r.func,r.object])}),slots:r.shape({input:r.elementType,root:r.elementType}),sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object]),value:r.any});const Gt="__TREE_VIEW_ROOT_PARENT_ID__",Pg=e=>{const t={};return e.forEach((n,o)=>{t[n]=o}),t},ci=(e,t)=>{if(t==null)return!1;let n=e[t];if(!n)return!1;if(n.disabled)return!0;for(;n.parentId!=null;){if(n=e[n.parentId],!n)return!1;if(n.disabled)return!0}return!1};function Mg(e){const{storeParameters:t,items:n,parentId:o,depth:s,isItemExpandable:i,otherItemsMetaLookup:a}=e,l={},c={},u=[],d=[],m=g=>{const p=t.getItemId?t.getItemId(g):g.id;u$({id:p,parentId:o,item:g,itemMetaLookup:a,siblingsMetaLookup:l});const b=t.getItemLabel?t.getItemLabel(g):g.label;if(b==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: All items must have a \`label\` property. You can use the \`getItemLabel\` prop to specify a custom label for each item. An item was provided without a label: ${JSON.stringify(g)}`:je(192,JSON.stringify(g)));const f=(t.getItemChildren?t.getItemChildren(g):g.children)||[];d.push({id:p,children:f}),c[p]=g,l[p]={id:p,label:b,parentId:o,idAttribute:void 0,expandable:i(g,f),disabled:t.isItemDisabled?t.isItemDisabled(g):!1,selectable:t.isItemSelectionDisabled?!t.isItemSelectionDisabled(g):!0,depth:s},u.push(p)};for(const g of n)m(g);return{metaLookup:l,modelLookup:c,orderedChildrenIds:u,childrenIndexes:Pg(u),itemsChildren:d}}function Sp(e){const{storeParameters:t,items:n,parentId:o,depth:s,isItemExpandable:i,existingItemMetaLookup:a}=e,l={},c={},u={},d={},m=D({},a),g=(p,b,f)=>{const y=Mg({storeParameters:t,items:p,parentId:b,depth:f,isItemExpandable:i,otherItemsMetaLookup:m});Object.assign(l,y.metaLookup),Object.assign(m,y.metaLookup),Object.assign(c,y.modelLookup),u[b??Gt]=y.orderedChildrenIds,d[b??Gt]=y.childrenIndexes;for(const x of y.itemsChildren)g(x.children,x.id,f+1)};return g(n,o,s),{itemMetaLookup:l,itemModelLookup:c,itemOrderedChildrenIdsLookup:u,itemChildrenIndexesLookup:d}}function u$({id:e,parentId:t,item:n,itemMetaLookup:o,siblingsMetaLookup:s}){if(e==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: All items must have a unique \`id\` property. You can use the \`getItemId\` prop to specify a custom id for each item. An item was provided without an id: ${JSON.stringify(n)}`:je(193,JSON.stringify(n)));if(s[e]!=null||o[e]!=null&&o[e].parentId!==t)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: All items must have a unique \`id\` property. The id "${e}" is used by multiple items. Use the \`getItemId\` prop to specify a custom id for each item if needed.`:je(194,e))}const d$=[],ge={domStructure:_e(e=>e.domStructure),disabledItemFocusable:_e(e=>e.disabledItemsFocusable),itemMetaLookup:_e(e=>e.itemMetaLookup),itemOrderedChildrenIdsLookup:_e(e=>e.itemOrderedChildrenIdsLookup),itemMeta:_e((e,t)=>e.itemMetaLookup[t??Gt]??null),itemOrderedChildrenIds:_e((e,t)=>e.itemOrderedChildrenIdsLookup[t??Gt]??d$),itemModel:_e((e,t)=>e.itemModelLookup[t]),isItemDisabled:_e((e,t)=>ci(e.itemMetaLookup,t)),itemIndex:_e((e,t)=>{const n=e.itemMetaLookup[t];return n==null?-1:e.itemChildrenIndexesLookup[n.parentId??Gt][n.id]}),itemParentId:_e((e,t)=>{var n;return((n=e.itemMetaLookup[t])==null?void 0:n.parentId)??null}),itemDepth:_e((e,t)=>{var n;return((n=e.itemMetaLookup[t])==null?void 0:n.depth)??0}),canItemBeFocused:_e((e,t)=>e.disabledItemsFocusable||e.itemModelLookup[t]!=null&&!ci(e.itemMetaLookup,t)),itemChildrenIndentation:_e(e=>e.itemChildrenIndentation),itemHeight:_e(e=>e.itemHeight)},Tp=_e(e=>e.providedTreeId??e.treeId),ta={treeId:Tp,treeItemIdAttribute:_e(Tp,(e,t,n)=>n??`${e??""}-${t}`)};class er{constructor(t){X(this,"getItem",t=>ge.itemModel(this.store.state,t));X(this,"getItemTree",()=>{const t=n=>{const o=ge.itemModel(this.store.state,n),s=D({},o),i=ge.itemOrderedChildrenIds(this.store.state,n);return i.length>0?s.children=i.map(t):delete s.children,s};return ge.itemOrderedChildrenIds(this.store.state,null).map(t)});X(this,"getItemOrderedChildrenIds",t=>ge.itemOrderedChildrenIds(this.store.state,t));X(this,"getParentId",t=>{const n=ge.itemMeta(this.store.state,t);return(n==null?void 0:n.parentId)||null});X(this,"setIsItemDisabled",({itemId:t,shouldBeDisabled:n})=>{if(!this.store.state.itemMetaLookup[t])return;const o=D({},this.store.state.itemMetaLookup);o[t]=D({},o[t],{disabled:n??!o[t].disabled}),this.store.set("itemMetaLookup",o)});X(this,"addItems",({items:t,parentId:n=null,index:o})=>{if(t.length===0)return;if(n!=null&&ge.itemMeta(this.store.state,n)==null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: Unable to add items to the parent with id "${n}" because it is not present in the tree. Pass the id of an existing item, or \`null\` to add the items at the root level.`:je(295,n));const s=n==null?-1:ge.itemDepth(this.store.state,n),i=this.store.parameters.dataSource,a=(x,T)=>T!=null&&T.length>0?!0:i==null?!1:i.getChildrenCount(x)!==0,{itemMetaLookup:l,itemModelLookup:c,itemOrderedChildrenIdsLookup:u,itemChildrenIndexesLookup:d}=Sp({storeParameters:this.store.parameters,items:t,parentId:n,depth:s+1,isItemExpandable:a,existingItemMetaLookup:this.store.state.itemMetaLookup});for(const x of Object.keys(l))if(this.store.state.itemMetaLookup[x]!=null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: All items must have a unique \`id\` property. The id "${x}" is used by multiple items. Use the \`getItemId\` prop to specify a custom id for each item if needed.`:je(194,x));const m=n??Gt,g=ge.itemOrderedChildrenIds(this.store.state,n),p=o??g.length;if(p<0||p>g.length)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: Unable to add items at index "${p}" because it is out of range. The index must be between 0 and the amount of children of the parent item (${g.length}).`:je(296,p,g.length));const b=u[m],f=[...g];f.splice(p,0,...b),u[m]=f,d[m]=Pg(f);const y=D({},this.store.state.itemMetaLookup,l);n!=null&&!y[n].expandable&&(y[n]=D({},y[n],{expandable:!0})),this.store.update({itemMetaLookup:y,itemModelLookup:D({},this.store.state.itemModelLookup,c),itemOrderedChildrenIdsLookup:D({},this.store.state.itemOrderedChildrenIdsLookup,u),itemChildrenIndexesLookup:D({},this.store.state.itemChildrenIndexesLookup,d)}),this.store.selection.propagateSelectionToNewItems(n,b)});X(this,"buildPublicAPI",()=>({getItem:this.getItem,getItemDOMElement:this.getItemDOMElement,getItemOrderedChildrenIds:this.getItemOrderedChildrenIds,getItemTree:this.getItemTree,getParentId:this.getParentId,setIsItemDisabled:this.setIsItemDisabled}));X(this,"getItemDOMElement",t=>{const n=ge.itemMeta(this.store.state,t);if(n==null)return null;const o=ta.treeItemIdAttribute(this.store.state,t,n.idAttribute);return document.getElementById(o)});X(this,"setItemChildren",({items:t,parentId:n,getChildrenCount:o})=>{const s=n??Gt,i=n==null?-1:ge.itemDepth(this.store.state,n),{metaLookup:a,modelLookup:l,orderedChildrenIds:c,childrenIndexes:u}=Mg({storeParameters:this.store.parameters,items:t,parentId:n,depth:i+1,isItemExpandable:o?d=>o(d)!==0:()=>!1,otherItemsMetaLookup:ge.itemMetaLookup(this.store.state)});this.store.update({itemModelLookup:D({},this.store.state.itemModelLookup,l),itemMetaLookup:D({},this.store.state.itemMetaLookup,a),itemOrderedChildrenIdsLookup:D({},this.store.state.itemOrderedChildrenIdsLookup,{[s]:c}),itemChildrenIndexesLookup:D({},this.store.state.itemChildrenIndexesLookup,{[s]:u})})});X(this,"removeChildren",t=>{const n=this.store.state.itemMetaLookup,o=Object.keys(n).reduce((l,c)=>{const u=n[c];return u.parentId===t?l:D({},l,{[u.id]:u})},{}),s=D({},this.store.state.itemOrderedChildrenIdsLookup),i=D({},this.store.state.itemChildrenIndexesLookup),a=t??Gt;delete i[a],delete s[a],this.store.update({itemMetaLookup:o,itemOrderedChildrenIdsLookup:s,itemChildrenIndexesLookup:i})});X(this,"handleItemClick",(t,n)=>{var o,s;(s=(o=this.store.parameters).onItemClick)==null||s.call(o,t,n)});this.store=t}}X(er,"shouldRebuildItemsState",(t,n)=>["items","isItemDisabled","isItemSelectionDisabled","getItemId","getItemLabel","getItemChildren"].some(o=>{const s=o;return t[s]!==n[s]})),X(er,"buildItemsStateIfNeeded",t=>Sp({storeParameters:t,items:t.items,parentId:null,depth:0,isItemExpandable:(n,o)=>!!o&&o.length>0}));const Sa=ys(e=>e.expandedItems,e=>{const t=new Map;return e.forEach(n=>{t.set(n,!0)}),t}),ft={expandedItemsRaw:_e(e=>e.expandedItems),expandedItemsMap:Sa,flatList:ys(ge.itemOrderedChildrenIdsLookup,Sa,(e,t)=>{function n(o){if(!t.has(o))return[o];const s=[o],i=e[o]||[];for(const a of i)s.push(...n(a));return s}return(e[Gt]??[]).flatMap(n)}),triggerSlot:_e(e=>e.expansionTrigger),isItemExpanded:_e(Sa,(e,t)=>e.has(t)),isItemExpandable:_e(ge.itemMeta,(e,t)=>(e==null?void 0:e.expandable)??!1)},Dg=ys(e=>e.selectedItems,e=>Array.isArray(e)?e:e!=null?[e]:[]),Rg=ys(Dg,e=>{const t=new Map;return e.forEach(n=>{t.set(n,!0)}),t}),qa=_e((e,t)=>{var n;return((n=e.itemMetaLookup[t])==null?void 0:n.selectable)??!0}),Ya=_e(Rg,(e,t)=>e.has(t)),Ng=_e(ge.isItemDisabled,qa,e=>!e.disableSelection,(e,t,n,o)=>n&&!e&&t),$g=_e(e=>e.selectionPropagation),Ip=_e((e,t)=>{if(Ya(e,t))return"selected";if(ge.itemOrderedChildrenIds(e,t).length===0)return"unselected";let n=!1,o=!1;const s=a=>{a!==t&&Ng(e,a)&&(Ya(e,a)?n=!0:o=!0),ge.itemOrderedChildrenIds(e,a).forEach(s)};return s(t),$g(e).parents?n&&o?"indeterminate":n&&!o?"selected":"unselected":n?"indeterminate":"unselected"}),Oe={selectedItemsRaw:_e(e=>e.selectedItems),selectedItems:Dg,selectedItemsMap:Rg,enabled:_e(e=>!e.disableSelection),isMultiSelectEnabled:_e(e=>e.multiSelect),isCheckboxSelectionEnabled:_e(e=>e.checkboxSelection),propagationRules:$g,isItemSelected:Ya,itemSelectionStatus:Ip,isItemIndeterminate:_e(Ip,(e,t)=>e==="indeterminate"),isFeatureEnabledForItem:_e(qa,e=>!e.disableSelection,(e,t,n)=>t&&e),canItemBeSelected:Ng,isItemSelectable:qa},Ep=ys(Oe.selectedItems,ft.expandedItemsMap,ge.itemMetaLookup,ge.disabledItemFocusable,e=>ge.itemOrderedChildrenIds(e,null),(e,t,n,o,s)=>{const i=e.find(l=>{if(!o&&ci(n,l))return!1;const c=n[l];return c&&(c.parentId==null||t.has(c.parentId))});if(i!=null)return i;const a=s.find(l=>o||!ci(n,l));return a??null}),Yo={defaultFocusableItemId:Ep,isItemTheDefaultFocusableItem:_e(Ep,(e,t)=>e===t),focusedItemId:_e(e=>e.focusedItemId),isItemFocused:_e((e,t)=>e.focusedItemId===t)},ui={isEmpty:_e(e=>e.lazyLoadedItems==null?!0:Object.keys(e.lazyLoadedItems.loading).length===0&&Object.keys(e.lazyLoadedItems.errors).length===0),isItemLoading:_e((e,t)=>{var n;return((n=e.lazyLoadedItems)==null?void 0:n.loading[t??Gt])??!1}),itemHasError:_e((e,t)=>{var n;return!!((n=e.lazyLoadedItems)!=null&&n.errors[t??Gt])}),itemError:_e((e,t)=>{var n;return(n=e.lazyLoadedItems)==null?void 0:n.errors[t??Gt]})},On={isItemEditable:_e(e=>e.isItemEditable,ge.itemModel,(e,t,n)=>!t||e==null?!1:typeof e=="boolean"?e:e(t)),isItemBeingEdited:_e((e,t)=>t==null?!1:e.editedItemId===t),isAnyItemBeingEdited:_e(e=>!!e.editedItemId)},jg=e=>Array.isArray(e)?e.length>0&&e.some(jg):!!e,Ag=({itemId:e,children:t})=>{const{store:n,publicAPI:o}=so(),s=$e(n,ft.isItemExpandable,e),i=$e(n,ui.isItemLoading,e),a=$e(n,ui.itemHasError,e),l=jg(t)||s,c=$e(n,ft.isItemExpanded,e),u=$e(n,Yo.isItemFocused,e),d=$e(n,Oe.isItemSelected,e),m=$e(n,Oe.isItemIndeterminate,e),g=$e(n,ge.isItemDisabled,e),p=$e(n,On.isItemBeingEdited,e),b=$e(n,On.isItemEditable,e),f={expandable:l,expanded:c,focused:u,selected:d,indeterminate:m,disabled:g,editing:p,editable:b,loading:i,error:a},y=R=>{if(f.disabled)return;f.focused||n.focus.focusItem(R,e);const N=Oe.isMultiSelectEnabled(n.state)&&(R.shiftKey||R.ctrlKey||R.metaKey);f.expandable&&!(N&&ft.isItemExpanded(n.state,e))&&n.expansion.setItemExpansion({event:R,itemId:e})},x=R=>{if(!Oe.canItemBeSelected(n.state,e))return;!f.focused&&!f.editing&&n.focus.focusItem(R,e),Oe.isMultiSelectEnabled(n.state)&&(R.shiftKey||R.ctrlKey||R.metaKey)?R.shiftKey?n.selection.expandSelectionRange(R,e):n.selection.setItemSelection({event:R,itemId:e,keepExistingSelection:!0}):n.selection.setItemSelection({event:R,itemId:e,shouldBeSelected:!0})},T=R=>{const N=R.nativeEvent.shiftKey,j=Oe.isMultiSelectEnabled(n.state);j&&N?n.selection.expandSelectionRange(R,e):n.selection.setItemSelection({event:R,itemId:e,keepExistingSelection:j,shouldBeSelected:R.target.checked})},S=()=>{n.labelEditing&&(p?n.labelEditing.setEditedItem(null):n.labelEditing.setEditedItem(e))};return{interactions:{handleExpansion:y,handleSelection:x,handleCheckboxSelection:T,toggleItemEditing:S,handleSaveItemLabel:(R,N)=>{n.labelEditing&&On.isItemBeingEdited(n.state,e)&&(n.labelEditing.updateItemLabel(e,N),S(),n.focus.focusItem(R,e))},handleCancelItemLabelEditing:R=>{n.labelEditing&&On.isItemBeingEdited(n.state,e)&&(S(),n.focus.focusItem(R,e))}},status:f,publicAPI:o}},Fc=C.createContext(()=>-1);process.env.NODE_ENV!=="production"&&(Fc.displayName="TreeViewItemDepthContext");const Ga=(e,t)=>{let n=t.length-1;for(;n>=0&&!ge.canItemBeFocused(e,t[n]);)n-=1;if(n!==-1)return t[n]},Bc=(e,t)=>{const n=ge.itemMeta(e,t);if(!n)return null;const o=ge.itemOrderedChildrenIds(e,n.parentId),s=ge.itemIndex(e,t);if(s===0)return n.parentId;let i=s-1;for(;!ge.canItemBeFocused(e,o[i])&&i>=0;)i-=1;if(i===-1)return n.parentId==null?null:Bc(e,n.parentId);let a=o[i],l=Ga(e,ge.itemOrderedChildrenIds(e,a));for(;ft.isItemExpanded(e,a)&&l!=null;)a=l,l=Ga(e,ge.itemOrderedChildrenIds(e,a));return a},Fr=(e,t)=>{if(ft.isItemExpanded(e,t)){const o=ge.itemOrderedChildrenIds(e,t).find(s=>ge.canItemBeFocused(e,s));if(o!=null)return o}let n=ge.itemMeta(e,t);for(;n!=null;){const o=ge.itemOrderedChildrenIds(e,n.parentId),s=ge.itemIndex(e,n.id);if(s<o.length-1){let i=s+1;for(;!ge.canItemBeFocused(e,o[i])&&i<o.length-1;)i+=1;if(ge.canItemBeFocused(e,o[i]))return o[i]}n=ge.itemMeta(e,n.parentId)}return null},Lg=e=>{let t=null;for(;t==null||ft.isItemExpanded(e,t);){const n=ge.itemOrderedChildrenIds(e,t),o=Ga(e,n);if(o==null)return t;t=o}return t},ts=e=>ge.itemOrderedChildrenIds(e,null).find(t=>ge.canItemBeFocused(e,t)),Vg=(e,t,n)=>{if(t===n)return[t,n];const o=ge.itemMeta(e,t),s=ge.itemMeta(e,n);if(!o||!s)return[t,n];if(o.parentId===s.id||s.parentId===o.id)return s.parentId===o.id?[o.id,s.id]:[s.id,o.id];const i=[o.id],a=[s.id];let l=o.parentId,c=s.parentId,u=a.indexOf(l)!==-1,d=i.indexOf(c)!==-1,m=!0,g=!0;for(;!d&&!u;)m&&(i.push(l),u=a.indexOf(l)!==-1,m=l!==null,!u&&m&&(l=ge.itemParentId(e,l))),g&&!u&&(a.push(c),d=i.indexOf(c)!==-1,g=c!==null,!d&&g&&(c=ge.itemParentId(e,c)));const p=u?l:c,b=ge.itemOrderedChildrenIds(e,p),f=i[i.indexOf(p)-1],y=a[a.indexOf(p)-1];return b.indexOf(f)<b.indexOf(y)?[t,n]:[n,t]},p$=(e,t,n)=>{const o=c=>{if(ft.isItemExpandable(e,c)&&ft.isItemExpanded(e,c))return ge.itemOrderedChildrenIds(e,c)[0];let u=ge.itemMeta(e,c);for(;u!=null;){const d=ge.itemOrderedChildrenIds(e,u.parentId),m=ge.itemIndex(e,u.id);if(m<d.length-1)return d[m+1];u=u.parentId?ge.itemMeta(e,u.parentId):null}throw new Error(process.env.NODE_ENV!=="production"?"MUI X Tree View: Invalid range - unable to find a path between the two items. This may occur if the items are not in the same tree or the tree structure is invalid. Verify that both items exist in the tree.":je(191))},[s,i]=Vg(e,t,n),a=[s];let l=s;for(;l!==i;)l=o(l),ge.isItemDisabled(e,l)||a.push(l);return a},f$=e=>{let t=ts(e);const n=[];for(;t!=null;)n.push(t),t=Fr(e,t);return n},Ka=(e,t)=>t!==e.closest('*[role="treeitem"]');class m${constructor(t){X(this,"setExpandedItems",(t,n)=>{var o,s;this.store.parameters.expandedItems===void 0&&this.store.set("expandedItems",n),(s=(o=this.store.parameters).onExpandedItemsChange)==null||s.call(o,t,n)});X(this,"isItemExpanded",t=>ft.isItemExpanded(this.store.state,t));X(this,"buildPublicAPI",()=>({isItemExpanded:this.isItemExpanded,setItemExpansion:this.setItemExpansion}));X(this,"setItemExpansion",({itemId:t,event:n=null,shouldBeExpanded:o})=>{const s=ft.isItemExpanded(this.store.state,t),i=o??!s;if(s===i)return;const a={isExpansionPrevented:!1,shouldBeExpanded:i,itemId:t};this.store.publishEvent("beforeItemToggleExpansion",a,n),!a.isExpansionPrevented&&this.applyItemExpansion({itemId:t,event:n,shouldBeExpanded:i})});X(this,"applyItemExpansion",({itemId:t,event:n,shouldBeExpanded:o})=>{var a,l;const s=ft.expandedItemsRaw(this.store.state);let i;o?i=[t].concat(s):i=s.filter(c=>c!==t),(l=(a=this.store.parameters).onItemExpansionToggle)==null||l.call(a,n,t,o),this.setExpandedItems(n,i)});X(this,"expandAllSiblings",(t,n)=>{const o=ge.itemMeta(this.store.state,n);if(o==null)return;const i=ge.itemOrderedChildrenIds(this.store.state,o.parentId).filter(l=>ft.isItemExpandable(this.store.state,l)&&!ft.isItemExpanded(this.store.state,l)),a=ft.expandedItemsRaw(this.store.state).concat(i);i.length>0&&(this.store.parameters.onItemExpansionToggle&&i.forEach(l=>{this.store.parameters.onItemExpansionToggle(t,l,!0)}),this.setExpandedItems(t,a))});X(this,"addExpandableItems",t=>{const n=D({},this.store.state.itemMetaLookup);for(const o of t)n[o]=D({},n[o],{expandable:!0});this.store.set("itemMetaLookup",n)});this.store=t}}class h${constructor(t){X(this,"setFocusedItemId",t=>{Yo.focusedItemId(this.store.state)!==t&&this.store.set("focusedItemId",t)});X(this,"applyItemFocus",(t,n)=>{var o,s,i;(o=this.store.items.getItemDOMElement(n))==null||o.focus(),this.setFocusedItemId(n),(i=(s=this.store.parameters).onItemFocus)==null||i.call(s,t,n)});X(this,"buildPublicAPI",()=>({focusItem:this.focusItem}));X(this,"focusItem",(t,n)=>{const o=ge.itemMeta(this.store.state,n);o&&(o.parentId==null||ft.isItemExpanded(this.store.state,o.parentId))&&this.applyItemFocus(t,n)});X(this,"removeFocusedItem",()=>{const t=Yo.focusedItemId(this.store.state);if(t==null)return;if(ge.itemMeta(this.store.state,t)){const o=this.store.items.getItemDOMElement(t);o&&o.blur()}this.setFocusedItemId(null)});X(this,"handleRootFocus",t=>{if(t.defaultMuiPrevented)return;const n=Yo.defaultFocusableItemId(this.store.state);t.target===t.currentTarget&&n!=null&&this.applyItemFocus(t,n)});X(this,"handleRootBlur",t=>{t.defaultMuiPrevented||this.setFocusedItemId(null)});this.store=t;let n=t.state;this.store.disposables.defer(this.store.subscribe(o=>{if(o.itemMetaLookup===n.itemMetaLookup){n=o;return}const s=Yo.focusedItemId(o);if(s==null||ge.itemMeta(o,s)){n=o;return}const i=l=>l==null||!ge.itemMeta(o,l)?null:l,a=i(Fr(n,s))??i(Bc(n,s))??ts(o);a==null?this.setFocusedItemId(null):this.applyItemFocus(null,a),n=o}))}}const g$=({props:e})=>{const{itemId:t}=e,{store:n}=so(),o=$e(n,Oe.isCheckboxSelectionEnabled),s=$e(n,Oe.isFeatureEnabledForItem,t),i=$e(n,Oe.canItemBeSelected,t),a=$e(n,ge.isItemDisabled,t),l=$e(n,Oe.isItemSelectable,t),c=$e(n,Oe.itemSelectionStatus,t),u=a||!l;return{propsEnhancers:{root:()=>{let d;return u?d=void 0:c==="selected"?d=!0:c==="indeterminate"?d="mixed":i?d=!1:d=void 0,{"aria-checked":d}},checkbox:({externalEventHandlers:d,interactions:m})=>({tabIndex:-1,onChange:p=>{var b;(b=d.onChange)==null||b.call(d,p),!p.defaultMuiPrevented&&Oe.canItemBeSelected(n.state,t)&&m.handleCheckboxSelection(p)},visible:o&&s,disabled:!i,checked:c==="selected",indeterminate:c==="indeterminate"})}}};class b${constructor(t){X(this,"lastSelectedItem",null);X(this,"lastSelectedRange",{});X(this,"setSelectedItems",(t,n,o)=>{const{selectionPropagation:s=Jo,selectedItems:i,onItemSelectionToggle:a,onSelectedItemsChange:l}=this.store.parameters,c=Oe.selectedItemsRaw(this.store.state);let u;const d=Oe.isMultiSelectEnabled(this.store.state);if(d&&(s.descendants||s.parents)?u=y$({store:this.store,selectionPropagation:s,newModel:n,oldModel:c,additionalItemsToPropagate:o}):u=n,i===void 0&&this.store.set("selectedItems",u),a)if(d){const m=Fg({newModel:u,oldModel:c});a&&(m.added.forEach(g=>{a(t,g,!0)}),m.removed.forEach(g=>{a(t,g,!1)}))}else u!==c&&(c!=null&&a(t,c,!1),u!=null&&a(t,u,!0));l==null||l(t,u)});X(this,"selectRange",(t,[n,o])=>{if(!Oe.isMultiSelectEnabled(this.store.state))return;let i=Oe.selectedItems(this.store.state).slice();Object.keys(this.lastSelectedRange).length>0&&(i=i.filter(u=>!this.lastSelectedRange[u]));const a=qs(i),l=p$(this.store.state,n,o).filter(u=>Oe.isItemSelectable(this.store.state,u)),c=l.filter(u=>!a[u]);i=i.concat(c),this.setSelectedItems(t,i),this.lastSelectedRange=qs(l)});X(this,"getItemSelection",t=>Oe.itemSelectionStatus(this.store.state,t));X(this,"buildPublicAPI",()=>({getItemSelection:this.getItemSelection,setItemSelection:this.setItemSelection}));X(this,"propagateSelectionToNewItems",(t,n)=>{const{selectionPropagation:o=Jo}=this.store.parameters;if(t==null||n.length===0||!o.descendants||!Oe.isMultiSelectEnabled(this.store.state)||!Oe.isItemSelected(this.store.state,t))return;const s=Oe.selectedItems(this.store.state).concat(n);this.setSelectedItems(null,s,n)});X(this,"setItemSelection",({itemId:t,event:n=null,keepExistingSelection:o=!1,shouldBeSelected:s})=>{if(!Oe.enabled(this.store.state))return;let i;const a=Oe.isMultiSelectEnabled(this.store.state);if(o&&a){const l=Oe.selectedItems(this.store.state),c=Oe.isItemSelected(this.store.state,t);c&&(s===!1||s==null)?i=l.filter(u=>u!==t):!c&&(s===!0||s==null)?i=[t].concat(l):i=l}else s===!1||s==null&&Oe.isItemSelected(this.store.state,t)?i=a?[]:null:i=a?[t]:t;this.setSelectedItems(n,i,[t]),this.lastSelectedItem=t,this.lastSelectedRange={}});X(this,"selectAllNavigableItems",t=>{if(!Oe.isMultiSelectEnabled(this.store.state))return;const o=f$(this.store.state);this.setSelectedItems(t,o),this.lastSelectedRange=qs(o)});X(this,"expandSelectionRange",(t,n)=>{if(this.lastSelectedItem!=null){const[o,s]=Vg(this.store.state,n,this.lastSelectedItem);this.selectRange(t,[o,s])}});X(this,"selectRangeFromStartToItem",(t,n)=>{this.selectRange(t,[ts(this.store.state),n])});X(this,"selectRangeFromItemToEnd",(t,n)=>{this.selectRange(t,[n,Lg(this.store.state)])});X(this,"selectItemFromArrowNavigation",(t,n,o)=>{if(!Oe.isMultiSelectEnabled(this.store.state))return;let i=Oe.selectedItems(this.store.state).slice();Object.keys(this.lastSelectedRange).length===0?(Oe.isItemSelected(this.store.state,o)||i.push(o),this.lastSelectedRange={[n]:!0,[o]:!0}):(this.lastSelectedRange[n]||(this.lastSelectedRange={}),this.lastSelectedRange[o]?(i=i.filter(a=>a!==n),delete this.lastSelectedRange[n]):(Oe.isItemSelected(this.store.state,o)||i.push(o),this.lastSelectedRange[o]=!0)),this.setSelectedItems(t,i)});this.store=t,t.itemPluginManager.register(g$,null)}}function y$({store:e,selectionPropagation:t,newModel:n,oldModel:o,additionalItemsToPropagate:s}){if(!t.descendants&&!t.parents)return n;let i=!1;const a=qs(n),l=Fg({newModel:n,oldModel:o});return s==null||s.forEach(c=>{a[c]?l.added.includes(c)||l.added.push(c):l.removed.includes(c)||l.removed.push(c)}),l.added.forEach(c=>{if(t.descendants){const u=d=>{d!==c&&Oe.canItemBeSelected(e.state,d)&&(i=!0,a[d]=!0),ge.itemOrderedChildrenIds(e.state,d).forEach(u)};u(c)}if(t.parents){const u=m=>Oe.canItemBeSelected(e.state,m)?a[m]?ge.itemOrderedChildrenIds(e.state,m).every(u):!1:ge.itemOrderedChildrenIds(e.state,m).every(u),d=m=>{const g=ge.itemParentId(e.state,m);if(g==null)return;ge.itemOrderedChildrenIds(e.state,g).every(u)&&(Oe.canItemBeSelected(e.state,g)&&(i=!0,a[g]=!0),d(g))};d(c)}}),l.removed.forEach(c=>{if(t.parents){let u=ge.itemParentId(e.state,c);for(;u!=null;)a[u]&&(i=!0,delete a[u]),u=ge.itemParentId(e.state,u)}if(t.descendants){const u=d=>{d!==c&&(i=!0,delete a[d]),ge.itemOrderedChildrenIds(e.state,d).forEach(u)};u(c)}}),i?Object.keys(a):n}function Fg({oldModel:e,newModel:t}){const n=new Map;t.forEach(s=>{n.set(s,!0)});const o=new Map;return e.forEach(s=>{o.set(s,!0)}),{added:t.filter(s=>!o.has(s)),removed:e.filter(s=>!n.has(s))}}function qs(e){const t={};return e.forEach(n=>{t[n]=!0}),t}const v$=(e,t,n)=>typeof n=="function"?n(e,t):n,Bg=e=>{const{runItemPlugins:t,publicAPI:n,store:o}=so(),s=C.useContext(Fc),i=$e(o,v$,e.itemId,s),{id:a,itemId:l,label:c,children:u,rootRef:d}=e,{rootRef:m,contentRef:g,propsEnhancers:p}=t(e),{interactions:b,status:f}=Ag({itemId:l,children:u}),y=C.useRef(null),x=C.useRef(null),T=Ua(d,m,y),S=Ua(g,x),w=C.useRef(null),E=$e(o,Oe.isCheckboxSelectionEnabled),I=$e(o,ta.treeItemIdAttribute,l,a),R=$e(o,Yo.isItemTheDefaultFocusableItem,l),N=$e(o,ge.itemHeight),j={rootRefObject:y,contentRefObject:x,interactions:b},V=Y=>z=>{var q;(q=Y.onFocus)==null||q.call(Y,z),!z.defaultMuiPrevented&&!f.focused&&ge.canItemBeFocused(o.state,l)&&z.currentTarget===z.target&&o.focus.focusItem(z,l)},$=Y=>z=>{var J,U,ce,ne,de;if((J=Y.onBlur)==null||J.call(Y,z),z.defaultMuiPrevented)return;const q=o.items.getItemDOMElement(l);f.editing||z.relatedTarget&&Ka(z.relatedTarget,q)&&(z.target&&((ce=(U=z.target)==null?void 0:U.dataset)==null?void 0:ce.element)==="labelInput"&&Ka(z.target,q)||((de=(ne=z.relatedTarget)==null?void 0:ne.dataset)==null?void 0:de.element)==="labelInput")||o.focus.removeFocusedItem()},v=Y=>z=>{var q,J,U;(q=Y.onKeyDown)==null||q.call(Y,z),!(z.defaultMuiPrevented||((U=(J=z.target)==null?void 0:J.dataset)==null?void 0:U.element)==="labelInput")&&o.keyboardNavigation.handleItemKeyDown(z,l)},O=Y=>z=>{var q;(q=Y.onDoubleClick)==null||q.call(Y,z),!z.defaultMuiPrevented&&b.toggleItemEditing()},P=Y=>z=>{var q,J;(q=Y.onClick)==null||q.call(Y,z),o.items.handleItemClick(z,l),!(z.defaultMuiPrevented||(J=w.current)!=null&&J.contains(z.target))&&(ft.triggerSlot(o.state)==="content"&&b.handleExpansion(z),E||b.handleSelection(z))},k=Y=>z=>{var q;(q=Y.onMouseDown)==null||q.call(Y,z),!z.defaultMuiPrevented&&(z.shiftKey||z.ctrlKey||z.metaKey||f.disabled)&&z.preventDefault()},M=Y=>z=>{var q;(q=Y.onClick)==null||q.call(Y,z),!z.defaultMuiPrevented&&ft.triggerSlot(o.state)==="iconContainer"&&b.handleExpansion(z)};return{getContextProviderProps:()=>({itemId:l,id:a}),getRootProps:(Y={})=>{var U;const z=D({},Wt(e),Wt(Y)),q=D({},z,{ref:T,role:"treeitem",tabIndex:R?0:-1,id:I,"aria-expanded":f.expandable?f.expanded:void 0,"aria-disabled":f.disabled||void 0},Y,{style:D({},Y.style??{},{"--TreeView-itemDepth":i},N==null?{}:{"--TreeView-itemHeight":`${N}px`}),onFocus:V(z),onBlur:$(z),onKeyDown:v(z)}),J=((U=p.root)==null?void 0:U.call(p,D({},j,{externalEventHandlers:z})))??{};return D({},q,J)},getContentProps:(Y={})=>{var U;const z=Wt(Y),q=D({},z,Y,{ref:S,onClick:P(z),onMouseDown:k(z)});["expanded","selected","focused","disabled","editing","editable"].forEach(ce=>{f[ce]&&(q[`data-${ce}`]="")});const J=((U=p.content)==null?void 0:U.call(p,D({},j,{externalEventHandlers:z})))??{};return D({},q,J)},getGroupTransitionProps:(Y={})=>{const z=Wt(Y);return D({},z,{unmountOnExit:!0,component:"ul",role:"group",in:f.expanded,children:u},Y)},getIconContainerProps:(Y={})=>{const z=Wt(Y);return D({},z,Y,{onClick:M(z)})},getCheckboxProps:(Y={})=>{var U;const z=Wt(Y),q=D({},z,{ref:w,"aria-hidden":!0},Y),J=((U=p.checkbox)==null?void 0:U.call(p,D({},j,{externalEventHandlers:z})))??{};return D({},q,J)},getLabelProps:(Y={})=>{var U;const z=D({},Wt(Y)),q=D({},z,{children:c},Y,{onDoubleClick:O(z)}),J=((U=p.label)==null?void 0:U.call(p,D({},j,{externalEventHandlers:z})))??{};return D({},J,q)},getLabelInputProps:(Y={})=>{var J;const z=Wt(Y),q=((J=p.labelInput)==null?void 0:J.call(p,D({},j,{externalEventHandlers:z})))??{};return D({},Y,q)},getDragAndDropOverlayProps:(Y={})=>{var J;const z=Wt(Y),q=((J=p.dragAndDropOverlay)==null?void 0:J.call(p,D({},j,{externalEventHandlers:z})))??{};return D({},Y,q)},getErrorContainerProps:(Y={})=>{const z=Wt(Y);return D({},z,Y)},getLoadingContainerProps:(Y={})=>{const z=Wt(Y);return D({size:"12px",thickness:6},z,Y)},rootRef:T,status:f,publicAPI:n}};function x$(e){return $c("MuiTreeItem",e)}Eg("MuiTreeItem",["root","content","groupTransition","iconContainer","label","checkbox","labelInput","dragAndDropOverlay","errorIcon","loadingIcon"]);const C$=bt(h.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"TreeViewExpandIcon"),w$=bt(h.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"TreeViewCollapseIcon"),S$=["ownerState"];function Ta(e,t,n){return e!==void 0?e:t!==void 0?t:n}function zc(e){const{slots:t,slotProps:n,status:o}=e,{slots:s,slotProps:i}=Vc(),a={collapseIcon:Ta(t==null?void 0:t.collapseIcon,s.collapseIcon,w$),expandIcon:Ta(t==null?void 0:t.expandIcon,s.expandIcon,C$),endIcon:Ta(t==null?void 0:t.endIcon,s.endIcon),icon:t==null?void 0:t.icon};let l;a!=null&&a.icon?l="icon":o.expandable?o.expanded?l="collapseIcon":l="expandIcon":l="endIcon";const c=a[l],u=Rt({elementType:c,externalSlotProps:m=>D({},Ha(i[l],m),Ha(n==null?void 0:n[l],m)),ownerState:{}}),d=Ce(u,S$);return c?h.jsx(c,D({},d)):null}process.env.NODE_ENV!=="production"&&(zc.propTypes={slotProps:r.object,slots:r.object,status:r.shape({disabled:r.bool.isRequired,editable:r.bool.isRequired,editing:r.bool.isRequired,error:r.bool.isRequired,expandable:r.bool.isRequired,expanded:r.bool.isRequired,focused:r.bool.isRequired,indeterminate:r.bool,loading:r.bool.isRequired,selected:r.bool.isRequired}).isRequired});const T$=te("div",{name:"MuiTreeItemDragAndDropOverlay",slot:"Root",shouldForwardProp:e=>At(e)&&e!=="action"})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.alpha((e.vars||e).palette.primary.dark,(e.vars||e).palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function zg(e){return e.action==null?null:h.jsx(T$,D({},e))}process.env.NODE_ENV!=="production"&&(zg.propTypes={action:r.oneOf(["make-child","move-to-parent","reorder-above","reorder-below"]),style:r.object});function Wc(e){const{children:t,itemId:n,id:o}=e,{wrapItem:s,store:i}=so(),a=$e(i,ta.treeItemIdAttribute,n,o);return h.jsx(C.Fragment,{children:s({children:t,itemId:n,store:i,idAttribute:a})})}process.env.NODE_ENV!=="production"&&(Wc.propTypes={children:r.node,id:r.string,itemId:r.string.isRequired});const I$=te("input",{name:"MuiTreeItem",slot:"LabelInput"})(({theme:e})=>D({},e.typography.body1,{width:"100%",backgroundColor:(e.vars||e).palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${(e.vars||e).palette.primary.main}`}})),E$=["visible"],k$=["id","itemId","label","disabled","disableSelection","children","slots","slotProps","classes"],O$=kg(),Wg=te("li",{name:"MuiTreeItem",slot:"Root"})({listStyle:"none",margin:0,padding:0,outline:0}),Ug=te("div",{name:"MuiTreeItem",slot:"Content",shouldForwardProp:e=>At(e)&&e!=="status"})(({theme:e})=>({padding:e.spacing(.5,1),paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`,borderRadius:e.shape.borderRadius,width:"100%",height:"var(--TreeView-itemHeight, unset)",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&[data-disabled]":{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent",cursor:"auto"},"&[data-focused]":{backgroundColor:(e.vars||e).palette.action.focus},"&[data-selected]":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}}},"&[data-selected][data-focused]":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}})),Hg=te("div",{name:"MuiTreeItem",slot:"Label",shouldForwardProp:e=>At(e)&&e!=="editable"})(({theme:e})=>D({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),qg=te("div",{name:"MuiTreeItem",slot:"IconContainer"})({width:16,display:"flex",flexShrink:0,justifyContent:"center",position:"relative",cursor:"inherit","& svg":{fontSize:18}}),Yg=te(li,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition})({margin:0,padding:0}),_$=te("div",{name:"MuiTreeItem",slot:"ErrorIcon"})({position:"absolute",right:-3,width:7,height:7,borderRadius:"50%",backgroundColor:"red"}),P$=te(Li,{name:"MuiTreeItem",slot:"LoadingIcon"})({color:"text.primary"}),Gg=te(C.forwardRef((e,t)=>{const{visible:n}=e,o=Ce(e,E$);return n?h.jsx(_g,D({},o,{ref:t})):null}),{name:"MuiTreeItem",slot:"Checkbox"})({padding:0});process.env.NODE_ENV!=="production"&&(Gg.displayName="TreeItemCheckbox");const M$=e=>{const{classes:t}=Vc(),n=D({},e,{root:ue(e==null?void 0:e.root,t.root),content:ue(e==null?void 0:e.content,t.itemContent),iconContainer:ue(e==null?void 0:e.iconContainer,t.itemIconContainer),checkbox:ue(e==null?void 0:e.checkbox,t.itemCheckbox),label:ue(e==null?void 0:e.label,t.itemLabel),groupTransition:ue(e==null?void 0:e.groupTransition,t.itemGroupTransition),labelInput:ue(e==null?void 0:e.labelInput,t.itemLabelInput),dragAndDropOverlay:ue(e==null?void 0:e.dragAndDropOverlay,t.itemDragAndDropOverlay),errorIcon:ue(e==null?void 0:e.errorIcon,t.itemErrorIcon),loadingIcon:ue(e==null?void 0:e.loadingIcon,t.itemLoadingIcon)});return Ig({root:["root"],content:["content"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],groupTransition:["groupTransition"],labelInput:["labelInput"],dragAndDropOverlay:["dragAndDropOverlay"],errorIcon:["errorIcon"],loadingIcon:["loadingIcon"]},x$,n)},Uc=C.forwardRef(function(t,n){const o=O$({props:t,name:"MuiTreeItem"}),{id:s,itemId:i,label:a,disabled:l,disableSelection:c,children:u,slots:d={},slotProps:m={},classes:g}=o,p=Ce(o,k$),{getContextProviderProps:b,getRootProps:f,getContentProps:y,getIconContainerProps:x,getCheckboxProps:T,getLabelProps:S,getGroupTransitionProps:w,getLabelInputProps:E,getDragAndDropOverlayProps:I,getErrorContainerProps:R,getLoadingContainerProps:N,status:j}=Bg({id:s,itemId:i,children:u,label:a,disabled:l,disableSelection:c}),V=M$(g),$=d.root??Wg,v=Rt({elementType:$,getSlotProps:f,externalForwardedProps:p,externalSlotProps:m.root,additionalProps:{ref:n},ownerState:{},className:V.root}),O=d.content??Ug,P=Rt({elementType:O,getSlotProps:y,externalSlotProps:m.content,ownerState:{},className:V.content}),k=d.iconContainer??qg,M=Rt({elementType:k,getSlotProps:x,externalSlotProps:m.iconContainer,ownerState:{},className:V.iconContainer}),_=d.label??Hg,A=Rt({elementType:_,getSlotProps:S,externalSlotProps:m.label,ownerState:{},className:V.label}),B=d.checkbox??Gg,L=Rt({elementType:B,getSlotProps:T,externalSlotProps:m.checkbox,ownerState:{},className:V.checkbox}),F=d.groupTransition??void 0,W=Rt({elementType:F,getSlotProps:w,externalSlotProps:m.groupTransition,ownerState:{},className:V.groupTransition}),G=d.labelInput??I$,Q=Rt({elementType:G,getSlotProps:E,externalSlotProps:m.labelInput,ownerState:{},className:V.labelInput}),K=d.dragAndDropOverlay??zg,Z=Rt({elementType:K,getSlotProps:I,externalSlotProps:m.dragAndDropOverlay,ownerState:{},className:V.dragAndDropOverlay}),se=d.errorIcon??_$,Y=Rt({elementType:se,getSlotProps:R,externalSlotProps:m.errorIcon,ownerState:{},className:V.errorIcon}),z=d.loadingIcon??P$,q=Rt({elementType:z,getSlotProps:N,externalSlotProps:m.loadingIcon,ownerState:{},className:V.loadingIcon});return h.jsx(Wc,D({},b(),{children:h.jsxs($,D({},v,{children:[h.jsxs(O,D({},P,{children:[h.jsxs(k,D({},M,{children:[j.error&&h.jsx(se,D({},Y)),j.loading?h.jsx(z,D({},q)):h.jsx(zc,{status:j,slots:d,slotProps:m})]})),h.jsx(B,D({},L)),j.editing?h.jsx(G,D({},Q)):h.jsx(_,D({},A)),h.jsx(K,D({},Z))]})),u&&h.jsx(Yg,D({as:F},W))]}))}))});process.env.NODE_ENV!=="production"&&(Uc.displayName="TreeItem");process.env.NODE_ENV!=="production"&&(Uc.propTypes={children:r.any,classes:r.object,className:r.string,disabled:r.bool,disableSelection:r.bool,id:r.string,itemId:r.string.isRequired,label:r.node,onBlur:r.func,onFocus:HN,onKeyDown:r.func,slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});function D$(e,t,n){const o=$e(e,ta.treeId),s=$e(e,ge.itemChildrenIndentation),i=$e(e,Oe.isMultiSelectEnabled);return a=>D({ref:n,role:"tree",id:o,"aria-multiselectable":i},t,a,{style:D({},t.style,{"--TreeView-itemChildrenIndentation":typeof s=="number"?`${s}px`:s}),onFocus:l=>{var c;(c=a.onFocus)==null||c.call(a,l),e.focus.handleRootFocus(l)},onBlur:l=>{var c;(c=a.onBlur)==null||c.call(a,l),e.focus.handleRootBlur(l)}})}const R$=["ownerState"],Hc=C.createContext(null);process.env.NODE_ENV!=="production"&&(Hc.displayName="RichTreeViewItemsContext");const N$=()=>jc,$$=e=>ge.itemOrderedChildrenIds(e,null),Kg=C.memo(function({itemSlot:t,itemSlotProps:n,itemId:o,skipChildren:s}){const i=C.useContext(Hc),{store:a}=so(),l=$e(a,ge.itemMeta,o),c=$e(a,s?N$:ge.itemOrderedChildrenIds,o),u=t??Uc,d=Rt({elementType:u,externalSlotProps:n,additionalProps:{label:l==null?void 0:l.label,id:l==null?void 0:l.idAttribute,itemId:o},ownerState:{itemId:o,label:l==null?void 0:l.label}}),m=Ce(d,R$);return h.jsx(u,D({},m,{children:i?c==null?void 0:c.map(i):null}))},UN);process.env.NODE_ENV!=="production"&&(Kg.displayName="RichTreeViewItem");function j$(e){const{slots:t,slotProps:n,ownerState:o,forwardedProps:s,rootRef:i}=e,{store:a}=so(),{classes:l}=Vc(),c=t==null?void 0:t.item,u=n==null?void 0:n.item,d=$e(a,ge.domStructure),m=$e(a,d==="flat"?ft.flatList:$$),g=D$(a,s,i),p=t.root,b=Rt({elementType:p,externalSlotProps:n==null?void 0:n.root,className:l.root,getSlotProps:g,ownerState:o}),f=d==="flat",y=C.useCallback(x=>h.jsx(Kg,{itemSlot:c,itemSlotProps:u,itemId:x,skipChildren:f},x),[c,u,f]);return h.jsx(Hc.Provider,{value:y,children:h.jsx(p,D({},b,{children:m.map(y)}))})}const A$=["apiRef","slots","slotProps","disabledItemsFocusable","items","isItemDisabled","isItemSelectionDisabled","getItemLabel","getItemChildren","getItemId","onItemClick","itemChildrenIndentation","id","expandedItems","defaultExpandedItems","onExpandedItemsChange","onItemExpansionToggle","expansionTrigger","disableSelection","selectedItems","defaultSelectedItems","multiSelect","checkboxSelection","selectionPropagation","onSelectedItemsChange","onItemSelectionToggle","onItemFocus","itemHeight","onItemLabelChange","isItemEditable","domStructure"];function L$(e){const{apiRef:t,slots:n,slotProps:o,disabledItemsFocusable:s,items:i,isItemDisabled:a,isItemSelectionDisabled:l,getItemLabel:c,getItemChildren:u,getItemId:d,onItemClick:m,itemChildrenIndentation:g,id:p,expandedItems:b,defaultExpandedItems:f,onExpandedItemsChange:y,onItemExpansionToggle:x,expansionTrigger:T,disableSelection:S,selectedItems:w,defaultSelectedItems:E,multiSelect:I,checkboxSelection:R,selectionPropagation:N,onSelectedItemsChange:j,onItemSelectionToggle:V,onItemFocus:$,itemHeight:v,onItemLabelChange:O,isItemEditable:P,domStructure:k}=e,M=Ce(e,A$),_=C.useMemo(()=>({disabledItemsFocusable:s,items:i,isItemDisabled:a,isItemSelectionDisabled:l,getItemLabel:c,getItemChildren:u,getItemId:d,onItemClick:m,itemChildrenIndentation:g,id:p,expandedItems:b,defaultExpandedItems:f,onExpandedItemsChange:y,onItemExpansionToggle:x,expansionTrigger:T,disableSelection:S,selectedItems:w,defaultSelectedItems:E,multiSelect:I,checkboxSelection:R,selectionPropagation:N,onSelectedItemsChange:j,onItemSelectionToggle:V,onItemFocus:$,itemHeight:v,onItemLabelChange:O,isItemEditable:P,domStructure:k}),[s,i,a,l,c,u,d,m,g,p,b,f,y,x,T,S,w,E,I,R,N,j,V,$,v,O,P,k]);return{apiRef:t,slots:n,slotProps:o,parameters:_,forwardedProps:M}}const V$=()=>{},F$=typeof document<"u"?C.useLayoutEffect:V$;function qc(e){C.useEffect(e,jc)}const B$={...C},ns=typeof Symbol.dispose=="symbol"?Symbol.dispose:Symbol.for("Symbol.dispose"),kp=typeof SuppressedError=="function"?SuppressedError:void 0;function z$(e,t){if(kp)return new kp(e,t);const n=new Error("An error was suppressed during disposal.");return Object.assign(n,{name:"SuppressedError",error:e,suppressed:t})}function $s(e){if(e)throw new ReferenceError("MUI X: The disposable stack is disposed.")}class Yc{constructor(){X(this,"stack",[]);X(this,"isDisposed",!1)}get disposed(){return this.isDisposed}use(t){if($s(this.isDisposed),t!=null){const n=t[ns];if(typeof n!="function")throw new TypeError("MUI X: The value is not disposable.");this.stack.push(()=>n.call(t))}return t}adopt(t,n){return $s(this.isDisposed),this.stack.push(()=>n(t)),t}defer(t){$s(this.isDisposed),this.stack.push(t)}move(){$s(this.isDisposed);const t=new Yc;return t.stack=this.stack,this.stack=[],this.isDisposed=!0,t}dispose(){if(this.isDisposed)return;this.isDisposed=!0;let t=!1,n;for(let o=this.stack.length-1;o>=0;o-=1)try{this.stack[o]()}catch(s){n=t?z$(s,n):s,t=!0}if(this.stack=[],t)throw n}[ns](){this.dispose()}}const W$=globalThis.DisposableStack??Yc;function U$(e){const t=[];let n=e;for(;typeof n=="object"&&n!==null&&"error"in n&&"suppressed"in n;)t.push(n.error),n=n.suppressed;return t.push(n),t}const H$=16,Op=B$,Bo=Op.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE??Op.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function q$(){var e,t,n;try{const o=((t=(e=Bo==null?void 0:Bo.A)==null?void 0:e.getOwner)==null?void 0:t.call(e))??((n=Bo==null?void 0:Bo.ReactCurrentOwner)==null?void 0:n.current)??null;return o==null||typeof o.mode!="number"?!1:(o.mode&H$)!==0}catch{return!1}}const di=Symbol("useDisposable.mount"),Y$=Symbol("useDisposable.devState"),tr=Symbol();function G$(e){const t=C.useRef(tr);if(t.current===tr){const n=e(),o=()=>{n[ns](),t.current=tr};n[di]=()=>o,t.current=n}return qc(t.current[di]),t.current}function K$(e){const t=C.useRef(tr);if(t.current===tr){const n=e(),o={detectedStrict:q$(),mountCount:0,disposed:!1};n[Y$]=o,n[di]=()=>{if(o.mountCount+=1,o.mountCount>1&&o.disposed)throw new Error(process.env.NODE_ENV!=="production"?`MUI X: useDisposable failed to detect React StrictMode.
260
260
  The instance was disposed on StrictMode's simulated unmount and is about to be reused while torn down.
261
- This is an internal invariant violation — please report it at https://github.com/mui/mui-x/issues.`:Re(288));return()=>{o.detectedStrict&&o.mountCount<2||(o.disposed=!0,n[Fr](),t.current=Fo)}},t.current=n}return ac(t.current[qs]),t.current}const DN=process.env.NODE_ENV==="production"?MN:$N;function AN(e,t){const n=Wn(),o=DN(()=>new e($({},t,{isRtl:n})));return IN(()=>o.updateStateFromParameters($({},t,{isRtl:n})),[o,n,t]),ac(o.mountEffect),o}class jN{constructor(){q(this,"maxListeners",20);q(this,"warnOnce",!1);q(this,"events",{})}on(t,n,o={}){let s=this.events[t];if(s||(s={highPriority:new Map,regular:new Map},this.events[t]=s),o.isFirst?s.highPriority.set(n,!0):s.regular.set(n,!0),process.env.NODE_ENV!=="production"){const i=s.highPriority.size+s.regular.size;i>this.maxListeners&&!this.warnOnce&&(this.warnOnce=!0,console.warn([`Possible EventEmitter memory leak detected. ${i} ${t} listeners added.`].join(`
262
- `)))}}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const o=this.events[t];if(!o)return;const s=Array.from(o.highPriority.keys()),i=Array.from(o.regular.keys());for(let a=s.length-1;a>=0;a-=1){const l=s[a];o.highPriority.has(l)&&l.apply(this,n)}for(let a=0;a<i.length;a+=1){const l=i[a];o.regular.has(l)&&l.apply(this,n)}}once(t,n){const o=this;this.on(t,function s(...i){o.removeListener(t,s),n.apply(o,i)})}}const LN=({isItemEditable:e,expansionTrigger:t})=>t||(e?"iconContainer":"content");function Ah(e){return{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px",providedTreeId:e.id,expansionTrigger:LN({isItemEditable:e.isItemEditable,expansionTrigger:e.expansionTrigger}),disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,selectionPropagation:e.selectionPropagation??Lo,itemHeight:e.itemHeight??null}}function Ad(e,t,n){return e!==void 0?e:t!==void 0?t:n}function VN(e){return $({treeId:void 0,focusedItemId:null},Ah(e),Vo.buildItemsStateIfNeeded(e),{expandedItems:Ad(e.expandedItems,e.defaultExpandedItems,[]),selectedItems:Ad(e.selectedItems,e.defaultSelectedItems,e.multiSelect?Ql:null)})}let jd=0;const FN=()=>(jd+=1,`mui-tree-view-${jd}`);class BN{constructor(){q(this,"timeoutIds",new Map);q(this,"intervalIds",new Map);q(this,"startTimeout",(t,n,o)=>{this.clearTimeout(t);const s=setTimeout(()=>{this.timeoutIds.delete(t),o()},n);this.timeoutIds.set(t,s)});q(this,"startInterval",(t,n,o)=>{this.clearInterval(t);const s=setInterval(o,n);this.intervalIds.set(t,s)});q(this,"clearTimeout",t=>{const n=this.timeoutIds.get(t);n!=null&&(clearTimeout(n),this.timeoutIds.delete(t))});q(this,"clearInterval",t=>{const n=this.intervalIds.get(t);n!=null&&(clearInterval(n),this.intervalIds.delete(t))});q(this,"clearAll",()=>{this.timeoutIds.forEach(clearTimeout),this.timeoutIds.clear(),this.intervalIds.forEach(clearInterval),this.intervalIds.clear()})}}const zN=({props:e})=>{const{store:t}=Yn(),{label:n,itemId:o}=e,[s,i]=C.useState(n),a=Pe(t,mn.isItemEditable,o);return!Pe(t,mn.isItemBeingEdited,o)&&s!==n&&i(n),{propsEnhancers:{label:()=>({editable:a}),labelInput:({externalEventHandlers:c,interactions:u})=>a?{value:s??"","data-element":"labelInput",onChange:f=>{var g;(g=c.onChange)==null||g.call(c,f),i(f.target.value)},onKeyDown:f=>{var p;if((p=c.onKeyDown)==null||p.call(c,f),f.defaultMuiPrevented)return;const g=f.target;f.key==="Enter"&&g.value?u.handleSaveItemLabel(f,g.value):f.key==="Escape"&&u.handleCancelItemLabelEditing(f)},onBlur:f=>{var g;(g=c.onBlur)==null||g.call(c,f),!f.defaultMuiPrevented&&f.target.value&&u.handleSaveItemLabel(f,f.target.value)},autoFocus:!0,type:"text"}:{}}}};class WN{constructor(t){q(this,"buildPublicAPI",()=>({setEditedItem:this.setEditedItem,updateItemLabel:this.updateItemLabel}));q(this,"setEditedItem",t=>{t!==null&&!mn.isItemEditable(this.store.state,t)||this.store.set("editedItemId",t)});q(this,"updateItemLabel",(t,n)=>{if(!n)throw new Error(process.env.NODE_ENV!=="production"?`MUI X: The Tree View component requires all items to have a \`label\` property.
261
+ This is an internal invariant violation — please report it at https://github.com/mui/mui-x/issues.`:je(288));return()=>{o.detectedStrict&&o.mountCount<2||(o.disposed=!0,n[ns](),t.current=tr)}},t.current=n}return qc(t.current[di]),t.current}const X$=process.env.NODE_ENV==="production"?G$:K$;function Q$(e,t){const n=cn(),o=X$(()=>new e(D({},t,{isRtl:n})));return F$(()=>o.updateStateFromParameters(D({},t,{isRtl:n})),[o,n,t]),qc(o.mountEffect),o}class Z${constructor(){X(this,"maxListeners",20);X(this,"warnOnce",!1);X(this,"events",{})}on(t,n,o={}){let s=this.events[t];if(s||(s={highPriority:new Map,regular:new Map},this.events[t]=s),o.isFirst?s.highPriority.set(n,!0):s.regular.set(n,!0),process.env.NODE_ENV!=="production"){const i=s.highPriority.size+s.regular.size;i>this.maxListeners&&!this.warnOnce&&(this.warnOnce=!0,console.warn([`Possible EventEmitter memory leak detected. ${i} ${t} listeners added.`].join(`
262
+ `)))}}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const o=this.events[t];if(!o)return;const s=Array.from(o.highPriority.keys()),i=Array.from(o.regular.keys());for(let a=s.length-1;a>=0;a-=1){const l=s[a];o.highPriority.has(l)&&l.apply(this,n)}for(let a=0;a<i.length;a+=1){const l=i[a];o.regular.has(l)&&l.apply(this,n)}}once(t,n){const o=this;this.on(t,function s(...i){o.removeListener(t,s),n.apply(o,i)})}}const J$=({isItemEditable:e,expansionTrigger:t})=>t||(e?"iconContainer":"content");function Xg(e){return{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px",providedTreeId:e.id,expansionTrigger:J$({isItemEditable:e.isItemEditable,expansionTrigger:e.expansionTrigger}),disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,selectionPropagation:e.selectionPropagation??Jo,itemHeight:e.itemHeight??null}}function _p(e,t,n){return e!==void 0?e:t!==void 0?t:n}function ej(e){return D({treeId:void 0,focusedItemId:null},Xg(e),er.buildItemsStateIfNeeded(e),{expandedItems:_p(e.expandedItems,e.defaultExpandedItems,[]),selectedItems:_p(e.selectedItems,e.defaultSelectedItems,e.multiSelect?jc:null)})}let Pp=0;const tj=()=>(Pp+=1,`mui-tree-view-${Pp}`);class nj{constructor(){X(this,"timeoutIds",new Map);X(this,"intervalIds",new Map);X(this,"startTimeout",(t,n,o)=>{this.clearTimeout(t);const s=setTimeout(()=>{this.timeoutIds.delete(t),o()},n);this.timeoutIds.set(t,s)});X(this,"startInterval",(t,n,o)=>{this.clearInterval(t);const s=setInterval(o,n);this.intervalIds.set(t,s)});X(this,"clearTimeout",t=>{const n=this.timeoutIds.get(t);n!=null&&(clearTimeout(n),this.timeoutIds.delete(t))});X(this,"clearInterval",t=>{const n=this.intervalIds.get(t);n!=null&&(clearInterval(n),this.intervalIds.delete(t))});X(this,"clearAll",()=>{this.timeoutIds.forEach(clearTimeout),this.timeoutIds.clear(),this.intervalIds.forEach(clearInterval),this.intervalIds.clear()})}}const oj=({props:e})=>{const{store:t}=so(),{label:n,itemId:o}=e,[s,i]=C.useState(n),a=$e(t,On.isItemEditable,o);return!$e(t,On.isItemBeingEdited,o)&&s!==n&&i(n),{propsEnhancers:{label:()=>({editable:a}),labelInput:({externalEventHandlers:c,interactions:u})=>a?{value:s??"","data-element":"labelInput",onChange:p=>{var b;(b=c.onChange)==null||b.call(c,p),i(p.target.value)},onKeyDown:p=>{var f;if((f=c.onKeyDown)==null||f.call(c,p),p.defaultMuiPrevented)return;const b=p.target;p.key==="Enter"&&b.value?u.handleSaveItemLabel(p,b.value):p.key==="Escape"&&u.handleCancelItemLabelEditing(p)},onBlur:p=>{var b;(b=c.onBlur)==null||b.call(c,p),!p.defaultMuiPrevented&&p.target.value&&u.handleSaveItemLabel(p,p.target.value)},autoFocus:!0,type:"text"}:{}}}};class rj{constructor(t){X(this,"buildPublicAPI",()=>({setEditedItem:this.setEditedItem,updateItemLabel:this.updateItemLabel}));X(this,"setEditedItem",t=>{t!==null&&!On.isItemEditable(this.store.state,t)||this.store.set("editedItemId",t)});X(this,"updateItemLabel",(t,n)=>{if(!n)throw new Error(process.env.NODE_ENV!=="production"?`MUI X: The Tree View component requires all items to have a \`label\` property.
263
263
  The label of an item cannot be empty.
264
- Item ID: ${t}`:Re(197,t));const o=this.store.state.itemMetaLookup[t];o.label!==n&&(this.store.set("itemMetaLookup",$({},this.store.state.itemMetaLookup,{[t]:$({},o,{label:n})})),this.store.parameters.onItemLabelChange&&this.store.parameters.onItemLabelChange(t,n))});this.store=t,t.itemPluginManager.register(zN,null)}}const UN=500;class qN{constructor(t){q(this,"typeaheadQuery","");q(this,"canToggleItemSelection",t=>Ie.canItemBeSelected(this.store.state,t));q(this,"canToggleItemExpansion",t=>!de.isItemDisabled(this.store.state,t)&&nt.isItemExpandable(this.store.state,t));q(this,"getFirstItemMatchingTypeaheadQuery",(t,n)=>{const o=u=>{const d=Or(this.store.state,u);return d===null?Vr(this.store.state):d},s=u=>{let d=null;const m={};let h=u.length>1?t:o(t);for(;d==null&&!m[h];){const f=this.labelMap[h];f!=null&&f.startsWith(u)?d=h:(m[h]=!0,h=o(h))}return d},i=n.toLowerCase(),a=`${this.typeaheadQuery}${i}`,l=s(a);if(l!=null)return this.typeaheadQuery=a,l;const c=s(i);return c!=null?(this.typeaheadQuery=i,c):(this.typeaheadQuery="",null)});q(this,"updateLabelMap",t=>{this.labelMap=t(this.labelMap)});q(this,"handleItemKeyDown",async(t,n)=>{var a;if(t.defaultMuiPrevented||t.altKey||Ia(t.target,t.currentTarget))return;const o=t.ctrlKey||t.metaKey,s=t.key,i=Ie.isMultiSelectEnabled(this.store.state);switch(!0){case(s===" "&&this.canToggleItemSelection(n)):{t.preventDefault(),i&&t.shiftKey?this.store.selection.expandSelectionRange(t,n):this.store.selection.setItemSelection({event:t,itemId:n,keepExistingSelection:i,shouldBeSelected:void 0});break}case s==="Enter":{(a=this.store.labelEditing)!=null&&a.setEditedItem&&mn.isItemEditable(this.store.state,n)&&!mn.isItemBeingEdited(this.store.state,n)?this.store.labelEditing.setEditedItem(n):this.canToggleItemExpansion(n)?(this.store.expansion.setItemExpansion({event:t,itemId:n}),t.preventDefault()):this.canToggleItemSelection(n)&&(i?(t.preventDefault(),this.store.selection.setItemSelection({event:t,itemId:n,keepExistingSelection:!0})):Ie.isItemSelected(this.store.state,n)||(this.store.selection.setItemSelection({event:t,itemId:n}),t.preventDefault()));break}case s==="ArrowDown":{const l=Or(this.store.state,n);l&&(t.preventDefault(),this.store.focus.focusItem(t,l),i&&t.shiftKey&&this.canToggleItemSelection(l)&&this.store.selection.selectItemFromArrowNavigation(t,n,l));break}case s==="ArrowUp":{const l=nc(this.store.state,n);l&&(t.preventDefault(),this.store.focus.focusItem(t,l),i&&t.shiftKey&&this.canToggleItemSelection(l)&&this.store.selection.selectItemFromArrowNavigation(t,n,l));break}case(s==="ArrowRight"&&!this.store.parameters.isRtl||s==="ArrowLeft"&&this.store.parameters.isRtl):{if(o)return;if(nt.isItemExpanded(this.store.state,n)){const l=Or(this.store.state,n);l&&(this.store.focus.focusItem(t,l),t.preventDefault())}else this.canToggleItemExpansion(n)&&(this.store.expansion.setItemExpansion({event:t,itemId:n}),t.preventDefault());break}case(s==="ArrowLeft"&&!this.store.parameters.isRtl||s==="ArrowRight"&&this.store.parameters.isRtl):{if(o)return;if(this.canToggleItemExpansion(n)&&nt.isItemExpanded(this.store.state,n))this.store.expansion.setItemExpansion({event:t,itemId:n}),t.preventDefault();else{const l=de.itemParentId(this.store.state,n);l&&(this.store.focus.focusItem(t,l),t.preventDefault())}break}case s==="Home":{this.canToggleItemSelection(n)&&i&&o&&t.shiftKey?this.store.selection.selectRangeFromStartToItem(t,n):this.store.focus.focusItem(t,Vr(this.store.state)),t.preventDefault();break}case s==="End":{this.canToggleItemSelection(n)&&i&&o&&t.shiftKey?this.store.selection.selectRangeFromItemToEnd(t,n):this.store.focus.focusItem(t,Th(this.store.state)),t.preventDefault();break}case s==="*":{this.store.expansion.expandAllSiblings(t,n),t.preventDefault();break}case(String.fromCharCode(t.keyCode)==="A"&&o&&i&&Ie.enabled(this.store.state)):{this.store.selection.selectAllNavigableItems(t),t.preventDefault();break}case(!o&&!t.shiftKey&&HN(s)):{this.store.timeoutManager.clearTimeout("typeahead");const l=this.getFirstItemMatchingTypeaheadQuery(n,s);l!=null?(this.store.focus.focusItem(t,l),t.preventDefault()):this.typeaheadQuery="",this.store.timeoutManager.startTimeout("typeahead",UN,()=>{this.typeaheadQuery=""});break}}});this.store=t,this.labelMap=Ld(de.itemMetaLookup(this.store.state)),this.store.registerStoreEffect(de.itemMetaLookup,(n,o)=>{this.store.shouldIgnoreItemsStateUpdate()||(this.labelMap=Ld(o))})}}function HN(e){return!!e&&e.length===1&&!!e.match(/\S/)}function Ld(e){const t={},n=o=>{t[o.id]=o.label.toLowerCase()};return Object.values(e).forEach(n),t}class YN{constructor(){q(this,"itemPlugins",[]);q(this,"itemWrappers",[]);q(this,"register",(t,n)=>{this.itemPlugins.push(t),n&&this.itemWrappers.push(n)});q(this,"listPlugins",()=>this.itemPlugins);q(this,"listWrappers",()=>this.itemWrappers)}}class GN extends Kl{constructor(n,o,s){const i=VN(n),a=s.getInitialState(i,n);super(a);q(this,"initialParameters",null);q(this,"disposables",new ON);q(this,"eventManager",this.disposables.adopt(new jN,n=>n.removeAllListeners()));q(this,"timeoutManager",this.disposables.adopt(new BN,n=>n.clearAll()));q(this,"itemPluginManager",new YN);q(this,"mountEffect",()=>{});q(this,"shouldIgnoreItemsStateUpdate",()=>this.mapper.shouldIgnoreItemsStateUpdate(this.parameters));q(this,"registerStoreEffect",(n,o)=>{let s=n(this.state);this.disposables.defer(this.subscribe(i=>{const a=n(i);a!==s&&(o(s,a),s=a)}))});q(this,"publishEvent",(n,o,s)=>{KN(s)&&s.isPropagationStopped()||this.eventManager.emit(n,o,s)});q(this,"subscribeEvent",(n,o)=>{this.eventManager.on(n,o)});this.parameters=n,this.instanceName=o,this.mapper=s,this.items=new Vo(this),this.focus=new eN(this),this.expansion=new JR(this),this.selection=new nN(this),this.keyboardNavigation=new qN(this),process.env.NODE_ENV!=="production"&&(this.initialParameters=n)}buildPublicAPI(){return $({},this.items.buildPublicAPI(),this.focus.buildPublicAPI(),this.expansion.buildPublicAPI(),this.selection.buildPublicAPI())}updateStateFromParameters(n){const o=(a,l,c)=>{var u,d;if(n[l]!==void 0&&(a[l]=n[l]),process.env.NODE_ENV!=="production"){const m=n[c],h=n[l]!==void 0,f=(u=this.initialParameters)==null?void 0:u[c],g=((d=this.initialParameters)==null?void 0:d[l])!==void 0;g!==h?Sn([`MUI X Tree View: A component is changing the ${g?"":"un"}controlled ${l} state of ${this.instanceName} to be ${g?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${l} element for 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"],"error"):JSON.stringify(f)!==JSON.stringify(m)&&Sn([`MUI X Tree View: A component is changing the default ${l} state of an uncontrolled ${this.instanceName} after being initialized. `,`To suppress this warning opt to use a controlled ${this.instanceName}.`],"error")}},s=Ah(n);o(s,"expandedItems","defaultExpandedItems"),o(s,"selectedItems","defaultSelectedItems"),(this.state.providedTreeId!==n.id||this.state.treeId===void 0)&&(s.treeId=FN()),!this.mapper.shouldIgnoreItemsStateUpdate(n)&&Vo.shouldRebuildItemsState(n,this.parameters)&&Object.assign(s,Vo.buildItemsStateIfNeeded(n));const i=this.mapper.updateStateFromParameters(s,n,o);this.update(i),this.parameters=n}[Fr](){if(!this.disposables.disposed)try{this.disposables.dispose()}catch(n){process.env.NODE_ENV!=="production"&&console.error("MUI X Tree View: error while disposing the store.",...kN(n))}}}function KN(e){return(e==null?void 0:e.isPropagationStopped)!==void 0}const Vd=e=>({isItemEditable:e.isItemEditable??!1}),jh={getInitialState:(e,t)=>$({},e,Vd(t),{editedItemId:null,lazyLoadedItems:null,domStructure:t.domStructure??"nested"}),updateStateFromParameters:(e,t)=>$({},e,Vd(t)),shouldIgnoreItemsStateUpdate:()=>!1};class Lh extends GN{constructor(){super(...arguments);q(this,"labelEditing",new WN(this))}buildPublicAPI(){return $({},super.buildPublicAPI(),this.labelEditing.buildPublicAPI(),{addItems:this.items.addItems})}}q(Lh,"rawMapper",jh);class XN extends Lh{constructor(t){super(t,"RichTreeView",jh)}}const QN=fh(),ZN=e=>{const{classes:t}=e;return C.useMemo(()=>dh({root:["root"],item:["item"],itemContent:["itemContent"],itemGroupTransition:["itemGroupTransition"],itemIconContainer:["itemIconContainer"],itemLabel:["itemLabel"],itemLabelInput:["itemLabelInput"],itemCheckbox:["itemCheckbox"]},vR,t),[t])},JN=ne("ul",{name:"MuiRichTreeView",slot:"Root"})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),cc=C.forwardRef(function(t,n){const o=QN({props:t,name:"MuiRichTreeView"});process.env.NODE_ENV!=="production"&&o.children!=null&&Sn(["MUI X: The Rich Tree View component does not support JSX children.","If you want to add items, you need to use the `items` prop.","Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/."]);const{slots:s,slotProps:i,apiRef:a,parameters:l,forwardedProps:c}=wN(o),u=AN(XN,l),d=C.useRef(null),m=xa(n,d),h=Pe(u,Us.isItemLoading,null),f=Pe(u,Us.itemError,null),g=ZN(o),p=C.useMemo(()=>$({root:JN},s),[s]);return h?b.jsx(uo,{children:"Loading…"}):f?b.jsx(uh,{severity:"error",children:f.message}):b.jsx(CR,{store:u,classes:g,slots:p,slotProps:i,apiRef:a,rootRef:d,children:b.jsx(tc.Provider,{value:de.itemDepth,children:b.jsx(SN,{slots:p,slotProps:i,forwardedProps:c,ownerState:o,rootRef:m})})})});process.env.NODE_ENV!=="production"&&(cc.displayName="RichTreeView");process.env.NODE_ENV!=="production"&&(cc.propTypes={apiRef:r.shape({current:r.shape({addItems:r.func,focusItem:r.func,getItem:r.func,getItemDOMElement:r.func,getItemOrderedChildrenIds:r.func,getItemSelection:r.func,getItemTree:r.func,getParentId:r.func,isItemExpanded:r.func,setEditedItem:r.func,setIsItemDisabled:r.func,setItemExpansion:r.func,setItemSelection:r.func,updateItemLabel:r.func})}),checkboxSelection:r.bool,classes:r.object,className:r.string,defaultExpandedItems:r.arrayOf(r.string),defaultSelectedItems:r.any,disabledItemsFocusable:r.bool,disableSelection:r.bool,domStructure:r.oneOf(["flat","nested"]),expandedItems:r.arrayOf(r.string),expansionTrigger:r.oneOf(["content","iconContainer"]),getItemChildren:r.func,getItemId:r.func,getItemLabel:r.func,id:r.string,isItemDisabled:r.func,isItemEditable:r.oneOfType([r.func,r.bool]),isItemSelectionDisabled:r.func,itemChildrenIndentation:r.oneOfType([r.number,r.string]),itemHeight:r.number,items:r.array.isRequired,multiSelect:r.bool,onExpandedItemsChange:r.func,onItemClick:r.func,onItemExpansionToggle:r.func,onItemFocus:r.func,onItemLabelChange:r.func,onItemSelectionToggle:r.func,onSelectedItemsChange:r.func,selectedItems:r.any,selectionPropagation:r.shape({descendants:r.bool,parents:r.bool}),slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const eM=e=>{const{store:t}=Yn();return Pe(t,de.itemModel,e)},tM="Tree-module__root___ANcH3",nM="Tree-module__subtree___KoLT8",oM="Tree-module__node___Hvnjg",rM="Tree-module__row___sq5ff",sM="Tree-module__label___zJDit",iM="Tree-module__iconContainer___vq55M",aM="Tree-module__expandButton___W0WTT",lM="Tree-module__expandButtonHidden___Xopam",cM="Tree-module__chevron___umezQ",uM="Tree-module__chevronExpanded___QYVrI",Ot={root:tM,subtree:nM,node:oM,row:rM,label:sM,iconContainer:iM,expandButton:aM,expandButtonHidden:lM,chevron:cM,chevronExpanded:uM};function dM(e){const t=[],n=o=>{o.forEach(s=>{t.push(s.value),s.children&&n(s.children)})};return n(e),t}function pM({rotated:e}){return b.jsx("svg",{className:e?`${Ot.chevron} ${Ot.chevronExpanded}`:Ot.chevron,viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:b.jsx("path",{d:"M5 3l5 5-5 5"})})}function uc({rotated:e,hidden:t}){return b.jsx(zr,{overStyled:!0,variant:"text",size:"small",icon:b.jsx(pM,{rotated:e}),"aria-label":"Toggle subtree","aria-hidden":"true",tabIndex:-1,className:t?`${Ot.expandButton} ${Ot.expandButtonHidden}`:Ot.expandButton})}function fM(){return b.jsx(uc,{})}function mM(){return b.jsx(uc,{rotated:!0})}function hM(){return b.jsx(uc,{hidden:!0})}const gM=Y.forwardRef(function({id:t,itemId:n,label:o,disabled:s,children:i,className:a,...l},c){const{getContextProviderProps:u,getRootProps:d,getContentProps:m,getIconContainerProps:h,getLabelProps:f,getGroupTransitionProps:g,status:p}=_h({id:t,itemId:n,children:i,label:o,disabled:s,rootRef:c}),{interactions:y}=wh({itemId:n,children:i}),x=eM(n),I=h({className:Ot.iconContainer}),w=S=>{S.key==="Enter"&&(S.preventDefault(),S.defaultMuiPrevented=!0,y.handleSelection(S))};return b.jsx(rc,{...u(),children:b.jsxs(kh,{...d({...l,className:`${Ot.node} ${a??""}`,onKeyDown:w}),children:[b.jsxs(Ph,{...m({className:Ot.row}),status:p,children:[b.jsx(Nh,{...I,onClick:S=>{S.stopPropagation(),I.onClick(S)},children:b.jsx(oc,{status:p})}),b.jsx(Rh,{...f({className:Ot.label}),children:(x==null?void 0:x.label)??o})]}),i&&b.jsx(Mh,{...g({className:Ot.subtree})})]})})}),Vh=Y.forwardRef(function({overStyled:t=!1,data:n,initialExpandedValues:o,initialSelectedValues:s,multiple:i=!1,disabled:a=!1,onNodeExpand:l,onNodeCollapse:c,onSelectedChange:u,...d},m){const h=me(d,t),f=o==="*"?dM(n):o,g=h.className,p=g?`${Ot.root} ${g}`:Ot.root;return b.jsx(cc,{ref:m,...h,items:n,getItemId:y=>y.value,getItemLabel:y=>typeof y.label=="string"?y.label:y.value,defaultExpandedItems:f,defaultSelectedItems:i?s??[]:s==null?void 0:s[0],multiSelect:i,isItemDisabled:a?()=>!0:void 0,expansionTrigger:"iconContainer",onItemExpansionToggle:(y,x,I)=>{I?l==null||l(x):c==null||c(x)},onSelectedItemsChange:(y,x)=>{u==null||u(Array.isArray(x)?x:x?[x]:[])},slots:{expandIcon:fM,collapseIcon:mM,endIcon:hM,item:gM},classes:{root:p}})});Vh.displayName="Tree";const bM=Ag,yM=sp,vM=lp,xM=Va,SM=cp,CM=Ip,wM=Jd,TM=fi,IM=ye(Gs),EM=ye(_a),_M=ye(Hs),OM=ye(Ys),kM=ye(bn),PM=ye(zd),RM=ye(Mg),NM=ye(Dg),MM=ye(qd),$M=ye(zr),DM=ye(Kg),AM=ye(Na),jM=ye(Ra),LM=ye(kr),VM=ye(gb),FM=ye(ep),BM=ye(op),zM=ye(rp),WM=ye(yn),UM=ye(Jt),qM=ye(Fa),HM=ye(Oa),YM=ye(fp),GM=ye(Pa),KM=ye(mp),XM=ye(hp),QM=ye(gp),ZM=ye(Xs),JM=ye(vp),e$=ye(My),t$=ye(Cp),n$=ye(Wa),o$=ye(qa),r$=ye(Ua),s$=ye(ka),i$=ye(nv),a$=ye(Tp),l$=ye(Ep),c$=ye(Ya),u$=ye(Ha),d$=ye(Bn),p$=ye(Ef),f$=ye(_f),m$=ye(If),h$=ye(Of),g$=ye(kf),b$=ye(Pf),y$=ye(nh),v$=ye(rh),x$=ye(Yl),S$=ye(sh),C$=ye(ih),w$=ye(CP),T$=ye(wP),I$=ye(Vh);exports.Accordion=IM;exports.AccordionControl=_M;exports.AccordionItem=EM;exports.AccordionPanel=OM;exports.AssistiveElement=kM;exports.Autocomplete=PM;exports.Avatar=RM;exports.Badge=NM;exports.Box=bM;exports.Breadcrumb=MM;exports.Button=$M;exports.Card=DM;exports.Checkbox=AM;exports.CheckboxGroup=jM;exports.Chip=LM;exports.Container=wM;exports.DatePicker=VM;exports.Dropdown=FM;exports.EmptyValueRenderer=$a;exports.FileInput=BM;exports.FileUpload=zM;exports.Flex=yM;exports.FormControlLayout=WM;exports.FormControlWrapper=UM;exports.Grid=vM;exports.GridCol=xM;exports.Group=SM;exports.HoverCard=qM;exports.IS_DEV=jn;exports.Label=HM;exports.Layer=Ma;exports.Link=YM;exports.Loader=GM;exports.Menu=KM;exports.MenuDivider=QM;exports.MenuItem=XM;exports.Modal=ZM;exports.NumberInput=JM;exports.Pagination=e$;exports.Panel=t$;exports.PanelFooter=n$;exports.RECURSICA_COMPONENTS=Db;exports.Radio=o$;exports.RadioGroup=r$;exports.ReadOnlyField=s$;exports.RecursicaThemeProvider=$b;exports.SegmentedControl=i$;exports.Slider=a$;exports.Stack=CM;exports.Stepper=l$;exports.Switch=c$;exports.SwitchGroup=u$;exports.Tab=p$;exports.TabPanel=f$;exports.Table=d$;exports.Tabs=m$;exports.Text=h$;exports.TextArea=g$;exports.TextField=b$;exports.TimePicker=y$;exports.Timeline=v$;exports.TimelineItem=x$;exports.Title=S$;exports.Toast=C$;exports.Tooltip=w$;exports.TransferList=T$;exports.Tree=I$;exports.Typography=TM;exports.copyToClipboard=Ab;exports.fileMatchesAccept=ja;exports.injectOverStyledStyles=Da;exports.isGlobalOverStyledActive=Mb;exports.registerOverStyledConsoleCommand=Aa;exports.toggleGlobalOverStyled=tp;exports.useGlobalOverStyled=np;exports.wrapComponent=ye;
264
+ Item ID: ${t}`:je(197,t));const o=this.store.state.itemMetaLookup[t];o.label!==n&&(this.store.set("itemMetaLookup",D({},this.store.state.itemMetaLookup,{[t]:D({},o,{label:n})})),this.store.parameters.onItemLabelChange&&this.store.parameters.onItemLabelChange(t,n))});this.store=t,t.itemPluginManager.register(oj,null)}}const sj=500;class ij{constructor(t){X(this,"typeaheadQuery","");X(this,"canToggleItemSelection",t=>Oe.canItemBeSelected(this.store.state,t));X(this,"canToggleItemExpansion",t=>!ge.isItemDisabled(this.store.state,t)&&ft.isItemExpandable(this.store.state,t));X(this,"getFirstItemMatchingTypeaheadQuery",(t,n)=>{const o=u=>{const d=Fr(this.store.state,u);return d===null?ts(this.store.state):d},s=u=>{let d=null;const m={};let g=u.length>1?t:o(t);for(;d==null&&!m[g];){const p=this.labelMap[g];p!=null&&p.startsWith(u)?d=g:(m[g]=!0,g=o(g))}return d},i=n.toLowerCase(),a=`${this.typeaheadQuery}${i}`,l=s(a);if(l!=null)return this.typeaheadQuery=a,l;const c=s(i);return c!=null?(this.typeaheadQuery=i,c):(this.typeaheadQuery="",null)});X(this,"updateLabelMap",t=>{this.labelMap=t(this.labelMap)});X(this,"handleItemKeyDown",async(t,n)=>{var a;if(t.defaultMuiPrevented||t.altKey||Ka(t.target,t.currentTarget))return;const o=t.ctrlKey||t.metaKey,s=t.key,i=Oe.isMultiSelectEnabled(this.store.state);switch(!0){case(s===" "&&this.canToggleItemSelection(n)):{t.preventDefault(),i&&t.shiftKey?this.store.selection.expandSelectionRange(t,n):this.store.selection.setItemSelection({event:t,itemId:n,keepExistingSelection:i,shouldBeSelected:void 0});break}case s==="Enter":{(a=this.store.labelEditing)!=null&&a.setEditedItem&&On.isItemEditable(this.store.state,n)&&!On.isItemBeingEdited(this.store.state,n)?this.store.labelEditing.setEditedItem(n):this.canToggleItemExpansion(n)?(this.store.expansion.setItemExpansion({event:t,itemId:n}),t.preventDefault()):this.canToggleItemSelection(n)&&(i?(t.preventDefault(),this.store.selection.setItemSelection({event:t,itemId:n,keepExistingSelection:!0})):Oe.isItemSelected(this.store.state,n)||(this.store.selection.setItemSelection({event:t,itemId:n}),t.preventDefault()));break}case s==="ArrowDown":{const l=Fr(this.store.state,n);l&&(t.preventDefault(),this.store.focus.focusItem(t,l),i&&t.shiftKey&&this.canToggleItemSelection(l)&&this.store.selection.selectItemFromArrowNavigation(t,n,l));break}case s==="ArrowUp":{const l=Bc(this.store.state,n);l&&(t.preventDefault(),this.store.focus.focusItem(t,l),i&&t.shiftKey&&this.canToggleItemSelection(l)&&this.store.selection.selectItemFromArrowNavigation(t,n,l));break}case(s==="ArrowRight"&&!this.store.parameters.isRtl||s==="ArrowLeft"&&this.store.parameters.isRtl):{if(o)return;if(ft.isItemExpanded(this.store.state,n)){const l=Fr(this.store.state,n);l&&(this.store.focus.focusItem(t,l),t.preventDefault())}else this.canToggleItemExpansion(n)&&(this.store.expansion.setItemExpansion({event:t,itemId:n}),t.preventDefault());break}case(s==="ArrowLeft"&&!this.store.parameters.isRtl||s==="ArrowRight"&&this.store.parameters.isRtl):{if(o)return;if(this.canToggleItemExpansion(n)&&ft.isItemExpanded(this.store.state,n))this.store.expansion.setItemExpansion({event:t,itemId:n}),t.preventDefault();else{const l=ge.itemParentId(this.store.state,n);l&&(this.store.focus.focusItem(t,l),t.preventDefault())}break}case s==="Home":{this.canToggleItemSelection(n)&&i&&o&&t.shiftKey?this.store.selection.selectRangeFromStartToItem(t,n):this.store.focus.focusItem(t,ts(this.store.state)),t.preventDefault();break}case s==="End":{this.canToggleItemSelection(n)&&i&&o&&t.shiftKey?this.store.selection.selectRangeFromItemToEnd(t,n):this.store.focus.focusItem(t,Lg(this.store.state)),t.preventDefault();break}case s==="*":{this.store.expansion.expandAllSiblings(t,n),t.preventDefault();break}case(String.fromCharCode(t.keyCode)==="A"&&o&&i&&Oe.enabled(this.store.state)):{this.store.selection.selectAllNavigableItems(t),t.preventDefault();break}case(!o&&!t.shiftKey&&aj(s)):{this.store.timeoutManager.clearTimeout("typeahead");const l=this.getFirstItemMatchingTypeaheadQuery(n,s);l!=null?(this.store.focus.focusItem(t,l),t.preventDefault()):this.typeaheadQuery="",this.store.timeoutManager.startTimeout("typeahead",sj,()=>{this.typeaheadQuery=""});break}}});this.store=t,this.labelMap=Mp(ge.itemMetaLookup(this.store.state)),this.store.registerStoreEffect(ge.itemMetaLookup,(n,o)=>{this.store.shouldIgnoreItemsStateUpdate()||(this.labelMap=Mp(o))})}}function aj(e){return!!e&&e.length===1&&!!e.match(/\S/)}function Mp(e){const t={},n=o=>{t[o.id]=o.label.toLowerCase()};return Object.values(e).forEach(n),t}class lj{constructor(){X(this,"itemPlugins",[]);X(this,"itemWrappers",[]);X(this,"register",(t,n)=>{this.itemPlugins.push(t),n&&this.itemWrappers.push(n)});X(this,"listPlugins",()=>this.itemPlugins);X(this,"listWrappers",()=>this.itemWrappers)}}class cj extends Nc{constructor(n,o,s){const i=ej(n),a=s.getInitialState(i,n);super(a);X(this,"initialParameters",null);X(this,"disposables",new W$);X(this,"eventManager",this.disposables.adopt(new Z$,n=>n.removeAllListeners()));X(this,"timeoutManager",this.disposables.adopt(new nj,n=>n.clearAll()));X(this,"itemPluginManager",new lj);X(this,"mountEffect",()=>{});X(this,"shouldIgnoreItemsStateUpdate",()=>this.mapper.shouldIgnoreItemsStateUpdate(this.parameters));X(this,"registerStoreEffect",(n,o)=>{let s=n(this.state);this.disposables.defer(this.subscribe(i=>{const a=n(i);a!==s&&(o(s,a),s=a)}))});X(this,"publishEvent",(n,o,s)=>{uj(s)&&s.isPropagationStopped()||this.eventManager.emit(n,o,s)});X(this,"subscribeEvent",(n,o)=>{this.eventManager.on(n,o)});this.parameters=n,this.instanceName=o,this.mapper=s,this.items=new er(this),this.focus=new h$(this),this.expansion=new m$(this),this.selection=new b$(this),this.keyboardNavigation=new ij(this),process.env.NODE_ENV!=="production"&&(this.initialParameters=n)}buildPublicAPI(){return D({},this.items.buildPublicAPI(),this.focus.buildPublicAPI(),this.expansion.buildPublicAPI(),this.selection.buildPublicAPI())}updateStateFromParameters(n){const o=(a,l,c)=>{var u,d;if(n[l]!==void 0&&(a[l]=n[l]),process.env.NODE_ENV!=="production"){const m=n[c],g=n[l]!==void 0,p=(u=this.initialParameters)==null?void 0:u[c],b=((d=this.initialParameters)==null?void 0:d[l])!==void 0;b!==g?$n([`MUI X Tree View: A component is changing the ${b?"":"un"}controlled ${l} state of ${this.instanceName} to be ${b?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${l} element for 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"],"error"):JSON.stringify(p)!==JSON.stringify(m)&&$n([`MUI X Tree View: A component is changing the default ${l} state of an uncontrolled ${this.instanceName} after being initialized. `,`To suppress this warning opt to use a controlled ${this.instanceName}.`],"error")}},s=Xg(n);o(s,"expandedItems","defaultExpandedItems"),o(s,"selectedItems","defaultSelectedItems"),(this.state.providedTreeId!==n.id||this.state.treeId===void 0)&&(s.treeId=tj()),!this.mapper.shouldIgnoreItemsStateUpdate(n)&&er.shouldRebuildItemsState(n,this.parameters)&&Object.assign(s,er.buildItemsStateIfNeeded(n));const i=this.mapper.updateStateFromParameters(s,n,o);this.update(i),this.parameters=n}[ns](){if(!this.disposables.disposed)try{this.disposables.dispose()}catch(n){process.env.NODE_ENV!=="production"&&console.error("MUI X Tree View: error while disposing the store.",...U$(n))}}}function uj(e){return(e==null?void 0:e.isPropagationStopped)!==void 0}const Dp=e=>({isItemEditable:e.isItemEditable??!1}),Qg={getInitialState:(e,t)=>D({},e,Dp(t),{editedItemId:null,lazyLoadedItems:null,domStructure:t.domStructure??"nested"}),updateStateFromParameters:(e,t)=>D({},e,Dp(t)),shouldIgnoreItemsStateUpdate:()=>!1};class Zg extends cj{constructor(){super(...arguments);X(this,"labelEditing",new rj(this))}buildPublicAPI(){return D({},super.buildPublicAPI(),this.labelEditing.buildPublicAPI(),{addItems:this.items.addItems})}}X(Zg,"rawMapper",Qg);class dj extends Zg{constructor(t){super(t,"RichTreeView",Qg)}}const pj=kg(),fj=e=>{const{classes:t}=e;return C.useMemo(()=>Ig({root:["root"],item:["item"],itemContent:["itemContent"],itemGroupTransition:["itemGroupTransition"],itemIconContainer:["itemIconContainer"],itemLabel:["itemLabel"],itemLabelInput:["itemLabelInput"],itemCheckbox:["itemCheckbox"]},NN,t),[t])},mj=te("ul",{name:"MuiRichTreeView",slot:"Root"})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),Gc=C.forwardRef(function(t,n){const o=pj({props:t,name:"MuiRichTreeView"});process.env.NODE_ENV!=="production"&&o.children!=null&&$n(["MUI X: The Rich Tree View component does not support JSX children.","If you want to add items, you need to use the `items` prop.","Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/."]);const{slots:s,slotProps:i,apiRef:a,parameters:l,forwardedProps:c}=L$(o),u=Q$(dj,l),d=C.useRef(null),m=Ua(n,d),g=$e(u,ui.isItemLoading,null),p=$e(u,ui.itemError,null),b=fj(o),f=C.useMemo(()=>D({root:mj},s),[s]);return g?h.jsx(Jt,{children:"Loading…"}):p?h.jsx(Tg,{severity:"error",children:p.message}):h.jsx(AN,{store:u,classes:b,slots:f,slotProps:i,apiRef:a,rootRef:d,children:h.jsx(Fc.Provider,{value:ge.itemDepth,children:h.jsx(j$,{slots:f,slotProps:i,forwardedProps:c,ownerState:o,rootRef:m})})})});process.env.NODE_ENV!=="production"&&(Gc.displayName="RichTreeView");process.env.NODE_ENV!=="production"&&(Gc.propTypes={apiRef:r.shape({current:r.shape({addItems:r.func,focusItem:r.func,getItem:r.func,getItemDOMElement:r.func,getItemOrderedChildrenIds:r.func,getItemSelection:r.func,getItemTree:r.func,getParentId:r.func,isItemExpanded:r.func,setEditedItem:r.func,setIsItemDisabled:r.func,setItemExpansion:r.func,setItemSelection:r.func,updateItemLabel:r.func})}),checkboxSelection:r.bool,classes:r.object,className:r.string,defaultExpandedItems:r.arrayOf(r.string),defaultSelectedItems:r.any,disabledItemsFocusable:r.bool,disableSelection:r.bool,domStructure:r.oneOf(["flat","nested"]),expandedItems:r.arrayOf(r.string),expansionTrigger:r.oneOf(["content","iconContainer"]),getItemChildren:r.func,getItemId:r.func,getItemLabel:r.func,id:r.string,isItemDisabled:r.func,isItemEditable:r.oneOfType([r.func,r.bool]),isItemSelectionDisabled:r.func,itemChildrenIndentation:r.oneOfType([r.number,r.string]),itemHeight:r.number,items:r.array.isRequired,multiSelect:r.bool,onExpandedItemsChange:r.func,onItemClick:r.func,onItemExpansionToggle:r.func,onItemFocus:r.func,onItemLabelChange:r.func,onItemSelectionToggle:r.func,onSelectedItemsChange:r.func,selectedItems:r.any,selectionPropagation:r.shape({descendants:r.bool,parents:r.bool}),slotProps:r.object,slots:r.object,sx:r.oneOfType([r.arrayOf(r.oneOfType([r.func,r.object,r.bool])),r.func,r.object])});const hj=e=>{const{store:t}=so();return $e(t,ge.itemModel,e)},gj="Tree-module__root___ANcH3",bj="Tree-module__subtree___KoLT8",yj="Tree-module__node___Hvnjg",vj="Tree-module__row___sq5ff",xj="Tree-module__label___zJDit",Cj="Tree-module__iconContainer___vq55M",wj="Tree-module__expandButton___W0WTT",Sj="Tree-module__expandButtonHidden___Xopam",Tj="Tree-module__chevron___umezQ",Ij="Tree-module__chevronExpanded___QYVrI",$t={root:gj,subtree:bj,node:yj,row:vj,label:xj,iconContainer:Cj,expandButton:wj,expandButtonHidden:Sj,chevron:Tj,chevronExpanded:Ij};function Ej(e){const t=[],n=o=>{o.forEach(s=>{t.push(s.value),s.children&&n(s.children)})};return n(e),t}function kj({rotated:e}){return h.jsx("svg",{className:e?`${$t.chevron} ${$t.chevronExpanded}`:$t.chevron,viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:h.jsx("path",{d:"M5 3l5 5-5 5"})})}function Kc({rotated:e,hidden:t}){return h.jsx(kn,{overStyled:!0,variant:"text",size:"small",icon:h.jsx(kj,{rotated:e}),"aria-label":"Toggle subtree","aria-hidden":"true",tabIndex:-1,className:t?`${$t.expandButton} ${$t.expandButtonHidden}`:$t.expandButton})}function Oj(){return h.jsx(Kc,{})}function _j(){return h.jsx(Kc,{rotated:!0})}function Pj(){return h.jsx(Kc,{hidden:!0})}const Mj=H.forwardRef(function({id:t,itemId:n,label:o,disabled:s,children:i,className:a,...l},c){const{getContextProviderProps:u,getRootProps:d,getContentProps:m,getIconContainerProps:g,getLabelProps:p,getGroupTransitionProps:b,status:f}=Bg({id:t,itemId:n,children:i,label:o,disabled:s,rootRef:c}),{interactions:y}=Ag({itemId:n,children:i}),x=hj(n),T=g({className:$t.iconContainer}),S=w=>{w.key==="Enter"&&(w.preventDefault(),w.defaultMuiPrevented=!0,y.handleSelection(w))};return h.jsx(Wc,{...u(),children:h.jsxs(Wg,{...d({...l,className:`${$t.node} ${a??""}`,onKeyDown:S}),children:[h.jsxs(Ug,{...m({className:$t.row}),status:f,children:[h.jsx(qg,{...T,onClick:w=>{w.stopPropagation(),T.onClick(w)},children:h.jsx(zc,{status:f})}),h.jsx(Hg,{...p({className:$t.label}),children:(x==null?void 0:x.label)??o})]}),i&&h.jsx(Yg,{...b({className:$t.subtree})})]})})}),Jg=H.forwardRef(function({overStyled:t=!1,data:n,initialExpandedValues:o,initialSelectedValues:s,multiple:i=!1,disabled:a=!1,onNodeExpand:l,onNodeCollapse:c,onSelectedChange:u,...d},m){const g=ve(d,t),p=o==="*"?Ej(n):o,b=g.className,f=b?`${$t.root} ${b}`:$t.root;return h.jsx(Gc,{ref:m,...g,items:n,getItemId:y=>y.value,getItemLabel:y=>typeof y.label=="string"?y.label:y.value,defaultExpandedItems:p,defaultSelectedItems:i?s??[]:s==null?void 0:s[0],multiSelect:i,isItemDisabled:a?()=>!0:void 0,expansionTrigger:"iconContainer",onItemExpansionToggle:(y,x,T)=>{T?l==null||l(x):c==null||c(x)},onSelectedItemsChange:(y,x)=>{u==null||u(Array.isArray(x)?x:x?[x]:[])},slots:{expandIcon:Oj,collapseIcon:_j,endIcon:Pj,item:Mj},classes:{root:f}})});Jg.displayName="Tree";const Dj=Kb,Rj=uh,Nj=fh,$j=uc,jj=mh,Aj=Rh,Lj=Yp,Vj=Ji,Fj=Ie(mi),Bj=Ie(Qa),zj=Ie(pi),Wj=Ie(fi),Uj=Ie(Mn),Hj=Ie($p),qj=Ie(Yb),Yj=Ie(Lp),Gj=Ie(Vp),Kj=Ie(kn),Xj=Ie(ly),Qj=Ie(zr),Zj=Ie(Br),Jj=Ie(Wr),eA=Ie(rh),tA=Ie(sh),nA=Ie(lh),oA=Ie(ch),rA=Ie(Dn),sA=Ie(hn),iA=Ie(dc),aA=Ie(Za),lA=Ie(yh),cA=Ie(el),uA=Ie(vh),dA=Ie(xh),pA=Ie(Ch),fA=Ie(Zi),mA=Ie(Th),hA=Ie(wP),gA=Ie(kh),bA=Ie(mc),yA=Ie(hc),vA=Ie(bc),xA=Ie(gc),CA=Ie(Ja),wA=Ie(YP),SA=Ie(Dh),TA=Ie(Nh),IA=Ie(vc),EA=Ie(yc),kA=Ie(ro),OA=Ie(Jh),_A=Ie(eg),PA=Ie(Zh),MA=Ie(tg),DA=Ie(ng),RA=Ie(xc),NA=Ie(hg),$A=Ie(bg),jA=Ie(Dc),AA=Ie(yg),LA=Ie(vg),VA=Ie(kR),FA=Ie(Cg),BA=Ie(Jg);exports.Accordion=Fj;exports.AccordionControl=zj;exports.AccordionItem=Bj;exports.AccordionPanel=Wj;exports.AssistiveElement=Uj;exports.Autocomplete=Hj;exports.Avatar=qj;exports.Badge=Yj;exports.Box=Dj;exports.Breadcrumb=Gj;exports.Button=Kj;exports.Card=Xj;exports.Checkbox=Qj;exports.CheckboxGroup=Zj;exports.Chip=Jj;exports.Container=Lj;exports.DatePicker=eA;exports.Dropdown=tA;exports.EmptyValueRenderer=sc;exports.FileInput=nA;exports.FileUpload=oA;exports.Flex=Rj;exports.FormControlLayout=rA;exports.FormControlWrapper=sA;exports.Grid=Nj;exports.GridCol=$j;exports.Group=jj;exports.HoverCard=iA;exports.IS_DEV=Zn;exports.Label=aA;exports.Layer=rc;exports.Link=lA;exports.Loader=cA;exports.Menu=uA;exports.MenuDivider=pA;exports.MenuItem=dA;exports.Modal=fA;exports.NumberInput=mA;exports.Pagination=hA;exports.Panel=gA;exports.PanelFooter=bA;exports.Popover=yA;exports.RECURSICA_COMPONENTS=T_;exports.Radio=vA;exports.RadioGroup=xA;exports.ReadOnlyField=CA;exports.RecursicaThemeProvider=S_;exports.SegmentedControl=wA;exports.Slider=SA;exports.Stack=Aj;exports.Stepper=TA;exports.Switch=IA;exports.SwitchGroup=EA;exports.Tab=OA;exports.TabPanel=_A;exports.Table=kA;exports.Tabs=PA;exports.Text=MA;exports.TextArea=DA;exports.TextField=RA;exports.TimePicker=NA;exports.Timeline=$A;exports.TimelineItem=jA;exports.Title=AA;exports.Toast=LA;exports.Tooltip=VA;exports.TransferList=FA;exports.Tree=BA;exports.Typography=Vj;exports.copyToClipboard=I_;exports.fileMatchesAccept=lc;exports.injectOverStyledStyles=ic;exports.isGlobalOverStyledActive=w_;exports.registerOverStyledConsoleCommand=ac;exports.toggleGlobalOverStyled=ih;exports.useGlobalOverStyled=ah;exports.wrapComponent=Ie;
265
265
  //# sourceMappingURL=mui-adapter.cjs.map