UNPKG

p3x-redis-ui-material

Version:

💿 P3X Redis UI triple frontend — Angular + React/MUI + Vue/Vuetify with 54 languages, 7 themes, Socket.IO, desktop notifications, and full feature parity

1 lines • 124 kB
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{B as t,E as n,F as r,K as i,O as a,P as o,T as s,V as c,_ as l,a as u,b as d,d as f,f as p,i as m,it as h,j as g,k as _,r as v,t as y,x as b}from"./Box-CN-vzd2M.js";import{i as x,n as S,o as C,r as w}from"./i18n.store-cEFY1tQT.js";import{d as ee,h as te,m as T,n as ne,s as re,u as ie}from"./KeyboardArrowDown-D7WhzLBq.js";import{d as ae,f as E}from"./debounce-DxTym4g2.js";import{t as D}from"./createSimplePaletteValueFilter-Bt9IjErz.js";import{a as O,i as oe,n as k,r as A,t as se}from"./Delete--d__ZiCF.js";import{n as ce,r as j,t as le}from"./ListItem-yYGw6TjL.js";import{i as M,n as ue,r as N,t as de}from"./Save-BBHi0U07.js";import{t as fe}from"./Refresh-CBvrjBD9.js";import{i as pe,r as P}from"./redis-state.store-DegzWxJZ.js";import{$ as me,D as he,J as F,O as ge,Q as _e,R as ve,S as ye,T as be,U as I,W as L,X as R,Z as z,_ as B,at as xe,c as Se,d as Ce,et as V,f as we,i as H,it as Te,k as Ee,m as De,o as Oe,p as ke,r as Ae,tt as je,u as Me,v as Ne,y as U,z as W}from"./index-B6abhTyw.js";import{t as Pe}from"./P3xrAccordion-DoDeoAbj.js";import{t as Fe}from"./TreeSettingsDialog-CAm6Y6Ey.js";function G(e){return t(`MuiAlert`,e)}var K=d(`MuiAlert`,[`root`,`action`,`icon`,`message`,`filled`,`colorSuccess`,`colorInfo`,`colorWarning`,`colorError`,`outlined`,`standard`]),q=h(),Ie=m((0,q.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`),Le=m((0,q.jsx)(`path`,{d:`M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z`}),`ReportProblemOutlined`),Re=m((0,q.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`),ze=m((0,q.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`),Be=m((0,q.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`),J=e(C(),1),Ve=e=>{let{variant:t,color:n,severity:r,classes:i}=e;return g({root:[`root`,`color${o(n||r)}`,`${t}`],icon:[`icon`],message:[`message`],action:[`action`]},G,i)},He=a(Te,{name:`MuiAlert`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant]]}})(n(({theme:e})=>{let 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(D([`light`])).map(([r])=>({props:{colorSeverity:r,variant:`standard`},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${K.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(D([`light`])).map(([n])=>({props:{colorSeverity:n,variant:`outlined`},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${K.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(D([`dark`])).map(([t])=>({props:{colorSeverity:t,variant:`filled`},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:e.palette.mode===`dark`?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}}))]}})),Ue=a(`div`,{name:`MuiAlert`,slot:`Icon`})({marginRight:12,padding:`7px 0`,display:`flex`,fontSize:22,opacity:.9}),We=a(`div`,{name:`MuiAlert`,slot:`Message`})({padding:`8px 0`,minWidth:0,overflow:`auto`}),Ge=a(`div`,{name:`MuiAlert`,slot:`Action`})({display:`flex`,alignItems:`flex-start`,padding:`4px 0 0 16px`,marginLeft:`auto`,marginRight:-8}),Ke={success:(0,q.jsx)(Ie,{fontSize:`inherit`}),warning:(0,q.jsx)(Le,{fontSize:`inherit`}),error:(0,q.jsx)(Re,{fontSize:`inherit`}),info:(0,q.jsx)(ze,{fontSize:`inherit`})},qe=J.forwardRef(function(e,t){let n=s({props:e,name:`MuiAlert`}),{action:r,children:a,className:o,closeText:c=`Close`,color:l,icon:u,iconMapping:d=Ke,onClose:f,role:p=`alert`,severity:m=`success`,slotProps:h={},slots:g={},variant:_=`standard`,...v}=n,y={...n,color:l,severity:m,variant:_,colorSeverity:l||m},x=Ve(y),S={slots:g,slotProps:h},[C,w]=b(`root`,{ref:t,shouldForwardComponentProp:!0,className:i(x.root,o),elementType:He,externalForwardedProps:{...S,...v},ownerState:y,additionalProps:{role:p,elevation:0}}),[te,T]=b(`icon`,{className:x.icon,elementType:Ue,externalForwardedProps:S,ownerState:y}),[ne,re]=b(`message`,{className:x.message,elementType:We,externalForwardedProps:S,ownerState:y}),[ie,ae]=b(`action`,{className:x.action,elementType:Ge,externalForwardedProps:S,ownerState:y}),[E,D]=b(`closeButton`,{elementType:ee,externalForwardedProps:S,ownerState:y}),[O,oe]=b(`closeIcon`,{elementType:Be,externalForwardedProps:S,ownerState:y});return(0,q.jsxs)(C,{...w,children:[u===!1?null:(0,q.jsx)(te,{...T,children:u||d[m]||Ke[m]}),(0,q.jsx)(ne,{...re,children:a}),r==null?null:(0,q.jsx)(ie,{...ae,children:r}),r==null&&f?(0,q.jsx)(ie,{...ae,children:(0,q.jsx)(E,{size:`small`,"aria-label":c,title:c,color:`inherit`,onClick:f,...D,children:(0,q.jsx)(O,{fontSize:`small`,...oe})})}):null]})});function Je(){let[,e]=J.useState({});return J.useCallback(()=>{e({})},[])}function Ye(e){let t=J.useRef({});return J.useEffect(()=>{t.current=e}),t.current}function Y({array1:e,array2:t,parser:n=e=>e}){return e&&t&&e.length===t.length&&e.every((e,r)=>n(e)===n(t[r]))}function X(e){return e.normalize(`NFD`).replace(/[\u0300-\u036f]/g,``)}function Xe(e={}){let{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i=`any`,stringify:a,trim:o=!1}=e;return(e,{inputValue:s,getOptionLabel:c})=>{let l=o?s.trim():s;n&&(l=l.toLowerCase()),t&&(l=X(l));let u=l?e.filter(e=>{let r=(a||c)(e);return n&&(r=r.toLowerCase()),t&&(r=X(r)),i===`start`?r.startsWith(l):r.includes(l)}):e;return typeof r==`number`?u.slice(0,r):u}}var Ze=Xe(),Qe=5,$e=e=>e.current!==null&&ae(e.current.parentElement,document.activeElement),et=(e,t)=>e===t,tt=[];function nt(e,t,n,r){if(t||e==null||r)return``;let i=n(e);return typeof i==`string`?i:``}function rt(e){let{unstable_isActiveElementInListbox:t=$e,unstable_classNamePrefix:n=`Mui`,autoComplete:r=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:o=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:c=!1,componentName:l=`useAutocomplete`,defaultValue:u=e.multiple?tt:null,disableClearable:d=!1,disableCloseOnSelect:p=!1,disabled:m,disabledItemsFocusable:h=!1,disableListWrap:g=!1,filterOptions:_=Ze,filterSelectedOptions:y=!1,freeSolo:b=!1,getOptionDisabled:x,getOptionKey:S,getOptionLabel:C=e=>e.label??e,groupBy:w,handleHomeEndKeys:ee=!e.freeSolo,id:te,includeInputInList:ne=!1,inputValue:re,isOptionEqualToValue:E=et,multiple:D=!1,onChange:O,onClose:oe,onHighlightChange:k,onInputChange:A,onOpen:se,open:ce,openOnFocus:j=!1,options:le,readOnly:M=!1,renderValue:ue,resetHighlightOnMouseLeave:N=!1,selectOnFocus:de=!e.freeSolo,value:fe}=e,pe=T(te),P=C;P=e=>{let t=C(e);return typeof t==`string`?t:String(t)};let me=J.useRef(!1),he=J.useRef(!0),F=J.useRef(null),ge=J.useRef(null),_e=J.useRef(!1),ve=J.useRef(!1),[ye,be]=J.useState(null),[I,L]=J.useState(-1),R=i?0:-1,z=J.useRef(R),B=J.useRef(null),xe=J.useRef(!1),Se=J.useRef(!1),Ce=J.useRef(nt(u??fe,D,P)).current,[V,we]=ie({controlled:fe,default:u,name:l}),[H,Te]=ie({controlled:re,default:Ce,name:l,state:`inputValue`}),[Ee,De]=J.useState(!1),Oe=J.useCallback((e,t,n)=>{if(!(D?V.length<t.length:t!==null)&&!s&&!(n===`reset`&&b&&!D&&t===null))return;let r=nt(t,D,P,ue);H!==r&&(Te(r),A&&A(e,r,n))},[P,H,D,A,Te,s,b,V,ue]),[ke,Ae]=ie({controlled:ce,default:!1,name:l,state:`open`}),[je,Me]=J.useState(!0),Ne=!D&&V!=null&&H===P(V),U=ke&&!M,W=J.useMemo(()=>D?V:V==null?[]:[V],[D,V]),Pe=J.useMemo(()=>E!==et||W.length===0?null:new Set(W),[E,W]),Fe=J.useCallback(e=>Pe?Pe.has(e):W.some(t=>t!=null&&E(e,t)),[E,W,Pe]),G=U?_(le.filter(e=>!(y&&Fe(e))),{inputValue:Ne&&je?``:H,getOptionLabel:P}):[],K=Ye({filteredOptions:G,value:V,inputValue:H});J.useEffect(()=>{let e=V!==K.value;Ee&&!e||b&&(!e||V==null&&K.value===void 0)||Oe(null,V,`reset`)},[V,Oe,Ee,K.value,b]);let q=ke&&G.length>0&&!M,Ie=f(e=>{e===-1?F.current.focus():ye.querySelector(`[data-item-index="${e}"]`).focus()});J.useEffect(()=>{D&&I>V.length-1&&(L(-1),Ie(-1))},[V,D,I,Ie]);function Le(e,t){if(!ge.current||e<0||e>=G.length)return-1;let n=e;for(;;){let r=ge.current.querySelector(`[data-option-index="${n}"]`),i=h?!1:!r||r.disabled||r.getAttribute(`aria-disabled`)===`true`;if(r&&r.hasAttribute(`tabindex`)&&!i)return n;if(n=t===`next`?(n+1)%G.length:(n-1+G.length)%G.length,n===e)return-1}}let Re=f(({index:e,reason:t,preserveScroll:r=!1})=>{if(F.current==null&&ge.current==null||(e===-1?F.current.removeAttribute(`aria-activedescendant`):F.current.setAttribute(`aria-activedescendant`,`${pe}-option-${e}`),!ge.current))return;let i=ge.current.querySelector(`[role="option"].${n}-focused`);i&&(i.classList.remove(`${n}-focused`),i.classList.remove(`${n}-focusVisible`));let a=ge.current;if(ge.current.getAttribute(`role`)!==`listbox`&&(a=ge.current.parentElement.querySelector(`[role="listbox"]`)),!a)return;if(e===-1){r||(a.scrollTop=0);return}let o=ge.current.querySelector(`[data-option-index="${e}"]`);if(o&&(o.classList.add(`${n}-focused`),t===`keyboard`&&o.classList.add(`${n}-focusVisible`),a.scrollHeight>a.clientHeight&&t!==`mouse`&&t!==`touch`)){let e=o,t=a.clientHeight+a.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?a.scrollTop=n-a.clientHeight:e.offsetTop-e.offsetHeight*(w?1.3:0)<a.scrollTop&&(a.scrollTop=e.offsetTop-e.offsetHeight*(w?1.3:0))}}),ze=f(({event:e,index:t,reason:n,preserveScroll:r=!1})=>{z.current=t,B.current=n??null,k&&[`mouse`,`keyboard`,`touch`].includes(n)&&k(e,t===-1?null:G[t],n),Re({index:t,reason:n,preserveScroll:r})}),Be=f(({index:e})=>{z.current=e,Re({index:e,reason:B.current})}),Ve=f(({event:e,diff:t,direction:n=`next`,reason:i,preserveScroll:a})=>{if(!U)return;i===`keyboard`&&(xe.current=!1,Se.current=!1);let o=Le((()=>{let e=G.length-1;if(t===`reset`)return R;if(t===`start`)return 0;if(t===`end`)return e;let n=z.current+t;return n<0?n===-1&&ne?-1:g&&z.current!==-1||Math.abs(t)>1?0:e:n>e?n===e+1&&ne?-1:g||Math.abs(t)>1?e:0:n})(),n);if(ze({index:o,reason:i,event:e,preserveScroll:a}),r&&t!==`reset`)if(o===-1)F.current.value=H;else{let e=P(G[o]);F.current.value=e,e.toLowerCase().indexOf(H.toLowerCase())===0&&H.length>0&&F.current.setSelectionRange(H.length,e.length)}}),He=!Y({array1:K.filteredOptions,array2:G,parser:P}),Ue=()=>{if(z.current!==-1&&!Y({array1:K.filteredOptions,array2:G,parser:P})&&K.inputValue===H&&(D?V.length===K.value.length&&K.value.every((e,t)=>P(V[t])===P(e)):((e,t)=>(e?P(e):``)===(t?P(t):``))(K.value,V))){let e=K.filteredOptions[z.current];if(e)return G.findIndex(t=>P(t)===P(e))}return-1},We=J.useCallback(()=>{if(!U)return;let e=Ue();if(e!==-1){Be({index:e});return}let t=D?V[0]:V;if(G.length===0||t==null){Ve({diff:`reset`,preserveScroll:He&&K.inputValue===H&&K.filteredOptions?.length>0&&G.length>K.filteredOptions.length&&K.filteredOptions.every((e,t)=>P(e)===P(G[t]))});return}if(ge.current){if(t!=null){let e=G[z.current];if(D&&e&&V.findIndex(t=>E(e,t))!==-1&&K.filteredOptions?.length>0){Be({index:z.current});return}let n=G.findIndex(e=>E(e,t));n===-1?Ve({diff:`reset`}):ze({index:n});return}if(z.current>=G.length-1){ze({index:G.length-1});return}ze({index:z.current})}},[G.length,D?!1:V,Ve,ze,Be,U,H,D]),Ge=f(e=>{v(ge,e),e&&We()});J.useEffect(()=>{(He||U&&!p)&&We()},[We,He,U,p]),J.useEffect(()=>{if(typeof window>`u`)return;let e=()=>{ve.current=!0};return window.addEventListener(`blur`,e),()=>{window.removeEventListener(`blur`,e)}},[]);let Ke=e=>{ke||(Ae(!0),Me(!0),Se.current=!1,se&&se(e))},qe=(e,t)=>{ke&&(Ae(!1),xe.current=!1,B.current=null,oe&&oe(e,t))},Je=(e,t,n,r)=>{if(D){if(V.length===t.length&&V.every((e,n)=>e===t[n]))return}else if(V===t)return;O&&O(e,t,n,r),we(t)},X=(e,t,n=`selectOption`,r=`options`)=>{let i=n,a=t;if(D){a=Array.isArray(V)?V.slice():[];let e=a.findIndex(e=>E(t,e));e===-1?a.push(t):r!==`freeSolo`&&(a.splice(e,1),i=`removeOption`)}Oe(e,a,i),Je(e,a,i,{option:t}),!p&&(!e||!e.ctrlKey&&!e.metaKey)&&qe(e,i),(o===!0||o===`touch`&&Se.current||o===`mouse`&&!Se.current)&&F.current.blur()};function Xe(e,t){if(e===-1)return-1;let n=e;for(;;){if(t===`next`&&n===V.length||t===`previous`&&n===-1)return-1;let e=ye.querySelector(`[data-item-index="${n}"]`);if(!e||!e.hasAttribute(`tabindex`)||e.disabled||e.getAttribute(`aria-disabled`)===`true`)n+=t===`next`?1:-1;else return n}}let rt=(e,t)=>{if(!D)return;H===``&&qe(e,`toggleInput`);let n=I;I===-1&&t===`previous`?(n=V.length-1,b&&H!==``&&(Te(``),A&&A(e,``,`reset`))):(n+=t===`next`?1:-1,n<0&&(n=0),n===V.length&&(n=-1)),n=Xe(n,t),L(n),Ie(n)},it=e=>{Te(``),A&&A(e,``,`clear`),Je(e,D?[]:null,`clear`)},at=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(I!==-1&&![`ArrowLeft`,`ArrowRight`].includes(t.key)&&(L(-1),Ie(-1)),t.which!==229))switch(t.key){case`Home`:U&&ee&&(t.preventDefault(),Ve({diff:`start`,direction:`next`,reason:`keyboard`,event:t}));break;case`End`:U&&ee&&(t.preventDefault(),Ve({diff:`end`,direction:`previous`,reason:`keyboard`,event:t}));break;case`PageUp`:t.preventDefault(),Ve({diff:-5,direction:`previous`,reason:`keyboard`,event:t}),Ke(t);break;case`PageDown`:t.preventDefault(),Ve({diff:Qe,direction:`next`,reason:`keyboard`,event:t}),Ke(t);break;case`ArrowDown`:t.preventDefault(),Ve({diff:1,direction:`next`,reason:`keyboard`,event:t}),Ke(t);break;case`ArrowUp`:t.preventDefault(),Ve({diff:-1,direction:`previous`,reason:`keyboard`,event:t}),Ke(t);break;case`ArrowLeft`:{let e=F.current;if(!(e&&e.selectionStart===0&&e.selectionEnd===0))return;!D&&ue&&V!=null?(b&&H!==``&&(Te(``),A&&A(t,``,`reset`)),L(0),Ie(0)):rt(t,`previous`);break}case`ArrowRight`:!D&&ue?(L(-1),Ie(-1)):rt(t,`next`);break;case`Enter`:{let e=U&&z.current!==-1&&B.current===null,n=b&&!je&&e,i=!b||je||!e,a=n&&!xe.current;if(z.current!==-1&&U&&i&&!xe.current){let e=G[z.current],n=x?x(e):!1;if(t.preventDefault(),n)return;X(t,e,`selectOption`),r&&F.current.setSelectionRange(F.current.value.length,F.current.value.length)}else b&&H!==``&&Ne===!1?((D||a)&&t.preventDefault(),X(t,H,`createOption`,`freeSolo`)):U&&xe.current&&(t.preventDefault(),qe(t,`escape`));break}case`Escape`:U?(t.preventDefault(),t.stopPropagation(),qe(t,`escape`)):c&&(H!==``||D&&V.length>0||ue)&&(t.preventDefault(),t.stopPropagation(),it(t));break;case`Backspace`:if(_e.current){_e.current=!1;break}if(D&&!M&&H===``&&V.length>0){let e=I===-1?V.length-1:I,n=V.slice();n.splice(e,1),Je(t,n,`removeOption`,{option:V[e]}),I!==-1&&(_e.current=!0,setTimeout(()=>{_e.current&&=!1},0))}!D&&ue&&!M&&H===``&&Je(t,null,`removeOption`,{option:V});break;case`Delete`:if(D&&!M&&H===``&&V.length>0&&I!==-1){let e=I,n=V.slice();n.splice(e,1),Je(t,n,`removeOption`,{option:V[e]})}!D&&ue&&!M&&H===``&&Je(t,null,`removeOption`,{option:V});break;default:}},ot=e=>{if(De(!0),I!==-1&&(L(-1),Ie(-1)),ve.current){ve.current=!1;return}j&&!me.current&&Ke(e)},st=e=>{if(t(ge)){F.current.focus();return}De(!1),he.current=!0,me.current=!1,a&&z.current!==-1&&U&&B.current!==`mouse`&&B.current!==`touch`?X(e,G[z.current],`blur`):a&&b&&H!==``?X(e,H,`blur`,`freeSolo`):s&&Oe(e,V,`blur`),qe(e,`blur`)},ct=e=>{let t=e.target.value,n=H!==t;n&&(Te(t),xe.current=!1,A&&A(e,t,`input`)),t===``?!d&&!D&&!ue&&Je(e,null,`clear`):Ke(e),n&&Me(!1)},lt=e=>{let t=Number(e.currentTarget.getAttribute(`data-option-index`));z.current===t?B.current=`mouse`:ze({event:e,index:t,reason:`mouse`}),Se.current||(xe.current=!1)},Z=e=>{!N||z.current===-1||B.current!==`mouse`||Se.current||ze({event:e,index:-1,reason:`mouse`,preserveScroll:!0})},ut=e=>{xe.current=!1,ze({event:e,index:Number(e.currentTarget.getAttribute(`data-option-index`)),reason:`touch`}),Se.current=!0},dt=e=>{X(e,G[Number(e.currentTarget.getAttribute(`data-option-index`))],`selectOption`),Se.current=!1},ft=e=>t=>{let n=V.slice();n.splice(e,1),Je(t,n,`removeOption`,{option:V[e]})},pt=e=>{Je(e,null,`removeOption`,{option:V})},mt=e=>{ke?qe(e,`toggleInput`):Ke(e)},ht=e=>{ae(e.currentTarget,e.target)&&(ye&&!ae(ye,e.target)||e.target.getAttribute(`id`)!==pe&&e.preventDefault())},Q=e=>{ae(e.currentTarget,e.target)&&(ye&&!ae(ye,e.target)||(F.current.focus(),de&&he.current&&F.current.selectionEnd-F.current.selectionStart===0&&F.current.select(),he.current=!1))},gt=e=>{!m&&(H===``||!ke)&&e.button===0&&mt(e)},_t=b&&H.length>0;_t||=D?V.length>0:V!==null;let vt=G;return w&&(vt=G.reduce((e,t,n)=>{let r=w(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e},[])),m&&Ee&&st(),{getRootProps:(e={})=>({...e,onKeyDown:at(e),onMouseDown:ht,onClick:Q}),getInputLabelProps:()=>({id:`${pe}-label`,htmlFor:pe}),getInputProps:()=>({id:pe,value:H,onBlur:st,onFocus:ot,onChange:ct,onMouseDown:gt,"aria-activedescendant":U?``:null,"aria-autocomplete":r?`both`:`list`,"aria-controls":q?`${pe}-listbox`:void 0,"aria-expanded":q,autoComplete:`off`,ref:F,autoCapitalize:`none`,spellCheck:`false`,role:`combobox`,disabled:m}),getClearProps:()=>({tabIndex:-1,type:`button`,onClick:e=>{me.current=!0,it(e)}}),getItemProps:({index:e=0}={})=>({...D&&{key:e},"data-item-index":e,tabIndex:-1,onFocus:()=>{I!==e&&L(e)},...!M&&{onDelete:D?ft(e):pt}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:`button`,onClick:mt}),getListboxProps:(e={})=>({...e,role:`listbox`,id:`${pe}-listbox`,"aria-labelledby":`${pe}-label`,"aria-multiselectable":D||void 0,ref:Ge,onMouseDown:t=>{e.onMouseDown?.(t),!t.defaultMuiPrevented&&t.preventDefault()},onScroll:t=>{e.onScroll?.(t),!t.defaultMuiPrevented&&Se.current&&(xe.current=!0)},onMouseLeave:t=>{e.onMouseLeave?.(t),!t.defaultMuiPrevented&&Z(t)}}),getOptionProps:({index:e,option:t})=>{let n=Fe(t),r=x?x(t):!1;return{key:S?.(t)??P(t),tabIndex:-1,role:`option`,id:`${pe}-option-${e}`,onMouseMove:lt,onClick:dt,onTouchStart:ut,"data-option-index":e,"aria-disabled":r,"aria-selected":n}},id:pe,inputValue:H,value:V,dirty:_t,expanded:U&&ye,popupOpen:U,focused:Ee||I!==-1,anchorEl:ye,setAnchorEl:be,focusedItem:I,groupedOptions:vt}}function it(e){return t(`MuiListSubheader`,e)}d(`MuiListSubheader`,[`root`,`colorPrimary`,`colorInherit`,`gutters`,`inset`,`sticky`]);var at=e=>{let{classes:t,color:n,disableGutters:r,inset:i,disableSticky:a}=e;return g({root:[`root`,n!=="default"&&`color${o(n)}`,!r&&`gutters`,i&&`inset`,!a&&`sticky`]},it,t)},ot=a(`li`,{name:`MuiListSubheader`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${o(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(n(({theme:e})=>({boxSizing:`border-box`,lineHeight:`48px`,listStyle:`none`,color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:`primary`},style:{color:(e.vars||e).palette.primary.main}},{props:{color:`inherit`},style:{color:`inherit`}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:`sticky`,top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),st=J.forwardRef(function(e,t){let n=s({props:e,name:`MuiListSubheader`}),{className:r,color:a=`default`,component:o=`li`,disableGutters:c=!1,disableSticky:l=!1,inset:u=!1,...d}=n,f={...n,color:a,component:o,disableGutters:c,disableSticky:l,inset:u};return(0,q.jsx)(ot,{as:o,className:i(at(f).root,r),ref:t,ownerState:f,...d})}),ct=m((0,q.jsx)(`path`,{d:`M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z`}),`Cancel`);function lt(e){return t(`MuiChip`,e)}var Z=d(`MuiChip`,[`root`,`sizeSmall`,`sizeMedium`,`colorDefault`,`colorError`,`colorInfo`,`colorPrimary`,`colorSecondary`,`colorSuccess`,`colorWarning`,`disabled`,`clickable`,`deletable`,`outlined`,`filled`,`avatar`,`icon`,`label`,`deleteIcon`,`focusVisible`]),ut=e=>{let{classes:t,disabled:n,size:r,color:i,onDelete:a,clickable:s,variant:c}=e;return g({root:[`root`,c,n&&`disabled`,`size${o(r)}`,`color${o(i)}`,s&&`clickable`,a&&`deletable`],label:[`label`],avatar:[`avatar`],icon:[`icon`],deleteIcon:[`deleteIcon`]},lt,t)},dt=a(`div`,{name:`MuiChip`,slot:`Root`,shouldForwardProp:e=>_(e)&&e!==`focusableWhenDisabled`&&e!==`skipFocusWhenDisabled`,overridesResolver:(e,t)=>{let{ownerState:n}=e,{color:r,clickable:i,onDelete:a,size:s,variant:c}=n;return[{[`& .${Z.avatar}`]:t.avatar},{[`& .${Z.icon}`]:t.icon},{[`& .${Z.deleteIcon}`]:t.deleteIcon},t.root,t[`size${o(s)}`],t[`color${o(r)}`],i&&t.clickable,a&&t.deletable,t[c]]}})(n(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:`100%`,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:`inline-flex`,alignItems:`center`,justifyContent:`center`,height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:`nowrap`,...l(e,[`background-color`,`box-shadow`]),cursor:`unset`,outline:0,textDecoration:`none`,border:0,padding:0,verticalAlign:`middle`,boxSizing:`border-box`,[`&.${Z.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:`none`},[`& .${Z.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Z.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Z.deleteIcon}`]:{WebkitTapHighlightColor:`transparent`,color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:`pointer`,margin:`0 5px 0 -6px`,"&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{color:`primary`},style:{[`& .${Z.avatar}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark}}},{props:{color:`secondary`},style:{[`& .${Z.avatar}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark}}},{props:{size:`small`},style:{height:24,[`& .${Z.avatar}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Z.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Z.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(D([`contrastText`])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${Z.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}})),{props:e=>e.iconColor===e.color,style:{[`& .${Z.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&e.color!=="default",style:{[`& .${Z.icon}`]:{color:`inherit`}}},{props:{onDelete:!0},style:{[`&.${Z.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(D([`dark`])).map(([t])=>({props:{color:t,onDelete:!0},style:{[`&.${Z.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}})),{props:{clickable:!0},style:{userSelect:`none`,WebkitTapHighlightColor:`transparent`,cursor:`pointer`,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${Z.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(D([`dark`])).map(([t])=>({props:{color:t,clickable:!0},style:{[`&:hover, &.${Z.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}})),{props:{variant:`outlined`},style:{backgroundColor:`transparent`,border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode===`light`?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Z.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Z.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Z.avatar}`]:{marginLeft:4},[`& .${Z.icon}`]:{marginLeft:4},[`& .${Z.deleteIcon}`]:{marginRight:5}}},{props:{size:`small`,variant:`outlined`},style:{[`& .${Z.avatar}`]:{marginLeft:2},[`& .${Z.icon}`]:{marginLeft:2},[`& .${Z.deleteIcon}`]:{marginRight:3}}},...Object.entries(e.palette).filter(D()).map(([t])=>({props:{variant:`outlined`,color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.alpha((e.vars||e).palette[t].main,.7)}`,[`&.${Z.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${Z.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.focusOpacity)},[`& .${Z.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}}))]}})),ft=a(`span`,{name:`MuiChip`,slot:`Label`})({overflow:`hidden`,textOverflow:`ellipsis`,paddingLeft:12,paddingRight:12,whiteSpace:`nowrap`,variants:[{props:{variant:`outlined`},style:{paddingLeft:11,paddingRight:11}},{props:{size:`small`},style:{paddingLeft:8,paddingRight:8}},{props:{size:`small`,variant:`outlined`},style:{paddingLeft:7,paddingRight:7}}]});function pt(e){return e.key===`Backspace`||e.key===`Delete`}var mt=J.forwardRef(function(e,t){let n=s({props:e,name:`MuiChip`}),{avatar:r,className:a,clickable:o,color:c=`default`,component:l,deleteIcon:d,disabled:f=!1,icon:m,label:h,onClick:g,onDelete:_,onKeyDown:v,onKeyUp:y,size:x=`medium`,variant:S=`filled`,tabIndex:C,skipFocusWhenDisabled:w=!1,slots:ee={},slotProps:te={},...T}=n,{nativeButton:ne,...re}=T,ie=p(J.useRef(null),t),ae=e=>{e.stopPropagation(),_(e)},E=e=>{e.currentTarget===e.target&&pt(e)&&e.preventDefault(),v&&v(e)},D=e=>{e.currentTarget===e.target&&_&&pt(e)&&_(e),y&&y(e)},O=o!==!1&&g?!0:o,oe=O||_?u:l||`div`,k={...n,component:oe,disabled:f,size:x,color:c,iconColor:J.isValidElement(m)&&m.props.color||c,onDelete:!!_,clickable:O,variant:S},A=ut(k),se=oe===u?{component:l||`div`,internalNativeButton:!1,focusVisibleClassName:A.focusVisible,..._&&{disableRipple:!0},...ne!==void 0&&{nativeButton:ne}}:{},ce=null;_&&(ce=d&&J.isValidElement(d)?J.cloneElement(d,{className:i(d.props.className,A.deleteIcon),onClick:ae}):(0,q.jsx)(ct,{className:A.deleteIcon,onClick:ae}));let j=null;r&&J.isValidElement(r)&&(j=J.cloneElement(r,{className:i(A.avatar,r.props.className)}));let le=null;m&&J.isValidElement(m)&&(le=J.cloneElement(m,{className:i(A.icon,m.props.className)}));let M={slots:ee,slotProps:te},[ue,N]=b(`root`,{elementType:dt,externalForwardedProps:{...M,...re},ownerState:k,shouldForwardComponentProp:!0,ref:ie,className:i(A.root,a),additionalProps:{disabled:O&&f?!0:void 0,tabIndex:w&&f?-1:C,...se},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),g?.(t)},onKeyDown:t=>{e.onKeyDown?.(t),E(t)},onKeyUp:t=>{e.onKeyUp?.(t),D(t)}})}),[de,fe]=b(`label`,{elementType:ft,externalForwardedProps:M,ownerState:k,className:A.label});return(0,q.jsxs)(ue,{as:oe,...N,children:[j||le,(0,q.jsx)(de,{...fe,children:h}),ce]})});function ht(e){return t(`MuiAutocomplete`,e)}var Q=d(`MuiAutocomplete`,`root.expanded.fullWidth.focused.focusVisible.tag.tagSizeSmall.tagSizeMedium.hasPopupIcon.hasClearIcon.inputRoot.input.inputFocused.endAdornment.clearIndicator.popupIndicator.popupIndicatorOpen.popper.popperDisablePortal.paper.listbox.loading.noOptions.option.groupLabel.groupUl`.split(`.`)),gt,_t,vt=e=>{let{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:a,hasClearIcon:s,hasPopupIcon:c,inputFocused:l,popupOpen:u,size:d}=e;return g({root:[`root`,r&&`expanded`,i&&`focused`,a&&`fullWidth`,s&&`hasClearIcon`,c&&`hasPopupIcon`],inputRoot:[`inputRoot`],input:[`input`,l&&`inputFocused`],tag:[`tag`,`tagSize${o(d)}`],endAdornment:[`endAdornment`],clearIndicator:[`clearIndicator`],popupIndicator:[`popupIndicator`,u&&`popupIndicatorOpen`],popper:[`popper`,n&&`popperDisablePortal`],paper:[`paper`],listbox:[`listbox`],loading:[`loading`],noOptions:[`noOptions`],option:[`option`],groupLabel:[`groupLabel`],groupUl:[`groupUl`]},ht,t)},yt=a(`div`,{name:`MuiAutocomplete`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:a,inputFocused:s,size:c}=n;return[{[`& .${Q.tag}`]:t.tag},{[`& .${Q.tag}`]:t[`tagSize${o(c)}`]},{[`& .${Q.inputRoot}`]:t.inputRoot},{[`& .${Q.input}`]:t.input},{[`& .${Q.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${Q.focused} .${Q.clearIndicator}`]:{visibility:`visible`},"@media (pointer: fine)":{[`&:hover .${Q.clearIndicator}`]:{visibility:`visible`}},[`& .${Q.tag}`]:{margin:3,maxWidth:`calc(100% - 6px)`},[`& .${Q.inputRoot}`]:{[`.${Q.hasPopupIcon}&, .${Q.hasClearIcon}&`]:{paddingRight:30},[`.${Q.hasPopupIcon}.${Q.hasClearIcon}&`]:{paddingRight:56},[`& .${Q.input}`]:{width:0,minWidth:30}},[`& .${V.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:`4px 4px 4px 0px`}},[`& .${V.root}.${je.sizeSmall}`]:{[`& .${V.input}`]:{padding:`2px 4px 3px 0`}},[`& .${me.root}`]:{padding:9,[`.${Q.hasPopupIcon}&, .${Q.hasClearIcon}&`]:{paddingRight:39},[`.${Q.hasPopupIcon}.${Q.hasClearIcon}&`]:{paddingRight:65},[`& .${Q.input}`]:{padding:`7.5px 4px 7.5px 5px`},[`& .${Q.endAdornment}`]:{right:9}},[`& .${me.root}.${je.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Q.input}`]:{padding:`2.5px 4px 2.5px 8px`}},[`& .${_e.root}`]:{paddingTop:19,paddingLeft:8,[`.${Q.hasPopupIcon}&, .${Q.hasClearIcon}&`]:{paddingRight:39},[`.${Q.hasPopupIcon}.${Q.hasClearIcon}&`]:{paddingRight:65},[`& .${_e.input}`]:{padding:`7px 4px`},[`& .${Q.endAdornment}`]:{right:9}},[`& .${_e.root}.${je.sizeSmall}`]:{paddingBottom:1,[`& .${_e.input}`]:{padding:`2.5px 4px`}},[`& .${je.hiddenLabel}`]:{paddingTop:8},[`& .${_e.root}.${je.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Q.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${_e.root}.${je.hiddenLabel}.${je.sizeSmall}`]:{[`& .${Q.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Q.input}`]:{flexGrow:1,textOverflow:`ellipsis`,opacity:0},variants:[{props:{fullWidth:!0},style:{width:`100%`}},{props:{size:`small`},style:{[`& .${Q.tag}`]:{margin:2,maxWidth:`calc(100% - 4px)`}}},{props:{inputFocused:!0},style:{[`& .${Q.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Q.inputRoot}`]:{flexWrap:`wrap`}}}]}),bt=a(`div`,{name:`MuiAutocomplete`,slot:`EndAdornment`})({position:`absolute`,right:0,top:`50%`,transform:`translate(0, -50%)`}),xt=a(ee,{name:`MuiAutocomplete`,slot:`ClearIndicator`})({marginRight:-2,padding:4,visibility:`hidden`}),St=a(ee,{name:`MuiAutocomplete`,slot:`PopupIndicator`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:`rotate(180deg)`}}]}),Ct=a(re,{name:`MuiAutocomplete`,slot:`Popper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${Q.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(n(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:`absolute`}}]}))),wt=a(Te,{name:`MuiAutocomplete`,slot:`Paper`})(n(({theme:e})=>({...e.typography.body1,overflow:`auto`}))),Tt=a(`div`,{name:`MuiAutocomplete`,slot:`Loading`})(n(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:`14px 16px`}))),Et=a(`div`,{name:`MuiAutocomplete`,slot:`NoOptions`})(n(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:`14px 16px`}))),Dt=a(`ul`,{name:`MuiAutocomplete`,slot:`Listbox`})(n(({theme:e})=>({listStyle:`none`,margin:0,padding:`8px 0`,maxHeight:`40vh`,overflow:`auto`,isolation:`isolate`,position:`relative`,[`& .${Q.option}`]:{minHeight:48,display:`flex`,overflow:`hidden`,justifyContent:`flex-start`,alignItems:`center`,cursor:`pointer`,paddingTop:6,boxSizing:`border-box`,outline:`0`,WebkitTapHighlightColor:`transparent`,paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up(`sm`)]:{minHeight:`auto`},[`&.${Q.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:`none`},[`&.${Q.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Q.focused}`]:{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.vars||e).palette.action.selected}},[`&.${Q.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),Ot=a(st,{name:`MuiAutocomplete`,slot:`GroupLabel`})(n(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),kt=a(`ul`,{name:`MuiAutocomplete`,slot:`GroupUl`})({padding:0,[`& .${Q.option}`]:{paddingLeft:24}}),At=J.forwardRef(function(e,t){let n=s({props:e,name:`MuiAutocomplete`}),{autoComplete:r=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:o=!1,className:l,clearIcon:u=gt||=(0,q.jsx)(Be,{fontSize:`small`}),clearOnBlur:d=!n.freeSolo,clearOnEscape:f=!1,clearText:p=`Clear`,closeText:m=`Close`,defaultValue:h=n.multiple?[]:null,disableClearable:g=!1,disableCloseOnSelect:_=!1,disabled:v=!1,disabledItemsFocusable:y=!1,disableListWrap:x=!1,disablePortal:S=!1,filterOptions:C,filterSelectedOptions:w=!1,forcePopupIcon:ee=`auto`,freeSolo:te=!1,fullWidth:T=!1,getLimitTagsText:ne=e=>`+${e}`,getOptionDisabled:ie,getOptionKey:ae,getOptionLabel:E,isOptionEqualToValue:D,groupBy:O,handleHomeEndKeys:oe=!n.freeSolo,id:k,includeInputInList:A=!1,inputValue:se,limitTags:ce=-1,loading:j=!1,loadingText:le=`Loading…`,multiple:M=!1,noOptionsText:ue=`No options`,onChange:N,onClose:de,onHighlightChange:fe,onInputChange:pe,onOpen:P,open:me,openOnFocus:he=!1,openText:F=`Open`,options:ge,popupIcon:_e=_t||=(0,q.jsx)(z,{}),readOnly:ve=!1,renderGroup:ye,renderInput:be,renderOption:I,renderValue:L,resetHighlightOnMouseLeave:R=!1,selectOnFocus:B=!n.freeSolo,size:xe=`medium`,slots:Se={},slotProps:Ce={},value:V,...we}=n,{getRootProps:H,getInputProps:Ee,getInputLabelProps:De,getPopupIndicatorProps:Oe,getClearProps:ke,getItemProps:Ae,getListboxProps:je,getOptionProps:Me,value:Ne,dirty:U,expanded:W,id:Pe,popupOpen:Fe,focused:G,focusedItem:K,anchorEl:Ie,setAnchorEl:Le,inputValue:Re,groupedOptions:ze}=rt({...n,componentName:`Autocomplete`}),Ve=Je();J.useEffect(()=>{if(!Fe||!Ie||typeof ResizeObserver>`u`)return;let e=Ie.clientWidth,t=new ResizeObserver(()=>{let t=Ie.clientWidth;e!==t&&(e=t,Ve())});return t.observe(Ie),()=>{t.disconnect()}},[Fe,Ie,Ve]);let He=J.useRef([]),Ue=J.useRef(!1),We=Fe?ze:He.current;c(()=>{Fe&&!Ue.current&&(He.current=[]),Ue.current=Fe,Fe&&ze.length>0&&(He.current=ze)},[Fe,ze]);let Ge=!g&&!v&&U&&!ve,Ke=(!te||ee===!0)&&ee!==!1,{onMouseDown:qe}=Ee(),Ye=E||(e=>e.label??e),Y={...n,disablePortal:S,expanded:W,focused:G,fullWidth:T,getOptionLabel:Ye,hasClearIcon:Ge,hasPopupIcon:Ke,inputFocused:K===-1,popupOpen:Fe,size:xe},X=vt(Y),Xe={slots:Se,slotProps:Ce},[Ze,Qe]=b(`root`,{ref:t,className:[X.root,l],elementType:yt,externalForwardedProps:{...Xe,...we},getSlotProps:H,ownerState:Y}),[$e,et]=b(`listbox`,{elementType:Dt,externalForwardedProps:Xe,ownerState:Y,className:X.listbox,getSlotProps:je}),[tt,nt]=b(`paper`,{elementType:Te,externalForwardedProps:Xe,ownerState:Y,className:X.paper}),[it,at]=b(`popper`,{elementType:re,externalForwardedProps:Xe,ownerState:Y,className:X.popper,additionalProps:{disablePortal:S,style:{width:Ie?Ie.clientWidth:null,pointerEvents:Fe?void 0:`none`},role:`presentation`,anchorEl:Ie,open:Fe}}),ot=We.length>0||j||!te||at.keepMounted===!0,[st,ct]=b(`clearIndicator`,{elementType:xt,externalForwardedProps:Xe,ownerState:Y,className:X.clearIndicator,shouldForwardComponentProp:!0,additionalProps:{...ke(),"aria-label":p,title:p}}),[lt,Z]=b(`popupIndicator`,{elementType:St,externalForwardedProps:Xe,ownerState:Y,className:X.popupIndicator,shouldForwardComponentProp:!0,additionalProps:{...Oe(),disabled:v,"aria-label":Fe?m:F,title:Fe?m:F}}),ut,dt=e=>({className:X.tag,disabled:v,...Ae(e)});if(M?Ne.length>0&&(ut=L?L(Ne,dt,Y):Ne.map((e,t)=>{let{key:n,...r}=dt({index:t});return(0,q.jsx)(mt,{label:Ye(e),size:xe,...r,...Xe.slotProps.chip},n)})):L&&Ne!=null&&(ut=L(Ne,dt,Y)),ce>-1&&Array.isArray(ut)){let e=ut.length-ce;!G&&e>0&&(ut=ut.splice(0,ce),ut.push((0,q.jsx)(`span`,{className:X.tag,children:ne(e)},ut.length)))}let ft=ye||(e=>(0,q.jsxs)(`li`,{children:[(0,q.jsx)(Ot,{className:X.groupLabel,ownerState:Y,component:`div`,children:e.group}),(0,q.jsx)(kt,{className:X.groupUl,ownerState:Y,children:e.children})]},e.key)),pt=I||((e,t)=>{let{key:n,...r}=e;return(0,q.jsx)(`li`,{...r,children:Ye(t)},n)}),ht=(e,t)=>{let n=Me({option:e,index:t});return pt({...n,className:X.option},e,{selected:n[`aria-selected`],index:t,inputValue:Re},Y)};return(0,q.jsxs)(J.Fragment,{children:[(0,q.jsx)(Ze,{...Qe,children:be({id:Pe,disabled:v,fullWidth:n.fullWidth??!0,size:xe===`small`?`small`:void 0,slotProps:{inputLabel:De(),input:{ref:Le,className:X.inputRoot,startAdornment:ut,onMouseDown:e=>{e.target===e.currentTarget&&qe(e)},...(Ge||Ke)&&{endAdornment:(0,q.jsxs)(bt,{className:X.endAdornment,ownerState:Y,children:[Ge?(0,q.jsx)(st,{...ct,children:u}):null,Ke?(0,q.jsx)(lt,{...Z,children:_e}):null]})}},htmlInput:{className:X.input,disabled:v,readOnly:ve,...Ee()}}})}),Ie&&ot?(0,q.jsx)(Ct,{as:it,...at,children:(0,q.jsxs)(wt,{as:tt,...nt,children:[j&&We.length===0?(0,q.jsx)(Tt,{className:X.loading,ownerState:Y,children:le}):null,We.length===0&&!te&&!j?(0,q.jsx)(Et,{className:X.noOptions,ownerState:Y,role:`presentation`,onMouseDown:e=>{e.preventDefault()},children:ue}):null,We.length>0?(0,q.jsx)($e,{...et,children:We.map((e,t)=>O?ft({key:e.key,group:e.group,children:e.options.map((t,n)=>ht(t,e.index+n))}):ht(e,t))}):null]})}):null]})}),jt=m((0,q.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`),Mt=m((0,q.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`),Nt=m((0,q.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 Pt(e){return t(`MuiCheckbox`,e)}var Ft=d(`MuiCheckbox`,[`root`,`checked`,`disabled`,`indeterminate`,`colorPrimary`,`colorSecondary`,`sizeSmall`,`sizeMedium`]),It=e=>{let{classes:t,indeterminate:n,color:r,size:i}=e,a=g({root:[`root`,n&&`indeterminate`,`color${o(r)}`,`size${o(i)}`]},Pt,t);return{...t,...a}},Lt=a(O,{shouldForwardProp:e=>_(e)||e===`classes`,name:`MuiCheckbox`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${o(n.size)}`],n.color!=="default"&&t[`color${o(n.color)}`]]}})(n(({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(D()).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(D()).map(([t])=>({props:{color:t},style:{[`&.${Ft.checked}, &.${Ft.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Ft.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:`transparent`}}}}]}))),Rt=(0,q.jsx)(Mt,{}),zt=(0,q.jsx)(jt,{}),Bt=(0,q.jsx)(Nt,{}),Vt=J.forwardRef(function(e,t){let n=s({props:e,name:`MuiCheckbox`}),{checkedIcon:r=Rt,color:a=`primary`,icon:o=zt,indeterminate:c=!1,indeterminateIcon:l=Bt,size:u=`medium`,disableRipple:d=!1,className:f,slots:p={},slotProps:m={},...h}=n,g=c?l:o,_=c?l:r,v={...n,disableRipple:d,color:a,indeterminate:c,size:u},y=It(v),x=m.input,[S,C]=b(`root`,{ref:t,elementType:Lt,className:i(y.root,f),shouldForwardComponentProp:!0,externalForwardedProps:{slots:p,slotProps:m,...h},ownerState:v,additionalProps:{type:`checkbox`,icon:J.cloneElement(g,{fontSize:g.props.fontSize??u}),checkedIcon:J.cloneElement(_,{fontSize:_.props.fontSize??u}),disableRipple:d,slots:p,slotProps:{input:xe(typeof x==`function`?x(v):x,{"data-indeterminate":c,"aria-checked":c?`mixed`:void 0})}}});return(0,q.jsx)(S,{...C,classes:y})}),Ht=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems===`flex-start`&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Ut=e=>{let{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:o,selected:s}=e,c=g({root:[`root`,r&&`dense`,!a&&`gutters`,o&&`divider`,i&&`disabled`,t===`flex-start`&&`alignItemsFlexStart`,s&&`selected`]},ce,n);return{...n,...c}},Wt=a(u,{shouldForwardProp:e=>_(e)||e===`classes`,name:`MuiListItemButton`,slot:`Root`,overridesResolver:Ht})(n(({theme:e})=>({display:`flex`,flexGrow:1,justifyContent:`flex-start`,alignItems:`center`,position:`relative`,textDecoration:`none`,minWidth:0,boxSizing:`border-box`,textAlign:`left`,paddingTop:8,paddingBottom:8,...l(e,`background-color`,{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:`none`,backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${j.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${j.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${j.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${j.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${j.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:{alignItems:`flex-start`},style:{alignItems:`flex-start`}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.dense,style:{paddingTop:4,paddingBottom:4}}]}))),Gt=J.forwardRef(function(e,t){let n=s({props:e,name:`MuiListItemButton`}),{alignItems:r=`center`,autoFocus:a=!1,component:o=`div`,children:c,dense:l=!1,disableGutters:u=!1,divider:d=!1,focusVisibleClassName:f,selected:m=!1,className:h,...g}=n,_=J.useContext(L),v=J.useMemo(()=>({dense:l||_.dense||!1,alignItems:r,disableGutters:u}),[r,_.dense,l,u]),y=J.useRef(null);E(()=>{a&&y.current&&y.current.focus()},[a]);let b={...n,alignItems:r,dense:v.dense,disableGutters:u,divider:d,selected:m},x=Ut(b),{root:S,...C}=x,w=p(y,t);return(0,q.jsx)(L.Provider,{value:v,children:(0,q.jsx)(Wt,{ref:w,href:g.href||g.to,component:(g.href||g.to)&&o===`div`?`button`:o,internalNativeButton:!1,focusVisibleClassName:i(x.focusVisible,f),ownerState:b,className:i(x.root,h),...g,classes:C,children:c})})}),Kt=m((0,q.jsx)(`path`,{d:`M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4z`}),`AddBox`),qt=m((0,q.jsx)(`path`,{d:`M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z`}),`DeleteForever`),Jt=m((0,q.jsx)(`path`,{d:`m12 21.35-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54z`}),`Favorite`),Yt=m((0,q.jsx)(`path`,{d:`M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1m-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1`}),`Forum`),Xt=m((0,q.jsx)(`path`,{d:`M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4z`}),`ModeComment`),Zt=m((0,q.jsx)(`path`,{d:`M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4`}),`PersonAdd`),Qt=m((0,q.jsx)(`path`,{d:`M19.3 16.9c.4-.7.7-1.5.7-2.4 0-2.5-2-4.5-4.5-4.5S11 12 11 14.5s2 4.5 4.5 4.5c.9 0 1.7-.3 2.4-.7l3.2 3.2 1.4-1.4zm-3.8.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5M12 20v2C6.48 22 2 17.52 2 12S6.48 2 12 2c4.84 0 8.87 3.44 9.8 8h-2.07c-.64-2.46-2.4-4.47-4.73-5.41V5c0 1.1-.9 2-2 2h-2v2c0 .55-.45 1-1 1H8v2h2v3H9l-4.79-4.79C4.08 10.79 4 11.38 4 12c0 4.41 3.59 8 8 8`}),`TravelExplore`),$t=m((0,q.jsx)(`path`,{d:`M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z`}),`Warning`),en=e(te());function tn(){var e=[...arguments];return(0,J.useMemo)(()=>t=>{e.forEach(e=>e(t))},e)}var nn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function rn(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function an(e){return`nodeType`in e}function on(e){return e?rn(e)?e:an(e)?e.ownerDocument?.defaultView??window:window:window}function sn(e){let{Document:t}=on(e);return e instanceof t}function cn(e){return rn(e)?!1:e instanceof on(e).HTMLElement}function ln(e){return e instanceof on(e).SVGElement}function un(e){return e?rn(e)?e.document:an(e)?sn(e)?e:cn(e)||ln(e)?e.ownerDocument:document:document:document}var dn=nn?J.useLayoutEffect:J.useEffect;function fn(e){let t=(0,J.useRef)(e);return dn(()=>{t.current=e}),(0,J.useCallback)(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function pn(){let e=(0,J.useRef)(null);return[(0,J.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,J.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[])]}function mn(e,t){t===void 0&&(t=[e]);let n=(0,J.useRef)(e);return dn(()=>{n.current!==e&&(n.current=e)},t),n}function hn(e,t){let n=(0,J.useRef)();return(0,J.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function gn(e){let t=fn(e),n=(0,J.useRef)(null);return[n,(0,J.useCallback)(e=>{e!==n.current&&t?.(e,n.current),n.current=e},[])]}function _n(e){let t=(0,J.useRef)();return(0,J.useEffect)(()=>{t.current=e},[e]),t.current}var vn={};function yn(e,t){return(0,J.useMemo)(()=>{if(t)return t;let n=vn[e]==null?0:vn[e]+1;return vn[e]=n,e+`-`+n},[e,t])}function bn(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>{let r=Object.entries(n);for(let[n,i]of r){let r=t[n];r!=null&&(t[n]=r+e*i)}return t},{...t})}}var xn=bn(1),Sn=bn(-1);function Cn(e){return`clientX`in e&&`clientY`in e}function wn(e){if(!e)return!1;let{KeyboardEvent:t}=on(e.target);return t&&e instanceof t}function Tn(e){if(!e)return!1;let{TouchEvent:t}=on(e.target);return t&&e instanceof t}function En(e){if(Tn(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return Cn(e)?{x:e.clientX,y:e.clientY}:null}var Dn=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return`translate3d(`+(t?Math.round(t):0)+`px, `+(n?Math.round(n):0)+`px, 0)`}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return`scaleX(`+t+`) scaleY(`+n+`)`}},Transform:{toString(e){if(e)return[Dn.Translate.toString(e),Dn.Scale.toString(e)].join(` `)}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+` `+n+`ms `+r}}}),On=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`;function kn(e){return e.matches(On)?e:e.querySelector(On)}var An={display:`none`};function jn(e){let{id:t,value:n}=e;return J.createElement(`div`,{id:t,style:An},n)}function Mn(e){let{id:t,announcement:n,ariaLiveType:r=`assertive`}=e;return J.createElement(`div`,{id:t,style:{position:`fixed`,top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0 0 0 0)`,clipPath:`inset(100%)`,whiteSpace:`nowrap`},role:`status`,"aria-live":r,"aria-atomic":!0},n)}function Nn(){let[e,t]=(0,J.useState)(``);return{announce:(0,J.useCallback)(e=>{e!=null&&t(e)},[]),announcement:e}}var Pn=(0,J.createContext)(null);function Fn(e){let t=(0,J.useContext)(Pn);(0,J.useEffect)(()=>{if(!t)throw Error(`useDndMonitor must be used within a children of <DndContext>`);return t(e)},[e,t])}function In(){let[e]=(0,J.useState)(()=>new Set),t=(0,J.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,J.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>e[n]?.call(e,r))},[e]),t]}var Ln={dragga