@takecasper/acuity-design-system 2.4.2 → 2.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/index.css');const i=require("react/jsx-runtime"),se=require("react"),Sn=require("@headlessui/react"),Bd=require("@mui/icons-material/Add"),B=require("@mui/material"),Wd=require("@mui/icons-material/FileUploadOutlined"),qd=require("@mui/icons-material/Menu"),ge=require("@mui/material/styles"),Ud=require("@mui/utils/useLazyRef"),Gt=require("@mui/system/RtlProvider"),Kd=require("@mui/utils/useEnhancedEffect"),re=require("@mui/utils"),Xd=require("@mui/utils/composeClasses"),Fn=require("@mui/material/InputBase"),Yd=require("@mui/utils/useTimeout"),oa=require("@mui/material/Autocomplete"),Zd=require("@mui/utils/resolveProps"),Qd=require("@mui/material/MenuList"),Jd=require("@mui/material/ClickAwayListener"),ef=require("@mui/material/Grow"),tf=require("@mui/material/Paper"),nf=require("@mui/material/Popper"),rf=require("@mui/utils/useEventCallback"),of=require("@mui/material/MenuItem"),ze=require("@mui/material/utils"),sf=require("@mui/utils/useOnMount"),Ge=require("@mui/system"),lf=require("react-dom"),af=require("@mui/material/ListItemIcon"),cf=require("@mui/material/ListItemText"),uf=require("@mui/material/Badge"),df=require("@mui/material/Checkbox"),ff=require("@mui/material/Divider"),hf=require("@mui/material/TextField"),gf=require("@mui/material/FormControl"),mf=require("@mui/material/Select"),pf=require("@mui/material/Button"),bf=require("@mui/material/IconButton"),Cf=require("@mui/material/InputAdornment"),Jo=require("@mui/material/Tooltip"),wf=require("@mui/material/InputLabel"),xf=require("@mui/material/Chip"),yf=require("@mui/material/FormControlLabel"),vf=require("@mui/material/Unstable_TrapFocus"),es=require("@mui/material/TablePagination"),Sf=require("@mui/material/LinearProgress"),kf=require("@mui/material/CircularProgress"),If=require("@mui/utils/useForkRef"),Mf=require("@mui/material/Skeleton"),Ef=require("@mui/icons-material/EditOutlined"),Pf=require("@mui/icons-material/HotelClassOutlined"),Tf=require("@mui/icons-material/SettingsOutlined"),Ff=require("@mui/material/Table"),jf=require("@mui/material/TableBody"),Of=require("@mui/material/TableCell"),Rf=require("@mui/material/TableHead"),Lf=require("@mui/material/TableRow"),Df=require("@mui/material/TableSortLabel"),Hf=require("@mui/icons-material/Clear"),_f=require("@mui/icons-material/Search"),Af=require("@mui/icons-material/IndeterminateCheckBoxOutlined"),Vf=require("@mui/icons-material/MoreVert"),Kt=require("react-toastify"),Nf=require("@mui/icons-material/CheckRounded"),$f=require("@mui/icons-material/CloseRounded"),zf=require("@mui/icons-material/ErrorRounded"),Gf=require("@mui/icons-material/InfoRounded"),Bf=require("@mui/icons-material/WarningRounded"),Wf=require("@mui/icons-material/Warning"),qf=require("@mui/icons-material/KeyboardVoiceOutlined"),Uf=require("@mui/icons-material/VideocamOffOutlined"),Kf=require("@mui/icons-material/Check"),Xf=require("@mui/icons-material/Close"),Yf=require("@mui/icons-material/MicNone"),Zf=require("@mui/icons-material/AccessTimeFilled"),Qf=require("react-markdown"),Jf=require("@mui/icons-material/FormatBold"),eh=require("@mui/icons-material/FormatItalicOutlined"),th=require("@mui/icons-material/FormatListBulleted"),nh=require("@mui/icons-material/FormatListNumbered"),rh=require("@mui/icons-material/KeyboardArrowDown"),oh=require("@tiptap/markdown"),Eo=require("@tiptap/react"),sh=require("@tiptap/starter-kit"),lh=require("@mui/icons-material/Replay"),ih=require("@mui/icons-material/StopCircle"),ah=require("@mui/icons-material/VolumeUp"),ch=require("@emotion/react"),uh=require("@emotion/styled"),dh=require("@mui/icons-material/CloudCircle"),fh=require("@mui/icons-material/RocketLaunch"),hh=require("@mui/icons-material/VideoCameraFrontOutlined"),ie=e=>e&&e.__esModule?e:{default:e};function sa(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const g=sa(se),la=ie(Bd),gh=ie(Wd),mh=ie(qd),Bt=ie(Ud),ia=ie(Kd),Xe=ie(Xd),aa=ie(Fn),wn=ie(Yd),ca=ie(oa),ph=ie(Zd),ps=ie(Qd),ua=ie(Jd),bh=ie(ef),da=ie(tf),bs=ie(nf),Ch=ie(rf),Xt=ie(of),fa=ie(sf),wh=sa(lf),_n=ie(af),An=ie(cf),xh=ie(uf),yh=ie(df),vh=ie(ff),ha=ie(hf),Sh=ie(gf),kh=ie(mf),Ih=ie(pf),ga=ie(bf),Mh=ie(Cf),ma=ie(Jo),Eh=ie(wf),Ph=ie(xf),gl=ie(yf),Th=ie(vf),Fh=ie(es),jh=ie(Sf),Oh=ie(kf),Rh=ie(If),Lh=ie(Mf),Dh=ie(Ef),Hh=ie(Pf),_h=ie(Tf),Ah=ie(Ff),Po=ie(jf),bt=ie(Of),Vh=ie(Rf),dr=ie(Lf),Nh=ie(Df),$h=ie(Hf),zh=ie(_f),Gh=ie(Af),Bh=ie(Vf),Wh=ie(Nf),qh=ie($f),Uh=ie(zf),Kh=ie(Gf),Xh=ie(Bf),Yh=ie(Wf),Zh=ie(qf),Qh=ie(Uf),Jh=ie(Kf),ml=ie(Xf),eg=ie(Yf),tg=ie(Zf),ng=ie(Qf),rg=ie(Jf),og=ie(eh),sg=ie(th),lg=ie(nh),ig=ie(rh),ag=ie(sh),cg=ie(lh),ug=ie(ih),dg=ie(ah),pa=ie(uh),fg=ie(dh),hg=ie(fh),gg=ie(hh),Cs=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s="",filled:l=!1})=>{const a=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:s||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:r}),i.jsx("path",{d:"M12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 9.34784 20.9464 6.8043 19.0711 4.92893C17.1957 3.05357 14.6522 2 12 2C9.34784 2 6.8043 3.05357 4.92893 4.92893C3.05357 6.8043 2 9.34784 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C6.8043 20.9464 9.34784 22 12 22Z",stroke:l?"transparent":"currentColor",fill:l?"#157393":"none",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M12 17.5553V13.1108",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M12 8.7333C11.8527 8.7333 11.7114 8.67477 11.6072 8.57058C11.503 8.4664 11.4445 8.32509 11.4445 8.17775C11.4445 8.03041 11.503 7.8891 11.6072 7.78491C11.7114 7.68072 11.8527 7.62219 12 7.62219",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M12 8.7333C12.1473 8.7333 12.2887 8.67477 12.3928 8.57058C12.497 8.4664 12.5556 8.32509 12.5556 8.17775C12.5556 8.03041 12.497 7.8891 12.3928 7.78491C12.2887 7.68072 12.1473 7.62219 12 7.62219",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"})]})},ws=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s="",filled:l=!1})=>{const a=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"#000000",className:n,"aria-hidden":`${a}`,role:s||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:r}),i.jsx("path",{d:"M10.8715 2.54037C11.0072 2.37168 11.1791 2.23557 11.3743 2.14206C11.5696 2.04854 11.7833 2 11.9998 2C12.2163 2 12.4301 2.04854 12.6253 2.14206C12.8206 2.23557 12.9924 2.37168 13.1281 2.54037L14.4714 4.21147C14.6235 4.40106 14.821 4.54927 15.0455 4.64243C15.27 4.73559 15.5144 4.7707 15.756 4.74452L17.8882 4.51264C18.1041 4.48866 18.3225 4.51354 18.5275 4.58543C18.7324 4.65731 18.9185 4.77437 19.0721 4.92793C19.2256 5.08149 19.3427 5.26762 19.4146 5.47255C19.4865 5.67747 19.5113 5.89594 19.4874 6.11178L19.2555 8.24397C19.2293 8.48564 19.2644 8.73001 19.3576 8.95453C19.4507 9.17905 19.5989 9.37648 19.7885 9.52862L21.4596 10.8719C21.6283 11.0076 21.7644 11.1794 21.8579 11.3747C21.9515 11.5699 22 11.7837 22 12.0002C22 12.2167 21.9515 12.4304 21.8579 12.6257C21.7644 12.8209 21.6283 12.9928 21.4596 13.1285L19.7832 14.4655C19.5937 14.6179 19.4455 14.8155 19.3524 15.0402C19.2592 15.2648 19.2241 15.5093 19.2502 15.7511L19.482 17.8832C19.5062 18.0991 19.4814 18.3177 19.4096 18.5227C19.3378 18.7277 19.2207 18.9139 19.0671 19.0675C18.9135 19.2211 18.7273 19.3381 18.5223 19.41C18.3173 19.4818 18.0988 19.5065 17.8829 19.4824L15.7507 19.2505C15.509 19.2242 15.2646 19.2593 15.0401 19.3525C14.8156 19.4456 14.6181 19.5939 14.4661 19.7836L13.1281 21.4484C12.9925 21.6173 12.8207 21.7535 12.6254 21.8471C12.4302 21.9407 12.2164 21.9893 11.9998 21.9893C11.7833 21.9893 11.5695 21.9407 11.3742 21.8471C11.1789 21.7535 11.0072 21.6173 10.8715 21.4484L9.52915 19.7782C9.37682 19.5886 9.17922 19.4404 8.95456 19.3473C8.7299 19.2541 8.48541 19.219 8.24361 19.2452L6.11142 19.4771C5.89551 19.5014 5.6769 19.4767 5.47181 19.405C5.26673 19.3332 5.08045 19.2162 4.92681 19.0625C4.77318 18.9089 4.65613 18.7226 4.58436 18.5175C4.5126 18.3124 4.48796 18.0938 4.51228 17.8779L4.74416 15.7457C4.77033 15.5039 4.73522 15.2594 4.64207 15.0348C4.54891 14.8101 4.40071 14.6125 4.21111 14.4602L2.54089 13.1178C2.37207 12.9822 2.23582 12.8104 2.14221 12.6151C2.0486 12.4199 2 12.2061 2 11.9895C2 11.773 2.0486 11.5592 2.14221 11.3639C2.23582 11.1686 2.37207 10.9969 2.54089 10.8612L4.21111 9.51795C4.40076 9.36588 4.54902 9.16845 4.64219 8.94391C4.73536 8.71938 4.77043 8.47498 4.74416 8.23331L4.51228 6.10112C4.48813 5.88525 4.51289 5.6667 4.58471 5.4617C4.65654 5.2567 4.77359 5.07049 4.92719 4.91689C5.08079 4.76329 5.267 4.64624 5.472 4.57441C5.67701 4.50259 5.89555 4.47783 6.11142 4.50198L8.24361 4.73385C8.4854 4.75995 8.72987 4.7248 8.95452 4.63165C9.17916 4.5385 9.37677 4.39034 9.52915 4.20081L10.8715 2.54037Z",stroke:l?"transparent":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",fill:l?"#387F14":"none"}),i.jsx("path",{d:"M15.3314 9.99585L11.7946 14.7115C11.7373 14.7878 11.6643 14.8509 11.5805 14.8966C11.4967 14.9422 11.404 14.9693 11.3089 14.9761C11.2137 14.9828 11.1181 14.969 11.0288 14.9356C10.9394 14.9023 10.8582 14.8501 10.7907 14.7826L8.66827 12.6611",stroke:l?"white":"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})},xs=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s="",filled:l=!1})=>{const a=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:s||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:r}),i.jsx("path",{d:"M13.3508 3.46672C13.2268 3.21422 13.0345 3.00155 12.7957 2.85282C12.557 2.70408 12.2813 2.62524 12 2.62524C11.7187 2.62524 11.443 2.70408 11.2042 2.85282C10.9655 3.00155 10.7732 3.21422 10.6492 3.46672L2.75501 19.5484C2.65998 19.7417 2.61579 19.956 2.6266 20.1711C2.63741 20.3863 2.70286 20.5951 2.81678 20.7779C2.9307 20.9607 3.08933 21.1115 3.2777 21.216C3.46606 21.3205 3.67794 21.3752 3.89334 21.375H20.1067C20.3221 21.3752 20.5339 21.3205 20.7223 21.216C20.9107 21.1115 21.0693 20.9607 21.1832 20.7779C21.2972 20.5951 21.3626 20.3863 21.3734 20.1711C21.3842 19.956 21.34 19.7417 21.245 19.5484L13.3508 3.46672Z",stroke:l?"transparent":"currentColor",fill:l?"#816E09":"none",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M12 18.25C11.8274 18.25 11.6875 18.1101 11.6875 17.9375C11.6875 17.7649 11.8274 17.625 12 17.625",stroke:l?"white":"currentColor",strokeWidth:o}),i.jsx("path",{d:"M12 18.25C12.1726 18.25 12.3125 18.1101 12.3125 17.9375C12.3125 17.7649 12.1726 17.625 12 17.625",stroke:l?"white":"currentColor",strokeWidth:o}),i.jsx("path",{d:"M12 15.125V8.875",stroke:l?"white":"currentColor",strokeWidth:o,strokeMiterlimit:"10",strokeLinecap:"round"})]})},ys=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s="",filled:l=!1})=>{const a=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"#000000",className:n,"aria-hidden":`${a}`,role:s||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:r}),i.jsx("path",{d:"M12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 9.34784 20.9464 6.8043 19.0711 4.92893C17.1957 3.05357 14.6522 2 12 2C9.34784 2 6.8043 3.05357 4.92893 4.92893C3.05357 6.8043 2 9.34784 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C6.8043 20.9464 9.34784 22 12 22Z",stroke:l?"transparent":"currentColor",fill:l?"#A90508":"none",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M15.3344 8.66663L8.66666 15.3333",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M8.66666 8.66663L15.3344 15.3333",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"})]})},mg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M2.625 21.3741L21.375 2.62415",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M21.375 21.3741L2.625 2.62415",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},pg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M20.4917 3.50831C20.2079 3.22568 19.8709 3.00208 19.5002 2.85044C19.1294 2.69879 18.7324 2.62211 18.3318 2.62483C17.9313 2.62754 17.5353 2.70959 17.1667 2.86624C16.798 3.02288 16.4641 3.25103 16.1842 3.53748L4.10083 15.6208L2.625 21.375L8.37917 19.8991L20.4625 7.81581C20.749 7.53587 20.9771 7.20193 21.1337 6.8333C21.2904 6.46468 21.3724 6.06866 21.3752 5.66814C21.3779 5.26762 21.3012 4.87053 21.1495 4.49982C20.9979 4.1291 20.7743 3.79211 20.4917 3.50831Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M15.8383 3.8833L20.1167 8.16163",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M14.0933 5.6283L18.3717 9.90663",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M4.10083 15.6208L8.38333 19.895",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},bg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M2 2V22.0007",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M2 3.33301H21.334C21.4625 3.33314 21.5881 3.37038 21.6959 3.44023C21.8037 3.51008 21.889 3.60958 21.9416 3.72676C21.9942 3.84394 22.0118 3.97381 21.9923 4.10077C21.9728 4.22772 21.9171 4.34634 21.8318 4.44238L18.2717 8.4443C18.0545 8.68843 17.9345 9.0038 17.9345 9.33055C17.9345 9.6573 18.0545 9.97268 18.2717 10.2168L21.8274 14.2214C21.9127 14.3174 21.9684 14.4361 21.9879 14.563C22.0073 14.69 21.9897 14.8198 21.9371 14.937C21.8845 15.0542 21.7992 15.1537 21.6915 15.2235C21.5837 15.2934 21.458 15.3306 21.3296 15.3308H2",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Cg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M10.2221 20.6666C10.335 21.0512 10.5695 21.3889 10.8903 21.6292C11.2112 21.8694 11.6013 21.9992 12.0021 21.9992C12.4029 21.9992 12.793 21.8694 13.1139 21.6292C13.4348 21.3889 13.6692 21.0512 13.7821 20.6666",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 4V2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 4C13.7681 4 15.4638 4.70238 16.714 5.95262C17.9643 7.20286 18.6667 8.89856 18.6667 10.6667C18.6667 16.9298 20 18 20 18H4C4 18 5.33333 16.2969 5.33333 10.6667C5.33333 8.89856 6.03571 7.20286 7.28595 5.95262C8.5362 4.70238 10.2319 4 12 4V4Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},wg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return e==="16"&&t==="16"?i.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M6.88898 13.6672C6.95954 13.9076 7.10608 14.1187 7.30663 14.2688C7.50719 14.419 7.75099 14.5001 8.00152 14.5001C8.25205 14.5001 8.49585 14.419 8.6964 14.2688C8.89696 14.1187 9.04349 13.9076 9.11406 13.6672",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M8.00018 3.25005V2",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M8.00019 3.25012C9.1053 3.25012 10.1651 3.68913 10.9466 4.47056C11.728 5.25199 12.167 6.31183 12.167 7.41694C12.167 11.3315 13.0004 12.0005 13.0004 12.0005H3C3 12.0005 3.83336 10.936 3.83336 7.41694C3.83336 6.31183 4.27237 5.25199 5.0538 4.47056C5.83523 3.68913 6.89508 3.25012 8.00019 3.25012V3.25012Z",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"11.8",cy:"6.11104",r:"2.3",fill:"#BA1E50",stroke:"white"})]}):i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M10.2221 20.6666C10.335 21.0512 10.5695 21.3889 10.8903 21.6292C11.2112 21.8694 11.6013 21.9992 12.0021 21.9992C12.4029 21.9992 12.793 21.8694 13.1139 21.6292C13.4348 21.3889 13.6692 21.0512 13.7821 20.6666",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 4V2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 4C13.7681 4 15.4638 4.70238 16.714 5.95262C17.9643 7.20286 18.6667 8.89856 18.6667 10.6667C18.6667 16.9298 20 18 20 18H4C4 18 5.33333 16.2969 5.33333 10.6667C5.33333 8.89856 6.03571 7.20286 7.28595 5.95262C8.5362 4.70238 10.2319 4 12 4V4Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"18",cy:"8",r:"4",fill:"#BA1E50",stroke:"white",strokeWidth:"2"})]})},xg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M9.33325 9.33315C9.33335 8.84429 9.46782 8.36486 9.72198 7.94726C9.97614 7.52966 10.3402 7.18996 10.7744 6.96528C11.2085 6.74062 11.6962 6.63962 12.1838 6.67335C12.6716 6.70706 13.1406 6.8742 13.5397 7.15648C13.9389 7.43877 14.2527 7.82534 14.4469 8.27394C14.6413 8.72255 14.7085 9.21592 14.6413 9.70015C14.5741 10.1844 14.3751 10.6408 14.0661 11.0196C13.757 11.3984 13.3497 11.6848 12.8888 11.8478C12.6287 11.9398 12.4036 12.1101 12.2444 12.3353C12.0852 12.5607 11.9997 12.8297 11.9999 13.1056V13.9998",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12.0001 17.3333C11.816 17.3333 11.6667 17.184 11.6667 17C11.6667 16.8159 11.816 16.6666 12.0001 16.6666",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M12 17.3333C12.1841 17.3333 12.3333 17.184 12.3333 17C12.3333 16.8159 12.1841 16.6666 12 16.6666",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47716 17.5228 2 12 2C6.47716 2 2 6.47716 2 12C2 17.5228 6.47716 22 12 22Z",strokeWidth:o,strokeMiterlimit:"10",stroke:"currentColor"})]})},yg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M9.1042 3.96154L9.83189 2.08308C9.95462 1.76503 10.1705 1.49146 10.4514 1.29821C10.7322 1.10495 11.0648 1.00101 11.4057 1H12.7934C13.1343 1.00101 13.467 1.10495 13.7478 1.29821C14.0286 1.49146 14.2446 1.76503 14.3673 2.08308L15.095 3.96154L17.5657 5.38308L19.5627 5.07846C19.8952 5.03333 20.2336 5.08806 20.5349 5.23572C20.8363 5.38337 21.0869 5.61727 21.255 5.90769L21.9319 7.09231C22.1054 7.38736 22.1853 7.72807 22.1611 8.06948C22.1369 8.41089 22.0098 8.73694 21.7965 9.00462L20.5611 10.5785V13.4215L21.8304 14.9954C22.0437 15.2631 22.1708 15.5891 22.1949 15.9305C22.2191 16.2719 22.1392 16.6126 21.9657 16.9077L21.2888 18.0923C21.1207 18.3827 20.8701 18.6166 20.5688 18.7643C20.2674 18.9119 19.929 18.9667 19.5965 18.9215L17.5996 18.6169L15.1288 20.0385L14.4011 21.9169C14.2784 22.235 14.0625 22.5085 13.7817 22.7018C13.5008 22.8951 13.1682 22.999 12.8273 23H11.4057C11.0648 22.999 10.7322 22.8951 10.4514 22.7018C10.1705 22.5085 9.95462 22.235 9.83189 21.9169L9.1042 20.0385L6.63343 18.6169L4.63651 18.9215C4.304 18.9667 3.96558 18.9119 3.66425 18.7643C3.36292 18.6166 3.11229 18.3827 2.9442 18.0923L2.26728 16.9077C2.09382 16.6126 2.0139 16.2719 2.03807 15.9305C2.06224 15.5891 2.18937 15.2631 2.40266 14.9954L3.63805 13.4215V10.5785L2.36882 9.00462C2.15552 8.73694 2.0284 8.41089 2.00423 8.06948C1.98006 7.72807 2.05997 7.38736 2.23343 7.09231L2.91036 5.90769C3.07844 5.61727 3.32907 5.38337 3.6304 5.23572C3.93173 5.08806 4.27015 5.03333 4.60266 5.07846L6.59959 5.38308L9.1042 3.96154ZM8.71497 12C8.71497 12.6694 8.91348 13.3238 9.28538 13.8804C9.65729 14.437 10.1859 14.8708 10.8044 15.127C11.4228 15.3832 12.1033 15.4502 12.7599 15.3196C13.4164 15.189 14.0195 14.8666 14.4929 14.3933C14.9662 13.9199 15.2886 13.3169 15.4192 12.6603C15.5498 12.0038 15.4827 11.3232 15.2266 10.7048C14.9704 10.0863 14.5366 9.5577 13.98 9.1858C13.4234 8.81389 12.769 8.61538 12.0996 8.61538C11.2019 8.61538 10.341 8.97198 9.7063 9.60672C9.07156 10.2415 8.71497 11.1023 8.71497 12V12Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},vg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M2.00003 5H22V19H2.00003V5Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M21.6772 5.51294L13.921 11.3593C13.3703 11.7745 12.6949 11.9997 12 11.9997C11.3052 11.9997 10.6298 11.7745 10.0791 11.3593L2.32291 5.51294",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Sg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M12 22C17.5228 22 22 17.5229 22 12.0001C22 6.47721 17.5228 2 12 2C6.47716 2 2 6.47721 2 12.0001C2 17.5229 6.47716 22 12 22Z",strokeWidth:o,strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M6.88889 11.9554H16.9334",strokeWidth:o,strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},kg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M2 5.6366H22",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M14.0454 2H9.95446C9.5928 2 9.24595 2.14367 8.99022 2.3994C8.73449 2.65513 8.59082 3.00198 8.59082 3.36364V5.63636H15.409V3.36364C15.409 3.00198 15.2653 2.65513 15.0096 2.3994C14.7539 2.14367 14.407 2 14.0454 2Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M9.95453 17.2275V10.4093",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M14.0455 17.2275V10.4093",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M18.2364 20.7457C18.2111 21.0873 18.0573 21.4067 17.8059 21.6395C17.5546 21.8723 17.2244 22.0012 16.8818 22.0002H7.11818C6.77561 22.0012 6.4454 21.8723 6.19406 21.6395C5.94273 21.4067 5.78893 21.0873 5.76364 20.7457L4.5 5.6366H19.5L18.2364 20.7457Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Ig=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M21.375 8.09253L12.4417 17.025C12.3837 17.0831 12.3148 17.1291 12.2391 17.1605C12.1632 17.192 12.082 17.2082 12 17.2082C11.918 17.2082 11.8368 17.192 11.7609 17.1605C11.6852 17.1291 11.6163 17.0831 11.5583 17.025L2.625 8.09253",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Mg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M20.125 5.125H3.875C3.18464 5.125 2.625 5.68464 2.625 6.375V20.125C2.625 20.8153 3.18464 21.375 3.875 21.375H20.125C20.8153 21.375 21.375 20.8153 21.375 20.125V6.375C21.375 5.68464 20.8153 5.125 20.125 5.125Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M2.625 10.125H21.375",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M7.625 7V2.625",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M16.375 7V2.625",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M6.6875 13.875C6.51491 13.875 6.375 13.7351 6.375 13.5625C6.375 13.3899 6.51491 13.25 6.6875 13.25",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M6.6875 13.875C6.86009 13.875 7 13.7351 7 13.5625C7 13.3899 6.86009 13.25 6.6875 13.25",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M6.6875 18.25C6.51491 18.25 6.375 18.1101 6.375 17.9375C6.375 17.7649 6.51491 17.625 6.6875 17.625",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M6.6875 18.25C6.86009 18.25 7 18.1101 7 17.9375C7 17.7649 6.86009 17.625 6.6875 17.625",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M12 13.875C11.8274 13.875 11.6875 13.7351 11.6875 13.5625C11.6875 13.3899 11.8274 13.25 12 13.25",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M12 13.875C12.1726 13.875 12.3125 13.7351 12.3125 13.5625C12.3125 13.3899 12.1726 13.25 12 13.25",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M12 18.25C11.8274 18.25 11.6875 18.1101 11.6875 17.9375C11.6875 17.7649 11.8274 17.625 12 17.625",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M12 18.25C12.1726 18.25 12.3125 18.1101 12.3125 17.9375C12.3125 17.7649 12.1726 17.625 12 17.625",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M17.3125 13.875C17.1399 13.875 17 13.7351 17 13.5625C17 13.3899 17.1399 13.25 17.3125 13.25",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M17.3125 13.875C17.4851 13.875 17.625 13.7351 17.625 13.5625C17.625 13.3899 17.4851 13.25 17.3125 13.25",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M17.3125 18.25C17.1399 18.25 17 18.1101 17 17.9375C17 17.7649 17.1399 17.625 17.3125 17.625",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M17.3125 18.25C17.4851 18.25 17.625 18.1101 17.625 17.9375C17.625 17.7649 17.4851 17.625 17.3125 17.625",strokeWidth:o,stroke:"currentColor"})]})},Eg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M17.2667 20.9723L12 17.2856L6.73333 20.9723C6.6397 21.0378 6.52988 21.0764 6.41584 21.0839C6.3018 21.0914 6.18789 21.0674 6.08651 21.0147C5.98512 20.9619 5.90015 20.8824 5.84082 20.7847C5.78149 20.687 5.75007 20.5749 5.75 20.4606V4.16064C5.75 3.82912 5.8817 3.51118 6.11612 3.27676C6.35054 3.04234 6.66848 2.91064 7 2.91064H17C17.3315 2.91064 17.6495 3.04234 17.8839 3.27676C18.1183 3.51118 18.25 3.82912 18.25 4.16064V20.4606C18.2499 20.5749 18.2185 20.687 18.1592 20.7847C18.0999 20.8824 18.0149 20.9619 17.9135 21.0147C17.8121 21.0674 17.6982 21.0914 17.5842 21.0839C17.4701 21.0764 17.3603 21.0378 17.2667 20.9723Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M9.5 2.91162V19.0358",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M14.5 2.91162V19.0358",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Pg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return e==="16"&&t==="16"?i.jsxs("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M11.7377 15.4192L7.97053 12.7822L4.20336 15.4192C4.13638 15.4661 4.05784 15.4937 3.97627 15.499C3.89469 15.5044 3.81322 15.4873 3.7407 15.4495C3.66818 15.4118 3.6074 15.3549 3.56496 15.285C3.52252 15.2152 3.50005 15.135 3.5 15.0532V3.39411C3.5 3.15697 3.5942 2.92955 3.76188 2.76188C3.92955 2.5942 4.15697 2.5 4.39411 2.5H11.5469C11.7841 2.5 12.0115 2.5942 12.1792 2.76188C12.3469 2.92955 12.4411 3.15697 12.4411 3.39411V15.0532C12.441 15.135 12.4185 15.2152 12.3761 15.285C12.3337 15.3549 12.2729 15.4118 12.2004 15.4495C12.1278 15.4873 12.0464 15.5044 11.9648 15.499C11.8832 15.4937 11.8047 15.4661 11.7377 15.4192Z",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M6.18231 2.50098V14.0343",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M9.75873 2.50098V14.0343",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"12.8",cy:"3.11104",r:"2.3",fill:"#BA1E50",stroke:"white"})]}):i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M17.2667 21.9723L12 18.2856L6.73333 21.9723C6.6397 22.0378 6.52988 22.0764 6.41584 22.0839C6.3018 22.0914 6.18789 22.0674 6.08651 22.0147C5.98512 21.9619 5.90015 21.8824 5.84082 21.7847C5.78149 21.687 5.75007 21.5749 5.75 21.4606V5.16064C5.75 4.82912 5.8817 4.51118 6.11612 4.27676C6.35054 4.04234 6.66848 3.91064 7 3.91064H17C17.3315 3.91064 17.6495 4.04234 17.8839 4.27676C18.1183 4.51118 18.25 4.82912 18.25 5.16064V21.4606C18.2499 21.5749 18.2185 21.687 18.1592 21.7847C18.0999 21.8824 18.0149 21.9619 17.9135 22.0147C17.8121 22.0674 17.6982 22.0914 17.5842 22.0839C17.4701 22.0764 17.3603 22.0378 17.2667 21.9723Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M9.5 3.91162V20.0358",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M14.5 3.91162V20.0358",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"19",cy:"5",r:"4",fill:"#BA1E50",stroke:"white",strokeWidth:"2"})]})},Tg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M3.22667 13.1308C4.01013 14.9742 5.49382 16.431 7.35134 17.1805C9.20886 17.9301 11.2881 17.911 13.1315 17.1276C14.975 16.3441 16.4317 14.8604 17.1813 13.0029C17.9308 11.1454 17.9118 9.06617 17.1283 7.2227C16.3449 5.37922 14.8612 3.92248 13.0037 3.17294C11.1461 2.42339 9.06694 2.44244 7.22347 3.2259C5.38 4.00936 3.92325 5.49305 3.17371 7.35057C2.42416 9.20809 2.44322 11.2873 3.22667 13.1308Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M15.5175 15.5167L21.375 21.3751",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Fg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M17.3333 5.01583C18.7245 4.79227 20.1306 4.67518 21.5396 4.66561C21.6606 4.66375 21.7775 4.70975 21.8649 4.79361C21.9506 4.87667 21.9993 4.99071 22 5.11006V19.1261C21.9976 19.3705 21.8 19.5681 21.5556 19.5705C14.184 19.6621 12 21.9989 12 21.9989V7.09406C12 7.09406 9.81778 4.75983 2.46044 4.66561C2.33876 4.66328 2.22112 4.70931 2.13333 4.79361C2.04829 4.87697 2.00026 4.99097 2 5.11006V19.1261C2.00241 19.3705 2.19999 19.5681 2.44444 19.5705C9.816 19.6621 12 21.9989 12 21.9989",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 21.5609C12.1404 20.4089 12.6507 19.3334 13.4542 18.496C14.4882 17.3807 15.8441 16.6154 17.3333 16.3067V2.43734C17.3306 2.29208 17.2542 2.15817 17.1307 2.08178C16.9997 1.99949 16.8395 1.97808 16.6916 2.02312C15.4443 2.38152 14.3226 3.08277 13.4542 4.04712C12.6511 4.88407 12.1408 5.95882 12 7.11023",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},jg=({width:e="24",height:t="24",className:n="",title:r="",role:o=""})=>{const s=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"#000000",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${s}`,role:o||(s?"graphics-document":"img"),children:[!s&&i.jsx("title",{children:r}),i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",stroke:"currentColor",d:"M20.5002 6.50003H3.50002C3.10219 6.50003 2.72065 6.342 2.43934 6.06069C2.15804 5.77938 2 5.39785 2 5.00002C2 4.60219 2.15804 4.22065 2.43934 3.93934C2.72065 3.65804 3.10219 3.5 3.50002 3.5H20.5002C20.898 3.5 21.2796 3.65804 21.5609 3.93934C21.8422 4.22065 22.0002 4.60219 22.0002 5.00002C22.0002 5.39785 21.8422 5.77938 21.5609 6.06069C21.2796 6.342 20.898 6.50003 20.5002 6.50003ZM20.5002 13.5001H3.50002C3.10219 13.5001 2.72065 13.3421 2.43934 13.0608C2.15804 12.7795 2 12.3979 2 12.0001C2 11.6023 2.15804 11.2207 2.43934 10.9394C2.72065 10.6581 3.10219 10.5001 3.50002 10.5001H20.5002C20.898 10.5001 21.2796 10.6581 21.5609 10.9394C21.8422 11.2207 22.0002 11.6023 22.0002 12.0001C22.0002 12.3979 21.8422 12.7795 21.5609 13.0608C21.2796 13.3421 20.898 13.5001 20.5002 13.5001ZM3.50002 20.5002H20.5002C20.898 20.5002 21.2796 20.3422 21.5609 20.0608C21.8422 19.7795 22.0002 19.398 22.0002 19.0002C22.0002 18.6023 21.8422 18.2208 21.5609 17.9395C21.2796 17.6582 20.898 17.5002 20.5002 17.5002H3.50002C3.10219 17.5002 2.72065 17.6582 2.43934 17.9395C2.15804 18.2208 2 18.6023 2 19.0002C2 19.398 2.15804 19.7795 2.43934 20.0608C2.72065 20.3422 3.10219 20.5002 3.50002 20.5002Z"})]})},Og=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M12 8V16",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M8 12H16",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M2 12C2 13.3132 2.25866 14.6136 2.7612 15.8268C3.26375 17.0401 4.00035 18.1425 4.92893 19.0711C5.85752 19.9997 6.95991 20.7362 8.17317 21.2388C9.38642 21.7413 10.6868 22 12 22C13.3132 22 14.6136 21.7413 15.8268 21.2388C17.0401 20.7362 18.1425 19.9997 19.0711 19.0711C19.9997 18.1425 20.7362 17.0401 21.2388 15.8268C21.7413 14.6136 22 13.3132 22 12C22 10.6868 21.7413 9.38642 21.2388 8.17317C20.7362 6.95991 19.9997 5.85752 19.0711 4.92893C18.1425 4.00035 17.0401 3.26375 15.8268 2.7612C14.6136 2.25866 13.3132 2 12 2C10.6868 2 9.38642 2.25866 8.17317 2.7612C6.95991 3.26375 5.85752 4.00035 4.92893 4.92893C4.00035 5.85752 3.26375 6.95991 2.7612 8.17317C2.25866 9.38642 2 10.6868 2 12Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Rg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"#000000",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M9.70831 14.1025L21.375 2.625",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M21.375 9.18417V2.625H14.7083",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12.1042 6.79163H3.35417C3.16078 6.79163 2.97531 6.86845 2.83857 7.00519C2.70182 7.14194 2.625 7.32741 2.625 7.52079V20.6458C2.625 20.8392 2.70182 21.0246 2.83857 21.1614C2.97531 21.2981 3.16078 21.375 3.35417 21.375H16.4792C16.6726 21.375 16.858 21.2981 16.9948 21.1614C17.1315 21.0246 17.2083 20.8392 17.2083 20.6458V11.8958",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Lg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return e==="16"&&t==="16"?i.jsxs("svg",{width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M11.7333 4.11082C12.7071 3.95432 13.6914 3.87236 14.6777 3.86566C14.7624 3.86436 14.8443 3.89656 14.9054 3.95526C14.9654 4.0134 14.9995 4.09323 15 4.17677V13.988C14.9983 14.1591 14.86 14.2974 14.6889 14.2991C9.5288 14.3632 8 15.999 8 15.999V5.56557C8 5.56557 6.47244 3.93162 1.32231 3.86566C1.23713 3.86403 1.15478 3.89625 1.09333 3.95526C1.0338 4.01361 1.00018 4.09341 1 4.17677V13.988C1.00169 14.1591 1.13999 14.2974 1.31111 14.2991C6.4712 14.3632 8 15.999 8 15.999",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M8 15.6926C8.09831 14.8862 8.4555 14.1334 9.01796 13.5472C9.74172 12.7665 10.6909 12.2308 11.7333 12.0147V2.30614C11.7314 2.20446 11.678 2.11072 11.5915 2.05725C11.4998 1.99964 11.3877 1.98466 11.2841 2.01618C10.411 2.26706 9.62585 2.75794 9.01796 3.43298C8.45574 4.01885 8.09857 4.77117 8 5.57716",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"15.8",cy:"3.11104",r:"2.3",fill:"#BA1E50",stroke:"white"})]}):i.jsxs("svg",{width:"29",height:"24",viewBox:"0 0 29 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M17.3333 5.01583C18.7245 4.79227 20.1306 4.67518 21.5396 4.66561C21.6606 4.66375 21.7775 4.70975 21.8649 4.79361C21.9506 4.87667 21.9993 4.99071 22 5.11006V19.1261C21.9976 19.3705 21.8 19.5681 21.5556 19.5705C14.184 19.6621 12 21.9989 12 21.9989V7.09406C12 7.09406 9.81778 4.75983 2.46044 4.66561C2.33876 4.66328 2.22112 4.70931 2.13333 4.79361C2.04829 4.87697 2.00026 4.99097 2 5.11006V19.1261C2.00241 19.3705 2.19999 19.5681 2.44444 19.5705C9.816 19.6621 12 21.9989 12 21.9989",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 21.5609C12.1404 20.4089 12.6507 19.3334 13.4542 18.496C14.4882 17.3807 15.8441 16.6154 17.3333 16.3067V2.43734C17.3306 2.29208 17.2542 2.15817 17.1307 2.08178C16.9997 1.99949 16.8395 1.97808 16.6916 2.02312C15.4443 2.38152 14.3226 3.08277 13.4542 4.04712C12.6511 4.88407 12.1408 5.95882 12 7.11023",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"24",cy:"5",r:"4",fill:"#BA1E50",stroke:"white",strokeWidth:"2"})]})},Dg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",className:n,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 9.34784 20.9464 6.8043 19.0711 4.92893C17.1957 3.05357 14.6522 2 12 2C9.34784 2 6.8043 3.05357 4.92893 4.92893C3.05357 6.8043 2 9.34784 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C6.8043 20.9464 9.34784 22 12 22Z",stroke:"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M15.5 9L11 15L8 12",stroke:"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"})]})},Hg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M4.9375 9.4375H19C19 9.4375 19.9375 9.4375 19.9375 10.375V21.625C19.9375 21.625 19.9375 22.5625 19 22.5625H4.9375C4.9375 22.5625 4 22.5625 4 21.625V10.375C4 10.375 4 9.4375 4.9375 9.4375Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M6.8125 6.15625C6.8125 4.78873 7.35575 3.47721 8.32273 2.51023C9.28971 1.54325 10.6012 1 11.9688 1C13.3363 1 14.6478 1.54325 15.6148 2.51023C16.5818 3.47721 17.125 4.78873 17.125 6.15625V9.4375",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M11.0312 14.5938C11.0312 14.8424 11.13 15.0808 11.3058 15.2567C11.4817 15.4325 11.7201 15.5312 11.9688 15.5312C12.2174 15.5312 12.4558 15.4325 12.6317 15.2567C12.8075 15.0808 12.9062 14.8424 12.9062 14.5938C12.9062 14.3451 12.8075 14.1067 12.6317 13.9308C12.4558 13.755 12.2174 13.6562 11.9688 13.6562C11.7201 13.6562 11.4817 13.755 11.3058 13.9308C11.13 14.1067 11.0312 14.3451 11.0312 14.5938Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M11.9688 15.5312V18.3438",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},_g=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M11.0312 14.5938C11.0312 14.8424 11.13 15.0808 11.3058 15.2567C11.4817 15.4325 11.7201 15.5312 11.9688 15.5312C12.2174 15.5312 12.4558 15.4325 12.6317 15.2567C12.8075 15.0808 12.9062 14.8424 12.9062 14.5938C12.9062 14.3451 12.8075 14.1067 12.6317 13.9308C12.4558 13.755 12.2174 13.6562 11.9688 13.6562C11.7201 13.6562 11.4817 13.755 11.3058 13.9308C11.13 14.1067 11.0312 14.3451 11.0312 14.5938Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M11.9688 15.5312V18.3438",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M4.9375 9.4375H19C19 9.4375 19.9375 9.4375 19.9375 10.375V21.625C19.9375 21.625 19.9375 22.5625 19 22.5625H4.9375C4.9375 22.5625 4 22.5625 4 21.625V10.375C4 10.375 4 9.4375 4.9375 9.4375Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M6.8125 6.15625C6.8125 4.78873 7.35575 3.47721 8.32273 2.51023C9.28971 1.54325 10.6012 1 11.9688 1C13.3363 1 14.6478 1.54325 15.6148 2.51023C16.5818 3.47721 17.125 4.78873 17.125 6.15625V9.4375H6.8125V6.15625Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})};function ba(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ba(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pe(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ba(e))&&(r&&(r+=" "),r+=t);return r}const pl=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,bl=Pe,Be=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return bl(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,l=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],h=s==null?void 0:s[u];if(d===null)return null;const m=pl(d)||pl(h);return o[u][m]}),a=n&&Object.entries(n).reduce((u,d)=>{let[h,m]=d;return m===void 0||(u[h]=m),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:h,className:m,...p}=d;return Object.entries(p).every(b=>{let[x,w]=b;return Array.isArray(w)?w.includes({...s,...a}[x]):{...s,...a}[x]===w})?[...u,h,m]:u},[]);return bl(e,l,c,n==null?void 0:n.class,n==null?void 0:n.className)},Ag=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Vg=(e,t)=>({classGroupId:e,validator:t}),Ca=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),qr="-",Cl=[],Ng="arbitrary..",$g=e=>{const t=Gg(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return zg(l);const a=l.split(qr),c=a[0]===""&&a.length>1?1:0;return wa(a,c,t)},getConflictingClassGroupIds:(l,a)=>{if(a){const c=r[l],u=n[l];return c?u?Ag(u,c):c:u||Cl}return n[l]||Cl}}},wa=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const u=wa(e,t+1,s);if(u)return u}const l=n.validators;if(l===null)return;const a=t===0?e.join(qr):e.slice(t).join(qr),c=l.length;for(let u=0;u<c;u++){const d=l[u];if(d.validator(a))return d.classGroupId}},zg=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Ng+r:void 0})(),Gg=e=>{const{theme:t,classGroups:n}=e;return Bg(n,t)},Bg=(e,t)=>{const n=Ca();for(const r in e){const o=e[r];vs(o,n,r,t)}return n},vs=(e,t,n,r)=>{const o=e.length;for(let s=0;s<o;s++){const l=e[s];Wg(l,t,n,r)}},Wg=(e,t,n,r)=>{if(typeof e=="string"){qg(e,t,n);return}if(typeof e=="function"){Ug(e,t,n,r);return}Kg(e,t,n,r)},qg=(e,t,n)=>{const r=e===""?t:xa(t,e);r.classGroupId=n},Ug=(e,t,n,r)=>{if(Xg(e)){vs(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Vg(n,e))},Kg=(e,t,n,r)=>{const o=Object.entries(e),s=o.length;for(let l=0;l<s;l++){const[a,c]=o[l];vs(c,xa(t,a),n,r)}},xa=(e,t)=>{let n=e;const r=t.split(qr),o=r.length;for(let s=0;s<o;s++){const l=r[s];let a=n.nextPart.get(l);a||(a=Ca(),n.nextPart.set(l,a)),n=a}return n},Xg=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Yg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(s,l)=>{n[s]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let l=n[s];if(l!==void 0)return l;if((l=r[s])!==void 0)return o(s,l),l},set(s,l){s in n?n[s]=l:o(s,l)}}},ts="!",wl=":",Zg=[],xl=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Qg=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let l=0,a=0,c=0,u;const d=o.length;for(let x=0;x<d;x++){const w=o[x];if(l===0&&a===0){if(w===wl){s.push(o.slice(c,x)),c=x+1;continue}if(w==="/"){u=x;continue}}w==="["?l++:w==="]"?l--:w==="("?a++:w===")"&&a--}const h=s.length===0?o:o.slice(c);let m=h,p=!1;h.endsWith(ts)?(m=h.slice(0,-1),p=!0):h.startsWith(ts)&&(m=h.slice(1),p=!0);const b=u&&u>c?u-c:void 0;return xl(s,p,m,b)};if(t){const o=t+wl,s=r;r=l=>l.startsWith(o)?s(l.slice(o.length)):xl(Zg,!1,l,void 0,!0)}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Jg=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let s=0;s<n.length;s++){const l=n[s],a=l[0]==="[",c=t.has(l);a||c?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(l)):o.push(l)}return o.length>0&&(o.sort(),r.push(...o)),r}},em=e=>({cache:Yg(e.cacheSize),parseClassName:Qg(e),sortModifiers:Jg(e),postfixLookupClassGroupIds:tm(e),...$g(e)}),tm=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},nm=/\s+/,rm=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s,postfixLookupClassGroupIds:l}=t,a=[],c=e.trim().split(nm);let u="";for(let d=c.length-1;d>=0;d-=1){const h=c[d],{isExternal:m,modifiers:p,hasImportantModifier:b,baseClassName:x,maybePostfixModifierPosition:w}=n(h);if(m){u=h+(u.length>0?" "+u:u);continue}let k=!!w,v;if(k){const N=x.substring(0,w);v=r(N);const M=v&&l[v]?r(x):void 0;M&&M!==v&&(v=M,k=!1)}else v=r(x);if(!v){if(!k){u=h+(u.length>0?" "+u:u);continue}if(v=r(x),!v){u=h+(u.length>0?" "+u:u);continue}k=!1}const F=p.length===0?"":p.length===1?p[0]:s(p).join(":"),j=b?F+ts:F,y=j+v;if(a.indexOf(y)>-1)continue;a.push(y);const A=o(v,k);for(let N=0;N<A.length;++N){const M=A[N];a.push(j+M)}u=h+(u.length>0?" "+u:u)}return u},om=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=ya(n))&&(o&&(o+=" "),o+=r);return o},ya=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=ya(e[r]))&&(n&&(n+=" "),n+=t);return n},sm=(e,...t)=>{let n,r,o,s;const l=c=>{const u=t.reduce((d,h)=>h(d),e());return n=em(u),r=n.cache.get,o=n.cache.set,s=a,a(c)},a=c=>{const u=r(c);if(u)return u;const d=rm(c,n);return o(c,d),d};return s=l,(...c)=>s(om(...c))},lm=[],st=e=>{const t=n=>n[e]||lm;return t.isThemeGetter=!0,t},va=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Sa=/^\((?:(\w[\w-]*):)?(.+)\)$/i,im=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,am=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cm=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,um=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,dm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,en=e=>im.test(e),Ee=e=>!!e&&!Number.isNaN(Number(e)),_t=e=>!!e&&Number.isInteger(Number(e)),To=e=>e.endsWith("%")&&Ee(e.slice(0,-1)),qt=e=>am.test(e),ka=()=>!0,hm=e=>cm.test(e)&&!um.test(e),Ss=()=>!1,gm=e=>dm.test(e),mm=e=>fm.test(e),pm=e=>!de(e)&&!he(e),bm=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Cm=e=>un(e,Ea,Ss),de=e=>va.test(e),hn=e=>un(e,Pa,hm),yl=e=>un(e,Mm,Ee),wm=e=>un(e,Fa,ka),xm=e=>un(e,Ta,Ss),vl=e=>un(e,Ia,Ss),ym=e=>un(e,Ma,mm),Rr=e=>un(e,ja,gm),he=e=>Sa.test(e),rr=e=>xn(e,Pa),vm=e=>xn(e,Ta),Sl=e=>xn(e,Ia),Sm=e=>xn(e,Ea),km=e=>xn(e,Ma),Lr=e=>xn(e,ja,!0),Im=e=>xn(e,Fa,!0),un=(e,t,n)=>{const r=va.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},xn=(e,t,n=!1)=>{const r=Sa.exec(e);return r?r[1]?t(r[1]):n:!1},Ia=e=>e==="position"||e==="percentage",Ma=e=>e==="image"||e==="url",Ea=e=>e==="length"||e==="size"||e==="bg-size",Pa=e=>e==="length",Mm=e=>e==="number",Ta=e=>e==="family-name",Fa=e=>e==="number"||e==="weight",ja=e=>e==="shadow",Em=()=>{const e=st("color"),t=st("font"),n=st("text"),r=st("font-weight"),o=st("tracking"),s=st("leading"),l=st("breakpoint"),a=st("container"),c=st("spacing"),u=st("radius"),d=st("shadow"),h=st("inset-shadow"),m=st("text-shadow"),p=st("drop-shadow"),b=st("blur"),x=st("perspective"),w=st("aspect"),k=st("ease"),v=st("animate"),F=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],y=()=>[...j(),he,de],A=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],M=()=>[he,de,c],P=()=>[en,"full","auto",...M()],R=()=>[_t,"none","subgrid",he,de],_=()=>["auto",{span:["full",_t,he,de]},_t,he,de],O=()=>[_t,"auto",he,de],D=()=>["auto","min","max","fr",he,de],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],E=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...M()],L=()=>[en,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],$=()=>[en,"screen","full","dvw","lvw","svw","min","max","fit",...M()],G=()=>[en,"screen","full","lh","dvh","lvh","svh","min","max","fit",...M()],S=()=>[e,he,de],H=()=>[...j(),Sl,vl,{position:[he,de]}],z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],q=()=>["auto","cover","contain",Sm,Cm,{size:[he,de]}],U=()=>[To,rr,hn],Q=()=>["","none","full",u,he,de],X=()=>["",Ee,rr,hn],W=()=>["solid","dashed","dotted","double"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>[Ee,To,Sl,vl],J=()=>["","none",b,he,de],ne=()=>["none",Ee,he,de],Z=()=>["none",Ee,he,de],oe=()=>[Ee,he,de],ee=()=>[en,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[qt],breakpoint:[qt],color:[ka],container:[qt],"drop-shadow":[qt],ease:["in","out","in-out"],font:[pm],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[qt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[qt],shadow:[qt],spacing:["px",Ee],text:[qt],"text-shadow":[qt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",en,de,he,w]}],container:["container"],"container-type":[{"@container":["","normal","size",he,de]}],"container-named":[bm],columns:[{columns:[Ee,de,he,a]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{"inset-s":P(),start:P()}],end:[{"inset-e":P(),end:P()}],"inset-bs":[{"inset-bs":P()}],"inset-be":[{"inset-be":P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[_t,"auto",he,de]}],basis:[{basis:[en,"full","auto",a,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ee,en,"auto","initial","none",de]}],grow:[{grow:["",Ee,he,de]}],shrink:[{shrink:["",Ee,he,de]}],order:[{order:[_t,"first","last","none",he,de]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:_()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:_()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...V(),"normal"]}],"justify-items":[{"justify-items":[...E(),"normal"]}],"justify-self":[{"justify-self":["auto",...E()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...E(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...E(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...E(),"baseline"]}],"place-self":[{"place-self":["auto",...E()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pbs:[{pbs:M()}],pbe:[{pbe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mbs:[{mbs:T()}],mbe:[{mbe:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],"inline-size":[{inline:["auto",...$()]}],"min-inline-size":[{"min-inline":["auto",...$()]}],"max-inline-size":[{"max-inline":["none",...$()]}],"block-size":[{block:["auto",...G()]}],"min-block-size":[{"min-block":["auto",...G()]}],"max-block-size":[{"max-block":["none",...G()]}],w:[{w:[a,"screen",...L()]}],"min-w":[{"min-w":[a,"screen","none",...L()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[l]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",n,rr,hn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Im,wm]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",To,de]}],"font-family":[{font:[vm,xm,t]}],"font-features":[{"font-features":[de]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,he,de]}],"line-clamp":[{"line-clamp":[Ee,"none",he,yl]}],leading:[{leading:[s,...M()]}],"list-image":[{"list-image":["none",he,de]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",he,de]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ee,"from-font","auto",he,hn]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[Ee,"auto",he,de]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"tab-size":[{tab:[_t,he,de]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",he,de]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",he,de]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:H()}],"bg-repeat":[{bg:z()}],"bg-size":[{bg:q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},_t,he,de],radial:["",he,de],conic:[_t,he,de]},km,ym]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:U()}],"gradient-via-pos":[{via:U()}],"gradient-to-pos":[{to:U()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-bs":[{"border-bs":X()}],"border-w-be":[{"border-be":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-bs":[{"border-bs":S()}],"border-color-be":[{"border-be":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ee,he,de]}],"outline-w":[{outline:["",Ee,rr,hn]}],"outline-color":[{outline:S()}],shadow:[{shadow:["","none",d,Lr,Rr]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",h,Lr,Rr]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[Ee,hn]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":S()}],"text-shadow":[{"text-shadow":["none",m,Lr,Rr]}],"text-shadow-color":[{"text-shadow":S()}],opacity:[{opacity:[Ee,he,de]}],"mix-blend":[{"mix-blend":[...K(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":K()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":Y()}],"mask-image-linear-to-pos":[{"mask-linear-to":Y()}],"mask-image-linear-from-color":[{"mask-linear-from":S()}],"mask-image-linear-to-color":[{"mask-linear-to":S()}],"mask-image-t-from-pos":[{"mask-t-from":Y()}],"mask-image-t-to-pos":[{"mask-t-to":Y()}],"mask-image-t-from-color":[{"mask-t-from":S()}],"mask-image-t-to-color":[{"mask-t-to":S()}],"mask-image-r-from-pos":[{"mask-r-from":Y()}],"mask-image-r-to-pos":[{"mask-r-to":Y()}],"mask-image-r-from-color":[{"mask-r-from":S()}],"mask-image-r-to-color":[{"mask-r-to":S()}],"mask-image-b-from-pos":[{"mask-b-from":Y()}],"mask-image-b-to-pos":[{"mask-b-to":Y()}],"mask-image-b-from-color":[{"mask-b-from":S()}],"mask-image-b-to-color":[{"mask-b-to":S()}],"mask-image-l-from-pos":[{"mask-l-from":Y()}],"mask-image-l-to-pos":[{"mask-l-to":Y()}],"mask-image-l-from-color":[{"mask-l-from":S()}],"mask-image-l-to-color":[{"mask-l-to":S()}],"mask-image-x-from-pos":[{"mask-x-from":Y()}],"mask-image-x-to-pos":[{"mask-x-to":Y()}],"mask-image-x-from-color":[{"mask-x-from":S()}],"mask-image-x-to-color":[{"mask-x-to":S()}],"mask-image-y-from-pos":[{"mask-y-from":Y()}],"mask-image-y-to-pos":[{"mask-y-to":Y()}],"mask-image-y-from-color":[{"mask-y-from":S()}],"mask-image-y-to-color":[{"mask-y-to":S()}],"mask-image-radial":[{"mask-radial":[he,de]}],"mask-image-radial-from-pos":[{"mask-radial-from":Y()}],"mask-image-radial-to-pos":[{"mask-radial-to":Y()}],"mask-image-radial-from-color":[{"mask-radial-from":S()}],"mask-image-radial-to-color":[{"mask-radial-to":S()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":j()}],"mask-image-conic-pos":[{"mask-conic":[Ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":Y()}],"mask-image-conic-to-pos":[{"mask-conic-to":Y()}],"mask-image-conic-from-color":[{"mask-conic-from":S()}],"mask-image-conic-to-color":[{"mask-conic-to":S()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:H()}],"mask-repeat":[{mask:z()}],"mask-size":[{mask:q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",he,de]}],filter:[{filter:["","none",he,de]}],blur:[{blur:J()}],brightness:[{brightness:[Ee,he,de]}],contrast:[{contrast:[Ee,he,de]}],"drop-shadow":[{"drop-shadow":["","none",p,Lr,Rr]}],"drop-shadow-color":[{"drop-shadow":S()}],grayscale:[{grayscale:["",Ee,he,de]}],"hue-rotate":[{"hue-rotate":[Ee,he,de]}],invert:[{invert:["",Ee,he,de]}],saturate:[{saturate:[Ee,he,de]}],sepia:[{sepia:["",Ee,he,de]}],"backdrop-filter":[{"backdrop-filter":["","none",he,de]}],"backdrop-blur":[{"backdrop-blur":J()}],"backdrop-brightness":[{"backdrop-brightness":[Ee,he,de]}],"backdrop-contrast":[{"backdrop-contrast":[Ee,he,de]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ee,he,de]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ee,he,de]}],"backdrop-invert":[{"backdrop-invert":["",Ee,he,de]}],"backdrop-opacity":[{"backdrop-opacity":[Ee,he,de]}],"backdrop-saturate":[{"backdrop-saturate":[Ee,he,de]}],"backdrop-sepia":[{"backdrop-sepia":["",Ee,he,de]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",he,de]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ee,"initial",he,de]}],ease:[{ease:["linear","initial",k,he,de]}],delay:[{delay:[Ee,he,de]}],animate:[{animate:["none",v,he,de]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,he,de]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:Z()}],"scale-x":[{"scale-x":Z()}],"scale-y":[{"scale-y":Z()}],"scale-z":[{"scale-z":Z()}],"scale-3d":["scale-3d"],skew:[{skew:oe()}],"skew-x":[{"skew-x":oe()}],"skew-y":[{"skew-y":oe()}],transform:[{transform:[he,de,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ee()}],"translate-x":[{"translate-x":ee()}],"translate-y":[{"translate-y":ee()}],"translate-z":[{"translate-z":ee()}],"translate-none":["translate-none"],zoom:[{zoom:[_t,he,de]}],accent:[{accent:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",he,de]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":S()}],"scrollbar-track-color":[{"scrollbar-track":S()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mbs":[{"scroll-mbs":M()}],"scroll-mbe":[{"scroll-mbe":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pbs":[{"scroll-pbs":M()}],"scroll-pbe":[{"scroll-pbe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",he,de]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[Ee,rr,hn,yl]}],stroke:[{stroke:["none",...S()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},rt=sm(Em);function Oa(){return Math.floor(Math.random()*1e7)}const Ra=(e,t,n,r,o)=>{const s=`preflight ${n}`;return{settings:i.jsx(yg,{width:e,height:t,className:s,title:r,role:o}),questionCircle:i.jsx(xg,{width:e,height:t,className:s,title:r,role:o}),notifications:i.jsx(Cg,{width:e,height:t,className:s,title:r,role:o}),flag:i.jsx(bg,{width:e,height:t,className:s,title:r,role:o}),edit:i.jsx(pg,{width:e,height:t,className:s,title:r,role:o}),infoCircle:i.jsx(Cs,{width:e,height:t,className:s,title:r,role:o}),delete:i.jsx(kg,{width:e,height:t,className:s,title:r,role:o}),resourceCenter:i.jsx(Fg,{width:e,height:t,className:s,title:r,role:o}),search:i.jsx(Tg,{width:e,height:t,className:s,title:r,role:o}),error:i.jsx(ys,{width:e,height:t,className:s,title:r,role:o}),warning:i.jsx(xs,{width:e,height:t,className:s,title:r,role:o}),dropdown:i.jsx(Ig,{width:e,height:t,className:s,title:r,role:o}),calendar:i.jsx(Mg,{width:e,height:t,className:s,title:r,role:o}),bookmark:i.jsx(Eg,{width:e,height:t,className:s,title:r,role:o}),menu:i.jsx(jg,{width:e,height:t,className:s,title:r,role:o}),add:i.jsx(Og,{width:e,height:t,className:s,title:r,role:o}),exclude:i.jsx(Sg,{width:e,height:t,className:s,title:r,role:o}),email:i.jsx(vg,{width:e,height:t,className:s,title:r,role:o}),close:i.jsx(mg,{width:e,height:t,className:s,title:r,role:o}),checkCircle:i.jsx(ws,{width:e,height:t,className:s,title:r,role:o}),linkNewTab:i.jsx(Rg,{width:e,height:t,className:s,title:r,role:o}),lockOpened:i.jsx(Hg,{width:e,height:t,className:s,title:r,role:o}),lockClosed:i.jsx(_g,{width:e,height:t,className:s,title:r,role:o}),check:i.jsx(Dg,{width:e,height:t,className:s,title:r,role:o})}},La=(e,t,n,r,o)=>{const s=`preflight ${n}`;return{notifications:i.jsx(wg,{width:e,height:t,className:s,title:r,role:o}),resourceCenter:i.jsx(Lg,{width:e,height:t,className:s,title:r,role:o}),bookmark:i.jsx(Pg,{width:e,height:t,className:s,title:r,role:o})}},Da=(e,t,n,r,o,s)=>{const l=`preflight ${n}`;return{infoCircle:i.jsx(Cs,{width:e,height:t,className:l,title:r,role:o,filled:s}),error:i.jsx(ys,{width:e,height:t,className:l,title:r,role:o,filled:s}),warning:i.jsx(xs,{width:e,height:t,className:l,title:r,role:o,filled:s}),checkCircle:i.jsx(ws,{width:e,height:t,className:l,title:r,role:o,filled:s})}},$t=({size:e="small",name:t,hasIndicator:n=!1,className:r,altText:o,role:s=void 0,filled:l=!1})=>{const a={small:{width:"16",height:"16"},medium:{width:"24",height:"24"}},c=Ra(a[e].width,a[e].height,r,o,s),u=La(a[e].width,a[e].height,r,o,s),d=Da(a[e].width,a[e].height,r,o,s,l),h=n&&!l?u[t]||c[t]:l&&d[t]||c[t];return i.jsx(i.Fragment,{children:h})};Object.keys(Ra()).sort((e,t)=>e.localeCompare(t));Object.keys(La()).sort((e,t)=>e.localeCompare(t));Object.keys(Da()).sort((e,t)=>e.localeCompare(t));const pr=(...e)=>rt(Pe(...e)),Pm=Be("ds:rounded-full ds:border-t-acuity-blue ds:border-x-acuity-blue ds:border-b-neutrals-transparent ds:border-solid ds:animate-spin",{variants:{size:{small:["ds:w-4","ds:h-4","ds:border"],medium:["ds:w-5","ds:h-5","ds:border-2"],large:["ds:w-7","ds:h-7","ds:border-[3px]"],"extra-large":["ds:w-[6.5rem]","ds:h-[6.5rem]","ds:border-[6px]"]}}}),Tm=Be("preflight ds:inline-block ds:rounded ds:focus-visible:outline-hidden ds:focus-visible:ring-2 ds:focus-visible:ring-acuity-blue",{variants:{size:{small:"ds:p-1",medium:"ds:p-2",large:"ds:p-3","extra-large":"ds:p-4"}}}),Ur=({size:e="medium",focusable:t=!0,label:n="",ariaLive:r="assertive",className:o="",spinnerClassName:s=""})=>i.jsx("div",{tabIndex:t?0:void 0,"aria-label":n,"aria-live":r,className:t?pr(Tm({size:e}),o):`preflight ds:rounded ${o}`,role:"status",children:i.jsx("div",{className:pr(Pm({size:e}),s)})}),Ha=(e,t,n)=>{if(t){e.preventDefault();return}n(e)},ao=(e,t,n)=>{if(t){e.preventDefault();return}n(e)},Fm=(e,t,n)=>{if(t){e.preventDefault();return}n(e)},jm=(e,t,n)=>{if(t&&e.key!=="Tab"){e.preventDefault();return}n(e)},Om=(e,t,n)=>{if(t){e.preventDefault();return}n(e)},Rm=Be(["preflight","ds:font-sans!","ds:rounded","ds:text-base","ds:font-semibold","ds:border","ds:transition","ds:duration-100","ds:text-nowrap","ds:focus-visible:border","ds:focus-visible:ring-2","ds:focus-visible:outline-hidden","ds:focus-visible:ring-offset-2"],{variants:{variant:{default:["ds:p-[10px]","ds:relative","ds:group"],small:["ds:p-1"]},isTransparent:{false:"",true:""},disabled:{false:["ds:text-neutrals-black","ds:hover:bg-neutrals-transparent-light","ds:hover:border-neutrals-transparent","ds:active:bg-neutrals-transparent-medium","ds:active:border-neutrals-transparent","ds:focus-visible:bg-neutrals-transparent-light","ds:focus-visible:border-neutrals-dark","ds:focus-visible:ring-neutrals-black"],true:["ds:bg-neutrals-transparent-light","ds:text-neutrals-dark","ds:border-neutrals-transparent","ds:cursor-not-allowed","ds:focus-visible:border-neutrals-light","ds:focus-visible:ring-neutrals-black"]}},compoundVariants:[{isTransparent:!0,disabled:!1,className:["ds:bg-neutrals-transparent","ds:border-neutrals-transparent"]},{isTransparent:!1,disabled:!1,className:["ds:bg-neutrals-white","ds:border-neutrals-white"]}]}),co=({variant:e="default",label:t="",disabled:n=!1,className:r="",onClick:o,iconName:s,iconSize:l="medium",hasIndicator:a=!1,hasTooltip:c=!0,isTransparent:u=!0,iconColor:d="",stateful:h=!1,...m})=>{const p=h||n;return i.jsxs("button",{onClick:b=>ao(b,p,o),"aria-disabled":p,"aria-label":t,"aria-pressed":h,"aria-live":h?"assertive":"off",className:pr(Rm({variant:e,isTransparent:u,disabled:p}),r),...m,children:[h&&e==="default"?i.jsx(Ur,{size:"medium",focusable:!1,label:t,ariaLive:"off"}):i.jsx($t,{size:e==="small"?"small":l,name:s!=null?s:"edit",hasIndicator:a,className:n?"ds:text-neutrals-dark":d&&d!==""?d:"ds:text-neutrals-black",altText:t}),e==="default"&&c&&i.jsx("div",{"aria-hidden":"true",className:`${p?"ds:group-hover:hidden":"ds:group-hover:block ds:group-active:block"} ds:absolute ds:left-1/2 ds:top-[3.5rem] ds:z-10 ds:hidden ds:-translate-x-1/2 ds:cursor-default ds:text-nowrap ds:rounded ds:bg-neutrals-darker ds:px-2 ds:py-1 ds:text-sm ds:font-normal ds:text-neutrals-white ds:transition-all ds:duration-100 ds:group-focus-visible:block`,children:t})]})},Lm=Be(["preflight","ds:flex","ds:w-full","ds:flex-row","ds:justify-between","ds:rounded","ds:pl-5","ds:pr-[14px]","ds:py-4","ds:font-sans!"],{variants:{variant:{success:["ds:bg-success-green-lightest","ds:text-success-green-darkest"],info:["ds:bg-information-blue-lightest","ds:text-information-blue-darkest"],warning:["ds:bg-warning-yellow-lightest","ds:text-neutrals-darker"],error:["ds:bg-danger-red-lightest","ds:text-danger-red-darkest"]}}}),Dm=e=>rt(Lm(e)),Hm=Be("",{variants:{variant:{success:"ds:text-success-green-dark",info:"ds:text-information-blue-dark",warning:"ds:text-warning-yellow-darkest",error:"ds:text-danger-red-dark"}}}),kl=e=>rt(Hm(e)),_m=Be("",{variants:{variant:{success:["ds:text-success-green-darkest","ds:stroke-success-green-darkest"],info:["ds:text-information-blue-darkest","ds:stroke-information-blue-darkest"],warning:["ds:text-neutrals-darker","ds:stroke-neutrals-darker"],error:["ds:text-danger-red-darkest","ds:stroke-danger-red-darkest"]}}}),kn=e=>rt(_m(e)),_a=({variant:e="info",isDismissible:t=!0,showIcon:n=!0,titleSize:r="large",title:o="",description:s="",content:l=void 0,closeAriaLabel:a="Close button",id:c="alert_"+Oa().toString(),handleClose:u,className:d="",...h})=>{const m={success:i.jsx(ws,{className:kn({variant:e})}),info:i.jsx(Cs,{className:kn({variant:e})}),warning:i.jsx(xs,{className:kn({variant:e})}),error:i.jsx(ys,{className:kn({variant:e})})},p=()=>l!==void 0&&s!==""&&!(r!=="none"||o!==""),b=()=>r==="large"?"ds:flex-col ds:flex ds:gap-3":r==="small"?"ds:flex-row ds:flex ds:gap-3":"ds:flex";return i.jsxs("div",{id:c,className:rt(Dm({variant:e}),d),...h,children:[i.jsxs("div",{className:"ds:flex ds:flex-row",children:[n&&i.jsx("div",{className:`ds:flex ds:pr-2 ${r==="large"&&o!==""&&"ds:h-[1.75rem] ds:items-center"}`,children:m[e]}),i.jsxs("div",{className:`ds:flex ds:flex-col ${r!=="none"&&o!==""?"ds:gap-3":"ds:justify-center"}`,children:[i.jsxs("div",{className:b(),children:[r!=="none"&&o!==""&&i.jsx("h1",{className:r==="large"?"ds:text-xl ds:font-semibold":"ds:hidden",children:o}),i.jsxs("div",{className:kl({variant:e}),children:[r!=="none"&&o!==""&&i.jsx("span",{className:`${kn({variant:e})} ${r==="small"&&o!==""?"ds:pr-2 ds:text-base ds:font-semibold":"ds:hidden"}`,children:o}),i.jsx("span",{className:`${r==="none"||o===""?"ds:mb-3":""}`,children:s})]})]}),l&&i.jsx("div",{className:`${kl({variant:e})} ${p()?"ds:mt-3":""}`,children:l})]})]}),t===!0&&i.jsx("div",{className:"ds:-mt-2 ds:h-5",children:i.jsx(co,{variant:"default",iconSize:"small",iconName:"close",hasTooltip:!1,label:a,disabled:!1,iconColor:kn({variant:e}),onClick:u})})]})},Aa=["preflight","ds:font-sans!","ds:rounded","ds:text-base","ds:font-semibold","ds:border","ds:transition","ds:duration-100","ds:text-nowrap","ds:focus-visible:ring-2","ds:focus-visible:outline-hidden","ds:focus-visible:ring-offset-2"],Am=["ds:bg-neutrals-lighter!","ds:text-neutrals-dark!","ds:border-neutrals-light!","ds:cursor-not-allowed!","ds:hover:bg-neutrals-lighter!","ds:hover:border-neutrals-light!","ds:hover:text-neutrals-dark!","ds:focus-visible:ring-neutrals-black!","ds:focus-visible:border-neutrals-light!"],Vm=[...Aa,"ds:p-1","ds:bg-neutrals-lighter!","ds:text-neutrals-dark!","ds:cursor-not-allowed!","ds:border-neutrals-lighter","ds:focus:border-neutrals-light","ds:focus-visible:ring-neutrals-black","ds:focus-visible:border-neutrals-light!","ds:active:border-neutrals-lighter"],Nm=Be(Aa,{variants:{variant:{primary:["ds:py-3","ds:px-4","ds:text-neutrals-white","ds:bg-acuity-blue","ds:border-acuity-blue","ds:hover:bg-acuity-blue-dark","ds:hover:border-acuity-blue-dark","ds:active:bg-acuity-blue-darkest","ds:active:border-acuity-blue-darkest","ds:active:text-neutrals-white","ds:focus-visible:text-neutrals-black","ds:focus-visible:bg-acuity-blue-light","ds:focus-visible:border-acuity-blue"],secondary:["ds:py-3","ds:px-4","ds:text-neutrals-black","ds:bg-neutrals-white","ds:border-neutrals","ds:hover:bg-neutrals-lighter","ds:hover:border-neutrals-darker","ds:active:bg-neutrals-dark","ds:active:border-neutrals-dark","ds:active:text-neutrals-white","ds:focus-visible:text-neutrals-black","ds:focus-visible:bg-neutrals-lighter","ds:focus-visible:border-neutrals-black","ds:focus-visible:ring-neutrals-black"],danger:["ds:py-3","ds:px-4","ds:text-neutrals-white","ds:bg-danger-red","ds:border-danger-red","ds:hover:bg-danger-red-dark","ds:hover:border-danger-red-dark","ds:active:bg-danger-red-darkest","ds:active:border-danger-red-darkest","ds:active:text-neutrals-white","ds:focus-visible:text-neutrals-black","ds:focus-visible:bg-danger-red-lighter","ds:focus-visible:border-danger-red-darkest"],inline:["ds:p-1","ds:text-neutrals-black","ds:bg-neutrals-white","ds:border-neutrals-white","ds:hover:bg-neutrals-lighter","ds:hover:border-neutrals-lighter","ds:active:bg-neutrals-dark","ds:active:border-neutrals-dark","ds:active:text-neutrals-white","ds:focus-visible:text-neutrals-black","ds:focus-visible:bg-neutrals-lighter","ds:focus-visible:border-neutrals-dark","ds:focus-visible:ring-neutrals-black"]},disabled:{true:Am,false:[]}},compoundVariants:[{variant:"primary",disabled:!1,class:"ds:focus-visible:ring-acuity-blue"},{variant:"danger",disabled:!1,class:"ds:focus-visible:ring-danger-red-darkest"},{variant:["primary","danger"],disabled:!0,class:"ds:focus-visible:ring-neutrals-black"}]}),$m=(e,t,n)=>e==="inline"&&t===!0?pr(Vm):pr(Nm({variant:e,disabled:t}),n),Va=({variant:e="primary",text:t,label:n="",disabled:r=!1,className:o="",onClick:s,iconName:l,iconIndicator:a=!1,leadingIcon:c=!1,trailingIcon:u=!1,stateful:d=!1,...h})=>{const m=d||r;return i.jsx(i.Fragment,{children:i.jsx("button",{"aria-disabled":m,"aria-pressed":d,onClick:p=>ao(p,m,s),className:$m(e,m,o),"aria-label":n,"aria-live":d?"assertive":"off",...h,children:i.jsxs("div",{className:"ds:flex ds:flex-wrap ds:content-center ds:justify-center",children:[c&&(d?i.jsx(Ur,{size:"small",className:"ds:mr-2 ds:self-center",spinnerClassName:"ds:border-t-current ds:border-x-current ds:border-b-transparent",focusable:!1,label:n,ariaLive:"off"}):i.jsx($t,{size:"small",name:l!=null?l:"edit",hasIndicator:a,className:"ds:mr-2 ds:self-center",altText:""})),i.jsx("span",{children:t}),u&&(d?i.jsx(Ur,{size:"small",className:"ds:ml-2 ds:self-center",spinnerClassName:"ds:border-t-current ds:border-x-current ds:border-b-transparent",focusable:!1,ariaLive:"off",label:n}):i.jsx($t,{size:"small",name:l!=null?l:"edit",hasIndicator:a,className:"ds:ml-2 ds:self-center",altText:""}))]})})})},zm=({content:e=void 0,iconName:t=void 0,title:n="",footer:r=void 0,className:o="",...s})=>i.jsxs("div",{...s,className:rt("preflight ds:flex ds:flex-col ds:items-start ds:gap-6 ds:rounded-lg ds:border ds:border-neutrals-light ds:p-5",o),children:[n&&i.jsxs("div",{className:"ds:flex ds:flex-row ds:items-center ds:gap-3",children:[t&&i.jsx($t,{size:"medium",name:t,className:"ds:text-neutrals-darker",hasIndicator:!1,altText:t}),i.jsx(Is,{size:"small",text:n,hasMarginBottom:!1})]}),e&&i.jsx("div",{className:"ds:w-full ds:text-base",children:e}),r&&i.jsx("div",{children:r})]}),Gm=Be(["preflight","ds:h-4","ds:w-4","ds:focus:ring-acuity-blue","ds:border-neutrals","ds:border","ds:border-solid"],{variants:{disabled:{false:["ds:text-acuity-blue","ds:bg-neutrals-white","ds:hover:border-acuity-blue","ds:hover:bg-acuity-blue-lightest","ds:hover:text-acuity-blue-dark","ds:active:border-acuity-blue-darkest","ds:active:bg-acuity-blue-darkest","ds:active:text-acuity-blue-darkest","ds:cursor-pointer"],true:["ds:text-neutrals","ds:bg-neutrals-lighter"]}}}),Na=e=>rt(Gm(e)),Bm=Be(["preflight","ds:font-sans!","ds:ml-2","ds:text-base"],{variants:{disabled:{false:"ds:cursor-pointer",true:"ds:text-neutrals"}}}),$a=e=>rt(Bm(e)),ks={variants:{state:{default:["ds:border-neutrals","ds:text-neutrals-darker","ds:focus:border-acuity-blue","ds:focus:ring-acuity-blue","ds:focus:ring-offset-2","ds:focus:ring-2"],error:["ds:border-danger-red","ds:text-danger-red-darkest","ds:focus:border-danger-red","ds:focus:ring-danger-red-dark","ds:focus:ring-offset-2","ds:focus:ring-2"],success:["ds:border-success-green","ds:text-neutrals-darker","ds:focus:border-success-green","ds:focus:ring-success-green-dark","ds:focus:ring-offset-2","ds:focus:ring-2"]},disabled:{true:["ds:border-neutrals!","ds:text-neutrals-darker!","ds:bg-neutrals-lighter!","ds:focus:border-neutrals!","ds:focus:ring-neutrals-dark!","ds:cursor-not-allowed"]}}},Wm=({id:e,label:t="",name:n="",checked:r=!1,disabled:o=!1,indeterminate:s=!1,onChange:l=()=>{},onClick:a=()=>{},...c})=>{const u=c["aria-label"]||t||"checkbox_"+e;return i.jsxs("div",{className:"ds:flex",children:[i.jsx("input",{id:e,name:n,"aria-label":u,"aria-disabled":o,type:"checkbox",className:`ds:form-checkbox ds:mt-1 ${Na({disabled:o})} ds:rounded`,checked:r,ref:d=>{d&&(d.indeterminate=s)},onClick:d=>ao(d,o,a),onChange:d=>Ha(d,o,l),...c}),t&&i.jsx("label",{htmlFor:e,className:$a({disabled:o}),children:t})]})},qm=e=>["Zero","One","Two","Three","Four","Five","Six","Seven","Eight","Nine"][e]||e.toString(),Um=({children:e,className:t="",onClick:n,successTitle:r,successDescription:o,errorTitle:s,buttonText:l,...a})=>{const c="formValidation_"+Oa().toString(),[u,d]=se.useState(!1),[h,m]=se.useState(!1),[p,b]=se.useState(""),[x,w]=se.useState(!0),[k,v]=se.useState(""),[F,j]=se.useState("success"),y=32,A=se.useMemo(()=>g.default.Children.toArray(e).filter(O=>g.default.isValidElement(O)),[e]),N=O=>{n(O),w(!1),m(!0),R(c)},M=O=>D=>{O&&O(D),x||d(!0)},P=g.default.Children.map(e,O=>{if(g.default.isValidElement(O)){const V=O;return g.default.cloneElement(V,{onBlur:M(V.props.onBlur)})}return O}),R=se.useCallback(O=>{const D=document.getElementById(O);if(D){const V=D.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:V-y,behavior:"smooth"})}},[y]),_=se.useCallback(O=>{s?v(s):O==1?v("An error was found in the information you submitted"):v(`${qm(O)} errors were found in the information you submitted`)},[s]);return se.useEffect(()=>{if(u||h){const O=A.filter(D=>D.props.state=="error");O.length==0?u?w(!0):(j("success"),b(o),v(r)):u&&F=="success"?w(!0):(j("error"),b(i.jsx("ul",{children:O.map((D,V)=>i.jsx("li",{children:i.jsxs("span",{onClick:()=>R("label_"+D.props.id),children:[O.length>1?`${V+1}. `:"",D.props.message]})},D.props.id))})),_(O.length)),d(!1),m(!1)}},[A,R,_,o,r,u,h,F]),i.jsxs("div",{className:`prelight ${t}`,id:c,...a,children:[!x&&i.jsx("div",{className:"preflight ds:mb-6 ds:rounded",children:i.jsx(_a,{description:p,isDismissible:F=="success",title:k,titleSize:F=="success"?"small":"large",variant:F,handleClose:()=>{w(!0)}})}),P,i.jsx(Va,{text:l,onClick:N})]})},yn="large",Bn="medium",Wn="small",qn="extra-large",Il="h1",Km="h2",Xm="h3",Ym="div";function Zm(e){return{[yn]:Il,[Bn]:Km,[Wn]:Xm,[qn]:Ym}[e]||Il}const Qm=Be("preflight ds:font-sans!",{variants:{size:{[Wn]:"ds:mb-3",[Bn]:"ds:mb-5",[yn]:"ds:mb-5",[qn]:"ds:mb-6"}}}),Dr=Be("ds:text-neutrals-darker ds:font-sans!",{variants:{size:{[Wn]:"ds:text-xl ds:font-semibold",[Bn]:"ds:text-2xl ds:font-semibold",[yn]:"ds:text-3xl ds:font-bold",[qn]:"ds:text-4xl ds:font-semibold"}}}),Jm=Be("ds:mt-0 ds:font-bold ds:text-neutrals-dark",{variants:{size:{[Wn]:"ds:mb-1 ds:text-sm",[Bn]:"ds:mb-2 ds:text-sm",[yn]:"ds:mb-2 ds:text-base",[qn]:"ds:mb-3 ds:text-base"}}}),ep=Be("ds:mb-0 ds:text-neutrals-dark",{variants:{size:{[Wn]:"ds:mt-1 ds:text-base",[Bn]:"ds:mt-2 ds:text-base",[yn]:"ds:mt-2 ds:text-base",[qn]:"ds:mt-3 ds:text-base"}}}),tp=Be("ds:text-neutrals-light",{variants:{size:{[Wn]:"ds:mt-2",[Bn]:"ds:mt-2",[yn]:"ds:mt-2",[qn]:"ds:mt-3"}}}),Is=({size:e=yn,className:t="",text:n="",descriptionTop:r="",descriptionBottom:o="",hasHorizontalRule:s=!1,hasMarginBottom:l=!0,headingTag:a,...c})=>{const u=r?i.jsx("p",{className:Jm({size:e}),children:r}):null,d=o?i.jsx("p",{className:ep({size:e}),children:o}):null,h=s?i.jsx("hr",{className:tp({size:e})}):null,m=l?Qm({size:e}):"preflight",p={div:i.jsx("div",{className:Dr({size:e}),children:n}),h3:i.jsx("h3",{className:Dr({size:e}),children:n}),h2:i.jsx("h2",{className:Dr({size:e}),children:n}),h1:i.jsx("h1",{className:Dr({size:e}),children:n})};return i.jsxs("div",{className:rt(m,t),...c,children:[u,p[a||Zm(e)],d,h]})},np=({label:e="",name:t,id:n,disabled:r=!1,onChange:o=()=>{},onClick:s=()=>{},...l})=>i.jsxs("div",{className:"ds:flex ds:h-4 ds:items-center",children:[i.jsx("input",{id:n,name:t,type:"radio",className:`ds:form-radio ${Na({disabled:r})}`,"aria-disabled":r,onChange:a=>Ha(a,r,o),onClick:a=>ao(a,r,s),...l}),i.jsx("label",{htmlFor:n,className:$a({disabled:r}),children:e})]}),rp=Be(["preflight","ds:font-sans!","ds:inline-flex","ds:items-center","ds:gap-1","ds:cursor-pointer","ds:text-acuity-blue","ds:active:text-acuity-blue-darkest","ds:focus-visible:outline-hidden","ds:focus-visible:border-2","ds:focus-visible:rounded","ds:focus-visible:border-acuity-blue","ds:focus-visible:px-[2px]","ds:focus-visible:py-[2px]","ds:focus-visible:-mx-[4px]","ds:focus-visible:-my-[4px]"],{variants:{type:{default:["ds:font-bold","ds:hover:underline"],inline:["ds:underline","ds:hover:no-underline","ds:active:no-underline","ds:visited:text-[#551A8B]"]}}}),op=({text:e,href:t,type:n="default",iconName:r,...o})=>i.jsxs("a",{href:t,type:n,className:rt(rp({type:n})),...o,children:[e,r&&i.jsx($t,{altText:e,name:r,size:"small"})]}),sp=({open:e=!1,onClose:t,title:n="",backdrop:r="static",content:o,footer:s,icon:l=!1,iconComponent:a,iconName:c=void 0,dismissible:u=!0,horizontalRule:d=!0})=>{const h=()=>a?i.jsx(i.Fragment,{children:a}):l&&c?i.jsx($t,{name:c,size:"medium"}):null,m=()=>r==="dismissible"?t():!0;return i.jsx(Sn.Transition,{appear:!0,show:e,as:se.Fragment,children:i.jsxs(Sn.Dialog,{as:"div",onClose:m,static:!0,className:"preflight ds:relative ds:z-20 ds:focus:outline-hidden",children:[r!=="none"&&i.jsx(Sn.TransitionChild,{as:se.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:i.jsx("div",{className:"ds:fixed ds:inset-0 ds:bg-neutrals-transparent-medium ds:transition-opacity","aria-hidden":"true"})}),i.jsx("div",{className:"ds:fixed ds:inset-0 ds:z-20 ds:w-screen ds:overflow-y-auto",children:i.jsx("div",{className:"ds:flex ds:min-h-full ds:items-center ds:justify-center ds:p-4",children:i.jsx(Sn.TransitionChild,{as:se.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:i.jsxs(Sn.DialogPanel,{className:"ds:flex ds:max-h-[90vh] ds:min-w-full ds:max-w-full ds:transform ds:flex-col ds:rounded-lg ds:bg-neutrals-white ds:text-left ds:shadow-modal ds:sm:min-w-[15rem] ds:sm:max-w-[55%]",children:[i.jsxs("div",{className:`ds:flex ds:items-center ds:py-4 ${u?"ds:pl-5 ds:pr-3":"ds:px-5"}`,children:[l&&i.jsx("div",{className:"ds:mr-3",children:h()}),i.jsx(Sn.DialogTitle,{as:"div",className:"ds:flex-grow",children:i.jsx(Is,{text:n,headingTag:"h2",size:"medium",hasMarginBottom:!1})}),u&&i.jsx(co,{variant:"default",iconSize:"small",iconName:"close",hasTooltip:!1,label:"Close",disabled:!1,onClick:()=>t()})]}),d&&i.jsx("hr",{className:"ds:border-neutrals-light"}),o&&i.jsx("div",{className:`ds:h-auto ds:max-h-[48.6rem] ds:grow ds:overflow-y-auto ds:px-5 ${s?"ds:py-4":"ds:pb-5 ds:pt-4"}`,children:o}),s&&i.jsx("div",{className:"ds:flex ds:justify-end ds:gap-x-4 ds:px-5 ds:py-4",children:s})]})})})})]})})},lp=Be(["preflight","ds:rounded-xl","ds:border","ds:px-2","ds:py-1","ds:inline-flex","ds:items-center"],{variants:{color:{default:["ds:border-neutrals-light"],gray:["ds:bg-neutrals-lighter","ds:border-neutrals-lighter"],blue:["ds:bg-information-blue-lightest","ds:text-information-blue-darkest","ds:border-information-blue-lightest"],green:["ds:bg-success-green-lightest","ds:text-success-green-darkest","ds:border-success-green-lightest"],yellow:["ds:bg-warning-yellow-lightest","ds:text-warning-yellow-darkest","ds:border-warning-yellow-lightest"],red:["ds:bg-danger-red-lightest","ds:text-danger-red-darkest","ds:border-danger-red-lightest"]},type:{regular:["ds:text-base"],small:["ds:text-sm"]}}}),za=({label:e,type:t="regular",color:n="default",dismissible:r=!1,dismissLabel:o="",className:s="",onDismiss:l,...a})=>{const c=a["aria-label"]||e;return i.jsxs("div",{className:rt(lp({color:n,type:t}),s),"aria-label":c,...a,children:[i.jsx("div",{className:"ds:max-w-[200px] ds:truncate ds:leading-6",children:e}),r&&i.jsx(co,{variant:"small",iconName:"close",label:o||"dismiss",disabled:!1,onClick:()=>l&&l(),className:"ds:ms-1",isTransparent:!0})]})},ip=Be(["preflight","ds:transition","ds:duration-100","ds:text-nowrap","ds:font-sans!","ds:text-base","ds:p-2","ds:active:text-neutrals-white","ds:focus-visible:ring-neutrals-black","ds:focus-visible:ring-2","ds:focus-visible:outline-hidden","ds:focus-visible:ring-offset-2"],{variants:{isNested:{true:["ds:rounded-xl","ds:my-2","ds:mx-1","ds:border","ds:border-neutrals-lighter","ds:hover:bg-neutrals-light","ds:active:bg-neutrals-dark","ds:focus-visible:ring-neutrals-black","ds:focus-visible:ring-2","ds:focus-visible:outline-hidden","ds:focus-visible:ring-offset-2","ds:focus-visible:bg-neutrals-white"],false:["ds:rounded","ds:rounded-b-none","ds:border-b-2","ds:border-b-neutrals-white","ds:my-1","ds:mr-2","ds:hover:bg-acuity-green-lighter","ds:hover:border-b-acuity-green-lighter","ds:active:bg-acuity-green-darkest","ds:active:border-b-acuity-green-darkest","ds:focus-visible:bg-acuity-green-lightest","ds:focus-visible:border-b-acuity-green-lightest"]}}}),ap=({title:e,id:t,handleClick:n,isActive:r,isNested:o=!1,badgeText:s="",className:l="",...a})=>{const c=(u,d,h)=>rt(ip({isNested:u}),d&&!u&&"ds:border-b-acuity-green!",d&&u&&"ds:bg-neutrals-white ds:border-neutrals!",h);return i.jsxs("button",{className:c(o,r,l),role:"tab",id:`tab-${t}`,"aria-controls":`panel-${t}`,"aria-selected":r,onClick:n,...a,children:[e,s&&i.jsx(za,{label:s,className:"ds:ml-2 ds:h-5 ds:bg-neutrals-white ds:text-neutrals-black"})]})},cp=({id:e,children:t,hidden:n})=>i.jsx("div",{role:"tabpanel",id:`panel-${e}`,"aria-labelledby":`tab-${e}`,hidden:n,className:"preflight",children:t}),up=({children:e,handleTabChange:t,activeTabIndex:n,isNested:r,className:o="",...s})=>{const l=g.default.Children.toArray(e).filter(a=>{var c,u;return g.default.isValidElement(a)&&!!((c=a.props)!=null&&c.id)&&!!((u=a.props)!=null&&u.title)});return l.length<g.default.Children.toArray(e).length&&console.error("You can only pass <Tab> components with defined id and title as children of the <Tabs> component."),i.jsxs("div",{className:`preflight ${o}`,...s,children:[i.jsx("div",{role:"tablist",className:`preflight ds:mb-5 ds:rounded ${r&&"ds:mb-4! ds:bg-neutrals-lighter ds:px-2"}`,children:l.map((a,c)=>i.jsx(ap,{handleClick:()=>t(c),isActive:n===c,badgeText:a.props.badgeText,isNested:r,...a.props},`tab-${c}`))}),l.map((a,c)=>i.jsx(cp,{id:a.props.id,hidden:n!==c,children:a.props.children},`panel-${c}`))]})},dp=({children:e})=>e,fp=Be(["preflight","ds:font-sans!","ds:text-base","ds:cursor-pointer","ds:w-[fit-content]"],{variants:{state:{default:["ds:text-neutrals-black"],error:["ds:text-danger-red-darkest"],success:["ds:text-success-green-darkest"]},disabled:{true:"ds:text-neutrals-dark!"}}}),hp=e=>rt(fp(e)),Ga=({id:e,state:t="default",disabled:n=!1,htmlFor:r,value:o="",optionalityLabel:s=""})=>i.jsxs("label",{id:e,htmlFor:r,className:hp({state:t,disabled:n}),children:[o,s&&i.jsx("span",{className:"ds:text-sm ds:text-neutrals-darker",children:` (${s})`})]}),gp=Be(["preflight","group","ds:flex","ds:flex-col","ds:container"],{variants:{state:{default:["ds:focus-within:[&>label]:text-acuity-blue"],error:["ds:focus-within:[&>label]:text-danger-red-darkest"],success:["ds:focus-within:[&>label]:text-success-green-darkest"]},hasMarginBottom:{true:""}},compoundVariants:[{state:"default",hasMarginBottom:!0,className:["ds:mb-6"]}]}),mp=e=>rt(gp(e)),pp=Be(["ds:font-sans!","ds:text-base"],{variants:{state:{default:["ds:text-neutrals-black","ds:mt-2"],error:["ds:text-danger-red","ds:mt-2"],success:["ds:text-success-green-dark","ds:truncate","ds:text-sm","ds:mt-1"]},hasMarginBottom:{true:["ds:mb-6"],false:["ds:mb-0"]},disabled:{true:"ds:text-neutrals-dark!"}}}),bp=e=>rt(pp(e)),Ms=({id:e,state:t="default",disabled:n=!1,label:r="",optionalityLabel:o="",helpText:s=[],message:l="",child:a,isTextarea:c=!1,className:u="",hasMarginBottom:d=!0})=>{let h=null;switch(t){case"error":h={name:"error",color:"ds:text-danger-red"};break;case"success":h={name:"checkCircle",color:"ds:text-success-green"};break}const m=r?"label_"+e:void 0,p=s&&s.length>0?"helptext_"+e:void 0;return i.jsxs("div",{className:rt(mp({state:t,hasMarginBottom:d}),u),children:[r&&i.jsx(Ga,{id:m,htmlFor:e,value:r,optionalityLabel:o,disabled:n}),s&&s.length>1&&i.jsx("ul",{id:p,className:"ds:mt-2 ds:pb-1 ds:pl-6",children:s==null?void 0:s.map((b,x)=>i.jsx("li",{className:"ds:list-disc ds:text-neutrals-dark",children:b},x))}),s&&s.length===1&&i.jsx("p",{id:p,className:"ds:mt-2 ds:pb-1 ds:text-neutrals-dark",children:s}),i.jsxs("div",{className:"ds:mt-2 ds:flex ds:gap-2",children:[i.jsx("div",{className:c?"":"ds:w-[calc(100%-2rem)]",children:a}),i.jsx("div",{className:"ds:pt-2",children:h&&i.jsx($t,{name:h.name,size:"medium",className:h.color,role:"graphics-symbol"})})]}),h&&i.jsx("p",{className:bp({state:t,hasMarginBottom:d}),children:l})]})},Cp=Be(["preflight","ds:form-input","ds:rounded","ds:p-2","ds:border!","ds:font-sans!"],ks),wp=e=>rt(Cp(e)),Ba=({state:e="default",rows:t=2,cols:n=50,isResizable:r=!0,disabled:o=!1,...s})=>i.jsx("textarea",{"aria-invalid":e=="error",rows:t,cols:n,readOnly:o,className:wp({disabled:o,state:e}),style:{resize:r?"both":"none"},...s}),xp=({id:e,state:t="default",label:n,rows:r=2,cols:o=50,isResizable:s=!0,optionalityLabel:l="",helpText:a=[],message:c="",disabled:u=!1,className:d="",hasMarginBottom:h=!0,onBlur:m,...p})=>i.jsx(Ms,{id:e,state:t,disabled:u,label:n,optionalityLabel:l,helpText:a,message:c,isTextarea:!0,className:d,hasMarginBottom:h,child:i.jsx(Ba,{id:e,"aria-labelledby":n?"label_"+e:void 0,"aria-describedby":a&&a.length>0?"helptext_"+e:void 0,state:t,rows:r,cols:o,isResizable:s,disabled:u,onBlur:m,...p})}),yp=Be(["preflight","ds:form-input","ds:h-[40px]","ds:rounded","ds:p-2","ds:border!","ds:font-sans!","ds:container"],ks),vp=e=>rt(yp(e)),Wa=se.forwardRef(({state:e="default",disabled:t=!1,type:n="text",...r},o)=>i.jsx("input",{"aria-disabled":t,readOnly:t,type:n,className:vp({disabled:t,state:e}),ref:o,...r})),Sp=se.forwardRef(({id:e,state:t="default",disabled:n=!1,type:r="text",label:o,optionalityLabel:s="",helpText:l=[],message:a="",className:c="",hasMarginBottom:u=!0,onBlur:d,...h},m)=>i.jsx(Ms,{id:e,state:t,disabled:n,label:o,optionalityLabel:s,helpText:l,message:a,className:c,hasMarginBottom:u,child:i.jsx(Wa,{id:e,"aria-labelledby":o?"label_"+e:void 0,"aria-describedby":l&&l.length>0?"helptext_"+e:void 0,type:r,state:t,disabled:n,ref:m,onBlur:d,...h})})),kp=Be(["preflight","ds:form-select","ds:h-[40px]","ds:rounded","ds:p-2","ds:border!","ds:font-sans!","ds:container","ds:bg-[center_right_0.25rem]"],ks),Ip=e=>kp(e),Mp=`url('data:image/svg+xml,<svg width="16" height="16" viewBox="5 -5 15 35" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="%23949494" ><path d="M21.375 8.09253L12.4417 17.025C12.3837 17.0831 12.3148 17.1291 12.2391 17.1605C12.1632 17.192 12.082 17.2082 12 17.2082C11.918 17.2082 11.8368 17.192 11.7609 17.1605C11.6852 17.1291 11.6163 17.0831 11.5583 17.025L2.625 8.09253" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" stroke="%23000000" /></svg>')`,qa=se.forwardRef(({state:e="default",disabled:t=!1,className:n="",...r},o)=>{const{onClick:s,onKeyDown:l,onMouseDown:a,...c}=r;return i.jsx("select",{ref:o,"aria-disabled":t,style:{backgroundImage:Mp},className:rt(Ip({disabled:t,state:e}),n),onClick:u=>Fm(u,t,s!=null?s:(()=>{})),onKeyDown:u=>jm(u,t,l!=null?l:(()=>{})),onMouseDown:u=>Om(u,t,a!=null?a:(()=>{})),...c,children:r.children})}),Ep=se.forwardRef(({id:e,state:t="default",disabled:n=!1,label:r,optionalityLabel:o="",helpText:s=[],message:l="",className:a="",hasMarginBottom:c=!0,onBlur:u,...d},h)=>i.jsx(Ms,{id:e,state:t,disabled:n,label:r,optionalityLabel:o,helpText:s,message:l,className:a,hasMarginBottom:c,child:i.jsx(qa,{id:e,"aria-labelledby":r?"label_"+e:void 0,"aria-describedby":s&&s.length>0?"helptext_"+e:void 0,state:t,disabled:n,onBlur:u,ref:h,...d})})),Pp=Be("ds:overflow-hidden ds:bg-neutrals-light",{variants:{size:{small:["ds:h-2","ds:rounded-sm"],large:["ds:h-4","ds:rounded"]}}}),Tp=Be("",{variants:{size:{small:["ds:h-2","ds:rounded-sm"],large:["ds:h-4","ds:rounded"]},state:{"in-progress":["ds:bg-acuity-blue"],error:["ds:bg-danger-red-dark"],success:["ds:bg-success-green"],indeterminate:["ds:bg-acuity-blue","ds:animate-progress"]}}}),Fp=Be("ds:w-[3rem] ds:justify-end ds:flex ds:items-center ds:text-neutrals-dark",{variants:{size:{small:"ds:text-sm",large:""}}}),jp=Be("ds:text-sm",{variants:{state:{error:"ds:text-danger-red",success:"ds:text-neutrals-dark",indeterminate:"ds:text-neutrals-dark","in-progress":"ds:text-neutrals-dark"}}}),Op=({size:e="large",label:t="",helperMessage:n="",className:r="",state:o="indeterminate",maxValue:s=100,value:l=0,hideIcon:a=!1,...c})=>{const u=()=>{let m=Math.round(l/s*100);return m<0?m=0:m>100&&(m=100),o!=="in-progress"?"100%":`${m}%`},d=()=>{if(a)return null;switch(o){case"in-progress":return u();case"error":return i.jsx($t,{name:"error",size:e==="small"?"small":"medium",className:"ds:float-right ds:text-danger-red-dark",role:"graphics-symbol",filled:!0});case"success":return i.jsx($t,{name:"checkCircle",size:e==="small"?"small":"medium",className:"ds:float-right ds:text-success-green-dark",role:"graphics-symbol",filled:!0});case"indeterminate":default:return null}},h=()=>o==="in-progress"||o==="indeterminate"?i.jsxs("div",{className:"ds:ml-1 ds:mt-2 ds:flex ds:w-[15px] ds:items-center ds:space-x-[2px]",children:[i.jsx("div",{className:"ds:h-[3px] ds:w-[3px] ds:animate-blink ds:rounded-full ds:bg-neutrals-black [animation-delay:-0.2s]"}),i.jsx("div",{className:"ds:h-[3px] ds:w-[3px] ds:animate-blink ds:rounded-full ds:bg-neutrals-black [animation-delay:-0.15s]"}),i.jsx("div",{className:"ds:h-[3px] ds:w-[3px] ds:animate-blink ds:rounded-full ds:bg-neutrals-black"})]}):null;return i.jsxs("div",{className:rt("preflight ds:min-w-[4.875rem]",r),...c,children:[i.jsxs("div",{className:"ds:flex ds:h-5 ds:items-center ds:justify-between",children:[i.jsxs("div",{className:"progress-bar-label ds:flex ds:max-w-[calc(100%-3rem)] ds:overflow-hidden",children:[i.jsx("p",{className:"ds:overflow-hidden ds:text-nowrap",children:t}),h()]}),i.jsx("div",{"aria-hidden":!0,className:Fp({size:e}),children:d()})]}),i.jsx("div",{role:"progressbar",className:"ds:mb-1 ds:mt-1","aria-label":t,"aria-valuemin":0,"aria-valuenow":l,"aria-valuemax":s,"aria-valuetext":u(),children:i.jsx("div",{className:Pp({size:e}),children:i.jsx("div",{style:{width:u()},className:Tp({size:e,state:o})})})}),i.jsx("p",{className:jp({state:o}),children:n})]})},Rp=({text:e,onClick:t})=>i.jsx("div",{className:"bg-neutral-lighter/30 flex w-full items-center rounded-xl px-4 py-2",children:i.jsx("div",{className:"ml-5",children:i.jsxs(B.ButtonBase,{className:"focus-visible:outline-primary flex items-center rounded focus-visible:outline-2 focus-visible:outline-offset-2",onClick:t,children:[i.jsx(B.Box,{component:"span",className:"flex h-8 w-8 items-center justify-center rounded-md",sx:{bgcolor:"primary.main",color:"primary.contrastText"},children:i.jsx(la.default,{})}),i.jsx("span",{className:"text-primary ml-5 text-sm font-bold select-none hover:underline",children:e})]})})}),Ml=6,Lp=({defaultValue:e="",inputLabel:t,isLoading:n,label:r,labelCancel:o="Cancel",labelSubmit:s="Add",placeholder:l,selectDefaultValue:a,selectOptions:c=[],showInput:u,withInput:d,withSelect:h,onCancel:m,onClick:p,onSelectChange:b,onSubmit:x,"data-testid":w})=>{const[k,v]=se.useState(!!u),[F,j]=se.useState(),[y,A]=se.useState(e),[N,M]=se.useState(a),P=se.useId(),R=()=>{v(!1),m==null||m()},_=()=>{d?v(!0):p==null||p()},O=V=>{if(V.preventDefault(),y.trim().length<Ml){j(`Must be at least ${Ml} characters`);return}j(void 0),x==null||x(y,N).then(()=>v(!1))},D=V=>{M(V),b==null||b(V)};return i.jsx("div",{className:"bg-neutral-lighter/40 flex w-full items-center rounded-xl px-8",children:k?i.jsxs("form",{className:"flex w-full py-2",onSubmit:O,children:[i.jsxs("div",{className:"flex w-full",children:[i.jsx("label",{className:"sr-only",htmlFor:P,children:t||l}),i.jsx(B.TextField,{autoFocus:!0,className:"w-1/2 rounded-xl bg-white",error:!!F,helperText:F,id:P,placeholder:l,size:"small",value:y,variant:"outlined",onChange:V=>A(V.target.value)}),h&&i.jsx(B.Select,{className:"ml-4 bg-white",size:"small",value:N,onChange:V=>D(V.target.value),children:c.map(V=>i.jsx(B.MenuItem,{value:V.value,children:V.label},String(V.value)))})]}),i.jsxs("div",{className:"flex gap-2 py-2",children:[i.jsx(B.Button,{className:"h-min",color:"primary",loading:n,type:"submit",variant:"contained",children:s}),i.jsx(B.Button,{className:"h-min",color:"primary",type:"button",variant:"outlined",onClick:R,children:o})]})]}):i.jsxs("button",{className:"flex cursor-pointer items-center border-none bg-transparent py-4","data-testid":w,style:{fontFamily:"inherit"},type:"button",onClick:_,children:[i.jsx("span",{"aria-hidden":"true",className:"bg-primary hover:bg-primary-dark flex h-8 w-8 items-center justify-center rounded-md text-white shadow-sm transition-colors",children:i.jsx(la.default,{})}),r&&i.jsx("span",{className:"text-primary ml-4 text-sm font-bold select-none hover:underline",children:r})]})})},Dp=({accept:e,description:t,buttonLabel:n,onFileDrop:r})=>{const o=se.useId(),[s,l]=se.useState(!1),a=se.useCallback(h=>{var b;if(e.includes("image/*")&&h.type.startsWith("image/")||e.includes("video/*")&&h.type.startsWith("video/")||e.includes("application/pdf")&&h.type==="application/pdf")return!0;const m=e.split(",").map(x=>x.trim().toLowerCase()),p=`.${(b=h.name.split(".").pop())==null?void 0:b.toLowerCase()}`;return m.includes(p)},[e]),c=se.useCallback(h=>{h.preventDefault(),h.stopPropagation(),l(h.type==="dragenter"||h.type==="dragover")},[]),u=se.useCallback(h=>{var p;h.preventDefault(),h.stopPropagation(),l(!1);const m=(p=h.dataTransfer.files)==null?void 0:p[0];m&&a(m)&&r(m)},[r,a]),d=h=>{var p;const m=(p=h.target.files)==null?void 0:p[0];m&&a(m)&&(r(m),h.target.value="")};return i.jsxs(B.Box,{sx:{aspectRatio:"2 / 1",border:"2px dashed",borderColor:s?"primary.main":"#D9D9D9",borderRadius:2,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",cursor:"pointer",transition:h=>h.transitions.create("all",{duration:h.transitions.duration.standard}),userSelect:"none"},onDragEnter:c,onDragLeave:c,onDragOver:c,onDrop:u,children:[i.jsx("input",{accept:e,id:o,style:{display:"none"},type:"file",onChange:d}),i.jsxs(B.Box,{component:"label",htmlFor:o,sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:[i.jsx(B.Box,{sx:{width:36,height:36,display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid rgba(51, 51, 51, 0.10)",borderRadius:1,mb:5},children:i.jsx(gh.default,{})}),i.jsx(B.Typography,{sx:{color:"text.secondary",mb:5},variant:"body2",children:t}),i.jsx(B.Button,{component:"span",sx:{minWidth:100,borderRadius:"1rem",fontSize:"1rem",fontWeight:700},variant:"contained",onKeyDown:h=>{var m;(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),(m=document.getElementById(o))==null||m.click())},children:n})]})]})},Hp=({isOpen:e,severity:t,title:n,message:r,onClose:o})=>e?i.jsxs(B.Alert,{severity:t,onClose:o,children:[i.jsx(B.Typography,{sx:{mt:"-2px",fontSize:"1rem",fontWeight:700},children:n}),i.jsx(B.Typography,{sx:{mt:1,fontSize:"0.875rem"},children:r})]}):null,Es=se.createContext(null),Ua=()=>se.useContext(Es),Ka=({children:e,isOpen:t,onClose:n})=>{const r=ge.useTheme(),o=Ua(),s=se.useRef(null);return i.jsxs(i.Fragment,{children:[i.jsx(B.Backdrop,{open:t,sx:{position:"absolute",inset:0,backgroundColor:"rgba(0,0,0,0.25)",pointerEvents:t?"auto":"none",zIndex:r.zIndex.drawer},onClick:n}),i.jsx(B.Slide,{mountOnEnter:!0,unmountOnExit:!0,container:o?l=>{var a;return(a=o.current)!=null?a:l}:void 0,direction:"right",in:t,children:i.jsx(B.Paper,{"aria-modal":"true",elevation:8,role:"dialog",sx:{position:"absolute",left:0,top:0,bottom:0,width:"300px",borderRadius:0,display:"flex",flexDirection:"column",zIndex:r.zIndex.drawer+1},children:i.jsx(B.Box,{ref:s,sx:{overflow:"auto",flex:1},children:i.jsx(B.Box,{sx:{display:"flex",flexDirection:"column",height:"100%",pt:"1rem",pr:1.5,pl:2},children:e})})})})]})},_p=256,Ap=({children:e,navigationSlot:t,logoSlot:n,mobileLogoSlot:r,headerSlot:o,sideDrawerSlot:s,sideDrawerWidth:l=400,isSideDrawerOpen:a=!1,backgroundColor:c})=>{var p,b,x,w;const u=ge.useTheme(),[d,h]=se.useState(!1),m=se.useRef(null);return i.jsxs(B.Box,{sx:{height:"100vh",maxHeight:"100vh",display:"flex",flexDirection:"row",padding:"1rem 1rem 1rem 0",overflow:"hidden",bgcolor:(b=c!=null?c:(p=u.palette.neutral)==null?void 0:p.lighter)!=null?b:"#F5F5F5",transition:u.transitions.create("margin-right",{easing:u.transitions.easing.sharp,duration:a?u.transitions.duration.enteringScreen:u.transitions.duration.leavingScreen}),marginRight:a?`${l}px`:0,[u.breakpoints.down("sm")]:{padding:0,marginRight:0}},children:[i.jsxs(B.Box,{component:"nav","aria-label":"Main navigation",sx:{width:`${_p}px`,flexShrink:0,display:"flex",flexDirection:"column",px:2,py:"1rem",[u.breakpoints.down("md")]:{display:"none"}},children:[n&&i.jsx(B.Box,{sx:{mb:2},children:n}),t]}),i.jsxs(B.Box,{sx:{flex:1,display:"flex",flexDirection:"column",borderRadius:"8px",overflow:"hidden",bgcolor:(w=(x=u.palette.common)==null?void 0:x.white)!=null?w:"#FFFFFF"},children:[i.jsx(B.AppBar,{color:"transparent",elevation:0,position:"static",sx:{display:"none",[u.breakpoints.down("md")]:{display:"flex"}},children:i.jsxs(B.Toolbar,{variant:"dense",sx:{justifyContent:"space-between",px:{xs:"15px",sm:"1rem"}},children:[i.jsxs(B.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[i.jsx(B.IconButton,{"aria-label":"Open navigation menu",size:"small",onClick:()=>h(!0),children:i.jsx(mh.default,{})}),r]}),o&&i.jsx(B.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:o})]})}),i.jsx(B.AppBar,{color:"transparent",elevation:0,position:"static",sx:{[u.breakpoints.down("md")]:{display:"none"}},children:i.jsx(B.Toolbar,{variant:"dense",sx:{justifyContent:"flex-end",px:"2em"},children:o&&i.jsx(B.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:o})})}),i.jsx(Es.Provider,{value:m,children:i.jsxs(B.Box,{ref:m,sx:{flex:1,overflow:"auto",position:"relative"},children:[i.jsxs(Ka,{isOpen:d,onClose:()=>h(!1),children:[r&&i.jsx(B.Box,{sx:{mb:2},children:r}),t]}),e]})})]}),s]})},Ps=g.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ps.displayName="GridApiContext");function ke(){const e=g.useContext(Ps);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./assets/index.css');const i=require("react/jsx-runtime"),se=require("react"),Sn=require("@headlessui/react"),Bd=require("@mui/icons-material/Add"),B=require("@mui/material"),Wd=require("@mui/icons-material/FileUploadOutlined"),qd=require("@mui/icons-material/Menu"),ge=require("@mui/material/styles"),Ud=require("@mui/utils/useLazyRef"),Gt=require("@mui/system/RtlProvider"),Kd=require("@mui/utils/useEnhancedEffect"),re=require("@mui/utils"),Xd=require("@mui/utils/composeClasses"),Fn=require("@mui/material/InputBase"),Yd=require("@mui/utils/useTimeout"),oa=require("@mui/material/Autocomplete"),Zd=require("@mui/utils/resolveProps"),Qd=require("@mui/material/MenuList"),Jd=require("@mui/material/ClickAwayListener"),ef=require("@mui/material/Grow"),tf=require("@mui/material/Paper"),nf=require("@mui/material/Popper"),rf=require("@mui/utils/useEventCallback"),of=require("@mui/material/MenuItem"),ze=require("@mui/material/utils"),sf=require("@mui/utils/useOnMount"),Ge=require("@mui/system"),lf=require("react-dom"),af=require("@mui/material/ListItemIcon"),cf=require("@mui/material/ListItemText"),uf=require("@mui/material/Badge"),df=require("@mui/material/Checkbox"),ff=require("@mui/material/Divider"),hf=require("@mui/material/TextField"),gf=require("@mui/material/FormControl"),mf=require("@mui/material/Select"),pf=require("@mui/material/Button"),bf=require("@mui/material/IconButton"),Cf=require("@mui/material/InputAdornment"),Jo=require("@mui/material/Tooltip"),wf=require("@mui/material/InputLabel"),xf=require("@mui/material/Chip"),yf=require("@mui/material/FormControlLabel"),vf=require("@mui/material/Unstable_TrapFocus"),es=require("@mui/material/TablePagination"),Sf=require("@mui/material/LinearProgress"),kf=require("@mui/material/CircularProgress"),If=require("@mui/utils/useForkRef"),Mf=require("@mui/material/Skeleton"),Ef=require("@mui/icons-material/EditOutlined"),Pf=require("@mui/icons-material/HotelClassOutlined"),Tf=require("@mui/icons-material/SettingsOutlined"),Ff=require("@mui/material/Table"),jf=require("@mui/material/TableBody"),Of=require("@mui/material/TableCell"),Rf=require("@mui/material/TableHead"),Lf=require("@mui/material/TableRow"),Df=require("@mui/material/TableSortLabel"),Hf=require("@mui/icons-material/Clear"),_f=require("@mui/icons-material/Search"),Af=require("@mui/icons-material/IndeterminateCheckBoxOutlined"),Vf=require("@mui/icons-material/MoreVert"),Kt=require("react-toastify"),Nf=require("@mui/icons-material/CheckRounded"),$f=require("@mui/icons-material/CloseRounded"),zf=require("@mui/icons-material/ErrorRounded"),Gf=require("@mui/icons-material/InfoRounded"),Bf=require("@mui/icons-material/WarningRounded"),Wf=require("@mui/icons-material/Warning"),qf=require("@mui/icons-material/KeyboardVoiceOutlined"),Uf=require("@mui/icons-material/VideocamOffOutlined"),Kf=require("@mui/icons-material/Check"),Xf=require("@mui/icons-material/Close"),Yf=require("@mui/icons-material/MicNone"),Zf=require("@mui/icons-material/AccessTimeFilled"),Qf=require("react-markdown"),Jf=require("@mui/icons-material/FormatBold"),eh=require("@mui/icons-material/FormatItalicOutlined"),th=require("@mui/icons-material/FormatListBulleted"),nh=require("@mui/icons-material/FormatListNumbered"),rh=require("@mui/icons-material/KeyboardArrowDown"),oh=require("@tiptap/markdown"),Eo=require("@tiptap/react"),sh=require("@tiptap/starter-kit"),lh=require("@mui/icons-material/Replay"),ih=require("@mui/icons-material/StopCircle"),ah=require("@mui/icons-material/VolumeUp"),ch=require("@emotion/react"),uh=require("@emotion/styled"),dh=require("@mui/icons-material/CloudCircle"),fh=require("@mui/icons-material/RocketLaunch"),hh=require("@mui/icons-material/VideoCameraFrontOutlined"),ie=e=>e&&e.__esModule?e:{default:e};function sa(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const g=sa(se),la=ie(Bd),gh=ie(Wd),mh=ie(qd),Bt=ie(Ud),ia=ie(Kd),Xe=ie(Xd),aa=ie(Fn),wn=ie(Yd),ca=ie(oa),ph=ie(Zd),ps=ie(Qd),ua=ie(Jd),bh=ie(ef),da=ie(tf),bs=ie(nf),Ch=ie(rf),Xt=ie(of),fa=ie(sf),wh=sa(lf),_n=ie(af),An=ie(cf),xh=ie(uf),yh=ie(df),vh=ie(ff),ha=ie(hf),Sh=ie(gf),kh=ie(mf),Ih=ie(pf),ga=ie(bf),Mh=ie(Cf),ma=ie(Jo),Eh=ie(wf),Ph=ie(xf),gl=ie(yf),Th=ie(vf),Fh=ie(es),jh=ie(Sf),Oh=ie(kf),Rh=ie(If),Lh=ie(Mf),Dh=ie(Ef),Hh=ie(Pf),_h=ie(Tf),Ah=ie(Ff),Po=ie(jf),bt=ie(Of),Vh=ie(Rf),dr=ie(Lf),Nh=ie(Df),$h=ie(Hf),zh=ie(_f),Gh=ie(Af),Bh=ie(Vf),Wh=ie(Nf),qh=ie($f),Uh=ie(zf),Kh=ie(Gf),Xh=ie(Bf),Yh=ie(Wf),Zh=ie(qf),Qh=ie(Uf),Jh=ie(Kf),ml=ie(Xf),eg=ie(Yf),tg=ie(Zf),ng=ie(Qf),rg=ie(Jf),og=ie(eh),sg=ie(th),lg=ie(nh),ig=ie(rh),ag=ie(sh),cg=ie(lh),ug=ie(ih),dg=ie(ah),pa=ie(uh),fg=ie(dh),hg=ie(fh),gg=ie(hh),Cs=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s="",filled:l=!1})=>{const a=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:s||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:r}),i.jsx("path",{d:"M12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 9.34784 20.9464 6.8043 19.0711 4.92893C17.1957 3.05357 14.6522 2 12 2C9.34784 2 6.8043 3.05357 4.92893 4.92893C3.05357 6.8043 2 9.34784 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C6.8043 20.9464 9.34784 22 12 22Z",stroke:l?"transparent":"currentColor",fill:l?"#157393":"none",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M12 17.5553V13.1108",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M12 8.7333C11.8527 8.7333 11.7114 8.67477 11.6072 8.57058C11.503 8.4664 11.4445 8.32509 11.4445 8.17775C11.4445 8.03041 11.503 7.8891 11.6072 7.78491C11.7114 7.68072 11.8527 7.62219 12 7.62219",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M12 8.7333C12.1473 8.7333 12.2887 8.67477 12.3928 8.57058C12.497 8.4664 12.5556 8.32509 12.5556 8.17775C12.5556 8.03041 12.497 7.8891 12.3928 7.78491C12.2887 7.68072 12.1473 7.62219 12 7.62219",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"})]})},ws=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s="",filled:l=!1})=>{const a=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"#000000",className:n,"aria-hidden":`${a}`,role:s||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:r}),i.jsx("path",{d:"M10.8715 2.54037C11.0072 2.37168 11.1791 2.23557 11.3743 2.14206C11.5696 2.04854 11.7833 2 11.9998 2C12.2163 2 12.4301 2.04854 12.6253 2.14206C12.8206 2.23557 12.9924 2.37168 13.1281 2.54037L14.4714 4.21147C14.6235 4.40106 14.821 4.54927 15.0455 4.64243C15.27 4.73559 15.5144 4.7707 15.756 4.74452L17.8882 4.51264C18.1041 4.48866 18.3225 4.51354 18.5275 4.58543C18.7324 4.65731 18.9185 4.77437 19.0721 4.92793C19.2256 5.08149 19.3427 5.26762 19.4146 5.47255C19.4865 5.67747 19.5113 5.89594 19.4874 6.11178L19.2555 8.24397C19.2293 8.48564 19.2644 8.73001 19.3576 8.95453C19.4507 9.17905 19.5989 9.37648 19.7885 9.52862L21.4596 10.8719C21.6283 11.0076 21.7644 11.1794 21.8579 11.3747C21.9515 11.5699 22 11.7837 22 12.0002C22 12.2167 21.9515 12.4304 21.8579 12.6257C21.7644 12.8209 21.6283 12.9928 21.4596 13.1285L19.7832 14.4655C19.5937 14.6179 19.4455 14.8155 19.3524 15.0402C19.2592 15.2648 19.2241 15.5093 19.2502 15.7511L19.482 17.8832C19.5062 18.0991 19.4814 18.3177 19.4096 18.5227C19.3378 18.7277 19.2207 18.9139 19.0671 19.0675C18.9135 19.2211 18.7273 19.3381 18.5223 19.41C18.3173 19.4818 18.0988 19.5065 17.8829 19.4824L15.7507 19.2505C15.509 19.2242 15.2646 19.2593 15.0401 19.3525C14.8156 19.4456 14.6181 19.5939 14.4661 19.7836L13.1281 21.4484C12.9925 21.6173 12.8207 21.7535 12.6254 21.8471C12.4302 21.9407 12.2164 21.9893 11.9998 21.9893C11.7833 21.9893 11.5695 21.9407 11.3742 21.8471C11.1789 21.7535 11.0072 21.6173 10.8715 21.4484L9.52915 19.7782C9.37682 19.5886 9.17922 19.4404 8.95456 19.3473C8.7299 19.2541 8.48541 19.219 8.24361 19.2452L6.11142 19.4771C5.89551 19.5014 5.6769 19.4767 5.47181 19.405C5.26673 19.3332 5.08045 19.2162 4.92681 19.0625C4.77318 18.9089 4.65613 18.7226 4.58436 18.5175C4.5126 18.3124 4.48796 18.0938 4.51228 17.8779L4.74416 15.7457C4.77033 15.5039 4.73522 15.2594 4.64207 15.0348C4.54891 14.8101 4.40071 14.6125 4.21111 14.4602L2.54089 13.1178C2.37207 12.9822 2.23582 12.8104 2.14221 12.6151C2.0486 12.4199 2 12.2061 2 11.9895C2 11.773 2.0486 11.5592 2.14221 11.3639C2.23582 11.1686 2.37207 10.9969 2.54089 10.8612L4.21111 9.51795C4.40076 9.36588 4.54902 9.16845 4.64219 8.94391C4.73536 8.71938 4.77043 8.47498 4.74416 8.23331L4.51228 6.10112C4.48813 5.88525 4.51289 5.6667 4.58471 5.4617C4.65654 5.2567 4.77359 5.07049 4.92719 4.91689C5.08079 4.76329 5.267 4.64624 5.472 4.57441C5.67701 4.50259 5.89555 4.47783 6.11142 4.50198L8.24361 4.73385C8.4854 4.75995 8.72987 4.7248 8.95452 4.63165C9.17916 4.5385 9.37677 4.39034 9.52915 4.20081L10.8715 2.54037Z",stroke:l?"transparent":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",fill:l?"#387F14":"none"}),i.jsx("path",{d:"M15.3314 9.99585L11.7946 14.7115C11.7373 14.7878 11.6643 14.8509 11.5805 14.8966C11.4967 14.9422 11.404 14.9693 11.3089 14.9761C11.2137 14.9828 11.1181 14.969 11.0288 14.9356C10.9394 14.9023 10.8582 14.8501 10.7907 14.7826L8.66827 12.6611",stroke:l?"white":"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})},xs=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s="",filled:l=!1})=>{const a=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${a}`,role:s||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:r}),i.jsx("path",{d:"M13.3508 3.46672C13.2268 3.21422 13.0345 3.00155 12.7957 2.85282C12.557 2.70408 12.2813 2.62524 12 2.62524C11.7187 2.62524 11.443 2.70408 11.2042 2.85282C10.9655 3.00155 10.7732 3.21422 10.6492 3.46672L2.75501 19.5484C2.65998 19.7417 2.61579 19.956 2.6266 20.1711C2.63741 20.3863 2.70286 20.5951 2.81678 20.7779C2.9307 20.9607 3.08933 21.1115 3.2777 21.216C3.46606 21.3205 3.67794 21.3752 3.89334 21.375H20.1067C20.3221 21.3752 20.5339 21.3205 20.7223 21.216C20.9107 21.1115 21.0693 20.9607 21.1832 20.7779C21.2972 20.5951 21.3626 20.3863 21.3734 20.1711C21.3842 19.956 21.34 19.7417 21.245 19.5484L13.3508 3.46672Z",stroke:l?"transparent":"currentColor",fill:l?"#816E09":"none",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M12 18.25C11.8274 18.25 11.6875 18.1101 11.6875 17.9375C11.6875 17.7649 11.8274 17.625 12 17.625",stroke:l?"white":"currentColor",strokeWidth:o}),i.jsx("path",{d:"M12 18.25C12.1726 18.25 12.3125 18.1101 12.3125 17.9375C12.3125 17.7649 12.1726 17.625 12 17.625",stroke:l?"white":"currentColor",strokeWidth:o}),i.jsx("path",{d:"M12 15.125V8.875",stroke:l?"white":"currentColor",strokeWidth:o,strokeMiterlimit:"10",strokeLinecap:"round"})]})},ys=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s="",filled:l=!1})=>{const a=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"#000000",className:n,"aria-hidden":`${a}`,role:s||(a?"graphics-document":"img"),children:[!a&&i.jsx("title",{children:r}),i.jsx("path",{d:"M12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 9.34784 20.9464 6.8043 19.0711 4.92893C17.1957 3.05357 14.6522 2 12 2C9.34784 2 6.8043 3.05357 4.92893 4.92893C3.05357 6.8043 2 9.34784 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C6.8043 20.9464 9.34784 22 12 22Z",stroke:l?"transparent":"currentColor",fill:l?"#A90508":"none",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M15.3344 8.66663L8.66666 15.3333",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M8.66666 8.66663L15.3344 15.3333",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"})]})},mg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M2.625 21.3741L21.375 2.62415",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M21.375 21.3741L2.625 2.62415",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},pg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M20.4917 3.50831C20.2079 3.22568 19.8709 3.00208 19.5002 2.85044C19.1294 2.69879 18.7324 2.62211 18.3318 2.62483C17.9313 2.62754 17.5353 2.70959 17.1667 2.86624C16.798 3.02288 16.4641 3.25103 16.1842 3.53748L4.10083 15.6208L2.625 21.375L8.37917 19.8991L20.4625 7.81581C20.749 7.53587 20.9771 7.20193 21.1337 6.8333C21.2904 6.46468 21.3724 6.06866 21.3752 5.66814C21.3779 5.26762 21.3012 4.87053 21.1495 4.49982C20.9979 4.1291 20.7743 3.79211 20.4917 3.50831Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M15.8383 3.8833L20.1167 8.16163",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M14.0933 5.6283L18.3717 9.90663",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M4.10083 15.6208L8.38333 19.895",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},bg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M2 2V22.0007",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M2 3.33301H21.334C21.4625 3.33314 21.5881 3.37038 21.6959 3.44023C21.8037 3.51008 21.889 3.60958 21.9416 3.72676C21.9942 3.84394 22.0118 3.97381 21.9923 4.10077C21.9728 4.22772 21.9171 4.34634 21.8318 4.44238L18.2717 8.4443C18.0545 8.68843 17.9345 9.0038 17.9345 9.33055C17.9345 9.6573 18.0545 9.97268 18.2717 10.2168L21.8274 14.2214C21.9127 14.3174 21.9684 14.4361 21.9879 14.563C22.0073 14.69 21.9897 14.8198 21.9371 14.937C21.8845 15.0542 21.7992 15.1537 21.6915 15.2235C21.5837 15.2934 21.458 15.3306 21.3296 15.3308H2",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Cg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M10.2221 20.6666C10.335 21.0512 10.5695 21.3889 10.8903 21.6292C11.2112 21.8694 11.6013 21.9992 12.0021 21.9992C12.4029 21.9992 12.793 21.8694 13.1139 21.6292C13.4348 21.3889 13.6692 21.0512 13.7821 20.6666",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 4V2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 4C13.7681 4 15.4638 4.70238 16.714 5.95262C17.9643 7.20286 18.6667 8.89856 18.6667 10.6667C18.6667 16.9298 20 18 20 18H4C4 18 5.33333 16.2969 5.33333 10.6667C5.33333 8.89856 6.03571 7.20286 7.28595 5.95262C8.5362 4.70238 10.2319 4 12 4V4Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},wg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return e==="16"&&t==="16"?i.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M6.88898 13.6672C6.95954 13.9076 7.10608 14.1187 7.30663 14.2688C7.50719 14.419 7.75099 14.5001 8.00152 14.5001C8.25205 14.5001 8.49585 14.419 8.6964 14.2688C8.89696 14.1187 9.04349 13.9076 9.11406 13.6672",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M8.00018 3.25005V2",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M8.00019 3.25012C9.1053 3.25012 10.1651 3.68913 10.9466 4.47056C11.728 5.25199 12.167 6.31183 12.167 7.41694C12.167 11.3315 13.0004 12.0005 13.0004 12.0005H3C3 12.0005 3.83336 10.936 3.83336 7.41694C3.83336 6.31183 4.27237 5.25199 5.0538 4.47056C5.83523 3.68913 6.89508 3.25012 8.00019 3.25012V3.25012Z",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"11.8",cy:"6.11104",r:"2.3",fill:"#BA1E50",stroke:"white"})]}):i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M10.2221 20.6666C10.335 21.0512 10.5695 21.3889 10.8903 21.6292C11.2112 21.8694 11.6013 21.9992 12.0021 21.9992C12.4029 21.9992 12.793 21.8694 13.1139 21.6292C13.4348 21.3889 13.6692 21.0512 13.7821 20.6666",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 4V2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 4C13.7681 4 15.4638 4.70238 16.714 5.95262C17.9643 7.20286 18.6667 8.89856 18.6667 10.6667C18.6667 16.9298 20 18 20 18H4C4 18 5.33333 16.2969 5.33333 10.6667C5.33333 8.89856 6.03571 7.20286 7.28595 5.95262C8.5362 4.70238 10.2319 4 12 4V4Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"18",cy:"8",r:"4",fill:"#BA1E50",stroke:"white",strokeWidth:"2"})]})},xg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M9.33325 9.33315C9.33335 8.84429 9.46782 8.36486 9.72198 7.94726C9.97614 7.52966 10.3402 7.18996 10.7744 6.96528C11.2085 6.74062 11.6962 6.63962 12.1838 6.67335C12.6716 6.70706 13.1406 6.8742 13.5397 7.15648C13.9389 7.43877 14.2527 7.82534 14.4469 8.27394C14.6413 8.72255 14.7085 9.21592 14.6413 9.70015C14.5741 10.1844 14.3751 10.6408 14.0661 11.0196C13.757 11.3984 13.3497 11.6848 12.8888 11.8478C12.6287 11.9398 12.4036 12.1101 12.2444 12.3353C12.0852 12.5607 11.9997 12.8297 11.9999 13.1056V13.9998",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12.0001 17.3333C11.816 17.3333 11.6667 17.184 11.6667 17C11.6667 16.8159 11.816 16.6666 12.0001 16.6666",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M12 17.3333C12.1841 17.3333 12.3333 17.184 12.3333 17C12.3333 16.8159 12.1841 16.6666 12 16.6666",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47716 17.5228 2 12 2C6.47716 2 2 6.47716 2 12C2 17.5228 6.47716 22 12 22Z",strokeWidth:o,strokeMiterlimit:"10",stroke:"currentColor"})]})},yg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M9.1042 3.96154L9.83189 2.08308C9.95462 1.76503 10.1705 1.49146 10.4514 1.29821C10.7322 1.10495 11.0648 1.00101 11.4057 1H12.7934C13.1343 1.00101 13.467 1.10495 13.7478 1.29821C14.0286 1.49146 14.2446 1.76503 14.3673 2.08308L15.095 3.96154L17.5657 5.38308L19.5627 5.07846C19.8952 5.03333 20.2336 5.08806 20.5349 5.23572C20.8363 5.38337 21.0869 5.61727 21.255 5.90769L21.9319 7.09231C22.1054 7.38736 22.1853 7.72807 22.1611 8.06948C22.1369 8.41089 22.0098 8.73694 21.7965 9.00462L20.5611 10.5785V13.4215L21.8304 14.9954C22.0437 15.2631 22.1708 15.5891 22.1949 15.9305C22.2191 16.2719 22.1392 16.6126 21.9657 16.9077L21.2888 18.0923C21.1207 18.3827 20.8701 18.6166 20.5688 18.7643C20.2674 18.9119 19.929 18.9667 19.5965 18.9215L17.5996 18.6169L15.1288 20.0385L14.4011 21.9169C14.2784 22.235 14.0625 22.5085 13.7817 22.7018C13.5008 22.8951 13.1682 22.999 12.8273 23H11.4057C11.0648 22.999 10.7322 22.8951 10.4514 22.7018C10.1705 22.5085 9.95462 22.235 9.83189 21.9169L9.1042 20.0385L6.63343 18.6169L4.63651 18.9215C4.304 18.9667 3.96558 18.9119 3.66425 18.7643C3.36292 18.6166 3.11229 18.3827 2.9442 18.0923L2.26728 16.9077C2.09382 16.6126 2.0139 16.2719 2.03807 15.9305C2.06224 15.5891 2.18937 15.2631 2.40266 14.9954L3.63805 13.4215V10.5785L2.36882 9.00462C2.15552 8.73694 2.0284 8.41089 2.00423 8.06948C1.98006 7.72807 2.05997 7.38736 2.23343 7.09231L2.91036 5.90769C3.07844 5.61727 3.32907 5.38337 3.6304 5.23572C3.93173 5.08806 4.27015 5.03333 4.60266 5.07846L6.59959 5.38308L9.1042 3.96154ZM8.71497 12C8.71497 12.6694 8.91348 13.3238 9.28538 13.8804C9.65729 14.437 10.1859 14.8708 10.8044 15.127C11.4228 15.3832 12.1033 15.4502 12.7599 15.3196C13.4164 15.189 14.0195 14.8666 14.4929 14.3933C14.9662 13.9199 15.2886 13.3169 15.4192 12.6603C15.5498 12.0038 15.4827 11.3232 15.2266 10.7048C14.9704 10.0863 14.5366 9.5577 13.98 9.1858C13.4234 8.81389 12.769 8.61538 12.0996 8.61538C11.2019 8.61538 10.341 8.97198 9.7063 9.60672C9.07156 10.2415 8.71497 11.1023 8.71497 12V12Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},vg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M2.00003 5H22V19H2.00003V5Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M21.6772 5.51294L13.921 11.3593C13.3703 11.7745 12.6949 11.9997 12 11.9997C11.3052 11.9997 10.6298 11.7745 10.0791 11.3593L2.32291 5.51294",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Sg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M12 22C17.5228 22 22 17.5229 22 12.0001C22 6.47721 17.5228 2 12 2C6.47716 2 2 6.47721 2 12.0001C2 17.5229 6.47716 22 12 22Z",strokeWidth:o,strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M6.88889 11.9554H16.9334",strokeWidth:o,strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},kg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M2 5.6366H22",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M14.0454 2H9.95446C9.5928 2 9.24595 2.14367 8.99022 2.3994C8.73449 2.65513 8.59082 3.00198 8.59082 3.36364V5.63636H15.409V3.36364C15.409 3.00198 15.2653 2.65513 15.0096 2.3994C14.7539 2.14367 14.407 2 14.0454 2Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M9.95453 17.2275V10.4093",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M14.0455 17.2275V10.4093",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M18.2364 20.7457C18.2111 21.0873 18.0573 21.4067 17.8059 21.6395C17.5546 21.8723 17.2244 22.0012 16.8818 22.0002H7.11818C6.77561 22.0012 6.4454 21.8723 6.19406 21.6395C5.94273 21.4067 5.78893 21.0873 5.76364 20.7457L4.5 5.6366H19.5L18.2364 20.7457Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Ig=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M21.375 8.09253L12.4417 17.025C12.3837 17.0831 12.3148 17.1291 12.2391 17.1605C12.1632 17.192 12.082 17.2082 12 17.2082C11.918 17.2082 11.8368 17.192 11.7609 17.1605C11.6852 17.1291 11.6163 17.0831 11.5583 17.025L2.625 8.09253",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Mg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M20.125 5.125H3.875C3.18464 5.125 2.625 5.68464 2.625 6.375V20.125C2.625 20.8153 3.18464 21.375 3.875 21.375H20.125C20.8153 21.375 21.375 20.8153 21.375 20.125V6.375C21.375 5.68464 20.8153 5.125 20.125 5.125Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M2.625 10.125H21.375",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M7.625 7V2.625",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M16.375 7V2.625",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M6.6875 13.875C6.51491 13.875 6.375 13.7351 6.375 13.5625C6.375 13.3899 6.51491 13.25 6.6875 13.25",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M6.6875 13.875C6.86009 13.875 7 13.7351 7 13.5625C7 13.3899 6.86009 13.25 6.6875 13.25",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M6.6875 18.25C6.51491 18.25 6.375 18.1101 6.375 17.9375C6.375 17.7649 6.51491 17.625 6.6875 17.625",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M6.6875 18.25C6.86009 18.25 7 18.1101 7 17.9375C7 17.7649 6.86009 17.625 6.6875 17.625",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M12 13.875C11.8274 13.875 11.6875 13.7351 11.6875 13.5625C11.6875 13.3899 11.8274 13.25 12 13.25",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M12 13.875C12.1726 13.875 12.3125 13.7351 12.3125 13.5625C12.3125 13.3899 12.1726 13.25 12 13.25",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M12 18.25C11.8274 18.25 11.6875 18.1101 11.6875 17.9375C11.6875 17.7649 11.8274 17.625 12 17.625",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M12 18.25C12.1726 18.25 12.3125 18.1101 12.3125 17.9375C12.3125 17.7649 12.1726 17.625 12 17.625",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M17.3125 13.875C17.1399 13.875 17 13.7351 17 13.5625C17 13.3899 17.1399 13.25 17.3125 13.25",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M17.3125 13.875C17.4851 13.875 17.625 13.7351 17.625 13.5625C17.625 13.3899 17.4851 13.25 17.3125 13.25",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M17.3125 18.25C17.1399 18.25 17 18.1101 17 17.9375C17 17.7649 17.1399 17.625 17.3125 17.625",strokeWidth:o,stroke:"currentColor"}),i.jsx("path",{d:"M17.3125 18.25C17.4851 18.25 17.625 18.1101 17.625 17.9375C17.625 17.7649 17.4851 17.625 17.3125 17.625",strokeWidth:o,stroke:"currentColor"})]})},Eg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M17.2667 20.9723L12 17.2856L6.73333 20.9723C6.6397 21.0378 6.52988 21.0764 6.41584 21.0839C6.3018 21.0914 6.18789 21.0674 6.08651 21.0147C5.98512 20.9619 5.90015 20.8824 5.84082 20.7847C5.78149 20.687 5.75007 20.5749 5.75 20.4606V4.16064C5.75 3.82912 5.8817 3.51118 6.11612 3.27676C6.35054 3.04234 6.66848 2.91064 7 2.91064H17C17.3315 2.91064 17.6495 3.04234 17.8839 3.27676C18.1183 3.51118 18.25 3.82912 18.25 4.16064V20.4606C18.2499 20.5749 18.2185 20.687 18.1592 20.7847C18.0999 20.8824 18.0149 20.9619 17.9135 21.0147C17.8121 21.0674 17.6982 21.0914 17.5842 21.0839C17.4701 21.0764 17.3603 21.0378 17.2667 20.9723Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M9.5 2.91162V19.0358",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M14.5 2.91162V19.0358",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Pg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return e==="16"&&t==="16"?i.jsxs("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M11.7377 15.4192L7.97053 12.7822L4.20336 15.4192C4.13638 15.4661 4.05784 15.4937 3.97627 15.499C3.89469 15.5044 3.81322 15.4873 3.7407 15.4495C3.66818 15.4118 3.6074 15.3549 3.56496 15.285C3.52252 15.2152 3.50005 15.135 3.5 15.0532V3.39411C3.5 3.15697 3.5942 2.92955 3.76188 2.76188C3.92955 2.5942 4.15697 2.5 4.39411 2.5H11.5469C11.7841 2.5 12.0115 2.5942 12.1792 2.76188C12.3469 2.92955 12.4411 3.15697 12.4411 3.39411V15.0532C12.441 15.135 12.4185 15.2152 12.3761 15.285C12.3337 15.3549 12.2729 15.4118 12.2004 15.4495C12.1278 15.4873 12.0464 15.5044 11.9648 15.499C11.8832 15.4937 11.8047 15.4661 11.7377 15.4192Z",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M6.18231 2.50098V14.0343",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M9.75873 2.50098V14.0343",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"12.8",cy:"3.11104",r:"2.3",fill:"#BA1E50",stroke:"white"})]}):i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M17.2667 21.9723L12 18.2856L6.73333 21.9723C6.6397 22.0378 6.52988 22.0764 6.41584 22.0839C6.3018 22.0914 6.18789 22.0674 6.08651 22.0147C5.98512 21.9619 5.90015 21.8824 5.84082 21.7847C5.78149 21.687 5.75007 21.5749 5.75 21.4606V5.16064C5.75 4.82912 5.8817 4.51118 6.11612 4.27676C6.35054 4.04234 6.66848 3.91064 7 3.91064H17C17.3315 3.91064 17.6495 4.04234 17.8839 4.27676C18.1183 4.51118 18.25 4.82912 18.25 5.16064V21.4606C18.2499 21.5749 18.2185 21.687 18.1592 21.7847C18.0999 21.8824 18.0149 21.9619 17.9135 22.0147C17.8121 22.0674 17.6982 22.0914 17.5842 22.0839C17.4701 22.0764 17.3603 22.0378 17.2667 21.9723Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M9.5 3.91162V20.0358",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M14.5 3.91162V20.0358",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"19",cy:"5",r:"4",fill:"#BA1E50",stroke:"white",strokeWidth:"2"})]})},Tg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M3.22667 13.1308C4.01013 14.9742 5.49382 16.431 7.35134 17.1805C9.20886 17.9301 11.2881 17.911 13.1315 17.1276C14.975 16.3441 16.4317 14.8604 17.1813 13.0029C17.9308 11.1454 17.9118 9.06617 17.1283 7.2227C16.3449 5.37922 14.8612 3.92248 13.0037 3.17294C11.1461 2.42339 9.06694 2.44244 7.22347 3.2259C5.38 4.00936 3.92325 5.49305 3.17371 7.35057C2.42416 9.20809 2.44322 11.2873 3.22667 13.1308Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M15.5175 15.5167L21.375 21.3751",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Fg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M17.3333 5.01583C18.7245 4.79227 20.1306 4.67518 21.5396 4.66561C21.6606 4.66375 21.7775 4.70975 21.8649 4.79361C21.9506 4.87667 21.9993 4.99071 22 5.11006V19.1261C21.9976 19.3705 21.8 19.5681 21.5556 19.5705C14.184 19.6621 12 21.9989 12 21.9989V7.09406C12 7.09406 9.81778 4.75983 2.46044 4.66561C2.33876 4.66328 2.22112 4.70931 2.13333 4.79361C2.04829 4.87697 2.00026 4.99097 2 5.11006V19.1261C2.00241 19.3705 2.19999 19.5681 2.44444 19.5705C9.816 19.6621 12 21.9989 12 21.9989",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 21.5609C12.1404 20.4089 12.6507 19.3334 13.4542 18.496C14.4882 17.3807 15.8441 16.6154 17.3333 16.3067V2.43734C17.3306 2.29208 17.2542 2.15817 17.1307 2.08178C16.9997 1.99949 16.8395 1.97808 16.6916 2.02312C15.4443 2.38152 14.3226 3.08277 13.4542 4.04712C12.6511 4.88407 12.1408 5.95882 12 7.11023",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},jg=({width:e="24",height:t="24",className:n="",title:r="",role:o=""})=>{const s=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"#000000",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${s}`,role:o||(s?"graphics-document":"img"),children:[!s&&i.jsx("title",{children:r}),i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"currentColor",stroke:"currentColor",d:"M20.5002 6.50003H3.50002C3.10219 6.50003 2.72065 6.342 2.43934 6.06069C2.15804 5.77938 2 5.39785 2 5.00002C2 4.60219 2.15804 4.22065 2.43934 3.93934C2.72065 3.65804 3.10219 3.5 3.50002 3.5H20.5002C20.898 3.5 21.2796 3.65804 21.5609 3.93934C21.8422 4.22065 22.0002 4.60219 22.0002 5.00002C22.0002 5.39785 21.8422 5.77938 21.5609 6.06069C21.2796 6.342 20.898 6.50003 20.5002 6.50003ZM20.5002 13.5001H3.50002C3.10219 13.5001 2.72065 13.3421 2.43934 13.0608C2.15804 12.7795 2 12.3979 2 12.0001C2 11.6023 2.15804 11.2207 2.43934 10.9394C2.72065 10.6581 3.10219 10.5001 3.50002 10.5001H20.5002C20.898 10.5001 21.2796 10.6581 21.5609 10.9394C21.8422 11.2207 22.0002 11.6023 22.0002 12.0001C22.0002 12.3979 21.8422 12.7795 21.5609 13.0608C21.2796 13.3421 20.898 13.5001 20.5002 13.5001ZM3.50002 20.5002H20.5002C20.898 20.5002 21.2796 20.3422 21.5609 20.0608C21.8422 19.7795 22.0002 19.398 22.0002 19.0002C22.0002 18.6023 21.8422 18.2208 21.5609 17.9395C21.2796 17.6582 20.898 17.5002 20.5002 17.5002H3.50002C3.10219 17.5002 2.72065 17.6582 2.43934 17.9395C2.15804 18.2208 2 18.6023 2 19.0002C2 19.398 2.15804 19.7795 2.43934 20.0608C2.72065 20.3422 3.10219 20.5002 3.50002 20.5002Z"})]})},Og=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M12 8V16",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M8 12H16",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M2 12C2 13.3132 2.25866 14.6136 2.7612 15.8268C3.26375 17.0401 4.00035 18.1425 4.92893 19.0711C5.85752 19.9997 6.95991 20.7362 8.17317 21.2388C9.38642 21.7413 10.6868 22 12 22C13.3132 22 14.6136 21.7413 15.8268 21.2388C17.0401 20.7362 18.1425 19.9997 19.0711 19.0711C19.9997 18.1425 20.7362 17.0401 21.2388 15.8268C21.7413 14.6136 22 13.3132 22 12C22 10.6868 21.7413 9.38642 21.2388 8.17317C20.7362 6.95991 19.9997 5.85752 19.0711 4.92893C18.1425 4.00035 17.0401 3.26375 15.8268 2.7612C14.6136 2.25866 13.3132 2 12 2C10.6868 2 9.38642 2.25866 8.17317 2.7612C6.95991 3.26375 5.85752 4.00035 4.92893 4.92893C4.00035 5.85752 3.26375 6.95991 2.7612 8.17317C2.25866 9.38642 2 10.6868 2 12Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Rg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"#000000",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M9.70831 14.1025L21.375 2.625",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M21.375 9.18417V2.625H14.7083",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12.1042 6.79163H3.35417C3.16078 6.79163 2.97531 6.86845 2.83857 7.00519C2.70182 7.14194 2.625 7.32741 2.625 7.52079V20.6458C2.625 20.8392 2.70182 21.0246 2.83857 21.1614C2.97531 21.2981 3.16078 21.375 3.35417 21.375H16.4792C16.6726 21.375 16.858 21.2981 16.9948 21.1614C17.1315 21.0246 17.2083 20.8392 17.2083 20.6458V11.8958",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Lg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return e==="16"&&t==="16"?i.jsxs("svg",{width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M11.7333 4.11082C12.7071 3.95432 13.6914 3.87236 14.6777 3.86566C14.7624 3.86436 14.8443 3.89656 14.9054 3.95526C14.9654 4.0134 14.9995 4.09323 15 4.17677V13.988C14.9983 14.1591 14.86 14.2974 14.6889 14.2991C9.5288 14.3632 8 15.999 8 15.999V5.56557C8 5.56557 6.47244 3.93162 1.32231 3.86566C1.23713 3.86403 1.15478 3.89625 1.09333 3.95526C1.0338 4.01361 1.00018 4.09341 1 4.17677V13.988C1.00169 14.1591 1.13999 14.2974 1.31111 14.2991C6.4712 14.3632 8 15.999 8 15.999",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M8 15.6926C8.09831 14.8862 8.4555 14.1334 9.01796 13.5472C9.74172 12.7665 10.6909 12.2308 11.7333 12.0147V2.30614C11.7314 2.20446 11.678 2.11072 11.5915 2.05725C11.4998 1.99964 11.3877 1.98466 11.2841 2.01618C10.411 2.26706 9.62585 2.75794 9.01796 3.43298C8.45574 4.01885 8.09857 4.77117 8 5.57716",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"15.8",cy:"3.11104",r:"2.3",fill:"#BA1E50",stroke:"white"})]}):i.jsxs("svg",{width:"29",height:"24",viewBox:"0 0 29 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M17.3333 5.01583C18.7245 4.79227 20.1306 4.67518 21.5396 4.66561C21.6606 4.66375 21.7775 4.70975 21.8649 4.79361C21.9506 4.87667 21.9993 4.99071 22 5.11006V19.1261C21.9976 19.3705 21.8 19.5681 21.5556 19.5705C14.184 19.6621 12 21.9989 12 21.9989V7.09406C12 7.09406 9.81778 4.75983 2.46044 4.66561C2.33876 4.66328 2.22112 4.70931 2.13333 4.79361C2.04829 4.87697 2.00026 4.99097 2 5.11006V19.1261C2.00241 19.3705 2.19999 19.5681 2.44444 19.5705C9.816 19.6621 12 21.9989 12 21.9989",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M12 21.5609C12.1404 20.4089 12.6507 19.3334 13.4542 18.496C14.4882 17.3807 15.8441 16.6154 17.3333 16.3067V2.43734C17.3306 2.29208 17.2542 2.15817 17.1307 2.08178C16.9997 1.99949 16.8395 1.97808 16.6916 2.02312C15.4443 2.38152 14.3226 3.08277 13.4542 4.04712C12.6511 4.88407 12.1408 5.95882 12 7.11023",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("circle",{cx:"24",cy:"5",r:"4",fill:"#BA1E50",stroke:"white",strokeWidth:"2"})]})},Dg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",className:n,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 9.34784 20.9464 6.8043 19.0711 4.92893C17.1957 3.05357 14.6522 2 12 2C9.34784 2 6.8043 3.05357 4.92893 4.92893C3.05357 6.8043 2 9.34784 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C6.8043 20.9464 9.34784 22 12 22Z",stroke:"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),i.jsx("path",{d:"M15.5 9L11 15L8 12",stroke:"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"})]})},Hg=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M4.9375 9.4375H19C19 9.4375 19.9375 9.4375 19.9375 10.375V21.625C19.9375 21.625 19.9375 22.5625 19 22.5625H4.9375C4.9375 22.5625 4 22.5625 4 21.625V10.375C4 10.375 4 9.4375 4.9375 9.4375Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M6.8125 6.15625C6.8125 4.78873 7.35575 3.47721 8.32273 2.51023C9.28971 1.54325 10.6012 1 11.9688 1C13.3363 1 14.6478 1.54325 15.6148 2.51023C16.5818 3.47721 17.125 4.78873 17.125 6.15625V9.4375",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M11.0312 14.5938C11.0312 14.8424 11.13 15.0808 11.3058 15.2567C11.4817 15.4325 11.7201 15.5312 11.9688 15.5312C12.2174 15.5312 12.4558 15.4325 12.6317 15.2567C12.8075 15.0808 12.9062 14.8424 12.9062 14.5938C12.9062 14.3451 12.8075 14.1067 12.6317 13.9308C12.4558 13.755 12.2174 13.6562 11.9688 13.6562C11.7201 13.6562 11.4817 13.755 11.3058 13.9308C11.13 14.1067 11.0312 14.3451 11.0312 14.5938Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M11.9688 15.5312V18.3438",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},_g=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:s=""})=>{const l=!(r&&r.length>0);return i.jsxs("svg",{width:e,height:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,stroke:"#000000","aria-hidden":`${l}`,role:s||(l?"graphics-document":"img"),children:[!l&&i.jsx("title",{children:r}),i.jsx("path",{d:"M11.0312 14.5938C11.0312 14.8424 11.13 15.0808 11.3058 15.2567C11.4817 15.4325 11.7201 15.5312 11.9688 15.5312C12.2174 15.5312 12.4558 15.4325 12.6317 15.2567C12.8075 15.0808 12.9062 14.8424 12.9062 14.5938C12.9062 14.3451 12.8075 14.1067 12.6317 13.9308C12.4558 13.755 12.2174 13.6562 11.9688 13.6562C11.7201 13.6562 11.4817 13.755 11.3058 13.9308C11.13 14.1067 11.0312 14.3451 11.0312 14.5938Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M11.9688 15.5312V18.3438",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M4.9375 9.4375H19C19 9.4375 19.9375 9.4375 19.9375 10.375V21.625C19.9375 21.625 19.9375 22.5625 19 22.5625H4.9375C4.9375 22.5625 4 22.5625 4 21.625V10.375C4 10.375 4 9.4375 4.9375 9.4375Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),i.jsx("path",{d:"M6.8125 6.15625C6.8125 4.78873 7.35575 3.47721 8.32273 2.51023C9.28971 1.54325 10.6012 1 11.9688 1C13.3363 1 14.6478 1.54325 15.6148 2.51023C16.5818 3.47721 17.125 4.78873 17.125 6.15625V9.4375H6.8125V6.15625Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})};function ba(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ba(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pe(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ba(e))&&(r&&(r+=" "),r+=t);return r}const pl=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,bl=Pe,Be=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return bl(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,l=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],h=s==null?void 0:s[u];if(d===null)return null;const m=pl(d)||pl(h);return o[u][m]}),a=n&&Object.entries(n).reduce((u,d)=>{let[h,m]=d;return m===void 0||(u[h]=m),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:h,className:m,...p}=d;return Object.entries(p).every(b=>{let[x,w]=b;return Array.isArray(w)?w.includes({...s,...a}[x]):{...s,...a}[x]===w})?[...u,h,m]:u},[]);return bl(e,l,c,n==null?void 0:n.class,n==null?void 0:n.className)},Ag=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Vg=(e,t)=>({classGroupId:e,validator:t}),Ca=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),qr="-",Cl=[],Ng="arbitrary..",$g=e=>{const t=Gg(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return zg(l);const a=l.split(qr),c=a[0]===""&&a.length>1?1:0;return wa(a,c,t)},getConflictingClassGroupIds:(l,a)=>{if(a){const c=r[l],u=n[l];return c?u?Ag(u,c):c:u||Cl}return n[l]||Cl}}},wa=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const u=wa(e,t+1,s);if(u)return u}const l=n.validators;if(l===null)return;const a=t===0?e.join(qr):e.slice(t).join(qr),c=l.length;for(let u=0;u<c;u++){const d=l[u];if(d.validator(a))return d.classGroupId}},zg=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Ng+r:void 0})(),Gg=e=>{const{theme:t,classGroups:n}=e;return Bg(n,t)},Bg=(e,t)=>{const n=Ca();for(const r in e){const o=e[r];vs(o,n,r,t)}return n},vs=(e,t,n,r)=>{const o=e.length;for(let s=0;s<o;s++){const l=e[s];Wg(l,t,n,r)}},Wg=(e,t,n,r)=>{if(typeof e=="string"){qg(e,t,n);return}if(typeof e=="function"){Ug(e,t,n,r);return}Kg(e,t,n,r)},qg=(e,t,n)=>{const r=e===""?t:xa(t,e);r.classGroupId=n},Ug=(e,t,n,r)=>{if(Xg(e)){vs(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Vg(n,e))},Kg=(e,t,n,r)=>{const o=Object.entries(e),s=o.length;for(let l=0;l<s;l++){const[a,c]=o[l];vs(c,xa(t,a),n,r)}},xa=(e,t)=>{let n=e;const r=t.split(qr),o=r.length;for(let s=0;s<o;s++){const l=r[s];let a=n.nextPart.get(l);a||(a=Ca(),n.nextPart.set(l,a)),n=a}return n},Xg=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Yg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(s,l)=>{n[s]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let l=n[s];if(l!==void 0)return l;if((l=r[s])!==void 0)return o(s,l),l},set(s,l){s in n?n[s]=l:o(s,l)}}},ts="!",wl=":",Zg=[],xl=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Qg=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let l=0,a=0,c=0,u;const d=o.length;for(let x=0;x<d;x++){const w=o[x];if(l===0&&a===0){if(w===wl){s.push(o.slice(c,x)),c=x+1;continue}if(w==="/"){u=x;continue}}w==="["?l++:w==="]"?l--:w==="("?a++:w===")"&&a--}const h=s.length===0?o:o.slice(c);let m=h,p=!1;h.endsWith(ts)?(m=h.slice(0,-1),p=!0):h.startsWith(ts)&&(m=h.slice(1),p=!0);const b=u&&u>c?u-c:void 0;return xl(s,p,m,b)};if(t){const o=t+wl,s=r;r=l=>l.startsWith(o)?s(l.slice(o.length)):xl(Zg,!1,l,void 0,!0)}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Jg=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let s=0;s<n.length;s++){const l=n[s],a=l[0]==="[",c=t.has(l);a||c?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(l)):o.push(l)}return o.length>0&&(o.sort(),r.push(...o)),r}},em=e=>({cache:Yg(e.cacheSize),parseClassName:Qg(e),sortModifiers:Jg(e),postfixLookupClassGroupIds:tm(e),...$g(e)}),tm=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},nm=/\s+/,rm=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s,postfixLookupClassGroupIds:l}=t,a=[],c=e.trim().split(nm);let u="";for(let d=c.length-1;d>=0;d-=1){const h=c[d],{isExternal:m,modifiers:p,hasImportantModifier:b,baseClassName:x,maybePostfixModifierPosition:w}=n(h);if(m){u=h+(u.length>0?" "+u:u);continue}let k=!!w,v;if(k){const N=x.substring(0,w);v=r(N);const M=v&&l[v]?r(x):void 0;M&&M!==v&&(v=M,k=!1)}else v=r(x);if(!v){if(!k){u=h+(u.length>0?" "+u:u);continue}if(v=r(x),!v){u=h+(u.length>0?" "+u:u);continue}k=!1}const F=p.length===0?"":p.length===1?p[0]:s(p).join(":"),j=b?F+ts:F,y=j+v;if(a.indexOf(y)>-1)continue;a.push(y);const A=o(v,k);for(let N=0;N<A.length;++N){const M=A[N];a.push(j+M)}u=h+(u.length>0?" "+u:u)}return u},om=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=ya(n))&&(o&&(o+=" "),o+=r);return o},ya=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=ya(e[r]))&&(n&&(n+=" "),n+=t);return n},sm=(e,...t)=>{let n,r,o,s;const l=c=>{const u=t.reduce((d,h)=>h(d),e());return n=em(u),r=n.cache.get,o=n.cache.set,s=a,a(c)},a=c=>{const u=r(c);if(u)return u;const d=rm(c,n);return o(c,d),d};return s=l,(...c)=>s(om(...c))},lm=[],st=e=>{const t=n=>n[e]||lm;return t.isThemeGetter=!0,t},va=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Sa=/^\((?:(\w[\w-]*):)?(.+)\)$/i,im=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,am=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cm=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,um=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,dm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,en=e=>im.test(e),Ee=e=>!!e&&!Number.isNaN(Number(e)),_t=e=>!!e&&Number.isInteger(Number(e)),To=e=>e.endsWith("%")&&Ee(e.slice(0,-1)),qt=e=>am.test(e),ka=()=>!0,hm=e=>cm.test(e)&&!um.test(e),Ss=()=>!1,gm=e=>dm.test(e),mm=e=>fm.test(e),pm=e=>!de(e)&&!he(e),bm=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Cm=e=>un(e,Ea,Ss),de=e=>va.test(e),hn=e=>un(e,Pa,hm),yl=e=>un(e,Mm,Ee),wm=e=>un(e,Fa,ka),xm=e=>un(e,Ta,Ss),vl=e=>un(e,Ia,Ss),ym=e=>un(e,Ma,mm),Rr=e=>un(e,ja,gm),he=e=>Sa.test(e),rr=e=>xn(e,Pa),vm=e=>xn(e,Ta),Sl=e=>xn(e,Ia),Sm=e=>xn(e,Ea),km=e=>xn(e,Ma),Lr=e=>xn(e,ja,!0),Im=e=>xn(e,Fa,!0),un=(e,t,n)=>{const r=va.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},xn=(e,t,n=!1)=>{const r=Sa.exec(e);return r?r[1]?t(r[1]):n:!1},Ia=e=>e==="position"||e==="percentage",Ma=e=>e==="image"||e==="url",Ea=e=>e==="length"||e==="size"||e==="bg-size",Pa=e=>e==="length",Mm=e=>e==="number",Ta=e=>e==="family-name",Fa=e=>e==="number"||e==="weight",ja=e=>e==="shadow",Em=()=>{const e=st("color"),t=st("font"),n=st("text"),r=st("font-weight"),o=st("tracking"),s=st("leading"),l=st("breakpoint"),a=st("container"),c=st("spacing"),u=st("radius"),d=st("shadow"),h=st("inset-shadow"),m=st("text-shadow"),p=st("drop-shadow"),b=st("blur"),x=st("perspective"),w=st("aspect"),k=st("ease"),v=st("animate"),F=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],y=()=>[...j(),he,de],A=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],M=()=>[he,de,c],P=()=>[en,"full","auto",...M()],R=()=>[_t,"none","subgrid",he,de],_=()=>["auto",{span:["full",_t,he,de]},_t,he,de],O=()=>[_t,"auto",he,de],D=()=>["auto","min","max","fr",he,de],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],E=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...M()],L=()=>[en,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],$=()=>[en,"screen","full","dvw","lvw","svw","min","max","fit",...M()],G=()=>[en,"screen","full","lh","dvh","lvh","svh","min","max","fit",...M()],S=()=>[e,he,de],H=()=>[...j(),Sl,vl,{position:[he,de]}],z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],q=()=>["auto","cover","contain",Sm,Cm,{size:[he,de]}],U=()=>[To,rr,hn],Q=()=>["","none","full",u,he,de],X=()=>["",Ee,rr,hn],W=()=>["solid","dashed","dotted","double"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>[Ee,To,Sl,vl],J=()=>["","none",b,he,de],ne=()=>["none",Ee,he,de],Z=()=>["none",Ee,he,de],oe=()=>[Ee,he,de],ee=()=>[en,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[qt],breakpoint:[qt],color:[ka],container:[qt],"drop-shadow":[qt],ease:["in","out","in-out"],font:[pm],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[qt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[qt],shadow:[qt],spacing:["px",Ee],text:[qt],"text-shadow":[qt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",en,de,he,w]}],container:["container"],"container-type":[{"@container":["","normal","size",he,de]}],"container-named":[bm],columns:[{columns:[Ee,de,he,a]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:y()}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{"inset-s":P(),start:P()}],end:[{"inset-e":P(),end:P()}],"inset-bs":[{"inset-bs":P()}],"inset-be":[{"inset-be":P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[_t,"auto",he,de]}],basis:[{basis:[en,"full","auto",a,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ee,en,"auto","initial","none",de]}],grow:[{grow:["",Ee,he,de]}],shrink:[{shrink:["",Ee,he,de]}],order:[{order:[_t,"first","last","none",he,de]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:_()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:_()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...V(),"normal"]}],"justify-items":[{"justify-items":[...E(),"normal"]}],"justify-self":[{"justify-self":["auto",...E()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...E(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...E(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...E(),"baseline"]}],"place-self":[{"place-self":["auto",...E()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pbs:[{pbs:M()}],pbe:[{pbe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mbs:[{mbs:T()}],mbe:[{mbe:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],"inline-size":[{inline:["auto",...$()]}],"min-inline-size":[{"min-inline":["auto",...$()]}],"max-inline-size":[{"max-inline":["none",...$()]}],"block-size":[{block:["auto",...G()]}],"min-block-size":[{"min-block":["auto",...G()]}],"max-block-size":[{"max-block":["none",...G()]}],w:[{w:[a,"screen",...L()]}],"min-w":[{"min-w":[a,"screen","none",...L()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[l]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",n,rr,hn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Im,wm]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",To,de]}],"font-family":[{font:[vm,xm,t]}],"font-features":[{"font-features":[de]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,he,de]}],"line-clamp":[{"line-clamp":[Ee,"none",he,yl]}],leading:[{leading:[s,...M()]}],"list-image":[{"list-image":["none",he,de]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",he,de]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ee,"from-font","auto",he,hn]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[Ee,"auto",he,de]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"tab-size":[{tab:[_t,he,de]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",he,de]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",he,de]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:H()}],"bg-repeat":[{bg:z()}],"bg-size":[{bg:q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},_t,he,de],radial:["",he,de],conic:[_t,he,de]},km,ym]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:U()}],"gradient-via-pos":[{via:U()}],"gradient-to-pos":[{to:U()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-bs":[{"border-bs":X()}],"border-w-be":[{"border-be":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-bs":[{"border-bs":S()}],"border-color-be":[{"border-be":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ee,he,de]}],"outline-w":[{outline:["",Ee,rr,hn]}],"outline-color":[{outline:S()}],shadow:[{shadow:["","none",d,Lr,Rr]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",h,Lr,Rr]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[Ee,hn]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":S()}],"text-shadow":[{"text-shadow":["none",m,Lr,Rr]}],"text-shadow-color":[{"text-shadow":S()}],opacity:[{opacity:[Ee,he,de]}],"mix-blend":[{"mix-blend":[...K(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":K()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":Y()}],"mask-image-linear-to-pos":[{"mask-linear-to":Y()}],"mask-image-linear-from-color":[{"mask-linear-from":S()}],"mask-image-linear-to-color":[{"mask-linear-to":S()}],"mask-image-t-from-pos":[{"mask-t-from":Y()}],"mask-image-t-to-pos":[{"mask-t-to":Y()}],"mask-image-t-from-color":[{"mask-t-from":S()}],"mask-image-t-to-color":[{"mask-t-to":S()}],"mask-image-r-from-pos":[{"mask-r-from":Y()}],"mask-image-r-to-pos":[{"mask-r-to":Y()}],"mask-image-r-from-color":[{"mask-r-from":S()}],"mask-image-r-to-color":[{"mask-r-to":S()}],"mask-image-b-from-pos":[{"mask-b-from":Y()}],"mask-image-b-to-pos":[{"mask-b-to":Y()}],"mask-image-b-from-color":[{"mask-b-from":S()}],"mask-image-b-to-color":[{"mask-b-to":S()}],"mask-image-l-from-pos":[{"mask-l-from":Y()}],"mask-image-l-to-pos":[{"mask-l-to":Y()}],"mask-image-l-from-color":[{"mask-l-from":S()}],"mask-image-l-to-color":[{"mask-l-to":S()}],"mask-image-x-from-pos":[{"mask-x-from":Y()}],"mask-image-x-to-pos":[{"mask-x-to":Y()}],"mask-image-x-from-color":[{"mask-x-from":S()}],"mask-image-x-to-color":[{"mask-x-to":S()}],"mask-image-y-from-pos":[{"mask-y-from":Y()}],"mask-image-y-to-pos":[{"mask-y-to":Y()}],"mask-image-y-from-color":[{"mask-y-from":S()}],"mask-image-y-to-color":[{"mask-y-to":S()}],"mask-image-radial":[{"mask-radial":[he,de]}],"mask-image-radial-from-pos":[{"mask-radial-from":Y()}],"mask-image-radial-to-pos":[{"mask-radial-to":Y()}],"mask-image-radial-from-color":[{"mask-radial-from":S()}],"mask-image-radial-to-color":[{"mask-radial-to":S()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":j()}],"mask-image-conic-pos":[{"mask-conic":[Ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":Y()}],"mask-image-conic-to-pos":[{"mask-conic-to":Y()}],"mask-image-conic-from-color":[{"mask-conic-from":S()}],"mask-image-conic-to-color":[{"mask-conic-to":S()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:H()}],"mask-repeat":[{mask:z()}],"mask-size":[{mask:q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",he,de]}],filter:[{filter:["","none",he,de]}],blur:[{blur:J()}],brightness:[{brightness:[Ee,he,de]}],contrast:[{contrast:[Ee,he,de]}],"drop-shadow":[{"drop-shadow":["","none",p,Lr,Rr]}],"drop-shadow-color":[{"drop-shadow":S()}],grayscale:[{grayscale:["",Ee,he,de]}],"hue-rotate":[{"hue-rotate":[Ee,he,de]}],invert:[{invert:["",Ee,he,de]}],saturate:[{saturate:[Ee,he,de]}],sepia:[{sepia:["",Ee,he,de]}],"backdrop-filter":[{"backdrop-filter":["","none",he,de]}],"backdrop-blur":[{"backdrop-blur":J()}],"backdrop-brightness":[{"backdrop-brightness":[Ee,he,de]}],"backdrop-contrast":[{"backdrop-contrast":[Ee,he,de]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ee,he,de]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ee,he,de]}],"backdrop-invert":[{"backdrop-invert":["",Ee,he,de]}],"backdrop-opacity":[{"backdrop-opacity":[Ee,he,de]}],"backdrop-saturate":[{"backdrop-saturate":[Ee,he,de]}],"backdrop-sepia":[{"backdrop-sepia":["",Ee,he,de]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",he,de]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ee,"initial",he,de]}],ease:[{ease:["linear","initial",k,he,de]}],delay:[{delay:[Ee,he,de]}],animate:[{animate:["none",v,he,de]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,he,de]}],"perspective-origin":[{"perspective-origin":y()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:Z()}],"scale-x":[{"scale-x":Z()}],"scale-y":[{"scale-y":Z()}],"scale-z":[{"scale-z":Z()}],"scale-3d":["scale-3d"],skew:[{skew:oe()}],"skew-x":[{"skew-x":oe()}],"skew-y":[{"skew-y":oe()}],transform:[{transform:[he,de,"","none","gpu","cpu"]}],"transform-origin":[{origin:y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ee()}],"translate-x":[{"translate-x":ee()}],"translate-y":[{"translate-y":ee()}],"translate-z":[{"translate-z":ee()}],"translate-none":["translate-none"],zoom:[{zoom:[_t,he,de]}],accent:[{accent:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",he,de]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":S()}],"scrollbar-track-color":[{"scrollbar-track":S()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mbs":[{"scroll-mbs":M()}],"scroll-mbe":[{"scroll-mbe":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pbs":[{"scroll-pbs":M()}],"scroll-pbe":[{"scroll-pbe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",he,de]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[Ee,rr,hn,yl]}],stroke:[{stroke:["none",...S()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},rt=sm(Em);function Oa(){return Math.floor(Math.random()*1e7)}const Ra=(e,t,n,r,o)=>{const s=`preflight ${n}`;return{settings:i.jsx(yg,{width:e,height:t,className:s,title:r,role:o}),questionCircle:i.jsx(xg,{width:e,height:t,className:s,title:r,role:o}),notifications:i.jsx(Cg,{width:e,height:t,className:s,title:r,role:o}),flag:i.jsx(bg,{width:e,height:t,className:s,title:r,role:o}),edit:i.jsx(pg,{width:e,height:t,className:s,title:r,role:o}),infoCircle:i.jsx(Cs,{width:e,height:t,className:s,title:r,role:o}),delete:i.jsx(kg,{width:e,height:t,className:s,title:r,role:o}),resourceCenter:i.jsx(Fg,{width:e,height:t,className:s,title:r,role:o}),search:i.jsx(Tg,{width:e,height:t,className:s,title:r,role:o}),error:i.jsx(ys,{width:e,height:t,className:s,title:r,role:o}),warning:i.jsx(xs,{width:e,height:t,className:s,title:r,role:o}),dropdown:i.jsx(Ig,{width:e,height:t,className:s,title:r,role:o}),calendar:i.jsx(Mg,{width:e,height:t,className:s,title:r,role:o}),bookmark:i.jsx(Eg,{width:e,height:t,className:s,title:r,role:o}),menu:i.jsx(jg,{width:e,height:t,className:s,title:r,role:o}),add:i.jsx(Og,{width:e,height:t,className:s,title:r,role:o}),exclude:i.jsx(Sg,{width:e,height:t,className:s,title:r,role:o}),email:i.jsx(vg,{width:e,height:t,className:s,title:r,role:o}),close:i.jsx(mg,{width:e,height:t,className:s,title:r,role:o}),checkCircle:i.jsx(ws,{width:e,height:t,className:s,title:r,role:o}),linkNewTab:i.jsx(Rg,{width:e,height:t,className:s,title:r,role:o}),lockOpened:i.jsx(Hg,{width:e,height:t,className:s,title:r,role:o}),lockClosed:i.jsx(_g,{width:e,height:t,className:s,title:r,role:o}),check:i.jsx(Dg,{width:e,height:t,className:s,title:r,role:o})}},La=(e,t,n,r,o)=>{const s=`preflight ${n}`;return{notifications:i.jsx(wg,{width:e,height:t,className:s,title:r,role:o}),resourceCenter:i.jsx(Lg,{width:e,height:t,className:s,title:r,role:o}),bookmark:i.jsx(Pg,{width:e,height:t,className:s,title:r,role:o})}},Da=(e,t,n,r,o,s)=>{const l=`preflight ${n}`;return{infoCircle:i.jsx(Cs,{width:e,height:t,className:l,title:r,role:o,filled:s}),error:i.jsx(ys,{width:e,height:t,className:l,title:r,role:o,filled:s}),warning:i.jsx(xs,{width:e,height:t,className:l,title:r,role:o,filled:s}),checkCircle:i.jsx(ws,{width:e,height:t,className:l,title:r,role:o,filled:s})}},$t=({size:e="small",name:t,hasIndicator:n=!1,className:r,altText:o,role:s=void 0,filled:l=!1})=>{const a={small:{width:"16",height:"16"},medium:{width:"24",height:"24"}},c=Ra(a[e].width,a[e].height,r,o,s),u=La(a[e].width,a[e].height,r,o,s),d=Da(a[e].width,a[e].height,r,o,s,l),h=n&&!l?u[t]||c[t]:l&&d[t]||c[t];return i.jsx(i.Fragment,{children:h})};Object.keys(Ra()).sort((e,t)=>e.localeCompare(t));Object.keys(La()).sort((e,t)=>e.localeCompare(t));Object.keys(Da()).sort((e,t)=>e.localeCompare(t));const pr=(...e)=>rt(Pe(...e)),Pm=Be("ds:rounded-full ds:border-t-acuity-blue ds:border-x-acuity-blue ds:border-b-neutrals-transparent ds:border-solid ds:animate-spin",{variants:{size:{small:["ds:w-4","ds:h-4","ds:border"],medium:["ds:w-5","ds:h-5","ds:border-2"],large:["ds:w-7","ds:h-7","ds:border-[3px]"],"extra-large":["ds:w-[6.5rem]","ds:h-[6.5rem]","ds:border-[6px]"]}}}),Tm=Be("preflight ds:inline-block ds:rounded ds:focus-visible:outline-hidden ds:focus-visible:ring-2 ds:focus-visible:ring-acuity-blue",{variants:{size:{small:"ds:p-1",medium:"ds:p-2",large:"ds:p-3","extra-large":"ds:p-4"}}}),Ur=({size:e="medium",focusable:t=!0,label:n="",ariaLive:r="assertive",className:o="",spinnerClassName:s=""})=>i.jsx("div",{tabIndex:t?0:void 0,"aria-label":n,"aria-live":r,className:t?pr(Tm({size:e}),o):`preflight ds:rounded ${o}`,role:"status",children:i.jsx("div",{className:pr(Pm({size:e}),s)})}),Ha=(e,t,n)=>{if(t){e.preventDefault();return}n(e)},ao=(e,t,n)=>{if(t){e.preventDefault();return}n(e)},Fm=(e,t,n)=>{if(t){e.preventDefault();return}n(e)},jm=(e,t,n)=>{if(t&&e.key!=="Tab"){e.preventDefault();return}n(e)},Om=(e,t,n)=>{if(t){e.preventDefault();return}n(e)},Rm=Be(["preflight","ds:font-sans!","ds:rounded","ds:text-base","ds:font-semibold","ds:border","ds:transition","ds:duration-100","ds:text-nowrap","ds:focus-visible:border","ds:focus-visible:ring-2","ds:focus-visible:outline-hidden","ds:focus-visible:ring-offset-2"],{variants:{variant:{default:["ds:p-[10px]","ds:relative","ds:group"],small:["ds:p-1"]},isTransparent:{false:"",true:""},disabled:{false:["ds:text-neutrals-black","ds:hover:bg-neutrals-transparent-light","ds:hover:border-neutrals-transparent","ds:active:bg-neutrals-transparent-medium","ds:active:border-neutrals-transparent","ds:focus-visible:bg-neutrals-transparent-light","ds:focus-visible:border-neutrals-dark","ds:focus-visible:ring-neutrals-black"],true:["ds:bg-neutrals-transparent-light","ds:text-neutrals-dark","ds:border-neutrals-transparent","ds:cursor-not-allowed","ds:focus-visible:border-neutrals-light","ds:focus-visible:ring-neutrals-black"]}},compoundVariants:[{isTransparent:!0,disabled:!1,className:["ds:bg-neutrals-transparent","ds:border-neutrals-transparent"]},{isTransparent:!1,disabled:!1,className:["ds:bg-neutrals-white","ds:border-neutrals-white"]}]}),co=({variant:e="default",label:t="",disabled:n=!1,className:r="",onClick:o,iconName:s,iconSize:l="medium",hasIndicator:a=!1,hasTooltip:c=!0,isTransparent:u=!0,iconColor:d="",stateful:h=!1,...m})=>{const p=h||n;return i.jsxs("button",{onClick:b=>ao(b,p,o),"aria-disabled":p,"aria-label":t,"aria-pressed":h,"aria-live":h?"assertive":"off",className:pr(Rm({variant:e,isTransparent:u,disabled:p}),r),...m,children:[h&&e==="default"?i.jsx(Ur,{size:"medium",focusable:!1,label:t,ariaLive:"off"}):i.jsx($t,{size:e==="small"?"small":l,name:s!=null?s:"edit",hasIndicator:a,className:n?"ds:text-neutrals-dark":d&&d!==""?d:"ds:text-neutrals-black",altText:t}),e==="default"&&c&&i.jsx("div",{"aria-hidden":"true",className:`${p?"ds:group-hover:hidden":"ds:group-hover:block ds:group-active:block"} ds:absolute ds:left-1/2 ds:top-[3.5rem] ds:z-10 ds:hidden ds:-translate-x-1/2 ds:cursor-default ds:text-nowrap ds:rounded ds:bg-neutrals-darker ds:px-2 ds:py-1 ds:text-sm ds:font-normal ds:text-neutrals-white ds:transition-all ds:duration-100 ds:group-focus-visible:block`,children:t})]})},Lm=Be(["preflight","ds:flex","ds:w-full","ds:flex-row","ds:justify-between","ds:rounded","ds:pl-5","ds:pr-[14px]","ds:py-4","ds:font-sans!"],{variants:{variant:{success:["ds:bg-success-green-lightest","ds:text-success-green-darkest"],info:["ds:bg-information-blue-lightest","ds:text-information-blue-darkest"],warning:["ds:bg-warning-yellow-lightest","ds:text-neutrals-darker"],error:["ds:bg-danger-red-lightest","ds:text-danger-red-darkest"]}}}),Dm=e=>rt(Lm(e)),Hm=Be("",{variants:{variant:{success:"ds:text-success-green-dark",info:"ds:text-information-blue-dark",warning:"ds:text-warning-yellow-darkest",error:"ds:text-danger-red-dark"}}}),kl=e=>rt(Hm(e)),_m=Be("",{variants:{variant:{success:["ds:text-success-green-darkest","ds:stroke-success-green-darkest"],info:["ds:text-information-blue-darkest","ds:stroke-information-blue-darkest"],warning:["ds:text-neutrals-darker","ds:stroke-neutrals-darker"],error:["ds:text-danger-red-darkest","ds:stroke-danger-red-darkest"]}}}),kn=e=>rt(_m(e)),_a=({variant:e="info",isDismissible:t=!0,showIcon:n=!0,titleSize:r="large",title:o="",description:s="",content:l=void 0,closeAriaLabel:a="Close button",id:c="alert_"+Oa().toString(),handleClose:u,className:d="",...h})=>{const m={success:i.jsx(ws,{className:kn({variant:e})}),info:i.jsx(Cs,{className:kn({variant:e})}),warning:i.jsx(xs,{className:kn({variant:e})}),error:i.jsx(ys,{className:kn({variant:e})})},p=()=>l!==void 0&&s!==""&&!(r!=="none"||o!==""),b=()=>r==="large"?"ds:flex-col ds:flex ds:gap-3":r==="small"?"ds:flex-row ds:flex ds:gap-3":"ds:flex";return i.jsxs("div",{id:c,className:rt(Dm({variant:e}),d),...h,children:[i.jsxs("div",{className:"ds:flex ds:flex-row",children:[n&&i.jsx("div",{className:`ds:flex ds:pr-2 ${r==="large"&&o!==""&&"ds:h-[1.75rem] ds:items-center"}`,children:m[e]}),i.jsxs("div",{className:`ds:flex ds:flex-col ${r!=="none"&&o!==""?"ds:gap-3":"ds:justify-center"}`,children:[i.jsxs("div",{className:b(),children:[r!=="none"&&o!==""&&i.jsx("h1",{className:r==="large"?"ds:text-xl ds:font-semibold":"ds:hidden",children:o}),i.jsxs("div",{className:kl({variant:e}),children:[r!=="none"&&o!==""&&i.jsx("span",{className:`${kn({variant:e})} ${r==="small"&&o!==""?"ds:pr-2 ds:text-base ds:font-semibold":"ds:hidden"}`,children:o}),i.jsx("span",{className:`${r==="none"||o===""?"ds:mb-3":""}`,children:s})]})]}),l&&i.jsx("div",{className:`${kl({variant:e})} ${p()?"ds:mt-3":""}`,children:l})]})]}),t===!0&&i.jsx("div",{className:"ds:-mt-2 ds:h-5",children:i.jsx(co,{variant:"default",iconSize:"small",iconName:"close",hasTooltip:!1,label:a,disabled:!1,iconColor:kn({variant:e}),onClick:u})})]})},Aa=["preflight","ds:font-sans!","ds:rounded","ds:text-base","ds:font-semibold","ds:border","ds:transition","ds:duration-100","ds:text-nowrap","ds:focus-visible:ring-2","ds:focus-visible:outline-hidden","ds:focus-visible:ring-offset-2"],Am=["ds:bg-neutrals-lighter!","ds:text-neutrals-dark!","ds:border-neutrals-light!","ds:cursor-not-allowed!","ds:hover:bg-neutrals-lighter!","ds:hover:border-neutrals-light!","ds:hover:text-neutrals-dark!","ds:focus-visible:ring-neutrals-black!","ds:focus-visible:border-neutrals-light!"],Vm=[...Aa,"ds:p-1","ds:bg-neutrals-lighter!","ds:text-neutrals-dark!","ds:cursor-not-allowed!","ds:border-neutrals-lighter","ds:focus:border-neutrals-light","ds:focus-visible:ring-neutrals-black","ds:focus-visible:border-neutrals-light!","ds:active:border-neutrals-lighter"],Nm=Be(Aa,{variants:{variant:{primary:["ds:py-3","ds:px-4","ds:text-neutrals-white","ds:bg-acuity-blue","ds:border-acuity-blue","ds:hover:bg-acuity-blue-dark","ds:hover:border-acuity-blue-dark","ds:active:bg-acuity-blue-darkest","ds:active:border-acuity-blue-darkest","ds:active:text-neutrals-white","ds:focus-visible:text-neutrals-black","ds:focus-visible:bg-acuity-blue-light","ds:focus-visible:border-acuity-blue"],secondary:["ds:py-3","ds:px-4","ds:text-neutrals-black","ds:bg-neutrals-white","ds:border-neutrals","ds:hover:bg-neutrals-lighter","ds:hover:border-neutrals-darker","ds:active:bg-neutrals-dark","ds:active:border-neutrals-dark","ds:active:text-neutrals-white","ds:focus-visible:text-neutrals-black","ds:focus-visible:bg-neutrals-lighter","ds:focus-visible:border-neutrals-black","ds:focus-visible:ring-neutrals-black"],danger:["ds:py-3","ds:px-4","ds:text-neutrals-white","ds:bg-danger-red","ds:border-danger-red","ds:hover:bg-danger-red-dark","ds:hover:border-danger-red-dark","ds:active:bg-danger-red-darkest","ds:active:border-danger-red-darkest","ds:active:text-neutrals-white","ds:focus-visible:text-neutrals-black","ds:focus-visible:bg-danger-red-lighter","ds:focus-visible:border-danger-red-darkest"],inline:["ds:p-1","ds:text-neutrals-black","ds:bg-neutrals-white","ds:border-neutrals-white","ds:hover:bg-neutrals-lighter","ds:hover:border-neutrals-lighter","ds:active:bg-neutrals-dark","ds:active:border-neutrals-dark","ds:active:text-neutrals-white","ds:focus-visible:text-neutrals-black","ds:focus-visible:bg-neutrals-lighter","ds:focus-visible:border-neutrals-dark","ds:focus-visible:ring-neutrals-black"]},disabled:{true:Am,false:[]}},compoundVariants:[{variant:"primary",disabled:!1,class:"ds:focus-visible:ring-acuity-blue"},{variant:"danger",disabled:!1,class:"ds:focus-visible:ring-danger-red-darkest"},{variant:["primary","danger"],disabled:!0,class:"ds:focus-visible:ring-neutrals-black"}]}),$m=(e,t,n)=>e==="inline"&&t===!0?pr(Vm):pr(Nm({variant:e,disabled:t}),n),Va=({variant:e="primary",text:t,label:n="",disabled:r=!1,className:o="",onClick:s,iconName:l,iconIndicator:a=!1,leadingIcon:c=!1,trailingIcon:u=!1,stateful:d=!1,...h})=>{const m=d||r;return i.jsx(i.Fragment,{children:i.jsx("button",{"aria-disabled":m,"aria-pressed":d,onClick:p=>ao(p,m,s),className:$m(e,m,o),"aria-label":n,"aria-live":d?"assertive":"off",...h,children:i.jsxs("div",{className:"ds:flex ds:flex-wrap ds:content-center ds:justify-center",children:[c&&(d?i.jsx(Ur,{size:"small",className:"ds:mr-2 ds:self-center",spinnerClassName:"ds:border-t-current ds:border-x-current ds:border-b-transparent",focusable:!1,label:n,ariaLive:"off"}):i.jsx($t,{size:"small",name:l!=null?l:"edit",hasIndicator:a,className:"ds:mr-2 ds:self-center",altText:""})),i.jsx("span",{children:t}),u&&(d?i.jsx(Ur,{size:"small",className:"ds:ml-2 ds:self-center",spinnerClassName:"ds:border-t-current ds:border-x-current ds:border-b-transparent",focusable:!1,ariaLive:"off",label:n}):i.jsx($t,{size:"small",name:l!=null?l:"edit",hasIndicator:a,className:"ds:ml-2 ds:self-center",altText:""}))]})})})},zm=({content:e=void 0,iconName:t=void 0,title:n="",footer:r=void 0,className:o="",...s})=>i.jsxs("div",{...s,className:rt("preflight ds:flex ds:flex-col ds:items-start ds:gap-6 ds:rounded-lg ds:border ds:border-neutrals-light ds:p-5",o),children:[n&&i.jsxs("div",{className:"ds:flex ds:flex-row ds:items-center ds:gap-3",children:[t&&i.jsx($t,{size:"medium",name:t,className:"ds:text-neutrals-darker",hasIndicator:!1,altText:t}),i.jsx(Is,{size:"small",text:n,hasMarginBottom:!1})]}),e&&i.jsx("div",{className:"ds:w-full ds:text-base",children:e}),r&&i.jsx("div",{children:r})]}),Gm=Be(["preflight","ds:h-4","ds:w-4","ds:focus:ring-acuity-blue","ds:border-neutrals","ds:border","ds:border-solid"],{variants:{disabled:{false:["ds:text-acuity-blue","ds:bg-neutrals-white","ds:hover:border-acuity-blue","ds:hover:bg-acuity-blue-lightest","ds:hover:text-acuity-blue-dark","ds:active:border-acuity-blue-darkest","ds:active:bg-acuity-blue-darkest","ds:active:text-acuity-blue-darkest","ds:cursor-pointer"],true:["ds:text-neutrals","ds:bg-neutrals-lighter"]}}}),Na=e=>rt(Gm(e)),Bm=Be(["preflight","ds:font-sans!","ds:ml-2","ds:text-base"],{variants:{disabled:{false:"ds:cursor-pointer",true:"ds:text-neutrals"}}}),$a=e=>rt(Bm(e)),ks={variants:{state:{default:["ds:border-neutrals","ds:text-neutrals-darker","ds:focus:border-acuity-blue","ds:focus:ring-acuity-blue","ds:focus:ring-offset-2","ds:focus:ring-2"],error:["ds:border-danger-red","ds:text-danger-red-darkest","ds:focus:border-danger-red","ds:focus:ring-danger-red-dark","ds:focus:ring-offset-2","ds:focus:ring-2"],success:["ds:border-success-green","ds:text-neutrals-darker","ds:focus:border-success-green","ds:focus:ring-success-green-dark","ds:focus:ring-offset-2","ds:focus:ring-2"]},disabled:{true:["ds:border-neutrals!","ds:text-neutrals-darker!","ds:bg-neutrals-lighter!","ds:focus:border-neutrals!","ds:focus:ring-neutrals-dark!","ds:cursor-not-allowed"]}}},Wm=({id:e,label:t="",name:n="",checked:r=!1,disabled:o=!1,indeterminate:s=!1,onChange:l=()=>{},onClick:a=()=>{},...c})=>{const u=c["aria-label"]||t||"checkbox_"+e;return i.jsxs("div",{className:"ds:flex",children:[i.jsx("input",{id:e,name:n,"aria-label":u,"aria-disabled":o,type:"checkbox",className:`ds:form-checkbox ds:mt-1 ${Na({disabled:o})} ds:rounded`,checked:r,ref:d=>{d&&(d.indeterminate=s)},onClick:d=>ao(d,o,a),onChange:d=>Ha(d,o,l),...c}),t&&i.jsx("label",{htmlFor:e,className:$a({disabled:o}),children:t})]})},qm=e=>["Zero","One","Two","Three","Four","Five","Six","Seven","Eight","Nine"][e]||e.toString(),Um=({children:e,className:t="",onClick:n,successTitle:r,successDescription:o,errorTitle:s,buttonText:l,...a})=>{const c="formValidation_"+Oa().toString(),[u,d]=se.useState(!1),[h,m]=se.useState(!1),[p,b]=se.useState(""),[x,w]=se.useState(!0),[k,v]=se.useState(""),[F,j]=se.useState("success"),y=32,A=se.useMemo(()=>g.default.Children.toArray(e).filter(O=>g.default.isValidElement(O)),[e]),N=O=>{n(O),w(!1),m(!0),R(c)},M=O=>D=>{O&&O(D),x||d(!0)},P=g.default.Children.map(e,O=>{if(g.default.isValidElement(O)){const V=O;return g.default.cloneElement(V,{onBlur:M(V.props.onBlur)})}return O}),R=se.useCallback(O=>{const D=document.getElementById(O);if(D){const V=D.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:V-y,behavior:"smooth"})}},[y]),_=se.useCallback(O=>{s?v(s):O==1?v("An error was found in the information you submitted"):v(`${qm(O)} errors were found in the information you submitted`)},[s]);return se.useEffect(()=>{if(u||h){const O=A.filter(D=>D.props.state=="error");O.length==0?u?w(!0):(j("success"),b(o),v(r)):u&&F=="success"?w(!0):(j("error"),b(i.jsx("ul",{children:O.map((D,V)=>i.jsx("li",{children:i.jsxs("span",{onClick:()=>R("label_"+D.props.id),children:[O.length>1?`${V+1}. `:"",D.props.message]})},D.props.id))})),_(O.length)),d(!1),m(!1)}},[A,R,_,o,r,u,h,F]),i.jsxs("div",{className:`prelight ${t}`,id:c,...a,children:[!x&&i.jsx("div",{className:"preflight ds:mb-6 ds:rounded",children:i.jsx(_a,{description:p,isDismissible:F=="success",title:k,titleSize:F=="success"?"small":"large",variant:F,handleClose:()=>{w(!0)}})}),P,i.jsx(Va,{text:l,onClick:N})]})},yn="large",Bn="medium",Wn="small",qn="extra-large",Il="h1",Km="h2",Xm="h3",Ym="div";function Zm(e){return{[yn]:Il,[Bn]:Km,[Wn]:Xm,[qn]:Ym}[e]||Il}const Qm=Be("preflight ds:font-sans!",{variants:{size:{[Wn]:"ds:mb-3",[Bn]:"ds:mb-5",[yn]:"ds:mb-5",[qn]:"ds:mb-6"}}}),Dr=Be("ds:text-neutrals-darker ds:font-sans!",{variants:{size:{[Wn]:"ds:text-xl ds:font-semibold",[Bn]:"ds:text-2xl ds:font-semibold",[yn]:"ds:text-3xl ds:font-bold",[qn]:"ds:text-4xl ds:font-semibold"}}}),Jm=Be("ds:mt-0 ds:font-bold ds:text-neutrals-dark",{variants:{size:{[Wn]:"ds:mb-1 ds:text-sm",[Bn]:"ds:mb-2 ds:text-sm",[yn]:"ds:mb-2 ds:text-base",[qn]:"ds:mb-3 ds:text-base"}}}),ep=Be("ds:mb-0 ds:text-neutrals-dark",{variants:{size:{[Wn]:"ds:mt-1 ds:text-base",[Bn]:"ds:mt-2 ds:text-base",[yn]:"ds:mt-2 ds:text-base",[qn]:"ds:mt-3 ds:text-base"}}}),tp=Be("ds:text-neutrals-light",{variants:{size:{[Wn]:"ds:mt-2",[Bn]:"ds:mt-2",[yn]:"ds:mt-2",[qn]:"ds:mt-3"}}}),Is=({size:e=yn,className:t="",text:n="",descriptionTop:r="",descriptionBottom:o="",hasHorizontalRule:s=!1,hasMarginBottom:l=!0,headingTag:a,...c})=>{const u=r?i.jsx("p",{className:Jm({size:e}),children:r}):null,d=o?i.jsx("p",{className:ep({size:e}),children:o}):null,h=s?i.jsx("hr",{className:tp({size:e})}):null,m=l?Qm({size:e}):"preflight",p={div:i.jsx("div",{className:Dr({size:e}),children:n}),h3:i.jsx("h3",{className:Dr({size:e}),children:n}),h2:i.jsx("h2",{className:Dr({size:e}),children:n}),h1:i.jsx("h1",{className:Dr({size:e}),children:n})};return i.jsxs("div",{className:rt(m,t),...c,children:[u,p[a||Zm(e)],d,h]})},np=({label:e="",name:t,id:n,disabled:r=!1,onChange:o=()=>{},onClick:s=()=>{},...l})=>i.jsxs("div",{className:"ds:flex ds:h-4 ds:items-center",children:[i.jsx("input",{id:n,name:t,type:"radio",className:`ds:form-radio ${Na({disabled:r})}`,"aria-disabled":r,onChange:a=>Ha(a,r,o),onClick:a=>ao(a,r,s),...l}),i.jsx("label",{htmlFor:n,className:$a({disabled:r}),children:e})]}),rp=Be(["preflight","ds:font-sans!","ds:inline-flex","ds:items-center","ds:gap-1","ds:cursor-pointer","ds:text-acuity-blue","ds:active:text-acuity-blue-darkest","ds:focus-visible:outline-hidden","ds:focus-visible:border-2","ds:focus-visible:rounded","ds:focus-visible:border-acuity-blue","ds:focus-visible:px-[2px]","ds:focus-visible:py-[2px]","ds:focus-visible:-mx-[4px]","ds:focus-visible:-my-[4px]"],{variants:{type:{default:["ds:font-bold","ds:hover:underline"],inline:["ds:underline","ds:hover:no-underline","ds:active:no-underline","ds:visited:text-[#551A8B]"]}}}),op=({text:e,href:t,type:n="default",iconName:r,...o})=>i.jsxs("a",{href:t,type:n,className:rt(rp({type:n})),...o,children:[e,r&&i.jsx($t,{altText:e,name:r,size:"small"})]}),sp=({open:e=!1,onClose:t,title:n="",backdrop:r="static",content:o,footer:s,icon:l=!1,iconComponent:a,iconName:c=void 0,dismissible:u=!0,horizontalRule:d=!0})=>{const h=()=>a?i.jsx(i.Fragment,{children:a}):l&&c?i.jsx($t,{name:c,size:"medium"}):null,m=()=>r==="dismissible"?t():!0;return i.jsx(Sn.Transition,{appear:!0,show:e,as:se.Fragment,children:i.jsxs(Sn.Dialog,{as:"div",onClose:m,static:!0,className:"preflight ds:relative ds:z-20 ds:focus:outline-hidden",children:[r!=="none"&&i.jsx(Sn.TransitionChild,{as:se.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:i.jsx("div",{className:"ds:fixed ds:inset-0 ds:bg-neutrals-transparent-medium ds:transition-opacity","aria-hidden":"true"})}),i.jsx("div",{className:"ds:fixed ds:inset-0 ds:z-20 ds:w-screen ds:overflow-y-auto",children:i.jsx("div",{className:"ds:flex ds:min-h-full ds:items-center ds:justify-center ds:p-4",children:i.jsx(Sn.TransitionChild,{as:se.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:i.jsxs(Sn.DialogPanel,{className:"ds:flex ds:max-h-[90vh] ds:min-w-full ds:max-w-full ds:transform ds:flex-col ds:rounded-lg ds:bg-neutrals-white ds:text-left ds:shadow-modal ds:sm:min-w-[15rem] ds:sm:max-w-[55%]",children:[i.jsxs("div",{className:`ds:flex ds:items-center ds:py-4 ${u?"ds:pl-5 ds:pr-3":"ds:px-5"}`,children:[l&&i.jsx("div",{className:"ds:mr-3",children:h()}),i.jsx(Sn.DialogTitle,{as:"div",className:"ds:flex-grow",children:i.jsx(Is,{text:n,headingTag:"h2",size:"medium",hasMarginBottom:!1})}),u&&i.jsx(co,{variant:"default",iconSize:"small",iconName:"close",hasTooltip:!1,label:"Close",disabled:!1,onClick:()=>t()})]}),d&&i.jsx("hr",{className:"ds:border-neutrals-light"}),o&&i.jsx("div",{className:`ds:h-auto ds:max-h-[48.6rem] ds:grow ds:overflow-y-auto ds:px-5 ${s?"ds:py-4":"ds:pb-5 ds:pt-4"}`,children:o}),s&&i.jsx("div",{className:"ds:flex ds:justify-end ds:gap-x-4 ds:px-5 ds:py-4",children:s})]})})})})]})})},lp=Be(["preflight","ds:rounded-xl","ds:border","ds:px-2","ds:py-1","ds:inline-flex","ds:items-center"],{variants:{color:{default:["ds:border-neutrals-light"],gray:["ds:bg-neutrals-lighter","ds:border-neutrals-lighter"],blue:["ds:bg-information-blue-lightest","ds:text-information-blue-darkest","ds:border-information-blue-lightest"],green:["ds:bg-success-green-lightest","ds:text-success-green-darkest","ds:border-success-green-lightest"],yellow:["ds:bg-warning-yellow-lightest","ds:text-warning-yellow-darkest","ds:border-warning-yellow-lightest"],red:["ds:bg-danger-red-lightest","ds:text-danger-red-darkest","ds:border-danger-red-lightest"]},type:{regular:["ds:text-base"],small:["ds:text-sm"]}}}),za=({label:e,type:t="regular",color:n="default",dismissible:r=!1,dismissLabel:o="",className:s="",onDismiss:l,...a})=>{const c=a["aria-label"]||e;return i.jsxs("div",{className:rt(lp({color:n,type:t}),s),"aria-label":c,...a,children:[i.jsx("div",{className:"ds:max-w-[200px] ds:truncate ds:leading-6",children:e}),r&&i.jsx(co,{variant:"small",iconName:"close",label:o||"dismiss",disabled:!1,onClick:()=>l&&l(),className:"ds:ms-1",isTransparent:!0})]})},ip=Be(["preflight","ds:transition","ds:duration-100","ds:text-nowrap","ds:font-sans!","ds:text-base","ds:p-2","ds:active:text-neutrals-white","ds:focus-visible:ring-neutrals-black","ds:focus-visible:ring-2","ds:focus-visible:outline-hidden","ds:focus-visible:ring-offset-2"],{variants:{isNested:{true:["ds:rounded-xl","ds:my-2","ds:mx-1","ds:border","ds:border-neutrals-lighter","ds:hover:bg-neutrals-light","ds:active:bg-neutrals-dark","ds:focus-visible:ring-neutrals-black","ds:focus-visible:ring-2","ds:focus-visible:outline-hidden","ds:focus-visible:ring-offset-2","ds:focus-visible:bg-neutrals-white"],false:["ds:rounded","ds:rounded-b-none","ds:border-b-2","ds:border-b-neutrals-white","ds:my-1","ds:mr-2","ds:hover:bg-acuity-green-lighter","ds:hover:border-b-acuity-green-lighter","ds:active:bg-acuity-green-darkest","ds:active:border-b-acuity-green-darkest","ds:focus-visible:bg-acuity-green-lightest","ds:focus-visible:border-b-acuity-green-lightest"]}}}),ap=({title:e,id:t,handleClick:n,isActive:r,isNested:o=!1,badgeText:s="",className:l="",...a})=>{const c=(u,d,h)=>rt(ip({isNested:u}),d&&!u&&"ds:border-b-acuity-green!",d&&u&&"ds:bg-neutrals-white ds:border-neutrals!",h);return i.jsxs("button",{className:c(o,r,l),role:"tab",id:`tab-${t}`,"aria-controls":`panel-${t}`,"aria-selected":r,onClick:n,...a,children:[e,s&&i.jsx(za,{label:s,className:"ds:ml-2 ds:h-5 ds:bg-neutrals-white ds:text-neutrals-black"})]})},cp=({id:e,children:t,hidden:n})=>i.jsx("div",{role:"tabpanel",id:`panel-${e}`,"aria-labelledby":`tab-${e}`,hidden:n,className:"preflight",children:t}),up=({children:e,handleTabChange:t,activeTabIndex:n,isNested:r,className:o="",...s})=>{const l=g.default.Children.toArray(e).filter(a=>{var c,u;return g.default.isValidElement(a)&&!!((c=a.props)!=null&&c.id)&&!!((u=a.props)!=null&&u.title)});return l.length<g.default.Children.toArray(e).length&&console.error("You can only pass <Tab> components with defined id and title as children of the <Tabs> component."),i.jsxs("div",{className:`preflight ${o}`,...s,children:[i.jsx("div",{role:"tablist",className:`preflight ds:mb-5 ds:rounded ${r&&"ds:mb-4! ds:bg-neutrals-lighter ds:px-2"}`,children:l.map((a,c)=>i.jsx(ap,{handleClick:()=>t(c),isActive:n===c,badgeText:a.props.badgeText,isNested:r,...a.props},`tab-${c}`))}),l.map((a,c)=>i.jsx(cp,{id:a.props.id,hidden:n!==c,children:a.props.children},`panel-${c}`))]})},dp=({children:e})=>e,fp=Be(["preflight","ds:font-sans!","ds:text-base","ds:cursor-pointer","ds:w-[fit-content]"],{variants:{state:{default:["ds:text-neutrals-black"],error:["ds:text-danger-red-darkest"],success:["ds:text-success-green-darkest"]},disabled:{true:"ds:text-neutrals-dark!"}}}),hp=e=>rt(fp(e)),Ga=({id:e,state:t="default",disabled:n=!1,htmlFor:r,value:o="",optionalityLabel:s=""})=>i.jsxs("label",{id:e,htmlFor:r,className:hp({state:t,disabled:n}),children:[o,s&&i.jsx("span",{className:"ds:text-sm ds:text-neutrals-darker",children:` (${s})`})]}),gp=Be(["preflight","group","ds:flex","ds:flex-col","ds:container"],{variants:{state:{default:["ds:focus-within:[&>label]:text-acuity-blue"],error:["ds:focus-within:[&>label]:text-danger-red-darkest"],success:["ds:focus-within:[&>label]:text-success-green-darkest"]},hasMarginBottom:{true:""}},compoundVariants:[{state:"default",hasMarginBottom:!0,className:["ds:mb-6"]}]}),mp=e=>rt(gp(e)),pp=Be(["ds:font-sans!","ds:text-base"],{variants:{state:{default:["ds:text-neutrals-black","ds:mt-2"],error:["ds:text-danger-red","ds:mt-2"],success:["ds:text-success-green-dark","ds:truncate","ds:text-sm","ds:mt-1"]},hasMarginBottom:{true:["ds:mb-6"],false:["ds:mb-0"]},disabled:{true:"ds:text-neutrals-dark!"}}}),bp=e=>rt(pp(e)),Ms=({id:e,state:t="default",disabled:n=!1,label:r="",optionalityLabel:o="",helpText:s=[],message:l="",child:a,isTextarea:c=!1,className:u="",hasMarginBottom:d=!0})=>{let h=null;switch(t){case"error":h={name:"error",color:"ds:text-danger-red"};break;case"success":h={name:"checkCircle",color:"ds:text-success-green"};break}const m=r?"label_"+e:void 0,p=s&&s.length>0?"helptext_"+e:void 0;return i.jsxs("div",{className:rt(mp({state:t,hasMarginBottom:d}),u),children:[r&&i.jsx(Ga,{id:m,htmlFor:e,value:r,optionalityLabel:o,disabled:n}),s&&s.length>1&&i.jsx("ul",{id:p,className:"ds:mt-2 ds:pb-1 ds:pl-6",children:s==null?void 0:s.map((b,x)=>i.jsx("li",{className:"ds:list-disc ds:text-neutrals-dark",children:b},x))}),s&&s.length===1&&i.jsx("p",{id:p,className:"ds:mt-2 ds:pb-1 ds:text-neutrals-dark",children:s}),i.jsxs("div",{className:"ds:mt-2 ds:flex ds:gap-2",children:[i.jsx("div",{className:c?"":"ds:w-[calc(100%-2rem)]",children:a}),i.jsx("div",{className:"ds:pt-2",children:h&&i.jsx($t,{name:h.name,size:"medium",className:h.color,role:"graphics-symbol"})})]}),h&&i.jsx("p",{className:bp({state:t,hasMarginBottom:d}),children:l})]})},Cp=Be(["preflight","ds:form-input","ds:rounded","ds:p-2","ds:border!","ds:font-sans!"],ks),wp=e=>rt(Cp(e)),Ba=({state:e="default",rows:t=2,cols:n=50,isResizable:r=!0,disabled:o=!1,...s})=>i.jsx("textarea",{"aria-invalid":e=="error",rows:t,cols:n,readOnly:o,className:wp({disabled:o,state:e}),style:{resize:r?"both":"none"},...s}),xp=({id:e,state:t="default",label:n,rows:r=2,cols:o=50,isResizable:s=!0,optionalityLabel:l="",helpText:a=[],message:c="",disabled:u=!1,className:d="",hasMarginBottom:h=!0,onBlur:m,...p})=>i.jsx(Ms,{id:e,state:t,disabled:u,label:n,optionalityLabel:l,helpText:a,message:c,isTextarea:!0,className:d,hasMarginBottom:h,child:i.jsx(Ba,{id:e,"aria-labelledby":n?"label_"+e:void 0,"aria-describedby":a&&a.length>0?"helptext_"+e:void 0,state:t,rows:r,cols:o,isResizable:s,disabled:u,onBlur:m,...p})}),yp=Be(["preflight","ds:form-input","ds:h-[40px]","ds:rounded","ds:p-2","ds:border!","ds:font-sans!","ds:container"],ks),vp=e=>rt(yp(e)),Wa=se.forwardRef(({state:e="default",disabled:t=!1,type:n="text",...r},o)=>i.jsx("input",{"aria-disabled":t,readOnly:t,type:n,className:vp({disabled:t,state:e}),ref:o,...r})),Sp=se.forwardRef(({id:e,state:t="default",disabled:n=!1,type:r="text",label:o,optionalityLabel:s="",helpText:l=[],message:a="",className:c="",hasMarginBottom:u=!0,onBlur:d,...h},m)=>i.jsx(Ms,{id:e,state:t,disabled:n,label:o,optionalityLabel:s,helpText:l,message:a,className:c,hasMarginBottom:u,child:i.jsx(Wa,{id:e,"aria-labelledby":o?"label_"+e:void 0,"aria-describedby":l&&l.length>0?"helptext_"+e:void 0,type:r,state:t,disabled:n,ref:m,onBlur:d,...h})})),kp=Be(["preflight","ds:form-select","ds:h-[40px]","ds:rounded","ds:p-2","ds:border!","ds:font-sans!","ds:container","ds:bg-[center_right_0.25rem]"],ks),Ip=e=>kp(e),Mp=`url('data:image/svg+xml,<svg width="16" height="16" viewBox="5 -5 15 35" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="%23949494" ><path d="M21.375 8.09253L12.4417 17.025C12.3837 17.0831 12.3148 17.1291 12.2391 17.1605C12.1632 17.192 12.082 17.2082 12 17.2082C11.918 17.2082 11.8368 17.192 11.7609 17.1605C11.6852 17.1291 11.6163 17.0831 11.5583 17.025L2.625 8.09253" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" stroke="%23000000" /></svg>')`,qa=se.forwardRef(({state:e="default",disabled:t=!1,className:n="",...r},o)=>{const{onClick:s,onKeyDown:l,onMouseDown:a,...c}=r;return i.jsx("select",{ref:o,"aria-disabled":t,style:{backgroundImage:Mp},className:rt(Ip({disabled:t,state:e}),n),onClick:u=>Fm(u,t,s!=null?s:(()=>{})),onKeyDown:u=>jm(u,t,l!=null?l:(()=>{})),onMouseDown:u=>Om(u,t,a!=null?a:(()=>{})),...c,children:r.children})}),Ep=se.forwardRef(({id:e,state:t="default",disabled:n=!1,label:r,optionalityLabel:o="",helpText:s=[],message:l="",className:a="",hasMarginBottom:c=!0,onBlur:u,...d},h)=>i.jsx(Ms,{id:e,state:t,disabled:n,label:r,optionalityLabel:o,helpText:s,message:l,className:a,hasMarginBottom:c,child:i.jsx(qa,{id:e,"aria-labelledby":r?"label_"+e:void 0,"aria-describedby":s&&s.length>0?"helptext_"+e:void 0,state:t,disabled:n,onBlur:u,ref:h,...d})})),Pp=Be("ds:overflow-hidden ds:bg-neutrals-light",{variants:{size:{small:["ds:h-2","ds:rounded-sm"],large:["ds:h-4","ds:rounded"]}}}),Tp=Be("",{variants:{size:{small:["ds:h-2","ds:rounded-sm"],large:["ds:h-4","ds:rounded"]},state:{"in-progress":["ds:bg-acuity-blue"],error:["ds:bg-danger-red-dark"],success:["ds:bg-success-green"],indeterminate:["ds:bg-acuity-blue","ds:animate-progress"]}}}),Fp=Be("ds:w-[3rem] ds:justify-end ds:flex ds:items-center ds:text-neutrals-dark",{variants:{size:{small:"ds:text-sm",large:""}}}),jp=Be("ds:text-sm",{variants:{state:{error:"ds:text-danger-red",success:"ds:text-neutrals-dark",indeterminate:"ds:text-neutrals-dark","in-progress":"ds:text-neutrals-dark"}}}),Op=({size:e="large",label:t="",helperMessage:n="",className:r="",state:o="indeterminate",maxValue:s=100,value:l=0,hideIcon:a=!1,...c})=>{const u=()=>{let m=Math.round(l/s*100);return m<0?m=0:m>100&&(m=100),o!=="in-progress"?"100%":`${m}%`},d=()=>{if(a)return null;switch(o){case"in-progress":return u();case"error":return i.jsx($t,{name:"error",size:e==="small"?"small":"medium",className:"ds:float-right ds:text-danger-red-dark",role:"graphics-symbol",filled:!0});case"success":return i.jsx($t,{name:"checkCircle",size:e==="small"?"small":"medium",className:"ds:float-right ds:text-success-green-dark",role:"graphics-symbol",filled:!0});case"indeterminate":default:return null}},h=()=>o==="in-progress"||o==="indeterminate"?i.jsxs("div",{className:"ds:ml-1 ds:mt-2 ds:flex ds:w-[15px] ds:items-center ds:space-x-[2px]",children:[i.jsx("div",{className:"ds:h-[3px] ds:w-[3px] ds:animate-blink ds:rounded-full ds:bg-neutrals-black [animation-delay:-0.2s]"}),i.jsx("div",{className:"ds:h-[3px] ds:w-[3px] ds:animate-blink ds:rounded-full ds:bg-neutrals-black [animation-delay:-0.15s]"}),i.jsx("div",{className:"ds:h-[3px] ds:w-[3px] ds:animate-blink ds:rounded-full ds:bg-neutrals-black"})]}):null;return i.jsxs("div",{className:rt("preflight ds:min-w-[4.875rem]",r),...c,children:[i.jsxs("div",{className:"ds:flex ds:h-5 ds:items-center ds:justify-between",children:[i.jsxs("div",{className:"progress-bar-label ds:flex ds:max-w-[calc(100%-3rem)] ds:overflow-hidden",children:[i.jsx("p",{className:"ds:overflow-hidden ds:text-nowrap",children:t}),h()]}),i.jsx("div",{"aria-hidden":!0,className:Fp({size:e}),children:d()})]}),i.jsx("div",{role:"progressbar",className:"ds:mb-1 ds:mt-1","aria-label":t,"aria-valuemin":0,"aria-valuenow":l,"aria-valuemax":s,"aria-valuetext":u(),children:i.jsx("div",{className:Pp({size:e}),children:i.jsx("div",{style:{width:u()},className:Tp({size:e,state:o})})})}),i.jsx("p",{className:jp({state:o}),children:n})]})},Rp=({text:e,onClick:t})=>i.jsx("div",{className:"bg-neutral-lighter/30 flex w-full items-center rounded-xl px-4 py-2",children:i.jsx("div",{className:"ml-5",children:i.jsxs(B.ButtonBase,{className:"focus-visible:outline-primary flex items-center rounded focus-visible:outline-2 focus-visible:outline-offset-2",onClick:t,children:[i.jsx(B.Box,{component:"span",className:"flex h-8 w-8 items-center justify-center rounded-md",sx:{bgcolor:"primary.main",color:"primary.contrastText"},children:i.jsx(la.default,{})}),i.jsx("span",{className:"text-primary ml-5 text-sm font-bold select-none hover:underline",children:e})]})})}),Ml=6,Lp=({defaultValue:e="",inputLabel:t,isLoading:n,label:r,labelCancel:o="Cancel",labelSubmit:s="Add",placeholder:l,selectDefaultValue:a,selectOptions:c=[],showInput:u,withInput:d,withSelect:h,onCancel:m,onClick:p,onSelectChange:b,onSubmit:x,"data-testid":w})=>{const[k,v]=se.useState(!!u),[F,j]=se.useState(),[y,A]=se.useState(e),[N,M]=se.useState(a),P=se.useId(),R=()=>{v(!1),m==null||m()},_=()=>{d?v(!0):p==null||p()},O=V=>{if(V.preventDefault(),y.trim().length<Ml){j(`Must be at least ${Ml} characters`);return}j(void 0),x==null||x(y,N).then(()=>v(!1))},D=V=>{M(V),b==null||b(V)};return i.jsx("div",{className:"bg-neutral-lighter/40 flex w-full items-center rounded-xl px-8",children:k?i.jsxs("form",{className:"flex w-full py-2",onSubmit:O,children:[i.jsxs("div",{className:"flex w-full",children:[i.jsx("label",{className:"sr-only",htmlFor:P,children:t||l}),i.jsx(B.TextField,{autoFocus:!0,className:"w-1/2 rounded-xl bg-white",error:!!F,helperText:F,id:P,placeholder:l,size:"small",value:y,variant:"outlined",onChange:V=>A(V.target.value)}),h&&i.jsx(B.Select,{className:"ml-4 bg-white",size:"small",value:N,onChange:V=>D(V.target.value),children:c.map(V=>i.jsx(B.MenuItem,{value:V.value,children:V.label},String(V.value)))})]}),i.jsxs("div",{className:"flex gap-2 py-2",children:[i.jsx(B.Button,{className:"h-min",color:"primary",loading:n,type:"submit",variant:"contained",children:s}),i.jsx(B.Button,{className:"h-min",color:"primary",type:"button",variant:"outlined",onClick:R,children:o})]})]}):i.jsxs("button",{className:"flex cursor-pointer items-center border-none bg-transparent py-4","data-testid":w,style:{fontFamily:"inherit"},type:"button",onClick:_,children:[i.jsx("span",{"aria-hidden":"true",className:"bg-primary hover:bg-primary-dark flex h-8 w-8 items-center justify-center rounded-md text-white shadow-sm transition-colors",children:i.jsx(la.default,{})}),r&&i.jsx("span",{className:"text-primary ml-4 text-sm font-bold select-none hover:underline",children:r})]})})},Dp=({accept:e,description:t,buttonLabel:n,onFileDrop:r})=>{const o=se.useId(),[s,l]=se.useState(!1),a=se.useCallback(h=>{var b;if(e.includes("image/*")&&h.type.startsWith("image/")||e.includes("video/*")&&h.type.startsWith("video/")||e.includes("application/pdf")&&h.type==="application/pdf")return!0;const m=e.split(",").map(x=>x.trim().toLowerCase()),p=`.${(b=h.name.split(".").pop())==null?void 0:b.toLowerCase()}`;return m.includes(p)},[e]),c=se.useCallback(h=>{h.preventDefault(),h.stopPropagation(),l(h.type==="dragenter"||h.type==="dragover")},[]),u=se.useCallback(h=>{var p;h.preventDefault(),h.stopPropagation(),l(!1);const m=(p=h.dataTransfer.files)==null?void 0:p[0];m&&a(m)&&r(m)},[r,a]),d=h=>{var p;const m=(p=h.target.files)==null?void 0:p[0];m&&a(m)&&(r(m),h.target.value="")};return i.jsxs(B.Box,{sx:{aspectRatio:"2 / 1",border:"2px dashed",borderColor:s?"primary.main":"#D9D9D9",borderRadius:2,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",cursor:"pointer",transition:h=>h.transitions.create("all",{duration:h.transitions.duration.standard}),userSelect:"none"},onDragEnter:c,onDragLeave:c,onDragOver:c,onDrop:u,children:[i.jsx("input",{accept:e,id:o,style:{display:"none"},type:"file",onChange:d}),i.jsxs(B.Box,{component:"label",htmlFor:o,sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:[i.jsx(B.Box,{sx:{width:36,height:36,display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid rgba(51, 51, 51, 0.10)",borderRadius:1,mb:5},children:i.jsx(gh.default,{})}),i.jsx(B.Typography,{sx:{color:"text.secondary",mb:5},variant:"body2",children:t}),i.jsx(B.Button,{component:"span",sx:{minWidth:100,borderRadius:"1rem",fontSize:"1rem",fontWeight:700},variant:"contained",onKeyDown:h=>{var m;(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),(m=document.getElementById(o))==null||m.click())},children:n})]})]})},Hp=({isOpen:e,severity:t,title:n,message:r,onClose:o})=>e?i.jsxs(B.Alert,{severity:t,onClose:o,children:[i.jsx(B.Typography,{sx:{mt:"-2px",fontSize:"1rem",fontWeight:700},children:n}),i.jsx(B.Typography,{sx:{mt:1,fontSize:"0.875rem"},children:r})]}):null,Es=se.createContext(null),Ua=()=>se.useContext(Es),Ka=({children:e,isOpen:t,onClose:n})=>{const r=ge.useTheme(),o=Ua(),s=se.useRef(null);return i.jsxs(i.Fragment,{children:[i.jsx(B.Backdrop,{open:t,sx:{position:"absolute",inset:0,backgroundColor:"rgba(0,0,0,0.25)",pointerEvents:t?"auto":"none",zIndex:r.zIndex.drawer},onClick:n}),i.jsx(B.Slide,{mountOnEnter:!0,unmountOnExit:!0,container:o?l=>{var a;return(a=o.current)!=null?a:l}:void 0,direction:"right",in:t,children:i.jsx(B.Paper,{"aria-modal":"true",elevation:8,role:"dialog",sx:{position:"absolute",left:0,top:0,bottom:0,width:"300px",borderRadius:0,display:"flex",flexDirection:"column",zIndex:r.zIndex.drawer+1},children:i.jsx(B.Box,{ref:s,sx:{overflow:"auto",flex:1},children:i.jsx(B.Box,{sx:{display:"flex",flexDirection:"column",height:"100%",pt:"1rem",pr:1.5,pl:2},children:e})})})})]})},_p=256,Ap=({children:e,navigationSlot:t,logoSlot:n,mobileLogoSlot:r,headerSlot:o,sideDrawerSlot:s,sideDrawerWidth:l=400,isSideDrawerOpen:a=!1,backgroundColor:c})=>{var b,x,w,k;const u=ge.useTheme(),[d,h]=se.useState(!1),m=se.useRef(null);return B.useMediaQuery(u.breakpoints.up("md"))&&d&&h(!1),i.jsxs(B.Box,{sx:{height:"100vh",maxHeight:"100vh",display:"flex",flexDirection:"row",padding:"1rem 1rem 1rem 0",overflow:"hidden",bgcolor:(x=c!=null?c:(b=u.palette.neutral)==null?void 0:b.lighter)!=null?x:"#F5F5F5",transition:u.transitions.create("margin-right",{easing:u.transitions.easing.sharp,duration:a?u.transitions.duration.enteringScreen:u.transitions.duration.leavingScreen}),marginRight:a?`${l}px`:0,[u.breakpoints.down("sm")]:{padding:0,marginRight:0}},children:[i.jsxs(B.Box,{component:"nav","aria-label":"Main navigation",sx:{width:`${_p}px`,flexShrink:0,display:"flex",flexDirection:"column",px:2,py:"1rem",[u.breakpoints.down("md")]:{display:"none"}},children:[n&&i.jsx(B.Box,{sx:{mb:2},children:n}),t]}),i.jsxs(B.Box,{sx:{flex:1,display:"flex",flexDirection:"column",borderRadius:"8px",overflow:"hidden",bgcolor:(k=(w=u.palette.common)==null?void 0:w.white)!=null?k:"#FFFFFF"},children:[i.jsx(B.AppBar,{color:"transparent",elevation:0,position:"static",sx:{display:"none",[u.breakpoints.down("md")]:{display:"flex"}},children:i.jsxs(B.Toolbar,{variant:"dense",sx:{justifyContent:"space-between",px:{xs:"15px",sm:"1rem"}},children:[i.jsxs(B.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[i.jsx(B.IconButton,{"aria-label":"Open navigation menu",size:"small",onClick:()=>h(!0),children:i.jsx(mh.default,{})}),r]}),o&&i.jsx(B.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:o})]})}),i.jsx(B.AppBar,{color:"transparent",elevation:0,position:"static",sx:{[u.breakpoints.down("md")]:{display:"none"}},children:i.jsx(B.Toolbar,{variant:"dense",sx:{justifyContent:"flex-end",px:"2em"},children:o&&i.jsx(B.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:o})})}),i.jsx(Es.Provider,{value:m,children:i.jsxs(B.Box,{ref:m,sx:{flex:1,overflow:"auto",position:"relative"},children:[i.jsxs(Ka,{isOpen:d,onClose:()=>h(!1),children:[r&&i.jsx(B.Box,{sx:{mb:2},children:r}),t]}),e]})})]}),s]})},Ps=g.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ps.displayName="GridApiContext");function ke(){const e=g.useContext(Ps);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(`
2
2
  `));return e}const Ts=g.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ts.displayName="GridRootPropsContext");const ue=()=>{const e=g.useContext(Ts);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e};function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C.apply(null,arguments)}function Xa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hr={exports:{}},_r={exports:{}},Ne={};/** @license React v16.13.1
3
3
  * react-is.production.min.js
4
4
  *
@@ -87,7 +87,7 @@ return result$$;`.replaceAll("$$",String(Jl)));return Jl+=1,(a,c)=>s(o,a,c)},kc=
87
87
  `));pt(e.current.state)!==W&&(n.debug("Setting selection model"),e.current.setState(Y=>C({},Y,{rowSelection:t.rowSelection?W:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,d]),x=g.useCallback(W=>pt(e.current.state).includes(W),[e]),w=g.useCallback(W=>{if(t.rowSelection===!1||u&&!u(e.current.getRowParams(W)))return!1;const K=nt(e)[W];return!((K==null?void 0:K.type)==="footer"||(K==null?void 0:K.type)==="pinnedRow")},[e,t.rowSelection,u]),k=g.useCallback(()=>zb(e),[e]),v=g.useCallback((W,K=!0,Y=!1)=>{var J,ne,Z,oe,ee,ae,fe,xe,pe,Me,Re,Je;if(e.current.isRowSelectable(W))if(l.current=W,Y){n.debug(`Setting selection for row ${W}`);const De=[],Oe=Ye=>{De.push(Ye)};K&&(Oe(W),o&&sr(e,h,W,(ne=(J=t.rowSelectionPropagation)==null?void 0:J.descendants)!=null?ne:!1,(oe=(Z=t.rowSelectionPropagation)==null?void 0:Z.parents)!=null?oe:!1,Oe)),e.current.setRowSelectionModel(De)}else{n.debug(`Toggling selection for row ${W}`);const De=pt(e.current.state),Oe=new Set(De);Oe.delete(W);const Ye=He=>{Oe.add(He)},qe=He=>{Oe.delete(He)};K?(Ye(W),o&&sr(e,h,W,(ae=(ee=t.rowSelectionPropagation)==null?void 0:ee.descendants)!=null?ae:!1,(xe=(fe=t.rowSelectionPropagation)==null?void 0:fe.parents)!=null?xe:!1,Ye)):o&&ii(e,h,W,(Me=(pe=t.rowSelectionPropagation)==null?void 0:pe.descendants)!=null?Me:!1,(Je=(Re=t.rowSelectionPropagation)==null?void 0:Re.parents)!=null?Je:!1,qe),(Oe.size<2||d)&&e.current.setRowSelectionModel(Array.from(Oe))}},[e,n,o,h,(S=t.rowSelectionPropagation)==null?void 0:S.descendants,(H=t.rowSelectionPropagation)==null?void 0:H.parents,d]),F=g.useCallback((W,K=!0,Y=!1)=>{n.debug("Setting selection for several rows");const J=W.filter(oe=>e.current.isRowSelectable(oe));let ne;if(Y){if(K){if(ne=new Set(J),o){const ee=ae=>{ne.add(ae)};J.forEach(ae=>{var fe,xe,pe,Me;sr(e,h,ae,(xe=(fe=t.rowSelectionPropagation)==null?void 0:fe.descendants)!=null?xe:!1,(Me=(pe=t.rowSelectionPropagation)==null?void 0:pe.parents)!=null?Me:!1,ee)})}}else ne=new Set;const oe=ln(e);if(ne.size===Object.keys(oe).length&&Array.from(ne).every(ee=>oe[ee]===ee))return}else{ne=new Set(Object.values(ln(e)));const oe=ae=>{ne.add(ae)},ee=ae=>{ne.delete(ae)};J.forEach(ae=>{var fe,xe,pe,Me,Re,Je,De,Oe;K?(ne.add(ae),o&&sr(e,h,ae,(xe=(fe=t.rowSelectionPropagation)==null?void 0:fe.descendants)!=null?xe:!1,(Me=(pe=t.rowSelectionPropagation)==null?void 0:pe.parents)!=null?Me:!1,oe)):(ee(ae),o&&ii(e,h,ae,(Je=(Re=t.rowSelectionPropagation)==null?void 0:Re.descendants)!=null?Je:!1,(Oe=(De=t.rowSelectionPropagation)==null?void 0:De.parents)!=null?Oe:!1,ee))})}(ne.size<2||d)&&e.current.setRowSelectionModel(Array.from(ne))},[n,o,d,e,h,(z=t.rowSelectionPropagation)==null?void 0:z.descendants,(q=t.rowSelectionPropagation)==null?void 0:q.parents]),j=g.useCallback(W=>{var J,ne,Z,oe;if(!m||!o||W.length===0)return W;const K=new Set(W),Y=ee=>{K.add(ee)};for(const ee of W)sr(e,h,ee,(ne=(J=t.rowSelectionPropagation)==null?void 0:J.descendants)!=null?ne:!1,(oe=(Z=t.rowSelectionPropagation)==null?void 0:Z.parents)!=null?oe:!1,Y,K);return Array.from(K)},[e,h,(U=t.rowSelectionPropagation)==null?void 0:U.descendants,(Q=t.rowSelectionPropagation)==null?void 0:Q.parents,m,o]),y=g.useCallback(({startId:W,endId:K},Y=!0,J=!1)=>{if(!e.current.getRow(W)||!e.current.getRow(K))return;n.debug(`Expanding selection from row ${W} to row ${K}`);const ne=Vn(e),Z=ne.indexOf(W),oe=ne.indexOf(K),[ee,ae]=Z>oe?[oe,Z]:[Z,oe],fe=ne.slice(ee,ae+1);e.current.selectRows(fe,Y,J)},[e,n]),A={selectRow:v,setRowSelectionModel:b,getSelectedRows:k,isRowSelected:x,isRowSelectable:w},N={selectRows:F,selectRowRange:y,getPropagatedRowSelectionModel:j};Se(e,A,"public"),Se(e,N,t.signature===wt.DataGrid?"private":"public");const M=g.useRef(!0),P=g.useCallback((W=!1)=>{var ae;if(M.current)return;const K=pt(e.current.state),Y=vt(e),J=Qn(e),ne=C({},ln(e)),Z=fe=>t.filterMode==="server"?!Y[fe]:!Y[fe]||J[fe]===!1;let oe=!1;K.forEach(fe=>{var pe;if(Z(fe)){if(t.keepNonExistentRowsSelected)return;delete ne[fe],oe=!0;return}if(!((pe=t.rowSelectionPropagation)!=null&&pe.parents))return;const xe=h[fe];if(xe.type==="group"){if(xe.isAutoGenerated){delete ne[fe],oe=!0;return}xe.children.every(Re=>J[Re]===!1)||(delete ne[fe],oe=!0)}});const ee=m&&((ae=t.rowSelectionPropagation)==null?void 0:ae.parents)&&Object.keys(ne).length>0;if(oe||ee&&!W){const fe=Object.values(ne);ee?e.current.selectRows(fe,!0,!0):e.current.setRowSelectionModel(fe)}},[e,m,(X=t.rowSelectionPropagation)==null?void 0:X.parents,t.keepNonExistentRowsSelected,t.filterMode,h]),R=g.useCallback((W,K)=>{const Y=K.metaKey||K.ctrlKey,J=!a&&!Y&&!Ax(K),ne=!d||J,Z=e.current.isRowSelected(W);ne?e.current.selectRow(W,J?!0:!Z,!0):e.current.selectRow(W,!Z,!1)},[e,d,a]),_=g.useCallback((W,K)=>{var ne;if(c)return;const Y=(ne=K.target.closest(`.${I.cell}`))==null?void 0:ne.getAttribute("data-field");if(Y===Jn.field||Y===mo)return;if(Y){const Z=e.current.getColumn(Y);if((Z==null?void 0:Z.type)===ho)return}nt(e)[W.id].type!=="pinnedRow"&&(K.shiftKey&&d?p(W.id):R(W.id,K))},[c,d,e,p,R]),O=g.useCallback((W,K)=>{var Y;d&&K.shiftKey&&((Y=window.getSelection())==null||Y.removeAllRanges())},[d]),D=g.useCallback((W,K)=>{d&&K.nativeEvent.shiftKey?p(W.id):e.current.selectRow(W.id,W.value,!d)},[e,p,d]),V=g.useCallback(W=>{const K=t.pagination&&t.checkboxSelectionVisibleOnly&&t.paginationMode==="client"?Yc(e):Vn(e);e.current.selectRows(K,W.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination,t.paginationMode]),E=g.useCallback((W,K)=>{if(e.current.getCellMode(W.id,W.field)!==_e.Edit&&!jr(K)){if(ro(K.key)&&K.shiftKey){const Y=gt(e);if(Y&&Y.id!==W.id){K.preventDefault();const J=e.current.isRowSelected(Y.id);if(!d){e.current.selectRow(Y.id,!J,!0);return}const ne=e.current.getRowIndexRelativeToVisibleRows(Y.id),Z=e.current.getRowIndexRelativeToVisibleRows(W.id);let oe,ee;ne>Z?J?(oe=Z,ee=ne-1):(oe=Z,ee=ne):J?(oe=ne+1,ee=Z):(oe=ne,ee=Z);const fe=an(e).rows.slice(oe,ee+1).map(xe=>xe.id);e.current.selectRows(fe,!J);return}}if(K.key===" "&&K.shiftKey){K.preventDefault(),R(W.id,K);return}String.fromCharCode(K.keyCode)==="A"&&(K.ctrlKey||K.metaKey)&&(K.preventDefault(),F(e.current.getAllRowIds(),!0))}},[e,R,F,d]),T=ze.useEventCallback(()=>{if(!t.rowSelection){e.current.setRowSelectionModel([]);return}if(s===void 0)return;if(!o||!m||s.length===0){e.current.setRowSelectionModel(s);return}const W=e.current.getPropagatedRowSelectionModel(s);if(W.length!==s.length||!W.every(K=>s.includes(K))){e.current.setRowSelectionModel(W);return}e.current.setRowSelectionModel(s)});le(e,"sortedRowsSet",r(()=>P(!0))),le(e,"filteredRowsSet",r(()=>P())),le(e,"rowClick",r(_)),le(e,"rowSelectionCheckboxChange",r(D)),le(e,"headerSelectionCheckboxChange",V),le(e,"cellMouseDown",r(O)),le(e,"cellKeyDown",r(E)),g.useEffect(()=>{T()},[e,s,t.rowSelection,T]);const L=s!=null;g.useEffect(()=>{if(L||!t.rowSelection)return;const W=pt(e.current.state);if(w){const K=W.filter(Y=>w(Y));K.length<W.length&&e.current.setRowSelectionModel(K)}},[e,w,L,t.rowSelection]),g.useEffect(()=>{if(!t.rowSelection||L)return;const W=pt(e.current.state);!d&&W.length>1&&e.current.setRowSelectionModel([])},[e,d,a,L,t.rowSelection]),g.useEffect(()=>{r(P)},[P,r]),g.useEffect(()=>{M.current&&(M.current=!1)},[])},dv=e=>{const{classes:t}=e;return g.useMemo(()=>{const n={cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]};return Xe.default(n,Te,t)},[t])},fv=(e,t)=>{const n={classes:t.classes},r=dv(n),o=g.useCallback(s=>{const l=C({},Jn,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),a=t.checkboxSelection,c=s.lookup[yt]!=null;return a&&!c?(s.lookup[yt]=l,s.orderedFields=[yt,...s.orderedFields]):!a&&c?(delete s.lookup[yt],s.orderedFields=s.orderedFields.filter(u=>u!==yt)):a&&c&&(s.lookup[yt]=C({},l,s.lookup[yt]),t.columns.some(u=>u.field===yt)||(s.orderedFields=[yt,...s.orderedFields.filter(u=>u!==yt)])),s},[e,r,t.columns,t.checkboxSelection]);Ue(e,"hydrateColumns",o)},hv=(e,t)=>{var r,o,s,l;const n=(l=(s=t.sortModel)!=null?s:(o=(r=t.initialState)==null?void 0:r.sorting)==null?void 0:o.sortModel)!=null?l:[];return C({},e,{sorting:{sortModel:dc(n,t.disableMultipleColumnsSorting),sortedRows:[]}})},gv=(e,t)=>{var y,A;const n=ct(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:jt,changeEvent:"sortModelChange"});const r=g.useCallback((N,M)=>{const P=jt(e),R=P.findIndex(O=>O.field===N);let _=[...P];return R>-1?(M==null?void 0:M.sort)==null?_.splice(R,1):_.splice(R,1,M):_=[...P,M],_},[e]),o=g.useCallback((N,M)=>{var _,O;const R=jt(e).find(D=>D.field===N.field);if(R){const D=M===void 0?Yl((_=N.sortingOrder)!=null?_:t.sortingOrder,R.sort):M;return D===void 0?void 0:C({},R,{sort:D})}return{field:N.field,sort:M===void 0?Yl((O=N.sortingOrder)!=null?O:t.sortingOrder):M}},[e,t.sortingOrder]),s=g.useCallback((N,M)=>M==null||M.sortable===!1||t.disableColumnSorting?N:(M.sortingOrder||t.sortingOrder).some(R=>!!R)?[...N,"columnMenuSortItem"]:N,[t.sortingOrder,t.disableColumnSorting]),l=g.useCallback(()=>{e.current.setState(N=>{if(t.sortingMode==="server")return n.debug("Skipping sorting rows as sortingMode = server"),C({},N,{sorting:C({},N.sorting,{sortedRows:As(nt(e),ft,!1)})});const M=jt(N,e.current.instanceId),P=W1(M,e),R=e.current.applyStrategyProcessor("sorting",{sortRowList:P});return C({},N,{sorting:C({},N.sorting,{sortedRows:R})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,n,t.sortingMode]),a=g.useCallback(N=>{jt(e)!==N&&(n.debug("Setting sort model"),e.current.setState(Xl(N,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,n,t.disableMultipleColumnsSorting]),c=g.useCallback((N,M,P)=>{const R=e.current.getColumn(N),_=o(R,M);let O;!P||t.disableMultipleColumnsSorting?O=(_==null?void 0:_.sort)==null?[]:[_]:O=r(R.field,_),e.current.setSortModel(O)},[e,r,o,t.disableMultipleColumnsSorting]),u=g.useCallback(()=>jt(e),[e]),d=g.useCallback(()=>Vs(e).map(M=>M.model),[e]),h=g.useCallback(()=>Zn(e),[e]),m=g.useCallback(N=>e.current.getSortedRowIds()[N],[e]);Se(e,{getSortModel:u,getSortedRows:d,getSortedRowIds:h,getRowIdFromRowIndex:m,setSortModel:a,sortColumn:c,applySorting:l},"public");const b=g.useCallback((N,M)=>{var _,O;const P=jt(e);return!M.exportOnlyDirtyModels||t.sortModel!=null||((O=(_=t.initialState)==null?void 0:_.sorting)==null?void 0:O.sortModel)!=null||P.length>0?C({},N,{sorting:{sortModel:P}}):N},[e,t.sortModel,(A=(y=t.initialState)==null?void 0:y.sorting)==null?void 0:A.sortModel]),x=g.useCallback((N,M)=>{var R;const P=(R=M.stateToRestore.sorting)==null?void 0:R.sortModel;return P==null?N:(e.current.setState(Xl(P,t.disableMultipleColumnsSorting)),C({},N,{callbacks:[...N.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),w=g.useCallback(N=>{const M=nt(e),P=M[ft],R=N.sortRowList?N.sortRowList(P.children.map(_=>M[_])):[...P.children];return P.footerId!=null&&R.push(P.footerId),R},[e]);Ue(e,"exportState",b),Ue(e,"restoreState",x),lo(e,Cn,"sorting",w);const k=g.useCallback(({field:N,colDef:M},P)=>{if(!M.sortable||t.disableColumnSorting)return;const R=P.shiftKey||P.metaKey||P.ctrlKey;c(N,void 0,R)},[c,t.disableColumnSorting]),v=g.useCallback(({field:N,colDef:M},P)=>{!M.sortable||t.disableColumnSorting||P.key==="Enter"&&!P.ctrlKey&&!P.metaKey&&c(N,void 0,P.shiftKey)},[c,t.disableColumnSorting]),F=g.useCallback(()=>{const N=jt(e),M=Qt(e);if(N.length>0){const P=N.filter(R=>M[R.field]);P.length<N.length&&e.current.setSortModel(P)}},[e]),j=g.useCallback(N=>{N==="sorting"&&e.current.applySorting()},[e]);Ue(e,"columnMenu",s),le(e,"columnHeaderClick",k),le(e,"columnHeaderKeyDown",v),le(e,"rowsSet",e.current.applySorting),le(e,"columnsChange",F),le(e,"activeStrategyProcessorChange",j),Ir(()=>{e.current.applySorting()}),re.unstable_useEnhancedEffect(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function zi(e){const{containerSize:t,scrollPosition:n,elementSize:r,elementOffset:o}=e,s=o+r;if(r>t)return o;if(s-t>n)return s-t;if(o<n)return o}const mv=(e,t)=>{const n=Gt.useRtl(),r=ct(e,"useGridScroll"),o=e.current.columnHeadersContainerRef,s=e.current.virtualScrollerRef,l=te(e,fn),a=g.useCallback(h=>{var k;const m=at(e.current.state),p=kr(e),b=t.unstable_listView?[Gn(e.current.state)]:Ke(e);if(!(h.rowIndex==null)&&p===0||b.length===0)return!1;r.debug(`Scrolling to cell at row ${h.rowIndex}, col: ${h.colIndex} `);let w={};if(h.colIndex!==void 0){const v=dn(e);let F;if(typeof h.rowIndex!="undefined"){const j=(k=l[h.rowIndex])==null?void 0:k.id,y=e.current.unstable_getCellColSpanInfo(j,h.colIndex);y&&!y.spannedByColSpan&&(F=y.cellProps.width)}typeof F=="undefined"&&(F=b[h.colIndex].computedWidth),w.left=zi({containerSize:m.viewportOuterSize.width,scrollPosition:Math.abs(s.current.scrollLeft),elementSize:F,elementOffset:v[h.colIndex]})}if(h.rowIndex!==void 0){const v=er(e.current.state),F=rC(e),j=Kc(e),y=t.pagination?h.rowIndex-F*j:h.rowIndex,A=v.positions[y+1]?v.positions[y+1]-v.positions[y]:v.currentPageTotalHeight-v.positions[y];w.top=zi({containerSize:m.viewportInnerSize.height,scrollPosition:s.current.scrollTop,elementSize:A,elementOffset:v.positions[y]})}return w=e.current.unstable_applyPipeProcessors("scrollToIndexes",w,h),typeof w.left!==void 0||typeof w.top!==void 0?(e.current.scroll(w),!0):!1},[r,e,s,t.pagination,l,t.unstable_listView]),c=g.useCallback(h=>{if(s.current&&h.left!==void 0&&o.current){const m=n?-1:1;o.current.scrollLeft=h.left,s.current.scrollLeft=m*h.left,r.debug(`Scrolling left: ${h.left}`)}s.current&&h.top!==void 0&&(s.current.scrollTop=h.top,r.debug(`Scrolling top: ${h.top}`)),r.debug("Scrolling, updating container, and viewport")},[s,n,o,r]),u=g.useCallback(()=>s!=null&&s.current?{top:s.current.scrollTop,left:s.current.scrollLeft}:{top:0,left:0},[s]);Se(e,{scroll:c,scrollToIndexes:a,getScrollPosition:u},"public")};function pv(e,t){Ae(e,"columnHeaderClick",t.onColumnHeaderClick),Ae(e,"columnHeaderContextMenu",t.onColumnHeaderContextMenu),Ae(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Ae(e,"columnHeaderOver",t.onColumnHeaderOver),Ae(e,"columnHeaderOut",t.onColumnHeaderOut),Ae(e,"columnHeaderEnter",t.onColumnHeaderEnter),Ae(e,"columnHeaderLeave",t.onColumnHeaderLeave),Ae(e,"cellClick",t.onCellClick),Ae(e,"cellDoubleClick",t.onCellDoubleClick),Ae(e,"cellKeyDown",t.onCellKeyDown),Ae(e,"preferencePanelClose",t.onPreferencePanelClose),Ae(e,"preferencePanelOpen",t.onPreferencePanelOpen),Ae(e,"menuOpen",t.onMenuOpen),Ae(e,"menuClose",t.onMenuClose),Ae(e,"rowDoubleClick",t.onRowDoubleClick),Ae(e,"rowClick",t.onRowClick),Ae(e,"stateChange",t.onStateChange)}function bv(e,t=166){let n,r;const o=()=>{n=void 0,e(...r)};function s(...l){r=l,n===void 0&&(n=setTimeout(o,t))}return s.clear=()=>{clearTimeout(n),n=void 0},s}const ds={autoHeight:!1,autoPageSize:!1,autosizeOnMount:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,clipboardCopyCellDelimiter:" ",columnBufferPx:150,columnHeaderHeight:56,disableAutosize:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnReorder:!1,disableColumnResize:!1,disableColumnSelector:!1,disableColumnSorting:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleColumnsSorting:!1,disableMultipleRowSelection:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:zt.Cell,filterDebounceMs:150,filterMode:"client",hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,ignoreValueFormatterDuringExport:!1,indeterminateCheckboxAction:"deselect",keepColumnPositionIfDraggedOutside:!1,keepNonExistentRowsSelected:!1,loading:!1,logger:console,logLevel:process.env.NODE_ENV==="production"?"error":"warn",pageSizeOptions:[25,50,100],pagination:!1,paginationMode:"client",resetPageOnSortFilter:!1,resizeThrottleMs:60,rowBufferPx:150,rowHeight:52,rowPositionsDebounceMs:166,rows:[],rowSelection:!0,rowSpacingType:"margin",showCellVerticalBorder:!1,showColumnVerticalBorder:!1,sortingMode:"client",sortingOrder:["asc","desc",null],throttleRowsMs:0,unstable_rowSpanning:!1,virtualizeColumnsWithAutoRowHeight:!1},On={width:0,height:0},Cv={isReady:!1,root:On,viewportOuterSize:On,viewportInnerSize:On,contentSize:On,minimumSize:On,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,headerHeight:0,groupHeaderHeight:0,headerFilterHeight:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,headersTotalHeight:0,topContainerHeight:0,bottomContainerHeight:0},wv=(e,t,n)=>{const r=Cv,o=Un(n);return C({},e,{dimensions:C({},r,pd(t,n,o,Yn(n)))})},md=be(Ke,dn,(e,t)=>{const n=e.length;return n===0?0:Dn(t[n-1]+e[n-1].computedWidth,1)});function xv(e,t){const n=ct(e,"useResizeContainer"),r=g.useRef(!1),o=g.useRef(On),s=te(e,Yn),l=te(e,Un),a=te(e,md),c=g.useRef(!0),u=g.useRef({counter:0,heights:{content:0,pinnedTop:0,pinnedBottom:0}}),{rowHeight:d,headerHeight:h,groupHeaderHeight:m,headerFilterHeight:p,headersTotalHeight:b,leftPinnedWidth:x,rightPinnedWidth:w}=pd(t,e,l,s),k=g.useRef(void 0),v=g.useCallback(()=>at(e.current.state),[e]),F=g.useCallback(D=>{e.current.setState(V=>C({},V,{dimensions:D})),e.current.rootElementRef.current&&Gi(e.current.rootElementRef.current,at(e.current.state))},[e]),j=g.useCallback(()=>{const D=e.current.mainElementRef.current;if(!D)return;const V=re.unstable_ownerWindow(D).getComputedStyle(D),E={width:parseFloat(V.width)||0,height:parseFloat(V.height)||0};(!k.current||!Wi(k.current,E))&&(e.current.publishEvent("resize",E),k.current=E)},[e]),y=g.useCallback(()=>{const D=at(e.current.state);if(!D.isReady)return 0;const V=an(e);if(t.getRowHeight){const T=Fr(e),L=T.lastRowIndex-T.firstRowIndex;return Math.min(L-1,V.rows.length)}const E=Math.floor(D.viewportInnerSize.height/d);return Math.min(E,V.rows.length)},[e,t.getRowHeight,d]),A=g.useCallback(()=>{var W,K;if(c.current)return;const D=yv(e.current.mainElementRef.current,t.scrollbarSize),V=er(e.current.state),E=b+V.pinnedTopRowsTotalHeight,T=V.pinnedBottomRowsTotalHeight,$={width:a-x-w,height:Dn(V.currentPageTotalHeight,1)},G=e.current.state.dimensions;let S,H,z=!1,q=!1;if(t.autoHeight)q=!1,z=Math.round(a)>Math.round(o.current.width),S={width:o.current.width,height:E+T+$.height},H={width:Math.max(0,S.width-(q?D:0)),height:Math.max(0,S.height-(z?D:0))};else{S={width:o.current.width,height:o.current.height},H={width:Math.max(0,S.width-x-w),height:Math.max(0,S.height-E-T)};const Y=$,J=H,ne=Y.width>J.width,Z=Y.height>J.height;(ne||Z)&&(q=Z,z=Y.width+(q?D:0)>J.width,z&&(q=Y.height+D>J.height));{const oe=u.current,ee=V.currentPageTotalHeight!==oe.heights.content||V.pinnedTopRowsTotalHeight!==oe.heights.pinnedTop||V.pinnedBottomRowsTotalHeight!==oe.heights.pinnedBottom;ee&&(oe.counter=0,oe.heights={content:V.currentPageTotalHeight,pinnedTop:V.pinnedTopRowsTotalHeight,pinnedBottom:V.pinnedBottomRowsTotalHeight}),G.isReady&&q!==G.hasScrollY&&(ee||(oe.counter+=1),oe.counter>=2&&(q=!1,z=ne))}q&&(H.width-=D),z&&(H.height-=D)}const U=Math.max(S.width,a+(q?D:0)),Q={width:a,height:E+$.height+T},X={isReady:!0,root:o.current,viewportOuterSize:S,viewportInnerSize:H,contentSize:$,minimumSize:Q,hasScrollX:z,hasScrollY:q,scrollbarSize:D,headerHeight:h,groupHeaderHeight:m,headerFilterHeight:p,rowWidth:U,rowHeight:d,columnsTotalWidth:a,leftPinnedWidth:x,rightPinnedWidth:w,headersTotalHeight:b,topContainerHeight:E,bottomContainerHeight:T};sn(G,X)||(F(X),Wi(X.viewportInnerSize,G.viewportInnerSize)||e.current.publishEvent("viewportInnerSizeChange",X.viewportInnerSize),(K=(W=e.current).updateRenderContext)==null||K.call(W))},[e,F,t.scrollbarSize,t.autoHeight,d,h,m,p,a,b,x,w]),N=re.unstable_useEventCallback(A),M=g.useMemo(()=>t.resizeThrottleMs>0?bv(()=>{N(),e.current.publishEvent("debouncedResize",o.current)},t.resizeThrottleMs):void 0,[e,t.resizeThrottleMs,N]);g.useEffect(()=>M==null?void 0:M.clear,[M]);const P={resize:j,getRootDimensions:v},R={updateDimensions:A,getViewportPageSize:y};re.unstable_useEnhancedEffect(A,[A]),Se(e,P,"public"),Se(e,R,"private");const _=g.useCallback(D=>{Gi(D,at(e.current.state))},[e]),O=g.useCallback(D=>{if(o.current=D,D.height===0&&!r.current&&!t.autoHeight&&!to&&(n.error(["The parent DOM element of the Data Grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
88
88
  `)),r.current=!0),D.width===0&&!r.current&&!to&&(n.error(["The parent DOM element of the Data Grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(`
89
89
  `)),r.current=!0),c.current||!M){c.current=!1,A();return}M()},[A,t.autoHeight,M,n]);Ae(e,"rootMount",_),Ae(e,"resize",O),Ae(e,"debouncedResize",t.onResize)}function Gi(e,t){const n=(r,o)=>e.style.setProperty(r,o);n("--DataGrid-hasScrollX",`${Number(t.hasScrollX)}`),n("--DataGrid-hasScrollY",`${Number(t.hasScrollY)}`),n("--DataGrid-scrollbarSize",`${t.scrollbarSize}px`),n("--DataGrid-rowWidth",`${t.rowWidth}px`),n("--DataGrid-columnsTotalWidth",`${t.columnsTotalWidth}px`),n("--DataGrid-leftPinnedWidth",`${t.leftPinnedWidth}px`),n("--DataGrid-rightPinnedWidth",`${t.rightPinnedWidth}px`),n("--DataGrid-headerHeight",`${t.headerHeight}px`),n("--DataGrid-headersTotalHeight",`${t.headersTotalHeight}px`),n("--DataGrid-topContainerHeight",`${t.topContainerHeight}px`),n("--DataGrid-bottomContainerHeight",`${t.bottomContainerHeight}px`),n("--height",`${t.rowHeight}px`)}function pd(e,t,n,r){var s,l;const o=Tc(e.rowHeight,ds.rowHeight,yb);return{rowHeight:Math.floor(o*n),headerHeight:Math.floor(e.columnHeaderHeight*n),groupHeaderHeight:Math.floor(((s=e.columnGroupHeaderHeight)!=null?s:e.columnHeaderHeight)*n),headerFilterHeight:Math.floor(((l=e.headerFilterHeight)!=null?l:e.columnHeaderHeight)*n),columnsTotalWidth:md(t),headersTotalHeight:xo(t,e),leftPinnedWidth:r.left.reduce((a,c)=>a+c.computedWidth,0),rightPinnedWidth:r.right.reduce((a,c)=>a+c.computedWidth,0)}}const Bi=new WeakMap;function yv(e,t){if(t!==void 0)return t;if(e===null)return 0;const n=Bi.get(e);if(n!==void 0)return n;const o=re.unstable_ownerDocument(e).createElement("div");o.style.width="99px",o.style.height="99px",o.style.position="absolute",o.style.overflow="scroll",o.className="scrollDiv",e.appendChild(o);const s=o.offsetWidth-o.clientWidth;return e.removeChild(o),Bi.set(e,s),s}function Wi(e,t){return e.width===t.width&&e.height===t.height}const vv=typeof globalThis.ResizeObserver!="undefined"?globalThis.ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},Sv=(e,t,n)=>{n.current.caches.rowsMeta={heights:new Map};const r=Rs(n.current.state),o=kr(n),s=Mr(n.current.state),l=Math.min(s.enabled?s.paginationModel.pageSize:o,o);return C({},e,{rowsMeta:{currentPageTotalHeight:l*r,positions:Array.from({length:l},(a,c)=>c*r),pinnedTopRowsTotalHeight:0,pinnedBottomRowsTotalHeight:0}})},kv=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,s=e.current.caches.rowsMeta.heights,l=g.useRef(-1),a=g.useRef(!1),c=g.useRef(!1),u=te(e,Un),d=Us(e),h=te(e,Kn),m=te(e,Rs),p=R=>{let _=s.get(R);return _===void 0&&(_={content:m,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},s.set(R,_)),_},b=g.useCallback(R=>{var D,V;const _=at(e.current.state).rowHeight,O=e.current.getRowHeightEntry(R.id);if(!n)O.content=_,O.needsFirstMeasurement=!1;else{const E=n(C({},R,{densityFactor:u}));if(E==="auto"){if(O.needsFirstMeasurement){const T=o?o(C({},R,{densityFactor:u})):_;O.content=T!=null?T:_}a.current=!0,O.autoHeight=!0}else O.content=Tc(E,_,vb),O.needsFirstMeasurement=!1,O.autoHeight=!1}if(r){const E=e.current.getRowIndexRelativeToVisibleRows(R.id),T=r(C({},R,{isFirstVisible:E===0,isLastVisible:E===d.rows.length-1,indexRelativeToCurrentPage:E}));O.spacingTop=(D=T.top)!=null?D:0,O.spacingBottom=(V=T.bottom)!=null?V:0}else O.spacingTop=0,O.spacingBottom=0;return e.current.unstable_applyPipeProcessors("rowHeight",O,R),O},[e,d.rows,n,o,m,r,u]),x=g.useCallback(()=>{a.current=!1;const R=h.top.reduce((T,L)=>{const $=b(L);return T+$.content+$.spacingTop+$.spacingBottom+$.detail},0),_=h.bottom.reduce((T,L)=>{const $=b(L);return T+$.content+$.spacingTop+$.spacingBottom+$.detail},0),O=[],D=d.rows.reduce((T,L)=>{O.push(T);const $=b(L),G=$.content+$.spacingTop+$.spacingBottom+$.detail;return T+G},0);a.current||(l.current=1/0);const V=R!==e.current.state.rowsMeta.pinnedTopRowsTotalHeight||_!==e.current.state.rowsMeta.pinnedBottomRowsTotalHeight||D!==e.current.state.rowsMeta.currentPageTotalHeight,E={currentPageTotalHeight:D,positions:O,pinnedTopRowsTotalHeight:R,pinnedBottomRowsTotalHeight:_};e.current.setState(T=>C({},T,{rowsMeta:E})),V&&e.current.updateDimensions(),c.current=!0},[e,h,d.rows,b]),w=R=>{var _,O;return(O=(_=s.get(R))==null?void 0:_.content)!=null?O:m},k=(R,_)=>{const O=e.current.getRowHeightEntry(R),D=O.content!==_;O.needsFirstMeasurement=!1,O.content=_,c.current&&(c.current=!D)},v=R=>{var _,O;return(O=(_=s.get(R))==null?void 0:_.autoHeight)!=null?O:!1},F=()=>l.current,j=R=>{a.current&&R>l.current&&(l.current=R)},y=()=>{s.clear(),x()},A=Bt.default(()=>new vv(R=>{var _;for(let O=0;O<R.length;O+=1){const D=R[O],V=D.borderBoxSize&&D.borderBoxSize.length>0?D.borderBoxSize[0].blockSize:D.contentRect.height,E=D.target.__mui_id;if(((_=du(e))==null?void 0:_.id)===E&&V===0)return;e.current.unstable_storeRowHeightMeasurement(E,V)}c.current||requestAnimationFrame(()=>{e.current.requestPipeProcessorsApplication("rowHeight")})})).current,N=(R,_)=>(R.__mui_id=_,A.observe(R),()=>A.unobserve(R));nl(e,"rowHeight",x),re.unstable_useEnhancedEffect(()=>{x()},[x]);const M={unstable_getRowHeight:w,unstable_setLastMeasuredRowIndex:j,unstable_storeRowHeightMeasurement:k,resetRowHeights:y},P={hydrateRowsMeta:x,observeRowHeight:N,rowHasAutoHeight:v,getRowHeightEntry:p,getLastMeasuredRowIndex:F};Se(e,M,"public"),Se(e,P,"private")},Iv=e=>{const t=g.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=g.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(l=>{l()}),e.current.forceUpdate()},[e]);Se(e,{exportState:t,restoreState:n},"public")},Mv=e=>{const t=g.useRef({}),n=(a,c)=>{var u;return(u=t.current[a])==null?void 0:u[c]},r=()=>{t.current={}},o=g.useCallback(({rowId:a,minFirstColumn:c,maxLastColumn:u,columns:d})=>{for(let h=c;h<u;h+=1){const m=Ev({apiRef:e,lookup:t.current,columnIndex:h,rowId:a,minFirstColumnIndex:c,maxLastColumnIndex:u,columns:d});m.colSpan>1&&(h+=m.colSpan-1)}},[e]),s={unstable_getCellColSpanInfo:n},l={resetColSpan:r,calculateColSpan:o};Se(e,s,"public"),Se(e,l,"private"),le(e,"columnOrderChange",r)};function Ev(e){const{apiRef:t,lookup:n,columnIndex:r,rowId:o,minFirstColumnIndex:s,maxLastColumnIndex:l,columns:a}=e,c=a.length,u=a[r],d=t.current.getRow(o),h=t.current.getRowValue(d,u),m=typeof u.colSpan=="function"?u.colSpan(h,d,u,t):u.colSpan;if(!m||m===1)return Xo(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:1,width:u.computedWidth}}),{colSpan:1};let p=u.computedWidth;for(let b=1;b<m;b+=1){const x=r+b;if(x>=s&&x<l){const w=a[x];p+=w.computedWidth,Xo(n,o,r+b,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(r+m,c-1),leftVisibleCellIndex:r})}Xo(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:m,width:p}})}return{colSpan:m}}function Xo(e,t,n,r){e[t]||(e[t]={}),e[t][n]=r}const bd=(e,t,n)=>{if(pc(e)){if(n[e.field]!==void 0)throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(`
90
- `));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(s=>{bd(s,[...t,r],n)})},fs=e=>{if(!e)return{};const t={};return e.forEach(n=>{bd(n,[],t)}),t},hs=(e,t,n)=>{const r=c=>{var u;return(u=t[c])!=null?u:[]},o=[],s=Math.max(...e.map(c=>r(c).length)),l=(c,u,d)=>sn(r(c).slice(0,d+1),r(u).slice(0,d+1)),a=(c,u)=>!!(n!=null&&n.left&&n.left.includes(c)&&!n.left.includes(u)||n!=null&&n.right&&!n.right.includes(c)&&n.right.includes(u));for(let c=0;c<s;c+=1){const u=e.reduce((d,h)=>{var w;const m=(w=r(h)[c])!=null?w:null;if(d.length===0)return[{columnFields:[h],groupId:m}];const p=d[d.length-1],b=p.columnFields[p.columnFields.length-1];return p.groupId!==m||!l(b,h,c)||a(b,h)?[...d,{columnFields:[h],groupId:m}]:[...d.slice(0,d.length-1),{columnFields:[...p.columnFields,h],groupId:m}]},[]);o.push(u)}return o},Pv=["groupId","children"],rl=e=>{let t={};return e.forEach(n=>{if(pc(n))return;const{groupId:r,children:o}=n,s=me(n,Pv);if(!r)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");process.env.NODE_ENV!=="production"&&(o||console.warn(`MUI X: group groupId=${r} has no children.`));const l=C({},s,{groupId:r}),a=rl(o);if(a[r]!==void 0||t[r]!==void 0)throw new Error(`MUI X: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=C({},t,a,{[r]:l})}),C({},t)},Tv=(e,t,n)=>{var u,d,h;if(!t.columnGroupingModel)return e;const r=Yt(n),o=Xn(n),s=rl((u=t.columnGroupingModel)!=null?u:[]),l=fs((d=t.columnGroupingModel)!=null?d:[]),a=hs(r,l,(h=n.current.state.pinnedColumns)!=null?h:{}),c=o.length===0?0:Math.max(...o.map(m=>{var p,b;return(b=(p=l[m])==null?void 0:p.length)!=null?b:0}));return C({},e,{columnGrouping:{lookup:s,unwrappedGroupingModel:l,headerStructure:a,maxDepth:c}})},Fv=(e,t)=>{const n=g.useCallback(a=>{var u;return(u=ou(e)[a])!=null?u:[]},[e]),r=g.useCallback(()=>su(e),[e]);Se(e,{getColumnGroupPath:n,getAllGroupDetails:r},"public");const s=g.useCallback(()=>{var c;const a=fs((c=t.columnGroupingModel)!=null?c:[]);e.current.setState(u=>{var p,b,x;const d=(b=(p=u.columns)==null?void 0:p.orderedFields)!=null?b:[],h=(x=u.pinnedColumns)!=null?x:{},m=hs(d,a,h);return C({},u,{columnGrouping:C({},u.columnGrouping,{headerStructure:m})})})},[e,t.columnGroupingModel]),l=g.useCallback(a=>{var x,w,k;const c=(k=(w=(x=e.current).getPinnedColumns)==null?void 0:w.call(x))!=null?k:{},u=Yt(e),d=Xn(e),h=rl(a!=null?a:[]),m=fs(a!=null?a:[]),p=hs(u,m,c),b=d.length===0?0:Math.max(...d.map(v=>{var F,j;return(j=(F=m[v])==null?void 0:F.length)!=null?j:0}));e.current.setState(v=>C({},v,{columnGrouping:{lookup:h,unwrappedGroupingModel:m,headerStructure:p,maxDepth:b}}))},[e]);le(e,"columnIndexChange",s),le(e,"columnsChange",()=>{l(t.columnGroupingModel)}),le(e,"columnVisibilityModelChange",()=>{l(t.columnGroupingModel)}),g.useEffect(()=>{l(t.columnGroupingModel)},[l,t.columnGroupingModel])};function jv(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function qi(e,t){if(t!==void 0&&e.changedTouches){for(let n=0;n<e.changedTouches.length;n+=1){const r=e.changedTouches[n];if(r.identifier===t)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Ui(e,t,n,r){let o=e;return r==="Right"?o+=t-n.left:o+=n.right-t,o}function Ov(e,t,n){return n==="Left"?e-t.left:t.right-e}function Rv(e){return e==="Right"?"Left":"Right"}function Lv(e,t){const n=e.classList.contains(I["columnSeparator--sideRight"])?"Right":"Left";return t?Rv(n):n}function Ki(e){e.preventDefault(),e.stopImmediatePropagation()}function Dv(e){const t=g.useRef(void 0),n=()=>cu(e),r=te(e,n);return g.useEffect(()=>{t.current&&r===!1&&(t.current.resolve(),t.current=void 0)}),()=>{if(!t.current){if(n()===!1)return Promise.resolve();t.current=jv()}return t.current}}function Hv(e,t){if(e.length<4)return e;const n=e.slice();n.sort((a,c)=>a-c);const r=n[Math.floor(n.length*.25)],o=n[Math.floor(n.length*.75)-1],s=o-r,l=s<5?5:s*t;return n.filter(a=>a>r-l&&a<o+l)}function _v(e,t,n){const r={},o=e.current.rootElementRef.current;return o.classList.add(I.autosizing),n.forEach(s=>{var b,x;const a=nx(e.current,s.field).map(w=>{var k;return(k=w.getBoundingClientRect().width)!=null?k:0}),c=t.includeOutliers?a:Hv(a,t.outliersFactor);if(t.includeHeaders){const w=tx(e.current,s.field);if(w){const k=w.querySelector(`.${I.columnHeaderTitle}`),v=w.querySelector(`.${I.columnHeaderTitleContainerContent}`),F=w.querySelector(`.${I.iconButtonContainer}`),j=w.querySelector(`.${I.menuIcon}`),y=k!=null?k:v,A=window.getComputedStyle(w,null),N=parseInt(A.paddingLeft,10)+parseInt(A.paddingRight,10),P=y.scrollWidth+1+N+((b=F==null?void 0:F.clientWidth)!=null?b:0)+((x=j==null?void 0:j.clientWidth)!=null?x:0);c.push(P)}}const u=s.minWidth!==-1/0&&s.minWidth!==void 0,d=s.maxWidth!==1/0&&s.maxWidth!==void 0,h=u?s.minWidth:0,m=d?s.maxWidth:1/0,p=c.length===0?0:Math.max(...c);r[s.field]=xt(p,h,m)}),o.classList.remove(I.autosizing),r}const Av=e=>C({},e,{columnResize:{resizingColumnField:""}});function Vv(){return{colDef:void 0,initialColWidth:0,initialTotalWidth:0,previousMouseClickEvent:void 0,columnHeaderElement:void 0,headerFilterElement:void 0,groupHeaderElements:[],cellElements:[],leftPinnedCellsAfter:[],rightPinnedCellsBefore:[],fillerLeft:void 0,fillerRight:void 0,leftPinnedHeadersAfter:[],rightPinnedHeadersBefore:[]}}const Nv=(e,t)=>{const n=Gt.useRtl(),r=ct(e,"useGridColumnResize"),o=Bt.default(Vv).current,s=g.useRef(null),l=g.useRef(null),a=wn.default(),c=g.useRef(void 0),u=P=>{var E,T;r.debug(`Updating width to ${P} for col ${o.colDef.field}`);const R=o.columnHeaderElement.offsetWidth,_=P-R,O=P-o.initialColWidth;if(O>0){const L=o.initialTotalWidth+O;(T=(E=e.current.rootElementRef)==null?void 0:E.current)==null||T.style.setProperty("--DataGrid-rowWidth",`${L}px`)}o.colDef.computedWidth=P,o.colDef.width=P,o.colDef.flex=0,o.columnHeaderElement.style.width=`${P}px`;const D=o.headerFilterElement;D&&(D.style.width=`${P}px`),o.groupHeaderElements.forEach(L=>{const $=L;let G;$.getAttribute("aria-colspan")==="1"?G=`${P}px`:G=`${$.offsetWidth+_}px`,$.style.width=G}),o.cellElements.forEach(L=>{const $=L;let G;$.getAttribute("aria-colspan")==="1"?G=`${P}px`:G=`${$.offsetWidth+_}px`,$.style.setProperty("--width",G)});const V=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);V===rn.LEFT&&(Pn(o.fillerLeft,"width",_),o.leftPinnedCellsAfter.forEach(L=>{Pn(L,"left",_)}),o.leftPinnedHeadersAfter.forEach(L=>{Pn(L,"left",_)})),V===rn.RIGHT&&(Pn(o.fillerRight,"width",_),o.rightPinnedCellsBefore.forEach(L=>{Pn(L,"right",_)}),o.rightPinnedHeadersBefore.forEach(L=>{Pn(L,"right",_)}))},d=P=>{if(k(),o.previousMouseClickEvent){const R=o.previousMouseClickEvent,_=R.timeStamp,O=R.clientX,D=R.clientY;if(P.timeStamp-_<300&&P.clientX===O&&P.clientY===D){o.previousMouseClickEvent=void 0,e.current.publishEvent("columnResizeStop",null,P);return}}if(o.colDef){e.current.setColumnWidth(o.colDef.field,o.colDef.width),r.debug(`Updating col ${o.colDef.field} with new width: ${o.colDef.width}`);const R=Nt(e.current.state);o.groupHeaderElements.forEach(_=>{const O=K0(_),D=_,E=`${O.reduce((T,L)=>R.columnVisibilityModel[L]!==!1?T+R.lookup[L].computedWidth:T,0)}px`;D.style.width=E})}a.start(0,()=>{e.current.publishEvent("columnResizeStop",null,P)})},h=(P,R,_)=>{var E;const O=e.current.rootElementRef.current;o.initialColWidth=P.computedWidth,o.initialTotalWidth=e.current.getRootDimensions().rowWidth,o.colDef=P,o.columnHeaderElement=U0(e.current.columnHeadersContainerRef.current,P.field);const D=O.querySelector(`.${I.headerFilterRow} [data-field="${Jt(P.field)}"]`);D&&(o.headerFilterElement=D),o.groupHeaderElements=X0((E=e.current.columnHeadersContainerRef)==null?void 0:E.current,P.field),o.cellElements=Y0(o.columnHeaderElement,e.current),o.fillerLeft=Si(e.current,n?"filler--pinnedRight":"filler--pinnedLeft"),o.fillerRight=Si(e.current,n?"filler--pinnedLeft":"filler--pinnedRight");const V=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);o.leftPinnedCellsAfter=V!==rn.LEFT?[]:Z0(e.current,o.columnHeaderElement,n),o.rightPinnedCellsBefore=V!==rn.RIGHT?[]:Q0(e.current,o.columnHeaderElement,n),o.leftPinnedHeadersAfter=V!==rn.LEFT?[]:J0(e.current,o.columnHeaderElement,n),o.rightPinnedHeadersBefore=V!==rn.RIGHT?[]:ex(e.current,o.columnHeaderElement,n),l.current=Lv(R,n),s.current=Ov(_,o.columnHeaderElement.getBoundingClientRect(),l.current)},m=re.unstable_useEventCallback(d),p=re.unstable_useEventCallback(P=>{if(P.buttons===0){m(P);return}let R=Ui(s.current,P.clientX,o.columnHeaderElement.getBoundingClientRect(),l.current);R=xt(R,o.colDef.minWidth,o.colDef.maxWidth),u(R);const _={element:o.columnHeaderElement,colDef:o.colDef,width:R};e.current.publishEvent("columnResize",_,P)}),b=re.unstable_useEventCallback(P=>{qi(P,c.current)&&d(P)}),x=re.unstable_useEventCallback(P=>{const R=qi(P,c.current);if(!R)return;if(P.type==="mousemove"&&P.buttons===0){b(P);return}let _=Ui(s.current,R.x,o.columnHeaderElement.getBoundingClientRect(),l.current);_=xt(_,o.colDef.minWidth,o.colDef.maxWidth),u(_);const O={element:o.columnHeaderElement,colDef:o.colDef,width:_};e.current.publishEvent("columnResize",O,P)}),w=re.unstable_useEventCallback(P=>{const R=no(P.target,I["columnSeparator--resizable"]);if(!R)return;const _=P.changedTouches[0];_!=null&&(c.current=_.identifier);const O=no(P.target,I.columnHeader),D=q0(O),V=e.current.getColumn(D);r.debug(`Start Resize on col ${V.field}`),e.current.publishEvent("columnResizeStart",{field:D},P),h(V,R,_.clientX);const E=re.unstable_ownerDocument(P.currentTarget);E.addEventListener("touchmove",x),E.addEventListener("touchend",b)}),k=g.useCallback(()=>{const P=re.unstable_ownerDocument(e.current.rootElementRef.current);P.body.style.removeProperty("cursor"),P.removeEventListener("mousemove",p),P.removeEventListener("mouseup",m),P.removeEventListener("touchmove",x),P.removeEventListener("touchend",b),setTimeout(()=>{P.removeEventListener("click",Ki,!0)},100),o.columnHeaderElement&&(o.columnHeaderElement.style.pointerEvents="unset")},[e,o,p,m,x,b]),v=g.useCallback(({field:P})=>{e.current.setState(R=>C({},R,{columnResize:C({},R.columnResize,{resizingColumnField:P})})),e.current.forceUpdate()},[e]),F=g.useCallback(()=>{e.current.setState(P=>C({},P,{columnResize:C({},P.columnResize,{resizingColumnField:""})})),e.current.forceUpdate()},[e]),j=re.unstable_useEventCallback(({colDef:P},R)=>{if(R.button!==0||!R.currentTarget.classList.contains(I["columnSeparator--resizable"]))return;R.preventDefault(),r.debug(`Start Resize on col ${P.field}`),e.current.publishEvent("columnResizeStart",{field:P.field},R),h(P,R.currentTarget,R.clientX);const _=re.unstable_ownerDocument(e.current.rootElementRef.current);_.body.style.cursor="col-resize",o.previousMouseClickEvent=R.nativeEvent,_.addEventListener("mousemove",p),_.addEventListener("mouseup",m),_.addEventListener("click",Ki,!0)}),y=re.unstable_useEventCallback((P,R)=>{if(t.disableAutosize||R.button!==0)return;const _=e.current.state.columns.lookup[P.field];_.resizable!==!1&&e.current.autosizeColumns(C({},t.autosizeOptions,{disableColumnVirtualization:!1,columns:[_.field]}))}),A=Dv(e),N=g.useRef(!1),M=g.useCallback(async P=>{var V,E;if(!((V=e.current.rootElementRef)==null?void 0:V.current)||N.current)return;N.current=!0;const _=Nt(e.current.state),O=C({},Gw,P,{columns:(E=P==null?void 0:P.columns)!=null?E:_.orderedFields});O.columns=O.columns.filter(T=>_.columnVisibilityModel[T]!==!1);const D=O.columns.map(T=>e.current.state.columns.lookup[T]);try{!t.disableVirtualization&&O.disableColumnVirtualization&&(e.current.unstable_setColumnVirtualization(!1),await A());const T=_v(e,O,D),L=D.map($=>C({},$,{width:T[$.field],computedWidth:T[$.field],flex:0}));if(O.expand){const G=_.orderedFields.map(q=>_.lookup[q]).filter(q=>_.columnVisibilityModel[q.field]!==!1).reduce((q,U)=>{var Q,X;return q+((X=(Q=T[U.field])!=null?Q:U.computedWidth)!=null?X:U.width)},0),z=e.current.getRootDimensions().viewportInnerSize.width-G;if(z>0){const q=z/(L.length||1);L.forEach(U=>{U.width+=q,U.computedWidth+=q})}}e.current.updateColumns(L),L.forEach(($,G)=>{if($.width!==D[G].width){const S=$.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement($.field),colDef:$,width:S})}})}finally{t.disableVirtualization||e.current.unstable_setColumnVirtualization(!0),N.current=!1}},[e,A,t.disableVirtualization]);g.useEffect(()=>k,[k]),fa.default(()=>{t.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(t.autosizeOptions)})}),Gc(e,()=>{var P;return(P=e.current.columnHeadersContainerRef)==null?void 0:P.current},"touchstart",w,{passive:!0}),Se(e,{autosizeColumns:M},"public"),le(e,"columnResizeStop",F),le(e,"columnResizeStart",v),le(e,"columnSeparatorMouseDown",j),le(e,"columnSeparatorDoubleClick",y),Ae(e,"columnResize",t.onColumnResize),Ae(e,"columnWidthChange",t.onColumnWidthChange)};function Pn(e,t,n){e&&(e.style[t]=`${parseInt(e.style[t],10)+n}px`)}function $v(e,t){return e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?null:e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex>t.lastRowIndex?{firstRowIndex:t.lastRowIndex,lastRowIndex:e.lastRowIndex}:e.firstRowIndex<t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?{firstRowIndex:e.firstRowIndex,lastRowIndex:t.firstRowIndex-1}:e}function Xi(e){return e.firstRowIndex!==0||e.lastRowIndex!==0}const Yo=(e,t,n)=>{var s;if(!e)return null;let r=e[t.field];const o=(s=t.rowSpanValueGetter)!=null?s:t.valueGetter;return o&&(r=o(r,e,t,n)),r},Hn={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},io={firstRowIndex:0,lastRowIndex:0},zv=new Set([yt,"__reorder__",mo]),Yi=20,Cd=(e,t,n,r,o,s,l)=>{const a=s?{}:C({},e.current.state.rowSpanning.spannedCells),c=s?{}:C({},e.current.state.rowSpanning.hiddenCells),u=s?{}:C({},e.current.state.rowSpanning.hiddenCellOriginMap);return s&&(l=io),t.forEach(d=>{var h;if(!zv.has(d.field)){for(let m=o.firstRowIndex;m<o.lastRowIndex;m+=1){const p=n[m];if((h=c[p.id])!=null&&h[d.field])continue;const b=Yo(p.model,d,e);if(b==null)continue;let x=p.id,w=m,k=0;const v=[];if(m===o.firstRowIndex){let j=m-1,y=n[j];for(;j>=r.firstRowIndex&&y&&Yo(y.model,d,e)===b;){const A=n[j+1];c[A.id]?c[A.id][d.field]=!0:c[A.id]={[d.field]:!0},v.push(m),k+=1,x=y.id,w=j,j-=1,y=n[j]}}v.forEach(j=>{u[j]?u[j][d.field]=w:u[j]={[d.field]:w}});let F=m+1;for(;F<=r.lastRowIndex&&n[F]&&Yo(n[F].model,d,e)===b;){const j=n[F];c[j.id]?c[j.id][d.field]=!0:c[j.id]={[d.field]:!0},u[F]?u[F][d.field]=w:u[F]={[d.field]:w},F+=1,k+=1}k>0&&(a[x]?a[x][d.field]=k+1:a[x]={[d.field]:k+1})}l={firstRowIndex:Math.min(l.firstRowIndex,o.firstRowIndex),lastRowIndex:Math.max(l.lastRowIndex,o.lastRowIndex)}}}),{spannedCells:a,hiddenCells:c,hiddenCellOriginMap:u,processedRange:l}},wd=(e,t)=>{const n=fr(t).length;if(e.pagination){const r=Kc(t);let o=Yi;return r>0&&(o=r-1),{firstRowIndex:0,lastRowIndex:Math.min(o,n)}}return{firstRowIndex:0,lastRowIndex:Math.min(Yi,n)}},Gv=(e,t,n)=>{var b;if(!t.unstable_rowSpanning)return C({},e,{rowSpanning:Hn});const r=e.rows.dataRowIds||[],o=e.columns.orderedFields||[],s=e.rows.dataRowIdToModelLookup,l=e.columns.lookup,a=!!e.filter.filterModel.items.length||!!((b=e.filter.filterModel.quickFilterValues)!=null&&b.length);if(!r.length||!o.length||!s||!l||a)return C({},e,{rowSpanning:Hn});const c=wd(t,n),u=r.map(x=>({id:x,model:s[x]})),d=o.map(x=>l[x]),{spannedCells:h,hiddenCells:m,hiddenCellOriginMap:p}=Cd(n,d,u,c,c,!0,io);return C({},e,{rowSpanning:{spannedCells:h,hiddenCells:m,hiddenCellOriginMap:p}})},Bv=(e,t)=>{const n=Bt.default(()=>e.current.state.rowSpanning!==Hn?wd(t,e):io),r=g.useCallback((s,l=!1)=>{const{range:a,rows:c}=an(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(a===null||!Xi(s))return;l&&(n.current=io);const u=$v({firstRowIndex:s.firstRowIndex,lastRowIndex:Math.min(s.lastRowIndex,a.lastRowIndex+1)},n.current);if(u===null)return;const d=Ke(e),{spannedCells:h,hiddenCells:m,hiddenCellOriginMap:p,processedRange:b}=Cd(e,d,c,a,u,l,n.current);n.current=b;const x=Object.keys(h).length,w=Object.keys(m).length,k=Object.keys(e.current.state.rowSpanning.spannedCells).length,v=Object.keys(e.current.state.rowSpanning.hiddenCells).length;!(l||x!==k||w!==v)||x===0&&k===0||e.current.setState(y=>C({},y,{rowSpanning:{spannedCells:h,hiddenCells:m,hiddenCellOriginMap:p}}))},[e,n,t.pagination,t.paginationMode]),o=g.useCallback(()=>{const s=Fr(e);Xi(s)&&r(s,!0)},[e,r]);le(e,"renderedRowsIntervalChange",mn(t.unstable_rowSpanning,r)),le(e,"sortedRowsSet",mn(t.unstable_rowSpanning,o)),le(e,"paginationModelChange",mn(t.unstable_rowSpanning,o)),le(e,"filteredRowsSet",mn(t.unstable_rowSpanning,o)),le(e,"columnsChange",mn(t.unstable_rowSpanning,o)),g.useEffect(()=>{t.unstable_rowSpanning?e.current.state.rowSpanning===Hn&&o():e.current.state.rowSpanning!==Hn&&e.current.setState(s=>C({},s,{rowSpanning:Hn}))},[e,o,t.unstable_rowSpanning])},Wv=(e,t,n)=>C({},e,{listViewColumn:t.unstable_listColumn?C({},t.unstable_listColumn,{computedWidth:gs(n)}):void 0});function qv(e,t){const n=()=>{e.current.setState(s=>s.listViewColumn?C({},s,{listViewColumn:C({},s.listViewColumn,{computedWidth:gs(e)})}):s)},r=g.useRef(null);le(e,"viewportInnerSizeChange",s=>{r.current!==s.width&&(r.current=s.width,n())}),le(e,"columnVisibilityModelChange",n),ia.default(()=>{const s=t.unstable_listColumn;s&&e.current.setState(l=>C({},l,{listViewColumn:C({},s,{computedWidth:gs(e)})}))},[e,t.unstable_listColumn]),g.useEffect(()=>{t.unstable_listView&&!t.unstable_listColumn&&kt(["MUI X: The `unstable_listColumn` prop must be set if `unstable_listView` is enabled.",'To fix, pass a column definition to the `unstable_listColumn` prop, e.g. `{ field: "example", renderCell: (params) => <div>{params.row.id}</div> }`.',"For more details, see https://mui.com/x/react-data-grid/list-view/"])},[t.unstable_listView,t.unstable_listColumn])}function gs(e){return at(e.current.state).viewportInnerSize.width}const Uv=(e,t)=>{const n=my(e,t);return fv(n,t),iv(n),lt(hy,n,t),lt(cv,n,t),lt(Sy,n,t),lt(nv,n,t),lt(By,n,t),lt(ev,n,t),lt(_y,n,t),lt(hv,n,t),lt(qy,n,t),lt(Ry,n,t),lt(Gv,n,t),lt(Iy,n,t),lt(Av,n,t),lt(yy,n,t),lt(Tv,n,t),lt(rw,n,t),lt(wv,n,t),lt(Sv,n,t),lt(Wv,n,t),$y(n,t),uv(n,t),ky(n,t),rv(n,t),Bv(n,t),av(n,t),Mv(n),Fv(n,t),tv(n,t),Ay(n,t),Uy(n,t),Hy(n,t),gv(n,t),My(n,t),Nv(n,t),Wy(n,t),kv(n,t),mv(n,t),vy(n),Py(n,t),Oy(n,t),xy(n,t),xv(n,t),pv(n,t),Iv(n),ow(n,t),qv(n,t),n},Kv=e=>{const{classes:t,headerAlign:n,isDragging:r,isLastColumn:o,showLeftBorder:s,showRightBorder:l,groupId:a,pinnedPosition:c}=e,u={root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",l&&"columnHeader--withRightBorder",s&&"columnHeader--withLeftBorder","withBorderColor",a===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",c===Ie.LEFT&&"columnHeader--pinnedLeft",c===Ie.RIGHT&&"columnHeader--pinnedRight",o&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]};return re.unstable_composeClasses(u,Te,t)};function Xv(e){var $;const{groupId:t,width:n,depth:r,maxDepth:o,fields:s,height:l,colIndex:a,hasFocus:c,tabIndex:u,isLastColumn:d,pinnedPosition:h,pinnedOffset:m}=e,p=ue(),b=Gt.useRtl(),x=g.useRef(null),w=ke(),k=te(w,su),v=t?k[t]:{},{headerName:F=t!=null?t:"",description:j="",headerAlign:y=void 0}=v;let A;const N=t&&(($=k[t])==null?void 0:$.renderHeaderGroup),M=g.useMemo(()=>({groupId:t,headerName:F,description:j,depth:r,maxDepth:o,fields:s,colIndex:a,isLastColumn:d}),[t,F,j,r,o,s,a,d]);t&&N&&(A=N(M));const P=C({},e,{classes:p.classes,headerAlign:y,depth:r,isDragging:!1}),R=F!=null?F:t,_=re.unstable_useId(),O=t===null?`empty-group-cell-${_}`:t,D=Kv(P);g.useLayoutEffect(()=>{if(c){const S=x.current.querySelector('[tabindex="0"]')||x.current;if(!S)return;if(Zs())S.focus({preventScroll:!0});else{const H=w.current.getScrollPosition();S.focus(),w.current.scroll(H)}}},[w,c]);const V=g.useCallback(G=>S=>{jr(S)||w.current.publishEvent(G,M,S)},[w,M]),E=g.useMemo(()=>({onKeyDown:V("columnGroupHeaderKeyDown"),onFocus:V("columnGroupHeaderFocus"),onBlur:V("columnGroupHeaderBlur")}),[V]),T=typeof v.headerClassName=="function"?v.headerClassName(M):v.headerClassName,L=g.useMemo(()=>vo(C({},e.style),b,h,m),[h,m,e.style,b]);return i.jsx(ju,C({ref:x,classes:D,columnMenuOpen:!1,colIndex:a,height:l,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:u,isDraggable:!1,headerComponent:A,headerClassName:T,description:j,elementId:O,width:n,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:R,"aria-colspan":s.length,"data-fields":`|-${s.join("-|-")}-|`,style:L},E))}const Zi=ge.styled("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})({display:"flex"}),Yv=e=>{const{visibleColumns:t,sortColumnLookup:n,filterColumnLookup:r,columnHeaderTabIndexState:o,columnGroupHeaderTabIndexState:s,columnHeaderFocus:l,columnGroupHeaderFocus:a,headerGroupingMaxDepth:c,columnMenuState:u,columnVisibility:d,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:m}=e,[p,b]=g.useState(""),[x,w]=g.useState(""),k=Et(),v=ue(),F=te(k,ou),j=te(k,dn),y=te(k,nw),A=te(k,Yn),N=te(k,Qt),M=fu(j,y,A.left.length),P=te(k,uo),R=te(k,ic),_=te(k,x1),O=te(k,y1),D=te(k,ac),V=g.useCallback(X=>w(X.field),[]),E=g.useCallback(()=>w(""),[]),T=g.useCallback(X=>b(X.field),[]),L=g.useCallback(()=>b(""),[]),$=g.useMemo(()=>A.left.length?{firstColumnIndex:0,lastColumnIndex:A.left.length}:null,[A.left.length]),G=g.useMemo(()=>A.right.length?{firstColumnIndex:t.length-A.right.length,lastColumnIndex:t.length}:null,[A.right.length,t.length]);le(k,"columnResizeStart",V),le(k,"columnResizeStop",E),le(k,"columnHeaderDragStart",T),le(k,"columnHeaderDragEnd",L);const S=X=>{const{renderContext:W=y}=X||{},K=W.firstColumnIndex,Y=W.lastColumnIndex;return{renderedColumns:t.slice(K,Y),firstColumnToRender:K,lastColumnToRender:Y}},H=(X,W,K,Y=!1)=>{const J=(X==null?void 0:X.position)===Ie.RIGHT,ne=(X==null?void 0:X.position)===void 0,Z=A.right.length>0&&J||A.right.length===0&&ne,oe=M-K;return i.jsxs(g.Fragment,{children:[ne&&i.jsx("div",{role:"presentation",style:{width:oe}}),W,ne&&i.jsx("div",{role:"presentation",className:Pe(I.filler,Y&&I["filler--borderBottom"])}),Z&&i.jsx(el,{header:!0,pinnedRight:J,borderBottom:Y,borderTop:!1})]})},z=(X,W={})=>{const{renderedColumns:K,firstColumnToRender:Y}=S(X),J=[];for(let ne=0;ne<K.length;ne+=1){const Z=K[ne],oe=Y+ne,ee=oe===0,ae=o!==null&&o.field===Z.field||ee&&!m?0:-1,fe=l!==null&&l.field===Z.field,xe=u.open&&u.field===Z.field,pe=X==null?void 0:X.position,Me=mr(pe,Z.computedWidth,oe,j,P,D),Re=pe===Ie.RIGHT?K[ne-1]:K[ne+1],Je=Re?l!==null&&l.field===Re.field:!1,De=oe+1===j.length-A.right.length,Oe=ne,Ye=K.length,qe=so(pe,Oe),we=oo(pe,Oe,Ye,v.showColumnVerticalBorder,R);J.push(i.jsx(fx,C({},n[Z.field],{columnMenuOpen:xe,filterItemsCounter:r[Z.field]&&r[Z.field].length,headerHeight:_,isDragging:Z.field===p,colDef:Z,colIndex:oe,isResizing:x===Z.field,isLast:oe===j.length-1,hasFocus:fe,tabIndex:ae,pinnedPosition:pe,pinnedOffset:Me,isLastUnpinned:De,isSiblingFocused:Je,showLeftBorder:qe,showRightBorder:we},W),Z.field))}return H(X,J,0)},q=()=>i.jsxs(Zi,{role:"row","aria-rowindex":c+1,ownerState:v,className:I["row--borderBottom"],children:[$&&z({position:Ie.LEFT,renderContext:$},{disableReorder:!0}),z({renderContext:y}),G&&z({position:Ie.RIGHT,renderContext:G},{disableReorder:!0,separatorSide:Qs.Left})]}),U=({depth:X,params:W})=>{var Ye,qe,we,He;const K=S(W);if(K.renderedColumns.length===0)return null;const{firstColumnToRender:Y,lastColumnToRender:J}=K,ne=h[X],Z=t[Y].field,oe=(qe=(Ye=F[Z])==null?void 0:Ye[X])!=null?qe:null,ee=ne.findIndex(({groupId:ve,columnFields:ce})=>ve===oe&&ce.includes(Z)),ae=t[J-1].field,fe=(He=(we=F[ae])==null?void 0:we[X])!=null?He:null,xe=ne.findIndex(({groupId:ve,columnFields:ce})=>ve===fe&&ce.includes(ae)),pe=ne.slice(ee,xe+1).map(ve=>C({},ve,{columnFields:ve.columnFields.filter(ce=>d[ce]!==!1)})).filter(ve=>ve.columnFields.length>0),Me=pe[0].columnFields.indexOf(Z),Je=pe[0].columnFields.slice(0,Me).reduce((ve,ce)=>{var Ce;const ye=N[ce];return ve+((Ce=ye.computedWidth)!=null?Ce:0)},0);let De=Y;const Oe=pe.map(({groupId:ve,columnFields:ce},ye)=>{const Ce=a!==null&&a.depth===X&&ce.includes(a.field),Ze=s!==null&&s.depth===X&&ce.includes(s.field)?0:-1,ot={width:ce.reduce((Dt,Ht)=>Dt+N[Ht].computedWidth,0),fields:ce,colIndex:De},Qe=W.position,Pt=mr(Qe,ot.width,De,j,P,D);De+=ce.length;let Tt=ye;return Qe===Ie.LEFT&&(Tt=De-1),i.jsx(Xv,{groupId:ve,width:ot.width,fields:ot.fields,colIndex:ot.colIndex,depth:X,isLastColumn:ye===pe.length-1,maxDepth:c,height:O,hasFocus:Ce,tabIndex:Ze,pinnedPosition:Qe,pinnedOffset:Pt,showLeftBorder:so(Qe,Tt),showRightBorder:oo(Qe,Tt,pe.length,v.showColumnVerticalBorder,R)},ye)});return H(W,Oe,Je)};return{renderContext:y,leftRenderContext:$,rightRenderContext:G,pinnedColumns:A,visibleColumns:t,columnPositions:j,getFillers:H,getColumnHeadersRow:q,getColumnsToRender:S,getColumnGroupHeadersRows:()=>{if(c===0)return null;const X=[];for(let W=0;W<c;W+=1)X.push(i.jsxs(Zi,{role:"row","aria-rowindex":W+1,ownerState:v,children:[$&&U({depth:W,params:{position:Ie.LEFT,renderContext:$,maxLastColumn:$.lastColumnIndex}}),U({depth:W,params:{renderContext:y}}),G&&U({depth:W,params:{position:Ie.RIGHT,renderContext:G,maxLastColumn:G.lastColumnIndex}})]},W));return X},getPinnedCellOffset:mr,isDragging:!!p,getInnerProps:()=>({role:"rowgroup"})}},Zv=["className"],Qv=e=>{const{classes:t}=e,n={root:["columnHeaders"]};return Xe.default(n,Te,t)},Jv=Ge.styled("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),eS=je(function(t,n){const{className:r}=t,o=me(t,Zv),s=ue(),l=Qv(s);return i.jsx(Jv,C({className:Pe(l.root,r),ownerState:s},o,{role:"presentation",ref:n}))}),tS=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],xd=je(function(t,n){const{visibleColumns:r,sortColumnLookup:o,filterColumnLookup:s,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:u,headerGroupingMaxDepth:d,columnMenuState:h,columnVisibility:m,columnGroupsHeaderStructure:p,hasOtherElementInTabSequence:b}=t,x=me(t,tS),{getInnerProps:w,getColumnHeadersRow:k,getColumnGroupHeadersRows:v}=Yv({visibleColumns:r,sortColumnLookup:o,filterColumnLookup:s,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:u,headerGroupingMaxDepth:d,columnMenuState:h,columnVisibility:m,columnGroupsHeaderStructure:p,hasOtherElementInTabSequence:b});return i.jsxs(eS,C({},x,w(),{ref:n,children:[v(),k()]}))});process.env.NODE_ENV!=="production"&&(xd.propTypes={columnGroupHeaderFocus:f.shape({depth:f.number.isRequired,field:f.string.isRequired}),columnGroupHeaderTabIndexState:f.shape({depth:f.number.isRequired,field:f.string.isRequired}),columnGroupsHeaderStructure:f.arrayOf(f.arrayOf(f.shape({columnFields:f.arrayOf(f.string).isRequired,groupId:f.string}))).isRequired,columnHeaderFocus:f.shape({field:f.string.isRequired}),columnHeaderTabIndexState:f.shape({field:f.string.isRequired}),columnMenuState:f.shape({field:f.string,open:f.bool.isRequired}).isRequired,columnVisibility:f.object.isRequired,filterColumnLookup:f.object.isRequired,hasOtherElementInTabSequence:f.bool.isRequired,headerGroupingMaxDepth:f.number.isRequired,sortColumnLookup:f.object.isRequired,visibleColumns:f.arrayOf(f.object).isRequired});const nS=Zt(xd);function rS(e){return null}function oS(e){return null}const sS=je(function(t,n){const o=ke().current.getLocaleText("noResultsOverlayLabel");return i.jsx(So,C({},t,{ref:n,children:o}))}),lS=["sortingOrder"],iS=g.memo(function(t){const{sortingOrder:n}=t,r=me(t,lS),o=ue(),[s]=n,l=s==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return l?i.jsx(l,C({},r)):null}),aS=["native"];function cS(e){let{native:t}=e,n=me(e,aS);return t?i.jsx("option",C({},n)):i.jsx(Xt.default,C({},n))}const uS={booleanCellTrueIcon:Ox,booleanCellFalseIcon:Wo,columnMenuIcon:Px,openFilterButtonIcon:yx,filterPanelDeleteIcon:Wo,columnFilteredIcon:Pi,columnSelectorIcon:Sx,columnUnsortedIcon:iS,columnSortedAscendingIcon:ki,columnSortedDescendingIcon:Ii,columnResizeIcon:kx,densityCompactIcon:Ix,densityStandardIcon:Mx,densityComfortableIcon:Ex,exportIcon:jx,moreActionsIcon:Rx,treeDataCollapseIcon:Ei,treeDataExpandIcon:Mi,groupingCriteriaCollapseIcon:Ei,groupingCriteriaExpandIcon:Mi,detailPanelExpandIcon:Ti,detailPanelCollapseIcon:Tx,rowReorderIcon:Fi,quickFilterIcon:vx,quickFilterClearIcon:Wo,columnMenuHideIcon:Lx,columnMenuSortAscendingIcon:ki,columnMenuSortDescendingIcon:Ii,columnMenuFilterIcon:Pi,columnMenuManageColumnsIcon:Dx,columnMenuClearIcon:Hx,loadIcon:Fx,filterPanelAddIcon:Ti,filterPanelRemoveAllIcon:_x,columnReorderIcon:Fi},dS=C({},uS,{baseBadge:xh.default,baseCheckbox:yh.default,baseDivider:vh.default,baseTextField:ha.default,baseFormControl:Sh.default,baseSelect:kh.default,baseButton:Ih.default,baseIconButton:ga.default,baseInputAdornment:Mh.default,baseTooltip:ma.default,basePopper:bs.default,baseInputLabel:Eh.default,baseSelectOption:cS,baseChip:Ph.default}),fS=C({},dS,{cell:u0,skeletonCell:p0,columnHeaderFilterIconButton:Du,columnHeaderSortIcon:wx,columnMenu:Uu,columnHeaders:nS,detailPanels:rS,footer:od,footerRowCount:ad,toolbar:null,pinnedRows:oS,loadingOverlay:sd,noResultsOverlay:sS,noRowsOverlay:ld,pagination:id,filterPanel:Qu,columnsPanel:Ku,columnsManagement:Ju,panel:Xu,row:K2}),hS={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid",unstable_listView:!1},gS=fS,mS=e=>{const t=ge.useTheme(),n=n0(g.useMemo(()=>Ge.getThemeProps({props:e,theme:t,name:"MuiDataGrid"}),[t,e])),r=g.useMemo(()=>C({},S1,n.localeText),[n.localeText]),o=g.useMemo(()=>e0({defaultSlots:gS,slots:n.slots}),[n.slots]),s=g.useMemo(()=>Object.keys(ds).reduce((l,a)=>{var c;return l[a]=(c=n[a])!=null?c:ds[a],l},{}),[n]);return g.useMemo(()=>C({},n,s,{localeText:r,slots:o},hS),[n,r,o,s])},pS={hooks:{useGridAriaAttributes:X2,useGridRowAriaAttributes:Y2,useCellAggregationResult:()=>null}},yd=je(function(t,n){var s;const r=mS(t),o=Uv(r.apiRef,r);return process.env.NODE_ENV!=="production"&&o0(r,r0),i.jsx(Z2,{privateApiRef:o,configuration:pS,props:r,children:i.jsx(R0,C({className:r.className,style:r.style,sx:r.sx},r.forwardedProps,(s=r.slotProps)==null?void 0:s.root,{ref:n}))})}),bS=g.memo(yd);yd.propTypes={apiRef:f.shape({current:f.object.isRequired}),"aria-label":f.string,"aria-labelledby":f.string,autoHeight:f.bool,autoPageSize:f.bool,autosizeOnMount:f.bool,autosizeOptions:f.shape({columns:f.arrayOf(f.string),disableColumnVirtualization:f.bool,expand:f.bool,includeHeaders:f.bool,includeOutliers:f.bool,outliersFactor:f.number}),cellModesModel:f.object,checkboxSelection:f.bool,classes:f.object,clipboardCopyCellDelimiter:f.string,columnBufferPx:f.number,columnGroupHeaderHeight:f.number,columnGroupingModel:f.arrayOf(f.object),columnHeaderHeight:f.number,columns:f.arrayOf(f.object).isRequired,columnVisibilityModel:f.object,density:f.oneOf(["comfortable","compact","standard"]),disableAutosize:f.bool,disableColumnFilter:f.bool,disableColumnMenu:f.bool,disableColumnResize:f.bool,disableColumnSelector:f.bool,disableColumnSorting:f.bool,disableDensitySelector:f.bool,disableEval:f.bool,disableMultipleRowSelection:f.bool,disableRowSelectionOnClick:f.bool,disableVirtualization:f.bool,editMode:f.oneOf(["cell","row"]),estimatedRowCount:f.number,experimentalFeatures:f.shape({warnIfFocusStateIsNotSynced:f.bool}),filterDebounceMs:f.number,filterMode:f.oneOf(["client","server"]),filterModel:f.shape({items:f.arrayOf(f.shape({field:f.string.isRequired,id:f.oneOfType([f.number,f.string]),operator:f.string.isRequired,value:f.any})).isRequired,logicOperator:f.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:f.bool,quickFilterLogicOperator:f.oneOf(["and","or"]),quickFilterValues:f.array}),forwardedProps:f.object,getCellClassName:f.func,getDetailPanelContent:f.func,getEstimatedRowHeight:f.func,getRowClassName:f.func,getRowHeight:f.func,getRowId:f.func,getRowSpacing:f.func,hideFooter:f.bool,hideFooterPagination:f.bool,hideFooterSelectedRowCount:f.bool,ignoreDiacritics:f.bool,ignoreValueFormatterDuringExport:f.oneOfType([f.shape({clipboardExport:f.bool,csvExport:f.bool}),f.bool]),indeterminateCheckboxAction:f.oneOf(["deselect","select"]),initialState:f.object,isCellEditable:f.func,isRowSelectable:f.func,keepNonExistentRowsSelected:f.bool,loading:f.bool,localeText:f.object,logger:f.shape({debug:f.func.isRequired,error:f.func.isRequired,info:f.func.isRequired,warn:f.func.isRequired}),logLevel:f.oneOf(["debug","error","info","warn",!1]),nonce:f.string,onCellClick:f.func,onCellDoubleClick:f.func,onCellEditStart:f.func,onCellEditStop:f.func,onCellKeyDown:f.func,onCellModesModelChange:f.func,onClipboardCopy:f.func,onColumnHeaderClick:f.func,onColumnHeaderContextMenu:f.func,onColumnHeaderDoubleClick:f.func,onColumnHeaderEnter:f.func,onColumnHeaderLeave:f.func,onColumnHeaderOut:f.func,onColumnHeaderOver:f.func,onColumnOrderChange:f.func,onColumnResize:f.func,onColumnVisibilityModelChange:f.func,onColumnWidthChange:f.func,onDensityChange:f.func,onFilterModelChange:f.func,onMenuClose:f.func,onMenuOpen:f.func,onPaginationMetaChange:f.func,onPaginationModelChange:f.func,onPreferencePanelClose:f.func,onPreferencePanelOpen:f.func,onProcessRowUpdateError:f.func,onResize:f.func,onRowClick:f.func,onRowCountChange:f.func,onRowDoubleClick:f.func,onRowEditStart:f.func,onRowEditStop:f.func,onRowModesModelChange:f.func,onRowSelectionModelChange:f.func,onSortModelChange:f.func,onStateChange:f.func,pageSizeOptions:f.arrayOf(f.oneOfType([f.number,f.shape({label:f.string.isRequired,value:f.number.isRequired})]).isRequired),pagination:f.oneOf([!0]),paginationMeta:f.shape({hasNextPage:f.bool}),paginationMode:f.oneOf(["client","server"]),paginationModel:f.shape({page:f.number.isRequired,pageSize:f.number.isRequired}),processRowUpdate:f.func,resetPageOnSortFilter:f.bool,resizeThrottleMs:f.number,rowBufferPx:f.number,rowCount:f.number,rowHeight:f.number,rowModesModel:f.object,rowPositionsDebounceMs:f.number,rows:f.arrayOf(f.object),rowSelection:f.bool,rowSelectionModel:f.oneOfType([f.arrayOf(f.oneOfType([f.number,f.string]).isRequired),f.number,f.string]),rowSpacingType:f.oneOf(["border","margin"]),scrollbarSize:f.number,showCellVerticalBorder:f.bool,showColumnVerticalBorder:f.bool,slotProps:f.object,slots:f.object,sortingMode:f.oneOf(["client","server"]),sortingOrder:f.arrayOf(f.oneOf(["asc","desc"])),sortModel:f.arrayOf(f.shape({field:f.string.isRequired,sort:f.oneOf(["asc","desc"])})),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),unstable_rowSpanning:f.bool,virtualizeColumnsWithAutoRowHeight:f.bool};const CS=({sx:e,...t})=>{const n=ge.useTheme();return i.jsx(bS,{disableRowSelectionOnClick:!0,...t,sx:{border:`1px solid ${n.palette.neutral.lighter}`,borderRadius:"8px",fontFamily:n.typography.fontFamily,fontSize:"0.875rem",[`& .${I.columnHeader}`]:{backgroundColor:"rgba(217, 217, 217, 0.10)",color:n.palette.neutral.dark,fontSize:"0.75rem",fontWeight:600,"&:focus, &:focus-within":{outline:`2px solid ${n.palette.primary.main}`,outlineOffset:"-2px"}},[`& .${I.columnSeparator}`]:{color:n.palette.neutral.lighter},[`& .${I.row}`]:{"&:hover":{backgroundColor:n.palette.neutral.lighter},"&.Mui-selected":{backgroundColor:n.palette.neutral.lighter,"&:hover":{backgroundColor:n.palette.neutral.lighter}}},[`& .${I.cell}`]:{color:n.palette.text.primary,"&:focus, &:focus-within":{outline:`2px solid ${n.palette.primary.main}`,outlineOffset:"-2px"}},[`& .${I.footerContainer}`]:{borderTop:`1px solid ${n.palette.neutral.lighter}`},[`& .${I.overlay}`]:{color:n.palette.neutral.dark},...e}})},wS=e=>"name"in e&&typeof e.name=="string"?e.name:"",xS=({className:e,columns:t,data:n=[],hideStarIcon:r=!1,isLoading:o=!1,sort:s,onConfigure:l,alwaysShowConfigureIcon:a=!1,onDelete:c,onEdit:u,onSelectRow:d,renderInlineEdit:h,labels:m={}})=>{const[p,b]=se.useState(""),{actions:x="Actions",noRecords:w="There are no records.",edit:k="Edit",configure:v="Configure"}=m,F=R=>u?u(p,R).then(()=>b("")):Promise.resolve(),j=se.useCallback((R,_)=>()=>{switch(_){case"configure":l==null||l(R);break;case"delete":c==null||c(R);break;case"edit":b(R);break;case"select":d==null||d(R);break}},[l,c,d]),y=R=>!!(l||c||u)&&R!==p,A="#F5F5F5",N="#555555",M="#FFFFFF",P="#364699";return i.jsx(B.TableContainer,{className:e,children:i.jsxs(Ah.default,{sx:{minWidth:800,"& td, & th":{px:4.5,py:3}},children:[i.jsx(Vh.default,{sx:{background:"rgba(217, 217, 217, 0.10)"},children:i.jsxs(dr.default,{sx:{border:"1px solid #F5F5F5"},children:[t.map((R,_)=>i.jsx(bt.default,{sortDirection:(s==null?void 0:s.column)===R.dataKey?s==null?void 0:s.direction:!1,sx:_<t.length-1?{borderRight:"1px solid #F5F5F5"}:void 0,children:R.onSort?i.jsx(Nh.default,{active:(s==null?void 0:s.column)===R.dataKey,direction:(s==null?void 0:s.column)===R.dataKey?s==null?void 0:s.direction:"asc",onClick:()=>{var O;return(O=R.onSort)==null?void 0:O.call(R,{column:R.dataKey,direction:(s==null?void 0:s.column)===R.dataKey&&(s==null?void 0:s.direction)==="asc"?"desc":"asc"})},children:i.jsx(B.Typography,{sx:{color:N,textTransform:"capitalize"},variant:"caption",children:R.label})}):i.jsx(B.Typography,{sx:{color:N,textTransform:"capitalize"},variant:"caption",children:R.label})},`${String(R.dataKey)}-header`)),y()&&i.jsx(bt.default,{children:i.jsx("span",{style:{position:"absolute",width:1,height:1,overflow:"hidden",clip:"rect(0,0,0,0)"},children:x})})]})}),o&&i.jsx(Po.default,{sx:{"& td":{borderBottomColor:A}},children:i.jsx(dr.default,{children:i.jsx(bt.default,{colSpan:t.length+(y()?1:0),children:i.jsx(B.LinearProgress,{"aria-label":"Loading"})})})}),!o&&n.length===0&&i.jsx(Po.default,{sx:{"& td":{borderBottomColor:A}},children:i.jsx(dr.default,{children:i.jsx(bt.default,{colSpan:t.length+(y()?1:0),children:i.jsx(B.Typography,{sx:{textAlign:"center",color:N,my:5},children:w})})})}),!o&&n.length>0&&i.jsx(Po.default,{sx:{"& td":{borderBottomColor:A}},children:n.map(R=>i.jsxs(dr.default,{sx:{"&:hover, &:focus-within":{backgroundColor:A},"&:hover .favorite-button, &:focus-within .favorite-button":{backgroundColor:M},"&:hover .hover-icon, &:focus-within .hover-icon":{opacity:1},"&:focus-visible":{outline:`2px solid ${P}`,outlineOffset:"-2px"},cursor:R.id!==p?"pointer":"default"},tabIndex:R.id!==p?0:void 0,onClick:R.id!==p?j(R.id,"select"):void 0,onKeyDown:R.id!==p?_=>{_.target===_.currentTarget&&_.key==="Enter"&&(_.preventDefault(),j(R.id,"select")())}:void 0,children:[R.id===p?i.jsx(bt.default,{colSpan:t.length+(y(R.id)?0:1),children:h?h(R.id,wS(R),F,()=>b("")):null}):t.map((_,O)=>{var D,V;return i.jsx(bt.default,{children:i.jsx("div",{style:O===0?{display:"flex",alignItems:"center",gap:10}:void 0,children:O===0?i.jsxs(i.Fragment,{children:[!r&&i.jsx(B.IconButton,{disabled:!0,"aria-label":"favorite",className:"favorite-button",size:"small",sx:{borderRadius:"10px",backgroundColor:A},children:i.jsx(Hh.default,{fontSize:"inherit"})}),i.jsx(B.Typography,{sx:{fontWeight:700,color:"text.primary",fontSize:"0.875rem",cursor:"pointer","&:hover":{textDecoration:"underline"}},onClick:j(R.id,"select"),children:_.render?_.render(R):_.dataKey?String((D=R[_.dataKey])!=null?D:""):""})]}):i.jsx("div",{style:{fontWeight:400,color:N,fontSize:"0.75rem"},children:_.render?_.render(R):_.dataKey?String((V=R[_.dataKey])!=null?V:""):""})})},`${String(R.id)}-${String(_.dataKey)}`)}),y(R.id)&&i.jsxs(bt.default,{align:"right",children:[l&&i.jsx(B.Tooltip,{title:v,children:i.jsx(B.IconButton,{"aria-label":v,className:a?void 0:"hover-icon",size:"small",sx:a?void 0:{opacity:0},onClick:_=>{_.stopPropagation(),j(R.id,"configure")()},children:i.jsx(_h.default,{fontSize:"inherit"})})}),u&&i.jsx(B.Tooltip,{title:k,children:i.jsx(B.IconButton,{"aria-label":k,className:"hover-icon",size:"small",sx:{opacity:0},onClick:_=>{_.stopPropagation(),j(R.id,"edit")()},children:i.jsx(Dh.default,{fontSize:"inherit"})})})]})]},R.id))})]})})},yS=({children:e})=>i.jsx(B.Table,{sx:{"& .MuiTableHead-root":{background:"rgba(217, 217, 217, 0.10)","& .MuiTableCell-root":{border:"1px solid #F5F5F5",color:"text.secondary"}},"& .MuiTableCell-root":{whiteSpace:"nowrap"},"& .MuiTableBody-root":{"& .MuiTableRow-root":{"&.checked":{background:"#F5F5F5"},"&:hover":{background:"#F5F5F5",transition:"200ms","& .actionIcons":{opacity:"1"},"& .tableButton":{background:"#FFF"}}}}},children:e}),ol=()=>i.jsxs(B.SvgIcon,{fontSize:"small",children:[i.jsx("rect",{fill:"#fff",height:"20",width:"20",x:"2",y:"2"}),i.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-2z",fill:"none",stroke:"#D9D9D9",strokeWidth:"2"}),i.jsx("path",{d:"M17.99 9l-1.41-1.42-6.59 6.59-2.58-2.57-1.42 1.41 4 3.99z"})]}),vd=()=>i.jsxs(B.SvgIcon,{fontSize:"small",children:[i.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-2z",fill:"none",stroke:"#D9D9D9",strokeWidth:"2"}),i.jsx("path",{d:"M7 11h10v2H7z"})]}),Sd=({allChecked:e,someChecked:t,onSelectAll:n})=>i.jsx(bt.default,{sx:{padding:"8px 12px",width:"1%"},children:i.jsx(B.Checkbox,{checked:e,checkedIcon:i.jsx(ol,{}),indeterminate:t&&!e,indeterminateIcon:i.jsx(vd,{}),size:"small",sx:{padding:"0","& .MuiSvgIcon-root":{fill:"#D9D9D9"},"&.Mui-checked .MuiSvgIcon-root, &.MuiCheckbox-indeterminate .MuiSvgIcon-root":{fill:"#364699"}},onChange:n,slotProps:{input:{"aria-label":"Select all rows",ref:r=>{r&&(r.indeterminate=t&&!e)}}}})}),kd=({sortDirection:e})=>i.jsxs("svg",{fill:"none",height:"16",viewBox:"0 0 13 16",width:"13",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("path",{d:"M3.5 7L6.5 3L9.5 7H3.5Z",fill:"#333333",fillOpacity:e==="desc"?"0":"0.6"}),i.jsx("path",{d:"M3.5 9L6.5 13L9.5 9H3.5Z",fill:"#333333",fillOpacity:e==="asc"?"0":"0.6"})]});function vS({field:e,label:t,sx:n,value:r,setTableSearch:o,setTableSort:s,sortDirection:l,searchable:a=!0}){const[c,u]=se.useState(!1),d=a&&(c||!!r);return i.jsx(bt.default,{sx:{padding:"3px 2px 3px 6px",...n},onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:i.jsxs(B.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"2px"},children:[a?i.jsx(B.TextField,{disabled:!d,placeholder:t,size:"small",slotProps:{input:{startAdornment:i.jsx(B.InputAdornment,{position:"start",children:i.jsx(zh.default,{sx:{transition:h=>h.transitions.create("all",{duration:h.transitions.duration.standard}),transitionDelay:"100ms",opacity:d?1:0,fontSize:"1rem"}})}),endAdornment:i.jsx(B.InputAdornment,{position:"end",sx:{position:"absolute",top:"2px",right:"2px"},children:i.jsx(B.IconButton,{size:"small","aria-label":`Clear ${t} search`,sx:{transition:h=>h.transitions.create("all",{duration:h.transitions.duration.standard}),opacity:r?1:0,pointerEvents:r?"auto":"none"},onClick:()=>o(h=>({...h,[e]:""})),children:i.jsx($h.default,{sx:{fontSize:"0.75rem"}})})}),autoComplete:"off"}},sx:{"& .MuiInputBase-root":{transition:h=>h.transitions.create("all",{duration:h.transitions.duration.standard}),backgroundColor:d?"neutral.lightest":"transparent",borderRadius:"8px",color:d?"inherit":"text.secondary",fontSize:"0.75rem",height:"unset",paddingLeft:"6px",paddingRight:"4px"},"& .MuiInputBase-input":{transition:h=>h.transitions.create("all",{duration:h.transitions.duration.standard}),cursor:d?"text":"default",position:"relative",left:d?"0":"-18px",padding:"4px 0"},"& .MuiInputBase-input::placeholder":{opacity:"1"},"& .MuiOutlinedInput-notchedOutline":{borderWidth:"1px !important",borderColor:d?"#D9D9D9 !important":"transparent !important"},"& .MuiInputAdornment-positionStart":{marginRight:"4px"}},value:r,onChange:h=>o(m=>({...m,[e]:h.target.value}))}):i.jsx(B.Box,{sx:{color:"text.secondary",fontSize:"0.75rem",lineHeight:1.2,paddingLeft:"6px",whiteSpace:"nowrap"},children:t}),i.jsx(B.IconButton,{size:"small","aria-label":`Sort by ${t}`,onClick:()=>s(h=>{if(!h)return{field:e,direction:"asc"};if(h.direction==="asc")return{field:e,direction:"desc"}}),children:i.jsx(kd,{sortDirection:l})})]})})}const Id=se.memo(vS),SS={position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},kS=({shouldRenderCheckbox:e,shouldRenderAction:t,items:n,tableSearch:r,setTableSearch:o,tableSort:s,setTableSort:l,allChecked:a,someChecked:c,onSelectAll:u})=>i.jsx(B.TableHead,{children:i.jsxs(B.TableRow,{children:[e?i.jsx(Sd,{allChecked:a,someChecked:c,onSelectAll:u}):null,n.map(d=>{var h;return d.type==="tableCell"?i.jsx(bt.default,{children:i.jsx(B.Typography,{sx:{color:"text.secondary",fontSize:"0.75rem"},children:d.label})},d.id):d.type==="searchable"?i.jsx(Id,{field:d.field,label:d.label,setTableSearch:o,setTableSort:l,sortDirection:(s==null?void 0:s.field)===d.field?s==null?void 0:s.direction:void 0,value:(h=r[d.field])!=null?h:""},d.id):null}),t?i.jsx(bt.default,{children:i.jsx(B.Box,{component:"span",sx:SS,children:"Actions"})}):null]})}),Md=se.memo(({id:e,index:t,checked:n,onTableRowCheck:r,children:o,onClick:s,shouldRenderCheckbox:l})=>i.jsxs(dr.default,{className:n?"checked":"",sx:{cursor:s?"pointer":void 0},onClick:s,children:[l?i.jsx(bt.default,{sx:{padding:"13px 12px",borderBottom:"1px solid #F5F5F5"},children:i.jsx(B.Checkbox,{checked:n,checkedIcon:i.jsx(ol,{}),indeterminateIcon:i.jsx(Gh.default,{}),size:"small",sx:{padding:"0","& .MuiSvgIcon-root":{fill:"#D9D9D9"},"&.Mui-checked .MuiSvgIcon-root":{fill:"#364699"}},slotProps:{input:{"aria-label":`Select row ${t+1}`}},onClick:r?a=>{a.stopPropagation(),r(e,t,a)}:void 0})}):null,o]},e));Md.displayName="CustomTableRow";const IS=({label:e})=>i.jsx(bt.default,{sx:{padding:"7px 16px"},children:i.jsx(B.Typography,{sx:{fontSize:"0.75rem"},children:e})});function Ed(e,t,n){const r=u=>typeof u=="string"?u.toLowerCase():Array.isArray(u)&&u.every(d=>typeof d=="string")?u.join(" ").toLowerCase():"",o=(u,d)=>{if(!d)return!0;const h=d.toLowerCase();return typeof u=="string"?u.toLowerCase().includes(h):Array.isArray(u)&&u.every(m=>typeof m=="string")?u.some(m=>m.toLowerCase().includes(h)):!1},s=e.filter(u=>t?Object.entries(t).every(([d,h])=>o(u[d],h)):!0);if(!n)return s;const{field:l,direction:a}=n,c=a==="asc"?1:-1;return[...s].sort((u,d)=>{const h=u[l],m=d[l];if(typeof h=="number"&&typeof m=="number")return c*(h-m);const p=r(h),b=r(m);return p&&b?c*p.localeCompare(b):0})}const MS=e=>{const[t,n]=se.useState({}),[r,o]=se.useState(),[s,l]=se.useState(new Set),[a,c]=se.useState(null),u=Ed(e,t,r),d=u.map(w=>w.id).filter(Boolean),h=d.length>0&&d.every(w=>s.has(w)),m=d.some(w=>s.has(w));return{tableSearch:t,setTableSearch:n,tableSort:r,setTableSort:o,allChecked:h,someChecked:m,onSelectAll:()=>{u.every(w=>s.has(w.id))?l(new Set):l(new Set(u.map(w=>w.id)))},onTableRowCheck:(w,k,v)=>{if(v.shiftKey&&a!==null){const F=Math.min(a,k),j=Math.max(a,k),y=new Set(s);d.slice(F,j+1).forEach(A=>y.add(A)),l(y)}else{const F=new Set(s);F.has(w)?F.delete(w):F.add(w),l(F)}c(k)},filteredTableData:u,checkedIds:s,unselectAll:()=>l(new Set)}},Pd=g.default.forwardRef(({onClick:e,holdDuration:t=2e3,holdLabel:n="Hold to confirm...",children:r,disabled:o,...s},l)=>{const[a,c]=se.useState(!1),[u,d]=se.useState(!1),[h,m]=se.useState(0),p=se.useRef(null),b=se.useRef(null),x=se.useRef(0),w=se.useRef(!1),k=()=>{p.current&&(clearTimeout(p.current),p.current=null),b.current&&(clearInterval(b.current),b.current=null)},v=()=>{o||u||a||(k(),x.current=performance.now(),m(0),c(!0),b.current=setInterval(()=>{const j=performance.now()-x.current;m(Math.min(j/t*100,100))},16),p.current=setTimeout(()=>{k(),m(100),c(!1),d(!0),(async()=>{try{await e()}finally{d(!1),m(0)}})()},t))},F=()=>{a&&(k(),c(!1),m(0))};return se.useEffect(()=>()=>k(),[]),i.jsx(B.Box,{sx:{position:"relative"},children:i.jsx(B.Button,{ref:l,disabled:o||u,onPointerDown:v,onPointerUp:F,onPointerLeave:F,onPointerCancel:F,onKeyDown:j=>{j.key!==" "&&j.key!=="Enter"||w.current||(j.preventDefault(),w.current=!0,v())},onKeyUp:j=>{j.key!==" "&&j.key!=="Enter"||(w.current=!1,F())},onBlur:()=>{w.current=!1,F()},sx:{display:"flex",alignItems:"center",gap:1,width:"100%",touchAction:"none"},...s,children:a?i.jsxs(i.Fragment,{children:[i.jsx(B.CircularProgress,{size:18,sx:{color:"inherit","& .MuiCircularProgress-circleDeterminate":{transition:"none"}},thickness:7,value:h,variant:"determinate"}),i.jsx("span",{children:n})]}):r})})});Pd.displayName="HoldToConfirmButton";const ES=({menuItems:e,ariaLabel:t="Open menu"})=>{const[n,r]=se.useState(null),o=!!n,s=c=>{r(c.currentTarget)},l=()=>{r(null)},a=c=>{c(),l()};return i.jsxs(i.Fragment,{children:[i.jsx(B.IconButton,{"aria-haspopup":"true","aria-label":t,onClick:s,children:i.jsx(Bh.default,{})}),i.jsx(B.Menu,{anchorEl:n,anchorOrigin:{vertical:"bottom",horizontal:"right"},open:o,transformOrigin:{vertical:"top",horizontal:"right"},onClose:l,children:e.map((c,u)=>i.jsx(B.MenuItem,{onClick:()=>a(c.onClick),children:c.label},u))})]})},PS=({title:e,className:t,subtitle:n,"data-testid":r})=>i.jsxs("div",{children:[i.jsx("h1",{className:`text-primary text-lg font-bold uppercase ${t!=null?t:""}`,"data-testid":r,children:e}),n&&i.jsx("p",{className:"text-neutral text-sm",children:n})]}),cr=({type:e})=>{switch(e){case"error":return i.jsx(Uh.default,{sx:{color:"#5C0924"}});case"info":return i.jsx(Kh.default,{sx:{color:"#161E4A"}});case"success":return i.jsx(Wh.default,{sx:{color:"#00514B"}});case"warning":return i.jsx(Xh.default,{sx:{color:"#816E09"}});case"default":default:return null}},TS=e=>{const t=e.type==="error",n=se.useCallback(r=>{r&&t&&r.focus()},[t]);return i.jsx(ga.default,{ref:n,"aria-label":e.ariaLabel||"Close notification",sx:{position:"absolute",top:8,right:8,padding:"4px"},onClick:()=>e.closeToast(!0),children:i.jsx(qh.default,{sx:{fontSize:"1rem",color:"#555555"}})})},FS=e=>i.jsx(Kt.ToastContainer,{hideProgressBar:!0,newestOnTop:!0,"aria-label":"Toast",className:"whitespace-pre-wrap",closeButton:TS,position:"top-right",transition:Kt.Slide,...e}),ur="relative min-h-auto! text-sm border-l-[5px] rounded-none! p-2! pr-10!",jS={default:(e,t)=>Kt.toast(e,{ariaLabel:e,autoClose:3e3,className:ur,type:"default",icon:i.jsx(cr,{type:"default"}),...t}),error:(e,t)=>Kt.toast.error(e!=null?e:"There was an error! Please try again.",{ariaLabel:e!=null?e:"There was an error! Please try again",autoClose:15e3,className:`${ur} text-[#5C0924]! bg-[#FBEAEC]! border-[#5C0924]`,type:"error",icon:i.jsx(cr,{type:"error"}),...t}),info:(e,t)=>Kt.toast.info(e,{ariaLabel:e,autoClose:3500,className:`${ur} text-[#161E4A]! bg-[#E9ECF6]! border-[#161E4A]`,type:"info",icon:i.jsx(cr,{type:"info"}),...t}),ok:(e,t)=>Kt.toast.success(e!=null?e:"Success!",{ariaLabel:e!=null?e:"Success!",autoClose:2500,className:`${ur} text-[#00514B]! bg-[#EBF6F5]! border-[#00514B]`,type:"success",icon:i.jsx(cr,{type:"success"}),...t}),warning:(e,t)=>Kt.toast.warning(e,{ariaLabel:e,autoClose:3500,className:`${ur} text-[#816E09]! bg-[#FEFBE0]! border-[#816E09]!`,type:"warning",icon:i.jsx(cr,{type:"warning"}),...t}),dismiss:e=>Kt.toast.dismiss(e),isActive:e=>Kt.toast.isActive(e)},OS=ge.styled(({className:e,...t})=>i.jsx(ma.default,{...t,classes:{popper:e}}))(({theme:e})=>({[`& .${Jo.tooltipClasses.tooltip}`]:{backgroundColor:"#FFFFFF",color:e.palette.text.primary,border:"1px solid #D9D9D9",borderRadius:"8px",padding:"16px",fontSize:"0.875rem",fontWeight:400,boxShadow:"0 4px 4px 0 rgba(85, 85, 85, 0.10)",display:"flex",justifyContent:"center",alignItems:"center",gap:"10px",maxWidth:"none"},[`& .${Jo.tooltipClasses.arrow}`]:{color:"#FFFFFF","&::before":{backgroundColor:"#FFFFFF",border:"1px solid #D9D9D9"}}})),RS=({icon:e,title:t,showOnlyOnOverflow:n=!1,children:r,...o})=>{const[s,l]=se.useState(!1),[a,c]=se.useState(null);se.useEffect(()=>{if(!n||!a)return;const m=()=>{l(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight)};m();const p=new ResizeObserver(m);return p.observe(a),()=>p.disconnect()},[n,a]);const u=e?i.jsxs(B.Box,{sx:{display:"flex",alignItems:"center",gap:"10px"},children:[e,t]}):t,d=n&&se.isValidElement(r)?se.cloneElement(r,{ref:c}):r,h=n?!s:o.disableHoverListener;return i.jsx(OS,{...o,disableHoverListener:h,title:u,children:d})},LS={sm:{width:"1.5rem",height:"1.5rem",fontSize:"0.75rem"},md:{width:"2.5rem",height:"2.5rem",fontSize:"0.875rem"},lg:{width:"3.75rem",height:"3.75rem",fontSize:"1.5rem"},xl:{width:"7.5rem",height:"7.5rem",fontSize:"3rem"}},DS=({user:e,size:t="sm"})=>{var u,d,h,m;const n=ge.useTheme(),r=(d=(u=e==null?void 0:e.personalInfo.firstName)==null?void 0:u.charAt(0).toUpperCase())!=null?d:"",o=(m=(h=e==null?void 0:e.personalInfo.lastName)==null?void 0:h.charAt(0).toUpperCase())!=null?m:"",s=`${r}${o}`.trim()||" ",{width:l,height:a,fontSize:c}=LS[t];return i.jsx(B.Avatar,{sx:{backgroundColor:n.palette.primary.main,color:n.palette.primary.contrastText,width:l,height:a,fontSize:c,border:t==="sm"?`2px solid ${n.palette.neutral.lighter}`:void 0,[n.breakpoints.between("sm","md")]:{width:"33px !important",height:"33px !important"}},children:s})},HS=({messages:e})=>{const t=ge.useTheme();return e.length===0?null:i.jsx(B.Alert,{icon:i.jsx(Yh.default,{sx:{color:"#665312"}}),severity:"warning",sx:{display:"flex",backgroundColor:t.palette.warning.lightest,justifyContent:"center"},children:i.jsx(B.Typography,{sx:{fontFamily:"Lato",fontWeight:500,color:"#665312"},children:e.join(", ")})})},Td=24,Qi=-40,_S=0,Fd=e=>{if(e<=0)return 0;const t=20*Math.log10(e);return Math.min(1,Math.max(0,(t-Qi)/(_S-Qi)))},jd=(e,t,n=Td)=>e<=Math.floor(n*t),AS={default:{height:"18px",gap:"0.25rem",bar:{width:"0.625rem"},radius:"2px"},small:{height:"0.625rem",gap:"2px",bar:{width:"7px",boxSizing:"border-box"},radius:"1px"}},sl=({className:e,volume:t,label:n="Input Level",hideLabel:r=!1,barCount:o=Td,size:s="default"})=>{const l=ge.useTheme(),a=Array.from({length:o},(d,h)=>h+1),c=AS[s],u=Fd(t);return i.jsxs(B.Box,{className:e,sx:{width:"100%",display:"flex",flexDirection:"column",gap:"0.5rem"},children:[!r&&i.jsx(B.Typography,{sx:{fontFamily:l.typography.fontFamily,fontWeight:l.typography.fontWeightBold},children:n}),i.jsx(B.Box,{...r&&{role:"img","aria-label":n},sx:{width:"100%",height:c.height,display:"flex",gap:c.gap},children:a.map(d=>i.jsx(B.Box,{sx:{...c.bar,height:"100%",borderRadius:c.radius,border:`0.5px solid ${l.palette.neutral.light}`,backgroundColor:jd(d,u,o)?l.palette["acuity-green"].main:l.customColors.white}},`audio-volume-bar-${d}`))})]})},ll=e=>{const[t,n]=se.useState(0);return se.useEffect(()=>{if(!e){n(0);return}let r;const o=new AudioContext,s=o.createMediaStreamSource(e),l=o.createAnalyser();l.fftSize=512,s.connect(l);const a=new Uint8Array(l.frequencyBinCount),c=()=>{let u=0;l.getByteTimeDomainData(a);for(let d=0;d<a.length;d++){const h=(a[d]-128)/128;u+=h*h}n(Math.sqrt(u/a.length)),r=requestAnimationFrame(c)};return c(),()=>{cancelAnimationFrame(r),l.disconnect(),s.disconnect(),o.close()}},[e]),t},VS=({stream:e,levelLabel:t})=>{const n=ll(e);return i.jsx(B.Box,{"data-testid":"recording-audio-level",sx:{width:"fit-content"},children:i.jsx(sl,{volume:n,label:t,hideLabel:!0,barCount:8,size:"small"})})},NS=({label:e="Recording",stream:t,levelLabel:n="Input Level",className:r})=>{const o=ge.useTheme();return i.jsxs(B.Box,{className:r,role:"alert",sx:{display:"inline-grid",gridTemplateColumns:"auto auto",alignItems:"center",columnGap:"0.5rem",rowGap:"0.25rem",padding:"0.5rem 0.75rem",backgroundColor:o.customColors.white,borderRadius:"9999px",boxShadow:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"},children:[i.jsx(B.Box,{"aria-hidden":!0,sx:{width:12,height:12,borderRadius:"50%",backgroundColor:o.palette.error.main,justifySelf:"center"}}),i.jsx(B.Typography,{sx:{fontSize:"0.875rem",fontWeight:500,lineHeight:"1.25rem",color:o.palette.neutral.darkest,margin:0},children:e}),i.jsx(Zh.default,{"aria-hidden":!0,sx:{color:o.palette.neutral.darkest,fontSize:14,justifySelf:"center"}}),i.jsx(VS,{stream:t,levelLabel:n})]})},$S={audio:{label:"Select your Microphone",okMessage:"Microphone is working perfectly!",errorMessage:"There is a problem with your microphone. Please select your input again to proceed with your test."},video:{label:"Select your Camera",okMessage:"Camera is working as intended",errorMessage:"There is a problem with your webcam, Please select your camera input again to proceed with your test. "}},Od=({className:e,disabled:t,error:n,hideLabel:r=!1,options:o=[],type:s,value:l="",onChange:a,showMessage:c=!0,pendingMessage:u,pendingTone:d="neutral",compact:h=!1,labels:m})=>{const p=ge.useTheme(),{label:b,okMessage:x,errorMessage:w}=m!=null?m:$S[s],k=se.useMemo(()=>({width:h?"329px":r?"485px":"100%",height:h?"49px":r?"54px":"auto",labelFontSize:h?"8px":"10px",valueFontSize:h?"12px":"16px",labelColor:h?p.palette.neutral.darkest:p.palette.neutral.main,valueColor:h?p.palette.neutral.darkest:p.palette.neutral.dark,borderRadius:h?"10px":"8px",gap:h?"0px":"4px"}),[h,r,p.palette.neutral]),v=se.useMemo(()=>r||h?{width:k.width,height:k.height,borderRadius:k.borderRadius,padding:"10px","& .MuiSelect-select":{padding:h?"19px 10px":"10px",display:"flex",flexDirection:"column",gap:"4px"}}:{},[r,h,k]),F=se.useCallback(M=>{a(M.target.value)},[a]),j=se.useCallback(M=>{const P=o.find(R=>R.deviceId===M);return!P||!r&&!h?(P==null?void 0:P.label)||"":i.jsxs(B.Box,{sx:{display:"flex",flexDirection:"column",gap:k.gap},children:[i.jsx(B.Typography,{component:"span",sx:{fontFamily:p.typography.fontFamily,fontSize:k.labelFontSize,fontWeight:600,lineHeight:"20px",color:k.labelColor},children:b}),i.jsx(B.Typography,{component:"span",sx:{fontFamily:p.typography.fontFamily,fontSize:k.valueFontSize,fontWeight:600,lineHeight:"20px",color:k.valueColor},children:P.label})]})},[o,r,h,k,p.typography,b]),y=!n&&!!l&&!!u,A=!n&&!!l&&!u,N=!!n;return i.jsxs(B.Box,{className:e,sx:{width:"100%",minWidth:"300px"},children:[!r&&i.jsx(B.Typography,{sx:{fontFamily:p.typography.fontFamily,fontWeight:p.typography.fontWeightBold,mb:"0.5rem"},children:b}),i.jsx(B.FormControl,{sx:{mb:"0.375rem"},fullWidth:!0,disabled:!o.length,children:i.jsx(B.Select,{SelectDisplayProps:{"aria-label":b},disabled:t,value:l,onChange:F,sx:v,renderValue:j,children:o.map(M=>i.jsx(B.MenuItem,{"aria-label":M.label,value:M.deviceId,children:M.label},M.deviceId))})}),c&&i.jsxs(B.Box,{"aria-live":"polite",sx:{minHeight:"20px",display:"flex",alignItems:"center",gap:"0.5rem"},children:[y&&d==="neutral"&&i.jsxs(i.Fragment,{children:[i.jsx(eg.default,{fontSize:"small",sx:{color:p.palette.neutral.dark}}),i.jsx(B.Typography,{sx:{fontSize:"10px",color:p.palette.neutral.dark},children:u})]}),y&&d==="error"&&i.jsxs(i.Fragment,{children:[i.jsx(ml.default,{fontSize:"small",sx:{color:p.palette["acuity-red"].main}}),i.jsx(B.Typography,{sx:{fontSize:"10px",color:p.palette["acuity-red"].main},children:u})]}),A&&i.jsxs(i.Fragment,{children:[i.jsx(Jh.default,{fontSize:"small",sx:{color:p.palette["acuity-green"].darkest}}),i.jsx(B.Typography,{sx:{fontSize:"10px",color:p.palette["acuity-green"].darkest},children:x})]}),N&&i.jsxs(i.Fragment,{children:[i.jsx(ml.default,{fontSize:"small",sx:{color:p.palette["acuity-red"].main}}),i.jsx(B.Typography,{sx:{fontSize:"10px",color:p.palette["acuity-red"].main},children:w})]})]})]})},Rd=.02,Ld=250,Dd=8e3,Hd=(e,t)=>{const[n,r]=se.useState(t?"listening":"idle"),o=se.useRef(0),s=e>=Rd,l=n==="detected";return se.useEffect(()=>{if(o.current=0,!t){r("idle");return}r("listening");const a=setTimeout(()=>{r(c=>c==="listening"?"silent":c)},Dd);return()=>clearTimeout(a)},[t]),se.useEffect(()=>{if(!t||!s||l)return;const a=Date.now(),c=setTimeout(()=>r("detected"),Math.max(0,Ld-o.current));return()=>{clearTimeout(c),o.current+=Date.now()-a}},[t,s,l]),n},_d={speakToTest:"Speak to check your microphone.",noSoundDetected:"No sound detected. Speak into your microphone or choose another device.",inputLevel:"Input Level"},zS=({stream:e})=>{const t=ge.useTheme(),n=se.useRef(null);return se.useEffect(()=>{n.current&&(n.current.srcObject=e!=null?e:null)},[e]),i.jsxs(B.Box,{sx:{position:"relative",width:"100%",aspectRatio:"16 / 9",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"12px",border:`1px solid ${t.palette.neutral.light}`,backgroundColor:t.palette.neutral.lighter,overflow:"hidden"},children:[i.jsx(Qh.default,{"aria-hidden":!0,sx:{fontSize:80,color:t.palette.neutral.dark}}),i.jsx(B.Box,{component:"video",ref:n,autoPlay:!0,muted:!0,playsInline:!0,disablePictureInPicture:!0,"aria-hidden":!0,sx:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",transform:"scaleX(-1)",display:e?"block":"none"}})]})},GS=({devices:e,labels:t,onStatusChange:n})=>{const r=ll(e.audioStream),o=Hd(r,e.audioStream);se.useEffect(()=>n==null?void 0:n(o),[o,n]);let s;return o==="silent"?s=t.noSoundDetected:o!=="detected"&&(s=t.speakToTest),i.jsxs(i.Fragment,{children:[i.jsx(Od,{type:"audio",disabled:e.audioPerm!=="granted"||!e.audioDevices.length,error:e.audioError,options:e.audioDevices,value:e.activeAudioId,onChange:e.onSelectAudio,pendingMessage:s,pendingTone:o==="silent"?"error":"neutral",labels:t.microphone}),i.jsx(sl,{volume:r,label:t.inputLevel})]})},BS=({devices:e,onMicStatusChange:t,labels:n,className:r})=>{const o=ge.useTheme(),s={..._d,...n};return i.jsxs(B.Box,{className:r,sx:{width:"100%",display:"flex",justifyContent:"center",flexWrap:{xs:"wrap",md:"nowrap"},gap:"3rem"},children:[i.jsx(B.Box,{sx:{width:"100%",maxWidth:"624px"},children:i.jsx(zS,{stream:e.videoStream})}),i.jsx(B.Box,{sx:{display:{xs:"none",md:"block"},borderLeft:`1px solid ${o.palette.neutral.lighter}`}}),i.jsxs(B.Box,{sx:{width:"100%",maxWidth:"330px",display:"flex",flexDirection:"column",gap:"2.5rem"},children:[i.jsx(Od,{type:"video",disabled:e.videoPerm!=="granted"||!e.videoDevices.length,error:e.videoError,options:e.videoDevices,value:e.activeVideoId,onChange:e.onSelectVideo,labels:s.camera}),i.jsx(GS,{devices:e,labels:s,onStatusChange:t})]})]})};function Ji(e){const t=Math.abs(e);return t<10?`0${t}`:t.toString()}function il(e){const t=Math.floor(Math.abs(e)/60)*Math.sign(e),n=Math.abs(e)%60;return`${e<0?"-":""}${Ji(t)}:${Ji(n)}`}const WS=({timeLeft:e,timerLabel:t,variant:n="info",showClockIcon:r=!0,accessibleLabel:o="Time Left : "})=>{const s=ge.useTheme(),l=il(e),a=n==="info",c=a?s.palette.primary.main:s.palette.warning.darkest,u=a?s.palette.primary.lightest:s.palette.warning.lightest;return i.jsxs(B.Stack,{role:"timer","aria-live":"polite","aria-label":t||o,direction:"row",sx:{color:c,padding:{xs:"0.5rem 0.75rem",sm:"0.75rem 1rem"},backgroundColor:u,justifyContent:"space-between",borderRadius:"1rem",minWidth:0,maxWidth:"100%",overflow:"hidden",flexShrink:1,...a?{}:{border:`1px solid ${c}`}},children:[i.jsxs(B.Stack,{direction:"row",spacing:"0.25rem",alignItems:"center",sx:{minWidth:0,overflow:"hidden",flexShrink:1},children:[r&&i.jsx(tg.default,{sx:{flexShrink:0}}),t&&i.jsx(B.Typography,{sx:{fontSize:{xs:"0.875rem",sm:"1rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:t})]}),i.jsx(B.Typography,{sx:{fontWeight:"bold",ml:"0.5rem",fontSize:{xs:"0.875rem",sm:"1rem"},flexShrink:0,minWidth:"fit-content"},children:l})]})},Ad=B.styled(B.Box)(()=>({width:"100%",maxWidth:624,aspectRatio:"4/3",borderRadius:10,overflow:"hidden",position:"relative",height:"100%",maxHeight:368,marginBottom:"2.5rem",display:"flex",alignItems:"center",justifyContent:"center"})),qS=({imageUrl:e,altText:t="Preview Image"})=>e?i.jsx(Ad,{children:i.jsx("img",{src:e,alt:t,style:{width:"100%",height:"100%",objectFit:"contain",display:"block"}})}):null,Vt="Lato, sans-serif",US=e=>{var t,n,r,o,s,l,a,c,u,d,h,m,p,b,x,w,k,v,F,j,y,A;return{h1:{fontFamily:(t=e.typography.fontFamily)!=null?t:Vt,fontWeight:(n=e.typography.fontWeightBold)!=null?n:700,fontSize:(r=e.typography["4xl"])!=null?r:"3rem",textAlign:"left",verticalAlign:"middle"},h2:{fontFamily:(o=e.typography.fontFamily)!=null?o:Vt,fontWeight:(s=e.typography.fontWeightMedium)!=null?s:600,fontSize:(l=e.typography["3xl"])!=null?l:"2.5rem",textAlign:"left",verticalAlign:"middle"},h3:{fontFamily:(a=e.typography.fontFamily)!=null?a:Vt,fontWeight:(c=e.typography.fontWeightRegular)!=null?c:400,fontSize:(u=e.typography["2xl"])!=null?u:"2rem",textAlign:"left",width:"100%",mt:"1rem"},h4:{fontFamily:(d=e.typography.fontFamily)!=null?d:Vt,fontWeight:(h=e.typography.fontWeightMedium)!=null?h:700,fontSize:(m=e.typography.base)!=null?m:"1rem",textAlign:"left",verticalAlign:"middle"},ul:{fontFamily:(p=e.typography.fontFamily)!=null?p:Vt,fontWeight:(b=e.typography.fontWeightRegular)!=null?b:400,listStyleType:"disc",pl:"1rem",textAlign:"left",width:"100%",pt:0},ol:{fontFamily:(x=e.typography.fontFamily)!=null?x:Vt,fontWeight:(w=e.typography.fontWeightRegular)!=null?w:400,listStyleType:"decimal",pl:"1rem",mt:"0.5rem",textAlign:"left",width:"100%"},p:{fontFamily:(k=e.typography.fontFamily)!=null?k:Vt,fontWeight:(v=e.typography.fontWeightRegular)!=null?v:400,mt:"0.25rem",textAlign:"left",wordBreak:"break-word",width:"100%"},a:{fontFamily:(F=e.typography.fontFamily)!=null?F:Vt,fontWeight:(j=e.typography.fontWeightRegular)!=null?j:400,color:e.palette.primary.main,textDecoration:"underline"},li:{fontFamily:(y=e.typography.fontFamily)!=null?y:Vt,fontWeight:(A=e.typography.fontWeightRegular)!=null?A:400,display:"list-item",p:0}}},tn=(e,t,n)=>{var o,s;const r=e.typography[t];return{fontSize:(o=r==null?void 0:r.fontSize)!=null?o:n.fontSize,lineHeight:(s=r==null?void 0:r.lineHeight)!=null?s:n.lineHeight}},al=e=>{var l,a,c,u;const t=(l=e.typography.fontFamily)!=null?l:Vt,n=(a=e.typography.fontWeightRegular)!=null?a:400,r=(c=e.typography.fontWeightMedium)!=null?c:600,o=(u=e.typography.fontWeightBold)!=null?u:700,s={fontFamily:t,letterSpacing:"normal",textAlign:"left",m:0};return{fontFamily:t,"& h1":{...s,...tn(e,"4xl",{fontSize:"2.25rem",lineHeight:"3rem"}),fontWeight:o},"& h2":{...s,...tn(e,"3xl",{fontSize:"1.625rem",lineHeight:"2.25rem"}),fontWeight:r},"& h3":{...s,...tn(e,"2xl",{fontSize:"1.4375rem",lineHeight:"2rem"}),fontWeight:n,mt:"1rem"},"& h4":{...s,...tn(e,"base",{fontSize:"1rem",lineHeight:"1.5rem"}),fontWeight:r},"& h5":{...s,...tn(e,"sm",{fontSize:"0.875rem",lineHeight:"1.25rem"}),fontWeight:o},"& h6":{...s,...tn(e,"sm",{fontSize:"0.875rem",lineHeight:"1.25rem"}),fontWeight:r},"& p":{fontFamily:t,...tn(e,"base",{fontSize:"1rem",lineHeight:"1.5rem"}),fontWeight:n,letterSpacing:"normal",textAlign:"left",wordBreak:"break-word",m:0,mt:"0.25rem"},"& ul, & ol":{fontFamily:t,...tn(e,"base",{fontSize:"1rem",lineHeight:"1.5rem"}),fontWeight:n,textAlign:"left",m:0,pl:"1rem",pr:0},"& ul":{listStyleType:"disc",pt:0,pb:"0.5rem"},"& ol":{listStyleType:"decimal",mt:"0.5rem",pt:"0.5rem",pb:"0.5rem"},"& li":{display:"list-item",m:0,p:0},"& li > p":{m:0},"& a":{color:e.palette.primary.main,textDecoration:"underline"},"& strong":{fontWeight:o},"& em":{fontStyle:"italic"}}},KS=B.styled(B.Box)(({theme:e})=>({width:"100%",borderRadius:"10px",overflow:"hidden",position:"relative",height:"100%",padding:"0.5rem",fontFamily:e.typography.fontFamily})),XS=({content:e=""})=>{const t=ge.useTheme(),n=se.useMemo(()=>al(t),[t]);return i.jsx(KS,{"data-testid":"content-text",sx:n,children:i.jsx(ng.default,{components:{a({children:r,href:o}){return i.jsx("a",{href:o,target:"_blank",rel:"noopener noreferrer",children:r})}},children:e})})},tt={primary:{darkest:"#161E4A",dark:"#253170",main:"#364699",light:"#7779B8",lighter:"#B0B1D7",lightest:"#E9ECF6"},secondary:{darkest:"#15436E",dark:"#205C94",main:"#2C76BC",light:"#799DD1",lighter:"#B3C6E5",lightest:"#EAF1F9"},error:{darkest:"#720202",dark:"#A90508",main:"#E40A0A",light:"#F97054",lighter:"#FFB19E",lightest:"#FFECE8"},info:{darkest:"#0D556D",dark:"#157393",main:"#5A65E4",light:"#76B2CF",lighter:"#B2D3E3",lightest:"#EBF4F8"},warning:{darkest:"#816E09",dark:"#E0CA01",main:"#FCE833",light:"#FFEE7A",lighter:"#FFF5B1",lightest:"#FEFBE0"},success:{darkest:"#24590A",dark:"#387F14",main:"#4DA81F",light:"#89C368",lighter:"#BCDEA9",lightest:"#EEF8EB"},neutral:{darkest:"#333333",dark:"#555555",main:"#949494",light:"#B8B8B8",lighter:"#F5F5F5",lightest:"#FFFFFF"},"acuity-green":{darkest:"#00514B",dark:"#007A72",main:"#00A59B",light:"#70C0B8",lighter:"#B0DBD6",lightest:"#EBF6F5"},"acuity-red":{darkest:"#5C0924",dark:"#8A1339",main:"#BA1E50",light:"#D66D80",lighter:"#ECACB5",lightest:"#FBEAEC"},customColors:{black:"#000000",white:"#FFFFFF","light-gray":"#D9D9D9","medium-gray":"#767676","transparent-medium":"rgba(0, 0, 0, 0.25)","transparent-light":"rgba(0, 0, 0, 0.05)"}},ea=[1,2,3,4,5,6],Vd={toolbar:"Formatting",undo:"Undo",redo:"Redo",textStyle:"Text style",paragraph:"Paragraph",heading:e=>`Heading ${e}`,bold:"Bold",italic:"Italic",numberedList:"Numbered list",bulletedList:"Bulleted list"},YS=e=>i.jsx(B.SvgIcon,{viewBox:"0 0 24 25",...e,children:i.jsx("path",{d:"M7.404 18.5V17.5H14.658C15.6953 17.5 16.5787 17.1443 17.308 16.433C18.0387 15.7217 18.404 14.853 18.404 13.827C18.404 12.801 18.039 11.9357 17.309 11.231C16.5783 10.5257 15.6947 10.173 14.658 10.173H6.916L9.881 13.138L9.173 13.846L5 9.673L9.173 5.5L9.881 6.208L6.916 9.173H14.658C15.9667 9.173 17.085 9.62433 18.013 10.527C18.9397 11.4297 19.403 12.5297 19.403 13.827C19.403 15.1243 18.9397 16.2277 18.013 17.137C17.0863 18.0463 15.9677 18.5007 14.657 18.5H7.404Z"})}),ZS=e=>i.jsx(B.SvgIcon,{viewBox:"0 0 24 25",...e,children:i.jsx("path",{d:"M16.596 18.5V17.5H9.342C8.30467 17.5 7.42133 17.1443 6.692 16.433C5.96133 15.7217 5.596 14.853 5.596 13.827C5.596 12.801 5.961 11.9357 6.691 11.231C7.42167 10.5257 8.30533 10.173 9.342 10.173H17.084L14.119 13.138L14.827 13.846L19 9.673L14.827 5.5L14.119 6.208L17.084 9.173H9.342C8.03333 9.173 6.915 9.62433 5.987 10.527C5.06033 11.4297 4.597 12.5297 4.597 13.827C4.597 15.1243 5.06033 16.2277 5.987 17.137C6.91367 18.0463 8.03233 18.5007 9.343 18.5H16.596Z"})}),QS=ge.alpha(tt.neutral.darkest,.87),Tn=({Icon:e,label:t,onClick:n,disabled:r,pressed:o})=>i.jsx(B.Tooltip,{title:t,children:i.jsx("span",{children:i.jsx(B.IconButton,{"aria-label":t,"aria-pressed":o,disabled:r,size:"small",onClick:n,onMouseDown:s=>s.preventDefault(),sx:{borderRadius:"0.25rem",color:o?tt.customColors.white:tt.neutral.dark,backgroundColor:o?tt.primary.main:"transparent","&:hover":{color:tt.customColors.white,backgroundColor:tt.primary.main},"&.Mui-focusVisible":{outline:`2px solid ${tt.primary.main}`,outlineOffset:2}},children:i.jsx(e,{fontSize:"inherit"})})})}),Zo=()=>i.jsx(B.Divider,{flexItem:!0,orientation:"vertical",sx:{borderColor:tt.neutral.lighter,maxHeight:"30px",mt:"5px",mx:.5}}),JS=({id:e,label:t,value:n,onChange:r,"aria-describedby":o,height:s,disabled:l=!1,labels:a})=>{var k;const c=ge.useTheme(),u={...Vd,...a},d=`label_${e}`,h=se.useRef(n),m=se.useRef(r);se.useEffect(()=>{m.current=r},[r]);const p=Eo.useEditor({extensions:[ag.default.configure({strike:!1,underline:!1,code:!1,codeBlock:!1,horizontalRule:!1,link:{openOnClick:!1}}),oh.Markdown],content:n,contentType:"markdown",editable:!l,editorProps:{attributes:{id:e,role:"textbox","aria-multiline":"true","aria-labelledby":d,...o?{"aria-describedby":o}:{}}},onUpdate:({editor:v})=>{const F=v.getMarkdown();h.current=F,m.current(F)}});se.useEffect(()=>{!p||n===h.current||(h.current=n,p.commands.setContent(n,{contentType:"markdown",emitUpdate:!1}))},[p,n]),se.useEffect(()=>{p==null||p.setEditable(!l)},[p,l]);const b=Eo.useEditorState({editor:p,selector:({editor:v})=>{var F,j,y,A,N,M,P;return{canUndo:(F=v==null?void 0:v.can().undo())!=null?F:!1,canRedo:(j=v==null?void 0:v.can().redo())!=null?j:!1,isBold:(y=v==null?void 0:v.isActive("bold"))!=null?y:!1,isItalic:(A=v==null?void 0:v.isActive("italic"))!=null?A:!1,isOrderedList:(N=v==null?void 0:v.isActive("orderedList"))!=null?N:!1,isBulletList:(M=v==null?void 0:v.isActive("bulletList"))!=null?M:!1,headingLevel:(P=ea.find(R=>v==null?void 0:v.isActive("heading",{level:R})))!=null?P:0}}}),x=se.useMemo(()=>al(c),[c]),w=v=>()=>{l||v()};return i.jsxs(B.Box,{sx:{display:"flex",flexDirection:"column",minWidth:0},children:[i.jsx(B.Typography,{id:d,component:"label",onClick:()=>p==null?void 0:p.commands.focus(),sx:{fontFamily:c.typography.fontFamily,fontSize:"1rem",mb:1,width:"fit-content"},children:t}),i.jsxs(B.Box,{"data-testid":"markdown-editor-frame",sx:{display:"flex",flexDirection:"column",height:s},children:[i.jsxs(B.Box,{role:"toolbar","aria-label":u.toolbar,"aria-controls":e,sx:{display:"flex",flexWrap:"wrap",justifyContent:"flex-start",alignItems:"center",columnGap:.5,rowGap:.5,mb:"0.75rem"},children:[i.jsx(Tn,{Icon:YS,label:u.undo,disabled:l||!(b!=null&&b.canUndo),onClick:w(()=>p==null?void 0:p.chain().focus().undo().run())}),i.jsx(Tn,{Icon:ZS,label:u.redo,disabled:l||!(b!=null&&b.canRedo),onClick:w(()=>p==null?void 0:p.chain().focus().redo().run())}),i.jsx(Zo,{}),i.jsx(B.Tooltip,{title:u.textStyle,placement:"top",children:i.jsxs(B.Select,{variant:"standard",disableUnderline:!0,displayEmpty:!0,disabled:l,value:(k=b==null?void 0:b.headingLevel)!=null?k:0,inputProps:{"aria-label":u.textStyle},IconComponent:v=>i.jsx(ig.default,{...v,sx:{fontSize:"1rem"}}),onChange:v=>{const F=Number(v.target.value);F===0?p==null||p.chain().focus().setParagraph().run():p==null||p.chain().focus().setHeading({level:F}).run()},sx:{minWidth:"120px",fontFamily:c.typography.fontFamily,fontSize:"1rem",color:QS,fontWeight:b!=null&&b.headingLevel?700:400,backgroundColor:"transparent"},children:[i.jsx(B.MenuItem,{value:0,sx:{fontWeight:400},children:u.paragraph}),ea.map(v=>i.jsx(B.MenuItem,{value:v,sx:{fontWeight:700},children:u.heading(v)},v))]})}),i.jsx(Zo,{}),i.jsx(Tn,{Icon:rg.default,label:u.bold,disabled:l,pressed:b==null?void 0:b.isBold,onClick:w(()=>p==null?void 0:p.chain().focus().toggleBold().run())}),i.jsx(Tn,{Icon:og.default,label:u.italic,disabled:l,pressed:b==null?void 0:b.isItalic,onClick:w(()=>p==null?void 0:p.chain().focus().toggleItalic().run())}),i.jsx(Zo,{}),i.jsx(Tn,{Icon:lg.default,label:u.numberedList,disabled:l,pressed:b==null?void 0:b.isOrderedList,onClick:w(()=>p==null?void 0:p.chain().focus().toggleOrderedList().run())}),i.jsx(Tn,{Icon:sg.default,label:u.bulletedList,disabled:l,pressed:b==null?void 0:b.isBulletList,onClick:w(()=>p==null?void 0:p.chain().focus().toggleBulletList().run())})]}),i.jsx(B.Box,{"data-testid":"markdown-editor-scroll",onClick:()=>p==null?void 0:p.commands.focus(),sx:{flex:1,minHeight:s===void 0?"300px":0,overflowY:"auto",overflowWrap:"anywhere",border:`1px solid ${tt.customColors["light-gray"]}`,borderRadius:"0.375rem",px:"1.25rem",py:"0.75rem",cursor:l?"default":"text",backgroundColor:l?tt.neutral.lighter:void 0,"&:focus-within":{borderColor:tt.primary.main},"& .tiptap":{outline:"none",minHeight:"100%"},...x},children:i.jsx(Eo.EditorContent,{editor:p})})]})]})},e5=({label:e,onClick:t,ariaLabel:n})=>{const r=ge.useTheme();return i.jsx(B.Button,{onClick:t,"aria-label":n||e,startIcon:i.jsx(cg.default,{sx:{fontSize:24}}),"data-testid":"video-replay-button",sx:{backgroundColor:r.palette.neutral.lightest,minWidth:"200px",maxWidth:"min(80vw, 500px)",minHeight:"52px",borderRadius:4,padding:"14px 16px",gap:1,pointerEvents:"auto",transition:"transform 0.2s ease, box-shadow 0.2s ease",border:"none",color:r.palette.primary.main,fontWeight:700,fontSize:"1rem",textTransform:"none",whiteSpace:"normal",textAlign:"center",wordBreak:"break-word","&:hover":{backgroundColor:r.palette.neutral.lightest,boxShadow:`0 2px 8px ${r.palette.primary.light}`},"& .MuiButton-startIcon":{color:r.palette.primary.main,fontSize:24,flexShrink:0}},children:e})},t5=ge.styled(B.Button)(({theme:e,disabled:t})=>({whiteSpace:"nowrap",padding:"0.75rem 1rem",height:"48px",borderRadius:"16px",fontSize:e.typography.base.fontSize,fontWeight:e.typography.fontWeightBold,textTransform:"none",marginTop:"1rem","&&":{color:e.customColors.white},backgroundColor:t?e.palette.neutral.main:e.palette.primary.main,"&:hover":{backgroundColor:t?e.palette.neutral.light:e.palette.primary.dark},"&:focus":{boxShadow:`0 0 0 4px ${e.palette.primary.lighter}`},[e.breakpoints.down("sm")]:{whiteSpace:"normal",padding:"0.25rem 0.5rem"}})),n5=ge.styled(B.Button)(({theme:e,disabled:t})=>({whiteSpace:"nowrap",padding:"0.25rem 0.75rem",width:"145px",marginBottom:"1rem",marginTop:"1rem",borderRadius:"1.5rem",backgroundColor:t?e.palette.neutral.light:e.palette.error.dark,"&:hover":{backgroundColor:t?e.palette.neutral.light:e.palette.error.main},"&:focus":{boxShadow:`0 0 0 4px ${e.palette.error.lighter}`},display:"flex",alignItems:"center",justifyContent:"center","&&":{color:e.customColors.white},textTransform:"none",[e.breakpoints.down("sm")]:{whiteSpace:"normal",padding:"0.25rem 0.5rem",width:"100%"}})),r5=({children:e})=>{const t=ge.useTheme();return i.jsx(B.BottomNavigation,{sx:{backgroundColor:t.customColors.white,borderTop:1,borderColor:t.palette.neutral.light,height:"88px",minHeight:"88px",maxHeight:"88px",width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",borderBottomLeftRadius:"1.5rem",borderBottomRightRadius:"1.5rem",overflow:"hidden",padding:0,flexShrink:0,position:"relative",zIndex:15},children:e})},cl={en:"en-CA",fr:"fr-CA"};function o5(e){const t=(e!=null?e:"").toLowerCase().split(/[-_]/)[0];return t in cl?t:"en"}const s5=1e4;function Nd(e,t){var o;const n=t.toLowerCase(),r=n.split("-")[0];return(o=e.find(s=>s.lang.toLowerCase().replace("_","-")===n))!=null?o:e.find(s=>s.lang.toLowerCase().startsWith(r))}function Qo(){return typeof window!="undefined"&&"speechSynthesis"in window&&typeof window.SpeechSynthesisUtterance=="function"}const l5=({text:e,language:t,playLabel:n="Text to speech",stopLabel:r="Stop reading aloud"})=>{const[o,s]=se.useState(!1),[l]=se.useState(Qo),a=se.useRef(null),c=se.useCallback(()=>{a.current!==null&&(clearInterval(a.current),a.current=null)},[]),u=se.useCallback(()=>{c(),Qo()&&window.speechSynthesis.cancel(),s(!1)},[c]);se.useEffect(()=>u,[u]),se.useEffect(()=>{u()},[e,u]);const d=se.useCallback(()=>{if(!Qo()||!e)return;window.speechSynthesis.cancel();const h=new SpeechSynthesisUtterance(e),m=cl[t];h.lang=m;const p=Nd(window.speechSynthesis.getVoices(),m);p&&(h.voice=p);const b=()=>{c(),s(!1)};h.onend=b,h.onerror=b,s(!0),window.speechSynthesis.speak(h),c(),a.current=setInterval(()=>{if(!window.speechSynthesis.speaking){c();return}window.speechSynthesis.pause(),window.speechSynthesis.resume()},s5)},[e,t,c]);return!l||!e?null:i.jsx(B.Button,{onClick:o?u:d,startIcon:o?i.jsx(ug.default,{}):i.jsx(dg.default,{}),variant:"outlined","aria-live":"polite",sx:{whiteSpace:"nowrap",flexShrink:0,borderRadius:"1rem",textTransform:"none"},children:o?r:n})},$d=pa.default.div`
90
+ `));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(s=>{bd(s,[...t,r],n)})},fs=e=>{if(!e)return{};const t={};return e.forEach(n=>{bd(n,[],t)}),t},hs=(e,t,n)=>{const r=c=>{var u;return(u=t[c])!=null?u:[]},o=[],s=Math.max(...e.map(c=>r(c).length)),l=(c,u,d)=>sn(r(c).slice(0,d+1),r(u).slice(0,d+1)),a=(c,u)=>!!(n!=null&&n.left&&n.left.includes(c)&&!n.left.includes(u)||n!=null&&n.right&&!n.right.includes(c)&&n.right.includes(u));for(let c=0;c<s;c+=1){const u=e.reduce((d,h)=>{var w;const m=(w=r(h)[c])!=null?w:null;if(d.length===0)return[{columnFields:[h],groupId:m}];const p=d[d.length-1],b=p.columnFields[p.columnFields.length-1];return p.groupId!==m||!l(b,h,c)||a(b,h)?[...d,{columnFields:[h],groupId:m}]:[...d.slice(0,d.length-1),{columnFields:[...p.columnFields,h],groupId:m}]},[]);o.push(u)}return o},Pv=["groupId","children"],rl=e=>{let t={};return e.forEach(n=>{if(pc(n))return;const{groupId:r,children:o}=n,s=me(n,Pv);if(!r)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");process.env.NODE_ENV!=="production"&&(o||console.warn(`MUI X: group groupId=${r} has no children.`));const l=C({},s,{groupId:r}),a=rl(o);if(a[r]!==void 0||t[r]!==void 0)throw new Error(`MUI X: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=C({},t,a,{[r]:l})}),C({},t)},Tv=(e,t,n)=>{var u,d,h;if(!t.columnGroupingModel)return e;const r=Yt(n),o=Xn(n),s=rl((u=t.columnGroupingModel)!=null?u:[]),l=fs((d=t.columnGroupingModel)!=null?d:[]),a=hs(r,l,(h=n.current.state.pinnedColumns)!=null?h:{}),c=o.length===0?0:Math.max(...o.map(m=>{var p,b;return(b=(p=l[m])==null?void 0:p.length)!=null?b:0}));return C({},e,{columnGrouping:{lookup:s,unwrappedGroupingModel:l,headerStructure:a,maxDepth:c}})},Fv=(e,t)=>{const n=g.useCallback(a=>{var u;return(u=ou(e)[a])!=null?u:[]},[e]),r=g.useCallback(()=>su(e),[e]);Se(e,{getColumnGroupPath:n,getAllGroupDetails:r},"public");const s=g.useCallback(()=>{var c;const a=fs((c=t.columnGroupingModel)!=null?c:[]);e.current.setState(u=>{var p,b,x;const d=(b=(p=u.columns)==null?void 0:p.orderedFields)!=null?b:[],h=(x=u.pinnedColumns)!=null?x:{},m=hs(d,a,h);return C({},u,{columnGrouping:C({},u.columnGrouping,{headerStructure:m})})})},[e,t.columnGroupingModel]),l=g.useCallback(a=>{var x,w,k;const c=(k=(w=(x=e.current).getPinnedColumns)==null?void 0:w.call(x))!=null?k:{},u=Yt(e),d=Xn(e),h=rl(a!=null?a:[]),m=fs(a!=null?a:[]),p=hs(u,m,c),b=d.length===0?0:Math.max(...d.map(v=>{var F,j;return(j=(F=m[v])==null?void 0:F.length)!=null?j:0}));e.current.setState(v=>C({},v,{columnGrouping:{lookup:h,unwrappedGroupingModel:m,headerStructure:p,maxDepth:b}}))},[e]);le(e,"columnIndexChange",s),le(e,"columnsChange",()=>{l(t.columnGroupingModel)}),le(e,"columnVisibilityModelChange",()=>{l(t.columnGroupingModel)}),g.useEffect(()=>{l(t.columnGroupingModel)},[l,t.columnGroupingModel])};function jv(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function qi(e,t){if(t!==void 0&&e.changedTouches){for(let n=0;n<e.changedTouches.length;n+=1){const r=e.changedTouches[n];if(r.identifier===t)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Ui(e,t,n,r){let o=e;return r==="Right"?o+=t-n.left:o+=n.right-t,o}function Ov(e,t,n){return n==="Left"?e-t.left:t.right-e}function Rv(e){return e==="Right"?"Left":"Right"}function Lv(e,t){const n=e.classList.contains(I["columnSeparator--sideRight"])?"Right":"Left";return t?Rv(n):n}function Ki(e){e.preventDefault(),e.stopImmediatePropagation()}function Dv(e){const t=g.useRef(void 0),n=()=>cu(e),r=te(e,n);return g.useEffect(()=>{t.current&&r===!1&&(t.current.resolve(),t.current=void 0)}),()=>{if(!t.current){if(n()===!1)return Promise.resolve();t.current=jv()}return t.current}}function Hv(e,t){if(e.length<4)return e;const n=e.slice();n.sort((a,c)=>a-c);const r=n[Math.floor(n.length*.25)],o=n[Math.floor(n.length*.75)-1],s=o-r,l=s<5?5:s*t;return n.filter(a=>a>r-l&&a<o+l)}function _v(e,t,n){const r={},o=e.current.rootElementRef.current;return o.classList.add(I.autosizing),n.forEach(s=>{var b,x;const a=nx(e.current,s.field).map(w=>{var k;return(k=w.getBoundingClientRect().width)!=null?k:0}),c=t.includeOutliers?a:Hv(a,t.outliersFactor);if(t.includeHeaders){const w=tx(e.current,s.field);if(w){const k=w.querySelector(`.${I.columnHeaderTitle}`),v=w.querySelector(`.${I.columnHeaderTitleContainerContent}`),F=w.querySelector(`.${I.iconButtonContainer}`),j=w.querySelector(`.${I.menuIcon}`),y=k!=null?k:v,A=window.getComputedStyle(w,null),N=parseInt(A.paddingLeft,10)+parseInt(A.paddingRight,10),P=y.scrollWidth+1+N+((b=F==null?void 0:F.clientWidth)!=null?b:0)+((x=j==null?void 0:j.clientWidth)!=null?x:0);c.push(P)}}const u=s.minWidth!==-1/0&&s.minWidth!==void 0,d=s.maxWidth!==1/0&&s.maxWidth!==void 0,h=u?s.minWidth:0,m=d?s.maxWidth:1/0,p=c.length===0?0:Math.max(...c);r[s.field]=xt(p,h,m)}),o.classList.remove(I.autosizing),r}const Av=e=>C({},e,{columnResize:{resizingColumnField:""}});function Vv(){return{colDef:void 0,initialColWidth:0,initialTotalWidth:0,previousMouseClickEvent:void 0,columnHeaderElement:void 0,headerFilterElement:void 0,groupHeaderElements:[],cellElements:[],leftPinnedCellsAfter:[],rightPinnedCellsBefore:[],fillerLeft:void 0,fillerRight:void 0,leftPinnedHeadersAfter:[],rightPinnedHeadersBefore:[]}}const Nv=(e,t)=>{const n=Gt.useRtl(),r=ct(e,"useGridColumnResize"),o=Bt.default(Vv).current,s=g.useRef(null),l=g.useRef(null),a=wn.default(),c=g.useRef(void 0),u=P=>{var E,T;r.debug(`Updating width to ${P} for col ${o.colDef.field}`);const R=o.columnHeaderElement.offsetWidth,_=P-R,O=P-o.initialColWidth;if(O>0){const L=o.initialTotalWidth+O;(T=(E=e.current.rootElementRef)==null?void 0:E.current)==null||T.style.setProperty("--DataGrid-rowWidth",`${L}px`)}o.colDef.computedWidth=P,o.colDef.width=P,o.colDef.flex=0,o.columnHeaderElement.style.width=`${P}px`;const D=o.headerFilterElement;D&&(D.style.width=`${P}px`),o.groupHeaderElements.forEach(L=>{const $=L;let G;$.getAttribute("aria-colspan")==="1"?G=`${P}px`:G=`${$.offsetWidth+_}px`,$.style.width=G}),o.cellElements.forEach(L=>{const $=L;let G;$.getAttribute("aria-colspan")==="1"?G=`${P}px`:G=`${$.offsetWidth+_}px`,$.style.setProperty("--width",G)});const V=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);V===rn.LEFT&&(Pn(o.fillerLeft,"width",_),o.leftPinnedCellsAfter.forEach(L=>{Pn(L,"left",_)}),o.leftPinnedHeadersAfter.forEach(L=>{Pn(L,"left",_)})),V===rn.RIGHT&&(Pn(o.fillerRight,"width",_),o.rightPinnedCellsBefore.forEach(L=>{Pn(L,"right",_)}),o.rightPinnedHeadersBefore.forEach(L=>{Pn(L,"right",_)}))},d=P=>{if(k(),o.previousMouseClickEvent){const R=o.previousMouseClickEvent,_=R.timeStamp,O=R.clientX,D=R.clientY;if(P.timeStamp-_<300&&P.clientX===O&&P.clientY===D){o.previousMouseClickEvent=void 0,e.current.publishEvent("columnResizeStop",null,P);return}}if(o.colDef){e.current.setColumnWidth(o.colDef.field,o.colDef.width),r.debug(`Updating col ${o.colDef.field} with new width: ${o.colDef.width}`);const R=Nt(e.current.state);o.groupHeaderElements.forEach(_=>{const O=K0(_),D=_,E=`${O.reduce((T,L)=>R.columnVisibilityModel[L]!==!1?T+R.lookup[L].computedWidth:T,0)}px`;D.style.width=E})}a.start(0,()=>{e.current.publishEvent("columnResizeStop",null,P)})},h=(P,R,_)=>{var E;const O=e.current.rootElementRef.current;o.initialColWidth=P.computedWidth,o.initialTotalWidth=e.current.getRootDimensions().rowWidth,o.colDef=P,o.columnHeaderElement=U0(e.current.columnHeadersContainerRef.current,P.field);const D=O.querySelector(`.${I.headerFilterRow} [data-field="${Jt(P.field)}"]`);D&&(o.headerFilterElement=D),o.groupHeaderElements=X0((E=e.current.columnHeadersContainerRef)==null?void 0:E.current,P.field),o.cellElements=Y0(o.columnHeaderElement,e.current),o.fillerLeft=Si(e.current,n?"filler--pinnedRight":"filler--pinnedLeft"),o.fillerRight=Si(e.current,n?"filler--pinnedLeft":"filler--pinnedRight");const V=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);o.leftPinnedCellsAfter=V!==rn.LEFT?[]:Z0(e.current,o.columnHeaderElement,n),o.rightPinnedCellsBefore=V!==rn.RIGHT?[]:Q0(e.current,o.columnHeaderElement,n),o.leftPinnedHeadersAfter=V!==rn.LEFT?[]:J0(e.current,o.columnHeaderElement,n),o.rightPinnedHeadersBefore=V!==rn.RIGHT?[]:ex(e.current,o.columnHeaderElement,n),l.current=Lv(R,n),s.current=Ov(_,o.columnHeaderElement.getBoundingClientRect(),l.current)},m=re.unstable_useEventCallback(d),p=re.unstable_useEventCallback(P=>{if(P.buttons===0){m(P);return}let R=Ui(s.current,P.clientX,o.columnHeaderElement.getBoundingClientRect(),l.current);R=xt(R,o.colDef.minWidth,o.colDef.maxWidth),u(R);const _={element:o.columnHeaderElement,colDef:o.colDef,width:R};e.current.publishEvent("columnResize",_,P)}),b=re.unstable_useEventCallback(P=>{qi(P,c.current)&&d(P)}),x=re.unstable_useEventCallback(P=>{const R=qi(P,c.current);if(!R)return;if(P.type==="mousemove"&&P.buttons===0){b(P);return}let _=Ui(s.current,R.x,o.columnHeaderElement.getBoundingClientRect(),l.current);_=xt(_,o.colDef.minWidth,o.colDef.maxWidth),u(_);const O={element:o.columnHeaderElement,colDef:o.colDef,width:_};e.current.publishEvent("columnResize",O,P)}),w=re.unstable_useEventCallback(P=>{const R=no(P.target,I["columnSeparator--resizable"]);if(!R)return;const _=P.changedTouches[0];_!=null&&(c.current=_.identifier);const O=no(P.target,I.columnHeader),D=q0(O),V=e.current.getColumn(D);r.debug(`Start Resize on col ${V.field}`),e.current.publishEvent("columnResizeStart",{field:D},P),h(V,R,_.clientX);const E=re.unstable_ownerDocument(P.currentTarget);E.addEventListener("touchmove",x),E.addEventListener("touchend",b)}),k=g.useCallback(()=>{const P=re.unstable_ownerDocument(e.current.rootElementRef.current);P.body.style.removeProperty("cursor"),P.removeEventListener("mousemove",p),P.removeEventListener("mouseup",m),P.removeEventListener("touchmove",x),P.removeEventListener("touchend",b),setTimeout(()=>{P.removeEventListener("click",Ki,!0)},100),o.columnHeaderElement&&(o.columnHeaderElement.style.pointerEvents="unset")},[e,o,p,m,x,b]),v=g.useCallback(({field:P})=>{e.current.setState(R=>C({},R,{columnResize:C({},R.columnResize,{resizingColumnField:P})})),e.current.forceUpdate()},[e]),F=g.useCallback(()=>{e.current.setState(P=>C({},P,{columnResize:C({},P.columnResize,{resizingColumnField:""})})),e.current.forceUpdate()},[e]),j=re.unstable_useEventCallback(({colDef:P},R)=>{if(R.button!==0||!R.currentTarget.classList.contains(I["columnSeparator--resizable"]))return;R.preventDefault(),r.debug(`Start Resize on col ${P.field}`),e.current.publishEvent("columnResizeStart",{field:P.field},R),h(P,R.currentTarget,R.clientX);const _=re.unstable_ownerDocument(e.current.rootElementRef.current);_.body.style.cursor="col-resize",o.previousMouseClickEvent=R.nativeEvent,_.addEventListener("mousemove",p),_.addEventListener("mouseup",m),_.addEventListener("click",Ki,!0)}),y=re.unstable_useEventCallback((P,R)=>{if(t.disableAutosize||R.button!==0)return;const _=e.current.state.columns.lookup[P.field];_.resizable!==!1&&e.current.autosizeColumns(C({},t.autosizeOptions,{disableColumnVirtualization:!1,columns:[_.field]}))}),A=Dv(e),N=g.useRef(!1),M=g.useCallback(async P=>{var V,E;if(!((V=e.current.rootElementRef)==null?void 0:V.current)||N.current)return;N.current=!0;const _=Nt(e.current.state),O=C({},Gw,P,{columns:(E=P==null?void 0:P.columns)!=null?E:_.orderedFields});O.columns=O.columns.filter(T=>_.columnVisibilityModel[T]!==!1);const D=O.columns.map(T=>e.current.state.columns.lookup[T]);try{!t.disableVirtualization&&O.disableColumnVirtualization&&(e.current.unstable_setColumnVirtualization(!1),await A());const T=_v(e,O,D),L=D.map($=>C({},$,{width:T[$.field],computedWidth:T[$.field],flex:0}));if(O.expand){const G=_.orderedFields.map(q=>_.lookup[q]).filter(q=>_.columnVisibilityModel[q.field]!==!1).reduce((q,U)=>{var Q,X;return q+((X=(Q=T[U.field])!=null?Q:U.computedWidth)!=null?X:U.width)},0),z=e.current.getRootDimensions().viewportInnerSize.width-G;if(z>0){const q=z/(L.length||1);L.forEach(U=>{U.width+=q,U.computedWidth+=q})}}e.current.updateColumns(L),L.forEach(($,G)=>{if($.width!==D[G].width){const S=$.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement($.field),colDef:$,width:S})}})}finally{t.disableVirtualization||e.current.unstable_setColumnVirtualization(!0),N.current=!1}},[e,A,t.disableVirtualization]);g.useEffect(()=>k,[k]),fa.default(()=>{t.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(t.autosizeOptions)})}),Gc(e,()=>{var P;return(P=e.current.columnHeadersContainerRef)==null?void 0:P.current},"touchstart",w,{passive:!0}),Se(e,{autosizeColumns:M},"public"),le(e,"columnResizeStop",F),le(e,"columnResizeStart",v),le(e,"columnSeparatorMouseDown",j),le(e,"columnSeparatorDoubleClick",y),Ae(e,"columnResize",t.onColumnResize),Ae(e,"columnWidthChange",t.onColumnWidthChange)};function Pn(e,t,n){e&&(e.style[t]=`${parseInt(e.style[t],10)+n}px`)}function $v(e,t){return e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?null:e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex>t.lastRowIndex?{firstRowIndex:t.lastRowIndex,lastRowIndex:e.lastRowIndex}:e.firstRowIndex<t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?{firstRowIndex:e.firstRowIndex,lastRowIndex:t.firstRowIndex-1}:e}function Xi(e){return e.firstRowIndex!==0||e.lastRowIndex!==0}const Yo=(e,t,n)=>{var s;if(!e)return null;let r=e[t.field];const o=(s=t.rowSpanValueGetter)!=null?s:t.valueGetter;return o&&(r=o(r,e,t,n)),r},Hn={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},io={firstRowIndex:0,lastRowIndex:0},zv=new Set([yt,"__reorder__",mo]),Yi=20,Cd=(e,t,n,r,o,s,l)=>{const a=s?{}:C({},e.current.state.rowSpanning.spannedCells),c=s?{}:C({},e.current.state.rowSpanning.hiddenCells),u=s?{}:C({},e.current.state.rowSpanning.hiddenCellOriginMap);return s&&(l=io),t.forEach(d=>{var h;if(!zv.has(d.field)){for(let m=o.firstRowIndex;m<o.lastRowIndex;m+=1){const p=n[m];if((h=c[p.id])!=null&&h[d.field])continue;const b=Yo(p.model,d,e);if(b==null)continue;let x=p.id,w=m,k=0;const v=[];if(m===o.firstRowIndex){let j=m-1,y=n[j];for(;j>=r.firstRowIndex&&y&&Yo(y.model,d,e)===b;){const A=n[j+1];c[A.id]?c[A.id][d.field]=!0:c[A.id]={[d.field]:!0},v.push(m),k+=1,x=y.id,w=j,j-=1,y=n[j]}}v.forEach(j=>{u[j]?u[j][d.field]=w:u[j]={[d.field]:w}});let F=m+1;for(;F<=r.lastRowIndex&&n[F]&&Yo(n[F].model,d,e)===b;){const j=n[F];c[j.id]?c[j.id][d.field]=!0:c[j.id]={[d.field]:!0},u[F]?u[F][d.field]=w:u[F]={[d.field]:w},F+=1,k+=1}k>0&&(a[x]?a[x][d.field]=k+1:a[x]={[d.field]:k+1})}l={firstRowIndex:Math.min(l.firstRowIndex,o.firstRowIndex),lastRowIndex:Math.max(l.lastRowIndex,o.lastRowIndex)}}}),{spannedCells:a,hiddenCells:c,hiddenCellOriginMap:u,processedRange:l}},wd=(e,t)=>{const n=fr(t).length;if(e.pagination){const r=Kc(t);let o=Yi;return r>0&&(o=r-1),{firstRowIndex:0,lastRowIndex:Math.min(o,n)}}return{firstRowIndex:0,lastRowIndex:Math.min(Yi,n)}},Gv=(e,t,n)=>{var b;if(!t.unstable_rowSpanning)return C({},e,{rowSpanning:Hn});const r=e.rows.dataRowIds||[],o=e.columns.orderedFields||[],s=e.rows.dataRowIdToModelLookup,l=e.columns.lookup,a=!!e.filter.filterModel.items.length||!!((b=e.filter.filterModel.quickFilterValues)!=null&&b.length);if(!r.length||!o.length||!s||!l||a)return C({},e,{rowSpanning:Hn});const c=wd(t,n),u=r.map(x=>({id:x,model:s[x]})),d=o.map(x=>l[x]),{spannedCells:h,hiddenCells:m,hiddenCellOriginMap:p}=Cd(n,d,u,c,c,!0,io);return C({},e,{rowSpanning:{spannedCells:h,hiddenCells:m,hiddenCellOriginMap:p}})},Bv=(e,t)=>{const n=Bt.default(()=>e.current.state.rowSpanning!==Hn?wd(t,e):io),r=g.useCallback((s,l=!1)=>{const{range:a,rows:c}=an(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(a===null||!Xi(s))return;l&&(n.current=io);const u=$v({firstRowIndex:s.firstRowIndex,lastRowIndex:Math.min(s.lastRowIndex,a.lastRowIndex+1)},n.current);if(u===null)return;const d=Ke(e),{spannedCells:h,hiddenCells:m,hiddenCellOriginMap:p,processedRange:b}=Cd(e,d,c,a,u,l,n.current);n.current=b;const x=Object.keys(h).length,w=Object.keys(m).length,k=Object.keys(e.current.state.rowSpanning.spannedCells).length,v=Object.keys(e.current.state.rowSpanning.hiddenCells).length;!(l||x!==k||w!==v)||x===0&&k===0||e.current.setState(y=>C({},y,{rowSpanning:{spannedCells:h,hiddenCells:m,hiddenCellOriginMap:p}}))},[e,n,t.pagination,t.paginationMode]),o=g.useCallback(()=>{const s=Fr(e);Xi(s)&&r(s,!0)},[e,r]);le(e,"renderedRowsIntervalChange",mn(t.unstable_rowSpanning,r)),le(e,"sortedRowsSet",mn(t.unstable_rowSpanning,o)),le(e,"paginationModelChange",mn(t.unstable_rowSpanning,o)),le(e,"filteredRowsSet",mn(t.unstable_rowSpanning,o)),le(e,"columnsChange",mn(t.unstable_rowSpanning,o)),g.useEffect(()=>{t.unstable_rowSpanning?e.current.state.rowSpanning===Hn&&o():e.current.state.rowSpanning!==Hn&&e.current.setState(s=>C({},s,{rowSpanning:Hn}))},[e,o,t.unstable_rowSpanning])},Wv=(e,t,n)=>C({},e,{listViewColumn:t.unstable_listColumn?C({},t.unstable_listColumn,{computedWidth:gs(n)}):void 0});function qv(e,t){const n=()=>{e.current.setState(s=>s.listViewColumn?C({},s,{listViewColumn:C({},s.listViewColumn,{computedWidth:gs(e)})}):s)},r=g.useRef(null);le(e,"viewportInnerSizeChange",s=>{r.current!==s.width&&(r.current=s.width,n())}),le(e,"columnVisibilityModelChange",n),ia.default(()=>{const s=t.unstable_listColumn;s&&e.current.setState(l=>C({},l,{listViewColumn:C({},s,{computedWidth:gs(e)})}))},[e,t.unstable_listColumn]),g.useEffect(()=>{t.unstable_listView&&!t.unstable_listColumn&&kt(["MUI X: The `unstable_listColumn` prop must be set if `unstable_listView` is enabled.",'To fix, pass a column definition to the `unstable_listColumn` prop, e.g. `{ field: "example", renderCell: (params) => <div>{params.row.id}</div> }`.',"For more details, see https://mui.com/x/react-data-grid/list-view/"])},[t.unstable_listView,t.unstable_listColumn])}function gs(e){return at(e.current.state).viewportInnerSize.width}const Uv=(e,t)=>{const n=my(e,t);return fv(n,t),iv(n),lt(hy,n,t),lt(cv,n,t),lt(Sy,n,t),lt(nv,n,t),lt(By,n,t),lt(ev,n,t),lt(_y,n,t),lt(hv,n,t),lt(qy,n,t),lt(Ry,n,t),lt(Gv,n,t),lt(Iy,n,t),lt(Av,n,t),lt(yy,n,t),lt(Tv,n,t),lt(rw,n,t),lt(wv,n,t),lt(Sv,n,t),lt(Wv,n,t),$y(n,t),uv(n,t),ky(n,t),rv(n,t),Bv(n,t),av(n,t),Mv(n),Fv(n,t),tv(n,t),Ay(n,t),Uy(n,t),Hy(n,t),gv(n,t),My(n,t),Nv(n,t),Wy(n,t),kv(n,t),mv(n,t),vy(n),Py(n,t),Oy(n,t),xy(n,t),xv(n,t),pv(n,t),Iv(n),ow(n,t),qv(n,t),n},Kv=e=>{const{classes:t,headerAlign:n,isDragging:r,isLastColumn:o,showLeftBorder:s,showRightBorder:l,groupId:a,pinnedPosition:c}=e,u={root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",l&&"columnHeader--withRightBorder",s&&"columnHeader--withLeftBorder","withBorderColor",a===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",c===Ie.LEFT&&"columnHeader--pinnedLeft",c===Ie.RIGHT&&"columnHeader--pinnedRight",o&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]};return re.unstable_composeClasses(u,Te,t)};function Xv(e){var $;const{groupId:t,width:n,depth:r,maxDepth:o,fields:s,height:l,colIndex:a,hasFocus:c,tabIndex:u,isLastColumn:d,pinnedPosition:h,pinnedOffset:m}=e,p=ue(),b=Gt.useRtl(),x=g.useRef(null),w=ke(),k=te(w,su),v=t?k[t]:{},{headerName:F=t!=null?t:"",description:j="",headerAlign:y=void 0}=v;let A;const N=t&&(($=k[t])==null?void 0:$.renderHeaderGroup),M=g.useMemo(()=>({groupId:t,headerName:F,description:j,depth:r,maxDepth:o,fields:s,colIndex:a,isLastColumn:d}),[t,F,j,r,o,s,a,d]);t&&N&&(A=N(M));const P=C({},e,{classes:p.classes,headerAlign:y,depth:r,isDragging:!1}),R=F!=null?F:t,_=re.unstable_useId(),O=t===null?`empty-group-cell-${_}`:t,D=Kv(P);g.useLayoutEffect(()=>{if(c){const S=x.current.querySelector('[tabindex="0"]')||x.current;if(!S)return;if(Zs())S.focus({preventScroll:!0});else{const H=w.current.getScrollPosition();S.focus(),w.current.scroll(H)}}},[w,c]);const V=g.useCallback(G=>S=>{jr(S)||w.current.publishEvent(G,M,S)},[w,M]),E=g.useMemo(()=>({onKeyDown:V("columnGroupHeaderKeyDown"),onFocus:V("columnGroupHeaderFocus"),onBlur:V("columnGroupHeaderBlur")}),[V]),T=typeof v.headerClassName=="function"?v.headerClassName(M):v.headerClassName,L=g.useMemo(()=>vo(C({},e.style),b,h,m),[h,m,e.style,b]);return i.jsx(ju,C({ref:x,classes:D,columnMenuOpen:!1,colIndex:a,height:l,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:u,isDraggable:!1,headerComponent:A,headerClassName:T,description:j,elementId:O,width:n,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:R,"aria-colspan":s.length,"data-fields":`|-${s.join("-|-")}-|`,style:L},E))}const Zi=ge.styled("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})({display:"flex"}),Yv=e=>{const{visibleColumns:t,sortColumnLookup:n,filterColumnLookup:r,columnHeaderTabIndexState:o,columnGroupHeaderTabIndexState:s,columnHeaderFocus:l,columnGroupHeaderFocus:a,headerGroupingMaxDepth:c,columnMenuState:u,columnVisibility:d,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:m}=e,[p,b]=g.useState(""),[x,w]=g.useState(""),k=Et(),v=ue(),F=te(k,ou),j=te(k,dn),y=te(k,nw),A=te(k,Yn),N=te(k,Qt),M=fu(j,y,A.left.length),P=te(k,uo),R=te(k,ic),_=te(k,x1),O=te(k,y1),D=te(k,ac),V=g.useCallback(X=>w(X.field),[]),E=g.useCallback(()=>w(""),[]),T=g.useCallback(X=>b(X.field),[]),L=g.useCallback(()=>b(""),[]),$=g.useMemo(()=>A.left.length?{firstColumnIndex:0,lastColumnIndex:A.left.length}:null,[A.left.length]),G=g.useMemo(()=>A.right.length?{firstColumnIndex:t.length-A.right.length,lastColumnIndex:t.length}:null,[A.right.length,t.length]);le(k,"columnResizeStart",V),le(k,"columnResizeStop",E),le(k,"columnHeaderDragStart",T),le(k,"columnHeaderDragEnd",L);const S=X=>{const{renderContext:W=y}=X||{},K=W.firstColumnIndex,Y=W.lastColumnIndex;return{renderedColumns:t.slice(K,Y),firstColumnToRender:K,lastColumnToRender:Y}},H=(X,W,K,Y=!1)=>{const J=(X==null?void 0:X.position)===Ie.RIGHT,ne=(X==null?void 0:X.position)===void 0,Z=A.right.length>0&&J||A.right.length===0&&ne,oe=M-K;return i.jsxs(g.Fragment,{children:[ne&&i.jsx("div",{role:"presentation",style:{width:oe}}),W,ne&&i.jsx("div",{role:"presentation",className:Pe(I.filler,Y&&I["filler--borderBottom"])}),Z&&i.jsx(el,{header:!0,pinnedRight:J,borderBottom:Y,borderTop:!1})]})},z=(X,W={})=>{const{renderedColumns:K,firstColumnToRender:Y}=S(X),J=[];for(let ne=0;ne<K.length;ne+=1){const Z=K[ne],oe=Y+ne,ee=oe===0,ae=o!==null&&o.field===Z.field||ee&&!m?0:-1,fe=l!==null&&l.field===Z.field,xe=u.open&&u.field===Z.field,pe=X==null?void 0:X.position,Me=mr(pe,Z.computedWidth,oe,j,P,D),Re=pe===Ie.RIGHT?K[ne-1]:K[ne+1],Je=Re?l!==null&&l.field===Re.field:!1,De=oe+1===j.length-A.right.length,Oe=ne,Ye=K.length,qe=so(pe,Oe),we=oo(pe,Oe,Ye,v.showColumnVerticalBorder,R);J.push(i.jsx(fx,C({},n[Z.field],{columnMenuOpen:xe,filterItemsCounter:r[Z.field]&&r[Z.field].length,headerHeight:_,isDragging:Z.field===p,colDef:Z,colIndex:oe,isResizing:x===Z.field,isLast:oe===j.length-1,hasFocus:fe,tabIndex:ae,pinnedPosition:pe,pinnedOffset:Me,isLastUnpinned:De,isSiblingFocused:Je,showLeftBorder:qe,showRightBorder:we},W),Z.field))}return H(X,J,0)},q=()=>i.jsxs(Zi,{role:"row","aria-rowindex":c+1,ownerState:v,className:I["row--borderBottom"],children:[$&&z({position:Ie.LEFT,renderContext:$},{disableReorder:!0}),z({renderContext:y}),G&&z({position:Ie.RIGHT,renderContext:G},{disableReorder:!0,separatorSide:Qs.Left})]}),U=({depth:X,params:W})=>{var Ye,qe,we,He;const K=S(W);if(K.renderedColumns.length===0)return null;const{firstColumnToRender:Y,lastColumnToRender:J}=K,ne=h[X],Z=t[Y].field,oe=(qe=(Ye=F[Z])==null?void 0:Ye[X])!=null?qe:null,ee=ne.findIndex(({groupId:ve,columnFields:ce})=>ve===oe&&ce.includes(Z)),ae=t[J-1].field,fe=(He=(we=F[ae])==null?void 0:we[X])!=null?He:null,xe=ne.findIndex(({groupId:ve,columnFields:ce})=>ve===fe&&ce.includes(ae)),pe=ne.slice(ee,xe+1).map(ve=>C({},ve,{columnFields:ve.columnFields.filter(ce=>d[ce]!==!1)})).filter(ve=>ve.columnFields.length>0),Me=pe[0].columnFields.indexOf(Z),Je=pe[0].columnFields.slice(0,Me).reduce((ve,ce)=>{var Ce;const ye=N[ce];return ve+((Ce=ye.computedWidth)!=null?Ce:0)},0);let De=Y;const Oe=pe.map(({groupId:ve,columnFields:ce},ye)=>{const Ce=a!==null&&a.depth===X&&ce.includes(a.field),Ze=s!==null&&s.depth===X&&ce.includes(s.field)?0:-1,ot={width:ce.reduce((Dt,Ht)=>Dt+N[Ht].computedWidth,0),fields:ce,colIndex:De},Qe=W.position,Pt=mr(Qe,ot.width,De,j,P,D);De+=ce.length;let Tt=ye;return Qe===Ie.LEFT&&(Tt=De-1),i.jsx(Xv,{groupId:ve,width:ot.width,fields:ot.fields,colIndex:ot.colIndex,depth:X,isLastColumn:ye===pe.length-1,maxDepth:c,height:O,hasFocus:Ce,tabIndex:Ze,pinnedPosition:Qe,pinnedOffset:Pt,showLeftBorder:so(Qe,Tt),showRightBorder:oo(Qe,Tt,pe.length,v.showColumnVerticalBorder,R)},ye)});return H(W,Oe,Je)};return{renderContext:y,leftRenderContext:$,rightRenderContext:G,pinnedColumns:A,visibleColumns:t,columnPositions:j,getFillers:H,getColumnHeadersRow:q,getColumnsToRender:S,getColumnGroupHeadersRows:()=>{if(c===0)return null;const X=[];for(let W=0;W<c;W+=1)X.push(i.jsxs(Zi,{role:"row","aria-rowindex":W+1,ownerState:v,children:[$&&U({depth:W,params:{position:Ie.LEFT,renderContext:$,maxLastColumn:$.lastColumnIndex}}),U({depth:W,params:{renderContext:y}}),G&&U({depth:W,params:{position:Ie.RIGHT,renderContext:G,maxLastColumn:G.lastColumnIndex}})]},W));return X},getPinnedCellOffset:mr,isDragging:!!p,getInnerProps:()=>({role:"rowgroup"})}},Zv=["className"],Qv=e=>{const{classes:t}=e,n={root:["columnHeaders"]};return Xe.default(n,Te,t)},Jv=Ge.styled("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),eS=je(function(t,n){const{className:r}=t,o=me(t,Zv),s=ue(),l=Qv(s);return i.jsx(Jv,C({className:Pe(l.root,r),ownerState:s},o,{role:"presentation",ref:n}))}),tS=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],xd=je(function(t,n){const{visibleColumns:r,sortColumnLookup:o,filterColumnLookup:s,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:u,headerGroupingMaxDepth:d,columnMenuState:h,columnVisibility:m,columnGroupsHeaderStructure:p,hasOtherElementInTabSequence:b}=t,x=me(t,tS),{getInnerProps:w,getColumnHeadersRow:k,getColumnGroupHeadersRows:v}=Yv({visibleColumns:r,sortColumnLookup:o,filterColumnLookup:s,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:u,headerGroupingMaxDepth:d,columnMenuState:h,columnVisibility:m,columnGroupsHeaderStructure:p,hasOtherElementInTabSequence:b});return i.jsxs(eS,C({},x,w(),{ref:n,children:[v(),k()]}))});process.env.NODE_ENV!=="production"&&(xd.propTypes={columnGroupHeaderFocus:f.shape({depth:f.number.isRequired,field:f.string.isRequired}),columnGroupHeaderTabIndexState:f.shape({depth:f.number.isRequired,field:f.string.isRequired}),columnGroupsHeaderStructure:f.arrayOf(f.arrayOf(f.shape({columnFields:f.arrayOf(f.string).isRequired,groupId:f.string}))).isRequired,columnHeaderFocus:f.shape({field:f.string.isRequired}),columnHeaderTabIndexState:f.shape({field:f.string.isRequired}),columnMenuState:f.shape({field:f.string,open:f.bool.isRequired}).isRequired,columnVisibility:f.object.isRequired,filterColumnLookup:f.object.isRequired,hasOtherElementInTabSequence:f.bool.isRequired,headerGroupingMaxDepth:f.number.isRequired,sortColumnLookup:f.object.isRequired,visibleColumns:f.arrayOf(f.object).isRequired});const nS=Zt(xd);function rS(e){return null}function oS(e){return null}const sS=je(function(t,n){const o=ke().current.getLocaleText("noResultsOverlayLabel");return i.jsx(So,C({},t,{ref:n,children:o}))}),lS=["sortingOrder"],iS=g.memo(function(t){const{sortingOrder:n}=t,r=me(t,lS),o=ue(),[s]=n,l=s==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return l?i.jsx(l,C({},r)):null}),aS=["native"];function cS(e){let{native:t}=e,n=me(e,aS);return t?i.jsx("option",C({},n)):i.jsx(Xt.default,C({},n))}const uS={booleanCellTrueIcon:Ox,booleanCellFalseIcon:Wo,columnMenuIcon:Px,openFilterButtonIcon:yx,filterPanelDeleteIcon:Wo,columnFilteredIcon:Pi,columnSelectorIcon:Sx,columnUnsortedIcon:iS,columnSortedAscendingIcon:ki,columnSortedDescendingIcon:Ii,columnResizeIcon:kx,densityCompactIcon:Ix,densityStandardIcon:Mx,densityComfortableIcon:Ex,exportIcon:jx,moreActionsIcon:Rx,treeDataCollapseIcon:Ei,treeDataExpandIcon:Mi,groupingCriteriaCollapseIcon:Ei,groupingCriteriaExpandIcon:Mi,detailPanelExpandIcon:Ti,detailPanelCollapseIcon:Tx,rowReorderIcon:Fi,quickFilterIcon:vx,quickFilterClearIcon:Wo,columnMenuHideIcon:Lx,columnMenuSortAscendingIcon:ki,columnMenuSortDescendingIcon:Ii,columnMenuFilterIcon:Pi,columnMenuManageColumnsIcon:Dx,columnMenuClearIcon:Hx,loadIcon:Fx,filterPanelAddIcon:Ti,filterPanelRemoveAllIcon:_x,columnReorderIcon:Fi},dS=C({},uS,{baseBadge:xh.default,baseCheckbox:yh.default,baseDivider:vh.default,baseTextField:ha.default,baseFormControl:Sh.default,baseSelect:kh.default,baseButton:Ih.default,baseIconButton:ga.default,baseInputAdornment:Mh.default,baseTooltip:ma.default,basePopper:bs.default,baseInputLabel:Eh.default,baseSelectOption:cS,baseChip:Ph.default}),fS=C({},dS,{cell:u0,skeletonCell:p0,columnHeaderFilterIconButton:Du,columnHeaderSortIcon:wx,columnMenu:Uu,columnHeaders:nS,detailPanels:rS,footer:od,footerRowCount:ad,toolbar:null,pinnedRows:oS,loadingOverlay:sd,noResultsOverlay:sS,noRowsOverlay:ld,pagination:id,filterPanel:Qu,columnsPanel:Ku,columnsManagement:Ju,panel:Xu,row:K2}),hS={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid",unstable_listView:!1},gS=fS,mS=e=>{const t=ge.useTheme(),n=n0(g.useMemo(()=>Ge.getThemeProps({props:e,theme:t,name:"MuiDataGrid"}),[t,e])),r=g.useMemo(()=>C({},S1,n.localeText),[n.localeText]),o=g.useMemo(()=>e0({defaultSlots:gS,slots:n.slots}),[n.slots]),s=g.useMemo(()=>Object.keys(ds).reduce((l,a)=>{var c;return l[a]=(c=n[a])!=null?c:ds[a],l},{}),[n]);return g.useMemo(()=>C({},n,s,{localeText:r,slots:o},hS),[n,r,o,s])},pS={hooks:{useGridAriaAttributes:X2,useGridRowAriaAttributes:Y2,useCellAggregationResult:()=>null}},yd=je(function(t,n){var s;const r=mS(t),o=Uv(r.apiRef,r);return process.env.NODE_ENV!=="production"&&o0(r,r0),i.jsx(Z2,{privateApiRef:o,configuration:pS,props:r,children:i.jsx(R0,C({className:r.className,style:r.style,sx:r.sx},r.forwardedProps,(s=r.slotProps)==null?void 0:s.root,{ref:n}))})}),bS=g.memo(yd);yd.propTypes={apiRef:f.shape({current:f.object.isRequired}),"aria-label":f.string,"aria-labelledby":f.string,autoHeight:f.bool,autoPageSize:f.bool,autosizeOnMount:f.bool,autosizeOptions:f.shape({columns:f.arrayOf(f.string),disableColumnVirtualization:f.bool,expand:f.bool,includeHeaders:f.bool,includeOutliers:f.bool,outliersFactor:f.number}),cellModesModel:f.object,checkboxSelection:f.bool,classes:f.object,clipboardCopyCellDelimiter:f.string,columnBufferPx:f.number,columnGroupHeaderHeight:f.number,columnGroupingModel:f.arrayOf(f.object),columnHeaderHeight:f.number,columns:f.arrayOf(f.object).isRequired,columnVisibilityModel:f.object,density:f.oneOf(["comfortable","compact","standard"]),disableAutosize:f.bool,disableColumnFilter:f.bool,disableColumnMenu:f.bool,disableColumnResize:f.bool,disableColumnSelector:f.bool,disableColumnSorting:f.bool,disableDensitySelector:f.bool,disableEval:f.bool,disableMultipleRowSelection:f.bool,disableRowSelectionOnClick:f.bool,disableVirtualization:f.bool,editMode:f.oneOf(["cell","row"]),estimatedRowCount:f.number,experimentalFeatures:f.shape({warnIfFocusStateIsNotSynced:f.bool}),filterDebounceMs:f.number,filterMode:f.oneOf(["client","server"]),filterModel:f.shape({items:f.arrayOf(f.shape({field:f.string.isRequired,id:f.oneOfType([f.number,f.string]),operator:f.string.isRequired,value:f.any})).isRequired,logicOperator:f.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:f.bool,quickFilterLogicOperator:f.oneOf(["and","or"]),quickFilterValues:f.array}),forwardedProps:f.object,getCellClassName:f.func,getDetailPanelContent:f.func,getEstimatedRowHeight:f.func,getRowClassName:f.func,getRowHeight:f.func,getRowId:f.func,getRowSpacing:f.func,hideFooter:f.bool,hideFooterPagination:f.bool,hideFooterSelectedRowCount:f.bool,ignoreDiacritics:f.bool,ignoreValueFormatterDuringExport:f.oneOfType([f.shape({clipboardExport:f.bool,csvExport:f.bool}),f.bool]),indeterminateCheckboxAction:f.oneOf(["deselect","select"]),initialState:f.object,isCellEditable:f.func,isRowSelectable:f.func,keepNonExistentRowsSelected:f.bool,loading:f.bool,localeText:f.object,logger:f.shape({debug:f.func.isRequired,error:f.func.isRequired,info:f.func.isRequired,warn:f.func.isRequired}),logLevel:f.oneOf(["debug","error","info","warn",!1]),nonce:f.string,onCellClick:f.func,onCellDoubleClick:f.func,onCellEditStart:f.func,onCellEditStop:f.func,onCellKeyDown:f.func,onCellModesModelChange:f.func,onClipboardCopy:f.func,onColumnHeaderClick:f.func,onColumnHeaderContextMenu:f.func,onColumnHeaderDoubleClick:f.func,onColumnHeaderEnter:f.func,onColumnHeaderLeave:f.func,onColumnHeaderOut:f.func,onColumnHeaderOver:f.func,onColumnOrderChange:f.func,onColumnResize:f.func,onColumnVisibilityModelChange:f.func,onColumnWidthChange:f.func,onDensityChange:f.func,onFilterModelChange:f.func,onMenuClose:f.func,onMenuOpen:f.func,onPaginationMetaChange:f.func,onPaginationModelChange:f.func,onPreferencePanelClose:f.func,onPreferencePanelOpen:f.func,onProcessRowUpdateError:f.func,onResize:f.func,onRowClick:f.func,onRowCountChange:f.func,onRowDoubleClick:f.func,onRowEditStart:f.func,onRowEditStop:f.func,onRowModesModelChange:f.func,onRowSelectionModelChange:f.func,onSortModelChange:f.func,onStateChange:f.func,pageSizeOptions:f.arrayOf(f.oneOfType([f.number,f.shape({label:f.string.isRequired,value:f.number.isRequired})]).isRequired),pagination:f.oneOf([!0]),paginationMeta:f.shape({hasNextPage:f.bool}),paginationMode:f.oneOf(["client","server"]),paginationModel:f.shape({page:f.number.isRequired,pageSize:f.number.isRequired}),processRowUpdate:f.func,resetPageOnSortFilter:f.bool,resizeThrottleMs:f.number,rowBufferPx:f.number,rowCount:f.number,rowHeight:f.number,rowModesModel:f.object,rowPositionsDebounceMs:f.number,rows:f.arrayOf(f.object),rowSelection:f.bool,rowSelectionModel:f.oneOfType([f.arrayOf(f.oneOfType([f.number,f.string]).isRequired),f.number,f.string]),rowSpacingType:f.oneOf(["border","margin"]),scrollbarSize:f.number,showCellVerticalBorder:f.bool,showColumnVerticalBorder:f.bool,slotProps:f.object,slots:f.object,sortingMode:f.oneOf(["client","server"]),sortingOrder:f.arrayOf(f.oneOf(["asc","desc"])),sortModel:f.arrayOf(f.shape({field:f.string.isRequired,sort:f.oneOf(["asc","desc"])})),sx:f.oneOfType([f.arrayOf(f.oneOfType([f.func,f.object,f.bool])),f.func,f.object]),unstable_rowSpanning:f.bool,virtualizeColumnsWithAutoRowHeight:f.bool};const CS=({sx:e,...t})=>{const n=ge.useTheme();return i.jsx(bS,{disableRowSelectionOnClick:!0,...t,sx:{border:`1px solid ${n.palette.neutral.lighter}`,borderRadius:"8px",fontFamily:n.typography.fontFamily,fontSize:"0.875rem",[`& .${I.columnHeader}`]:{backgroundColor:"rgba(217, 217, 217, 0.10)",color:n.palette.neutral.dark,fontSize:"0.75rem",fontWeight:600,"&:focus, &:focus-within":{outline:`2px solid ${n.palette.primary.main}`,outlineOffset:"-2px"}},[`& .${I.columnSeparator}`]:{color:n.palette.neutral.lighter},[`& .${I.row}`]:{"&:hover":{backgroundColor:n.palette.neutral.lighter},"&.Mui-selected":{backgroundColor:n.palette.neutral.lighter,"&:hover":{backgroundColor:n.palette.neutral.lighter}}},[`& .${I.cell}`]:{color:n.palette.text.primary,"&:focus, &:focus-within":{outline:`2px solid ${n.palette.primary.main}`,outlineOffset:"-2px"}},[`& .${I.footerContainer}`]:{borderTop:`1px solid ${n.palette.neutral.lighter}`},[`& .${I.overlay}`]:{color:n.palette.neutral.dark},...e}})},wS=e=>"name"in e&&typeof e.name=="string"?e.name:"",xS=({className:e,columns:t,data:n=[],hideStarIcon:r=!1,isLoading:o=!1,sort:s,onConfigure:l,alwaysShowConfigureIcon:a=!1,onDelete:c,onEdit:u,onSelectRow:d,renderInlineEdit:h,labels:m={}})=>{const[p,b]=se.useState(""),{actions:x="Actions",noRecords:w="There are no records.",edit:k="Edit",configure:v="Configure"}=m,F=R=>u?u(p,R).then(()=>b("")):Promise.resolve(),j=se.useCallback((R,_)=>()=>{switch(_){case"configure":l==null||l(R);break;case"delete":c==null||c(R);break;case"edit":b(R);break;case"select":d==null||d(R);break}},[l,c,d]),y=R=>!!(l||c||u)&&R!==p,A="#F5F5F5",N="#555555",M="#FFFFFF",P="#364699";return i.jsx(B.TableContainer,{className:e,children:i.jsxs(Ah.default,{sx:{minWidth:800,"& td, & th":{px:4.5,py:3}},children:[i.jsx(Vh.default,{sx:{background:"rgba(217, 217, 217, 0.10)"},children:i.jsxs(dr.default,{sx:{border:"1px solid #F5F5F5"},children:[t.map((R,_)=>i.jsx(bt.default,{sortDirection:(s==null?void 0:s.column)===R.dataKey?s==null?void 0:s.direction:!1,sx:_<t.length-1?{borderRight:"1px solid #F5F5F5"}:void 0,children:R.onSort?i.jsx(Nh.default,{active:(s==null?void 0:s.column)===R.dataKey,direction:(s==null?void 0:s.column)===R.dataKey?s==null?void 0:s.direction:"asc",onClick:()=>{var O;return(O=R.onSort)==null?void 0:O.call(R,{column:R.dataKey,direction:(s==null?void 0:s.column)===R.dataKey&&(s==null?void 0:s.direction)==="asc"?"desc":"asc"})},children:i.jsx(B.Typography,{sx:{color:N,textTransform:"capitalize"},variant:"caption",children:R.label})}):i.jsx(B.Typography,{sx:{color:N,textTransform:"capitalize"},variant:"caption",children:R.label})},`${String(R.dataKey)}-header`)),y()&&i.jsx(bt.default,{children:i.jsx("span",{style:{position:"absolute",width:1,height:1,overflow:"hidden",clip:"rect(0,0,0,0)"},children:x})})]})}),o&&i.jsx(Po.default,{sx:{"& td":{borderBottomColor:A}},children:i.jsx(dr.default,{children:i.jsx(bt.default,{colSpan:t.length+(y()?1:0),children:i.jsx(B.LinearProgress,{"aria-label":"Loading"})})})}),!o&&n.length===0&&i.jsx(Po.default,{sx:{"& td":{borderBottomColor:A}},children:i.jsx(dr.default,{children:i.jsx(bt.default,{colSpan:t.length+(y()?1:0),children:i.jsx(B.Typography,{sx:{textAlign:"center",color:N,my:5},children:w})})})}),!o&&n.length>0&&i.jsx(Po.default,{sx:{"& td":{borderBottomColor:A}},children:n.map(R=>i.jsxs(dr.default,{sx:{"&:hover, &:focus-within":{backgroundColor:A},"&:hover .favorite-button, &:focus-within .favorite-button":{backgroundColor:M},"&:hover .hover-icon, &:focus-within .hover-icon":{opacity:1},"&:focus-visible":{outline:`2px solid ${P}`,outlineOffset:"-2px"},cursor:R.id!==p?"pointer":"default"},tabIndex:R.id!==p?0:void 0,onClick:R.id!==p?j(R.id,"select"):void 0,onKeyDown:R.id!==p?_=>{_.target===_.currentTarget&&_.key==="Enter"&&(_.preventDefault(),j(R.id,"select")())}:void 0,children:[R.id===p?i.jsx(bt.default,{colSpan:t.length+(y(R.id)?0:1),children:h?h(R.id,wS(R),F,()=>b("")):null}):t.map((_,O)=>{var D,V;return i.jsx(bt.default,{children:i.jsx("div",{style:O===0?{display:"flex",alignItems:"center",gap:10}:void 0,children:O===0?i.jsxs(i.Fragment,{children:[!r&&i.jsx(B.IconButton,{disabled:!0,"aria-label":"favorite",className:"favorite-button",size:"small",sx:{borderRadius:"10px",backgroundColor:A},children:i.jsx(Hh.default,{fontSize:"inherit"})}),i.jsx(B.Typography,{sx:{fontWeight:700,color:"text.primary",fontSize:"0.875rem",cursor:"pointer","&:hover":{textDecoration:"underline"}},onClick:j(R.id,"select"),children:_.render?_.render(R):_.dataKey?String((D=R[_.dataKey])!=null?D:""):""})]}):i.jsx("div",{style:{fontWeight:400,color:N,fontSize:"0.75rem"},children:_.render?_.render(R):_.dataKey?String((V=R[_.dataKey])!=null?V:""):""})})},`${String(R.id)}-${String(_.dataKey)}`)}),y(R.id)&&i.jsxs(bt.default,{align:"right",children:[l&&i.jsx(B.Tooltip,{title:v,children:i.jsx(B.IconButton,{"aria-label":v,className:a?void 0:"hover-icon",size:"small",sx:a?void 0:{opacity:0},onClick:_=>{_.stopPropagation(),j(R.id,"configure")()},children:i.jsx(_h.default,{fontSize:"inherit"})})}),u&&i.jsx(B.Tooltip,{title:k,children:i.jsx(B.IconButton,{"aria-label":k,className:"hover-icon",size:"small",sx:{opacity:0},onClick:_=>{_.stopPropagation(),j(R.id,"edit")()},children:i.jsx(Dh.default,{fontSize:"inherit"})})})]})]},R.id))})]})})},yS=({children:e})=>i.jsx(B.Table,{sx:{"& .MuiTableHead-root":{background:"rgba(217, 217, 217, 0.10)","& .MuiTableCell-root":{border:"1px solid #F5F5F5",color:"text.secondary"}},"& .MuiTableCell-root":{whiteSpace:"nowrap"},"& .MuiTableBody-root":{"& .MuiTableRow-root":{"&.checked":{background:"#F5F5F5"},"&:hover":{background:"#F5F5F5",transition:"200ms","& .actionIcons":{opacity:"1"},"& .tableButton":{background:"#FFF"}}}}},children:e}),ol=()=>i.jsxs(B.SvgIcon,{fontSize:"small",children:[i.jsx("rect",{fill:"#fff",height:"20",width:"20",x:"2",y:"2"}),i.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-2z",fill:"none",stroke:"#D9D9D9",strokeWidth:"2"}),i.jsx("path",{d:"M17.99 9l-1.41-1.42-6.59 6.59-2.58-2.57-1.42 1.41 4 3.99z"})]}),vd=()=>i.jsxs(B.SvgIcon,{fontSize:"small",children:[i.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-2z",fill:"none",stroke:"#D9D9D9",strokeWidth:"2"}),i.jsx("path",{d:"M7 11h10v2H7z"})]}),Sd=({allChecked:e,someChecked:t,onSelectAll:n})=>i.jsx(bt.default,{sx:{padding:"8px 12px",width:"1%"},children:i.jsx(B.Checkbox,{checked:e,checkedIcon:i.jsx(ol,{}),indeterminate:t&&!e,indeterminateIcon:i.jsx(vd,{}),size:"small",sx:{padding:"0","& .MuiSvgIcon-root":{fill:"#D9D9D9"},"&.Mui-checked .MuiSvgIcon-root, &.MuiCheckbox-indeterminate .MuiSvgIcon-root":{fill:"#364699"}},onChange:n,slotProps:{input:{"aria-label":"Select all rows",ref:r=>{r&&(r.indeterminate=t&&!e)}}}})}),kd=({sortDirection:e})=>i.jsxs("svg",{fill:"none",height:"16",viewBox:"0 0 13 16",width:"13",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("path",{d:"M3.5 7L6.5 3L9.5 7H3.5Z",fill:"#333333",fillOpacity:e==="desc"?"0":"0.6"}),i.jsx("path",{d:"M3.5 9L6.5 13L9.5 9H3.5Z",fill:"#333333",fillOpacity:e==="asc"?"0":"0.6"})]});function vS({field:e,label:t,sx:n,value:r,setTableSearch:o,setTableSort:s,sortDirection:l,searchable:a=!0}){const[c,u]=se.useState(!1),d=a&&(c||!!r);return i.jsx(bt.default,{sx:{padding:"3px 2px 3px 6px",...n},onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:i.jsxs(B.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"2px"},children:[a?i.jsx(B.TextField,{disabled:!d,placeholder:t,size:"small",slotProps:{input:{startAdornment:i.jsx(B.InputAdornment,{position:"start",children:i.jsx(zh.default,{sx:{transition:h=>h.transitions.create("all",{duration:h.transitions.duration.standard}),transitionDelay:"100ms",opacity:d?1:0,fontSize:"1rem"}})}),endAdornment:i.jsx(B.InputAdornment,{position:"end",sx:{position:"absolute",top:"2px",right:"2px"},children:i.jsx(B.IconButton,{size:"small","aria-label":`Clear ${t} search`,sx:{transition:h=>h.transitions.create("all",{duration:h.transitions.duration.standard}),opacity:r?1:0,pointerEvents:r?"auto":"none"},onClick:()=>o(h=>({...h,[e]:""})),children:i.jsx($h.default,{sx:{fontSize:"0.75rem"}})})}),autoComplete:"off"}},sx:{"& .MuiInputBase-root":{transition:h=>h.transitions.create("all",{duration:h.transitions.duration.standard}),backgroundColor:d?"neutral.lightest":"transparent",borderRadius:"8px",color:d?"inherit":"text.secondary",fontSize:"0.75rem",height:"unset",paddingLeft:"6px",paddingRight:"4px"},"& .MuiInputBase-input":{transition:h=>h.transitions.create("all",{duration:h.transitions.duration.standard}),cursor:d?"text":"default",position:"relative",left:d?"0":"-18px",padding:"4px 0"},"& .MuiInputBase-input::placeholder":{opacity:"1"},"& .MuiOutlinedInput-notchedOutline":{borderWidth:"1px !important",borderColor:d?"#D9D9D9 !important":"transparent !important"},"& .MuiInputAdornment-positionStart":{marginRight:"4px"}},value:r,onChange:h=>o(m=>({...m,[e]:h.target.value}))}):i.jsx(B.Box,{sx:{color:"text.secondary",fontSize:"0.75rem",lineHeight:1.2,paddingLeft:"6px",whiteSpace:"nowrap"},children:t}),i.jsx(B.IconButton,{size:"small","aria-label":`Sort by ${t}`,onClick:()=>s(h=>{if(!h)return{field:e,direction:"asc"};if(h.direction==="asc")return{field:e,direction:"desc"}}),children:i.jsx(kd,{sortDirection:l})})]})})}const Id=se.memo(vS),SS={position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},kS=({shouldRenderCheckbox:e,shouldRenderAction:t,items:n,tableSearch:r,setTableSearch:o,tableSort:s,setTableSort:l,allChecked:a,someChecked:c,onSelectAll:u})=>i.jsx(B.TableHead,{children:i.jsxs(B.TableRow,{children:[e?i.jsx(Sd,{allChecked:a,someChecked:c,onSelectAll:u}):null,n.map(d=>{var h;return d.type==="tableCell"?i.jsx(bt.default,{children:i.jsx(B.Typography,{sx:{color:"text.secondary",fontSize:"0.75rem"},children:d.label})},d.id):d.type==="searchable"?i.jsx(Id,{field:d.field,label:d.label,setTableSearch:o,setTableSort:l,sortDirection:(s==null?void 0:s.field)===d.field?s==null?void 0:s.direction:void 0,value:(h=r[d.field])!=null?h:""},d.id):null}),t?i.jsx(bt.default,{children:i.jsx(B.Box,{component:"span",sx:SS,children:"Actions"})}):null]})}),Md=se.memo(({id:e,index:t,checked:n,onTableRowCheck:r,children:o,onClick:s,shouldRenderCheckbox:l})=>i.jsxs(dr.default,{className:n?"checked":"",sx:{cursor:s?"pointer":void 0},onClick:s,children:[l?i.jsx(bt.default,{sx:{padding:"13px 12px",borderBottom:"1px solid #F5F5F5"},children:i.jsx(B.Checkbox,{checked:n,checkedIcon:i.jsx(ol,{}),indeterminateIcon:i.jsx(Gh.default,{}),size:"small",sx:{padding:"0","& .MuiSvgIcon-root":{fill:"#D9D9D9"},"&.Mui-checked .MuiSvgIcon-root":{fill:"#364699"}},slotProps:{input:{"aria-label":`Select row ${t+1}`}},onClick:r?a=>{a.stopPropagation(),r(e,t,a)}:void 0})}):null,o]},e));Md.displayName="CustomTableRow";const IS=({label:e})=>i.jsx(bt.default,{sx:{padding:"7px 16px"},children:i.jsx(B.Typography,{sx:{fontSize:"0.75rem"},children:e})});function Ed(e,t,n){const r=u=>typeof u=="string"?u.toLowerCase():Array.isArray(u)&&u.every(d=>typeof d=="string")?u.join(" ").toLowerCase():"",o=(u,d)=>{if(!d)return!0;const h=d.toLowerCase();return typeof u=="string"?u.toLowerCase().includes(h):Array.isArray(u)&&u.every(m=>typeof m=="string")?u.some(m=>m.toLowerCase().includes(h)):!1},s=e.filter(u=>t?Object.entries(t).every(([d,h])=>o(u[d],h)):!0);if(!n)return s;const{field:l,direction:a}=n,c=a==="asc"?1:-1;return[...s].sort((u,d)=>{const h=u[l],m=d[l];if(typeof h=="number"&&typeof m=="number")return c*(h-m);const p=r(h),b=r(m);return p&&b?c*p.localeCompare(b):0})}const MS=e=>{const[t,n]=se.useState({}),[r,o]=se.useState(),[s,l]=se.useState(new Set),[a,c]=se.useState(null),u=Ed(e,t,r),d=u.map(w=>w.id).filter(Boolean),h=d.length>0&&d.every(w=>s.has(w)),m=d.some(w=>s.has(w));return{tableSearch:t,setTableSearch:n,tableSort:r,setTableSort:o,allChecked:h,someChecked:m,onSelectAll:()=>{u.every(w=>s.has(w.id))?l(new Set):l(new Set(u.map(w=>w.id)))},onTableRowCheck:(w,k,v)=>{if(v.shiftKey&&a!==null){const F=Math.min(a,k),j=Math.max(a,k),y=new Set(s);d.slice(F,j+1).forEach(A=>y.add(A)),l(y)}else{const F=new Set(s);F.has(w)?F.delete(w):F.add(w),l(F)}c(k)},filteredTableData:u,checkedIds:s,unselectAll:()=>l(new Set)}},Pd=g.default.forwardRef(({onClick:e,holdDuration:t=2e3,holdLabel:n="Hold to confirm...",children:r,disabled:o,...s},l)=>{const[a,c]=se.useState(!1),[u,d]=se.useState(!1),[h,m]=se.useState(0),p=se.useRef(null),b=se.useRef(null),x=se.useRef(0),w=se.useRef(!1),k=()=>{p.current&&(clearTimeout(p.current),p.current=null),b.current&&(clearInterval(b.current),b.current=null)},v=()=>{o||u||a||(k(),x.current=performance.now(),m(0),c(!0),b.current=setInterval(()=>{const j=performance.now()-x.current;m(Math.min(j/t*100,100))},16),p.current=setTimeout(()=>{k(),m(100),c(!1),d(!0),(async()=>{try{await e()}finally{d(!1),m(0)}})()},t))},F=()=>{a&&(k(),c(!1),m(0))};return se.useEffect(()=>()=>k(),[]),i.jsx(B.Box,{sx:{position:"relative"},children:i.jsx(B.Button,{ref:l,disabled:o||u,onPointerDown:v,onPointerUp:F,onPointerLeave:F,onPointerCancel:F,onKeyDown:j=>{j.key!==" "&&j.key!=="Enter"||w.current||(j.preventDefault(),w.current=!0,v())},onKeyUp:j=>{j.key!==" "&&j.key!=="Enter"||(w.current=!1,F())},onBlur:()=>{w.current=!1,F()},sx:{display:"flex",alignItems:"center",gap:1,width:"100%",touchAction:"none"},...s,children:a?i.jsxs(i.Fragment,{children:[i.jsx(B.CircularProgress,{size:18,sx:{color:"inherit","& .MuiCircularProgress-circleDeterminate":{transition:"none"}},thickness:7,value:h,variant:"determinate"}),i.jsx("span",{children:n})]}):r})})});Pd.displayName="HoldToConfirmButton";const ES=({menuItems:e,ariaLabel:t="Open menu"})=>{const[n,r]=se.useState(null),o=!!n,s=se.useId(),l=`${s}-trigger`,a=`${s}-menu`,c=h=>{r(h.currentTarget)},u=()=>{r(null)},d=h=>{h(),u()};return i.jsxs(i.Fragment,{children:[i.jsx(B.IconButton,{"aria-controls":o?a:void 0,"aria-expanded":o,"aria-haspopup":"true","aria-label":t,id:l,onClick:c,children:i.jsx(Bh.default,{})}),i.jsx(B.Menu,{anchorEl:n,anchorOrigin:{vertical:"bottom",horizontal:"right"},open:o,slotProps:{list:{id:a,"aria-labelledby":l}},transformOrigin:{vertical:"top",horizontal:"right"},onClose:u,children:e.map((h,m)=>i.jsx(B.MenuItem,{onClick:()=>d(h.onClick),children:h.label},m))})]})},PS=({title:e,className:t,subtitle:n,"data-testid":r})=>i.jsxs("div",{children:[i.jsx("h1",{className:`text-primary text-lg font-bold uppercase ${t!=null?t:""}`,"data-testid":r,children:e}),n&&i.jsx("p",{className:"text-neutral text-sm",children:n})]}),cr=({type:e})=>{switch(e){case"error":return i.jsx(Uh.default,{sx:{color:"#5C0924"}});case"info":return i.jsx(Kh.default,{sx:{color:"#161E4A"}});case"success":return i.jsx(Wh.default,{sx:{color:"#00514B"}});case"warning":return i.jsx(Xh.default,{sx:{color:"#816E09"}});case"default":default:return null}},TS=e=>{const t=e.type==="error",n=se.useCallback(r=>{r&&t&&r.focus()},[t]);return i.jsx(ga.default,{ref:n,"aria-label":e.ariaLabel||"Close notification",sx:{position:"absolute",top:8,right:8,padding:"4px"},onClick:()=>e.closeToast(!0),children:i.jsx(qh.default,{sx:{fontSize:"1rem",color:"#555555"}})})},FS=e=>i.jsx(Kt.ToastContainer,{hideProgressBar:!0,newestOnTop:!0,"aria-label":"Toast",className:"whitespace-pre-wrap",closeButton:TS,position:"top-right",transition:Kt.Slide,...e}),ur="relative min-h-auto! text-sm border-l-[5px] rounded-none! p-2! pr-10!",jS={default:(e,t)=>Kt.toast(e,{ariaLabel:e,autoClose:3e3,className:ur,type:"default",icon:i.jsx(cr,{type:"default"}),...t}),error:(e,t)=>Kt.toast.error(e!=null?e:"There was an error! Please try again.",{ariaLabel:e!=null?e:"There was an error! Please try again",autoClose:15e3,className:`${ur} text-[#5C0924]! bg-[#FBEAEC]! border-[#5C0924]`,type:"error",icon:i.jsx(cr,{type:"error"}),...t}),info:(e,t)=>Kt.toast.info(e,{ariaLabel:e,autoClose:3500,className:`${ur} text-[#161E4A]! bg-[#E9ECF6]! border-[#161E4A]`,type:"info",icon:i.jsx(cr,{type:"info"}),...t}),ok:(e,t)=>Kt.toast.success(e!=null?e:"Success!",{ariaLabel:e!=null?e:"Success!",autoClose:2500,className:`${ur} text-[#00514B]! bg-[#EBF6F5]! border-[#00514B]`,type:"success",icon:i.jsx(cr,{type:"success"}),...t}),warning:(e,t)=>Kt.toast.warning(e,{ariaLabel:e,autoClose:3500,className:`${ur} text-[#816E09]! bg-[#FEFBE0]! border-[#816E09]!`,type:"warning",icon:i.jsx(cr,{type:"warning"}),...t}),dismiss:e=>Kt.toast.dismiss(e),isActive:e=>Kt.toast.isActive(e)},OS=ge.styled(({className:e,...t})=>i.jsx(ma.default,{...t,classes:{popper:e}}))(({theme:e})=>({[`& .${Jo.tooltipClasses.tooltip}`]:{backgroundColor:"#FFFFFF",color:e.palette.text.primary,border:"1px solid #D9D9D9",borderRadius:"8px",padding:"16px",fontSize:"0.875rem",fontWeight:400,boxShadow:"0 4px 4px 0 rgba(85, 85, 85, 0.10)",display:"flex",justifyContent:"center",alignItems:"center",gap:"10px",maxWidth:"none"},[`& .${Jo.tooltipClasses.arrow}`]:{color:"#FFFFFF","&::before":{backgroundColor:"#FFFFFF",border:"1px solid #D9D9D9"}}})),RS=({icon:e,title:t,showOnlyOnOverflow:n=!1,children:r,...o})=>{const[s,l]=se.useState(!1),[a,c]=se.useState(null);se.useEffect(()=>{if(!n||!a)return;const m=()=>{l(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight)};m();const p=new ResizeObserver(m);return p.observe(a),()=>p.disconnect()},[n,a]);const u=e?i.jsxs(B.Box,{sx:{display:"flex",alignItems:"center",gap:"10px"},children:[e,t]}):t,d=n&&se.isValidElement(r)?se.cloneElement(r,{ref:c}):r,h=n?!s:o.disableHoverListener;return i.jsx(OS,{...o,disableHoverListener:h,title:u,children:d})},LS={sm:{width:"1.5rem",height:"1.5rem",fontSize:"0.75rem"},md:{width:"2.5rem",height:"2.5rem",fontSize:"0.875rem"},lg:{width:"3.75rem",height:"3.75rem",fontSize:"1.5rem"},xl:{width:"7.5rem",height:"7.5rem",fontSize:"3rem"}},DS=({user:e,size:t="sm"})=>{var u,d,h,m;const n=ge.useTheme(),r=(d=(u=e==null?void 0:e.personalInfo.firstName)==null?void 0:u.charAt(0).toUpperCase())!=null?d:"",o=(m=(h=e==null?void 0:e.personalInfo.lastName)==null?void 0:h.charAt(0).toUpperCase())!=null?m:"",s=`${r}${o}`.trim()||" ",{width:l,height:a,fontSize:c}=LS[t];return i.jsx(B.Avatar,{sx:{backgroundColor:n.palette.primary.main,color:n.palette.primary.contrastText,width:l,height:a,fontSize:c,border:t==="sm"?`2px solid ${n.palette.neutral.lighter}`:void 0,[n.breakpoints.between("sm","md")]:{width:"33px !important",height:"33px !important"}},children:s})},HS=({messages:e})=>{const t=ge.useTheme();return e.length===0?null:i.jsx(B.Alert,{icon:i.jsx(Yh.default,{sx:{color:"#665312"}}),severity:"warning",sx:{display:"flex",backgroundColor:t.palette.warning.lightest,justifyContent:"center"},children:i.jsx(B.Typography,{sx:{fontFamily:"Lato",fontWeight:500,color:"#665312"},children:e.join(", ")})})},Td=24,Qi=-40,_S=0,Fd=e=>{if(e<=0)return 0;const t=20*Math.log10(e);return Math.min(1,Math.max(0,(t-Qi)/(_S-Qi)))},jd=(e,t,n=Td)=>e<=Math.floor(n*t),AS={default:{height:"18px",gap:"0.25rem",bar:{width:"0.625rem"},radius:"2px"},small:{height:"0.625rem",gap:"2px",bar:{width:"7px",boxSizing:"border-box"},radius:"1px"}},sl=({className:e,volume:t,label:n="Input Level",hideLabel:r=!1,barCount:o=Td,size:s="default"})=>{const l=ge.useTheme(),a=Array.from({length:o},(d,h)=>h+1),c=AS[s],u=Fd(t);return i.jsxs(B.Box,{className:e,sx:{width:"100%",display:"flex",flexDirection:"column",gap:"0.5rem"},children:[!r&&i.jsx(B.Typography,{sx:{fontFamily:l.typography.fontFamily,fontWeight:l.typography.fontWeightBold},children:n}),i.jsx(B.Box,{...r&&{role:"img","aria-label":n},sx:{width:"100%",height:c.height,display:"flex",gap:c.gap},children:a.map(d=>i.jsx(B.Box,{sx:{...c.bar,height:"100%",borderRadius:c.radius,border:`0.5px solid ${l.palette.neutral.light}`,backgroundColor:jd(d,u,o)?l.palette["acuity-green"].main:l.customColors.white}},`audio-volume-bar-${d}`))})]})},ll=e=>{const[t,n]=se.useState(0);return se.useEffect(()=>{if(!e){n(0);return}let r;const o=new AudioContext,s=o.createMediaStreamSource(e),l=o.createAnalyser();l.fftSize=512,s.connect(l);const a=new Uint8Array(l.frequencyBinCount),c=()=>{let u=0;l.getByteTimeDomainData(a);for(let d=0;d<a.length;d++){const h=(a[d]-128)/128;u+=h*h}n(Math.sqrt(u/a.length)),r=requestAnimationFrame(c)};return c(),()=>{cancelAnimationFrame(r),l.disconnect(),s.disconnect(),o.close()}},[e]),t},VS=({stream:e,levelLabel:t})=>{const n=ll(e);return i.jsx(B.Box,{"data-testid":"recording-audio-level",sx:{width:"fit-content"},children:i.jsx(sl,{volume:n,label:t,hideLabel:!0,barCount:8,size:"small"})})},NS=({label:e="Recording",stream:t,levelLabel:n="Input Level",className:r})=>{const o=ge.useTheme();return i.jsxs(B.Box,{className:r,role:"alert",sx:{display:"inline-grid",gridTemplateColumns:"auto auto",alignItems:"center",columnGap:"0.5rem",rowGap:"0.25rem",padding:"0.5rem 0.75rem",backgroundColor:o.customColors.white,borderRadius:"9999px",boxShadow:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"},children:[i.jsx(B.Box,{"aria-hidden":!0,sx:{width:12,height:12,borderRadius:"50%",backgroundColor:o.palette.error.main,justifySelf:"center"}}),i.jsx(B.Typography,{sx:{fontSize:"0.875rem",fontWeight:500,lineHeight:"1.25rem",color:o.palette.neutral.darkest,margin:0},children:e}),i.jsx(Zh.default,{"aria-hidden":!0,sx:{color:o.palette.neutral.darkest,fontSize:14,justifySelf:"center"}}),i.jsx(VS,{stream:t,levelLabel:n})]})},$S={audio:{label:"Select your Microphone",okMessage:"Microphone is working perfectly!",errorMessage:"There is a problem with your microphone. Please select your input again to proceed with your test."},video:{label:"Select your Camera",okMessage:"Camera is working as intended",errorMessage:"There is a problem with your webcam, Please select your camera input again to proceed with your test. "}},Od=({className:e,disabled:t,error:n,hideLabel:r=!1,options:o=[],type:s,value:l="",onChange:a,showMessage:c=!0,pendingMessage:u,pendingTone:d="neutral",compact:h=!1,labels:m})=>{const p=ge.useTheme(),{label:b,okMessage:x,errorMessage:w}=m!=null?m:$S[s],k=se.useMemo(()=>({width:h?"329px":r?"485px":"100%",height:h?"49px":r?"54px":"auto",labelFontSize:h?"8px":"10px",valueFontSize:h?"12px":"16px",labelColor:h?p.palette.neutral.darkest:p.palette.neutral.main,valueColor:h?p.palette.neutral.darkest:p.palette.neutral.dark,borderRadius:h?"10px":"8px",gap:h?"0px":"4px"}),[h,r,p.palette.neutral]),v=se.useMemo(()=>r||h?{width:k.width,height:k.height,borderRadius:k.borderRadius,padding:"10px","& .MuiSelect-select":{padding:h?"19px 10px":"10px",display:"flex",flexDirection:"column",gap:"4px"}}:{},[r,h,k]),F=se.useCallback(M=>{a(M.target.value)},[a]),j=se.useCallback(M=>{const P=o.find(R=>R.deviceId===M);return!P||!r&&!h?(P==null?void 0:P.label)||"":i.jsxs(B.Box,{sx:{display:"flex",flexDirection:"column",gap:k.gap},children:[i.jsx(B.Typography,{component:"span",sx:{fontFamily:p.typography.fontFamily,fontSize:k.labelFontSize,fontWeight:600,lineHeight:"20px",color:k.labelColor},children:b}),i.jsx(B.Typography,{component:"span",sx:{fontFamily:p.typography.fontFamily,fontSize:k.valueFontSize,fontWeight:600,lineHeight:"20px",color:k.valueColor},children:P.label})]})},[o,r,h,k,p.typography,b]),y=!n&&!!l&&!!u,A=!n&&!!l&&!u,N=!!n;return i.jsxs(B.Box,{className:e,sx:{width:"100%",minWidth:"300px"},children:[!r&&i.jsx(B.Typography,{sx:{fontFamily:p.typography.fontFamily,fontWeight:p.typography.fontWeightBold,mb:"0.5rem"},children:b}),i.jsx(B.FormControl,{sx:{mb:"0.375rem"},fullWidth:!0,disabled:!o.length,children:i.jsx(B.Select,{SelectDisplayProps:{"aria-label":b},disabled:t,value:l,onChange:F,sx:v,renderValue:j,children:o.map(M=>i.jsx(B.MenuItem,{"aria-label":M.label,value:M.deviceId,children:M.label},M.deviceId))})}),c&&i.jsxs(B.Box,{"aria-live":"polite",sx:{minHeight:"20px",display:"flex",alignItems:"center",gap:"0.5rem"},children:[y&&d==="neutral"&&i.jsxs(i.Fragment,{children:[i.jsx(eg.default,{fontSize:"small",sx:{color:p.palette.neutral.dark}}),i.jsx(B.Typography,{sx:{fontSize:"10px",color:p.palette.neutral.dark},children:u})]}),y&&d==="error"&&i.jsxs(i.Fragment,{children:[i.jsx(ml.default,{fontSize:"small",sx:{color:p.palette["acuity-red"].main}}),i.jsx(B.Typography,{sx:{fontSize:"10px",color:p.palette["acuity-red"].main},children:u})]}),A&&i.jsxs(i.Fragment,{children:[i.jsx(Jh.default,{fontSize:"small",sx:{color:p.palette["acuity-green"].darkest}}),i.jsx(B.Typography,{sx:{fontSize:"10px",color:p.palette["acuity-green"].darkest},children:x})]}),N&&i.jsxs(i.Fragment,{children:[i.jsx(ml.default,{fontSize:"small",sx:{color:p.palette["acuity-red"].main}}),i.jsx(B.Typography,{sx:{fontSize:"10px",color:p.palette["acuity-red"].main},children:w})]})]})]})},Rd=.02,Ld=250,Dd=8e3,Hd=(e,t)=>{const[n,r]=se.useState(t?"listening":"idle"),o=se.useRef(0),s=e>=Rd,l=n==="detected";return se.useEffect(()=>{if(o.current=0,!t){r("idle");return}r("listening");const a=setTimeout(()=>{r(c=>c==="listening"?"silent":c)},Dd);return()=>clearTimeout(a)},[t]),se.useEffect(()=>{if(!t||!s||l)return;const a=Date.now(),c=setTimeout(()=>r("detected"),Math.max(0,Ld-o.current));return()=>{clearTimeout(c),o.current+=Date.now()-a}},[t,s,l]),n},_d={speakToTest:"Speak to check your microphone.",noSoundDetected:"No sound detected. Speak into your microphone or choose another device.",inputLevel:"Input Level"},zS=({stream:e})=>{const t=ge.useTheme(),n=se.useRef(null);return se.useEffect(()=>{n.current&&(n.current.srcObject=e!=null?e:null)},[e]),i.jsxs(B.Box,{sx:{position:"relative",width:"100%",aspectRatio:"16 / 9",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"12px",border:`1px solid ${t.palette.neutral.light}`,backgroundColor:t.palette.neutral.lighter,overflow:"hidden"},children:[i.jsx(Qh.default,{"aria-hidden":!0,sx:{fontSize:80,color:t.palette.neutral.dark}}),i.jsx(B.Box,{component:"video",ref:n,autoPlay:!0,muted:!0,playsInline:!0,disablePictureInPicture:!0,"aria-hidden":!0,sx:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",transform:"scaleX(-1)",display:e?"block":"none"}})]})},GS=({devices:e,labels:t,onStatusChange:n})=>{const r=ll(e.audioStream),o=Hd(r,e.audioStream);se.useEffect(()=>n==null?void 0:n(o),[o,n]);let s;return o==="silent"?s=t.noSoundDetected:o!=="detected"&&(s=t.speakToTest),i.jsxs(i.Fragment,{children:[i.jsx(Od,{type:"audio",disabled:e.audioPerm!=="granted"||!e.audioDevices.length,error:e.audioError,options:e.audioDevices,value:e.activeAudioId,onChange:e.onSelectAudio,pendingMessage:s,pendingTone:o==="silent"?"error":"neutral",labels:t.microphone}),i.jsx(sl,{volume:r,label:t.inputLevel})]})},BS=({devices:e,onMicStatusChange:t,labels:n,className:r})=>{const o=ge.useTheme(),s={..._d,...n};return i.jsxs(B.Box,{className:r,sx:{width:"100%",display:"flex",justifyContent:"center",flexWrap:{xs:"wrap",md:"nowrap"},gap:"3rem"},children:[i.jsx(B.Box,{sx:{width:"100%",maxWidth:"624px"},children:i.jsx(zS,{stream:e.videoStream})}),i.jsx(B.Box,{sx:{display:{xs:"none",md:"block"},borderLeft:`1px solid ${o.palette.neutral.lighter}`}}),i.jsxs(B.Box,{sx:{width:"100%",maxWidth:"330px",display:"flex",flexDirection:"column",gap:"2.5rem"},children:[i.jsx(Od,{type:"video",disabled:e.videoPerm!=="granted"||!e.videoDevices.length,error:e.videoError,options:e.videoDevices,value:e.activeVideoId,onChange:e.onSelectVideo,labels:s.camera}),i.jsx(GS,{devices:e,labels:s,onStatusChange:t})]})]})};function Ji(e){const t=Math.abs(e);return t<10?`0${t}`:t.toString()}function il(e){const t=Math.floor(Math.abs(e)/60)*Math.sign(e),n=Math.abs(e)%60;return`${e<0?"-":""}${Ji(t)}:${Ji(n)}`}const WS=({timeLeft:e,timerLabel:t,variant:n="info",showClockIcon:r=!0,accessibleLabel:o="Time Left : "})=>{const s=ge.useTheme(),l=il(e),a=n==="info",c=a?s.palette.primary.main:s.palette.warning.darkest,u=a?s.palette.primary.lightest:s.palette.warning.lightest;return i.jsxs(B.Stack,{role:"timer","aria-live":"polite","aria-label":t||o,direction:"row",sx:{color:c,padding:{xs:"0.5rem 0.75rem",sm:"0.75rem 1rem"},backgroundColor:u,justifyContent:"space-between",borderRadius:"1rem",minWidth:0,maxWidth:"100%",overflow:"hidden",flexShrink:1,...a?{}:{border:`1px solid ${c}`}},children:[i.jsxs(B.Stack,{direction:"row",spacing:"0.25rem",alignItems:"center",sx:{minWidth:0,overflow:"hidden",flexShrink:1},children:[r&&i.jsx(tg.default,{sx:{flexShrink:0}}),t&&i.jsx(B.Typography,{sx:{fontSize:{xs:"0.875rem",sm:"1rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:t})]}),i.jsx(B.Typography,{sx:{fontWeight:"bold",ml:"0.5rem",fontSize:{xs:"0.875rem",sm:"1rem"},flexShrink:0,minWidth:"fit-content"},children:l})]})},Ad=B.styled(B.Box)(()=>({width:"100%",maxWidth:624,aspectRatio:"4/3",borderRadius:10,overflow:"hidden",position:"relative",height:"100%",maxHeight:368,marginBottom:"2.5rem",display:"flex",alignItems:"center",justifyContent:"center"})),qS=({imageUrl:e,altText:t="Preview Image"})=>e?i.jsx(Ad,{children:i.jsx("img",{src:e,alt:t,style:{width:"100%",height:"100%",objectFit:"contain",display:"block"}})}):null,Vt="Lato, sans-serif",US=e=>{var t,n,r,o,s,l,a,c,u,d,h,m,p,b,x,w,k,v,F,j,y,A;return{h1:{fontFamily:(t=e.typography.fontFamily)!=null?t:Vt,fontWeight:(n=e.typography.fontWeightBold)!=null?n:700,fontSize:(r=e.typography["4xl"])!=null?r:"3rem",textAlign:"left",verticalAlign:"middle"},h2:{fontFamily:(o=e.typography.fontFamily)!=null?o:Vt,fontWeight:(s=e.typography.fontWeightMedium)!=null?s:600,fontSize:(l=e.typography["3xl"])!=null?l:"2.5rem",textAlign:"left",verticalAlign:"middle"},h3:{fontFamily:(a=e.typography.fontFamily)!=null?a:Vt,fontWeight:(c=e.typography.fontWeightRegular)!=null?c:400,fontSize:(u=e.typography["2xl"])!=null?u:"2rem",textAlign:"left",width:"100%",mt:"1rem"},h4:{fontFamily:(d=e.typography.fontFamily)!=null?d:Vt,fontWeight:(h=e.typography.fontWeightMedium)!=null?h:700,fontSize:(m=e.typography.base)!=null?m:"1rem",textAlign:"left",verticalAlign:"middle"},ul:{fontFamily:(p=e.typography.fontFamily)!=null?p:Vt,fontWeight:(b=e.typography.fontWeightRegular)!=null?b:400,listStyleType:"disc",pl:"1rem",textAlign:"left",width:"100%",pt:0},ol:{fontFamily:(x=e.typography.fontFamily)!=null?x:Vt,fontWeight:(w=e.typography.fontWeightRegular)!=null?w:400,listStyleType:"decimal",pl:"1rem",mt:"0.5rem",textAlign:"left",width:"100%"},p:{fontFamily:(k=e.typography.fontFamily)!=null?k:Vt,fontWeight:(v=e.typography.fontWeightRegular)!=null?v:400,mt:"0.25rem",textAlign:"left",wordBreak:"break-word",width:"100%"},a:{fontFamily:(F=e.typography.fontFamily)!=null?F:Vt,fontWeight:(j=e.typography.fontWeightRegular)!=null?j:400,color:e.palette.primary.main,textDecoration:"underline"},li:{fontFamily:(y=e.typography.fontFamily)!=null?y:Vt,fontWeight:(A=e.typography.fontWeightRegular)!=null?A:400,display:"list-item",p:0}}},tn=(e,t,n)=>{var o,s;const r=e.typography[t];return{fontSize:(o=r==null?void 0:r.fontSize)!=null?o:n.fontSize,lineHeight:(s=r==null?void 0:r.lineHeight)!=null?s:n.lineHeight}},al=e=>{var l,a,c,u;const t=(l=e.typography.fontFamily)!=null?l:Vt,n=(a=e.typography.fontWeightRegular)!=null?a:400,r=(c=e.typography.fontWeightMedium)!=null?c:600,o=(u=e.typography.fontWeightBold)!=null?u:700,s={fontFamily:t,letterSpacing:"normal",textAlign:"left",m:0};return{fontFamily:t,"& h1":{...s,...tn(e,"4xl",{fontSize:"2.25rem",lineHeight:"3rem"}),fontWeight:o},"& h2":{...s,...tn(e,"3xl",{fontSize:"1.625rem",lineHeight:"2.25rem"}),fontWeight:r},"& h3":{...s,...tn(e,"2xl",{fontSize:"1.4375rem",lineHeight:"2rem"}),fontWeight:n,mt:"1rem"},"& h4":{...s,...tn(e,"base",{fontSize:"1rem",lineHeight:"1.5rem"}),fontWeight:r},"& h5":{...s,...tn(e,"sm",{fontSize:"0.875rem",lineHeight:"1.25rem"}),fontWeight:o},"& h6":{...s,...tn(e,"sm",{fontSize:"0.875rem",lineHeight:"1.25rem"}),fontWeight:r},"& p":{fontFamily:t,...tn(e,"base",{fontSize:"1rem",lineHeight:"1.5rem"}),fontWeight:n,letterSpacing:"normal",textAlign:"left",wordBreak:"break-word",m:0,mt:"0.25rem"},"& ul, & ol":{fontFamily:t,...tn(e,"base",{fontSize:"1rem",lineHeight:"1.5rem"}),fontWeight:n,textAlign:"left",m:0,pl:"1rem",pr:0},"& ul":{listStyleType:"disc",pt:0,pb:"0.5rem"},"& ol":{listStyleType:"decimal",mt:"0.5rem",pt:"0.5rem",pb:"0.5rem"},"& li":{display:"list-item",m:0,p:0},"& li > p":{m:0},"& a":{color:e.palette.primary.main,textDecoration:"underline"},"& strong":{fontWeight:o},"& em":{fontStyle:"italic"}}},KS=B.styled(B.Box)(({theme:e})=>({width:"100%",borderRadius:"10px",overflow:"hidden",position:"relative",height:"100%",padding:"0.5rem",fontFamily:e.typography.fontFamily})),XS=({content:e=""})=>{const t=ge.useTheme(),n=se.useMemo(()=>al(t),[t]);return i.jsx(KS,{"data-testid":"content-text",sx:n,children:i.jsx(ng.default,{components:{a({children:r,href:o}){return i.jsx("a",{href:o,target:"_blank",rel:"noopener noreferrer",children:r})}},children:e})})},tt={primary:{darkest:"#161E4A",dark:"#253170",main:"#364699",light:"#7779B8",lighter:"#B0B1D7",lightest:"#E9ECF6"},secondary:{darkest:"#15436E",dark:"#205C94",main:"#2C76BC",light:"#799DD1",lighter:"#B3C6E5",lightest:"#EAF1F9"},error:{darkest:"#720202",dark:"#A90508",main:"#E40A0A",light:"#F97054",lighter:"#FFB19E",lightest:"#FFECE8"},info:{darkest:"#0D556D",dark:"#157393",main:"#5A65E4",light:"#76B2CF",lighter:"#B2D3E3",lightest:"#EBF4F8"},warning:{darkest:"#816E09",dark:"#E0CA01",main:"#FCE833",light:"#FFEE7A",lighter:"#FFF5B1",lightest:"#FEFBE0"},success:{darkest:"#24590A",dark:"#387F14",main:"#4DA81F",light:"#89C368",lighter:"#BCDEA9",lightest:"#EEF8EB"},neutral:{darkest:"#333333",dark:"#555555",main:"#949494",light:"#B8B8B8",lighter:"#F5F5F5",lightest:"#FFFFFF"},"acuity-green":{darkest:"#00514B",dark:"#007A72",main:"#00A59B",light:"#70C0B8",lighter:"#B0DBD6",lightest:"#EBF6F5"},"acuity-red":{darkest:"#5C0924",dark:"#8A1339",main:"#BA1E50",light:"#D66D80",lighter:"#ECACB5",lightest:"#FBEAEC"},customColors:{black:"#000000",white:"#FFFFFF","light-gray":"#D9D9D9","medium-gray":"#767676","transparent-medium":"rgba(0, 0, 0, 0.25)","transparent-light":"rgba(0, 0, 0, 0.05)"}},ea=[1,2,3,4,5,6],Vd={toolbar:"Formatting",undo:"Undo",redo:"Redo",textStyle:"Text style",paragraph:"Paragraph",heading:e=>`Heading ${e}`,bold:"Bold",italic:"Italic",numberedList:"Numbered list",bulletedList:"Bulleted list"},YS=e=>i.jsx(B.SvgIcon,{viewBox:"0 0 24 25",...e,children:i.jsx("path",{d:"M7.404 18.5V17.5H14.658C15.6953 17.5 16.5787 17.1443 17.308 16.433C18.0387 15.7217 18.404 14.853 18.404 13.827C18.404 12.801 18.039 11.9357 17.309 11.231C16.5783 10.5257 15.6947 10.173 14.658 10.173H6.916L9.881 13.138L9.173 13.846L5 9.673L9.173 5.5L9.881 6.208L6.916 9.173H14.658C15.9667 9.173 17.085 9.62433 18.013 10.527C18.9397 11.4297 19.403 12.5297 19.403 13.827C19.403 15.1243 18.9397 16.2277 18.013 17.137C17.0863 18.0463 15.9677 18.5007 14.657 18.5H7.404Z"})}),ZS=e=>i.jsx(B.SvgIcon,{viewBox:"0 0 24 25",...e,children:i.jsx("path",{d:"M16.596 18.5V17.5H9.342C8.30467 17.5 7.42133 17.1443 6.692 16.433C5.96133 15.7217 5.596 14.853 5.596 13.827C5.596 12.801 5.961 11.9357 6.691 11.231C7.42167 10.5257 8.30533 10.173 9.342 10.173H17.084L14.119 13.138L14.827 13.846L19 9.673L14.827 5.5L14.119 6.208L17.084 9.173H9.342C8.03333 9.173 6.915 9.62433 5.987 10.527C5.06033 11.4297 4.597 12.5297 4.597 13.827C4.597 15.1243 5.06033 16.2277 5.987 17.137C6.91367 18.0463 8.03233 18.5007 9.343 18.5H16.596Z"})}),QS=ge.alpha(tt.neutral.darkest,.87),Tn=({Icon:e,label:t,onClick:n,disabled:r,pressed:o})=>i.jsx(B.Tooltip,{title:t,children:i.jsx("span",{children:i.jsx(B.IconButton,{"aria-label":t,"aria-pressed":o,disabled:r,size:"small",onClick:n,onMouseDown:s=>s.preventDefault(),sx:{borderRadius:"0.25rem",color:o?tt.customColors.white:tt.neutral.dark,backgroundColor:o?tt.primary.main:"transparent","&:hover":{color:tt.customColors.white,backgroundColor:tt.primary.main},"&.Mui-focusVisible":{outline:`2px solid ${tt.primary.main}`,outlineOffset:2}},children:i.jsx(e,{fontSize:"inherit"})})})}),Zo=()=>i.jsx(B.Divider,{flexItem:!0,orientation:"vertical",sx:{borderColor:tt.neutral.lighter,maxHeight:"30px",mt:"5px",mx:.5}}),JS=({id:e,label:t,value:n,onChange:r,"aria-describedby":o,height:s,disabled:l=!1,labels:a})=>{var k;const c=ge.useTheme(),u={...Vd,...a},d=`label_${e}`,h=se.useRef(n),m=se.useRef(r);se.useEffect(()=>{m.current=r},[r]);const p=Eo.useEditor({extensions:[ag.default.configure({strike:!1,underline:!1,code:!1,codeBlock:!1,horizontalRule:!1,link:{openOnClick:!1}}),oh.Markdown],content:n,contentType:"markdown",editable:!l,editorProps:{attributes:{id:e,role:"textbox","aria-multiline":"true","aria-labelledby":d,...o?{"aria-describedby":o}:{}}},onUpdate:({editor:v})=>{const F=v.getMarkdown();h.current=F,m.current(F)}});se.useEffect(()=>{!p||n===h.current||(h.current=n,p.commands.setContent(n,{contentType:"markdown",emitUpdate:!1}))},[p,n]),se.useEffect(()=>{p==null||p.setEditable(!l)},[p,l]);const b=Eo.useEditorState({editor:p,selector:({editor:v})=>{var F,j,y,A,N,M,P;return{canUndo:(F=v==null?void 0:v.can().undo())!=null?F:!1,canRedo:(j=v==null?void 0:v.can().redo())!=null?j:!1,isBold:(y=v==null?void 0:v.isActive("bold"))!=null?y:!1,isItalic:(A=v==null?void 0:v.isActive("italic"))!=null?A:!1,isOrderedList:(N=v==null?void 0:v.isActive("orderedList"))!=null?N:!1,isBulletList:(M=v==null?void 0:v.isActive("bulletList"))!=null?M:!1,headingLevel:(P=ea.find(R=>v==null?void 0:v.isActive("heading",{level:R})))!=null?P:0}}}),x=se.useMemo(()=>al(c),[c]),w=v=>()=>{l||v()};return i.jsxs(B.Box,{sx:{display:"flex",flexDirection:"column",minWidth:0},children:[i.jsx(B.Typography,{id:d,component:"label",onClick:()=>p==null?void 0:p.commands.focus(),sx:{fontFamily:c.typography.fontFamily,fontSize:"1rem",mb:1,width:"fit-content"},children:t}),i.jsxs(B.Box,{"data-testid":"markdown-editor-frame",sx:{display:"flex",flexDirection:"column",height:s},children:[i.jsxs(B.Box,{role:"toolbar","aria-label":u.toolbar,"aria-controls":e,sx:{display:"flex",flexWrap:"wrap",justifyContent:"flex-start",alignItems:"center",columnGap:.5,rowGap:.5,mb:"0.75rem"},children:[i.jsx(Tn,{Icon:YS,label:u.undo,disabled:l||!(b!=null&&b.canUndo),onClick:w(()=>p==null?void 0:p.chain().focus().undo().run())}),i.jsx(Tn,{Icon:ZS,label:u.redo,disabled:l||!(b!=null&&b.canRedo),onClick:w(()=>p==null?void 0:p.chain().focus().redo().run())}),i.jsx(Zo,{}),i.jsx(B.Tooltip,{title:u.textStyle,placement:"top",children:i.jsxs(B.Select,{variant:"standard",disableUnderline:!0,displayEmpty:!0,disabled:l,value:(k=b==null?void 0:b.headingLevel)!=null?k:0,inputProps:{"aria-label":u.textStyle},IconComponent:v=>i.jsx(ig.default,{...v,sx:{fontSize:"1rem"}}),onChange:v=>{const F=Number(v.target.value);F===0?p==null||p.chain().focus().setParagraph().run():p==null||p.chain().focus().setHeading({level:F}).run()},sx:{minWidth:"120px",fontFamily:c.typography.fontFamily,fontSize:"1rem",color:QS,fontWeight:b!=null&&b.headingLevel?700:400,backgroundColor:"transparent"},children:[i.jsx(B.MenuItem,{value:0,sx:{fontWeight:400},children:u.paragraph}),ea.map(v=>i.jsx(B.MenuItem,{value:v,sx:{fontWeight:700},children:u.heading(v)},v))]})}),i.jsx(Zo,{}),i.jsx(Tn,{Icon:rg.default,label:u.bold,disabled:l,pressed:b==null?void 0:b.isBold,onClick:w(()=>p==null?void 0:p.chain().focus().toggleBold().run())}),i.jsx(Tn,{Icon:og.default,label:u.italic,disabled:l,pressed:b==null?void 0:b.isItalic,onClick:w(()=>p==null?void 0:p.chain().focus().toggleItalic().run())}),i.jsx(Zo,{}),i.jsx(Tn,{Icon:lg.default,label:u.numberedList,disabled:l,pressed:b==null?void 0:b.isOrderedList,onClick:w(()=>p==null?void 0:p.chain().focus().toggleOrderedList().run())}),i.jsx(Tn,{Icon:sg.default,label:u.bulletedList,disabled:l,pressed:b==null?void 0:b.isBulletList,onClick:w(()=>p==null?void 0:p.chain().focus().toggleBulletList().run())})]}),i.jsx(B.Box,{"data-testid":"markdown-editor-scroll",onClick:()=>p==null?void 0:p.commands.focus(),sx:{flex:1,minHeight:s===void 0?"300px":0,overflowY:"auto",overflowWrap:"anywhere",border:`1px solid ${tt.customColors["light-gray"]}`,borderRadius:"0.375rem",px:"1.25rem",py:"0.75rem",cursor:l?"default":"text",backgroundColor:l?tt.neutral.lighter:void 0,"&:focus-within":{borderColor:tt.primary.main},"& .tiptap":{outline:"none",minHeight:"100%"},...x},children:i.jsx(Eo.EditorContent,{editor:p})})]})]})},e5=({label:e,onClick:t,ariaLabel:n})=>{const r=ge.useTheme();return i.jsx(B.Button,{onClick:t,"aria-label":n||e,startIcon:i.jsx(cg.default,{sx:{fontSize:24}}),"data-testid":"video-replay-button",sx:{backgroundColor:r.palette.neutral.lightest,minWidth:"200px",maxWidth:"min(80vw, 500px)",minHeight:"52px",borderRadius:4,padding:"14px 16px",gap:1,pointerEvents:"auto",transition:"transform 0.2s ease, box-shadow 0.2s ease",border:"none",color:r.palette.primary.main,fontWeight:700,fontSize:"1rem",textTransform:"none",whiteSpace:"normal",textAlign:"center",wordBreak:"break-word","&:hover":{backgroundColor:r.palette.neutral.lightest,boxShadow:`0 2px 8px ${r.palette.primary.light}`},"& .MuiButton-startIcon":{color:r.palette.primary.main,fontSize:24,flexShrink:0}},children:e})},t5=ge.styled(B.Button)(({theme:e,disabled:t})=>({whiteSpace:"nowrap",padding:"0.75rem 1rem",height:"48px",borderRadius:"16px",fontSize:e.typography.base.fontSize,fontWeight:e.typography.fontWeightBold,textTransform:"none",marginTop:"1rem","&&":{color:e.customColors.white},backgroundColor:t?e.palette.neutral.main:e.palette.primary.main,"&:hover":{backgroundColor:t?e.palette.neutral.light:e.palette.primary.dark},"&:focus":{boxShadow:`0 0 0 4px ${e.palette.primary.lighter}`},[e.breakpoints.down("sm")]:{whiteSpace:"normal",padding:"0.25rem 0.5rem"}})),n5=ge.styled(B.Button)(({theme:e,disabled:t})=>({whiteSpace:"nowrap",padding:"0.25rem 0.75rem",width:"145px",marginBottom:"1rem",marginTop:"1rem",borderRadius:"1.5rem",backgroundColor:t?e.palette.neutral.light:e.palette.error.dark,"&:hover":{backgroundColor:t?e.palette.neutral.light:e.palette.error.main},"&:focus":{boxShadow:`0 0 0 4px ${e.palette.error.lighter}`},display:"flex",alignItems:"center",justifyContent:"center","&&":{color:e.customColors.white},textTransform:"none",[e.breakpoints.down("sm")]:{whiteSpace:"normal",padding:"0.25rem 0.5rem",width:"100%"}})),r5=({children:e})=>{const t=ge.useTheme();return i.jsx(B.BottomNavigation,{sx:{backgroundColor:t.customColors.white,borderTop:1,borderColor:t.palette.neutral.light,height:"88px",minHeight:"88px",maxHeight:"88px",width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",borderBottomLeftRadius:"1.5rem",borderBottomRightRadius:"1.5rem",overflow:"hidden",padding:0,flexShrink:0,position:"relative",zIndex:15},children:e})},cl={en:"en-CA",fr:"fr-CA"};function o5(e){const t=(e!=null?e:"").toLowerCase().split(/[-_]/)[0];return t in cl?t:"en"}const s5=1e4;function Nd(e,t){var o;const n=t.toLowerCase(),r=n.split("-")[0];return(o=e.find(s=>s.lang.toLowerCase().replace("_","-")===n))!=null?o:e.find(s=>s.lang.toLowerCase().startsWith(r))}function Qo(){return typeof window!="undefined"&&"speechSynthesis"in window&&typeof window.SpeechSynthesisUtterance=="function"}const l5=({text:e,language:t,playLabel:n="Text to speech",stopLabel:r="Stop reading aloud"})=>{const[o,s]=se.useState(!1),[l]=se.useState(Qo),a=se.useRef(null),c=se.useCallback(()=>{a.current!==null&&(clearInterval(a.current),a.current=null)},[]),u=se.useCallback(()=>{c(),Qo()&&window.speechSynthesis.cancel(),s(!1)},[c]);se.useEffect(()=>u,[u]),se.useEffect(()=>{u()},[e,u]);const d=se.useCallback(()=>{if(!Qo()||!e)return;window.speechSynthesis.cancel();const h=new SpeechSynthesisUtterance(e),m=cl[t];h.lang=m;const p=Nd(window.speechSynthesis.getVoices(),m);p&&(h.voice=p);const b=()=>{c(),s(!1)};h.onend=b,h.onerror=b,s(!0),window.speechSynthesis.speak(h),c(),a.current=setInterval(()=>{if(!window.speechSynthesis.speaking){c();return}window.speechSynthesis.pause(),window.speechSynthesis.resume()},s5)},[e,t,c]);return!l||!e?null:i.jsx(B.Button,{onClick:o?u:d,startIcon:o?i.jsx(ug.default,{}):i.jsx(dg.default,{}),variant:"outlined","aria-live":"polite",sx:{whiteSpace:"nowrap",flexShrink:0,borderRadius:"1rem",textTransform:"none"},children:o?r:n})},$d=pa.default.div`
91
91
  flex-direction: row;
92
92
  display: flex;
93
93
  align-items: center;