@recursica/mui-adapter 0.18.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/SETUP.md +1 -1
- package/dist/mui-adapter.cjs +172 -23
- package/dist/mui-adapter.cjs.map +1 -1
- package/dist/mui-adapter.css +1 -1
- package/dist/mui-adapter.js +12963 -4694
- package/dist/mui-adapter.js.map +1 -1
- package/dist/src/components/Tree/Tree.d.ts +9 -5
- package/llms.txt +2 -0
- package/package.json +6 -1
- package/src/components/Accordion/Accordion.module.css +98 -62
- package/src/components/Autocomplete/Autocomplete.module.css +50 -47
- package/src/components/Autocomplete/Autocomplete.tsx +2 -2
- package/src/components/Avatar/Avatar.module.css +7 -7
- package/src/components/Badge/Badge.module.css +8 -8
- package/src/components/Button/Button.module.css +25 -43
- package/src/components/Card/Card.module.css +3 -3
- package/src/components/Checkbox/Checkbox.module.css +57 -16
- package/src/components/Chip/Chip.module.css +32 -20
- package/src/components/Dropdown/Dropdown.module.css +47 -44
- package/src/components/Dropdown/Dropdown.tsx +2 -2
- package/src/components/FormControlWrapper/FormControlWrapper.module.css +12 -12
- package/src/components/HoverCard/HoverCard.module.css +1 -1
- package/src/components/Label/Label.module.css +20 -3
- package/src/components/Layer/USAGE.md +50 -0
- package/src/components/Link/Link.module.css +18 -71
- package/src/components/Loader/Loader.module.css +3 -3
- package/src/components/Menu/Menu.module.css +33 -41
- package/src/components/Modal/Modal.module.css +27 -11
- package/src/components/NumberInput/NumberInput.module.css +39 -37
- package/src/components/NumberInput/NumberInput.tsx +2 -2
- package/src/components/Pagination/Pagination.module.css +10 -43
- package/src/components/Panel/Panel.module.css +3 -3
- package/src/components/Radio/Radio.module.css +32 -15
- package/src/components/ReadOnlyField/ReadOnlyField.module.css +1 -1
- package/src/components/RecursicaThemeProvider/USAGE.md +60 -0
- package/src/components/SegmentedControl/SegmentedControl.module.css +37 -29
- package/src/components/Slider/Slider.module.css +51 -35
- package/src/components/Stepper/Stepper.module.css +3 -3
- package/src/components/Switch/Switch.module.css +27 -11
- package/src/components/Tabs/Tabs.module.css +309 -166
- package/src/components/TextArea/TextArea.module.css +36 -21
- package/src/components/TextArea/TextArea.tsx +2 -2
- package/src/components/TextField/TextField.module.css +38 -33
- package/src/components/TextField/TextField.tsx +2 -2
- package/src/components/Timeline/IMPLEMENTATION_NOTES.md +5 -0
- package/src/components/Timeline/Timeline.module.css +35 -34
- package/src/components/Toast/Toast.module.css +24 -11
- package/src/components/Tooltip/Tooltip.module.css +4 -2
- package/src/components/Tree/IMPLEMENTATION_NOTES.md +21 -0
- package/src/components/Tree/Tree.module.css +204 -39
- package/src/components/Tree/Tree.stories.tsx +81 -4
- package/src/components/Tree/Tree.tsx +214 -13
- package/src/components/Tree/USAGE.md +40 -3
package/dist/mui-adapter.cjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),C=require("react"),k=require("@mui/material"),Ts=require("@emotion/react"),ws=require("@emotion/styled");var ur=typeof document<"u"?document.currentScript:null;function Ns(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const xe=Ns(C),Es=["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"],Os=new Set(["m","my","mx","mt","mb","ml","mr","p","py","px","pt","pb","pl","pr","gap","rowGap","columnGap","top","left","bottom","right"]),_e={"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 Nt(e){const t={...e};return"sx"in t&&delete t.sx,t}function M(e,t){if(t)return e;const r={...e};for(const o of Es)o in r&&delete r[o];for(const[o,n]of Object.entries(r))typeof n=="string"&&n.startsWith("rec-")&&Os.has(o)&&n in _e&&(r[o]=_e[n]);return r}const As="Accordion-module__root___Dem6d",Rs="Accordion-module__item___7ryVk",Ps="Accordion-module__noDivider___Ni2tT",js="Accordion-module__control___b4wgX",ks="Accordion-module__label___Ss7uW",Is="Accordion-module__chevron___i-HVZ",Ms="Accordion-module__iconLeftWrapper___5oLen",Ls="Accordion-module__panel___Wx50w",Fs="Accordion-module__content___PEM9t",We={root:As,item:Rs,noDivider:Ps,control:js,label:ks,chevron:Is,iconLeftWrapper:Ms,panel:Ls,content:Fs},Ws=()=>c.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:c.jsx("polyline",{points:"6 9 12 15 18 9"})}),Nr=C.createContext(null),zo=C.forwardRef(function({variant:t="unstyled",overStyled:r=!1,value:o,defaultValue:n,onChange:s,multiple:a=!1,chevron:i,children:d,...p},f){const h=M(p,r),y=h.className,u=[We.root,y].filter(Boolean).join(" ")||void 0,[_,m]=C.useState(n!==void 0?n:a?[]:null),g=o!==void 0?o:_,$=N=>{let A;if(a){const w=Array.isArray(g)?g:g?[g]:[];A=w.includes(N)?w.filter(v=>v!==N):[...w,N]}else A=g===N?null:N;m(A),s==null||s(A)};return c.jsx(Nr.Provider,{value:{value:g,onChange:$,chevron:i},children:c.jsx("div",{ref:f,className:u,"data-variant":t,...h,children:d})})});zo.displayName="Accordion";const Er=C.forwardRef(function({title:t,leftIcon:r,divider:o=!0,children:n,value:s,overStyled:a=!1,style:i,...d},p){const f=M(d,a),h=f.className,y=[We.item,o?void 0:We.noDivider,h].filter(Boolean).join(" ")||void 0,u=C.useContext(Nr),_=u?Array.isArray(u.value)?u.value.includes(s):u.value===s:void 0,m=()=>{u==null||u.onChange(s)},g={backgroundColor:"transparent",...i};return c.jsx(k.Accordion,{ref:p,className:y,disableGutters:!0,elevation:0,square:!0,expanded:_,onChange:m,style:g,...f,children:t?c.jsxs(c.Fragment,{children:[c.jsx(zt,{leftIcon:r,children:t}),c.jsx(Gt,{children:n})]}):n})});Er.displayName="AccordionItem";const zt=C.forwardRef(function({leftIcon:t,children:r,overStyled:o=!1,...n},s){const a=M(n,o),i=a.className,d=[We.control,i].filter(Boolean).join(" ")||void 0,p=C.useContext(Nr),f=(p==null?void 0:p.chevron)??c.jsx(Ws,{});return c.jsxs(k.AccordionSummary,{ref:s,className:d,expandIcon:c.jsx("span",{className:We.chevron,children:f}),...a,children:[t&&c.jsx("span",{className:We.iconLeftWrapper,"aria-hidden":!0,children:t}),c.jsx("div",{className:We.label,children:r})]})});zt.displayName="AccordionControl";const Gt=C.forwardRef(function({overStyled:t=!1,children:r,...o},n){const s=M(o,t),a=s.className,i=[We.panel,a].filter(Boolean).join(" ")||void 0;return c.jsx(k.AccordionDetails,{ref:n,className:i,...s,children:c.jsx("div",{className:We.content,children:r})})});Gt.displayName="AccordionPanel";const Ut=zo;Ut.Item=Er;Ut.Control=zt;Ut.Panel=Gt;const Bs="AssistiveElement-module__root___WhQ43",Ds="AssistiveElement-module__text___vrHAg",Vs="AssistiveElement-module__icon___Q-CVz",Pt={root:Bs,text:Ds,icon:Vs},Or=C.forwardRef(function(t,r){const{assistiveVariant:o="help",assistiveWithIcon:n=!0,overStyled:s=!1,className:a,children:i,...d}=t,p=M(d,s),f=()=>c.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:[c.jsx("circle",{cx:"12",cy:"12",r:"10"}),c.jsx("path",{d:"M12 16v-4"}),c.jsx("path",{d:"M12 8h.01"})]}),h=()=>c.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:[c.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"}),c.jsx("path",{d:"M12 9v4"}),c.jsx("path",{d:"M12 17h.01"})]}),y=o==="error";return c.jsxs(k.FormHelperText,{ref:r,component:"div",error:y,"data-variant":o,className:a?`${Pt.root} ${a}`:Pt.root,...p,children:[n&&c.jsx("div",{className:Pt.icon,children:o==="error"?c.jsx(h,{}):c.jsx(f,{})}),c.jsx("div",{className:Pt.text,children:i})]})});Or.displayName="AssistiveElement";const zs="Label-module__root___e6HXZ",Gs="Label-module__innerLayout___Xxapo",Us="Label-module__text___OGeEw",qs="Label-module__required___Ggrzc",Hs="Label-module__endNodes___es7ew",Ys="Label-module__optionalText___Y2yun",Ks="Label-module__actionArea___O-f1X",Xs="Label-module__editIcon___9hO1G",Ae={root:zs,innerLayout:Gs,text:Us,required:qs,endNodes:Hs,optionalText:Ys,actionArea:Ks,editIcon:Xs},Ar=C.forwardRef(function(t,r){const{overStyled:o=!1,required:n=!1,labelOptionalText:s="",labelWithEditIcon:a=!1,onLabelEditClick:i,labelActionArea:d,children:p,className:f,...h}=t,y=M(h,o),u=()=>c.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:[c.jsx("path",{d:"M12 20h9"}),c.jsx("path",{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"})]});return c.jsx(k.InputLabel,{ref:r,shrink:!0,className:f?`${Ae.root} ${f}`:Ae.root,...y,children:c.jsxs("div",{className:Ae.innerLayout,children:[c.jsxs("span",{className:Ae.textWrapper,children:[c.jsx("span",{className:Ae.text,children:p}),n&&c.jsx("span",{className:Ae.required,children:" *"})]}),c.jsxs("div",{className:Ae.endNodes,children:[d&&c.jsx("span",{className:Ae.actionArea,children:d}),!n&&s&&!d&&c.jsx("span",{className:Ae.optionalText,children:s===!0?"Optional":s}),a&&c.jsx("button",{type:"button",className:Ae.editIcon,onClick:i,"aria-label":"Edit label",children:c.jsx(u,{})})]})]})})});Ar.displayName="Label";const Qs="FormControlLayout-module__root___yNDhZ",Js="FormControlLayout-module__leftSection___GBM1r",Zs="FormControlLayout-module__rightSection___bcL4v",gt={root:Qs,leftSection:Js,rightSection:Zs},Be=C.forwardRef(function(t,r){const{overStyled:o=!1,formLayout:n="stacked",labelSize:s="default",controlMaxWidth:a,controlMinWidth:i,leftSection:d,className:p,children:f,style:h,...y}=t,u=M(y,o);return c.jsxs("div",{ref:r,className:p?`${gt.root} ${p}`:gt.root,"data-form-layout":n,style:{...h,...a?{"--form-control-max-width":a}:{},...i?{"--form-control-min-width":i}:{}},...u,children:[n==="side-by-side"?c.jsx("div",{className:gt.leftSection,"data-label-size":s,children:d}):d&&c.jsx("div",{className:gt.leftSection,"data-label-size":s,children:d}),c.jsx("div",{className:gt.rightSection,children:f})]})});Be.displayName="FormControlLayout";const ea="FormControlWrapper-module__root___c-UHo",ta="FormControlWrapper-module__inputSection___HenXk",pr={root:ea,inputSection:ta},Xe=C.forwardRef(function(t,r){const{overStyled:o=!1,label:n,assistiveText:s,description:a,helperText:i,assistiveWithIcon:d=!0,error:p,required:f,disabled:h,focused:y,id:u,formLayout:_="stacked",labelSize:m="default",labelOptionalText:g,labelWithEditIcon:$,onLabelEditClick:N,labelActionArea:A,controlMaxWidth:w,controlMinWidth:v,className:T,style:P,children:O,...L}=t,z=M(L,o),W=s||a||i,l=u?`${u}-label`:void 0,E=u?`${u}-description`:void 0,x=C.Children.map(O,R=>C.isValidElement(R)?C.cloneElement(R,{"aria-labelledby":l,"aria-describedby":W?E:void 0}):R);return c.jsx(k.FormControl,{ref:r,error:!!p,required:f,disabled:h,focused:y,className:T?`${pr.root} ${T}`:pr.root,style:P,"data-error":p?"true":void 0,"data-disabled":h?"true":void 0,"data-focused":y?"true":void 0,...z,children:c.jsx(Be,{formLayout:_,labelSize:m,controlMaxWidth:w,controlMinWidth:v,leftSection:n&&c.jsx(Ar,{id:l,htmlFor:u,required:f,labelOptionalText:g,labelWithEditIcon:$,onLabelEditClick:N,labelActionArea:A,children:n}),children:c.jsxs("div",{className:pr.inputSection,children:[x,(W||p)&&c.jsx(Or,{id:E,assistiveVariant:p?"error":"help",assistiveWithIcon:d,children:p&&typeof p=="string"?p:W})]})})})});Xe.displayName="FormControlWrapper";const ra="ReadOnlyField-module__root___hKci7",oa="ReadOnlyField-module__text___bPxk9",it={root:ra,text:oa},Rr=C.forwardRef(function(t,r){const{value:o,type:n="text",readOnlyComponent:s,emptyValueComponent:a,className:i,...d}=t;if(a&&typeof a!="string"){const h=a;if(h.check&&h.check(o))return c.jsx(Xe,{ref:r,className:`${it.root} ${i||""}`,...d,children:c.jsx(h,{value:o})})}if(o==null||o===""||Array.isArray(o)&&o.length===0)return c.jsx(Xe,{ref:r,className:`${it.root} ${i||""}`,...d,children:c.jsx("p",{className:it.text,children:"N/A"})});if(s){const h=s;return c.jsx(Xe,{ref:r,className:`${it.root} ${i||""}`,...d,children:c.jsx(h,{value:o})})}let f=o;return n==="boolean"||n==="switch"?(f=o?"True":"False",n==="switch"&&(f=o?"On":"Off")):Array.isArray(o)?f=o.join(", "):f=String(o),c.jsx(Xe,{ref:r,className:`${it.root} ${i||""}`,...d,children:c.jsx("p",{className:it.text,children:f})})});Rr.displayName="ReadOnlyField";const Pe=C.forwardRef(function({readOnly:t,readOnlyComponent:r,readOnlyType:o="text",readOnlyValue:n,readOnlyNativeProps:s,emptyValueComponent:a,activeComponent:i,overStyled:d,onLabelEditClick:p,...f},h){if(t){if(r){const y=r;return c.jsx(Xe,{ref:h,...f,onLabelEditClick:p,overStyled:d,children:c.jsx(y,{...s})})}return c.jsx(Rr,{ref:h,type:o,value:n,emptyValueComponent:a,onLabelEditClick:p,overStyled:d,...f})}return c.jsx(Xe,{ref:h,...f,onLabelEditClick:p,overStyled:d,children:i})});Pe.displayName="WithReadOnlyWrapper";const na="Autocomplete-module__layoutOverride___IIkyG",sa="Autocomplete-module__root___22Jqm",aa="Autocomplete-module__input___MlbJR",ia="Autocomplete-module__dropdown___A9XVI",la="Autocomplete-module__option___cZsvO",be={layoutOverride:na,root:sa,input:aa,dropdown:ia,option:la},Go=C.forwardRef(function(t,r){const{overStyled:o=!1,formLayout:n="stacked",labelSize:s,labelAlignment:a,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:p,label:f,assistiveText:h,assistiveWithIcon:y,error:u,required:_,withAsterisk:m,id:g,className:$,style:N,disabled:A,readOnly:w,readOnlyComponent:v,emptyValueComponent:T,value:P,defaultValue:O,data:L,leftSection:z,rightSection:W,placeholder:l,ListboxProps:E,...x}=t,F=M(x,o);delete F.size,delete F.variant,delete F.radius;const q={root:be.root,inputRoot:be.input,listbox:be.dropdown,option:be.option},ee=F.classNames;if(ee&&typeof ee=="object"&&!Array.isArray(ee)){const S=ee;q.root=S.wrapper?`${be.root} ${S.wrapper}`:be.root,q.inputRoot=S.input?`${be.input} ${S.input}`:be.input,q.listbox=S.dropdown?`${be.dropdown} ${S.dropdown}`:be.dropdown,q.option=S.option?`${be.option} ${S.option}`:be.option}const fe=$?`${be.layoutOverride} ${$}`:be.layoutOverride;return c.jsx(Pe,{className:fe,style:N,controlMaxWidth:"var(--recursica_ui-kit_components_autocomplete_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_autocomplete_properties_min-width)",overStyled:o,formLayout:n,labelSize:s,labelAlignment:a,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:p,label:f,assistiveText:h,assistiveWithIcon:y,error:!!u,required:_,id:g,disabled:A,readOnly:w,readOnlyComponent:v,emptyValueComponent:T,readOnlyType:"text",readOnlyValue:P!==void 0?P:O,readOnlyNativeProps:t,activeComponent:c.jsx(k.Autocomplete,{ref:r,freeSolo:!0,disableClearable:!0,classes:q,disabled:A,value:P,defaultValue:O,forcePopupIcon:!1,"data-error":u?"true":void 0,"data-disabled":A?"true":void 0,"data-with-left-section":z?"true":void 0,"data-with-right-section":W?"true":void 0,ListboxProps:{...E,className:q.listbox},options:L||[],renderInput:S=>{const{InputProps:I,...V}=S;return c.jsx(k.TextField,{...V,placeholder:l,variant:"standard"})}})})});Go.displayName="Autocomplete";const ca="Avatar-module__root___fXu-J",da="Avatar-module__iconWrapper___ojly2",ua="Avatar-module__textWrapper___zp-jD",pa="Avatar-module__image___ieqGp",fa="Avatar-module__placeholder___IDW7-",Ee={root:ca,iconWrapper:da,textWrapper:ua,image:pa,placeholder:fa},Uo=C.forwardRef(function({size:t="default",variant:r="solid",icon:o,children:n,src:s,overStyled:a=!1,...i},d){const p={solid:"filled",outline:"outline",ghost:"transparent"},f=M(i,a),h=f;let y="text";s?y="image":o&&(y="icon");const u={root:Ee.root,image:Ee.image,placeholder:Ee.placeholder},_=h.classNames;if(_&&typeof _=="object"&&!Array.isArray(_)){const g=_;u.root=g.root?`${Ee.root} ${g.root}`:Ee.root,u.image=g.image?`${Ee.image} ${g.image}`:Ee.image,u.placeholder=g.placeholder?`${Ee.placeholder} ${g.placeholder}`:Ee.placeholder}const m=h.className;return c.jsx(k.Avatar,{ref:d,className:m,classes:u,variant:p[r],src:s,"data-variant":r,"data-size":t,"data-style":y,...f,children:o!=null?c.jsx("span",{className:Ee.iconWrapper,"aria-hidden":!0,children:o}):n!=null?c.jsx("span",{className:Ee.textWrapper,children:n}):void 0})});Uo.displayName="Avatar";const ma=Uo,ha="Badge-module__root___5osNT",ke={root:ha},qo=C.forwardRef(function({variant:t="primary-color",overStyled:r=!1,...o},n){const s=M(o,r),a={root:ke.root,section:ke.section,label:ke.label},i=s.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const f=i;a.root=f.root?`${ke.root} ${f.root}`:ke.root,a.section=f.section??ke.section,a.label=f.label??ke.label}const d=s.className,p=d?`${ke.root} ${d}`:ke.root;return c.jsx(k.Badge,{ref:n,variant:"standard","data-variant":t,...s,className:p,classes:a})});qo.displayName="Badge";const ya=qo,_a=C.forwardRef(function(t,r){return c.jsx(k.Box,{ref:r,...t})}),ga="Breadcrumb-module__root___x-9ln",ba="Breadcrumb-module__separator___qrUX-",ze={root:ga,separator:ba},Ho=C.forwardRef(function({overStyled:t=!1,separator:r=">",...o},n){const s=M({separator:r,...o},t),a={root:ze.root,separator:ze.separator},i=s.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const f=i;a.root=f.root?`${ze.root} ${f.root}`:ze.root,a.separator=f.separator?`${ze.separator} ${f.separator}`:ze.separator}const d=s.className,p=d?`${ze.root} ${d}`:ze.root;return c.jsx(k.Breadcrumbs,{ref:n,...s,className:p,classes:a})});Ho.displayName="Breadcrumb";const va="Loader-module__root___6iYOP",ro={root:va},Pr=C.forwardRef(function({variant:t="oval",size:r="default",overStyled:o=!1,...n},s){const i={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[r]||"default",d=M(n,o),p=d.className,f=p?`${ro.root} ${p}`:ro.root,h=()=>t==="bars"||t==="dots"?c.jsxs(c.Fragment,{children:[c.jsx("span",{}),c.jsx("span",{}),c.jsx("span",{})]}):null;return c.jsx("span",{ref:s,"data-variant":t,"data-size":i,...d,className:f,children:h()})});Pr.displayName="Loader";const xa="Button-module__root___Q2R8-",Ca="Button-module__labelText___rFV5p",$a="Button-module__iconWrapper___uEKPa",bt={root:xa,labelText:Ca,iconWrapper:$a};function Sa(e){return e==null||e===""?!1:typeof e=="string"?e.trim()!=="":!0}const Yo=C.forwardRef(function({variant:t="solid",size:r="default",icon:o,children:n,overStyled:s=!1,loaderVariant:a="oval",loaderSize:i,useRecursicaLoader:d=!0,...p},f){const h=M(p,s),y=h;delete y.color;const u=!!o||!!y.startIcon,_=!!y.endIcon,m=Sa(n),g=(u||_)&&!m;let $="label";g?$="icon-only":(u||_)&&($="icon-label"),typeof process<"u"&&process.env.NODE_ENV!=="production"&&g&&!y["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const N=y.className,A=N?`${bt.root} ${N}`:bt.root,w=i??(r==="small"?"small":"default");let v=y.loadingIndicator;return d&&(v=c.jsx(Pr,{variant:a,size:w})),c.jsx(k.Button,{ref:f,disableRipple:!0,disableElevation:!0,className:A,loading:!!y.loading,loadingIndicator:v,fullWidth:!!y.fullWidth,startIcon:y.loading?c.jsx("span",{className:bt.iconWrapper,"aria-hidden":!0,children:v}):o!=null?c.jsx("span",{className:bt.iconWrapper,"aria-hidden":!0,children:o}):void 0,"data-variant":t,"data-size":r,"data-content":$,...y.loading?{"data-loading":"true"}:{},...h,disabled:!!y.disabled||!!y.loading,children:c.jsx("span",{className:bt.labelText,children:n})})});Yo.displayName="Button";const Ta="Card-module__root___c9KvZ",wa="Card-module__header___PTXf2",Na="Card-module__footer___Mu-JC",Ea="Card-module__section___BRT8H",Oa="Card-module__content___oFIQa",De={root:Ta,header:wa,footer:Na,section:Ea,content:Oa},Ko=C.forwardRef(function({overStyled:t=!1,...r},o){const n=M(r,t);["flex","flexGrow","flexShrink","flexBasis","grow","h","height"].forEach(p=>{p in r&&!(p in n)&&(n[p]=r[p])});const a={root:De.root},i=n.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const p=i;Object.keys(p).forEach(f=>{a[f]?a[f]=`${a[f]} ${p[f]}`:a[f]=p[f]})}const d=n.className;return c.jsx(k.Card,{ref:o,className:d,classes:a,...n})});Ko.displayName="Card";const Xo=C.forwardRef(function({overStyled:t=!1,...r},o){const n=M(r,t),s=n.className;return c.jsx("div",{ref:o,className:s?`${De.section} ${s}`:De.section,...n})});Xo.displayName="CardSection";const Qo=C.forwardRef(function({overStyled:t=!1,...r},o){const n=M(r,t),s=n.className;return c.jsx("div",{ref:o,className:s?`${De.header} ${s}`:De.header,...n})});Qo.displayName="CardHeader";const Jo=C.forwardRef(function({overStyled:t=!1,...r},o){const n=M(r,t),s=n.className;return c.jsx("div",{ref:o,className:s?`${De.footer} ${s}`:De.footer,...n})});Jo.displayName="CardFooter";const Zo=C.forwardRef(function({overStyled:t=!1,...r},o){const n=M(r,t),s=n.className;return c.jsx("div",{ref:o,className:s?`${De.content} ${s}`:De.content,...n})});Zo.displayName="CardContent";const en=Ko,qt=en;qt.Section=Xo;qt.Header=Qo;qt.Footer=Jo;qt.Content=Zo;const Aa=en,Ra="Checkbox-module__groupRoot___cBS0o",Pa="Checkbox-module__root___mY3qk",ja="Checkbox-module__body___5yC7q",ka="Checkbox-module__inner___rTke4",Ia="Checkbox-module__input___2kt-h",Ma="Checkbox-module__inputChecked___zaCIH",La="Checkbox-module__inputIndeterminate___CVPhn",Fa="Checkbox-module__icon___-O7i6",Wa="Checkbox-module__labelWrapper___GpZkr",Ba="Checkbox-module__label___cwRtI",Da="Checkbox-module__description___rMhG1",Va="Checkbox-module__error___E-bmD",ce={groupRoot:Ra,root:Pa,body:ja,inner:ka,input:Ia,inputChecked:Ma,inputIndeterminate:La,icon:Fa,labelWrapper:Wa,label:Ba,description:Da,error:Va},tn=C.createContext(null),jr=C.forwardRef(function(t,r){const{overStyled:o=!1,formLayout:n="stacked",labelSize:s,labelAlignment:a,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:p,label:f,description:h,assistiveText:y,assistiveWithIcon:u,error:_,required:m,id:g,className:$,style:N,children:A,readOnly:w,readOnlyComponent:v,emptyValueComponent:T,value:P,defaultValue:O,onChange:L,row:z,...W}=t,l=M(W,o),E=l;delete E.size;const x=(R,F)=>{L&&L(F)};return c.jsx(Pe,{className:$,style:N,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:o,formLayout:n,labelSize:s,labelAlignment:a,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:p,label:f,description:h,assistiveText:y,assistiveWithIcon:u,error:_,required:m,id:g,readOnly:w&&!!v,readOnlyComponent:v,emptyValueComponent:T,readOnlyType:"text",readOnlyValue:P!==void 0?P:O,readOnlyNativeProps:t,activeComponent:c.jsx(tn.Provider,{value:{value:P!==void 0?P:O,onChange:x,name:E.name,readOnly:w||!!E.disabled},children:c.jsx(k.FormGroup,{ref:r,row:z,...l,className:`${ce.groupRoot} ${l.className||""}`.trim(),"data-layout":n,children:A})})})});jr.displayName="CheckboxGroup";const kr=C.forwardRef(function(t,r){const{overStyled:o=!1,readOnly:n,readOnlyComponent:s,disabled:a,formLayout:i,labelSize:d,controlMaxWidth:p,controlMinWidth:f,label:h,description:y,error:u,style:_,...m}=t,g=M(m,o),$=g;delete $.size,delete $.color;const N={root:ce.root,checked:ce.checked,disabled:ce.disabled},A=$.classes;if(A&&typeof A=="object"&&!Array.isArray(A)){const x=A;N.root=x.root?`${ce.root} ${x.root}`:ce.root,N.checked=x.checked?`${ce.checked} ${x.checked}`:ce.checked,N.disabled=x.disabled?`${ce.disabled} ${x.disabled}`:ce.disabled}const w=$.className,v=w?`${ce.root} ${w}`:ce.root,T=C.useContext(tn),P=T!==null,O=P?T.readOnly:!1,L=P?(T.value||[]).includes($.value):!!($.checked??$.defaultChecked);if(n&&s){const x=s,R=c.jsx(x,{...t,checked:L,label:h});return i?c.jsx(Be,{formLayout:i,labelSize:d,controlMaxWidth:p,controlMinWidth:f,children:R}):c.jsx(c.Fragment,{children:R})}const z=x=>{if(P){const R=x.target.checked?[...T.value||[],$.value]:(T.value||[]).filter(F=>F!==$.value);T.onChange&&T.onChange(x,R)}else $.onChange&&$.onChange(x,x.target.checked)},W=x=>c.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",...x,children:c.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"})}),l=c.jsx(k.Checkbox,{ref:r,className:h?ce.inner:`${v} ${ce.inner}`,classes:N,disabled:n||a||O,...g,checked:L,onChange:z,sx:h?{padding:0}:void 0,icon:c.jsx("div",{className:ce.input}),checkedIcon:c.jsx("div",{className:`${ce.input} ${ce.inputChecked}`,children:c.jsx(W,{className:ce.icon})}),indeterminateIcon:c.jsx("div",{className:`${ce.input} ${ce.inputIndeterminate}`,children:c.jsx("svg",{className:ce.icon,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",children:c.jsx("rect",{x:"6",y:"14",width:"20",height:"4",fill:"currentColor"})})})}),E=h?c.jsx("div",{className:v,style:_,children:c.jsxs("div",{className:ce.body,children:[l,c.jsxs("div",{className:ce.labelWrapper,children:[c.jsx("label",{className:ce.label,htmlFor:$.id,"data-disabled":n||a||O?!0:void 0,children:h}),y&&c.jsx("div",{className:ce.description,"data-disabled":n||a||O?!0:void 0,children:y}),u&&c.jsx("div",{className:ce.error,"data-disabled":n||a||O?!0:void 0,children:u})]})]})}):c.jsx("div",{className:v,style:_,children:l});return i?c.jsx(Be,{formLayout:i,labelSize:d,controlMaxWidth:p,controlMinWidth:f,children:E}):E});kr.displayName="Checkbox";kr.Group=jr;const za="Chip-module__root___f5pFk",Ga="Chip-module__label___Ov9pg",Ua="Chip-module__mantineIconWrapper___KLSz6",qa="Chip-module__innerWrapper___EnrTF",Ha="Chip-module__children___zbRAR",Ya="Chip-module__leadingIcon___JBtjQ",Ka="Chip-module__removeIconWrapper___VOO7u",ge={root:za,label:Ga,mantineIconWrapper:Ua,innerWrapper:qa,children:Ha,leadingIcon:Ya,removeIconWrapper:Ka};function Xa(e){return c.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:[c.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),c.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function Qa(e){return c.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:c.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 rn=C.forwardRef(function({error:t=!1,icon:r,onRemove:o,removeLabel:n="Remove",children:s,checked:a,overStyled:i=!1,...d},p){const f=M(d,i),h=f,y={root:ge.root,label:ge.label,icon:ge.leadingIcon,deleteIcon:ge.removeIconWrapper},u=h.classNames;if(u&&typeof u=="object"&&!Array.isArray(u)){const A=u;y.root=A.root?`${ge.root} ${A.root}`:ge.root,y.label=A.label?`${ge.label} ${A.label}`:ge.label}const _=h.className,m=_?`${ge.root} ${_}`:ge.root,g=t?"":void 0,$=a?"":void 0,N=!s&&(!!r||!!o);return c.jsx(k.Chip,{ref:p,className:m,classes:y,...g!==void 0?{"data-error":""}:{},...$!==void 0?{"data-checked":""}:{},...N?{"data-icon-only":""}:{},...f,icon:a?c.jsx("span",{className:ge.mantineIconWrapper,"aria-hidden":!0,children:c.jsx(Qa,{})}):r?c.jsx("span",{className:ge.leadingIcon,"aria-hidden":!0,children:r}):void 0,onDelete:o,deleteIcon:o?c.jsx("span",{className:ge.removeIconWrapper,children:c.jsx(Xa,{})}):void 0,label:c.jsx("span",{className:ge.innerWrapper,children:c.jsx("span",{className:ge.children,children:s})})})});rn.displayName="Chip";const on=C.forwardRef(function({children:t,size:r,fluid:o,...n},s){const a={"rec-sm":"sm","rec-default":"md","rec-md":"md","rec-lg":"lg","rec-xl":"xl","rec-2xl":"xl"},i=o?!1:typeof r=="string"&&a[r]?a[r]:r;return c.jsx(k.Container,{ref:s,maxWidth:i,...n,children:t})});on.displayName="Container";const Ja=({disabled:e,label:t,assistiveText:r,error:o,required:n,withAsterisk:s,placeholder:a,value:i,defaultValue:d,onChange:p,readOnly:f,formLayout:h,leftSection:y,labelWithEditIcon:u,onLabelEditClick:_,...m})=>c.jsx("div",{...m,children:"DatePicker"}),Za="Dropdown-module__layoutOverride___FNcvP",ei="Dropdown-module__root___uVyL0",ti="Dropdown-module__input___dK4dN",ri="Dropdown-module__dropdown___gG-Sw",oi="Dropdown-module__option___nAGU-",Ge={layoutOverride:Za,root:ei,input:ti,dropdown:ri,option:oi},nn=C.forwardRef(function(t,r){const{overStyled:o=!1,formLayout:n="stacked",containerWidth:s,labelSize:a,labelAlignment:i,labelOptionalText:d,labelWithEditIcon:p,onLabelEditClick:f,label:h,assistiveText:y,assistiveWithIcon:u,error:_,required:m,withAsterisk:g,id:$,className:N,style:A,disabled:w,readOnly:v,readOnlyComponent:T,emptyValueComponent:P,value:O,defaultValue:L,data:z,searchable:W,clearable:l,...E}=t,x=M(E,o),R=x;delete R.size,delete R.variant;const F={...A||{},width:s||"100%"},q=N?`${Ge.layoutOverride} ${N}`:Ge.layoutOverride,ee=()=>z?z.map((fe,S)=>typeof fe=="string"?c.jsx(k.MenuItem,{value:fe,className:Ge.option,children:fe},`${fe}-${S}`):c.jsx(k.MenuItem,{value:fe.value,disabled:fe.disabled,className:Ge.option,children:fe.label},`${fe.value}-${S}`)):null;return c.jsx(Pe,{className:q,style:F,controlMaxWidth:"var(--recursica_ui-kit_components_dropdown_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_dropdown_properties_min-width)",overStyled:o,formLayout:n,labelSize:a,labelAlignment:i,labelOptionalText:d,labelWithEditIcon:p,onLabelEditClick:f,label:h,assistiveText:y,assistiveWithIcon:u,error:!!_,required:m,id:$,readOnly:v,readOnlyComponent:T,emptyValueComponent:P,readOnlyType:"text",readOnlyValue:O!==void 0?String(O):L?String(L):void 0,readOnlyNativeProps:t,activeComponent:c.jsx(k.Select,{ref:r,disabled:w,value:O,defaultValue:L,error:!!_,required:m,displayEmpty:!0,className:Ge.root,classes:{select:Ge.input,icon:Ge.icon},MenuProps:{classes:{paper:Ge.dropdown}},inputProps:{"data-disabled":w?"true":void 0,"data-error":_?"true":void 0,...R.inputProps},...x,children:ee()})})});nn.displayName="Dropdown";const ni=e=>c.jsx("div",{...e,children:"FileInput"}),si=e=>c.jsx("div",{...e,children:"FileUpload"}),sn=C.forwardRef(function({children:t,gap:r="rec-default",rowGap:o,columnGap:n,direction:s,align:a,justify:i,wrap:d,...p},f){const h=Nt(p),y=typeof r=="string"&&r in _e?_e[r]:r,u=typeof o=="string"&&o in _e?_e[o]:o,_=typeof n=="string"&&n in _e?_e[n]:n;return c.jsx(k.Box,{ref:f,display:"flex",...h,gap:y,rowGap:u,columnGap:_,flexDirection:s,alignItems:a,justifyContent:i,flexWrap:d,children:t})});sn.displayName="Flex";const ai="Grid-module__root___s-qPY",ii="Grid-module__col___tbuNg",li="Grid-module__hiddenFromXs___Ap3ch",ci="Grid-module__hiddenFromSm___ZD0Wm",di="Grid-module__hiddenFromMd___O3Zhg",ui="Grid-module__hiddenFromLg___RxDrc",pi="Grid-module__hiddenFromXl___k7ytz",fi="Grid-module__visibleFromSm___w20SX",mi="Grid-module__visibleFromMd___ePFrO",hi="Grid-module__visibleFromLg___L6vtD",yi="Grid-module__visibleFromXl___HLWTL",Oe={root:ai,col:ii,hiddenFromXs:li,hiddenFromSm:ci,hiddenFromMd:di,hiddenFromLg:ui,hiddenFromXl:pi,visibleFromSm:fi,visibleFromMd:mi,visibleFromLg:hi,visibleFromXl:yi},an=C.createContext({grow:!1});function Ir(e){if(e===void 0||typeof e!="object")return e;const{base:t,...r}=e;return t!==void 0?{xs:t,...r}:r}function oo(e){return e==="auto"?"grow":e==="content"?"auto":e}function _i(e){const t=Ir(e);if(t===void 0||typeof t!="object")return oo(t);const r={};return Object.entries(t).forEach(([o,n])=>{r[o]=oo(n)}),r}function gi(e){return Ir(e)}function bi(e){if(e===void 0||typeof e=="number")return e;const t=Ir(e);return t.xs??t.sm??t.md??t.lg??t.xl}const vi={xs:Oe.hiddenFromXs,sm:Oe.hiddenFromSm,md:Oe.hiddenFromMd,lg:Oe.hiddenFromLg,xl:Oe.hiddenFromXl},xi={sm:Oe.visibleFromSm,md:Oe.visibleFromMd,lg:Oe.visibleFromLg,xl:Oe.visibleFromXl};function no(e){return e==="base"?"xs":e}const ln=C.forwardRef(function({children:t,gap:r="rec-default",columns:o=12,grow:n=!1,justify:s,align:a,style:i,...d},p){const f=Nt(d),h=typeof r=="string"&&r in _e?_e[r]:r;return c.jsx(an.Provider,{value:{grow:n},children:c.jsx(k.Grid,{ref:p,container:!0,columns:o,spacing:h,className:Oe.root,...f,style:{justifyContent:s,alignItems:a,...i},children:t})})});ln.displayName="Grid";const Mr=C.forwardRef(function({children:t,span:r,offset:o,order:n,visibleFrom:s,hiddenFrom:a,style:i,className:d,...p},f){const{grow:h}=C.useContext(an),y=Nt(p),u=bi(n),_=s?xi[no(s)]:a?vi[no(a)]:void 0,m=[Oe.col,_,d].filter(Boolean).join(" ");return c.jsx(k.Grid,{ref:f,size:_i(r),offset:gi(o),className:m,...y,style:{order:u,...h?{flexGrow:1}:{},...i},children:t})});Mr.displayName="GridCol";const cn=ln;cn.Col=Mr;const dn=C.forwardRef(function({children:t,gap:r="rec-default",rowGap:o,columnGap:n,justify:s,align:a,wrap:i,...d},p){const f=Nt(d),h=typeof r=="string"&&r in _e?_e[r]:r,y=typeof o=="string"&&o in _e?_e[o]:o,u=typeof n=="string"&&n in _e?_e[n]:n;return c.jsx(k.Stack,{ref:p,direction:"row",flexWrap:i||"wrap",justifyContent:s,alignItems:a,spacing:h,sx:{...y?{rowGap:y}:{},...u?{columnGap:u}:{}},...f,children:t})});dn.displayName="Group";const Ci="HoverCard-module__dropdown___FBPFW",$i="HoverCard-module__arrow___S9AkE",so={dropdown:Ci,arrow:$i},un=function({overStyled:t=!1,withBeak:r=!0,position:o="top",openDelay:n=0,closeDelay:s=150,disabled:a=!1,offset:i=5,children:d,...p}){const f=M(p,t),h={tooltip:so.dropdown,arrow:so.arrow},y=f.classNames;if(y&&typeof y=="object"&&!Array.isArray(y)){const m=y;Object.keys(m).forEach(g=>{h[g]?h[g]=`${h[g]} ${m[g]}`:h[g]=m[g]})}let u=null,_=null;return C.Children.forEach(d,m=>{var g,$;if(C.isValidElement(m)){const N=m;((g=N.type)==null?void 0:g.displayName)==="HoverCardTarget"?u=N.props.children:(($=N.type)==null?void 0:$.displayName)==="HoverCardDropdown"&&(_=N.props.children)}}),u||(u=c.jsx("div",{})),_||(_=c.jsx("div",{})),c.jsx(k.Tooltip,{title:_,placement:o,arrow:r,enterDelay:n,leaveDelay:s,disableHoverListener:a,slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,i]}}]}},classes:h,...f,children:C.isValidElement(u)?u:c.jsx("span",{children:u})})};un.displayName="HoverCard";const pn=function({children:t}){return c.jsx(c.Fragment,{children:t})};pn.displayName="HoverCardTarget";const fn=function({children:t}){return c.jsx(c.Fragment,{children:t})};fn.displayName="HoverCardDropdown";const Lr=un;Lr.Target=pn;Lr.Dropdown=fn;const Si="Link-module__root___I0VGE",Ti="Link-module__iconWrapper___W-LlF",wi="Link-module__labelText___wSvUy",jt={root:Si,iconWrapper:Ti,labelText:wi},mn=C.forwardRef(function({icon:t,children:r,overStyled:o=!1,...n},s){const a=M(n,o),d=a.className,p=d?`${jt.root} ${d}`:jt.root;return c.jsxs(k.Link,{ref:s,className:p,underline:"none",...t?{"data-has-icon":""}:{},...a,children:[t&&c.jsx("span",{className:jt.iconWrapper,"aria-hidden":!0,children:t}),c.jsx("span",{className:jt.labelText,children:r})]})});mn.displayName="Link";const Ni="Menu-module__dropdown___j4xuA",Ei="Menu-module__item___NMXha",Oi="Menu-module__divider___wPiNq",$t={dropdown:Ni,item:Ei,divider:Oi},hn=C.forwardRef(function({overStyled:t=!1,className:r,...o},n){const s=M(o,t);return c.jsx(k.Menu,{ref:n,className:`${$t.dropdown} ${r||""}`,classes:{paper:$t.dropdown,list:$t.dropdown},...s})});hn.displayName="Menu";const yn=C.forwardRef(function({overStyled:t=!1,className:r,...o},n){const s=M(o,t);return c.jsx(k.MenuItem,{ref:n,className:`${$t.item} ${r||""}`,...s})});yn.displayName="MenuItem";const _n=C.forwardRef(function({overStyled:t=!1,className:r,...o},n){const s=M(o,t);return c.jsx(k.Divider,{ref:n,className:`${$t.divider} ${r||""}`,...s})});_n.displayName="MenuDivider";const Ai="Modal-module__root___ytPLl",Ri="Modal-module__inner___SSUJE",Pi="Modal-module__content___dWO-B",ji="Modal-module__header___ILG9i",ki="Modal-module__title___A5OeE",Ii="Modal-module__scrollArea___KD-hm",Mi="Modal-module__footer___rro2w",Li="Modal-module__close___-ER1C",Le={root:Ai,inner:Ri,content:Pi,header:ji,title:ki,scrollArea:Ii,footer:Mi,close:Li},Fi=()=>c.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:c.jsx("path",{d:"M18 6L6 18M6 6l12 12"})}),gn=C.forwardRef(function({overStyled:t=!1,opened:r=!1,withCloseButton:o=!0,title:n,children:s,onClose:a,className:i,...d},p){const f=M(d,t);let h=null;const y=[];return C.Children.forEach(s,u=>{var _;C.isValidElement(u)&&(u.type===Wr||((_=u.type)==null?void 0:_.displayName)==="Modal.Footer")?h=u:y.push(u)}),c.jsxs(k.Dialog,{ref:p,className:`${Le.root} ${i||""}`,classes:{paper:Le.inner},...f,open:r||f.open||!1,onClose:a,children:[(n||o)&&c.jsxs("div",{className:Le.header,children:[n&&c.jsx("div",{className:Le.title,children:n}),o&&c.jsx(k.IconButton,{onClick:u=>a==null?void 0:a(u,"backdropClick"),className:Le.close,children:c.jsx(Fi,{})})]}),c.jsx(Fr,{children:y}),h]})});gn.displayName="Modal";const bn=C.forwardRef(function({overStyled:t=!1,className:r,...o},n){const s=M(o,t);return c.jsx(k.DialogTitle,{ref:n,className:`${Le.title} ${r||""}`,...s})});bn.displayName="Modal.Title";const Fr=C.forwardRef(function({overStyled:t=!1,className:r,children:o,...n},s){const a=M(n,t),i=C.useRef(null),[d,p]=C.useState(!1),[f,h]=C.useState(!1),y=C.useCallback(()=>{if(i.current){const{scrollTop:u,scrollHeight:_,clientHeight:m}=i.current;p(u>0),h(Math.ceil(u+m)<_)}},[]);return C.useEffect(()=>(y(),window.addEventListener("resize",y),()=>window.removeEventListener("resize",y)),[y,o]),c.jsx(k.DialogContent,{ref:u=>{typeof s=="function"?s(u):s&&(s.current=u),i&&(i.current=u)},onScroll:()=>y(),"data-scrolled-top":d||void 0,"data-scrolled-bottom":f||void 0,className:`${Le.content} ${Le.scrollArea} ${r||""}`,...a,children:o})});Fr.displayName="Modal.Body";const Wr=C.forwardRef(function({overStyled:t=!1,className:r,...o},n){const s=M(o,t);return c.jsx(k.DialogActions,{ref:n,className:`${Le.footer} ${r||""}`,...s})});Wr.displayName="Modal.Footer";const Ht=gn;Ht.Title=bn;Ht.Body=Fr;Ht.Footer=Wr;const Wi="NumberInput-module__layoutOverride___5-9T4",Bi="NumberInput-module__root___C6rAn",Di="NumberInput-module__input___Ss8p7",Vi="NumberInput-module__section___MijP0",zi="NumberInput-module__controls___8UfQ2",Gi="NumberInput-module__control___Qre9-",rt={layoutOverride:Wi,root:Bi,input:Di,section:Vi,controls:zi,control:Gi},vn=C.forwardRef(function(t,r){const{overStyled:o=!1,formLayout:n="stacked",labelSize:s,labelAlignment:a,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:p,label:f,assistiveText:h,assistiveWithIcon:y,error:u,required:_,id:m,className:g,style:$,disabled:N,readOnly:A,readOnlyComponent:w,emptyValueComponent:v,value:T,defaultValue:P,leftSection:O,rightSection:L,min:z,max:W,step:l,hideControls:E=!1,...x}=t,R=M(x,o),F=R;delete F.size,delete F.variant,delete F.radius;const q={wrapper:rt.root,input:rt.input,section:rt.section,controls:rt.controls,control:rt.control},ee=g?`${rt.layoutOverride} ${g}`:rt.layoutOverride,fe=O?c.jsx("div",{className:q.section,"data-position":"left",children:O}):void 0,S=L?c.jsx("div",{className:q.section,"data-position":"right",children:L}):void 0;return c.jsx(Pe,{className:ee,style:$,controlMaxWidth:"var(--recursica_ui-kit_components_number-input_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_number-input_properties_min-width)",overStyled:o,formLayout:n,labelSize:s,labelAlignment:a,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:p,label:f,assistiveText:h,assistiveWithIcon:y,error:u,required:_,id:m,readOnly:A,readOnlyComponent:w,emptyValueComponent:v,readOnlyType:"text",readOnlyValue:T!==void 0?T==null?void 0:T.toString():P==null?void 0:P.toString(),readOnlyNativeProps:t,activeComponent:c.jsx(k.TextField,{ref:r,classes:q,disabled:N,value:T,defaultValue:P,label:void 0,error:void 0,required:void 0,InputProps:{startAdornment:fe,endAdornment:S},inputProps:{min:z,max:W,step:l,...F.inputProps},...R})})});vn.displayName="NumberInput";const Ui="Pagination-module__root___ITRjt",Ue={root:Ui};function qi(e){const t={root:Ue.root,ul:Ue.ul},r=e.classNames;if(r&&typeof r=="object"&&!Array.isArray(r)){const s=r;t.root=s.root?`${Ue.root} ${s.root}`:Ue.root,t.ul=s.ul?`${Ue.ul} ${s.ul}`:Ue.ul}const o=e.className;return{className:o?`${Ue.root} ${o}`:Ue.root,classNames:t}}const xn=C.forwardRef(function(t,r){const{overStyled:o=!1,withLabels:n,total:s,withEdges:a,withControls:i,...d}=t,p=M(d,o),f=qi(p);return c.jsx("div",{ref:r,className:f.className,children:c.jsx(k.Pagination,{count:s,showFirstButton:a,showLastButton:a,hidePrevButton:i===!1?!0:void 0,hideNextButton:i===!1?!0:void 0,classes:f.classNames,...p})})});xn.displayName="Pagination";const Hi=xn,Yi="Panel-module__content___wdGo-",Ki="Panel-module__inner___ruA2b",Xi="Panel-module__header___o7SiC",Qi="Panel-module__title___181OP",Ji="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP",Zi="Panel-module__body___SEC3T",el="Panel-module__footer___t6-hz",Ye={content:Yi,inner:Ki,header:Xi,title:Qi,titleTruncate:Ji,body:Zi,footer:el},Cn=function({overStyled:t=!1,placement:r="right",keepMounted:o=!0,wrapHeaderText:n=!1,opened:s,...a}){const i=M(a,t),d={content:Ye.content,header:Ye.header,title:n?Ye.titleTruncate:Ye.title,body:Ye.body,inner:Ye.inner},p=i.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const f=p;Object.keys(f).forEach(h=>{d[h]?d[h]=`${d[h]} ${f[h]}`:d[h]=f[h]})}return c.jsx(k.Drawer,{anchor:r,keepMounted:o,open:!!s,...i,classes:d})};Cn.displayName="Panel";const Br=C.forwardRef(function({overStyled:t=!1,...r},o){const n=M(r,t),s=n.className,a=s?`${Ye.footer} ${s}`:Ye.footer;return c.jsx("div",{ref:o,className:a,...n})});Br.displayName="PanelFooter";const $n=Cn;$n.Footer=Br;const tl="Radio-module__groupRoot___bfUii",rl="Radio-module__root___kAjTD",ol="Radio-module__body___q2Wpj",nl="Radio-module__inner___QaTBB",sl="Radio-module__radio___MfgN-",al="Radio-module__icon___DWznm",il="Radio-module__labelWrapper___dB0Gi",ll="Radio-module__label___vAFIP",cl="Radio-module__description___bEB8u",dl="Radio-module__error___wem7t",oe={groupRoot:tl,root:rl,body:ol,inner:nl,radio:sl,icon:al,labelWrapper:il,label:ll,description:cl,error:dl},Dr=C.forwardRef(function(t,r){const{overStyled:o=!1,formLayout:n="stacked",labelSize:s,labelAlignment:a,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:p,label:f,description:h,assistiveText:y,assistiveWithIcon:u,error:_,required:m,id:g,className:$,style:N,children:A,readOnly:w,readOnlyComponent:v,emptyValueComponent:T,value:P,defaultValue:O,...L}=t,z=M(L,o),W=z;return delete W.size,c.jsx(Pe,{className:$,style:N,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:o,formLayout:n,labelSize:s,labelAlignment:a,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:p,label:f,description:h,assistiveText:y,assistiveWithIcon:u,error:_,id:g,readOnly:w&&!!v,readOnlyComponent:v,emptyValueComponent:T,readOnlyType:"text",readOnlyValue:P!==void 0?P:O,readOnlyNativeProps:t,activeComponent:c.jsx(k.RadioGroup,{ref:r,...z,value:P,defaultValue:O,className:oe.groupRoot,"data-layout":n,children:A})})});Dr.displayName="RadioGroup";const ao=({className:e,style:t})=>c.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:e,style:t,children:c.jsx("circle",{cx:"8",cy:"8",r:"5"})}),Vr=C.forwardRef(function(t,r){const{overStyled:o=!1,readOnly:n,readOnlyComponent:s,disabled:a,formLayout:i,labelSize:d,controlMaxWidth:p,controlMinWidth:f,label:h,description:y,error:u,style:_,...m}=t,g=M(m,o),$=g;delete $.size,delete $.color;const N={root:oe.root,body:oe.body,inner:oe.inner,radio:oe.radio,icon:oe.icon,labelWrapper:oe.labelWrapper,label:oe.label},A=$.classNames;if(A&&typeof A=="object"&&!Array.isArray(A)){const O=A;N.root=O.root?`${oe.root} ${O.root}`:oe.root,N.body=O.body?`${oe.body} ${O.body}`:oe.body,N.inner=O.inner?`${oe.inner} ${O.inner}`:oe.inner,N.radio=O.radio?`${oe.radio} ${O.radio}`:oe.radio,N.icon=O.icon?`${oe.icon} ${O.icon}`:oe.icon,N.labelWrapper=O.labelWrapper?`${oe.labelWrapper} ${O.labelWrapper}`:oe.labelWrapper,N.label=O.label?`${oe.label} ${O.label}`:oe.label}const w=$.className,v=w?`${oe.root} ${w}`:oe.root;if(n&&s){const O=!!($.checked??$.defaultChecked),L=s,z=c.jsx(L,{...t,checked:O,label:$.label});return i?c.jsx(Be,{formLayout:i,labelSize:d,controlMaxWidth:p,controlMinWidth:f,children:z}):c.jsx(c.Fragment,{children:z})}const T=c.jsx(k.Radio,{ref:r,icon:c.jsx(ao,{}),checkedIcon:c.jsx(ao,{className:oe.checked}),className:v,classes:N,disabled:n||a,...g}),P=h?c.jsx("div",{className:v,style:_,children:c.jsxs("div",{className:oe.body,children:[T,c.jsxs("div",{className:oe.labelWrapper,children:[c.jsx("label",{className:oe.label,htmlFor:$.id,"data-disabled":n||a?!0:void 0,children:h}),y&&c.jsx("div",{className:oe.description,"data-disabled":n||a?!0:void 0,children:y}),u&&c.jsx("div",{className:oe.error,"data-disabled":n||a?!0:void 0,children:u})]})]})}):T;return i?c.jsx(Be,{formLayout:i,labelSize:d,controlMaxWidth:p,controlMinWidth:f,children:P}):P});Vr.displayName="Radio";Vr.Group=Dr;const ul="SegmentedControl-module__root___JFRhg",pl="SegmentedControl-module__label___mS17q",fl="SegmentedControl-module__control___znOdQ",ve={root:ul,label:pl,control:fl};function ml(e){const t={root:ve.root,control:ve.control,label:ve.label,indicator:ve.indicator},r=e.classNames;if(r&&typeof r=="object"&&!Array.isArray(r)){const s=r;t.root=s.root?`${ve.root} ${s.root}`:ve.root,t.control=s.control?`${ve.control} ${s.control}`:ve.control,t.label=s.label?`${ve.label} ${s.label}`:ve.label,t.indicator=s.indicator?`${ve.indicator} ${s.indicator}`:ve.indicator}const o=e.className;return{className:o?`${ve.root} ${o}`:ve.root,classNames:t}}const Sn=C.forwardRef(function({overStyled:t=!1,orientation:r="horizontal",fullWidth:o,data:n=[],value:s,onChange:a,...i},d){const p=M(i,t),f=p;delete f.disabled;const h=ml(f),y=(u,_)=>{_!==null&&a&&a(_)};return c.jsx(k.ToggleButtonGroup,{ref:d,className:h.className,classes:h.classNames,orientation:r,fullWidth:o,"data-orientation":r,exclusive:!0,value:s,onChange:y,...p,children:n.map(u=>{const _=typeof u=="string"?u:u.value,m=typeof u=="string"?u:u.label,g=typeof u=="string"?!1:u.disabled;return c.jsx(k.ToggleButton,{value:_,disabled:g,className:h.classNames.control,children:c.jsx("div",{className:h.classNames.label,children:m})},_)})})});Sn.displayName="SegmentedControl";const hl=Sn,yl="Slider-module__layoutOverride___zYPun",_l="Slider-module__sliderContainer___y8I0J",gl="Slider-module__sliderTrackWrapper___UHpVh",bl="Slider-module__iconWrapper___uqHpC",vl="Slider-module__sliderRoot___LI86H",xl="Slider-module__sliderTrack___oqnlG",Cl="Slider-module__sliderBar___TI4VY",$l="Slider-module__sliderThumb___OFn8p",Sl="Slider-module__sliderMark___1lM2B",Tl="Slider-module__sliderTooltip___J1Aqb",wl="Slider-module__minMaxGuide___TaGqz",Nl="Slider-module__rightGuideContainer___8dOT8",El="Slider-module__currentValue___dGV2T",Ol="Slider-module__inputField___6x578",Al="Slider-module__readOnlyValue___-ZzMW",ne={layoutOverride:yl,sliderContainer:_l,sliderTrackWrapper:gl,iconWrapper:bl,sliderRoot:vl,sliderTrack:xl,sliderBar:Cl,sliderThumb:$l,sliderMark:Sl,sliderTooltip:Tl,minMaxGuide:wl,rightGuideContainer:Nl,currentValue:El,inputField:Ol,readOnlyValue:Al},Rl=({value:e})=>c.jsx("div",{className:ne.readOnlyValue,children:e}),Tn=C.forwardRef(function(t,r){const{overStyled:o=!1,formLayout:n="stacked",labelSize:s,labelAlignment:a,labelOptionalText:i,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:f,label:h,tooltipLabel:y,assistiveText:u,assistiveWithIcon:_,error:m,required:g,withAsterisk:$,id:N,className:A,style:w,disabled:v,readOnly:T,readOnlyComponent:P,emptyValueComponent:O,value:L,defaultValue:z,icon:W,showInput:l=!1,showMinMaxLabels:E=!0,min:x=0,max:R=100,step:F=1,onChange:q,onChangeEnd:ee,...fe}=t,[S,I]=C.useState(()=>L!==void 0?Array.isArray(L)?L[0]:L:z!==void 0?Array.isArray(z)?z[0]:z:x),V=L!==void 0?Array.isArray(L)?L[0]:L:S,[Y,G]=C.useState(V.toString());C.useEffect(()=>{G(V.toString())},[V]);const X=(he,je)=>{const _t=Array.isArray(je)?je[0]:je;L===void 0&&I(_t),q==null||q(_t)},H=he=>{const je=he.target.value;G(je);const _t=parseFloat(je);if(!isNaN(_t)){const Ss=Math.max(x,Math.min(R,_t));X(null,Ss)}},K=()=>{G(V.toString())},Q=M(fe,o),J=Q;delete J.size,delete J.color,delete J.wrapperProps;const U={root:ne.sliderRoot,rail:ne.sliderTrack,track:ne.sliderBar,thumb:ne.sliderThumb,mark:ne.sliderMark,markLabel:ne.sliderMarkLabel,valueLabel:ne.sliderTooltip},ye=J.classNames;if(ye&&typeof ye=="object"&&!Array.isArray(ye)){const he=ye;U.root=he.root?`${ne.sliderRoot} ${he.root}`:ne.sliderRoot,U.rail=he.track?`${ne.sliderTrack} ${he.track}`:ne.sliderTrack,U.track=he.bar?`${ne.sliderBar} ${he.bar}`:ne.sliderBar,U.thumb=he.thumb?`${ne.sliderThumb} ${he.thumb}`:ne.sliderThumb,U.mark=he.mark?`${ne.sliderMark} ${he.mark}`:ne.sliderMark,U.markLabel=he.markLabel?`${ne.sliderMarkLabel} ${he.markLabel}`:ne.sliderMarkLabel}const j=A?`${ne.layoutOverride} ${A}`:ne.layoutOverride,Se=W?c.jsx("span",{className:ne.iconWrapper,"aria-hidden":!0,children:W}):null;return c.jsx(Pe,{ref:r,className:j,style:w,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:o,formLayout:n,labelSize:s,labelAlignment:a,labelOptionalText:i,labelWithEditIcon:d,labelActionArea:p,onLabelEditClick:f,label:h,assistiveText:u,assistiveWithIcon:_,error:!!m,required:g,id:N,readOnly:T,readOnlyComponent:P||Rl,emptyValueComponent:O,readOnlyType:"text",readOnlyValue:V,readOnlyNativeProps:{value:V},activeComponent:c.jsxs("div",{className:ne.sliderContainer,"data-form-layout":n,"data-disabled":v?"true":void 0,"data-error":m?"true":void 0,children:[Se,E&&c.jsx("span",{className:ne.minMaxGuide,children:x}),c.jsx("div",{className:ne.sliderTrackWrapper,children:c.jsx(k.Slider,{classes:U,disabled:v,value:V,onChange:X,onChangeCommitted:ee,min:x,max:R,step:F,valueLabelDisplay:y===null?"off":"auto",valueLabelFormat:typeof y=="function"?y:void 0,...Q})}),c.jsxs("div",{className:ne.rightGuideContainer,children:[!l&&c.jsx("span",{className:ne.currentValue,children:V}),E&&c.jsx("span",{className:ne.minMaxGuide,children:R})]}),l&&c.jsx("input",{type:"number",className:ne.inputField,value:Y,onChange:H,onBlur:K,min:x,max:R,step:F??void 0,disabled:v,"data-error":m?"true":void 0})]})})});Tn.displayName="Slider";const wn=C.forwardRef(function({children:t,gap:r="rec-default",align:o,justify:n,...s},a){const i=Nt(s),d=typeof r=="string"&&r in _e?_e[r]:r;return c.jsx(k.Stack,{ref:a,spacing:d,alignItems:o,justifyContent:n,...i,children:t})});wn.displayName="Stack";const Pl="Stepper-module__root___jbSYO",jl="Stepper-module__horizontal___USHT1",kl="Stepper-module__steps___4HPO6",Il="Stepper-module__step___s2nqL",Ml="Stepper-module__stepLabel___N6nuy",Ll="Stepper-module__stepDescription___DnDAy",Fl="Stepper-module__separator___pU0No",Wl="Stepper-module__vertical___d4mOs",Bl="Stepper-module__large___J18-y",Dl="Stepper-module__small___Ub-zb",Vl="Stepper-module__stepIcon___YQHNq",zl="Stepper-module__verticalSeparator___frWc1",Te={root:Pl,horizontal:jl,steps:kl,step:Il,stepLabel:Ml,stepDescription:Ll,separator:Fl,vertical:Wl,large:Bl,small:Dl,stepIcon:Vl,verticalSeparator:zl},Nn=C.forwardRef(function(t,r){const{overStyled:o=!1,size:n="large",orientation:s="horizontal",className:a,style:i,...d}=t,p=M(d,o);return c.jsx("div",{className:`${Te.root} ${s==="horizontal"?Te.horizontal:Te.vertical} ${n==="large"?Te.large:Te.small} ${a||""}`,style:i,"data-size":n,"data-orientation":s,children:c.jsx(k.Stepper,{ref:r,orientation:s,connector:c.jsx(k.StepConnector,{classes:{root:s==="horizontal"?Te.separator:Te.verticalSeparator}}),classes:{root:Te.steps},...p})})});Nn.displayName="Stepper";const Gl=C.forwardRef(function(t,r){const{overStyled:o=!1,className:n,...s}=t;return c.jsx(k.Step,{ref:r,classes:{root:Te.step},className:n||"",...M(s,o)})});Gl.displayName="Step";const Ul=C.forwardRef(function(t,r){const{overStyled:o=!1,className:n,...s}=t;return c.jsx(k.StepButton,{ref:r,className:n||"",...M(s,o)})});Ul.displayName="StepButton";const ql=C.forwardRef(function(t,r){const{overStyled:o=!1,className:n,description:s,...a}=t;return c.jsx(k.StepLabel,{ref:r,className:n||"",classes:{label:Te.stepLabel,iconContainer:Te.stepIcon},optional:s?c.jsx("div",{className:Te.stepDescription,children:s}):a.optional,...M(a,o)})});ql.displayName="StepLabel";const Hl=C.forwardRef(function(t,r){const{overStyled:o=!1,className:n,...s}=t;return c.jsx(k.StepConnector,{ref:r,className:n||"",...M(s,o)})});Hl.displayName="StepConnector";const Yl="Switch-module__root___Y5Ydi",Kl="Switch-module__body___Sw9Wr",Xl="Switch-module__track___7ObdZ",Ql="Switch-module__thumb___-FTeK",Jl="Switch-module__labelWrapper___YSOwx",Zl="Switch-module__label___LrH7V",ec="Switch-module__description___CClza",tc="Switch-module__error___OSPrU",rc="Switch-module__groupRoot___-Uepi",Z={root:Yl,body:Kl,track:Xl,thumb:Ql,labelWrapper:Jl,label:Zl,description:ec,error:tc,groupRoot:rc},En=C.forwardRef(function(t,r){const{overStyled:o=!1,readOnly:n,readOnlyComponent:s,disabled:a,formLayout:i,labelSize:d,controlMaxWidth:p,controlMinWidth:f,label:h,description:y,error:u,style:_,...m}=t,g=M(m,o),$=g;delete $.size,delete $.color,delete $.radius,delete $.variant;const N={root:Z.root,body:Z.body,track:Z.track,thumb:Z.thumb,trackLabel:Z.trackLabel,labelWrapper:Z.labelWrapper,label:Z.label},A=$.classNames;if(A&&typeof A=="object"&&!Array.isArray(A)){const O=A;N.root=O.root?`${Z.root} ${O.root}`:Z.root,N.body=O.body?`${Z.body} ${O.body}`:Z.body,N.track=O.track?`${Z.track} ${O.track}`:Z.track,N.thumb=O.thumb?`${Z.thumb} ${O.thumb}`:Z.thumb,N.trackLabel=O.trackLabel?`${Z.trackLabel} ${O.trackLabel}`:Z.trackLabel,N.labelWrapper=O.labelWrapper?`${Z.labelWrapper} ${O.labelWrapper}`:Z.labelWrapper,N.label=O.label?`${Z.label} ${O.label}`:Z.label}const w=$.className,v=w?`${Z.root} ${w}`:Z.root;if(n&&s){const O=!!($.checked??$.defaultChecked),L=s,z=c.jsx(L,{...t,checked:O,label:$.label});return i?c.jsx(Be,{formLayout:i,labelSize:d,controlMaxWidth:p,controlMinWidth:f,children:z}):c.jsx(c.Fragment,{children:z})}const T=c.jsx(k.Switch,{ref:r,className:h?Z.inner:`${v} ${Z.inner}`,classes:N,disabled:n||a,"data-disabled":n||a||void 0,...g}),P=h?c.jsx("div",{className:v,style:_,children:c.jsxs("div",{className:Z.body,children:[T,c.jsxs("div",{className:Z.labelWrapper,children:[c.jsx("label",{className:Z.label,htmlFor:$.id,"data-disabled":n||a?!0:void 0,children:h}),y&&c.jsx("div",{className:Z.description,"data-disabled":n||a?!0:void 0,children:y}),u&&c.jsx("div",{className:Z.error,"data-disabled":n||a?!0:void 0,children:u})]})]})}):T;return i?c.jsx(Be,{formLayout:i,labelSize:d,controlMaxWidth:p,controlMinWidth:f,children:P}):P});En.displayName="Switch";const On=C.forwardRef(function(t,r){const{overStyled:o=!1,formLayout:n="stacked",labelSize:s,labelAlignment:a,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:p,label:f,description:h,assistiveText:y,assistiveWithIcon:u,error:_,required:m,id:g,className:$,style:N,children:A,readOnly:w,readOnlyComponent:v,emptyValueComponent:T,value:P,defaultValue:O,onChange:L,...z}=t,W=M(z,o),l=W;return delete l.size,c.jsx(Pe,{className:$,style:N,controlMaxWidth:"var(--recursica_ui-kit_components_switch-item_properties_label-max-width)",controlMinWidth:void 0,overStyled:o,formLayout:n,labelSize:s,labelAlignment:a,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:p,label:f,description:h,assistiveText:y,assistiveWithIcon:u,error:_,required:m,id:g,readOnly:w&&!!v,readOnlyComponent:v,emptyValueComponent:T,readOnlyType:"text",readOnlyValue:P!==void 0?P:O,readOnlyNativeProps:t,activeComponent:c.jsx(k.FormGroup,{ref:r,...W,className:`${Z.groupRoot} ${W.className||""}`.trim(),"data-layout":n,children:A})})});On.displayName="SwitchGroup";const oc="Table-module__root___aMWWS",nc={root:oc},An=C.forwardRef(function({overStyled:t=!1,...r},o){const n=M(r,t),s=n.className,a=nc.root,i=s?`${a} ${s}`:a;return c.jsx(k.Table,{ref:o,className:i,...n})});An.displayName="Table";const Rn=C.forwardRef(function({overStyled:t=!1,...r},o){const n=M(r,t);return c.jsx(k.TableBody,{ref:o,...n})});Rn.displayName="TableBody";const Pn=C.forwardRef(function({overStyled:t=!1,...r},o){const n=M(r,t);return c.jsx(k.TableCell,{ref:o,...n})});Pn.displayName="TableCell";const jn=C.forwardRef(function({overStyled:t=!1,...r},o){const n=M(r,t);return c.jsx(k.TableContainer,{ref:o,...n})});jn.displayName="TableContainer";const kn=C.forwardRef(function({overStyled:t=!1,...r},o){const n=M(r,t);return c.jsx(k.TableHead,{ref:o,...n})});kn.displayName="TableHead";const In=C.forwardRef(function({overStyled:t=!1,...r},o){const n=M(r,t);return c.jsx(k.TableRow,{ref:o,...n})});In.displayName="TableRow";const Mn=C.forwardRef(function({overStyled:t=!1,...r},o){const n=M(r,t);return c.jsx(k.TableFooter,{ref:o,...n})});Mn.displayName="TableFooter";const Ln=C.forwardRef(function({overStyled:t=!1,...r},o){const n=M(r,t);return c.jsx(k.TableSortLabel,{ref:o,...n})});Ln.displayName="TableSortLabel";const et=An;et.Body=Rn;et.Cell=Pn;et.Container=jn;et.Head=kn;et.Row=In;et.Footer=Mn;et.SortLabel=Ln;const sc="Tabs-module__root___-VKVI",ac="Tabs-module__list___qRVME",ic="Tabs-module__tab___IdDYc",lc="Tabs-module__panel___08i9c",St={root:sc,list:ac,tab:ic,panel:lc};function cc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kt={exports:{}},It={exports:{}},te={};/** @license React v16.13.1
|
|
1
|
+
"use strict";var Ql=Object.defineProperty;var Jl=(e,t,n)=>t in e?Ql(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var B=(e,t,n)=>Jl(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),O=require("react"),H=require("@mui/material"),kt=require("@emotion/react"),Zl=require("@emotion/styled"),$n=require("react-dom");var No=typeof document<"u"?document.currentScript:null;function ec(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 k=ec(O),tc=["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"],nc=new Set(["m","my","mx","mt","mb","ml","mr","p","py","px","pt","pb","pl","pr","gap","rowGap","columnGap","top","left","bottom","right"]),Re={"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 In(e){const t={...e};return"sx"in t&&delete t.sx,t}function X(e,t){if(t)return e;const n={...e};for(const o of tc)o in n&&delete n[o];for(const[o,r]of Object.entries(n))typeof r=="string"&&r.startsWith("rec-")&&nc.has(o)&&r in Re&&(n[o]=Re[r]);return n}const oc="Accordion-module__root___Dem6d",rc="Accordion-module__item___7ryVk",sc="Accordion-module__noDivider___Ni2tT",ic="Accordion-module__control___b4wgX",ac="Accordion-module__label___Ss7uW",lc="Accordion-module__chevron___i-HVZ",cc="Accordion-module__iconLeftWrapper___5oLen",uc="Accordion-module__panel___Wx50w",dc="Accordion-module__content___PEM9t",mt={root:oc,item:rc,noDivider:sc,control:ic,label:ac,chevron:lc,iconLeftWrapper:cc,panel:uc,content:dc},pc=()=>g.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:g.jsx("polyline",{points:"6 9 12 15 18 9"})}),ur=O.createContext(null),Ni=O.forwardRef(function({variant:t="unstyled",overStyled:n=!1,value:o,defaultValue:r,onChange:s,multiple:i=!1,chevron:a,children:u,...c},p){const f=X(c,n),h=f.className,d=[mt.root,h].filter(Boolean).join(" ")||void 0,[y,m]=O.useState(r!==void 0?r:i?[]:null),v=o!==void 0?o:y,_=S=>{let E;if(i){const C=Array.isArray(v)?v:v?[v]:[];E=C.includes(S)?C.filter(x=>x!==S):[...C,S]}else E=v===S?null:S;m(E),s==null||s(E)};return g.jsx(ur.Provider,{value:{value:v,onChange:_,chevron:a},children:g.jsx("div",{ref:p,className:d,"data-variant":t,...f,children:u})})});Ni.displayName="Accordion";const dr=O.forwardRef(function({title:t,leftIcon:n,divider:o=!0,children:r,value:s,overStyled:i=!1,style:a,...u},c){const p=X(u,i),f=p.className,h=[mt.item,o?void 0:mt.noDivider,f].filter(Boolean).join(" ")||void 0,d=O.useContext(ur),y=d?Array.isArray(d.value)?d.value.includes(s):d.value===s:void 0,m=()=>{d==null||d.onChange(s)},v={backgroundColor:"transparent",...a};return g.jsx(H.Accordion,{ref:c,className:h,disableGutters:!0,elevation:0,square:!0,expanded:y,onChange:m,style:v,...p,children:t?g.jsxs(g.Fragment,{children:[g.jsx(so,{leftIcon:n,children:t}),g.jsx(io,{children:r})]}):r})});dr.displayName="AccordionItem";const so=O.forwardRef(function({leftIcon:t,children:n,overStyled:o=!1,...r},s){const i=X(r,o),a=i.className,u=[mt.control,a].filter(Boolean).join(" ")||void 0,c=O.useContext(ur),p=(c==null?void 0:c.chevron)??g.jsx(pc,{});return g.jsxs(H.AccordionSummary,{ref:s,className:u,expandIcon:g.jsx("span",{className:mt.chevron,children:p}),...i,children:[t&&g.jsx("span",{className:mt.iconLeftWrapper,"aria-hidden":!0,children:t}),g.jsx("div",{className:mt.label,children:n})]})});so.displayName="AccordionControl";const io=O.forwardRef(function({overStyled:t=!1,children:n,...o},r){const s=X(o,t),i=s.className,a=[mt.panel,i].filter(Boolean).join(" ")||void 0;return g.jsx(H.AccordionDetails,{ref:r,className:a,...s,children:g.jsx("div",{className:mt.content,children:n})})});io.displayName="AccordionPanel";const ao=Ni;ao.Item=dr;ao.Control=so;ao.Panel=io;const fc="AssistiveElement-module__root___WhQ43",mc="AssistiveElement-module__text___vrHAg",hc="AssistiveElement-module__icon___Q-CVz",Rn={root:fc,text:mc,icon:hc},pr=O.forwardRef(function(t,n){const{assistiveVariant:o="help",assistiveWithIcon:r=!0,overStyled:s=!1,className:i,children:a,...u}=t,c=X(u,s),p=()=>g.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:[g.jsx("circle",{cx:"12",cy:"12",r:"10"}),g.jsx("path",{d:"M12 16v-4"}),g.jsx("path",{d:"M12 8h.01"})]}),f=()=>g.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:[g.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"}),g.jsx("path",{d:"M12 9v4"}),g.jsx("path",{d:"M12 17h.01"})]}),h=o==="error";return g.jsxs(H.FormHelperText,{ref:n,component:"div",error:h,"data-variant":o,className:i?`${Rn.root} ${i}`:Rn.root,...c,children:[r&&g.jsx("div",{className:Rn.icon,children:o==="error"?g.jsx(f,{}):g.jsx(p,{})}),g.jsx("div",{className:Rn.text,children:a})]})});pr.displayName="AssistiveElement";const gc="Label-module__root___e6HXZ",yc="Label-module__innerLayout___Xxapo",bc="Label-module__text___OGeEw",vc="Label-module__required___Ggrzc",_c="Label-module__endNodes___es7ew",xc="Label-module__optionalText___Y2yun",Cc="Label-module__actionArea___O-f1X",Sc="Label-module__editIcon___9hO1G",nt={root:gc,innerLayout:yc,text:bc,required:vc,endNodes:_c,optionalText:xc,actionArea:Cc,editIcon:Sc},fr=O.forwardRef(function(t,n){const{overStyled:o=!1,required:r=!1,labelOptionalText:s="",labelWithEditIcon:i=!1,onLabelEditClick:a,labelActionArea:u,children:c,className:p,...f}=t,h=X(f,o),d=()=>g.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:[g.jsx("path",{d:"M12 20h9"}),g.jsx("path",{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"})]});return g.jsx(H.InputLabel,{ref:n,shrink:!0,className:p?`${nt.root} ${p}`:nt.root,...h,children:g.jsxs("div",{className:nt.innerLayout,children:[g.jsxs("span",{className:nt.textWrapper,children:[g.jsx("span",{className:nt.text,children:c}),r&&g.jsx("span",{className:nt.required,children:" *"})]}),g.jsxs("div",{className:nt.endNodes,children:[u&&g.jsx("span",{className:nt.actionArea,children:u}),!r&&s&&!u&&g.jsx("span",{className:nt.optionalText,children:s===!0?"Optional":s}),i&&g.jsx("button",{type:"button",className:nt.editIcon,onClick:a,"aria-label":"Edit label",children:g.jsx(d,{})})]})]})})});fr.displayName="Label";const Ic="FormControlLayout-module__root___yNDhZ",Tc="FormControlLayout-module__leftSection___GBM1r",Ec="FormControlLayout-module__rightSection___bcL4v",dn={root:Ic,leftSection:Tc,rightSection:Ec},yt=O.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:r="stacked",labelSize:s="default",controlMaxWidth:i,controlMinWidth:a,leftSection:u,className:c,children:p,style:f,...h}=t,d=X(h,o);return g.jsxs("div",{ref:n,className:c?`${dn.root} ${c}`:dn.root,"data-form-layout":r,style:{...f,...i?{"--form-control-max-width":i}:{},...a?{"--form-control-min-width":a}:{}},...d,children:[r==="side-by-side"?g.jsx("div",{className:dn.leftSection,"data-label-size":s,children:u}):u&&g.jsx("div",{className:dn.leftSection,"data-label-size":s,children:u}),g.jsx("div",{className:dn.rightSection,children:p})]})});yt.displayName="FormControlLayout";const wc="FormControlWrapper-module__root___c-UHo",Nc="FormControlWrapper-module__inputSection___HenXk",Oo={root:wc,inputSection:Nc},Nt=O.forwardRef(function(t,n){const{overStyled:o=!1,label:r,assistiveText:s,description:i,helperText:a,assistiveWithIcon:u=!0,error:c,required:p,disabled:f,focused:h,id:d,formLayout:y="stacked",labelSize:m="default",labelOptionalText:v,labelWithEditIcon:_,onLabelEditClick:S,labelActionArea:E,controlMaxWidth:C,controlMinWidth:x,className:I,style:w,children:N,...L}=t,F=X(L,o),U=s||i||a,b=d?`${d}-label`:void 0,R=d?`${d}-description`:void 0,T=O.Children.map(N,j=>O.isValidElement(j)?O.cloneElement(j,{"aria-labelledby":b,"aria-describedby":U?R:void 0}):j);return g.jsx(H.FormControl,{ref:n,error:!!c,required:p,disabled:f,focused:h,className:I?`${Oo.root} ${I}`:Oo.root,style:w,"data-error":c?"true":void 0,"data-disabled":f?"true":void 0,"data-focused":h?"true":void 0,...F,children:g.jsx(yt,{formLayout:y,labelSize:m,controlMaxWidth:C,controlMinWidth:x,leftSection:r&&g.jsx(fr,{id:b,htmlFor:d,required:p,labelOptionalText:v,labelWithEditIcon:_,onLabelEditClick:S,labelActionArea:E,children:r}),children:g.jsxs("div",{className:Oo.inputSection,children:[T,(U||c)&&g.jsx(pr,{id:R,assistiveVariant:c?"error":"help",assistiveWithIcon:u,children:c&&typeof c=="string"?c:U})]})})})});Nt.displayName="FormControlWrapper";const Oc="ReadOnlyField-module__root___hKci7",$c="ReadOnlyField-module__text___bPxk9",Gt={root:Oc,text:$c},mr=O.forwardRef(function(t,n){const{value:o,type:r="text",readOnlyComponent:s,emptyValueComponent:i,className:a,...u}=t;if(i&&typeof i!="string"){const f=i;if(f.check&&f.check(o))return g.jsx(Nt,{ref:n,className:`${Gt.root} ${a||""}`,...u,children:g.jsx(f,{value:o})})}if(o==null||o===""||Array.isArray(o)&&o.length===0)return g.jsx(Nt,{ref:n,className:`${Gt.root} ${a||""}`,...u,children:g.jsx("p",{className:Gt.text,children:"N/A"})});if(s){const f=s;return g.jsx(Nt,{ref:n,className:`${Gt.root} ${a||""}`,...u,children:g.jsx(f,{value:o})})}let p=o;return r==="boolean"||r==="switch"?(p=o?"True":"False",r==="switch"&&(p=o?"On":"Off")):Array.isArray(o)?p=o.join(", "):p=String(o),g.jsx(Nt,{ref:n,className:`${Gt.root} ${a||""}`,...u,children:g.jsx("p",{className:Gt.text,children:p})})});mr.displayName="ReadOnlyField";const it=O.forwardRef(function({readOnly:t,readOnlyComponent:n,readOnlyType:o="text",readOnlyValue:r,readOnlyNativeProps:s,emptyValueComponent:i,activeComponent:a,overStyled:u,onLabelEditClick:c,...p},f){if(t){if(n){const h=n;return g.jsx(Nt,{ref:f,...p,onLabelEditClick:c,overStyled:u,children:g.jsx(h,{...s})})}return g.jsx(mr,{ref:f,type:o,value:r,emptyValueComponent:i,onLabelEditClick:c,overStyled:u,...p})}return g.jsx(Nt,{ref:f,...p,onLabelEditClick:c,overStyled:u,children:a})});it.displayName="WithReadOnlyWrapper";const Rc="Autocomplete-module__layoutOverride___IIkyG",kc="Autocomplete-module__root___22Jqm",Mc="Autocomplete-module__input___MlbJR",Pc="Autocomplete-module__dropdown___A9XVI",Ac="Autocomplete-module__option___cZsvO",Le={layoutOverride:Rc,root:kc,input:Mc,dropdown:Pc,option:Ac},Oi=O.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:r="stacked",labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,assistiveText:f,assistiveWithIcon:h,error:d,required:y,withAsterisk:m,id:v,className:_,style:S,disabled:E,readOnly:C,readOnlyComponent:x,emptyValueComponent:I,value:w,defaultValue:N,data:L,leftSection:F,rightSection:U,placeholder:b,ListboxProps:R,...T}=t,V=X(T,o);delete V.size,delete V.variant,delete V.radius;const K={root:Le.root,inputRoot:Le.input,listbox:Le.dropdown,option:Le.option},se=V.classNames;if(se&&typeof se=="object"&&!Array.isArray(se)){const M=se;K.root=M.wrapper?`${Le.root} ${M.wrapper}`:Le.root,K.inputRoot=M.input?`${Le.input} ${M.input}`:Le.input,K.listbox=M.dropdown?`${Le.dropdown} ${M.dropdown}`:Le.dropdown,K.option=M.option?`${Le.option} ${M.option}`:Le.option}const oe=_?`${Le.layoutOverride} ${_}`:Le.layoutOverride;return g.jsx(it,{className:oe,style:S,controlMaxWidth:"var(--autocomplete-control-max-width)",controlMinWidth:"var(--autocomplete-control-min-width)",overStyled:o,formLayout:r,labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,assistiveText:f,assistiveWithIcon:h,error:!!d,required:y,id:v,disabled:E,readOnly:C,readOnlyComponent:x,emptyValueComponent:I,readOnlyType:"text",readOnlyValue:w!==void 0?w:N,readOnlyNativeProps:t,activeComponent:g.jsx(H.Autocomplete,{ref:n,freeSolo:!0,disableClearable:!0,classes:K,disabled:E,value:w,defaultValue:N,forcePopupIcon:!1,"data-error":d?"true":void 0,"data-disabled":E?"true":void 0,"data-with-left-section":F?"true":void 0,"data-with-right-section":U?"true":void 0,ListboxProps:{...R,className:K.listbox},options:L||[],renderInput:M=>{const{InputProps:z,...Q}=M;return g.jsx(H.TextField,{...Q,placeholder:b,variant:"standard"})}})})});Oi.displayName="Autocomplete";const jc="Avatar-module__root___fXu-J",Lc="Avatar-module__iconWrapper___ojly2",Dc="Avatar-module__textWrapper___zp-jD",Vc="Avatar-module__image___ieqGp",Bc="Avatar-module__placeholder___IDW7-",Qe={root:jc,iconWrapper:Lc,textWrapper:Dc,image:Vc,placeholder:Bc},$i=O.forwardRef(function({size:t="default",variant:n="solid",icon:o,children:r,src:s,overStyled:i=!1,...a},u){const c={solid:"filled",outline:"outline",ghost:"transparent"},p=X(a,i),f=p;let h="text";s?h="image":o&&(h="icon");const d={root:Qe.root,image:Qe.image,placeholder:Qe.placeholder},y=f.classNames;if(y&&typeof y=="object"&&!Array.isArray(y)){const v=y;d.root=v.root?`${Qe.root} ${v.root}`:Qe.root,d.image=v.image?`${Qe.image} ${v.image}`:Qe.image,d.placeholder=v.placeholder?`${Qe.placeholder} ${v.placeholder}`:Qe.placeholder}const m=f.className;return g.jsx(H.Avatar,{ref:u,className:m,classes:d,variant:c[n],src:s,"data-variant":n,"data-size":t,"data-style":h,...p,children:o!=null?g.jsx("span",{className:Qe.iconWrapper,"aria-hidden":!0,children:o}):r!=null?g.jsx("span",{className:Qe.textWrapper,children:r}):void 0})});$i.displayName="Avatar";const Fc=$i,zc="Badge-module__root___5osNT",ct={root:zc},Ri=O.forwardRef(function({variant:t="primary-color",overStyled:n=!1,...o},r){const s=X(o,n),i={root:ct.root,section:ct.section,label:ct.label},a=s.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const p=a;i.root=p.root?`${ct.root} ${p.root}`:ct.root,i.section=p.section??ct.section,i.label=p.label??ct.label}const u=s.className,c=u?`${ct.root} ${u}`:ct.root;return g.jsx(H.Badge,{ref:r,variant:"standard","data-variant":t,...s,className:c,classes:i})});Ri.displayName="Badge";const Wc=Ri,Uc=O.forwardRef(function(t,n){return g.jsx(H.Box,{ref:n,...t})}),Gc="Breadcrumb-module__root___x-9ln",qc="Breadcrumb-module__separator___qrUX-",xt={root:Gc,separator:qc},ki=O.forwardRef(function({overStyled:t=!1,separator:n=">",...o},r){const s=X({separator:n,...o},t),i={root:xt.root,separator:xt.separator},a=s.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const p=a;i.root=p.root?`${xt.root} ${p.root}`:xt.root,i.separator=p.separator?`${xt.separator} ${p.separator}`:xt.separator}const u=s.className,c=u?`${xt.root} ${u}`:xt.root;return g.jsx(H.Breadcrumbs,{ref:r,...s,className:c,classes:i})});ki.displayName="Breadcrumb";const Hc="Loader-module__root___6iYOP",ls={root:Hc},hr=O.forwardRef(function({variant:t="oval",size:n="default",overStyled:o=!1,...r},s){const a={sm:"small",md:"default",lg:"large",small:"small",default:"default",large:"large"}[n]||"default",u=X(r,o),c=u.className,p=c?`${ls.root} ${c}`:ls.root,f=()=>t==="bars"||t==="dots"?g.jsxs(g.Fragment,{children:[g.jsx("span",{}),g.jsx("span",{}),g.jsx("span",{})]}):null;return g.jsx("span",{ref:s,"data-variant":t,"data-size":a,...u,className:p,children:f()})});hr.displayName="Loader";const Kc="Button-module__root___Q2R8-",Yc="Button-module__labelText___rFV5p",Xc="Button-module__iconWrapper___uEKPa",pn={root:Kc,labelText:Yc,iconWrapper:Xc};function Qc(e){return e==null||e===""?!1:typeof e=="string"?e.trim()!=="":!0}const Mi=O.forwardRef(function({variant:t="solid",size:n="default",icon:o,children:r,overStyled:s=!1,loaderVariant:i="oval",loaderSize:a,useRecursicaLoader:u=!0,...c},p){const f=X(c,s),h=f;delete h.color;const d=!!o||!!h.startIcon,y=!!h.endIcon,m=Qc(r),v=(d||y)&&!m;let _="label";v?_="icon-only":(d||y)&&(_="icon-label"),typeof process<"u"&&process.env.NODE_ENV!=="production"&&v&&!h["aria-label"]&&console.warn('[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").');const S=h.className,E=S?`${pn.root} ${S}`:pn.root,C=a??(n==="small"?"small":"default");let x=h.loadingIndicator;return u&&(x=g.jsx(hr,{variant:i,size:C})),g.jsx(H.Button,{ref:p,disableRipple:!0,disableElevation:!0,className:E,loading:!!h.loading,loadingIndicator:x,fullWidth:!!h.fullWidth,startIcon:h.loading?g.jsx("span",{className:pn.iconWrapper,"aria-hidden":!0,children:x}):o!=null?g.jsx("span",{className:pn.iconWrapper,"aria-hidden":!0,children:o}):void 0,"data-variant":t,"data-size":n,"data-content":_,...h.loading?{"data-loading":"true"}:{},...f,disabled:!!h.disabled||!!h.loading,children:g.jsx("span",{className:pn.labelText,children:r})})});Mi.displayName="Button";const Jc="Card-module__root___c9KvZ",Zc="Card-module__header___PTXf2",eu="Card-module__footer___Mu-JC",tu="Card-module__section___BRT8H",nu="Card-module__content___oFIQa",bt={root:Jc,header:Zc,footer:eu,section:tu,content:nu},Pi=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t);["flex","flexGrow","flexShrink","flexBasis","grow","h","height"].forEach(c=>{c in n&&!(c in r)&&(r[c]=n[c])});const i={root:bt.root},a=r.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const c=a;Object.keys(c).forEach(p=>{i[p]?i[p]=`${i[p]} ${c[p]}`:i[p]=c[p]})}const u=r.className;return g.jsx(H.Card,{ref:o,className:u,classes:i,...r})});Pi.displayName="Card";const Ai=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t),s=r.className;return g.jsx("div",{ref:o,className:s?`${bt.section} ${s}`:bt.section,...r})});Ai.displayName="CardSection";const ji=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t),s=r.className;return g.jsx("div",{ref:o,className:s?`${bt.header} ${s}`:bt.header,...r})});ji.displayName="CardHeader";const Li=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t),s=r.className;return g.jsx("div",{ref:o,className:s?`${bt.footer} ${s}`:bt.footer,...r})});Li.displayName="CardFooter";const Di=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t),s=r.className;return g.jsx("div",{ref:o,className:s?`${bt.content} ${s}`:bt.content,...r})});Di.displayName="CardContent";const Vi=Pi,lo=Vi;lo.Section=Ai;lo.Header=ji;lo.Footer=Li;lo.Content=Di;const ou=Vi,ru="Checkbox-module__groupRoot___cBS0o",su="Checkbox-module__root___mY3qk",iu="Checkbox-module__body___5yC7q",au="Checkbox-module__inner___rTke4",lu="Checkbox-module__input___2kt-h",cu="Checkbox-module__inputChecked___zaCIH",uu="Checkbox-module__inputIndeterminate___CVPhn",du="Checkbox-module__disabled___x7-eg",pu="Checkbox-module__icon___-O7i6",fu="Checkbox-module__labelWrapper___GpZkr",mu="Checkbox-module__label___cwRtI",hu="Checkbox-module__description___rMhG1",gu="Checkbox-module__error___E-bmD",Se={groupRoot:ru,root:su,body:iu,inner:au,input:lu,inputChecked:cu,inputIndeterminate:uu,disabled:du,icon:pu,labelWrapper:fu,label:mu,description:hu,error:gu},Bi=O.createContext(null),gr=O.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:r="stacked",labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,description:f,assistiveText:h,assistiveWithIcon:d,error:y,required:m,id:v,className:_,style:S,children:E,readOnly:C,readOnlyComponent:x,emptyValueComponent:I,value:w,defaultValue:N,onChange:L,row:F,...U}=t,b=X(U,o),R=b;delete R.size;const T=(j,V)=>{L&&L(V)};return g.jsx(it,{className:_,style:S,controlMaxWidth:"var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",controlMinWidth:void 0,overStyled:o,formLayout:r,labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,description:f,assistiveText:h,assistiveWithIcon:d,error:y,required:m,id:v,readOnly:C&&!!x,readOnlyComponent:x,emptyValueComponent:I,readOnlyType:"text",readOnlyValue:w!==void 0?w:N,readOnlyNativeProps:t,activeComponent:g.jsx(Bi.Provider,{value:{value:w!==void 0?w:N,onChange:T,name:R.name,readOnly:C||!!R.disabled},children:g.jsx(H.FormGroup,{ref:n,row:F,...b,className:`${Se.groupRoot} ${b.className||""}`.trim(),"data-layout":r,children:E})})})});gr.displayName="CheckboxGroup";const yr=O.forwardRef(function(t,n){const{overStyled:o=!1,readOnly:r,readOnlyComponent:s,disabled:i,formLayout:a,labelSize:u,controlMaxWidth:c,controlMinWidth:p,label:f,description:h,error:d,style:y,...m}=t,v=X(m,o),_=v;delete _.size,delete _.color;const S={root:Se.root,checked:Se.checked,disabled:Se.disabled},E=_.classes;if(E&&typeof E=="object"&&!Array.isArray(E)){const T=E;S.root=T.root?`${Se.root} ${T.root}`:Se.root,S.checked=T.checked?`${Se.checked} ${T.checked}`:Se.checked,S.disabled=T.disabled?`${Se.disabled} ${T.disabled}`:Se.disabled}const C=_.className,x=C?`${Se.root} ${C}`:Se.root,I=O.useContext(Bi),w=I!==null,N=w?I.readOnly:!1,L=w?(I.value||[]).includes(_.value):!!(_.checked??_.defaultChecked);if(r&&s){const T=s,j=g.jsx(T,{...t,checked:L,label:f});return a?g.jsx(yt,{formLayout:a,labelSize:u,controlMaxWidth:c,controlMinWidth:p,children:j}):g.jsx(g.Fragment,{children:j})}const F=T=>{if(w){const j=T.target.checked?[...I.value||[],_.value]:(I.value||[]).filter(V=>V!==_.value);I.onChange&&I.onChange(T,j)}else _.onChange&&_.onChange(T,T.target.checked)},U=T=>g.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",...T,children:g.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"})}),b=g.jsx(H.Checkbox,{ref:n,className:f?Se.inner:`${x} ${Se.inner}`,classes:S,disabled:r||i||N,...v,checked:L,onChange:F,sx:f?{padding:0}:void 0,icon:g.jsx("div",{className:Se.input}),checkedIcon:g.jsx("div",{className:`${Se.input} ${Se.inputChecked}`,children:g.jsx(U,{className:Se.icon})}),indeterminateIcon:g.jsx("div",{className:`${Se.input} ${Se.inputIndeterminate}`,children:g.jsx("svg",{className:Se.icon,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",children:g.jsx("rect",{x:"6",y:"14",width:"20",height:"4",fill:"currentColor"})})})}),R=f?g.jsx("div",{className:x,style:y,children:g.jsxs("div",{className:Se.body,children:[b,g.jsxs("div",{className:Se.labelWrapper,children:[g.jsx("label",{className:Se.label,htmlFor:_.id,"data-disabled":r||i||N?!0:void 0,children:f}),h&&g.jsx("div",{className:Se.description,"data-disabled":r||i||N?!0:void 0,children:h}),d&&g.jsx("div",{className:Se.error,"data-disabled":r||i||N?!0:void 0,children:d})]})]})}):g.jsx("div",{className:x,style:y,children:b});return a?g.jsx(yt,{formLayout:a,labelSize:u,controlMaxWidth:c,controlMinWidth:p,children:R}):R});yr.displayName="Checkbox";yr.Group=gr;const yu="Chip-module__root___f5pFk",bu="Chip-module__label___Ov9pg",vu="Chip-module__mantineIconWrapper___KLSz6",_u="Chip-module__innerWrapper___EnrTF",xu="Chip-module__children___zbRAR",Cu="Chip-module__leadingIcon___JBtjQ",Su="Chip-module__removeIconWrapper___VOO7u",Ae={root:yu,label:bu,mantineIconWrapper:vu,innerWrapper:_u,children:xu,leadingIcon:Cu,removeIconWrapper:Su};function Iu(e){return g.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:[g.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),g.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function Tu(e){return g.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:g.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 Fi=O.forwardRef(function({error:t=!1,icon:n,onRemove:o,removeLabel:r="Remove",children:s,checked:i,overStyled:a=!1,...u},c){const p=X(u,a),f=p,h={root:Ae.root,label:Ae.label,icon:Ae.leadingIcon,deleteIcon:Ae.removeIconWrapper},d=f.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const E=d;h.root=E.root?`${Ae.root} ${E.root}`:Ae.root,h.label=E.label?`${Ae.label} ${E.label}`:Ae.label}const y=f.className,m=y?`${Ae.root} ${y}`:Ae.root,v=t?"":void 0,_=i?"":void 0,S=!s&&(!!n||!!o);return g.jsx(H.Chip,{ref:c,className:m,classes:h,...v!==void 0?{"data-error":""}:{},..._!==void 0?{"data-checked":""}:{},...S?{"data-icon-only":""}:{},...p,icon:i?g.jsx("span",{className:Ae.mantineIconWrapper,"aria-hidden":!0,children:g.jsx(Tu,{})}):n?g.jsx("span",{className:Ae.leadingIcon,"aria-hidden":!0,children:n}):void 0,onDelete:o,deleteIcon:o?g.jsx("span",{className:Ae.removeIconWrapper,children:g.jsx(Iu,{})}):void 0,label:g.jsx("span",{className:Ae.innerWrapper,children:g.jsx("span",{className:Ae.children,children:s})})})});Fi.displayName="Chip";const zi=O.forwardRef(function({children:t,size:n,fluid:o,...r},s){const i={"rec-sm":"sm","rec-default":"md","rec-md":"md","rec-lg":"lg","rec-xl":"xl","rec-2xl":"xl"},a=o?!1:typeof n=="string"&&i[n]?i[n]:n;return g.jsx(H.Container,{ref:s,maxWidth:a,...r,children:t})});zi.displayName="Container";const Eu=({disabled:e,label:t,assistiveText:n,error:o,required:r,withAsterisk:s,placeholder:i,value:a,defaultValue:u,onChange:c,readOnly:p,formLayout:f,leftSection:h,labelWithEditIcon:d,onLabelEditClick:y,...m})=>g.jsx("div",{...m,children:"DatePicker"}),wu="Dropdown-module__layoutOverride___FNcvP",Nu="Dropdown-module__root___uVyL0",Ou="Dropdown-module__input___dK4dN",$u="Dropdown-module__dropdown___gG-Sw",Ru="Dropdown-module__option___nAGU-",Ct={layoutOverride:wu,root:Nu,input:Ou,dropdown:$u,option:Ru},Wi=O.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:r="stacked",containerWidth:s,labelSize:i,labelAlignment:a,labelOptionalText:u,labelWithEditIcon:c,onLabelEditClick:p,label:f,assistiveText:h,assistiveWithIcon:d,error:y,required:m,withAsterisk:v,id:_,className:S,style:E,disabled:C,readOnly:x,readOnlyComponent:I,emptyValueComponent:w,value:N,defaultValue:L,data:F,searchable:U,clearable:b,...R}=t,T=X(R,o),j=T;delete j.size,delete j.variant;const V={...E||{},width:s||"100%"},K=S?`${Ct.layoutOverride} ${S}`:Ct.layoutOverride,se=()=>F?F.map((oe,M)=>typeof oe=="string"?g.jsx(H.MenuItem,{value:oe,className:Ct.option,children:oe},`${oe}-${M}`):g.jsx(H.MenuItem,{value:oe.value,disabled:oe.disabled,className:Ct.option,children:oe.label},`${oe.value}-${M}`)):null;return g.jsx(it,{className:K,style:V,controlMaxWidth:"var(--dropdown-control-max-width)",controlMinWidth:"var(--dropdown-control-min-width)",overStyled:o,formLayout:r,labelSize:i,labelAlignment:a,labelOptionalText:u,labelWithEditIcon:c,onLabelEditClick:p,label:f,assistiveText:h,assistiveWithIcon:d,error:!!y,required:m,id:_,readOnly:x,readOnlyComponent:I,emptyValueComponent:w,readOnlyType:"text",readOnlyValue:N!==void 0?String(N):L?String(L):void 0,readOnlyNativeProps:t,activeComponent:g.jsx(H.Select,{ref:n,disabled:C,value:N,defaultValue:L,error:!!y,required:m,displayEmpty:!0,className:Ct.root,classes:{select:Ct.input,icon:Ct.icon},MenuProps:{classes:{paper:Ct.dropdown}},inputProps:{"data-disabled":C?"true":void 0,"data-error":y?"true":void 0,...j.inputProps},...T,children:se()})})});Wi.displayName="Dropdown";const ku=e=>g.jsx("div",{...e,children:"FileInput"}),Mu=e=>g.jsx("div",{...e,children:"FileUpload"}),Ui=O.forwardRef(function({children:t,gap:n="rec-default",rowGap:o,columnGap:r,direction:s,align:i,justify:a,wrap:u,...c},p){const f=In(c),h=typeof n=="string"&&n in Re?Re[n]:n,d=typeof o=="string"&&o in Re?Re[o]:o,y=typeof r=="string"&&r in Re?Re[r]:r;return g.jsx(H.Box,{ref:p,display:"flex",...f,gap:h,rowGap:d,columnGap:y,flexDirection:s,alignItems:i,justifyContent:a,flexWrap:u,children:t})});Ui.displayName="Flex";const Pu="Grid-module__root___s-qPY",Au="Grid-module__col___tbuNg",ju="Grid-module__hiddenFromXs___Ap3ch",Lu="Grid-module__hiddenFromSm___ZD0Wm",Du="Grid-module__hiddenFromMd___O3Zhg",Vu="Grid-module__hiddenFromLg___RxDrc",Bu="Grid-module__hiddenFromXl___k7ytz",Fu="Grid-module__visibleFromSm___w20SX",zu="Grid-module__visibleFromMd___ePFrO",Wu="Grid-module__visibleFromLg___L6vtD",Uu="Grid-module__visibleFromXl___HLWTL",Ze={root:Pu,col:Au,hiddenFromXs:ju,hiddenFromSm:Lu,hiddenFromMd:Du,hiddenFromLg:Vu,hiddenFromXl:Bu,visibleFromSm:Fu,visibleFromMd:zu,visibleFromLg:Wu,visibleFromXl:Uu},Gi=O.createContext({grow:!1});function br(e){if(e===void 0||typeof e!="object")return e;const{base:t,...n}=e;return t!==void 0?{xs:t,...n}:n}function cs(e){return e==="auto"?"grow":e==="content"?"auto":e}function Gu(e){const t=br(e);if(t===void 0||typeof t!="object")return cs(t);const n={};return Object.entries(t).forEach(([o,r])=>{n[o]=cs(r)}),n}function qu(e){return br(e)}function Hu(e){if(e===void 0||typeof e=="number")return e;const t=br(e);return t.xs??t.sm??t.md??t.lg??t.xl}const Ku={xs:Ze.hiddenFromXs,sm:Ze.hiddenFromSm,md:Ze.hiddenFromMd,lg:Ze.hiddenFromLg,xl:Ze.hiddenFromXl},Yu={sm:Ze.visibleFromSm,md:Ze.visibleFromMd,lg:Ze.visibleFromLg,xl:Ze.visibleFromXl};function us(e){return e==="base"?"xs":e}const qi=O.forwardRef(function({children:t,gap:n="rec-default",columns:o=12,grow:r=!1,justify:s,align:i,style:a,...u},c){const p=In(u),f=typeof n=="string"&&n in Re?Re[n]:n;return g.jsx(Gi.Provider,{value:{grow:r},children:g.jsx(H.Grid,{ref:c,container:!0,columns:o,spacing:f,className:Ze.root,...p,style:{justifyContent:s,alignItems:i,...a},children:t})})});qi.displayName="Grid";const vr=O.forwardRef(function({children:t,span:n,offset:o,order:r,visibleFrom:s,hiddenFrom:i,style:a,className:u,...c},p){const{grow:f}=O.useContext(Gi),h=In(c),d=Hu(r),y=s?Yu[us(s)]:i?Ku[us(i)]:void 0,m=[Ze.col,y,u].filter(Boolean).join(" ");return g.jsx(H.Grid,{ref:p,size:Gu(n),offset:qu(o),className:m,...h,style:{order:d,...f?{flexGrow:1}:{},...a},children:t})});vr.displayName="GridCol";const Hi=qi;Hi.Col=vr;const Ki=O.forwardRef(function({children:t,gap:n="rec-default",rowGap:o,columnGap:r,justify:s,align:i,wrap:a,...u},c){const p=In(u),f=typeof n=="string"&&n in Re?Re[n]:n,h=typeof o=="string"&&o in Re?Re[o]:o,d=typeof r=="string"&&r in Re?Re[r]:r;return g.jsx(H.Stack,{ref:c,direction:"row",flexWrap:a||"wrap",justifyContent:s,alignItems:i,spacing:f,sx:{...h?{rowGap:h}:{},...d?{columnGap:d}:{}},...p,children:t})});Ki.displayName="Group";const Xu="HoverCard-module__dropdown___FBPFW",Qu="HoverCard-module__arrow___S9AkE",ds={dropdown:Xu,arrow:Qu},Yi=function({overStyled:t=!1,withBeak:n=!0,position:o="top",openDelay:r=0,closeDelay:s=150,disabled:i=!1,offset:a=5,children:u,...c}){const p=X(c,t),f={tooltip:ds.dropdown,arrow:ds.arrow},h=p.classNames;if(h&&typeof h=="object"&&!Array.isArray(h)){const m=h;Object.keys(m).forEach(v=>{f[v]?f[v]=`${f[v]} ${m[v]}`:f[v]=m[v]})}let d=null,y=null;return O.Children.forEach(u,m=>{var v,_;if(O.isValidElement(m)){const S=m;((v=S.type)==null?void 0:v.displayName)==="HoverCardTarget"?d=S.props.children:((_=S.type)==null?void 0:_.displayName)==="HoverCardDropdown"&&(y=S.props.children)}}),d||(d=g.jsx("div",{})),y||(y=g.jsx("div",{})),g.jsx(H.Tooltip,{title:y,placement:o,arrow:n,enterDelay:r,leaveDelay:s,disableHoverListener:i,slotProps:{popper:{modifiers:[{name:"offset",options:{offset:[0,a]}}]}},classes:f,...p,children:O.isValidElement(d)?d:g.jsx("span",{children:d})})};Yi.displayName="HoverCard";const Xi=function({children:t}){return g.jsx(g.Fragment,{children:t})};Xi.displayName="HoverCardTarget";const Qi=function({children:t}){return g.jsx(g.Fragment,{children:t})};Qi.displayName="HoverCardDropdown";const _r=Yi;_r.Target=Xi;_r.Dropdown=Qi;const Ju="Link-module__root___I0VGE",Zu="Link-module__iconWrapper___W-LlF",ed="Link-module__labelText___wSvUy",kn={root:Ju,iconWrapper:Zu,labelText:ed},Ji=O.forwardRef(function({icon:t,children:n,overStyled:o=!1,...r},s){const i=X(r,o),u=i.className,c=u?`${kn.root} ${u}`:kn.root;return g.jsxs(H.Link,{ref:s,className:c,underline:"none",...t?{"data-has-icon":""}:{},...i,children:[t&&g.jsx("span",{className:kn.iconWrapper,"aria-hidden":!0,children:t}),g.jsx("span",{className:kn.labelText,children:n})]})});Ji.displayName="Link";const td="Menu-module__dropdown___j4xuA",nd="Menu-module__item___NMXha",od="Menu-module__divider___wPiNq",yn={dropdown:td,item:nd,divider:od},Zi=O.forwardRef(function({overStyled:t=!1,className:n,...o},r){const s=X(o,t);return g.jsx(H.Menu,{ref:r,className:`${yn.dropdown} ${n||""}`,classes:{paper:yn.dropdown,list:yn.dropdown},...s})});Zi.displayName="Menu";const ea=O.forwardRef(function({overStyled:t=!1,className:n,...o},r){const s=X(o,t);return g.jsx(H.MenuItem,{ref:r,className:`${yn.item} ${n||""}`,...s})});ea.displayName="MenuItem";const ta=O.forwardRef(function({overStyled:t=!1,className:n,...o},r){const s=X(o,t);return g.jsx(H.Divider,{ref:r,className:`${yn.divider} ${n||""}`,...s})});ta.displayName="MenuDivider";const rd="Modal-module__root___ytPLl",sd="Modal-module__inner___SSUJE",id="Modal-module__content___dWO-B",ad="Modal-module__header___ILG9i",ld="Modal-module__title___A5OeE",cd="Modal-module__scrollArea___KD-hm",ud="Modal-module__footer___rro2w",dd="Modal-module__close___-ER1C",ft={root:rd,inner:sd,content:id,header:ad,title:ld,scrollArea:cd,footer:ud,close:dd},pd=()=>g.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:g.jsx("path",{d:"M18 6L6 18M6 6l12 12"})}),na=O.forwardRef(function({overStyled:t=!1,opened:n=!1,withCloseButton:o=!0,title:r,children:s,onClose:i,className:a,...u},c){const p=X(u,t);let f=null;const h=[];return O.Children.forEach(s,d=>{var y;O.isValidElement(d)&&(d.type===Cr||((y=d.type)==null?void 0:y.displayName)==="Modal.Footer")?f=d:h.push(d)}),g.jsxs(H.Dialog,{ref:c,className:`${ft.root} ${a||""}`,classes:{paper:ft.inner},...p,open:n||p.open||!1,onClose:i,children:[(r||o)&&g.jsxs("div",{className:ft.header,children:[r&&g.jsx("div",{className:ft.title,children:r}),o&&g.jsx(H.IconButton,{onClick:d=>i==null?void 0:i(d,"backdropClick"),className:ft.close,children:g.jsx(pd,{})})]}),g.jsx(xr,{children:h}),f]})});na.displayName="Modal";const oa=O.forwardRef(function({overStyled:t=!1,className:n,...o},r){const s=X(o,t);return g.jsx(H.DialogTitle,{ref:r,className:`${ft.title} ${n||""}`,...s})});oa.displayName="Modal.Title";const xr=O.forwardRef(function({overStyled:t=!1,className:n,children:o,...r},s){const i=X(r,t),a=O.useRef(null),[u,c]=O.useState(!1),[p,f]=O.useState(!1),h=O.useCallback(()=>{if(a.current){const{scrollTop:d,scrollHeight:y,clientHeight:m}=a.current;c(d>0),f(Math.ceil(d+m)<y)}},[]);return O.useEffect(()=>(h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)),[h,o]),g.jsx(H.DialogContent,{ref:d=>{typeof s=="function"?s(d):s&&(s.current=d),a&&(a.current=d)},onScroll:()=>h(),"data-scrolled-top":u||void 0,"data-scrolled-bottom":p||void 0,className:`${ft.content} ${ft.scrollArea} ${n||""}`,...i,children:o})});xr.displayName="Modal.Body";const Cr=O.forwardRef(function({overStyled:t=!1,className:n,...o},r){const s=X(o,t);return g.jsx(H.DialogActions,{ref:r,className:`${ft.footer} ${n||""}`,...s})});Cr.displayName="Modal.Footer";const co=na;co.Title=oa;co.Body=xr;co.Footer=Cr;const fd="NumberInput-module__layoutOverride___5-9T4",md="NumberInput-module__root___C6rAn",hd="NumberInput-module__input___Ss8p7",gd="NumberInput-module__section___MijP0",yd="NumberInput-module__controls___8UfQ2",bd="NumberInput-module__control___Qre9-",jt={layoutOverride:fd,root:md,input:hd,section:gd,controls:yd,control:bd},ra=O.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:r="stacked",labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,assistiveText:f,assistiveWithIcon:h,error:d,required:y,id:m,className:v,style:_,disabled:S,readOnly:E,readOnlyComponent:C,emptyValueComponent:x,value:I,defaultValue:w,leftSection:N,rightSection:L,min:F,max:U,step:b,hideControls:R=!1,...T}=t,j=X(T,o),V=j;delete V.size,delete V.variant,delete V.radius;const K={wrapper:jt.root,input:jt.input,section:jt.section,controls:jt.controls,control:jt.control},se=v?`${jt.layoutOverride} ${v}`:jt.layoutOverride,oe=N?g.jsx("div",{className:K.section,"data-position":"left",children:N}):void 0,M=L?g.jsx("div",{className:K.section,"data-position":"right",children:L}):void 0;return g.jsx(it,{className:se,style:_,controlMaxWidth:"var(--number-input-control-max-width)",controlMinWidth:"var(--number-input-control-min-width)",overStyled:o,formLayout:r,labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,assistiveText:f,assistiveWithIcon:h,error:d,required:y,id:m,readOnly:E,readOnlyComponent:C,emptyValueComponent:x,readOnlyType:"text",readOnlyValue:I!==void 0?I==null?void 0:I.toString():w==null?void 0:w.toString(),readOnlyNativeProps:t,activeComponent:g.jsx(H.TextField,{ref:n,classes:K,disabled:S,value:I,defaultValue:w,label:void 0,error:void 0,required:void 0,InputProps:{startAdornment:oe,endAdornment:M},inputProps:{min:F,max:U,step:b,...V.inputProps},...j})})});ra.displayName="NumberInput";const vd="Pagination-module__root___ITRjt",St={root:vd};function _d(e){const t={root:St.root,ul:St.ul},n=e.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const s=n;t.root=s.root?`${St.root} ${s.root}`:St.root,t.ul=s.ul?`${St.ul} ${s.ul}`:St.ul}const o=e.className;return{className:o?`${St.root} ${o}`:St.root,classNames:t}}const sa=O.forwardRef(function(t,n){const{overStyled:o=!1,withLabels:r,total:s,withEdges:i,withControls:a,...u}=t,c=X(u,o),p=_d(c);return g.jsx("div",{ref:n,className:p.className,children:g.jsx(H.Pagination,{count:s,showFirstButton:i,showLastButton:i,hidePrevButton:a===!1?!0:void 0,hideNextButton:a===!1?!0:void 0,classes:p.classNames,...c})})});sa.displayName="Pagination";const xd=sa,Cd="Panel-module__content___wdGo-",Sd="Panel-module__inner___ruA2b",Id="Panel-module__header___o7SiC",Td="Panel-module__title___181OP",Ed="Panel-module__titleTruncate___fuP6V Panel-module__title___181OP",wd="Panel-module__body___SEC3T",Nd="Panel-module__footer___t6-hz",Et={content:Cd,inner:Sd,header:Id,title:Td,titleTruncate:Ed,body:wd,footer:Nd},ia=function({overStyled:t=!1,placement:n="right",keepMounted:o=!0,wrapHeaderText:r=!1,opened:s,...i}){const a=X(i,t),u={content:Et.content,header:Et.header,title:r?Et.titleTruncate:Et.title,body:Et.body,inner:Et.inner},c=a.classNames;if(c&&typeof c=="object"&&!Array.isArray(c)){const p=c;Object.keys(p).forEach(f=>{u[f]?u[f]=`${u[f]} ${p[f]}`:u[f]=p[f]})}return g.jsx(H.Drawer,{anchor:n,keepMounted:o,open:!!s,...a,classes:u})};ia.displayName="Panel";const Sr=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t),s=r.className,i=s?`${Et.footer} ${s}`:Et.footer;return g.jsx("div",{ref:o,className:i,...r})});Sr.displayName="PanelFooter";const aa=ia;aa.Footer=Sr;const Od="Radio-module__groupRoot___bfUii",$d="Radio-module__root___kAjTD",Rd="Radio-module__body___q2Wpj",kd="Radio-module__inner___QaTBB",Md="Radio-module__radio___MfgN-",Pd="Radio-module__icon___DWznm",Ad="Radio-module__labelWrapper___dB0Gi",jd="Radio-module__label___vAFIP",Ld="Radio-module__description___bEB8u",Dd="Radio-module__error___wem7t",ge={groupRoot:Od,root:$d,body:Rd,inner:kd,radio:Md,icon:Pd,labelWrapper:Ad,label:jd,description:Ld,error:Dd},Ir=O.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:r="stacked",labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,description:f,assistiveText:h,assistiveWithIcon:d,error:y,required:m,id:v,className:_,style:S,children:E,readOnly:C,readOnlyComponent:x,emptyValueComponent:I,value:w,defaultValue:N,...L}=t,F=X(L,o),U=F;return delete U.size,g.jsx(it,{className:_,style:S,controlMaxWidth:"var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",controlMinWidth:void 0,overStyled:o,formLayout:r,labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,description:f,assistiveText:h,assistiveWithIcon:d,error:y,id:v,readOnly:C&&!!x,readOnlyComponent:x,emptyValueComponent:I,readOnlyType:"text",readOnlyValue:w!==void 0?w:N,readOnlyNativeProps:t,activeComponent:g.jsx(H.RadioGroup,{ref:n,...F,value:w,defaultValue:N,className:ge.groupRoot,"data-layout":r,children:E})})});Ir.displayName="RadioGroup";const ps=({className:e,style:t})=>g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:e,style:t,children:g.jsx("circle",{cx:"8",cy:"8",r:"5"})}),Tr=O.forwardRef(function(t,n){const{overStyled:o=!1,readOnly:r,readOnlyComponent:s,disabled:i,formLayout:a,labelSize:u,controlMaxWidth:c,controlMinWidth:p,label:f,description:h,error:d,style:y,...m}=t,v=X(m,o),_=v;delete _.size,delete _.color;const S={root:ge.root,body:ge.body,inner:ge.inner,radio:ge.radio,icon:ge.icon,labelWrapper:ge.labelWrapper,label:ge.label},E=_.classNames;if(E&&typeof E=="object"&&!Array.isArray(E)){const N=E;S.root=N.root?`${ge.root} ${N.root}`:ge.root,S.body=N.body?`${ge.body} ${N.body}`:ge.body,S.inner=N.inner?`${ge.inner} ${N.inner}`:ge.inner,S.radio=N.radio?`${ge.radio} ${N.radio}`:ge.radio,S.icon=N.icon?`${ge.icon} ${N.icon}`:ge.icon,S.labelWrapper=N.labelWrapper?`${ge.labelWrapper} ${N.labelWrapper}`:ge.labelWrapper,S.label=N.label?`${ge.label} ${N.label}`:ge.label}const C=_.className,x=C?`${ge.root} ${C}`:ge.root;if(r&&s){const N=!!(_.checked??_.defaultChecked),L=s,F=g.jsx(L,{...t,checked:N,label:_.label});return a?g.jsx(yt,{formLayout:a,labelSize:u,controlMaxWidth:c,controlMinWidth:p,children:F}):g.jsx(g.Fragment,{children:F})}const I=g.jsx(H.Radio,{ref:n,icon:g.jsx(ps,{}),checkedIcon:g.jsx(ps,{className:ge.checked}),className:x,classes:S,disabled:r||i,...v}),w=f?g.jsx("div",{className:x,style:y,children:g.jsxs("div",{className:ge.body,children:[I,g.jsxs("div",{className:ge.labelWrapper,children:[g.jsx("label",{className:ge.label,htmlFor:_.id,"data-disabled":r||i?!0:void 0,children:f}),h&&g.jsx("div",{className:ge.description,"data-disabled":r||i?!0:void 0,children:h}),d&&g.jsx("div",{className:ge.error,"data-disabled":r||i?!0:void 0,children:d})]})]})}):I;return a?g.jsx(yt,{formLayout:a,labelSize:u,controlMaxWidth:c,controlMinWidth:p,children:w}):w});Tr.displayName="Radio";Tr.Group=Ir;const Vd="SegmentedControl-module__root___JFRhg",Bd="SegmentedControl-module__label___mS17q",Fd="SegmentedControl-module__control___znOdQ",De={root:Vd,label:Bd,control:Fd};function zd(e){const t={root:De.root,control:De.control,label:De.label,indicator:De.indicator},n=e.classNames;if(n&&typeof n=="object"&&!Array.isArray(n)){const s=n;t.root=s.root?`${De.root} ${s.root}`:De.root,t.control=s.control?`${De.control} ${s.control}`:De.control,t.label=s.label?`${De.label} ${s.label}`:De.label,t.indicator=s.indicator?`${De.indicator} ${s.indicator}`:De.indicator}const o=e.className;return{className:o?`${De.root} ${o}`:De.root,classNames:t}}const la=O.forwardRef(function({overStyled:t=!1,orientation:n="horizontal",fullWidth:o,data:r=[],value:s,onChange:i,...a},u){const c=X(a,t),p=c;delete p.disabled;const f=zd(p),h=(d,y)=>{y!==null&&i&&i(y)};return g.jsx(H.ToggleButtonGroup,{ref:u,className:f.className,classes:f.classNames,orientation:n,fullWidth:o,"data-orientation":n,exclusive:!0,value:s,onChange:h,...c,children:r.map(d=>{const y=typeof d=="string"?d:d.value,m=typeof d=="string"?d:d.label,v=typeof d=="string"?!1:d.disabled;return g.jsx(H.ToggleButton,{value:y,disabled:v,className:f.classNames.control,children:g.jsx("div",{className:f.classNames.label,children:m})},y)})})});la.displayName="SegmentedControl";const Wd=la,Ud="Slider-module__layoutOverride___zYPun",Gd="Slider-module__sliderContainer___y8I0J",qd="Slider-module__sliderTrackWrapper___UHpVh",Hd="Slider-module__iconWrapper___uqHpC",Kd="Slider-module__sliderRoot___LI86H",Yd="Slider-module__sliderTrack___oqnlG",Xd="Slider-module__sliderBar___TI4VY",Qd="Slider-module__sliderThumb___OFn8p",Jd="Slider-module__sliderMark___1lM2B",Zd="Slider-module__sliderTooltip___J1Aqb",ep="Slider-module__minMaxGuide___TaGqz",tp="Slider-module__rightGuideContainer___8dOT8",np="Slider-module__currentValue___dGV2T",op="Slider-module__inputField___6x578",rp="Slider-module__readOnlyValue___-ZzMW",ye={layoutOverride:Ud,sliderContainer:Gd,sliderTrackWrapper:qd,iconWrapper:Hd,sliderRoot:Kd,sliderTrack:Yd,sliderBar:Xd,sliderThumb:Qd,sliderMark:Jd,sliderTooltip:Zd,minMaxGuide:ep,rightGuideContainer:tp,currentValue:np,inputField:op,readOnlyValue:rp},sp=({value:e})=>g.jsx("div",{className:ye.readOnlyValue,children:e}),ca=O.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:r="stacked",labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,labelActionArea:c,onLabelEditClick:p,label:f,tooltipLabel:h,assistiveText:d,assistiveWithIcon:y,error:m,required:v,withAsterisk:_,id:S,className:E,style:C,disabled:x,readOnly:I,readOnlyComponent:w,emptyValueComponent:N,value:L,defaultValue:F,icon:U,showInput:b=!1,showMinMaxLabels:R=!0,min:T=0,max:j=100,step:V=1,onChange:K,onChangeEnd:se,...oe}=t,[M,z]=O.useState(()=>L!==void 0?Array.isArray(L)?L[0]:L:F!==void 0?Array.isArray(F)?F[0]:F:T),Q=L!==void 0?Array.isArray(L)?L[0]:L:M,[re,ne]=O.useState(Q.toString());O.useEffect(()=>{ne(Q.toString())},[Q]);const Y=(te,Te)=>{const ke=Array.isArray(Te)?Te[0]:Te;L===void 0&&z(ke),K==null||K(ke)},J=te=>{const Te=te.target.value;ne(Te);const ke=parseFloat(Te);if(!isNaN(ke)){const Me=Math.max(T,Math.min(j,ke));Y(null,Me)}},Z=()=>{ne(Q.toString())},A=X(oe,o),P=A;delete P.size,delete P.color,delete P.wrapperProps;const W={root:ye.sliderRoot,rail:ye.sliderTrack,track:ye.sliderBar,thumb:ye.sliderThumb,mark:ye.sliderMark,markLabel:ye.sliderMarkLabel,valueLabel:ye.sliderTooltip},ie=P.classNames;if(ie&&typeof ie=="object"&&!Array.isArray(ie)){const te=ie;W.root=te.root?`${ye.sliderRoot} ${te.root}`:ye.sliderRoot,W.rail=te.track?`${ye.sliderTrack} ${te.track}`:ye.sliderTrack,W.track=te.bar?`${ye.sliderBar} ${te.bar}`:ye.sliderBar,W.thumb=te.thumb?`${ye.sliderThumb} ${te.thumb}`:ye.sliderThumb,W.mark=te.mark?`${ye.sliderMark} ${te.mark}`:ye.sliderMark,W.markLabel=te.markLabel?`${ye.sliderMarkLabel} ${te.markLabel}`:ye.sliderMarkLabel}const D=E?`${ye.layoutOverride} ${E}`:ye.layoutOverride,Ee=U?g.jsx("span",{className:ye.iconWrapper,"aria-hidden":!0,children:U}):null;return g.jsx(it,{ref:n,className:D,style:C,controlMaxWidth:void 0,controlMinWidth:void 0,overStyled:o,formLayout:r,labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,labelActionArea:c,onLabelEditClick:p,label:f,assistiveText:d,assistiveWithIcon:y,error:!!m,required:v,id:S,readOnly:I,readOnlyComponent:w||sp,emptyValueComponent:N,readOnlyType:"text",readOnlyValue:Q,readOnlyNativeProps:{value:Q},activeComponent:g.jsxs("div",{className:ye.sliderContainer,"data-form-layout":r,"data-disabled":x?"true":void 0,"data-error":m?"true":void 0,children:[Ee,R&&g.jsx("span",{className:ye.minMaxGuide,children:T}),g.jsx("div",{className:ye.sliderTrackWrapper,children:g.jsx(H.Slider,{classes:W,disabled:x,value:Q,onChange:Y,onChangeCommitted:se,min:T,max:j,step:V,valueLabelDisplay:h===null?"off":"auto",valueLabelFormat:typeof h=="function"?h:void 0,...A})}),g.jsxs("div",{className:ye.rightGuideContainer,children:[!b&&g.jsx("span",{className:ye.currentValue,children:Q}),R&&g.jsx("span",{className:ye.minMaxGuide,children:j})]}),b&&g.jsx("input",{type:"number",className:ye.inputField,value:re,onChange:J,onBlur:Z,min:T,max:j,step:V??void 0,disabled:x,"data-error":m?"true":void 0})]})})});ca.displayName="Slider";const ua=O.forwardRef(function({children:t,gap:n="rec-default",align:o,justify:r,...s},i){const a=In(s),u=typeof n=="string"&&n in Re?Re[n]:n;return g.jsx(H.Stack,{ref:i,spacing:u,alignItems:o,justifyContent:r,...a,children:t})});ua.displayName="Stack";const ip="Stepper-module__root___jbSYO",ap="Stepper-module__horizontal___USHT1",lp="Stepper-module__steps___4HPO6",cp="Stepper-module__step___s2nqL",up="Stepper-module__stepLabel___N6nuy",dp="Stepper-module__stepDescription___DnDAy",pp="Stepper-module__separator___pU0No",fp="Stepper-module__vertical___d4mOs",mp="Stepper-module__large___J18-y",hp="Stepper-module__small___Ub-zb",gp="Stepper-module__stepIcon___YQHNq",yp="Stepper-module__verticalSeparator___frWc1",Ge={root:ip,horizontal:ap,steps:lp,step:cp,stepLabel:up,stepDescription:dp,separator:pp,vertical:fp,large:mp,small:hp,stepIcon:gp,verticalSeparator:yp},da=O.forwardRef(function(t,n){const{overStyled:o=!1,size:r="large",orientation:s="horizontal",className:i,style:a,...u}=t,c=X(u,o);return g.jsx("div",{className:`${Ge.root} ${s==="horizontal"?Ge.horizontal:Ge.vertical} ${r==="large"?Ge.large:Ge.small} ${i||""}`,style:a,"data-size":r,"data-orientation":s,children:g.jsx(H.Stepper,{ref:n,orientation:s,connector:g.jsx(H.StepConnector,{classes:{root:s==="horizontal"?Ge.separator:Ge.verticalSeparator}}),classes:{root:Ge.steps},...c})})});da.displayName="Stepper";const bp=O.forwardRef(function(t,n){const{overStyled:o=!1,className:r,...s}=t;return g.jsx(H.Step,{ref:n,classes:{root:Ge.step},className:r||"",...X(s,o)})});bp.displayName="Step";const vp=O.forwardRef(function(t,n){const{overStyled:o=!1,className:r,...s}=t;return g.jsx(H.StepButton,{ref:n,className:r||"",...X(s,o)})});vp.displayName="StepButton";const _p=O.forwardRef(function(t,n){const{overStyled:o=!1,className:r,description:s,...i}=t;return g.jsx(H.StepLabel,{ref:n,className:r||"",classes:{label:Ge.stepLabel,iconContainer:Ge.stepIcon},optional:s?g.jsx("div",{className:Ge.stepDescription,children:s}):i.optional,...X(i,o)})});_p.displayName="StepLabel";const xp=O.forwardRef(function(t,n){const{overStyled:o=!1,className:r,...s}=t;return g.jsx(H.StepConnector,{ref:n,className:r||"",...X(s,o)})});xp.displayName="StepConnector";const Cp="Switch-module__root___Y5Ydi",Sp="Switch-module__track___7ObdZ",Ip="Switch-module__body___Sw9Wr",Tp="Switch-module__thumb___-FTeK",Ep="Switch-module__labelWrapper___YSOwx",wp="Switch-module__label___LrH7V",Np="Switch-module__description___CClza",Op="Switch-module__error___OSPrU",$p="Switch-module__groupRoot___-Uepi",fe={root:Cp,track:Sp,body:Ip,thumb:Tp,labelWrapper:Ep,label:wp,description:Np,error:Op,groupRoot:$p},pa=O.forwardRef(function(t,n){const{overStyled:o=!1,readOnly:r,readOnlyComponent:s,disabled:i,formLayout:a,labelSize:u,controlMaxWidth:c,controlMinWidth:p,label:f,description:h,error:d,style:y,...m}=t,v=X(m,o),_=v;delete _.size,delete _.color,delete _.radius,delete _.variant;const S={root:fe.root,body:fe.body,track:fe.track,thumb:fe.thumb,trackLabel:fe.trackLabel,labelWrapper:fe.labelWrapper,label:fe.label},E=_.classNames;if(E&&typeof E=="object"&&!Array.isArray(E)){const N=E;S.root=N.root?`${fe.root} ${N.root}`:fe.root,S.body=N.body?`${fe.body} ${N.body}`:fe.body,S.track=N.track?`${fe.track} ${N.track}`:fe.track,S.thumb=N.thumb?`${fe.thumb} ${N.thumb}`:fe.thumb,S.trackLabel=N.trackLabel?`${fe.trackLabel} ${N.trackLabel}`:fe.trackLabel,S.labelWrapper=N.labelWrapper?`${fe.labelWrapper} ${N.labelWrapper}`:fe.labelWrapper,S.label=N.label?`${fe.label} ${N.label}`:fe.label}const C=_.className,x=C?`${fe.root} ${C}`:fe.root;if(r&&s){const N=!!(_.checked??_.defaultChecked),L=s,F=g.jsx(L,{...t,checked:N,label:_.label});return a?g.jsx(yt,{formLayout:a,labelSize:u,controlMaxWidth:c,controlMinWidth:p,children:F}):g.jsx(g.Fragment,{children:F})}const I=g.jsx(H.Switch,{ref:n,className:f?fe.inner:`${x} ${fe.inner}`,classes:S,disabled:r||i,"data-disabled":r||i||void 0,...v}),w=f?g.jsx("div",{className:x,style:y,children:g.jsxs("div",{className:fe.body,children:[I,g.jsxs("div",{className:fe.labelWrapper,children:[g.jsx("label",{className:fe.label,htmlFor:_.id,"data-disabled":r||i?!0:void 0,children:f}),h&&g.jsx("div",{className:fe.description,"data-disabled":r||i?!0:void 0,children:h}),d&&g.jsx("div",{className:fe.error,"data-disabled":r||i?!0:void 0,children:d})]})]})}):I;return a?g.jsx(yt,{formLayout:a,labelSize:u,controlMaxWidth:c,controlMinWidth:p,children:w}):w});pa.displayName="Switch";const fa=O.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:r="stacked",labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,description:f,assistiveText:h,assistiveWithIcon:d,error:y,required:m,id:v,className:_,style:S,children:E,readOnly:C,readOnlyComponent:x,emptyValueComponent:I,value:w,defaultValue:N,onChange:L,...F}=t,U=X(F,o),b=U;return delete b.size,g.jsx(it,{className:_,style:S,controlMaxWidth:"var(--recursica_ui-kit_components_switch-item_properties_label-max-width)",controlMinWidth:void 0,overStyled:o,formLayout:r,labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,description:f,assistiveText:h,assistiveWithIcon:d,error:y,required:m,id:v,readOnly:C&&!!x,readOnlyComponent:x,emptyValueComponent:I,readOnlyType:"text",readOnlyValue:w!==void 0?w:N,readOnlyNativeProps:t,activeComponent:g.jsx(H.FormGroup,{ref:n,...U,className:`${fe.groupRoot} ${U.className||""}`.trim(),"data-layout":r,children:E})})});fa.displayName="SwitchGroup";const Rp="Table-module__root___aMWWS",kp={root:Rp},ma=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t),s=r.className,i=kp.root,a=s?`${i} ${s}`:i;return g.jsx(H.Table,{ref:o,className:a,...r})});ma.displayName="Table";const ha=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t);return g.jsx(H.TableBody,{ref:o,...r})});ha.displayName="TableBody";const ga=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t);return g.jsx(H.TableCell,{ref:o,...r})});ga.displayName="TableCell";const ya=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t);return g.jsx(H.TableContainer,{ref:o,...r})});ya.displayName="TableContainer";const ba=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t);return g.jsx(H.TableHead,{ref:o,...r})});ba.displayName="TableHead";const va=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t);return g.jsx(H.TableRow,{ref:o,...r})});va.displayName="TableRow";const _a=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t);return g.jsx(H.TableFooter,{ref:o,...r})});_a.displayName="TableFooter";const xa=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t);return g.jsx(H.TableSortLabel,{ref:o,...r})});xa.displayName="TableSortLabel";const Mt=ma;Mt.Body=ha;Mt.Cell=ga;Mt.Container=ya;Mt.Head=ba;Mt.Row=va;Mt.Footer=_a;Mt.SortLabel=xa;const Mp="Tabs-module__root___-VKVI",Pp="Tabs-module__list___qRVME",Ap="Tabs-module__tab___IdDYc",jp="Tabs-module__panel___08i9c",bn={root:Mp,list:Pp,tab:Ap,panel:jp};function Lp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mn={exports:{}},Pn={exports:{}},me={};/** @license React v16.13.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/var
|
|
8
|
+
*/var fs;function Dp(){if(fs)return me;fs=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,r=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(x){if(typeof x=="object"&&x!==null){var I=x.$$typeof;switch(I){case t:switch(x=x.type,x){case u:case c:case o:case s:case r:case f:return x;default:switch(x=x&&x.$$typeof,x){case a:case p:case y:case d:case i:return x;default:return I}}case n:return I}}}function C(x){return E(x)===c}return me.AsyncMode=u,me.ConcurrentMode=c,me.ContextConsumer=a,me.ContextProvider=i,me.Element=t,me.ForwardRef=p,me.Fragment=o,me.Lazy=y,me.Memo=d,me.Portal=n,me.Profiler=s,me.StrictMode=r,me.Suspense=f,me.isAsyncMode=function(x){return C(x)||E(x)===u},me.isConcurrentMode=C,me.isContextConsumer=function(x){return E(x)===a},me.isContextProvider=function(x){return E(x)===i},me.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},me.isForwardRef=function(x){return E(x)===p},me.isFragment=function(x){return E(x)===o},me.isLazy=function(x){return E(x)===y},me.isMemo=function(x){return E(x)===d},me.isPortal=function(x){return E(x)===n},me.isProfiler=function(x){return E(x)===s},me.isStrictMode=function(x){return E(x)===r},me.isSuspense=function(x){return E(x)===f},me.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===o||x===c||x===s||x===r||x===f||x===h||typeof x=="object"&&x!==null&&(x.$$typeof===y||x.$$typeof===d||x.$$typeof===i||x.$$typeof===a||x.$$typeof===p||x.$$typeof===v||x.$$typeof===_||x.$$typeof===S||x.$$typeof===m)},me.typeOf=E,me}var he={};/** @license React v16.13.1
|
|
9
9
|
* react-is.development.js
|
|
10
10
|
*
|
|
11
11
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
12
|
*
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/var
|
|
15
|
+
*/var ms;function Vp(){return ms||(ms=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,r=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(D){return typeof D=="string"||typeof D=="function"||D===o||D===c||D===s||D===r||D===f||D===h||typeof D=="object"&&D!==null&&(D.$$typeof===y||D.$$typeof===d||D.$$typeof===i||D.$$typeof===a||D.$$typeof===p||D.$$typeof===v||D.$$typeof===_||D.$$typeof===S||D.$$typeof===m)}function C(D){if(typeof D=="object"&&D!==null){var Ee=D.$$typeof;switch(Ee){case t:var te=D.type;switch(te){case u:case c:case o:case s:case r:case f:return te;default:var Te=te&&te.$$typeof;switch(Te){case a:case p:case y:case d:case i:return Te;default:return Ee}}case n:return Ee}}}var x=u,I=c,w=a,N=i,L=t,F=p,U=o,b=y,R=d,T=n,j=s,V=r,K=f,se=!1;function oe(D){return se||(se=!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.")),M(D)||C(D)===u}function M(D){return C(D)===c}function z(D){return C(D)===a}function Q(D){return C(D)===i}function re(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function ne(D){return C(D)===p}function Y(D){return C(D)===o}function J(D){return C(D)===y}function Z(D){return C(D)===d}function A(D){return C(D)===n}function P(D){return C(D)===s}function W(D){return C(D)===r}function ie(D){return C(D)===f}he.AsyncMode=x,he.ConcurrentMode=I,he.ContextConsumer=w,he.ContextProvider=N,he.Element=L,he.ForwardRef=F,he.Fragment=U,he.Lazy=b,he.Memo=R,he.Portal=T,he.Profiler=j,he.StrictMode=V,he.Suspense=K,he.isAsyncMode=oe,he.isConcurrentMode=M,he.isContextConsumer=z,he.isContextProvider=Q,he.isElement=re,he.isForwardRef=ne,he.isFragment=Y,he.isLazy=J,he.isMemo=Z,he.isPortal=A,he.isProfiler=P,he.isStrictMode=W,he.isSuspense=ie,he.isValidElementType=E,he.typeOf=C})()),he}var hs;function Ca(){return hs||(hs=1,process.env.NODE_ENV==="production"?Pn.exports=Dp():Pn.exports=Vp()),Pn.exports}/*
|
|
16
16
|
object-assign
|
|
17
17
|
(c) Sindre Sorhus
|
|
18
18
|
@license MIT
|
|
19
|
-
*/var
|
|
20
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
19
|
+
*/var $o,gs;function Bp(){if(gs)return $o;gs=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function r(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var i={},a=0;a<10;a++)i["_"+String.fromCharCode(a)]=a;var u=Object.getOwnPropertyNames(i).map(function(p){return i[p]});if(u.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(p){c[p]=p}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $o=r()?Object.assign:function(s,i){for(var a,u=o(s),c,p=1;p<arguments.length;p++){a=Object(arguments[p]);for(var f in a)t.call(a,f)&&(u[f]=a[f]);if(e){c=e(a);for(var h=0;h<c.length;h++)n.call(a,c[h])&&(u[c[h]]=a[c[h]])}}return u},$o}var Ro,ys;function Er(){if(ys)return Ro;ys=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ro=e,Ro}var ko,bs;function Sa(){return bs||(bs=1,ko=Function.call.bind(Object.prototype.hasOwnProperty)),ko}var Mo,vs;function Fp(){if(vs)return Mo;vs=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Er(),n={},o=Sa();e=function(s){var i="Warning: "+s;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function r(s,i,a,u,c){if(process.env.NODE_ENV!=="production"){for(var p in s)if(o(s,p)){var f;try{if(typeof s[p]!="function"){var h=Error((u||"React class")+": "+a+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=s[p](i,p,u,a,null,t)}catch(y){f=y}if(f&&!(f instanceof Error)&&e((u||"React class")+": type specification of "+a+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var d=c?c():"";e("Failed "+a+" type: "+f.message+(d??""))}}}}return r.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Mo=r,Mo}var Po,_s;function zp(){if(_s)return Po;_s=1;var e=Ca(),t=Bp(),n=Er(),o=Sa(),r=Fp(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(a){var u="Warning: "+a;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function i(){return null}return Po=function(a,u){var c=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function f(M){var z=M&&(c&&M[c]||M[p]);if(typeof z=="function")return z}var h="<<anonymous>>",d={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:S(),arrayOf:E,element:C(),elementType:x(),instanceOf:I,node:F(),objectOf:N,oneOf:w,oneOfType:L,shape:b,exact:R};function y(M,z){return M===z?M!==0||1/M===1/z:M!==M&&z!==z}function m(M,z){this.message=M,this.data=z&&typeof z=="object"?z:{},this.stack=""}m.prototype=Error.prototype;function v(M){if(process.env.NODE_ENV!=="production")var z={},Q=0;function re(Y,J,Z,A,P,W,ie){if(A=A||h,W=W||Z,ie!==n){if(u){var D=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 D.name="Invariant Violation",D}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ee=A+":"+Z;!z[Ee]&&Q<3&&(s("You are manually calling a React.PropTypes validation function for the `"+W+"` prop on `"+A+"`. 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."),z[Ee]=!0,Q++)}}return J[Z]==null?Y?J[Z]===null?new m("The "+P+" `"+W+"` is marked as required "+("in `"+A+"`, but its value is `null`.")):new m("The "+P+" `"+W+"` is marked as required in "+("`"+A+"`, but its value is `undefined`.")):null:M(J,Z,A,P,W)}var ne=re.bind(null,!1);return ne.isRequired=re.bind(null,!0),ne}function _(M){function z(Q,re,ne,Y,J,Z){var A=Q[re],P=V(A);if(P!==M){var W=K(A);return new m("Invalid "+Y+" `"+J+"` of type "+("`"+W+"` supplied to `"+ne+"`, expected ")+("`"+M+"`."),{expectedType:M})}return null}return v(z)}function S(){return v(i)}function E(M){function z(Q,re,ne,Y,J){if(typeof M!="function")return new m("Property `"+J+"` of component `"+ne+"` has invalid PropType notation inside arrayOf.");var Z=Q[re];if(!Array.isArray(Z)){var A=V(Z);return new m("Invalid "+Y+" `"+J+"` of type "+("`"+A+"` supplied to `"+ne+"`, expected an array."))}for(var P=0;P<Z.length;P++){var W=M(Z,P,ne,Y,J+"["+P+"]",n);if(W instanceof Error)return W}return null}return v(z)}function C(){function M(z,Q,re,ne,Y){var J=z[Q];if(!a(J)){var Z=V(J);return new m("Invalid "+ne+" `"+Y+"` of type "+("`"+Z+"` supplied to `"+re+"`, expected a single ReactElement."))}return null}return v(M)}function x(){function M(z,Q,re,ne,Y){var J=z[Q];if(!e.isValidElementType(J)){var Z=V(J);return new m("Invalid "+ne+" `"+Y+"` of type "+("`"+Z+"` supplied to `"+re+"`, expected a single ReactElement type."))}return null}return v(M)}function I(M){function z(Q,re,ne,Y,J){if(!(Q[re]instanceof M)){var Z=M.name||h,A=oe(Q[re]);return new m("Invalid "+Y+" `"+J+"` of type "+("`"+A+"` supplied to `"+ne+"`, expected ")+("instance of `"+Z+"`."))}return null}return v(z)}function w(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("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])."):s("Invalid argument supplied to oneOf, expected an array.")),i;function z(Q,re,ne,Y,J){for(var Z=Q[re],A=0;A<M.length;A++)if(y(Z,M[A]))return null;var P=JSON.stringify(M,function(ie,D){var Ee=K(D);return Ee==="symbol"?String(D):D});return new m("Invalid "+Y+" `"+J+"` of value `"+String(Z)+"` "+("supplied to `"+ne+"`, expected one of "+P+"."))}return v(z)}function N(M){function z(Q,re,ne,Y,J){if(typeof M!="function")return new m("Property `"+J+"` of component `"+ne+"` has invalid PropType notation inside objectOf.");var Z=Q[re],A=V(Z);if(A!=="object")return new m("Invalid "+Y+" `"+J+"` of type "+("`"+A+"` supplied to `"+ne+"`, expected an object."));for(var P in Z)if(o(Z,P)){var W=M(Z,P,ne,Y,J+"."+P,n);if(W instanceof Error)return W}return null}return v(z)}function L(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var z=0;z<M.length;z++){var Q=M[z];if(typeof Q!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+se(Q)+" at index "+z+"."),i}function re(ne,Y,J,Z,A){for(var P=[],W=0;W<M.length;W++){var ie=M[W],D=ie(ne,Y,J,Z,A,n);if(D==null)return null;D.data&&o(D.data,"expectedType")&&P.push(D.data.expectedType)}var Ee=P.length>0?", expected one of type ["+P.join(", ")+"]":"";return new m("Invalid "+Z+" `"+A+"` supplied to "+("`"+J+"`"+Ee+"."))}return v(re)}function F(){function M(z,Q,re,ne,Y){return T(z[Q])?null:new m("Invalid "+ne+" `"+Y+"` supplied to "+("`"+re+"`, expected a ReactNode."))}return v(M)}function U(M,z,Q,re,ne){return new m((M||"React class")+": "+z+" type `"+Q+"."+re+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ne+"`.")}function b(M){function z(Q,re,ne,Y,J){var Z=Q[re],A=V(Z);if(A!=="object")return new m("Invalid "+Y+" `"+J+"` of type `"+A+"` "+("supplied to `"+ne+"`, expected `object`."));for(var P in M){var W=M[P];if(typeof W!="function")return U(ne,Y,J,P,K(W));var ie=W(Z,P,ne,Y,J+"."+P,n);if(ie)return ie}return null}return v(z)}function R(M){function z(Q,re,ne,Y,J){var Z=Q[re],A=V(Z);if(A!=="object")return new m("Invalid "+Y+" `"+J+"` of type `"+A+"` "+("supplied to `"+ne+"`, expected `object`."));var P=t({},Q[re],M);for(var W in P){var ie=M[W];if(o(M,W)&&typeof ie!="function")return U(ne,Y,J,W,K(ie));if(!ie)return new m("Invalid "+Y+" `"+J+"` key `"+W+"` supplied to `"+ne+"`.\nBad object: "+JSON.stringify(Q[re],null," ")+`
|
|
20
|
+
Valid keys: `+JSON.stringify(Object.keys(M),null," "));var D=ie(Z,W,ne,Y,J+"."+W,n);if(D)return D}return null}return v(z)}function T(M){switch(typeof M){case"number":case"string":case"undefined":return!0;case"boolean":return!M;case"object":if(Array.isArray(M))return M.every(T);if(M===null||a(M))return!0;var z=f(M);if(z){var Q=z.call(M),re;if(z!==M.entries){for(;!(re=Q.next()).done;)if(!T(re.value))return!1}else for(;!(re=Q.next()).done;){var ne=re.value;if(ne&&!T(ne[1]))return!1}}else return!1;return!0;default:return!1}}function j(M,z){return M==="symbol"?!0:z?z["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&z instanceof Symbol:!1}function V(M){var z=typeof M;return Array.isArray(M)?"array":M instanceof RegExp?"object":j(z,M)?"symbol":z}function K(M){if(typeof M>"u"||M===null)return""+M;var z=V(M);if(z==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return z}function se(M){var z=K(M);switch(z){case"array":case"object":return"an "+z;case"boolean":case"date":case"regexp":return"a "+z;default:return z}}function oe(M){return!M.constructor||!M.constructor.name?h:M.constructor.name}return d.checkPropTypes=r,d.resetWarningCache=r.resetWarningCache,d.PropTypes=d,d},Po}var Ao,xs;function Wp(){if(xs)return Ao;xs=1;var e=Er();function t(){}function n(){}return n.resetWarningCache=t,Ao=function(){function o(i,a,u,c,p,f){if(f!==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 r(){return o}var s={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Ao}var Cs;function Up(){if(Cs)return Mn.exports;if(Cs=1,process.env.NODE_ENV!=="production"){var e=Ca(),t=!0;Mn.exports=zp()(e.isElement,t)}else Mn.exports=Wp()();return Mn.exports}var Gp=Up();const l=Lp(Gp);function Ia(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Ia(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="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Ia(e))&&(o&&(o+=" "),o+=t);return o}function Un(e,t,n=!1){const o={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const s=r;if(s==="components"||s==="slots")o[s]={...e[s],...o[s]};else if(s==="componentsProps"||s==="slotProps"){const i=e[s],a=t[s];if(!a)o[s]=i||{};else if(!i)o[s]=a;else{o[s]={...a};for(const u in i)if(Object.prototype.hasOwnProperty.call(i,u)){const c=u;o[s][c]=Un(i[c],a[c],n)}}}else s==="className"&&n&&t.className?o.className=ue(e==null?void 0:e.className,t==null?void 0:t.className):s==="style"&&n&&t.style?o.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:o[s]===void 0&&(o[s]=e[s])}return o}function We(e,t,n=void 0){const o={};for(const r in e){const s=e[r];let i="",a=!0;for(let u=0;u<s.length;u+=1){const c=s[u];c&&(i+=(a===!0?"":" ")+t(c),a=!1,n&&n[c]&&(i+=" "+n[c]))}o[r]=i}return o}const Ss=e=>e,qp=()=>{let e=Ss;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ss}}},Hp=qp();function Wt(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 _e(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Wt(7));return e.charAt(0).toUpperCase()+e.slice(1)}var An={exports:{}},xe={};/**
|
|
21
21
|
* @license React
|
|
22
22
|
* react-is.production.js
|
|
23
23
|
*
|
|
@@ -25,7 +25,7 @@ Valid keys: `+JSON.stringify(Object.keys(S),null," "));var j=ye(K,U,G,X,H+"."+U
|
|
|
25
25
|
*
|
|
26
26
|
* This source code is licensed under the MIT license found in the
|
|
27
27
|
* LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/var
|
|
28
|
+
*/var Is;function Kp(){if(Is)return xe;Is=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),d=Symbol.for("react.client.reference");function y(m){if(typeof m=="object"&&m!==null){var v=m.$$typeof;switch(v){case e:switch(m=m.type,m){case n:case r:case o:case u:case c:case h:return m;default:switch(m=m&&m.$$typeof,m){case i:case a:case f:case p:return m;case s:return m;default:return v}}case t:return v}}}return xe.ContextConsumer=s,xe.ContextProvider=i,xe.Element=e,xe.ForwardRef=a,xe.Fragment=n,xe.Lazy=f,xe.Memo=p,xe.Portal=t,xe.Profiler=r,xe.StrictMode=o,xe.Suspense=u,xe.SuspenseList=c,xe.isContextConsumer=function(m){return y(m)===s},xe.isContextProvider=function(m){return y(m)===i},xe.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},xe.isForwardRef=function(m){return y(m)===a},xe.isFragment=function(m){return y(m)===n},xe.isLazy=function(m){return y(m)===f},xe.isMemo=function(m){return y(m)===p},xe.isPortal=function(m){return y(m)===t},xe.isProfiler=function(m){return y(m)===r},xe.isStrictMode=function(m){return y(m)===o},xe.isSuspense=function(m){return y(m)===u},xe.isSuspenseList=function(m){return y(m)===c},xe.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===r||m===o||m===u||m===c||typeof m=="object"&&m!==null&&(m.$$typeof===f||m.$$typeof===p||m.$$typeof===i||m.$$typeof===s||m.$$typeof===a||m.$$typeof===d||m.getModuleId!==void 0)},xe.typeOf=y,xe}var Ce={};/**
|
|
29
29
|
* @license React
|
|
30
30
|
* react-is.development.js
|
|
31
31
|
*
|
|
@@ -33,23 +33,23 @@ Valid keys: `+JSON.stringify(Object.keys(S),null," "));var j=ye(K,U,G,X,H+"."+U
|
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the MIT license found in the
|
|
35
35
|
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/var
|
|
37
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`);return null}const[,o,
|
|
36
|
+
*/var Ts;function Yp(){return Ts||(Ts=1,process.env.NODE_ENV!=="production"&&(function(){function e(m){if(typeof m=="object"&&m!==null){var v=m.$$typeof;switch(v){case t:switch(m=m.type,m){case o:case s:case r:case c:case p:case d:return m;default:switch(m=m&&m.$$typeof,m){case a:case u:case h:case f:return m;case i:return m;default:return v}}case n:return v}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");Ce.ContextConsumer=i,Ce.ContextProvider=a,Ce.Element=t,Ce.ForwardRef=u,Ce.Fragment=o,Ce.Lazy=h,Ce.Memo=f,Ce.Portal=n,Ce.Profiler=s,Ce.StrictMode=r,Ce.Suspense=c,Ce.SuspenseList=p,Ce.isContextConsumer=function(m){return e(m)===i},Ce.isContextProvider=function(m){return e(m)===a},Ce.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},Ce.isForwardRef=function(m){return e(m)===u},Ce.isFragment=function(m){return e(m)===o},Ce.isLazy=function(m){return e(m)===h},Ce.isMemo=function(m){return e(m)===f},Ce.isPortal=function(m){return e(m)===n},Ce.isProfiler=function(m){return e(m)===s},Ce.isStrictMode=function(m){return e(m)===r},Ce.isSuspense=function(m){return e(m)===c},Ce.isSuspenseList=function(m){return e(m)===p},Ce.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===o||m===s||m===r||m===c||m===p||typeof m=="object"&&m!==null&&(m.$$typeof===h||m.$$typeof===f||m.$$typeof===a||m.$$typeof===i||m.$$typeof===u||m.$$typeof===y||m.getModuleId!==void 0)},Ce.typeOf=e})()),Ce}var Es;function Xp(){return Es||(Es=1,process.env.NODE_ENV==="production"?An.exports=Kp():An.exports=Yp()),An.exports}var Gn=Xp();function rt(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 Ta(e){if(k.isValidElement(e)||Gn.isValidElementType(e)||!rt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Ta(e[n])}),t}function ze(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return rt(e)&&rt(t)&&Object.keys(t).forEach(r=>{k.isValidElement(t[r])||Gn.isValidElementType(t[r])?o[r]=t[r]:rt(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&rt(e[r])?o[r]=ze(e[r],t[r],n):n.clone?o[r]=rt(t[r])?Ta(t[r]):t[r]:o[r]=t[r]}),o}function vn(e,t){return t?ze(e,t,{clone:!1}):e}const Pt=process.env.NODE_ENV!=="production"?l.oneOfType([l.number,l.string,l.object,l.array]):{};function ws(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,r)=>{var i,a;const s=/min-width:\s*([0-9.]+)/;return+(((i=o.match(s))==null?void 0:i[1])||0)-+(((a=r.match(s))==null?void 0:a[1])||0)});return n.length?n.reduce((o,r)=>{const s=t[r];return delete o[r],o[r]=s,o},{...t}):t}function Qp(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Jp(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>\`.
|
|
37
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`);return null}const[,o,r]=n,s=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(s)}function Zp(e){const t=(s,i)=>s.replace("@media",i?`@container ${i}`:"@container");function n(s,i){s.up=(...a)=>t(e.breakpoints.up(...a),i),s.down=(...a)=>t(e.breakpoints.down(...a),i),s.between=(...a)=>t(e.breakpoints.between(...a),i),s.only=(...a)=>t(e.breakpoints.only(...a),i),s.not=(...a)=>{const u=t(e.breakpoints.not(...a),i);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const o={},r=s=>(n(o,s),o);return n(r),{...e,containerQueries:r}}const uo={xs:0,sm:600,md:900,lg:1200,xl:1536},Ns={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${uo[e]}px)`},ef={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:uo[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function vt(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const s=o.breakpoints||Ns;return t.reduce((i,a,u)=>(i[s.up(s.keys[u])]=n(t[u]),i),{})}if(typeof t=="object"){const s=o.breakpoints||Ns;return Object.keys(t).reduce((i,a)=>{if(Qp(s.keys,a)){const u=Jp(o.containerQueries?o:ef,a);u&&(i[u]=n(t[a],a))}else if(Object.keys(s.values||uo).includes(a)){const u=s.up(a);i[u]=n(t[a],a)}else{const u=a;i[u]=t[u]}return i},{})}return n(t)}function tf(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((o,r)=>{const s=e.up(r);return o[s]={},o},{}))||{}}function Os(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function po(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((r,s)=>r&&r[s]?r[s]:null,e);if(o!=null)return o}return t.split(".").reduce((o,r)=>o&&o[r]!=null?o[r]:null,e)}function qn(e,t,n,o=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||o:r=po(e,n)||o,t&&(r=t(r,o,e)),r}function $e(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,s=i=>{if(i[t]==null)return null;const a=i[t],u=i.theme,c=po(u,o)||{};return vt(i,a,f=>{let h=qn(c,r,f);return f===h&&typeof f=="string"&&(h=qn(c,r,`${t}${f==="default"?"":_e(f)}`,f)),n===!1?h:{[n]:h}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:Pt}:{},s.filterProps=[t],s}function nf(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const of={m:"margin",p:"padding"},rf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},$s={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},sf=nf(e=>{if(e.length>2)if($s[e])e=$s[e];else return[e];const[t,n]=e.split(""),o=of[t],r=rf[n]||"";return Array.isArray(r)?r.map(s=>o+s):[o+r]}),fo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],mo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],af=[...fo,...mo];function Tn(e,t,n,o){const r=po(e,t,!0)??n;return typeof r=="number"||typeof r=="string"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${s}.`),typeof r=="string"?r.startsWith("var(")&&s===0?0:r.startsWith("var(")&&s===1?r:`calc(${s} * ${r})`:r*s):Array.isArray(r)?s=>{if(typeof s=="string")return s;const i=Math.abs(s);process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>r.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(r)}.`,`${i} > ${r.length-1}, you need to add the missing values.`].join(`
|
|
38
38
|
`)):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(`
|
|
39
|
-
`)));const
|
|
40
|
-
`)),()=>{})}function Ur(e){return Et(e,"spacing",8,"spacing")}function Ot(e,t){return typeof t=="string"||t==null?t:e(t)}function jc(e,t){return r=>e.reduce((o,n)=>(o[n]=Ot(t,r),o),{})}function kc(e,t,r,o){if(!t.includes(r))return null;const n=Rc(r),s=jc(n,o),a=e[r];return Ve(e,a,s)}function zn(e,t){const r=Ur(e.theme);return Object.keys(e).map(o=>kc(e,t,o,r)).reduce(Tt,{})}function ue(e){return zn(e,Jt)}ue.propTypes=process.env.NODE_ENV!=="production"?Jt.reduce((e,t)=>(e[t]=tt,e),{}):{};ue.filterProps=Jt;function pe(e){return zn(e,Zt)}pe.propTypes=process.env.NODE_ENV!=="production"?Zt.reduce((e,t)=>(e[t]=tt,e),{}):{};pe.filterProps=Zt;process.env.NODE_ENV!=="production"&&Pc.reduce((e,t)=>(e[t]=tt,e),{});function er(...e){const t=e.reduce((o,n)=>(n.filterProps.forEach(s=>{o[s]=n}),o),{}),r=o=>Object.keys(o).reduce((n,s)=>t[s]?Tt(n,t[s](o)):n,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,n)=>Object.assign(o,n.propTypes),{}):{},r.filterProps=e.reduce((o,n)=>o.concat(n.filterProps),[]),r}function we(e){return typeof e!="number"?e:`${e}px solid`}function Ne(e,t){return me({prop:e,themeKey:"borders",transform:t})}const Ic=Ne("border",we),Mc=Ne("borderTop",we),Lc=Ne("borderRight",we),Fc=Ne("borderBottom",we),Wc=Ne("borderLeft",we),Bc=Ne("borderColor"),Dc=Ne("borderTopColor"),Vc=Ne("borderRightColor"),zc=Ne("borderBottomColor"),Gc=Ne("borderLeftColor"),Uc=Ne("outline",we),qc=Ne("outlineColor"),tr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Et(e.theme,"shape.borderRadius",4,"borderRadius"),r=o=>({borderRadius:Ot(t,o)});return Ve(e,e.borderRadius,r)}return null};tr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:tt}:{};tr.filterProps=["borderRadius"];er(Ic,Mc,Lc,Fc,Wc,Bc,Dc,Vc,zc,Gc,tr,Uc,qc);const rr=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Et(e.theme,"spacing",8,"gap"),r=o=>({gap:Ot(t,o)});return Ve(e,e.gap,r)}return null};rr.propTypes=process.env.NODE_ENV!=="production"?{gap:tt}:{};rr.filterProps=["gap"];const or=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Et(e.theme,"spacing",8,"columnGap"),r=o=>({columnGap:Ot(t,o)});return Ve(e,e.columnGap,r)}return null};or.propTypes=process.env.NODE_ENV!=="production"?{columnGap:tt}:{};or.filterProps=["columnGap"];const nr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Et(e.theme,"spacing",8,"rowGap"),r=o=>({rowGap:Ot(t,o)});return Ve(e,e.rowGap,r)}return null};nr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:tt}:{};nr.filterProps=["rowGap"];const Hc=me({prop:"gridColumn"}),Yc=me({prop:"gridRow"}),Kc=me({prop:"gridAutoFlow"}),Xc=me({prop:"gridAutoColumns"}),Qc=me({prop:"gridAutoRows"}),Jc=me({prop:"gridTemplateColumns"}),Zc=me({prop:"gridTemplateRows"}),ed=me({prop:"gridTemplateAreas"}),td=me({prop:"gridArea"});er(rr,or,nr,Hc,Yc,Kc,Xc,Qc,Jc,Zc,ed,td);function ht(e,t){return t==="grey"?t:e}const rd=me({prop:"color",themeKey:"palette",transform:ht}),od=me({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ht}),nd=me({prop:"backgroundColor",themeKey:"palette",transform:ht});er(rd,od,nd);function Ce(e){return e<=1&&e!==0?`${e*100}%`:e}const sd=me({prop:"width",transform:Ce}),qr=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,s,a,i,d;const o=((a=(s=(n=e.theme)==null?void 0:n.breakpoints)==null?void 0:s.values)==null?void 0:a[r])||Xt[r];return o?((d=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:d.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Ce(r)}};return Ve(e,e.maxWidth,t)}return null};qr.filterProps=["maxWidth"];const ad=me({prop:"minWidth",transform:Ce}),id=me({prop:"height",transform:Ce}),ld=me({prop:"maxHeight",transform:Ce}),cd=me({prop:"minHeight",transform:Ce});me({prop:"size",cssProperty:"width",transform:Ce});me({prop:"size",cssProperty:"height",transform:Ce});const dd=me({prop:"boxSizing"});er(sd,qr,ad,id,ld,cd,dd);const sr={border:{themeKey:"borders",transform:we},borderTop:{themeKey:"borders",transform:we},borderRight:{themeKey:"borders",transform:we},borderBottom:{themeKey:"borders",transform:we},borderLeft:{themeKey:"borders",transform:we},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:we},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:tr},color:{themeKey:"palette",transform:ht},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ht},backgroundColor:{themeKey:"palette",transform:ht},p:{style:pe},pt:{style:pe},pr:{style:pe},pb:{style:pe},pl:{style:pe},px:{style:pe},py:{style:pe},padding:{style:pe},paddingTop:{style:pe},paddingRight:{style:pe},paddingBottom:{style:pe},paddingLeft:{style:pe},paddingX:{style:pe},paddingY:{style:pe},paddingInline:{style:pe},paddingInlineStart:{style:pe},paddingInlineEnd:{style:pe},paddingBlock:{style:pe},paddingBlockStart:{style:pe},paddingBlockEnd:{style:pe},m:{style:ue},mt:{style:ue},mr:{style:ue},mb:{style:ue},ml:{style:ue},mx:{style:ue},my:{style:ue},margin:{style:ue},marginTop:{style:ue},marginRight:{style:ue},marginBottom:{style:ue},marginLeft:{style:ue},marginX:{style:ue},marginY:{style:ue},marginInline:{style:ue},marginInlineStart:{style:ue},marginInlineEnd:{style:ue},marginBlock:{style:ue},marginBlockStart:{style:ue},marginBlockEnd:{style:ue},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:rr},rowGap:{style:nr},columnGap:{style:or},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ce},maxWidth:{style:qr},minWidth:{transform:Ce},height:{transform:Ce},maxHeight:{transform:Ce},minHeight:{transform:Ce},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 ud(...e){const t=e.reduce((o,n)=>o.concat(Object.keys(n)),[]),r=new Set(t);return e.every(o=>r.size===Object.keys(o).length)}function pd(e,t){return typeof e=="function"?e(t):e}function fd(){function e(r,o,n,s){const a={[r]:o,theme:n},i=s[r];if(!i)return{[r]:o};const{cssProperty:d=r,themeKey:p,transform:f,style:h}=i;if(o==null)return null;if(p==="typography"&&o==="inherit")return{[r]:o};const y=Qt(n,p)||{};return h?h(a):Ve(a,o,_=>{let m=Bt(y,f,_);return _===m&&typeof _=="string"&&(m=Bt(y,f,`${r}${_==="default"?"":Kt(_)}`,_)),d===!1?m:{[d]:m}})}function t(r){const{sx:o,theme:n={},nested:s}=r||{};if(!o)return null;const a=n.unstable_sxConfig??sr;function i(d){let p=d;if(typeof d=="function")p=d(n);else if(typeof d!="object")return d;if(!p)return null;const f=Nc(n.breakpoints),h=Object.keys(f);let y=f;return Object.keys(p).forEach(u=>{const _=pd(p[u],n);if(_!=null)if(typeof _=="object")if(a[u])y=Tt(y,e(u,_,n,a));else{const m=Ve({theme:n},_,g=>({[u]:g}));ud(m,_)?y[u]=t({sx:_,theme:n,nested:!0}):y=Tt(y,m)}else y=Tt(y,e(u,_,n,a))}),!s&&n.modularCssLayers?{"@layer sx":Co(n,So(h,y))}:Co(n,So(h,y))}return Array.isArray(o)?o.map(i):i(o)}return t}const yt=fd();yt.filterProps=["sx"];function md(e){for(var t=0,r,o=0,n=e.length;n>=4;++o,n-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){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 hd={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 yd(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var _d=/[A-Z]|^ms/g,gd=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Gn=function(t){return t.charCodeAt(1)===45},wo=function(t){return t!=null&&typeof t!="boolean"},br=yd(function(e){return Gn(e)?e:e.replace(_d,"-$&").toLowerCase()}),No=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(gd,function(o,n,s){return Qe={name:n,styles:s,next:Qe},n})}return hd[t]!==1&&!Gn(t)&&typeof r=="number"&&r!==0?r+"px":r};function Dt(e,t,r){if(r==null)return"";var o=r;if(o.__emotion_styles!==void 0)return o;switch(typeof r){case"boolean":return"";case"object":{var n=r;if(n.anim===1)return Qe={name:n.name,styles:n.styles,next:Qe},n.name;var s=r;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)Qe={name:a.name,styles:a.styles,next:Qe},a=a.next;var i=s.styles+";";return i}return bd(e,t,r)}}var d=r;return d}function bd(e,t,r){var o="";if(Array.isArray(r))for(var n=0;n<r.length;n++)o+=Dt(e,t,r[n])+";";else for(var s in r){var a=r[s];if(typeof a!="object"){var i=a;wo(i)&&(o+=br(s)+":"+No(s,i)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var d=0;d<a.length;d++)wo(a[d])&&(o+=br(s)+":"+No(s,a[d])+";");else{var p=Dt(e,t,a);switch(s){case"animation":case"animationName":{o+=br(s)+":"+p+";";break}default:o+=s+"{"+p+"}"}}}return o}var Eo=/label:\s*([^\s;{]+)\s*(;|$)/g,Qe;function vd(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,n="";Qe=void 0;var s=e[0];if(s==null||s.raw===void 0)o=!1,n+=Dt(r,t,s);else{var a=s;n+=a[0]}for(var i=1;i<e.length;i++)if(n+=Dt(r,t,e[i]),o){var d=s;n+=d[i]}Eo.lastIndex=0;for(var p="",f;(f=Eo.exec(n))!==null;)p+="-"+f[1];var h=md(n)+p;return{name:h,styles:n,next:Qe}}/**
|
|
39
|
+
`)));const a=r[i];return s>=0?a:typeof a=="number"?-a:typeof a=="string"&&a.startsWith("var(")?`calc(-1 * ${a})`:`-${a}`}:typeof r=="function"?r:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${r}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
40
|
+
`)),()=>{})}function wr(e){return Tn(e,"spacing",8,"spacing")}function En(e,t){return typeof t=="string"||t==null?t:e(t)}function lf(e,t){return n=>e.reduce((o,r)=>(o[r]=En(t,n),o),{})}function cf(e,t,n,o){if(!t.includes(n))return null;const r=sf(n),s=lf(r,o),i=e[n];return vt(e,i,s)}function Ea(e,t){const n=wr(e.theme);return Object.keys(e).map(o=>cf(e,t,o,n)).reduce(vn,{})}function we(e){return Ea(e,fo)}we.propTypes=process.env.NODE_ENV!=="production"?fo.reduce((e,t)=>(e[t]=Pt,e),{}):{};we.filterProps=fo;function Ne(e){return Ea(e,mo)}Ne.propTypes=process.env.NODE_ENV!=="production"?mo.reduce((e,t)=>(e[t]=Pt,e),{}):{};Ne.filterProps=mo;process.env.NODE_ENV!=="production"&&af.reduce((e,t)=>(e[t]=Pt,e),{});function ho(...e){const t=e.reduce((o,r)=>(r.filterProps.forEach(s=>{o[s]=r}),o),{}),n=o=>Object.keys(o).reduce((r,s)=>t[s]?vn(r,t[s](o)):r,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,r)=>Object.assign(o,r.propTypes),{}):{},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function He(e){return typeof e!="number"?e:`${e}px solid`}function Xe(e,t){return $e({prop:e,themeKey:"borders",transform:t})}const uf=Xe("border",He),df=Xe("borderTop",He),pf=Xe("borderRight",He),ff=Xe("borderBottom",He),mf=Xe("borderLeft",He),hf=Xe("borderColor"),gf=Xe("borderTopColor"),yf=Xe("borderRightColor"),bf=Xe("borderBottomColor"),vf=Xe("borderLeftColor"),_f=Xe("outline",He),xf=Xe("outlineColor"),go=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Tn(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:En(t,o)});return vt(e,e.borderRadius,n)}return null};go.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Pt}:{};go.filterProps=["borderRadius"];ho(uf,df,pf,ff,mf,hf,gf,yf,bf,vf,go,_f,xf);const yo=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Tn(e.theme,"spacing",8,"gap"),n=o=>({gap:En(t,o)});return vt(e,e.gap,n)}return null};yo.propTypes=process.env.NODE_ENV!=="production"?{gap:Pt}:{};yo.filterProps=["gap"];const bo=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Tn(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:En(t,o)});return vt(e,e.columnGap,n)}return null};bo.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Pt}:{};bo.filterProps=["columnGap"];const vo=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Tn(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:En(t,o)});return vt(e,e.rowGap,n)}return null};vo.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Pt}:{};vo.filterProps=["rowGap"];const Cf=$e({prop:"gridColumn"}),Sf=$e({prop:"gridRow"}),If=$e({prop:"gridAutoFlow"}),Tf=$e({prop:"gridAutoColumns"}),Ef=$e({prop:"gridAutoRows"}),wf=$e({prop:"gridTemplateColumns"}),Nf=$e({prop:"gridTemplateRows"}),Of=$e({prop:"gridTemplateAreas"}),$f=$e({prop:"gridArea"});ho(yo,bo,vo,Cf,Sf,If,Tf,Ef,wf,Nf,Of,$f);function rn(e,t){return t==="grey"?t:e}const Rf=$e({prop:"color",themeKey:"palette",transform:rn}),kf=$e({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:rn}),Mf=$e({prop:"backgroundColor",themeKey:"palette",transform:rn});ho(Rf,kf,Mf);function Fe(e){return e<=1&&e!==0?`${e*100}%`:e}const Pf=$e({prop:"width",transform:Fe}),Nr=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,s,i,a,u;const o=((i=(s=(r=e.theme)==null?void 0:r.breakpoints)==null?void 0:s.values)==null?void 0:i[n])||uo[n];return o?((u=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Fe(n)}};return vt(e,e.maxWidth,t)}return null};Nr.filterProps=["maxWidth"];const Af=$e({prop:"minWidth",transform:Fe}),jf=$e({prop:"height",transform:Fe}),Lf=$e({prop:"maxHeight",transform:Fe}),Df=$e({prop:"minHeight",transform:Fe});$e({prop:"size",cssProperty:"width",transform:Fe});$e({prop:"size",cssProperty:"height",transform:Fe});const Vf=$e({prop:"boxSizing"});ho(Pf,Nr,Af,jf,Lf,Df,Vf);const wn={border:{themeKey:"borders",transform:He},borderTop:{themeKey:"borders",transform:He},borderRight:{themeKey:"borders",transform:He},borderBottom:{themeKey:"borders",transform:He},borderLeft:{themeKey:"borders",transform:He},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:He},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:go},color:{themeKey:"palette",transform:rn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:rn},backgroundColor:{themeKey:"palette",transform:rn},p:{style:Ne},pt:{style:Ne},pr:{style:Ne},pb:{style:Ne},pl:{style:Ne},px:{style:Ne},py:{style:Ne},padding:{style:Ne},paddingTop:{style:Ne},paddingRight:{style:Ne},paddingBottom:{style:Ne},paddingLeft:{style:Ne},paddingX:{style:Ne},paddingY:{style:Ne},paddingInline:{style:Ne},paddingInlineStart:{style:Ne},paddingInlineEnd:{style:Ne},paddingBlock:{style:Ne},paddingBlockStart:{style:Ne},paddingBlockEnd:{style:Ne},m:{style:we},mt:{style:we},mr:{style:we},mb:{style:we},ml:{style:we},mx:{style:we},my:{style:we},margin:{style:we},marginTop:{style:we},marginRight:{style:we},marginBottom:{style:we},marginLeft:{style:we},marginX:{style:we},marginY:{style:we},marginInline:{style:we},marginInlineStart:{style:we},marginInlineEnd:{style:we},marginBlock:{style:we},marginBlockStart:{style:we},marginBlockEnd:{style:we},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:yo},rowGap:{style:vo},columnGap:{style:bo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Fe},maxWidth:{style:Nr},minWidth:{transform:Fe},height:{transform:Fe},maxHeight:{transform:Fe},minHeight:{transform:Fe},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 Bf(...e){const t=e.reduce((o,r)=>o.concat(Object.keys(r)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function Ff(e,t){return typeof e=="function"?e(t):e}function zf(){function e(n,o,r,s){const i={[n]:o,theme:r},a=s[n];if(!a)return{[n]:o};const{cssProperty:u=n,themeKey:c,transform:p,style:f}=a;if(o==null)return null;if(c==="typography"&&o==="inherit")return{[n]:o};const h=po(r,c)||{};return f?f(i):vt(i,o,y=>{let m=qn(h,p,y);return y===m&&typeof y=="string"&&(m=qn(h,p,`${n}${y==="default"?"":_e(y)}`,y)),u===!1?m:{[u]:m}})}function t(n){const{sx:o,theme:r={},nested:s}=n||{};if(!o)return null;const i=r.unstable_sxConfig??wn;function a(u){let c=u;if(typeof u=="function")c=u(r);else if(typeof u!="object")return u;if(!c)return null;const p=tf(r.breakpoints),f=Object.keys(p);let h=p;return Object.keys(c).forEach(d=>{const y=Ff(c[d],r);if(y!=null)if(typeof y=="object")if(i[d])h=vn(h,e(d,y,r,i));else{const m=vt({theme:r},y,v=>({[d]:v}));Bf(m,y)?h[d]=t({sx:y,theme:r,nested:!0}):h=vn(h,m)}else h=vn(h,e(d,y,r,i))}),!s&&r.modularCssLayers?{"@layer sx":ws(r,Os(f,h))}:ws(r,Os(f,h))}return Array.isArray(o)?o.map(a):a(o)}return t}const un=zf();un.filterProps=["sx"];const Wf=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??wn;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Uf(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=Wf(n);let s;return Array.isArray(t)?s=[o,...t]:typeof t=="function"?s=(...i)=>{const a=t(...i);return rt(a)?{...o,...a}:o}:s={...o,...t},{...r,sx:s}}function Gf(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=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(r){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 qf={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 Hf(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Kf=/[A-Z]|^ms/g,Yf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wa=function(t){return t.charCodeAt(1)===45},Rs=function(t){return t!=null&&typeof t!="boolean"},jo=Hf(function(e){return wa(e)?e:e.replace(Kf,"-$&").toLowerCase()}),ks=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Yf,function(o,r,s){return Ot={name:r,styles:s,next:Ot},r})}return qf[t]!==1&&!wa(t)&&typeof n=="number"&&n!==0?n+"px":n};function Hn(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 r=n;if(r.anim===1)return Ot={name:r.name,styles:r.styles,next:Ot},r.name;var s=n;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)Ot={name:i.name,styles:i.styles,next:Ot},i=i.next;var a=s.styles+";";return a}return Xf(e,t,n)}}var u=n;return u}function Xf(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=Hn(e,t,n[r])+";";else for(var s in n){var i=n[s];if(typeof i!="object"){var a=i;Rs(a)&&(o+=jo(s)+":"+ks(s,a)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var u=0;u<i.length;u++)Rs(i[u])&&(o+=jo(s)+":"+ks(s,i[u])+";");else{var c=Hn(e,t,i);switch(s){case"animation":case"animationName":{o+=jo(s)+":"+c+";";break}default:o+=s+"{"+c+"}"}}}return o}var Ms=/label:\s*([^\s;{]+)\s*(;|$)/g,Ot;function Qf(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,r="";Ot=void 0;var s=e[0];if(s==null||s.raw===void 0)o=!1,r+=Hn(n,t,s);else{var i=s;r+=i[0]}for(var a=1;a<e.length;a++)if(r+=Hn(n,t,e[a]),o){var u=s;r+=u[a]}Ms.lastIndex=0;for(var c="",p;(p=Ms.exec(r))!==null;)c+="-"+p[1];var f=Gf(r)+c;return{name:f,styles:r,next:Ot}}/**
|
|
41
41
|
* @mui/styled-engine v7.3.10
|
|
42
42
|
*
|
|
43
43
|
* @license MIT
|
|
44
44
|
* This source code is licensed under the MIT license found in the
|
|
45
45
|
* LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/function
|
|
47
|
-
`)):o.some(s=>s===void 0)&&console.error(`MUI: the styled(${
|
|
48
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:
|
|
49
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:at(10,n))}else o=o.split(",");return o=o.map(s=>parseFloat(s)),{type:r,values:o,colorSpace:n}}const qd=e=>{const t=Je(e);return t.values.slice(0,3).map((r,o)=>t.type.includes("hsl")&&o!==0?`${r}%`:r).join(" ")},xt=(e,t)=>{try{return qd(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function ar(e){const{type:t,colorSpace:r}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((n,s)=>s<3?parseInt(n,10):n):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${r} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function Kn(e){e=Je(e);const{values:t}=e,r=t[0],o=t[1]/100,n=t[2]/100,s=o*Math.min(n,1-n),a=(p,f=(p+r/30)%12)=>n-s*Math.max(Math.min(f-3,9-f,1),-1);let i="rgb";const d=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(i+="a",d.push(t[3])),ar({type:i,values:d})}function $r(e){e=Je(e);let t=e.type==="hsl"||e.type==="hsla"?Je(Kn(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ro(e,t){const r=$r(e),o=$r(t);return(Math.max(r,o)+.05)/(Math.min(r,o)+.05)}function Xn(e,t){return e=Je(e),t=Yr(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ar(e)}function ot(e,t,r){try{return Xn(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function ir(e,t){if(e=Je(e),t=Yr(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return ar(e)}function se(e,t,r){try{return ir(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function lr(e,t){if(e=Je(e),t=Yr(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return ar(e)}function ae(e,t,r){try{return lr(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Hd(e,t=.15){return $r(e)>.5?ir(e,t):lr(e,t)}function Lt(e,t,r){try{return Hd(e,t)}catch{return e}}function Yd(e=""){function t(...o){if(!o.length)return"";const n=o[0];return typeof n=="string"&&!n.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}-`:""}${n}${t(...o.slice(1))})`:`, ${n}`}return(o,...n)=>`var(--${e?`${e}-`:""}${o}${t(...n)})`}const Po=(e,t,r,o=[])=>{let n=e;t.forEach((s,a)=>{a===t.length-1?Array.isArray(n)?n[Number(s)]=r:n&&typeof n=="object"&&(n[s]=r):n&&typeof n=="object"&&(n[s]||(n[s]=o.includes(s)?[]:{}),n=n[s])})},Kd=(e,t,r)=>{function o(n,s=[],a=[]){Object.entries(n).forEach(([i,d])=>{(!r||r&&!r([...s,i]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?o(d,[...s,i],Array.isArray(d)?[...a,i]:a):t([...s,i],d,a))})}o(e)},Xd=(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 xr(e,t){const{prefix:r,shouldSkipGeneratingVar:o}=t||{},n={},s={},a={};return Kd(e,(i,d,p)=>{if((typeof d=="string"||typeof d=="number")&&(!o||!o(i,d))){const f=`--${r?`${r}-`:""}${i.join("-")}`,h=Xd(i,d);Object.assign(n,{[f]:h}),Po(s,i,`var(${f})`,p),Po(a,i,`var(${f}, ${h})`,p)}},i=>i[0]==="vars"),{css:n,vars:s,varsWithDefaults:a}}function Qd(e,t={}){const{getSelector:r=$,disableCssColorScheme:o,colorSchemeSelector:n,enableContrastVars:s}=t,{colorSchemes:a={},components:i,defaultColorScheme:d="light",...p}=e,{vars:f,css:h,varsWithDefaults:y}=xr(p,t);let u=y;const _={},{[d]:m,...g}=a;if(Object.entries(g||{}).forEach(([w,v])=>{const{vars:T,css:P,varsWithDefaults:O}=xr(v,t);u=$e(u,O),_[w]={css:P,vars:T}}),m){const{css:w,vars:v,varsWithDefaults:T}=xr(m,t);u=$e(u,T),_[d]={css:w,vars:v}}function $(w,v){var P,O;let T=n;if(n==="class"&&(T=".%s"),n==="data"&&(T="[data-%s]"),n!=null&&n.startsWith("data-")&&!n.includes("%s")&&(T=`[${n}="%s"]`),w){if(T==="media")return e.defaultColorScheme===w?":root":{[`@media (prefers-color-scheme: ${((O=(P=a[w])==null?void 0:P.palette)==null?void 0:O.mode)||w})`]:{":root":v}};if(T)return e.defaultColorScheme===w?`:root, ${T.replace("%s",String(w))}`:T.replace("%s",String(w))}return":root"}return{vars:u,generateThemeVars:()=>{let w={...f};return Object.entries(_).forEach(([,{vars:v}])=>{w=$e(w,v)}),w},generateStyleSheets:()=>{var L,z;const w=[],v=e.defaultColorScheme||"light";function T(W,l){Object.keys(l).length&&w.push(typeof W=="string"?{[W]:{...l}}:W)}T(r(void 0,{...h}),h);const{[v]:P,...O}=_;if(P){const{css:W}=P,l=(z=(L=a[v])==null?void 0:L.palette)==null?void 0:z.mode,E=!o&&l?{colorScheme:l,...W}:{...W};T(r(v,{...E}),E)}return Object.entries(O).forEach(([W,{css:l}])=>{var R,F;const E=(F=(R=a[W])==null?void 0:R.palette)==null?void 0:F.mode,x=!o&&E?{colorScheme:E,...l}:{...l};T(r(W,{...x}),x)}),s&&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 Jd(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}function Zd(e,t){var r,o,n;return xe.isValidElement(e)&&t.indexOf(e.type.muiName??((n=(o=(r=e.type)==null?void 0:r._payload)==null?void 0:o.value)==null?void 0:n.muiName))!==-1}const wt={black:"#000",white:"#fff"},eu={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"},lt={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ct={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},vt={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},dt={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ut={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},pt={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Qn(){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:wt.white,default:wt.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 Jn=Qn();function Zn(){return{text:{primary:wt.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:wt.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 Sr=Zn();function jo(e,t,r,o){const n=o.light||o,s=o.dark||o*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=lr(e.main,n):t==="dark"&&(e.dark=ir(e.main,s)))}function ko(e,t,r,o,n){const s=n.light||n,a=n.dark||n*1.5;t[r]||(t.hasOwnProperty(o)?t[r]=t[o]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function tu(e="light"){return e==="dark"?{main:dt[200],light:dt[50],dark:dt[400]}:{main:dt[700],light:dt[400],dark:dt[800]}}function ru(e="light"){return e==="dark"?{main:lt[200],light:lt[50],dark:lt[400]}:{main:lt[500],light:lt[300],dark:lt[700]}}function ou(e="light"){return e==="dark"?{main:ct[500],light:ct[300],dark:ct[700]}:{main:ct[700],light:ct[400],dark:ct[800]}}function nu(e="light"){return e==="dark"?{main:ut[400],light:ut[300],dark:ut[700]}:{main:ut[700],light:ut[500],dark:ut[900]}}function su(e="light"){return e==="dark"?{main:pt[400],light:pt[300],dark:pt[700]}:{main:pt[800],light:pt[500],dark:pt[900]}}function au(e="light"){return e==="dark"?{main:vt[400],light:vt[300],dark:vt[700]}:{main:"#ed6c02",light:vt[500],dark:vt[900]}}function iu(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Kr(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:o=.2,colorSpace:n,...s}=e,a=e.primary||tu(t),i=e.secondary||ru(t),d=e.error||ou(t),p=e.info||nu(t),f=e.success||su(t),h=e.warning||au(t);function y(g){if(n)return iu(g);const $=Ro(g,Sr.text.primary)>=r?Sr.text.primary:Jn.text.primary;if(process.env.NODE_ENV!=="production"){const N=Ro(g,$);N<3&&console.error([`MUI: The contrast ratio of ${N}:1 for ${$} on ${g}`,"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(`
|
|
50
|
-
`))}return
|
|
51
|
-
The color object needs to have a \`main\` property or a \`${
|
|
52
|
-
\`color.main\` should be a string, but \`${JSON.stringify(
|
|
46
|
+
*/function Jf(e,t){const n=Zl(e,t);return process.env.NODE_ENV!=="production"?(...o)=>{const r=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
47
|
+
`)):o.some(s=>s===void 0)&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...o)}:n}function Zf(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Ps=[];function zt(e){return Ps[0]=e,Qf(Ps)}const em=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 tm(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,s=em(t),i=Object.keys(s);function a(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function u(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-o/100}${n})`}function c(h,d){const y=i.indexOf(d);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:d)-o/100}${n})`}function p(h){return i.indexOf(h)+1<i.length?c(h,i[i.indexOf(h)+1]):a(h)}function f(h){const d=i.indexOf(h);return d===0?a(i[1]):d===i.length-1?u(i[d]):c(h,i[i.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:i,values:s,up:a,down:u,between:c,only:p,not:f,unit:n,...r}}const nm={borderRadius:4};function Na(e=8,t=wr({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(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" "));return n.mui=!0,n}function om(e,t){var o;const n=this;if(n.vars){if(!((o=n.colorSchemes)!=null&&o[e])||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Or(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:s={},...i}=e,a=tm(n),u=Na(r);let c=ze({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:u,shape:{...nm,...s}},i);return c=Zp(c),c.applyStyles=om,c=t.reduce((p,f)=>ze(p,f),c),c.unstable_sxConfig={...wn,...i==null?void 0:i.unstable_sxConfig},c.unstable_sx=function(f){return un({sx:f,theme:this})},c}function rm(e){return Object.keys(e).length===0}function sm(e=null){const t=k.useContext(kt.ThemeContext);return!t||rm(t)?e:t}const im=Or();function Oa(e=im){return sm(e)}const am={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 je(e,t,n="Mui"){const o=am[t];return o?`${n}-${o}`:`${Hp.generate(e)}-${t}`}function Pe(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=je(e,r,n)}),o}function $a(e,t=""){return e.displayName||e.name||t}function As(e,t,n){const o=$a(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function lm(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return $a(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Gn.ForwardRef:return As(e,e.render,"ForwardRef");case Gn.Memo:return As(e,e.type,"memo");default:return}}}function Ra(e){const{variants:t,...n}=e,o={variants:t,style:zt(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=zt(r.style))}),o}const cm=Or();function sn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Bt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function um(e){return e?(t,n)=>n[e]:null}function dm(e,t,n){e.theme=hm(e.theme)?n:e.theme[t]||e.theme}function Fn(e,t,n){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(r=>Fn(e,r,n));if(Array.isArray(o==null?void 0:o.variants)){let r;if(o.isProcessed)r=n?Bt(o.style,n):o.style;else{const{variants:s,...i}=o;r=n?Bt(zt(i),n):i}return ka(e,o.variants,[r],n)}return o!=null&&o.isProcessed?n?Bt(zt(o.style),n):o.style:n?Bt(zt(o),n):o}function ka(e,t,n=[],o=void 0){var s;let r;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!a.props(r))continue}else for(const u in a.props)if(e[u]!==a.props[u]&&((s=e.ownerState)==null?void 0:s[u])!==a.props[u])continue e;typeof a.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(o?Bt(zt(a.style(r)),o):a.style(r))):n.push(o?Bt(zt(a.style),o):a.style)}return n}function pm(e={}){const{themeId:t,defaultTheme:n=cm,rootShouldForwardProp:o=sn,slotShouldForwardProp:r=sn}=e;function s(a){dm(a,t,n)}return(a,u={})=>{Zf(a,I=>I.filter(w=>w!==un));const{name:c,slot:p,skipVariantsResolver:f,skipSx:h,overridesResolver:d=um(Ma(p)),...y}=u,m=c&&c.startsWith("Mui")||p?"components":"custom",v=f!==void 0?f:p&&p!=="Root"&&p!=="root"||!1,_=h||!1;let S=sn;p==="Root"||p==="root"?S=o:p?S=r:gm(a)&&(S=void 0);const E=Jf(a,{shouldForwardProp:S,label:mm(c,p),...y}),C=I=>{if(I.__emotion_real===I)return I;if(typeof I=="function")return function(N){return Fn(N,I,N.theme.modularCssLayers?m:void 0)};if(rt(I)){const w=Ra(I);return function(L){return w.variants?Fn(L,w,L.theme.modularCssLayers?m:void 0):L.theme.modularCssLayers?Bt(w.style,m):w.style}}return I},x=(...I)=>{const w=[],N=I.map(C),L=[];if(w.push(s),c&&d&&L.push(function(R){var K,se;const j=(se=(K=R.theme.components)==null?void 0:K[c])==null?void 0:se.styleOverrides;if(!j)return null;const V={};for(const oe in j)V[oe]=Fn(R,j[oe],R.theme.modularCssLayers?"theme":void 0);return d(R,V)}),c&&!v&&L.push(function(R){var V,K;const T=R.theme,j=(K=(V=T==null?void 0:T.components)==null?void 0:V[c])==null?void 0:K.variants;return j?ka(R,j,[],R.theme.modularCssLayers?"theme":void 0):null}),_||L.push(un),Array.isArray(N[0])){const b=N.shift(),R=new Array(w.length).fill(""),T=new Array(L.length).fill("");let j;j=[...R,...b,...T],j.raw=[...R,...b.raw,...T],w.unshift(j)}const F=[...w,...N,...L],U=E(...F);return a.muiName&&(U.muiName=a.muiName),process.env.NODE_ENV!=="production"&&(U.displayName=fm(c,p,a)),U};return E.withConfig&&(x.withConfig=E.withConfig),x}}function fm(e,t,n){return e?`${e}${_e(t||"")}`:`Styled(${lm(n)})`}function mm(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Ma(t||"Root")}`),n}function hm(e){for(const t in e)return!1;return!0}function gm(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ma(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function ym(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:Un(t.components[n].defaultProps,o)}function bm({props:e,name:t,defaultTheme:n,themeId:o}){let r=Oa(n);return r=r[o]||r,ym({theme:r,name:t,props:e})}const vm=typeof window<"u"?k.useLayoutEffect:k.useEffect;function _m(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function $r(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}].`),_m(e,t,n)}function xm(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,r)=>r<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function $t(e){if(e.type)return e;if(e.charAt(0)==="#")return $t(xm(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.
|
|
48
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Wt(9,e));let o=e.substring(t+1,e.length-1),r;if(n==="color"){if(o=o.split(" "),r=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(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${r}\` color space.
|
|
49
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Wt(10,r))}else o=o.split(",");return o=o.map(s=>parseFloat(s)),{type:n,values:o,colorSpace:r}}const Cm=e=>{const t=$t(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},mn=(e,t)=>{try{return Cm(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function _o(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((r,s)=>s<3?parseInt(r,10):r):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function Pa(e){e=$t(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,s=o*Math.min(r,1-r),i=(c,p=(c+n/30)%12)=>r-s*Math.max(Math.min(p-3,9-p,1),-1);let a="rgb";const u=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(a+="a",u.push(t[3])),_o({type:a,values:u})}function qo(e){e=$t(e);let t=e.type==="hsl"||e.type==="hsla"?$t(Pa(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 js(e,t){const n=qo(e),o=qo(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function Kn(e,t){return e=$t(e),t=$r(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,_o(e)}function Lt(e,t,n){try{return Kn(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function xo(e,t){if(e=$t(e),t=$r(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 _o(e)}function be(e,t,n){try{return xo(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Co(e,t){if(e=$t(e),t=$r(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 _o(e)}function ve(e,t,n){try{return Co(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Sm(e,t=.15){return qo(e)>.5?xo(e,t):Co(e,t)}function jn(e,t,n){try{return Sm(e,t)}catch{return e}}const Im=k.createContext();process.env.NODE_ENV!=="production"&&(l.node,l.bool);const Tm=()=>k.useContext(Im)??!1,Em=k.createContext(void 0);process.env.NODE_ENV!=="production"&&(l.node,l.object);function wm(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const r=t.components[n];return r.defaultProps?Un(r.defaultProps,o,t.components.mergeClassNameAndStyle):!r.styleOverrides&&!r.variants?Un(r,o,t.components.mergeClassNameAndStyle):o}function Nm({props:e,name:t}){const n=k.useContext(Em);return wm({props:e,name:t,theme:{components:n}})}let Ls=0;function Om(e){const[t,n]=k.useState(e),o=e||t;return k.useEffect(()=>{t==null&&(Ls+=1,n(`mui-${Ls}`))},[t]),o}const $m={...k},Ds=$m.useId;function Rm(e){if(Ds!==void 0){const t=Ds();return e??t}return Om(e)}const Vs={theme:void 0};function km(e){let t,n;return function(r){let s=t;return(s===void 0||r.theme!==n)&&(Vs.theme=r.theme,s=Ra(e(Vs)),t=s,n=r.theme),s}}function Mm(e=""){function t(...o){if(!o.length)return"";const r=o[0];return typeof r=="string"&&!r.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}-`:""}${r}${t(...o.slice(1))})`:`, ${r}`}return(o,...r)=>`var(--${e?`${e}-`:""}${o}${t(...r)})`}const Bs=(e,t,n,o=[])=>{let r=e;t.forEach((s,i)=>{i===t.length-1?Array.isArray(r)?r[Number(s)]=n:r&&typeof r=="object"&&(r[s]=n):r&&typeof r=="object"&&(r[s]||(r[s]=o.includes(s)?[]:{}),r=r[s])})},Pm=(e,t,n)=>{function o(r,s=[],i=[]){Object.entries(r).forEach(([a,u])=>{(!n||n&&!n([...s,a]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?o(u,[...s,a],Array.isArray(u)?[...i,a]:i):t([...s,a],u,i))})}o(e)},Am=(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 Lo(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},s={},i={};return Pm(e,(a,u,c)=>{if((typeof u=="string"||typeof u=="number")&&(!o||!o(a,u))){const p=`--${n?`${n}-`:""}${a.join("-")}`,f=Am(a,u);Object.assign(r,{[p]:f}),Bs(s,a,`var(${p})`,c),Bs(i,a,`var(${p}, ${f})`,c)}},a=>a[0]==="vars"),{css:r,vars:s,varsWithDefaults:i}}function jm(e,t={}){const{getSelector:n=_,disableCssColorScheme:o,colorSchemeSelector:r,enableContrastVars:s}=t,{colorSchemes:i={},components:a,defaultColorScheme:u="light",...c}=e,{vars:p,css:f,varsWithDefaults:h}=Lo(c,t);let d=h;const y={},{[u]:m,...v}=i;if(Object.entries(v||{}).forEach(([C,x])=>{const{vars:I,css:w,varsWithDefaults:N}=Lo(x,t);d=ze(d,N),y[C]={css:w,vars:I}}),m){const{css:C,vars:x,varsWithDefaults:I}=Lo(m,t);d=ze(d,I),y[u]={css:C,vars:x}}function _(C,x){var w,N;let I=r;if(r==="class"&&(I=".%s"),r==="data"&&(I="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(I=`[${r}="%s"]`),C){if(I==="media")return e.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${((N=(w=i[C])==null?void 0:w.palette)==null?void 0:N.mode)||C})`]:{":root":x}};if(I)return e.defaultColorScheme===C?`:root, ${I.replace("%s",String(C))}`:I.replace("%s",String(C))}return":root"}return{vars:d,generateThemeVars:()=>{let C={...p};return Object.entries(y).forEach(([,{vars:x}])=>{C=ze(C,x)}),C},generateStyleSheets:()=>{var L,F;const C=[],x=e.defaultColorScheme||"light";function I(U,b){Object.keys(b).length&&C.push(typeof U=="string"?{[U]:{...b}}:U)}I(n(void 0,{...f}),f);const{[x]:w,...N}=y;if(w){const{css:U}=w,b=(F=(L=i[x])==null?void 0:L.palette)==null?void 0:F.mode,R=!o&&b?{colorScheme:b,...U}:{...U};I(n(x,{...R}),R)}return Object.entries(N).forEach(([U,{css:b}])=>{var j,V;const R=(V=(j=i[U])==null?void 0:j.palette)==null?void 0:V.mode,T=!o&&R?{colorScheme:R,...b}:{...b};I(n(U,{...T}),T)}),s&&C.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)"}}),C}}}function Lm(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 Dm(e,t){var n,o,r;return k.isValidElement(e)&&t.indexOf(e.type.muiName??((r=(o=(n=e.type)==null?void 0:n._payload)==null?void 0:o.value)==null?void 0:r.muiName))!==-1}const xn={black:"#000",white:"#fff"},Vm={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"},qt={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ht={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},fn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Kt={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Yt={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Xt={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Aa(){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:xn.white,default:xn.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 ja=Aa();function La(){return{text:{primary:xn.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:xn.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 Ho=La();function Fs(e,t,n,o){const r=o.light||o,s=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Co(e.main,r):t==="dark"&&(e.dark=xo(e.main,s)))}function zs(e,t,n,o,r){const s=r.light||r,i=r.dark||r*1.5;t[n]||(t.hasOwnProperty(o)?t[n]=t[o]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(i*100).toFixed(0)}%)`))}function Bm(e="light"){return e==="dark"?{main:Kt[200],light:Kt[50],dark:Kt[400]}:{main:Kt[700],light:Kt[400],dark:Kt[800]}}function Fm(e="light"){return e==="dark"?{main:qt[200],light:qt[50],dark:qt[400]}:{main:qt[500],light:qt[300],dark:qt[700]}}function zm(e="light"){return e==="dark"?{main:Ht[500],light:Ht[300],dark:Ht[700]}:{main:Ht[700],light:Ht[400],dark:Ht[800]}}function Wm(e="light"){return e==="dark"?{main:Yt[400],light:Yt[300],dark:Yt[700]}:{main:Yt[700],light:Yt[500],dark:Yt[900]}}function Um(e="light"){return e==="dark"?{main:Xt[400],light:Xt[300],dark:Xt[700]}:{main:Xt[800],light:Xt[500],dark:Xt[900]}}function Gm(e="light"){return e==="dark"?{main:fn[400],light:fn[300],dark:fn[700]}:{main:"#ed6c02",light:fn[500],dark:fn[900]}}function qm(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Rr(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,colorSpace:r,...s}=e,i=e.primary||Bm(t),a=e.secondary||Fm(t),u=e.error||zm(t),c=e.info||Wm(t),p=e.success||Um(t),f=e.warning||Gm(t);function h(v){if(r)return qm(v);const _=js(v,Ho.text.primary)>=n?Ho.text.primary:ja.text.primary;if(process.env.NODE_ENV!=="production"){const S=js(v,_);S<3&&console.error([`MUI: The contrast ratio of ${S}:1 for ${_} on ${v}`,"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(`
|
|
50
|
+
`))}return _}const d=({color:v,name:_,mainShade:S=500,lightShade:E=300,darkShade:C=700})=>{if(v={...v},!v.main&&v[S]&&(v.main=v[S]),!v.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${_?` (${_})`:""} provided to augmentColor(color) is invalid.
|
|
51
|
+
The color object needs to have a \`main\` property or a \`${S}\` property.`:Wt(11,_?` (${_})`:"",S));if(typeof v.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${_?` (${_})`:""} provided to augmentColor(color) is invalid.
|
|
52
|
+
\`color.main\` should be a string, but \`${JSON.stringify(v.main)}\` was provided instead.
|
|
53
53
|
|
|
54
54
|
Did you intend to use one of the following approaches?
|
|
55
55
|
|
|
@@ -61,17 +61,166 @@ const theme1 = createTheme({ palette: {
|
|
|
61
61
|
|
|
62
62
|
const theme2 = createTheme({ palette: {
|
|
63
63
|
primary: { main: green[500] },
|
|
64
|
-
} });`:
|
|
65
|
-
`)),Object.keys(
|
|
64
|
+
} });`:Wt(12,_?` (${_})`:"",JSON.stringify(v.main)));return r?(zs(r,v,"light",E,o),zs(r,v,"dark",C,o)):(Fs(v,"light",E,o),Fs(v,"dark",C,o)),v.contrastText||(v.contrastText=h(v.main)),v};let y;return t==="light"?y=Aa():t==="dark"&&(y=La()),process.env.NODE_ENV!=="production"&&(y||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ze({common:{...xn},mode:t,primary:d({color:i,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:u,name:"error"}),warning:d({color:f,name:"warning"}),info:d({color:c,name:"info"}),success:d({color:p,name:"success"}),grey:Vm,contrastThreshold:n,getContrastText:h,augmentColor:d,tonalOffset:o,...y},s)}function Hm(e){const t={};return Object.entries(e).forEach(o=>{const[r,s]=o;typeof s=="object"&&(t[r]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function Km(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Ym(e){return Math.round(e*1e5)/1e5}const Ws={textTransform:"uppercase"},Us='"Roboto", "Helvetica", "Arial", sans-serif';function Xm(e,t){const{fontFamily:n=Us,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:s=400,fontWeightMedium:i=500,fontWeightBold:a=700,htmlFontSize:u=16,allVariants:c,pxToRem:p,...f}=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 u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=o/14,d=p||(v=>`${v/u*h}rem`),y=(v,_,S,E,C)=>({fontFamily:n,fontWeight:v,fontSize:d(_),lineHeight:S,...n===Us?{letterSpacing:`${Ym(E/_)}em`}:{},...C,...c}),m={h1:y(r,96,1.167,-1.5),h2:y(r,60,1.2,-.5),h3:y(s,48,1.167,0),h4:y(s,34,1.235,.25),h5:y(s,24,1.334,0),h6:y(i,20,1.6,.15),subtitle1:y(s,16,1.75,.15),subtitle2:y(i,14,1.57,.1),body1:y(s,16,1.5,.15),body2:y(s,14,1.43,.15),button:y(i,14,1.75,.4,Ws),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,Ws),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ze({htmlFontSize:u,pxToRem:d,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:s,fontWeightMedium:i,fontWeightBold:a,...m},f,{clone:!1})}const Qm=.2,Jm=.14,Zm=.12;function Ie(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Qm})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Jm})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Zm})`].join(",")}const eh=["none",Ie(0,2,1,-1,0,1,1,0,0,1,3,0),Ie(0,3,1,-2,0,2,2,0,0,1,5,0),Ie(0,3,3,-2,0,3,4,0,0,1,8,0),Ie(0,2,4,-1,0,4,5,0,0,1,10,0),Ie(0,3,5,-1,0,5,8,0,0,1,14,0),Ie(0,3,5,-1,0,6,10,0,0,1,18,0),Ie(0,4,5,-2,0,7,10,1,0,2,16,1),Ie(0,5,5,-3,0,8,10,1,0,3,14,2),Ie(0,5,6,-3,0,9,12,1,0,3,16,2),Ie(0,6,6,-3,0,10,14,1,0,4,18,3),Ie(0,6,7,-4,0,11,15,1,0,4,20,3),Ie(0,7,8,-4,0,12,17,2,0,5,22,4),Ie(0,7,8,-4,0,13,19,2,0,5,24,4),Ie(0,7,9,-4,0,14,21,2,0,5,26,4),Ie(0,8,9,-5,0,15,22,2,0,6,28,5),Ie(0,8,10,-5,0,16,24,2,0,6,30,5),Ie(0,8,11,-5,0,17,26,2,0,6,32,5),Ie(0,9,11,-5,0,18,28,2,0,7,34,6),Ie(0,9,12,-6,0,19,29,2,0,7,36,6),Ie(0,10,13,-6,0,20,31,3,0,8,38,7),Ie(0,10,13,-6,0,21,33,3,0,8,40,7),Ie(0,10,14,-6,0,22,35,3,0,8,42,7),Ie(0,11,14,-7,0,23,36,3,0,9,44,8),Ie(0,11,15,-7,0,24,38,3,0,9,46,8)],th={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)"},Da={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Gs(e){return`${Math.round(e)}ms`}function nh(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function oh(e){const t={...th,...e.easing},n={...Da,...e.duration};return{getAutoHeightDuration:nh,create:(r=["all"],s={})=>{const{duration:i=n.standard,easing:a=t.easeInOut,delay:u=0,...c}=s;if(process.env.NODE_ENV!=="production"){const p=h=>typeof h=="string",f=h=>!Number.isNaN(parseFloat(h));!p(r)&&!Array.isArray(r)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(i)&&!p(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),p(a)||console.error('MUI: Argument "easing" must be a string.'),!f(u)&&!p(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="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(`
|
|
65
|
+
`)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(r)?r:[r]).map(p=>`${p} ${typeof i=="string"?i:Gs(i)} ${a} ${typeof u=="string"?u:Gs(u)}`).join(",")},...e,easing:t,duration:n}}const rh={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function sh(e){return rt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Va(e={}){const t={...e};function n(o){const r=Object.entries(o);for(let s=0;s<r.length;s++){const[i,a]=r[s];!sh(a)||i.startsWith("unstable_")?delete o[i]:rt(a)&&(o[i]={...a},n(o[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
66
66
|
|
|
67
67
|
const theme = ${JSON.stringify(t,null,2)};
|
|
68
68
|
|
|
69
69
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
70
70
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
71
71
|
|
|
72
|
-
export default theme;`}function
|
|
73
|
-
`))}
|
|
74
|
-
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 Ru(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Re=e=>{try{return e()}catch{}},Pu=(e="mui")=>Yd(e);function Cr(e,t,r,o,n){if(!r)return;r=r===!0?{}:r;const s=n==="dark"?"dark":"light";if(!o){t[n]=wu({...r,palette:{mode:s,...r==null?void 0:r.palette},colorSpace:e});return}const{palette:a,...i}=Tr({...o,palette:{mode:s,...r==null?void 0:r.palette},colorSpace:e});return t[n]={...r,palette:a,opacity:{...ts(s),...r==null?void 0:r.opacity},overlays:(r==null?void 0:r.overlays)||rs(s)},i}function ju(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:o,disableCssColorScheme:n=!1,cssVarPrefix:s="mui",nativeColor:a=!1,shouldSkipGeneratingVar:i=Nu,colorSchemeSelector:d=r.light&&r.dark?"media":void 0,rootSelector:p=":root",...f}=e,h=Object.keys(r)[0],y=o||(r.light&&h!=="light"?"light":h),u=Pu(s),{[y]:_,light:m,dark:g,...$}=r,N={...$};let A=_;if((y==="dark"&&!("dark"in r)||y==="light"&&!("light"in r))&&(A=!0),!A)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${y}\` option is either missing or invalid.`:at(21,y));let w;a&&(w="oklch");const v=Cr(w,N,A,f,y);m&&!N.light&&Cr(w,N,m,void 0,"light"),g&&!N.dark&&Cr(w,N,g,void 0,"dark");let T={defaultColorScheme:y,...v,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:p,getCssVar:u,colorSchemes:N,font:{...lu(v.typography),...v.font},spacing:Ru(f.spacing)};Object.keys(T.colorSchemes).forEach(W=>{const l=T.colorSchemes[W].palette,E=R=>{const F=R.split("-"),q=F[1],ee=F[2];return u(R,l[q][ee])};l.mode==="light"&&(b(l.common,"background","#fff"),b(l.common,"onBackground","#000")),l.mode==="dark"&&(b(l.common,"background","#000"),b(l.common,"onBackground","#fff"));function x(R,F,q){if(w){let ee;return R===ot&&(ee=`transparent ${((1-q)*100).toFixed(0)}%`),R===se&&(ee=`#000 ${(q*100).toFixed(0)}%`),R===ae&&(ee=`#fff ${(q*100).toFixed(0)}%`),`color-mix(in ${w}, ${F}, ${ee})`}return R(F,q)}if(Au(l,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),l.mode==="light"){b(l.Alert,"errorColor",x(se,a?u("palette-error-light"):l.error.light,.6)),b(l.Alert,"infoColor",x(se,a?u("palette-info-light"):l.info.light,.6)),b(l.Alert,"successColor",x(se,a?u("palette-success-light"):l.success.light,.6)),b(l.Alert,"warningColor",x(se,a?u("palette-warning-light"):l.warning.light,.6)),b(l.Alert,"errorFilledBg",E("palette-error-main")),b(l.Alert,"infoFilledBg",E("palette-info-main")),b(l.Alert,"successFilledBg",E("palette-success-main")),b(l.Alert,"warningFilledBg",E("palette-warning-main")),b(l.Alert,"errorFilledColor",Re(()=>l.getContrastText(l.error.main))),b(l.Alert,"infoFilledColor",Re(()=>l.getContrastText(l.info.main))),b(l.Alert,"successFilledColor",Re(()=>l.getContrastText(l.success.main))),b(l.Alert,"warningFilledColor",Re(()=>l.getContrastText(l.warning.main))),b(l.Alert,"errorStandardBg",x(ae,a?u("palette-error-light"):l.error.light,.9)),b(l.Alert,"infoStandardBg",x(ae,a?u("palette-info-light"):l.info.light,.9)),b(l.Alert,"successStandardBg",x(ae,a?u("palette-success-light"):l.success.light,.9)),b(l.Alert,"warningStandardBg",x(ae,a?u("palette-warning-light"):l.warning.light,.9)),b(l.Alert,"errorIconColor",E("palette-error-main")),b(l.Alert,"infoIconColor",E("palette-info-main")),b(l.Alert,"successIconColor",E("palette-success-main")),b(l.Alert,"warningIconColor",E("palette-warning-main")),b(l.AppBar,"defaultBg",E("palette-grey-100")),b(l.Avatar,"defaultBg",E("palette-grey-400")),b(l.Button,"inheritContainedBg",E("palette-grey-300")),b(l.Button,"inheritContainedHoverBg",E("palette-grey-A100")),b(l.Chip,"defaultBorder",E("palette-grey-400")),b(l.Chip,"defaultAvatarColor",E("palette-grey-700")),b(l.Chip,"defaultIconColor",E("palette-grey-700")),b(l.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),b(l.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),b(l.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),b(l.LinearProgress,"primaryBg",x(ae,a?u("palette-primary-main"):l.primary.main,.62)),b(l.LinearProgress,"secondaryBg",x(ae,a?u("palette-secondary-main"):l.secondary.main,.62)),b(l.LinearProgress,"errorBg",x(ae,a?u("palette-error-main"):l.error.main,.62)),b(l.LinearProgress,"infoBg",x(ae,a?u("palette-info-main"):l.info.main,.62)),b(l.LinearProgress,"successBg",x(ae,a?u("palette-success-main"):l.success.main,.62)),b(l.LinearProgress,"warningBg",x(ae,a?u("palette-warning-light"):l.warning.main,.62)),b(l.Skeleton,"bg",w?x(ot,a?u("palette-text-primary"):l.text.primary,.11):`rgba(${E("palette-text-primaryChannel")} / 0.11)`),b(l.Slider,"primaryTrack",x(ae,a?u("palette-primary-main"):l.primary.main,.62)),b(l.Slider,"secondaryTrack",x(ae,a?u("palette-secondary-main"):l.secondary.main,.62)),b(l.Slider,"errorTrack",x(ae,a?u("palette-error-main"):l.error.main,.62)),b(l.Slider,"infoTrack",x(ae,a?u("palette-info-main"):l.info.main,.62)),b(l.Slider,"successTrack",x(ae,a?u("palette-success-main"):l.success.main,.62)),b(l.Slider,"warningTrack",x(ae,a?u("palette-warning-main"):l.warning.main,.62));const R=w?x(se,a?u("palette-background-default"):l.background.default,.6825):Lt(l.background.default,.8);b(l.SnackbarContent,"bg",R),b(l.SnackbarContent,"color",Re(()=>w?Sr.text.primary:l.getContrastText(R))),b(l.SpeedDialAction,"fabHoverBg",Lt(l.background.paper,.15)),b(l.StepConnector,"border",E("palette-grey-400")),b(l.StepContent,"border",E("palette-grey-400")),b(l.Switch,"defaultColor",E("palette-common-white")),b(l.Switch,"defaultDisabledColor",E("palette-grey-100")),b(l.Switch,"primaryDisabledColor",x(ae,a?u("palette-primary-main"):l.primary.main,.62)),b(l.Switch,"secondaryDisabledColor",x(ae,a?u("palette-secondary-main"):l.secondary.main,.62)),b(l.Switch,"errorDisabledColor",x(ae,a?u("palette-error-main"):l.error.main,.62)),b(l.Switch,"infoDisabledColor",x(ae,a?u("palette-info-main"):l.info.main,.62)),b(l.Switch,"successDisabledColor",x(ae,a?u("palette-success-main"):l.success.main,.62)),b(l.Switch,"warningDisabledColor",x(ae,a?u("palette-warning-main"):l.warning.main,.62)),b(l.TableCell,"border",x(ae,ot(a?u("palette-divider"):l.divider,1),.88)),b(l.Tooltip,"bg",x(ot,a?u("palette-grey-700"):l.grey[700],.92))}if(l.mode==="dark"){b(l.Alert,"errorColor",x(ae,a?u("palette-error-light"):l.error.light,.6)),b(l.Alert,"infoColor",x(ae,a?u("palette-info-light"):l.info.light,.6)),b(l.Alert,"successColor",x(ae,a?u("palette-success-light"):l.success.light,.6)),b(l.Alert,"warningColor",x(ae,a?u("palette-warning-light"):l.warning.light,.6)),b(l.Alert,"errorFilledBg",E("palette-error-dark")),b(l.Alert,"infoFilledBg",E("palette-info-dark")),b(l.Alert,"successFilledBg",E("palette-success-dark")),b(l.Alert,"warningFilledBg",E("palette-warning-dark")),b(l.Alert,"errorFilledColor",Re(()=>l.getContrastText(l.error.dark))),b(l.Alert,"infoFilledColor",Re(()=>l.getContrastText(l.info.dark))),b(l.Alert,"successFilledColor",Re(()=>l.getContrastText(l.success.dark))),b(l.Alert,"warningFilledColor",Re(()=>l.getContrastText(l.warning.dark))),b(l.Alert,"errorStandardBg",x(se,a?u("palette-error-light"):l.error.light,.9)),b(l.Alert,"infoStandardBg",x(se,a?u("palette-info-light"):l.info.light,.9)),b(l.Alert,"successStandardBg",x(se,a?u("palette-success-light"):l.success.light,.9)),b(l.Alert,"warningStandardBg",x(se,a?u("palette-warning-light"):l.warning.light,.9)),b(l.Alert,"errorIconColor",E("palette-error-main")),b(l.Alert,"infoIconColor",E("palette-info-main")),b(l.Alert,"successIconColor",E("palette-success-main")),b(l.Alert,"warningIconColor",E("palette-warning-main")),b(l.AppBar,"defaultBg",E("palette-grey-900")),b(l.AppBar,"darkBg",E("palette-background-paper")),b(l.AppBar,"darkColor",E("palette-text-primary")),b(l.Avatar,"defaultBg",E("palette-grey-600")),b(l.Button,"inheritContainedBg",E("palette-grey-800")),b(l.Button,"inheritContainedHoverBg",E("palette-grey-700")),b(l.Chip,"defaultBorder",E("palette-grey-700")),b(l.Chip,"defaultAvatarColor",E("palette-grey-300")),b(l.Chip,"defaultIconColor",E("palette-grey-300")),b(l.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),b(l.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),b(l.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),b(l.LinearProgress,"primaryBg",x(se,a?u("palette-primary-main"):l.primary.main,.5)),b(l.LinearProgress,"secondaryBg",x(se,a?u("palette-secondary-main"):l.secondary.main,.5)),b(l.LinearProgress,"errorBg",x(se,a?u("palette-error-main"):l.error.main,.5)),b(l.LinearProgress,"infoBg",x(se,a?u("palette-info-main"):l.info.main,.5)),b(l.LinearProgress,"successBg",x(se,a?u("palette-success-main"):l.success.main,.5)),b(l.LinearProgress,"warningBg",x(se,a?u("palette-warning-main"):l.warning.main,.5)),b(l.Skeleton,"bg",w?x(ot,a?u("palette-text-primary"):l.text.primary,.13):`rgba(${E("palette-text-primaryChannel")} / 0.13)`),b(l.Slider,"primaryTrack",x(se,a?u("palette-primary-main"):l.primary.main,.5)),b(l.Slider,"secondaryTrack",x(se,a?u("palette-secondary-main"):l.secondary.main,.5)),b(l.Slider,"errorTrack",x(se,a?u("palette-error-main"):l.error.main,.5)),b(l.Slider,"infoTrack",x(se,a?u("palette-info-main"):l.info.main,.5)),b(l.Slider,"successTrack",x(se,a?u("palette-success-main"):l.success.main,.5)),b(l.Slider,"warningTrack",x(se,a?u("palette-warning-light"):l.warning.main,.5));const R=w?x(ae,a?u("palette-background-default"):l.background.default,.985):Lt(l.background.default,.98);b(l.SnackbarContent,"bg",R),b(l.SnackbarContent,"color",Re(()=>w?Jn.text.primary:l.getContrastText(R))),b(l.SpeedDialAction,"fabHoverBg",Lt(l.background.paper,.15)),b(l.StepConnector,"border",E("palette-grey-600")),b(l.StepContent,"border",E("palette-grey-600")),b(l.Switch,"defaultColor",E("palette-grey-300")),b(l.Switch,"defaultDisabledColor",E("palette-grey-600")),b(l.Switch,"primaryDisabledColor",x(se,a?u("palette-primary-main"):l.primary.main,.55)),b(l.Switch,"secondaryDisabledColor",x(se,a?u("palette-secondary-main"):l.secondary.main,.55)),b(l.Switch,"errorDisabledColor",x(se,a?u("palette-error-main"):l.error.main,.55)),b(l.Switch,"infoDisabledColor",x(se,a?u("palette-info-main"):l.info.main,.55)),b(l.Switch,"successDisabledColor",x(se,a?u("palette-success-main"):l.success.main,.55)),b(l.Switch,"warningDisabledColor",x(se,a?u("palette-warning-light"):l.warning.main,.55)),b(l.TableCell,"border",x(se,ot(a?u("palette-divider"):l.divider,1),.68)),b(l.Tooltip,"bg",x(ot,a?u("palette-grey-700"):l.grey[700],.92))}a||(Ie(l.background,"default"),Ie(l.background,"paper"),Ie(l.common,"background"),Ie(l.common,"onBackground"),Ie(l,"divider")),Object.keys(l).forEach(R=>{const F=l[R];R!=="tonalOffset"&&!a&&F&&typeof F=="object"&&(F.main&&b(l[R],"mainChannel",xt(Ct(F.main))),F.light&&b(l[R],"lightChannel",xt(Ct(F.light))),F.dark&&b(l[R],"darkChannel",xt(Ct(F.dark))),F.contrastText&&b(l[R],"contrastTextChannel",xt(Ct(F.contrastText))),R==="text"&&(Ie(l[R],"primary"),Ie(l[R],"secondary")),R==="action"&&(F.active&&Ie(l[R],"active"),F.selected&&Ie(l[R],"selected")))})}),T=t.reduce((W,l)=>$e(W,l),T);const P={prefix:s,disableCssColorScheme:n,shouldSkipGeneratingVar:i,getSelector:Ou(T),enableContrastVars:a},{vars:O,generateThemeVars:L,generateStyleSheets:z}=Qd(T,P);return T.vars=O,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([W,l])=>{T[W]=l}),T.generateThemeVars=L,T.generateStyleSheets=z,T.generateSpacing=function(){return Un(f.spacing,Ur(this))},T.getColorSchemeSelector=Jd(d),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=i,T.unstable_sxConfig={...sr,...f==null?void 0:f.unstable_sxConfig},T.unstable_sx=function(l){return yt({sx:l,theme:this})},T.toRuntimeSource=es,T}function Wo(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Kr({...r===!0?{}:r.palette,mode:t})})}function ku(e={},...t){const{palette:r,cssVariables:o=!1,colorSchemes:n=r?void 0:{light:!0},defaultColorScheme:s=r==null?void 0:r.mode,...a}=e,i=s||"light",d=n==null?void 0:n[i],p={...n,...r?{[i]:{...typeof d!="boolean"&&d,palette:r}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Tr(e,...t);let f=r;"palette"in e||p[i]&&(p[i]!==!0?f=p[i].palette:i==="dark"&&(f={mode:"dark"}));const h=Tr({...e,palette:f},...t);return h.defaultColorScheme=i,h.colorSchemes=p,h.palette.mode==="light"&&(h.colorSchemes.light={...p.light!==!0&&p.light,palette:h.palette},Wo(h,"dark",p.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:h.palette},Wo(h,"light",p.light)),h}return!r&&!("light"in p)&&i==="light"&&(p.light=!0),ju({...a,colorSchemes:p,defaultColorScheme:i,...typeof o!="boolean"&&o},...t)}const os=ku(),ns="$$material";function Iu(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Mu=e=>Iu(e)&&e!=="classes",Xr=Ld({themeId:ns,defaultTheme:os,rootShouldForwardProp:Mu}),ss=xe.createContext(null);process.env.NODE_ENV!=="production"&&(ss.displayName="TabContext");process.env.NODE_ENV!=="production"&&(D.node,D.oneOfType([D.number,D.string]).isRequired);function Lu(){return xe.useContext(ss)}function Fu(e,t){const{idPrefix:r}=e;return r===null?null:`${e.idPrefix}-P-${t}`}function Wu(e,t){const{idPrefix:r}=e;return r===null?null:`${e.idPrefix}-T-${t}`}function Qr({props:e,name:t}){return zd({props:e,name:t,defaultTheme:os,themeId:ns})}function Bu(e){return At("MuiTabPanel",e)}Rt("MuiTabPanel",["root","hidden"]);const Du=e=>{const{classes:t,hidden:r}=e;return Gr({root:["root",r&&"hidden"]},Bu,t)},Vu=Xr("div",{name:"MuiTabPanel",slot:"Root"})(({theme:e})=>({padding:e.spacing(3)})),as=xe.forwardRef(function(t,r){const o=Qr({props:t,name:"MuiTabPanel"}),{children:n,className:s,value:a,keepMounted:i=!1,...d}=o,p={...o},f=Du(p),h=Lu();if(h===null)throw new TypeError("No TabContext provided");const y=Fu(h,a),u=Wu(h,a);return c.jsx(Vu,{"aria-labelledby":u,className:Yt(f.root,s),hidden:a!==h.value,id:y,ref:r,role:"tabpanel",ownerState:p,...d,children:(i||a===h.value)&&n})});process.env.NODE_ENV!=="production"&&(as.propTypes={children:D.node,classes:D.object,className:D.string,keepMounted:D.bool,sx:D.oneOfType([D.arrayOf(D.oneOfType([D.func,D.object,D.bool])),D.func,D.object]),value:D.oneOfType([D.number,D.string]).isRequired});const Vt=xe.createContext({});process.env.NODE_ENV!=="production"&&(Vt.displayName="TimelineContext");function zu(e){return At("MuiTimeline",e)}Rt("MuiTimeline",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);function cr(e){return e==="alternate-reverse"?"positionAlternateReverse":`position${Kt(e)}`}const Gu=e=>{const{position:t,classes:r}=e,o={root:["root",t&&cr(t)]};return Gr(o,zu,r)},Uu=Xr("ul",{name:"MuiTimeline",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.position&&t[cr(r.position)]]}})({display:"flex",flexDirection:"column",padding:"6px 16px",flexGrow:1}),is=xe.forwardRef(function(t,r){const o=Qr({props:t,name:"MuiTimeline"}),{position:n="right",className:s,...a}=o,i={...o,position:n},d=Gu(i),p=xe.useMemo(()=>({position:n}),[n]);return c.jsx(Vt.Provider,{value:p,children:c.jsx(Uu,{className:Yt(d.root,s),ownerState:i,ref:r,...a})})});process.env.NODE_ENV!=="production"&&(is.propTypes={children:D.node,classes:D.object,className:D.string,position:D.oneOf(["alternate-reverse","alternate","left","right"]),sx:D.oneOfType([D.arrayOf(D.oneOfType([D.func,D.object,D.bool])),D.func,D.object])});const qu=Rt("MuiTimelineContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]),Hu=Rt("MuiTimelineOppositeContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);function Yu(e){return At("MuiTimelineItem",e)}Rt("MuiTimelineItem",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse","missingOppositeContent"]);const Ku=e=>{const{position:t,classes:r,hasOppositeContent:o}=e,n={root:["root",cr(t),!o&&"missingOppositeContent"]};return Gr(n,Yu,r)},Xu=Xr("li",{name:"MuiTimelineItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[cr(r.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",[`& .${qu.root}`]:{textAlign:"right"},[`& .${Hu.root}`]:{textAlign:"left"}}},...!e.hasOppositeContent&&{"&::before":{content:'""',flex:1,padding:"6px 16px"}}})),ls=xe.forwardRef(function(t,r){const o=Qr({props:t,name:"MuiTimelineItem"}),{position:n,className:s,...a}=o,{position:i}=xe.useContext(Vt);let d=!1;xe.Children.forEach(o.children,y=>{Zd(y,["TimelineOppositeContent"])&&(d=!0)});const p={...o,position:n||i||"right",hasOppositeContent:d},f=Ku(p),h=xe.useMemo(()=>({position:p.position}),[p.position]);return c.jsx(Vt.Provider,{value:h,children:c.jsx(Xu,{className:Yt(f.root,s),ownerState:p,ref:r,...a})})});process.env.NODE_ENV!=="production"&&(ls.propTypes={children:D.node,classes:D.object,className:D.string,position:D.oneOf(["alternate-reverse","alternate","left","right"]),sx:D.oneOfType([D.arrayOf(D.oneOfType([D.func,D.object,D.bool])),D.func,D.object])});const cs=C.forwardRef(function(t,r){const{variant:o="default",orientation:n="horizontal",inverted:s=!1,overStyled:a=!1,className:i,...d}=t,p=M(d,a);return c.jsx(k.Tabs,{ref:r,orientation:n,className:`${St.root} ${i||""}`,"data-variant":o,"data-orientation":n,"data-inverted":s||void 0,classes:{flexContainer:St.list,indicator:St.indicator},...p})});cs.displayName="Tabs";const ds=C.forwardRef(function(t,r){const{overStyled:o=!1,className:n,...s}=t,a=M(s,o);return c.jsx(k.Tab,{ref:r,className:`${St.tab} ${n||""}`,...a})});ds.displayName="Tab";const us=C.forwardRef(function(t,r){const{overStyled:o=!1,className:n,...s}=t,a=M(s,o);return c.jsx(as,{ref:r,className:`${St.panel} ${n||""}`,...a})});us.displayName="TabPanel";const dr=C.forwardRef(function({typographyClass:t,overStyled:r=!1,...o},n){const s=M(o,r),i=s.className,d=i?`${t} ${i}`:t;return c.jsx(k.Typography,{ref:n,className:d,variant:"inherit",...s})});dr.displayName="Typography";const ps=C.forwardRef(function({variant:t="body",...r},o){const n=`recursica_brand_typography_${t}`;return c.jsx(dr,{ref:o,typographyClass:n,...r})});ps.displayName="Text";const Qu="TextArea-module__layoutOverride___4MCdm",Ju="TextArea-module__root___3dyeu",Zu="TextArea-module__input___8l36v",qe={layoutOverride:Qu,root:Ju,input:Zu},fs=C.forwardRef(function(t,r){const{overStyled:o=!1,formLayout:n="stacked",labelSize:s,labelAlignment:a,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:p,label:f,assistiveText:h,assistiveWithIcon:y,error:u,required:_,withAsterisk:m,id:g,className:$,style:N,disabled:A,readOnly:w,readOnlyComponent:v,emptyValueComponent:T,value:P,defaultValue:O,...L}=t,z=M(L,o),W=z;delete W.size,delete W.variant,delete W.radius;const l={wrapper:qe.root,input:qe.input},E=W.classNames;if(E&&typeof E=="object"&&!Array.isArray(E)){const R=E;l.wrapper=R.wrapper?`${qe.root} ${R.wrapper}`:qe.root,l.input=R.input?`${qe.input} ${R.input}`:qe.input}const x=$?`${qe.layoutOverride} ${$}`:qe.layoutOverride;return c.jsx(Pe,{className:x,style:N,controlMaxWidth:"var(--recursica_ui-kit_components_textarea_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_textarea_properties_min-width)",overStyled:o,formLayout:n,labelSize:s,labelAlignment:a,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:p,label:f,assistiveText:h,assistiveWithIcon:y,error:u,required:_,id:g,readOnly:w,readOnlyComponent:v,emptyValueComponent:T,readOnlyType:"text",readOnlyValue:P!==void 0?P:O,readOnlyNativeProps:t,activeComponent:c.jsx(k.TextField,{multiline:!0,inputRef:r,classes:l,disabled:A,value:P,defaultValue:O,label:void 0,error:void 0,required:void 0,...z})})});fs.displayName="TextArea";const ep="TextField-module__layoutOverride___SNZqc",tp="TextField-module__root___2ZYkG",rp="TextField-module__input___RL-My",op="TextField-module__section___bCIJ0",Me={layoutOverride:ep,root:tp,input:rp,section:op},ms=C.forwardRef(function(t,r){const{overStyled:o=!1,formLayout:n="stacked",labelSize:s,labelAlignment:a,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:p,label:f,assistiveText:h,assistiveWithIcon:y,error:u,required:_,id:m,className:g,style:$,disabled:N,readOnly:A,readOnlyComponent:w,emptyValueComponent:v,value:T,defaultValue:P,leftSection:O,rightSection:L,...z}=t,W=M(z,o),l=W;delete l.size,delete l.color;const E={wrapper:Me.root,input:Me.input,section:Me.section},x=l.classes;if(x&&typeof x=="object"&&!Array.isArray(x)){const ee=x;E.wrapper=ee.root?`${Me.root} ${ee.root}`:Me.root,E.input=ee.input?`${Me.input} ${ee.input}`:Me.input}const R=g?`${Me.layoutOverride} ${g}`:Me.layoutOverride,F=O?c.jsx("div",{className:E.section,"data-position":"left",children:O}):void 0,q=L?c.jsx("div",{className:E.section,"data-position":"right",children:L}):void 0;return c.jsx(Pe,{className:R,style:$,controlMaxWidth:"var(--recursica_ui-kit_components_text-field_properties_max-width)",controlMinWidth:"var(--recursica_ui-kit_components_text-field_properties_min-width)",overStyled:o,formLayout:n,labelSize:s,labelAlignment:a,labelOptionalText:i,labelWithEditIcon:d,onLabelEditClick:p,label:f,assistiveText:h,assistiveWithIcon:y,error:u,required:_,id:m,readOnly:A,readOnlyComponent:w,emptyValueComponent:v||void 0,readOnlyType:"text",readOnlyValue:T!==void 0?T:P,readOnlyNativeProps:t,activeComponent:c.jsx(k.InputBase,{inputRef:r,classes:{root:E.wrapper,input:E.input},disabled:N,value:T,defaultValue:P,startAdornment:F,endAdornment:q,"data-disabled":N?"true":void 0,"data-error":u?"true":void 0,"data-with-left-section":O?"true":void 0,"data-with-right-section":L?"true":void 0,...W})})});ms.displayName="TextField";const np=e=>c.jsx("div",{...e,children:"TimePicker"}),sp="Timeline-module__root___LwRdZ",ap="Timeline-module__item___T5xdQ",ip="Timeline-module__itemBody___XAV-E",lp="Timeline-module__itemBullet___rPXCy",cp="Timeline-module__itemTitle___GgRRW",dp="Timeline-module__itemContent___vurs-",up="Timeline-module__description___f9sxV",pp="Timeline-module__timestamp___owiRu",He={root:sp,item:ap,itemBody:ip,itemBullet:lp,itemTitle:cp,itemContent:dp,description:up,timestamp:pp},Jr=C.forwardRef(function({overStyled:t=!1,timestamp:r,bulletVariant:o="default",bullet:n,children:s,...a},i){const d=M(a,t),p={item:He.item,itemBody:He.itemBody,itemContent:He.itemContent,itemBullet:He.itemBullet,itemTitle:He.itemTitle},f=d.classNames;if(f&&typeof f=="object"&&!Array.isArray(f)){const y=f;Object.keys(y).forEach(u=>{p[u]?p[u]=`${p[u]} ${y[u]}`:p[u]=y[u]})}const h=r?c.jsxs(c.Fragment,{children:[s&&c.jsx("div",{className:He.description,children:s}),c.jsx("div",{className:He.timestamp,children:r})]}):s;return c.jsx(ls,{ref:i,classes:p,"data-variant":o,...d,children:h})});Jr.displayName="TimelineItem";const hs=C.forwardRef(function({overStyled:t=!1,...r},o){const n=M(r,t),s={root:He.root},a=n.classNames;if(a&&typeof a=="object"&&!Array.isArray(a)){const i=a;Object.keys(i).forEach(d=>{s[d]?s[d]=`${s[d]} ${i[d]}`:s[d]=i[d]})}return c.jsx(is,{ref:o,classes:s,...n})});hs.displayName="Timeline";const ys=hs;ys.Item=Jr;const _s=C.forwardRef(function({order:t=1,component:r,...o},n){const s=`recursica_brand_typography_h${t}`,a=`h${t}`;return c.jsx(dr,{ref:n,typographyClass:s,component:r||a,...o})});_s.displayName="Title";const fp="Toast-module__root___MUvfI",mp="Toast-module__icon___VwvE1",hp="Toast-module__title___-H6R2",yp="Toast-module__description___-QwfC",_p="Toast-module__closeButton___vGr7g",gp="Toast-module__body___VLkXA",ft={root:fp,icon:mp,title:hp,description:yp,closeButton:_p,body:gp},bp=()=>c.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:c.jsx("path",{d:"M18 6L6 18M6 6l12 12"})}),gs=C.forwardRef(function({overStyled:t=!1,variant:r="default",withCloseButton:o=!0,title:n,icon:s,children:a,onClose:i,className:d,...p},f){const h=M(p,t),y={root:ft.root,message:ft.body,icon:ft.icon,action:ft.closeButton},u=h.classNames;if(u&&typeof u=="object"&&!Array.isArray(u)){const m=u;Object.keys(m).forEach(g=>{y[g]?y[g]=`${y[g]} ${m[g]}`:y[g]=m[g]})}const _=()=>{i&&i()};return c.jsxs(k.Alert,{ref:f,icon:s,"data-variant":r,className:`${d||""}`,classes:y,action:o?c.jsx(k.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:_,children:c.jsx(bp,{})}):void 0,...h,children:[n&&c.jsx(k.AlertTitle,{className:ft.title,children:n}),c.jsx("div",{className:ft.description,children:a})]})});gs.displayName="Toast";const vp="Tooltip-module__tooltip___UA7H9",xp="Tooltip-module__arrow___4zROk",Bo={tooltip:vp,arrow:xp},bs=function({overStyled:t=!1,withBeak:r=!0,label:o,opened:n,...s}){const{title:a,...i}=s,d=M(i,t),p={tooltip:Bo.tooltip,arrow:Bo.arrow},f=d.classNames;if(f&&typeof f=="object"&&!Array.isArray(f)){const u=f;Object.keys(u).forEach(_=>{p[_]?p[_]=`${p[_]} ${u[_]}`:p[_]=u[_]})}const h=d.withArrow,y=r??h;return c.jsx(k.Tooltip,{title:o||a||"",open:n,placement:"top",arrow:y,classes:p,...d})};bs.displayName="Tooltip";const Cp=bs,$p=e=>c.jsx("div",{...e,children:"TransferList"}),Sp="Tree-module__root___ANcH3",Do={root:Sp},vs=C.forwardRef(function({overStyled:t=!1,className:r,...o},n){const s=r?`${Do.root} ${r}`:Do.root;return c.jsx("div",{ref:n,className:s,...o,children:"Tree (Coming Soon)"})});vs.displayName="Tree";const Tp="_root_1qhn7_3",wp="_contents_1qhn7_18",mt={root:Tp,contents:wp},xs=C.forwardRef(function({layer:e,contentsOnly:t,children:r,className:o,style:n,...s},a){const i=t?o?`${mt.root} ${mt.contents} ${o}`:`${mt.root} ${mt.contents}`:o?`${mt.root} ${o}`:mt.root;return c.jsx("div",{ref:a,className:i,style:n,...t?{}:{"data-recursica-layer":String(e)},...s,children:r})});xs.displayName="Layer";const Zr=({emptyText:e="N/A"})=>c.jsx(C.Fragment,{children:e});Zr.displayName="EmptyValueRenderer";Zr.check=e=>e==null||e===""||Array.isArray(e)&&e.length===0;const Np={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"},Ze=(()=>{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:ur&&ur.tagName.toUpperCase()==="SCRIPT"&&ur.src||new URL("mui-adapter.cjs",document.baseURI).href}&&Np)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})(),wr=new Set;let Ke=!1;function Cs(e){if(!Ze)return console.warn("[Recursica] overStyled highlight is disabled in production builds."),!1;if(Ke=e!==void 0?e:!Ke,typeof document<"u"){const t=document.documentElement,r=Ke?"0 0 0 2px cyan":"none";t.style.setProperty("--recursica-over-styled-shadow",r),console.log(`[Recursica] Highlight outlines toggled: ${Ke?"ACTIVE (0 0 0 2px cyan)":"INACTIVE"}`)}else console.warn("[Recursica] document is undefined. Cannot set CSS property.");return wr.forEach(t=>t()),Ke}function Ep(){return Ze&&Ke}function $s(){const[e,t]=C.useState(Ke);return C.useEffect(()=>{if(!Ze)return;eo(),to();const r=()=>t(Ke);return wr.add(r),()=>{wr.delete(r)}},[]),Ze&&e}function eo(){if(!Ze)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=`
|
|
72
|
+
export default theme;`}function qs(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const ih=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 ah(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})`:Kn(t,ih(n))},lighten(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #fff ${qs(n)})`:Co(t,n)},darken(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #000 ${qs(n)})`:xo(t,n)}})}function Ko(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:s={},transitions:i={},typography:a={},shape:u,colorSpace:c,...p}=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.":Wt(20));const f=Rr({...s,colorSpace:c}),h=Or(e);let d=ze(h,{mixins:Km(h.breakpoints,o),palette:f,shadows:eh.slice(),typography:Xm(f,a),transitions:oh(i),zIndex:{...rh}});if(d=ze(d,p),d=t.reduce((y,m)=>ze(y,m),d),process.env.NODE_ENV!=="production"){const y=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],m=(v,_)=>{let S;for(S in v){const E=v[S];if(y.includes(S)&&Object.keys(E).length>0){if(process.env.NODE_ENV!=="production"){const C=je("",S);console.error([`MUI: The \`${_}\` component increases the CSS specificity of the \`${S}\` internal state.`,"You can not override it like this: ",JSON.stringify(v,null,2),"",`Instead, you need to use the '&.${C}' syntax:`,JSON.stringify({root:{[`&.${C}`]:E}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
73
|
+
`))}v[S]={}}}};Object.keys(d.components).forEach(v=>{const _=d.components[v].styleOverrides;_&&v.startsWith("Mui")&&m(_,v)})}return d.unstable_sxConfig={...wn,...p==null?void 0:p.unstable_sxConfig},d.unstable_sx=function(m){return un({sx:m,theme:this})},d.toRuntimeSource=Va,ah(d),d}function Yo(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 lh=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Yo(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Ba(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Fa(e){return e==="dark"?lh:[]}function ch(e){const{palette:t={mode:"light"},opacity:n,overlays:o,colorSpace:r,...s}=e,i=Rr({...t,colorSpace:r});return{palette:i,opacity:{...Ba(i.mode),...n},overlays:o||Fa(i.mode),...s}}function uh(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 dh=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],ph=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let s=r;if(r==="class"&&(s=".%s"),r==="data"&&(s="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(s=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return dh(e.cssVarPrefix).forEach(a=>{i[a]=n[a],delete n[a]}),s==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:i}}:s?{[s.replace("%s",t)]:i,[`${o}, ${s.replace("%s",t)}`]:n}:{[o]:{...n,...i}}}if(s&&s!=="media")return`${o}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(s)return s.replace("%s",String(t))}return o};function fh(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function $(e,t,n){!e[t]&&n&&(e[t]=n)}function hn(e){return typeof e!="string"||!e.startsWith("hsl")?e:Pa(e)}function ut(e,t){`${t}Channel`in e||(e[`${t}Channel`]=mn(hn(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().
|
|
74
|
+
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 mh(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ot=e=>{try{return e()}catch{}},hh=(e="mui")=>Mm(e);function Do(e,t,n,o,r){if(!n)return;n=n===!0?{}:n;const s=r==="dark"?"dark":"light";if(!o){t[r]=ch({...n,palette:{mode:s,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:i,...a}=Ko({...o,palette:{mode:s,...n==null?void 0:n.palette},colorSpace:e});return t[r]={...n,palette:i,opacity:{...Ba(s),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||Fa(s)},a}function gh(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:s="mui",nativeColor:i=!1,shouldSkipGeneratingVar:a=uh,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...p}=e,f=Object.keys(n)[0],h=o||(n.light&&f!=="light"?"light":f),d=hh(s),{[h]:y,light:m,dark:v,..._}=n,S={..._};let E=y;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(E=!0),!E)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:Wt(21,h));let C;i&&(C="oklch");const x=Do(C,S,E,p,h);m&&!S.light&&Do(C,S,m,void 0,"light"),v&&!S.dark&&Do(C,S,v,void 0,"dark");let I={defaultColorScheme:h,...x,cssVarPrefix:s,colorSchemeSelector:u,rootSelector:c,getCssVar:d,colorSchemes:S,font:{...Hm(x.typography),...x.font},spacing:mh(p.spacing)};Object.keys(I.colorSchemes).forEach(U=>{const b=I.colorSchemes[U].palette,R=j=>{const V=j.split("-"),K=V[1],se=V[2];return d(j,b[K][se])};b.mode==="light"&&($(b.common,"background","#fff"),$(b.common,"onBackground","#000")),b.mode==="dark"&&($(b.common,"background","#000"),$(b.common,"onBackground","#fff"));function T(j,V,K){if(C){let se;return j===Lt&&(se=`transparent ${((1-K)*100).toFixed(0)}%`),j===be&&(se=`#000 ${(K*100).toFixed(0)}%`),j===ve&&(se=`#fff ${(K*100).toFixed(0)}%`),`color-mix(in ${C}, ${V}, ${se})`}return j(V,K)}if(fh(b,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),b.mode==="light"){$(b.Alert,"errorColor",T(be,i?d("palette-error-light"):b.error.light,.6)),$(b.Alert,"infoColor",T(be,i?d("palette-info-light"):b.info.light,.6)),$(b.Alert,"successColor",T(be,i?d("palette-success-light"):b.success.light,.6)),$(b.Alert,"warningColor",T(be,i?d("palette-warning-light"):b.warning.light,.6)),$(b.Alert,"errorFilledBg",R("palette-error-main")),$(b.Alert,"infoFilledBg",R("palette-info-main")),$(b.Alert,"successFilledBg",R("palette-success-main")),$(b.Alert,"warningFilledBg",R("palette-warning-main")),$(b.Alert,"errorFilledColor",ot(()=>b.getContrastText(b.error.main))),$(b.Alert,"infoFilledColor",ot(()=>b.getContrastText(b.info.main))),$(b.Alert,"successFilledColor",ot(()=>b.getContrastText(b.success.main))),$(b.Alert,"warningFilledColor",ot(()=>b.getContrastText(b.warning.main))),$(b.Alert,"errorStandardBg",T(ve,i?d("palette-error-light"):b.error.light,.9)),$(b.Alert,"infoStandardBg",T(ve,i?d("palette-info-light"):b.info.light,.9)),$(b.Alert,"successStandardBg",T(ve,i?d("palette-success-light"):b.success.light,.9)),$(b.Alert,"warningStandardBg",T(ve,i?d("palette-warning-light"):b.warning.light,.9)),$(b.Alert,"errorIconColor",R("palette-error-main")),$(b.Alert,"infoIconColor",R("palette-info-main")),$(b.Alert,"successIconColor",R("palette-success-main")),$(b.Alert,"warningIconColor",R("palette-warning-main")),$(b.AppBar,"defaultBg",R("palette-grey-100")),$(b.Avatar,"defaultBg",R("palette-grey-400")),$(b.Button,"inheritContainedBg",R("palette-grey-300")),$(b.Button,"inheritContainedHoverBg",R("palette-grey-A100")),$(b.Chip,"defaultBorder",R("palette-grey-400")),$(b.Chip,"defaultAvatarColor",R("palette-grey-700")),$(b.Chip,"defaultIconColor",R("palette-grey-700")),$(b.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),$(b.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),$(b.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),$(b.LinearProgress,"primaryBg",T(ve,i?d("palette-primary-main"):b.primary.main,.62)),$(b.LinearProgress,"secondaryBg",T(ve,i?d("palette-secondary-main"):b.secondary.main,.62)),$(b.LinearProgress,"errorBg",T(ve,i?d("palette-error-main"):b.error.main,.62)),$(b.LinearProgress,"infoBg",T(ve,i?d("palette-info-main"):b.info.main,.62)),$(b.LinearProgress,"successBg",T(ve,i?d("palette-success-main"):b.success.main,.62)),$(b.LinearProgress,"warningBg",T(ve,i?d("palette-warning-light"):b.warning.main,.62)),$(b.Skeleton,"bg",C?T(Lt,i?d("palette-text-primary"):b.text.primary,.11):`rgba(${R("palette-text-primaryChannel")} / 0.11)`),$(b.Slider,"primaryTrack",T(ve,i?d("palette-primary-main"):b.primary.main,.62)),$(b.Slider,"secondaryTrack",T(ve,i?d("palette-secondary-main"):b.secondary.main,.62)),$(b.Slider,"errorTrack",T(ve,i?d("palette-error-main"):b.error.main,.62)),$(b.Slider,"infoTrack",T(ve,i?d("palette-info-main"):b.info.main,.62)),$(b.Slider,"successTrack",T(ve,i?d("palette-success-main"):b.success.main,.62)),$(b.Slider,"warningTrack",T(ve,i?d("palette-warning-main"):b.warning.main,.62));const j=C?T(be,i?d("palette-background-default"):b.background.default,.6825):jn(b.background.default,.8);$(b.SnackbarContent,"bg",j),$(b.SnackbarContent,"color",ot(()=>C?Ho.text.primary:b.getContrastText(j))),$(b.SpeedDialAction,"fabHoverBg",jn(b.background.paper,.15)),$(b.StepConnector,"border",R("palette-grey-400")),$(b.StepContent,"border",R("palette-grey-400")),$(b.Switch,"defaultColor",R("palette-common-white")),$(b.Switch,"defaultDisabledColor",R("palette-grey-100")),$(b.Switch,"primaryDisabledColor",T(ve,i?d("palette-primary-main"):b.primary.main,.62)),$(b.Switch,"secondaryDisabledColor",T(ve,i?d("palette-secondary-main"):b.secondary.main,.62)),$(b.Switch,"errorDisabledColor",T(ve,i?d("palette-error-main"):b.error.main,.62)),$(b.Switch,"infoDisabledColor",T(ve,i?d("palette-info-main"):b.info.main,.62)),$(b.Switch,"successDisabledColor",T(ve,i?d("palette-success-main"):b.success.main,.62)),$(b.Switch,"warningDisabledColor",T(ve,i?d("palette-warning-main"):b.warning.main,.62)),$(b.TableCell,"border",T(ve,Lt(i?d("palette-divider"):b.divider,1),.88)),$(b.Tooltip,"bg",T(Lt,i?d("palette-grey-700"):b.grey[700],.92))}if(b.mode==="dark"){$(b.Alert,"errorColor",T(ve,i?d("palette-error-light"):b.error.light,.6)),$(b.Alert,"infoColor",T(ve,i?d("palette-info-light"):b.info.light,.6)),$(b.Alert,"successColor",T(ve,i?d("palette-success-light"):b.success.light,.6)),$(b.Alert,"warningColor",T(ve,i?d("palette-warning-light"):b.warning.light,.6)),$(b.Alert,"errorFilledBg",R("palette-error-dark")),$(b.Alert,"infoFilledBg",R("palette-info-dark")),$(b.Alert,"successFilledBg",R("palette-success-dark")),$(b.Alert,"warningFilledBg",R("palette-warning-dark")),$(b.Alert,"errorFilledColor",ot(()=>b.getContrastText(b.error.dark))),$(b.Alert,"infoFilledColor",ot(()=>b.getContrastText(b.info.dark))),$(b.Alert,"successFilledColor",ot(()=>b.getContrastText(b.success.dark))),$(b.Alert,"warningFilledColor",ot(()=>b.getContrastText(b.warning.dark))),$(b.Alert,"errorStandardBg",T(be,i?d("palette-error-light"):b.error.light,.9)),$(b.Alert,"infoStandardBg",T(be,i?d("palette-info-light"):b.info.light,.9)),$(b.Alert,"successStandardBg",T(be,i?d("palette-success-light"):b.success.light,.9)),$(b.Alert,"warningStandardBg",T(be,i?d("palette-warning-light"):b.warning.light,.9)),$(b.Alert,"errorIconColor",R("palette-error-main")),$(b.Alert,"infoIconColor",R("palette-info-main")),$(b.Alert,"successIconColor",R("palette-success-main")),$(b.Alert,"warningIconColor",R("palette-warning-main")),$(b.AppBar,"defaultBg",R("palette-grey-900")),$(b.AppBar,"darkBg",R("palette-background-paper")),$(b.AppBar,"darkColor",R("palette-text-primary")),$(b.Avatar,"defaultBg",R("palette-grey-600")),$(b.Button,"inheritContainedBg",R("palette-grey-800")),$(b.Button,"inheritContainedHoverBg",R("palette-grey-700")),$(b.Chip,"defaultBorder",R("palette-grey-700")),$(b.Chip,"defaultAvatarColor",R("palette-grey-300")),$(b.Chip,"defaultIconColor",R("palette-grey-300")),$(b.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),$(b.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),$(b.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),$(b.LinearProgress,"primaryBg",T(be,i?d("palette-primary-main"):b.primary.main,.5)),$(b.LinearProgress,"secondaryBg",T(be,i?d("palette-secondary-main"):b.secondary.main,.5)),$(b.LinearProgress,"errorBg",T(be,i?d("palette-error-main"):b.error.main,.5)),$(b.LinearProgress,"infoBg",T(be,i?d("palette-info-main"):b.info.main,.5)),$(b.LinearProgress,"successBg",T(be,i?d("palette-success-main"):b.success.main,.5)),$(b.LinearProgress,"warningBg",T(be,i?d("palette-warning-main"):b.warning.main,.5)),$(b.Skeleton,"bg",C?T(Lt,i?d("palette-text-primary"):b.text.primary,.13):`rgba(${R("palette-text-primaryChannel")} / 0.13)`),$(b.Slider,"primaryTrack",T(be,i?d("palette-primary-main"):b.primary.main,.5)),$(b.Slider,"secondaryTrack",T(be,i?d("palette-secondary-main"):b.secondary.main,.5)),$(b.Slider,"errorTrack",T(be,i?d("palette-error-main"):b.error.main,.5)),$(b.Slider,"infoTrack",T(be,i?d("palette-info-main"):b.info.main,.5)),$(b.Slider,"successTrack",T(be,i?d("palette-success-main"):b.success.main,.5)),$(b.Slider,"warningTrack",T(be,i?d("palette-warning-light"):b.warning.main,.5));const j=C?T(ve,i?d("palette-background-default"):b.background.default,.985):jn(b.background.default,.98);$(b.SnackbarContent,"bg",j),$(b.SnackbarContent,"color",ot(()=>C?ja.text.primary:b.getContrastText(j))),$(b.SpeedDialAction,"fabHoverBg",jn(b.background.paper,.15)),$(b.StepConnector,"border",R("palette-grey-600")),$(b.StepContent,"border",R("palette-grey-600")),$(b.Switch,"defaultColor",R("palette-grey-300")),$(b.Switch,"defaultDisabledColor",R("palette-grey-600")),$(b.Switch,"primaryDisabledColor",T(be,i?d("palette-primary-main"):b.primary.main,.55)),$(b.Switch,"secondaryDisabledColor",T(be,i?d("palette-secondary-main"):b.secondary.main,.55)),$(b.Switch,"errorDisabledColor",T(be,i?d("palette-error-main"):b.error.main,.55)),$(b.Switch,"infoDisabledColor",T(be,i?d("palette-info-main"):b.info.main,.55)),$(b.Switch,"successDisabledColor",T(be,i?d("palette-success-main"):b.success.main,.55)),$(b.Switch,"warningDisabledColor",T(be,i?d("palette-warning-light"):b.warning.main,.55)),$(b.TableCell,"border",T(be,Lt(i?d("palette-divider"):b.divider,1),.68)),$(b.Tooltip,"bg",T(Lt,i?d("palette-grey-700"):b.grey[700],.92))}i||(ut(b.background,"default"),ut(b.background,"paper"),ut(b.common,"background"),ut(b.common,"onBackground"),ut(b,"divider")),Object.keys(b).forEach(j=>{const V=b[j];j!=="tonalOffset"&&!i&&V&&typeof V=="object"&&(V.main&&$(b[j],"mainChannel",mn(hn(V.main))),V.light&&$(b[j],"lightChannel",mn(hn(V.light))),V.dark&&$(b[j],"darkChannel",mn(hn(V.dark))),V.contrastText&&$(b[j],"contrastTextChannel",mn(hn(V.contrastText))),j==="text"&&(ut(b[j],"primary"),ut(b[j],"secondary")),j==="action"&&(V.active&&ut(b[j],"active"),V.selected&&ut(b[j],"selected")))})}),I=t.reduce((U,b)=>ze(U,b),I);const w={prefix:s,disableCssColorScheme:r,shouldSkipGeneratingVar:a,getSelector:ph(I),enableContrastVars:i},{vars:N,generateThemeVars:L,generateStyleSheets:F}=jm(I,w);return I.vars=N,Object.entries(I.colorSchemes[I.defaultColorScheme]).forEach(([U,b])=>{I[U]=b}),I.generateThemeVars=L,I.generateStyleSheets=F,I.generateSpacing=function(){return Na(p.spacing,wr(this))},I.getColorSchemeSelector=Lm(u),I.spacing=I.generateSpacing(),I.shouldSkipGeneratingVar=a,I.unstable_sxConfig={...wn,...p==null?void 0:p.unstable_sxConfig},I.unstable_sx=function(b){return un({sx:b,theme:this})},I.toRuntimeSource=Va,I}function Hs(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Rr({...n===!0?{}:n.palette,mode:t})})}function yh(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:s=n==null?void 0:n.mode,...i}=e,a=s||"light",u=r==null?void 0:r[a],c={...r,...n?{[a]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Ko(e,...t);let p=n;"palette"in e||c[a]&&(c[a]!==!0?p=c[a].palette:a==="dark"&&(p={mode:"dark"}));const f=Ko({...e,palette:p},...t);return f.defaultColorScheme=a,f.colorSchemes=c,f.palette.mode==="light"&&(f.colorSchemes.light={...c.light!==!0&&c.light,palette:f.palette},Hs(f,"dark",c.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:f.palette},Hs(f,"light",c.light)),f}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),gh({...i,colorSchemes:c,defaultColorScheme:a,...typeof o!="boolean"&&o},...t)}const kr=yh(),Mr="$$material";function za(){const e=Oa(kr);return process.env.NODE_ENV!=="production"&&k.useDebugValue(e),e[Mr]||e}function bh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Pr=e=>bh(e)&&e!=="classes",de=pm({themeId:Mr,defaultTheme:kr,rootShouldForwardProp:Pr});function vh(){return Uf}const et=km;process.env.NODE_ENV!=="production"&&(l.node,l.object.isRequired);function at(e){return Nm(e)}function _h(e){return je("MuiSvgIcon",e)}Pe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const xh=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${_e(t)}`,`fontSize${_e(n)}`]};return We(r,_h,o)},Ch=de("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${_e(n.color)}`],t[`fontSize${_e(n.fontSize)}`]]}})(et(({theme:e})=>{var t,n,o,r,s,i,a,u,c,p,f,h,d,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(r=(t=e.transitions)==null?void 0:t.create)==null?void 0:r.call(t,"fill",{duration:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:m=>!m.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:i.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((u=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:u.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((p=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:p.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,m])=>m&&m.main).map(([m])=>{var v,_;return{props:{color:m},style:{color:(_=(v=(e.vars??e).palette)==null?void 0:v[m])==null?void 0:_.main}}}),{props:{color:"action"},style:{color:(h=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:h.active}},{props:{color:"disabled"},style:{color:(y=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:y.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Yn=k.forwardRef(function(t,n){const o=at({props:t,name:"MuiSvgIcon"}),{children:r,className:s,color:i="inherit",component:a="svg",fontSize:u="medium",htmlColor:c,inheritViewBox:p=!1,titleAccess:f,viewBox:h="0 0 24 24",...d}=o,y=k.isValidElement(r)&&r.type==="svg",m={...o,color:i,component:a,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:h,hasSvgAsChild:y},v={};p||(v.viewBox=h);const _=xh(m);return g.jsxs(Ch,{as:a,className:ue(_.root,s),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...v,...d,...y&&r.props,ownerState:m,children:[y?r.props.children:r,f?g.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(Yn.propTypes={children:l.node,classes:l.object,className:l.string,color:l.oneOfType([l.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),l.string]),component:l.elementType,fontSize:l.oneOfType([l.oneOf(["inherit","large","medium","small"]),l.string]),htmlColor:l.string,inheritViewBox:l.bool,shapeRendering:l.string,sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object]),titleAccess:l.string,viewBox:l.string});Yn.muiName="SvgIcon";function lt(e,t){function n(o,r){return g.jsx(Yn,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:r,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Yn.muiName,k.memo(k.forwardRef(n))}function Sh(e){const{controlled:t,default:n,name:o,state:r="value"}=e,{current:s}=k.useRef(t!==void 0),[i,a]=k.useState(n),u=s?t:i;if(process.env.NODE_ENV!=="production"){k.useEffect(()=>{s!==(t!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${r} state of ${o} to be ${s?"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(`
|
|
75
|
+
`))},[r,o,t]);const{current:p}=k.useRef(n);k.useEffect(()=>{!s&&JSON.stringify(n)!==JSON.stringify(p)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join(`
|
|
76
|
+
`))},[JSON.stringify(n)])}const c=k.useCallback(p=>{s||a(p)},[]);return[u,c]}function zn(e){const t=k.useRef(e);return vm(()=>{t.current=e}),k.useRef((...n)=>(0,t.current)(...n)).current}function Xn(...e){const t=k.useRef(void 0),n=k.useCallback(o=>{const r=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const i=s,a=i(o);return typeof a=="function"?a:()=>{i(null)}}return s.current=o,()=>{s.current=null}});return()=>{r.forEach(s=>s==null?void 0:s())}},e);return k.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}function Ih(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Th(e,t){if(!e)return t;function n(i,a){const u={};return Object.keys(a).forEach(c=>{Ih(c,a[c])&&typeof i[c]=="function"&&(u[c]=(...p)=>{i[c](...p),a[c](...p)})}),u}if(typeof e=="function"||typeof t=="function")return i=>{const a=typeof t=="function"?t(i):t,u=typeof e=="function"?e({...i,...a}):e,c=ue(i==null?void 0:i.className,a==null?void 0:a.className,u==null?void 0:u.className),p=n(u,a);return{...a,...u,...p,...!!c&&{className:c},...(a==null?void 0:a.style)&&(u==null?void 0:u.style)&&{style:{...a.style,...u.style}},...(a==null?void 0:a.sx)&&(u==null?void 0:u.sx)&&{sx:[...Array.isArray(a.sx)?a.sx:[a.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const o=t,r=n(e,o),s=ue(o==null?void 0:o.className,e==null?void 0:e.className);return{...t,...e,...r,...!!s&&{className:s},...(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 Wa=l.oneOfType([l.func,l.object]);function So(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function Eh(e){const{prototype:t={}}=e;return!!t.isReactComponent}function wh(e,t,n,o,r){const s=e[t],i=r||t;if(s==null||typeof window>"u")return null;let a;return typeof s=="function"&&!Eh(s)&&(a="Did you accidentally provide a plain function component instead?"),s===k.Fragment&&(a="Did you accidentally provide a React.Fragment instead?"),a!==void 0?new Error(`Invalid ${o} \`${i}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${a} For more information see https://v7.mui.com/r/caveat-with-refs-guide`):null}const Ua=So(l.elementType,wh);function Ks(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(`
|
|
77
|
+
`))}return!1}const Ys={};function Ga(e,t){const n=k.useRef(Ys);return n.current===Ys&&(n.current=e(t)),n}class Qn{constructor(){B(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 Qn}static use(){const t=Ga(Qn.create).current,[n,o]=k.useState(!1);return t.shouldMount=n,t.setShouldMount=o,k.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=Oh(),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 Nh(){return Qn.use()}function Oh(){let e,t;const n=new Promise((o,r)=>{e=o,t=r});return n.resolve=e,n.reject=t,n}function q(){return q=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},q.apply(null,arguments)}function Ut(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 Xo(e,t){return Xo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Xo(e,t)}function qa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xo(e,t)}const Xs={disabled:!1};var $h=process.env.NODE_ENV!=="production"?l.oneOfType([l.number,l.shape({enter:l.number,exit:l.number,appear:l.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&l.oneOfType([l.string,l.shape({enter:l.string,exit:l.string,active:l.string}),l.shape({enter:l.string,enterDone:l.string,enterActive:l.string,exit:l.string,exitDone:l.string,exitActive:l.string})]);const Jn=O.createContext(null);var Rh=function(t){return t.scrollTop},gn="unmounted",Dt="exited",Vt="entering",nn="entered",Qo="exiting",_t=(function(e){qa(t,e);function t(o,r){var s;s=e.call(this,o,r)||this;var i=r,a=i&&!i.isMounting?o.enter:o.appear,u;return s.appearStatus=null,o.in?a?(u=Dt,s.appearStatus=Vt):u=nn:o.unmountOnExit||o.mountOnEnter?u=gn:u=Dt,s.state={status:u},s.nextCallback=null,s}t.getDerivedStateFromProps=function(r,s){var i=r.in;return i&&s.status===gn?{status:Dt}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var s=null;if(r!==this.props){var i=this.state.status;this.props.in?i!==Vt&&i!==nn&&(s=Vt):(i===Vt||i===nn)&&(s=Qo)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,s,i,a;return s=i=a=r,r!=null&&typeof r!="number"&&(s=r.exit,i=r.enter,a=r.appear!==void 0?r.appear:i),{exit:s,enter:i,appear:a}},n.updateStatus=function(r,s){if(r===void 0&&(r=!1),s!==null)if(this.cancelNextCallback(),s===Vt){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:$n.findDOMNode(this);i&&Rh(i)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Dt&&this.setState({status:gn})},n.performEnter=function(r){var s=this,i=this.props.enter,a=this.context?this.context.isMounting:r,u=this.props.nodeRef?[a]:[$n.findDOMNode(this),a],c=u[0],p=u[1],f=this.getTimeouts(),h=a?f.appear:f.enter;if(!r&&!i||Xs.disabled){this.safeSetState({status:nn},function(){s.props.onEntered(c)});return}this.props.onEnter(c,p),this.safeSetState({status:Vt},function(){s.props.onEntering(c,p),s.onTransitionEnd(h,function(){s.safeSetState({status:nn},function(){s.props.onEntered(c,p)})})})},n.performExit=function(){var r=this,s=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:$n.findDOMNode(this);if(!s||Xs.disabled){this.safeSetState({status:Dt},function(){r.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Qo},function(){r.props.onExiting(a),r.onTransitionEnd(i.exit,function(){r.safeSetState({status:Dt},function(){r.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,s){s=this.setNextCallback(s),this.setState(r,s)},n.setNextCallback=function(r){var s=this,i=!0;return this.nextCallback=function(a){i&&(i=!1,s.nextCallback=null,r(a))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(r,s){this.setNextCallback(s);var i=this.props.nodeRef?this.props.nodeRef.current:$n.findDOMNode(this),a=r==null&&!this.props.addEndListener;if(!i||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=u[0],p=u[1];this.props.addEndListener(c,p)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===gn)return null;var s=this.props,i=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var a=Ut(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return O.createElement(Jn.Provider,{value:null},typeof i=="function"?i(r,a):O.cloneElement(O.Children.only(i),a))},t})(O.Component);_t.contextType=Jn;_t.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:l.shape({current:typeof Element>"u"?l.any:function(e,t,n,o,r,s){var i=e[t];return l.instanceOf(i&&"ownerDocument"in i?i.ownerDocument.defaultView.Element:Element)(e,t,n,o,r,s)}}),children:l.oneOfType([l.func.isRequired,l.element.isRequired]).isRequired,in:l.bool,mountOnEnter:l.bool,unmountOnExit:l.bool,appear:l.bool,enter:l.bool,exit:l.bool,timeout:function(t){var n=$h;t.addEndListener||(n=n.isRequired);for(var o=arguments.length,r=new Array(o>1?o-1:0),s=1;s<o;s++)r[s-1]=arguments[s];return n.apply(void 0,[t].concat(r))},addEndListener:l.func,onEnter:l.func,onEntering:l.func,onEntered:l.func,onExit:l.func,onExiting:l.func,onExited:l.func}:{};function Qt(){}_t.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Qt,onEntering:Qt,onEntered:Qt,onExit:Qt,onExiting:Qt,onExited:Qt};_t.UNMOUNTED=gn;_t.EXITED=Dt;_t.ENTERING=Vt;_t.ENTERED=nn;_t.EXITING=Qo;function kh(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ar(e,t){var n=function(s){return t&&O.isValidElement(s)?t(s):s},o=Object.create(null);return e&&O.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function Mh(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var o=Object.create(null),r=[];for(var s in e)s in t?r.length&&(o[s]=r,r=[]):r.push(s);var i,a={};for(var u in t){if(o[u])for(i=0;i<o[u].length;i++){var c=o[u][i];a[o[u][i]]=n(c)}a[u]=n(u)}for(i=0;i<r.length;i++)a[r[i]]=n(r[i]);return a}function Ft(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Ph(e,t){return Ar(e.children,function(n){return O.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ft(n,"appear",e),enter:Ft(n,"enter",e),exit:Ft(n,"exit",e)})})}function Ah(e,t,n){var o=Ar(e.children),r=Mh(t,o);return Object.keys(r).forEach(function(s){var i=r[s];if(O.isValidElement(i)){var a=s in t,u=s in o,c=t[s],p=O.isValidElement(c)&&!c.props.in;u&&(!a||p)?r[s]=O.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:Ft(i,"exit",e),enter:Ft(i,"enter",e)}):!u&&a&&!p?r[s]=O.cloneElement(i,{in:!1}):u&&a&&O.isValidElement(c)&&(r[s]=O.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:Ft(i,"exit",e),enter:Ft(i,"enter",e)}))}}),r}var jh=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Lh={component:"div",childFactory:function(t){return t}},jr=(function(e){qa(t,e);function t(o,r){var s;s=e.call(this,o,r)||this;var i=s.handleExited.bind(kh(s));return s.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},s}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(r,s){var i=s.children,a=s.handleExited,u=s.firstRender;return{children:u?Ph(r,a):Ah(r,i,a),firstRender:!1}},n.handleExited=function(r,s){var i=Ar(this.props.children);r.key in i||(r.props.onExited&&r.props.onExited(s),this.mounted&&this.setState(function(a){var u=q({},a.children);return delete u[r.key],{children:u}}))},n.render=function(){var r=this.props,s=r.component,i=r.childFactory,a=Ut(r,["component","childFactory"]),u=this.state.contextValue,c=jh(this.state.children).map(i);return delete a.appear,delete a.enter,delete a.exit,s===null?O.createElement(Jn.Provider,{value:u},c):O.createElement(Jn.Provider,{value:u},O.createElement(s,a,c))},t})(O.Component);jr.propTypes=process.env.NODE_ENV!=="production"?{component:l.any,children:l.node,appear:l.bool,enter:l.bool,exit:l.bool,childFactory:l.func}:{};jr.defaultProps=Lh;const Dh=[];function Vh(e){k.useEffect(e,Dh)}class Lr{constructor(){B(this,"currentId",null);B(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});B(this,"disposeEffect",()=>this.clear)}static create(){return new Lr}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Ha(){const e=Ga(Lr.create).current;return Vh(e.disposeEffect),e}function Ka(e){const{className:t,classes:n,pulsate:o=!1,rippleX:r,rippleY:s,rippleSize:i,in:a,onExited:u,timeout:c}=e,[p,f]=k.useState(!1),h=ue(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),d={width:i,height:i,top:-(i/2)+s,left:-(i/2)+r},y=ue(n.child,p&&n.childLeaving,o&&n.childPulsate);return!a&&!p&&f(!0),k.useEffect(()=>{if(!a&&u!=null){const m=setTimeout(u,c);return()=>{clearTimeout(m)}}},[u,a,c]),g.jsx("span",{className:h,style:d,children:g.jsx("span",{className:y})})}process.env.NODE_ENV!=="production"&&(Ka.propTypes={classes:l.object.isRequired,className:l.string,in:l.bool,onExited:l.func,pulsate:l.bool,rippleSize:l.number,rippleX:l.number,rippleY:l.number,timeout:l.number.isRequired});const qe=Pe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Jo=550,Bh=80,Fh=kt.keyframes`
|
|
78
|
+
0% {
|
|
79
|
+
transform: scale(0);
|
|
80
|
+
opacity: 0.1;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
100% {
|
|
84
|
+
transform: scale(1);
|
|
85
|
+
opacity: 0.3;
|
|
86
|
+
}
|
|
87
|
+
`,zh=kt.keyframes`
|
|
88
|
+
0% {
|
|
89
|
+
opacity: 1;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
100% {
|
|
93
|
+
opacity: 0;
|
|
94
|
+
}
|
|
95
|
+
`,Wh=kt.keyframes`
|
|
96
|
+
0% {
|
|
97
|
+
transform: scale(1);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
50% {
|
|
101
|
+
transform: scale(0.92);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
100% {
|
|
105
|
+
transform: scale(1);
|
|
106
|
+
}
|
|
107
|
+
`,Uh=de("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Gh=de(Ka,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
108
|
+
opacity: 0;
|
|
109
|
+
position: absolute;
|
|
110
|
+
|
|
111
|
+
&.${qe.rippleVisible} {
|
|
112
|
+
opacity: 0.3;
|
|
113
|
+
transform: scale(1);
|
|
114
|
+
animation-name: ${Fh};
|
|
115
|
+
animation-duration: ${Jo}ms;
|
|
116
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&.${qe.ripplePulsate} {
|
|
120
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
& .${qe.child} {
|
|
124
|
+
opacity: 1;
|
|
125
|
+
display: block;
|
|
126
|
+
width: 100%;
|
|
127
|
+
height: 100%;
|
|
128
|
+
border-radius: 50%;
|
|
129
|
+
background-color: currentColor;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
& .${qe.childLeaving} {
|
|
133
|
+
opacity: 0;
|
|
134
|
+
animation-name: ${zh};
|
|
135
|
+
animation-duration: ${Jo}ms;
|
|
136
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
& .${qe.childPulsate} {
|
|
140
|
+
position: absolute;
|
|
141
|
+
/* @noflip */
|
|
142
|
+
left: 0px;
|
|
143
|
+
top: 0;
|
|
144
|
+
animation-name: ${Wh};
|
|
145
|
+
animation-duration: 2500ms;
|
|
146
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
147
|
+
animation-iteration-count: infinite;
|
|
148
|
+
animation-delay: 200ms;
|
|
149
|
+
}
|
|
150
|
+
`,Ya=k.forwardRef(function(t,n){const o=at({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:s={},className:i,...a}=o,[u,c]=k.useState([]),p=k.useRef(0),f=k.useRef(null);k.useEffect(()=>{f.current&&(f.current(),f.current=null)},[u]);const h=k.useRef(!1),d=Ha(),y=k.useRef(null),m=k.useRef(null),v=k.useCallback(C=>{const{pulsate:x,rippleX:I,rippleY:w,rippleSize:N,cb:L}=C;c(F=>[...F,g.jsx(Gh,{classes:{ripple:ue(s.ripple,qe.ripple),rippleVisible:ue(s.rippleVisible,qe.rippleVisible),ripplePulsate:ue(s.ripplePulsate,qe.ripplePulsate),child:ue(s.child,qe.child),childLeaving:ue(s.childLeaving,qe.childLeaving),childPulsate:ue(s.childPulsate,qe.childPulsate)},timeout:Jo,pulsate:x,rippleX:I,rippleY:w,rippleSize:N},p.current)]),p.current+=1,f.current=L},[s]),_=k.useCallback((C={},x={},I=()=>{})=>{const{pulsate:w=!1,center:N=r||x.pulsate,fakeElement:L=!1}=x;if((C==null?void 0:C.type)==="mousedown"&&h.current){h.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(h.current=!0);const F=L?null:m.current,U=F?F.getBoundingClientRect():{width:0,height:0,left:0,top:0};let b,R,T;if(N||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)b=Math.round(U.width/2),R=Math.round(U.height/2);else{const{clientX:j,clientY:V}=C.touches&&C.touches.length>0?C.touches[0]:C;b=Math.round(j-U.left),R=Math.round(V-U.top)}if(N)T=Math.sqrt((2*U.width**2+U.height**2)/3),T%2===0&&(T+=1);else{const j=Math.max(Math.abs((F?F.clientWidth:0)-b),b)*2+2,V=Math.max(Math.abs((F?F.clientHeight:0)-R),R)*2+2;T=Math.sqrt(j**2+V**2)}C!=null&&C.touches?y.current===null&&(y.current=()=>{v({pulsate:w,rippleX:b,rippleY:R,rippleSize:T,cb:I})},d.start(Bh,()=>{y.current&&(y.current(),y.current=null)})):v({pulsate:w,rippleX:b,rippleY:R,rippleSize:T,cb:I})},[r,v,d]),S=k.useCallback(()=>{_({},{pulsate:!0})},[_]),E=k.useCallback((C,x)=>{if(d.clear(),(C==null?void 0:C.type)==="touchend"&&y.current){y.current(),y.current=null,d.start(0,()=>{E(C,x)});return}y.current=null,c(I=>I.length>0?I.slice(1):I),f.current=x},[d]);return k.useImperativeHandle(n,()=>({pulsate:S,start:_,stop:E}),[S,_,E]),g.jsx(Uh,{className:ue(qe.root,s.root,i),ref:m,...a,children:g.jsx(jr,{component:null,exit:!0,children:u})})});process.env.NODE_ENV!=="production"&&(Ya.propTypes={center:l.bool,classes:l.object,className:l.string});function qh(e){return je("MuiButtonBase",e)}const Hh=Pe("MuiButtonBase",["root","disabled","focusVisible"]),Kh=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,i=We({root:["root",t&&"disabled",n&&"focusVisible"]},qh,r);return n&&o&&(i.root+=` ${o}`),i},Yh=de("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"},[`&.${Hh.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Dr=k.forwardRef(function(t,n){const o=at({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:s=!1,children:i,className:a,component:u="button",disabled:c=!1,disableRipple:p=!1,disableTouchRipple:f=!1,focusRipple:h=!1,focusVisibleClassName:d,LinkComponent:y="a",onBlur:m,onClick:v,onContextMenu:_,onDragLeave:S,onFocus:E,onFocusVisible:C,onKeyDown:x,onKeyUp:I,onMouseDown:w,onMouseLeave:N,onMouseUp:L,onTouchEnd:F,onTouchMove:U,onTouchStart:b,tabIndex:R=0,TouchRippleProps:T,touchRippleRef:j,type:V,...K}=o,se=k.useRef(null),oe=Nh(),M=Xn(oe.ref,j),[z,Q]=k.useState(!1);c&&z&&Q(!1),k.useImperativeHandle(r,()=>({focusVisible:()=>{Q(!0),se.current.focus()}}),[]);const re=oe.shouldMount&&!p&&!c;k.useEffect(()=>{z&&h&&!p&&oe.pulsate()},[p,h,z,oe]);const ne=dt(oe,"start",w,f),Y=dt(oe,"stop",_,f),J=dt(oe,"stop",S,f),Z=dt(oe,"stop",L,f),A=dt(oe,"stop",ae=>{z&&ae.preventDefault(),N&&N(ae)},f),P=dt(oe,"start",b,f),W=dt(oe,"stop",F,f),ie=dt(oe,"stop",U,f),D=dt(oe,"stop",ae=>{Ks(ae.target)||Q(!1),m&&m(ae)},!1),Ee=zn(ae=>{se.current||(se.current=ae.currentTarget),Ks(ae.target)&&(Q(!0),C&&C(ae)),E&&E(ae)}),te=()=>{const ae=se.current;return ae?ae.tagName==="BUTTON"?!1:!(ae.tagName==="A"&&ae.href):u&&u!=="button"},Te=zn(ae=>{h&&!ae.repeat&&z&&ae.key===" "&&oe.stop(ae,()=>{oe.start(ae)}),ae.target===ae.currentTarget&&te()&&ae.key===" "&&ae.preventDefault(),x&&x(ae),ae.target===ae.currentTarget&&te()&&ae.key==="Enter"&&!c&&(ae.preventDefault(),v&&v(ae))}),ke=zn(ae=>{h&&ae.key===" "&&z&&!ae.defaultPrevented&&oe.stop(ae,()=>{oe.pulsate(ae)}),I&&I(ae),v&&ae.target===ae.currentTarget&&te()&&ae.key===" "&&!ae.defaultPrevented&&!c&&v(ae)});let Me=u;Me==="button"&&(K.href||K.to)&&(Me=y);const tt={};if(Me==="button"){const ae=!!K.formAction;tt.type=V===void 0&&!ae?"button":V,tt.disabled=c}else!K.href&&!K.to&&(tt.role="button"),c&&(tt["aria-disabled"]=c);const On=Xn(n,se),as={...o,centerRipple:s,component:u,disabled:c,disableRipple:p,disableTouchRipple:f,focusRipple:h,tabIndex:R,focusVisible:z},Xl=Kh(as);return g.jsxs(Yh,{as:Me,className:ue(Xl.root,a),ownerState:as,onBlur:D,onClick:v,onContextMenu:Y,onFocus:Ee,onKeyDown:Te,onKeyUp:ke,onMouseDown:ne,onMouseLeave:A,onMouseUp:Z,onDragLeave:J,onTouchEnd:W,onTouchMove:ie,onTouchStart:P,ref:On,tabIndex:c?-1:R,type:V,...tt,...K,children:[i,re?g.jsx(Ya,{ref:M,center:s,...T}):null]})});function dt(e,t,n,o=!1){return zn(r=>(n&&n(r),o||e[t](r),!0))}process.env.NODE_ENV!=="production"&&(Dr.propTypes={action:Wa,centerRipple:l.bool,children:l.node,classes:l.object,className:l.string,component:Ua,disabled:l.bool,disableRipple:l.bool,disableTouchRipple:l.bool,focusRipple:l.bool,focusVisibleClassName:l.string,formAction:l.oneOfType([l.func,l.string]),href:l.any,LinkComponent:l.elementType,onBlur:l.func,onClick:l.func,onContextMenu:l.func,onDragLeave:l.func,onFocus:l.func,onFocusVisible:l.func,onKeyDown:l.func,onKeyUp:l.func,onMouseDown:l.func,onMouseLeave:l.func,onMouseUp:l.func,onTouchEnd:l.func,onTouchMove:l.func,onTouchStart:l.func,sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object]),tabIndex:l.number,TouchRippleProps:l.object,touchRippleRef:l.oneOfType([l.func,l.shape({current:l.shape({pulsate:l.func.isRequired,start:l.func.isRequired,stop:l.func.isRequired})})]),type:l.oneOfType([l.oneOf(["button","reset","submit"]),l.string])});function Xh(e){return typeof e.main=="string"}function Qh(e,t=[]){if(!Xh(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function gt(e=[]){return([,t])=>t&&Qh(t,e)}function Jh(e){return je("MuiCircularProgress",e)}Pe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Je=44,Zo=kt.keyframes`
|
|
151
|
+
0% {
|
|
152
|
+
transform: rotate(0deg);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
100% {
|
|
156
|
+
transform: rotate(360deg);
|
|
157
|
+
}
|
|
158
|
+
`,er=kt.keyframes`
|
|
159
|
+
0% {
|
|
160
|
+
stroke-dasharray: 1px, 200px;
|
|
161
|
+
stroke-dashoffset: 0;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
50% {
|
|
165
|
+
stroke-dasharray: 100px, 200px;
|
|
166
|
+
stroke-dashoffset: -15px;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
100% {
|
|
170
|
+
stroke-dasharray: 1px, 200px;
|
|
171
|
+
stroke-dashoffset: -126px;
|
|
172
|
+
}
|
|
173
|
+
`,Zh=typeof Zo!="string"?kt.css`
|
|
174
|
+
animation: ${Zo} 1.4s linear infinite;
|
|
175
|
+
`:null,eg=typeof er!="string"?kt.css`
|
|
176
|
+
animation: ${er} 1.4s ease-in-out infinite;
|
|
177
|
+
`:null,tg=e=>{const{classes:t,variant:n,color:o,disableShrink:r}=e,s={root:["root",n,`color${_e(o)}`],svg:["svg"],track:["track"],circle:["circle",`circle${_e(n)}`,r&&"circleDisableShrink"]};return We(s,Jh,t)},ng=de("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${_e(n.color)}`]]}})(et(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Zh||{animation:`${Zo} 1.4s linear infinite`}},...Object.entries(e.palette).filter(gt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),og=de("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),rg=de("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${_e(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(et(({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:eg||{animation:`${er} 1.4s ease-in-out infinite`}}]}))),sg=de("circle",{name:"MuiCircularProgress",slot:"Track"})(et(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Vr=k.forwardRef(function(t,n){const o=at({props:t,name:"MuiCircularProgress"}),{className:r,color:s="primary",disableShrink:i=!1,enableTrackSlot:a=!1,size:u=40,style:c,thickness:p=3.6,value:f=0,variant:h="indeterminate",...d}=o,y={...o,color:s,disableShrink:i,size:u,thickness:p,value:f,variant:h,enableTrackSlot:a},m=tg(y),v={},_={},S={};if(h==="determinate"){const E=2*Math.PI*((Je-p)/2);v.strokeDasharray=E.toFixed(3),S["aria-valuenow"]=Math.round(f),v.strokeDashoffset=`${((100-f)/100*E).toFixed(3)}px`,_.transform="rotate(-90deg)"}return g.jsx(ng,{className:ue(m.root,r),style:{width:u,height:u,..._,...c},ownerState:y,ref:n,role:"progressbar",...S,...d,children:g.jsxs(og,{className:m.svg,ownerState:y,viewBox:`${Je/2} ${Je/2} ${Je} ${Je}`,children:[a?g.jsx(sg,{className:m.track,ownerState:y,cx:Je,cy:Je,r:(Je-p)/2,fill:"none",strokeWidth:p,"aria-hidden":"true"}):null,g.jsx(rg,{className:m.circle,style:v,ownerState:y,cx:Je,cy:Je,r:(Je-p)/2,fill:"none",strokeWidth:p})]})})});process.env.NODE_ENV!=="production"&&(Vr.propTypes={classes:l.object,className:l.string,color:l.oneOfType([l.oneOf(["inherit","primary","secondary","error","info","success","warning"]),l.string]),disableShrink:So(l.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:l.bool,size:l.oneOfType([l.number,l.string]),style:l.object,sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object]),thickness:l.number,value:l.number,variant:l.oneOf(["determinate","indeterminate"])});const Xa=k.createContext(null);process.env.NODE_ENV!=="production"&&(Xa.displayName="TabContext");process.env.NODE_ENV!=="production"&&(l.node,l.oneOfType([l.number,l.string]).isRequired);function ig(){return k.useContext(Xa)}function ag(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-P-${t}`}function lg(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-T-${t}`}function cg(e){return typeof e=="string"}function ug(e,t,n){return e===void 0||cg(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function dg(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 Qs(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 pg(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:s}=e;if(!t){const d=ue(n==null?void 0:n.className,s,r==null?void 0:r.className,o==null?void 0:o.className),y={...n==null?void 0:n.style,...r==null?void 0:r.style,...o==null?void 0:o.style},m={...n,...r,...o};return d.length>0&&(m.className=d),Object.keys(y).length>0&&(m.style=y),{props:m,internalRef:void 0}}const i=dg({...r,...o}),a=Qs(o),u=Qs(r),c=t(i),p=ue(c==null?void 0:c.className,n==null?void 0:n.className,s,r==null?void 0:r.className,o==null?void 0:o.className),f={...c==null?void 0:c.style,...n==null?void 0:n.style,...r==null?void 0:r.style,...o==null?void 0:o.style},h={...c,...n,...u,...a};return p.length>0&&(h.className=p),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:c.ref}}function fg(e,t,n){return typeof e=="function"?e(t,n):e}function Ke(e,t){const{className:n,elementType:o,ownerState:r,externalForwardedProps:s,internalForwardedProps:i,shouldForwardComponentProp:a=!1,...u}=t,{component:c,slots:p={[e]:void 0},slotProps:f={[e]:void 0},...h}=s,d=p[e]||o,y=fg(f[e],r),{props:{component:m,...v},internalRef:_}=pg({className:n,...u,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:y}),S=Xn(_,y==null?void 0:y.ref,t.ref),E=e==="root"?m||c:m,C=ug(d,{...e==="root"&&!c&&!p[e]&&i,...e!=="root"&&!p[e]&&i,...v,...E&&!a&&{as:E},...E&&a&&{component:E},ref:S},r);return[d,C]}function Io({props:e,name:t}){return bm({props:e,name:t,defaultTheme:kr,themeId:Mr})}function mg(e){return je("MuiTabPanel",e)}Pe("MuiTabPanel",["root","hidden"]);const hg=e=>{const{classes:t,hidden:n}=e;return We({root:["root",n&&"hidden"]},mg,t)},gg=de("div",{name:"MuiTabPanel",slot:"Root"})(({theme:e})=>({padding:e.spacing(3)})),Qa=k.forwardRef(function(t,n){const o=Io({props:t,name:"MuiTabPanel"}),{children:r,className:s,value:i,keepMounted:a=!1,...u}=o,c={...o},p=hg(c),f=ig();if(f===null)throw new TypeError("No TabContext provided");const h=ag(f,i),d=lg(f,i);return g.jsx(gg,{"aria-labelledby":d,className:ue(p.root,s),hidden:i!==f.value,id:h,ref:n,role:"tabpanel",ownerState:c,...u,children:(a||i===f.value)&&r})});process.env.NODE_ENV!=="production"&&(Qa.propTypes={children:l.node,classes:l.object,className:l.string,keepMounted:l.bool,sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object]),value:l.oneOfType([l.number,l.string]).isRequired});const Zn=k.createContext({});process.env.NODE_ENV!=="production"&&(Zn.displayName="TimelineContext");function yg(e){return je("MuiTimeline",e)}Pe("MuiTimeline",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);function To(e){return e==="alternate-reverse"?"positionAlternateReverse":`position${_e(e)}`}const bg=e=>{const{position:t,classes:n}=e,o={root:["root",t&&To(t)]};return We(o,yg,n)},vg=de("ul",{name:"MuiTimeline",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.position&&t[To(n.position)]]}})({display:"flex",flexDirection:"column",padding:"6px 16px",flexGrow:1}),Ja=k.forwardRef(function(t,n){const o=Io({props:t,name:"MuiTimeline"}),{position:r="right",className:s,...i}=o,a={...o,position:r},u=bg(a),c=k.useMemo(()=>({position:r}),[r]);return g.jsx(Zn.Provider,{value:c,children:g.jsx(vg,{className:ue(u.root,s),ownerState:a,ref:n,...i})})});process.env.NODE_ENV!=="production"&&(Ja.propTypes={children:l.node,classes:l.object,className:l.string,position:l.oneOf(["alternate-reverse","alternate","left","right"]),sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object])});function _g(e){return je("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 xg={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Cg=vh(),Sg=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:r,variant:s,classes:i}=e,a={root:["root",s,e.align!=="inherit"&&`align${_e(t)}`,n&&"gutterBottom",o&&"noWrap",r&&"paragraph"]};return We(a,_g,i)},Ig=de("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${_e(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(et(({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(gt()).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${_e(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}}]}})),Js={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Za=k.forwardRef(function(t,n){const{color:o,...r}=at({props:t,name:"MuiTypography"}),s=!xg[o],i=Cg({...r,...s&&{color:o}}),{align:a="inherit",className:u,component:c,gutterBottom:p=!1,noWrap:f=!1,paragraph:h=!1,variant:d="body1",variantMapping:y=Js,...m}=i,v={...i,align:a,color:o,className:u,component:c,gutterBottom:p,noWrap:f,paragraph:h,variant:d,variantMapping:y},_=c||(h?"p":y[d]||Js[d])||"span",S=Sg(v);return g.jsx(Ig,{as:_,ref:n,className:ue(S.root,u),...m,ownerState:v,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...m.style}})});process.env.NODE_ENV!=="production"&&(Za.propTypes={align:l.oneOf(["center","inherit","justify","left","right"]),children:l.node,classes:l.object,className:l.string,color:l.oneOfType([l.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),l.string]),component:l.elementType,gutterBottom:l.bool,noWrap:l.bool,paragraph:l.bool,style:l.object,sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object]),variant:l.oneOfType([l.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),l.string]),variantMapping:l.object});const Tg=Pe("MuiTimelineContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]),Eg=Pe("MuiTimelineOppositeContent",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse"]);function wg(e){return je("MuiTimelineItem",e)}Pe("MuiTimelineItem",["root","positionLeft","positionRight","positionAlternate","positionAlternateReverse","missingOppositeContent"]);const Ng=e=>{const{position:t,classes:n,hasOppositeContent:o}=e,r={root:["root",To(t),!o&&"missingOppositeContent"]};return We(r,wg,n)},Og=de("li",{name:"MuiTimelineItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[To(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",[`& .${Tg.root}`]:{textAlign:"right"},[`& .${Eg.root}`]:{textAlign:"left"}}},...!e.hasOppositeContent&&{"&::before":{content:'""',flex:1,padding:"6px 16px"}}})),el=k.forwardRef(function(t,n){const o=Io({props:t,name:"MuiTimelineItem"}),{position:r,className:s,...i}=o,{position:a}=k.useContext(Zn);let u=!1;k.Children.forEach(o.children,h=>{Dm(h,["TimelineOppositeContent"])&&(u=!0)});const c={...o,position:r||a||"right",hasOppositeContent:u},p=Ng(c),f=k.useMemo(()=>({position:c.position}),[c.position]);return g.jsx(Zn.Provider,{value:f,children:g.jsx(Og,{className:ue(p.root,s),ownerState:c,ref:n,...i})})});process.env.NODE_ENV!=="production"&&(el.propTypes={children:l.node,classes:l.object,className:l.string,position:l.oneOf(["alternate-reverse","alternate","left","right"]),sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object])});const tl=O.forwardRef(function(t,n){const{variant:o="default",orientation:r="horizontal",inverted:s=!1,overStyled:i=!1,className:a,...u}=t,c=X(u,i);return g.jsx(H.Tabs,{ref:n,orientation:r,className:`${bn.root} ${a||""}`,"data-variant":o,"data-orientation":r,"data-inverted":s||void 0,classes:{flexContainer:bn.list,indicator:bn.indicator},...c})});tl.displayName="Tabs";const nl=O.forwardRef(function(t,n){const{overStyled:o=!1,className:r,...s}=t,i=X(s,o);return g.jsx(H.Tab,{ref:n,className:`${bn.tab} ${r||""}`,...i})});nl.displayName="Tab";const ol=O.forwardRef(function(t,n){const{overStyled:o=!1,className:r,...s}=t,i=X(s,o);return g.jsx(Qa,{ref:n,className:`${bn.panel} ${r||""}`,...i})});ol.displayName="TabPanel";const Eo=O.forwardRef(function({typographyClass:t,overStyled:n=!1,...o},r){const s=X(o,n),a=s.className,u=a?`${t} ${a}`:t;return g.jsx(H.Typography,{ref:r,className:u,variant:"inherit",...s})});Eo.displayName="Typography";const rl=O.forwardRef(function({variant:t="body",...n},o){const r=`recursica_brand_typography_${t}`;return g.jsx(Eo,{ref:o,typographyClass:r,...n})});rl.displayName="Text";const $g="TextArea-module__layoutOverride___4MCdm",Rg="TextArea-module__root___3dyeu",kg="TextArea-module__input___8l36v",It={layoutOverride:$g,root:Rg,input:kg},sl=O.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:r="stacked",labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,assistiveText:f,assistiveWithIcon:h,error:d,required:y,withAsterisk:m,id:v,className:_,style:S,disabled:E,readOnly:C,readOnlyComponent:x,emptyValueComponent:I,value:w,defaultValue:N,...L}=t,F=X(L,o),U=F;delete U.size,delete U.variant,delete U.radius;const b={wrapper:It.root,input:It.input},R=U.classNames;if(R&&typeof R=="object"&&!Array.isArray(R)){const j=R;b.wrapper=j.wrapper?`${It.root} ${j.wrapper}`:It.root,b.input=j.input?`${It.input} ${j.input}`:It.input}const T=_?`${It.layoutOverride} ${_}`:It.layoutOverride;return g.jsx(it,{className:T,style:S,controlMaxWidth:"var(--textarea-control-max-width)",controlMinWidth:"var(--textarea-control-min-width)",overStyled:o,formLayout:r,labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,assistiveText:f,assistiveWithIcon:h,error:d,required:y,id:v,readOnly:C,readOnlyComponent:x,emptyValueComponent:I,readOnlyType:"text",readOnlyValue:w!==void 0?w:N,readOnlyNativeProps:t,activeComponent:g.jsx(H.TextField,{multiline:!0,inputRef:n,classes:b,disabled:E,value:w,defaultValue:N,label:void 0,error:void 0,required:void 0,...F})})});sl.displayName="TextArea";const Mg="TextField-module__layoutOverride___SNZqc",Pg="TextField-module__root___2ZYkG",Ag="TextField-module__input___RL-My",jg="TextField-module__section___bCIJ0",pt={layoutOverride:Mg,root:Pg,input:Ag,section:jg},il=O.forwardRef(function(t,n){const{overStyled:o=!1,formLayout:r="stacked",labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,assistiveText:f,assistiveWithIcon:h,error:d,required:y,id:m,className:v,style:_,disabled:S,readOnly:E,readOnlyComponent:C,emptyValueComponent:x,value:I,defaultValue:w,leftSection:N,rightSection:L,...F}=t,U=X(F,o),b=U;delete b.size,delete b.color;const R={wrapper:pt.root,input:pt.input,section:pt.section},T=b.classes;if(T&&typeof T=="object"&&!Array.isArray(T)){const se=T;R.wrapper=se.root?`${pt.root} ${se.root}`:pt.root,R.input=se.input?`${pt.input} ${se.input}`:pt.input}const j=v?`${pt.layoutOverride} ${v}`:pt.layoutOverride,V=N?g.jsx("div",{className:R.section,"data-position":"left",children:N}):void 0,K=L?g.jsx("div",{className:R.section,"data-position":"right",children:L}):void 0;return g.jsx(it,{className:j,style:_,controlMaxWidth:"var(--text-field-control-max-width)",controlMinWidth:"var(--text-field-control-min-width)",overStyled:o,formLayout:r,labelSize:s,labelAlignment:i,labelOptionalText:a,labelWithEditIcon:u,onLabelEditClick:c,label:p,assistiveText:f,assistiveWithIcon:h,error:d,required:y,id:m,readOnly:E,readOnlyComponent:C,emptyValueComponent:x||void 0,readOnlyType:"text",readOnlyValue:I!==void 0?I:w,readOnlyNativeProps:t,activeComponent:g.jsx(H.InputBase,{inputRef:n,classes:{root:R.wrapper,input:R.input},disabled:S,value:I,defaultValue:w,startAdornment:V,endAdornment:K,"data-disabled":S?"true":void 0,"data-error":d?"true":void 0,"data-with-left-section":N?"true":void 0,"data-with-right-section":L?"true":void 0,...U})})});il.displayName="TextField";const Lg=e=>g.jsx("div",{...e,children:"TimePicker"}),Dg="Timeline-module__root___LwRdZ",Vg="Timeline-module__item___T5xdQ",Bg="Timeline-module__itemBody___XAV-E",Fg="Timeline-module__itemBullet___rPXCy",zg="Timeline-module__itemTitle___GgRRW",Wg="Timeline-module__itemContent___vurs-",Ug="Timeline-module__description___f9sxV",Gg="Timeline-module__timestamp___owiRu",Tt={root:Dg,item:Vg,itemBody:Bg,itemBullet:Fg,itemTitle:zg,itemContent:Wg,description:Ug,timestamp:Gg},Br=O.forwardRef(function({overStyled:t=!1,timestamp:n,bulletVariant:o="default",bullet:r,children:s,...i},a){const u=X(i,t),c={item:Tt.item,itemBody:Tt.itemBody,itemContent:Tt.itemContent,itemBullet:Tt.itemBullet,itemTitle:Tt.itemTitle},p=u.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const h=p;Object.keys(h).forEach(d=>{c[d]?c[d]=`${c[d]} ${h[d]}`:c[d]=h[d]})}const f=n?g.jsxs(g.Fragment,{children:[s&&g.jsx("div",{className:Tt.description,children:s}),g.jsx("div",{className:Tt.timestamp,children:n})]}):s;return g.jsx(el,{ref:a,classes:c,"data-variant":o,...u,children:f})});Br.displayName="TimelineItem";const al=O.forwardRef(function({overStyled:t=!1,...n},o){const r=X(n,t),s={root:Tt.root},i=r.classNames;if(i&&typeof i=="object"&&!Array.isArray(i)){const a=i;Object.keys(a).forEach(u=>{s[u]?s[u]=`${s[u]} ${a[u]}`:s[u]=a[u]})}return g.jsx(Ja,{ref:o,classes:s,...r})});al.displayName="Timeline";const ll=al;ll.Item=Br;const cl=O.forwardRef(function({order:t=1,component:n,...o},r){const s=`recursica_brand_typography_h${t}`,i=`h${t}`;return g.jsx(Eo,{ref:r,typographyClass:s,component:n||i,...o})});cl.displayName="Title";const qg="Toast-module__root___MUvfI",Hg="Toast-module__icon___VwvE1",Kg="Toast-module__title___-H6R2",Yg="Toast-module__description___-QwfC",Xg="Toast-module__closeButton___vGr7g",Qg="Toast-module__body___VLkXA",Jt={root:qg,icon:Hg,title:Kg,description:Yg,closeButton:Xg,body:Qg},Jg=()=>g.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:g.jsx("path",{d:"M18 6L6 18M6 6l12 12"})}),ul=O.forwardRef(function({overStyled:t=!1,variant:n="default",withCloseButton:o=!0,title:r,icon:s,children:i,onClose:a,className:u,...c},p){const f=X(c,t),h={root:Jt.root,message:Jt.body,icon:Jt.icon,action:Jt.closeButton},d=f.classNames;if(d&&typeof d=="object"&&!Array.isArray(d)){const m=d;Object.keys(m).forEach(v=>{h[v]?h[v]=`${h[v]} ${m[v]}`:h[v]=m[v]})}const y=()=>{a&&a()};return g.jsxs(H.Alert,{ref:p,icon:s,"data-variant":n,className:`${u||""}`,classes:h,action:o?g.jsx(H.IconButton,{size:"small","aria-label":"close",color:"inherit",onClick:y,children:g.jsx(Jg,{})}):void 0,...f,children:[r&&g.jsx(H.AlertTitle,{className:Jt.title,children:r}),g.jsx("div",{className:Jt.description,children:i})]})});ul.displayName="Toast";const Zg="Tooltip-module__tooltip___UA7H9",ey="Tooltip-module__arrow___4zROk",Zs={tooltip:Zg,arrow:ey},dl=function({overStyled:t=!1,withBeak:n=!0,label:o,opened:r,...s}){const{title:i,...a}=s,u=X(a,t),c={tooltip:Zs.tooltip,arrow:Zs.arrow},p=u.classNames;if(p&&typeof p=="object"&&!Array.isArray(p)){const d=p;Object.keys(d).forEach(y=>{c[y]?c[y]=`${c[y]} ${d[y]}`:c[y]=d[y]})}const f=u.withArrow,h=n??f;return g.jsx(H.Tooltip,{title:o||i||"",open:r,placement:"top",arrow:h,classes:c,...u})};dl.displayName="Tooltip";const ty=dl,ny=e=>g.jsx("div",{...e,children:"TransferList"}),ei={};function pl(e,t){const n=k.useRef(ei);return n.current===ei&&(n.current=e(t)),n}function tr(e,t,n,o){const r=pl(oy).current;return ry(r,e,t,n,o)&&sy(r,[e,t,n,o]),r.callback}function oy(){return{callback:null,cleanup:null,refs:[]}}function ry(e,t,n,o,r){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==o||e.refs[3]!==r}function sy(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 r=0;r<t.length;r+=1){const s=t[r];if(s!=null)switch(typeof s){case"function":{const i=s(n);typeof i=="function"&&(o[r]=i);break}case"object":{s.current=n;break}}}e.cleanup=()=>{for(let r=0;r<t.length;r+=1){const s=t[r];if(s!=null)switch(typeof s){case"function":{const i=o[r];typeof i=="function"?i():s(null);break}case"object":{s.current=null;break}}}}}}}function Ve(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.`}var iy=(e,t,n)=>{if(t.length===1&&t[0]===n){let o=!1;try{const r={};e(r)===r&&(o=!0)}catch{}if(o){let r;try{throw new Error}catch(s){({stack:r}=s)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
178
|
+
\`createSelector([state => state.todos], todos => todos)\`
|
|
179
|
+
This could lead to inefficient memoization and unnecessary re-renders.
|
|
180
|
+
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:r})}}},ay=(e,t,n)=>{const{memoize:o,memoizeOptions:r}=t,{inputSelectorResults:s,inputSelectorResultsCopy:i}=e,a=o(()=>({}),...r);if(!(a.apply(null,s)===a.apply(null,i))){let c;try{throw new Error}catch(p){({stack:c}=p)}console.warn(`An input selector returned a different result when passed same arguments.
|
|
181
|
+
This means your output selector will likely run more frequently than intended.
|
|
182
|
+
Avoid returning a new reference inside your input selector, e.g.
|
|
183
|
+
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:s,secondInputs:i,stack:c})}},ly={inputStabilityCheck:"once",identityFunctionCheck:"once"},eo=Symbol("NOT_FOUND");function cy(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function uy(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 ti=e=>Array.isArray(e)?e:[e];function dy(e){const t=Array.isArray(e[0])?e[0]:e;return uy(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function ni(e,t){const n=[],{length:o}=e;for(let r=0;r<o;r++)n.push(e[r].apply(null,t));return n}var py=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:o}={...ly,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:iy},inputStabilityCheck:{shouldRun:o==="always"||o==="once"&&e,run:ay}}};function fy(e){let t;return{get(n){return t&&e(t.key,n)?t.value:eo},put(n,o){t={key:n,value:o}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function my(e,t){let n=[];function o(a){const u=n.findIndex(c=>t(a,c.key));if(u>-1){const c=n[u];return u>0&&(n.splice(u,1),n.unshift(c)),c.value}return eo}function r(a,u){o(a)===eo&&(n.unshift({key:a,value:u}),n.length>e&&n.pop())}function s(){return n}function i(){n=[]}return{get:o,put:r,getEntries:s,clear:i}}var hy=(e,t)=>e===t;function gy(e){return function(n,o){if(n===null||o===null||n.length!==o.length)return!1;const{length:r}=n;for(let s=0;s<r;s++)if(!e(n[s],o[s]))return!1;return!0}}function yy(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:o=hy,maxSize:r=1,resultEqualityCheck:s}=n,i=gy(o);let a=0;const u=r<=1?fy(i):my(r,i);function c(){let p=u.get(arguments);if(p===eo){if(p=e.apply(null,arguments),a++,s){const h=u.getEntries().find(d=>s(d.value,p));h&&(p=h.value,a!==0&&a--)}u.put(arguments,p)}return p}return c.clearCache=()=>{u.clear(),c.resetResultsCount()},c.resultsCount=()=>a,c.resetResultsCount=()=>{a=0},c}var by=class{constructor(e){this.value=e}deref(){return this.value}},vy=()=>typeof WeakRef>"u"?by:WeakRef,fl=vy(),_y=0,oi=1;function Ln(){return{s:_y,v:void 0,o:null,p:null}}function xy(e){return e instanceof fl?e.deref():e}function Cy(e,t={}){let n=Ln();const{resultEqualityCheck:o}=t;let r,s=0;function i(){let a=n;const{length:u}=arguments;for(let f=0,h=u;f<h;f++){const d=arguments[f];if(typeof d=="function"||typeof d=="object"&&d!==null){let y=a.o;y===null&&(a.o=y=new WeakMap);const m=y.get(d);m===void 0?(a=Ln(),y.set(d,a)):a=m}else{let y=a.p;y===null&&(a.p=y=new Map);const m=y.get(d);m===void 0?(a=Ln(),y.set(d,a)):a=m}}const c=a;let p;if(a.s===oi)p=a.v;else if(p=e.apply(null,arguments),s++,o){const f=xy(r);f!=null&&o(f,p)&&(p=f,s!==0&&s--),r=typeof p=="object"&&p!==null||typeof p=="function"?new fl(p):p}return c.s=oi,c.v=p,p}return i.clearCache=()=>{n=Ln(),i.resetResultsCount()},i.resultsCount=()=>s,i.resetResultsCount=()=>{s=0},i}function Sy(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,o=(...r)=>{let s=0,i=0,a,u={},c=r.pop();typeof c=="object"&&(u=c,c=r.pop()),cy(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const p={...n,...u},{memoize:f,memoizeOptions:h=[],argsMemoize:d=Cy,argsMemoizeOptions:y=[]}=p,m=ti(h),v=ti(y),_=dy(r),S=f(function(){return s++,c.apply(null,arguments)},...m);let E=!0;const C=d(function(){i++;const I=ni(_,arguments);if(a=S.apply(null,I),process.env.NODE_ENV!=="production"){const{devModeChecks:w={}}=p,{identityFunctionCheck:N,inputStabilityCheck:L}=py(E,w);if(N.shouldRun&&N.run(c,I,a),L.shouldRun){const F=ni(_,arguments);L.run({inputSelectorResults:I,inputSelectorResultsCopy:F},{memoize:f,memoizeOptions:m},arguments)}E&&(E=!1)}return a},...v);return Object.assign(C,{resultFunc:c,memoizedResultFunc:S,dependencies:_,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>a,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:f,argsMemoize:d})};return Object.assign(o,{withTypes:()=>o}),o}const Iy=Sy({memoize:yy,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),ce=(e,t,n,o,r,s,i,a,...u)=>{if(u.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.":Ve(179));let c;if(e&&t&&n&&o)c=(p,f,h,d)=>{const y=e(p,f,h,d),m=t(p,f,h,d),v=n(p,f,h,d);return o(y,m,v,f,h,d)};else if(e&&t&&n)c=(p,f,h,d)=>{const y=e(p,f,h,d),m=t(p,f,h,d);return n(y,m,f,h,d)};else if(e&&t)c=(p,f,h,d)=>{const y=e(p,f,h,d);return t(y,f,h,d)};else if(e)c=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.":Ve(180));return c},Ty=e=>(...t)=>{const n=new WeakMap;let o=1;const r=t[t.length-1],s=t.length-1||1,i=Math.max(r.length-s,0);if(i>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.":Ve(181));return(u,c,p,f)=>{let h=u.__cacheKey__;h||(h={id:o},u.__cacheKey__=h,o+=1);let d=n.get(h);if(!d){const y=t.length===1?[_=>_,r]:t;let m=t;const v=[void 0,void 0,void 0];switch(i){case 0:break;case 1:{m=[...y.slice(0,-1),()=>v[0],r];break}case 2:{m=[...y.slice(0,-1),()=>v[0],()=>v[1],r];break}case 3:{m=[...y.slice(0,-1),()=>v[0],()=>v[1],()=>v[2],r];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.":Ve(182))}d=Iy(...m),d.selectorArgs=v,n.set(h,d)}switch(i){case 3:d.selectorArgs[2]=f;case 2:d.selectorArgs[1]=p;case 1:d.selectorArgs[0]=c}switch(i){case 0:return d(u);case 1:return d(u,c);case 2:return d(u,c,p);case 3:return d(u,c,p,f);default:throw new Error("unreachable")}}},Nn=Ty();var Dn={exports:{}},Vo={};/**
|
|
184
|
+
* @license React
|
|
185
|
+
* use-sync-external-store-shim.production.js
|
|
186
|
+
*
|
|
187
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
188
|
+
*
|
|
189
|
+
* This source code is licensed under the MIT license found in the
|
|
190
|
+
* LICENSE file in the root directory of this source tree.
|
|
191
|
+
*/var ri;function Ey(){if(ri)return Vo;ri=1;var e=O;function t(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var n=typeof Object.is=="function"?Object.is:t,o=e.useState,r=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function a(f,h){var d=h(),y=o({inst:{value:d,getSnapshot:h}}),m=y[0].inst,v=y[1];return s(function(){m.value=d,m.getSnapshot=h,u(m)&&v({inst:m})},[f,d,h]),r(function(){return u(m)&&v({inst:m}),f(function(){u(m)&&v({inst:m})})},[f]),i(d),d}function u(f){var h=f.getSnapshot;f=f.value;try{var d=h();return!n(f,d)}catch{return!0}}function c(f,h){return h()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return Vo.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,Vo}var Bo={};/**
|
|
192
|
+
* @license React
|
|
193
|
+
* use-sync-external-store-shim.development.js
|
|
194
|
+
*
|
|
195
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
196
|
+
*
|
|
197
|
+
* This source code is licensed under the MIT license found in the
|
|
198
|
+
* LICENSE file in the root directory of this source tree.
|
|
199
|
+
*/var si;function wy(){return si||(si=1,process.env.NODE_ENV!=="production"&&(function(){function e(d,y){return d===y&&(d!==0||1/d===1/y)||d!==d&&y!==y}function t(d,y){p||r.startTransition===void 0||(p=!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 m=y();if(!f){var v=y();s(m,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}v=i({inst:{value:m,getSnapshot:y}});var _=v[0].inst,S=v[1];return u(function(){_.value=m,_.getSnapshot=y,n(_)&&S({inst:_})},[d,m,y]),a(function(){return n(_)&&S({inst:_}),d(function(){n(_)&&S({inst:_})})},[d]),c(m),m}function n(d){var y=d.getSnapshot;d=d.value;try{var m=y();return!s(d,m)}catch{return!0}}function o(d,y){return y()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var r=O,s=typeof Object.is=="function"?Object.is:e,i=r.useState,a=r.useEffect,u=r.useLayoutEffect,c=r.useDebugValue,p=!1,f=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?o:t;Bo.useSyncExternalStore=r.useSyncExternalStore!==void 0?r.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Bo}var ii;function Fr(){return ii||(ii=1,process.env.NODE_ENV==="production"?Dn.exports=Ey():Dn.exports=wy()),Dn.exports}var Ny=Fr(),Vn={exports:{}},Fo={};/**
|
|
200
|
+
* @license React
|
|
201
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
202
|
+
*
|
|
203
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
204
|
+
*
|
|
205
|
+
* This source code is licensed under the MIT license found in the
|
|
206
|
+
* LICENSE file in the root directory of this source tree.
|
|
207
|
+
*/var ai;function Oy(){if(ai)return Fo;ai=1;var e=O,t=Fr();function n(c,p){return c===p&&(c!==0||1/c===1/p)||c!==c&&p!==p}var o=typeof Object.is=="function"?Object.is:n,r=t.useSyncExternalStore,s=e.useRef,i=e.useEffect,a=e.useMemo,u=e.useDebugValue;return Fo.useSyncExternalStoreWithSelector=function(c,p,f,h,d){var y=s(null);if(y.current===null){var m={hasValue:!1,value:null};y.current=m}else m=y.current;y=a(function(){function _(I){if(!S){if(S=!0,E=I,I=h(I),d!==void 0&&m.hasValue){var w=m.value;if(d(w,I))return C=w}return C=I}if(w=C,o(E,I))return w;var N=h(I);return d!==void 0&&d(w,N)?(E=I,w):(E=I,C=N)}var S=!1,E,C,x=f===void 0?null:f;return[function(){return _(p())},x===null?void 0:function(){return _(x())}]},[p,f,h,d]);var v=r(c,y[0],y[1]);return i(function(){m.hasValue=!0,m.value=v},[v]),u(v),v},Fo}var zo={};/**
|
|
208
|
+
* @license React
|
|
209
|
+
* use-sync-external-store-shim/with-selector.development.js
|
|
210
|
+
*
|
|
211
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
212
|
+
*
|
|
213
|
+
* This source code is licensed under the MIT license found in the
|
|
214
|
+
* LICENSE file in the root directory of this source tree.
|
|
215
|
+
*/var li;function $y(){return li||(li=1,process.env.NODE_ENV!=="production"&&(function(){function e(c,p){return c===p&&(c!==0||1/c===1/p)||c!==c&&p!==p}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=O,n=Fr(),o=typeof Object.is=="function"?Object.is:e,r=n.useSyncExternalStore,s=t.useRef,i=t.useEffect,a=t.useMemo,u=t.useDebugValue;zo.useSyncExternalStoreWithSelector=function(c,p,f,h,d){var y=s(null);if(y.current===null){var m={hasValue:!1,value:null};y.current=m}else m=y.current;y=a(function(){function _(I){if(!S){if(S=!0,E=I,I=h(I),d!==void 0&&m.hasValue){var w=m.value;if(d(w,I))return C=w}return C=I}if(w=C,o(E,I))return w;var N=h(I);return d!==void 0&&d(w,N)?(E=I,w):(E=I,C=N)}var S=!1,E,C,x=f===void 0?null:f;return[function(){return _(p())},x===null?void 0:function(){return _(x())}]},[p,f,h,d]);var v=r(c,y[0],y[1]);return i(function(){m.hasValue=!0,m.value=v},[v]),u(v),v},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),zo}var ci;function Ry(){return ci||(ci=1,process.env.NODE_ENV==="production"?Vn.exports=Oy():Vn.exports=$y()),Vn.exports}var ky=Ry();const My=parseInt(k.version,10),Py=My>=19,Ay=Py?jy:Ly;function pe(e,t,n,o,r){return Ay(e,t,n,o,r)}function jy(e,t,n,o,r){const s=k.useCallback(()=>t(e.getSnapshot(),n,o,r),[e,t,n,o,r]);return Ny.useSyncExternalStore(e.subscribe,s,s)}function Ly(e,t,n,o,r){return ky.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,s=>t(s,n,o,r))}class zr{constructor(t){B(this,"subscribe",t=>(this.listeners.add(t),()=>{this.listeners.delete(t)}));B(this,"getSnapshot",()=>this.state);B(this,"use",(t,n,o,r)=>pe(this,t,n,o,r));this.state=t,this.listeners=new Set,this.updateTick=0}static create(t){return new zr(t)}setState(t){this.state=t,this.updateTick+=1;const n=this.updateTick,o=this.listeners.values();let r;for(;r=o.next(),!r.done;){if(n!==this.updateTick)return;const s=r.value;s(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState(q({},this.state,t));return}}set(t,n){Object.is(this.state[t],n)||this.setState(q({},this.state,{[t]:n}))}}function Dy(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 ml(e,t,n,o){const r=e[t];if(r==null||!Number.isInteger(r)){const s=Dy(r);return new RangeError(`Invalid ${o} \`${t}\` of type \`${s}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function hl(e,t,n,o){return e[t]===void 0?null:ml(e,t,n,o)}function nr(){return null}hl.isRequired=ml;nr.isRequired=nr;const Vy=process.env.NODE_ENV==="production"?nr:hl;function By(e){return je("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 Fy=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,s={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return We(s,By,r)},zy=de("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}`]]}})(et(({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)"}}]}))),gl=k.forwardRef(function(t,n){var d;const o=at({props:t,name:"MuiPaper"}),r=za(),{className:s,component:i="div",elevation:a=1,square:u=!1,variant:c="elevation",...p}=o,f={...o,component:i,elevation:a,square:u,variant:c},h=Fy(f);return process.env.NODE_ENV!=="production"&&r.shadows[a]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
|
|
216
|
+
`)),g.jsx(zy,{as:i,ownerState:f,className:ue(h.root,s),ref:n,...p,style:{...c==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[a],...r.vars&&{"--Paper-overlay":(d=r.vars.overlays)==null?void 0:d[a]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Kn("#fff",Yo(a))}, ${Kn("#fff",Yo(a))})`}},...p.style}})});process.env.NODE_ENV!=="production"&&(gl.propTypes={children:l.node,classes:l.object,className:l.string,component:l.elementType,elevation:So(Vy,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:l.bool,style:l.object,sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object]),variant:l.oneOfType([l.oneOf(["elevation","outlined"]),l.string])});function Wy(e){return je("MuiAlert",e)}const ui=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"]);function Uy(e){return je("MuiIconButton",e)}const di=Pe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Gy=e=>{const{classes:t,disabled:n,color:o,edge:r,size:s,loading:i}=e,a={root:["root",i&&"loading",n&&"disabled",o!=="default"&&`color${_e(o)}`,r&&`edge${_e(r)}`,`size${_e(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return We(a,Uy,t)},qy=de(Dr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${_e(n.color)}`],n.edge&&t[`edge${_e(n.edge)}`],t[`size${_e(n.size)}`]]}})(et(({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}}]})),et(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(gt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(gt()).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)}}],[`&.${di.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${di.loading}`]:{color:"transparent"}}))),Hy=de("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"}}]})),yl=k.forwardRef(function(t,n){const o=at({props:t,name:"MuiIconButton"}),{edge:r=!1,children:s,className:i,color:a="default",disabled:u=!1,disableFocusRipple:c=!1,size:p="medium",id:f,loading:h=null,loadingIndicator:d,...y}=o,m=Rm(f),v=d??g.jsx(Vr,{"aria-labelledby":m,color:"inherit",size:16}),_={...o,edge:r,color:a,disabled:u,disableFocusRipple:c,loading:h,loadingIndicator:v,size:p},S=Gy(_);return g.jsxs(qy,{id:h?m:f,className:ue(S.root,i),centerRipple:!0,focusRipple:!c,disabled:u||h,ref:n,...y,ownerState:_,children:[typeof h=="boolean"&&g.jsx("span",{className:S.loadingWrapper,style:{display:"contents"},children:g.jsx(Hy,{className:S.loadingIndicator,ownerState:_,children:h&&v})}),s]})});process.env.NODE_ENV!=="production"&&(yl.propTypes={children:So(l.node,e=>k.Children.toArray(e.children).some(n=>k.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(`
|
|
217
|
+
`)):null),classes:l.object,className:l.string,color:l.oneOfType([l.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),l.string]),disabled:l.bool,disableFocusRipple:l.bool,disableRipple:l.bool,edge:l.oneOf(["end","start",!1]),id:l.string,loading:l.bool,loadingIndicator:l.node,size:l.oneOfType([l.oneOf(["small","medium","large"]),l.string]),sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object])});const Ky=lt(g.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Yy=lt(g.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Xy=lt(g.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),Qy=lt(g.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Jy=lt(g.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Zy=e=>{const{variant:t,color:n,severity:o,classes:r}=e,s={root:["root",`color${_e(n||o)}`,`${t}${_e(n||o)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return We(s,Wy,r)},eb=de(gl,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${_e(n.color||n.severity)}`]]}})(et(({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(gt(["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),[`& .${ui.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(gt(["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}`,[`& .${ui.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(gt(["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)}}}))]}})),tb=de("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),nb=de("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),ob=de("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),pi={success:g.jsx(Ky,{fontSize:"inherit"}),warning:g.jsx(Yy,{fontSize:"inherit"}),error:g.jsx(Xy,{fontSize:"inherit"}),info:g.jsx(Qy,{fontSize:"inherit"})},bl=k.forwardRef(function(t,n){const o=at({props:t,name:"MuiAlert"}),{action:r,children:s,className:i,closeText:a="Close",color:u,components:c={},componentsProps:p={},icon:f,iconMapping:h=pi,onClose:d,role:y="alert",severity:m="success",slotProps:v={},slots:_={},variant:S="standard",...E}=o,C={...o,color:u,severity:m,variant:S,colorSeverity:u||m},x=Zy(C),I={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,..._},slotProps:{...p,...v}},[w,N]=Ke("root",{ref:n,shouldForwardComponentProp:!0,className:ue(x.root,i),elementType:eb,externalForwardedProps:{...I,...E},ownerState:C,additionalProps:{role:y,elevation:0}}),[L,F]=Ke("icon",{className:x.icon,elementType:tb,externalForwardedProps:I,ownerState:C}),[U,b]=Ke("message",{className:x.message,elementType:nb,externalForwardedProps:I,ownerState:C}),[R,T]=Ke("action",{className:x.action,elementType:ob,externalForwardedProps:I,ownerState:C}),[j,V]=Ke("closeButton",{elementType:yl,externalForwardedProps:I,ownerState:C}),[K,se]=Ke("closeIcon",{elementType:Jy,externalForwardedProps:I,ownerState:C});return g.jsxs(w,{...N,children:[f!==!1?g.jsx(L,{...F,children:f||h[m]||pi[m]}):null,g.jsx(U,{...b,children:s}),r!=null?g.jsx(R,{...T,children:r}):null,r==null&&d?g.jsx(R,{...T,children:g.jsx(j,{size:"small","aria-label":a,title:a,color:"inherit",onClick:d,...V,children:g.jsx(K,{fontSize:"small",...se})})}):null]})});process.env.NODE_ENV!=="production"&&(bl.propTypes={action:l.node,children:l.node,classes:l.object,className:l.string,closeText:l.string,color:l.oneOfType([l.oneOf(["error","info","success","warning"]),l.string]),components:l.shape({CloseButton:l.elementType,CloseIcon:l.elementType}),componentsProps:l.shape({closeButton:l.object,closeIcon:l.object}),icon:l.node,iconMapping:l.shape({error:l.node,info:l.node,success:l.node,warning:l.node}),onClose:l.func,role:l.string,severity:l.oneOfType([l.oneOf(["error","info","success","warning"]),l.string]),slotProps:l.shape({action:l.oneOfType([l.func,l.object]),closeButton:l.oneOfType([l.func,l.object]),closeIcon:l.oneOfType([l.func,l.object]),icon:l.oneOfType([l.func,l.object]),message:l.oneOfType([l.func,l.object]),root:l.oneOfType([l.func,l.object])}),slots:l.shape({action:l.elementType,closeButton:l.elementType,closeIcon:l.elementType,icon:l.elementType,message:l.elementType,root:l.elementType}),sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object]),variant:l.oneOfType([l.oneOf(["filled","outlined","standard"]),l.string])});function vl(e,t,n=void 0){const o={};for(const r in e){const s=e[r];let i="",a=!0;for(let u=0;u<s.length;u+=1){const c=s[u];c&&(i+=(a===!0?"":" ")+t(c),a=!1,n&&n[c]&&(i+=" "+n[c]))}o[r]=i}return o}const fi=new Set;function or(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
|
|
218
|
+
`):e;fi.has(n)||(fi.add(n),t==="error"?console.error(n):console.warn(n))}const mi=e=>e,rb=()=>{let e=mi;return{configure(t){e=t},generate(t){return e(t)},reset(){e=mi}}},sb=rb(),ib={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 Wr(e,t,n="Mui"){const o=ib[t];return o?`${n}-${o}`:`${sb.generate(e)}-${t}`}function _l(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=Wr(e,r,n)}),o}function ab(e){return Wr("MuiRichTreeView",e)}_l("MuiRichTreeView",["root","item","itemContent","itemGroupTransition","itemIconContainer","itemLabel","itemCheckbox","itemLabelInput"]);function xl(e){return Io}const Ur=Object.freeze([]),an=Object.freeze({}),Gr=k.createContext(null);process.env.NODE_ENV!=="production"&&(Gr.displayName="TreeViewContext");const At=()=>{const e=k.useContext(Gr);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.":Ve(190));return e},qr=k.createContext({classes:{},slots:{},slotProps:{}});process.env.NODE_ENV!=="production"&&(qr.displayName="TreeViewStyleContext");const Hr=()=>k.useContext(qr),lb=e=>{const{store:t,apiRef:n,rootRef:o}=e,r=pl(()=>t.buildPublicAPI()).current;cb(r,n);const s=k.useCallback(a=>{let u=null,c=null;const p=[],f={};t.itemPluginManager.listPlugins().forEach(y=>{const m=y({props:a,rootRef:u,contentRef:c});m!=null&&m.rootRef&&(u=m.rootRef),m!=null&&m.contentRef&&(c=m.contentRef),m!=null&&m.propsEnhancers&&(p.push(m.propsEnhancers),Object.keys(m.propsEnhancers).forEach(v=>{f[v]=!0}))});const h=y=>m=>{const v={};return p.forEach(_=>{const S=_[y];S!=null&&Object.assign(v,S(m))}),v},d=Object.fromEntries(Object.keys(f).map(y=>[y,h(y)]));return{contentRef:c,rootRef:u,propsEnhancers:d}},[t]),i=k.useCallback(({itemId:a,children:u,idAttribute:c})=>{let p=u;const f=t.itemPluginManager.listWrappers();for(let h=f.length-1;h>=0;h-=1){const d=f[h];p=d({store:t,itemId:a,children:p,idAttribute:c})}return p},[t]);return k.useMemo(()=>({runItemPlugins:s,wrapItem:i,publicAPI:r,store:t,rootRef:o}),[s,i,r,t,o])};function cb(e,t){t!=null&&t.current!==e&&(t.current=e)}function ub(e){const{store:t,apiRef:n,rootRef:o,classes:r=an,slots:s=an,slotProps:i=an,children:a}=e,u=lb({store:t,apiRef:n,rootRef:o}),c=k.useMemo(()=>({classes:r,slots:{collapseIcon:s.collapseIcon,expandIcon:s.expandIcon,endIcon:s.endIcon},slotProps:{collapseIcon:i.collapseIcon,expandIcon:i.expandIcon,endIcon:i.endIcon}}),[r,s.collapseIcon,s.expandIcon,s.endIcon,i.collapseIcon,i.expandIcon,i.endIcon]);return g.jsx(Gr.Provider,{value:u,children:g.jsx(qr.Provider,{value:c,children:a})})}function db(...e){const t=k.useRef(void 0),n=k.useCallback(o=>{const r=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const i=s,a=i(o);return typeof a=="function"?a:()=>{i(null)}}return s.current=o,()=>{s.current=null}});return()=>{r.forEach(s=>s==null?void 0:s())}},e);return k.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}function pb(e){return typeof e=="string"}function fb(e,t,n){return e===void 0||pb(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function mb(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Ue(e){if(e===void 0)return{};const t={};for(const n of Object.keys(e))mb(n,e[n])&&(t[n]=e[n]);return t}function hi(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 hb(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:s}=e;if(!t){const d=ue(n==null?void 0:n.className,s,r==null?void 0:r.className,o==null?void 0:o.className),y={...n==null?void 0:n.style,...r==null?void 0:r.style,...o==null?void 0:o.style},m={...n,...r,...o};return d.length>0&&(m.className=d),Object.keys(y).length>0&&(m.style=y),{props:m,internalRef:void 0}}const i=Ue({...r,...o}),a=hi(o),u=hi(r),c=t(i),p=ue(c==null?void 0:c.className,n==null?void 0:n.className,s,r==null?void 0:r.className,o==null?void 0:o.className),f={...c==null?void 0:c.style,...n==null?void 0:n.style,...r==null?void 0:r.style,...o==null?void 0:o.style},h={...c,...n,...u,...a};return p.length>0&&(h.className=p),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:c.ref}}function rr(e,t,n){return typeof e=="function"?e(t,n):e}function Be(e){var f;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...s}=e,i=r?{}:rr(n,o),{props:a,internalRef:u}=hb({...s,externalSlotProps:i}),c=db(u,i==null?void 0:i.ref,(f=e.additionalProps)==null?void 0:f.ref);return fb(t,{...a,ref:c},o)}const gb=Object.is;function yb(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,o=0;for(const r in e)if(n+=1,!gb(e[r],t[r])||!(r in t))return!1;for(const r in t)o+=1;return n===o}function bb(e,t,n,o,r){if(process.env.NODE_ENV==="production")return null;const s=r||t;return typeof e[t]<"u"?new Error(`The prop \`${s}\` is not supported. Please remove it.`):null}function Zt(e,t){return n=>{if(t){const o=e.current;n===void 0?t(o):t(o,n)}}}function gi(e,t){const{timeout:n,easing:o,style:r={}}=e;return{duration:r.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:r.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:r.transitionDelay}}function vb(e){return je("MuiCollapse",e)}Pe("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const _b=e=>{const{orientation:t,classes:n}=e;return We({root:["root",t],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",t],wrapperInner:["wrapperInner",t]},vb,n)},xb=de("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]}})(et(({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"}}]}))),Cb=de("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Sb=de("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),to=k.forwardRef(function(t,n){const o=at({props:t,name:"MuiCollapse"}),{addEndListener:r,children:s,className:i,collapsedSize:a="0px",component:u,easing:c,in:p,onEnter:f,onEntered:h,onEntering:d,onExit:y,onExited:m,onExiting:v,orientation:_="vertical",slots:S={},slotProps:E={},style:C,timeout:x=Da.standard,TransitionComponent:I=_t,...w}=o,N={...o,orientation:_,collapsedSize:a},L=_b(N),F=za(),U=Ha(),b=k.useRef(null),R=k.useRef(),T=typeof a=="number"?`${a}px`:a,j=_==="horizontal",V=j?"width":"height",K=k.useRef(null),se=Xn(n,K),oe=()=>b.current?b.current[j?"clientWidth":"clientHeight"]:0,M=Zt(K,(te,Te)=>{b.current&&j&&(b.current.style.position="absolute"),te.style[V]=T,f&&f(te,Te)}),z=Zt(K,(te,Te)=>{const ke=oe();b.current&&j&&(b.current.style.position="");const{duration:Me,easing:tt}=gi({style:C,timeout:x,easing:c},{mode:"enter"});if(x==="auto"){const On=F.transitions.getAutoHeightDuration(ke);te.style.transitionDuration=`${On}ms`,R.current=On}else te.style.transitionDuration=typeof Me=="string"?Me:`${Me}ms`;te.style[V]=`${ke}px`,te.style.transitionTimingFunction=tt,d&&d(te,Te)}),Q=Zt(K,(te,Te)=>{te.style[V]="auto",h&&h(te,Te)}),re=Zt(K,te=>{te.style[V]=`${oe()}px`,y&&y(te)}),ne=Zt(K,m),Y=Zt(K,te=>{const Te=oe(),{duration:ke,easing:Me}=gi({style:C,timeout:x,easing:c},{mode:"exit"});if(x==="auto"){const tt=F.transitions.getAutoHeightDuration(Te);te.style.transitionDuration=`${tt}ms`,R.current=tt}else te.style.transitionDuration=typeof ke=="string"?ke:`${ke}ms`;te.style[V]=T,te.style.transitionTimingFunction=Me,v&&v(te)}),J=te=>{x==="auto"&&U.start(R.current||0,te),r&&r(K.current,te)},Z={slots:S,slotProps:E,component:u},[A,P]=Ke("root",{ref:se,className:ue(L.root,i),elementType:xb,externalForwardedProps:Z,ownerState:N,additionalProps:{style:{[j?"minWidth":"minHeight"]:T,...C}}}),[W,ie]=Ke("wrapper",{ref:b,className:L.wrapper,elementType:Cb,externalForwardedProps:Z,ownerState:N}),[D,Ee]=Ke("wrapperInner",{className:L.wrapperInner,elementType:Sb,externalForwardedProps:Z,ownerState:N});return g.jsx(I,{in:p,onEnter:M,onEntered:Q,onEntering:z,onExit:re,onExited:ne,onExiting:Y,addEndListener:J,nodeRef:K,timeout:x==="auto"?null:x,...w,children:(te,{ownerState:Te,...ke})=>{const Me={...N,state:te};return g.jsx(A,{...P,className:ue(P.className,{entered:L.entered,exited:!p&&T==="0px"&&L.hidden}[te]),ownerState:Me,...ke,children:g.jsx(W,{...ie,ownerState:Me,children:g.jsx(D,{...Ee,ownerState:Me,children:s})})})}})});process.env.NODE_ENV!=="production"&&(to.propTypes={addEndListener:l.func,children:l.node,classes:l.object,className:l.string,collapsedSize:l.oneOfType([l.number,l.string]),component:Ua,easing:l.oneOfType([l.shape({enter:l.string,exit:l.string}),l.string]),in:l.bool,onEnter:l.func,onEntered:l.func,onEntering:l.func,onExit:l.func,onExited:l.func,onExiting:l.func,orientation:l.oneOf(["horizontal","vertical"]),slotProps:l.shape({root:l.oneOfType([l.func,l.object]),wrapper:l.oneOfType([l.func,l.object]),wrapperInner:l.oneOfType([l.func,l.object])}),slots:l.shape({root:l.elementType,wrapper:l.elementType,wrapperInner:l.elementType}),style:l.object,sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object]),timeout:l.oneOfType([l.oneOf(["auto"]),l.number,l.shape({appear:l.number,enter:l.number,exit:l.number})])});to&&(to.muiSupportAuto=!0);const Cl=k.createContext(void 0);process.env.NODE_ENV!=="production"&&(Cl.displayName="FormControlContext");function Ib(){return k.useContext(Cl)}function Tb(e){return je("PrivateSwitchBase",e)}Pe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Eb=e=>{const{classes:t,checked:n,disabled:o,edge:r}=e,s={root:["root",n&&"checked",o&&"disabled",r&&`edge${_e(r)}`],input:["input"]};return We(s,Tb,t)},wb=de(Dr,{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}}]}),Nb=de("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}),Sl=k.forwardRef(function(t,n){const{autoFocus:o,checked:r,checkedIcon:s,defaultChecked:i,disabled:a,disableFocusRipple:u=!1,edge:c=!1,icon:p,id:f,inputProps:h,inputRef:d,name:y,onBlur:m,onChange:v,onFocus:_,readOnly:S,required:E=!1,tabIndex:C,type:x,value:I,slots:w={},slotProps:N={},...L}=t,[F,U]=Sh({controlled:r,default:!!i,name:"SwitchBase",state:"checked"}),b=Ib(),R=Y=>{_&&_(Y),b&&b.onFocus&&b.onFocus(Y)},T=Y=>{m&&m(Y),b&&b.onBlur&&b.onBlur(Y)},j=Y=>{if(Y.nativeEvent.defaultPrevented||S)return;const J=Y.target.checked;U(J),v&&v(Y,J)};let V=a;b&&typeof V>"u"&&(V=b.disabled);const K=x==="checkbox"||x==="radio",se={...t,checked:F,disabled:V,disableFocusRipple:u,edge:c},oe=Eb(se),M={slots:w,slotProps:{input:h,...N}},[z,Q]=Ke("root",{ref:n,elementType:wb,className:oe.root,shouldForwardComponentProp:!0,externalForwardedProps:{...M,component:"span",...L},getSlotProps:Y=>({...Y,onFocus:J=>{var Z;(Z=Y.onFocus)==null||Z.call(Y,J),R(J)},onBlur:J=>{var Z;(Z=Y.onBlur)==null||Z.call(Y,J),T(J)}}),ownerState:se,additionalProps:{centerRipple:!0,focusRipple:!u,role:void 0,tabIndex:null}}),[re,ne]=Ke("input",{ref:d,elementType:Nb,className:oe.input,externalForwardedProps:M,getSlotProps:Y=>({...Y,onChange:J=>{var Z;(Z=Y.onChange)==null||Z.call(Y,J),j(J)}}),ownerState:se,additionalProps:{autoFocus:o,checked:r,defaultChecked:i,disabled:V,id:K?f:void 0,name:y,readOnly:S,required:E,tabIndex:C,type:x,...x==="checkbox"&&I===void 0?{}:{value:I}}});return g.jsxs(z,{...Q,children:[g.jsx(re,{...ne}),F?s:p]})});process.env.NODE_ENV!=="production"&&(Sl.propTypes={autoFocus:l.bool,checked:l.bool,checkedIcon:l.node.isRequired,classes:l.object,className:l.string,defaultChecked:l.bool,disabled:l.bool,disableFocusRipple:l.bool,edge:l.oneOf(["end","start",!1]),icon:l.node.isRequired,id:l.string,inputProps:l.object,inputRef:Wa,name:l.string,onBlur:l.func,onChange:l.func,onFocus:l.func,readOnly:l.bool,required:l.bool,slotProps:l.shape({input:l.oneOfType([l.func,l.object]),root:l.oneOfType([l.func,l.object])}),slots:l.shape({input:l.elementType,root:l.elementType}),sx:l.object,tabIndex:l.oneOfType([l.number,l.string]),type:l.string.isRequired,value:l.any});const Ob=lt(g.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"),$b=lt(g.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"),Rb=lt(g.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 kb(e){return je("MuiCheckbox",e)}const Wo=Pe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Mb=e=>{const{classes:t,indeterminate:n,color:o,size:r}=e,s={root:["root",n&&"indeterminate",`color${_e(o)}`,`size${_e(r)}`]},i=We(s,kb,t);return{...t,...i}},Pb=de(Sl,{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${_e(n.size)}`],n.color!=="default"&&t[`color${_e(n.color)}`]]}})(et(({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(gt()).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(gt()).map(([t])=>({props:{color:t},style:{[`&.${Wo.checked}, &.${Wo.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Wo.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),Ab=g.jsx($b,{}),jb=g.jsx(Ob,{}),Lb=g.jsx(Rb,{}),Il=k.forwardRef(function(t,n){const o=at({props:t,name:"MuiCheckbox"}),{checkedIcon:r=Ab,color:s="primary",icon:i=jb,indeterminate:a=!1,indeterminateIcon:u=Lb,inputProps:c,size:p="medium",disableRipple:f=!1,className:h,slots:d={},slotProps:y={},...m}=o,v=a?u:i,_=a?u:r,S={...o,disableRipple:f,color:s,indeterminate:a,size:p},E=Mb(S),C=y.input??c,[x,I]=Ke("root",{ref:n,elementType:Pb,className:ue(E.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:d,slotProps:y,...m},ownerState:S,additionalProps:{type:"checkbox",icon:k.cloneElement(v,{fontSize:v.props.fontSize??p}),checkedIcon:k.cloneElement(_,{fontSize:_.props.fontSize??p}),disableRipple:f,slots:d,slotProps:{input:Th(typeof C=="function"?C(S):C,{"data-indeterminate":a,"aria-checked":a?"mixed":void 0})}}});return g.jsx(x,{...I,classes:E})});process.env.NODE_ENV!=="production"&&(Il.propTypes={checked:l.bool,checkedIcon:l.node,classes:l.object,className:l.string,color:l.oneOfType([l.oneOf(["default","primary","secondary","error","info","success","warning"]),l.string]),defaultChecked:l.bool,disabled:l.bool,disableRipple:l.bool,icon:l.node,id:l.string,indeterminate:l.bool,indeterminateIcon:l.node,inputProps:l.object,onChange:l.func,required:l.bool,size:l.oneOfType([l.oneOf(["medium","small"]),l.string]),slotProps:l.shape({input:l.oneOfType([l.func,l.object]),root:l.oneOfType([l.func,l.object])}),slots:l.shape({input:l.elementType,root:l.elementType}),sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object]),value:l.any});const Ye="__TREE_VIEW_ROOT_PARENT_ID__",Tl=e=>{const t={};return e.forEach((n,o)=>{t[n]=o}),t},no=(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 El(e){const{storeParameters:t,items:n,parentId:o,depth:r,isItemExpandable:s,otherItemsMetaLookup:i}=e,a={},u={},c=[],p=[],f=h=>{const d=t.getItemId?t.getItemId(h):h.id;Db({id:d,parentId:o,item:h,itemMetaLookup:i,siblingsMetaLookup:a});const y=t.getItemLabel?t.getItemLabel(h):h.label;if(y==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)}`:Ve(192,JSON.stringify(h)));const m=(t.getItemChildren?t.getItemChildren(h):h.children)||[];p.push({id:d,children:m}),u[d]=h,a[d]={id:d,label:y,parentId:o,idAttribute:void 0,expandable:s(h,m),disabled:t.isItemDisabled?t.isItemDisabled(h):!1,selectable:t.isItemSelectionDisabled?!t.isItemSelectionDisabled(h):!0,depth:r},c.push(d)};for(const h of n)f(h);return{metaLookup:a,modelLookup:u,orderedChildrenIds:c,childrenIndexes:Tl(c),itemsChildren:p}}function yi(e){const{storeParameters:t,items:n,parentId:o,depth:r,isItemExpandable:s,existingItemMetaLookup:i}=e,a={},u={},c={},p={},f=q({},i),h=(d,y,m)=>{const v=El({storeParameters:t,items:d,parentId:y,depth:m,isItemExpandable:s,otherItemsMetaLookup:f});Object.assign(a,v.metaLookup),Object.assign(f,v.metaLookup),Object.assign(u,v.modelLookup),c[y??Ye]=v.orderedChildrenIds,p[y??Ye]=v.childrenIndexes;for(const _ of v.itemsChildren)h(_.children,_.id,m+1)};return h(n,o,r),{itemMetaLookup:a,itemModelLookup:u,itemOrderedChildrenIdsLookup:c,itemChildrenIndexesLookup:p}}function Db({id:e,parentId:t,item:n,itemMetaLookup:o,siblingsMetaLookup:r}){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)}`:Ve(193,JSON.stringify(n)));if(r[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.`:Ve(194,e))}const Vb=[],G={domStructure:ce(e=>e.domStructure),disabledItemFocusable:ce(e=>e.disabledItemsFocusable),itemMetaLookup:ce(e=>e.itemMetaLookup),itemOrderedChildrenIdsLookup:ce(e=>e.itemOrderedChildrenIdsLookup),itemMeta:ce((e,t)=>e.itemMetaLookup[t??Ye]??null),itemOrderedChildrenIds:ce((e,t)=>e.itemOrderedChildrenIdsLookup[t??Ye]??Vb),itemModel:ce((e,t)=>e.itemModelLookup[t]),isItemDisabled:ce((e,t)=>no(e.itemMetaLookup,t)),itemIndex:ce((e,t)=>{const n=e.itemMetaLookup[t];return n==null?-1:e.itemChildrenIndexesLookup[n.parentId??Ye][n.id]}),itemParentId:ce((e,t)=>{var n;return((n=e.itemMetaLookup[t])==null?void 0:n.parentId)??null}),itemDepth:ce((e,t)=>{var n;return((n=e.itemMetaLookup[t])==null?void 0:n.depth)??0}),canItemBeFocused:ce((e,t)=>e.disabledItemsFocusable||e.itemModelLookup[t]!=null&&!no(e.itemMetaLookup,t)),itemChildrenIndentation:ce(e=>e.itemChildrenIndentation),itemHeight:ce(e=>e.itemHeight)},bi=ce(e=>e.providedTreeId??e.treeId),wo={treeId:bi,treeItemIdAttribute:ce(bi,(e,t,n)=>n??`${e??""}-${t}`)};class ln{constructor(t){B(this,"getItem",t=>G.itemModel(this.store.state,t));B(this,"getItemTree",()=>{const t=n=>{const o=G.itemModel(this.store.state,n),r=q({},o),s=G.itemOrderedChildrenIds(this.store.state,n);return s.length>0?r.children=s.map(t):delete r.children,r};return G.itemOrderedChildrenIds(this.store.state,null).map(t)});B(this,"getItemOrderedChildrenIds",t=>G.itemOrderedChildrenIds(this.store.state,t));B(this,"getParentId",t=>{const n=G.itemMeta(this.store.state,t);return(n==null?void 0:n.parentId)||null});B(this,"setIsItemDisabled",({itemId:t,shouldBeDisabled:n})=>{if(!this.store.state.itemMetaLookup[t])return;const o=q({},this.store.state.itemMetaLookup);o[t]=q({},o[t],{disabled:n??!o[t].disabled}),this.store.set("itemMetaLookup",o)});B(this,"addItems",({items:t,parentId:n=null,index:o})=>{if(t.length===0)return;if(n!=null&&G.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.`:Ve(295,n));const r=n==null?-1:G.itemDepth(this.store.state,n),s=this.store.parameters.dataSource,i=(_,S)=>S!=null&&S.length>0?!0:s==null?!1:s.getChildrenCount(_)!==0,{itemMetaLookup:a,itemModelLookup:u,itemOrderedChildrenIdsLookup:c,itemChildrenIndexesLookup:p}=yi({storeParameters:this.store.parameters,items:t,parentId:n,depth:r+1,isItemExpandable:i,existingItemMetaLookup:this.store.state.itemMetaLookup});for(const _ of Object.keys(a))if(this.store.state.itemMetaLookup[_]!=null)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: All items must have a unique \`id\` property. The id "${_}" is used by multiple items. Use the \`getItemId\` prop to specify a custom id for each item if needed.`:Ve(194,_));const f=n??Ye,h=G.itemOrderedChildrenIds(this.store.state,n),d=o??h.length;if(d<0||d>h.length)throw new Error(process.env.NODE_ENV!=="production"?`MUI X Tree View: Unable to add items at index "${d}" because it is out of range. The index must be between 0 and the amount of children of the parent item (${h.length}).`:Ve(296,d,h.length));const y=c[f],m=[...h];m.splice(d,0,...y),c[f]=m,p[f]=Tl(m);const v=q({},this.store.state.itemMetaLookup,a);n!=null&&!v[n].expandable&&(v[n]=q({},v[n],{expandable:!0})),this.store.update({itemMetaLookup:v,itemModelLookup:q({},this.store.state.itemModelLookup,u),itemOrderedChildrenIdsLookup:q({},this.store.state.itemOrderedChildrenIdsLookup,c),itemChildrenIndexesLookup:q({},this.store.state.itemChildrenIndexesLookup,p)}),this.store.selection.propagateSelectionToNewItems(n,y)});B(this,"buildPublicAPI",()=>({getItem:this.getItem,getItemDOMElement:this.getItemDOMElement,getItemOrderedChildrenIds:this.getItemOrderedChildrenIds,getItemTree:this.getItemTree,getParentId:this.getParentId,setIsItemDisabled:this.setIsItemDisabled}));B(this,"getItemDOMElement",t=>{const n=G.itemMeta(this.store.state,t);if(n==null)return null;const o=wo.treeItemIdAttribute(this.store.state,t,n.idAttribute);return document.getElementById(o)});B(this,"setItemChildren",({items:t,parentId:n,getChildrenCount:o})=>{const r=n??Ye,s=n==null?-1:G.itemDepth(this.store.state,n),{metaLookup:i,modelLookup:a,orderedChildrenIds:u,childrenIndexes:c}=El({storeParameters:this.store.parameters,items:t,parentId:n,depth:s+1,isItemExpandable:o?p=>o(p)!==0:()=>!1,otherItemsMetaLookup:G.itemMetaLookup(this.store.state)});this.store.update({itemModelLookup:q({},this.store.state.itemModelLookup,a),itemMetaLookup:q({},this.store.state.itemMetaLookup,i),itemOrderedChildrenIdsLookup:q({},this.store.state.itemOrderedChildrenIdsLookup,{[r]:u}),itemChildrenIndexesLookup:q({},this.store.state.itemChildrenIndexesLookup,{[r]:c})})});B(this,"removeChildren",t=>{const n=this.store.state.itemMetaLookup,o=Object.keys(n).reduce((a,u)=>{const c=n[u];return c.parentId===t?a:q({},a,{[c.id]:c})},{}),r=q({},this.store.state.itemOrderedChildrenIdsLookup),s=q({},this.store.state.itemChildrenIndexesLookup),i=t??Ye;delete s[i],delete r[i],this.store.update({itemMetaLookup:o,itemOrderedChildrenIdsLookup:r,itemChildrenIndexesLookup:s})});B(this,"handleItemClick",(t,n)=>{var o,r;(r=(o=this.store.parameters).onItemClick)==null||r.call(o,t,n)});this.store=t}}B(ln,"shouldRebuildItemsState",(t,n)=>["items","isItemDisabled","isItemSelectionDisabled","getItemId","getItemLabel","getItemChildren"].some(o=>{const r=o;return t[r]!==n[r]})),B(ln,"buildItemsStateIfNeeded",t=>yi({storeParameters:t,items:t.items,parentId:null,depth:0,isItemExpandable:(n,o)=>!!o&&o.length>0}));const Uo=Nn(e=>e.expandedItems,e=>{const t=new Map;return e.forEach(n=>{t.set(n,!0)}),t}),Oe={expandedItemsRaw:ce(e=>e.expandedItems),expandedItemsMap:Uo,flatList:Nn(G.itemOrderedChildrenIdsLookup,Uo,(e,t)=>{function n(o){if(!t.has(o))return[o];const r=[o],s=e[o]||[];for(const i of s)r.push(...n(i));return r}return(e[Ye]??[]).flatMap(n)}),triggerSlot:ce(e=>e.expansionTrigger),isItemExpanded:ce(Uo,(e,t)=>e.has(t)),isItemExpandable:ce(G.itemMeta,(e,t)=>(e==null?void 0:e.expandable)??!1)},wl=Nn(e=>e.selectedItems,e=>Array.isArray(e)?e:e!=null?[e]:[]),Nl=Nn(wl,e=>{const t=new Map;return e.forEach(n=>{t.set(n,!0)}),t}),sr=ce((e,t)=>{var n;return((n=e.itemMetaLookup[t])==null?void 0:n.selectable)??!0}),ir=ce(Nl,(e,t)=>e.has(t)),Ol=ce(G.isItemDisabled,sr,e=>!e.disableSelection,(e,t,n,o)=>n&&!e&&t),$l=ce(e=>e.selectionPropagation),vi=ce((e,t)=>{if(ir(e,t))return"selected";if(G.itemOrderedChildrenIds(e,t).length===0)return"unselected";let n=!1,o=!1;const r=i=>{i!==t&&Ol(e,i)&&(ir(e,i)?n=!0:o=!0),G.itemOrderedChildrenIds(e,i).forEach(r)};return r(t),$l(e).parents?n&&o?"indeterminate":n&&!o?"selected":"unselected":n?"indeterminate":"unselected"}),le={selectedItemsRaw:ce(e=>e.selectedItems),selectedItems:wl,selectedItemsMap:Nl,enabled:ce(e=>!e.disableSelection),isMultiSelectEnabled:ce(e=>e.multiSelect),isCheckboxSelectionEnabled:ce(e=>e.checkboxSelection),propagationRules:$l,isItemSelected:ir,itemSelectionStatus:vi,isItemIndeterminate:ce(vi,(e,t)=>e==="indeterminate"),isFeatureEnabledForItem:ce(sr,e=>!e.disableSelection,(e,t,n)=>t&&e),canItemBeSelected:Ol,isItemSelectable:sr},_i=Nn(le.selectedItems,Oe.expandedItemsMap,G.itemMetaLookup,G.disabledItemFocusable,e=>G.itemOrderedChildrenIds(e,null),(e,t,n,o,r)=>{const s=e.find(a=>{if(!o&&no(n,a))return!1;const u=n[a];return u&&(u.parentId==null||t.has(u.parentId))});if(s!=null)return s;const i=r.find(a=>o||!no(n,a));return i??null}),on={defaultFocusableItemId:_i,isItemTheDefaultFocusableItem:ce(_i,(e,t)=>e===t),focusedItemId:ce(e=>e.focusedItemId),isItemFocused:ce((e,t)=>e.focusedItemId===t)},oo={isEmpty:ce(e=>e.lazyLoadedItems==null?!0:Object.keys(e.lazyLoadedItems.loading).length===0&&Object.keys(e.lazyLoadedItems.errors).length===0),isItemLoading:ce((e,t)=>{var n;return((n=e.lazyLoadedItems)==null?void 0:n.loading[t??Ye])??!1}),itemHasError:ce((e,t)=>{var n;return!!((n=e.lazyLoadedItems)!=null&&n.errors[t??Ye])}),itemError:ce((e,t)=>{var n;return(n=e.lazyLoadedItems)==null?void 0:n.errors[t??Ye]})},ht={isItemEditable:ce(e=>e.isItemEditable,G.itemModel,(e,t,n)=>!t||e==null?!1:typeof e=="boolean"?e:e(t)),isItemBeingEdited:ce((e,t)=>t==null?!1:e.editedItemId===t),isAnyItemBeingEdited:ce(e=>!!e.editedItemId)},Rl=e=>Array.isArray(e)?e.length>0&&e.some(Rl):!!e,Bb=({itemId:e,children:t})=>{const{store:n,publicAPI:o}=At(),r=pe(n,Oe.isItemExpandable,e),s=pe(n,oo.isItemLoading,e),i=pe(n,oo.itemHasError,e),a=Rl(t)||r,u=pe(n,Oe.isItemExpanded,e),c=pe(n,on.isItemFocused,e),p=pe(n,le.isItemSelected,e),f=pe(n,le.isItemIndeterminate,e),h=pe(n,G.isItemDisabled,e),d=pe(n,ht.isItemBeingEdited,e),y=pe(n,ht.isItemEditable,e),m={expandable:a,expanded:u,focused:c,selected:p,indeterminate:f,disabled:h,editing:d,editable:y,loading:s,error:i},v=w=>{if(m.disabled)return;m.focused||n.focus.focusItem(w,e);const N=le.isMultiSelectEnabled(n.state)&&(w.shiftKey||w.ctrlKey||w.metaKey);m.expandable&&!(N&&Oe.isItemExpanded(n.state,e))&&n.expansion.setItemExpansion({event:w,itemId:e})},_=w=>{if(!le.canItemBeSelected(n.state,e))return;!m.focused&&!m.editing&&n.focus.focusItem(w,e),le.isMultiSelectEnabled(n.state)&&(w.shiftKey||w.ctrlKey||w.metaKey)?w.shiftKey?n.selection.expandSelectionRange(w,e):n.selection.setItemSelection({event:w,itemId:e,keepExistingSelection:!0}):n.selection.setItemSelection({event:w,itemId:e,shouldBeSelected:!0})},S=w=>{const N=w.nativeEvent.shiftKey,L=le.isMultiSelectEnabled(n.state);L&&N?n.selection.expandSelectionRange(w,e):n.selection.setItemSelection({event:w,itemId:e,keepExistingSelection:L,shouldBeSelected:w.target.checked})},E=()=>{n.labelEditing&&(d?n.labelEditing.setEditedItem(null):n.labelEditing.setEditedItem(e))};return{interactions:{handleExpansion:v,handleSelection:_,handleCheckboxSelection:S,toggleItemEditing:E,handleSaveItemLabel:(w,N)=>{n.labelEditing&&ht.isItemBeingEdited(n.state,e)&&(n.labelEditing.updateItemLabel(e,N),E(),n.focus.focusItem(w,e))},handleCancelItemLabelEditing:w=>{n.labelEditing&&ht.isItemBeingEdited(n.state,e)&&(E(),n.focus.focusItem(w,e))}},status:m,publicAPI:o}},Kr=k.createContext(()=>-1);process.env.NODE_ENV!=="production"&&(Kr.displayName="TreeViewItemDepthContext");const ar=(e,t)=>{let n=t.length-1;for(;n>=0&&!G.canItemBeFocused(e,t[n]);)n-=1;if(n!==-1)return t[n]},Yr=(e,t)=>{const n=G.itemMeta(e,t);if(!n)return null;const o=G.itemOrderedChildrenIds(e,n.parentId),r=G.itemIndex(e,t);if(r===0)return n.parentId;let s=r-1;for(;!G.canItemBeFocused(e,o[s])&&s>=0;)s-=1;if(s===-1)return n.parentId==null?null:Yr(e,n.parentId);let i=o[s],a=ar(e,G.itemOrderedChildrenIds(e,i));for(;Oe.isItemExpanded(e,i)&&a!=null;)i=a,a=ar(e,G.itemOrderedChildrenIds(e,i));return i},_n=(e,t)=>{if(Oe.isItemExpanded(e,t)){const o=G.itemOrderedChildrenIds(e,t).find(r=>G.canItemBeFocused(e,r));if(o!=null)return o}let n=G.itemMeta(e,t);for(;n!=null;){const o=G.itemOrderedChildrenIds(e,n.parentId),r=G.itemIndex(e,n.id);if(r<o.length-1){let s=r+1;for(;!G.canItemBeFocused(e,o[s])&&s<o.length-1;)s+=1;if(G.canItemBeFocused(e,o[s]))return o[s]}n=G.itemMeta(e,n.parentId)}return null},kl=e=>{let t=null;for(;t==null||Oe.isItemExpanded(e,t);){const n=G.itemOrderedChildrenIds(e,t),o=ar(e,n);if(o==null)return t;t=o}return t},Cn=e=>G.itemOrderedChildrenIds(e,null).find(t=>G.canItemBeFocused(e,t)),Ml=(e,t,n)=>{if(t===n)return[t,n];const o=G.itemMeta(e,t),r=G.itemMeta(e,n);if(!o||!r)return[t,n];if(o.parentId===r.id||r.parentId===o.id)return r.parentId===o.id?[o.id,r.id]:[r.id,o.id];const s=[o.id],i=[r.id];let a=o.parentId,u=r.parentId,c=i.indexOf(a)!==-1,p=s.indexOf(u)!==-1,f=!0,h=!0;for(;!p&&!c;)f&&(s.push(a),c=i.indexOf(a)!==-1,f=a!==null,!c&&f&&(a=G.itemParentId(e,a))),h&&!c&&(i.push(u),p=s.indexOf(u)!==-1,h=u!==null,!p&&h&&(u=G.itemParentId(e,u)));const d=c?a:u,y=G.itemOrderedChildrenIds(e,d),m=s[s.indexOf(d)-1],v=i[i.indexOf(d)-1];return y.indexOf(m)<y.indexOf(v)?[t,n]:[n,t]},Fb=(e,t,n)=>{const o=u=>{if(Oe.isItemExpandable(e,u)&&Oe.isItemExpanded(e,u))return G.itemOrderedChildrenIds(e,u)[0];let c=G.itemMeta(e,u);for(;c!=null;){const p=G.itemOrderedChildrenIds(e,c.parentId),f=G.itemIndex(e,c.id);if(f<p.length-1)return p[f+1];c=c.parentId?G.itemMeta(e,c.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.":Ve(191))},[r,s]=Ml(e,t,n),i=[r];let a=r;for(;a!==s;)a=o(a),G.isItemDisabled(e,a)||i.push(a);return i},zb=e=>{let t=Cn(e);const n=[];for(;t!=null;)n.push(t),t=_n(e,t);return n},lr=(e,t)=>t!==e.closest('*[role="treeitem"]');class Wb{constructor(t){B(this,"setExpandedItems",(t,n)=>{var o,r;this.store.parameters.expandedItems===void 0&&this.store.set("expandedItems",n),(r=(o=this.store.parameters).onExpandedItemsChange)==null||r.call(o,t,n)});B(this,"isItemExpanded",t=>Oe.isItemExpanded(this.store.state,t));B(this,"buildPublicAPI",()=>({isItemExpanded:this.isItemExpanded,setItemExpansion:this.setItemExpansion}));B(this,"setItemExpansion",({itemId:t,event:n=null,shouldBeExpanded:o})=>{const r=Oe.isItemExpanded(this.store.state,t),s=o??!r;if(r===s)return;const i={isExpansionPrevented:!1,shouldBeExpanded:s,itemId:t};this.store.publishEvent("beforeItemToggleExpansion",i,n),!i.isExpansionPrevented&&this.applyItemExpansion({itemId:t,event:n,shouldBeExpanded:s})});B(this,"applyItemExpansion",({itemId:t,event:n,shouldBeExpanded:o})=>{var i,a;const r=Oe.expandedItemsRaw(this.store.state);let s;o?s=[t].concat(r):s=r.filter(u=>u!==t),(a=(i=this.store.parameters).onItemExpansionToggle)==null||a.call(i,n,t,o),this.setExpandedItems(n,s)});B(this,"expandAllSiblings",(t,n)=>{const o=G.itemMeta(this.store.state,n);if(o==null)return;const s=G.itemOrderedChildrenIds(this.store.state,o.parentId).filter(a=>Oe.isItemExpandable(this.store.state,a)&&!Oe.isItemExpanded(this.store.state,a)),i=Oe.expandedItemsRaw(this.store.state).concat(s);s.length>0&&(this.store.parameters.onItemExpansionToggle&&s.forEach(a=>{this.store.parameters.onItemExpansionToggle(t,a,!0)}),this.setExpandedItems(t,i))});B(this,"addExpandableItems",t=>{const n=q({},this.store.state.itemMetaLookup);for(const o of t)n[o]=q({},n[o],{expandable:!0});this.store.set("itemMetaLookup",n)});this.store=t}}class Ub{constructor(t){B(this,"setFocusedItemId",t=>{on.focusedItemId(this.store.state)!==t&&this.store.set("focusedItemId",t)});B(this,"applyItemFocus",(t,n)=>{var o,r,s;(o=this.store.items.getItemDOMElement(n))==null||o.focus(),this.setFocusedItemId(n),(s=(r=this.store.parameters).onItemFocus)==null||s.call(r,t,n)});B(this,"buildPublicAPI",()=>({focusItem:this.focusItem}));B(this,"focusItem",(t,n)=>{const o=G.itemMeta(this.store.state,n);o&&(o.parentId==null||Oe.isItemExpanded(this.store.state,o.parentId))&&this.applyItemFocus(t,n)});B(this,"removeFocusedItem",()=>{const t=on.focusedItemId(this.store.state);if(t==null)return;if(G.itemMeta(this.store.state,t)){const o=this.store.items.getItemDOMElement(t);o&&o.blur()}this.setFocusedItemId(null)});B(this,"handleRootFocus",t=>{if(t.defaultMuiPrevented)return;const n=on.defaultFocusableItemId(this.store.state);t.target===t.currentTarget&&n!=null&&this.applyItemFocus(t,n)});B(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 r=on.focusedItemId(o);if(r==null||G.itemMeta(o,r)){n=o;return}const s=a=>a==null||!G.itemMeta(o,a)?null:a,i=s(_n(n,r))??s(Yr(n,r))??Cn(o);i==null?this.setFocusedItemId(null):this.applyItemFocus(null,i),n=o}))}}const Gb=({props:e})=>{const{itemId:t}=e,{store:n}=At(),o=pe(n,le.isCheckboxSelectionEnabled),r=pe(n,le.isFeatureEnabledForItem,t),s=pe(n,le.canItemBeSelected,t),i=pe(n,G.isItemDisabled,t),a=pe(n,le.isItemSelectable,t),u=pe(n,le.itemSelectionStatus,t),c=i||!a;return{propsEnhancers:{root:()=>{let p;return c?p=void 0:u==="selected"?p=!0:u==="indeterminate"?p="mixed":s?p=!1:p=void 0,{"aria-checked":p}},checkbox:({externalEventHandlers:p,interactions:f})=>({tabIndex:-1,onChange:d=>{var y;(y=p.onChange)==null||y.call(p,d),!d.defaultMuiPrevented&&le.canItemBeSelected(n.state,t)&&f.handleCheckboxSelection(d)},visible:o&&r,disabled:!s,checked:u==="selected",indeterminate:u==="indeterminate"})}}};class qb{constructor(t){B(this,"lastSelectedItem",null);B(this,"lastSelectedRange",{});B(this,"setSelectedItems",(t,n,o)=>{const{selectionPropagation:r=an,selectedItems:s,onItemSelectionToggle:i,onSelectedItemsChange:a}=this.store.parameters,u=le.selectedItemsRaw(this.store.state);let c;const p=le.isMultiSelectEnabled(this.store.state);if(p&&(r.descendants||r.parents)?c=Hb({store:this.store,selectionPropagation:r,newModel:n,oldModel:u,additionalItemsToPropagate:o}):c=n,s===void 0&&this.store.set("selectedItems",c),i)if(p){const f=Pl({newModel:c,oldModel:u});i&&(f.added.forEach(h=>{i(t,h,!0)}),f.removed.forEach(h=>{i(t,h,!1)}))}else c!==u&&(u!=null&&i(t,u,!1),c!=null&&i(t,c,!0));a==null||a(t,c)});B(this,"selectRange",(t,[n,o])=>{if(!le.isMultiSelectEnabled(this.store.state))return;let s=le.selectedItems(this.store.state).slice();Object.keys(this.lastSelectedRange).length>0&&(s=s.filter(c=>!this.lastSelectedRange[c]));const i=Wn(s),a=Fb(this.store.state,n,o).filter(c=>le.isItemSelectable(this.store.state,c)),u=a.filter(c=>!i[c]);s=s.concat(u),this.setSelectedItems(t,s),this.lastSelectedRange=Wn(a)});B(this,"getItemSelection",t=>le.itemSelectionStatus(this.store.state,t));B(this,"buildPublicAPI",()=>({getItemSelection:this.getItemSelection,setItemSelection:this.setItemSelection}));B(this,"propagateSelectionToNewItems",(t,n)=>{const{selectionPropagation:o=an}=this.store.parameters;if(t==null||n.length===0||!o.descendants||!le.isMultiSelectEnabled(this.store.state)||!le.isItemSelected(this.store.state,t))return;const r=le.selectedItems(this.store.state).concat(n);this.setSelectedItems(null,r,n)});B(this,"setItemSelection",({itemId:t,event:n=null,keepExistingSelection:o=!1,shouldBeSelected:r})=>{if(!le.enabled(this.store.state))return;let s;const i=le.isMultiSelectEnabled(this.store.state);if(o&&i){const a=le.selectedItems(this.store.state),u=le.isItemSelected(this.store.state,t);u&&(r===!1||r==null)?s=a.filter(c=>c!==t):!u&&(r===!0||r==null)?s=[t].concat(a):s=a}else r===!1||r==null&&le.isItemSelected(this.store.state,t)?s=i?[]:null:s=i?[t]:t;this.setSelectedItems(n,s,[t]),this.lastSelectedItem=t,this.lastSelectedRange={}});B(this,"selectAllNavigableItems",t=>{if(!le.isMultiSelectEnabled(this.store.state))return;const o=zb(this.store.state);this.setSelectedItems(t,o),this.lastSelectedRange=Wn(o)});B(this,"expandSelectionRange",(t,n)=>{if(this.lastSelectedItem!=null){const[o,r]=Ml(this.store.state,n,this.lastSelectedItem);this.selectRange(t,[o,r])}});B(this,"selectRangeFromStartToItem",(t,n)=>{this.selectRange(t,[Cn(this.store.state),n])});B(this,"selectRangeFromItemToEnd",(t,n)=>{this.selectRange(t,[n,kl(this.store.state)])});B(this,"selectItemFromArrowNavigation",(t,n,o)=>{if(!le.isMultiSelectEnabled(this.store.state))return;let s=le.selectedItems(this.store.state).slice();Object.keys(this.lastSelectedRange).length===0?(le.isItemSelected(this.store.state,o)||s.push(o),this.lastSelectedRange={[n]:!0,[o]:!0}):(this.lastSelectedRange[n]||(this.lastSelectedRange={}),this.lastSelectedRange[o]?(s=s.filter(i=>i!==n),delete this.lastSelectedRange[n]):(le.isItemSelected(this.store.state,o)||s.push(o),this.lastSelectedRange[o]=!0)),this.setSelectedItems(t,s)});this.store=t,t.itemPluginManager.register(Gb,null)}}function Hb({store:e,selectionPropagation:t,newModel:n,oldModel:o,additionalItemsToPropagate:r}){if(!t.descendants&&!t.parents)return n;let s=!1;const i=Wn(n),a=Pl({newModel:n,oldModel:o});return r==null||r.forEach(u=>{i[u]?a.added.includes(u)||a.added.push(u):a.removed.includes(u)||a.removed.push(u)}),a.added.forEach(u=>{if(t.descendants){const c=p=>{p!==u&&le.canItemBeSelected(e.state,p)&&(s=!0,i[p]=!0),G.itemOrderedChildrenIds(e.state,p).forEach(c)};c(u)}if(t.parents){const c=f=>le.canItemBeSelected(e.state,f)?i[f]?G.itemOrderedChildrenIds(e.state,f).every(c):!1:G.itemOrderedChildrenIds(e.state,f).every(c),p=f=>{const h=G.itemParentId(e.state,f);if(h==null)return;G.itemOrderedChildrenIds(e.state,h).every(c)&&(le.canItemBeSelected(e.state,h)&&(s=!0,i[h]=!0),p(h))};p(u)}}),a.removed.forEach(u=>{if(t.parents){let c=G.itemParentId(e.state,u);for(;c!=null;)i[c]&&(s=!0,delete i[c]),c=G.itemParentId(e.state,c)}if(t.descendants){const c=p=>{p!==u&&(s=!0,delete i[p]),G.itemOrderedChildrenIds(e.state,p).forEach(c)};c(u)}}),s?Object.keys(i):n}function Pl({oldModel:e,newModel:t}){const n=new Map;t.forEach(r=>{n.set(r,!0)});const o=new Map;return e.forEach(r=>{o.set(r,!0)}),{added:t.filter(r=>!o.has(r)),removed:e.filter(r=>!n.has(r))}}function Wn(e){const t={};return e.forEach(n=>{t[n]=!0}),t}const Kb=(e,t,n)=>typeof n=="function"?n(e,t):n,Al=e=>{const{runItemPlugins:t,publicAPI:n,store:o}=At(),r=k.useContext(Kr),s=pe(o,Kb,e.itemId,r),{id:i,itemId:a,label:u,children:c,rootRef:p}=e,{rootRef:f,contentRef:h,propsEnhancers:d}=t(e),{interactions:y,status:m}=Bb({itemId:a,children:c}),v=k.useRef(null),_=k.useRef(null),S=tr(p,f,v),E=tr(h,_),C=k.useRef(null),x=pe(o,le.isCheckboxSelectionEnabled),I=pe(o,wo.treeItemIdAttribute,a,i),w=pe(o,on.isItemTheDefaultFocusableItem,a),N=pe(o,G.itemHeight),L={rootRefObject:v,contentRefObject:_,interactions:y},F=A=>P=>{var W;(W=A.onFocus)==null||W.call(A,P),!P.defaultMuiPrevented&&!m.focused&&G.canItemBeFocused(o.state,a)&&P.currentTarget===P.target&&o.focus.focusItem(P,a)},U=A=>P=>{var ie,D,Ee,te,Te;if((ie=A.onBlur)==null||ie.call(A,P),P.defaultMuiPrevented)return;const W=o.items.getItemDOMElement(a);m.editing||P.relatedTarget&&lr(P.relatedTarget,W)&&(P.target&&((Ee=(D=P.target)==null?void 0:D.dataset)==null?void 0:Ee.element)==="labelInput"&&lr(P.target,W)||((Te=(te=P.relatedTarget)==null?void 0:te.dataset)==null?void 0:Te.element)==="labelInput")||o.focus.removeFocusedItem()},b=A=>P=>{var W,ie,D;(W=A.onKeyDown)==null||W.call(A,P),!(P.defaultMuiPrevented||((D=(ie=P.target)==null?void 0:ie.dataset)==null?void 0:D.element)==="labelInput")&&o.keyboardNavigation.handleItemKeyDown(P,a)},R=A=>P=>{var W;(W=A.onDoubleClick)==null||W.call(A,P),!P.defaultMuiPrevented&&y.toggleItemEditing()},T=A=>P=>{var W,ie;(W=A.onClick)==null||W.call(A,P),o.items.handleItemClick(P,a),!(P.defaultMuiPrevented||(ie=C.current)!=null&&ie.contains(P.target))&&(Oe.triggerSlot(o.state)==="content"&&y.handleExpansion(P),x||y.handleSelection(P))},j=A=>P=>{var W;(W=A.onMouseDown)==null||W.call(A,P),!P.defaultMuiPrevented&&(P.shiftKey||P.ctrlKey||P.metaKey||m.disabled)&&P.preventDefault()},V=A=>P=>{var W;(W=A.onClick)==null||W.call(A,P),!P.defaultMuiPrevented&&Oe.triggerSlot(o.state)==="iconContainer"&&y.handleExpansion(P)};return{getContextProviderProps:()=>({itemId:a,id:i}),getRootProps:(A={})=>{var D;const P=q({},Ue(e),Ue(A)),W=q({},P,{ref:S,role:"treeitem",tabIndex:w?0:-1,id:I,"aria-expanded":m.expandable?m.expanded:void 0,"aria-disabled":m.disabled||void 0},A,{style:q({},A.style??{},{"--TreeView-itemDepth":s},N==null?{}:{"--TreeView-itemHeight":`${N}px`}),onFocus:F(P),onBlur:U(P),onKeyDown:b(P)}),ie=((D=d.root)==null?void 0:D.call(d,q({},L,{externalEventHandlers:P})))??{};return q({},W,ie)},getContentProps:(A={})=>{var D;const P=Ue(A),W=q({},P,A,{ref:E,onClick:T(P),onMouseDown:j(P)});["expanded","selected","focused","disabled","editing","editable"].forEach(Ee=>{m[Ee]&&(W[`data-${Ee}`]="")});const ie=((D=d.content)==null?void 0:D.call(d,q({},L,{externalEventHandlers:P})))??{};return q({},W,ie)},getGroupTransitionProps:(A={})=>{const P=Ue(A);return q({},P,{unmountOnExit:!0,component:"ul",role:"group",in:m.expanded,children:c},A)},getIconContainerProps:(A={})=>{const P=Ue(A);return q({},P,A,{onClick:V(P)})},getCheckboxProps:(A={})=>{var D;const P=Ue(A),W=q({},P,{ref:C,"aria-hidden":!0},A),ie=((D=d.checkbox)==null?void 0:D.call(d,q({},L,{externalEventHandlers:P})))??{};return q({},W,ie)},getLabelProps:(A={})=>{var D;const P=q({},Ue(A)),W=q({},P,{children:u},A,{onDoubleClick:R(P)}),ie=((D=d.label)==null?void 0:D.call(d,q({},L,{externalEventHandlers:P})))??{};return q({},ie,W)},getLabelInputProps:(A={})=>{var ie;const P=Ue(A),W=((ie=d.labelInput)==null?void 0:ie.call(d,q({},L,{externalEventHandlers:P})))??{};return q({},A,W)},getDragAndDropOverlayProps:(A={})=>{var ie;const P=Ue(A),W=((ie=d.dragAndDropOverlay)==null?void 0:ie.call(d,q({},L,{externalEventHandlers:P})))??{};return q({},A,W)},getErrorContainerProps:(A={})=>{const P=Ue(A);return q({},P,A)},getLoadingContainerProps:(A={})=>{const P=Ue(A);return q({size:"12px",thickness:6},P,A)},rootRef:S,status:m,publicAPI:n}};function Yb(e){return Wr("MuiTreeItem",e)}_l("MuiTreeItem",["root","content","groupTransition","iconContainer","label","checkbox","labelInput","dragAndDropOverlay","errorIcon","loadingIcon"]);const Xb=lt(g.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"TreeViewExpandIcon"),Qb=lt(g.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"TreeViewCollapseIcon"),Jb=["ownerState"];function Go(e,t,n){return e!==void 0?e:t!==void 0?t:n}function Xr(e){const{slots:t,slotProps:n,status:o}=e,{slots:r,slotProps:s}=Hr(),i={collapseIcon:Go(t==null?void 0:t.collapseIcon,r.collapseIcon,Qb),expandIcon:Go(t==null?void 0:t.expandIcon,r.expandIcon,Xb),endIcon:Go(t==null?void 0:t.endIcon,r.endIcon),icon:t==null?void 0:t.icon};let a;i!=null&&i.icon?a="icon":o.expandable?o.expanded?a="collapseIcon":a="expandIcon":a="endIcon";const u=i[a],c=Be({elementType:u,externalSlotProps:f=>q({},rr(s[a],f),rr(n==null?void 0:n[a],f)),ownerState:{}}),p=Ut(c,Jb);return u?g.jsx(u,q({},p)):null}process.env.NODE_ENV!=="production"&&(Xr.propTypes={slotProps:l.object,slots:l.object,status:l.shape({disabled:l.bool.isRequired,editable:l.bool.isRequired,editing:l.bool.isRequired,error:l.bool.isRequired,expandable:l.bool.isRequired,expanded:l.bool.isRequired,focused:l.bool.isRequired,indeterminate:l.bool,loading:l.bool.isRequired,selected:l.bool.isRequired}).isRequired});const Zb=de("div",{name:"MuiTreeItemDragAndDropOverlay",slot:"Root",shouldForwardProp:e=>sn(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 jl(e){return e.action==null?null:g.jsx(Zb,q({},e))}process.env.NODE_ENV!=="production"&&(jl.propTypes={action:l.oneOf(["make-child","move-to-parent","reorder-above","reorder-below"]),style:l.object});function Qr(e){const{children:t,itemId:n,id:o}=e,{wrapItem:r,store:s}=At(),i=pe(s,wo.treeItemIdAttribute,n,o);return g.jsx(k.Fragment,{children:r({children:t,itemId:n,store:s,idAttribute:i})})}process.env.NODE_ENV!=="production"&&(Qr.propTypes={children:l.node,id:l.string,itemId:l.string.isRequired});const ev=de("input",{name:"MuiTreeItem",slot:"LabelInput"})(({theme:e})=>q({},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}`}})),tv=["visible"],nv=["id","itemId","label","disabled","disableSelection","children","slots","slotProps","classes"],ov=xl(),Ll=de("li",{name:"MuiTreeItem",slot:"Root"})({listStyle:"none",margin:0,padding:0,outline:0}),Dl=de("div",{name:"MuiTreeItem",slot:"Content",shouldForwardProp:e=>sn(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}`)}})),Vl=de("div",{name:"MuiTreeItem",slot:"Label",shouldForwardProp:e=>sn(e)&&e!=="editable"})(({theme:e})=>q({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),Bl=de("div",{name:"MuiTreeItem",slot:"IconContainer"})({width:16,display:"flex",flexShrink:0,justifyContent:"center",position:"relative",cursor:"inherit","& svg":{fontSize:18}}),Fl=de(to,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition})({margin:0,padding:0}),rv=de("div",{name:"MuiTreeItem",slot:"ErrorIcon"})({position:"absolute",right:-3,width:7,height:7,borderRadius:"50%",backgroundColor:"red"}),sv=de(Vr,{name:"MuiTreeItem",slot:"LoadingIcon"})({color:"text.primary"}),zl=de(k.forwardRef((e,t)=>{const{visible:n}=e,o=Ut(e,tv);return n?g.jsx(Il,q({},o,{ref:t})):null}),{name:"MuiTreeItem",slot:"Checkbox"})({padding:0});process.env.NODE_ENV!=="production"&&(zl.displayName="TreeItemCheckbox");const iv=e=>{const{classes:t}=Hr(),n=q({},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 vl({root:["root"],content:["content"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],groupTransition:["groupTransition"],labelInput:["labelInput"],dragAndDropOverlay:["dragAndDropOverlay"],errorIcon:["errorIcon"],loadingIcon:["loadingIcon"]},Yb,n)},Jr=k.forwardRef(function(t,n){const o=ov({props:t,name:"MuiTreeItem"}),{id:r,itemId:s,label:i,disabled:a,disableSelection:u,children:c,slots:p={},slotProps:f={},classes:h}=o,d=Ut(o,nv),{getContextProviderProps:y,getRootProps:m,getContentProps:v,getIconContainerProps:_,getCheckboxProps:S,getLabelProps:E,getGroupTransitionProps:C,getLabelInputProps:x,getDragAndDropOverlayProps:I,getErrorContainerProps:w,getLoadingContainerProps:N,status:L}=Al({id:r,itemId:s,children:c,label:i,disabled:a,disableSelection:u}),F=iv(h),U=p.root??Ll,b=Be({elementType:U,getSlotProps:m,externalForwardedProps:d,externalSlotProps:f.root,additionalProps:{ref:n},ownerState:{},className:F.root}),R=p.content??Dl,T=Be({elementType:R,getSlotProps:v,externalSlotProps:f.content,ownerState:{},className:F.content}),j=p.iconContainer??Bl,V=Be({elementType:j,getSlotProps:_,externalSlotProps:f.iconContainer,ownerState:{},className:F.iconContainer}),K=p.label??Vl,se=Be({elementType:K,getSlotProps:E,externalSlotProps:f.label,ownerState:{},className:F.label}),oe=p.checkbox??zl,M=Be({elementType:oe,getSlotProps:S,externalSlotProps:f.checkbox,ownerState:{},className:F.checkbox}),z=p.groupTransition??void 0,Q=Be({elementType:z,getSlotProps:C,externalSlotProps:f.groupTransition,ownerState:{},className:F.groupTransition}),re=p.labelInput??ev,ne=Be({elementType:re,getSlotProps:x,externalSlotProps:f.labelInput,ownerState:{},className:F.labelInput}),Y=p.dragAndDropOverlay??jl,J=Be({elementType:Y,getSlotProps:I,externalSlotProps:f.dragAndDropOverlay,ownerState:{},className:F.dragAndDropOverlay}),Z=p.errorIcon??rv,A=Be({elementType:Z,getSlotProps:w,externalSlotProps:f.errorIcon,ownerState:{},className:F.errorIcon}),P=p.loadingIcon??sv,W=Be({elementType:P,getSlotProps:N,externalSlotProps:f.loadingIcon,ownerState:{},className:F.loadingIcon});return g.jsx(Qr,q({},y(),{children:g.jsxs(U,q({},b,{children:[g.jsxs(R,q({},T,{children:[g.jsxs(j,q({},V,{children:[L.error&&g.jsx(Z,q({},A)),L.loading?g.jsx(P,q({},W)):g.jsx(Xr,{status:L,slots:p,slotProps:f})]})),g.jsx(oe,q({},M)),L.editing?g.jsx(re,q({},ne)):g.jsx(K,q({},se)),g.jsx(Y,q({},J))]})),c&&g.jsx(Fl,q({as:z},Q))]}))}))});process.env.NODE_ENV!=="production"&&(Jr.displayName="TreeItem");process.env.NODE_ENV!=="production"&&(Jr.propTypes={children:l.any,classes:l.object,className:l.string,disabled:l.bool,disableSelection:l.bool,id:l.string,itemId:l.string.isRequired,label:l.node,onBlur:l.func,onFocus:bb,onKeyDown:l.func,slotProps:l.object,slots:l.object,sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object])});function av(e,t,n){const o=pe(e,wo.treeId),r=pe(e,G.itemChildrenIndentation),s=pe(e,le.isMultiSelectEnabled);return i=>q({ref:n,role:"tree",id:o,"aria-multiselectable":s},t,i,{style:q({},t.style,{"--TreeView-itemChildrenIndentation":typeof r=="number"?`${r}px`:r}),onFocus:a=>{var u;(u=i.onFocus)==null||u.call(i,a),e.focus.handleRootFocus(a)},onBlur:a=>{var u;(u=i.onBlur)==null||u.call(i,a),e.focus.handleRootBlur(a)}})}const lv=["ownerState"],Zr=k.createContext(null);process.env.NODE_ENV!=="production"&&(Zr.displayName="RichTreeViewItemsContext");const cv=()=>Ur,uv=e=>G.itemOrderedChildrenIds(e,null),Wl=k.memo(function({itemSlot:t,itemSlotProps:n,itemId:o,skipChildren:r}){const s=k.useContext(Zr),{store:i}=At(),a=pe(i,G.itemMeta,o),u=pe(i,r?cv:G.itemOrderedChildrenIds,o),c=t??Jr,p=Be({elementType:c,externalSlotProps:n,additionalProps:{label:a==null?void 0:a.label,id:a==null?void 0:a.idAttribute,itemId:o},ownerState:{itemId:o,label:a==null?void 0:a.label}}),f=Ut(p,lv);return g.jsx(c,q({},f,{children:s?u==null?void 0:u.map(s):null}))},yb);process.env.NODE_ENV!=="production"&&(Wl.displayName="RichTreeViewItem");function dv(e){const{slots:t,slotProps:n,ownerState:o,forwardedProps:r,rootRef:s}=e,{store:i}=At(),{classes:a}=Hr(),u=t==null?void 0:t.item,c=n==null?void 0:n.item,p=pe(i,G.domStructure),f=pe(i,p==="flat"?Oe.flatList:uv),h=av(i,r,s),d=t.root,y=Be({elementType:d,externalSlotProps:n==null?void 0:n.root,className:a.root,getSlotProps:h,ownerState:o}),m=p==="flat",v=k.useCallback(_=>g.jsx(Wl,{itemSlot:u,itemSlotProps:c,itemId:_,skipChildren:m},_),[u,c,m]);return g.jsx(Zr.Provider,{value:v,children:g.jsx(d,q({},y,{children:f.map(v)}))})}const pv=["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 fv(e){const{apiRef:t,slots:n,slotProps:o,disabledItemsFocusable:r,items:s,isItemDisabled:i,isItemSelectionDisabled:a,getItemLabel:u,getItemChildren:c,getItemId:p,onItemClick:f,itemChildrenIndentation:h,id:d,expandedItems:y,defaultExpandedItems:m,onExpandedItemsChange:v,onItemExpansionToggle:_,expansionTrigger:S,disableSelection:E,selectedItems:C,defaultSelectedItems:x,multiSelect:I,checkboxSelection:w,selectionPropagation:N,onSelectedItemsChange:L,onItemSelectionToggle:F,onItemFocus:U,itemHeight:b,onItemLabelChange:R,isItemEditable:T,domStructure:j}=e,V=Ut(e,pv),K=k.useMemo(()=>({disabledItemsFocusable:r,items:s,isItemDisabled:i,isItemSelectionDisabled:a,getItemLabel:u,getItemChildren:c,getItemId:p,onItemClick:f,itemChildrenIndentation:h,id:d,expandedItems:y,defaultExpandedItems:m,onExpandedItemsChange:v,onItemExpansionToggle:_,expansionTrigger:S,disableSelection:E,selectedItems:C,defaultSelectedItems:x,multiSelect:I,checkboxSelection:w,selectionPropagation:N,onSelectedItemsChange:L,onItemSelectionToggle:F,onItemFocus:U,itemHeight:b,onItemLabelChange:R,isItemEditable:T,domStructure:j}),[r,s,i,a,u,c,p,f,h,d,y,m,v,_,S,E,C,x,I,w,N,L,F,U,b,R,T,j]);return{apiRef:t,slots:n,slotProps:o,parameters:K,forwardedProps:V}}const mv=()=>{},hv=typeof document<"u"?k.useLayoutEffect:mv;function es(e){k.useEffect(e,Ur)}const gv={...k},Sn=typeof Symbol.dispose=="symbol"?Symbol.dispose:Symbol.for("Symbol.dispose"),xi=typeof SuppressedError=="function"?SuppressedError:void 0;function yv(e,t){if(xi)return new xi(e,t);const n=new Error("An error was suppressed during disposal.");return Object.assign(n,{name:"SuppressedError",error:e,suppressed:t})}function Bn(e){if(e)throw new ReferenceError("MUI X: The disposable stack is disposed.")}class ts{constructor(){B(this,"stack",[]);B(this,"isDisposed",!1)}get disposed(){return this.isDisposed}use(t){if(Bn(this.isDisposed),t!=null){const n=t[Sn];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 Bn(this.isDisposed),this.stack.push(()=>n(t)),t}defer(t){Bn(this.isDisposed),this.stack.push(t)}move(){Bn(this.isDisposed);const t=new ts;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(r){n=t?yv(r,n):r,t=!0}if(this.stack=[],t)throw n}[Sn](){this.dispose()}}const bv=globalThis.DisposableStack??ts;function vv(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 _v=16,Ci=gv,en=Ci.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE??Ci.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function xv(){var e,t,n;try{const o=((t=(e=en==null?void 0:en.A)==null?void 0:e.getOwner)==null?void 0:t.call(e))??((n=en==null?void 0:en.ReactCurrentOwner)==null?void 0:n.current)??null;return o==null||typeof o.mode!="number"?!1:(o.mode&_v)!==0}catch{return!1}}const ro=Symbol("useDisposable.mount"),Cv=Symbol("useDisposable.devState"),cn=Symbol();function Sv(e){const t=k.useRef(cn);if(t.current===cn){const n=e(),o=()=>{n[Sn](),t.current=cn};n[ro]=()=>o,t.current=n}return es(t.current[ro]),t.current}function Iv(e){const t=k.useRef(cn);if(t.current===cn){const n=e(),o={detectedStrict:xv(),mountCount:0,disposed:!1};n[Cv]=o,n[ro]=()=>{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.
|
|
219
|
+
The instance was disposed on StrictMode's simulated unmount and is about to be reused while torn down.
|
|
220
|
+
This is an internal invariant violation — please report it at https://github.com/mui/mui-x/issues.`:Ve(288));return()=>{o.detectedStrict&&o.mountCount<2||(o.disposed=!0,n[Sn](),t.current=cn)}},t.current=n}return es(t.current[ro]),t.current}const Tv=process.env.NODE_ENV==="production"?Sv:Iv;function Ev(e,t){const n=Tm(),o=Tv(()=>new e(q({},t,{isRtl:n})));return hv(()=>o.updateStateFromParameters(q({},t,{isRtl:n})),[o,n,t]),es(o.mountEffect),o}class wv{constructor(){B(this,"maxListeners",20);B(this,"warnOnce",!1);B(this,"events",{})}on(t,n,o={}){let r=this.events[t];if(r||(r={highPriority:new Map,regular:new Map},this.events[t]=r),o.isFirst?r.highPriority.set(n,!0):r.regular.set(n,!0),process.env.NODE_ENV!=="production"){const s=r.highPriority.size+r.regular.size;s>this.maxListeners&&!this.warnOnce&&(this.warnOnce=!0,console.warn([`Possible EventEmitter memory leak detected. ${s} ${t} listeners added.`].join(`
|
|
221
|
+
`)))}}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 r=Array.from(o.highPriority.keys()),s=Array.from(o.regular.keys());for(let i=r.length-1;i>=0;i-=1){const a=r[i];o.highPriority.has(a)&&a.apply(this,n)}for(let i=0;i<s.length;i+=1){const a=s[i];o.regular.has(a)&&a.apply(this,n)}}once(t,n){const o=this;this.on(t,function r(...s){o.removeListener(t,r),n.apply(o,s)})}}const Nv=({isItemEditable:e,expansionTrigger:t})=>t||(e?"iconContainer":"content");function Ul(e){return{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px",providedTreeId:e.id,expansionTrigger:Nv({isItemEditable:e.isItemEditable,expansionTrigger:e.expansionTrigger}),disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,selectionPropagation:e.selectionPropagation??an,itemHeight:e.itemHeight??null}}function Si(e,t,n){return e!==void 0?e:t!==void 0?t:n}function Ov(e){return q({treeId:void 0,focusedItemId:null},Ul(e),ln.buildItemsStateIfNeeded(e),{expandedItems:Si(e.expandedItems,e.defaultExpandedItems,[]),selectedItems:Si(e.selectedItems,e.defaultSelectedItems,e.multiSelect?Ur:null)})}let Ii=0;const $v=()=>(Ii+=1,`mui-tree-view-${Ii}`);class Rv{constructor(){B(this,"timeoutIds",new Map);B(this,"intervalIds",new Map);B(this,"startTimeout",(t,n,o)=>{this.clearTimeout(t);const r=setTimeout(()=>{this.timeoutIds.delete(t),o()},n);this.timeoutIds.set(t,r)});B(this,"startInterval",(t,n,o)=>{this.clearInterval(t);const r=setInterval(o,n);this.intervalIds.set(t,r)});B(this,"clearTimeout",t=>{const n=this.timeoutIds.get(t);n!=null&&(clearTimeout(n),this.timeoutIds.delete(t))});B(this,"clearInterval",t=>{const n=this.intervalIds.get(t);n!=null&&(clearInterval(n),this.intervalIds.delete(t))});B(this,"clearAll",()=>{this.timeoutIds.forEach(clearTimeout),this.timeoutIds.clear(),this.intervalIds.forEach(clearInterval),this.intervalIds.clear()})}}const kv=({props:e})=>{const{store:t}=At(),{label:n,itemId:o}=e,[r,s]=k.useState(n),i=pe(t,ht.isItemEditable,o);return!pe(t,ht.isItemBeingEdited,o)&&r!==n&&s(n),{propsEnhancers:{label:()=>({editable:i}),labelInput:({externalEventHandlers:u,interactions:c})=>i?{value:r??"","data-element":"labelInput",onChange:d=>{var y;(y=u.onChange)==null||y.call(u,d),s(d.target.value)},onKeyDown:d=>{var m;if((m=u.onKeyDown)==null||m.call(u,d),d.defaultMuiPrevented)return;const y=d.target;d.key==="Enter"&&y.value?c.handleSaveItemLabel(d,y.value):d.key==="Escape"&&c.handleCancelItemLabelEditing(d)},onBlur:d=>{var y;(y=u.onBlur)==null||y.call(u,d),!d.defaultMuiPrevented&&d.target.value&&c.handleSaveItemLabel(d,d.target.value)},autoFocus:!0,type:"text"}:{}}}};class Mv{constructor(t){B(this,"buildPublicAPI",()=>({setEditedItem:this.setEditedItem,updateItemLabel:this.updateItemLabel}));B(this,"setEditedItem",t=>{t!==null&&!ht.isItemEditable(this.store.state,t)||this.store.set("editedItemId",t)});B(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.
|
|
222
|
+
The label of an item cannot be empty.
|
|
223
|
+
Item ID: ${t}`:Ve(197,t));const o=this.store.state.itemMetaLookup[t];o.label!==n&&(this.store.set("itemMetaLookup",q({},this.store.state.itemMetaLookup,{[t]:q({},o,{label:n})})),this.store.parameters.onItemLabelChange&&this.store.parameters.onItemLabelChange(t,n))});this.store=t,t.itemPluginManager.register(kv,null)}}const Pv=500;class Av{constructor(t){B(this,"typeaheadQuery","");B(this,"canToggleItemSelection",t=>le.canItemBeSelected(this.store.state,t));B(this,"canToggleItemExpansion",t=>!G.isItemDisabled(this.store.state,t)&&Oe.isItemExpandable(this.store.state,t));B(this,"getFirstItemMatchingTypeaheadQuery",(t,n)=>{const o=c=>{const p=_n(this.store.state,c);return p===null?Cn(this.store.state):p},r=c=>{let p=null;const f={};let h=c.length>1?t:o(t);for(;p==null&&!f[h];){const d=this.labelMap[h];d!=null&&d.startsWith(c)?p=h:(f[h]=!0,h=o(h))}return p},s=n.toLowerCase(),i=`${this.typeaheadQuery}${s}`,a=r(i);if(a!=null)return this.typeaheadQuery=i,a;const u=r(s);return u!=null?(this.typeaheadQuery=s,u):(this.typeaheadQuery="",null)});B(this,"updateLabelMap",t=>{this.labelMap=t(this.labelMap)});B(this,"handleItemKeyDown",async(t,n)=>{var i;if(t.defaultMuiPrevented||t.altKey||lr(t.target,t.currentTarget))return;const o=t.ctrlKey||t.metaKey,r=t.key,s=le.isMultiSelectEnabled(this.store.state);switch(!0){case(r===" "&&this.canToggleItemSelection(n)):{t.preventDefault(),s&&t.shiftKey?this.store.selection.expandSelectionRange(t,n):this.store.selection.setItemSelection({event:t,itemId:n,keepExistingSelection:s,shouldBeSelected:void 0});break}case r==="Enter":{(i=this.store.labelEditing)!=null&&i.setEditedItem&&ht.isItemEditable(this.store.state,n)&&!ht.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)&&(s?(t.preventDefault(),this.store.selection.setItemSelection({event:t,itemId:n,keepExistingSelection:!0})):le.isItemSelected(this.store.state,n)||(this.store.selection.setItemSelection({event:t,itemId:n}),t.preventDefault()));break}case r==="ArrowDown":{const a=_n(this.store.state,n);a&&(t.preventDefault(),this.store.focus.focusItem(t,a),s&&t.shiftKey&&this.canToggleItemSelection(a)&&this.store.selection.selectItemFromArrowNavigation(t,n,a));break}case r==="ArrowUp":{const a=Yr(this.store.state,n);a&&(t.preventDefault(),this.store.focus.focusItem(t,a),s&&t.shiftKey&&this.canToggleItemSelection(a)&&this.store.selection.selectItemFromArrowNavigation(t,n,a));break}case(r==="ArrowRight"&&!this.store.parameters.isRtl||r==="ArrowLeft"&&this.store.parameters.isRtl):{if(o)return;if(Oe.isItemExpanded(this.store.state,n)){const a=_n(this.store.state,n);a&&(this.store.focus.focusItem(t,a),t.preventDefault())}else this.canToggleItemExpansion(n)&&(this.store.expansion.setItemExpansion({event:t,itemId:n}),t.preventDefault());break}case(r==="ArrowLeft"&&!this.store.parameters.isRtl||r==="ArrowRight"&&this.store.parameters.isRtl):{if(o)return;if(this.canToggleItemExpansion(n)&&Oe.isItemExpanded(this.store.state,n))this.store.expansion.setItemExpansion({event:t,itemId:n}),t.preventDefault();else{const a=G.itemParentId(this.store.state,n);a&&(this.store.focus.focusItem(t,a),t.preventDefault())}break}case r==="Home":{this.canToggleItemSelection(n)&&s&&o&&t.shiftKey?this.store.selection.selectRangeFromStartToItem(t,n):this.store.focus.focusItem(t,Cn(this.store.state)),t.preventDefault();break}case r==="End":{this.canToggleItemSelection(n)&&s&&o&&t.shiftKey?this.store.selection.selectRangeFromItemToEnd(t,n):this.store.focus.focusItem(t,kl(this.store.state)),t.preventDefault();break}case r==="*":{this.store.expansion.expandAllSiblings(t,n),t.preventDefault();break}case(String.fromCharCode(t.keyCode)==="A"&&o&&s&&le.enabled(this.store.state)):{this.store.selection.selectAllNavigableItems(t),t.preventDefault();break}case(!o&&!t.shiftKey&&jv(r)):{this.store.timeoutManager.clearTimeout("typeahead");const a=this.getFirstItemMatchingTypeaheadQuery(n,r);a!=null?(this.store.focus.focusItem(t,a),t.preventDefault()):this.typeaheadQuery="",this.store.timeoutManager.startTimeout("typeahead",Pv,()=>{this.typeaheadQuery=""});break}}});this.store=t,this.labelMap=Ti(G.itemMetaLookup(this.store.state)),this.store.registerStoreEffect(G.itemMetaLookup,(n,o)=>{this.store.shouldIgnoreItemsStateUpdate()||(this.labelMap=Ti(o))})}}function jv(e){return!!e&&e.length===1&&!!e.match(/\S/)}function Ti(e){const t={},n=o=>{t[o.id]=o.label.toLowerCase()};return Object.values(e).forEach(n),t}class Lv{constructor(){B(this,"itemPlugins",[]);B(this,"itemWrappers",[]);B(this,"register",(t,n)=>{this.itemPlugins.push(t),n&&this.itemWrappers.push(n)});B(this,"listPlugins",()=>this.itemPlugins);B(this,"listWrappers",()=>this.itemWrappers)}}class Dv extends zr{constructor(n,o,r){const s=Ov(n),i=r.getInitialState(s,n);super(i);B(this,"initialParameters",null);B(this,"disposables",new bv);B(this,"eventManager",this.disposables.adopt(new wv,n=>n.removeAllListeners()));B(this,"timeoutManager",this.disposables.adopt(new Rv,n=>n.clearAll()));B(this,"itemPluginManager",new Lv);B(this,"mountEffect",()=>{});B(this,"shouldIgnoreItemsStateUpdate",()=>this.mapper.shouldIgnoreItemsStateUpdate(this.parameters));B(this,"registerStoreEffect",(n,o)=>{let r=n(this.state);this.disposables.defer(this.subscribe(s=>{const i=n(s);i!==r&&(o(r,i),r=i)}))});B(this,"publishEvent",(n,o,r)=>{Vv(r)&&r.isPropagationStopped()||this.eventManager.emit(n,o,r)});B(this,"subscribeEvent",(n,o)=>{this.eventManager.on(n,o)});this.parameters=n,this.instanceName=o,this.mapper=r,this.items=new ln(this),this.focus=new Ub(this),this.expansion=new Wb(this),this.selection=new qb(this),this.keyboardNavigation=new Av(this),process.env.NODE_ENV!=="production"&&(this.initialParameters=n)}buildPublicAPI(){return q({},this.items.buildPublicAPI(),this.focus.buildPublicAPI(),this.expansion.buildPublicAPI(),this.selection.buildPublicAPI())}updateStateFromParameters(n){const o=(i,a,u)=>{var c,p;if(n[a]!==void 0&&(i[a]=n[a]),process.env.NODE_ENV!=="production"){const f=n[u],h=n[a]!==void 0,d=(c=this.initialParameters)==null?void 0:c[u],y=((p=this.initialParameters)==null?void 0:p[a])!==void 0;y!==h?or([`MUI X Tree View: A component is changing the ${y?"":"un"}controlled ${a} state of ${this.instanceName} to be ${y?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${a} 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(d)!==JSON.stringify(f)&&or([`MUI X Tree View: A component is changing the default ${a} state of an uncontrolled ${this.instanceName} after being initialized. `,`To suppress this warning opt to use a controlled ${this.instanceName}.`],"error")}},r=Ul(n);o(r,"expandedItems","defaultExpandedItems"),o(r,"selectedItems","defaultSelectedItems"),(this.state.providedTreeId!==n.id||this.state.treeId===void 0)&&(r.treeId=$v()),!this.mapper.shouldIgnoreItemsStateUpdate(n)&&ln.shouldRebuildItemsState(n,this.parameters)&&Object.assign(r,ln.buildItemsStateIfNeeded(n));const s=this.mapper.updateStateFromParameters(r,n,o);this.update(s),this.parameters=n}[Sn](){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.",...vv(n))}}}function Vv(e){return(e==null?void 0:e.isPropagationStopped)!==void 0}const Ei=e=>({isItemEditable:e.isItemEditable??!1}),Gl={getInitialState:(e,t)=>q({},e,Ei(t),{editedItemId:null,lazyLoadedItems:null,domStructure:t.domStructure??"nested"}),updateStateFromParameters:(e,t)=>q({},e,Ei(t)),shouldIgnoreItemsStateUpdate:()=>!1};class ql extends Dv{constructor(){super(...arguments);B(this,"labelEditing",new Mv(this))}buildPublicAPI(){return q({},super.buildPublicAPI(),this.labelEditing.buildPublicAPI(),{addItems:this.items.addItems})}}B(ql,"rawMapper",Gl);class Bv extends ql{constructor(t){super(t,"RichTreeView",Gl)}}const Fv=xl(),zv=e=>{const{classes:t}=e;return k.useMemo(()=>vl({root:["root"],item:["item"],itemContent:["itemContent"],itemGroupTransition:["itemGroupTransition"],itemIconContainer:["itemIconContainer"],itemLabel:["itemLabel"],itemLabelInput:["itemLabelInput"],itemCheckbox:["itemCheckbox"]},ab,t),[t])},Wv=de("ul",{name:"MuiRichTreeView",slot:"Root"})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),ns=k.forwardRef(function(t,n){const o=Fv({props:t,name:"MuiRichTreeView"});process.env.NODE_ENV!=="production"&&o.children!=null&&or(["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:r,slotProps:s,apiRef:i,parameters:a,forwardedProps:u}=fv(o),c=Ev(Bv,a),p=k.useRef(null),f=tr(n,p),h=pe(c,oo.isItemLoading,null),d=pe(c,oo.itemError,null),y=zv(o),m=k.useMemo(()=>q({root:Wv},r),[r]);return h?g.jsx(Za,{children:"Loading…"}):d?g.jsx(bl,{severity:"error",children:d.message}):g.jsx(ub,{store:c,classes:y,slots:m,slotProps:s,apiRef:i,rootRef:p,children:g.jsx(Kr.Provider,{value:G.itemDepth,children:g.jsx(dv,{slots:m,slotProps:s,forwardedProps:u,ownerState:o,rootRef:f})})})});process.env.NODE_ENV!=="production"&&(ns.displayName="RichTreeView");process.env.NODE_ENV!=="production"&&(ns.propTypes={apiRef:l.shape({current:l.shape({addItems:l.func,focusItem:l.func,getItem:l.func,getItemDOMElement:l.func,getItemOrderedChildrenIds:l.func,getItemSelection:l.func,getItemTree:l.func,getParentId:l.func,isItemExpanded:l.func,setEditedItem:l.func,setIsItemDisabled:l.func,setItemExpansion:l.func,setItemSelection:l.func,updateItemLabel:l.func})}),checkboxSelection:l.bool,classes:l.object,className:l.string,defaultExpandedItems:l.arrayOf(l.string),defaultSelectedItems:l.any,disabledItemsFocusable:l.bool,disableSelection:l.bool,domStructure:l.oneOf(["flat","nested"]),expandedItems:l.arrayOf(l.string),expansionTrigger:l.oneOf(["content","iconContainer"]),getItemChildren:l.func,getItemId:l.func,getItemLabel:l.func,id:l.string,isItemDisabled:l.func,isItemEditable:l.oneOfType([l.func,l.bool]),isItemSelectionDisabled:l.func,itemChildrenIndentation:l.oneOfType([l.number,l.string]),itemHeight:l.number,items:l.array.isRequired,multiSelect:l.bool,onExpandedItemsChange:l.func,onItemClick:l.func,onItemExpansionToggle:l.func,onItemFocus:l.func,onItemLabelChange:l.func,onItemSelectionToggle:l.func,onSelectedItemsChange:l.func,selectedItems:l.any,selectionPropagation:l.shape({descendants:l.bool,parents:l.bool}),slotProps:l.object,slots:l.object,sx:l.oneOfType([l.arrayOf(l.oneOfType([l.func,l.object,l.bool])),l.func,l.object])});const Uv=e=>{const{store:t}=At();return pe(t,G.itemModel,e)},Gv="Tree-module__root___ANcH3",qv="Tree-module__subtree___KoLT8",Hv="Tree-module__node___Hvnjg",Kv="Tree-module__row___sq5ff",Yv="Tree-module__iconContainer___vq55M",Xv="Tree-module__chevron___umezQ",Qv="Tree-module__chevronExpanded___QYVrI",Jv="Tree-module__label___zJDit",st={root:Gv,subtree:qv,node:Hv,row:Kv,iconContainer:Yv,chevron:Xv,chevronExpanded:Qv,label:Jv};function Zv(e){const t=[],n=o=>{o.forEach(r=>{t.push(r.value),r.children&&n(r.children)})};return n(e),t}function e_(){return g.jsx("svg",{className:st.chevron,viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:g.jsx("path",{d:"M5 3l5 5-5 5"})})}function t_(){return g.jsx("svg",{className:`${st.chevron} ${st.chevronExpanded}`,viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:g.jsx("path",{d:"M5 3l5 5-5 5"})})}function n_(){return g.jsx("span",{"aria-hidden":"true"})}const o_=O.forwardRef(function({id:t,itemId:n,label:o,disabled:r,children:s,className:i,...a},u){const{getContextProviderProps:c,getRootProps:p,getContentProps:f,getIconContainerProps:h,getLabelProps:d,getGroupTransitionProps:y,status:m}=Al({id:t,itemId:n,children:s,label:o,disabled:r,rootRef:u}),v=Uv(n);return g.jsx(Qr,{...c(),children:g.jsxs(Ll,{...p({...a,className:`${st.node} ${i??""}`}),children:[g.jsxs(Dl,{...f({className:st.row}),status:m,children:[g.jsx(Bl,{...h({className:st.iconContainer}),children:g.jsx(Xr,{status:m})}),g.jsx(Vl,{...d({className:st.label}),children:(v==null?void 0:v.label)??o})]}),s&&g.jsx(Fl,{...y({className:st.subtree})})]})})}),Hl=O.forwardRef(function({overStyled:t=!1,data:n,initialExpandedValues:o,initialSelectedValues:r,multiple:s=!1,expandOnClick:i=!0,selectOnClick:a=!0,onNodeExpand:u,onNodeCollapse:c,onSelectedChange:p,...f},h){const d=X(f,t),y=o==="*"?Zv(n):o,m=d.className,v=m?`${st.root} ${m}`:st.root;return g.jsx(ns,{ref:h,items:n,getItemId:_=>_.value,getItemLabel:_=>typeof _.label=="string"?_.label:_.value,defaultExpandedItems:y,defaultSelectedItems:s?r??[]:r==null?void 0:r[0],multiSelect:s,expansionTrigger:i?"content":"iconContainer",disableSelection:!a,onItemExpansionToggle:(_,S,E)=>{E?u==null||u(S):c==null||c(S)},onSelectedItemsChange:(_,S)=>{p==null||p(Array.isArray(S)?S:S?[S]:[])},slots:{expandIcon:e_,collapseIcon:t_,endIcon:n_,item:o_},classes:{root:v},...d})});Hl.displayName="Tree";const r_="_root_1qhn7_3",s_="_contents_1qhn7_18",tn={root:r_,contents:s_},os=O.forwardRef(function({layer:e,contentsOnly:t,children:n,className:o,style:r,...s},i){const a=t?o?`${tn.root} ${tn.contents} ${o}`:`${tn.root} ${tn.contents}`:o?`${tn.root} ${o}`:tn.root;return g.jsx("div",{ref:i,className:a,style:r,...t?{}:{"data-recursica-layer":String(e)},...s,children:n})});os.displayName="Layer";const rs=({emptyText:e="N/A"})=>g.jsx(O.Fragment,{children:e});rs.displayName="EmptyValueRenderer";rs.check=e=>e==null||e===""||Array.isArray(e)&&e.length===0;const i_={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"},Rt=(()=>{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:No&&No.tagName.toUpperCase()==="SCRIPT"&&No.src||new URL("mui-adapter.cjs",document.baseURI).href}&&i_)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})(),cr=new Set;let wt=!1;function Kl(e){if(!Rt)return console.warn("[Recursica] overStyled highlight is disabled in production builds."),!1;if(wt=e!==void 0?e:!wt,typeof document<"u"){const t=document.documentElement,n=wt?"0 0 0 2px cyan":"none";t.style.setProperty("--recursica-over-styled-shadow",n),console.log(`[Recursica] Highlight outlines toggled: ${wt?"ACTIVE (0 0 0 2px cyan)":"INACTIVE"}`)}else console.warn("[Recursica] document is undefined. Cannot set CSS property.");return cr.forEach(t=>t()),wt}function a_(){return Rt&&wt}function Yl(){const[e,t]=O.useState(wt);return O.useEffect(()=>{if(!Rt)return;ss(),is();const n=()=>t(wt);return cr.add(n),()=>{cr.delete(n)}},[]),Rt&&e}function ss(){if(!Rt)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=`
|
|
75
224
|
:root {
|
|
76
225
|
--recursica-over-styled-shadow: none;
|
|
77
226
|
}
|
|
@@ -81,5 +230,5 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
81
230
|
.recursica-over-styled > * {
|
|
82
231
|
box-shadow: var(--recursica-over-styled-shadow) !important;
|
|
83
232
|
}
|
|
84
|
-
`,document.head.appendChild(t))}function
|
|
233
|
+
`,document.head.appendChild(t))}function is(){if(!Rt)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: ${Kl()?"ON (cyan 2px box shadow)":"OFF"}`}catch{}};e(window),window.parent&&window.parent!==window&&e(window.parent)}const wi="data-recursica-theme";function l_({children:e,theme:t="light",initLayer0:n=!0}){return O.useEffect(()=>{const o=document.documentElement;return o.setAttribute(wi,t),()=>{o.removeAttribute(wi)}},[t]),O.useEffect(()=>{ss(),is()},[]),n?g.jsx(os,{layer:0,children:e}):g.jsx(g.Fragment,{children:e})}const c_=["Accordion","AssistiveElement","Autocomplete","Avatar","Badge","Breadcrumb","Button","Card","Checkbox","Chip","Container","DatePicker","Dropdown","EmptyValueRenderer","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"],u_=(e,t)=>{const n=document.activeElement;return new Promise((o,r)=>{if(t&&t.current){const s=document.createElement("textarea");s.readOnly=!0,s.defaultValue=e,t.current.appendChild(s),s.select();const i=document.execCommand("copy");t.current.removeChild(s),n&&n.focus(),i?o():r(new Error("Failed to copy"))}else r(new Error("Copy area reference is not defined"))})};function ee(e){if(!Rt||typeof e!="function"&&!(e&&e.$$typeof))return e;const t=O.forwardRef((o,r)=>{const{overStyled:s}=o,i=Yl(),a=O.createElement(e,{...o,ref:r});return s&&i?g.jsx("div",{className:"recursica-over-styled",children:a}):a});t.displayName=e.displayName||e.name||"Component";const n=Object.keys(e);for(const o of n){if(o==="render"||o==="$$typeof")continue;const r=e[o];(typeof r=="function"||r&&r.$$typeof)&&o[0]===o[0].toUpperCase()?t[o]=ee(r):t[o]=r}return t}const d_=Uc,p_=Ui,f_=Hi,m_=vr,h_=Ki,g_=ua,y_=zi,b_=Eo,v_=ku,__=Mu,x_=ee(ao),C_=ee(dr),S_=ee(so),I_=ee(io),T_=ee(pr),E_=ee(Oi),w_=ee(Fc),N_=ee(Wc),O_=ee(ki),$_=ee(Mi),R_=ee(ou),k_=ee(yr),M_=ee(gr),P_=ee(Fi),A_=ee(Eu),j_=ee(Wi),L_=ee(yt),D_=ee(Nt),V_=ee(_r),B_=ee(fr),F_=ee(Ji),z_=ee(hr),W_=ee(Zi),U_=ee(ea),G_=ee(ta),q_=ee(co),H_=ee(ra),K_=ee(xd),Y_=ee(aa),X_=ee(Sr),Q_=ee(Tr),J_=ee(Ir),Z_=ee(mr),ex=ee(Wd),tx=ee(ca),nx=ee(da),ox=ee(pa),rx=ee(fa),sx=ee(Mt),ix=ee(nl),ax=ee(ol),lx=ee(tl),cx=ee(rl),ux=ee(sl),dx=ee(il),px=ee(Lg),fx=ee(ll),mx=ee(Br),hx=ee(cl),gx=ee(ul),yx=ee(ty),bx=ee(ny),vx=ee(Hl);exports.Accordion=x_;exports.AccordionControl=S_;exports.AccordionItem=C_;exports.AccordionPanel=I_;exports.AssistiveElement=T_;exports.Autocomplete=E_;exports.Avatar=w_;exports.Badge=N_;exports.Box=d_;exports.Breadcrumb=O_;exports.Button=$_;exports.Card=R_;exports.Checkbox=k_;exports.CheckboxGroup=M_;exports.Chip=P_;exports.Container=y_;exports.DatePicker=A_;exports.Dropdown=j_;exports.EmptyValueRenderer=rs;exports.FileInput=v_;exports.FileUpload=__;exports.Flex=p_;exports.FormControlLayout=L_;exports.FormControlWrapper=D_;exports.Grid=f_;exports.GridCol=m_;exports.Group=h_;exports.HoverCard=V_;exports.IS_DEV=Rt;exports.Label=B_;exports.Layer=os;exports.Link=F_;exports.Loader=z_;exports.Menu=W_;exports.MenuDivider=G_;exports.MenuItem=U_;exports.Modal=q_;exports.NumberInput=H_;exports.Pagination=K_;exports.Panel=Y_;exports.PanelFooter=X_;exports.RECURSICA_COMPONENTS=c_;exports.Radio=Q_;exports.RadioGroup=J_;exports.ReadOnlyField=Z_;exports.RecursicaThemeProvider=l_;exports.SegmentedControl=ex;exports.Slider=tx;exports.Stack=g_;exports.Stepper=nx;exports.Switch=ox;exports.SwitchGroup=rx;exports.Tab=ix;exports.TabPanel=ax;exports.Table=sx;exports.Tabs=lx;exports.Text=cx;exports.TextArea=ux;exports.TextField=dx;exports.TimePicker=px;exports.Timeline=fx;exports.TimelineItem=mx;exports.Title=hx;exports.Toast=gx;exports.Tooltip=yx;exports.TransferList=bx;exports.Tree=vx;exports.Typography=b_;exports.copyToClipboard=u_;exports.injectOverStyledStyles=ss;exports.isGlobalOverStyledActive=a_;exports.registerOverStyledConsoleCommand=is;exports.toggleGlobalOverStyled=Kl;exports.useGlobalOverStyled=Yl;exports.wrapComponent=ee;
|
|
85
234
|
//# sourceMappingURL=mui-adapter.cjs.map
|