@takecasper/acuity-design-system 2.2.1 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js DELETED
@@ -1,1284 +0,0 @@
1
- "use strict";require('./assets/index.css');var Fk=Object.defineProperty;var Ak=(e,t,n)=>t in e?Fk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Qi=(e,t,n)=>Ak(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),ci=require("react-dom");function V0(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 b=V0(H),H0=V0(ci);function vu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qa={exports:{}},Ji={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var sg;function Dk(){if(sg)return Ji;sg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,i){var l=null;if(i!==void 0&&(l=""+i),o.key!==void 0&&(l=""+o.key),"key"in o){i={};for(var a in o)a!=="key"&&(i[a]=o[a])}else i=o;return o=i.ref,{$$typeof:e,type:r,key:l,ref:o!==void 0?o:null,props:i}}return Ji.Fragment=t,Ji.jsx=n,Ji.jsxs=n,Ji}var el={};/**
10
- * @license React
11
- * react-jsx-runtime.development.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var ig;function _k(){return ig||(ig=1,process.env.NODE_ENV!=="production"&&(function(){function e(D){if(D==null)return null;if(typeof D=="function")return D.$$typeof===$?null:D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case v:return"Fragment";case S:return"Profiler";case x:return"StrictMode";case T:return"Suspense";case N:return"SuspenseList";case j:return"Activity"}if(typeof D=="object")switch(typeof D.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),D.$$typeof){case g:return"Portal";case k:return D.displayName||"Context";case w:return(D._context.displayName||"Context")+".Consumer";case E:var G=D.render;return D=D.displayName,D||(D=G.displayName||G.name||"",D=D!==""?"ForwardRef("+D+")":"ForwardRef"),D;case P:return G=D.displayName||null,G!==null?G:e(D.type)||"Memo";case O:G=D._payload,D=D._init;try{return e(D(G))}catch(A){}}return null}function t(D){return""+D}function n(D){try{t(D);var G=!1}catch(Y){G=!0}if(G){G=console;var A=G.error,K=typeof Symbol=="function"&&Symbol.toStringTag&&D[Symbol.toStringTag]||D.constructor.name||"Object";return A.call(G,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",K),t(D)}}function r(D){if(D===v)return"<>";if(typeof D=="object"&&D!==null&&D.$$typeof===O)return"<...>";try{var G=e(D);return G?"<"+G+">":"<...>"}catch(A){return"<...>"}}function o(){var D=C.A;return D===null?null:D.getOwner()}function i(){return Error("react-stack-top-frame")}function l(D){if(L.call(D,"key")){var G=Object.getOwnPropertyDescriptor(D,"key").get;if(G&&G.isReactWarning)return!1}return D.key!==void 0}function a(D,G){function A(){R||(R=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",G))}A.isReactWarning=!0,Object.defineProperty(D,"key",{get:A,configurable:!0})}function c(){var D=e(this.type);return _[D]||(_[D]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),D=this.props.ref,D!==void 0?D:null}function u(D,G,A,K,Y,U){var q=A.ref;return D={$$typeof:y,type:D,key:G,props:A,_owner:K},(q!==void 0?q:null)!==null?Object.defineProperty(D,"ref",{enumerable:!1,get:c}):Object.defineProperty(D,"ref",{enumerable:!1,value:null}),D._store={},Object.defineProperty(D._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(D,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(D,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.defineProperty(D,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:U}),Object.freeze&&(Object.freeze(D.props),Object.freeze(D)),D}function d(D,G,A,K,Y,U){var q=G.children;if(q!==void 0)if(K)if(F(q)){for(K=0;K<q.length;K++)p(q[K]);Object.freeze&&Object.freeze(q)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(q);if(L.call(G,"key")){q=e(D);var Z=Object.keys(G).filter(function(Q){return Q!=="key"});K=0<Z.length?"{key: someKey, "+Z.join(": ..., ")+": ...}":"{key: someKey}",I[q+K]||(Z=0<Z.length?"{"+Z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
- let props = %s;
19
- <%s {...props} />
20
- React keys must be passed directly to JSX without using spread:
21
- let props = %s;
22
- <%s key={someKey} {...props} />`,K,q,Z,q),I[q+K]=!0)}if(q=null,A!==void 0&&(n(A),q=""+A),l(G)&&(n(G.key),q=""+G.key),"key"in G){A={};for(var X in G)X!=="key"&&(A[X]=G[X])}else A=G;return q&&a(A,typeof D=="function"?D.displayName||D.name||"Unknown":D),u(D,q,A,o(),Y,U)}function p(D){h(D)?D._store&&(D._store.validated=1):typeof D=="object"&&D!==null&&D.$$typeof===O&&(D._payload.status==="fulfilled"?h(D._payload.value)&&D._payload.value._store&&(D._payload.value._store.validated=1):D._store&&(D._store.validated=1))}function h(D){return typeof D=="object"&&D!==null&&D.$$typeof===y}var f=H,y=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),k=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),$=Symbol.for("react.client.reference"),C=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=Object.prototype.hasOwnProperty,F=Array.isArray,M=console.createTask?console.createTask:function(){return null};f={react_stack_bottom_frame:function(D){return D()}};var R,_={},V=f.react_stack_bottom_frame.bind(f,i)(),W=M(r(i)),I={};el.Fragment=v,el.jsx=function(D,G,A){var K=1e4>C.recentlyCreatedOwnerStacks++;return d(D,G,A,!1,K?Error("react-stack-top-frame"):V,K?M(r(D)):W)},el.jsxs=function(D,G,A){var K=1e4>C.recentlyCreatedOwnerStacks++;return d(D,G,A,!0,K?Error("react-stack-top-frame"):V,K?M(r(D)):W)}})()),el}var lg;function zk(){return lg||(lg=1,process.env.NODE_ENV==="production"?Qa.exports=Dk():Qa.exports=_k()),Qa.exports}var m=zk();const Gf=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i="",filled:l=!1})=>{const a=!(r&&r.length>0);return m.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:i||(a?"graphics-document":"img"),children:[!a&&m.jsx("title",{children:r}),m.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"}),m.jsx("path",{d:"M12 17.5553V13.1108",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),m.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"}),m.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"})]})},Wf=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i="",filled:l=!1})=>{const a=!(r&&r.length>0);return m.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:i||(a?"graphics-document":"img"),children:[!a&&m.jsx("title",{children:r}),m.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"}),m.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"})]})},Uf=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i="",filled:l=!1})=>{const a=!(r&&r.length>0);return m.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:i||(a?"graphics-document":"img"),children:[!a&&m.jsx("title",{children:r}),m.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"}),m.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}),m.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}),m.jsx("path",{d:"M12 15.125V8.875",stroke:l?"white":"currentColor",strokeWidth:o,strokeMiterlimit:"10",strokeLinecap:"round"})]})},qf=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i="",filled:l=!1})=>{const a=!(r&&r.length>0);return m.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:i||(a?"graphics-document":"img"),children:[!a&&m.jsx("title",{children:r}),m.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"}),m.jsx("path",{d:"M15.3344 8.66663L8.66666 15.3333",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"}),m.jsx("path",{d:"M8.66666 8.66663L15.3344 15.3333",stroke:l?"white":"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"})]})},Bk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return m.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:i||(l?"graphics-document":"img"),children:[!l&&m.jsx("title",{children:r}),m.jsx("path",{d:"M2.625 21.3741L21.375 2.62415",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),m.jsx("path",{d:"M21.375 21.3741L2.625 2.62415",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Vk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return m.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:i||(l?"graphics-document":"img"),children:[!l&&m.jsx("title",{children:r}),m.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"}),m.jsx("path",{d:"M15.8383 3.8833L20.1167 8.16163",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),m.jsx("path",{d:"M14.0933 5.6283L18.3717 9.90663",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),m.jsx("path",{d:"M4.10083 15.6208L8.38333 19.895",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Hk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return m.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:i||(l?"graphics-document":"img"),children:[!l&&m.jsx("title",{children:r}),m.jsx("path",{d:"M2 2V22.0007",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),m.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"})]})},Gk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return m.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:i||(l?"graphics-document":"img"),children:[!l&&m.jsx("title",{children:r}),m.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"}),m.jsx("path",{d:"M12 4V2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),m.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"})]})},Wk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return e==="16"&&t==="16"?m.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:i||(l?"graphics-document":"img"),children:[!l&&m.jsx("title",{children:r}),m.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"}),m.jsx("path",{d:"M8.00018 3.25005V2",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),m.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"}),m.jsx("circle",{cx:"11.8",cy:"6.11104",r:"2.3",fill:"#BA1E50",stroke:"white"})]}):m.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:i||(l?"graphics-document":"img"),children:[!l&&m.jsx("title",{children:r}),m.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"}),m.jsx("path",{d:"M12 4V2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),m.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"}),m.jsx("circle",{cx:"18",cy:"8",r:"4",fill:"#BA1E50",stroke:"white",strokeWidth:"2"})]})},Uk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return m.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:i||(l?"graphics-document":"img"),children:[!l&&m.jsx("title",{children:r}),m.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"}),m.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"}),m.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"}),m.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"})]})},qk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return m.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:i||(l?"graphics-document":"img"),children:[!l&&m.jsx("title",{children:r}),m.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"})]})},Kk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return m.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:i||(l?"graphics-document":"img"),children:[!l&&m.jsx("title",{children:r}),m.jsx("path",{d:"M2.00003 5H22V19H2.00003V5Z",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),m.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"})]})},Yk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return m.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:i||(l?"graphics-document":"img"),children:[!l&&m.jsx("title",{children:r}),m.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"}),m.jsx("path",{d:"M6.88889 11.9554H16.9334",strokeWidth:o,strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},Xk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return m.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:i||(l?"graphics-document":"img"),children:[!l&&m.jsx("title",{children:r}),m.jsx("path",{d:"M2 5.6366H22",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),m.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"}),m.jsx("path",{d:"M9.95453 17.2275V10.4093",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),m.jsx("path",{d:"M14.0455 17.2275V10.4093",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),m.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"})]})},Zk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return m.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:i||(l?"graphics-document":"img"),children:[!l&&m.jsx("title",{children:r}),m.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"})]})},Qk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return m.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:i||(l?"graphics-document":"img"),children:[!l&&m.jsx("title",{children:r}),m.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"}),m.jsx("path",{d:"M2.625 10.125H21.375",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),m.jsx("path",{d:"M7.625 7V2.625",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),m.jsx("path",{d:"M16.375 7V2.625",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),m.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"}),m.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"}),m.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"}),m.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"}),m.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"}),m.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"}),m.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"}),m.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"}),m.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"}),m.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"}),m.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"}),m.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"})]})},Jk=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return m.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:i||(l?"graphics-document":"img"),children:[!l&&m.jsx("title",{children:r}),m.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"}),m.jsx("path",{d:"M9.5 2.91162V19.0358",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),m.jsx("path",{d:"M14.5 2.91162V19.0358",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},eE=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return e==="16"&&t==="16"?m.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:i||(l?"graphics-document":"img"),children:[!l&&m.jsx("title",{children:r}),m.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"}),m.jsx("path",{d:"M6.18231 2.50098V14.0343",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),m.jsx("path",{d:"M9.75873 2.50098V14.0343",strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),m.jsx("circle",{cx:"12.8",cy:"3.11104",r:"2.3",fill:"#BA1E50",stroke:"white"})]}):m.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:i||(l?"graphics-document":"img"),children:[!l&&m.jsx("title",{children:r}),m.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"}),m.jsx("path",{d:"M9.5 3.91162V20.0358",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),m.jsx("path",{d:"M14.5 3.91162V20.0358",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),m.jsx("circle",{cx:"19",cy:"5",r:"4",fill:"#BA1E50",stroke:"white",strokeWidth:"2"})]})},tE=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return m.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:i||(l?"graphics-document":"img"),children:[!l&&m.jsx("title",{children:r}),m.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"}),m.jsx("path",{d:"M15.5175 15.5167L21.375 21.3751",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},nE=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return m.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:i||(l?"graphics-document":"img"),children:[!l&&m.jsx("title",{children:r}),m.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"}),m.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"})]})},rE=({width:e="24",height:t="24",className:n="",title:r="",role:o=""})=>{const i=!(r&&r.length>0);return m.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":`${i}`,role:o||(i?"graphics-document":"img"),children:[!i&&m.jsx("title",{children:r}),m.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"})]})},oE=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return m.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:i||(l?"graphics-document":"img"),children:[!l&&m.jsx("title",{children:r}),m.jsx("path",{d:"M12 8V16",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),m.jsx("path",{d:"M8 12H16",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),m.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"})]})},sE=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return m.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:i||(l?"graphics-document":"img"),children:[!l&&m.jsx("title",{children:r}),m.jsx("path",{d:"M9.70831 14.1025L21.375 2.625",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),m.jsx("path",{d:"M21.375 9.18417V2.625H14.7083",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),m.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"})]})},iE=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return e==="16"&&t==="16"?m.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:i||(l?"graphics-document":"img"),children:[!l&&m.jsx("title",{children:r}),m.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"}),m.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"}),m.jsx("circle",{cx:"15.8",cy:"3.11104",r:"2.3",fill:"#BA1E50",stroke:"white"})]}):m.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:i||(l?"graphics-document":"img"),children:[!l&&m.jsx("title",{children:r}),m.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"}),m.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"}),m.jsx("circle",{cx:"24",cy:"5",r:"4",fill:"#BA1E50",stroke:"white",strokeWidth:"2"})]})},lE=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return m.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:i||(l?"graphics-document":"img"),children:[!l&&m.jsx("title",{children:r}),m.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"}),m.jsx("path",{d:"M15.5 9L11 15L8 12",stroke:"currentColor",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round"})]})},aE=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return m.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:i||(l?"graphics-document":"img"),children:[!l&&m.jsx("title",{children:r}),m.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"}),m.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"}),m.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"}),m.jsx("path",{d:"M11.9688 15.5312V18.3438",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"})]})},cE=({width:e="24",height:t="24",className:n="",title:r="",stroke:o="1.5",role:i=""})=>{const l=!(r&&r.length>0);return m.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:i||(l?"graphics-document":"img"),children:[!l&&m.jsx("title",{children:r}),m.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"}),m.jsx("path",{d:"M11.9688 15.5312V18.3438",strokeWidth:o,strokeLinecap:"round",strokeLinejoin:"round",stroke:"currentColor"}),m.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"}),m.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 G0(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=G0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ue(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=G0(e))&&(r&&(r+=" "),r+=t);return r}const ag=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,cg=ue,Ht=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return cg(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,l=Object.keys(o).map(u=>{const d=n==null?void 0:n[u],p=i==null?void 0:i[u];if(d===null)return null;const h=ag(d)||ag(p);return o[u][h]}),a=n&&Object.entries(n).reduce((u,d)=>{let[p,h]=d;return h===void 0||(u[p]=h),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:p,className:h,...f}=d;return Object.entries(f).every(y=>{let[g,v]=y;return Array.isArray(v)?v.includes({...i,...a}[g]):{...i,...a}[g]===v})?[...u,p,h]:u},[]);return cg(e,l,c,n==null?void 0:n.class,n==null?void 0:n.className)},uE=(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},dE=(e,t)=>({classGroupId:e,validator:t}),W0=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ac="-",ug=[],pE="arbitrary..",fE=e=>{const t=hE(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return mE(l);const a=l.split(Ac),c=a[0]===""&&a.length>1?1:0;return U0(a,c,t)},getConflictingClassGroupIds:(l,a)=>{if(a){const c=r[l],u=n[l];return c?u?uE(u,c):c:u||ug}return n[l]||ug}}},U0=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],i=n.nextPart.get(o);if(i){const u=U0(e,t+1,i);if(u)return u}const l=n.validators;if(l===null)return;const a=t===0?e.join(Ac):e.slice(t).join(Ac),c=l.length;for(let u=0;u<c;u++){const d=l[u];if(d.validator(a))return d.classGroupId}},mE=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?pE+r:void 0})(),hE=e=>{const{theme:t,classGroups:n}=e;return gE(n,t)},gE=(e,t)=>{const n=W0();for(const r in e){const o=e[r];Kf(o,n,r,t)}return n},Kf=(e,t,n,r)=>{const o=e.length;for(let i=0;i<o;i++){const l=e[i];bE(l,t,n,r)}},bE=(e,t,n,r)=>{if(typeof e=="string"){yE(e,t,n);return}if(typeof e=="function"){vE(e,t,n,r);return}xE(e,t,n,r)},yE=(e,t,n)=>{const r=e===""?t:q0(t,e);r.classGroupId=n},vE=(e,t,n,r)=>{if(CE(e)){Kf(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(dE(n,e))},xE=(e,t,n,r)=>{const o=Object.entries(e),i=o.length;for(let l=0;l<i;l++){const[a,c]=o[l];Kf(c,q0(t,a),n,r)}},q0=(e,t)=>{let n=e;const r=t.split(Ac),o=r.length;for(let i=0;i<o;i++){const l=r[i];let a=n.nextPart.get(l);a||(a=W0(),n.nextPart.set(l,a)),n=a}return n},CE=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,wE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(i,l)=>{n[i]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let l=n[i];if(l!==void 0)return l;if((l=r[i])!==void 0)return o(i,l),l},set(i,l){i in n?n[i]=l:o(i,l)}}},Lp="!",dg=":",SE=[],pg=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),kE=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let l=0,a=0,c=0,u;const d=o.length;for(let g=0;g<d;g++){const v=o[g];if(l===0&&a===0){if(v===dg){i.push(o.slice(c,g)),c=g+1;continue}if(v==="/"){u=g;continue}}v==="["?l++:v==="]"?l--:v==="("?a++:v===")"&&a--}const p=i.length===0?o:o.slice(c);let h=p,f=!1;p.endsWith(Lp)?(h=p.slice(0,-1),f=!0):p.startsWith(Lp)&&(h=p.slice(1),f=!0);const y=u&&u>c?u-c:void 0;return pg(i,f,h,y)};if(t){const o=t+dg,i=r;r=l=>l.startsWith(o)?i(l.slice(o.length)):pg(SE,!1,l,void 0,!0)}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},EE=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let i=0;i<n.length;i++){const l=n[i],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}},TE=e=>({cache:wE(e.cacheSize),parseClassName:kE(e),sortModifiers:EE(e),postfixLookupClassGroupIds:IE(e),...fE(e)}),IE=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},PE=/\s+/,OE=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i,postfixLookupClassGroupIds:l}=t,a=[],c=e.trim().split(PE);let u="";for(let d=c.length-1;d>=0;d-=1){const p=c[d],{isExternal:h,modifiers:f,hasImportantModifier:y,baseClassName:g,maybePostfixModifierPosition:v}=n(p);if(h){u=p+(u.length>0?" "+u:u);continue}let x=!!v,S;if(x){const N=g.substring(0,v);S=r(N);const P=S&&l[S]?r(g):void 0;P&&P!==S&&(S=P,x=!1)}else S=r(g);if(!S){if(!x){u=p+(u.length>0?" "+u:u);continue}if(S=r(g),!S){u=p+(u.length>0?" "+u:u);continue}x=!1}const w=f.length===0?"":f.length===1?f[0]:i(f).join(":"),k=y?w+Lp:w,E=k+S;if(a.indexOf(E)>-1)continue;a.push(E);const T=o(S,x);for(let N=0;N<T.length;++N){const P=T[N];a.push(k+P)}u=p+(u.length>0?" "+u:u)}return u},ME=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=K0(n))&&(o&&(o+=" "),o+=r);return o},K0=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=K0(e[r]))&&(n&&(n+=" "),n+=t);return n},RE=(e,...t)=>{let n,r,o,i;const l=c=>{const u=t.reduce((d,p)=>p(d),e());return n=TE(u),r=n.cache.get,o=n.cache.set,i=a,a(c)},a=c=>{const u=r(c);if(u)return u;const d=OE(c,n);return o(c,d),d};return i=l,(...c)=>i(ME(...c))},jE=[],cn=e=>{const t=n=>n[e]||jE;return t.isThemeGetter=!0,t},Y0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,X0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,LE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,$E=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,NE=/\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$/,FE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,AE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,DE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,jo=e=>LE.test(e),ct=e=>!!e&&!Number.isNaN(Number(e)),Gr=e=>!!e&&Number.isInteger(Number(e)),Od=e=>e.endsWith("%")&&ct(e.slice(0,-1)),fo=e=>$E.test(e),Z0=()=>!0,_E=e=>NE.test(e)&&!FE.test(e),Yf=()=>!1,zE=e=>AE.test(e),BE=e=>DE.test(e),VE=e=>!Fe(e)&&!De(e),HE=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)),GE=e=>Zo(e,ev,Yf),Fe=e=>Y0.test(e),cs=e=>Zo(e,tv,_E),fg=e=>Zo(e,QE,ct),WE=e=>Zo(e,rv,Z0),UE=e=>Zo(e,nv,Yf),mg=e=>Zo(e,Q0,Yf),qE=e=>Zo(e,J0,BE),Ja=e=>Zo(e,ov,zE),De=e=>X0.test(e),tl=e=>Fs(e,tv),KE=e=>Fs(e,nv),hg=e=>Fs(e,Q0),YE=e=>Fs(e,ev),XE=e=>Fs(e,J0),ec=e=>Fs(e,ov,!0),ZE=e=>Fs(e,rv,!0),Zo=(e,t,n)=>{const r=Y0.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Fs=(e,t,n=!1)=>{const r=X0.exec(e);return r?r[1]?t(r[1]):n:!1},Q0=e=>e==="position"||e==="percentage",J0=e=>e==="image"||e==="url",ev=e=>e==="length"||e==="size"||e==="bg-size",tv=e=>e==="length",QE=e=>e==="number",nv=e=>e==="family-name",rv=e=>e==="number"||e==="weight",ov=e=>e==="shadow",JE=()=>{const e=cn("color"),t=cn("font"),n=cn("text"),r=cn("font-weight"),o=cn("tracking"),i=cn("leading"),l=cn("breakpoint"),a=cn("container"),c=cn("spacing"),u=cn("radius"),d=cn("shadow"),p=cn("inset-shadow"),h=cn("text-shadow"),f=cn("drop-shadow"),y=cn("blur"),g=cn("perspective"),v=cn("aspect"),x=cn("ease"),S=cn("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...k(),De,Fe],T=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],P=()=>[De,Fe,c],O=()=>[jo,"full","auto",...P()],j=()=>[Gr,"none","subgrid",De,Fe],$=()=>["auto",{span:["full",Gr,De,Fe]},Gr,De,Fe],C=()=>[Gr,"auto",De,Fe],L=()=>["auto","min","max","fr",De,Fe],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],M=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...P()],_=()=>[jo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],V=()=>[jo,"screen","full","dvw","lvw","svw","min","max","fit",...P()],W=()=>[jo,"screen","full","lh","dvh","lvh","svh","min","max","fit",...P()],I=()=>[e,De,Fe],D=()=>[...k(),hg,mg,{position:[De,Fe]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],A=()=>["auto","cover","contain",YE,GE,{size:[De,Fe]}],K=()=>[Od,tl,cs],Y=()=>["","none","full",u,De,Fe],U=()=>["",ct,tl,cs],q=()=>["solid","dashed","dotted","double"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>[ct,Od,hg,mg],Q=()=>["","none",y,De,Fe],re=()=>["none",ct,De,Fe],J=()=>["none",ct,De,Fe],oe=()=>[ct,De,Fe],te=()=>[jo,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[fo],breakpoint:[fo],color:[Z0],container:[fo],"drop-shadow":[fo],ease:["in","out","in-out"],font:[VE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[fo],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[fo],shadow:[fo],spacing:["px",ct],text:[fo],"text-shadow":[fo],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",jo,Fe,De,v]}],container:["container"],"container-type":[{"@container":["","normal","size",De,Fe]}],"container-named":[HE],columns:[{columns:[ct,Fe,De,a]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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:E()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{"inset-s":O(),start:O()}],end:[{"inset-e":O(),end:O()}],"inset-bs":[{"inset-bs":O()}],"inset-be":[{"inset-be":O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[Gr,"auto",De,Fe]}],basis:[{basis:[jo,"full","auto",a,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ct,jo,"auto","initial","none",Fe]}],grow:[{grow:["",ct,De,Fe]}],shrink:[{shrink:["",ct,De,Fe]}],order:[{order:[Gr,"first","last","none",De,Fe]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":L()}],"auto-rows":[{"auto-rows":L()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...M(),"normal"]}],"justify-self":[{"justify-self":["auto",...M()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...M(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...M(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...M(),"baseline"]}],"place-self":[{"place-self":["auto",...M()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pbs:[{pbs:P()}],pbe:[{pbe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mbs:[{mbs:R()}],mbe:[{mbe:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:_()}],"inline-size":[{inline:["auto",...V()]}],"min-inline-size":[{"min-inline":["auto",...V()]}],"max-inline-size":[{"max-inline":["none",...V()]}],"block-size":[{block:["auto",...W()]}],"min-block-size":[{"min-block":["auto",...W()]}],"max-block-size":[{"max-block":["none",...W()]}],w:[{w:[a,"screen",..._()]}],"min-w":[{"min-w":[a,"screen","none",..._()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[l]},..._()]}],h:[{h:["screen","lh",..._()]}],"min-h":[{"min-h":["screen","lh","none",..._()]}],"max-h":[{"max-h":["screen","lh",..._()]}],"font-size":[{text:["base",n,tl,cs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ZE,WE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Od,Fe]}],"font-family":[{font:[KE,UE,t]}],"font-features":[{"font-features":[Fe]}],"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,De,Fe]}],"line-clamp":[{"line-clamp":[ct,"none",De,fg]}],leading:[{leading:[i,...P()]}],"list-image":[{"list-image":["none",De,Fe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",De,Fe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:[ct,"from-font","auto",De,cs]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[ct,"auto",De,Fe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"tab-size":[{tab:[Gr,De,Fe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",De,Fe]}],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",De,Fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Gr,De,Fe],radial:["",De,Fe],conic:[Gr,De,Fe]},XE,qE]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:K()}],"gradient-via-pos":[{via:K()}],"gradient-to-pos":[{to:K()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:Y()}],"rounded-s":[{"rounded-s":Y()}],"rounded-e":[{"rounded-e":Y()}],"rounded-t":[{"rounded-t":Y()}],"rounded-r":[{"rounded-r":Y()}],"rounded-b":[{"rounded-b":Y()}],"rounded-l":[{"rounded-l":Y()}],"rounded-ss":[{"rounded-ss":Y()}],"rounded-se":[{"rounded-se":Y()}],"rounded-ee":[{"rounded-ee":Y()}],"rounded-es":[{"rounded-es":Y()}],"rounded-tl":[{"rounded-tl":Y()}],"rounded-tr":[{"rounded-tr":Y()}],"rounded-br":[{"rounded-br":Y()}],"rounded-bl":[{"rounded-bl":Y()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-bs":[{"border-bs":U()}],"border-w-be":[{"border-be":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...q(),"hidden","none"]}],"divide-style":[{divide:[...q(),"hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ct,De,Fe]}],"outline-w":[{outline:["",ct,tl,cs]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",d,ec,Ja]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",p,ec,Ja]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[ct,cs]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",h,ec,Ja]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[ct,De,Fe]}],"mix-blend":[{"mix-blend":[...Z(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Z()}],"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":[ct]}],"mask-image-linear-from-pos":[{"mask-linear-from":X()}],"mask-image-linear-to-pos":[{"mask-linear-to":X()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":X()}],"mask-image-t-to-pos":[{"mask-t-to":X()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":X()}],"mask-image-r-to-pos":[{"mask-r-to":X()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":X()}],"mask-image-b-to-pos":[{"mask-b-to":X()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":X()}],"mask-image-l-to-pos":[{"mask-l-to":X()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":X()}],"mask-image-x-to-pos":[{"mask-x-to":X()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":X()}],"mask-image-y-to-pos":[{"mask-y-to":X()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[De,Fe]}],"mask-image-radial-from-pos":[{"mask-radial-from":X()}],"mask-image-radial-to-pos":[{"mask-radial-to":X()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"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":k()}],"mask-image-conic-pos":[{"mask-conic":[ct]}],"mask-image-conic-from-pos":[{"mask-conic-from":X()}],"mask-image-conic-to-pos":[{"mask-conic-to":X()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",De,Fe]}],filter:[{filter:["","none",De,Fe]}],blur:[{blur:Q()}],brightness:[{brightness:[ct,De,Fe]}],contrast:[{contrast:[ct,De,Fe]}],"drop-shadow":[{"drop-shadow":["","none",f,ec,Ja]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",ct,De,Fe]}],"hue-rotate":[{"hue-rotate":[ct,De,Fe]}],invert:[{invert:["",ct,De,Fe]}],saturate:[{saturate:[ct,De,Fe]}],sepia:[{sepia:["",ct,De,Fe]}],"backdrop-filter":[{"backdrop-filter":["","none",De,Fe]}],"backdrop-blur":[{"backdrop-blur":Q()}],"backdrop-brightness":[{"backdrop-brightness":[ct,De,Fe]}],"backdrop-contrast":[{"backdrop-contrast":[ct,De,Fe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ct,De,Fe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ct,De,Fe]}],"backdrop-invert":[{"backdrop-invert":["",ct,De,Fe]}],"backdrop-opacity":[{"backdrop-opacity":[ct,De,Fe]}],"backdrop-saturate":[{"backdrop-saturate":[ct,De,Fe]}],"backdrop-sepia":[{"backdrop-sepia":["",ct,De,Fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",De,Fe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ct,"initial",De,Fe]}],ease:[{ease:["linear","initial",x,De,Fe]}],delay:[{delay:[ct,De,Fe]}],animate:[{animate:["none",S,De,Fe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,De,Fe]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:re()}],"rotate-x":[{"rotate-x":re()}],"rotate-y":[{"rotate-y":re()}],"rotate-z":[{"rotate-z":re()}],scale:[{scale:J()}],"scale-x":[{"scale-x":J()}],"scale-y":[{"scale-y":J()}],"scale-z":[{"scale-z":J()}],"scale-3d":["scale-3d"],skew:[{skew:oe()}],"skew-x":[{"skew-x":oe()}],"skew-y":[{"skew-y":oe()}],transform:[{transform:[De,Fe,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:te()}],"translate-x":[{"translate-x":te()}],"translate-y":[{"translate-y":te()}],"translate-z":[{"translate-z":te()}],"translate-none":["translate-none"],zoom:[{zoom:[Gr,De,Fe]}],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"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",De,Fe]}],"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":I()}],"scrollbar-track-color":[{"scrollbar-track":I()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mbs":[{"scroll-mbs":P()}],"scroll-mbe":[{"scroll-mbe":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pbs":[{"scroll-pbs":P()}],"scroll-pbe":[{"scroll-pbe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",De,Fe]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[ct,tl,cs,fg]}],stroke:[{stroke:["none",...I()]}],"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"]}},an=RE(JE);function sv(){return Math.floor(Math.random()*1e7)}const iv=(e,t,n,r,o)=>{const i=`preflight ${n}`;return{settings:m.jsx(qk,{width:e,height:t,className:i,title:r,role:o}),questionCircle:m.jsx(Uk,{width:e,height:t,className:i,title:r,role:o}),notifications:m.jsx(Gk,{width:e,height:t,className:i,title:r,role:o}),flag:m.jsx(Hk,{width:e,height:t,className:i,title:r,role:o}),edit:m.jsx(Vk,{width:e,height:t,className:i,title:r,role:o}),infoCircle:m.jsx(Gf,{width:e,height:t,className:i,title:r,role:o}),delete:m.jsx(Xk,{width:e,height:t,className:i,title:r,role:o}),resourceCenter:m.jsx(nE,{width:e,height:t,className:i,title:r,role:o}),search:m.jsx(tE,{width:e,height:t,className:i,title:r,role:o}),error:m.jsx(qf,{width:e,height:t,className:i,title:r,role:o}),warning:m.jsx(Uf,{width:e,height:t,className:i,title:r,role:o}),dropdown:m.jsx(Zk,{width:e,height:t,className:i,title:r,role:o}),calendar:m.jsx(Qk,{width:e,height:t,className:i,title:r,role:o}),bookmark:m.jsx(Jk,{width:e,height:t,className:i,title:r,role:o}),menu:m.jsx(rE,{width:e,height:t,className:i,title:r,role:o}),add:m.jsx(oE,{width:e,height:t,className:i,title:r,role:o}),exclude:m.jsx(Yk,{width:e,height:t,className:i,title:r,role:o}),email:m.jsx(Kk,{width:e,height:t,className:i,title:r,role:o}),close:m.jsx(Bk,{width:e,height:t,className:i,title:r,role:o}),checkCircle:m.jsx(Wf,{width:e,height:t,className:i,title:r,role:o}),linkNewTab:m.jsx(sE,{width:e,height:t,className:i,title:r,role:o}),lockOpened:m.jsx(aE,{width:e,height:t,className:i,title:r,role:o}),lockClosed:m.jsx(cE,{width:e,height:t,className:i,title:r,role:o}),check:m.jsx(lE,{width:e,height:t,className:i,title:r,role:o})}},lv=(e,t,n,r,o)=>{const i=`preflight ${n}`;return{notifications:m.jsx(Wk,{width:e,height:t,className:i,title:r,role:o}),resourceCenter:m.jsx(iE,{width:e,height:t,className:i,title:r,role:o}),bookmark:m.jsx(eE,{width:e,height:t,className:i,title:r,role:o})}},av=(e,t,n,r,o,i)=>{const l=`preflight ${n}`;return{infoCircle:m.jsx(Gf,{width:e,height:t,className:l,title:r,role:o,filled:i}),error:m.jsx(qf,{width:e,height:t,className:l,title:r,role:o,filled:i}),warning:m.jsx(Uf,{width:e,height:t,className:l,title:r,role:o,filled:i}),checkCircle:m.jsx(Wf,{width:e,height:t,className:l,title:r,role:o,filled:i})}},io=({size:e="small",name:t,hasIndicator:n=!1,className:r,altText:o,role:i=void 0,filled:l=!1})=>{const a={small:{width:"16",height:"16"},medium:{width:"24",height:"24"}},c=iv(a[e].width,a[e].height,r,o,i),u=lv(a[e].width,a[e].height,r,o,i),d=av(a[e].width,a[e].height,r,o,i,l),p=n&&!l?u[t]||c[t]:l&&d[t]||c[t];return m.jsx(m.Fragment,{children:p})};Object.keys(iv()).sort((e,t)=>e.localeCompare(t));Object.keys(lv()).sort((e,t)=>e.localeCompare(t));Object.keys(av()).sort((e,t)=>e.localeCompare(t));const Wl=(...e)=>an(ue(...e)),eT=Ht("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]"]}}}),tT=Ht("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"}}}),Dc=({size:e="medium",focusable:t=!0,label:n="",ariaLive:r="assertive",className:o="",spinnerClassName:i=""})=>m.jsx("div",{tabIndex:t?0:void 0,"aria-label":n,"aria-live":r,className:t?Wl(tT({size:e}),o):`preflight ds:rounded ${o}`,role:"status",children:m.jsx("div",{className:Wl(eT({size:e}),i)})}),cv=(e,t,n)=>{if(t){e.preventDefault();return}n(e)},xu=(e,t,n)=>{if(t){e.preventDefault();return}n(e)},nT=(e,t,n)=>{if(t){e.preventDefault();return}n(e)},rT=(e,t,n)=>{if(t&&e.key!=="Tab"){e.preventDefault();return}n(e)},oT=(e,t,n)=>{if(t){e.preventDefault();return}n(e)},sT=Ht(["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"]}]}),Cu=({variant:e="default",label:t="",disabled:n=!1,className:r="",onClick:o,iconName:i,iconSize:l="medium",hasIndicator:a=!1,hasTooltip:c=!0,isTransparent:u=!0,iconColor:d="",stateful:p=!1,...h})=>{const f=p||n;return m.jsxs("button",{onClick:y=>xu(y,f,o),"aria-disabled":f,"aria-label":t,"aria-pressed":p,"aria-live":p?"assertive":"off",className:Wl(sT({variant:e,isTransparent:u,disabled:f}),r),...h,children:[p&&e==="default"?m.jsx(Dc,{size:"medium",focusable:!1,label:t,ariaLive:"off"}):m.jsx(io,{size:e==="small"?"small":l,name:i!=null?i:"edit",hasIndicator:a,className:n?"ds:text-neutrals-dark":d&&d!==""?d:"ds:text-neutrals-black",altText:t}),e==="default"&&c&&m.jsx("div",{"aria-hidden":"true",className:`${f?"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})]})},iT=Ht(["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"]}}}),lT=e=>an(iT(e)),aT=Ht("",{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"}}}),gg=e=>an(aT(e)),cT=Ht("",{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"]}}}),qs=e=>an(cT(e)),uv=({variant:e="info",isDismissible:t=!0,showIcon:n=!0,titleSize:r="large",title:o="",description:i="",content:l=void 0,closeAriaLabel:a="Close button",id:c="alert_"+sv().toString(),handleClose:u,className:d="",...p})=>{const h={success:m.jsx(Wf,{className:qs({variant:e})}),info:m.jsx(Gf,{className:qs({variant:e})}),warning:m.jsx(Uf,{className:qs({variant:e})}),error:m.jsx(qf,{className:qs({variant:e})})},f=()=>l!==void 0&&i!==""&&!(r!=="none"||o!==""),y=()=>r==="large"?"ds:flex-col ds:flex ds:gap-3":r==="small"?"ds:flex-row ds:flex ds:gap-3":"ds:flex";return m.jsxs("div",{id:c,className:an(lT({variant:e}),d),...p,children:[m.jsxs("div",{className:"ds:flex ds:flex-row",children:[n&&m.jsx("div",{className:`ds:flex ds:pr-2 ${r==="large"&&o!==""&&"ds:h-[1.75rem] ds:items-center"}`,children:h[e]}),m.jsxs("div",{className:`ds:flex ds:flex-col ${r!=="none"&&o!==""?"ds:gap-3":"ds:justify-center"}`,children:[m.jsxs("div",{className:y(),children:[r!=="none"&&o!==""&&m.jsx("h1",{className:r==="large"?"ds:text-xl ds:font-semibold":"ds:hidden",children:o}),m.jsxs("div",{className:gg({variant:e}),children:[r!=="none"&&o!==""&&m.jsx("span",{className:`${qs({variant:e})} ${r==="small"&&o!==""?"ds:pr-2 ds:text-base ds:font-semibold":"ds:hidden"}`,children:o}),m.jsx("span",{className:`${r==="none"||o===""?"ds:mb-3":""}`,children:i})]})]}),l&&m.jsx("div",{className:`${gg({variant:e})} ${f()?"ds:mt-3":""}`,children:l})]})]}),t===!0&&m.jsx("div",{className:"ds:-mt-2 ds:h-5",children:m.jsx(Cu,{variant:"default",iconSize:"small",iconName:"close",hasTooltip:!1,label:a,disabled:!1,iconColor:qs({variant:e}),onClick:u})})]})},dv=["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"],uT=["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!"],dT=[...dv,"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"],pT=Ht(dv,{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:uT,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"}]}),fT=(e,t,n)=>e==="inline"&&t===!0?Wl(dT):Wl(pT({variant:e,disabled:t}),n),pv=({variant:e="primary",text:t,label:n="",disabled:r=!1,className:o="",onClick:i,iconName:l,iconIndicator:a=!1,leadingIcon:c=!1,trailingIcon:u=!1,stateful:d=!1,...p})=>{const h=d||r;return m.jsx(m.Fragment,{children:m.jsx("button",{"aria-disabled":h,"aria-pressed":d,onClick:f=>xu(f,h,i),className:fT(e,h,o),"aria-label":n,"aria-live":d?"assertive":"off",...p,children:m.jsxs("div",{className:"ds:flex ds:flex-wrap ds:content-center ds:justify-center",children:[c&&(d?m.jsx(Dc,{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"}):m.jsx(io,{size:"small",name:l!=null?l:"edit",hasIndicator:a,className:"ds:mr-2 ds:self-center",altText:""})),m.jsx("span",{children:t}),u&&(d?m.jsx(Dc,{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}):m.jsx(io,{size:"small",name:l!=null?l:"edit",hasIndicator:a,className:"ds:ml-2 ds:self-center",altText:""}))]})})})},mT=({content:e=void 0,iconName:t=void 0,title:n="",footer:r=void 0,className:o="",...i})=>m.jsxs("div",{...i,className:an("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&&m.jsxs("div",{className:"ds:flex ds:flex-row ds:items-center ds:gap-3",children:[t&&m.jsx(io,{size:"medium",name:t,className:"ds:text-neutrals-darker",hasIndicator:!1,altText:t}),m.jsx(Zf,{size:"small",text:n,hasMarginBottom:!1})]}),e&&m.jsx("div",{className:"ds:w-full ds:text-base",children:e}),r&&m.jsx("div",{children:r})]}),hT=Ht(["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"]}}}),fv=e=>an(hT(e)),gT=Ht(["preflight","ds:font-sans!","ds:ml-2","ds:text-base"],{variants:{disabled:{false:"ds:cursor-pointer",true:"ds:text-neutrals"}}}),mv=e=>an(gT(e)),Xf={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"]}}},bT=({id:e,label:t="",name:n="",checked:r=!1,disabled:o=!1,indeterminate:i=!1,onChange:l=()=>{},onClick:a=()=>{},...c})=>{const u=c["aria-label"]||t||"checkbox_"+e;return m.jsxs("div",{className:"ds:flex",children:[m.jsx("input",{id:e,name:n,"aria-label":u,"aria-disabled":o,type:"checkbox",className:`ds:form-checkbox ds:mt-1 ${fv({disabled:o})} ds:rounded`,checked:r,ref:d=>{d&&(d.indeterminate=i)},onClick:d=>xu(d,o,a),onChange:d=>cv(d,o,l),...c}),t&&m.jsx("label",{htmlFor:e,className:mv({disabled:o}),children:t})]})},yT=e=>["Zero","One","Two","Three","Four","Five","Six","Seven","Eight","Nine"][e]||e.toString(),vT=({children:e,className:t="",onClick:n,successTitle:r,successDescription:o,errorTitle:i,buttonText:l,...a})=>{const c="formValidation_"+sv().toString(),[u,d]=H.useState(!1),[p,h]=H.useState(!1),[f,y]=H.useState(""),[g,v]=H.useState(!0),[x,S]=H.useState(""),[w,k]=H.useState("success"),E=32,T=H.useMemo(()=>H.Children.toArray(e).filter(C=>H.isValidElement(C)),[e]),N=C=>{n(C),v(!1),h(!0),j(c)},P=C=>L=>{C&&C(L),g||d(!0)},O=H.Children.map(e,C=>{if(H.isValidElement(C)){const F=C;return H.cloneElement(F,{onBlur:P(F.props.onBlur)})}return C}),j=H.useCallback(C=>{const L=document.getElementById(C);if(L){const F=L.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:F-E,behavior:"smooth"})}},[E]),$=H.useCallback(C=>{i?S(i):C==1?S("An error was found in the information you submitted"):S(`${yT(C)} errors were found in the information you submitted`)},[i]);return H.useEffect(()=>{if(u||p){const C=T.filter(L=>L.props.state=="error");C.length==0?u?v(!0):(k("success"),y(o),S(r)):u&&w=="success"?v(!0):(k("error"),y(m.jsx("ul",{children:C.map((L,F)=>m.jsx("li",{children:m.jsxs("span",{onClick:()=>j("label_"+L.props.id),children:[C.length>1?`${F+1}. `:"",L.props.message]})},L.props.id))})),$(C.length)),d(!1),h(!1)}},[T,j,$,o,r,u,p,w]),m.jsxs("div",{className:`prelight ${t}`,id:c,...a,children:[!g&&m.jsx("div",{className:"preflight ds:mb-6 ds:rounded",children:m.jsx(uv,{description:f,isDismissible:w=="success",title:x,titleSize:w=="success"?"small":"large",variant:w,handleClose:()=>{v(!0)}})}),O,m.jsx(pv,{text:l,onClick:N})]})},As="large",$i="medium",Ni="small",Fi="extra-large",bg="h1",xT="h2",CT="h3",wT="div";function ST(e){return{[As]:bg,[$i]:xT,[Ni]:CT,[Fi]:wT}[e]||bg}const kT=Ht("preflight ds:font-sans!",{variants:{size:{[Ni]:"ds:mb-3",[$i]:"ds:mb-5",[As]:"ds:mb-5",[Fi]:"ds:mb-6"}}}),tc=Ht("ds:text-neutrals-darker ds:font-sans!",{variants:{size:{[Ni]:"ds:text-xl ds:font-semibold",[$i]:"ds:text-2xl ds:font-semibold",[As]:"ds:text-3xl ds:font-bold",[Fi]:"ds:text-4xl ds:font-semibold"}}}),ET=Ht("ds:mt-0 ds:font-bold ds:text-neutrals-dark",{variants:{size:{[Ni]:"ds:mb-1 ds:text-sm",[$i]:"ds:mb-2 ds:text-sm",[As]:"ds:mb-2 ds:text-base",[Fi]:"ds:mb-3 ds:text-base"}}}),TT=Ht("ds:mb-0 ds:text-neutrals-dark",{variants:{size:{[Ni]:"ds:mt-1 ds:text-base",[$i]:"ds:mt-2 ds:text-base",[As]:"ds:mt-2 ds:text-base",[Fi]:"ds:mt-3 ds:text-base"}}}),IT=Ht("ds:text-neutrals-light",{variants:{size:{[Ni]:"ds:mt-2",[$i]:"ds:mt-2",[As]:"ds:mt-2",[Fi]:"ds:mt-3"}}}),Zf=({size:e=As,className:t="",text:n="",descriptionTop:r="",descriptionBottom:o="",hasHorizontalRule:i=!1,hasMarginBottom:l=!0,headingTag:a,...c})=>{const u=r?m.jsx("p",{className:ET({size:e}),children:r}):null,d=o?m.jsx("p",{className:TT({size:e}),children:o}):null,p=i?m.jsx("hr",{className:IT({size:e})}):null,h=l?kT({size:e}):"preflight",f={div:m.jsx("div",{className:tc({size:e}),children:n}),h3:m.jsx("h3",{className:tc({size:e}),children:n}),h2:m.jsx("h2",{className:tc({size:e}),children:n}),h1:m.jsx("h1",{className:tc({size:e}),children:n})};return m.jsxs("div",{className:an(h,t),...c,children:[u,f[a||ST(e)],d,p]})},PT=({label:e="",name:t,id:n,disabled:r=!1,onChange:o=()=>{},onClick:i=()=>{},...l})=>m.jsxs("div",{className:"ds:flex ds:h-4 ds:items-center",children:[m.jsx("input",{id:n,name:t,type:"radio",className:`ds:form-radio ${fv({disabled:r})}`,"aria-disabled":r,onChange:a=>cv(a,r,o),onClick:a=>xu(a,r,i),...l}),m.jsx("label",{htmlFor:n,className:mv({disabled:r}),children:e})]}),OT=Ht(["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]"]}}}),MT=({text:e,href:t,type:n="default",iconName:r,...o})=>m.jsxs("a",{href:t,type:n,className:an(OT({type:n})),...o,children:[e,r&&m.jsx(io,{altText:e,name:r,size:"small"})]});var RT=Object.defineProperty,jT=(e,t,n)=>t in e?RT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Md=(e,t,n)=>(jT(e,typeof t!="symbol"?t+"":t,n),n);let LT=class{constructor(){Md(this,"current",this.detect()),Md(this,"handoffState","pending"),Md(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window=="undefined"||typeof document=="undefined"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},eo=new LT;function ma(e){var t;return eo.isServer?null:e==null?document:(t=e==null?void 0:e.ownerDocument)!=null?t:document}function $p(e){var t,n;return eo.isServer?null:e==null?document:(n=(t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))!=null?n:document}function hv(e){var t,n;return(n=(t=$p(e))==null?void 0:t.activeElement)!=null?n:null}function $T(e){return hv(e)===e}function wu(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Io(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return wu(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=Io();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function Su(){let[e]=H.useState(Io);return H.useEffect(()=>()=>e.dispose(),[e]),e}let _n=(e,t)=>{eo.isServer?H.useEffect(e,t):H.useLayoutEffect(e,t)};function Ds(e){let t=H.useRef(e);return _n(()=>{t.current=e},[e]),t}let Vt=function(e){let t=Ds(e);return H.useCallback((...n)=>t.current(...n),[t])};function ha(e){return H.useMemo(()=>e,Object.values(e))}let NT=H.createContext(void 0);function FT(){return H.useContext(NT)}function Np(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function wo(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,wo),r}var _c=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(_c||{}),_o=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(_o||{});function Sr(){let e=DT();return H.useCallback(t=>AT({mergeRefs:e,...t}),[e])}function AT({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:l,mergeRefs:a}){a=a!=null?a:_T;let c=gv(t,e);if(i)return nc(c,n,r,l,a);let u=o!=null?o:0;if(u&2){let{static:d=!1,...p}=c;if(d)return nc(p,n,r,l,a)}if(u&1){let{unmount:d=!0,...p}=c;return wo(d?0:1,{0(){return null},1(){return nc({...p,hidden:!0,style:{display:"none"}},n,r,l,a)}})}return nc(c,n,r,l,a)}function nc(e,t={},n,r,o){let{as:i=n,children:l,refName:a="ref",...c}=Rd(e,["unmount","static"]),u=e.ref!==void 0?{[a]:e.ref}:{},d=typeof l=="function"?l(t):l;d=bv(d),"className"in c&&c.className&&typeof c.className=="function"&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let p={};if(t){let h=!1,f=[];for(let[y,g]of Object.entries(t))typeof g=="boolean"&&(h=!0),g===!0&&f.push(y.replace(/([A-Z])/g,v=>`-${v.toLowerCase()}`));if(h){p["data-headlessui-state"]=f.join(" ");for(let y of f)p[`data-${y}`]=""}}if(Rl(i)&&(Object.keys(ps(c)).length>0||Object.keys(ps(p)).length>0))if(!H.isValidElement(d)||Array.isArray(d)&&d.length>1||BT(d)){if(Object.keys(ps(c)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(ps(c)).concat(Object.keys(ps(p))).map(h=>` - ${h}`).join(`
23
- `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(h=>` - ${h}`).join(`
24
- `)].join(`
25
- `))}else{let h=d.props,f=h==null?void 0:h.className,y=typeof f=="function"?(...x)=>Np(f(...x),c.className):Np(f,c.className),g=y?{className:y}:{},v=gv(d.props,ps(Rd(c,["ref"])));for(let x in p)x in v&&delete p[x];return H.cloneElement(d,Object.assign({},v,p,u,{ref:o(zT(d),u.ref)},g))}return H.createElement(i,Object.assign({},Rd(c,["ref"]),!Rl(i)&&u,!Rl(i)&&p),d)}function DT(){let e=H.useRef([]),t=H.useCallback(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function _T(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function gv(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[o=>{var i;return(i=o==null?void 0:o.preventDefault)==null?void 0:i.call(o)}]);for(let r in n)Object.assign(t,{[r](o,...i){let l=n[r];for(let a of l){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...i)}}});return t}function Wn(e){var t;return Object.assign(H.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function ps(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Rd(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function zT(e){return H.version.split(".")[0]>="19"?e.props.ref:e.ref}function bv(e){if(e!=null&&e.$$typeof===Symbol.for("react.lazy")){let t=e._payload;if(t!=null&&t.status==="fulfilled")return bv(t.value)}return e}function Rl(e){return e===H.Fragment||e===Symbol.for("react.fragment")}function BT(e){return Rl(e.type)}let VT="span";var zc=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(zc||{});function HT(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":(r&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Sr()({ourProps:i,theirProps:o,slot:{},defaultTag:VT,name:"Hidden"})}let Fp=Wn(HT);function GT(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function Vo(e){return GT(e)&&"tagName"in e}function Ps(e){return Vo(e)&&"accessKey"in e}function zo(e){return Vo(e)&&"tabIndex"in e}function WT(e){return Vo(e)&&"style"in e}function UT(e){return Ps(e)&&e.nodeName==="IFRAME"}function qT(e){return Ps(e)&&e.nodeName==="INPUT"}let yv=Symbol();function KT(e,t=!0){return Object.assign(e,{[yv]:t})}function po(...e){let t=H.useRef(e);H.useEffect(()=>{t.current=e},[e]);let n=Vt(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[yv]))?void 0:n}let Qf=H.createContext(null);Qf.displayName="DescriptionContext";function vv(){let e=H.useContext(Qf);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,vv),t}return e}function YT(){let[e,t]=H.useState([]);return[e.length>0?e.join(" "):void 0,H.useMemo(()=>function(n){let r=Vt(i=>(t(l=>[...l,i]),()=>t(l=>{let a=l.slice(),c=a.indexOf(i);return c!==-1&&a.splice(c,1),a}))),o=H.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return H.createElement(Qf.Provider,{value:o},n.children)},[t])]}let XT="p";function ZT(e,t){let n=H.useId(),r=FT(),{id:o=`headlessui-description-${n}`,...i}=e,l=vv(),a=po(t);_n(()=>l.register(o),[o,l.register]);let c=ha({...l.slot,disabled:r||!1}),u={ref:a,...l.props,id:o};return Sr()({ourProps:u,theirProps:i,slot:c,defaultTag:XT,name:l.name||"Description"})}let QT=Wn(ZT),JT=Object.assign(QT,{});var xv=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(xv||{});let eI=H.createContext(()=>{});function tI({value:e,children:t}){return H.createElement(eI.Provider,{value:e},t)}let Cv=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};var nI=Object.defineProperty,rI=(e,t,n)=>t in e?nI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oI=(e,t,n)=>(rI(e,t+"",n),n),wv=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},lr=(e,t,n)=>(wv(e,t,"read from private field"),n?n.call(e):t.get(e)),jd=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},yg=(e,t,n,r)=>(wv(e,t,"write to private field"),t.set(e,n),n),Ur,xl,Cl;let sI=class{constructor(t){jd(this,Ur,{}),jd(this,xl,new Cv(()=>new Set)),jd(this,Cl,new Set),oI(this,"disposables",Io()),yg(this,Ur,t),eo.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return lr(this,Ur)}subscribe(t,n){if(eo.isServer)return()=>{};let r={selector:t,callback:n,current:t(lr(this,Ur))};return lr(this,Cl).add(r),this.disposables.add(()=>{lr(this,Cl).delete(r)})}on(t,n){return eo.isServer?()=>{}:(lr(this,xl).get(t).add(n),this.disposables.add(()=>{lr(this,xl).get(t).delete(n)}))}send(t){let n=this.reduce(lr(this,Ur),t);if(n!==lr(this,Ur)){yg(this,Ur,n);for(let r of lr(this,Cl)){let o=r.selector(lr(this,Ur));Sv(r.current,o)||(r.current=o,r.callback(o))}for(let r of lr(this,xl).get(t.type))r(lr(this,Ur),t)}}};Ur=new WeakMap,xl=new WeakMap,Cl=new WeakMap;function Sv(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null?!1:Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:Ld(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size!==t.size?!1:Ld(e.entries(),t.entries()):vg(e)&&vg(t)?Ld(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()):!1}function Ld(e,t){do{let n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}while(!0)}function vg(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}var iI=Object.defineProperty,lI=(e,t,n)=>t in e?iI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xg=(e,t,n)=>(lI(e,typeof t!="symbol"?t+"":t,n),n),aI=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(aI||{});let cI={0(e,t){let n=t.id,r=e.stack,o=e.stack.indexOf(n);if(o!==-1){let i=e.stack.slice();return i.splice(o,1),i.push(n),r=i,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(r===-1)return e;let o=e.stack.slice();return o.splice(r,1),{...e,stack:o}}},uI=class kv extends sI{constructor(){super(...arguments),xg(this,"actions",{push:t=>this.send({type:0,id:t}),pop:t=>this.send({type:1,id:t})}),xg(this,"selectors",{isTop:(t,n)=>t.stack[t.stack.length-1]===n,inStack:(t,n)=>t.stack.includes(n)})}static new(){return new kv({stack:[]})}reduce(t,n){return wo(n.type,cI,t,n)}};const Ev=new Cv(()=>uI.new());var rc={exports:{}},$d={};/**
26
- * @license React
27
- * use-sync-external-store-with-selector.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var Cg;function dI(){if(Cg)return $d;Cg=1;var e=H;function t(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,o=e.useRef,i=e.useEffect,l=e.useMemo,a=e.useDebugValue;return $d.useSyncExternalStoreWithSelector=function(c,u,d,p,h){var f=o(null);if(f.current===null){var y={hasValue:!1,value:null};f.current=y}else y=f.current;f=l(function(){function v(E){if(!x){if(x=!0,S=E,E=p(E),h!==void 0&&y.hasValue){var T=y.value;if(h(T,E))return w=T}return w=E}if(T=w,n(S,E))return T;var N=p(E);return h!==void 0&&h(T,N)?(S=E,T):(S=E,w=N)}var x=!1,S,w,k=d===void 0?null:d;return[function(){return v(u())},k===null?void 0:function(){return v(k())}]},[u,d,p,h]);var g=r(c,f[0],f[1]);return i(function(){y.hasValue=!0,y.value=g},[g]),a(g),g},$d}var Nd={};/**
34
- * @license React
35
- * use-sync-external-store-with-selector.development.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var wg;function pI(){return wg||(wg=1,process.env.NODE_ENV!=="production"&&(function(){function e(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=H,n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,o=t.useRef,i=t.useEffect,l=t.useMemo,a=t.useDebugValue;Nd.useSyncExternalStoreWithSelector=function(c,u,d,p,h){var f=o(null);if(f.current===null){var y={hasValue:!1,value:null};f.current=y}else y=f.current;f=l(function(){function v(E){if(!x){if(x=!0,S=E,E=p(E),h!==void 0&&y.hasValue){var T=y.value;if(h(T,E))return w=T}return w=E}if(T=w,n(S,E))return T;var N=p(E);return h!==void 0&&h(T,N)?(S=E,T):(S=E,w=N)}var x=!1,S,w,k=d===void 0?null:d;return[function(){return v(u())},k===null?void 0:function(){return v(k())}]},[u,d,p,h]);var g=r(c,f[0],f[1]);return i(function(){y.hasValue=!0,y.value=g},[g]),a(g),g},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Nd}var Sg;function fI(){return Sg||(Sg=1,process.env.NODE_ENV==="production"?rc.exports=dI():rc.exports=pI()),rc.exports}var mI=fI();function Tv(e,t,n=Sv){return mI.useSyncExternalStoreWithSelector(Vt(r=>e.subscribe(hI,r)),Vt(()=>e.state),Vt(()=>e.state),Vt(t),n)}function hI(e){return e}function ga(e,t){let n=H.useId(),r=Ev.get(t),[o,i]=Tv(r,H.useCallback(l=>[r.selectors.isTop(l,n),r.selectors.inStack(l,n)],[r,n]));return _n(()=>{if(e)return r.actions.push(n),()=>r.actions.pop(n)},[r,e,n]),e?i?o:!0:!1}let Ap=new Map,jl=new Map;function kg(e){var t;let n=(t=jl.get(e))!=null?t:0;return jl.set(e,n+1),n!==0?()=>Eg(e):(Ap.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Eg(e))}function Eg(e){var t;let n=(t=jl.get(e))!=null?t:1;if(n===1?jl.delete(e):jl.set(e,n-1),n!==1)return;let r=Ap.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,Ap.delete(e))}function gI(e,{allowed:t,disallowed:n}={}){let r=ga(e,"inert-others");_n(()=>{var o,i;if(!r)return;let l=Io();for(let c of(o=n==null?void 0:n())!=null?o:[])c&&l.add(kg(c));let a=(i=t==null?void 0:t())!=null?i:[];for(let c of a){if(!c)continue;let u=ma(c);if(!u)continue;let d=c.parentElement;for(;d&&d!==u.body;){for(let p of d.children)a.some(h=>p.contains(h))||l.add(kg(p));d=d.parentElement}}return l.dispose},[r,t,n])}function bI(e,t,n){let r=Ds(o=>{let i=o.getBoundingClientRect();i.x===0&&i.y===0&&i.width===0&&i.height===0&&n()});H.useEffect(()=>{if(!e)return;let o=t===null?null:Ps(t)?t:t.current;if(!o)return;let i=Io();if(typeof ResizeObserver!="undefined"){let l=new ResizeObserver(()=>r.current(o));l.observe(o),i.add(()=>l.disconnect())}if(typeof IntersectionObserver!="undefined"){let l=new IntersectionObserver(()=>r.current(o));l.observe(o),i.add(()=>l.disconnect())}return()=>i.dispose()},[t,r,e])}let Bc=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),yI=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var yo=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(yo||{}),Dp=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Dp||{}),vI=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(vI||{});function xI(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Bc)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function CI(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(yI)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Iv=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Iv||{});function wI(e,t=0){var n;return e===((n=ma(e))==null?void 0:n.body)?!1:wo(t,{0(){return e.matches(Bc)},1(){let r=e;for(;r!==null;){if(r.matches(Bc))return!0;r=r.parentElement}return!1}})}var SI=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(SI||{});typeof window!="undefined"&&typeof document!="undefined"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function xo(e){e==null||e.focus({preventScroll:!0})}let kI=["textarea","input"].join(",");function EI(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,kI))!=null?n:!1}function TI(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let l=o.compareDocumentPosition(i);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Ll(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?$p(e[0]):document:$p(e),l=Array.isArray(e)?n?TI(e):e:t&64?CI(e):xI(e);o.length>0&&l.length>1&&(l=l.filter(f=>!o.some(y=>y!=null&&"current"in y?(y==null?void 0:y.current)===f:y===f))),r=r!=null?r:i==null?void 0:i.activeElement;let a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(r))-1;if(t&4)return Math.max(0,l.indexOf(r))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},d=0,p=l.length,h;do{if(d>=p||d+p<=0)return 0;let f=c+d;if(t&16)f=(f+p)%p;else{if(f<0)return 3;if(f>=p)return 1}h=l[f],h==null||h.focus(u),d+=a}while(h!==hv(h));return t&6&&EI(h)&&h.select(),2}function Pv(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function II(){return/Android/gi.test(window.navigator.userAgent)}function Tg(){return Pv()||II()}function oc(e,t,n,r){let o=Ds(n);H.useEffect(()=>{if(!e)return;function i(l){o.current(l)}return document.addEventListener(t,i,r),()=>document.removeEventListener(t,i,r)},[e,t,r])}function Ov(e,t,n,r){let o=Ds(n);H.useEffect(()=>{if(!e)return;function i(l){o.current(l)}return window.addEventListener(t,i,r),()=>window.removeEventListener(t,i,r)},[e,t,r])}const Ig=30;function PI(e,t,n){let r=Ds(n),o=H.useCallback(function(a,c){if(a.defaultPrevented)return;let u=c(a);if(u===null||!u.getRootNode().contains(u)||!u.isConnected)return;let d=(function p(h){return typeof h=="function"?p(h()):Array.isArray(h)||h instanceof Set?h:[h]})(t);for(let p of d)if(p!==null&&(p.contains(u)||a.composed&&a.composedPath().includes(p)))return;return!wI(u,Iv.Loose)&&u.tabIndex!==-1&&a.preventDefault(),r.current(a,u)},[r,t]),i=H.useRef(null);oc(e,"pointerdown",a=>{var c,u;Tg()||(i.current=((u=(c=a.composedPath)==null?void 0:c.call(a))==null?void 0:u[0])||a.target)},!0),oc(e,"pointerup",a=>{if(Tg()||!i.current)return;let c=i.current;return i.current=null,o(a,()=>c)},!0);let l=H.useRef({x:0,y:0});oc(e,"touchstart",a=>{l.current.x=a.touches[0].clientX,l.current.y=a.touches[0].clientY},!0),oc(e,"touchend",a=>{let c={x:a.changedTouches[0].clientX,y:a.changedTouches[0].clientY};if(!(Math.abs(c.x-l.current.x)>=Ig||Math.abs(c.y-l.current.y)>=Ig))return o(a,()=>zo(a.target)?a.target:null)},!0),Ov(e,"blur",a=>o(a,()=>UT(window.document.activeElement)?window.document.activeElement:null),!0)}function Jf(...e){return H.useMemo(()=>ma(...e),[...e])}function Mv(e,t,n,r){let o=Ds(n);H.useEffect(()=>{e=e!=null?e:window;function i(l){o.current(l)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function OI(e){return H.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}function MI(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let l=t[o].call(n,...i);l&&(n=l,r.forEach(a=>a()))}}}function RI(){let e;return{before({doc:t}){var n;let r=t.documentElement,o=(n=t.defaultView)!=null?n:window;e=Math.max(0,o.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),i=Math.max(0,e-o);n.style(r,"paddingRight",`${i}px`)}}}function jI(){return Pv()?{before({doc:e,d:t,meta:n}){function r(o){for(let i of n().containers)for(let l of i())if(l.contains(o))return!0;return!1}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=Io();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let i=(o=window.scrollY)!=null?o:window.pageYOffset,l=null;t.addEventListener(e,"click",a=>{if(zo(a.target))try{let c=a.target.closest("a");if(!c)return;let{hash:u}=new URL(c.href),d=e.querySelector(u);zo(d)&&!r(d)&&(l=d)}catch(c){}},!0),t.group(a=>{t.addEventListener(e,"touchstart",c=>{if(a.dispose(),zo(c.target)&&WT(c.target))if(r(c.target)){let u=c.target;for(;u.parentElement&&r(u.parentElement);)u=u.parentElement;a.style(u,"overscrollBehavior","contain")}else a.style(c.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",a=>{if(zo(a.target)){if(qT(a.target))return;if(r(a.target)){let c=a.target;for(;c.parentElement&&c.dataset.headlessuiPortal!==""&&!(c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth);)c=c.parentElement;c.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let c=(a=window.scrollY)!=null?a:window.pageYOffset;i!==c&&window.scrollTo(0,i),l&&l.isConnected&&(l.scrollIntoView({block:"nearest"}),l=null)})})}}:{}}function LI(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function Pg(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let vs=MI(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Io(),meta:new Set,computedMeta:{}};return r.count++,r.meta.add(t),r.computedMeta=Pg(r.meta),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t),n.computedMeta=Pg(n.meta)),this},SCROLL_PREVENT(e){let t={doc:e.doc,d:e.d,meta(){return e.computedMeta}},n=[jI(),RI(),LI()];n.forEach(({before:r})=>r==null?void 0:r(t)),n.forEach(({after:r})=>r==null?void 0:r(t))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});vs.subscribe(()=>{let e=vs.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&vs.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&vs.dispatch("TEARDOWN",n)}});function $I(e,t,n=()=>({containers:[]})){let r=OI(vs),o=t?r.get(t):void 0,i=o?o.count>0:!1;return _n(()=>{if(!(!t||!e))return vs.dispatch("PUSH",t,n),()=>vs.dispatch("POP",t,n)},[e,t]),i}function NI(e,t,n=()=>[document.body]){let r=ga(e,"scroll-lock");$I(r,t,o=>{var i;return{containers:[...(i=o.containers)!=null?i:[],n]}})}function FI(e=0){let[t,n]=H.useState(e),r=H.useCallback(c=>n(c),[]),o=H.useCallback(c=>n(u=>u|c),[]),i=H.useCallback(c=>(t&c)===c,[t]),l=H.useCallback(c=>n(u=>u&~c),[]),a=H.useCallback(c=>n(u=>u^c),[]);return{flags:t,setFlag:r,addFlag:o,hasFlag:i,removeFlag:l,toggleFlag:a}}var Og,Mg;typeof process!="undefined"&&typeof globalThis!="undefined"&&typeof Element!="undefined"&&((Og=process==null?void 0:process.env)==null?void 0:Og.NODE_ENV)==="test"&&typeof((Mg=Element==null?void 0:Element.prototype)==null?void 0:Mg.getAnimations)=="undefined"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
42
- `)),[]});var AI=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(AI||{});function DI(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function _I(e,t,n,r){let[o,i]=H.useState(n),{hasFlag:l,addFlag:a,removeFlag:c}=FI(e&&o?3:0),u=H.useRef(!1),d=H.useRef(!1),p=Su();return _n(()=>{var h;if(e){if(n&&i(!0),!t){n&&a(3);return}return(h=r==null?void 0:r.start)==null||h.call(r,n),zI(t,{inFlight:u,prepare(){d.current?d.current=!1:d.current=u.current,u.current=!0,!d.current&&(n?(a(3),c(4)):(a(4),c(2)))},run(){d.current?n?(c(3),a(4)):(c(4),a(3)):n?c(1):a(1)},done(){var f;d.current&&HI(t)||(u.current=!1,c(7),n||i(!1),(f=r==null?void 0:r.end)==null||f.call(r,n))}})}},[e,n,t,p]),e?[o,{closed:l(1),enter:l(2),leave:l(4),transition:l(2)||l(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function zI(e,{prepare:t,run:n,done:r,inFlight:o}){let i=Io();return VI(e,{prepare:t,inFlight:o}),i.nextFrame(()=>{n(),i.requestAnimationFrame(()=>{i.add(BI(e,r))})}),i.dispose}function BI(e,t){var n,r;let o=Io();if(!e)return o.dispose;let i=!1;o.add(()=>{i=!0});let l=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(a=>a instanceof CSSTransition))!=null?r:[];return l.length===0?(t(),o.dispose):(Promise.allSettled(l.map(a=>a.finished)).then(()=>{i||t()}),o.dispose)}function VI(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}function HI(e){var t,n;return((n=(t=e.getAnimations)==null?void 0:t.call(e))!=null?n:[]).some(r=>r instanceof CSSTransition&&r.playState!=="finished")}function em(e,t){let n=H.useRef([]),r=Vt(e);H.useEffect(()=>{let o=[...n.current];for(let[i,l]of t.entries())if(n.current[i]!==l){let a=r(t,o);return n.current=t,a}},[r,...t])}let ku=H.createContext(null);ku.displayName="OpenClosedContext";var Nr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Nr||{});function Eu(){return H.useContext(ku)}function GI({value:e,children:t}){return H.createElement(ku.Provider,{value:e},t)}function WI({children:e}){return H.createElement(ku.Provider,{value:null},e)}function UI(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window!="undefined"&&typeof document!="undefined"&&(document.addEventListener("DOMContentLoaded",t),t())}let Ao=[];UI(()=>{function e(t){if(!zo(t.target)||t.target===document.body||Ao[0]===t.target)return;let n=t.target;n=n.closest(Bc),Ao.unshift(n!=null?n:t.target),Ao=Ao.filter(r=>r!=null&&r.isConnected),Ao.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Rv(e){let t=Vt(e),n=H.useRef(!1);H.useEffect(()=>(n.current=!1,()=>{n.current=!0,wu(()=>{n.current&&t()})}),[t])}function qI(){let e=typeof document=="undefined";return"useSyncExternalStore"in b?(t=>t.useSyncExternalStore)(b)(()=>()=>{},()=>!1,()=>!e):!1}function ba(){let e=qI(),[t,n]=b.useState(eo.isHandoffComplete);return t&&eo.isHandoffComplete===!1&&n(!1),b.useEffect(()=>{t!==!0&&n(!0)},[t]),b.useEffect(()=>eo.handoff(),[]),e?!1:t}let jv=H.createContext(!1);function KI(){return H.useContext(jv)}function Rg(e){return H.createElement(jv.Provider,{value:e.force},e.children)}function YI(e){let t=KI(),n=H.useContext($v),[r,o]=H.useState(()=>{var i;if(!t&&n!==null)return(i=n.current)!=null?i:null;if(eo.isServer)return null;let l=e==null?void 0:e.getElementById("headlessui-portal-root");if(l)return l;if(e===null)return null;let a=e.createElement("div");return a.setAttribute("id","headlessui-portal-root"),e.body.appendChild(a)});return H.useEffect(()=>{r!==null&&(e!=null&&e.body.contains(r)||e==null||e.body.appendChild(r))},[r,e]),H.useEffect(()=>{t||n!==null&&o(n.current)},[n,o,t]),r}let Lv=H.Fragment,XI=Wn(function(e,t){let{ownerDocument:n=null,...r}=e,o=H.useRef(null),i=po(KT(f=>{o.current=f}),t),l=Jf(o.current),a=n!=null?n:l,c=YI(a),u=H.useContext(_p),d=Su(),p=ba(),h=Sr();return Rv(()=>{var f;c&&c.childNodes.length<=0&&((f=c.parentElement)==null||f.removeChild(c))}),!c||!p?null:ci.createPortal(H.createElement("div",{"data-headlessui-portal":"",ref:f=>{d.dispose(),u&&f&&d.add(u.register(f))}},h({ourProps:{ref:i},theirProps:r,slot:{},defaultTag:Lv,name:"Portal"})),c)});function ZI(e,t){let n=po(t),{enabled:r=!0,ownerDocument:o,...i}=e,l=Sr();return r?H.createElement(XI,{...i,ownerDocument:o,ref:n}):l({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:Lv,name:"Portal"})}let QI=H.Fragment,$v=H.createContext(null);function JI(e,t){let{target:n,...r}=e,o={ref:po(t)},i=Sr();return H.createElement($v.Provider,{value:n},i({ourProps:o,theirProps:r,defaultTag:QI,name:"Popover.Group"}))}let _p=H.createContext(null);function e5(){let e=H.useContext(_p),t=H.useRef([]),n=Vt(i=>(t.current.push(i),e&&e.register(i),()=>r(i))),r=Vt(i=>{let l=t.current.indexOf(i);l!==-1&&t.current.splice(l,1),e&&e.unregister(i)}),o=H.useMemo(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,H.useMemo(()=>function({children:i}){return H.createElement(_p.Provider,{value:o},i)},[o])]}let t5=Wn(ZI),Nv=Wn(JI),n5=Object.assign(t5,{Group:Nv});function r5(e,t=typeof document!="undefined"?document.defaultView:null,n){let r=ga(e,"escape");Mv(t,"keydown",o=>{r&&(o.defaultPrevented||o.key===xv.Escape&&n(o))})}function o5(){var e;let[t]=H.useState(()=>typeof window!="undefined"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=H.useState((e=t==null?void 0:t.matches)!=null?e:!1);return _n(()=>{if(!t)return;function o(i){r(i.matches)}return t.addEventListener("change",o),()=>t.removeEventListener("change",o)},[t]),n}function s5({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=Vt(()=>{var o,i;let l=ma(n),a=[];for(let c of e)c!==null&&(Vo(c)?a.push(c):"current"in c&&Vo(c.current)&&a.push(c.current));if(t!=null&&t.current)for(let c of t.current)a.push(c);for(let c of(o=l==null?void 0:l.querySelectorAll("html > *, body > *"))!=null?o:[])c!==document.body&&c!==document.head&&Vo(c)&&c.id!=="headlessui-portal-root"&&(n&&(c.contains(n)||c.contains((i=n==null?void 0:n.getRootNode())==null?void 0:i.host))||a.some(u=>c.contains(u))||a.push(c));return a});return{resolveContainers:r,contains:Vt(o=>r().some(i=>i.contains(o)))}}let Fv=H.createContext(null);function jg({children:e,node:t}){let[n,r]=H.useState(null),o=Av(t!=null?t:n);return H.createElement(Fv.Provider,{value:o},e,o===null&&H.createElement(Fp,{features:zc.Hidden,ref:i=>{var l,a;if(i){for(let c of(a=(l=ma(i))==null?void 0:l.querySelectorAll("html > *, body > *"))!=null?a:[])if(c!==document.body&&c!==document.head&&Vo(c)&&c!=null&&c.contains(i)){r(c);break}}}}))}function Av(e=null){var t;return(t=H.useContext(Fv))!=null?t:e}function tm(){let e=H.useRef(!1);return _n(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var wl=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(wl||{});function i5(){let e=H.useRef(0);return Ov(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Dv(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)Vo(n.current)&&t.add(n.current);return t}let l5="div";var bs=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(bs||{});function a5(e,t){let n=H.useRef(null),r=po(n,t),{initialFocus:o,initialFocusFallback:i,containers:l,features:a=15,...c}=e;ba()||(a=0);let u=Jf(n.current);p5(a,{ownerDocument:u});let d=f5(a,{ownerDocument:u,container:n,initialFocus:o,initialFocusFallback:i});m5(a,{ownerDocument:u,container:n,containers:l,previousActiveElement:d});let p=i5(),h=Vt(S=>{if(!Ps(n.current))return;let w=n.current;(k=>k())(()=>{wo(p.current,{[wl.Forwards]:()=>{Ll(w,yo.First,{skipElements:[S.relatedTarget,i]})},[wl.Backwards]:()=>{Ll(w,yo.Last,{skipElements:[S.relatedTarget,i]})}})})}),f=ga(!!(a&2),"focus-trap#tab-lock"),y=Su(),g=H.useRef(!1),v={ref:r,onKeyDown(S){S.key=="Tab"&&(g.current=!0,y.requestAnimationFrame(()=>{g.current=!1}))},onBlur(S){if(!(a&4))return;let w=Dv(l);Ps(n.current)&&w.add(n.current);let k=S.relatedTarget;zo(k)&&k.dataset.headlessuiFocusGuard!=="true"&&(_v(w,k)||(g.current?Ll(n.current,wo(p.current,{[wl.Forwards]:()=>yo.Next,[wl.Backwards]:()=>yo.Previous})|yo.WrapAround,{relativeTo:S.target}):zo(S.target)&&xo(S.target)))}},x=Sr();return H.createElement(H.Fragment,null,f&&H.createElement(Fp,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:zc.Focusable}),x({ourProps:v,theirProps:c,defaultTag:l5,name:"FocusTrap"}),f&&H.createElement(Fp,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:zc.Focusable}))}let c5=Wn(a5),u5=Object.assign(c5,{features:bs});function d5(e=!0){let t=H.useRef(Ao.slice());return em(([n],[r])=>{r===!0&&n===!1&&wu(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Ao.slice())},[e,Ao,t]),Vt(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function p5(e,{ownerDocument:t}){let n=!!(e&8),r=d5(n);em(()=>{n||$T(t==null?void 0:t.body)&&xo(r())},[n]),Rv(()=>{n&&xo(r())})}function f5(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:o}){let i=H.useRef(null),l=ga(!!(e&1),"focus-trap#initial-focus"),a=tm();return em(()=>{if(e===0)return;if(!l){o!=null&&o.current&&xo(o.current);return}let c=n.current;c&&wu(()=>{if(!a.current)return;let u=t==null?void 0:t.activeElement;if(r!=null&&r.current){if((r==null?void 0:r.current)===u){i.current=u;return}}else if(c.contains(u)){i.current=u;return}if(r!=null&&r.current)xo(r.current);else{if(e&16){if(Ll(c,yo.First|yo.AutoFocus)!==Dp.Error)return}else if(Ll(c,yo.First)!==Dp.Error)return;if(o!=null&&o.current&&(xo(o.current),(t==null?void 0:t.activeElement)===o.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}i.current=t==null?void 0:t.activeElement})},[o,l,e]),i}function m5(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:o}){let i=tm(),l=!!(e&4);Mv(t==null?void 0:t.defaultView,"focus",a=>{if(!l||!i.current)return;let c=Dv(r);Ps(n.current)&&c.add(n.current);let u=o.current;if(!u)return;let d=a.target;Ps(d)?_v(c,d)?(o.current=d,xo(d)):(a.preventDefault(),a.stopPropagation(),xo(u)):xo(o.current)},!0)}function _v(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function zv(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||!Rl((t=e.as)!=null?t:Vv)||H.Children.count(e.children)===1}let Tu=H.createContext(null);Tu.displayName="TransitionContext";var h5=(e=>(e.Visible="visible",e.Hidden="hidden",e))(h5||{});function g5(){let e=H.useContext(Tu);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function b5(){let e=H.useContext(Iu);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Iu=H.createContext(null);Iu.displayName="NestingContext";function Pu(e){return"children"in e?Pu(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Bv(e,t){let n=Ds(e),r=H.useRef([]),o=tm(),i=Su(),l=Vt((f,y=_o.Hidden)=>{let g=r.current.findIndex(({el:v})=>v===f);g!==-1&&(wo(y,{[_o.Unmount](){r.current.splice(g,1)},[_o.Hidden](){r.current[g].state="hidden"}}),i.microTask(()=>{var v;!Pu(r)&&o.current&&((v=n.current)==null||v.call(n))}))}),a=Vt(f=>{let y=r.current.find(({el:g})=>g===f);return y?y.state!=="visible"&&(y.state="visible"):r.current.push({el:f,state:"visible"}),()=>l(f,_o.Unmount)}),c=H.useRef([]),u=H.useRef(Promise.resolve()),d=H.useRef({enter:[],leave:[]}),p=Vt((f,y,g)=>{c.current.splice(0),t&&(t.chains.current[y]=t.chains.current[y].filter(([v])=>v!==f)),t==null||t.chains.current[y].push([f,new Promise(v=>{c.current.push(v)})]),t==null||t.chains.current[y].push([f,new Promise(v=>{Promise.all(d.current[y].map(([x,S])=>S)).then(()=>v())})]),y==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>g(y)):g(y)}),h=Vt((f,y,g)=>{Promise.all(d.current[y].splice(0).map(([v,x])=>x)).then(()=>{var v;(v=c.current.shift())==null||v()}).then(()=>g(y))});return H.useMemo(()=>({children:r,register:a,unregister:l,onStart:p,onStop:h,wait:u,chains:d}),[a,l,r,p,h,d,u])}let Vv=H.Fragment,Hv=_c.RenderStrategy;function y5(e,t){var n,r;let{transition:o=!0,beforeEnter:i,afterEnter:l,beforeLeave:a,afterLeave:c,enter:u,enterFrom:d,enterTo:p,entered:h,leave:f,leaveFrom:y,leaveTo:g,...v}=e,[x,S]=H.useState(null),w=H.useRef(null),k=zv(e),E=po(...k?[w,t,S]:t===null?[]:[t]),T=(n=v.unmount)==null||n?_o.Unmount:_o.Hidden,{show:N,appear:P,initial:O}=g5(),[j,$]=H.useState(N?"visible":"hidden"),C=b5(),{register:L,unregister:F}=C;_n(()=>L(w),[L,w]),_n(()=>{if(T===_o.Hidden&&w.current){if(N&&j!=="visible"){$("visible");return}return wo(j,{hidden:()=>F(w),visible:()=>L(w)})}},[j,w,L,F,N,T]);let M=ba();_n(()=>{if(k&&M&&j==="visible"&&w.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[w,j,M,k]);let R=O&&!P,_=P&&N&&O,V=H.useRef(!1),W=Bv(()=>{V.current||($("hidden"),F(w))},C),I=Vt(q=>{V.current=!0;let Z=q?"enter":"leave";W.onStart(w,Z,X=>{X==="enter"?i==null||i():X==="leave"&&(a==null||a())})}),D=Vt(q=>{let Z=q?"enter":"leave";V.current=!1,W.onStop(w,Z,X=>{X==="enter"?l==null||l():X==="leave"&&(c==null||c())}),Z==="leave"&&!Pu(W)&&($("hidden"),F(w))});H.useEffect(()=>{k&&o||(I(N),D(N))},[N,k,o]);let G=!(!o||!k||!M||R),[,A]=_I(G,x,N,{start:I,end:D}),K=ps({ref:E,className:((r=Np(v.className,_&&u,_&&d,A.enter&&u,A.enter&&A.closed&&d,A.enter&&!A.closed&&p,A.leave&&f,A.leave&&!A.closed&&y,A.leave&&A.closed&&g,!A.transition&&N&&h))==null?void 0:r.trim())||void 0,...DI(A)}),Y=0;j==="visible"&&(Y|=Nr.Open),j==="hidden"&&(Y|=Nr.Closed),N&&j==="hidden"&&(Y|=Nr.Opening),!N&&j==="visible"&&(Y|=Nr.Closing);let U=Sr();return H.createElement(Iu.Provider,{value:W},H.createElement(GI,{value:Y},U({ourProps:K,theirProps:v,defaultTag:Vv,features:Hv,visible:j==="visible",name:"Transition.Child"})))}function v5(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,l=H.useRef(null),a=zv(e),c=po(...a?[l,t]:t===null?[]:[t]);ba();let u=Eu();if(n===void 0&&u!==null&&(n=(u&Nr.Open)===Nr.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,p]=H.useState(n?"visible":"hidden"),h=Bv(()=>{n||p("hidden")}),[f,y]=H.useState(!0),g=H.useRef([n]);_n(()=>{f!==!1&&g.current[g.current.length-1]!==n&&(g.current.push(n),y(!1))},[g,n]);let v=H.useMemo(()=>({show:n,appear:r,initial:f}),[n,r,f]);_n(()=>{n?p("visible"):!Pu(h)&&l.current!==null&&p("hidden")},[n,h]);let x={unmount:o},S=Vt(()=>{var E;f&&y(!1),(E=e.beforeEnter)==null||E.call(e)}),w=Vt(()=>{var E;f&&y(!1),(E=e.beforeLeave)==null||E.call(e)}),k=Sr();return H.createElement(Iu.Provider,{value:h},H.createElement(Tu.Provider,{value:v},k({ourProps:{...x,as:H.Fragment,children:H.createElement(Gv,{ref:c,...x,...i,beforeEnter:S,beforeLeave:w})},theirProps:{},defaultTag:H.Fragment,features:Hv,visible:d==="visible",name:"Transition"})))}function x5(e,t){let n=H.useContext(Tu)!==null,r=Eu()!==null;return H.createElement(H.Fragment,null,!n&&r?H.createElement(zp,{ref:t,...e}):H.createElement(Gv,{ref:t,...e}))}let zp=Wn(v5),Gv=Wn(y5),Ul=Wn(x5),Wv=Object.assign(zp,{Child:Ul,Root:zp});var C5=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(C5||{}),w5=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(w5||{});let S5={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},nm=H.createContext(null);nm.displayName="DialogContext";function Ou(e){let t=H.useContext(nm);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ou),n}return t}function k5(e,t){return wo(t.type,S5,e,t)}let Lg=Wn(function(e,t){let n=H.useId(),{id:r=`headlessui-dialog-${n}`,open:o,onClose:i,initialFocus:l,role:a="dialog",autoFocus:c=!0,__demoMode:u=!1,unmount:d=!1,...p}=e,h=H.useRef(!1);a=(function(){return a==="dialog"||a==="alertdialog"?a:(h.current||(h.current=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")})();let f=Eu();o===void 0&&f!==null&&(o=(f&Nr.Open)===Nr.Open);let y=H.useRef(null),g=po(y,t),v=Jf(y.current),x=o?0:1,[S,w]=H.useReducer(k5,{titleId:null,descriptionId:null,panelRef:H.createRef()}),k=Vt(()=>i(!1)),E=Vt(A=>w({type:0,id:A})),T=ba()?x===0:!1,[N,P]=e5(),O={get current(){var A;return(A=S.panelRef.current)!=null?A:y.current}},j=Av(),{resolveContainers:$}=s5({mainTreeNode:j,portals:N,defaultContainers:[O]}),C=f!==null?(f&Nr.Closing)===Nr.Closing:!1;gI(u||C?!1:T,{allowed:Vt(()=>{var A,K;return[(K=(A=y.current)==null?void 0:A.closest("[data-headlessui-portal]"))!=null?K:null]}),disallowed:Vt(()=>{var A;return[(A=j==null?void 0:j.closest("body > *:not(#headlessui-portal-root)"))!=null?A:null]})});let L=Ev.get(null);_n(()=>{if(T)return L.actions.push(r),()=>L.actions.pop(r)},[L,r,T]);let F=Tv(L,H.useCallback(A=>L.selectors.isTop(A,r),[L,r]));PI(F,$,A=>{A.preventDefault(),k()}),r5(F,v==null?void 0:v.defaultView,A=>{A.preventDefault(),A.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),k()}),NI(u||C?!1:T,v,$),bI(T,y,k);let[M,R]=YT(),_=H.useMemo(()=>[{dialogState:x,close:k,setTitleId:E,unmount:d},S],[x,k,E,d,S]),V=ha({open:x===0}),W={ref:g,id:r,role:a,tabIndex:-1,"aria-modal":u?void 0:x===0?!0:void 0,"aria-labelledby":S.titleId,"aria-describedby":M,unmount:d},I=!o5(),D=bs.None;T&&!u&&(D|=bs.RestoreFocus,D|=bs.TabLock,c&&(D|=bs.AutoFocus),I&&(D|=bs.InitialFocus));let G=Sr();return H.createElement(WI,null,H.createElement(Rg,{force:!0},H.createElement(n5,null,H.createElement(nm.Provider,{value:_},H.createElement(Nv,{target:y},H.createElement(Rg,{force:!1},H.createElement(R,{slot:V},H.createElement(P,null,H.createElement(u5,{initialFocus:l,initialFocusFallback:y,containers:$,features:D},H.createElement(tI,{value:k},G({ourProps:W,theirProps:p,slot:V,defaultTag:E5,features:T5,visible:x===0,name:"Dialog"})))))))))))}),E5="div",T5=_c.RenderStrategy|_c.Static;function I5(e,t){let{transition:n=!1,open:r,...o}=e,i=Eu(),l=e.hasOwnProperty("open")||i!==null,a=e.hasOwnProperty("onClose");if(!l&&!a)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!l)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!a)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!i&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(r!==void 0||n)&&!o.static?H.createElement(jg,null,H.createElement(Wv,{show:r,transition:n,unmount:o.unmount},H.createElement(Lg,{ref:t,...o}))):H.createElement(jg,null,H.createElement(Lg,{ref:t,open:r,...o}))}let P5="div";function O5(e,t){let n=H.useId(),{id:r=`headlessui-dialog-panel-${n}`,transition:o=!1,...i}=e,[{dialogState:l,unmount:a},c]=Ou("Dialog.Panel"),u=po(t,c.panelRef),d=ha({open:l===0}),p=Vt(v=>{v.stopPropagation()}),h={ref:u,id:r,onClick:p},f=o?Ul:H.Fragment,y=o?{unmount:a}:{},g=Sr();return H.createElement(f,{...y},g({ourProps:h,theirProps:i,slot:d,defaultTag:P5,name:"Dialog.Panel"}))}let M5="div";function R5(e,t){let{transition:n=!1,...r}=e,[{dialogState:o,unmount:i}]=Ou("Dialog.Backdrop"),l=ha({open:o===0}),a={ref:t,"aria-hidden":!0},c=n?Ul:H.Fragment,u=n?{unmount:i}:{},d=Sr();return H.createElement(c,{...u},d({ourProps:a,theirProps:r,slot:l,defaultTag:M5,name:"Dialog.Backdrop"}))}let j5="h2";function L5(e,t){let n=H.useId(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:l}]=Ou("Dialog.Title"),a=po(t);H.useEffect(()=>(l(r),()=>l(null)),[r,l]);let c=ha({open:i===0}),u={ref:a,id:r};return Sr()({ourProps:u,theirProps:o,slot:c,defaultTag:j5,name:"Dialog.Title"})}let $5=Wn(I5),Uv=Wn(O5);Wn(R5);let qv=Wn(L5),N5=Object.assign($5,{Panel:Uv,Title:qv,Description:JT});const F5=({open:e=!1,onClose:t,title:n="",backdrop:r="static",content:o,footer:i,icon:l=!1,iconComponent:a,iconName:c=void 0,dismissible:u=!0,horizontalRule:d=!0})=>{const p=()=>a?m.jsx(m.Fragment,{children:a}):l&&c?m.jsx(io,{name:c,size:"medium"}):null,h=()=>r==="dismissible"?t():!0;return m.jsx(Wv,{appear:!0,show:e,as:H.Fragment,children:m.jsxs(N5,{as:"div",onClose:h,static:!0,className:"preflight ds:relative ds:z-20 ds:focus:outline-hidden",children:[r!=="none"&&m.jsx(Ul,{as:H.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:m.jsx("div",{className:"ds:fixed ds:inset-0 ds:bg-neutrals-transparent-medium ds:transition-opacity","aria-hidden":"true"})}),m.jsx("div",{className:"ds:fixed ds:inset-0 ds:z-20 ds:w-screen ds:overflow-y-auto",children:m.jsx("div",{className:"ds:flex ds:min-h-full ds:items-center ds:justify-center ds:p-4",children:m.jsx(Ul,{as:H.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:m.jsxs(Uv,{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:[m.jsxs("div",{className:`ds:flex ds:items-center ds:py-4 ${u?"ds:pl-5 ds:pr-3":"ds:px-5"}`,children:[l&&m.jsx("div",{className:"ds:mr-3",children:p()}),m.jsx(qv,{as:"div",className:"ds:flex-grow",children:m.jsx(Zf,{text:n,headingTag:"h2",size:"medium",hasMarginBottom:!1})}),u&&m.jsx(Cu,{variant:"default",iconSize:"small",iconName:"close",hasTooltip:!1,label:"Close",disabled:!1,onClick:()=>t()})]}),d&&m.jsx("hr",{className:"ds:border-neutrals-light"}),o&&m.jsx("div",{className:`ds:h-auto ds:max-h-[48.6rem] ds:grow ds:overflow-y-auto ds:px-5 ${i?"ds:py-4":"ds:pb-5 ds:pt-4"}`,children:o}),i&&m.jsx("div",{className:"ds:flex ds:justify-end ds:gap-x-4 ds:px-5 ds:py-4",children:i})]})})})})]})})},A5=Ht(["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"]}}}),Kv=({label:e,type:t="regular",color:n="default",dismissible:r=!1,dismissLabel:o="",className:i="",onDismiss:l,...a})=>{const c=a["aria-label"]||e;return m.jsxs("div",{className:an(A5({color:n,type:t}),i),"aria-label":c,...a,children:[m.jsx("div",{className:"ds:max-w-[200px] ds:truncate ds:leading-6",children:e}),r&&m.jsx(Cu,{variant:"small",iconName:"close",label:o||"dismiss",disabled:!1,onClick:()=>l&&l(),className:"ds:ms-1",isTransparent:!0})]})},D5=Ht(["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"]}}}),_5=({title:e,id:t,handleClick:n,isActive:r,isNested:o=!1,badgeText:i="",className:l="",...a})=>{const c=(u,d,p)=>an(D5({isNested:u}),d&&!u&&"ds:border-b-acuity-green!",d&&u&&"ds:bg-neutrals-white ds:border-neutrals!",p);return m.jsxs("button",{className:c(o,r,l),role:"tab",id:`tab-${t}`,"aria-controls":`panel-${t}`,"aria-selected":r,onClick:n,...a,children:[e,i&&m.jsx(Kv,{label:i,className:"ds:ml-2 ds:h-5 ds:bg-neutrals-white ds:text-neutrals-black"})]})},z5=({id:e,children:t,hidden:n})=>m.jsx("div",{role:"tabpanel",id:`panel-${e}`,"aria-labelledby":`tab-${e}`,hidden:n,className:"preflight",children:t}),B5=({children:e,handleTabChange:t,activeTabIndex:n,isNested:r,className:o="",...i})=>{const l=H.Children.toArray(e).filter(a=>{var c,u;return H.isValidElement(a)&&!!((c=a.props)!=null&&c.id)&&!!((u=a.props)!=null&&u.title)});return l.length<H.Children.toArray(e).length&&console.error("You can only pass <Tab> components with defined id and title as children of the <Tabs> component."),m.jsxs("div",{className:`preflight ${o}`,...i,children:[m.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)=>m.jsx(_5,{handleClick:()=>t(c),isActive:n===c,badgeText:a.props.badgeText,isNested:r,...a.props},`tab-${c}`))}),l.map((a,c)=>m.jsx(z5,{id:a.props.id,hidden:n!==c,children:a.props.children},`panel-${c}`))]})},V5=({children:e})=>e,H5=Ht(["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!"}}}),G5=e=>an(H5(e)),Yv=({id:e,state:t="default",disabled:n=!1,htmlFor:r,value:o="",optionalityLabel:i=""})=>m.jsxs("label",{id:e,htmlFor:r,className:G5({state:t,disabled:n}),children:[o,i&&m.jsx("span",{className:"ds:text-sm ds:text-neutrals-darker",children:` (${i})`})]}),W5=Ht(["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"]}]}),U5=e=>an(W5(e)),q5=Ht(["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!"}}}),K5=e=>an(q5(e)),rm=({id:e,state:t="default",disabled:n=!1,label:r="",optionalityLabel:o="",helpText:i=[],message:l="",child:a,isTextarea:c=!1,className:u="",hasMarginBottom:d=!0})=>{let p=null;switch(t){case"error":p={name:"error",color:"ds:text-danger-red"};break;case"success":p={name:"checkCircle",color:"ds:text-success-green"};break}const h=r?"label_"+e:void 0,f=i&&i.length>0?"helptext_"+e:void 0;return m.jsxs("div",{className:an(U5({state:t,hasMarginBottom:d}),u),children:[r&&m.jsx(Yv,{id:h,htmlFor:e,value:r,optionalityLabel:o,disabled:n}),i&&i.length>1&&m.jsx("ul",{id:f,className:"ds:mt-2 ds:pb-1 ds:pl-6",children:i==null?void 0:i.map((y,g)=>m.jsx("li",{className:"ds:list-disc ds:text-neutrals-dark",children:y},g))}),i&&i.length===1&&m.jsx("p",{id:f,className:"ds:mt-2 ds:pb-1 ds:text-neutrals-dark",children:i}),m.jsxs("div",{className:"ds:mt-2 ds:flex ds:gap-2",children:[m.jsx("div",{className:c?"":"ds:w-[calc(100%-2rem)]",children:a}),m.jsx("div",{className:"ds:pt-2",children:p&&m.jsx(io,{name:p.name,size:"medium",className:p.color,role:"graphics-symbol"})})]}),p&&m.jsx("p",{className:K5({state:t,hasMarginBottom:d}),children:l})]})},Y5=Ht(["preflight","ds:form-input","ds:rounded","ds:p-2","ds:border!","ds:font-sans!"],Xf),X5=e=>an(Y5(e)),Xv=({state:e="default",rows:t=2,cols:n=50,isResizable:r=!0,disabled:o=!1,...i})=>m.jsx("textarea",{"aria-invalid":e=="error",rows:t,cols:n,readOnly:o,className:X5({disabled:o,state:e}),style:{resize:r?"both":"none"},...i}),Z5=({id:e,state:t="default",label:n,rows:r=2,cols:o=50,isResizable:i=!0,optionalityLabel:l="",helpText:a=[],message:c="",disabled:u=!1,className:d="",hasMarginBottom:p=!0,onBlur:h,...f})=>m.jsx(rm,{id:e,state:t,disabled:u,label:n,optionalityLabel:l,helpText:a,message:c,isTextarea:!0,className:d,hasMarginBottom:p,child:m.jsx(Xv,{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:i,disabled:u,onBlur:h,...f})}),Q5=Ht(["preflight","ds:form-input","ds:h-[40px]","ds:rounded","ds:p-2","ds:border!","ds:font-sans!","ds:container"],Xf),J5=e=>an(Q5(e)),Zv=H.forwardRef(({state:e="default",disabled:t=!1,type:n="text",...r},o)=>m.jsx("input",{"aria-disabled":t,readOnly:t,type:n,className:J5({disabled:t,state:e}),ref:o,...r})),eP=H.forwardRef(({id:e,state:t="default",disabled:n=!1,type:r="text",label:o,optionalityLabel:i="",helpText:l=[],message:a="",className:c="",hasMarginBottom:u=!0,onBlur:d,...p},h)=>m.jsx(rm,{id:e,state:t,disabled:n,label:o,optionalityLabel:i,helpText:l,message:a,className:c,hasMarginBottom:u,child:m.jsx(Zv,{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:h,onBlur:d,...p})})),tP=Ht(["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]"],Xf),nP=e=>tP(e),rP=`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>')`,Qv=H.forwardRef(({state:e="default",disabled:t=!1,className:n="",...r},o)=>{const{onClick:i,onKeyDown:l,onMouseDown:a,...c}=r;return m.jsx("select",{ref:o,"aria-disabled":t,style:{backgroundImage:rP},className:an(nP({disabled:t,state:e}),n),onClick:u=>nT(u,t,i!=null?i:(()=>{})),onKeyDown:u=>rT(u,t,l!=null?l:(()=>{})),onMouseDown:u=>oT(u,t,a!=null?a:(()=>{})),...c,children:r.children})}),oP=H.forwardRef(({id:e,state:t="default",disabled:n=!1,label:r,optionalityLabel:o="",helpText:i=[],message:l="",className:a="",hasMarginBottom:c=!0,onBlur:u,...d},p)=>m.jsx(rm,{id:e,state:t,disabled:n,label:r,optionalityLabel:o,helpText:i,message:l,className:a,hasMarginBottom:c,child:m.jsx(Qv,{id:e,"aria-labelledby":r?"label_"+e:void 0,"aria-describedby":i&&i.length>0?"helptext_"+e:void 0,state:t,disabled:n,onBlur:u,ref:p,...d})})),sP=Ht("ds:overflow-hidden ds:bg-neutrals-light",{variants:{size:{small:["ds:h-2","ds:rounded-sm"],large:["ds:h-4","ds:rounded"]}}}),iP=Ht("",{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"]}}}),lP=Ht("ds:w-[3rem] ds:justify-end ds:flex ds:items-center ds:text-neutrals-dark",{variants:{size:{small:"ds:text-sm",large:""}}}),aP=Ht("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"}}}),cP=({size:e="large",label:t="",helperMessage:n="",className:r="",state:o="indeterminate",maxValue:i=100,value:l=0,hideIcon:a=!1,...c})=>{const u=()=>{let h=Math.round(l/i*100);return h<0?h=0:h>100&&(h=100),o!=="in-progress"?"100%":`${h}%`},d=()=>{if(a)return null;switch(o){case"in-progress":return u();case"error":return m.jsx(io,{name:"error",size:e==="small"?"small":"medium",className:"ds:float-right ds:text-danger-red-dark",role:"graphics-symbol",filled:!0});case"success":return m.jsx(io,{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}},p=()=>o==="in-progress"||o==="indeterminate"?m.jsxs("div",{className:"ds:ml-1 ds:mt-2 ds:flex ds:w-[15px] ds:items-center ds:space-x-[2px]",children:[m.jsx("div",{className:"ds:h-[3px] ds:w-[3px] ds:animate-blink ds:rounded-full ds:bg-neutrals-black [animation-delay:-0.2s]"}),m.jsx("div",{className:"ds:h-[3px] ds:w-[3px] ds:animate-blink ds:rounded-full ds:bg-neutrals-black [animation-delay:-0.15s]"}),m.jsx("div",{className:"ds:h-[3px] ds:w-[3px] ds:animate-blink ds:rounded-full ds:bg-neutrals-black"})]}):null;return m.jsxs("div",{className:an("preflight ds:min-w-[4.875rem]",r),...c,children:[m.jsxs("div",{className:"ds:flex ds:h-5 ds:items-center ds:justify-between",children:[m.jsxs("div",{className:"progress-bar-label ds:flex ds:max-w-[calc(100%-3rem)] ds:overflow-hidden",children:[m.jsx("p",{className:"ds:overflow-hidden ds:text-nowrap",children:t}),p()]}),m.jsx("div",{"aria-hidden":!0,className:lP({size:e}),children:d()})]}),m.jsx("div",{role:"progressbar",className:"ds:mb-1 ds:mt-1","aria-label":t,"aria-valuemin":0,"aria-valuenow":l,"aria-valuemax":i,"aria-valuetext":u(),children:m.jsx("div",{className:sP({size:e}),children:m.jsx("div",{style:{width:u()},className:iP({size:e,state:o})})})}),m.jsx("p",{className:aP({state:o}),children:n})]})},$g=e=>e,uP=()=>{let e=$g;return{configure(t){e=t},generate(t){return e(t)},reset(){e=$g}}},Jv=uP();function So(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function ie(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":So(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Bp(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}var sc={exports:{}},ic={exports:{}},Ot={};/** @license React v16.13.1
43
- * react-is.production.min.js
44
- *
45
- * Copyright (c) Facebook, Inc. and its affiliates.
46
- *
47
- * This source code is licensed under the MIT license found in the
48
- * LICENSE file in the root directory of this source tree.
49
- */var Ng;function dP(){if(Ng)return Ot;Ng=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function w(E){if(typeof E=="object"&&E!==null){var T=E.$$typeof;switch(T){case t:switch(E=E.type,E){case c:case u:case r:case i:case o:case p:return E;default:switch(E=E&&E.$$typeof,E){case a:case d:case y:case f:case l:return E;default:return T}}case n:return T}}}function k(E){return w(E)===u}return Ot.AsyncMode=c,Ot.ConcurrentMode=u,Ot.ContextConsumer=a,Ot.ContextProvider=l,Ot.Element=t,Ot.ForwardRef=d,Ot.Fragment=r,Ot.Lazy=y,Ot.Memo=f,Ot.Portal=n,Ot.Profiler=i,Ot.StrictMode=o,Ot.Suspense=p,Ot.isAsyncMode=function(E){return k(E)||w(E)===c},Ot.isConcurrentMode=k,Ot.isContextConsumer=function(E){return w(E)===a},Ot.isContextProvider=function(E){return w(E)===l},Ot.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},Ot.isForwardRef=function(E){return w(E)===d},Ot.isFragment=function(E){return w(E)===r},Ot.isLazy=function(E){return w(E)===y},Ot.isMemo=function(E){return w(E)===f},Ot.isPortal=function(E){return w(E)===n},Ot.isProfiler=function(E){return w(E)===i},Ot.isStrictMode=function(E){return w(E)===o},Ot.isSuspense=function(E){return w(E)===p},Ot.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===u||E===i||E===o||E===p||E===h||typeof E=="object"&&E!==null&&(E.$$typeof===y||E.$$typeof===f||E.$$typeof===l||E.$$typeof===a||E.$$typeof===d||E.$$typeof===v||E.$$typeof===x||E.$$typeof===S||E.$$typeof===g)},Ot.typeOf=w,Ot}var Mt={};/** @license React v16.13.1
50
- * react-is.development.js
51
- *
52
- * Copyright (c) Facebook, Inc. and its affiliates.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE file in the root directory of this source tree.
56
- */var Fg;function pP(){return Fg||(Fg=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function w(J){return typeof J=="string"||typeof J=="function"||J===r||J===u||J===i||J===o||J===p||J===h||typeof J=="object"&&J!==null&&(J.$$typeof===y||J.$$typeof===f||J.$$typeof===l||J.$$typeof===a||J.$$typeof===d||J.$$typeof===v||J.$$typeof===x||J.$$typeof===S||J.$$typeof===g)}function k(J){if(typeof J=="object"&&J!==null){var oe=J.$$typeof;switch(oe){case t:var te=J.type;switch(te){case c:case u:case r:case i:case o:case p:return te;default:var fe=te&&te.$$typeof;switch(fe){case a:case d:case y:case f:case l:return fe;default:return oe}}case n:return oe}}}var E=c,T=u,N=a,P=l,O=t,j=d,$=r,C=y,L=f,F=n,M=i,R=o,_=p,V=!1;function W(J){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(J)||k(J)===c}function I(J){return k(J)===u}function D(J){return k(J)===a}function G(J){return k(J)===l}function A(J){return typeof J=="object"&&J!==null&&J.$$typeof===t}function K(J){return k(J)===d}function Y(J){return k(J)===r}function U(J){return k(J)===y}function q(J){return k(J)===f}function Z(J){return k(J)===n}function X(J){return k(J)===i}function Q(J){return k(J)===o}function re(J){return k(J)===p}Mt.AsyncMode=E,Mt.ConcurrentMode=T,Mt.ContextConsumer=N,Mt.ContextProvider=P,Mt.Element=O,Mt.ForwardRef=j,Mt.Fragment=$,Mt.Lazy=C,Mt.Memo=L,Mt.Portal=F,Mt.Profiler=M,Mt.StrictMode=R,Mt.Suspense=_,Mt.isAsyncMode=W,Mt.isConcurrentMode=I,Mt.isContextConsumer=D,Mt.isContextProvider=G,Mt.isElement=A,Mt.isForwardRef=K,Mt.isFragment=Y,Mt.isLazy=U,Mt.isMemo=q,Mt.isPortal=Z,Mt.isProfiler=X,Mt.isStrictMode=Q,Mt.isSuspense=re,Mt.isValidElementType=w,Mt.typeOf=k})()),Mt}var Ag;function om(){return Ag||(Ag=1,process.env.NODE_ENV==="production"?ic.exports=dP():ic.exports=pP()),ic.exports}/*
57
- object-assign
58
- (c) Sindre Sorhus
59
- @license MIT
60
- */var Fd,Dg;function fP(){if(Dg)return Fd;Dg=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var l={},a=0;a<10;a++)l["_"+String.fromCharCode(a)]=a;var c=Object.getOwnPropertyNames(l).map(function(d){return l[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch(d){return!1}}return Fd=o()?Object.assign:function(i,l){for(var a,c=r(i),u,d=1;d<arguments.length;d++){a=Object(arguments[d]);for(var p in a)t.call(a,p)&&(c[p]=a[p]);if(e){u=e(a);for(var h=0;h<u.length;h++)n.call(a,u[h])&&(c[u[h]]=a[u[h]])}}return c},Fd}var Ad,_g;function sm(){if(_g)return Ad;_g=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ad=e,Ad}var Dd,zg;function ex(){return zg||(zg=1,Dd=Function.call.bind(Object.prototype.hasOwnProperty)),Dd}var _d,Bg;function mP(){if(Bg)return _d;Bg=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=sm(),n={},r=ex();e=function(i){var l="Warning: "+i;typeof console!="undefined"&&console.error(l);try{throw new Error(l)}catch(a){}}}function o(i,l,a,c,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(r(i,d)){var p;try{if(typeof i[d]!="function"){var h=Error((c||"React class")+": "+a+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}p=i[d](l,d,c,a,null,t)}catch(y){p=y}if(p&&!(p instanceof Error)&&e((c||"React class")+": type specification of "+a+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var f=u?u():"";e("Failed "+a+" type: "+p.message+(f!=null?f:""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},_d=o,_d}var zd,Vg;function hP(){if(Vg)return zd;Vg=1;var e=om(),t=fP(),n=sm(),r=ex(),o=mP(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(a){var c="Warning: "+a;typeof console!="undefined"&&console.error(c);try{throw new Error(c)}catch(u){}});function l(){return null}return zd=function(a,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p(I){var D=I&&(u&&I[u]||I[d]);if(typeof D=="function")return D}var h="<<anonymous>>",f={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:S(),arrayOf:w,element:k(),elementType:E(),instanceOf:T,node:j(),objectOf:P,oneOf:N,oneOfType:O,shape:C,exact:L};function y(I,D){return I===D?I!==0||1/I===1/D:I!==I&&D!==D}function g(I,D){this.message=I,this.data=D&&typeof D=="object"?D:{},this.stack=""}g.prototype=Error.prototype;function v(I){if(process.env.NODE_ENV!=="production")var D={},G=0;function A(Y,U,q,Z,X,Q,re){if(Z=Z||h,Q=Q||q,re!==n){if(c){var J=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw J.name="Invariant Violation",J}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var oe=Z+":"+q;!D[oe]&&G<3&&(i("You are manually calling a React.PropTypes validation function for the `"+Q+"` prop on `"+Z+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),D[oe]=!0,G++)}}return U[q]==null?Y?U[q]===null?new g("The "+X+" `"+Q+"` is marked as required "+("in `"+Z+"`, but its value is `null`.")):new g("The "+X+" `"+Q+"` is marked as required in "+("`"+Z+"`, but its value is `undefined`.")):null:I(U,q,Z,X,Q)}var K=A.bind(null,!1);return K.isRequired=A.bind(null,!0),K}function x(I){function D(G,A,K,Y,U,q){var Z=G[A],X=R(Z);if(X!==I){var Q=_(Z);return new g("Invalid "+Y+" `"+U+"` of type "+("`"+Q+"` supplied to `"+K+"`, expected ")+("`"+I+"`."),{expectedType:I})}return null}return v(D)}function S(){return v(l)}function w(I){function D(G,A,K,Y,U){if(typeof I!="function")return new g("Property `"+U+"` of component `"+K+"` has invalid PropType notation inside arrayOf.");var q=G[A];if(!Array.isArray(q)){var Z=R(q);return new g("Invalid "+Y+" `"+U+"` of type "+("`"+Z+"` supplied to `"+K+"`, expected an array."))}for(var X=0;X<q.length;X++){var Q=I(q,X,K,Y,U+"["+X+"]",n);if(Q instanceof Error)return Q}return null}return v(D)}function k(){function I(D,G,A,K,Y){var U=D[G];if(!a(U)){var q=R(U);return new g("Invalid "+K+" `"+Y+"` of type "+("`"+q+"` supplied to `"+A+"`, expected a single ReactElement."))}return null}return v(I)}function E(){function I(D,G,A,K,Y){var U=D[G];if(!e.isValidElementType(U)){var q=R(U);return new g("Invalid "+K+" `"+Y+"` of type "+("`"+q+"` supplied to `"+A+"`, expected a single ReactElement type."))}return null}return v(I)}function T(I){function D(G,A,K,Y,U){if(!(G[A]instanceof I)){var q=I.name||h,Z=W(G[A]);return new g("Invalid "+Y+" `"+U+"` of type "+("`"+Z+"` supplied to `"+K+"`, expected ")+("instance of `"+q+"`."))}return null}return v(D)}function N(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),l;function D(G,A,K,Y,U){for(var q=G[A],Z=0;Z<I.length;Z++)if(y(q,I[Z]))return null;var X=JSON.stringify(I,function(re,J){var oe=_(J);return oe==="symbol"?String(J):J});return new g("Invalid "+Y+" `"+U+"` of value `"+String(q)+"` "+("supplied to `"+K+"`, expected one of "+X+"."))}return v(D)}function P(I){function D(G,A,K,Y,U){if(typeof I!="function")return new g("Property `"+U+"` of component `"+K+"` has invalid PropType notation inside objectOf.");var q=G[A],Z=R(q);if(Z!=="object")return new g("Invalid "+Y+" `"+U+"` of type "+("`"+Z+"` supplied to `"+K+"`, expected an object."));for(var X in q)if(r(q,X)){var Q=I(q,X,K,Y,U+"."+X,n);if(Q instanceof Error)return Q}return null}return v(D)}function O(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var D=0;D<I.length;D++){var G=I[D];if(typeof G!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+V(G)+" at index "+D+"."),l}function A(K,Y,U,q,Z){for(var X=[],Q=0;Q<I.length;Q++){var re=I[Q],J=re(K,Y,U,q,Z,n);if(J==null)return null;J.data&&r(J.data,"expectedType")&&X.push(J.data.expectedType)}var oe=X.length>0?", expected one of type ["+X.join(", ")+"]":"";return new g("Invalid "+q+" `"+Z+"` supplied to "+("`"+U+"`"+oe+"."))}return v(A)}function j(){function I(D,G,A,K,Y){return F(D[G])?null:new g("Invalid "+K+" `"+Y+"` supplied to "+("`"+A+"`, expected a ReactNode."))}return v(I)}function $(I,D,G,A,K){return new g((I||"React class")+": "+D+" type `"+G+"."+A+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+K+"`.")}function C(I){function D(G,A,K,Y,U){var q=G[A],Z=R(q);if(Z!=="object")return new g("Invalid "+Y+" `"+U+"` of type `"+Z+"` "+("supplied to `"+K+"`, expected `object`."));for(var X in I){var Q=I[X];if(typeof Q!="function")return $(K,Y,U,X,_(Q));var re=Q(q,X,K,Y,U+"."+X,n);if(re)return re}return null}return v(D)}function L(I){function D(G,A,K,Y,U){var q=G[A],Z=R(q);if(Z!=="object")return new g("Invalid "+Y+" `"+U+"` of type `"+Z+"` "+("supplied to `"+K+"`, expected `object`."));var X=t({},G[A],I);for(var Q in X){var re=I[Q];if(r(I,Q)&&typeof re!="function")return $(K,Y,U,Q,_(re));if(!re)return new g("Invalid "+Y+" `"+U+"` key `"+Q+"` supplied to `"+K+"`.\nBad object: "+JSON.stringify(G[A],null," ")+`
61
- Valid keys: `+JSON.stringify(Object.keys(I),null," "));var J=re(q,Q,K,Y,U+"."+Q,n);if(J)return J}return null}return v(D)}function F(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every(F);if(I===null||a(I))return!0;var D=p(I);if(D){var G=D.call(I),A;if(D!==I.entries){for(;!(A=G.next()).done;)if(!F(A.value))return!1}else for(;!(A=G.next()).done;){var K=A.value;if(K&&!F(K[1]))return!1}}else return!1;return!0;default:return!1}}function M(I,D){return I==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function R(I){var D=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":M(D,I)?"symbol":D}function _(I){if(typeof I=="undefined"||I===null)return""+I;var D=R(I);if(D==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return D}function V(I){var D=_(I);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function W(I){return!I.constructor||!I.constructor.name?h:I.constructor.name}return f.checkPropTypes=o,f.resetWarningCache=o.resetWarningCache,f.PropTypes=f,f},zd}var Bd,Hg;function gP(){if(Hg)return Bd;Hg=1;var e=sm();function t(){}function n(){}return n.resetWarningCache=t,Bd=function(){function r(l,a,c,u,d,p){if(p!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Bd}var Gg;function bP(){if(Gg)return sc.exports;if(Gg=1,process.env.NODE_ENV!=="production"){var e=om(),t=!0;sc.exports=hP()(e.isElement,t)}else sc.exports=gP()();return sc.exports}var yP=bP();const s=vu(yP);function ye(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let l="",a=!0;for(let c=0;c<i.length;c+=1){const u=i[c];u&&(l+=(a===!0?"":" ")+t(u),a=!1,n&&n[u]&&(l+=" "+n[u]))}r[o]=l}return r}var lc={exports:{}},Nt={};/**
62
- * @license React
63
- * react-is.production.js
64
- *
65
- * Copyright (c) Meta Platforms, Inc. and affiliates.
66
- *
67
- * This source code is licensed under the MIT license found in the
68
- * LICENSE file in the root directory of this source tree.
69
- */var Wg;function vP(){if(Wg)return Nt;Wg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function y(g){if(typeof g=="object"&&g!==null){var v=g.$$typeof;switch(v){case e:switch(g=g.type,g){case n:case o:case r:case c:case u:case h:return g;default:switch(g=g&&g.$$typeof,g){case l:case a:case p:case d:return g;case i:return g;default:return v}}case t:return v}}}return Nt.ContextConsumer=i,Nt.ContextProvider=l,Nt.Element=e,Nt.ForwardRef=a,Nt.Fragment=n,Nt.Lazy=p,Nt.Memo=d,Nt.Portal=t,Nt.Profiler=o,Nt.StrictMode=r,Nt.Suspense=c,Nt.SuspenseList=u,Nt.isContextConsumer=function(g){return y(g)===i},Nt.isContextProvider=function(g){return y(g)===l},Nt.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},Nt.isForwardRef=function(g){return y(g)===a},Nt.isFragment=function(g){return y(g)===n},Nt.isLazy=function(g){return y(g)===p},Nt.isMemo=function(g){return y(g)===d},Nt.isPortal=function(g){return y(g)===t},Nt.isProfiler=function(g){return y(g)===o},Nt.isStrictMode=function(g){return y(g)===r},Nt.isSuspense=function(g){return y(g)===c},Nt.isSuspenseList=function(g){return y(g)===u},Nt.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===o||g===r||g===c||g===u||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===d||g.$$typeof===l||g.$$typeof===i||g.$$typeof===a||g.$$typeof===f||g.getModuleId!==void 0)},Nt.typeOf=y,Nt}var Ft={};/**
70
- * @license React
71
- * react-is.development.js
72
- *
73
- * Copyright (c) Meta Platforms, Inc. and affiliates.
74
- *
75
- * This source code is licensed under the MIT license found in the
76
- * LICENSE file in the root directory of this source tree.
77
- */var Ug;function xP(){return Ug||(Ug=1,process.env.NODE_ENV!=="production"&&(function(){function e(g){if(typeof g=="object"&&g!==null){var v=g.$$typeof;switch(v){case t:switch(g=g.type,g){case r:case i:case o:case u:case d:case f:return g;default:switch(g=g&&g.$$typeof,g){case a:case c:case h:case p:return g;case l:return g;default:return v}}case n:return v}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");Ft.ContextConsumer=l,Ft.ContextProvider=a,Ft.Element=t,Ft.ForwardRef=c,Ft.Fragment=r,Ft.Lazy=h,Ft.Memo=p,Ft.Portal=n,Ft.Profiler=i,Ft.StrictMode=o,Ft.Suspense=u,Ft.SuspenseList=d,Ft.isContextConsumer=function(g){return e(g)===l},Ft.isContextProvider=function(g){return e(g)===a},Ft.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},Ft.isForwardRef=function(g){return e(g)===c},Ft.isFragment=function(g){return e(g)===r},Ft.isLazy=function(g){return e(g)===h},Ft.isMemo=function(g){return e(g)===p},Ft.isPortal=function(g){return e(g)===n},Ft.isProfiler=function(g){return e(g)===i},Ft.isStrictMode=function(g){return e(g)===o},Ft.isSuspense=function(g){return e(g)===u},Ft.isSuspenseList=function(g){return e(g)===d},Ft.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===i||g===o||g===u||g===d||typeof g=="object"&&g!==null&&(g.$$typeof===h||g.$$typeof===p||g.$$typeof===a||g.$$typeof===l||g.$$typeof===c||g.$$typeof===y||g.getModuleId!==void 0)},Ft.typeOf=e})()),Ft}var qg;function CP(){return qg||(qg=1,process.env.NODE_ENV==="production"?lc.exports=vP():lc.exports=xP()),lc.exports}var Vc=CP();function Qr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function tx(e){if(b.isValidElement(e)||Vc.isValidElementType(e)||!Qr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=tx(e[n])}),t}function Cn(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Qr(e)&&Qr(t)&&Object.keys(t).forEach(o=>{b.isValidElement(t[o])||Vc.isValidElementType(t[o])?r[o]=t[o]:Qr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Qr(e[o])?r[o]=Cn(e[o],t[o],n):n.clone?r[o]=Qr(t[o])?tx(t[o]):t[o]:r[o]=t[o]}),r}function $l(e,t){return t?Cn(e,t,{clone:!1}):e}const Qo=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Kg(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var l,a;const i=/min-width:\s*([0-9.]+)/;return+(((l=r.match(i))==null?void 0:l[1])||0)-+(((a=o.match(i))==null?void 0:a[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function wP(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function SP(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
78
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`);return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function kP(e){const t=(i,l)=>i.replace("@media",l?`@container ${l}`:"@container");function n(i,l){i.up=(...a)=>t(e.breakpoints.up(...a),l),i.down=(...a)=>t(e.breakpoints.down(...a),l),i.between=(...a)=>t(e.breakpoints.between(...a),l),i.only=(...a)=>t(e.breakpoints.only(...a),l),i.not=(...a)=>{const c=t(e.breakpoints.not(...a),l);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const Mu={xs:0,sm:600,md:900,lg:1200,xl:1536},Yg={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Mu[e]}px)`},EP={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Mu[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ar(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Yg;return t.reduce((l,a,c)=>(l[i.up(i.keys[c])]=n(t[c]),l),{})}if(typeof t=="object"){const i=r.breakpoints||Yg;return Object.keys(t).reduce((l,a)=>{if(wP(i.keys,a)){const c=SP(r.containerQueries?r:EP,a);c&&(l[c]=n(t[a],a))}else if(Object.keys(i.values||Mu).includes(a)){const c=i.up(a);l[c]=n(t[a],a)}else{const c=a;l[c]=t[c]}return l},{})}return n(t)}function nx(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Vp(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function TP(e,...t){const n=nx(e),r=[n,...t].reduce((o,i)=>Cn(o,i),{});return Vp(Object.keys(n),r)}function IP(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function Vd({values:e,breakpoints:t,base:n}){const r=n||IP(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((l,a,c)=>(Array.isArray(e)?(l[a]=e[c]!=null?e[c]:e[i],i=c):typeof e=="object"?(l[a]=e[a]!=null?e[a]:e[i],i=a):l[a]=e,l),{})}function Yr(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Hc(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Yr(e,n)||r,t&&(o=t(o,r,e)),o}function nn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=l=>{if(l[t]==null)return null;const a=l[t],c=l.theme,u=Yr(c,r)||{};return Ar(l,a,p=>{let h=Hc(u,o,p);return p===h&&typeof p=="string"&&(h=Hc(u,o,`${t}${p==="default"?"":ie(p)}`,p)),n===!1?h:{[n]:h}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Qo}:{},i.filterProps=[t],i}function PP(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const OP={m:"margin",p:"padding"},MP={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Xg={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},RP=PP(e=>{if(e.length>2)if(Xg[e])e=Xg[e];else return[e];const[t,n]=e.split(""),r=OP[t],o=MP[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Ru=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ju=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],jP=[...Ru,...ju];function ya(e,t,n,r){var i;const o=(i=Yr(e,t,!0))!=null?i:n;return typeof o=="number"||typeof o=="string"?l=>typeof l=="string"?l:(process.env.NODE_ENV!=="production"&&typeof l!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${l}.`),typeof o=="string"?o.startsWith("var(")&&l===0?0:o.startsWith("var(")&&l===1?o:`calc(${l} * ${o})`:o*l):Array.isArray(o)?l=>{if(typeof l=="string")return l;const a=Math.abs(l);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
79
- `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
80
- `)));const c=o[a];return l>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
81
- `)),()=>{})}function Lu(e){return ya(e,"spacing",8,"spacing")}function Os(e,t){return typeof t=="string"||t==null?t:e(t)}function LP(e,t){return n=>e.reduce((r,o)=>(r[o]=Os(t,n),r),{})}function $P(e,t,n,r){if(!t.includes(n))return null;const o=RP(n),i=LP(o,r),l=e[n];return Ar(e,l,i)}function rx(e,t){const n=Lu(e.theme);return Object.keys(e).map(r=>$P(e,t,r,n)).reduce($l,{})}function Qt(e){return rx(e,Ru)}Qt.propTypes=process.env.NODE_ENV!=="production"?Ru.reduce((e,t)=>(e[t]=Qo,e),{}):{};Qt.filterProps=Ru;function Jt(e){return rx(e,ju)}Jt.propTypes=process.env.NODE_ENV!=="production"?ju.reduce((e,t)=>(e[t]=Qo,e),{}):{};Jt.filterProps=ju;process.env.NODE_ENV!=="production"&&jP.reduce((e,t)=>(e[t]=Qo,e),{});function $u(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?$l(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function dr(e){return typeof e!="number"?e:`${e}px solid`}function kr(e,t){return nn({prop:e,themeKey:"borders",transform:t})}const NP=kr("border",dr),FP=kr("borderTop",dr),AP=kr("borderRight",dr),DP=kr("borderBottom",dr),_P=kr("borderLeft",dr),zP=kr("borderColor"),BP=kr("borderTopColor"),VP=kr("borderRightColor"),HP=kr("borderBottomColor"),GP=kr("borderLeftColor"),WP=kr("outline",dr),UP=kr("outlineColor"),Nu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ya(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Os(t,r)});return Ar(e,e.borderRadius,n)}return null};Nu.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Qo}:{};Nu.filterProps=["borderRadius"];$u(NP,FP,AP,DP,_P,zP,BP,VP,HP,GP,Nu,WP,UP);const Fu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ya(e.theme,"spacing",8,"gap"),n=r=>({gap:Os(t,r)});return Ar(e,e.gap,n)}return null};Fu.propTypes=process.env.NODE_ENV!=="production"?{gap:Qo}:{};Fu.filterProps=["gap"];const Au=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ya(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Os(t,r)});return Ar(e,e.columnGap,n)}return null};Au.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Qo}:{};Au.filterProps=["columnGap"];const Du=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ya(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Os(t,r)});return Ar(e,e.rowGap,n)}return null};Du.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Qo}:{};Du.filterProps=["rowGap"];const qP=nn({prop:"gridColumn"}),KP=nn({prop:"gridRow"}),YP=nn({prop:"gridAutoFlow"}),XP=nn({prop:"gridAutoColumns"}),ZP=nn({prop:"gridAutoRows"}),QP=nn({prop:"gridTemplateColumns"}),JP=nn({prop:"gridTemplateRows"}),eO=nn({prop:"gridTemplateAreas"}),tO=nn({prop:"gridArea"});$u(Fu,Au,Du,qP,KP,YP,XP,ZP,QP,JP,eO,tO);function gi(e,t){return t==="grey"?t:e}const nO=nn({prop:"color",themeKey:"palette",transform:gi}),rO=nn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gi}),oO=nn({prop:"backgroundColor",themeKey:"palette",transform:gi});$u(nO,rO,oO);function Qn(e){return e<=1&&e!==0?`${e*100}%`:e}const sO=nn({prop:"width",transform:Qn}),im=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,l,a,c;const r=((l=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:l[n])||Mu[n];return r?((c=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Qn(n)}};return Ar(e,e.maxWidth,t)}return null};im.filterProps=["maxWidth"];const iO=nn({prop:"minWidth",transform:Qn}),lO=nn({prop:"height",transform:Qn}),aO=nn({prop:"maxHeight",transform:Qn}),cO=nn({prop:"minHeight",transform:Qn});nn({prop:"size",cssProperty:"width",transform:Qn});nn({prop:"size",cssProperty:"height",transform:Qn});const uO=nn({prop:"boxSizing"});$u(sO,im,iO,lO,aO,cO,uO);const va={border:{themeKey:"borders",transform:dr},borderTop:{themeKey:"borders",transform:dr},borderRight:{themeKey:"borders",transform:dr},borderBottom:{themeKey:"borders",transform:dr},borderLeft:{themeKey:"borders",transform:dr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:dr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Nu},color:{themeKey:"palette",transform:gi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gi},backgroundColor:{themeKey:"palette",transform:gi},p:{style:Jt},pt:{style:Jt},pr:{style:Jt},pb:{style:Jt},pl:{style:Jt},px:{style:Jt},py:{style:Jt},padding:{style:Jt},paddingTop:{style:Jt},paddingRight:{style:Jt},paddingBottom:{style:Jt},paddingLeft:{style:Jt},paddingX:{style:Jt},paddingY:{style:Jt},paddingInline:{style:Jt},paddingInlineStart:{style:Jt},paddingInlineEnd:{style:Jt},paddingBlock:{style:Jt},paddingBlockStart:{style:Jt},paddingBlockEnd:{style:Jt},m:{style:Qt},mt:{style:Qt},mr:{style:Qt},mb:{style:Qt},ml:{style:Qt},mx:{style:Qt},my:{style:Qt},margin:{style:Qt},marginTop:{style:Qt},marginRight:{style:Qt},marginBottom:{style:Qt},marginLeft:{style:Qt},marginX:{style:Qt},marginY:{style:Qt},marginInline:{style:Qt},marginInlineStart:{style:Qt},marginInlineEnd:{style:Qt},marginBlock:{style:Qt},marginBlockStart:{style:Qt},marginBlockEnd:{style:Qt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Fu},rowGap:{style:Du},columnGap:{style:Au},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Qn},maxWidth:{style:im},minWidth:{transform:Qn},height:{transform:Qn},maxHeight:{transform:Qn},minHeight:{transform:Qn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function dO(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function pO(e,t){return typeof e=="function"?e(t):e}function fO(){function e(n,r,o,i){const l={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:d,style:p}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const h=Yr(o,u)||{};return p?p(l):Ar(l,r,y=>{let g=Hc(h,d,y);return y===g&&typeof y=="string"&&(g=Hc(h,d,`${n}${y==="default"?"":ie(y)}`,y)),c===!1?g:{[c]:g}})}function t(n){var c;const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const l=(c=o.unstable_sxConfig)!=null?c:va;function a(u){let d=u;if(typeof u=="function")d=u(o);else if(typeof u!="object")return u;if(!d)return null;const p=nx(o.breakpoints),h=Object.keys(p);let f=p;return Object.keys(d).forEach(y=>{const g=pO(d[y],o);if(g!=null)if(typeof g=="object")if(l[y])f=$l(f,e(y,g,o,l));else{const v=Ar({theme:o},g,x=>({[y]:x}));dO(v,g)?f[y]=t({sx:g,theme:o,nested:!0}):f=$l(f,v)}else f=$l(f,e(y,g,o,l))}),!i&&o.modularCssLayers?{"@layer sx":Kg(o,Vp(h,f))}:Kg(o,Vp(h,f))}return Array.isArray(r)?r.map(a):a(r)}return t}const Yo=fO();Yo.filterProps=["sx"];const mO=e=>{var r,o;const t={systemProps:{},otherProps:{}},n=(o=(r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)!=null?o:va;return Object.keys(e).forEach(i=>{n[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function lm(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=mO(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...l)=>{const a=t(...l);return Qr(a)?{...r,...a}:r}:i={...r,...t},{...o,sx:i}}function z(){return z=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},z.apply(null,arguments)}function hO(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function gO(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var bO=(function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(gO(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=hO(o);try{i.insertRule(r,i.cssRules.length)}catch(l){}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e})(),In="-ms-",Gc="-moz-",wt="-webkit-",ox="comm",am="rule",cm="decl",yO="@import",sx="@keyframes",vO="@layer",xO=Math.abs,_u=String.fromCharCode,CO=Object.assign;function wO(e,t){return Sn(e,0)^45?(((t<<2^Sn(e,0))<<2^Sn(e,1))<<2^Sn(e,2))<<2^Sn(e,3):0}function ix(e){return e.trim()}function SO(e,t){return(e=t.exec(e))?e[0]:e}function kt(e,t,n){return e.replace(t,n)}function Hp(e,t){return e.indexOf(t)}function Sn(e,t){return e.charCodeAt(t)|0}function ql(e,t,n){return e.slice(t,n)}function Xr(e){return e.length}function um(e){return e.length}function ac(e,t){return t.push(e),e}function kO(e,t){return e.map(t).join("")}var zu=1,xi=1,lx=0,Gn=0,sn=0,Ai="";function Bu(e,t,n,r,o,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:zu,column:xi,length:l,return:""}}function nl(e,t){return CO(Bu("",null,null,"",null,null,0),e,{length:-e.length},t)}function EO(){return sn}function TO(){return sn=Gn>0?Sn(Ai,--Gn):0,xi--,sn===10&&(xi=1,zu--),sn}function tr(){return sn=Gn<lx?Sn(Ai,Gn++):0,xi++,sn===10&&(xi=1,zu++),sn}function to(){return Sn(Ai,Gn)}function Ec(){return Gn}function xa(e,t){return ql(Ai,e,t)}function Kl(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ax(e){return zu=xi=1,lx=Xr(Ai=e),Gn=0,[]}function cx(e){return Ai="",e}function Tc(e){return ix(xa(Gn-1,Gp(e===91?e+2:e===40?e+1:e)))}function IO(e){for(;(sn=to())&&sn<33;)tr();return Kl(e)>2||Kl(sn)>3?"":" "}function PO(e,t){for(;--t&&tr()&&!(sn<48||sn>102||sn>57&&sn<65||sn>70&&sn<97););return xa(e,Ec()+(t<6&&to()==32&&tr()==32))}function Gp(e){for(;tr();)switch(sn){case e:return Gn;case 34:case 39:e!==34&&e!==39&&Gp(sn);break;case 40:e===41&&Gp(e);break;case 92:tr();break}return Gn}function OO(e,t){for(;tr()&&e+sn!==57;)if(e+sn===84&&to()===47)break;return"/*"+xa(t,Gn-1)+"*"+_u(e===47?e:tr())}function MO(e){for(;!Kl(to());)tr();return xa(e,Gn)}function RO(e){return cx(Ic("",null,null,null,[""],e=ax(e),0,[0],e))}function Ic(e,t,n,r,o,i,l,a,c){for(var u=0,d=0,p=l,h=0,f=0,y=0,g=1,v=1,x=1,S=0,w="",k=o,E=i,T=r,N=w;v;)switch(y=S,S=tr()){case 40:if(y!=108&&Sn(N,p-1)==58){Hp(N+=kt(Tc(S),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:N+=Tc(S);break;case 9:case 10:case 13:case 32:N+=IO(y);break;case 92:N+=PO(Ec()-1,7);continue;case 47:switch(to()){case 42:case 47:ac(jO(OO(tr(),Ec()),t,n),c);break;default:N+="/"}break;case 123*g:a[u++]=Xr(N)*x;case 125*g:case 59:case 0:switch(S){case 0:case 125:v=0;case 59+d:x==-1&&(N=kt(N,/\f/g,"")),f>0&&Xr(N)-p&&ac(f>32?Qg(N+";",r,n,p-1):Qg(kt(N," ","")+";",r,n,p-2),c);break;case 59:N+=";";default:if(ac(T=Zg(N,t,n,u,d,o,a,w,k=[],E=[],p),i),S===123)if(d===0)Ic(N,t,T,T,k,i,p,a,E);else switch(h===99&&Sn(N,3)===110?100:h){case 100:case 108:case 109:case 115:Ic(e,T,T,r&&ac(Zg(e,T,T,0,0,o,a,w,o,k=[],p),E),o,E,p,a,r?k:E);break;default:Ic(N,T,T,T,[""],E,0,a,E)}}u=d=f=0,g=x=1,w=N="",p=l;break;case 58:p=1+Xr(N),f=y;default:if(g<1){if(S==123)--g;else if(S==125&&g++==0&&TO()==125)continue}switch(N+=_u(S),S*g){case 38:x=d>0?1:(N+="\f",-1);break;case 44:a[u++]=(Xr(N)-1)*x,x=1;break;case 64:to()===45&&(N+=Tc(tr())),h=to(),d=p=Xr(w=N+=MO(Ec())),S++;break;case 45:y===45&&Xr(N)==2&&(g=0)}}return i}function Zg(e,t,n,r,o,i,l,a,c,u,d){for(var p=o-1,h=o===0?i:[""],f=um(h),y=0,g=0,v=0;y<r;++y)for(var x=0,S=ql(e,p+1,p=xO(g=l[y])),w=e;x<f;++x)(w=ix(g>0?h[x]+" "+S:kt(S,/&\f/g,h[x])))&&(c[v++]=w);return Bu(e,t,n,o===0?am:a,c,u,d)}function jO(e,t,n){return Bu(e,t,n,ox,_u(EO()),ql(e,2,-2),0)}function Qg(e,t,n,r){return Bu(e,t,n,cm,ql(e,0,r),ql(e,r+1,-1),r)}function bi(e,t){for(var n="",r=um(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function LO(e,t,n,r){switch(e.type){case vO:if(e.children.length)break;case yO:case cm:return e.return=e.return||e.value;case ox:return"";case sx:return e.return=e.value+"{"+bi(e.children,r)+"}";case am:e.value=e.props.join(",")}return Xr(n=bi(e.children,r))?e.return=e.value+"{"+n+"}":""}function $O(e){var t=um(e);return function(n,r,o,i){for(var l="",a=0;a<t;a++)l+=e[a](n,r,o,i)||"";return l}}function NO(e){return function(t){t.root||(t=t.return)&&e(t)}}function ux(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var FO=function(t,n,r){for(var o=0,i=0;o=i,i=to(),o===38&&i===12&&(n[r]=1),!Kl(i);)tr();return xa(t,Gn)},AO=function(t,n){var r=-1,o=44;do switch(Kl(o)){case 0:o===38&&to()===12&&(n[r]=1),t[r]+=FO(Gn-1,n,r);break;case 2:t[r]+=Tc(o);break;case 4:if(o===44){t[++r]=to()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=_u(o)}while(o=tr());return t},DO=function(t,n){return cx(AO(ax(t),n))},Jg=new WeakMap,_O=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Jg.get(r))&&!o){Jg.set(t,!0);for(var i=[],l=DO(n,i),a=r.props,c=0,u=0;c<l.length;c++)for(var d=0;d<a.length;d++,u++)t.props[u]=i[c]?l[c].replace(/&\f/g,a[d]):a[d]+" "+l[c]}}},zO=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function dx(e,t){switch(wO(e,t)){case 5103:return wt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return wt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return wt+e+Gc+e+In+e+e;case 6828:case 4268:return wt+e+In+e+e;case 6165:return wt+e+In+"flex-"+e+e;case 5187:return wt+e+kt(e,/(\w+).+(:[^]+)/,wt+"box-$1$2"+In+"flex-$1$2")+e;case 5443:return wt+e+In+"flex-item-"+kt(e,/flex-|-self/,"")+e;case 4675:return wt+e+In+"flex-line-pack"+kt(e,/align-content|flex-|-self/,"")+e;case 5548:return wt+e+In+kt(e,"shrink","negative")+e;case 5292:return wt+e+In+kt(e,"basis","preferred-size")+e;case 6060:return wt+"box-"+kt(e,"-grow","")+wt+e+In+kt(e,"grow","positive")+e;case 4554:return wt+kt(e,/([^-])(transform)/g,"$1"+wt+"$2")+e;case 6187:return kt(kt(kt(e,/(zoom-|grab)/,wt+"$1"),/(image-set)/,wt+"$1"),e,"")+e;case 5495:case 3959:return kt(e,/(image-set\([^]*)/,wt+"$1$`$1");case 4968:return kt(kt(e,/(.+:)(flex-)?(.*)/,wt+"box-pack:$3"+In+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+wt+e+e;case 4095:case 3583:case 4068:case 2532:return kt(e,/(.+)-inline(.+)/,wt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Xr(e)-1-t>6)switch(Sn(e,t+1)){case 109:if(Sn(e,t+4)!==45)break;case 102:return kt(e,/(.+:)(.+)-([^]+)/,"$1"+wt+"$2-$3$1"+Gc+(Sn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Hp(e,"stretch")?dx(kt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Sn(e,t+1)!==115)break;case 6444:switch(Sn(e,Xr(e)-3-(~Hp(e,"!important")&&10))){case 107:return kt(e,":",":"+wt)+e;case 101:return kt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+wt+(Sn(e,14)===45?"inline-":"")+"box$3$1"+wt+"$2$3$1"+In+"$2box$3")+e}break;case 5936:switch(Sn(e,t+11)){case 114:return wt+e+In+kt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return wt+e+In+kt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return wt+e+In+kt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return wt+e+In+e+e}return e}var BO=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case cm:t.return=dx(t.value,t.length);break;case sx:return bi([nl(t,{value:kt(t.value,"@","@"+wt)})],o);case am:if(t.length)return kO(t.props,function(i){switch(SO(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bi([nl(t,{props:[kt(i,/:(read-\w+)/,":"+Gc+"$1")]})],o);case"::placeholder":return bi([nl(t,{props:[kt(i,/:(plac\w+)/,":"+wt+"input-$1")]}),nl(t,{props:[kt(i,/:(plac\w+)/,":"+Gc+"$1")]}),nl(t,{props:[kt(i,/:(plac\w+)/,In+"input-$1")]})],o)}return""})}},VO=[BO],HO=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var v=g.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||VO,i={},l,a=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var v=g.getAttribute("data-emotion").split(" "),x=1;x<v.length;x++)i[v[x]]=!0;a.push(g)});var c,u=[_O,zO];{var d,p=[LO,NO(function(g){d.insert(g)})],h=$O(u.concat(o,p)),f=function(v){return bi(RO(v),h)};c=function(v,x,S,w){d=S,f(v?v+"{"+x.styles+"}":x.styles),w&&(y.inserted[x.name]=!0)}}var y={key:n,sheet:new bO({key:n,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return y.sheet.hydrate(a),y},Hd,eb;function GO(){if(eb)return Hd;eb=1;var e=om(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=o;function l(y){return e.isMemo(y)?o:i[y.$$typeof]||t}var a=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;function f(y,g,v){if(typeof g!="string"){if(h){var x=p(g);x&&x!==h&&f(y,x,v)}var S=c(g);u&&(S=S.concat(u(g)));for(var w=l(y),k=l(g),E=0;E<S.length;++E){var T=S[E];if(!n[T]&&!(v&&v[T])&&!(k&&k[T])&&!(w&&w[T])){var N=d(g,T);try{a(y,T,N)}catch(P){}}}}return y}return Hd=f,Hd}GO();var WO=!0;function px(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var dm=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||WO===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},pm=function(t,n,r){dm(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function UO(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var qO={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},KO=/[A-Z]|^ms/g,YO=/_EMO_([^_]+?)_([^]*?)_EMO_/g,fx=function(t){return t.charCodeAt(1)===45},tb=function(t){return t!=null&&typeof t!="boolean"},Gd=ux(function(e){return fx(e)?e:e.replace(KO,"-$&").toLowerCase()}),nb=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(YO,function(r,o,i){return Zr={name:o,styles:i,next:Zr},o})}return qO[t]!==1&&!fx(t)&&typeof n=="number"&&n!==0?n+"px":n};function Yl(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Zr={name:o.name,styles:o.styles,next:Zr},o.name;var i=n;if(i.styles!==void 0){var l=i.next;if(l!==void 0)for(;l!==void 0;)Zr={name:l.name,styles:l.styles,next:Zr},l=l.next;var a=i.styles+";";return a}return XO(e,t,n)}case"function":{if(e!==void 0){var c=Zr,u=n(e);return Zr=c,Yl(e,t,u)}break}}var d=n;if(t==null)return d;var p=t[d];return p!==void 0?p:d}function XO(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Yl(e,t,n[o])+";";else for(var i in n){var l=n[i];if(typeof l!="object"){var a=l;t!=null&&t[a]!==void 0?r+=i+"{"+t[a]+"}":tb(a)&&(r+=Gd(i)+":"+nb(i,a)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var c=0;c<l.length;c++)tb(l[c])&&(r+=Gd(i)+":"+nb(i,l[c])+";");else{var u=Yl(e,t,l);switch(i){case"animation":case"animationName":{r+=Gd(i)+":"+u+";";break}default:r+=i+"{"+u+"}"}}}return r}var rb=/label:\s*([^\s;{]+)\s*(;|$)/g,Zr;function Ca(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Zr=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=Yl(n,t,i);else{var l=i;o+=l[0]}for(var a=1;a<e.length;a++)if(o+=Yl(n,t,e[a]),r){var c=i;o+=c[a]}rb.lastIndex=0;for(var u="",d;(d=rb.exec(o))!==null;)u+="-"+d[1];var p=UO(o)+u;return{name:p,styles:o,next:Zr}}var ZO=function(t){return t()},mx=b.useInsertionEffect?b.useInsertionEffect:!1,hx=mx||ZO,ob=mx||b.useLayoutEffect,gx=b.createContext(typeof HTMLElement!="undefined"?HO({key:"css"}):null);gx.Provider;var fm=function(t){return H.forwardRef(function(n,r){var o=H.useContext(gx);return t(n,o,r)})},wa=b.createContext({}),mm={}.hasOwnProperty,Wp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",QO=function(t,n){var r={};for(var o in n)mm.call(n,o)&&(r[o]=n[o]);return r[Wp]=t,r},JO=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return dm(n,r,o),hx(function(){return pm(n,r,o)}),null},e4=fm(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Wp],i=[r],l="";typeof e.className=="string"?l=px(t.registered,i,e.className):e.className!=null&&(l=e.className+" ");var a=Ca(i,void 0,b.useContext(wa));l+=t.key+"-"+a.name;var c={};for(var u in e)mm.call(e,u)&&u!=="css"&&u!==Wp&&(c[u]=e[u]);return c.className=l,n&&(c.ref=n),b.createElement(b.Fragment,null,b.createElement(JO,{cache:t,serialized:a,isStringTag:typeof o=="string"}),b.createElement(o,c))}),t4=e4,sb=function(t,n){var r=arguments;if(n==null||!mm.call(n,"css"))return b.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=t4,i[1]=QO(t,n);for(var l=2;l<o;l++)i[l]=r[l];return b.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(sb||(sb={}));var n4=fm(function(e,t){var n=e.styles,r=Ca([n],void 0,b.useContext(wa)),o=b.useRef();return ob(function(){var i=t.key+"-global",l=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,c=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),c!==null&&(a=!0,c.setAttribute("data-emotion",i),l.hydrate([c])),o.current=[l,a],function(){l.flush()}},[t]),ob(function(){var i=o.current,l=i[0],a=i[1];if(a){i[1]=!1;return}if(r.next!==void 0&&pm(t,r.next,!0),l.tags.length){var c=l.tags[l.tags.length-1].nextElementSibling;l.before=c,l.flush()}t.insert("",r,l,!1)},[t,r.name]),null});function Jo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ca(t)}function _r(){var e=Jo.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var r4=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o4=ux(function(e){return r4.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),s4=o4,i4=function(t){return t!=="theme"},ib=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?s4:i4},lb=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(l){return t.__emotion_forwardProp(l)&&i(l)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},l4=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return dm(n,r,o),hx(function(){return pm(n,r,o)}),null},a4=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,l;n!==void 0&&(i=n.label,l=n.target);var a=lb(t,n,r),c=a||ib(o),u=!c("as");return function(){var d=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)p.push.apply(p,d);else{var h=d[0];p.push(h[0]);for(var f=d.length,y=1;y<f;y++)p.push(d[y],h[y])}var g=fm(function(v,x,S){var w=u&&v.as||o,k="",E=[],T=v;if(v.theme==null){T={};for(var N in v)T[N]=v[N];T.theme=b.useContext(wa)}typeof v.className=="string"?k=px(x.registered,E,v.className):v.className!=null&&(k=v.className+" ");var P=Ca(p.concat(E),x.registered,T);k+=x.key+"-"+P.name,l!==void 0&&(k+=" "+l);var O=u&&a===void 0?ib(w):c,j={};for(var $ in v)u&&$==="as"||O($)&&(j[$]=v[$]);return j.className=k,S&&(j.ref=S),b.createElement(b.Fragment,null,b.createElement(l4,{cache:x,serialized:P,isStringTag:typeof w=="string"}),b.createElement(w,j))});return g.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=o,g.__emotion_styles=p,g.__emotion_forwardProp=a,Object.defineProperty(g,"toString",{value:function(){return"."+l}}),g.withComponent=function(v,x){var S=e(v,z({},n,x,{shouldForwardProp:lb(g,x,!0)}));return S.apply(void 0,p)},g}},c4=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Xl=a4.bind(null);c4.forEach(function(e){Xl[e]=Xl(e)});function u4(e){return e==null||Object.keys(e).length===0}function hm(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(u4(o)?n:o):t;return m.jsx(n4,{styles:r})}process.env.NODE_ENV!=="production"&&(hm.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.string,s.object,s.func])});/**
82
- * @mui/styled-engine v7.3.10
83
- *
84
- * @license MIT
85
- * This source code is licensed under the MIT license found in the
86
- * LICENSE file in the root directory of this source tree.
87
- */function bx(e,t){const n=Xl(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
88
- `)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function d4(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const ab=[];function Ho(e){return ab[0]=e,Ca(ab)}const p4=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function f4(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=p4(t),l=Object.keys(i);function a(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function c(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function u(h,f){const y=l.indexOf(f);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(y!==-1&&typeof t[l[y]]=="number"?t[l[y]]:f)-r/100}${n})`}function d(h){return l.indexOf(h)+1<l.length?u(h,l[l.indexOf(h)+1]):a(h)}function p(h){const f=l.indexOf(h);return f===0?a(l[1]):f===l.length-1?c(l[f]):u(h,l[l.indexOf(h)+1]).replace("@media","@media not all and")}return{keys:l,values:i,up:a,down:c,between:u,only:d,not:p,unit:n,...o}}const m4={borderRadius:4};function yx(e=8,t=Lu({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const l=t(i);return typeof l=="number"?`${l}px`:l}).join(" "));return n.mui=!0,n}function h4(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function Vu(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...l}=e,a=f4(n),c=yx(o);let u=Cn({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...m4,...i}},l);return u=kP(u),u.applyStyles=h4,u=t.reduce((d,p)=>Cn(d,p),u),u.unstable_sxConfig={...va,...l==null?void 0:l.unstable_sxConfig},u.unstable_sx=function(p){return Yo({sx:p,theme:this})},u}function g4(e){return Object.keys(e).length===0}function gm(e=null){const t=b.useContext(wa);return!t||g4(t)?e:t}const b4=Vu();function Hu(e=b4){return gm(e)}function Wd(e){const t=Ho(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function bm({styles:e,themeId:t,defaultTheme:n={}}){const r=Hu(n),o=t&&r[t]||r;let i=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(i)?i=i.map(l=>Wd(typeof l=="function"?l(o):l)):i=Wd(i)),m.jsx(hm,{styles:i})}process.env.NODE_ENV!=="production"&&(bm.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool]),themeId:s.string});function y4(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=bx("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(Yo);return b.forwardRef(function(c,u){const d=Hu(n),{className:p,component:h="div",...f}=lm(c);return m.jsx(i,{as:h,ref:u,className:ue(p,o?o(r):r),theme:t&&d[t]||d,...f})})}const v4={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ne(e,t,n="Mui"){const r=v4[t];return r?`${n}-${r}`:`${Jv.generate(e)}-${t}`}function $e(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Ne(e,o,n)}),r}function vx(e,t=""){return e.displayName||e.name||t}function cb(e,t,n){const r=vx(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function x4(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return vx(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Vc.ForwardRef:return cb(e,e.render,"ForwardRef");case Vc.Memo:return cb(e,e.type,"memo");default:return}}}function xx(e){const{variants:t,...n}=e,r={variants:t,style:Ho(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Ho(o.style))}),r}const C4=Vu();function Ud(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function xs(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function w4(e){return e?(t,n)=>n[e]:null}function S4(e,t,n){e.theme=T4(e.theme)?n:e.theme[t]||e.theme}function Pc(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Pc(e,o,n));if(Array.isArray(r==null?void 0:r.variants)){let o;if(r.isProcessed)o=n?xs(r.style,n):r.style;else{const{variants:i,...l}=r;o=n?xs(Ho(l),n):l}return Cx(e,r.variants,[o],n)}return r!=null&&r.isProcessed?n?xs(Ho(r.style),n):r.style:n?xs(Ho(r),n):r}function Cx(e,t,n=[],r=void 0){var i;let o;e:for(let l=0;l<t.length;l+=1){const a=t[l];if(typeof a.props=="function"){if(o!=null||(o={...e,...e.ownerState,ownerState:e.ownerState}),!a.props(o))continue}else for(const c in a.props)if(e[c]!==a.props[c]&&((i=e.ownerState)==null?void 0:i[c])!==a.props[c])continue e;typeof a.style=="function"?(o!=null||(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?xs(Ho(a.style(o)),r):a.style(o))):n.push(r?xs(Ho(a.style),r):a.style)}return n}function wx(e={}){const{themeId:t,defaultTheme:n=C4,rootShouldForwardProp:r=Ud,slotShouldForwardProp:o=Ud}=e;function i(a){S4(a,t,n)}return(a,c={})=>{d4(a,T=>T.filter(N=>N!==Yo));const{name:u,slot:d,skipVariantsResolver:p,skipSx:h,overridesResolver:f=w4(Sx(d)),...y}=c,g=u&&u.startsWith("Mui")||d?"components":"custom",v=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,x=h||!1;let S=Ud;d==="Root"||d==="root"?S=r:d?S=o:I4(a)&&(S=void 0);const w=bx(a,{shouldForwardProp:S,label:E4(u,d),...y}),k=T=>{if(T.__emotion_real===T)return T;if(typeof T=="function")return function(P){return Pc(P,T,P.theme.modularCssLayers?g:void 0)};if(Qr(T)){const N=xx(T);return function(O){return N.variants?Pc(O,N,O.theme.modularCssLayers?g:void 0):O.theme.modularCssLayers?xs(N.style,g):N.style}}return T},E=(...T)=>{const N=[],P=T.map(k),O=[];if(N.push(i),u&&f&&O.push(function(L){var _,V;const M=(V=(_=L.theme.components)==null?void 0:_[u])==null?void 0:V.styleOverrides;if(!M)return null;const R={};for(const W in M)R[W]=Pc(L,M[W],L.theme.modularCssLayers?"theme":void 0);return f(L,R)}),u&&!v&&O.push(function(L){var R,_;const F=L.theme,M=(_=(R=F==null?void 0:F.components)==null?void 0:R[u])==null?void 0:_.variants;return M?Cx(L,M,[],L.theme.modularCssLayers?"theme":void 0):null}),x||O.push(Yo),Array.isArray(P[0])){const C=P.shift(),L=new Array(N.length).fill(""),F=new Array(O.length).fill("");let M;M=[...L,...C,...F],M.raw=[...L,...C.raw,...F],N.unshift(M)}const j=[...N,...P,...O],$=w(...j);return a.muiName&&($.muiName=a.muiName),process.env.NODE_ENV!=="production"&&($.displayName=k4(u,d,a)),$};return w.withConfig&&(E.withConfig=w.withConfig),E}}function k4(e,t,n){return e?`${e}${ie(t||"")}`:`Styled(${x4(n)})`}function E4(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Sx(t||"Root")}`),n}function T4(e){for(const t in e)return!1;return!0}function I4(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Sx(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const $t=wx();function Ci(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const l=e[i],a=t[i];if(!a)r[i]=l||{};else if(!l)r[i]=a;else{r[i]={...a};for(const c in l)if(Object.prototype.hasOwnProperty.call(l,c)){const u=c;r[i][u]=Ci(l[u],a[u],n)}}}else i==="className"&&n&&t.className?r.className=ue(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&n&&t.style?r.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:r[i]===void 0&&(r[i]=e[i])}return r}function kx(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Ci(t.components[n].defaultProps,r)}function P4({props:e,name:t,defaultTheme:n,themeId:r}){let o=Hu(n);return r&&(o=o[r]||o),kx({theme:o,name:t,props:e})}const Rt=typeof window!="undefined"?b.useLayoutEffect:b.useEffect;function O4(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function ym(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),O4(e,t,n)}function M4(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function lo(e){if(e.type)return e;if(e.charAt(0)==="#")return lo(M4(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
89
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:So(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
90
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:So(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const R4=e=>{const t=lo(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Sl=(e,t)=>{try{return R4(e)}catch(n){return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Sa(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Ex(e){e=lo(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),l=(u,d=(u+n/30)%12)=>o-i*Math.max(Math.min(d-3,9-d,1),-1);let a="rgb";const c=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(a+="a",c.push(t[3])),Sa({type:a,values:c})}function Up(e){e=lo(e);let t=e.type==="hsl"||e.type==="hsla"?lo(Ex(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ub(e,t){const n=Up(e),r=Up(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function fr(e,t){return e=lo(e),t=ym(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Sa(e)}function us(e,t,n){try{return fr(e,t)}catch(r){return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function ka(e,t){if(e=lo(e),t=ym(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Sa(e)}function jt(e,t,n){try{return ka(e,t)}catch(r){return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Ea(e,t){if(e=lo(e),t=ym(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Sa(e)}function Lt(e,t,n){try{return Ea(e,t)}catch(r){return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function j4(e,t=.15){return Up(e)>.5?ka(e,t):Ea(e,t)}function cc(e,t,n){try{return j4(e,t)}catch(r){return e}}const L4="exact-prop: ​";function Ta(e){return process.env.NODE_ENV==="production"?e:{...e,[L4]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}const vm=b.createContext(null);process.env.NODE_ENV!=="production"&&(vm.displayName="ThemeContext");function xm(){const e=b.useContext(vm);return process.env.NODE_ENV!=="production"&&b.useDebugValue(e),e}const $4=typeof Symbol=="function"&&Symbol.for,N4=$4?Symbol.for("mui.nested"):"__THEME_NESTED__";function F4(e,t){if(typeof t=="function"){const n=t(e);return process.env.NODE_ENV!=="production"&&(n||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join(`
91
- `))),n}return{...e,...t}}function Wc(e){const{children:t,theme:n}=e,r=xm();process.env.NODE_ENV!=="production"&&r===null&&typeof n=="function"&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
92
- `));const o=b.useMemo(()=>{const i=r===null?{...n}:F4(r,n);return i!=null&&(i[N4]=r!==null),i},[n,r]);return m.jsx(vm.Provider,{value:o,children:t})}process.env.NODE_ENV!=="production"&&(Wc.propTypes={children:s.node,theme:s.oneOfType([s.object,s.func]).isRequired});process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(Wc.propTypes=Ta(Wc.propTypes));const Tx=b.createContext();function Ix({value:e,...t}){return m.jsx(Tx.Provider,{value:e!=null?e:!0,...t})}process.env.NODE_ENV!=="production"&&(Ix.propTypes={children:s.node,value:s.bool});const Nn=()=>{const e=b.useContext(Tx);return e!=null?e:!1},Px=b.createContext(void 0);function Ox({value:e,children:t}){return m.jsx(Px.Provider,{value:e,children:t})}process.env.NODE_ENV!=="production"&&(Ox.propTypes={children:s.node,value:s.object});function A4(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Ci(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Ci(o,r,t.components.mergeClassNameAndStyle):r}function D4({props:e,name:t}){const n=b.useContext(Px);return A4({props:e,name:t,theme:{components:n}})}let db=0;function _4(e){const[t,n]=b.useState(e),r=e||t;return b.useEffect(()=>{t==null&&(db+=1,n(`mui-${db}`))},[t]),r}const z4={...b},pb=z4.useId;function xt(e){if(pb!==void 0){const t=pb();return e!=null?e:t}return _4(e)}function B4(e){const t=gm(),n=xt()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!r||t!==null?o="":typeof r=="string"?o=r.replace(/mui(?!\.)/g,o):o=`@layer ${o};`,Rt(()=>{var a,c;const i=document.querySelector("head");if(!i)return;const l=i.firstChild;if(o){if(l&&((a=l.hasAttribute)!=null&&a.call(l,"data-mui-layer-order"))&&l.getAttribute("data-mui-layer-order")===n)return;const u=document.createElement("style");u.setAttribute("data-mui-layer-order",n),u.textContent=o,i.prepend(u)}else(c=i.querySelector(`style[data-mui-layer-order="${n}"]`))==null||c.remove()},[o,n]),o?m.jsx(bm,{styles:o}):null}const fb={};function mb(e,t,n,r=!1){return b.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),l=e?{...t,[e]:i}:i;return r?()=>l:l}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function Zl(e){const{children:t,theme:n,themeId:r}=e,o=gm(fb),i=xm()||fb;process.env.NODE_ENV!=="production"&&(o===null&&typeof n=="function"||r&&o&&!o[r]&&typeof n=="function")&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
93
- `));const l=mb(r,o,n),a=mb(r,i,n,!0),c=(r?l[r]:l).direction==="rtl",u=B4(l);return m.jsx(Wc,{theme:a,children:m.jsx(wa.Provider,{value:l,children:m.jsx(Ix,{value:c,children:m.jsxs(Ox,{value:r?l[r].components:l.components,children:[u,t]})})})})}process.env.NODE_ENV!=="production"&&(Zl.propTypes={children:s.node,theme:s.oneOfType([s.func,s.object]).isRequired,themeId:s.string});process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(Zl.propTypes=Ta(Zl.propTypes));const hb={theme:void 0};function V4(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(hb.theme=o.theme,i=xx(e(hb)),t=i,n=o.theme),i}}const Cm="mode",wm="color-scheme",H4="data-color-scheme";function G4(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=Cm,colorSchemeStorageKey:i=wm,attribute:l=H4,colorSchemeNode:a="document.documentElement",nonce:c}=e||{};let u="",d=l;if(l==="class"&&(d=".%s"),l==="data"&&(d="[data-%s]"),d.startsWith(".")){const h=d.substring(1);u+=`${a}.classList.remove('${h}'.replace('%s', light), '${h}'.replace('%s', dark));
94
- ${a}.classList.add('${h}'.replace('%s', colorScheme));`}const p=d.match(/\[([^[\]]+)\]/);if(p){const[h,f]=p[1].split("=");f||(u+=`${a}.removeAttribute('${h}'.replace('%s', light));
95
- ${a}.removeAttribute('${h}'.replace('%s', dark));`),u+=`
96
- ${a}.setAttribute('${h}'.replace('%s', colorScheme), ${f?`${f}.replace('%s', colorScheme)`:'""'});`}else d!==".%s"&&(u+=`${a}.setAttribute('${d}', colorScheme);`);return m.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window=="undefined"?c:"",dangerouslySetInnerHTML:{__html:`(function() {
97
- try {
98
- let colorScheme = '';
99
- const mode = localStorage.getItem('${o}') || '${t}';
100
- const dark = localStorage.getItem('${i}-dark') || '${r}';
101
- const light = localStorage.getItem('${i}-light') || '${n}';
102
- if (mode === 'system') {
103
- // handle system mode
104
- const mql = window.matchMedia('(prefers-color-scheme: dark)');
105
- if (mql.matches) {
106
- colorScheme = dark
107
- } else {
108
- colorScheme = light
109
- }
110
- }
111
- if (mode === 'light') {
112
- colorScheme = light;
113
- }
114
- if (mode === 'dark') {
115
- colorScheme = dark;
116
- }
117
- if (colorScheme) {
118
- ${u}
119
- }
120
- } catch(e){}})();`}},"mui-color-scheme-init")}function W4(){}const U4=({key:e,storageWindow:t})=>(!t&&typeof window!="undefined"&&(t=window),{get(n){if(typeof window=="undefined")return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch(o){}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch(r){}},subscribe:n=>{if(!t)return W4;const r=o=>{const i=o.newValue;o.key===e&&n(i)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function qd(){}function gb(e){if(typeof window!="undefined"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Mx(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function q4(e){return Mx(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function K4(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:i=Cm,colorSchemeStorageKey:l=wm,storageWindow:a=typeof window=="undefined"?void 0:window,storageManager:c=U4,noSsr:u=!1}=e,d=o.join(","),p=o.length>1,h=b.useMemo(()=>c==null?void 0:c({key:i,storageWindow:a}),[c,i,a]),f=b.useMemo(()=>c==null?void 0:c({key:`${l}-light`,storageWindow:a}),[c,l,a]),y=b.useMemo(()=>c==null?void 0:c({key:`${l}-dark`,storageWindow:a}),[c,l,a]),[g,v]=b.useState(()=>{const P=(h==null?void 0:h.get(t))||t,O=(f==null?void 0:f.get(n))||n,j=(y==null?void 0:y.get(r))||r;return{mode:P,systemMode:gb(P),lightColorScheme:O,darkColorScheme:j}}),[x,S]=b.useState(u||!p);b.useEffect(()=>{S(!0)},[]);const w=q4(g),k=b.useCallback(P=>{v(O=>{if(P===O.mode)return O;const j=P!=null?P:t;return h==null||h.set(j),{...O,mode:j,systemMode:gb(j)}})},[h,t]),E=b.useCallback(P=>{P?typeof P=="string"?P&&!d.includes(P)?console.error(`\`${P}\` does not exist in \`theme.colorSchemes\`.`):v(O=>{const j={...O};return Mx(O,$=>{$==="light"&&(f==null||f.set(P),j.lightColorScheme=P),$==="dark"&&(y==null||y.set(P),j.darkColorScheme=P)}),j}):v(O=>{const j={...O},$=P.light===null?n:P.light,C=P.dark===null?r:P.dark;return $&&(d.includes($)?(j.lightColorScheme=$,f==null||f.set($)):console.error(`\`${$}\` does not exist in \`theme.colorSchemes\`.`)),C&&(d.includes(C)?(j.darkColorScheme=C,y==null||y.set(C)):console.error(`\`${C}\` does not exist in \`theme.colorSchemes\`.`)),j}):v(O=>(f==null||f.set(n),y==null||y.set(r),{...O,lightColorScheme:n,darkColorScheme:r}))},[d,f,y,n,r]),T=b.useCallback(P=>{g.mode==="system"&&v(O=>{const j=P!=null&&P.matches?"dark":"light";return O.systemMode===j?O:{...O,systemMode:j}})},[g.mode]),N=b.useRef(T);return N.current=T,b.useEffect(()=>{if(typeof window.matchMedia!="function"||!p)return;const P=(...j)=>N.current(...j),O=window.matchMedia("(prefers-color-scheme: dark)");return O.addListener(P),P(O),()=>{O.removeListener(P)}},[p]),b.useEffect(()=>{if(p){const P=(h==null?void 0:h.subscribe($=>{(!$||["light","dark","system"].includes($))&&k($||t)}))||qd,O=(f==null?void 0:f.subscribe($=>{(!$||d.match($))&&E({light:$})}))||qd,j=(y==null?void 0:y.subscribe($=>{(!$||d.match($))&&E({dark:$})}))||qd;return()=>{P(),O(),j()}}},[E,k,d,t,a,p,h,f,y]),{...g,mode:x?g.mode:void 0,systemMode:x?g.systemMode:void 0,colorScheme:x?w:void 0,setMode:k,setColorScheme:E}}const Y4="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function X4(e){const{themeId:t,theme:n={},modeStorageKey:r=Cm,colorSchemeStorageKey:o=wm,disableTransitionOnChange:i=!1,defaultColorScheme:l,resolveTheme:a}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},u=b.createContext(void 0);process.env.NODE_ENV!=="production"&&(u.displayName="ColorSchemeContext");const d=()=>b.useContext(u)||c,p={},h={};function f(x){var ee,de,he,ae;const{children:S,theme:w,modeStorageKey:k=r,colorSchemeStorageKey:E=o,disableTransitionOnChange:T=i,storageManager:N,storageWindow:P=typeof window=="undefined"?void 0:window,documentNode:O=typeof document=="undefined"?void 0:document,colorSchemeNode:j=typeof document=="undefined"?void 0:document.documentElement,disableNestedContext:$=!1,disableStyleSheetGeneration:C=!1,defaultMode:L="system",forceThemeRerender:F=!1,noSsr:M}=x,R=b.useRef(!1),_=xm(),V=b.useContext(u),W=!!V&&!$,I=b.useMemo(()=>w||(typeof n=="function"?n():n),[w]),D=I[t],G=D||I,{colorSchemes:A=p,components:K=h,cssVarPrefix:Y}=G,U=Object.keys(A).filter(ge=>!!A[ge]).join(","),q=b.useMemo(()=>U.split(","),[U]),Z=typeof l=="string"?l:l.light,X=typeof l=="string"?l:l.dark,Q=A[Z]&&A[X]?L:((de=(ee=A[G.defaultColorScheme])==null?void 0:ee.palette)==null?void 0:de.mode)||((he=G.palette)==null?void 0:he.mode),{mode:re,setMode:J,systemMode:oe,lightColorScheme:te,darkColorScheme:fe,colorScheme:ve,setColorScheme:Ce}=K4({supportedColorSchemes:q,defaultLightColorScheme:Z,defaultDarkColorScheme:X,modeStorageKey:k,colorSchemeStorageKey:E,defaultMode:Q,storageManager:N,storageWindow:P,noSsr:M});let xe=re,Se=ve;W&&(xe=V.mode,Se=V.colorScheme),process.env.NODE_ENV!=="production"&&F&&!G.vars&&console.warn(["MUI: The `forceThemeRerender` prop should only be used with CSS theme variables.","Note that it will slow down the app when changing between modes, so only do this when you cannot find a better solution."].join(`
121
- `));let Oe=Se||G.defaultColorScheme;G.vars&&!F&&(Oe=G.defaultColorScheme);const Ae=b.useMemo(()=>{var Te;const ge=((Te=G.generateThemeVars)==null?void 0:Te.call(G))||G.vars,be={...G,components:K,colorSchemes:A,cssVarPrefix:Y,vars:ge};if(typeof be.generateSpacing=="function"&&(be.spacing=be.generateSpacing()),Oe){const _e=A[Oe];_e&&typeof _e=="object"&&Object.keys(_e).forEach(ke=>{_e[ke]&&typeof _e[ke]=="object"?be[ke]={...be[ke],..._e[ke]}:be[ke]=_e[ke]})}return a?a(be):be},[G,Oe,K,A,Y]),se=G.colorSchemeSelector;Rt(()=>{if(Se&&j&&se&&se!=="media"){const ge=se;let be=se;if(ge==="class"&&(be=".%s"),ge==="data"&&(be="[data-%s]"),ge!=null&&ge.startsWith("data-")&&!ge.includes("%s")&&(be=`[${ge}="%s"]`),be.startsWith("."))j.classList.remove(...q.map(Te=>be.substring(1).replace("%s",Te))),j.classList.add(be.substring(1).replace("%s",Se));else{const Te=be.replace("%s",Se).match(/\[([^\]]+)\]/);if(Te){const[_e,ke]=Te[1].split("=");ke||q.forEach(dt=>{j.removeAttribute(_e.replace(Se,dt))}),j.setAttribute(_e,ke?ke.replace(/"|'/g,""):"")}else j.setAttribute(be,Se)}}},[Se,se,j,q]),b.useEffect(()=>{let ge;if(T&&R.current&&O){const be=O.createElement("style");be.appendChild(O.createTextNode(Y4)),O.head.appendChild(be),window.getComputedStyle(O.body),ge=setTimeout(()=>{O.head.removeChild(be)},1)}return()=>{clearTimeout(ge)}},[Se,T,O]),b.useEffect(()=>(R.current=!0,()=>{R.current=!1}),[]);const Ge=b.useMemo(()=>({allColorSchemes:q,colorScheme:Se,darkColorScheme:fe,lightColorScheme:te,mode:xe,setColorScheme:Ce,setMode:process.env.NODE_ENV==="production"?J:ge=>{Ae.colorSchemeSelector==="media"&&console.error(["MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).","To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.","To learn more, visit https://v7.mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually"].join(`
122
- `)),J(ge)},systemMode:oe}),[q,Se,fe,te,xe,Ce,J,oe,Ae.colorSchemeSelector]);let Ie=!0;(C||G.cssVariables===!1||W&&(_==null?void 0:_.cssVarPrefix)===Y)&&(Ie=!1);const Ye=m.jsxs(b.Fragment,{children:[m.jsx(Zl,{themeId:D?t:void 0,theme:Ae,children:S}),Ie&&m.jsx(hm,{styles:((ae=Ae.generateStyleSheets)==null?void 0:ae.call(Ae))||[]})]});return W?Ye:m.jsx(u.Provider,{value:Ge,children:Ye})}process.env.NODE_ENV!=="production"&&(f.propTypes={children:s.node,colorSchemeNode:s.any,colorSchemeStorageKey:s.string,defaultMode:s.string,disableNestedContext:s.bool,disableStyleSheetGeneration:s.bool,disableTransitionOnChange:s.bool,documentNode:s.any,forceThemeRerender:s.bool,modeStorageKey:s.string,noSsr:s.bool,storageManager:s.func,storageWindow:s.any,theme:s.object});const y=typeof l=="string"?l:l.light,g=typeof l=="string"?l:l.dark;return{CssVarsProvider:f,useColorScheme:d,getInitColorSchemeScript:x=>G4({colorSchemeStorageKey:o,defaultLightColorScheme:y,defaultDarkColorScheme:g,modeStorageKey:r,...x})}}function Z4(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const bb=(e,t,n,r=[])=>{let o=e;t.forEach((i,l)=>{l===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},Q4=(e,t,n)=>{function r(o,i=[],l=[]){Object.entries(o).forEach(([a,c])=>{(!n||n&&!n([...i,a]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...i,a],Array.isArray(c)?[...l,a]:l):t([...i,a],c,l))})}r(e)},J4=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Kd(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},l={};return Q4(e,(a,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(a,c))){const d=`--${n?`${n}-`:""}${a.join("-")}`,p=J4(a,c);Object.assign(o,{[d]:p}),bb(i,a,`var(${d})`,u),bb(l,a,`var(${d}, ${p})`,u)}},a=>a[0]==="vars"),{css:o,vars:i,varsWithDefaults:l}}function eM(e,t={}){const{getSelector:n=x,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:l={},components:a,defaultColorScheme:c="light",...u}=e,{vars:d,css:p,varsWithDefaults:h}=Kd(u,t);let f=h;const y={},{[c]:g,...v}=l;if(Object.entries(v||{}).forEach(([k,E])=>{const{vars:T,css:N,varsWithDefaults:P}=Kd(E,t);f=Cn(f,P),y[k]={css:N,vars:T}}),g){const{css:k,vars:E,varsWithDefaults:T}=Kd(g,t);f=Cn(f,T),y[c]={css:k,vars:E}}function x(k,E){var N,P;let T=o;if(o==="class"&&(T=".%s"),o==="data"&&(T="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(T=`[${o}="%s"]`),k){if(T==="media")return e.defaultColorScheme===k?":root":{[`@media (prefers-color-scheme: ${((P=(N=l[k])==null?void 0:N.palette)==null?void 0:P.mode)||k})`]:{":root":E}};if(T)return e.defaultColorScheme===k?`:root, ${T.replace("%s",String(k))}`:T.replace("%s",String(k))}return":root"}return{vars:f,generateThemeVars:()=>{let k={...d};return Object.entries(y).forEach(([,{vars:E}])=>{k=Cn(k,E)}),k},generateStyleSheets:()=>{var O,j;const k=[],E=e.defaultColorScheme||"light";function T($,C){Object.keys(C).length&&k.push(typeof $=="string"?{[$]:{...C}}:$)}T(n(void 0,{...p}),p);const{[E]:N,...P}=y;if(N){const{css:$}=N,C=(j=(O=l[E])==null?void 0:O.palette)==null?void 0:j.mode,L=!r&&C?{colorScheme:C,...$}:{...$};T(n(E,{...L}),L)}return Object.entries(P).forEach(([$,{css:C}])=>{var M,R;const L=(R=(M=l[$])==null?void 0:M.palette)==null?void 0:R.mode,F=!r&&L?{colorScheme:L,...C}:{...C};T(n($,{...F}),F)}),i&&k.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),k}}}function tM(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function Nl(e,t){var n,r,o,i;return b.isValidElement(e)&&t.indexOf((i=e.type.muiName)!=null?i:(o=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:o.muiName)!==-1}const nM=Vu(),rM=$t("div",{name:"MuiStack",slot:"Root"});function oM(e){return P4({props:e,name:"MuiStack",defaultTheme:nM})}function sM(e,t){const n=b.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i<n.length-1&&r.push(b.cloneElement(t,{key:`separator-${i}`})),r),[])}const iM=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],lM=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Ar({theme:t},Vd({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=Lu(t),o=Object.keys(t.breakpoints.values).reduce((c,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(c[u]=!0),c),{}),i=Vd({values:e.direction,base:o}),l=Vd({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((c,u,d)=>{if(!i[c]){const h=u>0?i[d[u-1]]:"column";i[c]=h}}),n=Cn(n,Ar({theme:t},l,(c,u)=>e.useFlexGap?{gap:Os(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${iM(u?i[u]:e.direction)}`]:Os(r,c)}}))}return n=TP(t.breakpoints,n),n};function aM(e={}){const{createStyledComponent:t=rM,useThemeProps:n=oM,componentName:r="MuiStack"}=e,o=()=>ye({root:["root"]},c=>Ne(r,c),{}),i=t(lM),l=b.forwardRef(function(c,u){const d=n(c),p=lm(d),{component:h="div",direction:f="column",spacing:y=0,divider:g,children:v,className:x,useFlexGap:S=!1,...w}=p,k={direction:f,spacing:y,useFlexGap:S},E=o();return m.jsx(i,{as:h,ownerState:k,ref:u,className:ue(E.root,x),...w,children:g?sM(v,g):v})});return process.env.NODE_ENV!=="production"&&(l.propTypes={children:s.node,direction:s.oneOfType([s.oneOf(["column-reverse","column","row-reverse","row"]),s.arrayOf(s.oneOf(["column-reverse","column","row-reverse","row"])),s.object]),divider:s.node,spacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])}),l}const Ql={black:"#000",white:"#fff"},cM={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Ks={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ys={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},rl={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Xs={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Zs={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Qs={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Rx(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ql.white,default:Ql.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const jx=Rx();function Lx(){return{text:{primary:Ql.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ql.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const qp=Lx();function yb(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Ea(e.main,o):t==="dark"&&(e.dark=ka(e.main,i)))}function vb(e,t,n,r,o){const i=o.light||o,l=o.dark||o*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(l*100).toFixed(0)}%)`))}function uM(e="light"){return e==="dark"?{main:Xs[200],light:Xs[50],dark:Xs[400]}:{main:Xs[700],light:Xs[400],dark:Xs[800]}}function dM(e="light"){return e==="dark"?{main:Ks[200],light:Ks[50],dark:Ks[400]}:{main:Ks[500],light:Ks[300],dark:Ks[700]}}function pM(e="light"){return e==="dark"?{main:Ys[500],light:Ys[300],dark:Ys[700]}:{main:Ys[700],light:Ys[400],dark:Ys[800]}}function fM(e="light"){return e==="dark"?{main:Zs[400],light:Zs[300],dark:Zs[700]}:{main:Zs[700],light:Zs[500],dark:Zs[900]}}function mM(e="light"){return e==="dark"?{main:Qs[400],light:Qs[300],dark:Qs[700]}:{main:Qs[800],light:Qs[500],dark:Qs[900]}}function hM(e="light"){return e==="dark"?{main:rl[400],light:rl[300],dark:rl[700]}:{main:"#ed6c02",light:rl[500],dark:rl[900]}}function gM(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Sm(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...i}=e,l=e.primary||uM(t),a=e.secondary||dM(t),c=e.error||pM(t),u=e.info||fM(t),d=e.success||mM(t),p=e.warning||hM(t);function h(v){if(o)return gM(v);const x=ub(v,qp.text.primary)>=n?qp.text.primary:jx.text.primary;if(process.env.NODE_ENV!=="production"){const S=ub(v,x);S<3&&console.error([`MUI: The contrast ratio of ${S}:1 for ${x} on ${v}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
123
- `))}return x}const f=({color:v,name:x,mainShade:S=500,lightShade:w=300,darkShade:k=700})=>{if(v={...v},!v.main&&v[S]&&(v.main=v[S]),!v.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
124
- The color object needs to have a \`main\` property or a \`${S}\` property.`:So(11,x?` (${x})`:"",S));if(typeof v.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
125
- \`color.main\` should be a string, but \`${JSON.stringify(v.main)}\` was provided instead.
126
-
127
- Did you intend to use one of the following approaches?
128
-
129
- import { green } from "@mui/material/colors";
130
-
131
- const theme1 = createTheme({ palette: {
132
- primary: green,
133
- } });
134
-
135
- const theme2 = createTheme({ palette: {
136
- primary: { main: green[500] },
137
- } });`:So(12,x?` (${x})`:"",JSON.stringify(v.main)));return o?(vb(o,v,"light",w,r),vb(o,v,"dark",k,r)):(yb(v,"light",w,r),yb(v,"dark",k,r)),v.contrastText||(v.contrastText=h(v.main)),v};let y;return t==="light"?y=Rx():t==="dark"&&(y=Lx()),process.env.NODE_ENV!=="production"&&(y||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Cn({common:{...Ql},mode:t,primary:f({color:l,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:c,name:"error"}),warning:f({color:p,name:"warning"}),info:f({color:u,name:"info"}),success:f({color:d,name:"success"}),grey:cM,contrastThreshold:n,getContrastText:h,augmentColor:f,tonalOffset:r,...y},i)}function bM(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function yM(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function vM(e){return Math.round(e*1e5)/1e5}const xb={textTransform:"uppercase"},Cb='"Roboto", "Helvetica", "Arial", sans-serif';function $x(e,t){const{fontFamily:n=Cb,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:c=16,allVariants:u,pxToRem:d,...p}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=r/14,f=d||(v=>`${v/c*h}rem`),y=(v,x,S,w,k)=>({fontFamily:n,fontWeight:v,fontSize:f(x),lineHeight:S,...n===Cb?{letterSpacing:`${vM(w/x)}em`}:{},...k,...u}),g={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(i,48,1.167,0),h4:y(i,34,1.235,.25),h5:y(i,24,1.334,0),h6:y(l,20,1.6,.15),subtitle1:y(i,16,1.75,.15),subtitle2:y(l,14,1.57,.1),body1:y(i,16,1.5,.15),body2:y(i,14,1.43,.15),button:y(l,14,1.75,.4,xb),caption:y(i,12,1.66,.4),overline:y(i,12,2.66,1,xb),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Cn({htmlFontSize:c,pxToRem:f,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:a,...g},p,{clone:!1})}const xM=.2,CM=.14,wM=.12;function qt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${xM})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${CM})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${wM})`].join(",")}const SM=["none",qt(0,2,1,-1,0,1,1,0,0,1,3,0),qt(0,3,1,-2,0,2,2,0,0,1,5,0),qt(0,3,3,-2,0,3,4,0,0,1,8,0),qt(0,2,4,-1,0,4,5,0,0,1,10,0),qt(0,3,5,-1,0,5,8,0,0,1,14,0),qt(0,3,5,-1,0,6,10,0,0,1,18,0),qt(0,4,5,-2,0,7,10,1,0,2,16,1),qt(0,5,5,-3,0,8,10,1,0,3,14,2),qt(0,5,6,-3,0,9,12,1,0,3,16,2),qt(0,6,6,-3,0,10,14,1,0,4,18,3),qt(0,6,7,-4,0,11,15,1,0,4,20,3),qt(0,7,8,-4,0,12,17,2,0,5,22,4),qt(0,7,8,-4,0,13,19,2,0,5,24,4),qt(0,7,9,-4,0,14,21,2,0,5,26,4),qt(0,8,9,-5,0,15,22,2,0,6,28,5),qt(0,8,10,-5,0,16,24,2,0,6,30,5),qt(0,8,11,-5,0,17,26,2,0,6,32,5),qt(0,9,11,-5,0,18,28,2,0,7,34,6),qt(0,9,12,-6,0,19,29,2,0,7,36,6),qt(0,10,13,-6,0,20,31,3,0,8,38,7),qt(0,10,13,-6,0,21,33,3,0,8,40,7),qt(0,10,14,-6,0,22,35,3,0,8,42,7),qt(0,11,14,-7,0,23,36,3,0,9,44,8),qt(0,11,15,-7,0,24,38,3,0,9,46,8)],kM={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},EM={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function wb(e){return`${Math.round(e)}ms`}function TM(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function IM(e){const t={...kM,...e.easing},n={...EM,...e.duration};return{getAutoHeightDuration:TM,create:(o=["all"],i={})=>{const{duration:l=n.standard,easing:a=t.easeInOut,delay:c=0,...u}=i;if(process.env.NODE_ENV!=="production"){const d=h=>typeof h=="string",p=h=>!Number.isNaN(parseFloat(h));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(l)&&!d(l)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${l}.`),d(a)||console.error('MUI: Argument "easing" must be a string.'),!p(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
138
- `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof l=="string"?l:wb(l)} ${a} ${typeof c=="string"?c:wb(c)}`).join(",")},...e,easing:t,duration:n}}const PM={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function OM(e){return Qr(e)||typeof e=="undefined"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Nx(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[l,a]=o[i];!OM(a)||l.startsWith("unstable_")?delete r[l]:Qr(a)&&(r[l]={...a},n(r[l]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
139
-
140
- const theme = ${JSON.stringify(t,null,2)};
141
-
142
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
143
- theme.transitions = createTransitions(theme.transitions || {});
144
-
145
- export default theme;`}function Sb(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const MM=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function RM(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:fr(t,MM(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Sb(n)})`:Ea(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Sb(n)})`:ka(t,n)}})}function Kp(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:l={},typography:a={},shape:c,colorSpace:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://v7.mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":So(20));const p=Sm({...i,colorSpace:u}),h=Vu(e);let f=Cn(h,{mixins:yM(h.breakpoints,r),palette:p,shadows:SM.slice(),typography:$x(p,a),transitions:IM(l),zIndex:{...PM}});if(f=Cn(f,d),f=t.reduce((y,g)=>Cn(y,g),f),process.env.NODE_ENV!=="production"){const y=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(v,x)=>{let S;for(S in v){const w=v[S];if(y.includes(S)&&Object.keys(w).length>0){if(process.env.NODE_ENV!=="production"){const k=Ne("",S);console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${S}\` internal state.`,"You can not override it like this: ",JSON.stringify(v,null,2),"",`Instead, you need to use the '&.${k}' syntax:`,JSON.stringify({root:{[`&.${k}`]:w}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
146
- `))}v[S]={}}}};Object.keys(f.components).forEach(v=>{const x=f.components[v].styleOverrides;x&&v.startsWith("Mui")&&g(x,v)})}return f.unstable_sxConfig={...va,...d==null?void 0:d.unstable_sxConfig},f.unstable_sx=function(g){return Yo({sx:g,theme:this})},f.toRuntimeSource=Nx,RM(f),f}function Yp(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const jM=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Yp(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Fx(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Ax(e){return e==="dark"?jM:[]}function LM(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...i}=e,l=Sm({...t,colorSpace:o});return{palette:l,opacity:{...Fx(l.mode),...n},overlays:r||Ax(l.mode),...i}}function $M(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const NM=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],FM=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return NM(e.cssVarPrefix).forEach(a=>{l[a]=n[a],delete n[a]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:l}}:i?{[i.replace("%s",t)]:l,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...l}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function AM(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function pe(e,t,n){!e[t]&&n&&(e[t]=n)}function kl(e){return typeof e!="string"||!e.startsWith("hsl")?e:Ex(e)}function mo(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Sl(kl(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
147
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function DM(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Wr=e=>{try{return e()}catch(t){}},_M=(e="mui")=>Z4(e);function Yd(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const i=o==="dark"?"dark":"light";if(!r){t[o]=LM({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:l,...a}=Kp({...r,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[o]={...n,palette:l,opacity:{...Fx(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||Ax(i)},a}function zM(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:l=!1,shouldSkipGeneratingVar:a=$M,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,p=Object.keys(n)[0],h=r||(n.light&&p!=="light"?"light":p),f=_M(i),{[h]:y,light:g,dark:v,...x}=n,S={...x};let w=y;if((h==="dark"&&!("dark"in n)||h==="light"&&!("light"in n))&&(w=!0),!w)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:So(21,h));let k;l&&(k="oklch");const E=Yd(k,S,w,d,h);g&&!S.light&&Yd(k,S,g,void 0,"light"),v&&!S.dark&&Yd(k,S,v,void 0,"dark");let T={defaultColorScheme:h,...E,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:f,colorSchemes:S,font:{...bM(E.typography),...E.font},spacing:DM(d.spacing)};Object.keys(T.colorSchemes).forEach($=>{const C=T.colorSchemes[$].palette,L=M=>{const R=M.split("-"),_=R[1],V=R[2];return f(M,C[_][V])};C.mode==="light"&&(pe(C.common,"background","#fff"),pe(C.common,"onBackground","#000")),C.mode==="dark"&&(pe(C.common,"background","#000"),pe(C.common,"onBackground","#fff"));function F(M,R,_){if(k){let V;return M===us&&(V=`transparent ${((1-_)*100).toFixed(0)}%`),M===jt&&(V=`#000 ${(_*100).toFixed(0)}%`),M===Lt&&(V=`#fff ${(_*100).toFixed(0)}%`),`color-mix(in ${k}, ${R}, ${V})`}return M(R,_)}if(AM(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){pe(C.Alert,"errorColor",F(jt,l?f("palette-error-light"):C.error.light,.6)),pe(C.Alert,"infoColor",F(jt,l?f("palette-info-light"):C.info.light,.6)),pe(C.Alert,"successColor",F(jt,l?f("palette-success-light"):C.success.light,.6)),pe(C.Alert,"warningColor",F(jt,l?f("palette-warning-light"):C.warning.light,.6)),pe(C.Alert,"errorFilledBg",L("palette-error-main")),pe(C.Alert,"infoFilledBg",L("palette-info-main")),pe(C.Alert,"successFilledBg",L("palette-success-main")),pe(C.Alert,"warningFilledBg",L("palette-warning-main")),pe(C.Alert,"errorFilledColor",Wr(()=>C.getContrastText(C.error.main))),pe(C.Alert,"infoFilledColor",Wr(()=>C.getContrastText(C.info.main))),pe(C.Alert,"successFilledColor",Wr(()=>C.getContrastText(C.success.main))),pe(C.Alert,"warningFilledColor",Wr(()=>C.getContrastText(C.warning.main))),pe(C.Alert,"errorStandardBg",F(Lt,l?f("palette-error-light"):C.error.light,.9)),pe(C.Alert,"infoStandardBg",F(Lt,l?f("palette-info-light"):C.info.light,.9)),pe(C.Alert,"successStandardBg",F(Lt,l?f("palette-success-light"):C.success.light,.9)),pe(C.Alert,"warningStandardBg",F(Lt,l?f("palette-warning-light"):C.warning.light,.9)),pe(C.Alert,"errorIconColor",L("palette-error-main")),pe(C.Alert,"infoIconColor",L("palette-info-main")),pe(C.Alert,"successIconColor",L("palette-success-main")),pe(C.Alert,"warningIconColor",L("palette-warning-main")),pe(C.AppBar,"defaultBg",L("palette-grey-100")),pe(C.Avatar,"defaultBg",L("palette-grey-400")),pe(C.Button,"inheritContainedBg",L("palette-grey-300")),pe(C.Button,"inheritContainedHoverBg",L("palette-grey-A100")),pe(C.Chip,"defaultBorder",L("palette-grey-400")),pe(C.Chip,"defaultAvatarColor",L("palette-grey-700")),pe(C.Chip,"defaultIconColor",L("palette-grey-700")),pe(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),pe(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),pe(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),pe(C.LinearProgress,"primaryBg",F(Lt,l?f("palette-primary-main"):C.primary.main,.62)),pe(C.LinearProgress,"secondaryBg",F(Lt,l?f("palette-secondary-main"):C.secondary.main,.62)),pe(C.LinearProgress,"errorBg",F(Lt,l?f("palette-error-main"):C.error.main,.62)),pe(C.LinearProgress,"infoBg",F(Lt,l?f("palette-info-main"):C.info.main,.62)),pe(C.LinearProgress,"successBg",F(Lt,l?f("palette-success-main"):C.success.main,.62)),pe(C.LinearProgress,"warningBg",F(Lt,l?f("palette-warning-light"):C.warning.main,.62)),pe(C.Skeleton,"bg",k?F(us,l?f("palette-text-primary"):C.text.primary,.11):`rgba(${L("palette-text-primaryChannel")} / 0.11)`),pe(C.Slider,"primaryTrack",F(Lt,l?f("palette-primary-main"):C.primary.main,.62)),pe(C.Slider,"secondaryTrack",F(Lt,l?f("palette-secondary-main"):C.secondary.main,.62)),pe(C.Slider,"errorTrack",F(Lt,l?f("palette-error-main"):C.error.main,.62)),pe(C.Slider,"infoTrack",F(Lt,l?f("palette-info-main"):C.info.main,.62)),pe(C.Slider,"successTrack",F(Lt,l?f("palette-success-main"):C.success.main,.62)),pe(C.Slider,"warningTrack",F(Lt,l?f("palette-warning-main"):C.warning.main,.62));const M=k?F(jt,l?f("palette-background-default"):C.background.default,.6825):cc(C.background.default,.8);pe(C.SnackbarContent,"bg",M),pe(C.SnackbarContent,"color",Wr(()=>k?qp.text.primary:C.getContrastText(M))),pe(C.SpeedDialAction,"fabHoverBg",cc(C.background.paper,.15)),pe(C.StepConnector,"border",L("palette-grey-400")),pe(C.StepContent,"border",L("palette-grey-400")),pe(C.Switch,"defaultColor",L("palette-common-white")),pe(C.Switch,"defaultDisabledColor",L("palette-grey-100")),pe(C.Switch,"primaryDisabledColor",F(Lt,l?f("palette-primary-main"):C.primary.main,.62)),pe(C.Switch,"secondaryDisabledColor",F(Lt,l?f("palette-secondary-main"):C.secondary.main,.62)),pe(C.Switch,"errorDisabledColor",F(Lt,l?f("palette-error-main"):C.error.main,.62)),pe(C.Switch,"infoDisabledColor",F(Lt,l?f("palette-info-main"):C.info.main,.62)),pe(C.Switch,"successDisabledColor",F(Lt,l?f("palette-success-main"):C.success.main,.62)),pe(C.Switch,"warningDisabledColor",F(Lt,l?f("palette-warning-main"):C.warning.main,.62)),pe(C.TableCell,"border",F(Lt,us(l?f("palette-divider"):C.divider,1),.88)),pe(C.Tooltip,"bg",F(us,l?f("palette-grey-700"):C.grey[700],.92))}if(C.mode==="dark"){pe(C.Alert,"errorColor",F(Lt,l?f("palette-error-light"):C.error.light,.6)),pe(C.Alert,"infoColor",F(Lt,l?f("palette-info-light"):C.info.light,.6)),pe(C.Alert,"successColor",F(Lt,l?f("palette-success-light"):C.success.light,.6)),pe(C.Alert,"warningColor",F(Lt,l?f("palette-warning-light"):C.warning.light,.6)),pe(C.Alert,"errorFilledBg",L("palette-error-dark")),pe(C.Alert,"infoFilledBg",L("palette-info-dark")),pe(C.Alert,"successFilledBg",L("palette-success-dark")),pe(C.Alert,"warningFilledBg",L("palette-warning-dark")),pe(C.Alert,"errorFilledColor",Wr(()=>C.getContrastText(C.error.dark))),pe(C.Alert,"infoFilledColor",Wr(()=>C.getContrastText(C.info.dark))),pe(C.Alert,"successFilledColor",Wr(()=>C.getContrastText(C.success.dark))),pe(C.Alert,"warningFilledColor",Wr(()=>C.getContrastText(C.warning.dark))),pe(C.Alert,"errorStandardBg",F(jt,l?f("palette-error-light"):C.error.light,.9)),pe(C.Alert,"infoStandardBg",F(jt,l?f("palette-info-light"):C.info.light,.9)),pe(C.Alert,"successStandardBg",F(jt,l?f("palette-success-light"):C.success.light,.9)),pe(C.Alert,"warningStandardBg",F(jt,l?f("palette-warning-light"):C.warning.light,.9)),pe(C.Alert,"errorIconColor",L("palette-error-main")),pe(C.Alert,"infoIconColor",L("palette-info-main")),pe(C.Alert,"successIconColor",L("palette-success-main")),pe(C.Alert,"warningIconColor",L("palette-warning-main")),pe(C.AppBar,"defaultBg",L("palette-grey-900")),pe(C.AppBar,"darkBg",L("palette-background-paper")),pe(C.AppBar,"darkColor",L("palette-text-primary")),pe(C.Avatar,"defaultBg",L("palette-grey-600")),pe(C.Button,"inheritContainedBg",L("palette-grey-800")),pe(C.Button,"inheritContainedHoverBg",L("palette-grey-700")),pe(C.Chip,"defaultBorder",L("palette-grey-700")),pe(C.Chip,"defaultAvatarColor",L("palette-grey-300")),pe(C.Chip,"defaultIconColor",L("palette-grey-300")),pe(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),pe(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),pe(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),pe(C.LinearProgress,"primaryBg",F(jt,l?f("palette-primary-main"):C.primary.main,.5)),pe(C.LinearProgress,"secondaryBg",F(jt,l?f("palette-secondary-main"):C.secondary.main,.5)),pe(C.LinearProgress,"errorBg",F(jt,l?f("palette-error-main"):C.error.main,.5)),pe(C.LinearProgress,"infoBg",F(jt,l?f("palette-info-main"):C.info.main,.5)),pe(C.LinearProgress,"successBg",F(jt,l?f("palette-success-main"):C.success.main,.5)),pe(C.LinearProgress,"warningBg",F(jt,l?f("palette-warning-main"):C.warning.main,.5)),pe(C.Skeleton,"bg",k?F(us,l?f("palette-text-primary"):C.text.primary,.13):`rgba(${L("palette-text-primaryChannel")} / 0.13)`),pe(C.Slider,"primaryTrack",F(jt,l?f("palette-primary-main"):C.primary.main,.5)),pe(C.Slider,"secondaryTrack",F(jt,l?f("palette-secondary-main"):C.secondary.main,.5)),pe(C.Slider,"errorTrack",F(jt,l?f("palette-error-main"):C.error.main,.5)),pe(C.Slider,"infoTrack",F(jt,l?f("palette-info-main"):C.info.main,.5)),pe(C.Slider,"successTrack",F(jt,l?f("palette-success-main"):C.success.main,.5)),pe(C.Slider,"warningTrack",F(jt,l?f("palette-warning-light"):C.warning.main,.5));const M=k?F(Lt,l?f("palette-background-default"):C.background.default,.985):cc(C.background.default,.98);pe(C.SnackbarContent,"bg",M),pe(C.SnackbarContent,"color",Wr(()=>k?jx.text.primary:C.getContrastText(M))),pe(C.SpeedDialAction,"fabHoverBg",cc(C.background.paper,.15)),pe(C.StepConnector,"border",L("palette-grey-600")),pe(C.StepContent,"border",L("palette-grey-600")),pe(C.Switch,"defaultColor",L("palette-grey-300")),pe(C.Switch,"defaultDisabledColor",L("palette-grey-600")),pe(C.Switch,"primaryDisabledColor",F(jt,l?f("palette-primary-main"):C.primary.main,.55)),pe(C.Switch,"secondaryDisabledColor",F(jt,l?f("palette-secondary-main"):C.secondary.main,.55)),pe(C.Switch,"errorDisabledColor",F(jt,l?f("palette-error-main"):C.error.main,.55)),pe(C.Switch,"infoDisabledColor",F(jt,l?f("palette-info-main"):C.info.main,.55)),pe(C.Switch,"successDisabledColor",F(jt,l?f("palette-success-main"):C.success.main,.55)),pe(C.Switch,"warningDisabledColor",F(jt,l?f("palette-warning-light"):C.warning.main,.55)),pe(C.TableCell,"border",F(jt,us(l?f("palette-divider"):C.divider,1),.68)),pe(C.Tooltip,"bg",F(us,l?f("palette-grey-700"):C.grey[700],.92))}l||(mo(C.background,"default"),mo(C.background,"paper"),mo(C.common,"background"),mo(C.common,"onBackground"),mo(C,"divider")),Object.keys(C).forEach(M=>{const R=C[M];M!=="tonalOffset"&&!l&&R&&typeof R=="object"&&(R.main&&pe(C[M],"mainChannel",Sl(kl(R.main))),R.light&&pe(C[M],"lightChannel",Sl(kl(R.light))),R.dark&&pe(C[M],"darkChannel",Sl(kl(R.dark))),R.contrastText&&pe(C[M],"contrastTextChannel",Sl(kl(R.contrastText))),M==="text"&&(mo(C[M],"primary"),mo(C[M],"secondary")),M==="action"&&(R.active&&mo(C[M],"active"),R.selected&&mo(C[M],"selected")))})}),T=t.reduce(($,C)=>Cn($,C),T);const N={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:FM(T),enableContrastVars:l},{vars:P,generateThemeVars:O,generateStyleSheets:j}=eM(T,N);return T.vars=P,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([$,C])=>{T[$]=C}),T.generateThemeVars=O,T.generateStyleSheets=j,T.generateSpacing=function(){return yx(d.spacing,Lu(this))},T.getColorSchemeSelector=tM(c),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=a,T.unstable_sxConfig={...va,...d==null?void 0:d.unstable_sxConfig},T.unstable_sx=function(C){return Yo({sx:C,theme:this})},T.toRuntimeSource=Nx,T}function kb(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Sm({...n===!0?{}:n.palette,mode:t})})}function Gu(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...l}=e,a=i||"light",c=o==null?void 0:o[a],u={...o,...n?{[a]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Kp(e,...t);let d=n;"palette"in e||u[a]&&(u[a]!==!0?d=u[a].palette:a==="dark"&&(d={mode:"dark"}));const p=Kp({...e,palette:d},...t);return p.defaultColorScheme=a,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},kb(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},kb(p,"light",u.light)),p}return!n&&!("light"in u)&&a==="light"&&(u.light=!0),zM({...l,colorSchemes:u,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const km=Gu(),no="$$material";function Xt(){const e=Hu(km);return process.env.NODE_ENV!=="production"&&b.useDebugValue(e),e[no]||e}function Dx(e){return m.jsx(bm,{...e,defaultTheme:km,themeId:no})}process.env.NODE_ENV!=="production"&&(Dx.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function _x(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const On=e=>_x(e)&&e!=="classes",ne=wx({themeId:no,defaultTheme:km,rootShouldForwardProp:On});function Em(e){return function(n){return m.jsx(Dx,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function BM(){return lm}const je=V4;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function ze(e){return D4(e)}function VM(e){return Ne("MuiSvgIcon",e)}$e("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const HM=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${ie(t)}`,`fontSize${ie(n)}`]};return ye(o,VM,r)},GM=ne("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ie(n.color)}`],t[`fontSize${ie(n.fontSize)}`]]}})(je(({theme:e})=>{var t,n,r,o,i,l,a,c,u,d,p,h,f,y,g,v,x,S;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(i=(t=e.transitions)==null?void 0:t.create)==null?void 0:i.call(t,"fill",{duration:(o=(r=((n=e.vars)!=null?n:e).transitions)==null?void 0:r.duration)==null?void 0:o.shorter}),variants:[{props:w=>!w.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:a.call(l,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((p=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:p.call(d,35))||"2.1875rem"}},...Object.entries(((h=e.vars)!=null?h:e).palette).filter(([,w])=>w&&w.main).map(([w])=>{var k,E,T;return{props:{color:w},style:{color:(T=(E=((k=e.vars)!=null?k:e).palette)==null?void 0:E[w])==null?void 0:T.main}}}),{props:{color:"action"},style:{color:(g=(y=((f=e.vars)!=null?f:e).palette)==null?void 0:y.action)==null?void 0:g.active}},{props:{color:"disabled"},style:{color:(S=(x=((v=e.vars)!=null?v:e).palette)==null?void 0:x.action)==null?void 0:S.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Ms=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:l="inherit",component:a="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:h="0 0 24 24",...f}=r,y=b.isValidElement(o)&&o.type==="svg",g={...r,color:l,component:a,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:y},v={};d||(v.viewBox=h);const x=HM(g);return m.jsxs(GM,{as:a,className:ue(x.root,i),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...v,...f,...y&&o.props,ownerState:g,children:[y?o.props.children:o,p?m.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(Ms.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,fontSize:s.oneOfType([s.oneOf(["inherit","large","medium","small"]),s.string]),htmlColor:s.string,inheritViewBox:s.bool,shapeRendering:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleAccess:s.string,viewBox:s.string});Ms.muiName="SvgIcon";function Me(e,t){function n(r,o){return m.jsx(Ms,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Ms.muiName,b.memo(b.forwardRef(n))}function Tm(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function Yt(e){return e&&e.ownerDocument||document}function vr(e){return Yt(e).defaultView||window}function Xp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function WM(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=o||t;return typeof e[t]!="undefined"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function Go(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:i}=b.useRef(t!==void 0),[l,a]=b.useState(n),c=i?t:l;if(process.env.NODE_ENV!=="production"){b.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${o} state of ${r} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
148
- `))},[o,r,t]);const{current:d}=b.useRef(n);b.useEffect(()=>{!i&&JSON.stringify(n)!==JSON.stringify(d)&&console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
149
- `))},[JSON.stringify(n)])}const u=b.useCallback(d=>{i||a(d)},[]);return[c,u]}function rt(e){const t=b.useRef(e);return Rt(()=>{t.current=e}),b.useRef((...n)=>(0,t.current)(...n)).current}function It(...e){const t=b.useRef(void 0),n=b.useCallback(r=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const l=i,a=l(r);return typeof a=="function"?a:()=>{l(null)}}return i.current=r,()=>{i.current=null}});return()=>{o.forEach(i=>i==null?void 0:i())}},e);return b.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function UM(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function zx(e,t){if(!e)return t;function n(l,a){const c={};return Object.keys(a).forEach(u=>{UM(u,a[u])&&typeof l[u]=="function"&&(c[u]=(...d)=>{l[u](...d),a[u](...d)})}),c}if(typeof e=="function"||typeof t=="function")return l=>{const a=typeof t=="function"?t(l):t,c=typeof e=="function"?e({...l,...a}):e,u=ue(l==null?void 0:l.className,a==null?void 0:a.className,c==null?void 0:c.className),d=n(c,a);return{...a,...c,...d,...!!u&&{className:u},...(a==null?void 0:a.style)&&(c==null?void 0:c.style)&&{style:{...a.style,...c.style}},...(a==null?void 0:a.sx)&&(c==null?void 0:c.sx)&&{sx:[...Array.isArray(a.sx)?a.sx:[a.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const r=t,o=n(e,r),i=ue(r==null?void 0:r.className,e==null?void 0:e.className);return{...t,...e,...o,...!!i&&{className:i},...(r==null?void 0:r.style)&&(e==null?void 0:e.style)&&{style:{...r.style,...e.style}},...(r==null?void 0:r.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const Bx=Me(m.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");function qM(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function KM(e){return parseFloat(e)}function YM({theme:e,...t}){const n=no in e?e[no]:void 0;return m.jsx(Zl,{...t,themeId:n?no:void 0,theme:n||e})}const uc={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"};process.env.NODE_ENV!=="production"&&(s.string,s.string,s.string,s.string,s.string,s.oneOf(["dark","light","system"]),s.string,s.string);const{CssVarsProvider:XM}=X4({themeId:no,theme:()=>Gu({cssVariables:!0}),colorSchemeStorageKey:uc.colorSchemeStorageKey,modeStorageKey:uc.modeStorageKey,defaultColorScheme:{light:uc.defaultLightColorScheme,dark:uc.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:$x(e.palette,e.typography)};return t.unstable_sx=function(r){return Yo({sx:r,theme:this})},t}}),ZM=XM;function QM({theme:e,...t}){const n=b.useMemo(()=>{if(typeof e=="function")return e;const r=no in e?e[no]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?m.jsx(YM,{theme:n,...t}):m.jsx(ZM,{theme:e,...t})}var dc={exports:{}},At={};/**
150
- * @license React
151
- * react-is.production.js
152
- *
153
- * Copyright (c) Meta Platforms, Inc. and affiliates.
154
- *
155
- * This source code is licensed under the MIT license found in the
156
- * LICENSE file in the root directory of this source tree.
157
- */var Eb;function JM(){if(Eb)return At;Eb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function y(g){if(typeof g=="object"&&g!==null){var v=g.$$typeof;switch(v){case e:switch(g=g.type,g){case n:case o:case r:case c:case u:case h:return g;default:switch(g=g&&g.$$typeof,g){case l:case a:case p:case d:return g;case i:return g;default:return v}}case t:return v}}}return At.ContextConsumer=i,At.ContextProvider=l,At.Element=e,At.ForwardRef=a,At.Fragment=n,At.Lazy=p,At.Memo=d,At.Portal=t,At.Profiler=o,At.StrictMode=r,At.Suspense=c,At.SuspenseList=u,At.isContextConsumer=function(g){return y(g)===i},At.isContextProvider=function(g){return y(g)===l},At.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},At.isForwardRef=function(g){return y(g)===a},At.isFragment=function(g){return y(g)===n},At.isLazy=function(g){return y(g)===p},At.isMemo=function(g){return y(g)===d},At.isPortal=function(g){return y(g)===t},At.isProfiler=function(g){return y(g)===o},At.isStrictMode=function(g){return y(g)===r},At.isSuspense=function(g){return y(g)===c},At.isSuspenseList=function(g){return y(g)===u},At.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===o||g===r||g===c||g===u||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===d||g.$$typeof===l||g.$$typeof===i||g.$$typeof===a||g.$$typeof===f||g.getModuleId!==void 0)},At.typeOf=y,At}var Dt={};/**
158
- * @license React
159
- * react-is.development.js
160
- *
161
- * Copyright (c) Meta Platforms, Inc. and affiliates.
162
- *
163
- * This source code is licensed under the MIT license found in the
164
- * LICENSE file in the root directory of this source tree.
165
- */var Tb;function eR(){return Tb||(Tb=1,process.env.NODE_ENV!=="production"&&(function(){function e(g){if(typeof g=="object"&&g!==null){var v=g.$$typeof;switch(v){case t:switch(g=g.type,g){case r:case i:case o:case u:case d:case f:return g;default:switch(g=g&&g.$$typeof,g){case a:case c:case h:case p:return g;case l:return g;default:return v}}case n:return v}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");Dt.ContextConsumer=l,Dt.ContextProvider=a,Dt.Element=t,Dt.ForwardRef=c,Dt.Fragment=r,Dt.Lazy=h,Dt.Memo=p,Dt.Portal=n,Dt.Profiler=i,Dt.StrictMode=o,Dt.Suspense=u,Dt.SuspenseList=d,Dt.isContextConsumer=function(g){return e(g)===l},Dt.isContextProvider=function(g){return e(g)===a},Dt.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},Dt.isForwardRef=function(g){return e(g)===c},Dt.isFragment=function(g){return e(g)===r},Dt.isLazy=function(g){return e(g)===h},Dt.isMemo=function(g){return e(g)===p},Dt.isPortal=function(g){return e(g)===n},Dt.isProfiler=function(g){return e(g)===i},Dt.isStrictMode=function(g){return e(g)===o},Dt.isSuspense=function(g){return e(g)===u},Dt.isSuspenseList=function(g){return e(g)===d},Dt.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===i||g===o||g===u||g===d||typeof g=="object"&&g!==null&&(g.$$typeof===h||g.$$typeof===p||g.$$typeof===a||g.$$typeof===l||g.$$typeof===c||g.$$typeof===y||g.getModuleId!==void 0)},Dt.typeOf=e})()),Dt}var Ib;function tR(){return Ib||(Ib=1,process.env.NODE_ENV==="production"?dc.exports=JM():dc.exports=eR()),dc.exports}var Wu=tR();function or(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function Be(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Zp(e,t){return Zp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Zp(e,t)}function Vx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zp(e,t)}const Pb={disabled:!1};var nR=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&s.oneOfType([s.string,s.shape({enter:s.string,exit:s.string,active:s.string}),s.shape({enter:s.string,enterDone:s.string,enterActive:s.string,exit:s.string,exitDone:s.string,exitActive:s.string})]);const Uc=H.createContext(null);var rR=function(t){return t.scrollTop},El="unmounted",fs="exited",ms="entering",si="entered",Qp="exiting",zr=(function(e){Vx(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var l=o,a=l&&!l.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?a?(c=fs,i.appearStatus=ms):c=si:r.unmountOnExit||r.mountOnEnter?c=El:c=fs,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var l=o.in;return l&&i.status===El?{status:fs}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var l=this.state.status;this.props.in?l!==ms&&l!==si&&(i=ms):(l===ms||l===si)&&(i=Qp)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,l,a;return i=l=a=o,o!=null&&typeof o!="number"&&(i=o.exit,l=o.enter,a=o.appear!==void 0?o.appear:l),{exit:i,enter:l,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ms){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:ci.findDOMNode(this);l&&rR(l)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===fs&&this.setState({status:El})},n.performEnter=function(o){var i=this,l=this.props.enter,a=this.context?this.context.isMounting:o,c=this.props.nodeRef?[a]:[ci.findDOMNode(this),a],u=c[0],d=c[1],p=this.getTimeouts(),h=a?p.appear:p.enter;if(!o&&!l||Pb.disabled){this.safeSetState({status:si},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:ms},function(){i.props.onEntering(u,d),i.onTransitionEnd(h,function(){i.safeSetState({status:si},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var o=this,i=this.props.exit,l=this.getTimeouts(),a=this.props.nodeRef?void 0:ci.findDOMNode(this);if(!i||Pb.disabled){this.safeSetState({status:fs},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Qp},function(){o.props.onExiting(a),o.onTransitionEnd(l.exit,function(){o.safeSetState({status:fs},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,l=!0;return this.nextCallback=function(a){l&&(l=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var l=this.props.nodeRef?this.props.nodeRef.current:ci.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!l||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===El)return null;var i=this.props,l=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=Be(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return H.createElement(Uc.Provider,{value:null},typeof l=="function"?l(o,a):H.cloneElement(H.Children.only(l),a))},t})(H.Component);zr.contextType=Uc;zr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:s.shape({current:typeof Element=="undefined"?s.any:function(e,t,n,r,o,i){var l=e[t];return s.instanceOf(l&&"ownerDocument"in l?l.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:s.oneOfType([s.func.isRequired,s.element.isRequired]).isRequired,in:s.bool,mountOnEnter:s.bool,unmountOnExit:s.bool,appear:s.bool,enter:s.bool,exit:s.bool,timeout:function(t){var n=nR;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return n.apply(void 0,[t].concat(o))},addEndListener:s.func,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}:{};function Js(){}zr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Js,onEntering:Js,onEntered:Js,onExit:Js,onExiting:Js,onExited:Js};zr.UNMOUNTED=El;zr.EXITED=fs;zr.ENTERING=ms;zr.ENTERED=si;zr.EXITING=Qp;function oR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Im(e,t){var n=function(i){return t&&H.isValidElement(i)?t(i):i},r=Object.create(null);return e&&H.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function sR(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var l,a={};for(var c in t){if(r[c])for(l=0;l<r[c].length;l++){var u=r[c][l];a[r[c][l]]=n(u)}a[c]=n(c)}for(l=0;l<o.length;l++)a[o[l]]=n(o[l]);return a}function Cs(e,t,n){return n[t]!=null?n[t]:e.props[t]}function iR(e,t){return Im(e.children,function(n){return H.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Cs(n,"appear",e),enter:Cs(n,"enter",e),exit:Cs(n,"exit",e)})})}function lR(e,t,n){var r=Im(e.children),o=sR(t,r);return Object.keys(o).forEach(function(i){var l=o[i];if(H.isValidElement(l)){var a=i in t,c=i in r,u=t[i],d=H.isValidElement(u)&&!u.props.in;c&&(!a||d)?o[i]=H.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:Cs(l,"exit",e),enter:Cs(l,"enter",e)}):!c&&a&&!d?o[i]=H.cloneElement(l,{in:!1}):c&&a&&H.isValidElement(u)&&(o[i]=H.cloneElement(l,{onExited:n.bind(null,l),in:u.props.in,exit:Cs(l,"exit",e),enter:Cs(l,"enter",e)}))}}),o}var aR=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},cR={component:"div",childFactory:function(t){return t}},Pm=(function(e){Vx(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var l=i.handleExited.bind(oR(i));return i.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var l=i.children,a=i.handleExited,c=i.firstRender;return{children:c?iR(o,a):lR(o,l,a),firstRender:!1}},n.handleExited=function(o,i){var l=Im(this.props.children);o.key in l||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(a){var c=z({},a.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,i=o.component,l=o.childFactory,a=Be(o,["component","childFactory"]),c=this.state.contextValue,u=aR(this.state.children).map(l);return delete a.appear,delete a.enter,delete a.exit,i===null?H.createElement(Uc.Provider,{value:c},u):H.createElement(Uc.Provider,{value:c},H.createElement(i,a,u))},t})(H.Component);Pm.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};Pm.defaultProps=cR;const Ob={};function Er(e,t){const n=b.useRef(Ob);return n.current===Ob&&(n.current=e(t)),n}const uR=[];function Om(e){b.useEffect(e,uR)}class Uu{constructor(){Qi(this,"currentId",null);Qi(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Qi(this,"disposeEffect",()=>this.clear)}static create(){return new Uu}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Jn(){const e=Er(Uu.create).current;return Om(e.disposeEffect),e}function dR(e){const{prototype:t={}}=e;return!!t.isReactComponent}function pR(e,t,n,r,o){const i=e[t],l=o||t;if(i==null||typeof window=="undefined")return null;let a;return typeof i=="function"&&!dR(i)&&(a="Did you accidentally provide a plain function component instead?"),i===b.Fragment&&(a="Did you accidentally provide a React.Fragment instead?"),a!==void 0?new Error(`Invalid ${r} \`${l}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${a} For more information see https://v7.mui.com/r/caveat-with-refs-guide`):null}const Ia=or(s.elementType,pR),Mm=e=>e.scrollTop;function xn(e,t){return n=>{if(t){const r=e.current;n===void 0?t(r):t(r,n)}}}function Hx(e,t,n,r,o,i){const l=e==="exited"&&!t?r:n[e]||n.exited;return o||i?{...l,...o,...i}:l}function wi(e,t){var i,l;const{timeout:n,easing:r,style:o={}}=e;return{duration:(i=o.transitionDuration)!=null?i:typeof n=="number"?n:n[t.mode]||0,easing:(l=o.transitionTimingFunction)!=null?l:typeof r=="object"?r[t.mode]:r,delay:o.transitionDelay}}function Si(e){return typeof e=="string"}function Gx(e,t,n){return e===void 0||Si(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Wx(e,t,n){return typeof e=="function"?e(t,n):e}function Ux(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Mb(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function qx(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const f=ue(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),y={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},g={...n,...o,...r};return f.length>0&&(g.className=f),Object.keys(y).length>0&&(g.style=y),{props:g,internalRef:void 0}}const l=Ux({...o,...r}),a=Mb(r),c=Mb(o),u=t(l),d=ue(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),p={...u==null?void 0:u.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},h={...u,...n,...c,...a};return d.length>0&&(h.className=d),Object.keys(p).length>0&&(h.style=p),{props:h,internalRef:u.ref}}function He(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:l,shouldForwardComponentProp:a=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:p={[e]:void 0},...h}=i,f=d[e]||r,y=Wx(p[e],o),{props:{component:g,...v},internalRef:x}=qx({className:n,...c,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:y}),S=It(x,y==null?void 0:y.ref,t.ref),w=e==="root"?g||u:g,k=Gx(f,{...e==="root"&&!u&&!d[e]&&l,...e!=="root"&&!d[e]&&l,...v,...w&&!a&&{as:w},...w&&a&&{component:w},ref:S},o);return[f,k]}function fR(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function Kx(e,t,n,r){const o=e[t];if(o==null||!Number.isInteger(o)){const i=fR(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Yx(e,t,n,r){return e[t]===void 0?null:Kx(e,t,n,r)}function Jp(){return null}Yx.isRequired=Kx;Jp.isRequired=Jp;const Wo=process.env.NODE_ENV==="production"?Jp:Yx;function mR(e){return Ne("MuiPaper",e)}$e("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const hR=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ye(i,mR,o)},gR=ne("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(je(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Br=b.forwardRef(function(t,n){var f;const r=ze({props:t,name:"MuiPaper"}),o=Xt(),{className:i,component:l="div",elevation:a=1,square:c=!1,variant:u="elevation",...d}=r,p={...r,component:l,elevation:a,square:c,variant:u},h=hR(p);return process.env.NODE_ENV!=="production"&&o.shadows[a]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
166
- `)),m.jsx(gR,{as:l,ownerState:p,className:ue(h.root,i),ref:n,...d,style:{...u==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[a],...o.vars&&{"--Paper-overlay":(f=o.vars.overlays)==null?void 0:f[a]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${fr("#fff",Yp(a))}, ${fr("#fff",Yp(a))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(Br.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:or(Wo,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["elevation","outlined"]),s.string])});const Fn=s.oneOfType([s.func,s.object]);function ki(e){try{return e.matches(":focus-visible")}catch(t){process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
167
- `))}return!1}class qc{constructor(){Qi(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new qc}static use(){const t=Er(qc.create).current,[n,r]=b.useState(!1);return t.shouldMount=n,t.setShouldMount=r,b.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=yR(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function bR(){return qc.use()}function yR(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function Xx(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:l,in:a,onExited:c,timeout:u}=e,[d,p]=b.useState(!1),h=ue(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:l,height:l,top:-(l/2)+i,left:-(l/2)+o},y=ue(n.child,d&&n.childLeaving,r&&n.childPulsate);return!a&&!d&&p(!0),b.useEffect(()=>{if(!a&&c!=null){const g=setTimeout(c,u);return()=>{clearTimeout(g)}}},[c,a,u]),m.jsx("span",{className:h,style:f,children:m.jsx("span",{className:y})})}process.env.NODE_ENV!=="production"&&(Xx.propTypes={classes:s.object.isRequired,className:s.string,in:s.bool,onExited:s.func,pulsate:s.bool,rippleSize:s.number,rippleX:s.number,rippleY:s.number,timeout:s.number.isRequired});const ur=$e("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ef=550,vR=80,xR=_r`
168
- 0% {
169
- transform: scale(0);
170
- opacity: 0.1;
171
- }
172
-
173
- 100% {
174
- transform: scale(1);
175
- opacity: 0.3;
176
- }
177
- `,CR=_r`
178
- 0% {
179
- opacity: 1;
180
- }
181
-
182
- 100% {
183
- opacity: 0;
184
- }
185
- `,wR=_r`
186
- 0% {
187
- transform: scale(1);
188
- }
189
-
190
- 50% {
191
- transform: scale(0.92);
192
- }
193
-
194
- 100% {
195
- transform: scale(1);
196
- }
197
- `,SR=ne("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),kR=ne(Xx,{name:"MuiTouchRipple",slot:"Ripple"})`
198
- opacity: 0;
199
- position: absolute;
200
-
201
- &.${ur.rippleVisible} {
202
- opacity: 0.3;
203
- transform: scale(1);
204
- animation-name: ${xR};
205
- animation-duration: ${ef}ms;
206
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
207
- }
208
-
209
- &.${ur.ripplePulsate} {
210
- animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
211
- }
212
-
213
- & .${ur.child} {
214
- opacity: 1;
215
- display: block;
216
- width: 100%;
217
- height: 100%;
218
- border-radius: 50%;
219
- background-color: currentColor;
220
- }
221
-
222
- & .${ur.childLeaving} {
223
- opacity: 0;
224
- animation-name: ${CR};
225
- animation-duration: ${ef}ms;
226
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
227
- }
228
-
229
- & .${ur.childPulsate} {
230
- position: absolute;
231
- /* @noflip */
232
- left: 0px;
233
- top: 0;
234
- animation-name: ${wR};
235
- animation-duration: 2500ms;
236
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
237
- animation-iteration-count: infinite;
238
- animation-delay: 200ms;
239
- }
240
- `,Zx=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:l,...a}=r,[c,u]=b.useState([]),d=b.useRef(0),p=b.useRef(null);b.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const h=b.useRef(!1),f=Jn(),y=b.useRef(null),g=b.useRef(null),v=b.useCallback(k=>{const{pulsate:E,rippleX:T,rippleY:N,rippleSize:P,cb:O}=k;u(j=>[...j,m.jsx(kR,{classes:{ripple:ue(i.ripple,ur.ripple),rippleVisible:ue(i.rippleVisible,ur.rippleVisible),ripplePulsate:ue(i.ripplePulsate,ur.ripplePulsate),child:ue(i.child,ur.child),childLeaving:ue(i.childLeaving,ur.childLeaving),childPulsate:ue(i.childPulsate,ur.childPulsate)},timeout:ef,pulsate:E,rippleX:T,rippleY:N,rippleSize:P},d.current)]),d.current+=1,p.current=O},[i]),x=b.useCallback((k={},E={},T=()=>{})=>{const{pulsate:N=!1,center:P=o||E.pulsate,fakeElement:O=!1}=E;if((k==null?void 0:k.type)==="mousedown"&&h.current){h.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(h.current=!0);const j=O?null:g.current,$=j?j.getBoundingClientRect():{width:0,height:0,left:0,top:0};let C,L,F;if(P||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)C=Math.round($.width/2),L=Math.round($.height/2);else{const{clientX:M,clientY:R}=k.touches&&k.touches.length>0?k.touches[0]:k;C=Math.round(M-$.left),L=Math.round(R-$.top)}if(P)F=Math.sqrt((2*$.width**2+$.height**2)/3),F%2===0&&(F+=1);else{const M=Math.max(Math.abs((j?j.clientWidth:0)-C),C)*2+2,R=Math.max(Math.abs((j?j.clientHeight:0)-L),L)*2+2;F=Math.sqrt(M**2+R**2)}k!=null&&k.touches?y.current===null&&(y.current=()=>{v({pulsate:N,rippleX:C,rippleY:L,rippleSize:F,cb:T})},f.start(vR,()=>{y.current&&(y.current(),y.current=null)})):v({pulsate:N,rippleX:C,rippleY:L,rippleSize:F,cb:T})},[o,v,f]),S=b.useCallback(()=>{x({},{pulsate:!0})},[x]),w=b.useCallback((k,E)=>{if(f.clear(),(k==null?void 0:k.type)==="touchend"&&y.current){y.current(),y.current=null,f.start(0,()=>{w(k,E)});return}y.current=null,u(T=>T.length>0?T.slice(1):T),p.current=E},[f]);return b.useImperativeHandle(n,()=>({pulsate:S,start:x,stop:w}),[S,x,w]),m.jsx(SR,{className:ue(ur.root,i.root,l),ref:g,...a,children:m.jsx(Pm,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(Zx.propTypes={center:s.bool,classes:s.object,className:s.string});function ER(e){return Ne("MuiButtonBase",e)}const TR=$e("MuiButtonBase",["root","disabled","focusVisible"]),IR=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,l=ye({root:["root",t&&"disabled",n&&"focusVisible"]},ER,o);return n&&r&&(l.root+=` ${r}`),l},PR=ne("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${TR.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ko=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:l,className:a,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:h=!1,focusVisibleClassName:f,LinkComponent:y="a",onBlur:g,onClick:v,onContextMenu:x,onDragLeave:S,onFocus:w,onFocusVisible:k,onKeyDown:E,onKeyUp:T,onMouseDown:N,onMouseLeave:P,onMouseUp:O,onTouchEnd:j,onTouchMove:$,onTouchStart:C,tabIndex:L=0,TouchRippleProps:F,touchRippleRef:M,type:R,..._}=r,V=b.useRef(null),W=bR(),I=It(W.ref,M),[D,G]=b.useState(!1);u&&D&&G(!1),b.useImperativeHandle(o,()=>({focusVisible:()=>{G(!0),V.current.focus()}}),[]);const A=W.shouldMount&&!d&&!u;b.useEffect(()=>{D&&h&&!d&&W.pulsate()},[d,h,D,W]);const K=ho(W,"start",N,p),Y=ho(W,"stop",x,p),U=ho(W,"stop",S,p),q=ho(W,"stop",O,p),Z=ho(W,"stop",se=>{D&&se.preventDefault(),P&&P(se)},p),X=ho(W,"start",C,p),Q=ho(W,"stop",j,p),re=ho(W,"stop",$,p),J=ho(W,"stop",se=>{ki(se.target)||G(!1),g&&g(se)},!1),oe=rt(se=>{V.current||(V.current=se.currentTarget),ki(se.target)&&(G(!0),k&&k(se)),w&&w(se)}),te=()=>{const se=V.current;return se?se.tagName==="BUTTON"?!1:!(se.tagName==="A"&&se.href):c&&c!=="button"},fe=rt(se=>{h&&!se.repeat&&D&&se.key===" "&&W.stop(se,()=>{W.start(se)}),se.target===se.currentTarget&&te()&&se.key===" "&&se.preventDefault(),E&&E(se),se.target===se.currentTarget&&te()&&se.key==="Enter"&&!u&&(se.preventDefault(),v&&v(se))}),ve=rt(se=>{h&&se.key===" "&&D&&!se.defaultPrevented&&W.stop(se,()=>{W.pulsate(se)}),T&&T(se),v&&se.target===se.currentTarget&&te()&&se.key===" "&&!se.defaultPrevented&&!u&&v(se)});let Ce=c;Ce==="button"&&(_.href||_.to)&&(Ce=y);const xe={};if(Ce==="button"){const se=!!_.formAction;xe.type=R===void 0&&!se?"button":R,xe.disabled=u}else!_.href&&!_.to&&(xe.role="button"),u&&(xe["aria-disabled"]=u);const Se=It(n,V),Oe={...r,centerRipple:i,component:c,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:h,tabIndex:L,focusVisible:D},Ae=IR(Oe);return m.jsxs(PR,{as:Ce,className:ue(Ae.root,a),ownerState:Oe,onBlur:J,onClick:v,onContextMenu:Y,onFocus:oe,onKeyDown:fe,onKeyUp:ve,onMouseDown:K,onMouseLeave:Z,onMouseUp:q,onDragLeave:U,onTouchEnd:Q,onTouchMove:re,onTouchStart:X,ref:Se,tabIndex:u?-1:L,type:R,...xe,..._,children:[l,A?m.jsx(Zx,{ref:I,center:i,...F}):null]})});function ho(e,t,n,r=!1){return rt(o=>(n&&n(o),r||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(ko.propTypes={action:Fn,centerRipple:s.bool,children:s.node,classes:s.object,className:s.string,component:Ia,disabled:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,formAction:s.oneOfType([s.func,s.string]),href:s.any,LinkComponent:s.elementType,onBlur:s.func,onClick:s.func,onContextMenu:s.func,onDragLeave:s.func,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onKeyUp:s.func,onMouseDown:s.func,onMouseLeave:s.func,onMouseUp:s.func,onTouchEnd:s.func,onTouchMove:s.func,onTouchStart:s.func,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,TouchRippleProps:s.object,touchRippleRef:s.oneOfType([s.func,s.shape({current:s.shape({pulsate:s.func.isRequired,start:s.func.isRequired,stop:s.func.isRequired})})]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string])});function OR(e){return typeof e.main=="string"}function MR(e,t=[]){if(!OR(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function _t(e=[]){return([,t])=>t&&MR(t,e)}function RR(e){return Ne("MuiAlert",e)}const Rb=$e("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function jR(e){return Ne("MuiCircularProgress",e)}$e("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Mr=44,tf=_r`
241
- 0% {
242
- transform: rotate(0deg);
243
- }
244
-
245
- 100% {
246
- transform: rotate(360deg);
247
- }
248
- `,nf=_r`
249
- 0% {
250
- stroke-dasharray: 1px, 200px;
251
- stroke-dashoffset: 0;
252
- }
253
-
254
- 50% {
255
- stroke-dasharray: 100px, 200px;
256
- stroke-dashoffset: -15px;
257
- }
258
-
259
- 100% {
260
- stroke-dasharray: 1px, 200px;
261
- stroke-dashoffset: -126px;
262
- }
263
- `,LR=typeof tf!="string"?Jo`
264
- animation: ${tf} 1.4s linear infinite;
265
- `:null,$R=typeof nf!="string"?Jo`
266
- animation: ${nf} 1.4s ease-in-out infinite;
267
- `:null,NR=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${ie(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${ie(n)}`,o&&"circleDisableShrink"]};return ye(i,jR,t)},FR=ne("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ie(n.color)}`]]}})(je(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:LR||{animation:`${tf} 1.4s linear infinite`}},...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),AR=ne("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),DR=ne("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ie(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(je(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:$R||{animation:`${nf} 1.4s ease-in-out infinite`}}]}))),_R=ne("circle",{name:"MuiCircularProgress",slot:"Track"})(je(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Pa=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:l=!1,enableTrackSlot:a=!1,size:c=40,style:u,thickness:d=3.6,value:p=0,variant:h="indeterminate",...f}=r,y={...r,color:i,disableShrink:l,size:c,thickness:d,value:p,variant:h,enableTrackSlot:a},g=NR(y),v={},x={},S={};if(h==="determinate"){const w=2*Math.PI*((Mr-d)/2);v.strokeDasharray=w.toFixed(3),S["aria-valuenow"]=Math.round(p),v.strokeDashoffset=`${((100-p)/100*w).toFixed(3)}px`,x.transform="rotate(-90deg)"}return m.jsx(FR,{className:ue(g.root,o),style:{width:c,height:c,...x,...u},ownerState:y,ref:n,role:"progressbar",...S,...f,children:m.jsxs(AR,{className:g.svg,ownerState:y,viewBox:`${Mr/2} ${Mr/2} ${Mr} ${Mr}`,children:[a?m.jsx(_R,{className:g.track,ownerState:y,cx:Mr,cy:Mr,r:(Mr-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,m.jsx(DR,{className:g.circle,style:v,ownerState:y,cx:Mr,cy:Mr,r:(Mr-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(Pa.propTypes={classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","error","info","success","warning"]),s.string]),disableShrink:or(s.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:s.bool,size:s.oneOfType([s.number,s.string]),style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),thickness:s.number,value:s.number,variant:s.oneOf(["determinate","indeterminate"])});function zR(e){return Ne("MuiIconButton",e)}const jb=$e("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),BR=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i,loading:l}=e,a={root:["root",l&&"loading",n&&"disabled",r!=="default"&&`color${ie(r)}`,o&&`edge${ie(o)}`,`size${ie(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return ye(a,zR,t)},VR=ne(ko,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${ie(n.color)}`],n.edge&&t[`edge${ie(n.edge)}`],t[`size${ie(n.size)}`]]}})(je(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),je(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${jb.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${jb.loading}`]:{color:"transparent"}}))),HR=ne("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Tn=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:l,color:a="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:p,loading:h=null,loadingIndicator:f,...y}=r,g=xt(p),v=f!=null?f:m.jsx(Pa,{"aria-labelledby":g,color:"inherit",size:16}),x={...r,edge:o,color:a,disabled:c,disableFocusRipple:u,loading:h,loadingIndicator:v,size:d},S=BR(x);return m.jsxs(VR,{id:h?g:p,className:ue(S.root,l),centerRipple:!0,focusRipple:!u,disabled:c||h,ref:n,...y,ownerState:x,children:[typeof h=="boolean"&&m.jsx("span",{className:S.loadingWrapper,style:{display:"contents"},children:m.jsx(HR,{className:S.loadingIndicator,ownerState:x,children:h&&v})}),i]})});process.env.NODE_ENV!=="production"&&(Tn.propTypes={children:or(s.node,e=>b.Children.toArray(e.children).some(n=>b.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
268
- `)):null),classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),s.string]),disabled:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,edge:s.oneOf(["end","start",!1]),id:s.string,loading:s.bool,loadingIndicator:s.node,size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const GR=Me(m.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),WR=Me(m.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),UR=Me(m.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),qR=Me(m.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Qx=Me(m.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),KR=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${ie(n||r)}`,`${t}${ie(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return ye(i,RR,o)},YR=ne(Br,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ie(n.color||n.severity)}`]]}})(je(({theme:e})=>{const t=e.palette.mode==="light"?e.darken:e.lighten,n=e.palette.mode==="light"?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(_t(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${Rb.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(_t(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${Rb.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(_t(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),XR=ne("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),ZR=ne("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),QR=ne("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Lb={success:m.jsx(GR,{fontSize:"inherit"}),warning:m.jsx(WR,{fontSize:"inherit"}),error:m.jsx(UR,{fontSize:"inherit"}),info:m.jsx(qR,{fontSize:"inherit"})},Rm=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiAlert"}),{action:o,children:i,className:l,closeText:a="Close",color:c,components:u={},componentsProps:d={},icon:p,iconMapping:h=Lb,onClose:f,role:y="alert",severity:g="success",slotProps:v={},slots:x={},variant:S="standard",...w}=r,k={...r,color:c,severity:g,variant:S,colorSeverity:c||g},E=KR(k),T={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...x},slotProps:{...d,...v}},[N,P]=He("root",{ref:n,shouldForwardComponentProp:!0,className:ue(E.root,l),elementType:YR,externalForwardedProps:{...T,...w},ownerState:k,additionalProps:{role:y,elevation:0}}),[O,j]=He("icon",{className:E.icon,elementType:XR,externalForwardedProps:T,ownerState:k}),[$,C]=He("message",{className:E.message,elementType:ZR,externalForwardedProps:T,ownerState:k}),[L,F]=He("action",{className:E.action,elementType:QR,externalForwardedProps:T,ownerState:k}),[M,R]=He("closeButton",{elementType:Tn,externalForwardedProps:T,ownerState:k}),[_,V]=He("closeIcon",{elementType:Qx,externalForwardedProps:T,ownerState:k});return m.jsxs(N,{...P,children:[p!==!1?m.jsx(O,{...j,children:p||h[g]||Lb[g]}):null,m.jsx($,{...C,children:i}),o!=null?m.jsx(L,{...F,children:o}):null,o==null&&f?m.jsx(L,{...F,children:m.jsx(M,{size:"small","aria-label":a,title:a,color:"inherit",onClick:f,...R,children:m.jsx(_,{fontSize:"small",...V})})}):null]})});process.env.NODE_ENV!=="production"&&(Rm.propTypes={action:s.node,children:s.node,classes:s.object,className:s.string,closeText:s.string,color:s.oneOfType([s.oneOf(["error","info","success","warning"]),s.string]),components:s.shape({CloseButton:s.elementType,CloseIcon:s.elementType}),componentsProps:s.shape({closeButton:s.object,closeIcon:s.object}),icon:s.node,iconMapping:s.shape({error:s.node,info:s.node,success:s.node,warning:s.node}),onClose:s.func,role:s.string,severity:s.oneOfType([s.oneOf(["error","info","success","warning"]),s.string]),slotProps:s.shape({action:s.oneOfType([s.func,s.object]),closeButton:s.oneOfType([s.func,s.object]),closeIcon:s.oneOfType([s.func,s.object]),icon:s.oneOfType([s.func,s.object]),message:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({action:s.elementType,closeButton:s.elementType,closeIcon:s.elementType,icon:s.elementType,message:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["filled","outlined","standard"]),s.string])});function JR(e){return Ne("MuiTypography",e)}const $b=$e("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),e3={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},t3=BM(),n3=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:l}=e,a={root:["root",i,e.align!=="inherit"&&`align${ie(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return ye(a,JR,l)},r3=ne("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${ie(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(je(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(_t()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${ie(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),Nb={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ot=b.forwardRef(function(t,n){const{color:r,...o}=ze({props:t,name:"MuiTypography"}),i=!e3[r],l=t3({...o,...i&&{color:r}}),{align:a="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:p=!1,paragraph:h=!1,variant:f="body1",variantMapping:y=Nb,...g}=l,v={...l,align:a,color:r,className:c,component:u,gutterBottom:d,noWrap:p,paragraph:h,variant:f,variantMapping:y},x=u||(h?"p":y[f]||Nb[f])||"span",S=n3(v);return m.jsx(r3,{as:x,ref:n,className:ue(S.root,c),...g,ownerState:v,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...g.style}})});process.env.NODE_ENV!=="production"&&(ot.propTypes={align:s.oneOf(["center","inherit","justify","left","right"]),children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),s.string]),component:s.elementType,gutterBottom:s.bool,noWrap:s.bool,paragraph:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),s.string]),variantMapping:s.object});function o3(e){return Ne("MuiAppBar",e)}$e("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const s3=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${ie(t)}`,`position${ie(n)}`]};return ye(o,o3,r)},Fb=(e,t)=>e?`${e.replace(")","")}, ${t})`:t,i3=ne(Br,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ie(n.position)}`],t[`color${ie(n.color)}`]]}})(je(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit",color:"var(--AppBar-color)"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(_t(["contrastText"])).map(([t])=>{var n,r;return{props:{color:t},style:{"--AppBar-background":((n=e.vars)!=null?n:e).palette[t].main,"--AppBar-color":((r=e.vars)!=null?r:e).palette[t].contrastText}}}),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?Fb(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?Fb(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),rf=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:l=!1,position:a="fixed",...c}=r,u={...r,color:i,position:a,enableColorOnDark:l},d=s3(u);return m.jsx(i3,{square:!0,component:"header",ownerState:u,elevation:4,className:ue(d.root,o,a==="fixed"&&"mui-fixed"),ref:n,...c})});process.env.NODE_ENV!=="production"&&(rf.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["default","inherit","primary","secondary","transparent","error","info","success","warning"]),s.string]),elevation:s.number,enableColorOnDark:s.bool,position:s.oneOf(["absolute","fixed","relative","static","sticky"]),square:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function l3(){const[,e]=b.useState({});return b.useCallback(()=>{e({})},[])}function vo(e,t){var r,o,i;if(!e||!t)return!1;if(e.contains(t))return!0;const n=(r=t.getRootNode)==null?void 0:r.call(t);if(n&&n instanceof ShadowRoot){let l=t;for(;l;){if(e===l)return!0;l=(i=(o=l.parentNode)!=null?o:l.host)!=null?i:null}}return!1}function jm(e){const t=b.useRef({});return b.useEffect(()=>{t.current=e}),t.current}function Ab({array1:e,array2:t,parser:n=r=>r}){return e&&t&&e.length===t.length&&e.every((r,o)=>n(r)===n(t[o]))}function Db(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Jx(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:l=!1}=e;return(a,{inputValue:c,getOptionLabel:u})=>{let d=l?c.trim():c;n&&(d=d.toLowerCase()),t&&(d=Db(d));const p=d?a.filter(h=>{let f=(i||u)(h);return n&&(f=f.toLowerCase()),t&&(f=Db(f)),o==="start"?f.startsWith(d):f.includes(d)}):a;return typeof r=="number"?p.slice(0,r):p}}const a3=Jx(),_b=5,c3=e=>e.current!==null&&vo(e.current.parentElement,document.activeElement),zb=(e,t)=>e===t,u3=[];function Bb(e,t,n,r){if(t||e==null||r)return"";const o=n(e);return typeof o=="string"?o:""}function d3(e){const{unstable_isActiveElementInListbox:t=c3,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:l=!1,clearOnBlur:a=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=e.multiple?u3:null,disableClearable:p=!1,disableCloseOnSelect:h=!1,disabled:f,disabledItemsFocusable:y=!1,disableListWrap:g=!1,filterOptions:v=a3,filterSelectedOptions:x=!1,freeSolo:S=!1,getOptionDisabled:w,getOptionKey:k,getOptionLabel:E=le=>{var ce;return(ce=le.label)!=null?ce:le},groupBy:T,handleHomeEndKeys:N=!e.freeSolo,id:P,includeInputInList:O=!1,inputValue:j,isOptionEqualToValue:$=zb,multiple:C=!1,onChange:L,onClose:F,onHighlightChange:M,onInputChange:R,onOpen:_,open:V,openOnFocus:W=!1,options:I,readOnly:D=!1,renderValue:G,selectOnFocus:A=!e.freeSolo,value:K}=e,Y=xt(P);let U=E;U=le=>{const ce=E(le);if(typeof ce!="string"){if(process.env.NODE_ENV!=="production"){const Ee=ce===void 0?"undefined":`${typeof ce} (${ce})`;console.error(`MUI: The \`getOptionLabel\` method of ${u} returned ${Ee} instead of a string for ${JSON.stringify(le)}.`)}return String(ce)}return ce};const q=b.useRef(!1),Z=b.useRef(!0),X=b.useRef(null),Q=b.useRef(null),re=b.useRef(!1),[J,oe]=b.useState(null),[te,fe]=b.useState(-1),ve=o?0:-1,Ce=b.useRef(ve),xe=b.useRef(null),Se=b.useRef(!1),Oe=b.useRef(!1),Ae=b.useRef(Bb(d!=null?d:K,C,U)).current,[se,Ge]=Go({controlled:K,default:d,name:u}),[Ie,Ye]=Go({controlled:j,default:Ae,name:u,state:"inputValue"}),[ee,de]=b.useState(!1),he=b.useCallback((le,ce,Ee)=>{if(!(C?se.length<ce.length:ce!==null)&&!a)return;const Xe=Bb(ce,C,U,G);Ie!==Xe&&(Ye(Xe),R&&R(le,Xe,Ee))},[U,Ie,C,R,Ye,a,se,G]),[ae,ge]=Go({controlled:V,default:!1,name:u,state:"open"}),[be,Te]=b.useState(!0),_e=!C&&se!=null&&Ie===U(se),ke=ae&&!D,dt=b.useMemo(()=>C?se:se!=null?[se]:[],[C,se]),at=b.useMemo(()=>$!==zb||dt.length===0?null:new Set(dt),[$,dt]),Pt=b.useCallback(le=>at?at.has(le):dt.some(ce=>ce!=null&&$(le,ce)),[$,dt,at]),qe=ke?v(I.filter(le=>!(x&&Pt(le))),{inputValue:_e&&be?"":Ie,getOptionLabel:U}):[],Ve=jm({filteredOptions:qe,value:se,inputValue:Ie});b.useEffect(()=>{const le=se!==Ve.value;ee&&!le||S&&!le||he(null,se,"reset")},[se,he,ee,Ve.value,S]);const it=ae&&qe.length>0&&!D,ft=rt(le=>{if(le===-1)X.current.focus();else{const ce=G?"data-item-index":"data-tag-index";J.querySelector(`[${ce}="${le}"]`).focus()}});b.useEffect(()=>{C&&te>se.length-1&&(fe(-1),ft(-1))},[se,C,te,ft]);function mn(le,ce){if(!Q.current||le<0||le>=qe.length)return-1;let Ee=le;for(;;){const tt=Q.current.querySelector(`[data-option-index="${Ee}"]`),Xe=y?!1:!tt||tt.disabled||tt.getAttribute("aria-disabled")==="true";if(tt&&tt.hasAttribute("tabindex")&&!Xe)return Ee;if(ce==="next"?Ee=(Ee+1)%qe.length:Ee=(Ee-1+qe.length)%qe.length,Ee===le)return-1}}const qn=rt(({index:le,reason:ce,preserveScroll:Ee=!1})=>{if(le===-1?X.current.removeAttribute("aria-activedescendant"):X.current.setAttribute("aria-activedescendant",`${Y}-option-${le}`),!Q.current)return;const tt=Q.current.querySelector(`[role="option"].${n}-focused`);tt&&(tt.classList.remove(`${n}-focused`),tt.classList.remove(`${n}-focusVisible`));let Xe=Q.current;if(Q.current.getAttribute("role")!=="listbox"&&(Xe=Q.current.parentElement.querySelector('[role="listbox"]')),!Xe)return;if(le===-1){Ee||(Xe.scrollTop=0);return}const zt=Q.current.querySelector(`[data-option-index="${le}"]`);if(zt&&(zt.classList.add(`${n}-focused`),ce==="keyboard"&&zt.classList.add(`${n}-focusVisible`),Xe.scrollHeight>Xe.clientHeight&&ce!=="mouse"&&ce!=="touch")){const Ct=zt,en=Xe.clientHeight+Xe.scrollTop,ir=Ct.offsetTop+Ct.offsetHeight;ir>en?Xe.scrollTop=ir-Xe.clientHeight:Ct.offsetTop-Ct.offsetHeight*(T?1.3:0)<Xe.scrollTop&&(Xe.scrollTop=Ct.offsetTop-Ct.offsetHeight*(T?1.3:0))}}),Re=rt(({event:le,index:ce,reason:Ee,preserveScroll:tt=!1})=>{Ce.current=ce,xe.current=Ee!=null?Ee:null,M&&["mouse","keyboard","touch"].includes(Ee)&&M(le,ce===-1?null:qe[ce],Ee),qn({index:ce,reason:Ee,preserveScroll:tt})}),We=rt(({index:le})=>{Ce.current=le,qn({index:le,reason:xe.current})}),pt=rt(({event:le,diff:ce,direction:Ee="next",reason:tt,preserveScroll:Xe})=>{if(!ke)return;tt==="keyboard"&&(Se.current=!1,Oe.current=!1);const Ct=mn((()=>{const en=qe.length-1;if(ce==="reset")return ve;if(ce==="start")return 0;if(ce==="end")return en;const ir=Ce.current+ce;return ir<0?ir===-1&&O?-1:g&&Ce.current!==-1||Math.abs(ce)>1?0:en:ir>en?ir===en+1&&O?-1:g||Math.abs(ce)>1?en:0:ir})(),Ee);if(Re({index:Ct,reason:tt,event:le,preserveScroll:Xe}),r&&ce!=="reset")if(Ct===-1)X.current.value=Ie;else{const en=U(qe[Ct]);X.current.value=en,en.toLowerCase().indexOf(Ie.toLowerCase())===0&&Ie.length>0&&X.current.setSelectionRange(Ie.length,en.length)}}),hn=!Ab({array1:Ve.filteredOptions,array2:qe,parser:U}),rn=()=>{const le=(ce,Ee)=>{const tt=ce?U(ce):"",Xe=Ee?U(Ee):"";return tt===Xe};if(Ce.current!==-1&&!Ab({array1:Ve.filteredOptions,array2:qe,parser:U})&&Ve.inputValue===Ie&&(C?se.length===Ve.value.length&&Ve.value.every((ce,Ee)=>U(se[Ee])===U(ce)):le(Ve.value,se))){const ce=Ve.filteredOptions[Ce.current];if(ce)return qe.findIndex(Ee=>U(Ee)===U(ce))}return-1},Pr=b.useCallback(()=>{var Ee,tt;if(!ke)return;const le=rn();if(le!==-1){We({index:le});return}const ce=C?se[0]:se;if(qe.length===0||ce==null){const Xe=hn&&Ve.inputValue===Ie&&((Ee=Ve.filteredOptions)==null?void 0:Ee.length)>0&&qe.length>Ve.filteredOptions.length&&Ve.filteredOptions.every((zt,Ct)=>U(zt)===U(qe[Ct]));pt({diff:"reset",preserveScroll:Xe});return}if(Q.current){if(ce!=null){const Xe=qe[Ce.current];if(C&&Xe&&se.findIndex(Ct=>$(Xe,Ct))!==-1&&((tt=Ve.filteredOptions)==null?void 0:tt.length)>0){We({index:Ce.current});return}const zt=qe.findIndex(Ct=>$(Ct,ce));zt===-1?pt({diff:"reset"}):Re({index:zt});return}if(Ce.current>=qe.length-1){Re({index:qe.length-1});return}Re({index:Ce.current})}},[qe.length,C?!1:se,pt,Re,We,ke,Ie,C]),Ke=rt(le=>{Xp(Q,le),le&&Pr()});process.env.NODE_ENV!=="production"&&b.useEffect(()=>{(!X.current||X.current.nodeName!=="INPUT")&&(X.current&&X.current.nodeName==="TEXTAREA"?console.warn([`A textarea element was provided to ${u} where input was expected.`,"This is not a supported scenario but it may work under certain conditions.","A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).","Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
269
- `)):console.error([`MUI: Unable to find the input element. It was resolved to ${X.current} while an HTMLInputElement was expected.`,`Instead, ${u} expects an input element.`,"",u==="useAutocomplete"?"Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed.":"Make sure you have customized the input component correctly."].join(`
270
- `)))},[u]),b.useEffect(()=>{(hn||ke&&!h)&&Pr()},[Pr,hn,ke,h]),b.useEffect(()=>{if(typeof window=="undefined")return;const le=()=>{re.current=!0};return window.addEventListener("blur",le),()=>{window.removeEventListener("blur",le)}},[]);const vt=le=>{ae||(ge(!0),Te(!0),Oe.current=!1,_&&_(le))},Rn=(le,ce)=>{ae&&(ge(!1),Se.current=!1,xe.current=null,F&&F(le,ce))},wn=(le,ce,Ee,tt)=>{if(C){if(se.length===ce.length&&se.every((Xe,zt)=>Xe===ce[zt]))return}else if(se===ce)return;L&&L(le,ce,Ee,tt),Ge(ce)},Ro=(le,ce,Ee="selectOption",tt="options")=>{let Xe=Ee,zt=ce;if(C){if(zt=Array.isArray(se)?se.slice():[],process.env.NODE_ENV!=="production"){const en=zt.filter(ir=>$(ce,ir));en.length>1&&console.error([`MUI: The \`isOptionEqualToValue\` method of ${u} does not handle the arguments correctly.`,`The component expects a single value to match a given option but found ${en.length} matches.`].join(`
271
- `))}const Ct=zt.findIndex(en=>$(ce,en));Ct===-1?zt.push(ce):tt!=="freeSolo"&&(zt.splice(Ct,1),Xe="removeOption")}he(le,zt,Xe),wn(le,zt,Xe,{option:ce}),!h&&(!le||!le.ctrlKey&&!le.metaKey)&&Rn(le,Xe),(l===!0||l==="touch"&&Oe.current||l==="mouse"&&!Oe.current)&&X.current.blur()};function as(le,ce){if(le===-1)return-1;let Ee=le;for(;;){if(ce==="next"&&Ee===se.length||ce==="previous"&&Ee===-1)return-1;const tt=G?"data-item-index":"data-tag-index",Xe=J.querySelector(`[${tt}="${Ee}"]`);if(!Xe||!Xe.hasAttribute("tabindex")||Xe.disabled||Xe.getAttribute("aria-disabled")==="true")Ee+=ce==="next"?1:-1;else return Ee}}const Ws=(le,ce)=>{if(!C)return;Ie===""&&Rn(le,"toggleInput");let Ee=te;te===-1&&ce==="previous"?(Ee=se.length-1,S&&Ie!==""&&(Ye(""),R&&R(le,"","reset"))):(Ee+=ce==="next"?1:-1,Ee<0&&(Ee=0),Ee===se.length&&(Ee=-1)),Ee=as(Ee,ce),fe(Ee),ft(Ee)},Us=le=>{q.current=!0,Ye(""),R&&R(le,"","clear"),wn(le,C?[]:null,"clear")},Sd=le=>ce=>{if(le.onKeyDown&&le.onKeyDown(ce),!ce.defaultMuiPrevented&&(te!==-1&&!["ArrowLeft","ArrowRight"].includes(ce.key)&&(fe(-1),ft(-1)),ce.which!==229))switch(ce.key){case"Home":ke&&N&&(ce.preventDefault(),pt({diff:"start",direction:"next",reason:"keyboard",event:ce}));break;case"End":ke&&N&&(ce.preventDefault(),pt({diff:"end",direction:"previous",reason:"keyboard",event:ce}));break;case"PageUp":ce.preventDefault(),pt({diff:-_b,direction:"previous",reason:"keyboard",event:ce}),vt(ce);break;case"PageDown":ce.preventDefault(),pt({diff:_b,direction:"next",reason:"keyboard",event:ce}),vt(ce);break;case"ArrowDown":ce.preventDefault(),pt({diff:1,direction:"next",reason:"keyboard",event:ce}),vt(ce);break;case"ArrowUp":ce.preventDefault(),pt({diff:-1,direction:"previous",reason:"keyboard",event:ce}),vt(ce);break;case"ArrowLeft":{const Ee=X.current;if(!(Ee&&Ee.selectionStart===0&&Ee.selectionEnd===0))return;!C&&G&&se!=null?(S&&Ie!==""&&(Ye(""),R&&R(ce,"","reset")),fe(0),ft(0)):Ws(ce,"previous");break}case"ArrowRight":!C&&G?(fe(-1),ft(-1)):Ws(ce,"next");break;case"Enter":{const Ee=!S||be||xe.current!==null;if(Ce.current!==-1&&ke&&Ee&&!Se.current){const tt=qe[Ce.current],Xe=w?w(tt):!1;if(ce.preventDefault(),Xe)return;Ro(ce,tt,"selectOption"),r&&X.current.setSelectionRange(X.current.value.length,X.current.value.length)}else S&&Ie!==""&&_e===!1?(C&&ce.preventDefault(),Ro(ce,Ie,"createOption","freeSolo")):ke&&Se.current&&(ce.preventDefault(),Rn(ce,"escape"));break}case"Escape":ke?(ce.preventDefault(),ce.stopPropagation(),Rn(ce,"escape")):c&&(Ie!==""||C&&se.length>0||G)&&(ce.preventDefault(),ce.stopPropagation(),Us(ce));break;case"Backspace":if(C&&!D&&Ie===""&&se.length>0){const Ee=te===-1?se.length-1:te,tt=se.slice();tt.splice(Ee,1),wn(ce,tt,"removeOption",{option:se[Ee]})}!C&&G&&!D&&Ie===""&&wn(ce,null,"removeOption",{option:se});break;case"Delete":if(C&&!D&&Ie===""&&se.length>0&&te!==-1){const Ee=te,tt=se.slice();tt.splice(Ee,1),wn(ce,tt,"removeOption",{option:se[Ee]})}!C&&G&&!D&&Ie===""&&wn(ce,null,"removeOption",{option:se});break}},kd=le=>{if(de(!0),te!==-1&&(fe(-1),ft(-1)),re.current){re.current=!1;return}W&&!q.current&&vt(le)},Ya=le=>{if(t(Q)){X.current.focus();return}de(!1),Z.current=!0,q.current=!1,i&&Ce.current!==-1&&ke&&xe.current!=="mouse"&&xe.current!=="touch"?Ro(le,qe[Ce.current],"blur"):i&&S&&Ie!==""?Ro(le,Ie,"blur","freeSolo"):a&&he(le,se,"blur"),Rn(le,"blur")},ng=le=>{const ce=le.target.value,Ee=Ie!==ce;Ee&&(Ye(ce),Se.current=!1,R&&R(le,ce,"input")),ce===""?!p&&!C&&!G&&wn(le,null,"clear"):vt(le),Ee&&Te(!1)},Yi=le=>{const ce=Number(le.currentTarget.getAttribute("data-option-index"));Ce.current!==ce?Re({event:le,index:ce,reason:"mouse"}):xe.current="mouse",Oe.current||(Se.current=!1)},gn=le=>{Se.current=!1,Re({event:le,index:Number(le.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Oe.current=!0},bn=le=>{const ce=Number(le.currentTarget.getAttribute("data-option-index"));Ro(le,qe[ce],"selectOption"),Oe.current=!1},Hr=le=>ce=>{const Ee=se.slice();Ee.splice(le,1),wn(ce,Ee,"removeOption",{option:se[le]})},Ed=le=>{wn(le,null,"removeOption",{option:se})},Xa=le=>{ae?Rn(le,"toggleInput"):vt(le)},Td=le=>{vo(le.currentTarget,le.target)&&(J&&!vo(J,le.target)||le.target.getAttribute("id")!==Y&&le.preventDefault())},Id=le=>{vo(le.currentTarget,le.target)&&(J&&!vo(J,le.target)||(X.current.focus(),A&&Z.current&&X.current.selectionEnd-X.current.selectionStart===0&&X.current.select(),Z.current=!1))},Pd=le=>{!f&&(Ie===""||!ae)&&Xa(le)};let Xi=S&&Ie.length>0;Xi=Xi||(C?se.length>0:se!==null);let Za=qe;if(T){const le=new Map;let ce=!1;Za=qe.reduce((Ee,tt,Xe)=>{const zt=T(tt);return Ee.length>0&&Ee[Ee.length-1].group===zt?Ee[Ee.length-1].options.push(tt):(process.env.NODE_ENV!=="production"&&(le.get(zt)&&!ce&&(console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${u} returns duplicated headers.`,"You can solve the issue by sorting the options with the output of `groupBy`."),ce=!0),le.set(zt,!0)),Ee.push({key:Xe,index:Xe,group:zt,options:[tt]})),Ee},[])}return f&&ee&&Ya(),{getRootProps:(le={})=>({...le,onKeyDown:Sd(le),onMouseDown:Td,onClick:Id}),getInputLabelProps:()=>({id:`${Y}-label`,htmlFor:Y}),getInputProps:()=>({id:Y,value:Ie,onBlur:Ya,onFocus:kd,onChange:ng,onMouseDown:Pd,"aria-activedescendant":ke?"":null,"aria-autocomplete":r?"both":"list","aria-controls":it?`${Y}-listbox`:void 0,"aria-expanded":it,autoComplete:"off",ref:X,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:f}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Us}),getItemProps:({index:le=0}={})=>({...C&&{key:le},...G?{"data-item-index":le}:{"data-tag-index":le},tabIndex:-1,...!D&&{onDelete:C?Hr(le):Ed}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Xa}),getTagProps:({index:le})=>({key:le,"data-tag-index":le,tabIndex:-1,...!D&&{onDelete:Hr(le)}}),getListboxProps:()=>({role:"listbox",id:`${Y}-listbox`,"aria-labelledby":`${Y}-label`,"aria-multiselectable":C||void 0,ref:Ke,onMouseDown:le=>{le.preventDefault()},onScroll:()=>{Oe.current&&(Se.current=!0)}}),getOptionProps:({index:le,option:ce})=>{var Xe;const Ee=Pt(ce),tt=w?w(ce):!1;return{key:(Xe=k==null?void 0:k(ce))!=null?Xe:U(ce),tabIndex:-1,role:"option",id:`${Y}-option-${le}`,onMouseMove:Yi,onClick:bn,onTouchStart:gn,"data-option-index":le,"aria-disabled":tt,"aria-selected":Ee}},id:Y,inputValue:Ie,value:se,dirty:Xi,expanded:ke&&J,popupOpen:ke,focused:ee||te!==-1,anchorEl:J,setAnchorEl:oe,focusedItem:te,focusedTag:te,groupedOptions:Za}}function xr(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=e[t],l=o||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${r} \`${l}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var zn="top",Cr="bottom",wr="right",Bn="left",Lm="auto",Oa=[zn,Cr,wr,Bn],Ei="start",Jl="end",p3="clippingParents",eC="viewport",ol="popper",f3="reference",Vb=Oa.reduce(function(e,t){return e.concat([t+"-"+Ei,t+"-"+Jl])},[]),tC=[].concat(Oa,[Lm]).reduce(function(e,t){return e.concat([t,t+"-"+Ei,t+"-"+Jl])},[]),m3="beforeRead",h3="read",g3="afterRead",b3="beforeMain",y3="main",v3="afterMain",x3="beforeWrite",C3="write",w3="afterWrite",S3=[m3,h3,g3,b3,y3,v3,x3,C3,w3];function ao(e){return e?(e.nodeName||"").toLowerCase():null}function sr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Rs(e){var t=sr(e).Element;return e instanceof t||e instanceof Element}function gr(e){var t=sr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function $m(e){if(typeof ShadowRoot=="undefined")return!1;var t=sr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function k3(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!gr(i)||!ao(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(l){var a=o[l];a===!1?i.removeAttribute(l):i.setAttribute(l,a===!0?"":a)}))})}function E3(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=l.reduce(function(c,u){return c[u]="",c},{});!gr(o)||!ao(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const T3={name:"applyStyles",enabled:!0,phase:"write",fn:k3,effect:E3,requires:["computeStyles"]};function ro(e){return e.split("-")[0]}var Ss=Math.max,Kc=Math.min,Ti=Math.round;function of(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function nC(){return!/^((?!chrome|android).)*safari/i.test(of())}function Ii(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&gr(e)&&(o=e.offsetWidth>0&&Ti(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ti(r.height)/e.offsetHeight||1);var l=Rs(e)?sr(e):window,a=l.visualViewport,c=!nC()&&n,u=(r.left+(c&&a?a.offsetLeft:0))/o,d=(r.top+(c&&a?a.offsetTop:0))/i,p=r.width/o,h=r.height/i;return{width:p,height:h,top:d,right:u+p,bottom:d+h,left:u,x:u,y:d}}function Nm(e){var t=Ii(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function rC(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$m(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Eo(e){return sr(e).getComputedStyle(e)}function I3(e){return["table","td","th"].indexOf(ao(e))>=0}function es(e){return((Rs(e)?e.ownerDocument:e.document)||window.document).documentElement}function qu(e){return ao(e)==="html"?e:e.assignedSlot||e.parentNode||($m(e)?e.host:null)||es(e)}function Hb(e){return!gr(e)||Eo(e).position==="fixed"?null:e.offsetParent}function P3(e){var t=/firefox/i.test(of()),n=/Trident/i.test(of());if(n&&gr(e)){var r=Eo(e);if(r.position==="fixed")return null}var o=qu(e);for($m(o)&&(o=o.host);gr(o)&&["html","body"].indexOf(ao(o))<0;){var i=Eo(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Ma(e){for(var t=sr(e),n=Hb(e);n&&I3(n)&&Eo(n).position==="static";)n=Hb(n);return n&&(ao(n)==="html"||ao(n)==="body"&&Eo(n).position==="static")?t:n||P3(e)||t}function Fm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fl(e,t,n){return Ss(e,Kc(t,n))}function O3(e,t,n){var r=Fl(e,t,n);return r>n?n:r}function oC(){return{top:0,right:0,bottom:0,left:0}}function sC(e){return Object.assign({},oC(),e)}function iC(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var M3=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,sC(typeof t!="number"?t:iC(t,Oa))};function R3(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,a=ro(n.placement),c=Fm(a),u=[Bn,wr].indexOf(a)>=0,d=u?"height":"width";if(!(!i||!l)){var p=M3(o.padding,n),h=Nm(i),f=c==="y"?zn:Bn,y=c==="y"?Cr:wr,g=n.rects.reference[d]+n.rects.reference[c]-l[c]-n.rects.popper[d],v=l[c]-n.rects.reference[c],x=Ma(i),S=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,w=g/2-v/2,k=p[f],E=S-h[d]-p[y],T=S/2-h[d]/2+w,N=Fl(k,T,E),P=c;n.modifiersData[r]=(t={},t[P]=N,t.centerOffset=N-T,t)}}function j3(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||rC(t.elements.popper,o)&&(t.elements.arrow=o))}const L3={name:"arrow",enabled:!0,phase:"main",fn:R3,effect:j3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Pi(e){return e.split("-")[1]}var $3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function N3(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ti(n*o)/o||0,y:Ti(r*o)/o||0}}function Gb(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,l=e.offsets,a=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,p=e.isFixed,h=l.x,f=h===void 0?0:h,y=l.y,g=y===void 0?0:y,v=typeof d=="function"?d({x:f,y:g}):{x:f,y:g};f=v.x,g=v.y;var x=l.hasOwnProperty("x"),S=l.hasOwnProperty("y"),w=Bn,k=zn,E=window;if(u){var T=Ma(n),N="clientHeight",P="clientWidth";if(T===sr(n)&&(T=es(n),Eo(T).position!=="static"&&a==="absolute"&&(N="scrollHeight",P="scrollWidth")),T=T,o===zn||(o===Bn||o===wr)&&i===Jl){k=Cr;var O=p&&T===E&&E.visualViewport?E.visualViewport.height:T[N];g-=O-r.height,g*=c?1:-1}if(o===Bn||(o===zn||o===Cr)&&i===Jl){w=wr;var j=p&&T===E&&E.visualViewport?E.visualViewport.width:T[P];f-=j-r.width,f*=c?1:-1}}var $=Object.assign({position:a},u&&$3),C=d===!0?N3({x:f,y:g},sr(n)):{x:f,y:g};if(f=C.x,g=C.y,c){var L;return Object.assign({},$,(L={},L[k]=S?"0":"",L[w]=x?"0":"",L.transform=(E.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",L))}return Object.assign({},$,(t={},t[k]=S?g+"px":"",t[w]=x?f+"px":"",t.transform="",t))}function F3(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,l=i===void 0?!0:i,a=n.roundOffsets,c=a===void 0?!0:a,u={placement:ro(t.placement),variation:Pi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Gb(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Gb(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const A3={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:F3,data:{}};var pc={passive:!0};function D3(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,l=r.resize,a=l===void 0?!0:l,c=sr(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,pc)}),a&&c.addEventListener("resize",n.update,pc),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,pc)}),a&&c.removeEventListener("resize",n.update,pc)}}const _3={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:D3,data:{}};var z3={left:"right",right:"left",bottom:"top",top:"bottom"};function Oc(e){return e.replace(/left|right|bottom|top/g,function(t){return z3[t]})}var B3={start:"end",end:"start"};function Wb(e){return e.replace(/start|end/g,function(t){return B3[t]})}function Am(e){var t=sr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Dm(e){return Ii(es(e)).left+Am(e).scrollLeft}function V3(e,t){var n=sr(e),r=es(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,c=0;if(o){i=o.width,l=o.height;var u=nC();(u||!u&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:l,x:a+Dm(e),y:c}}function H3(e){var t,n=es(e),r=Am(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Ss(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=Ss(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+Dm(e),c=-r.scrollTop;return Eo(o||n).direction==="rtl"&&(a+=Ss(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:a,y:c}}function _m(e){var t=Eo(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function lC(e){return["html","body","#document"].indexOf(ao(e))>=0?e.ownerDocument.body:gr(e)&&_m(e)?e:lC(qu(e))}function Al(e,t){var n;t===void 0&&(t=[]);var r=lC(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=sr(r),l=o?[i].concat(i.visualViewport||[],_m(r)?r:[]):r,a=t.concat(l);return o?a:a.concat(Al(qu(l)))}function sf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function G3(e,t){var n=Ii(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Ub(e,t,n){return t===eC?sf(V3(e,n)):Rs(t)?G3(t,n):sf(H3(es(e)))}function W3(e){var t=Al(qu(e)),n=["absolute","fixed"].indexOf(Eo(e).position)>=0,r=n&&gr(e)?Ma(e):e;return Rs(r)?t.filter(function(o){return Rs(o)&&rC(o,r)&&ao(o)!=="body"}):[]}function U3(e,t,n,r){var o=t==="clippingParents"?W3(e):[].concat(t),i=[].concat(o,[n]),l=i[0],a=i.reduce(function(c,u){var d=Ub(e,u,r);return c.top=Ss(d.top,c.top),c.right=Kc(d.right,c.right),c.bottom=Kc(d.bottom,c.bottom),c.left=Ss(d.left,c.left),c},Ub(e,l,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function aC(e){var t=e.reference,n=e.element,r=e.placement,o=r?ro(r):null,i=r?Pi(r):null,l=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(o){case zn:c={x:l,y:t.y-n.height};break;case Cr:c={x:l,y:t.y+t.height};break;case wr:c={x:t.x+t.width,y:a};break;case Bn:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var u=o?Fm(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case Ei:c[u]=c[u]-(t[d]/2-n[d]/2);break;case Jl:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function ea(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,l=i===void 0?e.strategy:i,a=n.boundary,c=a===void 0?p3:a,u=n.rootBoundary,d=u===void 0?eC:u,p=n.elementContext,h=p===void 0?ol:p,f=n.altBoundary,y=f===void 0?!1:f,g=n.padding,v=g===void 0?0:g,x=sC(typeof v!="number"?v:iC(v,Oa)),S=h===ol?f3:ol,w=e.rects.popper,k=e.elements[y?S:h],E=U3(Rs(k)?k:k.contextElement||es(e.elements.popper),c,d,l),T=Ii(e.elements.reference),N=aC({reference:T,element:w,placement:o}),P=sf(Object.assign({},w,N)),O=h===ol?P:T,j={top:E.top-O.top+x.top,bottom:O.bottom-E.bottom+x.bottom,left:E.left-O.left+x.left,right:O.right-E.right+x.right},$=e.modifiersData.offset;if(h===ol&&$){var C=$[o];Object.keys(j).forEach(function(L){var F=[wr,Cr].indexOf(L)>=0?1:-1,M=[zn,Cr].indexOf(L)>=0?"y":"x";j[L]+=C[M]*F})}return j}function q3(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,l=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?tC:c,d=Pi(r),p=d?a?Vb:Vb.filter(function(y){return Pi(y)===d}):Oa,h=p.filter(function(y){return u.indexOf(y)>=0});h.length===0&&(h=p);var f=h.reduce(function(y,g){return y[g]=ea(e,{placement:g,boundary:o,rootBoundary:i,padding:l})[ro(g)],y},{});return Object.keys(f).sort(function(y,g){return f[y]-f[g]})}function K3(e){if(ro(e)===Lm)return[];var t=Oc(e);return[Wb(e),t,Wb(t)]}function Y3(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!0:l,c=n.fallbackPlacements,u=n.padding,d=n.boundary,p=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,y=f===void 0?!0:f,g=n.allowedAutoPlacements,v=t.options.placement,x=ro(v),S=x===v,w=c||(S||!y?[Oc(v)]:K3(v)),k=[v].concat(w).reduce(function(K,Y){return K.concat(ro(Y)===Lm?q3(t,{placement:Y,boundary:d,rootBoundary:p,padding:u,flipVariations:y,allowedAutoPlacements:g}):Y)},[]),E=t.rects.reference,T=t.rects.popper,N=new Map,P=!0,O=k[0],j=0;j<k.length;j++){var $=k[j],C=ro($),L=Pi($)===Ei,F=[zn,Cr].indexOf(C)>=0,M=F?"width":"height",R=ea(t,{placement:$,boundary:d,rootBoundary:p,altBoundary:h,padding:u}),_=F?L?wr:Bn:L?Cr:zn;E[M]>T[M]&&(_=Oc(_));var V=Oc(_),W=[];if(i&&W.push(R[C]<=0),a&&W.push(R[_]<=0,R[V]<=0),W.every(function(K){return K})){O=$,P=!1;break}N.set($,W)}if(P)for(var I=y?3:1,D=function(Y){var U=k.find(function(q){var Z=N.get(q);if(Z)return Z.slice(0,Y).every(function(X){return X})});if(U)return O=U,"break"},G=I;G>0;G--){var A=D(G);if(A==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const X3={name:"flip",enabled:!0,phase:"main",fn:Y3,requiresIfExists:["offset"],data:{_skip:!1}};function qb(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Kb(e){return[zn,wr,Cr,Bn].some(function(t){return e[t]>=0})}function Z3(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,l=ea(t,{elementContext:"reference"}),a=ea(t,{altBoundary:!0}),c=qb(l,r),u=qb(a,o,i),d=Kb(c),p=Kb(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}const Q3={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Z3};function J3(e,t,n){var r=ro(e),o=[Bn,zn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=i[0],a=i[1];return l=l||0,a=(a||0)*o,[Bn,wr].indexOf(r)>=0?{x:a,y:l}:{x:l,y:a}}function ej(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,l=tC.reduce(function(d,p){return d[p]=J3(p,t.rects,i),d},{}),a=l[t.placement],c=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=l}const tj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ej};function nj(e){var t=e.state,n=e.name;t.modifiersData[n]=aC({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const rj={name:"popperOffsets",enabled:!0,phase:"read",fn:nj,data:{}};function oj(e){return e==="x"?"y":"x"}function sj(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,l=n.altAxis,a=l===void 0?!1:l,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,p=n.padding,h=n.tether,f=h===void 0?!0:h,y=n.tetherOffset,g=y===void 0?0:y,v=ea(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:d}),x=ro(t.placement),S=Pi(t.placement),w=!S,k=Fm(x),E=oj(k),T=t.modifiersData.popperOffsets,N=t.rects.reference,P=t.rects.popper,O=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,j=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(T){if(i){var L,F=k==="y"?zn:Bn,M=k==="y"?Cr:wr,R=k==="y"?"height":"width",_=T[k],V=_+v[F],W=_-v[M],I=f?-P[R]/2:0,D=S===Ei?N[R]:P[R],G=S===Ei?-P[R]:-N[R],A=t.elements.arrow,K=f&&A?Nm(A):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:oC(),U=Y[F],q=Y[M],Z=Fl(0,N[R],K[R]),X=w?N[R]/2-I-Z-U-j.mainAxis:D-Z-U-j.mainAxis,Q=w?-N[R]/2+I+Z+q+j.mainAxis:G+Z+q+j.mainAxis,re=t.elements.arrow&&Ma(t.elements.arrow),J=re?k==="y"?re.clientTop||0:re.clientLeft||0:0,oe=(L=$==null?void 0:$[k])!=null?L:0,te=_+X-oe-J,fe=_+Q-oe,ve=Fl(f?Kc(V,te):V,_,f?Ss(W,fe):W);T[k]=ve,C[k]=ve-_}if(a){var Ce,xe=k==="x"?zn:Bn,Se=k==="x"?Cr:wr,Oe=T[E],Ae=E==="y"?"height":"width",se=Oe+v[xe],Ge=Oe-v[Se],Ie=[zn,Bn].indexOf(x)!==-1,Ye=(Ce=$==null?void 0:$[E])!=null?Ce:0,ee=Ie?se:Oe-N[Ae]-P[Ae]-Ye+j.altAxis,de=Ie?Oe+N[Ae]+P[Ae]-Ye-j.altAxis:Ge,he=f&&Ie?O3(ee,Oe,de):Fl(f?ee:se,Oe,f?de:Ge);T[E]=he,C[E]=he-Oe}t.modifiersData[r]=C}}const ij={name:"preventOverflow",enabled:!0,phase:"main",fn:sj,requiresIfExists:["offset"]};function lj(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function aj(e){return e===sr(e)||!gr(e)?Am(e):lj(e)}function cj(e){var t=e.getBoundingClientRect(),n=Ti(t.width)/e.offsetWidth||1,r=Ti(t.height)/e.offsetHeight||1;return n!==1||r!==1}function uj(e,t,n){n===void 0&&(n=!1);var r=gr(t),o=gr(t)&&cj(t),i=es(t),l=Ii(e,o,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((ao(t)!=="body"||_m(i))&&(a=aj(t)),gr(t)?(c=Ii(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Dm(i))),{x:l.left+a.scrollLeft-c.x,y:l.top+a.scrollTop-c.y,width:l.width,height:l.height}}function dj(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var l=[].concat(i.requires||[],i.requiresIfExists||[]);l.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function pj(e){var t=dj(e);return S3.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function fj(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function mj(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Yb={placement:"bottom",modifiers:[],strategy:"absolute"};function Xb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function hj(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?Yb:o;return function(a,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Yb,i),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},p=[],h=!1,f={state:d,setOptions:function(x){var S=typeof x=="function"?x(d.options):x;g(),d.options=Object.assign({},i,d.options,S),d.scrollParents={reference:Rs(a)?Al(a):a.contextElement?Al(a.contextElement):[],popper:Al(c)};var w=pj(mj([].concat(r,d.options.modifiers)));return d.orderedModifiers=w.filter(function(k){return k.enabled}),y(),f.update()},forceUpdate:function(){if(!h){var x=d.elements,S=x.reference,w=x.popper;if(Xb(S,w)){d.rects={reference:uj(S,Ma(w),d.options.strategy==="fixed"),popper:Nm(w)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(j){return d.modifiersData[j.name]=Object.assign({},j.data)});for(var k=0;k<d.orderedModifiers.length;k++){if(d.reset===!0){d.reset=!1,k=-1;continue}var E=d.orderedModifiers[k],T=E.fn,N=E.options,P=N===void 0?{}:N,O=E.name;typeof T=="function"&&(d=T({state:d,options:P,name:O,instance:f})||d)}}}},update:fj(function(){return new Promise(function(v){f.forceUpdate(),v(d)})}),destroy:function(){g(),h=!0}};if(!Xb(a,c))return f;f.setOptions(u).then(function(v){!h&&u.onFirstUpdate&&u.onFirstUpdate(v)});function y(){d.orderedModifiers.forEach(function(v){var x=v.name,S=v.options,w=S===void 0?{}:S,k=v.effect;if(typeof k=="function"){var E=k({state:d,name:x,instance:f,options:w}),T=function(){};p.push(E||T)}})}function g(){p.forEach(function(v){return v()}),p=[]}return f}}var gj=[_3,rj,A3,T3,tj,X3,ij,L3,Q3],bj=hj({defaultModifiers:gj});function cC(e){var p;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,l=o?{}:Wx(n,r),{props:a,internalRef:c}=qx({...i,externalSlotProps:l}),u=It(c,l==null?void 0:l.ref,(p=e.additionalProps)==null?void 0:p.ref);return Gx(t,{...a,ref:u},r)}function Ra(){return!(/jsdom|HappyDOM/.test(window.navigator.userAgent)||process.env.NODE_ENV==="test")}function ts(e){var t;return parseInt(b.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function yj(e){return typeof e=="function"?e():e}const ta=b.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[l,a]=b.useState(null),c=It(b.isValidElement(r)?ts(r):null,n);if(Rt(()=>{i||a(yj(o)||document.body)},[o,i]),Rt(()=>{if(l&&!i)return Xp(n,l),()=>{Xp(n,null)}},[n,l,i]),i){if(b.isValidElement(r)){const u={ref:c};return b.cloneElement(r,u)}return r}return l&&H0.createPortal(r,l)});process.env.NODE_ENV!=="production"&&(ta.propTypes={children:s.node,container:s.oneOfType([xr,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&(ta.propTypes=Ta(ta.propTypes));function vj(e){return Ne("MuiPopper",e)}$e("MuiPopper",["root"]);function xj(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Yc(e){return typeof e=="function"?e():e}function Ku(e){return e.nodeType!==void 0}function Cj(e){return!Ku(e)}const wj=e=>{const{classes:t}=e;return ye({root:["root"]},vj,t)},Sj={},kj=b.forwardRef(function(t,n){var M;const{anchorEl:r,children:o,direction:i,disablePortal:l,modifiers:a,open:c,placement:u,popperOptions:d,popperRef:p,slotProps:h={},slots:f={},TransitionProps:y,ownerState:g,...v}=t,x=b.useRef(null),S=It(x,n),w=b.useRef(null),k=It(w,p),E=b.useRef(k);Rt(()=>{E.current=k},[k]),b.useImperativeHandle(p,()=>w.current,[]);const T=xj(u,i),[N,P]=b.useState(T),[O,j]=b.useState(Yc(r));b.useEffect(()=>{w.current&&w.current.forceUpdate()}),b.useEffect(()=>{r&&j(Yc(r))},[r]),Rt(()=>{if(!O||!c)return;const R=I=>{P(I.placement)};if(process.env.NODE_ENV!=="production"&&O&&Ku(O)&&O.nodeType===1){const I=O.getBoundingClientRect();Ra()&&I.top===0&&I.left===0&&I.right===0&&I.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
272
- `))}let _=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:I})=>{R(I)}}];a!=null&&(_=_.concat(a)),d&&d.modifiers!=null&&(_=_.concat(d.modifiers));const V=bj(O,x.current,{placement:T,...d,modifiers:_});E.current(V);const W=x.current;return()=>{if(W){const{style:I}=W,D=I.position,G=I.top,A=I.left,K=I.transform;V.destroy(),I.position=D,I.top=G,I.left=A,I.transform=K}else V.destroy();E.current(null)}},[O,l,a,c,d,T]);const $={placement:N};y!==null&&($.TransitionProps=y);const C=wj(t),L=(M=f.root)!=null?M:"div",F=cC({elementType:L,externalSlotProps:h.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:S},ownerState:t,className:C.root});return m.jsx(L,{...F,children:typeof o=="function"?o($):o})}),uC=b.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:l="ltr",disablePortal:a=!1,keepMounted:c=!1,modifiers:u,open:d,placement:p="bottom",popperOptions:h=Sj,popperRef:f,style:y,transition:g=!1,slotProps:v={},slots:x={},...S}=t,[w,k]=b.useState(!0),E=()=>{k(!1)},T=()=>{k(!0)};if(!c&&!d&&(!g||w))return null;let N;if(i)N=i;else if(r){const j=Yc(r);N=j&&Ku(j)?Yt(j).body:Yt(null).body}const P=!d&&c&&(!g||w)?"none":void 0,O=g?{in:d,onEnter:E,onExited:T}:void 0;return m.jsx(ta,{disablePortal:a,container:N,children:m.jsx(kj,{anchorEl:r,direction:l,disablePortal:a,modifiers:u,ref:n,open:g?!w:d,placement:p,popperOptions:h,popperRef:f,slotProps:v,slots:x,...S,style:{position:"fixed",top:0,left:0,display:P,...y},TransitionProps:O,children:o})})});process.env.NODE_ENV!=="production"&&(uC.propTypes={anchorEl:or(s.oneOfType([xr,s.object,s.func]),e=>{if(e.open){const t=Yc(e.anchorEl);if(t&&Ku(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="production"&&Ra()&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
273
- `))}else if(!t||typeof t.getBoundingClientRect!="function"||Cj(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
274
- `))}return null}),children:s.oneOfType([s.node,s.func]),container:s.oneOfType([xr,s.func]),direction:s.oneOf(["ltr","rtl"]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:Fn,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),transition:s.bool});const Ej=ne(uC,{name:"MuiPopper",slot:"Root"})({}),ns=b.forwardRef(function(t,n){var N;const r=Nn(),o=ze({props:t,name:"MuiPopper"}),{anchorEl:i,component:l,components:a,componentsProps:c,container:u,disablePortal:d,keepMounted:p,modifiers:h,open:f,placement:y,popperOptions:g,popperRef:v,transition:x,slots:S,slotProps:w,...k}=o,E=(N=S==null?void 0:S.root)!=null?N:a==null?void 0:a.Root,T={anchorEl:i,container:u,disablePortal:d,keepMounted:p,modifiers:h,open:f,placement:y,popperOptions:g,popperRef:v,transition:x,...k};return m.jsx(Ej,{as:l,direction:r?"rtl":"ltr",slots:{root:E},slotProps:w!=null?w:c,...T,ref:n})});process.env.NODE_ENV!=="production"&&(ns.propTypes={anchorEl:s.oneOfType([xr,s.object,s.func]),children:s.oneOfType([s.node,s.func]),component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([xr,s.func]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:Fn,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transition:s.bool});function Tj(e){return Ne("MuiListSubheader",e)}$e("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Ij=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,l={root:["root",n!=="default"&&`color${ie(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return ye(l,Tj,t)},Pj=ne("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ie(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(je(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),Xc=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:l="li",disableGutters:a=!1,disableSticky:c=!1,inset:u=!1,...d}=r,p={...r,color:i,component:l,disableGutters:a,disableSticky:c,inset:u},h=Ij(p);return m.jsx(Pj,{as:l,className:ue(h.root,o),ref:n,ownerState:p,...d})});Xc&&(Xc.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(Xc.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOf(["default","inherit","primary"]),component:s.elementType,disableGutters:s.bool,disableSticky:s.bool,inset:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const Oj=Me(m.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Mj(e){return Ne("MuiChip",e)}const mt=$e("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Rj=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:l,clickable:a,variant:c}=e,u={root:["root",c,n&&"disabled",`size${ie(r)}`,`color${ie(o)}`,a&&"clickable",a&&`clickableColor${ie(o)}`,l&&"deletable",l&&`deletableColor${ie(o)}`,`${c}${ie(o)}`],label:["label",`label${ie(r)}`],avatar:["avatar",`avatar${ie(r)}`,`avatarColor${ie(o)}`],icon:["icon",`icon${ie(r)}`,`iconColor${ie(i)}`],deleteIcon:["deleteIcon",`deleteIcon${ie(r)}`,`deleteIconColor${ie(o)}`,`deleteIcon${ie(c)}Color${ie(o)}`]};return ye(u,Mj,t)},jj=ne("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:l,size:a,variant:c}=n;return[{[`& .${mt.avatar}`]:t.avatar},{[`& .${mt.avatar}`]:t[`avatar${ie(a)}`]},{[`& .${mt.avatar}`]:t[`avatarColor${ie(r)}`]},{[`& .${mt.icon}`]:t.icon},{[`& .${mt.icon}`]:t[`icon${ie(a)}`]},{[`& .${mt.icon}`]:t[`iconColor${ie(o)}`]},{[`& .${mt.deleteIcon}`]:t.deleteIcon},{[`& .${mt.deleteIcon}`]:t[`deleteIcon${ie(a)}`]},{[`& .${mt.deleteIcon}`]:t[`deleteIconColor${ie(r)}`]},{[`& .${mt.deleteIcon}`]:t[`deleteIcon${ie(c)}Color${ie(r)}`]},t.root,t[`size${ie(a)}`],t[`color${ie(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${ie(r)}`],l&&t.deletable,l&&r!=="default"&&t[`deletableColor${ie(r)}`],t[c],t[`${c}${ie(r)}`]]}})(je(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${mt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${mt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${mt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${mt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${mt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${mt.icon}`]:{marginLeft:5,marginRight:-6},[`& .${mt.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${mt.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${mt.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(_t(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${mt.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${mt.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${mt.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${mt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(_t(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${mt.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${mt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(_t(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${mt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${mt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${mt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${mt.avatar}`]:{marginLeft:4},[`& .${mt.avatarSmall}`]:{marginLeft:2},[`& .${mt.icon}`]:{marginLeft:4},[`& .${mt.iconSmall}`]:{marginLeft:2},[`& .${mt.deleteIcon}`]:{marginRight:5},[`& .${mt.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(_t()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${mt.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${mt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${mt.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),Lj=ne("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ie(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function Zb(e){return e.key==="Backspace"||e.key==="Delete"}const zm=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:l,color:a="default",component:c,deleteIcon:u,disabled:d=!1,icon:p,label:h,onClick:f,onDelete:y,onKeyDown:g,onKeyUp:v,size:x="medium",variant:S="filled",tabIndex:w,skipFocusWhenDisabled:k=!1,slots:E={},slotProps:T={},...N}=r,P=b.useRef(null),O=It(P,n),j=U=>{U.stopPropagation(),y(U)},$=U=>{U.currentTarget===U.target&&Zb(U)&&U.preventDefault(),g&&g(U)},C=U=>{U.currentTarget===U.target&&y&&Zb(U)&&y(U),v&&v(U)},L=l!==!1&&f?!0:l,F=L||y?ko:c||"div",M={...r,component:F,disabled:d,size:x,color:a,iconColor:b.isValidElement(p)&&p.props.color||a,onDelete:!!y,clickable:L,variant:S},R=Rj(M),_=F===ko?{component:c||"div",focusVisibleClassName:R.focusVisible,...y&&{disableRipple:!0}}:{};let V=null;y&&(V=u&&b.isValidElement(u)?b.cloneElement(u,{className:ue(u.props.className,R.deleteIcon),onClick:j}):m.jsx(Oj,{className:R.deleteIcon,onClick:j}));let W=null;o&&b.isValidElement(o)&&(W=b.cloneElement(o,{className:ue(R.avatar,o.props.className)}));let I=null;p&&b.isValidElement(p)&&(I=b.cloneElement(p,{className:ue(R.icon,p.props.className)})),process.env.NODE_ENV!=="production"&&W&&I&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const D={slots:E,slotProps:T},[G,A]=He("root",{elementType:jj,externalForwardedProps:{...D,...N},ownerState:M,shouldForwardComponentProp:!0,ref:O,className:ue(R.root,i),additionalProps:{disabled:L&&d?!0:void 0,tabIndex:k&&d?-1:w,..._},getSlotProps:U=>({...U,onClick:q=>{var Z;(Z=U.onClick)==null||Z.call(U,q),f==null||f(q)},onKeyDown:q=>{var Z;(Z=U.onKeyDown)==null||Z.call(U,q),$(q)},onKeyUp:q=>{var Z;(Z=U.onKeyUp)==null||Z.call(U,q),C(q)}})}),[K,Y]=He("label",{elementType:Lj,externalForwardedProps:D,ownerState:M,className:R.label});return m.jsxs(G,{as:F,...A,children:[W||I,m.jsx(K,{...Y,children:h}),V]})});process.env.NODE_ENV!=="production"&&(zm.propTypes={avatar:s.element,children:WM,classes:s.object,className:s.string,clickable:s.bool,color:s.oneOfType([s.oneOf(["default","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,deleteIcon:s.element,disabled:s.bool,icon:s.element,label:s.node,onClick:s.func,onDelete:s.func,onKeyDown:s.func,onKeyUp:s.func,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),skipFocusWhenDisabled:s.bool,slotProps:s.shape({label:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({label:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,variant:s.oneOfType([s.oneOf(["filled","outlined"]),s.string])});function fc(e){return parseInt(e,10)||0}const $j={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Nj(e){for(const t in e)return!1;return!0}function Qb(e){return Nj(e)||e.outerHeightStyle===0&&!e.overflowing}const dC=b.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:l,value:a,...c}=t,{current:u}=b.useRef(a!=null),d=b.useRef(null),p=It(n,d),h=b.useRef(null),f=b.useRef(null),y=b.useCallback(()=>{const w=d.current,k=f.current;if(!w||!k)return;const T=vr(w).getComputedStyle(w);if(T.width==="0px")return{outerHeightStyle:0,overflowing:!1};k.style.width=T.width,k.value=w.value||t.placeholder||"x",k.value.slice(-1)===`
275
- `&&(k.value+=" ");const N=T.boxSizing,P=fc(T.paddingBottom)+fc(T.paddingTop),O=fc(T.borderBottomWidth)+fc(T.borderTopWidth),j=k.scrollHeight;k.value="x";const $=k.scrollHeight;let C=j;i&&(C=Math.max(Number(i)*$,C)),o&&(C=Math.min(Number(o)*$,C)),C=Math.max(C,$);const L=C+(N==="border-box"?P+O:0),F=Math.abs(C-j)<=1;return{outerHeightStyle:L,overflowing:F}},[o,i,t.placeholder]),g=rt(()=>{const w=d.current,k=y();if(!w||!k||Qb(k))return!1;const E=k.outerHeightStyle;return h.current!=null&&h.current!==E}),v=b.useCallback(()=>{const w=d.current,k=y();if(!w||!k||Qb(k))return;const E=k.outerHeightStyle;h.current!==E&&(h.current=E,w.style.height=`${E}px`),w.style.overflow=k.overflowing?"hidden":""},[y]),x=b.useRef(-1);Rt(()=>{const w=Tm(v),k=d==null?void 0:d.current;if(!k)return;const E=vr(k);E.addEventListener("resize",w);let T;return typeof ResizeObserver!="undefined"&&(T=new ResizeObserver(()=>{g()&&(T.unobserve(k),cancelAnimationFrame(x.current),v(),x.current=requestAnimationFrame(()=>{T.observe(k)}))}),T.observe(k)),()=>{w.clear(),cancelAnimationFrame(x.current),E.removeEventListener("resize",w),T&&T.disconnect()}},[y,v,g]),Rt(()=>{v()});const S=w=>{u||v();const k=w.target,E=k.value.length,T=k.value.endsWith(`
276
- `),N=k.selectionStart===E;T&&N&&k.setSelectionRange(E,E),r&&r(w)};return m.jsxs(b.Fragment,{children:[m.jsx("textarea",{value:a,onChange:S,ref:p,rows:i,style:l,...c}),m.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:{...$j.shadow,...l,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(dC.propTypes={className:s.string,maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),onChange:s.func,placeholder:s.string,style:s.object,value:s.oneOfType([s.arrayOf(s.string),s.number,s.string])});function rs({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]=="undefined"&&(r[o]=n[o]),r),{})}const ja=b.createContext(void 0);process.env.NODE_ENV!=="production"&&(ja.displayName="FormControlContext");function Vr(){return b.useContext(ja)}function ui(e){var n;let t=e.activeElement;for(;((n=t==null?void 0:t.shadowRoot)==null?void 0:n.activeElement)!=null;)t=t.shadowRoot.activeElement;return t}function Jb(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Zc(e,t=!1){return e&&(Jb(e.value)&&e.value!==""||t&&Jb(e.defaultValue)&&e.defaultValue!=="")}function Fj(e){return e.startAdornment}function Aj(e){return Ne("MuiInputBase",e)}const vn=$e("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var ey;const lf="mui-auto-fill",Qc="mui-auto-fill-cancel",Yu=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${ie(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Xu=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Dj=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:l,formControl:a,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:p,size:h,startAdornment:f,type:y}=e,g={root:["root",`color${ie(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",l&&"focused",a&&"formControl",h&&h!=="medium"&&`size${ie(h)}`,d&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",d&&"inputMultiline",h==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",p&&"readOnly"]};return ye(g,Aj,t)},Zu=ne("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Yu})(je(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${vn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Qu=ne("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Xu})(je(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${vn.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${vn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:Qc,animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:lf}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),ty=Em({[`@keyframes ${lf}`]:{from:{animationName:lf}},[`@keyframes ${Qc}`]:{from:{animationName:Qc}}}),_s=b.forwardRef(function(t,n){var be;const r=ze({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:l,className:a,color:c,components:u={},componentsProps:d={},defaultValue:p,disabled:h,disableInjectingGlobalStyles:f,endAdornment:y,error:g,fullWidth:v=!1,id:x,inputComponent:S="input",inputProps:w={},inputRef:k,margin:E,maxRows:T,minRows:N,multiline:P=!1,name:O,onBlur:j,onChange:$,onClick:C,onFocus:L,onKeyDown:F,onKeyUp:M,placeholder:R,readOnly:_,renderSuffix:V,rows:W,size:I,slotProps:D={},slots:G={},startAdornment:A,type:K="text",value:Y,...U}=r,q=w.value!=null?w.value:Y,{current:Z}=b.useRef(q!=null),X=b.useRef(),Q=b.useCallback(Te=>{process.env.NODE_ENV!=="production"&&Te&&Te.nodeName!=="INPUT"&&!Te.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
277
- `))},[]),re=It(X,k,w.ref,Q),[J,oe]=b.useState(!1),te=Vr();process.env.NODE_ENV!=="production"&&b.useEffect(()=>{if(te)return te.registerEffect()},[te]);const fe=rs({props:r,muiFormControl:te,states:["color","disabled","error","hiddenLabel","size","required","filled"]});fe.focused=te?te.focused:J,b.useEffect(()=>{!te&&h&&J&&(oe(!1),j&&j())},[te,h,J,j]);const ve=te&&te.onFilled,Ce=te&&te.onEmpty,xe=b.useCallback(Te=>{Zc(Te)?ve&&ve():Ce&&Ce()},[ve,Ce]);Rt(()=>{Z&&xe({value:q})},[q,xe,Z]),Rt(()=>{if(!l)return;const Te=X.current;if(!Te)return;const _e=Yt(Te),ke=ui(_e),dt=ke==null||ke===_e.body||ke===_e.documentElement;Te===ke?te&&te.onFocus?te.onFocus():oe(!0):dt&&Te.focus()},[l]);const Se=Te=>{L&&L(Te),w.onFocus&&w.onFocus(Te),te&&te.onFocus?te.onFocus(Te):oe(!0)},Oe=Te=>{j&&j(Te),w.onBlur&&w.onBlur(Te),te&&te.onBlur?te.onBlur(Te):oe(!1)},Ae=(Te,..._e)=>{if(!Z){const ke=Te.target||X.current;if(ke==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":So(1));xe({value:ke.value})}w.onChange&&w.onChange(Te,..._e),$&&$(Te,..._e)};b.useEffect(()=>{xe(X.current)},[]);const se=Te=>{X.current&&Te.currentTarget===Te.target&&X.current.focus(),C&&C(Te)};let Ge=S,Ie=w;P&&Ge==="input"&&(W?(process.env.NODE_ENV!=="production"&&(N||T)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Ie={type:void 0,minRows:W,maxRows:W,...Ie}):Ie={type:void 0,maxRows:T,minRows:N,...Ie},Ge=dC);const Ye=Te=>{xe(Te.animationName===Qc?X.current:{value:"x"})};b.useEffect(()=>{te&&te.setAdornedStart(!!A)},[te,A]);const ee={...r,color:fe.color||"primary",disabled:fe.disabled,endAdornment:y,error:fe.error,focused:fe.focused,formControl:te,fullWidth:v,hiddenLabel:fe.hiddenLabel,multiline:P,size:fe.size,startAdornment:A,type:K},de=Dj(ee),he=G.root||u.Root||Zu,ae=D.root||d.root||{},ge=G.input||u.Input||Qu;return Ie={...Ie,...(be=D.input)!=null?be:d.input},m.jsxs(b.Fragment,{children:[!f&&typeof ty=="function"&&(ey||(ey=m.jsx(ty,{}))),m.jsxs(he,{...ae,ref:n,onClick:se,...U,...!Si(he)&&{ownerState:{...ee,...ae.ownerState}},className:ue(de.root,ae.className,a,_&&"MuiInputBase-readOnly"),children:[A,m.jsx(ja.Provider,{value:null,children:m.jsx(ge,{"aria-invalid":fe.error,"aria-describedby":o,autoComplete:i,autoFocus:l,defaultValue:p,disabled:fe.disabled,id:x,onAnimationStart:Ye,name:O,placeholder:R,readOnly:_,required:fe.required,rows:W,value:q,onKeyDown:F,onKeyUp:M,type:K,...Ie,...!Si(ge)&&{as:Ge,ownerState:{...ee,...Ie.ownerState}},ref:re,className:ue(de.input,Ie.className,_&&"MuiInputBase-readOnly"),onBlur:Oe,onChange:Ae,onFocus:Se})}),y,V?V({...fe,startAdornment:A}):null]})]})});process.env.NODE_ENV!=="production"&&(_s.propTypes={"aria-describedby":s.string,autoComplete:s.string,autoFocus:s.bool,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableInjectingGlobalStyles:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:Ia,inputProps:s.object,inputRef:Fn,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClick:s.func,onFocus:s.func,onInvalid:s.func,onKeyDown:s.func,onKeyUp:s.func,placeholder:s.string,readOnly:s.bool,renderSuffix:s.func,required:s.bool,rows:s.oneOfType([s.number,s.string]),size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});function _j(e){return Ne("MuiInput",e)}const Do={...vn,...$e("MuiInput",["root","underline","input"])};function zj(e){return Ne("MuiOutlinedInput",e)}const ar={...vn,...$e("MuiOutlinedInput",["root","notchedOutline","input"])};function Bj(e){return Ne("MuiFilledInput",e)}const Xn={...vn,...$e("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},pC=Me(m.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Vj(e){return Ne("MuiAutocomplete",e)}const lt=$e("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var ny,ry;const Hj=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:l,hasPopupIcon:a,inputFocused:c,popupOpen:u,size:d}=e,p={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",l&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${ie(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return ye(p,Vj,t)},Gj=ne("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:l,size:a}=n;return[{[`& .${lt.tag}`]:t.tag},{[`& .${lt.tag}`]:t[`tagSize${ie(a)}`]},{[`& .${lt.inputRoot}`]:t.inputRoot},{[`& .${lt.input}`]:t.input},{[`& .${lt.input}`]:l&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${lt.focused} .${lt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${lt.clearIndicator}`]:{visibility:"visible"}},[`& .${lt.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${lt.inputRoot}`]:{[`.${lt.hasPopupIcon}&, .${lt.hasClearIcon}&`]:{paddingRight:30},[`.${lt.hasPopupIcon}.${lt.hasClearIcon}&`]:{paddingRight:56},[`& .${lt.input}`]:{width:0,minWidth:30}},[`& .${Do.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Do.root}.${vn.sizeSmall}`]:{[`& .${Do.input}`]:{padding:"2px 4px 3px 0"}},[`& .${ar.root}`]:{padding:9,[`.${lt.hasPopupIcon}&, .${lt.hasClearIcon}&`]:{paddingRight:39},[`.${lt.hasPopupIcon}.${lt.hasClearIcon}&`]:{paddingRight:65},[`& .${lt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${lt.endAdornment}`]:{right:9}},[`& .${ar.root}.${vn.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${lt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Xn.root}`]:{paddingTop:19,paddingLeft:8,[`.${lt.hasPopupIcon}&, .${lt.hasClearIcon}&`]:{paddingRight:39},[`.${lt.hasPopupIcon}.${lt.hasClearIcon}&`]:{paddingRight:65},[`& .${Xn.input}`]:{padding:"7px 4px"},[`& .${lt.endAdornment}`]:{right:9}},[`& .${Xn.root}.${vn.sizeSmall}`]:{paddingBottom:1,[`& .${Xn.input}`]:{padding:"2.5px 4px"}},[`& .${vn.hiddenLabel}`]:{paddingTop:8},[`& .${Xn.root}.${vn.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${lt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Xn.root}.${vn.hiddenLabel}.${vn.sizeSmall}`]:{[`& .${lt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${lt.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${lt.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${lt.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${lt.inputRoot}`]:{flexWrap:"wrap"}}}]}),Wj=ne("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),Uj=ne(Tn,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),qj=ne(Tn,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),Kj=ne(ns,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${lt.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(je(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),Yj=ne(Br,{name:"MuiAutocomplete",slot:"Paper"})(je(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),Xj=ne("div",{name:"MuiAutocomplete",slot:"Loading"})(je(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Zj=ne("div",{name:"MuiAutocomplete",slot:"NoOptions"})(je(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),Qj=ne("ul",{name:"MuiAutocomplete",slot:"Listbox"})(je(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${lt.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${lt.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${lt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${lt.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${lt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),Jj=ne(Xc,{name:"MuiAutocomplete",slot:"GroupLabel"})(je(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),e9=ne("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${lt.option}`]:{paddingLeft:24}}),Bm=b.forwardRef(function(t,n){var og;const r=ze({props:t,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:i=!1,autoSelect:l=!1,blurOnSelect:a=!1,ChipProps:c,className:u,clearIcon:d=ny||(ny=m.jsx(Qx,{fontSize:"small"})),clearOnBlur:p=!r.freeSolo,clearOnEscape:h=!1,clearText:f="Clear",closeText:y="Close",componentsProps:g,defaultValue:v=r.multiple?[]:null,disableClearable:x=!1,disableCloseOnSelect:S=!1,disabled:w=!1,disabledItemsFocusable:k=!1,disableListWrap:E=!1,disablePortal:T=!1,filterOptions:N,filterSelectedOptions:P=!1,forcePopupIcon:O="auto",freeSolo:j=!1,fullWidth:$=!1,getLimitTagsText:C=gt=>`+${gt}`,getOptionDisabled:L,getOptionKey:F,getOptionLabel:M,isOptionEqualToValue:R,groupBy:_,handleHomeEndKeys:V=!r.freeSolo,id:W,includeInputInList:I=!1,inputValue:D,limitTags:G=-1,ListboxComponent:A,ListboxProps:K,loading:Y=!1,loadingText:U="Loading…",multiple:q=!1,noOptionsText:Z="No options",onChange:X,onClose:Q,onHighlightChange:re,onInputChange:J,onOpen:oe,open:te,openOnFocus:fe=!1,openText:ve="Open",options:Ce,PaperComponent:xe,PopperComponent:Se,popupIcon:Oe=ry||(ry=m.jsx(pC,{})),readOnly:Ae=!1,renderGroup:se,renderInput:Ge,renderOption:Ie,renderTags:Ye,renderValue:ee,selectOnFocus:de=!r.freeSolo,size:he="medium",slots:ae={},slotProps:ge={},value:be,...Te}=r,{getRootProps:_e,getInputProps:ke,getInputLabelProps:dt,getPopupIndicatorProps:at,getClearProps:Pt,getItemProps:qe,getListboxProps:Ve,getOptionProps:it,value:ft,dirty:mn,expanded:qn,id:Re,popupOpen:We,focused:pt,focusedItem:hn,anchorEl:rn,setAnchorEl:Pr,inputValue:Ke,groupedOptions:vt}=d3({...r,componentName:"Autocomplete"}),Rn=l3();b.useEffect(()=>{if(!We||!rn||typeof ResizeObserver=="undefined")return;let gt=rn.clientWidth;const An=new ResizeObserver(()=>{const Or=rn.clientWidth;gt!==Or&&(gt=Or,Rn())});return An.observe(rn),()=>{An.disconnect()}},[We,rn,Rn]);const wn=b.useRef([]),Ro=b.useRef(!1),as=We?vt:wn.current;Rt(()=>{We&&!Ro.current&&(wn.current=[]),Ro.current=We,We&&vt.length>0&&(wn.current=vt)},[We,vt]);const Ws=!x&&!w&&mn&&!Ae,Us=(!j||O===!0)&&O!==!1,{onMouseDown:Sd}=ke(),{ref:kd,...Ya}=Ve(),Yi=M||(gt=>{var An;return(An=gt.label)!=null?An:gt}),gn={...r,disablePortal:T,expanded:qn,focused:pt,fullWidth:$,getOptionLabel:Yi,hasClearIcon:Ws,hasPopupIcon:Us,inputFocused:hn===-1,popupOpen:We,size:he},bn=Hj(gn),Hr={slots:{paper:xe,popper:Se,...ae},slotProps:{chip:c,listbox:K,...g,...ge}},[Ed,Xa]=He("root",{ref:n,className:[bn.root,u],elementType:Gj,externalForwardedProps:{...Hr,...Te},getSlotProps:_e,ownerState:gn}),[Td,Id]=He("listbox",{elementType:Qj,externalForwardedProps:Hr,ownerState:gn,className:bn.listbox,additionalProps:Ya,ref:kd}),[Pd,Xi]=He("paper",{elementType:Br,externalForwardedProps:Hr,ownerState:gn,className:bn.paper}),[Za,le]=He("popper",{elementType:ns,externalForwardedProps:Hr,ownerState:gn,className:bn.popper,additionalProps:{disablePortal:T,style:{width:rn?rn.clientWidth:null,pointerEvents:We?void 0:"none"},role:"presentation",anchorEl:rn,open:We}}),ce=as.length>0||Y||!j||le.keepMounted===!0,[Ee,tt]=He("clearIndicator",{elementType:Uj,externalForwardedProps:Hr,ownerState:gn,className:bn.clearIndicator,shouldForwardComponentProp:!0,additionalProps:{...Pt(),"aria-label":f,title:f}}),[Xe,zt]=He("popupIndicator",{elementType:qj,externalForwardedProps:Hr,ownerState:gn,className:bn.popupIndicator,shouldForwardComponentProp:!0,additionalProps:{...at(),disabled:w,"aria-label":We?y:ve,title:We?y:ve}});let Ct;const en=gt=>({className:bn.tag,disabled:w,...qe(gt)});if(q?ft.length>0&&(Ye?Ct=Ye(ft,en,gn):ee?Ct=ee(ft,en,gn):Ct=ft.map((gt,An)=>{const{key:Or,...Zi}=en({index:An});return m.jsx(zm,{label:Yi(gt),size:he,...Zi,...Hr.slotProps.chip},Or)})):ee&&ft!=null&&(Ct=ee(ft,en,gn)),G>-1&&Array.isArray(Ct)){const gt=Ct.length-G;!pt&&gt>0&&(Ct=Ct.splice(0,G),Ct.push(m.jsx("span",{className:bn.tag,children:C(gt)},Ct.length)))}const $k=se||(gt=>m.jsxs("li",{children:[m.jsx(Jj,{className:bn.groupLabel,ownerState:gn,component:"div",children:gt.group}),m.jsx(e9,{className:bn.groupUl,ownerState:gn,children:gt.children})]},gt.key)),Nk=Ie||((gt,An)=>{const{key:Or,...Zi}=gt;return m.jsx("li",{...Zi,children:Yi(An)},Or)}),rg=(gt,An)=>{const Or=it({option:gt,index:An});return Nk({...Or,className:bn.option},gt,{selected:Or["aria-selected"],index:An,inputValue:Ke},gn)};return m.jsxs(b.Fragment,{children:[m.jsx(Ed,{...Xa,children:Ge({id:Re,disabled:w,fullWidth:(og=r.fullWidth)!=null?og:!0,size:he==="small"?"small":void 0,InputLabelProps:dt(),InputProps:{ref:Pr,className:bn.inputRoot,startAdornment:Ct,onMouseDown:gt=>{gt.target===gt.currentTarget&&Sd(gt)},...(Ws||Us)&&{endAdornment:m.jsxs(Wj,{className:bn.endAdornment,ownerState:gn,children:[Ws?m.jsx(Ee,{...tt,children:d}):null,Us?m.jsx(Xe,{...zt,children:Oe}):null]})}},inputProps:{className:bn.input,disabled:w,readOnly:Ae,...ke()}})}),rn&&ce?m.jsx(Kj,{as:Za,...le,children:m.jsxs(Yj,{as:Pd,...Xi,children:[Y&&as.length===0?m.jsx(Xj,{className:bn.loading,ownerState:gn,children:U}):null,as.length===0&&!j&&!Y?m.jsx(Zj,{className:bn.noOptions,ownerState:gn,role:"presentation",onMouseDown:gt=>{gt.preventDefault()},children:Z}):null,as.length>0?m.jsx(Td,{...Id,children:as.map((gt,An)=>_?$k({key:gt.key,group:gt.group,children:gt.options.map((Or,Zi)=>rg(Or,gt.index+Zi))}):rg(gt,An))}):null]})}):null]})});process.env.NODE_ENV!=="production"&&(Bm.propTypes={autoComplete:s.bool,autoHighlight:s.bool,autoSelect:s.bool,blurOnSelect:s.oneOfType([s.oneOf(["mouse","touch"]),s.bool]),ChipProps:s.object,classes:s.object,className:s.string,clearIcon:s.node,clearOnBlur:s.bool,clearOnEscape:s.bool,clearText:s.string,closeText:s.string,componentsProps:s.shape({clearIndicator:s.object,paper:s.object,popper:s.object,popupIndicator:s.object}),defaultValue:or(s.any,e=>e.multiple&&e.defaultValue!==void 0&&!Array.isArray(e.defaultValue)?new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.",`However, ${e.defaultValue} was provided.`].join(`
278
- `)):null),disableClearable:s.bool,disableCloseOnSelect:s.bool,disabled:s.bool,disabledItemsFocusable:s.bool,disableListWrap:s.bool,disablePortal:s.bool,filterOptions:s.func,filterSelectedOptions:s.bool,forcePopupIcon:s.oneOfType([s.oneOf(["auto"]),s.bool]),freeSolo:s.bool,fullWidth:s.bool,getLimitTagsText:s.func,getOptionDisabled:s.func,getOptionKey:s.func,getOptionLabel:s.func,groupBy:s.func,handleHomeEndKeys:s.bool,id:s.string,includeInputInList:s.bool,inputValue:s.string,isOptionEqualToValue:s.func,limitTags:Wo,ListboxComponent:s.elementType,ListboxProps:s.object,loading:s.bool,loadingText:s.node,multiple:s.bool,noOptionsText:s.node,onChange:s.func,onClose:s.func,onHighlightChange:s.func,onInputChange:s.func,onKeyDown:s.func,onOpen:s.func,open:s.bool,openOnFocus:s.bool,openText:s.string,options:s.array.isRequired,PaperComponent:s.elementType,PopperComponent:s.elementType,popupIcon:s.node,readOnly:s.bool,renderGroup:s.func,renderInput:s.func.isRequired,renderOption:s.func,renderTags:s.func,renderValue:s.func,selectOnFocus:s.bool,size:s.oneOfType([s.oneOf(["small","medium"]),s.string]),slotProps:s.shape({chip:s.oneOfType([s.func,s.object]),clearIndicator:s.oneOfType([s.func,s.object]),listbox:s.oneOfType([s.func,s.object]),paper:s.oneOfType([s.func,s.object]),popper:s.oneOfType([s.func,s.object]),popupIndicator:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({clearIndicator:s.elementType,listbox:s.elementType,paper:s.elementType,popper:s.elementType,popupIndicator:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:or(s.any,e=>e.multiple&&e.value!==void 0&&!Array.isArray(e.value)?new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.",`However, ${e.value} was provided.`].join(`
279
- `)):null)});const t9=Me(m.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function n9(e){return Ne("MuiAvatar",e)}$e("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const r9=e=>{const{classes:t,variant:n,colorDefault:r}=e;return ye({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},n9,t)},o9=ne("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(je(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),s9=ne("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),i9=ne(t9,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function l9({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=b.useState(!1);return b.useEffect(()=>{if(!n&&!r)return;i(!1);let l=!0;const a=new Image;return a.onload=()=>{l&&i("loaded")},a.onerror=()=>{l&&i("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{l=!1}},[e,t,n,r]),o}const fC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:l,component:a="div",slots:c={},slotProps:u={},imgProps:d,sizes:p,src:h,srcSet:f,variant:y="circular",...g}=r;let v=null;const x={...r,component:a,variant:y},S=l9({...d,...typeof u.img=="function"?u.img(x):u.img,src:h,srcSet:f}),w=h||f,k=w&&S!=="error";x.colorDefault=!k,delete x.ownerState;const E=r9(x),[T,N]=He("root",{ref:n,className:ue(E.root,l),elementType:o9,externalForwardedProps:{slots:c,slotProps:u,component:a,...g},ownerState:x}),[P,O]=He("img",{className:E.img,elementType:s9,externalForwardedProps:{slots:c,slotProps:{img:{...d,...u.img}}},additionalProps:{alt:o,src:h,srcSet:f,sizes:p},ownerState:x}),[j,$]=He("fallback",{className:E.fallback,elementType:i9,externalForwardedProps:{slots:c,slotProps:u},shouldForwardComponentProp:!0,ownerState:x});return k?v=m.jsx(P,{...O}):i||i===0?v=i:w&&o?v=o[0]:v=m.jsx(j,{...$}),m.jsx(T,{...N,children:v})});process.env.NODE_ENV!=="production"&&(fC.propTypes={alt:s.string,children:s.node,classes:s.object,className:s.string,component:s.elementType,imgProps:s.object,sizes:s.string,slotProps:s.shape({fallback:s.oneOfType([s.func,s.object]),img:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({fallback:s.elementType,img:s.elementType,root:s.elementType}),src:s.string,srcSet:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["circular","rounded","square"]),s.string])});function a9(e){const{prototype:t={}}=e;return!!t.isReactComponent}function mC(e,t,n,r,o){const i=e[t],l=o||t;if(i==null||typeof window=="undefined")return null;let a;const c=i.type;return typeof c=="function"&&!a9(c)&&(a="Did you accidentally use a plain function component for an element instead?"),a!==void 0?new Error(`Invalid ${r} \`${l}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const os=or(s.element,mC);os.isRequired=or(s.element.isRequired,mC);const c9={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},u9={opacity:0,visibility:"hidden"},hC=b.forwardRef(function(t,n){const r=Xt(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:a,easing:c,in:u,onEnter:d,onEntered:p,onEntering:h,onExit:f,onExited:y,onExiting:g,style:v,timeout:x=o,...S}=t,w=b.useRef(null),k=It(w,ts(a),n),E=xn(w,h),T=xn(w,(C,L)=>{Mm(C);const F=wi({style:v,timeout:x,easing:c},{mode:"enter"});C.style.transition=r.transitions.create("opacity",F),d&&d(C,L)}),N=xn(w,p),P=xn(w,g),O=xn(w,C=>{const L=wi({style:v,timeout:x,easing:c},{mode:"exit"});C.style.transition=r.transitions.create("opacity",L),f&&f(C)}),j=xn(w,C=>{C.style.transition="",y&&y(C)}),$=C=>{i&&i(w.current,C)};return m.jsx(zr,{appear:l,in:u,nodeRef:w,onEnter:T,onEntered:N,onEntering:E,onExit:O,onExited:j,onExiting:P,addEndListener:$,timeout:x,...S,children:(C,{ownerState:L,...F})=>{const M=Hx(C,u,c9,u9,v,a.props.style);return b.cloneElement(a,{style:M,ref:k,...F})}})});process.env.NODE_ENV!=="production"&&(hC.propTypes={addEndListener:s.func,appear:s.bool,children:os.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});function d9(e){return Ne("MuiBackdrop",e)}$e("MuiBackdrop",["root","invisible"]);const p9=e=>{const{classes:t,invisible:n}=e;return ye({root:["root",n&&"invisible"]},d9,t)},f9=ne("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Vm=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiBackdrop"}),{children:o,className:i,component:l="div",invisible:a=!1,open:c,components:u={},componentsProps:d={},slotProps:p={},slots:h={},TransitionComponent:f,transitionDuration:y,...g}=r,v={...r,component:l,invisible:a},x=p9(v),S={transition:f,root:u.Root,...h},w={...d,...p},k={component:l,slots:S,slotProps:w},[E,T]=He("root",{elementType:f9,externalForwardedProps:k,className:ue(x.root,i),ownerState:v}),[N,P]=He("transition",{elementType:hC,externalForwardedProps:k,ownerState:v});return m.jsx(N,{in:c,timeout:y,...g,...P,children:m.jsx(E,{"aria-hidden":!0,...T,ref:n,children:o})})});process.env.NODE_ENV!=="production"&&(Vm.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),invisible:s.bool,open:s.bool.isRequired,slotProps:s.shape({root:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});function m9(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=jm({badgeContent:t,max:r});let l=n;n===!1&&t===0&&!o&&(l=!0);const{badgeContent:a,max:c=r}=l?i:e,u=a&&Number(a)>c?`${c}+`:a;return{badgeContent:a,invisible:l,max:c,displayValue:u}}function h9(e){return Ne("MuiBadge",e)}const g9=$e("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Xd=10,Zd=4,b9=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:l={}}=e,a={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${ie(n.vertical)}${ie(n.horizontal)}`,`anchorOrigin${ie(n.vertical)}${ie(n.horizontal)}${ie(o)}`,`overlap${ie(o)}`,t!=="default"&&`color${ie(t)}`]};return ye(a,h9,l)},y9=ne("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),v9=ne("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${ie(n.anchorOrigin.vertical)}${ie(n.anchorOrigin.horizontal)}${ie(n.overlap)}`],n.color!=="default"&&t[`color${ie(n.color)}`],n.invisible&&t.invisible]}})(je(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Xd*2,lineHeight:1,padding:"0 6px",height:Xd*2,borderRadius:Xd,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(_t(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Zd,height:Zd*2,minWidth:Zd*2,padding:0}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}},{style:({ownerState:t})=>{const{vertical:n,horizontal:r}=t.anchorOrigin,o=t.overlap==="circular"?"14%":0;return{"--Badge-translateX":r==="right"?"50%":"-50%","--Badge-translateY":n==="top"?"-50%":"50%",top:n==="top"?o:"initial",bottom:n==="bottom"?o:"initial",right:r==="right"?o:"initial",left:r==="left"?o:"initial",transform:"scale(1) translate(var(--Badge-translateX), var(--Badge-translateY))",transformOrigin:`${r==="right"?"100%":"0%"} ${n==="top"?"0%":"100%"}`,[`&.${g9.invisible}`]:{transform:"scale(0) translate(var(--Badge-translateX), var(--Badge-translateY))"}}}}]})));function oy(e){var t,n;return{vertical:(t=e==null?void 0:e.vertical)!=null?t:"top",horizontal:(n=e==null?void 0:e.horizontal)!=null?n:"right"}}const gC=b.forwardRef(function(t,n){var K,Y,U,q;const r=ze({props:t,name:"MuiBadge"}),{anchorOrigin:o,className:i,classes:l,component:a,components:c={},componentsProps:u={},children:d,overlap:p="rectangular",color:h="default",invisible:f=!1,max:y=99,badgeContent:g,slots:v,slotProps:x,showZero:S=!1,variant:w="standard",...k}=r,{badgeContent:E,invisible:T,max:N,displayValue:P}=m9({max:y,invisible:f,badgeContent:g,showZero:S}),O=jm({anchorOrigin:oy(o),color:h,overlap:p,variant:w,badgeContent:g}),j=T||E==null&&w!=="dot",{color:$=h,overlap:C=p,anchorOrigin:L,variant:F=w}=j?O:r,M=oy(L),R=F!=="dot"?P:void 0,_={...r,badgeContent:E,invisible:j,max:N,displayValue:R,showZero:S,anchorOrigin:M,color:$,overlap:C,variant:F},V=b9(_),W={slots:{root:(K=v==null?void 0:v.root)!=null?K:c.Root,badge:(Y=v==null?void 0:v.badge)!=null?Y:c.Badge},slotProps:{root:(U=x==null?void 0:x.root)!=null?U:u.root,badge:(q=x==null?void 0:x.badge)!=null?q:u.badge}},[I,D]=He("root",{elementType:y9,externalForwardedProps:{...W,...k},ownerState:_,className:ue(V.root,i),ref:n,additionalProps:{as:a}}),[G,A]=He("badge",{elementType:v9,externalForwardedProps:W,ownerState:_,className:V.badge});return m.jsxs(I,{...D,children:[d,m.jsx(G,{...A,children:R})]})});process.env.NODE_ENV!=="production"&&(gC.propTypes={anchorOrigin:s.shape({horizontal:s.oneOf(["left","right"]),vertical:s.oneOf(["bottom","top"])}),badgeContent:s.node,children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["default","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,components:s.shape({Badge:s.elementType,Root:s.elementType}),componentsProps:s.shape({badge:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),invisible:s.bool,max:s.number,overlap:s.oneOf(["circular","rectangular"]),showZero:s.bool,slotProps:s.shape({badge:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({badge:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["dot","standard"]),s.string])});function x9(e){return Ne("MuiBottomNavigation",e)}$e("MuiBottomNavigation",["root"]);const C9=e=>{const{classes:t}=e;return ye({root:["root"]},x9,t)},w9=ne("div",{name:"MuiBottomNavigation",slot:"Root"})(je(({theme:e})=>({display:"flex",justifyContent:"center",height:56,backgroundColor:(e.vars||e).palette.background.paper}))),bC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiBottomNavigation"}),{children:o,className:i,component:l="div",onChange:a,showLabels:c=!1,value:u,...d}=r,p={...r,component:l,showLabels:c},h=C9(p);return m.jsx(w9,{as:l,className:ue(h.root,i),ref:n,ownerState:p,...d,children:b.Children.map(o,(f,y)=>{if(!b.isValidElement(f))return null;process.env.NODE_ENV!=="production"&&Wu.isFragment(f)&&console.error(["MUI: The BottomNavigation component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
280
- `));const g=f.props.value===void 0?y:f.props.value;return b.cloneElement(f,{selected:g===u,showLabel:f.props.showLabel!==void 0?f.props.showLabel:c,value:g,onChange:a})})})});process.env.NODE_ENV!=="production"&&(bC.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,onChange:s.func,showLabels:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any});const S9=$e("MuiBox",["root"]),k9=Gu(),Je=y4({themeId:no,defaultTheme:k9,defaultClassName:S9.root,generateClassName:Jv.generate});process.env.NODE_ENV!=="production"&&(Je.propTypes={children:s.node,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function E9(e){return Ne("MuiButton",e)}const ds=$e("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),yC=b.createContext({});process.env.NODE_ENV!=="production"&&(yC.displayName="ButtonGroupContext");const vC=b.createContext(void 0);process.env.NODE_ENV!=="production"&&(vC.displayName="ButtonGroupButtonContext");const T9=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,loading:l,loadingPosition:a,classes:c}=e,u={root:["root",l&&"loading",i,`${i}${ie(t)}`,`size${ie(o)}`,`${i}Size${ie(o)}`,`color${ie(t)}`,n&&"disableElevation",r&&"fullWidth",l&&`loadingPosition${ie(a)}`],startIcon:["icon","startIcon",`iconSize${ie(o)}`],endIcon:["icon","endIcon",`iconSize${ie(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=ye(u,E9,c);return{...c,...d}},xC=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],I9=ne(ko,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ie(n.color)}`],t[`size${ie(n.size)}`],t[`${n.variant}Size${ie(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(je(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${ds.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:r})=>r.startIcon||r.loading&&r.loadingPosition==="start",style:{"&::before":{content:'"\\200b"',width:0,overflow:"hidden"}}},{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${ds.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ds.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${ds.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(_t()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ds.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ds.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${ds.loading}`]:{color:"transparent"}}}]}})),P9=ne("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${ie(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...xC]})),O9=ne("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${ie(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...xC]})),M9=ne("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),sy=ne("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Dr=b.forwardRef(function(t,n){const r=b.useContext(yC),o=b.useContext(vC),i=Ci(r,t),l=ze({props:i,name:"MuiButton"}),{children:a,color:c="primary",component:u="button",className:d,disabled:p=!1,disableElevation:h=!1,disableFocusRipple:f=!1,endIcon:y,focusVisibleClassName:g,fullWidth:v=!1,id:x,loading:S=null,loadingIndicator:w,loadingPosition:k="center",size:E="medium",startIcon:T,type:N,variant:P="text",...O}=l,j=xt(x),$=w!=null?w:m.jsx(Pa,{"aria-labelledby":j,color:"inherit",size:16}),C={...l,color:c,component:u,disabled:p,disableElevation:h,disableFocusRipple:f,fullWidth:v,loading:S,loadingIndicator:$,loadingPosition:k,size:E,type:N,variant:P},L=T9(C),F=(T||S&&k==="start")&&m.jsx(P9,{className:L.startIcon,ownerState:C,children:T||m.jsx(sy,{className:L.loadingIconPlaceholder,ownerState:C})}),M=(y||S&&k==="end")&&m.jsx(O9,{className:L.endIcon,ownerState:C,children:y||m.jsx(sy,{className:L.loadingIconPlaceholder,ownerState:C})}),R=o||"",_=typeof S=="boolean"?m.jsx("span",{className:L.loadingWrapper,style:{display:"contents"},children:S&&m.jsx(M9,{className:L.loadingIndicator,ownerState:C,children:$})}):null,{root:V,...W}=L;return m.jsxs(I9,{ownerState:C,className:ue(r.className,L.root,d,R),component:u,disabled:p||S,focusRipple:!f,focusVisibleClassName:ue(L.focusVisible,g),ref:n,type:N,id:S?j:x,...O,classes:W,children:[F,k!=="end"&&_,a,k==="end"&&_,M]})});process.env.NODE_ENV!=="production"&&(Dr.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","success","error","info","warning"]),s.string]),component:s.elementType,disabled:s.bool,disableElevation:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,endIcon:s.node,focusVisibleClassName:s.string,fullWidth:s.bool,href:s.string,id:s.string,loading:s.bool,loadingIndicator:s.node,loadingPosition:s.oneOf(["center","end","start"]),size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),startIcon:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string]),variant:s.oneOfType([s.oneOf(["contained","outlined","text"]),s.string])});function R9(e){return Ne("PrivateSwitchBase",e)}$e("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const j9=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${ie(o)}`],input:["input"]};return ye(i,R9,t)},L9=ne(ko,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),$9=ne("input",{name:"MuiSwitchBase",shouldForwardProp:On})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Hm=b.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,defaultChecked:l,disabled:a,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:p,inputProps:h,inputRef:f,name:y,onBlur:g,onChange:v,onFocus:x,readOnly:S,required:w=!1,tabIndex:k,type:E,value:T,slots:N={},slotProps:P={},...O}=t,[j,$]=Go({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),C=Vr(),L=Y=>{x&&x(Y),C&&C.onFocus&&C.onFocus(Y)},F=Y=>{g&&g(Y),C&&C.onBlur&&C.onBlur(Y)},M=Y=>{if(Y.nativeEvent.defaultPrevented||S)return;const U=Y.target.checked;$(U),v&&v(Y,U)};let R=a;C&&typeof R=="undefined"&&(R=C.disabled);const _=E==="checkbox"||E==="radio",V={...t,checked:j,disabled:R,disableFocusRipple:c,edge:u},W=j9(V),I={slots:N,slotProps:{input:h,...P}},[D,G]=He("root",{ref:n,elementType:L9,className:W.root,shouldForwardComponentProp:!0,externalForwardedProps:{...I,component:"span",...O},getSlotProps:Y=>({...Y,onFocus:U=>{var q;(q=Y.onFocus)==null||q.call(Y,U),L(U)},onBlur:U=>{var q;(q=Y.onBlur)==null||q.call(Y,U),F(U)}}),ownerState:V,additionalProps:{centerRipple:!0,focusRipple:!c,role:void 0,tabIndex:null}}),[A,K]=He("input",{ref:f,elementType:$9,className:W.input,externalForwardedProps:I,getSlotProps:Y=>({...Y,onChange:U=>{var q;(q=Y.onChange)==null||q.call(Y,U),M(U)}}),ownerState:V,additionalProps:{autoFocus:r,checked:o,defaultChecked:l,disabled:R,id:_?p:void 0,name:y,readOnly:S,required:w,tabIndex:k,type:E,...E==="checkbox"&&T===void 0?{}:{value:T}}});return m.jsxs(D,{...G,children:[m.jsx(A,{...K}),j?i:d]})});process.env.NODE_ENV!=="production"&&(Hm.propTypes={autoFocus:s.bool,checked:s.bool,checkedIcon:s.node.isRequired,classes:s.object,className:s.string,defaultChecked:s.bool,disabled:s.bool,disableFocusRipple:s.bool,edge:s.oneOf(["end","start",!1]),icon:s.node.isRequired,id:s.string,inputProps:s.object,inputRef:Fn,name:s.string,onBlur:s.func,onChange:s.func,onFocus:s.func,readOnly:s.bool,required:s.bool,slotProps:s.shape({input:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({input:s.elementType,root:s.elementType}),sx:s.object,tabIndex:s.oneOfType([s.number,s.string]),type:s.string.isRequired,value:s.any});const N9=Me(m.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),F9=Me(m.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),A9=Me(m.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function D9(e){return Ne("MuiCheckbox",e)}const Qd=$e("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),_9=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${ie(r)}`,`size${ie(o)}`]},l=ye(i,D9,t);return{...t,...l}},z9=ne(Hm,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ie(n.size)}`],n.color!=="default"&&t[`color${ie(n.color)}`]]}})(je(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t},style:{[`&.${Qd.checked}, &.${Qd.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Qd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),B9=m.jsx(F9,{}),V9=m.jsx(N9,{}),H9=m.jsx(A9,{}),Ju=b.forwardRef(function(t,n){var N,P,O;const r=ze({props:t,name:"MuiCheckbox"}),{checkedIcon:o=B9,color:i="primary",icon:l=V9,indeterminate:a=!1,indeterminateIcon:c=H9,inputProps:u,size:d="medium",disableRipple:p=!1,className:h,slots:f={},slotProps:y={},...g}=r,v=a?c:l,x=a?c:o,S={...r,disableRipple:p,color:i,indeterminate:a,size:d},w=_9(S),k=(N=y.input)!=null?N:u,[E,T]=He("root",{ref:n,elementType:z9,className:ue(w.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:y,...g},ownerState:S,additionalProps:{type:"checkbox",icon:b.cloneElement(v,{fontSize:(P=v.props.fontSize)!=null?P:d}),checkedIcon:b.cloneElement(x,{fontSize:(O=x.props.fontSize)!=null?O:d}),disableRipple:p,slots:f,slotProps:{input:zx(typeof k=="function"?k(S):k,{"data-indeterminate":a,"aria-checked":a?"mixed":void 0})}}});return m.jsx(E,{...T,classes:w})});process.env.NODE_ENV!=="production"&&(Ju.propTypes={checked:s.bool,checkedIcon:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["default","primary","secondary","error","info","success","warning"]),s.string]),defaultChecked:s.bool,disabled:s.bool,disableRipple:s.bool,icon:s.node,id:s.string,indeterminate:s.bool,indeterminateIcon:s.node,inputProps:s.object,onChange:s.func,required:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({input:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({input:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any});function iy(e){return e.substring(2).toLowerCase()}function G9(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function na(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,l=b.useRef(!1),a=b.useRef(null),c=b.useRef(!1),u=b.useRef(!1);b.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const d=It(ts(t),a),p=rt(y=>{const g=u.current;u.current=!1;const v=Yt(a.current);if(!c.current||!a.current||"clientX"in y&&G9(y,v))return;if(l.current){l.current=!1;return}let x;y.composedPath?x=y.composedPath().includes(a.current):x=!vo(v.documentElement,y.target)||vo(a.current,y.target),!x&&(n||!g)&&o(y)}),h=y=>g=>{u.current=!0;const v=t.props[y];v&&v(g)},f={ref:d};return i!==!1&&(f[i]=h(i)),b.useEffect(()=>{if(i!==!1){const y=iy(i),g=Yt(a.current),v=()=>{l.current=!0};return g.addEventListener(y,p),g.addEventListener("touchmove",v),()=>{g.removeEventListener(y,p),g.removeEventListener("touchmove",v)}}},[p,i]),r!==!1&&(f[r]=h(r)),b.useEffect(()=>{if(r!==!1){const y=iy(r),g=Yt(a.current);return g.addEventListener(y,p),()=>{g.removeEventListener(y,p)}}},[p,r]),b.cloneElement(t,f)}process.env.NODE_ENV!=="production"&&(na.propTypes={children:os.isRequired,disableReactTree:s.bool,mouseEvent:s.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:s.func.isRequired,touchEvent:s.oneOf(["onTouchEnd","onTouchStart",!1])});process.env.NODE_ENV!=="production"&&(na.propTypes=Ta(na.propTypes));const af=typeof Em({})=="function",W9=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),U9=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),CC=(e,t=!1)=>{var i,l;const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([a,c])=>{var d,p;const u=e.getColorSchemeSelector(a);u.startsWith("@")?n[u]={":root":{colorScheme:(d=c.palette)==null?void 0:d.mode}}:n[u.replace(/\s*&/,"")]={colorScheme:(p=c.palette)==null?void 0:p.mode}});let r={html:W9(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...U9(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=(l=(i=e.components)==null?void 0:i.MuiCssBaseline)==null?void 0:l.styleOverrides;return o&&(r=[r,o]),r},Mc="mui-ecs",q9=e=>{const t=CC(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Mc})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,o])=>{var l,a;const i=e.getColorSchemeSelector(r);i.startsWith("@")?n[i]={[`:root:not(:has(.${Mc}))`]:{colorScheme:(l=o.palette)==null?void 0:l.mode}}:n[i.replace(/\s*&/,"")]={[`&:not(:has(.${Mc}))`]:{colorScheme:(a=o.palette)==null?void 0:a.mode}}}),t},K9=Em(af?({theme:e,enableColorScheme:t})=>CC(e,t):({theme:e})=>q9(e));function wC(e){const t=ze({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return m.jsxs(b.Fragment,{children:[af&&m.jsx(K9,{enableColorScheme:r}),!af&&!r&&m.jsx("span",{className:Mc,style:{display:"none"}}),n]})}process.env.NODE_ENV!=="production"&&(wC.propTypes={children:s.node,enableColorScheme:s.bool});function SC(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Y9(e){const t=Yt(e);return t.body===e?vr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Dl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ly(e){return parseFloat(vr(e).getComputedStyle(e).paddingRight)||0}function X9(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function ay(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,l=>{const a=!i.includes(l),c=!X9(l);a&&c&&Dl(l,o)})}function Jd(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function Z9(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Y9(r)){const l=SC(vr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ly(r)+l}px`;const a=Yt(r).querySelectorAll(".mui-fixed");[].forEach.call(a,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${ly(c)+l}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=Yt(r).body;else{const l=r.parentElement,a=vr(r);i=(l==null?void 0:l.nodeName)==="HTML"&&a.getComputedStyle(l).overflowY==="scroll"?l:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:l,property:a})=>{i?l.style.setProperty(a,i):l.style.removeProperty(a)})}}function Q9(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class J9{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Dl(t.modalRef,!1);const o=Q9(n);ay(n,t.mount,t.modalRef,o,!0);const i=Jd(this.containers,l=>l.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Jd(this.containers,i=>i.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=Z9(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Jd(this.containers,l=>l.modals.includes(t)),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Dl(t.modalRef,n),ay(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const l=i.modals[i.modals.length-1];l.modalRef&&Dl(l.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const cy="data-mui-focusable";function e6(e){return e?e.hasAttribute(cy)?e:e.querySelector(`[${cy}]`):null}const t6=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function n6(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function r6(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function o6(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||r6(e))}function s6(e){const t=[],n=[];return Array.from(e.querySelectorAll(t6)).forEach((r,o)=>{const i=n6(r);i===-1||!o6(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function i6(){return!0}function ra(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=s6,isEnabled:l=i6,open:a}=e,c=b.useRef(!1),u=b.useRef(null),d=b.useRef(null),p=b.useRef(null),h=b.useRef(null),f=b.useRef(!1),y=b.useRef(null),g=It(ts(t),y),v=b.useRef(null);b.useEffect(()=>{!a||!y.current||(f.current=!n)},[n,a]),b.useEffect(()=>{var T;if(c.current=!1,!a||!y.current)return;const w=Yt(y.current),k=ui(w),E=(T=e6(y.current))!=null?T:y.current;return vo(y.current,k)||(E.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
281
- `)),E.setAttribute("tabIndex","-1")),f.current&&E.focus()),()=>{o||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}},[a]),b.useEffect(()=>{if(!a||!y.current)return;const w=Yt(y.current),k=N=>{if(v.current=N,r||!l()||N.key!=="Tab")return;ui(w)===y.current&&N.shiftKey&&(c.current=!0,d.current&&d.current.focus())},E=()=>{var j,$;const N=y.current;if(N===null)return;const P=ui(w);if(!w.hasFocus()||!l()||c.current){c.current=!1;return}if(vo(N,P)||r&&P!==u.current&&P!==d.current)return;if(P!==h.current)h.current=null;else if(h.current!==null)return;if(!f.current)return;let O=[];if((P===u.current||P===d.current)&&(O=i(y.current)),O.length>0){const C=!!((j=v.current)!=null&&j.shiftKey&&(($=v.current)==null?void 0:$.key)==="Tab"),L=O[0],F=O[O.length-1];typeof L!="string"&&typeof F!="string"&&(C?F.focus():L.focus())}else N.focus()};w.addEventListener("focusin",E),w.addEventListener("keydown",k,!0);const T=setInterval(()=>{const N=ui(w);N&&N.tagName==="BODY"&&E()},50);return()=>{clearInterval(T),w.removeEventListener("focusin",E),w.removeEventListener("keydown",k,!0)}},[n,r,o,l,a,i]);const x=w=>{p.current===null&&(p.current=w.relatedTarget),f.current=!0,h.current=w.target;const k=t.props.onFocus;k&&k(w)},S=w=>{p.current===null&&(p.current=w.relatedTarget),f.current=!0};return m.jsxs(b.Fragment,{children:[m.jsx("div",{tabIndex:a?0:-1,onFocus:S,ref:u,"data-testid":"sentinelStart"}),b.cloneElement(t,{ref:g,onFocus:x}),m.jsx("div",{tabIndex:a?0:-1,onFocus:S,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(ra.propTypes={children:os,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired});process.env.NODE_ENV!=="production"&&(ra.propTypes=Ta(ra.propTypes));function l6(e){return typeof e=="function"?e():e}function a6(e){return e?e.props.hasOwnProperty("in"):!1}const uy=()=>{},mc=new J9;function c6(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:l,children:a,onClose:c,open:u,rootRef:d}=e,p=b.useRef({}),h=b.useRef(null),f=b.useRef(null),y=It(f,d),[g,v]=b.useState(!u),x=a6(a);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const w=()=>Yt(h.current),k=()=>(p.current.modalRef=f.current,p.current.mount=h.current,p.current),E=()=>{mc.mount(k(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},T=rt(()=>{const M=l6(t)||w().body;mc.add(k(),M),f.current&&E()}),N=()=>mc.isTopModal(k()),P=rt(M=>{h.current=M,M&&(u&&N()?E():f.current&&Dl(f.current,S))}),O=b.useCallback(()=>{mc.remove(k(),S)},[S]);b.useEffect(()=>()=>{O()},[O]),b.useEffect(()=>{u?T():(!x||!o)&&O()},[u,O,x,o,T]);const j=M=>R=>{var _;(_=M.onKeyDown)==null||_.call(M,R),!(R.key!=="Escape"||R.which===229||!N())&&(n||(R.stopPropagation(),c&&c(R,"escapeKeyDown")))},$=M=>R=>{var _;(_=M.onClick)==null||_.call(M,R),R.target===R.currentTarget&&c&&c(R,"backdropClick")};return{getRootProps:(M={})=>{const R=Ux(e);delete R.onTransitionEnter,delete R.onTransitionExited;const _={...R,...M};return{role:"presentation",..._,onKeyDown:j(_),ref:y}},getBackdropProps:(M={})=>{const R=M;return{"aria-hidden":!0,...R,onClick:$(R),open:u}},getTransitionProps:()=>{var _,V;const M=()=>{v(!1),i&&i()},R=()=>{v(!0),l&&l(),o&&O()};return{onEnter:Bp(M,(_=a==null?void 0:a.props.onEnter)!=null?_:uy),onExited:Bp(R,(V=a==null?void 0:a.props.onExited)!=null?V:uy)}},rootRef:y,portalRef:P,isTopModal:N,exited:g,hasTransition:x}}function u6(e){return Ne("MuiModal",e)}$e("MuiModal",["root","hidden","backdrop"]);const d6=e=>{const{open:t,exited:n,classes:r}=e;return ye({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},u6,r)},p6=ne("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(je(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),f6=ne(Vm,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),kC=b.forwardRef(function(t,n){const r=ze({name:"MuiModal",props:t}),{BackdropComponent:o=f6,BackdropProps:i,classes:l,className:a,closeAfterTransition:c=!1,children:u,container:d,component:p,components:h={},componentsProps:f={},disableAutoFocus:y=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:v=!1,disablePortal:x=!1,disableRestoreFocus:S=!1,disableScrollLock:w=!1,hideBackdrop:k=!1,keepMounted:E=!1,onClose:T,onTransitionEnter:N,onTransitionExited:P,open:O,slotProps:j={},slots:$={},theme:C,...L}=r,F={...r,closeAfterTransition:c,disableAutoFocus:y,disableEnforceFocus:g,disableEscapeKeyDown:v,disablePortal:x,disableRestoreFocus:S,disableScrollLock:w,hideBackdrop:k,keepMounted:E},{getRootProps:M,getBackdropProps:R,getTransitionProps:_,portalRef:V,isTopModal:W,exited:I,hasTransition:D}=c6({...F,rootRef:n}),G={...F,exited:I},A=d6(G),K={};if(u.props.tabIndex===void 0&&(K.tabIndex="-1"),D){const{onEnter:Q,onExited:re}=_();K.onEnter=Q,K.onExited=re}const Y={slots:{root:h.Root,backdrop:h.Backdrop,...$},slotProps:{...f,...j}},[U,q]=He("root",{ref:n,elementType:p6,externalForwardedProps:{...Y,...L,component:p},getSlotProps:M,ownerState:G,className:ue(a,A==null?void 0:A.root,!G.open&&G.exited&&(A==null?void 0:A.hidden))}),[Z,X]=He("backdrop",{ref:i==null?void 0:i.ref,elementType:o,externalForwardedProps:Y,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:Q=>R({...Q,onClick:re=>{Q!=null&&Q.onClick&&Q.onClick(re)}}),className:ue(i==null?void 0:i.className,A==null?void 0:A.backdrop),ownerState:G});return!E&&!O&&(!D||I)?null:m.jsx(ta,{ref:V,container:d,disablePortal:x,children:m.jsxs(U,{...q,children:[!k&&o?m.jsx(Z,{...X}):null,m.jsx(ra,{disableEnforceFocus:g,disableAutoFocus:y,disableRestoreFocus:S,isEnabled:W,open:O,children:b.cloneElement(u,K)})]})})});process.env.NODE_ENV!=="production"&&(kC.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:os.isRequired,classes:s.object,className:s.string,closeAfterTransition:s.bool,component:s.elementType,components:s.shape({Backdrop:s.elementType,Root:s.elementType}),componentsProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([xr,s.func]),disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableEscapeKeyDown:s.bool,disablePortal:s.bool,disableRestoreFocus:s.bool,disableScrollLock:s.bool,hideBackdrop:s.bool,keepMounted:s.bool,onClose:s.func,onTransitionEnter:s.func,onTransitionExited:s.func,open:s.bool.isRequired,slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function m6(e){return Ne("MuiDivider",e)}const dy=$e("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),h6=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:l,textAlign:a,variant:c}=e;return ye({root:["root",t&&"absolute",c,i&&"light",l==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&l==="vertical"&&"withChildrenVertical",a==="right"&&l!=="vertical"&&"textAlignRight",a==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},m6,r)},g6=ne("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(je(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),b6=ne("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(je(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Jc=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:l,orientation:a="horizontal",component:c=i||a==="vertical"?"div":"hr",flexItem:u=!1,light:d=!1,role:p=c!=="hr"?"separator":void 0,textAlign:h="center",variant:f="fullWidth",...y}=r,g={...r,absolute:o,component:c,flexItem:u,light:d,orientation:a,role:p,textAlign:h,variant:f},v=h6(g);return m.jsx(g6,{as:c,className:ue(v.root,l),role:p,ref:n,ownerState:g,"aria-orientation":p==="separator"&&(c!=="hr"||a==="vertical")?a:void 0,...y,children:i?m.jsx(b6,{className:v.wrapper,ownerState:g,children:i}):null})});Jc&&(Jc.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(Jc.propTypes={absolute:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,flexItem:s.bool,light:s.bool,orientation:s.oneOf(["horizontal","vertical"]),role:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),textAlign:s.oneOf(["center","left","right"]),variant:s.oneOfType([s.oneOf(["fullWidth","inset","middle"]),s.string])});const y6={visibility:"hidden"};function v6(e,t,n){const r=n&&n.getBoundingClientRect(),o=vr(t),i=t.style.transform,l=t.style.transition;t.style.transition="",t.style.transform="";const a=t.getBoundingClientRect(),u=o.getComputedStyle(t).getPropertyValue("transform");t.style.transform=i,t.style.transition=l;let d=0,p=0;if(u&&u!=="none"&&typeof u=="string"){const h=u.split("(")[1].split(")")[0].split(",");d=parseInt(h[4],10),p=parseInt(h[5],10)}return e==="left"?r?`translateX(${r.right+d-a.left}px)`:`translateX(${o.innerWidth+d-a.left}px)`:e==="right"?r?`translateX(-${a.right-r.left-d}px)`:`translateX(-${a.left+a.width-d}px)`:e==="up"?r?`translateY(${r.bottom+p-a.top}px)`:`translateY(${o.innerHeight+p-a.top}px)`:r?`translateY(-${a.top-r.top+a.height-p}px)`:`translateY(-${a.top+a.height-p}px)`}function EC(e){return typeof e=="function"?e():e}function hc(e,t,n){const r=EC(n),o=v6(e,t,r);o&&(t.style.transform=o)}const TC=b.forwardRef(function(t,n){const r=Xt(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:l,appear:a=!0,children:c,container:u,direction:d="down",easing:p=o,in:h,onEnter:f,onEntered:y,onEntering:g,onExit:v,onExited:x,onExiting:S,style:w,timeout:k=i,...E}=t,T=b.useRef(null),N=It(ts(c),T,n),P=xn(T,(R,_)=>{hc(d,R,u),Mm(R),f&&f(R,_)}),O=xn(T,(R,_)=>{const V=wi({timeout:k,style:w,easing:p},{mode:"enter"});R.style.transition=r.transitions.create("transform",V),R.style.transform="none",g&&g(R,_)}),j=xn(T,y),$=xn(T,S),C=xn(T,R=>{const _=wi({timeout:k,style:w,easing:p},{mode:"exit"});R.style.transition=r.transitions.create("transform",_),hc(d,R,u),v&&v(R)}),L=xn(T,R=>{R.style.transition="",x&&x(R)}),F=R=>{l&&l(T.current,R)},M=b.useCallback(()=>{T.current&&hc(d,T.current,u)},[d,u]);return b.useEffect(()=>{if(h||d==="down"||d==="right")return;const R=Tm(()=>{T.current&&hc(d,T.current,u)}),_=vr(T.current);return _.addEventListener("resize",R),()=>{R.clear(),_.removeEventListener("resize",R)}},[d,h,u]),b.useEffect(()=>{h||M()},[h,M]),m.jsx(zr,{nodeRef:T,onEnter:P,onEntered:j,onEntering:O,onExit:C,onExited:L,onExiting:$,addEndListener:F,appear:a,in:h,timeout:k,...E,children:(R,{ownerState:_,...V})=>{let W;return R==="exited"&&!h?W=w||c.props.style?{visibility:"hidden",...w,...c.props.style}:y6:w&&c.props.style?W={...w,...c.props.style}:W=w||c.props.style,b.cloneElement(c,{ref:N,style:W,...V})}})});process.env.NODE_ENV!=="production"&&(TC.propTypes={addEndListener:s.func,appear:s.bool,children:os.isRequired,container:or(s.oneOfType([xr,s.func]),e=>{if(e.open){const t=EC(e.container);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="production"&&Ra()&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `container` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
282
- `))}else if(!t||typeof t.getBoundingClientRect!="function"||t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `container` prop provided to the component is invalid.","It should be an HTML element instance."].join(`
283
- `))}return null}),direction:s.oneOf(["down","left","right","up"]),easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});const x6=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:l,multiline:a}=e,c={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",i==="small"&&`size${ie(i)}`,l&&"hiddenLabel",a&&"multiline"],input:["input"]},u=ye(c,Bj,t);return{...t,...u}},C6=ne(Zu,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Yu(e,t),!n.disableUnderline&&t.underline]}})(je(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Xn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Xn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:l})=>!l.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Xn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xn.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Xn.disabled}, .${Xn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Xn.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(_t()).map(([l])=>{var a;return{props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(a=(e.vars||e).palette[l])==null?void 0:a.main}`}}}}),{props:({ownerState:l})=>l.startAdornment,style:{paddingLeft:12}},{props:({ownerState:l})=>l.endAdornment,style:{paddingRight:12}},{props:({ownerState:l})=>l.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:l,size:a})=>l.multiline&&a==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel&&l.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),w6=ne(Qu,{name:"MuiFilledInput",slot:"Input",overridesResolver:Xu})(je(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),ed=b.forwardRef(function(t,n){var E,T,N,P;const r=ze({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:i={},componentsProps:l,fullWidth:a=!1,hiddenLabel:c,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:h={},type:f="text",...y}=r,g={...r,disableUnderline:o,fullWidth:a,inputComponent:u,multiline:d,type:f},v=x6(r),x={root:{ownerState:g},input:{ownerState:g}},S=(p!=null?p:l)?Cn(x,p!=null?p:l):x,w=(T=(E=h.root)!=null?E:i.Root)!=null?T:C6,k=(P=(N=h.input)!=null?N:i.Input)!=null?P:w6;return m.jsx(_s,{slots:{root:w,input:k},slotProps:S,fullWidth:a,inputComponent:u,multiline:d,ref:n,type:f,...y,classes:v})});process.env.NODE_ENV!=="production"&&(ed.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableUnderline:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,hiddenLabel:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:Fn,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});ed.muiName="Input";function S6(e){return Ne("MuiFormControl",e)}$e("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const k6=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${ie(n)}`,r&&"fullWidth"]};return ye(o,S6,t)},E6=ne("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ie(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),zs=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiFormControl"}),{children:o,className:i,color:l="primary",component:a="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:p=!1,hiddenLabel:h=!1,margin:f="none",required:y=!1,size:g="medium",variant:v="outlined",...x}=r,S={...r,color:l,component:a,disabled:c,error:u,fullWidth:p,hiddenLabel:h,margin:f,required:y,size:g,variant:v},w=k6(S),[k,E]=b.useState(()=>{let R=!1;return o&&b.Children.forEach(o,_=>{if(!Nl(_,["Input","Select"]))return;const V=Nl(_,["Select"])?_.props.input:_;V&&Fj(V.props)&&(R=!0)}),R}),[T,N]=b.useState(()=>{let R=!1;return o&&b.Children.forEach(o,_=>{Nl(_,["Input","Select"])&&(Zc(_.props,!0)||Zc(_.props.inputProps,!0))&&(R=!0)}),R}),[P,O]=b.useState(!1);c&&P&&O(!1);const j=d!==void 0&&!c?d:P;let $;const C=b.useRef(!1);process.env.NODE_ENV!=="production"&&($=()=>(C.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
284
- `)),C.current=!0,()=>{C.current=!1}));const L=b.useCallback(()=>{N(!0)},[]),F=b.useCallback(()=>{N(!1)},[]),M=b.useMemo(()=>({adornedStart:k,setAdornedStart:E,color:l,disabled:c,error:u,filled:T,focused:j,fullWidth:p,hiddenLabel:h,size:g,onBlur:()=>{O(!1)},onFocus:()=>{O(!0)},onEmpty:F,onFilled:L,registerEffect:$,required:y,variant:v}),[k,l,c,u,T,j,p,h,$,F,L,y,g,v]);return m.jsx(ja.Provider,{value:M,children:m.jsx(E6,{as:a,ownerState:S,className:ue(w.root,i),ref:n,...x,children:o})})});process.env.NODE_ENV!=="production"&&(zs.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,disabled:s.bool,error:s.bool,focused:s.bool,fullWidth:s.bool,hiddenLabel:s.bool,margin:s.oneOf(["dense","none","normal"]),required:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});function T6(e){return Ne("MuiFormControlLabel",e)}const Tl=$e("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),I6=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,l={root:["root",n&&"disabled",`labelPlacement${ie(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return ye(l,T6,t)},P6=ne("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Tl.label}`]:t.label},t.root,t[`labelPlacement${ie(n.labelPlacement)}`]]}})(je(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Tl.disabled}`]:{cursor:"default"},[`& .${Tl.label}`]:{[`&.${Tl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),O6=ne("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(je(({theme:e})=>({[`&.${Tl.error}`]:{color:(e.vars||e).palette.error.main}}))),oa=b.forwardRef(function(t,n){var M;const r=ze({props:t,name:"MuiFormControlLabel"}),{checked:o,className:i,componentsProps:l={},control:a,disabled:c,disableTypography:u,inputRef:d,label:p,labelPlacement:h="end",name:f,onChange:y,required:g,slots:v={},slotProps:x={},value:S,...w}=r,k=Vr(),E=(M=c!=null?c:a.props.disabled)!=null?M:k==null?void 0:k.disabled,T=g!=null?g:a.props.required,N={disabled:E,required:T};["checked","name","onChange","value","inputRef"].forEach(R=>{typeof a.props[R]=="undefined"&&typeof r[R]!="undefined"&&(N[R]=r[R])});const P=rs({props:r,muiFormControl:k,states:["error"]}),O={...r,disabled:E,labelPlacement:h,required:T,error:P.error},j=I6(O),$={slots:v,slotProps:{...l,...x}},[C,L]=He("typography",{elementType:ot,externalForwardedProps:$,ownerState:O});let F=p;return F!=null&&F.type!==ot&&!u&&(F=m.jsx(C,{component:"span",...L,className:ue(j.label,L==null?void 0:L.className),children:F})),m.jsxs(P6,{className:ue(j.root,i),ownerState:O,ref:n,...w,children:[b.cloneElement(a,N),T?m.jsxs("div",{children:[F,m.jsxs(O6,{ownerState:O,"aria-hidden":!0,className:j.asterisk,children:[" ","*"]})]}):F]})});process.env.NODE_ENV!=="production"&&(oa.propTypes={checked:s.bool,classes:s.object,className:s.string,componentsProps:s.shape({typography:s.object}),control:s.element.isRequired,disabled:s.bool,disableTypography:s.bool,inputRef:Fn,label:s.node,labelPlacement:s.oneOf(["bottom","end","start","top"]),name:s.string,onChange:s.func,required:s.bool,slotProps:s.shape({typography:s.oneOfType([s.func,s.object])}),slots:s.shape({typography:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any});function M6(e){return Ne("MuiFormGroup",e)}$e("MuiFormGroup",["root","row","error"]);const R6=e=>{const{classes:t,row:n,error:r}=e;return ye({root:["root",n&&"row",r&&"error"]},M6,t)},j6=ne("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),IC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiFormGroup"}),{className:o,row:i=!1,...l}=r,a=Vr(),c=rs({props:r,muiFormControl:a,states:["error"]}),u={...r,row:i,error:c.error},d=R6(u);return m.jsx(j6,{className:ue(d.root,o),ownerState:u,ref:n,...l})});process.env.NODE_ENV!=="production"&&(IC.propTypes={children:s.node,classes:s.object,className:s.string,row:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function L6(e){return Ne("MuiFormHelperText",e)}const py=$e("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var fy;const $6=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:l,focused:a,required:c}=e,u={root:["root",o&&"disabled",i&&"error",r&&`size${ie(r)}`,n&&"contained",a&&"focused",l&&"filled",c&&"required"]};return ye(u,L6,t)},N6=ne("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ie(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(je(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${py.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${py.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),PC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:l="p",disabled:a,error:c,filled:u,focused:d,margin:p,required:h,variant:f,...y}=r,g=Vr(),v=rs({props:r,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),x={...r,component:l,contained:v.variant==="filled"||v.variant==="outlined",variant:v.variant,size:v.size,disabled:v.disabled,error:v.error,filled:v.filled,focused:v.focused,required:v.required};delete x.ownerState;const S=$6(x);return m.jsx(N6,{as:l,className:ue(S.root,i),ref:n,...y,ownerState:x,children:o===" "?fy||(fy=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});process.env.NODE_ENV!=="production"&&(PC.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disabled:s.bool,error:s.bool,filled:s.bool,focused:s.bool,margin:s.oneOf(["dense"]),required:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["filled","outlined","standard"]),s.string])});function F6(e){return Ne("MuiFormLabel",e)}const _l=$e("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),A6=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:l,required:a}=e,c={root:["root",`color${ie(n)}`,o&&"disabled",i&&"error",l&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",i&&"error"]};return ye(c,F6,t)},D6=ne("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(je(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t},style:{[`&.${_l.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${_l.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${_l.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),_6=ne("span",{name:"MuiFormLabel",slot:"Asterisk"})(je(({theme:e})=>({[`&.${_l.error}`]:{color:(e.vars||e).palette.error.main}}))),Gm=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiFormLabel"}),{children:o,className:i,color:l,component:a="label",disabled:c,error:u,filled:d,focused:p,required:h,...f}=r,y=Vr(),g=rs({props:r,muiFormControl:y,states:["color","required","focused","disabled","error","filled"]}),v={...r,color:g.color||"primary",component:a,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required},x=A6(v);return m.jsxs(D6,{as:a,ownerState:v,className:ue(x.root,i),ref:n,...f,children:[o,g.required&&m.jsxs(_6,{ownerState:v,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Gm.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["error","info","primary","secondary","success","warning"]),s.string]),component:s.elementType,disabled:s.bool,error:s.bool,filled:s.bool,focused:s.bool,required:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function zl(e){return`scale(${e}, ${e**2})`}const z6={entering:{opacity:1,transform:zl(1)},entered:{opacity:1,transform:"none"},exiting:{opacity:0,transform:zl(.75)},exited:{opacity:0,transform:zl(.75)}},B6={opacity:0,transform:zl(.75),visibility:"hidden"},Oi=b.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:l,in:a,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:h,onExiting:f,style:y,timeout:g="auto",...v}=t,x=Jn(),S=b.useRef(),w=Xt(),k=b.useRef(null),E=It(k,ts(i),n),T=xn(k,d),N=xn(k,(L,F)=>{Mm(L);const{duration:M,delay:R,easing:_}=wi({style:y,timeout:g,easing:l},{mode:"enter"});let V;g==="auto"?(V=w.transitions.getAutoHeightDuration(L.clientHeight),S.current=V):V=M,L.style.transition=[w.transitions.create("opacity",{duration:V,delay:R}),w.transitions.create("transform",{duration:V*.666,delay:R,easing:_})].join(","),c&&c(L,F)}),P=xn(k,u),O=xn(k,f),j=xn(k,L=>{const{duration:F,delay:M,easing:R}=wi({style:y,timeout:g,easing:l},{mode:"exit"});let _;g==="auto"?(_=w.transitions.getAutoHeightDuration(L.clientHeight),S.current=_):_=F,L.style.transition=[w.transitions.create("opacity",{duration:_,delay:M}),w.transitions.create("transform",{duration:_*.666,delay:M||_*.333,easing:R})].join(","),L.style.opacity=0,L.style.transform=zl(.75),p&&p(L)}),$=xn(k,L=>{L.style.transition="",h&&h(L)}),C=L=>{g==="auto"&&x.start(S.current||0,L),r&&r(k.current,L)};return m.jsx(zr,{appear:o,in:a,nodeRef:k,onEnter:N,onEntered:P,onEntering:T,onExit:j,onExited:$,onExiting:O,addEndListener:C,timeout:g==="auto"?null:g,...v,children:(L,{ownerState:F,...M})=>{const R=Hx(L,a,z6,B6,y,i.props.style);return b.cloneElement(i,{style:R,ref:E,...M})}})});process.env.NODE_ENV!=="production"&&(Oi.propTypes={addEndListener:s.func,appear:s.bool,children:os.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});Oi&&(Oi.muiSupportAuto=!0);const V6=e=>{const{classes:t,disableUnderline:n}=e,o=ye({root:["root",!n&&"underline"],input:["input"]},_j,t);return{...t,...o}},H6=ne(Zu,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Yu(e,t),!n.disableUnderline&&t.underline]}})(je(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Do.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Do.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Do.disabled}, .${Do.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Do.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(_t()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),G6=ne(Qu,{name:"MuiInput",slot:"Input",overridesResolver:Xu})({}),td=b.forwardRef(function(t,n){var k,E,T,N;const r=ze({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:i={},componentsProps:l,fullWidth:a=!1,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:p={},type:h="text",...f}=r,y=V6(r),v={root:{ownerState:{disableUnderline:o}}},x=(d!=null?d:l)?Cn(d!=null?d:l,v):v,S=(E=(k=p.root)!=null?k:i.Root)!=null?E:H6,w=(N=(T=p.input)!=null?T:i.Input)!=null?N:G6;return m.jsx(_s,{slots:{root:S,input:w},slotProps:x,fullWidth:a,inputComponent:c,multiline:u,ref:n,type:h,...f,classes:y})});process.env.NODE_ENV!=="production"&&(td.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableUnderline:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:Fn,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});td.muiName="Input";function W6(e){return Ne("MuiInputAdornment",e)}const my=$e("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var hy;const U6=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ie(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},q6=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:l}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${ie(o)}`,l,r&&"hiddenLabel",i&&`size${ie(i)}`]};return ye(a,W6,t)},K6=ne("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:U6})(je(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${my.positionStart}&:not(.${my.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),eu=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:l="div",disablePointerEvents:a=!1,disableTypography:c=!1,position:u,variant:d,...p}=r,h=Vr()||{};let f=d;d&&h.variant&&process.env.NODE_ENV!=="production"&&d===h.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),h&&!f&&(f=h.variant);const y={...r,hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:a,position:u,variant:f},g=q6(y);return m.jsx(ja.Provider,{value:null,children:m.jsx(K6,{as:l,ownerState:y,className:ue(g.root,i),ref:n,...p,children:typeof o=="string"&&!c?m.jsx(ot,{color:"textSecondary",children:o}):m.jsxs(b.Fragment,{children:[u==="start"?hy||(hy=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});process.env.NODE_ENV!=="production"&&(eu.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disablePointerEvents:s.bool,disableTypography:s.bool,position:s.oneOf(["end","start"]).isRequired,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});function Y6(e){return Ne("MuiInputLabel",e)}$e("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const X6=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:l,required:a}=e,c={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="medium"&&`size${ie(r)}`,l],asterisk:[a&&"asterisk"]},u=ye(c,Y6,t);return{...t,...u}},Z6=ne(Gm,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${_l.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(je(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Wm=b.forwardRef(function(t,n){const r=ze({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:i,shrink:l,variant:a,className:c,...u}=r,d=Vr();let p=l;typeof p=="undefined"&&d&&(p=d.filled||d.focused||d.adornedStart);const h=rs({props:r,muiFormControl:d,states:["size","variant","required","focused"]}),f={...r,disableAnimation:o,formControl:d,shrink:p,size:h.size,variant:h.variant,required:h.required,focused:h.focused},y=X6(f);return m.jsx(Z6,{"data-shrink":p,ref:n,className:ue(y.root,c),...u,ownerState:f,classes:y})});process.env.NODE_ENV!=="production"&&(Wm.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["error","info","primary","secondary","success","warning"]),s.string]),disableAnimation:s.bool,disabled:s.bool,error:s.bool,focused:s.bool,margin:s.oneOf(["dense"]),required:s.bool,shrink:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});function Q6(e){return Ne("MuiLinearProgress",e)}$e("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const cf=4,uf=_r`
285
- 0% {
286
- left: -35%;
287
- right: 100%;
288
- }
289
-
290
- 60% {
291
- left: 100%;
292
- right: -90%;
293
- }
294
-
295
- 100% {
296
- left: 100%;
297
- right: -90%;
298
- }
299
- `,J6=typeof uf!="string"?Jo`
300
- animation: ${uf} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
301
- `:null,df=_r`
302
- 0% {
303
- left: -200%;
304
- right: 100%;
305
- }
306
-
307
- 60% {
308
- left: 107%;
309
- right: -8%;
310
- }
311
-
312
- 100% {
313
- left: 107%;
314
- right: -8%;
315
- }
316
- `,eL=typeof df!="string"?Jo`
317
- animation: ${df} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
318
- `:null,pf=_r`
319
- 0% {
320
- opacity: 1;
321
- background-position: 0 -23px;
322
- }
323
-
324
- 60% {
325
- opacity: 0;
326
- background-position: 0 -23px;
327
- }
328
-
329
- 100% {
330
- opacity: 1;
331
- background-position: -200px -23px;
332
- }
333
- `,tL=typeof pf!="string"?Jo`
334
- animation: ${pf} 3s infinite linear;
335
- `:null,nL=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${ie(r)}`,n],dashed:["dashed",`dashedColor${ie(r)}`],bar1:["bar","bar1",`barColor${ie(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${ie(r)}`,n==="buffer"&&`color${ie(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return ye(o,Q6,t)},Um=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),rL=ne("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ie(n.color)}`],t[n.variant]]}})(je(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t},style:{backgroundColor:Um(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),oL=ne("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${ie(n.color)}`]]}})(je(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(_t()).map(([t])=>{const n=Um(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),tL||{animation:`${pf} 3s infinite linear`}),sL=ne("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${ie(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(je(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${cf}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${cf}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:J6||{animation:`${uf} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),iL=ne("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${ie(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(je(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:Um(e,t),transition:`transform .${cf}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:eL||{animation:`${df} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),qm=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:l,valueBuffer:a,variant:c="indeterminate",...u}=r,d={...r,color:i,variant:c},p=nL(d),h=Nn(),f={},y={bar1:{},bar2:{}};if(c==="determinate"||c==="buffer")if(l!==void 0){f["aria-valuenow"]=Math.round(l),f["aria-valuemin"]=0,f["aria-valuemax"]=100;let g=l-100;h&&(g=-g),y.bar1.transform=`translateX(${g}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");if(c==="buffer")if(a!==void 0){let g=(a||0)-100;h&&(g=-g),y.bar2.transform=`translateX(${g}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return m.jsxs(rL,{className:ue(p.root,o),ownerState:d,role:"progressbar",...f,ref:n,...u,children:[c==="buffer"?m.jsx(oL,{className:p.dashed,ownerState:d}):null,m.jsx(sL,{className:p.bar1,ownerState:d,style:y.bar1}),c==="determinate"?null:m.jsx(iL,{className:p.bar2,ownerState:d,style:y.bar2})]})});process.env.NODE_ENV!=="production"&&(qm.propTypes={classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.number,valueBuffer:s.number,variant:s.oneOf(["buffer","determinate","indeterminate","query"])});function lL(e){return Ne("MuiLink",e)}const aL=$e("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),cL=({theme:e,ownerState:t})=>{const n=t.color;if("colorSpace"in e&&e.colorSpace){const i=Yr(e,`palette.${n}.main`)||Yr(e,`palette.${n}`)||t.color;return e.alpha(i,.4)}const r=Yr(e,`palette.${n}.main`,!1)||Yr(e,`palette.${n}`,!1)||t.color,o=Yr(e,`palette.${n}.mainChannel`)||Yr(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:fr(r,.4)},gy={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},uL=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${ie(o)}`,n==="button"&&"button",r&&"focusVisible"]};return ye(i,lL,t)},dL=ne(ot,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ie(n.underline)}`],n.component==="button"&&t.button]}})(je(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color==="inherit",style:e.colorSpace?{textDecorationColor:e.alpha("currentColor",.4)}:null},...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${aL.focusVisible}`]:{outline:"auto"}}}]}))),OC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiLink"}),o=Xt(),{className:i,color:l="primary",component:a="a",onBlur:c,onFocus:u,TypographyClasses:d,underline:p="always",variant:h="inherit",sx:f,...y}=r,[g,v]=b.useState(!1),x=E=>{ki(E.target)||v(!1),c&&c(E)},S=E=>{ki(E.target)&&v(!0),u&&u(E)},w={...r,color:l,component:a,focusVisible:g,underline:p,variant:h},k=uL(w);return m.jsx(dL,{color:l,className:ue(k.root,i),classes:d,component:a,onBlur:x,onFocus:S,ref:n,ownerState:w,variant:h,...y,sx:[...gy[l]===void 0?[{color:l}]:[],...Array.isArray(f)?f:[f]],style:{...y.style,...p==="always"&&l!=="inherit"&&!gy[l]&&{"--Link-underlineColor":cL({theme:o,ownerState:w})}}})});process.env.NODE_ENV!=="production"&&(OC.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),s.string]),component:Ia,onBlur:s.func,onFocus:s.func,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TypographyClasses:s.object,underline:s.oneOf(["always","hover","none"]),variant:s.oneOfType([s.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),s.string])});const oo=b.createContext({});process.env.NODE_ENV!=="production"&&(oo.displayName="ListContext");function pL(e){return Ne("MuiList",e)}$e("MuiList",["root","padding","dense","subheader"]);const fL=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ye({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},pL,t)},mL=ne("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),tu=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiList"}),{children:o,className:i,component:l="ul",dense:a=!1,disablePadding:c=!1,subheader:u,...d}=r,p=b.useMemo(()=>({dense:a}),[a]),h={...r,component:l,dense:a,disablePadding:c},f=fL(h);return m.jsx(oo.Provider,{value:p,children:m.jsxs(mL,{as:l,className:ue(f.root,i),ref:n,ownerState:h,...d,children:[u,o]})})});process.env.NODE_ENV!=="production"&&(tu.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function hL(e){return Ne("MuiListItem",e)}$e("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const gL=$e("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function bL(e){return Ne("MuiListItemSecondaryAction",e)}$e("MuiListItemSecondaryAction",["root","disableGutters"]);const yL=e=>{const{disableGutters:t,classes:n}=e;return ye({root:["root",t&&"disableGutters"]},bL,n)},vL=ne("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Km=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...i}=r,l=b.useContext(oo),a={...r,disableGutters:l.disableGutters},c=yL(a);return m.jsx(vL,{className:ue(c.root,o),ownerState:a,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Km.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});Km.muiName="ListItemSecondaryAction";const xL=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},CL=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:l,hasSecondaryAction:a}=e;return ye({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",l&&"divider",t==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},hL,n)},wL=ne("div",{name:"MuiListItem",slot:"Root",overridesResolver:xL})(je(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${gL.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),SL=ne("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),MC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiListItem"}),{alignItems:o="center",children:i,className:l,component:a,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p,...h}={},dense:f=!1,disableGutters:y=!1,disablePadding:g=!1,divider:v=!1,secondaryAction:x,slotProps:S={},slots:w={},...k}=r,E=b.useContext(oo),T=b.useMemo(()=>({dense:f||E.dense||!1,alignItems:o,disableGutters:y}),[o,E.dense,f,y]),N=b.useRef(null),P=b.Children.toArray(i),O=P.length&&Nl(P[P.length-1],["ListItemSecondaryAction"]),j={...r,alignItems:o,dense:T.dense,disableGutters:y,disablePadding:g,divider:v,hasSecondaryAction:O},$=CL(j),C=It(N,n),L={slots:w,slotProps:S},[F,M]=He("secondaryAction",{elementType:Km,externalForwardedProps:L,ownerState:j,className:$.secondaryAction}),R=w.root||c.Root||wL,_=S.root||u.root||{},V={className:ue($.root,_.className,l),...k};let W=a||"li";return O?(W=!V.component&&!a?"div":W,d==="li"&&(W==="li"?W="div":V.component==="li"&&(V.component="div")),m.jsx(oo.Provider,{value:T,children:m.jsxs(SL,{as:d,className:ue($.container,p),ref:C,ownerState:j,...h,children:[m.jsx(R,{..._,...!Si(R)&&{as:W,ownerState:{...j,..._.ownerState}},...V,children:P}),P.pop()]})})):m.jsx(oo.Provider,{value:T,children:m.jsxs(R,{..._,as:W,ref:C,...!Si(R)&&{ownerState:{...j,..._.ownerState}},...V,children:[P,x&&m.jsx(F,{...M,children:x})]})})});process.env.NODE_ENV!=="production"&&(MC.propTypes={alignItems:s.oneOf(["center","flex-start"]),children:or(s.node,e=>{const t=b.Children.toArray(e.children);let n=-1;for(let r=t.length-1;r>=0;r-=1){const o=t[r];if(Nl(o,["ListItemSecondaryAction"])){n=r;break}}return n!==-1&&n!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),ContainerComponent:Ia,ContainerProps:s.object,dense:s.bool,disableGutters:s.bool,disablePadding:s.bool,divider:s.bool,secondaryAction:s.node,slotProps:s.shape({root:s.object,secondaryAction:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType,secondaryAction:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function kL(e){return Ne("MuiListItemIcon",e)}const by=$e("MuiListItemIcon",["root","alignItemsFlexStart"]),EL=e=>{const{alignItems:t,classes:n}=e;return ye({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},kL,n)},TL=ne("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(je(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),ks=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiListItemIcon"}),{className:o,...i}=r,l=b.useContext(oo),a={...r,alignItems:l.alignItems},c=EL(a);return m.jsx(TL,{className:ue(c.root,o),ownerState:a,ref:n,...i})});process.env.NODE_ENV!=="production"&&(ks.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function IL(e){return Ne("MuiListItemText",e)}const di=$e("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),PL=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return ye({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},IL,t)},OL=ne("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${di.primary}`]:t.primary},{[`& .${di.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${$b.root}:where(& .${di.primary})`]:{display:"block"},[`.${$b.root}:where(& .${di.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Es=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:l=!1,inset:a=!1,primary:c,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:p,slots:h={},slotProps:f={},...y}=r,{dense:g}=b.useContext(oo);let v=c!=null?c:o,x=d;const S={...r,disableTypography:l,inset:a,primary:!!v,secondary:!!x,dense:g},w=PL(S),k={slots:h,slotProps:{primary:u,secondary:p,...f}},[E,T]=He("root",{className:ue(w.root,i),elementType:OL,externalForwardedProps:{...k,...y},ownerState:S,ref:n}),[N,P]=He("primary",{className:w.primary,elementType:ot,externalForwardedProps:k,ownerState:S}),[O,j]=He("secondary",{className:w.secondary,elementType:ot,externalForwardedProps:k,ownerState:S});return v!=null&&v.type!==ot&&!l&&(v=m.jsx(N,{variant:g?"body2":"body1",component:P!=null&&P.variant?void 0:"span",...P,children:v})),x!=null&&x.type!==ot&&!l&&(x=m.jsx(O,{variant:"body2",color:"textSecondary",...j,children:x})),m.jsxs(E,{...T,children:[v,x]})});process.env.NODE_ENV!=="production"&&(Es.propTypes={children:s.node,classes:s.object,className:s.string,disableTypography:s.bool,inset:s.bool,primary:s.node,primaryTypographyProps:s.object,secondary:s.node,secondaryTypographyProps:s.object,slotProps:s.shape({primary:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),secondary:s.oneOfType([s.func,s.object])}),slots:s.shape({primary:s.elementType,root:s.elementType,secondary:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function ep(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function yy(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function RC(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function sl(e,t,n,r,o,i){let l=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(l)return!1;l=!0}const c=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!RC(a,i)||c)a=o(e,a,n);else return a.focus(),!0}return!1}const La=b.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:l,className:a,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:p="selectedMenu",...h}=t,f=b.useRef(null),y=b.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Rt(()=>{o&&f.current.focus()},[o]),b.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(w,{direction:k})=>{const E=!f.current.style.width;if(w.clientHeight<f.current.clientHeight&&E){const T=`${SC(vr(w))}px`;f.current.style[k==="rtl"?"paddingLeft":"paddingRight"]=T,f.current.style.width=`calc(100% + ${T})`}return f.current}}),[]);const g=w=>{const k=f.current,E=w.key;if(w.ctrlKey||w.metaKey||w.altKey){d&&d(w);return}const N=ui(Yt(k));if(E==="ArrowDown")w.preventDefault(),sl(k,N,u,c,ep);else if(E==="ArrowUp")w.preventDefault(),sl(k,N,u,c,yy);else if(E==="Home")w.preventDefault(),sl(k,null,u,c,ep);else if(E==="End")w.preventDefault(),sl(k,null,u,c,yy);else if(E.length===1){const P=y.current,O=E.toLowerCase(),j=performance.now();P.keys.length>0&&(j-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&O!==P.keys[0]&&(P.repeating=!1)),P.lastTime=j,P.keys.push(O);const $=N&&!P.repeating&&RC(N,P);P.previousKeyMatched&&($||sl(k,N,!1,c,ep,P))?w.preventDefault():P.previousKeyMatched=!1}d&&d(w)},v=It(f,n);let x=-1;b.Children.forEach(l,(w,k)=>{if(!b.isValidElement(w)){x===k&&(x+=1,x>=l.length&&(x=-1));return}process.env.NODE_ENV!=="production"&&Wu.isFragment(w)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
336
- `)),w.props.disabled||(p==="selectedMenu"&&w.props.selected||x===-1)&&(x=k),x===k&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(x+=1,x>=l.length&&(x=-1))});const S=b.Children.map(l,(w,k)=>{if(k===x){const E={};return i&&(E.autoFocus=!0),w.props.tabIndex===void 0&&p==="selectedMenu"&&(E.tabIndex=0),b.cloneElement(w,E)}return w});return m.jsx(tu,{role:"menu",ref:v,className:a,onKeyDown:g,tabIndex:o?0:-1,...h,children:S})});process.env.NODE_ENV!=="production"&&(La.propTypes={autoFocus:s.bool,autoFocusItem:s.bool,children:s.node,className:s.string,disabledItemsFocusable:s.bool,disableListWrap:s.bool,onKeyDown:s.func,variant:s.oneOf(["menu","selectedMenu"])});function ML(e){return Ne("MuiPopover",e)}$e("MuiPopover",["root","paper"]);function vy(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function xy(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Cy(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Il(e){return typeof e=="function"?e():e}const RL=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"]},ML,t)},jL=ne(kC,{name:"MuiPopover",slot:"Root"})({}),jC=ne(Br,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),LC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:c="anchorEl",children:u,className:d,container:p,elevation:h=8,marginThreshold:f=16,open:y,PaperProps:g={},slots:v={},slotProps:x={},transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w,transitionDuration:k="auto",TransitionProps:E={},disableScrollLock:T=!1,...N}=r,P=b.useRef(),O={...r,anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:f,transformOrigin:S,TransitionComponent:w,transitionDuration:k,TransitionProps:E},j=RL(O),$=b.useCallback(()=>{if(c==="anchorPosition")return process.env.NODE_ENV!=="production"&&(a||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),a;const Q=Il(i),re=Q&&Q.nodeType===1?Q:Yt(P.current).body,J=re.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const oe=re.getBoundingClientRect();Ra()&&oe.top===0&&oe.left===0&&oe.right===0&&oe.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
337
- `))}return{top:J.top+vy(J,l.vertical),left:J.left+xy(J,l.horizontal)}},[i,l.horizontal,l.vertical,a,c]),C=b.useCallback(Q=>({vertical:vy(Q,S.vertical),horizontal:xy(Q,S.horizontal)}),[S.horizontal,S.vertical]),L=b.useCallback(Q=>{const re={width:Q.offsetWidth,height:Q.offsetHeight},J=C(re);if(c==="none")return{top:null,left:null,transformOrigin:Cy(J)};const oe=$();let te=oe.top-J.vertical,fe=oe.left-J.horizontal;const ve=te+re.height,Ce=fe+re.width,xe=vr(Il(i)),Se=xe.innerHeight-f,Oe=xe.innerWidth-f;if(f!==null&&te<f){const Ae=te-f;te-=Ae,J.vertical+=Ae}else if(f!==null&&ve>Se){const Ae=ve-Se;te-=Ae,J.vertical+=Ae}if(process.env.NODE_ENV!=="production"&&re.height>Se&&re.height&&Se&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${re.height-Se}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
338
- `)),f!==null&&fe<f){const Ae=fe-f;fe-=Ae,J.horizontal+=Ae}else if(Ce>Oe){const Ae=Ce-Oe;fe-=Ae,J.horizontal+=Ae}return{top:`${Math.round(te)}px`,left:`${Math.round(fe)}px`,transformOrigin:Cy(J)}},[i,c,$,C,f]),[F,M]=b.useState(y),R=b.useCallback(()=>{const Q=P.current;if(!Q)return;const re=L(Q);re.top!==null&&Q.style.setProperty("top",re.top),re.left!==null&&(Q.style.left=re.left),Q.style.transformOrigin=re.transformOrigin,M(!0)},[L]);b.useEffect(()=>(T&&window.addEventListener("scroll",R),()=>window.removeEventListener("scroll",R)),[i,T,R]);const _=()=>{R()},V=()=>{M(!1)};b.useEffect(()=>{y&&R()}),b.useImperativeHandle(o,()=>y?{updatePosition:()=>{R()}}:null,[y,R]),b.useEffect(()=>{if(!y)return;const Q=Tm(()=>{R()}),re=vr(Il(i));return re.addEventListener("resize",Q),()=>{Q.clear(),re.removeEventListener("resize",Q)}},[i,y,R]);let W=k;const I={slots:{transition:w,...v},slotProps:{transition:E,paper:g,...x}},[D,G]=He("transition",{elementType:Oi,externalForwardedProps:I,ownerState:O,getSlotProps:Q=>({...Q,onEntering:(re,J)=>{var oe;(oe=Q.onEntering)==null||oe.call(Q,re,J),_()},onExited:re=>{var J;(J=Q.onExited)==null||J.call(Q,re),V()}}),additionalProps:{appear:!0,in:y}});k==="auto"&&!D.muiSupportAuto&&(W=void 0);const A=p||(i?Yt(Il(i)).body:void 0),[K,{slots:Y,slotProps:U,...q}]=He("root",{ref:n,elementType:jL,externalForwardedProps:{...I,...N},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:v.backdrop},slotProps:{backdrop:zx(typeof x.backdrop=="function"?x.backdrop(O):x.backdrop,{invisible:!0})},container:A,open:y},ownerState:O,className:ue(j.root,d)}),[Z,X]=He("paper",{ref:P,className:j.paper,elementType:jC,externalForwardedProps:I,shouldForwardComponentProp:!0,additionalProps:{elevation:h,style:F?void 0:{opacity:0}},ownerState:O});return m.jsx(K,{...q,...!Si(K)&&{slots:Y,slotProps:U,disableScrollLock:T},children:m.jsx(D,{...G,timeout:W,children:m.jsx(Z,{...X,children:u})})})});process.env.NODE_ENV!=="production"&&(LC.propTypes={action:Fn,anchorEl:or(s.oneOfType([xr,s.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Il(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="production"&&Ra()&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
339
- `))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
340
- `))}return null}),anchorOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),anchorPosition:s.shape({left:s.number.isRequired,top:s.number.isRequired}),anchorReference:s.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:s.elementType,BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,container:s.oneOfType([xr,s.func]),disableScrollLock:s.bool,elevation:Wo,marginThreshold:s.number,onClose:s.func,open:s.bool.isRequired,PaperProps:s.shape({component:Ia}),slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,paper:s.elementType,root:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transformOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});function LL(e){return Ne("MuiMenu",e)}$e("MuiMenu",["root","paper","list"]);const $L={vertical:"top",horizontal:"right"},NL={vertical:"top",horizontal:"left"},FL=e=>{const{classes:t}=e;return ye({root:["root"],paper:["paper"],list:["list"]},LL,t)},AL=ne(LC,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),DL=ne(jC,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),_L=ne(La,{name:"MuiMenu",slot:"List"})({outline:0}),Ym=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:l,disableAutoFocusItem:a=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:p={},PopoverClasses:h,transitionDuration:f="auto",TransitionProps:{onEntering:y,...g}={},variant:v="selectedMenu",slots:x={},slotProps:S={},...w}=r,k=Nn(),E={...r,autoFocus:o,disableAutoFocusItem:a,MenuListProps:c,onEntering:y,PaperProps:p,transitionDuration:f,TransitionProps:g,variant:v},T=FL(E),N=o&&!a&&d,P=b.useRef(null),O=(W,I)=>{P.current&&P.current.adjustStyleForScrollbar(W,{direction:k?"rtl":"ltr"}),y&&y(W,I)},j=W=>{W.key==="Tab"&&(W.preventDefault(),u&&u(W,"tabKeyDown"))};let $=-1;b.Children.map(i,(W,I)=>{b.isValidElement(W)&&(process.env.NODE_ENV!=="production"&&Wu.isFragment(W)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
341
- `)),W.props.disabled||(v==="selectedMenu"&&W.props.selected||$===-1)&&($=I))});const C={slots:x,slotProps:{list:c,transition:g,paper:p,...S}},L=cC({elementType:x.root,externalSlotProps:S.root,ownerState:E,className:[T.root,l]}),[F,M]=He("paper",{className:T.paper,elementType:DL,externalForwardedProps:C,shouldForwardComponentProp:!0,ownerState:E}),[R,_]=He("list",{className:ue(T.list,c.className),elementType:_L,shouldForwardComponentProp:!0,externalForwardedProps:C,getSlotProps:W=>({...W,onKeyDown:I=>{var D;j(I),(D=W.onKeyDown)==null||D.call(W,I)}}),ownerState:E}),V=typeof C.slotProps.transition=="function"?C.slotProps.transition(E):C.slotProps.transition;return m.jsx(AL,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?$L:NL,slots:{root:x.root,paper:F,backdrop:x.backdrop,...x.transition&&{transition:x.transition}},slotProps:{root:L,paper:M,backdrop:typeof S.backdrop=="function"?S.backdrop(E):S.backdrop,transition:{...V,onEntering:(...W)=>{var I;O(...W),(I=V==null?void 0:V.onEntering)==null||I.call(V,...W)}}},open:d,ref:n,transitionDuration:f,ownerState:E,...w,classes:h,children:m.jsx(R,{actions:P,autoFocus:o&&($===-1||a),autoFocusItem:N,variant:v,..._,children:i})})});process.env.NODE_ENV!=="production"&&(Ym.propTypes={anchorEl:s.oneOfType([xr,s.func]),autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,disableAutoFocusItem:s.bool,MenuListProps:s.object,onClose:s.func,open:s.bool.isRequired,PaperProps:s.object,PopoverClasses:s.object,slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),list:s.oneOfType([s.func,s.object]),paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,list:s.elementType,paper:s.elementType,root:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object,variant:s.oneOf(["menu","selectedMenu"])});function zL(e){return Ne("MuiMenuItem",e)}const il=$e("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);function BL(e){return Ne("MuiNativeSelect",e)}const Xm=$e("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),VL=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:l}=e,a={select:["select",n,r&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${ie(n)}`,i&&"iconOpen",r&&"disabled"]};return ye(a,BL,t)},$C=ne("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Xm.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),HL=ne($C,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:On,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Xm.multiple}`]:t.multiple}]}})({}),NC=ne("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Xm.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),GL=ne(NC,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ie(n.variant)}`],n.open&&t.iconOpen]}})({}),FC=b.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:l,inputRef:a,variant:c="standard",...u}=t,d={...t,disabled:o,variant:c,error:i},p=VL(d);return m.jsxs(b.Fragment,{children:[m.jsx(HL,{ownerState:d,className:ue(p.select,r),disabled:o,ref:a||n,...u}),t.multiple?null:m.jsx(GL,{as:l,ownerState:d,className:p.icon})]})});process.env.NODE_ENV!=="production"&&(FC.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:Fn,multiple:s.bool,name:s.string,onChange:s.func,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});function AC(e){return Ne("MuiSelect",e)}const ll=$e("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);function WL(e){return e?e.type==="mousedown"||e.type==="pointerdown"||e.type==="touchstart"?"pointer":e.type==="keydown"||e.type==="click"&&e.detail===0?"keyboard":null:null}function UL(e){return e==null||typeof e=="string"&&!e.trim()}function wy(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const Zm=b.createContext(null);process.env.NODE_ENV!=="production"&&(Zm.displayName="SelectFocusSourceContext");function qL(){return b.useContext(Zm)}const KL=Zm.Provider;var Sy;const YL=ne($C,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ll.select}`]:t.select},{[`&.${ll.select}`]:t[n.variant]},{[`&.${ll.error}`]:t.error},{[`&.${ll.multiple}`]:t.multiple}]}})({[`&.${ll.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),XL=ne(NC,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ie(n.variant)}`],n.open&&t.iconOpen]}})({}),ZL=ne("input",{shouldForwardProp:e=>_x(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"}),QL=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:l}=e,a={select:["select",n,r&&"disabled",o&&"multiple",l&&"error"],icon:["icon",`icon${ie(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ye(a,AC,t)},DC=b.forwardRef(function(t,n){var it,ft,mn,qn;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:l,children:a,className:c,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:h,error:f=!1,IconComponent:y,inputRef:g,labelId:v,MenuProps:x={},multiple:S,name:w,onBlur:k,onChange:E,onClose:T,onFocus:N,onKeyDown:P,onMouseDown:O,onOpen:j,open:$,readOnly:C,renderValue:L,required:F,SelectDisplayProps:M={},tabIndex:R,type:_,value:V,variant:W="standard",...I}=t,[D,G]=Go({controlled:V,default:d,name:"Select"}),[A,K]=Go({controlled:$,default:u,name:"Select"}),Y=b.useRef(null),U=b.useRef(null),[q,Z]=b.useState(null),{current:X}=b.useRef($!=null),[Q,re]=b.useState(),[J,oe]=b.useState(null),te=It(n,g),fe=b.useCallback(Re=>{U.current=Re,Re&&Z(Re)},[]),ve=q==null?void 0:q.parentNode;b.useImperativeHandle(te,()=>({focus:()=>{U.current.focus()},node:Y.current,value:D}),[D]);const Ce=q!==null&&A;b.useEffect(()=>{if(!Ce||!ve||l||typeof ResizeObserver=="undefined")return;const Re=new ResizeObserver(()=>{re(ve.clientWidth)});return Re.observe(ve),()=>{Re.disconnect()}},[Ce,ve,l]),b.useEffect(()=>{u&&A&&q&&!X&&(re(l?null:ve.clientWidth),U.current.focus())},[q,l]),b.useEffect(()=>{i&&U.current.focus()},[i]),b.useEffect(()=>{if(!v)return;const Re=Yt(U.current).getElementById(v);if(Re){const We=()=>{getSelection().isCollapsed&&U.current.focus()};return Re.addEventListener("click",We),()=>{Re.removeEventListener("click",We)}}},[v]);const xe=(Re,We)=>{Re?(oe(WL(We)),j&&j(We)):(oe(null),T&&T(We)),X||(re(l?null:ve.clientWidth),K(Re))},Se=Re=>{O==null||O(Re),Re.button===0&&(Re.preventDefault(),U.current.focus(),xe(!0,Re))},Oe=Re=>{xe(!1,Re)},Ae=b.Children.toArray(a),se=Re=>{const We=Ae.find(pt=>pt.props.value===Re.target.value);We!==void 0&&(G(We.props.value),E&&E(Re,We))},Ge=Re=>We=>{let pt;if(We.currentTarget.hasAttribute("tabindex")){if(S){pt=Array.isArray(D)?D.slice():[];const hn=D.indexOf(Re.props.value);hn===-1?pt.push(Re.props.value):pt.splice(hn,1)}else pt=Re.props.value;if(Re.props.onClick&&Re.props.onClick(We),D!==pt&&(G(pt),E)){const hn=We.nativeEvent||We,rn=new hn.constructor(hn.type,hn);Object.defineProperty(rn,"target",{writable:!0,value:{value:pt,name:w}}),E(rn,Re)}S||xe(!1,We)}},Ie=Re=>{C||([" ","ArrowUp","ArrowDown","Enter"].includes(Re.key)&&(Re.preventDefault(),xe(!0,Re)),P==null||P(Re))},Ye=Re=>{!Ce&&k&&(Object.defineProperty(Re,"target",{writable:!0,value:{value:D,name:w}}),k(Re))};delete I["aria-invalid"];let ee,de;const he=[];let ae=!1,ge=!1;(Zc({value:D})||h)&&(L?ee=L(D):ae=!0);const be=Ae.map(Re=>{if(!b.isValidElement(Re))return null;process.env.NODE_ENV!=="production"&&Wu.isFragment(Re)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
342
- `));let We;if(S){if(!Array.isArray(D))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":So(2));We=D.some(pt=>wy(pt,Re.props.value)),We&&ae&&he.push(Re.props.children)}else We=wy(D,Re.props.value),We&&ae&&(de=Re.props.children);return We&&(ge=!0),b.cloneElement(Re,{"aria-selected":We?"true":"false",onClick:Ge(Re),onKeyUp:pt=>{pt.key===" "&&pt.preventDefault(),Re.props.onKeyUp&&Re.props.onKeyUp(pt)},role:"option",selected:We,value:void 0,"data-value":Re.props.value})});process.env.NODE_ENV!=="production"&&b.useEffect(()=>{if(!ge&&!S&&D!==""){const Re=Ae.map(We=>We.props.value);console.warn([`MUI: You have provided an out-of-range value \`${D}\` for the select ${w?`(name="${w}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${Re.filter(We=>We!=null).map(We=>`\`${We}\``).join(", ")||'""'}.`].join(`
343
- `))}},[ge,Ae,S,w,D]),ae&&(S?he.length===0?ee=null:ee=he.reduce((Re,We,pt)=>(Re.push(We),pt<he.length-1&&Re.push(", "),Re),[]):ee=de);let Te=Q;!l&&X&&q&&(Te=ve.clientWidth);let _e;typeof R!="undefined"?_e=R:_e=p?null:0;const ke=M.id||(w?`mui-component-select-${w}`:void 0),dt={...t,variant:W,value:D,open:Ce,error:f},at=QL(dt),Pt={...x.PaperProps,...typeof((it=x.slotProps)==null?void 0:it.paper)=="function"?x.slotProps.paper(dt):(ft=x.slotProps)==null?void 0:ft.paper},qe={...x.MenuListProps,...typeof((mn=x.slotProps)==null?void 0:mn.list)=="function"?x.slotProps.list(dt):(qn=x.slotProps)==null?void 0:qn.list},Ve=xt();return m.jsxs(b.Fragment,{children:[m.jsx(YL,{as:"div",ref:fe,tabIndex:_e,role:"combobox","aria-controls":Ce?Ve:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":Ce?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[v,ke].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":F?"true":void 0,"aria-invalid":f?"true":void 0,onKeyDown:Ie,onMouseDown:p||C?null:Se,onBlur:Ye,onFocus:N,...M,ownerState:dt,className:ue(M.className,at.select,c),id:ke,children:UL(ee)?Sy||(Sy=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):ee}),m.jsx(ZL,{"aria-invalid":f,value:Array.isArray(D)?D.join(","):D,name:w,ref:Y,"aria-hidden":!0,onChange:se,tabIndex:-1,disabled:p,className:at.nativeInput,autoFocus:i,required:F,...I,ownerState:dt}),m.jsx(XL,{as:y,className:at.icon,ownerState:dt}),m.jsx(KL,{value:J,children:m.jsx(Ym,{id:`menu-${w||""}`,anchorEl:ve,open:Ce,onClose:Oe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...x,slotProps:{...x.slotProps,list:{"aria-labelledby":v,role:"listbox","aria-multiselectable":S?"true":void 0,disableListWrap:!0,id:Ve,...qe},paper:{...Pt,style:{minWidth:Te,...Pt!=null?Pt.style:null}}},children:be})})]})});process.env.NODE_ENV!=="production"&&(DC.propTypes={"aria-describedby":s.string,"aria-label":s.string,autoFocus:s.bool,autoWidth:s.bool,children:s.node,classes:s.object,className:s.string,defaultOpen:s.bool,defaultValue:s.any,disabled:s.bool,displayEmpty:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:Fn,labelId:s.string,MenuProps:s.object,multiple:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClose:s.func,onFocus:s.func,onOpen:s.func,open:s.bool,readOnly:s.bool,renderValue:s.func,required:s.bool,SelectDisplayProps:s.object,tabIndex:s.oneOfType([s.number,s.string]),type:s.any,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});var ky;const JL=ne("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:On})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),e$=ne("legend",{name:"MuiNotchedOutlined",shouldForwardProp:On})(je(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function _C(e){const{children:t,classes:n,className:r,label:o,notched:i,...l}=e,a=o!=null&&o!=="",c={...e,notched:i,withLabel:a};return m.jsx(JL,{"aria-hidden":!0,className:r,ownerState:c,...l,children:m.jsx(e$,{ownerState:c,children:a?m.jsx("span",{children:o}):ky||(ky=m.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(_C.propTypes={children:s.node,classes:s.object,className:s.string,label:s.node,notched:s.bool.isRequired,style:s.object});const t$=e=>{const{classes:t}=e,r=ye({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},zj,t);return{...t,...r}},n$=ne(Zu,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Yu})(je(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ar.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ar.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${ar.focused} .${ar.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(_t()).map(([n])=>({props:{color:n},style:{[`&.${ar.focused} .${ar.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${ar.error} .${ar.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ar.disabled} .${ar.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),r$=ne(_C,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(je(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),o$=ne(Qu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Xu})(je(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),nd=b.forwardRef(function(t,n){var T,N,P,O;const r=ze({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:i=!1,inputComponent:l="input",label:a,multiline:c=!1,notched:u,slots:d={},slotProps:p={},type:h="text",...f}=r,y=t$(r),g=Vr(),v=rs({props:r,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x={...r,color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:g,fullWidth:i,hiddenLabel:v.hiddenLabel,multiline:c,size:v.size,type:h},S=(N=(T=d.root)!=null?T:o.Root)!=null?N:n$,w=(O=(P=d.input)!=null?P:o.Input)!=null?O:o$,[k,E]=He("notchedOutline",{elementType:r$,className:y.notchedOutline,shouldForwardComponentProp:!0,ownerState:x,externalForwardedProps:{slots:d,slotProps:p},additionalProps:{label:a!=null&&a!==""&&v.required?m.jsxs(b.Fragment,{children:[a," ","*"]}):a}});return m.jsx(_s,{slots:{root:S,input:w},slotProps:p,renderSuffix:j=>m.jsx(k,{...E,notched:typeof u!="undefined"?u:!!(j.startAdornment||j.filled||j.focused)}),fullWidth:i,inputComponent:l,multiline:c,ref:n,type:h,...f,classes:{...y,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(nd.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),defaultValue:s.any,disabled:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:Fn,label:s.node,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,notched:s.bool,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,notchedOutline:s.oneOfType([s.func,s.object]),root:s.object}),slots:s.shape({input:s.elementType,notchedOutline:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});nd.muiName="Input";const s$=e=>{const{classes:t}=e,r=ye({root:["root"]},AC,t);return{...t,...r}},Qm={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>On(e)&&e!=="variant"},i$=ne(td,Qm)(""),l$=ne(nd,Qm)(""),a$=ne(ed,Qm)(""),Bs=b.forwardRef(function(t,n){const r=ze({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:l={},className:a,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=pC,id:p,input:h,inputProps:f,label:y,labelId:g,MenuProps:v,multiple:x=!1,native:S=!1,onClose:w,onOpen:k,open:E,renderValue:T,SelectDisplayProps:N,variant:P="outlined",...O}=r,j=S?FC:DC,$=Vr(),C=rs({props:r,muiFormControl:$,states:["variant","error"]}),L=C.variant||P,F={...r,variant:L,classes:l},M=s$(F),{root:R,..._}=M,V=h||{standard:m.jsx(i$,{ownerState:F}),outlined:m.jsx(l$,{label:y,ownerState:F}),filled:m.jsx(a$,{ownerState:F})}[L],W=It(n,ts(V));return m.jsx(b.Fragment,{children:b.cloneElement(V,{inputComponent:j,inputProps:{children:i,error:C.error,IconComponent:d,variant:L,type:void 0,multiple:x,...S?{id:p}:{autoWidth:o,defaultOpen:c,displayEmpty:u,labelId:g,MenuProps:v,onClose:w,onOpen:k,open:E,renderValue:T,SelectDisplayProps:{id:p,...N}},...f,classes:f?Cn(_,f.classes):_,...h?h.props.inputProps:{}},...(x&&S||u)&&L==="outlined"?{notched:!0}:{},ref:W,className:ue(V.props.className,a,M.root),...!h&&{variant:L},...O})})});process.env.NODE_ENV!=="production"&&(Bs.propTypes={autoWidth:s.bool,children:s.node,classes:s.object,className:s.string,defaultOpen:s.bool,defaultValue:s.any,displayEmpty:s.bool,IconComponent:s.elementType,id:s.string,input:s.element,inputProps:s.object,label:s.node,labelId:s.string,MenuProps:s.object,multiple:s.bool,native:s.bool,onChange:s.func,onClose:s.func,onOpen:s.func,open:s.bool,renderValue:s.func,SelectDisplayProps:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.oneOfType([s.oneOf([""]),s.any]),variant:s.oneOf(["filled","outlined","standard"])});Bs.muiName="Select";function c$(e,t){if(t==null){e.focus();return}try{e.focus({focusVisible:t==="keyboard"})}catch(n){e.focus()}}const u$=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},d$=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:l}=e,c=ye({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},zL,l);return{...l,...c}},p$=ne(ko,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:u$})(je(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${il.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${il.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${il.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${il.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${il.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${dy.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${dy.inset}`]:{marginLeft:52},[`& .${di.root}`]:{marginTop:0,marginBottom:0},[`& .${di.inset}`]:{paddingLeft:36},[`& .${by.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${by.root} svg`]:{fontSize:"1.25rem"}}}]}))),Vn=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:l=!1,divider:a=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:p,className:h,...f}=r,y=qL(),g=b.useContext(oo),v=b.useMemo(()=>({dense:l||g.dense||!1,disableGutters:c}),[g.dense,l,c]),x=b.useRef(null);Rt(()=>{o&&(x.current?c$(x.current,y):process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[o]);const S={...r,dense:v.dense,divider:a,disableGutters:c},w=d$(r),k=It(x,n),{root:E,...T}=w;let N;return r.disabled||(N=p!==void 0?p:-1),m.jsx(oo.Provider,{value:v,children:m.jsx(p$,{ref:k,role:d,tabIndex:N,component:i,focusVisibleClassName:ue(w.focusVisible,u),className:ue(w.root,h),...f,ownerState:S,classes:T})})});process.env.NODE_ENV!=="production"&&(Vn.propTypes={autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disabled:s.bool,disableGutters:s.bool,divider:s.bool,focusVisibleClassName:s.string,role:s.string,selected:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number});const f$=Me(m.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),m$=Me(m.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),h$=Me(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),g$=Me(m.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),b$=ne("span",{name:"MuiRadioButtonIcon",shouldForwardProp:On})({position:"relative",display:"flex"}),y$=ne(h$,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),v$=ne(g$,{name:"MuiRadioButtonIcon"})(je(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function Jm(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o={...e,checked:t};return m.jsxs(b$,{className:n.root,ownerState:o,children:[m.jsx(y$,{fontSize:r,className:n.background,ownerState:o}),m.jsx(v$,{fontSize:r,className:n.dot,ownerState:o})]})}process.env.NODE_ENV!=="production"&&(Jm.propTypes={checked:s.bool,classes:s.object,fontSize:s.oneOf(["small","medium"])});const eh=b.createContext(void 0);process.env.NODE_ENV!=="production"&&(eh.displayName="RadioGroupContext");function x$(){return b.useContext(eh)}function C$(e){return Ne("MuiRadio",e)}const Ey=$e("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),w$=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${ie(n)}`,r!=="medium"&&`size${ie(r)}`]};return{...t,...ye(o,C$,t)}},S$=ne(Hm,{shouldForwardProp:e=>On(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${ie(n.size)}`],t[`color${ie(n.color)}`]]}})(je(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Ey.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(_t()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${Ey.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function k$(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const E$=m.jsx(Jm,{checked:!0}),T$=m.jsx(Jm,{}),th=b.forwardRef(function(t,n){var L,F,M;const r=ze({props:t,name:"MuiRadio"}),{checked:o,checkedIcon:i=E$,color:l="primary",icon:a=T$,name:c,onChange:u,size:d="medium",className:p,disabled:h,disableRipple:f=!1,slots:y={},slotProps:g={},inputProps:v,...x}=r,S=Vr();let w=h;S&&typeof w=="undefined"&&(w=S.disabled),w!=null||(w=!1);const k={...r,disabled:w,disableRipple:f,color:l,size:d},E=w$(k),T=x$();let N=o;const P=Bp(u,T&&T.onChange);let O=c;T&&(typeof N=="undefined"&&(N=k$(T.value,r.value)),typeof O=="undefined"&&(O=T.name));const j=(L=g.input)!=null?L:v,[$,C]=He("root",{ref:n,elementType:S$,className:ue(E.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:g,...x},getSlotProps:R=>({...R,onChange:(_,...V)=>{var W;(W=R.onChange)==null||W.call(R,_,...V),P(_,...V)}}),ownerState:k,additionalProps:{type:"radio",icon:b.cloneElement(a,{fontSize:(F=a.props.fontSize)!=null?F:d}),checkedIcon:b.cloneElement(i,{fontSize:(M=i.props.fontSize)!=null?M:d}),disabled:w,name:O,checked:N,slots:y,slotProps:{input:typeof j=="function"?j(k):j}}});return m.jsx($,{...C,classes:E})});process.env.NODE_ENV!=="production"&&(th.propTypes={checked:s.bool,checkedIcon:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["default","primary","secondary","error","info","success","warning"]),s.string]),disabled:s.bool,disableRipple:s.bool,icon:s.node,id:s.string,inputProps:s.object,inputRef:Fn,name:s.string,onChange:s.func,required:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({input:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({input:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any});function I$(e){return Ne("MuiRadioGroup",e)}$e("MuiRadioGroup",["root","row","error"]);const P$=e=>{const{classes:t,row:n,error:r}=e;return ye({root:["root",n&&"row",r&&"error"]},I$,t)},nh=b.forwardRef(function(t,n){const{actions:r,children:o,className:i,defaultValue:l,name:a,onChange:c,value:u,...d}=t,p=b.useRef(null),h=P$(t),[f,y]=Go({controlled:u,default:l,name:"RadioGroup"});b.useImperativeHandle(r,()=>({focus:()=>{let S=p.current.querySelector("input:not(:disabled):checked");S||(S=p.current.querySelector("input:not(:disabled)")),S&&S.focus()}}),[]);const g=It(n,p),v=xt(a),x=b.useMemo(()=>({name:v,onChange(S){y(S.target.value),c&&c(S,S.target.value)},value:f}),[v,c,y,f]);return m.jsx(eh.Provider,{value:x,children:m.jsx(IC,{role:"radiogroup",ref:g,className:ue(h.root,i),...d,children:o})})});process.env.NODE_ENV!=="production"&&(nh.propTypes={children:s.node,className:s.string,defaultValue:s.any,name:s.string,onChange:s.func,value:s.any});function O$(e){return Ne("MuiSkeleton",e)}$e("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const M$=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:l}=e;return ye({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!l&&"heightAuto"]},O$,t)},ff=_r`
344
- 0% {
345
- opacity: 1;
346
- }
347
-
348
- 50% {
349
- opacity: 0.4;
350
- }
351
-
352
- 100% {
353
- opacity: 1;
354
- }
355
- `,mf=_r`
356
- 0% {
357
- transform: translateX(-100%);
358
- }
359
-
360
- 50% {
361
- /* +0.5s of delay between each loop */
362
- transform: translateX(100%);
363
- }
364
-
365
- 100% {
366
- transform: translateX(100%);
367
- }
368
- `,R$=typeof ff!="string"?Jo`
369
- animation: ${ff} 2s ease-in-out 0.5s infinite;
370
- `:null,j$=typeof mf!="string"?Jo`
371
- &::after {
372
- animation: ${mf} 2s linear 0.5s infinite;
373
- }
374
- `:null,L$=ne("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(je(({theme:e})=>{const t=qM(e.shape.borderRadius)||"px",n=KM(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:r})=>r.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:r})=>r.hasChildren&&!r.width,style:{maxWidth:"fit-content"}},{props:({ownerState:r})=>r.hasChildren&&!r.height,style:{height:"auto"}},{props:{animation:"pulse"},style:R$||{animation:`${ff} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
375
- 90deg,
376
- transparent,
377
- ${(e.vars||e).palette.action.hover},
378
- transparent
379
- )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:j$||{"&::after":{animation:`${mf} 2s linear 0.5s infinite`}}}]}})),zC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:l="span",height:a,style:c,variant:u="text",width:d,...p}=r,h={...r,animation:o,component:l,variant:u,hasChildren:!!p.children},f=M$(h);return m.jsx(L$,{as:l,ref:n,className:ue(f.root,i),ownerState:h,...p,style:{width:d,height:a,...c}})});process.env.NODE_ENV!=="production"&&(zC.propTypes={animation:s.oneOf(["pulse","wave",!1]),children:s.node,classes:s.object,className:s.string,component:s.elementType,height:s.oneOfType([s.number,s.string]),style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["circular","rectangular","rounded","text"]),s.string]),width:s.oneOfType([s.number,s.string])});function $$(e){return Ne("MuiTooltip",e)}const Kt=$e("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function N$(e){return Math.round(e*1e5)/1e5}const F$=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,l={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${ie(i.split("-")[0])}`],arrow:["arrow"]};return ye(l,$$,t)},A$=ne(ns,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(je(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Kt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Kt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Kt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Kt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Kt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Kt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Kt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Kt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),D$=ne("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${ie(n.placement.split("-")[0])}`]]}})(je(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Kt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Kt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Kt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Kt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${N$(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Kt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Kt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Kt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Kt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Kt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Kt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Kt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Kt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Kt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Kt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),_$=ne("span",{name:"MuiTooltip",slot:"Arrow"})(je(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let gc=!1;const Ty=new Uu;let al={x:0,y:0};function bc(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const sa=b.forwardRef(function(t,n){var hn,rn,Pr;const r=ze({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:i,classes:l,components:a={},componentsProps:c={},describeChild:u=!1,disableFocusListener:d=!1,disableHoverListener:p=!1,disableInteractive:h=!1,disableTouchListener:f=!1,enterDelay:y=100,enterNextDelay:g=0,enterTouchDelay:v=700,followCursor:x=!1,id:S,leaveDelay:w=0,leaveTouchDelay:k=1500,onClose:E,onOpen:T,open:N,placement:P="bottom",PopperComponent:O,PopperProps:j={},slotProps:$={},slots:C={},title:L,TransitionComponent:F,TransitionProps:M,...R}=r,_=b.isValidElement(i)?i:m.jsx("span",{children:i}),V=Xt(),W=Nn(),[I,D]=b.useState(),[G,A]=b.useState(null),K=b.useRef(!1),Y=h||x,U=Jn(),q=Jn(),Z=Jn(),X=Jn(),[Q,re]=Go({controlled:N,default:!1,name:"Tooltip",state:"open"});let J=Q;if(process.env.NODE_ENV!=="production"){const{current:Ke}=b.useRef(N!==void 0);b.useEffect(()=>{I&&I.disabled&&!Ke&&L!==""&&I.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
380
- `))},[L,I,Ke])}const oe=xt(S),te=b.useRef(),fe=rt(()=>{te.current!==void 0&&(document.body.style.WebkitUserSelect=te.current,te.current=void 0),X.clear()});b.useEffect(()=>fe,[fe]);const ve=Ke=>{Ty.clear(),gc=!0,re(!0),T&&!J&&T(Ke)},Ce=rt(Ke=>{Ty.start(800+w,()=>{gc=!1}),re(!1),E&&J&&E(Ke),U.start(V.transitions.duration.shortest,()=>{K.current=!1})}),xe=Ke=>{K.current&&Ke.type!=="touchstart"||(I&&I.removeAttribute("title"),q.clear(),Z.clear(),y||gc&&g?q.start(gc?g:y,()=>{ve(Ke)}):ve(Ke))},Se=Ke=>{q.clear(),Z.start(w,()=>{Ce(Ke)})},[,Oe]=b.useState(!1),Ae=Ke=>{var Rn;const vt=(Rn=Ke==null?void 0:Ke.target)!=null?Rn:I;if(!vt||!ki(vt)){Oe(!1);const wn=Ke!=null?Ke:new Event("blur");!Ke&&vt&&(Object.defineProperty(wn,"target",{value:vt}),Object.defineProperty(wn,"currentTarget",{value:vt})),Se(wn)}},se=Ke=>{I||D(Ke.currentTarget),ki(Ke.target)&&(Oe(!0),xe(Ke))},Ge=Ke=>{K.current=!0;const vt=_.props;vt.onTouchStart&&vt.onTouchStart(Ke)},Ie=Ke=>{Ge(Ke),Z.clear(),U.clear(),fe(),te.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",X.start(v,()=>{document.body.style.WebkitUserSelect=te.current,xe(Ke)})},Ye=Ke=>{_.props.onTouchEnd&&_.props.onTouchEnd(Ke),fe(),Z.start(k,()=>{Ce(Ke)})};b.useEffect(()=>{if(!J)return;function Ke(vt){vt.key==="Escape"&&Ce(vt)}return document.addEventListener("keydown",Ke),()=>{document.removeEventListener("keydown",Ke)}},[Ce,J]);const ee=It(ts(_),D,n);!L&&L!==0&&(J=!1);const de=b.useRef(),he=Ke=>{const vt=_.props;vt.onMouseMove&&vt.onMouseMove(Ke),al={x:Ke.clientX,y:Ke.clientY},de.current&&de.current.update()},ae={},ge=typeof L=="string";u?(ae.title=!J&&ge&&!p?L:null,ae["aria-describedby"]=J?oe:null):(ae["aria-label"]=ge?L:null,ae["aria-labelledby"]=J&&!ge?oe:null);const be={...ae,...R,..._.props,className:ue(R.className,_.props.className),onTouchStart:Ge,ref:ee,...x?{onMouseMove:he}:{}};process.env.NODE_ENV!=="production"&&(be["data-mui-internal-clone-element"]=!0,b.useEffect(()=>{I&&!I.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
381
- `))},[I]));const Te={};f||(be.onTouchStart=Ie,be.onTouchEnd=Ye),p||(be.onMouseOver=bc(xe,be.onMouseOver),be.onMouseLeave=bc(Se,be.onMouseLeave),Y||(Te.onMouseOver=xe,Te.onMouseLeave=Se)),d||(be.onFocus=bc(se,be.onFocus),be.onBlur=bc(Ae,be.onBlur),Y||(Te.onFocus=se,Te.onBlur=Ae)),process.env.NODE_ENV!=="production"&&_.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${_.props.title}\` or the Tooltip component.`].join(`
382
- `));const _e={...r,isRtl:W,arrow:o,disableInteractive:Y,placement:P,PopperComponentProp:O,touch:K.current},ke=typeof $.popper=="function"?$.popper(_e):$.popper,dt=b.useMemo(()=>{var vt,Rn;let Ke=[{name:"arrow",enabled:!!G,options:{element:G,padding:4}}];return(vt=j.popperOptions)!=null&&vt.modifiers&&(Ke=Ke.concat(j.popperOptions.modifiers)),(Rn=ke==null?void 0:ke.popperOptions)!=null&&Rn.modifiers&&(Ke=Ke.concat(ke.popperOptions.modifiers)),{...j.popperOptions,...ke==null?void 0:ke.popperOptions,modifiers:Ke}},[G,j.popperOptions,ke==null?void 0:ke.popperOptions]),at=F$(_e),Pt=typeof $.transition=="function"?$.transition(_e):$.transition,qe={slots:{popper:a.Popper,transition:(hn=a.Transition)!=null?hn:F,tooltip:a.Tooltip,arrow:a.Arrow,...C},slotProps:{arrow:(rn=$.arrow)!=null?rn:c.arrow,popper:{...j,...ke!=null?ke:c.popper},tooltip:(Pr=$.tooltip)!=null?Pr:c.tooltip,transition:{...M,...Pt!=null?Pt:c.transition}}},[Ve,it]=He("popper",{elementType:A$,externalForwardedProps:qe,ownerState:_e,className:ue(at.popper,j==null?void 0:j.className)}),[ft,mn]=He("transition",{elementType:Oi,externalForwardedProps:qe,ownerState:_e}),[qn,Re]=He("tooltip",{elementType:D$,className:at.tooltip,externalForwardedProps:qe,ownerState:_e}),[We,pt]=He("arrow",{elementType:_$,className:at.arrow,externalForwardedProps:qe,ownerState:_e,ref:A});return m.jsxs(b.Fragment,{children:[b.cloneElement(_,be),m.jsx(Ve,{as:O!=null?O:ns,placement:P,anchorEl:x?{getBoundingClientRect:()=>({top:al.y,left:al.x,right:al.x,bottom:al.y,width:0,height:0})}:I,popperRef:de,open:I?J:!1,id:oe,transition:!0,...Te,...it,popperOptions:dt,children:({TransitionProps:Ke})=>m.jsx(ft,{timeout:V.transitions.duration.shorter,...Ke,...mn,children:m.jsxs(qn,{...Re,children:[L,o?m.jsx(We,{...pt}):null]})})})]})});process.env.NODE_ENV!=="production"&&(sa.propTypes={arrow:s.bool,children:os.isRequired,classes:s.object,className:s.string,components:s.shape({Arrow:s.elementType,Popper:s.elementType,Tooltip:s.elementType,Transition:s.elementType}),componentsProps:s.shape({arrow:s.object,popper:s.object,tooltip:s.object,transition:s.object}),describeChild:s.bool,disableFocusListener:s.bool,disableHoverListener:s.bool,disableInteractive:s.bool,disableTouchListener:s.bool,enterDelay:s.number,enterNextDelay:s.number,enterTouchDelay:s.number,followCursor:s.bool,id:s.string,leaveDelay:s.number,leaveTouchDelay:s.number,onClose:s.func,onOpen:s.func,open:s.bool,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:s.elementType,PopperProps:s.object,slotProps:s.shape({arrow:s.oneOfType([s.func,s.object]),popper:s.oneOfType([s.func,s.object]),tooltip:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({arrow:s.elementType,popper:s.elementType,tooltip:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),title:s.node,TransitionComponent:s.elementType,TransitionProps:s.object});const hf=aM({createStyledComponent:ne("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>ze({props:e,name:"MuiStack"})});process.env.NODE_ENV!=="production"&&(hf.propTypes={children:s.node,component:s.elementType,direction:s.oneOfType([s.oneOf(["column-reverse","column","row-reverse","row"]),s.arrayOf(s.oneOf(["column-reverse","column","row-reverse","row"])),s.object]),divider:s.node,spacing:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string])),s.number,s.object,s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),useFlexGap:s.bool});const $a=b.createContext({});process.env.NODE_ENV!=="production"&&($a.displayName="StepperContext");const rd=b.createContext({});process.env.NODE_ENV!=="production"&&(rd.displayName="StepContext");function z$(e){return Ne("MuiStep",e)}$e("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const B$=e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:o}=e;return ye({root:["root",n,r&&"alternativeLabel",o&&"completed"]},z$,t)},V$=ne("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({variants:[{props:{orientation:"horizontal"},style:{paddingLeft:8,paddingRight:8}},{props:{alternativeLabel:!0},style:{flex:1,position:"relative"}}]}),BC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiStep"}),{active:o,children:i,className:l,component:a="div",completed:c,disabled:u,expanded:d=!1,index:p,last:h,...f}=r,{activeStep:y,connector:g,alternativeLabel:v,orientation:x,nonLinear:S}=b.useContext($a);let[w=!1,k=!1,E=!1]=[o,c,u];y===p?w=o!==void 0?o:!0:!S&&y>p?k=c!==void 0?c:!0:!S&&y<p&&(E=u!==void 0?u:!0);const T=b.useMemo(()=>({index:p,last:h,expanded:d,icon:p+1,active:w,completed:k,disabled:E}),[p,h,d,w,k,E]),N={...r,active:w,orientation:x,alternativeLabel:v,completed:k,disabled:E,expanded:d,component:a},P=B$(N),O=m.jsxs(V$,{as:a,className:ue(P.root,l),ref:n,ownerState:N,...f,children:[g&&v&&p!==0?g:null,i]});return m.jsx(rd.Provider,{value:T,children:g&&!v&&p!==0?m.jsxs(b.Fragment,{children:[g,O]}):O})});process.env.NODE_ENV!=="production"&&(BC.propTypes={active:s.bool,children:s.node,classes:s.object,className:s.string,completed:s.bool,component:s.elementType,disabled:s.bool,expanded:s.bool,index:Wo,last:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const H$=Me(m.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),G$=Me(m.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function W$(e){return Ne("MuiStepIcon",e)}const tp=$e("MuiStepIcon",["root","active","completed","error","text"]);var Iy;const U$=e=>{const{classes:t,active:n,completed:r,error:o}=e;return ye({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},W$,t)},np=ne(Ms,{name:"MuiStepIcon",slot:"Root"})(je(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${tp.completed}, &.${tp.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${tp.error}`]:{color:(e.vars||e).palette.error.main}}))),q$=ne("text",{name:"MuiStepIcon",slot:"Text"})(je(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}))),VC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiStepIcon"}),{active:o=!1,className:i,completed:l=!1,error:a=!1,icon:c,...u}=r,d={...r,active:o,completed:l,error:a},p=U$(d);if(typeof c=="number"||typeof c=="string"){const h=ue(i,p.root);return a?m.jsx(np,{as:G$,className:h,ref:n,ownerState:d,...u}):l?m.jsx(np,{as:H$,className:h,ref:n,ownerState:d,...u}):m.jsxs(np,{className:h,ref:n,ownerState:d,...u,children:[Iy||(Iy=m.jsx("circle",{cx:"12",cy:"12",r:"12"})),m.jsx(q$,{className:p.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:d,children:c})]})}return c});process.env.NODE_ENV!=="production"&&(VC.propTypes={active:s.bool,classes:s.object,className:s.string,completed:s.bool,error:s.bool,icon:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function K$(e){return Ne("MuiStepLabel",e)}const Bo=$e("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),Y$=e=>{const{classes:t,orientation:n,active:r,completed:o,error:i,disabled:l,alternativeLabel:a}=e;return ye({root:["root",n,i&&"error",l&&"disabled",a&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",i&&"error",l&&"disabled",a&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",i&&"error",l&&"disabled",a&&"alternativeLabel"],labelContainer:["labelContainer",a&&"alternativeLabel"]},K$,t)},X$=ne("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})({display:"flex",alignItems:"center",[`&.${Bo.alternativeLabel}`]:{flexDirection:"column"},[`&.${Bo.disabled}`]:{cursor:"default"},variants:[{props:{orientation:"vertical"},style:{textAlign:"left",padding:"8px 0"}}]}),Z$=ne("span",{name:"MuiStepLabel",slot:"Label"})(je(({theme:e})=>({...e.typography.body2,display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${Bo.active}, &.${Bo.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Bo.alternativeLabel}`]:{marginTop:16},[`&.${Bo.error}`]:{color:(e.vars||e).palette.error.main}}))),Q$=ne("span",{name:"MuiStepLabel",slot:"IconContainer"})({flexShrink:0,display:"flex",paddingRight:8,[`&.${Bo.alternativeLabel}`]:{paddingRight:0}}),J$=ne("span",{name:"MuiStepLabel",slot:"LabelContainer"})(je(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${Bo.alternativeLabel}`]:{textAlign:"center"}}))),rh=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiStepLabel"}),{children:o,className:i,componentsProps:l={},error:a=!1,icon:c,optional:u,slots:d={},slotProps:p={},StepIconComponent:h,StepIconProps:f,...y}=r,{alternativeLabel:g,orientation:v}=b.useContext($a),{active:x,disabled:S,completed:w,icon:k}=b.useContext(rd),E=c||k;let T=h;E&&!T&&(T=VC);const N={...r,active:x,alternativeLabel:g,completed:w,disabled:S,error:a,orientation:v},P=Y$(N),O={slots:d,slotProps:{stepIcon:f,...l,...p}},[j,$]=He("root",{elementType:X$,externalForwardedProps:{...O,...y},ownerState:N,ref:n,className:ue(P.root,i)}),[C,L]=He("label",{elementType:Z$,externalForwardedProps:O,ownerState:N}),[F,M]=He("stepIcon",{elementType:T,externalForwardedProps:O,ownerState:N});return m.jsxs(j,{...$,children:[E||F?m.jsx(Q$,{className:P.iconContainer,ownerState:N,children:m.jsx(F,{completed:w,active:x,error:a,icon:E,...M})}):null,m.jsxs(J$,{className:P.labelContainer,ownerState:N,children:[o?m.jsx(C,{...L,className:ue(P.label,L==null?void 0:L.className),children:o}):null,u]})]})});process.env.NODE_ENV!=="production"&&(rh.propTypes={children:s.node,classes:s.object,className:s.string,componentsProps:s.shape({label:s.object}),error:s.bool,icon:s.node,optional:s.node,slotProps:s.shape({label:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),stepIcon:s.oneOfType([s.func,s.object])}),slots:s.shape({label:s.elementType,root:s.elementType,stepIcon:s.elementType}),StepIconComponent:s.elementType,StepIconProps:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});rh.muiName="StepLabel";function eN(e){return Ne("MuiStepConnector",e)}$e("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const tN=e=>{const{classes:t,orientation:n,alternativeLabel:r,active:o,completed:i,disabled:l}=e,a={root:["root",n,r&&"alternativeLabel",o&&"active",i&&"completed",l&&"disabled"],line:["line",`line${ie(n)}`]};return ye(a,eN,t)},nN=ne("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({flex:"1 1 auto",variants:[{props:{orientation:"vertical"},style:{marginLeft:12}},{props:{alternativeLabel:!0},style:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"}}]}),rN=ne("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${ie(n.orientation)}`]]}})(je(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600];return{display:"block",borderColor:e.vars?e.vars.palette.StepConnector.border:t,variants:[{props:{orientation:"horizontal"},style:{borderTopStyle:"solid",borderTopWidth:1}},{props:{orientation:"vertical"},style:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}]}})),HC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiStepConnector"}),{className:o,...i}=r,{alternativeLabel:l,orientation:a="horizontal"}=b.useContext($a),{active:c,disabled:u,completed:d}=b.useContext(rd),p={...r,alternativeLabel:l,orientation:a,active:c,completed:d,disabled:u},h=tN(p);return m.jsx(nN,{className:ue(h.root,o),ref:n,ownerState:p,...i,children:m.jsx(rN,{className:h.line,ownerState:p})})});process.env.NODE_ENV!=="production"&&(HC.propTypes={classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function oN(e){return Ne("MuiStepper",e)}$e("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const sN=e=>{const{orientation:t,nonLinear:n,alternativeLabel:r,classes:o}=e;return ye({root:["root",t,n&&"nonLinear",r&&"alternativeLabel"]},oN,o)},iN=ne("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.nonLinear&&t.nonLinear]}})({display:"flex",variants:[{props:{orientation:"horizontal"},style:{flexDirection:"row",alignItems:"center"}},{props:{orientation:"vertical"},style:{flexDirection:"column"}},{props:{alternativeLabel:!0},style:{alignItems:"flex-start"}}]}),lN=m.jsx(HC,{}),GC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiStepper"}),{activeStep:o=0,alternativeLabel:i=!1,children:l,className:a,component:c="div",connector:u=lN,nonLinear:d=!1,orientation:p="horizontal",...h}=r,f={...r,nonLinear:d,alternativeLabel:i,orientation:p,component:c},y=sN(f),g=b.Children.toArray(l).filter(Boolean),v=g.map((S,w)=>b.cloneElement(S,{index:w,last:w+1===g.length,...S.props})),x=b.useMemo(()=>({activeStep:o,alternativeLabel:i,connector:u,nonLinear:d,orientation:p}),[o,i,u,d,p]);return m.jsx($a.Provider,{value:x,children:m.jsx(iN,{as:c,ownerState:f,className:ue(y.root,a),ref:n,...h,children:v})})});process.env.NODE_ENV!=="production"&&(GC.propTypes={activeStep:Wo,alternativeLabel:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,connector:s.element,nonLinear:s.bool,orientation:s.oneOf(["horizontal","vertical"]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const oh=b.createContext();process.env.NODE_ENV!=="production"&&(oh.displayName="TableContext");function aN(e){return Ne("MuiTable",e)}$e("MuiTable",["root","stickyHeader"]);const cN=e=>{const{classes:t,stickyHeader:n}=e;return ye({root:["root",n&&"stickyHeader"]},aN,t)},uN=ne("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(je(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),Py="table",sh=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiTable"}),{className:o,component:i=Py,padding:l="normal",size:a="medium",stickyHeader:c=!1,...u}=r,d={...r,component:i,padding:l,size:a,stickyHeader:c},p=cN(d),h=b.useMemo(()=>({padding:l,size:a,stickyHeader:c}),[l,a,c]);return m.jsx(oh.Provider,{value:h,children:m.jsx(uN,{as:i,role:i===Py?null:"table",ref:n,className:ue(p.root,o),ownerState:d,...u})})});process.env.NODE_ENV!=="production"&&(sh.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,padding:s.oneOf(["checkbox","none","normal"]),size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),stickyHeader:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const Na=b.createContext();process.env.NODE_ENV!=="production"&&(Na.displayName="Tablelvl2Context");function dN(e){return Ne("MuiTableBody",e)}$e("MuiTableBody",["root"]);const pN=e=>{const{classes:t}=e;return ye({root:["root"]},dN,t)},fN=ne("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),mN={variant:"body"},Oy="tbody",Rc=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiTableBody"}),{className:o,component:i=Oy,...l}=r,a={...r,component:i},c=pN(a);return m.jsx(Na.Provider,{value:mN,children:m.jsx(fN,{className:ue(c.root,o),as:i,ref:n,role:i===Oy?null:"rowgroup",ownerState:a,...l})})});process.env.NODE_ENV!=="production"&&(Rc.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function hN(e){return Ne("MuiTableCell",e)}const gN=$e("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),bN=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:l}=e,a={root:["root",n,l&&"stickyHeader",r!=="inherit"&&`align${ie(r)}`,o!=="normal"&&`padding${ie(o)}`,`size${ie(i)}`]};return ye(a,hN,t)},yN=ne("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ie(n.size)}`],n.padding!=="normal"&&t[`padding${ie(n.padding)}`],n.align!=="inherit"&&t[`align${ie(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(je(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
383
- ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${gN.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),kn=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:l,padding:a,scope:c,size:u,sortDirection:d,variant:p,...h}=r,f=b.useContext(oh),y=b.useContext(Na),g=y&&y.variant==="head";let v;l?v=l:v=g?"th":"td";let x=c;v==="td"?x=void 0:!x&&g&&(x="col");const S=p||y&&y.variant,w={...r,align:o,component:v,padding:a||(f&&f.padding?f.padding:"normal"),size:u||(f&&f.size?f.size:"medium"),sortDirection:d,stickyHeader:S==="head"&&f&&f.stickyHeader,variant:S},k=bN(w);let E=null;return d&&(E=d==="asc"?"ascending":"descending"),m.jsx(yN,{as:v,ref:n,className:ue(k.root,i),"aria-sort":E,scope:x,ownerState:w,...h})});process.env.NODE_ENV!=="production"&&(kn.propTypes={align:s.oneOf(["center","inherit","justify","left","right"]),children:s.node,classes:s.object,className:s.string,component:s.elementType,padding:s.oneOf(["checkbox","none","normal"]),scope:s.string,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),sortDirection:s.oneOf(["asc","desc",!1]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["body","footer","head"]),s.string])});function vN(e){return Ne("MuiTableContainer",e)}$e("MuiTableContainer",["root"]);const xN=e=>{const{classes:t}=e;return ye({root:["root"]},vN,t)},CN=ne("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),WC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiTableContainer"}),{className:o,component:i="div",...l}=r,a={...r,component:i},c=xN(a);return m.jsx(CN,{ref:n,as:i,className:ue(c.root,o),ownerState:a,...l})});process.env.NODE_ENV!=="production"&&(WC.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function wN(e){return Ne("MuiTableHead",e)}$e("MuiTableHead",["root"]);const SN=e=>{const{classes:t}=e;return ye({root:["root"]},wN,t)},kN=ne("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),EN={variant:"head"},My="thead",ih=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiTableHead"}),{className:o,component:i=My,...l}=r,a={...r,component:i},c=SN(a);return m.jsx(Na.Provider,{value:EN,children:m.jsx(kN,{as:i,className:ue(c.root,o),ref:n,role:i===My?null:"rowgroup",ownerState:a,...l})})});process.env.NODE_ENV!=="production"&&(ih.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function TN(e){return Ne("MuiToolbar",e)}$e("MuiToolbar",["root","gutters","regular","dense"]);const IN=e=>{const{classes:t,disableGutters:n,variant:r}=e;return ye({root:["root",!n&&"gutters",r]},TN,t)},PN=ne("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(je(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),nu=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:l=!1,variant:a="regular",...c}=r,u={...r,component:i,disableGutters:l,variant:a},d=IN(u);return m.jsx(PN,{as:i,className:ue(d.root,o),ref:n,ownerState:u,...c})});process.env.NODE_ENV!=="production"&&(nu.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disableGutters:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["dense","regular"]),s.string])});const ON=Me(m.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),MN=Me(m.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function RN(e){return Ne("MuiTablePaginationActions",e)}$e("MuiTablePaginationActions",["root"]);const jN=e=>{const{classes:t}=e;return ye({root:["root"]},RN,t)},LN=ne("div",{name:"MuiTablePaginationActions",slot:"Root"})({}),UC=b.forwardRef(function(t,n){var Y,U,q,Z,X,Q,re,J;const r=ze({props:t,name:"MuiTablePaginationActions"}),{backIconButtonProps:o,className:i,count:l,disabled:a=!1,getItemAriaLabel:c,nextIconButtonProps:u,onPageChange:d,page:p,rowsPerPage:h,showFirstButton:f,showLastButton:y,slots:g={},slotProps:v={},...x}=r,S=Nn(),k=jN(r),E=oe=>{d(oe,0)},T=oe=>{d(oe,p-1)},N=oe=>{d(oe,p+1)},P=oe=>{d(oe,Math.max(0,Math.ceil(l/h)-1))},O=(Y=g.firstButton)!=null?Y:Tn,j=(U=g.lastButton)!=null?U:Tn,$=(q=g.nextButton)!=null?q:Tn,C=(Z=g.previousButton)!=null?Z:Tn,L=(X=g.firstButtonIcon)!=null?X:f$,F=(Q=g.lastButtonIcon)!=null?Q:m$,M=(re=g.nextButtonIcon)!=null?re:MN,R=(J=g.previousButtonIcon)!=null?J:ON,_=S?j:O,V=S?$:C,W=S?C:$,I=S?O:j,D=S?v.lastButton:v.firstButton,G=S?v.nextButton:v.previousButton,A=S?v.previousButton:v.nextButton,K=S?v.firstButton:v.lastButton;return m.jsxs(LN,{ref:n,className:ue(k.root,i),...x,children:[f&&m.jsx(_,{onClick:E,disabled:a||p===0,"aria-label":c("first",p),title:c("first",p),...D,children:S?m.jsx(F,{...v.lastButtonIcon}):m.jsx(L,{...v.firstButtonIcon})}),m.jsx(V,{onClick:T,disabled:a||p===0,color:"inherit","aria-label":c("previous",p),title:c("previous",p),...G!=null?G:o,children:S?m.jsx(M,{...v.nextButtonIcon}):m.jsx(R,{...v.previousButtonIcon})}),m.jsx(W,{onClick:N,disabled:a||(l!==-1?p>=Math.ceil(l/h)-1:!1),color:"inherit","aria-label":c("next",p),title:c("next",p),...A!=null?A:u,children:S?m.jsx(R,{...v.previousButtonIcon}):m.jsx(M,{...v.nextButtonIcon})}),y&&m.jsx(I,{onClick:P,disabled:a||p>=Math.ceil(l/h)-1,"aria-label":c("last",p),title:c("last",p),...K,children:S?m.jsx(L,{...v.firstButtonIcon}):m.jsx(F,{...v.lastButtonIcon})})]})});process.env.NODE_ENV!=="production"&&(UC.propTypes={backIconButtonProps:s.object,children:s.node,classes:s.object,className:s.string,count:s.number.isRequired,disabled:s.bool,getItemAriaLabel:s.func.isRequired,nextIconButtonProps:s.object,onPageChange:s.func.isRequired,page:s.number.isRequired,rowsPerPage:s.number.isRequired,showFirstButton:s.bool.isRequired,showLastButton:s.bool.isRequired,slotProps:s.shape({firstButton:s.object,firstButtonIcon:s.object,lastButton:s.object,lastButtonIcon:s.object,nextButton:s.object,nextButtonIcon:s.object,previousButton:s.object,previousButtonIcon:s.object}),slots:s.shape({firstButton:s.elementType,firstButtonIcon:s.elementType,lastButton:s.elementType,lastButtonIcon:s.elementType,nextButton:s.elementType,nextButtonIcon:s.elementType,previousButton:s.elementType,previousButtonIcon:s.elementType})});function $N(e){return Ne("MuiTablePagination",e)}const Ts=$e("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var Ry;const NN=ne(kn,{name:"MuiTablePagination",slot:"Root"})(je(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),FN=ne(nu,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${Ts.actions}`]:t.actions,...t.toolbar})})(je(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Ts.actions}`]:{flexShrink:0,marginLeft:20}}))),AN=ne("div",{name:"MuiTablePagination",slot:"Spacer"})({flex:"1 1 100%"}),DN=ne("p",{name:"MuiTablePagination",slot:"SelectLabel"})(je(({theme:e})=>({...e.typography.body2,flexShrink:0}))),_N=ne(Bs,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${Ts.selectIcon}`]:t.selectIcon,[`& .${Ts.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Ts.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),zN=ne(Vn,{name:"MuiTablePagination",slot:"MenuItem"})({}),BN=ne("p",{name:"MuiTablePagination",slot:"DisplayedRows"})(je(({theme:e})=>({...e.typography.body2,flexShrink:0})));function VN({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function HN(e){return`Go to ${e} page`}const GN=e=>{const{classes:t}=e;return ye({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},$N,t)},qC=b.forwardRef(function(t,n){var J;const r=ze({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=UC,backIconButtonProps:i,colSpan:l,component:a=kn,count:c,disabled:u=!1,getItemAriaLabel:d=HN,labelDisplayedRows:p=VN,labelRowsPerPage:h="Rows per page:",nextIconButtonProps:f,onPageChange:y,onRowsPerPageChange:g,page:v,rowsPerPage:x,rowsPerPageOptions:S=[10,25,50,100],SelectProps:w={},showFirstButton:k=!1,showLastButton:E=!1,slotProps:T={},slots:N={},...P}=r,O=r,j=GN(O),$=(J=T==null?void 0:T.select)!=null?J:w,C=$.native?"option":zN;let L;(a===kn||a==="td")&&(L=l||1e3);const F=xt($.id),M=xt($.labelId),R=()=>c===-1?(v+1)*x:x===-1?c:Math.min(c,(v+1)*x),_={slots:N,slotProps:T},[V,W]=He("root",{ref:n,className:j.root,elementType:NN,externalForwardedProps:{..._,component:a,...P},ownerState:O,additionalProps:{colSpan:L}}),[I,D]=He("toolbar",{className:j.toolbar,elementType:FN,externalForwardedProps:_,ownerState:O}),[G,A]=He("spacer",{className:j.spacer,elementType:AN,externalForwardedProps:_,ownerState:O}),[K,Y]=He("selectLabel",{className:j.selectLabel,elementType:DN,externalForwardedProps:_,ownerState:O,additionalProps:{id:M}}),[U,q]=He("select",{className:j.select,elementType:_N,externalForwardedProps:_,ownerState:O}),[Z,X]=He("menuItem",{className:j.menuItem,elementType:C,externalForwardedProps:_,ownerState:O}),[Q,re]=He("displayedRows",{className:j.displayedRows,elementType:BN,externalForwardedProps:_,ownerState:O});return m.jsx(V,{...W,children:m.jsxs(I,{...D,children:[m.jsx(G,{...A}),S.length>1&&m.jsx(K,{...Y,children:h}),S.length>1&&m.jsx(U,{variant:"standard",...!$.variant&&{input:Ry||(Ry=m.jsx(_s,{}))},value:x,onChange:g,id:F,labelId:M,...$,classes:{...$.classes,root:ue(j.input,j.selectRoot,($.classes||{}).root),select:ue(j.select,($.classes||{}).select),icon:ue(j.selectIcon,($.classes||{}).icon)},disabled:u,...q,children:S.map(oe=>H.createElement(Z,{...X,key:oe.label?oe.label:oe,value:oe.value?oe.value:oe},oe.label?oe.label:oe))}),m.jsx(Q,{...re,children:p({from:c===0?0:v*x+1,to:R(),count:c===-1?-1:c,page:v})}),m.jsx(o,{className:j.actions,backIconButtonProps:i,count:c,nextIconButtonProps:f,onPageChange:y,page:v,rowsPerPage:x,showFirstButton:k,showLastButton:E,slotProps:T.actions,slots:N.actions,getItemAriaLabel:d,disabled:u})]})})});process.env.NODE_ENV!=="production"&&(qC.propTypes={ActionsComponent:s.elementType,backIconButtonProps:s.object,classes:s.object,colSpan:s.number,component:s.elementType,count:Wo.isRequired,disabled:s.bool,getItemAriaLabel:s.func,labelDisplayedRows:s.func,labelRowsPerPage:s.node,nextIconButtonProps:s.object,onPageChange:s.func.isRequired,onRowsPerPageChange:s.func,page:or(Wo.isRequired,e=>{const{count:t,page:n,rowsPerPage:r}=e;if(t===-1)return null;const o=Math.max(0,Math.ceil(t/r)-1);return n<0||n>o?new Error(`MUI: The page prop of a TablePagination is out of range (0 to ${o}, but page is ${n}).`):null}),rowsPerPage:Wo.isRequired,rowsPerPageOptions:s.arrayOf(s.oneOfType([s.number,s.shape({label:s.string.isRequired,value:s.number.isRequired})]).isRequired),SelectProps:s.object,showFirstButton:s.bool,showLastButton:s.bool,slotProps:s.shape({actions:s.shape({firstButton:s.object,firstButtonIcon:s.object,lastButton:s.object,lastButtonIcon:s.object,nextButton:s.object,nextButtonIcon:s.object,previousButton:s.object,previousButtonIcon:s.object}),displayedRows:s.oneOfType([s.func,s.object]),menuItem:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),select:s.object,selectLabel:s.oneOfType([s.func,s.object]),spacer:s.oneOfType([s.func,s.object]),toolbar:s.oneOfType([s.func,s.object])}),slots:s.shape({actions:s.shape({firstButton:s.elementType,firstButtonIcon:s.elementType,lastButton:s.elementType,lastButtonIcon:s.elementType,nextButton:s.elementType,nextButtonIcon:s.elementType,previousButton:s.elementType,previousButtonIcon:s.elementType}),displayedRows:s.elementType,menuItem:s.elementType,root:s.elementType,select:s.elementType,selectLabel:s.elementType,spacer:s.elementType,toolbar:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function WN(e){return Ne("MuiTableRow",e)}const jy=$e("MuiTableRow",["root","selected","hover","head","footer"]),UN=e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return ye({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},WN,t)},qN=ne("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(je(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${jy.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${jy.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),Ly="tr",ws=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiTableRow"}),{className:o,component:i=Ly,hover:l=!1,selected:a=!1,...c}=r,u=b.useContext(Na),d={...r,component:i,hover:l,selected:a,head:u&&u.variant==="head",footer:u&&u.variant==="footer"},p=UN(d);return m.jsx(qN,{as:i,ref:n,className:ue(p.root,o),role:i===Ly?null:"row",ownerState:d,...c})});process.env.NODE_ENV!=="production"&&(ws.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,hover:s.bool,selected:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const KN=Me(m.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function YN(e){return Ne("MuiTableSortLabel",e)}const rp=$e("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]),XN=e=>{const{classes:t,direction:n,active:r}=e,o={root:["root",r&&"active",`direction${ie(n)}`],icon:["icon",`iconDirection${ie(n)}`]};return ye(o,YN,t)},ZN=ne(ko,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(je(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${rp.icon}`]:{opacity:.5}},[`&.${rp.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${rp.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),QN=ne("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${ie(n.direction)}`]]}})(je(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),KC=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiTableSortLabel"}),{active:o=!1,children:i,className:l,direction:a="asc",hideSortIcon:c=!1,IconComponent:u=KN,slots:d={},slotProps:p={},...h}=r,f={...r,active:o,direction:a,hideSortIcon:c,IconComponent:u},y=XN(f),g={slots:d,slotProps:p},[v,x]=He("root",{elementType:ZN,externalForwardedProps:g,ownerState:f,className:ue(y.root,l),ref:n}),[S,w]=He("icon",{elementType:QN,externalForwardedProps:g,ownerState:f,className:y.icon});return m.jsxs(v,{disableRipple:!0,component:"span",...x,...h,children:[i,c&&!o?null:m.jsx(S,{as:u,...w})]})});process.env.NODE_ENV!=="production"&&(KC.propTypes={active:s.bool,children:s.node,classes:s.object,className:s.string,direction:s.oneOf(["asc","desc"]),hideSortIcon:s.bool,IconComponent:s.elementType,slotProps:s.shape({icon:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({icon:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function JN(e){return Ne("MuiTextField",e)}$e("MuiTextField",["root"]);const e7={standard:td,filled:ed,outlined:nd},t7=e=>{const{classes:t}=e;return ye({root:["root"]},JN,t)},n7=ne(zs,{name:"MuiTextField",slot:"Root"})({}),Vs=b.forwardRef(function(t,n){const r=ze({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:l,className:a,color:c="primary",defaultValue:u,disabled:d=!1,error:p=!1,FormHelperTextProps:h,fullWidth:f=!1,helperText:y,id:g,InputLabelProps:v,inputProps:x,InputProps:S,inputRef:w,label:k,maxRows:E,minRows:T,multiline:N=!1,name:P,onBlur:O,onChange:j,onFocus:$,placeholder:C,required:L=!1,rows:F,select:M=!1,SelectProps:R,slots:_={},slotProps:V={},type:W,value:I,variant:D="outlined",...G}=r,A={...r,autoFocus:i,color:c,disabled:d,error:p,fullWidth:f,multiline:N,required:L,select:M,variant:D},K=t7(A);process.env.NODE_ENV!=="production"&&M&&!l&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const Y=xt(g),U=y&&Y?`${Y}-helper-text`:void 0,q=k&&Y?`${Y}-label`:void 0,Z=e7[D],X={slots:_,slotProps:{input:S,inputLabel:v,htmlInput:x,formHelperText:h,select:R,...V}},Q={},re=X.slotProps.inputLabel;D==="outlined"&&(re&&typeof re.shrink!="undefined"&&(Q.notched=re.shrink),Q.label=k),M&&((!R||!R.native)&&(Q.id=void 0),Q["aria-describedby"]=void 0);const[J,oe]=He("root",{elementType:n7,shouldForwardComponentProp:!0,externalForwardedProps:{...X,...G},ownerState:A,className:ue(K.root,a),ref:n,additionalProps:{disabled:d,error:p,fullWidth:f,required:L,color:c,variant:D}}),[te,fe]=He("input",{elementType:Z,externalForwardedProps:X,additionalProps:Q,ownerState:A}),[ve,Ce]=He("inputLabel",{elementType:Wm,externalForwardedProps:X,ownerState:A}),[xe,Se]=He("htmlInput",{elementType:"input",externalForwardedProps:X,ownerState:A}),[Oe,Ae]=He("formHelperText",{elementType:PC,externalForwardedProps:X,ownerState:A}),[se,Ge]=He("select",{elementType:Bs,externalForwardedProps:X,ownerState:A}),Ie=m.jsx(te,{"aria-describedby":U,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:f,multiline:N,name:P,rows:F,maxRows:E,minRows:T,type:W,value:I,id:Y,inputRef:w,onBlur:O,onChange:j,onFocus:$,placeholder:C,inputProps:Se,slots:{input:_.htmlInput?xe:void 0},...fe});return m.jsxs(J,{...oe,children:[k!=null&&k!==""&&m.jsx(ve,{htmlFor:Y,id:q,...Ce,children:k}),M?m.jsx(se,{"aria-describedby":U,id:Y,labelId:q,value:I,input:Ie,...Ge,children:l}):Ie,y&&m.jsx(Oe,{id:U,...Ae,children:y})]})});process.env.NODE_ENV!=="production"&&(Vs.propTypes={autoComplete:s.string,autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),defaultValue:s.any,disabled:s.bool,error:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:Fn,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onFocus:s.func,placeholder:s.string,required:s.bool,rows:s.oneOfType([s.number,s.string]),select:s.bool,SelectProps:s.object,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({formHelperText:s.oneOfType([s.func,s.object]),htmlInput:s.oneOfType([s.func,s.object]),input:s.oneOfType([s.func,s.object]),inputLabel:s.oneOfType([s.func,s.object]),select:s.oneOfType([s.func,s.object])}),slots:s.shape({formHelperText:s.elementType,htmlInput:s.elementType,input:s.elementType,inputLabel:s.elementType,root:s.elementType,select:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any,variant:s.oneOf(["filled","outlined","standard"])});const r7=({text:e,onClick:t})=>m.jsx("div",{className:"bg-neutral-lighter/30 flex w-full items-center rounded-xl px-4 py-2",children:m.jsx("div",{className:"ml-5",children:m.jsxs(ko,{className:"focus-visible:outline-primary flex items-center rounded focus-visible:outline-2 focus-visible:outline-offset-2",onClick:t,children:[m.jsx(Je,{component:"span",className:"flex h-8 w-8 items-center justify-center rounded-md",sx:{bgcolor:"primary.main",color:"primary.contrastText"},children:m.jsx(Bx,{})}),m.jsx("span",{className:"text-primary ml-5 text-sm font-bold select-none hover:underline",children:e})]})})}),$y=6,o7=({defaultValue:e="",inputLabel:t,isLoading:n,label:r,labelCancel:o="Cancel",labelSubmit:i="Add",placeholder:l,selectDefaultValue:a,selectOptions:c=[],showInput:u,withInput:d,withSelect:p,onCancel:h,onClick:f,onSelectChange:y,onSubmit:g,"data-testid":v})=>{const[x,S]=H.useState(!!u),[w,k]=H.useState(),[E,T]=H.useState(e),[N,P]=H.useState(a),O=H.useId(),j=()=>{S(!1),h==null||h()},$=()=>{d?S(!0):f==null||f()},C=F=>{if(F.preventDefault(),E.trim().length<$y){k(`Must be at least ${$y} characters`);return}k(void 0),g==null||g(E,N).then(()=>S(!1))},L=F=>{P(F),y==null||y(F)};return m.jsx("div",{className:"bg-neutral-lighter/40 flex w-full items-center rounded-xl px-8",children:x?m.jsxs("form",{className:"flex w-full py-2",onSubmit:C,children:[m.jsxs("div",{className:"flex w-full",children:[m.jsx("label",{className:"sr-only",htmlFor:O,children:t||l}),m.jsx(Vs,{autoFocus:!0,className:"w-1/2 rounded-xl bg-white",error:!!w,helperText:w,id:O,placeholder:l,size:"small",value:E,variant:"outlined",onChange:F=>T(F.target.value)}),p&&m.jsx(Bs,{className:"ml-4 bg-white",size:"small",value:N,onChange:F=>L(F.target.value),children:c.map(F=>m.jsx(Vn,{value:F.value,children:F.label},String(F.value)))})]}),m.jsxs("div",{className:"flex gap-2 py-2",children:[m.jsx(Dr,{className:"h-min",color:"primary",loading:n,type:"submit",variant:"contained",children:i}),m.jsx(Dr,{className:"h-min",color:"primary",type:"button",variant:"outlined",onClick:j,children:o})]})]}):m.jsxs("button",{className:"flex cursor-pointer items-center border-none bg-transparent py-4","data-testid":v,style:{fontFamily:"inherit"},type:"button",onClick:$,children:[m.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:m.jsx(Bx,{})}),r&&m.jsx("span",{className:"text-primary ml-4 text-sm font-bold select-none hover:underline",children:r})]})})},s7=Me(m.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"}),"FileUploadOutlined"),i7=({accept:e,description:t,buttonLabel:n,onFileDrop:r})=>{const o=H.useId(),[i,l]=H.useState(!1),a=H.useCallback(p=>{var y;if(e.includes("image/*")&&p.type.startsWith("image/")||e.includes("video/*")&&p.type.startsWith("video/")||e.includes("application/pdf")&&p.type==="application/pdf")return!0;const h=e.split(",").map(g=>g.trim().toLowerCase()),f=`.${(y=p.name.split(".").pop())==null?void 0:y.toLowerCase()}`;return h.includes(f)},[e]),c=H.useCallback(p=>{p.preventDefault(),p.stopPropagation(),l(p.type==="dragenter"||p.type==="dragover")},[]),u=H.useCallback(p=>{var f;p.preventDefault(),p.stopPropagation(),l(!1);const h=(f=p.dataTransfer.files)==null?void 0:f[0];h&&a(h)&&r(h)},[r,a]),d=p=>{var f;const h=(f=p.target.files)==null?void 0:f[0];h&&a(h)&&(r(h),p.target.value="")};return m.jsxs(Je,{sx:{aspectRatio:"2 / 1",border:"2px dashed",borderColor:i?"primary.main":"#D9D9D9",borderRadius:2,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",cursor:"pointer",transition:p=>p.transitions.create("all",{duration:p.transitions.duration.standard}),userSelect:"none"},onDragEnter:c,onDragLeave:c,onDragOver:c,onDrop:u,children:[m.jsx("input",{accept:e,id:o,style:{display:"none"},type:"file",onChange:d}),m.jsxs(Je,{component:"label",htmlFor:o,sx:{width:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:[m.jsx(Je,{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:m.jsx(s7,{})}),m.jsx(ot,{sx:{color:"text.secondary",mb:5},variant:"body2",children:t}),m.jsx(Dr,{component:"span",sx:{minWidth:100,borderRadius:"1rem",fontSize:"1rem",fontWeight:700},variant:"contained",onKeyDown:p=>{var h;(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),(h=document.getElementById(o))==null||h.click())},children:n})]})]})},l7=({isOpen:e,severity:t,title:n,message:r,onClose:o})=>e?m.jsxs(Rm,{severity:t,onClose:o,children:[m.jsx(ot,{sx:{mt:"-2px",fontSize:"1rem",fontWeight:700},children:n}),m.jsx(ot,{sx:{mt:1,fontSize:"0.875rem"},children:r})]}):null,a7=Me(m.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),lh=H.createContext(null),YC=()=>H.useContext(lh),XC=({children:e,isOpen:t,onClose:n})=>{const r=Xt(),o=YC(),i=H.useRef(null);return m.jsxs(m.Fragment,{children:[m.jsx(Vm,{open:t,sx:{position:"absolute",inset:0,backgroundColor:"rgba(0,0,0,0.25)",pointerEvents:t?"auto":"none",zIndex:r.zIndex.drawer},onClick:n}),m.jsx(TC,{mountOnEnter:!0,unmountOnExit:!0,container:o?l=>{var a;return(a=o.current)!=null?a:l}:void 0,direction:"right",in:t,children:m.jsx(Br,{"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:m.jsx(Je,{ref:i,sx:{overflow:"auto",flex:1},children:m.jsx(Je,{sx:{display:"flex",flexDirection:"column",height:"100%",pt:"1rem",pr:1.5,pl:2},children:e})})})})]})},c7=256,u7=({children:e,navigationSlot:t,logoSlot:n,mobileLogoSlot:r,headerSlot:o,sideDrawerSlot:i,sideDrawerWidth:l=400,isSideDrawerOpen:a=!1,backgroundColor:c})=>{var f,y,g,v;const u=Xt(),[d,p]=H.useState(!1),h=H.useRef(null);return m.jsxs(Je,{sx:{height:"100vh",maxHeight:"100vh",display:"flex",flexDirection:"row",padding:"1rem 1rem 1rem 0",overflow:"hidden",bgcolor:(y=c!=null?c:(f=u.palette.neutral)==null?void 0:f.lighter)!=null?y:"#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:[m.jsxs(Je,{component:"nav","aria-label":"Main navigation",sx:{width:`${c7}px`,flexShrink:0,display:"flex",flexDirection:"column",px:2,py:"1rem",[u.breakpoints.down("md")]:{display:"none"}},children:[n&&m.jsx(Je,{sx:{mb:2},children:n}),t]}),m.jsxs(Je,{sx:{flex:1,display:"flex",flexDirection:"column",borderRadius:"8px",overflow:"hidden",bgcolor:(v=(g=u.palette.common)==null?void 0:g.white)!=null?v:"#FFFFFF"},children:[m.jsx(rf,{color:"transparent",elevation:0,position:"static",sx:{display:"none",[u.breakpoints.down("md")]:{display:"flex"}},children:m.jsxs(nu,{variant:"dense",sx:{justifyContent:"space-between",px:{xs:"15px",sm:"1rem"}},children:[m.jsxs(Je,{sx:{display:"flex",alignItems:"center",gap:1},children:[m.jsx(Tn,{"aria-label":"Open navigation menu",size:"small",onClick:()=>p(!0),children:m.jsx(a7,{})}),r]}),o&&m.jsx(Je,{sx:{display:"flex",alignItems:"center",gap:1},children:o})]})}),m.jsx(rf,{color:"transparent",elevation:0,position:"static",sx:{[u.breakpoints.down("md")]:{display:"none"}},children:m.jsx(nu,{variant:"dense",sx:{justifyContent:"flex-end",px:"2em"},children:o&&m.jsx(Je,{sx:{display:"flex",alignItems:"center",gap:1},children:o})})}),m.jsx(lh.Provider,{value:h,children:m.jsxs(Je,{ref:h,sx:{flex:1,overflow:"auto",position:"relative"},children:[m.jsxs(XC,{isOpen:d,onClose:()=>p(!1),children:[r&&m.jsx(Je,{sx:{mb:2},children:r}),t]}),e]})})]}),i]})},ah=b.createContext(void 0);process.env.NODE_ENV!=="production"&&(ah.displayName="GridApiContext");function nt(){const e=b.useContext(ah);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(`
384
- `));return e}const ch=b.createContext(void 0);process.env.NODE_ENV!=="production"&&(ch.displayName="GridRootPropsContext");const Le=()=>{const e=b.useContext(ch);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},d7=parseInt(b.version,10),ht=e=>{var t;if(d7>=19){const n=r=>{var o;return e(r,(o=r.ref)!=null?o:null)};return n.displayName=(t=e.displayName)!=null?t:e.name,n}return b.forwardRef(e)};var p7=(e,t,n)=>{if(t.length===1&&t[0]===n){let r=!1;try{const o={};e(o)===o&&(r=!0)}catch(o){}if(r){let o;try{throw new Error}catch(i){({stack:o}=i)}console.warn(`The result function returned its own inputs without modification. e.g
385
- \`createSelector([state => state.todos], todos => todos)\`
386
- This could lead to inefficient memoization and unnecessary re-renders.
387
- Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:o})}}},f7=(e,t,n)=>{const{memoize:r,memoizeOptions:o}=t,{inputSelectorResults:i,inputSelectorResultsCopy:l}=e,a=r(()=>({}),...o);if(!(a.apply(null,i)===a.apply(null,l))){let u;try{throw new Error}catch(d){({stack:u}=d)}console.warn(`An input selector returned a different result when passed same arguments.
388
- This means your output selector will likely run more frequently than intended.
389
- Avoid returning a new reference inside your input selector, e.g.
390
- \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:i,secondInputs:l,stack:u})}},m7={inputStabilityCheck:"once",identityFunctionCheck:"once"},ru=Symbol("NOT_FOUND");function h7(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function g7(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Ny=e=>Array.isArray(e)?e:[e];function b7(e){const t=Array.isArray(e[0])?e[0]:e;return g7(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Fy(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var y7=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...m7,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:p7},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:f7}}};function v7(e){let t;return{get(n){return t&&e(t.key,n)?t.value:ru},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function x7(e,t){let n=[];function r(a){const c=n.findIndex(u=>t(a,u.key));if(c>-1){const u=n[c];return c>0&&(n.splice(c,1),n.unshift(u)),u.value}return ru}function o(a,c){r(a)===ru&&(n.unshift({key:a,value:c}),n.length>e&&n.pop())}function i(){return n}function l(){n=[]}return{get:r,put:o,getEntries:i,clear:l}}var C7=(e,t)=>e===t;function w7(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:o}=n;for(let i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function ZC(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=C7,maxSize:o=1,resultEqualityCheck:i}=n,l=w7(r);let a=0;const c=o<=1?v7(l):x7(o,l);function u(){let d=c.get(arguments);if(d===ru){if(d=e.apply(null,arguments),a++,i){const h=c.getEntries().find(f=>i(f.value,d));h&&(d=h.value,a!==0&&a--)}c.put(arguments,d)}return d}return u.clearCache=()=>{c.clear(),u.resetResultsCount()},u.resultsCount=()=>a,u.resetResultsCount=()=>{a=0},u}var S7=class{constructor(e){this.value=e}deref(){return this.value}},k7=()=>typeof WeakRef=="undefined"?S7:WeakRef,QC=k7(),E7=0,Ay=1;function yc(){return{s:E7,v:void 0,o:null,p:null}}function T7(e){return e instanceof QC?e.deref():e}function JC(e,t={}){let n=yc();const{resultEqualityCheck:r}=t;let o,i=0;function l(){let a=n;const{length:c}=arguments;for(let p=0,h=c;p<h;p++){const f=arguments[p];if(typeof f=="function"||typeof f=="object"&&f!==null){let y=a.o;y===null&&(a.o=y=new WeakMap);const g=y.get(f);g===void 0?(a=yc(),y.set(f,a)):a=g}else{let y=a.p;y===null&&(a.p=y=new Map);const g=y.get(f);g===void 0?(a=yc(),y.set(f,a)):a=g}}const u=a;let d;if(a.s===Ay)d=a.v;else if(d=e.apply(null,arguments),i++,r){const p=T7(o);p!=null&&r(p,d)&&(d=p,i!==0&&i--),o=typeof d=="object"&&d!==null||typeof d=="function"?new QC(d):d}return u.s=Ay,u.v=d,d}return l.clearCache=()=>{n=yc(),l.resetResultsCount()},l.resultsCount=()=>i,l.resetResultsCount=()=>{i=0},l}function ew(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,l=0,a,c={},u=o.pop();typeof u=="object"&&(c=u,u=o.pop()),h7(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const d={...n,...c},{memoize:p,memoizeOptions:h=[],argsMemoize:f=JC,argsMemoizeOptions:y=[]}=d,g=Ny(h),v=Ny(y),x=b7(o),S=p(function(){return i++,u.apply(null,arguments)},...g);let w=!0;const k=f(function(){l++;const T=Fy(x,arguments);if(a=S.apply(null,T),process.env.NODE_ENV!=="production"){const{devModeChecks:N={}}=d,{identityFunctionCheck:P,inputStabilityCheck:O}=y7(w,N);if(P.shouldRun&&P.run(u,T,a),O.shouldRun){const j=Fy(x,arguments);O.run({inputSelectorResults:T,inputSelectorResultsCopy:j},{memoize:p,memoizeOptions:g},arguments)}w&&(w=!1)}return a},...v);return Object.assign(k,{resultFunc:u,memoizedResultFunc:S,dependencies:x,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>a,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:p,argsMemoize:f})};return Object.assign(r,{withTypes:()=>r}),r}var I7=ew(JC);const Dy=new Set;function br(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
391
- `):e;Dy.has(n)||(Dy.add(n),t==="error"?console.error(n):console.warn(n))}const P7=Object.is;function tw(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!P7(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}var vc={exports:{}},op={};/**
392
- * @license React
393
- * use-sync-external-store-shim.production.js
394
- *
395
- * Copyright (c) Meta Platforms, Inc. and affiliates.
396
- *
397
- * This source code is licensed under the MIT license found in the
398
- * LICENSE file in the root directory of this source tree.
399
- */var _y;function O7(){if(_y)return op;_y=1;var e=H;function t(p,h){return p===h&&(p!==0||1/p===1/h)||p!==p&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,l=e.useDebugValue;function a(p,h){var f=h(),y=r({inst:{value:f,getSnapshot:h}}),g=y[0].inst,v=y[1];return i(function(){g.value=f,g.getSnapshot=h,c(g)&&v({inst:g})},[p,f,h]),o(function(){return c(g)&&v({inst:g}),p(function(){c(g)&&v({inst:g})})},[p]),l(f),f}function c(p){var h=p.getSnapshot;p=p.value;try{var f=h();return!n(p,f)}catch(y){return!0}}function u(p,h){return h()}var d=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?u:a;return op.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,op}var sp={};/**
400
- * @license React
401
- * use-sync-external-store-shim.development.js
402
- *
403
- * Copyright (c) Meta Platforms, Inc. and affiliates.
404
- *
405
- * This source code is licensed under the MIT license found in the
406
- * LICENSE file in the root directory of this source tree.
407
- */var zy;function M7(){return zy||(zy=1,process.env.NODE_ENV!=="production"&&(function(){function e(f,y){return f===y&&(f!==0||1/f===1/y)||f!==f&&y!==y}function t(f,y){d||o.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=y();if(!p){var v=y();i(g,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}v=l({inst:{value:g,getSnapshot:y}});var x=v[0].inst,S=v[1];return c(function(){x.value=g,x.getSnapshot=y,n(x)&&S({inst:x})},[f,g,y]),a(function(){return n(x)&&S({inst:x}),f(function(){n(x)&&S({inst:x})})},[f]),u(g),g}function n(f){var y=f.getSnapshot;f=f.value;try{var g=y();return!i(f,g)}catch(v){return!0}}function r(f,y){return y()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=H,i=typeof Object.is=="function"?Object.is:e,l=o.useState,a=o.useEffect,c=o.useLayoutEffect,u=o.useDebugValue,d=!1,p=!1,h=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?r:t;sp.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),sp}var By;function R7(){return By||(By=1,process.env.NODE_ENV==="production"?vc.exports=O7():vc.exports=M7()),vc.exports}var uh=R7();function nw(e){return e.acceptsApiRef}function Vy(e,t){return nw(t)?t(e):t(e.current.state)}function ip(e,t,n,r){return nw(t)?t(e,n):t(e.current.state,r)}const rw=Object.is,dh=tw,j7=(e,t)=>e===t?!0:e.length===t.length&&e.every((n,r)=>n===t[r]),L7=(e,t)=>{let n=Object.is;return t instanceof Array?n=j7:t instanceof Object&&(n=dh),n(e,t)},ow=()=>({state:null,equals:null,selector:null,args:void 0}),ou=[],sw=()=>null,me=(e,t,n=rw)=>{process.env.NODE_ENV!=="production"&&(e.current.state||br(["MUI X: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]));const r=Er(ow),o=r.current.selector!==null,[i,l]=b.useState(o?null:Vy(e,t));r.current.state=i,r.current.equals=n,r.current.selector=t;const a=b.useCallback(()=>(r.current.subscription||(r.current.subscription=e.current.store.subscribe(()=>{const u=Vy(e,r.current.selector);r.current.equals(r.current.state,u)||(r.current.state=u,l(u))})),null),ou),c=b.useCallback(()=>()=>{r.current.subscription&&(r.current.subscription(),r.current.subscription=void 0)},ou);return uh.useSyncExternalStore(c,a,sw),i},ia=(e,t,n=void 0,r=rw)=>{process.env.NODE_ENV!=="production"&&(e.current.state||br(["MUI X: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]));const o=Er(ow),i=o.current.selector!==null,[l,a]=b.useState(i?null:ip(e,t,n,e.current.instanceId));o.current.state=l,o.current.equals=r,o.current.selector=t;const c=o.current.args;if(o.current.args=n,i&&!L7(c,n)){const p=ip(e,o.current.selector,o.current.args,e.current.instanceId);o.current.equals(o.current.state,p)||(o.current.state=p,a(p))}const u=b.useCallback(()=>(o.current.subscription||(o.current.subscription=e.current.store.subscribe(()=>{const p=ip(e,o.current.selector,o.current.args,e.current.instanceId);o.current.equals(o.current.state,p)||(o.current.state=p,a(p))})),null),ou),d=b.useCallback(()=>()=>{o.current.subscription&&(o.current.subscription(),o.current.subscription=void 0)},ou);return uh.useSyncExternalStore(d,u,sw),l},$7=ew({memoize:ZC,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),Hy=new WeakMap;function Lr(e){return"current"in e&&"instanceId"in e.current}const $r={id:"default"},Ue=(e,t,n,r,o,i,...l)=>{if(l.length>0)throw new Error("Unsupported number of selectors");let a;if(e&&t&&n&&r&&o&&i)a=(c,u)=>{const d=Lr(c),p=u!=null?u:d?c.current.instanceId:$r,h=d?c.current.state:c,f=e(h,p),y=t(h,p),g=n(h,p),v=r(h,p),x=o(h,p);return i(f,y,g,v,x)};else if(e&&t&&n&&r&&o)a=(c,u)=>{const d=Lr(c),p=u!=null?u:d?c.current.instanceId:$r,h=d?c.current.state:c,f=e(h,p),y=t(h,p),g=n(h,p),v=r(h,p);return o(f,y,g,v)};else if(e&&t&&n&&r)a=(c,u)=>{const d=Lr(c),p=u!=null?u:d?c.current.instanceId:$r,h=d?c.current.state:c,f=e(h,p),y=t(h,p),g=n(h,p);return r(f,y,g)};else if(e&&t&&n)a=(c,u)=>{const d=Lr(c),p=u!=null?u:d?c.current.instanceId:$r,h=d?c.current.state:c,f=e(h,p),y=t(h,p);return n(f,y)};else if(e&&t)a=(c,u)=>{const d=Lr(c),p=u!=null?u:d?c.current.instanceId:$r,h=d?c.current.state:c,f=e(h,p);return t(f)};else throw new Error("Missing arguments");return a.acceptsApiRef=!0,a},Fa=(e,t,n,r,o,i,...l)=>{if(l.length>0)throw new Error("Unsupported number of selectors");let a;if(e&&t&&n&&r&&o&&i)a=(c,u,d)=>{const p=Lr(c),h=d!=null?d:p?c.current.instanceId:$r,f=p?c.current.state:c,y=e(f,u,h),g=t(f,u,h),v=n(f,u,h),x=r(f,u,h),S=o(f,u,h);return i(y,g,v,x,S,u)};else if(e&&t&&n&&r&&o)a=(c,u,d)=>{const p=Lr(c),h=d!=null?d:p?c.current.instanceId:$r,f=p?c.current.state:c,y=e(f,u,h),g=t(f,u,h),v=n(f,u,h),x=r(f,u,h);return o(y,g,v,x,u)};else if(e&&t&&n&&r)a=(c,u,d)=>{const p=Lr(c),h=d!=null?d:p?c.current.instanceId:$r,f=p?c.current.state:c,y=e(f,u,h),g=t(f,u,h),v=n(f,u,h);return r(y,g,v,u)};else if(e&&t&&n)a=(c,u,d)=>{const p=Lr(c),h=d!=null?d:p?c.current.instanceId:$r,f=p?c.current.state:c,y=e(f,u,h),g=t(f,u,h);return n(y,g,u)};else if(e&&t)a=(c,u,d)=>{const p=Lr(c),h=d!=null?d:p?c.current.instanceId:$r,f=p?c.current.state:c,y=e(f,u,h);return t(y,u)};else throw new Error("Missing arguments");return a.acceptsApiRef=!0,a},yt=(...e)=>{const t=(n,r)=>{const o=Lr(n),i=o?n.current.instanceId:r!=null?r:$r,l=o?n.current.state:n;process.env.NODE_ENV!=="production"&&i.id==="default"&&br(["MUI X: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, for example `mySelector(apiRef)`, or pass the instance ID explicitly, for example `mySelector(state, apiRef.current.instanceId)`."]);const a=Hy.get(i),c=a!=null?a:new Map,u=c==null?void 0:c.get(e);if(c&&u)return u(l,i);const d=$7(...e);return a||Hy.set(i,c),c.set(e,d),d(l,i)};return t.acceptsApiRef=!0,t},pn=e=>e.dimensions,od=Ue(pn,e=>e.columnsTotalWidth),ph=e=>e.dimensions.rowHeight,N7=e=>e.dimensions.contentSize.height,F7=e=>e.dimensions.hasScrollX,A7=e=>e.dimensions.hasScrollY,iw=e=>e.dimensions.columnsTotalWidth<e.dimensions.viewportOuterSize.width,D7=e=>e.dimensions.headerHeight,_7=e=>e.dimensions.groupHeaderHeight,lw=e=>e.dimensions.hasScrollY?e.dimensions.scrollbarSize:0,z7=e=>{const t=e.dimensions.hasScrollX?e.dimensions.scrollbarSize:0,n=e.dimensions.viewportOuterSize.height-e.dimensions.minimumSize.height>0;return!(t===0&&!n)};function Po(e){return b.memo(e,tw)}const B7={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",columnsManagementDeleteIconLabel:"Clear",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorDoesNotContain:"does not contain",filterOperatorEquals:"equals",filterOperatorDoesNotEqual:"does not equal",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorDoesNotContain:"Does not contain",headerFilterOperatorEquals:"Equals",headerFilterOperatorDoesNotEqual:"Does not equal",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuAriaLabel:e=>`${e} column menu`,columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",MuiTablePagination:{},rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size"};function ut(e){return Ne("MuiDataGrid",e)}const B=$e("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","autosizing","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeader--lastUnpinned","columnHeader--siblingFocused","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementSearchInput","columnsManagementFooter","container--top","container--bottom","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderBottom","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","main--hasSkeletonLoadingOverlay","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","root--noToolbar","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","row--borderBottom","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","rowSkeleton","scrollArea--left","scrollArea--right","scrollArea--up","scrollArea--down","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--header","scrollbarFiller--borderTop","scrollbarFiller--borderBottom","scrollbarFiller--pinnedRight","selectedRowCount","sortButton","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScroller--hasScrollX","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","treeDataGroupingCellLoadingContainer","groupingCriteriaCell","groupingCriteriaCellToggle","groupingCriteriaCellLoadingContainer","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),Gy=1e3;class V7{constructor(t=Gy){this.timeouts=new Map,this.cleanupTimeout=Gy,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class H7{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}var nr=(function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e})(nr||{});class G7{}function W7(e){let t=0;return function(r,o,i,l){e.registry===null&&(e.registry=typeof FinalizationRegistry!="undefined"?new H7:new V7);const[a]=b.useState(new G7),c=b.useRef(null),u=b.useRef(null);u.current=i;const d=b.useRef(null);if(!c.current&&u.current){const p=(h,f,y)=>{var g;f&&!f.defaultMuiPrevented&&((g=u.current)==null||g.call(u,h,f,y))};c.current=r.current.subscribeEvent(o,p,l),t+=1,d.current={cleanupToken:t},e.registry.register(a,()=>{var h;(h=c.current)==null||h.call(c),c.current=null,d.current=null},d.current)}else!u.current&&c.current&&(c.current(),c.current=null,d.current&&(e.registry.unregister(d.current),d.current=null));b.useEffect(()=>{if(!c.current&&u.current){const p=(h,f,y)=>{var g;f&&!f.defaultMuiPrevented&&((g=u.current)==null||g.call(u,h,f,y))};c.current=r.current.subscribeEvent(o,p,l)}return d.current&&e.registry&&(e.registry.unregister(d.current),d.current=null),()=>{var p;(p=c.current)==null||p.call(c),c.current=null}},[r,o,l])}}const U7={registry:null},Pe=W7(U7),q7={isFirst:!0};function Et(e,t,n){Pe(e,t,n,q7)}const K7=.7,Y7=1.3,X7={compact:K7,comfortable:Y7,standard:1},pi=e=>e.density,Di=Ue(pi,e=>X7[e]),Z7=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],Q7=e=>{const{classes:t}=e;return ye({root:["editInputCell"]},ut,t)},J7=ne(_s,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})(({theme:e})=>z({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}})),aw=ht((e,t)=>{const n=Le(),{id:r,value:o,field:i,colDef:l,hasFocus:a,debounceMs:c=200,isProcessingProps:u,onValueChange:d}=e,p=Be(e,Z7),h=nt(),f=b.useRef(null),[y,g]=b.useState(o),v=Q7(n),x=b.useCallback(async w=>{const k=w.target.value;d&&await d(w,k);const E=h.current.getColumn(i);let T=k;E.valueParser&&(T=E.valueParser(k,h.current.getRow(r),E,h)),g(T),h.current.setEditCellValue({id:r,field:i,value:T,debounceMs:c,unstable_skipValueParser:!0},w)},[h,c,i,r,d]),S=h.current.unstable_getEditCellMeta(r,i);return b.useEffect(()=>{(S==null?void 0:S.changeReason)!=="debouncedSetEditCellValue"&&g(o)},[S,o]),Rt(()=>{a&&f.current.focus()},[a]),m.jsx(J7,z({inputRef:f,className:v.root,ownerState:n,fullWidth:!0,type:l.type==="number"?l.type:"text",value:y!=null?y:"",onChange:x,endAdornment:u?m.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},p,{ref:t}))});process.env.NODE_ENV!=="production"&&(aw.propTypes={api:s.object.isRequired,cellMode:s.oneOf(["edit","view"]).isRequired,changeReason:s.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:s.object.isRequired,debounceMs:s.number,field:s.string.isRequired,formattedValue:s.any,hasFocus:s.bool.isRequired,id:s.oneOfType([s.number,s.string]).isRequired,isEditable:s.bool,isProcessingProps:s.bool,isValidating:s.bool,onValueChange:s.func,row:s.any.isRequired,rowNode:s.object.isRequired,tabIndex:s.oneOf([-1,0]).isRequired,value:s.any});const eF=e=>m.jsx(aw,z({},e)),Tr=e=>e.rows,Aa=Ue(Tr,e=>e.totalRowCount),tF=Ue(Tr,e=>e.loading),nF=Ue(Tr,e=>e.totalTopLevelRowCount),mr=Ue(Tr,e=>e.dataRowIdToModelLookup),Wy=Ue(Tr,e=>e.dataRowIdToIdLookup),ln=Ue(Tr,e=>e.tree),rF=Ue(Tr,e=>e.groupsToFetch),oF=Ue(Tr,e=>e.groupingName),Uy=Ue(Tr,e=>e.treeDepths),Hs=yt(Tr,e=>{var n;const t=Object.entries(e.treeDepths);return t.length===0?1:((n=t.filter(([,r])=>r>0).map(([r])=>Number(r)).sort((r,o)=>o-r)[0])!=null?n:0)+1}),Pl=Ue(Tr,e=>e.dataRowIds),sF=Ue(Tr,e=>e==null?void 0:e.additionalRowGroups),_i=yt(sF,e=>{var n,r,o,i;const t=e==null?void 0:e.pinnedRows;return{bottom:(r=(n=t==null?void 0:t.bottom)==null?void 0:n.map(l=>{var a;return{id:l.id,model:(a=l.model)!=null?a:{}}}))!=null?r:[],top:(i=(o=t==null?void 0:t.top)==null?void 0:o.map(l=>{var a;return{id:l.id,model:(a=l.model)!=null?a:{}}}))!=null?i:[]}}),cw=Ue(_i,e=>{var t,n;return(((t=e==null?void 0:e.top)==null?void 0:t.length)||0)+(((n=e==null?void 0:e.bottom)==null?void 0:n.length)||0)}),uw=(e,t)=>t&&e.length>1?(process.env.NODE_ENV!=="production"&&br(["MUI X: The `sortModel` can only contain a single item when the `disableMultipleColumnsSorting` prop is set to `true`.","If you are using the community version of the Data Grid, this prop is always `true`."],"error"),[e[0]]):e,qy=(e,t)=>n=>z({},n,{sorting:z({},n.sorting,{sortModel:uw(e,t)})}),iF=e=>e==="desc",lF=(e,t)=>{const n=t.current.getColumn(e.field);if(!n||e.sort===null)return null;let r;return n.getSortComparator?r=n.getSortComparator(e.sort):r=iF(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator,r?{getSortCellParams:i=>({id:i,field:n.field,rowNode:ln(t)[i],value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}:null},aF=(e,t,n)=>e.reduce((r,o,i)=>{if(r!==0)return r;const l=t.params[i],a=n.params[i];return r=o.comparator(l.value,a.value,l,a),r},0),cF=(e,t)=>{const n=e.map(r=>lF(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(i=>i.getSortCellParams(o.id))})).sort((o,i)=>aF(n,o,i)).map(o=>o.node.id)},Ky=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},fh=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,uF=new Intl.Collator,dF=(e,t)=>{const n=fh(e,t);return n!==null?n:typeof e=="string"?uF.compare(e.toString(),t.toString()):e-t},dw=(e,t)=>{const n=fh(e,t);return n!==null?n:Number(e)-Number(t)},pw=(e,t)=>{const n=fh(e,t);return n!==null?n:e>t?1:e<t?-1:0},pF=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","clearButton","InputProps","variant"];function Zn(e){var k;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,tabIndex:l,disabled:a,clearButton:c,InputProps:u,variant:d="standard"}=e,p=Be(e,pF),h=Jn(),[f,y]=b.useState(lp(t.value)),[g,v]=b.useState(!1),x=xt(),S=Le(),w=b.useCallback(E=>{const T=lp(E.target.value);y(T),v(!0),h.start(S.filterDebounceMs,()=>{const N=z({},t,{value:r==="number"&&!Number.isNaN(Number(T))?Number(T):T,fromInput:x});n(N),v(!1)})},[h,S.filterDebounceMs,t,r,x,n]);return b.useEffect(()=>{(t.fromInput!==x||t.value==null)&&y(lp(t.value))},[x,t]),m.jsx(S.slots.baseTextField,z({id:x,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:f!=null?f:"",onChange:w,variant:d,type:r||"text",InputProps:z({},g||c?{endAdornment:g?m.jsx(S.slots.loadIcon,{fontSize:"small",color:"action"}):c}:{},{disabled:a},u,{inputProps:z({tabIndex:l},u==null?void 0:u.inputProps)}),InputLabelProps:{shrink:!0},inputRef:i},p,(k=S.slotProps)==null?void 0:k.baseTextField))}function lp(e){if(!(e==null||e===""))return String(e)}process.env.NODE_ENV!=="production"&&(Zn.propTypes={apiRef:s.shape({current:s.object.isRequired}).isRequired,applyValue:s.func.isRequired,clearButton:s.node,focusElementRef:s.oneOfType([s.func,s.object]),isFilterActive:s.bool,item:s.shape({field:s.string.isRequired,id:s.oneOfType([s.number,s.string]),operator:s.string.isRequired,value:s.any}).isRequired});function fw(e){return typeof e=="number"&&!Number.isNaN(e)}function fF(e){return typeof e=="function"}function mh(e){return typeof e=="object"&&e!==null}function mF(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}function su(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const rr=(e,t,n)=>Math.max(t,Math.min(n,e));function Yy(e,t){return Array.from({length:t-e}).map((n,r)=>e+r)}function Uo(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(!Uo(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;for(let i=0;i<o.length;i+=1){const l=o[i];if(!Uo(l[1],t.get(l[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=n.length;if(r!==Object.keys(t).length)return!1;for(let o=0;o<r;o+=1)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(let o=0;o<r;o+=1){const i=n[o];if(!Uo(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function hF(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function gF(e){const t=hF(e);return(n,r)=>n+(r-n)*t()}function mw(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const ys=(e,t)=>n=>{e&&t(n)},bF=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],yF=["key"];function hh(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,color:l,error:a,helperText:c,size:u,variant:d="standard"}=e,p=Be(e,bF),h={color:l,error:a,helperText:c,size:u,variant:d},[f,y]=b.useState(t.value||[]),g=xt(),v=Le();b.useEffect(()=>{var w;const S=(w=t.value)!=null?w:[];y(S.map(String))},[t.value]);const x=b.useCallback((S,w)=>{y(w.map(String)),n(z({},t,{value:[...w.map(k=>r==="number"?Number(k):k)]}))},[n,t,r]);return m.jsx(Bm,z({multiple:!0,freeSolo:!0,options:[],filterOptions:(S,w)=>{const{inputValue:k}=w;return k==null||k===""?[]:[k]},id:g,value:f,onChange:x,renderTags:(S,w)=>S.map((k,E)=>{const T=w({index:E}),{key:N}=T,P=Be(T,yF);return m.jsx(v.slots.baseChip,z({variant:"outlined",size:"small",label:k},P),N)}),renderInput:S=>{var w;return m.jsx(v.slots.baseTextField,z({},S,{label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:z({},S.InputLabelProps,{shrink:!0}),inputRef:i,type:r||"text"},h,(w=v.slotProps)==null?void 0:w.baseTextField))}},p))}process.env.NODE_ENV!=="production"&&(hh.propTypes={apiRef:s.shape({current:s.object.isRequired}).isRequired,applyValue:s.func.isRequired,focusElementRef:s.oneOfType([s.func,s.object]),item:s.shape({field:s.string.isRequired,id:s.oneOfType([s.number,s.string]),operator:s.string.isRequired,value:s.any}).isRequired,type:s.oneOf(["date","datetime-local","number","text"])});var co=(function(e){return e.Cell="cell",e.Row="row",e})(co||{}),St=(function(e){return e.Edit="edit",e.View="view",e})(St||{}),Gt=(function(e){return e.Edit="edit",e.View="view",e})(Gt||{}),Ln=(function(e){return e.And="and",e.Or="or",e})(Ln||{}),bo=(function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e})(bo||{}),Rr=(function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e})(Rr||{}),$o=(function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e})($o||{}),qr=(function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e})(qr||{});function hw(e){return e.field!==void 0}const gw={filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}},la=()=>({items:[],logicOperator:Ln.And,quickFilterValues:[],quickFilterLogicOperator:Ln.And});function bw(e){return{current:e.current.getPublicApi()}}let No=(function(e){return e.LEFT="left",e.RIGHT="right",e})({});const iu={left:[],right:[]},yw=e=>e.isRtl,so=e=>e.columns,Co=Ue(so,e=>e.orderedFields),Oo=Ue(so,e=>e.lookup),yr=yt(Co,Oo,(e,t)=>e.map(n=>t[n])),hr=Ue(so,e=>e.columnVisibilityModel),Zt=yt(yr,hr,(e,t)=>e.filter(n=>t[n.field]!==!1)),zi=yt(Zt,e=>e.map(t=>t.field)),vw=e=>e.pinnedColumns;yt(vw,Co,yw,(e,t,n)=>xw(e,t,n));const Bi=yt(so,vw,zi,yw,(e,t,n,r)=>{const o=xw(t,n,r);return{left:o.left.map(l=>e.lookup[l]),right:o.right.map(l=>e.lookup[l])}});function xw(e,t,n){var a,c;if(!Array.isArray(e.left)&&!Array.isArray(e.right)||((a=e.left)==null?void 0:a.length)===0&&((c=e.right)==null?void 0:c.length)===0)return iu;const r=(u,d)=>Array.isArray(u)?u.filter(p=>d.includes(p)):[],o=r(e.left,t),i=t.filter(u=>!o.includes(u)),l=r(e.right,i);return n?{left:l,right:o}:{left:o,right:l}}const ss=yt(Zt,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),Cw=yt(yr,e=>e.filter(t=>t.filterable)),vF=yt(yr,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),xF=yt(yr,e=>e.some(t=>t.colSpan!==void 0));let cl;function CF(){if(cl!==void 0)return cl;try{cl=new Function("return true")()}catch(e){cl=!1}return cl}const gf=(e,t)=>{const n=z({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=Oo(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},gh=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?(process.env.NODE_ENV!=="production"&&br(["MUI X: The `filterModel` can only contain a single item when the `disableMultipleColumnsFiltering` prop is set to `true`.","If you are using the community version of the Data Grid, this prop is always `true`."],"error"),o=[e.items[0]]):o=e.items;const i=r&&o.some(a=>a.id==null),l=o.some(a=>a.operator==null);return process.env.NODE_ENV!=="production"&&i&&br("MUI X: The `id` field is required on `filterModel.items` when you use multiple filters.","error"),process.env.NODE_ENV!=="production"&&l&&br("MUI X: The `operator` field is required on `filterModel.items`, one or more of your filtering item has no `operator` provided.","error"),l||i?z({},e,{items:o.map(a=>gf(a,n))}):e.items!==o?z({},e,{items:o}):e},Xy=(e,t,n)=>r=>z({},r,{filterModel:gh(e,t,n)}),aa=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,ww=(e,t)=>{var d;if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){const p=n.valueParser;r=Array.isArray(e.value)?(d=e.value)==null?void 0:d.map(h=>p(h,void 0,n,t)):p(e.value,void 0,n,t)}else r=e.value;const{ignoreDiacritics:o}=t.current.rootProps;o&&(r=aa(r));const i=z({},e,{value:r}),l=n.filterOperators;if(!(l!=null&&l.length))throw new Error(`MUI X: No filter operators found for column '${n.field}'.`);const a=l.find(p=>p.value===i.operator);if(!a)throw new Error(`MUI X: No filter operator found for column '${n.field}' and operator value '${i.operator}'.`);const c=bw(t),u=a.getApplyFilterFn(i,n);return typeof u!="function"?null:{item:i,fn:p=>{let h=t.current.getRowValue(p,n);return o&&(h=aa(h)),u(h,p,n,c)}}};let Zy=1;const wF=(e,t,n)=>{const{items:r}=e,o=r.map(a=>ww(a,t)).filter(a=>!!a);if(o.length===0)return null;if(n||!CF())return(a,c)=>{const u={};for(let d=0;d<o.length;d+=1){const p=o[d];(!c||c(p.item.field))&&(u[p.item.id]=p.fn(a))}return u};const i=new Function("appliers","row","shouldApplyFilter",`"use strict";
408
- ${o.map((a,c)=>`const shouldApply${c} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(a.item.field)});`).join(`
409
- `)}
410
-
411
- const result$$ = {
412
- ${o.map((a,c)=>` ${JSON.stringify(String(a.item.id))}: !shouldApply${c} ? false : appliers[${c}].fn(row),`).join(`
413
- `)}
414
- };
415
-
416
- return result$$;`.replaceAll("$$",String(Zy)));return Zy+=1,(a,c)=>i(o,a,c)},Sw=e=>{var t;return(t=e.quickFilterExcludeHiddenColumns)!=null?t:!0},SF=(e,t)=>{var a,c;const n=(c=(a=e.quickFilterValues)==null?void 0:a.filter(Boolean))!=null?c:[];if(n.length===0)return null;const r=Sw(e)?zi(t):Co(t),o=[],{ignoreDiacritics:i}=t.current.rootProps,l=bw(t);return r.forEach(u=>{const d=t.current.getColumn(u),p=d==null?void 0:d.getApplyQuickFilterFn;p&&o.push({column:d,appliers:n.map(h=>{const f=i?aa(h):h;return{fn:p(f,d,l)}})})}),function(d,p){const h={};e:for(let f=0;f<n.length;f+=1){const y=n[f];for(let g=0;g<o.length;g+=1){const{column:v,appliers:x}=o[g],{field:S}=v;if(p&&!p(S))continue;const w=x[f];let k=t.current.getRowValue(d,v);if(w.fn===null)continue;if(i&&(k=aa(k)),w.fn(k,d,v,l)){h[y]=!0;continue e}}h[y]=!1}return h}},kF=(e,t,n)=>{const r=wF(e,t,n),o=SF(e,t);return function(l,a,c){var u,d;c.passingFilterItems=(u=r==null?void 0:r(l,a))!=null?u:null,c.passingQuickFilterValues=(d=o==null?void 0:o(l,a))!=null?d:null}},Qy=e=>e!=null,EF=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>ww(r,t)!==null)),e.cleanedFilterItems),TF=(e,t,n,r,o)=>{var c,u;const i=EF(o,r,n.items),l=e.filter(Qy),a=t.filter(Qy);if(l.length>0){const d=h=>l.some(f=>f[h.id]);if(((c=n.logicOperator)!=null?c:la().logicOperator)===Ln.And){if(!i.every(d))return!1}else if(!i.some(d))return!1}if(a.length>0&&n.quickFilterValues!=null){const d=h=>a.some(f=>f[h]);if(((u=n.quickFilterLogicOperator)!=null?u:la().quickFilterLogicOperator)===Ln.And){if(!n.quickFilterValues.every(d))return!1}else if(!n.quickFilterValues.some(d))return!1}return!0},IF=e=>{if(!e)return null;const t=new RegExp(su(e),"i");return(n,r,o,i)=>{let l=i.current.getRowFormattedValue(r,o);return i.current.ignoreDiacritics&&(l=aa(l)),l!=null?t.test(l.toString()):!1}},Jy=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new RegExp(su(r),"i");return i=>{if(i==null)return t;const l=o.test(String(i));return t?!l:l}},e1=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return i=>{if(i==null)return t;const l=o.compare(r,i.toString())===0;return t?!l:l}},t1=e=>()=>t=>{const n=t===""||t==null;return e?!n:n},PF=(e=!1)=>[{value:"contains",getApplyFilterFn:Jy(e,!1),InputComponent:Zn},{value:"doesNotContain",getApplyFilterFn:Jy(e,!0),InputComponent:Zn},{value:"equals",getApplyFilterFn:e1(e,!1),InputComponent:Zn},{value:"doesNotEqual",getApplyFilterFn:e1(e,!0),InputComponent:Zn},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${su(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Zn},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${su(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:Zn},{value:"isEmpty",getApplyFilterFn:t1(!1),requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:t1(!0),requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:hh}],Fr={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:dF,type:"string",align:"left",filterOperators:PF(),renderEditCell:eF,getApplyQuickFilterFn:IF},OF=["open","target","onClose","children","position","className","onExited"],MF=e=>{const{classes:t}=e;return ye({root:["menu"]},ut,t)},RF=ne(ns,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})(({theme:e})=>({zIndex:e.zIndex.modal,[`& .${B.menuList}`]:{outline:0}})),jF={"bottom-start":"top left","bottom-end":"top right"};function sd(e){var g;const{open:t,target:n,onClose:r,children:o,position:i,className:l,onExited:a}=e,c=Be(e,OF),u=nt(),d=Le(),p=MF(d),h=b.useRef(null);Rt(()=>{var v,x;t?h.current=document.activeElement instanceof HTMLElement?document.activeElement:null:((x=(v=h.current)==null?void 0:v.focus)==null||x.call(v),h.current=null)},[t]),b.useEffect(()=>{const v=t?"menuOpen":"menuClose";u.current.publishEvent(v,{target:n})},[u,t,n]);const f=v=>x=>{v&&v(),a&&a(x)},y=v=>{v.target&&(n===v.target||n!=null&&n.contains(v.target))||r(v)};return m.jsx(RF,z({as:d.slots.basePopper,className:ue(p.root,l),ownerState:d,open:t,anchorEl:n,transition:!0,placement:i},c,(g=d.slotProps)==null?void 0:g.basePopper,{children:({TransitionProps:v,placement:x})=>m.jsx(na,{onClickAway:y,mouseEvent:"onMouseDown",children:m.jsx(Oi,z({},v,{style:{transformOrigin:jF[x]},onExited:f(v==null?void 0:v.onExited),children:m.jsx(Br,{children:o})}))})}))}process.env.NODE_ENV!=="production"&&(sd.propTypes={children:s.node,onClose:s.func.isRequired,onExited:s.func,open:s.bool.isRequired,position:s.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),target:xr});const LF=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],$F=e=>typeof e.getActions=="function";function kw(e){var R;const{colDef:t,id:n,hasFocus:r,tabIndex:o,position:i="bottom-end",focusElementRef:l}=e,a=Be(e,LF),[c,u]=b.useState(-1),[d,p]=b.useState(!1),h=nt(),f=b.useRef(null),y=b.useRef(null),g=b.useRef(!1),v=b.useRef({}),x=Nn(),S=xt(),w=xt(),k=Le();if(!$F(t))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const E=t.getActions(h.current.getRowParams(n)),T=E.filter(_=>!_.props.showInMenu),N=E.filter(_=>_.props.showInMenu),P=T.length+(N.length?1:0);b.useLayoutEffect(()=>{r||Object.entries(v.current).forEach(([_,V])=>{V==null||V.stop({},()=>{delete v.current[_]})})},[r]),b.useEffect(()=>{if(c<0||!f.current||c>=f.current.children.length)return;f.current.children[c].focus({preventScroll:!0})},[c]),b.useEffect(()=>{r||(u(-1),g.current=!1)},[r]),b.useImperativeHandle(l,()=>({focus(){if(!g.current){const _=E.findIndex(V=>!V.props.disabled);u(_)}}}),[E]),b.useEffect(()=>{c>=P&&u(P-1)},[c,P]);const O=()=>{p(!0),u(P-1),g.current=!0},j=()=>{p(!1)},$=_=>{_.stopPropagation(),_.preventDefault(),d?j():O()},C=_=>V=>{v.current[_]=V},L=(_,V)=>W=>{u(_),g.current=!0,V&&V(W)},F=_=>{if(P<=1)return;const V=(I,D)=>{var K;if(I<0||I>E.length)return I;const A=(D==="left"?-1:1)*(x?-1:1);return(K=E[I+A])!=null&&K.props.disabled?V(I+A,D):I+A};let W=c;_.key==="ArrowRight"?W=V(c,"right"):_.key==="ArrowLeft"&&(W=V(c,"left")),!(W<0||W>=P)&&W!==c&&(_.preventDefault(),_.stopPropagation(),u(W))},M=_=>{_.key==="Tab"&&_.preventDefault(),["Tab","Escape"].includes(_.key)&&j()};return m.jsxs("div",z({role:"menu",ref:f,tabIndex:-1,className:B.actionsCell,onKeyDown:F},a,{children:[T.map((_,V)=>b.cloneElement(_,{key:V,touchRippleRef:C(V),onClick:L(V,_.props.onClick),tabIndex:c===V?o:-1})),N.length>0&&w&&m.jsx(k.slots.baseIconButton,z({ref:y,id:w,"aria-label":h.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":d,"aria-controls":d?S:void 0,role:"menuitem",size:"small",onClick:$,touchRippleRef:C(w),tabIndex:c===T.length?o:-1},(R=k.slotProps)==null?void 0:R.baseIconButton,{children:m.jsx(k.slots.moreActionsIcon,{fontSize:"small"})})),N.length>0&&m.jsx(sd,{open:d,target:y.current,position:i,onClose:j,children:m.jsx(La,{id:S,className:B.menuList,onKeyDown:M,"aria-labelledby":w,variant:"menu",autoFocusItem:!0,children:N.map((_,V)=>b.cloneElement(_,{key:V,closeMenu:j}))})})]}))}process.env.NODE_ENV!=="production"&&(kw.propTypes={api:s.object,cellMode:s.oneOf(["edit","view"]).isRequired,colDef:s.object.isRequired,field:s.string.isRequired,focusElementRef:s.oneOfType([s.func,s.shape({current:s.shape({focus:s.func.isRequired})})]),formattedValue:s.any,hasFocus:s.bool.isRequired,id:s.oneOfType([s.number,s.string]).isRequired,isEditable:s.bool,position:s.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),row:s.any.isRequired,rowNode:s.object.isRequired,tabIndex:s.oneOf([-1,0]).isRequired,value:s.any});const NF=e=>m.jsx(kw,z({},e)),id="actions",FF=z({},Fr,{sortable:!1,filterable:!1,aggregable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:NF,getApplyQuickFilterFn:void 0}),En="auto-generated-group-node-root",Mi=Symbol("mui.id_autogenerated"),AF=()=>({type:"group",id:En,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function DF(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI X: The Data Grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(`
417
- `))}const ld=(e,t,n)=>{const r=t?t(e):e.id;return DF(r,e,n),r},jc=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={},l={};for(let a=0;a<e.length;a+=1){const c=e[a],u=ld(c,t);i[u]=c,l[u]=u,o.rows.push(u)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToIdLookup:l,dataRowIdToModelLookup:i}},Ew=({tree:e,rowCountProp:t=0})=>{const n=e[En];return Math.max(t,n.children.length+(n.footerId==null?0:1))},Tw=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o,previousGroupsToFetch:i})=>{const l=e.current.caches.rows,{tree:a,treeDepths:c,dataRowIds:u,groupingName:d,groupsToFetch:p=[]}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:l.updates,dataRowIdToIdLookup:l.dataRowIdToIdLookup,dataRowIdToModelLookup:l.dataRowIdToModelLookup,previousGroupsToFetch:i}),h=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:a,treeDepths:c,dataRowIdToIdLookup:l.dataRowIdToIdLookup,dataRowIds:u,dataRowIdToModelLookup:l.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},z({},h,{totalRowCount:Math.max(t,h.dataRowIds.length),totalTopLevelRowCount:Ew({tree:h.tree,rowCountProp:t}),groupingName:d,loading:n,groupsToFetch:p})},Ri=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,bh=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let i=0;i<r.children.length;i+=1){const l=r.children[i];(!n||!Ri(e[l]))&&o.push(l);const a=bh(e,l,n);for(let c=0;c<a.length;c+=1)o.push(a[c])}return!n&&r.footerId!=null&&o.push(r.footerId),o},n1=({previousCache:e,getRowId:t,updates:n,groupKeys:r})=>{var d,p,h;if(e.updates.type==="full")throw new Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");const o=new Map;n.forEach(f=>{const y=ld(f,t,"A row was provided without id when calling updateRows():");o.has(y)?o.set(y,z({},o.get(y),f)):o.set(y,f)});const i={type:"partial",actions:{insert:[...(d=e.updates.actions.insert)!=null?d:[]],modify:[...(p=e.updates.actions.modify)!=null?p:[]],remove:[...(h=e.updates.actions.remove)!=null?h:[]]},idToActionLookup:z({},e.updates.idToActionLookup),groupKeys:r},l=z({},e.dataRowIdToModelLookup),a=z({},e.dataRowIdToIdLookup),c={insert:{},modify:{},remove:{}};o.forEach((f,y)=>{const g=i.idToActionLookup[y];if(f._action==="delete"){if(g==="remove"||!l[y])return;g!=null&&(c[g][y]=!0),i.actions.remove.push(y),delete l[y],delete a[y];return}const v=l[y];if(v){g==="remove"?(c.remove[y]=!0,i.actions.modify.push(y)):g==null&&i.actions.modify.push(y),l[y]=z({},v,f);return}g==="remove"?(c.remove[y]=!0,i.actions.insert.push(y)):g==null&&i.actions.insert.push(y),l[y]=f,a[y]=y});const u=Object.keys(c);for(let f=0;f<u.length;f+=1){const y=u[f],g=c[y];Object.keys(g).length>0&&(i.actions[y]=i.actions[y].filter(v=>!g[v]))}return{dataRowIdToModelLookup:l,dataRowIdToIdLookup:a,updates:i,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}},Iw="var(--DataGrid-overlayHeight, calc(var(--height) * 2))";function r1(e,t,n){const r=[];return t.forEach(o=>{const i=ld(o,n,"A row was provided without id when calling updateRows():"),l=e.current.getRowNode(i);if((l==null?void 0:l.type)==="pinnedRow"){const a=e.current.caches.pinnedRows,c=a.idLookup[i];c&&(a.idLookup[i]=z({},c,o))}else r.push(o)}),r}let o1=!1;const Pw=(e,t,n)=>typeof e=="number"&&e>0?e:(process.env.NODE_ENV!=="production"&&!o1&&typeof e!="undefined"&&e!==null&&(console.warn(n),o1=!0),t),_F=["MUI X: The `rowHeight` prop should be a number greater than 0.","The default value will be used instead."].join(`
418
- `),zF=["MUI X: The `getRowHeight` prop should return a number greater than 0 or 'auto'.","The default value will be used instead."].join(`
419
- `),BF="__tree_data_group__",Ow="__row_group_by_columns_group__",ad="__detail_panel_toggle__";let st=(function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.VIRTUAL=3]="VIRTUAL",e})({});const VF=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"],HF=e=>{const{classes:t}=e;return ye({root:["booleanCell"]},ut,t)};function Mw(e){const{value:t,rowNode:n}=e,r=Be(e,VF),o=nt(),i=Le(),l={classes:i.classes},a=HF(l),u=me(o,Hs)>0&&n.type==="group"&&i.treeData===!1,d=b.useMemo(()=>t?i.slots.booleanCellTrueIcon:i.slots.booleanCellFalseIcon,[i.slots.booleanCellFalseIcon,i.slots.booleanCellTrueIcon,t]);return u&&t===void 0?null:m.jsx(d,z({fontSize:"small",className:a.root,titleAccess:o.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},r))}process.env.NODE_ENV!=="production"&&(Mw.propTypes={api:s.object.isRequired,cellMode:s.oneOf(["edit","view"]).isRequired,colDef:s.object.isRequired,field:s.string.isRequired,focusElementRef:s.oneOfType([s.func,s.shape({current:s.shape({focus:s.func.isRequired})})]),formattedValue:s.any,hasFocus:s.bool.isRequired,hideDescendantCount:s.bool,id:s.oneOfType([s.number,s.string]).isRequired,isEditable:s.bool,row:s.any.isRequired,rowNode:s.object.isRequired,tabIndex:s.oneOf([-1,0]).isRequired,value:s.any});const GF=b.memo(Mw),WF=e=>e.field!==Ow&&Ri(e.rowNode)?"":m.jsx(GF,z({},e)),UF=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],qF=e=>{const{classes:t}=e;return ye({root:["editBooleanCell"]},ut,t)};function Rw(e){var x;const{id:t,value:n,field:r,className:o,hasFocus:i,onValueChange:l}=e,a=Be(e,UF),c=nt(),u=b.useRef(null),d=xt(),[p,h]=b.useState(n),f=Le(),y={classes:f.classes},g=qF(y),v=b.useCallback(async S=>{const w=S.target.checked;l&&await l(S,w),h(w),await c.current.setEditCellValue({id:t,field:r,value:w},S)},[c,r,t,l]);return b.useEffect(()=>{h(n)},[n]),Rt(()=>{i&&u.current.focus()},[i]),m.jsx("label",z({htmlFor:d,className:ue(g.root,o)},a,{children:m.jsx(f.slots.baseCheckbox,z({id:d,inputRef:u,checked:!!p,onChange:v,size:"small"},(x=f.slotProps)==null?void 0:x.baseCheckbox))}))}process.env.NODE_ENV!=="production"&&(Rw.propTypes={api:s.object.isRequired,cellMode:s.oneOf(["edit","view"]).isRequired,changeReason:s.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:s.object.isRequired,field:s.string.isRequired,formattedValue:s.any,hasFocus:s.bool.isRequired,id:s.oneOfType([s.number,s.string]).isRequired,isEditable:s.bool,isProcessingProps:s.bool,isValidating:s.bool,onValueChange:s.func,row:s.any.isRequired,rowNode:s.object.isRequired,tabIndex:s.oneOf([-1,0]).isRequired,value:s.any});const KF=e=>m.jsx(Rw,z({},e)),YF=["item","applyValue","apiRef","focusElementRef","isFilterActive","clearButton","tabIndex","label","variant","InputLabelProps"],Lc=e=>{if(String(e).toLowerCase()==="true")return!0;if(String(e).toLowerCase()==="false")return!1},XF=ne("div")({display:"flex",alignItems:"center",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function jw(e){var k,E,T,N;const{item:t,applyValue:n,apiRef:r,focusElementRef:o,clearButton:i,tabIndex:l,label:a,variant:c="standard"}=e,u=Be(e,YF),[d,p]=b.useState(Lc(t.value)),h=Le(),f=xt(),y=xt(),g=((k=h.slotProps)==null?void 0:k.baseSelect)||{},v=(E=g.native)!=null?E:!1,x=((T=h.slotProps)==null?void 0:T.baseSelectOption)||{},S=b.useCallback(P=>{const O=Lc(P.target.value);p(O),n(z({},t,{value:O}))},[n,t]);b.useEffect(()=>{p(Lc(t.value))},[t.value]);const w=a!=null?a:r.current.getLocaleText("filterPanelInputLabel");return m.jsxs(XF,{children:[m.jsxs(h.slots.baseFormControl,{fullWidth:!0,children:[m.jsx(h.slots.baseInputLabel,z({},(N=h.slotProps)==null?void 0:N.baseInputLabel,{id:f,shrink:!0,variant:c,children:w})),m.jsxs(h.slots.baseSelect,z({labelId:f,id:y,label:w,value:d===void 0?"":String(d),onChange:S,variant:c,notched:c==="outlined"?!0:void 0,native:v,displayEmpty:!0,inputProps:{ref:o,tabIndex:l}},u,g,{children:[m.jsx(h.slots.baseSelectOption,z({},x,{native:v,value:"",children:r.current.getLocaleText("filterValueAny")})),m.jsx(h.slots.baseSelectOption,z({},x,{native:v,value:"true",children:r.current.getLocaleText("filterValueTrue")})),m.jsx(h.slots.baseSelectOption,z({},x,{native:v,value:"false",children:r.current.getLocaleText("filterValueFalse")}))]}))]}),i]})}process.env.NODE_ENV!=="production"&&(jw.propTypes={apiRef:s.shape({current:s.object.isRequired}).isRequired,applyValue:s.func.isRequired,clearButton:s.node,focusElementRef:Fn,isFilterActive:s.bool,item:s.shape({field:s.string.isRequired,id:s.oneOfType([s.number,s.string]),operator:s.string.isRequired,value:s.any}).isRequired});const ZF=()=>[{value:"is",getApplyFilterFn:e=>{const t=Lc(e.value);return t===void 0?null:n=>!!n===t},InputComponent:jw}],QF=(e,t,n,r)=>e?r.current.getLocaleText("booleanCellTrueLabel"):r.current.getLocaleText("booleanCellFalseLabel"),JF=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},Lw=z({},Fr,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:WF,renderEditCell:KF,sortComparator:dw,valueFormatter:QF,filterOperators:ZF(),getApplyQuickFilterFn:void 0,aggregable:!1,pastedValueParser:e=>JF(e)}),$w=e=>e.sorting,Vi=Ue($w,e=>e.sortedRows),yh=yt(Vi,mr,ln,(e,t,n)=>e.reduce((r,o)=>{const i=t[o];if(i)r.push({id:o,model:i});else{const l=n[o];l&&Ri(l)&&r.push({id:o,model:{[Mi]:o}})}return r},[])),jr=Ue($w,e=>e.sortModel),e8=yt(jr,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{}));yt(Vi,e=>e.reduce((t,n,r)=>(t[n]=r,t),Object.create(null)));const cd=e=>e.filter,yn=Ue(cd,e=>e.filterModel),t8=Ue(yn,e=>e.quickFilterValues),n8=e=>e.visibleRowsLookup,Hi=Ue(cd,e=>e.filteredRowsLookup);Ue(cd,e=>e.filteredChildrenCountLookup);Ue(cd,e=>e.filteredDescendantCountLookup);const is=yt(n8,yh,Hs,yn,t8,(e,t,n,r,o)=>n<2&&!r.items.length&&!(o!=null&&o.length)?t:t.filter(i=>e[i.id]!==!1)),yi=yt(is,e=>e.map(t=>t.id)),Nw=yt(Hi,yh,(e,t)=>t.filter(n=>e[n.id]!==!1)),Fw=yt(Nw,e=>e.map(t=>t.id));yt(yi,ln,(e,t)=>{const n={};let r=0;return e.reduce((o,i)=>{const l=t[i];return n[l.depth]||(n[l.depth]=0),l.depth>r&&(n[l.depth]=0),r=l.depth,n[l.depth]+=1,o[i]=n[l.depth],o},{})});const Aw=yt(is,ln,Hs,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),vh=Ue(is,e=>e.length),xh=Ue(Aw,e=>e.length),r8=Ue(Nw,e=>e.length);Ue(r8,xh,(e,t)=>e-t);const Dw=yt(yn,Oo,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var l,a;if(!r.field)return!1;const o=t[r.field];if(!(o!=null&&o.filterOperators)||((l=o==null?void 0:o.filterOperators)==null?void 0:l.length)===0)return!1;const i=o.filterOperators.find(c=>c.value===r.operator);return i?!i.InputComponent||r.value!=null&&((a=r.value)==null?void 0:a.toString())!=="":!1})}),o8=yt(Dw,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),Yn=e=>e.rowSelection,s8=Ue(Yn,e=>e.length),i8=yt(Yn,mr,(e,t)=>new Map(e.map(n=>[n,t[n]]))),qo=yt(Yn,e=>e.reduce((t,n)=>(t[n]=n,t),{}));function _w(e,t){var c;const n=ln(e),r=Vi(e),o=Hi(e),i=n[t];if(!i||i.type!=="group")return[];const l=[],a=r.findIndex(u=>u===t)+1;for(let u=a;u<r.length&&((c=n[r[u]])==null?void 0:c.depth)>i.depth;u+=1){const d=r[u];o[d]!==!1&&e.current.isRowSelectable(d)&&l.push(d)}return l}function l8(e,t){return Ue(ln,Vi,Hi,qo,(n,r,o,i)=>{var d;const l=n[e];if(!l||l.type!=="group")return{isIndeterminate:!1,isChecked:i[e]===e};if(i[e]===e)return{isIndeterminate:!1,isChecked:!0};let a=0,c=0;const u=r.findIndex(p=>p===e)+1;for(let p=u;p<r.length&&((d=n[r[p]])==null?void 0:d.depth)>l.depth;p+=1){const h=r[p];o[h]!==!1&&(a+=1,i[h]!==void 0&&(c+=1))}return{isIndeterminate:c>0&&(c<a||i[e]===void 0),isChecked:t?c>0:i[e]===e}})}function Ch(e){return e.signature===nr.DataGrid?e.checkboxSelection&&e.disableMultipleRowSelection!==!0:!e.disableMultipleRowSelection}const a8=(e,t)=>{const n=[];let r=t;for(;r!=null&&r!==En;){const o=e[r];if(!o)return n;n.push(r),r=o.parent}return n},c8=(e,t,n)=>{const r=e[n];if(!r)return[];const o=r.parent;return o==null?[]:e[o].children.filter(l=>l!==n&&t[l]!==!1)},ul=(e,t,n,r,o,i,l=new Set(Yn(e.current.state)))=>{const a=Hi(e),c=new Set([]);if(!(!r&&!o||a[n]===!1)){if(r){const u=t[n];(u==null?void 0:u.type)==="group"&&_w(e,n).forEach(p=>{i(p),c.add(p)})}if(o){const u=p=>{if(!l.has(p)&&!c.has(p))return!1;const h=t[p];return h?h.type!=="group"?!0:h.children.every(u):!1},d=p=>{const h=c8(t,a,p);if(h.length===0||h.every(u)){const f=t[p],y=f==null?void 0:f.parent;y!=null&&y!==En&&e.current.isRowSelectable(y)&&(i(y),c.add(y),d(y))}};d(n)}}},s1=(e,t,n,r,o,i)=>{const l=qo(e);if(!(!o&&!r)&&(o&&a8(t,n).forEach(c=>{l[c]===c&&i(c)}),r)){const a=t[n];(a==null?void 0:a.type)==="group"&&_w(e,n).forEach(u=>{i(u)})}},u8=["field","id","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],d8=e=>{const{classes:t}=e;return ye({root:["checkboxInput"]},ut,t)},zw=ht(function(t,n){var P,O,j;const{field:r,id:o,rowNode:i,hasFocus:l,tabIndex:a}=t,c=Be(t,u8),u=nt(),d=Le(),p={classes:d.classes},h=d8(p),f=b.useRef(null),y=b.useRef(null),g=It(f,n),v=$=>{const C={value:$.target.checked,id:o};u.current.publishEvent("rowSelectionCheckboxChange",C,$)};b.useLayoutEffect(()=>{if(a===0){const $=u.current.getCellElement(o,r);$&&($.tabIndex=-1)}},[u,a,o,r]),b.useEffect(()=>{var $;if(l){const C=($=f.current)==null?void 0:$.querySelector("input");C==null||C.focus({preventScroll:!0})}else y.current&&y.current.stop({})},[l]);const x=b.useCallback($=>{$.key===" "&&$.stopPropagation()},[]),S=u.current.isRowSelectable(o),w=l8(o,(O=(P=d.rowSelectionPropagation)==null?void 0:P.parents)!=null?O:!1),{isIndeterminate:k,isChecked:E}=me(u,w,dh);if(i.type==="footer"||i.type==="pinnedRow")return null;const T=d.indeterminateCheckboxAction==="select"?E&&!k:E,N=u.current.getLocaleText(T?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return m.jsx(d.slots.baseCheckbox,z({tabIndex:a,checked:T,onChange:v,className:h.root,inputProps:{"aria-label":N,name:"select_row"},onKeyDown:x,indeterminate:k,disabled:!S,touchRippleRef:y},(j=d.slotProps)==null?void 0:j.baseCheckbox,c,{ref:g}))});process.env.NODE_ENV!=="production"&&(zw.propTypes={api:s.object.isRequired,cellMode:s.oneOf(["edit","view"]).isRequired,colDef:s.object.isRequired,field:s.string.isRequired,focusElementRef:s.oneOfType([s.func,s.shape({current:s.shape({focus:s.func.isRequired})})]),formattedValue:s.any,hasFocus:s.bool.isRequired,id:s.oneOfType([s.number,s.string]).isRequired,isEditable:s.bool,row:s.any.isRequired,rowNode:s.object.isRequired,tabIndex:s.oneOf([-1,0]).isRequired,value:s.any});const p8=zw,ud=e=>e.focus,jn=Ue(ud,e=>e.cell),f8=Ue(ud,e=>e.columnHeader);Ue(ud,e=>e.columnHeaderFilter);const lu=Ue(ud,e=>e.columnGroupHeader),dd=e=>e.tabIndex,wh=Ue(dd,e=>e.cell),Bw=Ue(dd,e=>e.columnHeader);Ue(dd,e=>e.columnHeaderFilter);const m8=Ue(dd,e=>e.columnGroupHeader);function et(e,t,n){const r=b.useRef(!0);Rt(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}function fn(e,t){const n=b.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}const Vw=(e,t,n,r,o)=>{const i=fn(e,"useNativeEventListener");Et(e,"rootMount",()=>{const l=typeof t=="function"?t():t.current;if(!(!l||!n||!r))return i.debug(`Binding native ${n} event`),l.addEventListener(n,r,o),()=>{i.debug(`Clearing native ${n} event`),l.removeEventListener(n,r,o)}})},Da=e=>{const t=b.useRef(!0);t.current&&(t.current=!1,e())},h8=()=>{},g8=(e,t)=>{const n=b.useRef(!1);Rt(()=>n.current||!e?h8:(n.current=!0,t()),[n.current||e])},b8=100,y8=e=>e?0:100,Hw=(e,t,n)=>t>0&&e>0?Math.ceil(e/t):e===-1?n+2:0,Gw=e=>({page:0,pageSize:e?0:100}),v8=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),Ww=(e,t)=>{if(t===nr.DataGrid&&e>b8)throw new Error(["MUI X: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
420
- `))},x8=-1,_a=e=>e.pagination,Uw=Ue(_a,e=>e.enabled&&e.paginationMode==="client"),Pn=Ue(_a,e=>e.paginationModel),fi=Ue(_a,e=>e.rowCount),Ol=Ue(_a,e=>e.meta),C8=Ue(Pn,e=>e.page),qw=Ue(Pn,e=>e.pageSize),Kw=Ue(Pn,fi,(e,t)=>Hw(t,e.pageSize,e.page)),Sh=yt(Uw,Pn,ln,Hs,is,Aw,(e,t,n,r,o,i)=>{var y;if(!e)return null;const l=i.length,a=Math.min(t.pageSize*t.page,l-1),c=t.pageSize===x8?l-1:Math.min(a+t.pageSize-1,l-1);if(a===-1||c===-1)return null;if(r<2)return{firstRowIndex:a,lastRowIndex:c};const u=i[a],d=c-a+1,p=o.findIndex(g=>g.id===u.id);let h=p,f=0;for(;h<o.length&&f<=d;){const g=o[h],v=(y=n[g.id])==null?void 0:y.depth;v===void 0?h+=1:((f<d||v>0)&&(h+=1),v===0&&(f+=1))}return{firstRowIndex:p,lastRowIndex:h-1}}),w8=yt(is,Sh,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),Yw=yt(yi,Sh,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),za=yt(Uw,Sh,w8,is,(e,t,n,r)=>e?{rows:n,range:t,rowToIndexMap:n.reduce((o,i,l)=>(o.set(i.model,l),o),new Map)}:{rows:r,range:r.length===0?null:{firstRowIndex:0,lastRowIndex:r.length-1},rowToIndexMap:r.reduce((o,i,l)=>(o.set(i.model,l),o),new Map)}),S8=["field","colDef"],k8=e=>{const{classes:t}=e;return ye({root:["checkboxInput"]},ut,t)},Xw=ht(function(t,n){var P;const r=Be(t,S8),[,o]=b.useState(!1),i=nt(),l=Le(),a={classes:l.classes},c=k8(a),u=me(i,Bw),d=me(i,Yn),p=me(i,yi),h=me(i,Yw),f=b.useMemo(()=>typeof l.isRowSelectable!="function"?d:d.filter(O=>l.keepNonExistentRowsSelected?!0:i.current.getRow(O)?l.isRowSelectable(i.current.getRowParams(O)):!1),[i,l.isRowSelectable,d,l.keepNonExistentRowsSelected]),y=b.useMemo(()=>(!l.pagination||!l.checkboxSelectionVisibleOnly||l.paginationMode==="server"?p:h).reduce((j,$)=>(j[$]=!0,j),{}),[l.pagination,l.paginationMode,l.checkboxSelectionVisibleOnly,h,p]),g=b.useMemo(()=>f.filter(O=>y[O]).length,[f,y]),v=g>0&&g<Object.keys(y).length,x=g>0,S=O=>{const j={value:O.target.checked};i.current.publishEvent("headerSelectionCheckboxChange",j)},w=u!==null&&u.field===t.field?0:-1;b.useLayoutEffect(()=>{const O=i.current.getColumnHeaderElement(t.field);w===0&&O&&(O.tabIndex=-1)},[w,i,t.field]);const k=b.useCallback(O=>{O.key===" "&&i.current.publishEvent("headerSelectionCheckboxChange",{value:!x})},[i,x]),E=b.useCallback(()=>{o(O=>!O)},[]);b.useEffect(()=>i.current.subscribeEvent("rowSelectionChange",E),[i,E]);const T=l.indeterminateCheckboxAction==="select"?x&&!v:x,N=i.current.getLocaleText(T?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return m.jsx(l.slots.baseCheckbox,z({indeterminate:v,checked:T,onChange:S,className:c.root,inputProps:{"aria-label":N,name:"select_all_rows"},tabIndex:w,onKeyDown:k,disabled:!Ch(l)},(P=l.slotProps)==null?void 0:P.baseCheckbox,r,{ref:n}))});process.env.NODE_ENV!=="production"&&(Xw.propTypes={colDef:s.object.isRequired,field:s.string.isRequired});const Ba=(e,t)=>Mi in t?t[Mi]:e.props.getRowId?e.props.getRowId(t):t.id,cr="__check__",Gi=z({},Lw,{type:"custom",field:cr,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:void 0,display:"flex",valueGetter:(e,t,n,r)=>{const o=qo(r),i=Ba(r.current.state,t);return o[i]!==void 0},renderHeader:e=>m.jsx(Xw,z({},e)),renderCell:e=>m.jsx(p8,z({},e))}),E8=["item","applyValue","type","apiRef","focusElementRef","InputProps","isFilterActive","clearButton","tabIndex","disabled"];function i1(e,t){if(e==null)return"";const n=new Date(e);return Number.isNaN(n.getTime())?"":t==="date"?n.toISOString().substring(0,10):t==="datetime-local"?(n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n.toISOString().substring(0,19)):n.toISOString().substring(0,10)}function hs(e){var w;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,InputProps:l,clearButton:a,tabIndex:c,disabled:u}=e,d=Be(e,E8),p=Jn(),[h,f]=b.useState(()=>i1(t.value,r)),[y,g]=b.useState(!1),v=xt(),x=Le(),S=b.useCallback(k=>{p.clear();const E=k.target.value;f(E),g(!0),p.start(x.filterDebounceMs,()=>{const T=new Date(E);n(z({},t,{value:Number.isNaN(T.getTime())?void 0:T})),g(!1)})},[n,t,x.filterDebounceMs,p]);return b.useEffect(()=>{const k=i1(t.value,r);f(k)},[t.value,r]),m.jsx(x.slots.baseTextField,z({fullWidth:!0,id:v,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:h,onChange:S,variant:"standard",type:r||"text",InputLabelProps:{shrink:!0},inputRef:i,InputProps:z({},y||a?{endAdornment:y?m.jsx(x.slots.loadIcon,{fontSize:"small",color:"action"}):a}:{},{disabled:u},l,{inputProps:z({max:r==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:c},l==null?void 0:l.inputProps)})},d,(w=x.slotProps)==null?void 0:w.baseTextField))}process.env.NODE_ENV!=="production"&&(hs.propTypes={apiRef:s.shape({current:s.object.isRequired}).isRequired,applyValue:s.func.isRequired,clearButton:s.node,focusElementRef:s.oneOfType([s.func,s.object]),isFilterActive:s.bool,item:s.shape({field:s.string.isRequired,id:s.oneOfType([s.number,s.string]),operator:s.string.isRequired,value:s.any}).isRequired});function ei(e,t,n,r){if(!e.value)return null;const o=new Date(e.value);n?o.setSeconds(0,0):(o.setMinutes(o.getMinutes()+o.getTimezoneOffset()),o.setHours(0,0,0,0));const i=o.getTime();return l=>{if(!l)return!1;if(r)return t(l.getTime(),i);const a=new Date(l);return n?a.setSeconds(0,0):a.setHours(0,0,0,0),t(a.getTime(),i)}}const Zw=e=>[{value:"is",getApplyFilterFn:t=>ei(t,(n,r)=>n===r,e),InputComponent:hs,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>ei(t,(n,r)=>n!==r,e),InputComponent:hs,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>ei(t,(n,r)=>n>r,e),InputComponent:hs,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>ei(t,(n,r)=>n>=r,e),InputComponent:hs,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>ei(t,(n,r)=>n<r,e,!e),InputComponent:hs,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>ei(t,(n,r)=>n<=r,e),InputComponent:hs,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>t=>t!=null,requiresFilterValue:!1}],T8=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],I8=ne(_s)({fontSize:"inherit"}),P8=e=>{const{classes:t}=e;return ye({root:["editInputCell"]},ut,t)};function Qw(e){const{id:t,value:n,field:r,colDef:o,hasFocus:i,inputProps:l,onValueChange:a}=e,c=Be(e,T8),u=o.type==="dateTime",d=nt(),p=b.useRef(null),h=b.useMemo(()=>{let k;n==null?k=null:n instanceof Date?k=n:k=new Date((n!=null?n:"").toString());let E;return k==null||Number.isNaN(k.getTime())?E="":E=new Date(k.getTime()-k.getTimezoneOffset()*60*1e3).toISOString().substr(0,u?16:10),{parsed:k,formatted:E}},[n,u]),[f,y]=b.useState(h),v={classes:Le().classes},x=P8(v),S=b.useCallback(k=>{if(k==="")return null;const[E,T]=k.split("T"),[N,P,O]=E.split("-"),j=new Date;if(j.setFullYear(Number(N),Number(P)-1,Number(O)),j.setHours(0,0,0,0),T){const[$,C]=T.split(":");j.setHours(Number($),Number(C),0,0)}return j},[]),w=b.useCallback(async k=>{const E=k.target.value,T=S(E);a&&await a(k,T),y({parsed:T,formatted:E}),d.current.setEditCellValue({id:t,field:r,value:T},k)},[d,r,t,a,S]);return b.useEffect(()=>{y(k=>{var E,T;return h.parsed!==k.parsed&&((E=h.parsed)==null?void 0:E.getTime())!==((T=k.parsed)==null?void 0:T.getTime())?h:k})},[h]),Rt(()=>{i&&p.current.focus()},[i]),m.jsx(I8,z({inputRef:p,fullWidth:!0,className:x.root,type:u?"datetime-local":"date",inputProps:z({max:u?"9999-12-31T23:59":"9999-12-31"},l),value:f.formatted,onChange:w},c))}process.env.NODE_ENV!=="production"&&(Qw.propTypes={api:s.object.isRequired,cellMode:s.oneOf(["edit","view"]).isRequired,changeReason:s.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:s.object.isRequired,field:s.string.isRequired,formattedValue:s.any,hasFocus:s.bool.isRequired,id:s.oneOfType([s.number,s.string]).isRequired,isEditable:s.bool,isProcessingProps:s.bool,isValidating:s.bool,onValueChange:s.func,row:s.any.isRequired,rowNode:s.object.isRequired,tabIndex:s.oneOf([-1,0]).isRequired,value:s.any});const Jw=e=>m.jsx(Qw,z({},e));function eS({value:e,columnType:t,rowId:n,field:r}){if(!(e instanceof Date))throw new Error([`MUI X: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${r}".`].join(`
421
- `))}const O8=(e,t,n,r)=>{if(!e)return"";const o=Ba(r.current.state,t);return eS({value:e,columnType:"date",rowId:o,field:n.field}),e.toLocaleDateString()},M8=(e,t,n,r)=>{if(!e)return"";const o=Ba(r.current.state,t);return eS({value:e,columnType:"dateTime",rowId:o,field:n.field}),e.toLocaleString()},R8=z({},Fr,{type:"date",sortComparator:pw,valueFormatter:O8,filterOperators:Zw(),renderEditCell:Jw,pastedValueParser:e=>new Date(e)}),j8=z({},Fr,{type:"dateTime",sortComparator:pw,valueFormatter:M8,filterOperators:Zw(!0),renderEditCell:Jw,pastedValueParser:e=>new Date(e)}),Fo=e=>e==null?null:Number(e),L8=e=>e==null||Number.isNaN(e)||e===""?null:t=>Fo(t)===Fo(e),$8=()=>[{value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>Fo(t)===e.value,InputComponent:Zn,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>Fo(t)!==e.value,InputComponent:Zn,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Fo(t)>e.value,InputComponent:Zn,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Fo(t)>=e.value,InputComponent:Zn,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Fo(t)<e.value,InputComponent:Zn,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Fo(t)<=e.value,InputComponent:Zn,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:hh,InputComponentProps:{type:"number"}}],N8=z({},Fr,{type:"number",align:"right",headerAlign:"right",sortComparator:dw,valueParser:e=>e===""?null:Number(e),valueFormatter:e=>fw(e)?e.toLocaleString():e||"",filterOperators:$8(),getApplyQuickFilterFn:L8});function ji(e){return(e==null?void 0:e.type)==="singleSelect"}function js(e,t){if(e)return typeof e.valueOptions=="function"?e.valueOptions(z({field:e.field},t)):e.valueOptions}function au(e,t,n){if(t===void 0)return;const r=t.find(o=>{const i=n(o);return String(i)===String(e)});return n(r)}const F8=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen"],A8=["MenuProps"];function D8(e){return!!e.key}function tS(e){var C,L,F;const t=Le(),{id:n,value:r,field:o,row:i,colDef:l,hasFocus:a,error:c,onValueChange:u,initialOpen:d=t.editMode===co.Cell}=e,p=Be(e,F8),h=nt(),f=b.useRef(null),y=b.useRef(null),[g,v]=b.useState(d),S=(L=(((C=t.slotProps)==null?void 0:C.baseSelect)||{}).native)!=null?L:!1,w=((F=t.slotProps)==null?void 0:F.baseSelect)||{},{MenuProps:k}=w,E=Be(w,A8);if(Rt(()=>{var M;a&&((M=y.current)==null||M.focus())},[a]),!ji(l))return null;const T=js(l,{id:n,row:i});if(!T)return null;const N=l.getOptionValue,P=l.getOptionLabel,O=async M=>{if(!ji(l)||!T)return;v(!1);const R=M.target,_=au(R.value,T,N);u&&await u(M,_),await h.current.setEditCellValue({id:n,field:o,value:_},M)},j=(M,R)=>{if(t.editMode===co.Row){v(!1);return}if(R==="backdropClick"||M.key==="Escape"){const _=h.current.getCellParams(n,o);h.current.publishEvent("cellEditStop",z({},_,{reason:M.key==="Escape"?Rr.escapeKeyDown:Rr.cellFocusOut}))}},$=M=>{D8(M)&&M.key==="Enter"||v(!0)};return!T||!l?null:m.jsx(t.slots.baseSelect,z({ref:f,inputRef:y,value:r,onChange:O,open:g,onOpen:$,MenuProps:z({onClose:j},k),error:c,native:S,fullWidth:!0},p,E,{children:T.map(M=>{var _;const R=N(M);return H.createElement(t.slots.baseSelectOption,z({},((_=t.slotProps)==null?void 0:_.baseSelectOption)||{},{native:S,key:R,value:R}),P(M))})}))}process.env.NODE_ENV!=="production"&&(tS.propTypes={api:s.object.isRequired,cellMode:s.oneOf(["edit","view"]).isRequired,changeReason:s.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:s.object.isRequired,field:s.string.isRequired,formattedValue:s.any,hasFocus:s.bool.isRequired,id:s.oneOfType([s.number,s.string]).isRequired,initialOpen:s.bool,isEditable:s.bool,isProcessingProps:s.bool,isValidating:s.bool,onValueChange:s.func,row:s.any.isRequired,rowNode:s.object.isRequired,tabIndex:s.oneOf([-1,0]).isRequired,value:s.any});const _8=e=>m.jsx(tS,z({},e)),z8=["item","applyValue","type","apiRef","focusElementRef","placeholder","tabIndex","label","variant","isFilterActive","clearButton","InputLabelProps"],B8=({column:e,OptionComponent:t,getOptionLabel:n,getOptionValue:r,isSelectNative:o,baseSelectOptionProps:i})=>["",...js(e)||[]].map(a=>{const c=r(a);let u=n(a);return u===""&&(u=" "),H.createElement(t,z({},i,{native:o,key:c,value:c}),u)}),V8=ne("div")({display:"flex",alignItems:"flex-end",width:"100%","& button":{margin:"auto 0px 5px 5px"}});function bf(e){var N,P,O,j,$,C,L;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,placeholder:l,tabIndex:a,label:c,variant:u="standard",clearButton:d}=e,p=Be(e,z8),h=(N=t.value)!=null?N:"",f=xt(),y=xt(),g=Le(),v=(j=(O=(P=g.slotProps)==null?void 0:P.baseSelect)==null?void 0:O.native)!=null?j:!1;let x=null;if(t.field){const F=o.current.getColumn(t.field);ji(F)&&(x=F)}const S=x==null?void 0:x.getOptionValue,w=x==null?void 0:x.getOptionLabel,k=b.useMemo(()=>js(x),[x]),E=b.useCallback(F=>{let M=F.target.value;M=au(M,k,S),n(z({},t,{value:M}))},[k,S,n,t]);if(!ji(x))return null;const T=c!=null?c:o.current.getLocaleText("filterPanelInputLabel");return m.jsxs(V8,{children:[m.jsxs(g.slots.baseFormControl,{fullWidth:!0,children:[m.jsx(g.slots.baseInputLabel,z({},($=g.slotProps)==null?void 0:$.baseInputLabel,{id:y,htmlFor:f,shrink:!0,variant:u,children:T})),m.jsx(g.slots.baseSelect,z({id:f,label:T,labelId:y,value:h,onChange:E,variant:u,type:r||"text",inputProps:{tabIndex:a,ref:i,placeholder:l!=null?l:o.current.getLocaleText("filterPanelInputPlaceholder")},native:v,notched:u==="outlined"?!0:void 0},p,(C=g.slotProps)==null?void 0:C.baseSelect,{children:B8({column:x,OptionComponent:g.slots.baseSelectOption,getOptionLabel:w,getOptionValue:S,isSelectNative:v,baseSelectOptionProps:(L=g.slotProps)==null?void 0:L.baseSelectOption})}))]}),d]})}process.env.NODE_ENV!=="production"&&(bf.propTypes={apiRef:s.shape({current:s.object.isRequired}).isRequired,applyValue:s.func.isRequired,clearButton:s.node,focusElementRef:s.oneOfType([s.func,s.object]),isFilterActive:s.bool,item:s.shape({field:s.string.isRequired,id:s.oneOfType([s.number,s.string]),operator:s.string.isRequired,value:s.any}).isRequired});const H8=["item","applyValue","type","apiRef","focusElementRef","color","error","helperText","size","variant"],G8=["key"],W8=Jx();function nS(e){const{item:t,applyValue:n,apiRef:r,focusElementRef:o,color:i,error:l,helperText:a,size:c,variant:u="standard"}=e,d=Be(e,H8),p={color:i,error:l,helperText:a,size:c,variant:u},h=xt(),f=Le();let y=null;if(t.field){const E=r.current.getColumn(t.field);ji(E)&&(y=E)}const g=y==null?void 0:y.getOptionValue,v=y==null?void 0:y.getOptionLabel,x=b.useCallback((E,T)=>g(E)===g(T),[g]),S=b.useMemo(()=>js(y)||[],[y]),w=b.useMemo(()=>Array.isArray(t.value)?t.value.reduce((E,T)=>{const N=S.find(P=>g(P)===T);return N!=null&&E.push(N),E},[]):[],[g,t.value,S]),k=b.useCallback((E,T)=>{n(z({},t,{value:T.map(g)}))},[n,t,g]);return m.jsx(Bm,z({multiple:!0,options:S,isOptionEqualToValue:x,filterOptions:W8,id:h,value:w,onChange:k,getOptionLabel:v,renderTags:(E,T)=>E.map((N,P)=>{const O=T({index:P}),{key:j}=O,$=Be(O,G8);return m.jsx(f.slots.baseChip,z({variant:"outlined",size:"small",label:v(N)},$),j)}),renderInput:E=>{var T;return m.jsx(f.slots.baseTextField,z({},E,{label:r.current.getLocaleText("filterPanelInputLabel"),placeholder:r.current.getLocaleText("filterPanelInputPlaceholder"),InputLabelProps:z({},E.InputLabelProps,{shrink:!0}),inputRef:o,type:"singleSelect"},p,(T=f.slotProps)==null?void 0:T.baseTextField))}},d))}process.env.NODE_ENV!=="production"&&(nS.propTypes={apiRef:s.shape({current:s.object.isRequired}).isRequired,applyValue:s.func.isRequired,focusElementRef:s.oneOfType([s.func,s.object]),item:s.shape({field:s.string.isRequired,id:s.oneOfType([s.number,s.string]),operator:s.string.isRequired,value:s.any}).isRequired,type:s.oneOf(["singleSelect"])});const ti=e=>e==null||!mh(e)?e:e.value,U8=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>ti(t)===ti(e.value),InputComponent:bf},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>ti(t)!==ti(e.value),InputComponent:bf},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(ti);return n=>t.includes(ti(n))},InputComponent:nS}],q8=e=>typeof e[0]=="object",K8=e=>mh(e)?e.value:e,Y8=e=>mh(e)?e.label:String(e),X8=z({},Fr,{type:"singleSelect",getOptionLabel:Y8,getOptionValue:K8,valueFormatter(e,t,n,r){const o=Ba(r.current.state,t);if(!ji(n))return"";const i=js(n,{id:o,row:t});if(e==null)return"";if(!i)return e;if(!q8(i))return n.getOptionLabel(e);const l=i.find(a=>n.getOptionValue(a)===e);return l?n.getOptionLabel(l):""},renderEditCell:_8,filterOperators:U8(),pastedValueParser:(e,t,n)=>{const r=n,o=js(r)||[],i=r.getOptionValue;if(o.find(a=>i(a)===e))return e}}),Z8="string",Q8=()=>({string:Fr,number:N8,date:R8,dateTime:j8,boolean:Lw,singleSelect:X8,[id]:FF,custom:Fr}),kh=e=>e.headerFiltering,J8=Ue(kh,e=>{var t;return(t=e==null?void 0:e.enabled)!=null?t:!1}),eA=Ue(kh,e=>e.editing),tA=Ue(kh,e=>e.menuOpen),pd=e=>e.columnGrouping,rS=yt(pd,e=>{var t;return(t=e==null?void 0:e.unwrappedGroupingModel)!=null?t:{}}),oS=yt(pd,e=>{var t;return(t=e==null?void 0:e.lookup)!=null?t:{}}),nA=yt(pd,e=>{var t;return(t=e==null?void 0:e.headerStructure)!=null?t:[]}),Va=Ue(pd,e=>{var t;return(t=e==null?void 0:e.maxDepth)!=null?t:0}),sS=["maxWidth","minWidth","width","flex"],ap=Q8();function rA({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(l=>l.field)),o={all:{},frozenFields:[],freeze:l=>{const a=o.all[l];a&&a.frozen!==!0&&(o.all[l].frozen=!0,o.frozenFields.push(l))}};function i(){if(o.frozenFields.length===r.size)return;const l={min:{},max:{}};let a=e,c=t,u=0;o.frozenFields.forEach(d=>{a-=o.all[d].computedWidth,c-=o.all[d].flex});for(let d=0;d<n.length;d+=1){const p=n[d];if(o.all[p.field]&&o.all[p.field].frozen===!0)continue;let f=a/c*p.flex;f<p.minWidth?(u+=p.minWidth-f,f=p.minWidth,l.min[p.field]=!0):f>p.maxWidth&&(u+=p.maxWidth-f,f=p.maxWidth,l.max[p.field]=!0),o.all[p.field]={frozen:!1,computedWidth:f,flex:p.flex}}u<0?Object.keys(l.max).forEach(d=>{o.freeze(d)}):u>0?Object.keys(l.min).forEach(d=>{o.freeze(d)}):n.forEach(({field:d})=>{o.freeze(d)}),i()}return i(),o.all}const yf=(e,t)=>{const n={};let r=0,o=0;const i=[];e.orderedFields.forEach(c=>{let u=e.lookup[c],d=0,p=!1;e.columnVisibilityModel[c]!==!1&&(u.flex&&u.flex>0?(r+=u.flex,p=!0):d=rr(u.width||Fr.width,u.minWidth||Fr.minWidth,u.maxWidth||Fr.maxWidth),o+=d),u.computedWidth!==d&&(u=z({},u,{computedWidth:d})),p&&i.push(u),n[c]=u});const l=t===void 0?0:t.viewportOuterSize.width-(t.hasScrollY?t.scrollbarSize:0),a=Math.max(l-o,0);if(r>0&&l>0){const c=rA({initialFreeSpace:a,totalFlexUnits:r,flexColumns:i});Object.keys(c).forEach(u=>{n[u].computedWidth=c[u].computedWidth})}return z({},e,{lookup:n})},oA=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},l=[];for(let d=0;d<n.length;d+=1){const p=n[d];e.lookup[p]&&(i[p]=!0,l.push(p))}const a=l.length===0?e.orderedFields:[...l,...e.orderedFields.filter(d=>!i[d])],c=z({},e.lookup);for(let d=0;d<o.length;d+=1){const p=o[d],h=z({},c[p],{hasBeenResized:!0});Object.entries(r[p]).forEach(([f,y])=>{h[f]=y===-1?1/0:y}),c[p]=h}return z({},e,{orderedFields:a,lookup:c})};function l1(e){let t=ap[Z8];return e&&ap[e]&&(t=ap[e]),t}const ii=({apiRef:e,columnsToUpsert:t,initialState:n,columnVisibilityModel:r=hr(e),keepOnlyColumnsToUpsert:o=!1})=>{var d,p,h;const i=!e.current.state.columns;let l;if(i)l={orderedFields:[],lookup:{},columnVisibilityModel:r};else{const f=so(e.current.state);l={orderedFields:o?[]:[...f.orderedFields],lookup:z({},f.lookup),columnVisibilityModel:r}}let a={};o&&!i&&(a=Object.keys(l.lookup).reduce((f,y)=>z({},f,{[y]:!1}),{})),t.forEach(f=>{const{field:y}=f;a[y]=!0;let g=l.lookup[y];g==null?(g=z({},l1(f.type),{field:y,hasBeenResized:!1}),l.orderedFields.push(y)):o&&l.orderedFields.push(y),g&&g.type!==f.type&&(g=z({},l1(f.type),{field:y}));let v=g.hasBeenResized;sS.forEach(x=>{f[x]!==void 0&&(v=!0,f[x]===-1&&(f[x]=1/0))}),l.lookup[y]=Ci(g,z({},f,{hasBeenResized:v}))}),o&&!i&&Object.keys(l.lookup).forEach(f=>{a[f]||delete l.lookup[f]});const c=e.current.unstable_applyPipeProcessors("hydrateColumns",l),u=oA(c,n);return yf(u,(h=(p=(d=e.current).getRootDimensions)==null?void 0:p.call(d))!=null?h:void 0)};function sA({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let i=e,l=!1;for(;!l;){l=!0;for(let a=n;a<r;a+=1)if(o[a]){const u=o[a].id,d=t.current.unstable_getCellColSpanInfo(u,i);if(d&&d.spannedByColSpan&&d.leftVisibleCellIndex<i){i=d.leftVisibleCellIndex,l=!1;break}}}return i}function fd(e,t){var c,u;if(t.unstable_listView)return 0;const n=Di(e),r=Va(e),o=J8(e),i=Math.floor(t.columnHeaderHeight*n),l=Math.floor(((c=t.columnGroupHeaderHeight)!=null?c:t.columnHeaderHeight)*n),a=o?Math.floor(((u=t.headerFilterHeight)!=null?u:t.columnHeaderHeight)*n):0;return i+l*r+a}const Wi=e=>e.rowsMeta,cu=1,iS=1.5,iA=e=>{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return ye(r,ut,n)},lA=$t("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${B["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${B["scrollArea--right"]}`]:t["scrollArea--right"]},{[`&.${B["scrollArea--up"]}`]:t["scrollArea--up"]},{[`&.${B["scrollArea--down"]}`]:t["scrollArea--down"]},t.scrollArea]})(()=>({position:"absolute",zIndex:101,[`&.${B["scrollArea--left"]}`]:{top:0,left:0,width:20,bottom:0},[`&.${B["scrollArea--right"]}`]:{top:0,right:0,width:20,bottom:0},[`&.${B["scrollArea--up"]}`]:{top:0,left:0,right:0,height:20},[`&.${B["scrollArea--down"]}`]:{bottom:0,left:0,right:0,height:20}})),aA=Fa(pn,(e,t)=>t==="left"?e.leftPinnedWidth:t==="right"?e.rightPinnedWidth+(e.hasScrollX?e.scrollbarSize:0):0);function cA(e){const t=nt(),[n,r]=b.useState("none");return Pe(t,"columnHeaderDragStart",()=>r("horizontal")),Pe(t,"columnHeaderDragEnd",()=>r("none")),Pe(t,"rowDragStart",()=>r("vertical")),Pe(t,"rowDragEnd",()=>r("none")),n==="none"?null:n==="horizontal"?m.jsx(uA,z({},e)):m.jsx(dA,z({},e))}function uA(e){const{scrollDirection:t,scrollPosition:n}=e,r=b.useRef(null),o=nt(),i=Jn(),l=me(o,Di),a=me(o,od),c=ia(o,aA,t),u=()=>{const g=pn(o.current.state);if(t==="left")return n.current.left>0;if(t==="right"){const v=a-g.viewportInnerSize.width;return n.current.left<v}return!1},d=Le(),p=fd(o,d),h=Math.floor(d.columnHeaderHeight*l),f=z({height:h,top:p-h},t==="left"?{left:c}:{},t==="right"?{right:c}:{}),y=rt(g=>{let v;if(g.preventDefault(),t==="left")v=g.clientX-r.current.getBoundingClientRect().right;else if(t==="right")v=Math.max(1,g.clientX-r.current.getBoundingClientRect().left);else throw new Error("MUI X: Wrong drag direction");v=(v-cu)*iS+cu,i.start(0,()=>{o.current.scroll({left:n.current.left+v,top:n.current.top})})});return m.jsx(lS,z({},e,{ref:r,getCanScrollMore:u,style:f,handleDragOver:y}))}function dA(e){const{scrollDirection:t,scrollPosition:n}=e,r=b.useRef(null),o=nt(),i=Jn(),l=me(o,Wi),a=()=>{const h=pn(o.current.state);if(t==="up")return n.current.top>0;if(t==="down"){const y=(l.currentPageTotalHeight||0)-h.viewportInnerSize.height-h.scrollbarSize;return n.current.top<y}return!1},c=Le(),u=fd(o,c),d={top:t==="up"?u:void 0,bottom:t==="down"?0:void 0},p=rt(h=>{let f;if(h.preventDefault(),t==="up")f=h.clientY-r.current.getBoundingClientRect().bottom;else if(t==="down")f=Math.max(1,h.clientY-r.current.getBoundingClientRect().top);else throw new Error("MUI X: Wrong drag direction");f=(f-cu)*iS+cu,i.start(0,()=>{o.current.scroll({left:n.current.left,top:n.current.top+f})})});return m.jsx(lS,z({},e,{ref:r,getCanScrollMore:a,style:d,handleDragOver:p}))}const lS=ht(function(t,n){const{scrollDirection:r,getCanScrollMore:o,style:i,handleDragOver:l}=t,a=nt(),[c,u]=b.useState(o),d=Le(),p=z({},d,{scrollDirection:r}),h=iA(p);return Pe(a,"scrollPositionChange",()=>{u(o)}),c?m.jsx(lA,{ref:n,className:h.root,ownerState:p,onDragOver:l,style:i}):null}),xc=Po(cA);var dl={},cp={exports:{}},up={exports:{}},a1;function pA(){return a1||(a1=1,(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(up)),up.exports}var c1;function fA(){return c1||(c1=1,(function(e){var t=pA().default;function n(r,o){if(typeof WeakMap=="function")var i=new WeakMap,l=new WeakMap;return(e.exports=n=function(c,u){if(!u&&c&&c.__esModule)return c;var d,p,h={__proto__:null,default:c};if(c===null||t(c)!="object"&&typeof c!="function")return h;if(d=u?l:i){if(d.has(c))return d.get(c);d.set(c,h)}for(var f in c)f!=="default"&&{}.hasOwnProperty.call(c,f)&&((p=(d=Object.defineProperty)&&Object.getOwnPropertyDescriptor(c,f))&&(p.get||p.set)?d(h,f,p):h[f]=c[f]);return h},e.exports.__esModule=!0,e.exports.default=e.exports)(r,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(cp)),cp.exports}var u1;function mA(){if(u1)return dl;u1=1;var e=fA().default;Object.defineProperty(dl,"__esModule",{value:!0}),dl.default=void 0;var t=e(H);return dl.default=parseInt(t.version,10),dl}var hA=mA();const gA=vu(hA),Eh=b.createContext(void 0);process.env.NODE_ENV!=="production"&&(Eh.displayName="GridPrivateApiContext");function Ir(){const e=b.useContext(Eh);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid private 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(`
422
- `));return e}const Ko=(e,t)=>za(e),Th=(e,t)=>me(e,za),bA=typeof navigator!="undefined"?navigator.userAgent.toLowerCase():"empty",yA=bA.includes("firefox"),md=e=>e.virtualization;Ue(md,e=>e.enabled);const aS=Ue(md,e=>e.enabledForColumns),vA=Ue(md,e=>e.enabledForRows),Ha=Ue(md,e=>e.renderContext),xA=yt(e=>e.virtualization.renderContext.firstColumnIndex,e=>e.virtualization.renderContext.lastColumnIndex,(e,t)=>({firstColumnIndex:e,lastColumnIndex:t})),vf={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},CA=(e,t)=>{const{disableVirtualization:n,autoHeight:r}=t;return z({},e,{virtualization:{enabled:!n,enabledForColumns:!n,enabledForRows:!n&&!r,renderContext:vf}})};function wA(e,t){const n=i=>{e.current.setState(l=>z({},l,{virtualization:z({},l.virtualization,{enabled:i,enabledForColumns:i,enabledForRows:i&&!t.autoHeight})}))};et(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:i=>{e.current.setState(l=>z({},l,{virtualization:z({},l.virtualization,{enabledForColumns:i})}))}},"public"),b.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization,t.autoHeight])}const Ih=e=>e.rowSpanning,cS=Ue(Ih,e=>e.hiddenCells),SA=Ue(Ih,e=>e.spannedCells),kA=Ue(Ih,e=>e.hiddenCellOriginMap),Li=e=>e.listViewColumn,EA=I7(jn,Ha,za,Zt,mr,(e,t,n,r,o)=>{if(!e)return!1;const i=o[e.id];if(!i)return!1;const l=n.rowToIndexMap.get(i),a=r.slice(t.firstColumnIndex,t.lastColumnIndex).findIndex(u=>u.field===e.field);return!(l!==void 0&&a!==-1&&l>=t.firstRowIndex&&l<=t.lastRowIndex)}),uS=yt(EA,Zt,za,mr,jn,(e,t,n,r,o)=>{if(!e)return null;const i=r[o.id];if(!i)return null;const l=n.rowToIndexMap.get(i);if(l===void 0)return null;const a=t.findIndex(c=>c.field===o.field);return a===-1?null:z({},o,{rowIndex:l,columnIndex:a})});function mi(e,t){return Math.round(e*10**t)/10**t}const uu=typeof window!="undefined"&&/jsdom|HappyDOM/.test(window.navigator.userAgent),dp=50;var tn=(function(e){return e[e.NONE=0]="NONE",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e[e.LEFT=3]="LEFT",e[e.RIGHT=4]="RIGHT",e})(tn||{});const d1={top:0,left:0},TA=Object.freeze(new Map),IA=(e,t,n,r,o)=>({direction:tn.NONE,buffer:pS(e,tn.NONE,t,n,r,o)}),PA=()=>{var J,oe;const e=Ir(),t=Le(),{unstable_listView:n}=t,r=me(e,()=>n?[Li(e.current.state)]:Zt(e)),o=me(e,vA)&&!uu,i=me(e,aS)&&!uu,l=me(e,_i),a=Bi(e),c=n?iu:a,u=l.bottom.length>0,[d,p]=b.useState(TA),h=Nn(),f=me(e,qo),y=Th(e),g=e.current.mainElementRef,v=e.current.virtualScrollerRef,x=e.current.virtualScrollbarVerticalRef,S=e.current.virtualScrollbarHorizontalRef,w=me(e,xF),k=b.useRef(!1),E=me(e,ph),T=me(e,N7),N=me(e,od),P=me(e,OA),O=me(e,lw),j=me(e,iw),$=b.useRef(null),C=b.useCallback(te=>{if(g.current=te,!te)return;const fe=te.getBoundingClientRect();let ve={width:mi(fe.width,1),height:mi(fe.height,1)};if((!$.current||ve.width!==$.current.width&&ve.height!==$.current.height)&&($.current=ve,e.current.publishEvent("resize",ve)),typeof ResizeObserver=="undefined")return;const Ce=new ResizeObserver(xe=>{const Se=xe[0];if(!Se)return;const Oe={width:mi(Se.contentRect.width,1),height:mi(Se.contentRect.height,1)};Oe.width===ve.width&&Oe.height===ve.height||(e.current.publishEvent("resize",Oe),ve=Oe)});if(Ce.observe(te),gA>=19)return()=>{g.current=null,Ce.disconnect()}},[e,g]),L=b.useRef((oe=(J=t.initialState)==null?void 0:J.scroll)!=null?oe:d1),F=b.useRef(!1),M=b.useRef(d1),R=b.useRef(vf),_=me(e,Ha),V=me(e,uS),W=Jn(),I=b.useRef(void 0),D=Er(()=>IA(h,t.rowBufferPx,t.columnBufferPx,E*15,dp*6)).current,G=b.useCallback(te=>{if(h1(te,e.current.state.virtualization.renderContext))return;const fe=te.firstRowIndex!==R.current.firstRowIndex||te.lastRowIndex!==R.current.lastRowIndex;e.current.setState(Ce=>z({},Ce,{virtualization:z({},Ce.virtualization,{renderContext:te})})),pn(e.current.state).isReady&&fe&&(R.current=te,e.current.publishEvent("renderedRowsIntervalChange",te)),M.current=L.current},[e]),A=rt(()=>{const te=v.current;if(!te)return;const fe=pn(e.current.state),ve=Math.ceil(fe.minimumSize.height-fe.viewportOuterSize.height),Ce=Math.ceil(fe.minimumSize.width-fe.viewportInnerSize.width),xe={top:rr(te.scrollTop,0,ve),left:h?rr(te.scrollLeft,-Ce,0):rr(te.scrollLeft,0,Ce)},Se=xe.left-L.current.left,Oe=xe.top-L.current.top,Ae=Se!==0||Oe!==0;L.current=xe;const se=Ae?jA(Se,Oe):tn.NONE,Ge=Math.abs(L.current.top-M.current.top),Ie=Math.abs(L.current.left-M.current.left),Ye=Ge>=E||Ie>=dp,ee=D.direction!==se;if(!(Ye||ee))return _;if(ee)switch(se){case tn.NONE:case tn.LEFT:case tn.RIGHT:I.current=void 0;break;default:I.current=_;break}D.direction=se,D.buffer=pS(h,se,t.rowBufferPx,t.columnBufferPx,E*15,dp*6);const he=p1(e,t,o,i),ae=f1(he,L.current,D);return h1(ae,_)||(H0.flushSync(()=>{G(ae)}),W.start(1e3,A)),ae}),K=()=>{if(!pn(e.current.state).isReady&&(o||i))return;const te=p1(e,t,o,i),fe=f1(te,L.current,D);I.current=void 0,G(fe)},Y=rt(()=>{if(F.current){F.current=!1;return}const te=A();e.current.publishEvent("scrollPositionChange",{top:L.current.top,left:L.current.left,renderContext:te})}),U=rt(te=>{e.current.publishEvent("virtualScrollerWheel",{},te)}),q=rt(te=>{e.current.publishEvent("virtualScrollerTouchMove",{},te)}),Z=(te={})=>{var he,ae;if(!te.rows&&!y.range)return[];const fe=ln(e);let ve=_;te.renderContext&&(ve=te.renderContext,ve.firstColumnIndex=_.firstColumnIndex,ve.lastColumnIndex=_.lastColumnIndex);const Ce=!u&&te.position===void 0||u&&te.position==="bottom",xe=te.position!==void 0;let Se;switch(te.position){case"top":Se=0;break;case"bottom":Se=l.top.length+y.rows.length;break;case void 0:Se=l.top.length;break}const Oe=(he=te.rows)!=null?he:y.rows,Ae=ve.firstRowIndex,se=Math.min(ve.lastRowIndex,Oe.length),Ge=te.rows?Yy(0,te.rows.length):Yy(Ae,se);let Ie=-1;!xe&&V&&(V.rowIndex<Ae&&(Ge.unshift(V.rowIndex),Ie=V.rowIndex),V.rowIndex>se&&(Ge.push(V.rowIndex),Ie=V.rowIndex));const Ye=[],ee=(ae=t.slotProps)==null?void 0:ae.row,de=ss(e);return Ge.forEach(ge=>{var hn,rn,Pr;const{id:be,model:Te}=Oe[ge];if(!fe[be])return;const _e=(((hn=y==null?void 0:y.range)==null?void 0:hn.firstRowIndex)||0)+Se+ge;if(w){const Ke=c.left.length,vt=r.length-c.right.length;e.current.calculateColSpan({rowId:be,minFirstColumn:Ke,maxLastColumn:vt,columns:r}),c.left.length>0&&e.current.calculateColSpan({rowId:be,minFirstColumn:0,maxLastColumn:c.left.length,columns:r}),c.right.length>0&&e.current.calculateColSpan({rowId:be,minFirstColumn:r.length-c.right.length,maxLastColumn:r.length,columns:r})}const ke=e.current.rowHasAutoHeight(be)?"auto":e.current.unstable_getRowHeight(be);let dt;f[be]==null?dt=!1:dt=e.current.isRowSelectable(be);let at=!1;te.position===void 0&&(at=ge===0);let Pt=!1;const qe=ge===Oe.length-1;if(Ce)if(xe)Pt=qe;else{const Ke=y.rows.length-1;ge===Ke&&(Pt=!0)}let Ve=ve;I.current&&ge>=I.current.firstRowIndex&&ge<I.current.lastRowIndex&&(Ve=I.current);const it=ge===Ie,ft=(V==null?void 0:V.rowIndex)===_e,mn=dS(de,Ve,c.left.length),qn=qe&&te.position==="top",Re=Ve.firstColumnIndex,We=Ve.lastColumnIndex;if(Ye.push(m.jsx(t.slots.row,z({row:Te,rowId:be,index:_e,selected:dt,offsetLeft:mn,columnsTotalWidth:N,rowHeight:ke,pinnedColumns:c,visibleColumns:r,firstColumnIndex:Re,lastColumnIndex:We,focusedColumnIndex:ft?V.columnIndex:void 0,isFirstVisible:at,isLastVisible:Pt,isNotVisible:it,showBottomBorder:qn,scrollbarWidth:O,gridHasFiller:j},ee),be)),it)return;const pt=d.get(be);pt&&Ye.push(pt),te.position===void 0&&qe&&Ye.push((Pr=(rn=e.current).getInfiniteLoadingTriggerElement)==null?void 0:Pr.call(rn,{lastRowId:be}))}),Ye},X=b.useMemo(()=>({overflowX:!P||n?"hidden":void 0,overflowY:t.autoHeight?"hidden":void 0}),[P,t.autoHeight,n]),Q=b.useMemo(()=>{const te={width:P?N:"auto",flexBasis:T,flexShrink:0};return te.flexBasis===0&&(te.flexBasis=Iw),te},[N,T,P]),re=b.useCallback(te=>{te&&e.current.publishEvent("virtualScrollerContentSizeChange",{columnsTotalWidth:N,contentHeight:T})},[e,N,T]);return Rt(()=>{var te,fe;k.current&&((fe=(te=e.current).updateRenderContext)==null||fe.call(te))},[e,i,o]),Rt(()=>{n&&(v.current.scrollLeft=0)},[n,v]),g8(_!==vf,()=>{var te;if(e.current.publishEvent("scrollPositionChange",{top:L.current.top,left:L.current.left,renderContext:_}),k.current=!0,(te=t.initialState)!=null&&te.scroll&&v.current){const fe=v.current,{top:ve,left:Ce}=t.initialState.scroll,xe={top:!(ve>0),left:!(Ce>0)};if(!xe.left&&N&&(fe.scrollLeft=Ce,F.current=!0,xe.left=!0),!xe.top&&T&&(fe.scrollTop=ve,F.current=!0,xe.top=!0),!xe.top||!xe.left){const Se=e.current.subscribeEvent("virtualScrollerContentSizeChange",Oe=>{!xe.left&&Oe.columnsTotalWidth&&(fe.scrollLeft=Ce,F.current=!0,xe.left=!0),!xe.top&&Oe.contentHeight&&(fe.scrollTop=ve,F.current=!0,xe.top=!0),xe.left&&xe.top&&Se()});return Se}}}),e.current.register("private",{updateRenderContext:K}),Et(e,"sortedRowsSet",K),Et(e,"paginationModelChange",K),Et(e,"columnsChange",K),{renderContext:_,setPanels:p,getRows:Z,getContainerProps:()=>({ref:C}),getScrollerProps:()=>({ref:v,onScroll:Y,onWheel:U,onTouchMove:q,style:X,role:"presentation",tabIndex:yA?-1:void 0}),getContentProps:()=>({style:Q,role:"presentation",ref:re}),getRenderZoneProps:()=>({role:"rowgroup"}),getScrollbarVerticalProps:()=>({ref:x,scrollPosition:L}),getScrollbarHorizontalProps:()=>({ref:S,scrollPosition:L}),getScrollAreaProps:()=>({scrollPosition:L})}};function OA(e){return e.dimensions.viewportOuterSize.width>0&&e.dimensions.columnsTotalWidth>e.dimensions.viewportOuterSize.width}function p1(e,t,n,r){var d,p;const o=pn(e.current.state),i=Ko(e),l=t.unstable_listView?[Li(e.current.state)]:Zt(e),a=kA(e),c=e.current.state.rows.dataRowIds.at(-1),u=l.at(-1);return{enabledForRows:n,enabledForColumns:r,apiRef:e,autoHeight:t.autoHeight,rowBufferPx:t.rowBufferPx,columnBufferPx:t.columnBufferPx,leftPinnedWidth:o.leftPinnedWidth,columnsTotalWidth:o.columnsTotalWidth,viewportInnerWidth:o.viewportInnerSize.width,viewportInnerHeight:o.viewportInnerSize.height,lastRowHeight:c!==void 0?e.current.unstable_getRowHeight(c):0,lastColumnWidth:(d=u==null?void 0:u.computedWidth)!=null?d:0,rowsMeta:Wi(e.current.state),columnPositions:ss(e),rows:i.rows,range:i.range,pinnedColumns:Bi(e),visibleColumns:l,hiddenCellsOriginMap:a,listView:(p=t.unstable_listView)!=null?p:!1,virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight}}function f1(e,t,n){const r={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.visibleColumns.length},{top:o,left:i}=t,l=Math.abs(i)+e.leftPinnedWidth;if(e.enabledForRows){let c=Math.min(m1(e,o,{atStart:!0,lastPosition:e.rowsMeta.positions[e.rowsMeta.positions.length-1]+e.lastRowHeight}),e.rowsMeta.positions.length-1);const u=e.hiddenCellsOriginMap[c];if(u){const p=Math.min(...Object.values(u));c=Math.min(c,p)}const d=e.autoHeight?c+e.rows.length:m1(e,o+e.viewportInnerHeight);r.firstRowIndex=c,r.lastRowIndex=d}if(e.listView)return z({},r,{lastColumnIndex:1});if(e.enabledForColumns){let c=0,u=e.columnPositions.length,d=!1;const[p,h]=xf({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight});if(!e.virtualizeColumnsWithAutoRowHeight)for(let f=p;f<h&&!d;f+=1){const y=e.rows[f];d=e.apiRef.current.rowHasAutoHeight(y.id)}(!d||e.virtualizeColumnsWithAutoRowHeight)&&(c=Xo(l,e.columnPositions,{atStart:!0,lastPosition:e.columnsTotalWidth}),u=Xo(l+e.viewportInnerWidth,e.columnPositions)),r.firstColumnIndex=c,r.lastColumnIndex=u}return MA(e,r,n)}function m1(e,t,n){var l,a;const r=e.apiRef.current.getLastMeasuredRowIndex();let o=r===1/0;(l=e.range)!=null&&l.lastRowIndex&&!o&&(o=r>=e.range.lastRowIndex);const i=rr(r-(((a=e.range)==null?void 0:a.firstRowIndex)||0),0,e.rowsMeta.positions.length);return o||e.rowsMeta.positions[i]>=t?Xo(t,e.rowsMeta.positions,n):RA(t,e.rowsMeta.positions,i,n)}function MA(e,t,n){const[r,o]=xf({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight}),[i,l]=xf({firstIndex:t.firstColumnIndex,lastIndex:t.lastColumnIndex,minFirstIndex:e.pinnedColumns.left.length,maxLastIndex:e.visibleColumns.length-e.pinnedColumns.right.length,bufferBefore:n.buffer.columnBefore,bufferAfter:n.buffer.columnAfter,positions:e.columnPositions,lastSize:e.lastColumnWidth}),a=sA({firstColumnToRender:i,apiRef:e.apiRef,firstRowToRender:r,lastRowToRender:o,visibleRows:e.rows});return{firstRowIndex:r,lastRowIndex:o,firstColumnIndex:a,lastColumnIndex:l}}function Xo(e,t,n=void 0,r=0,o=t.length){if(t.length<=0)return-1;if(r>=o)return r;const i=r+Math.floor((o-r)/2),l=t[i];let a;if(n!=null&&n.atStart){const c=(i===t.length-1?n.lastPosition:t[i+1])-l;a=e-c<l}else a=e<=l;return a?Xo(e,t,n,r,i):Xo(e,t,n,i+1,o)}function RA(e,t,n,r=void 0){let o=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=o,o*=2;return Xo(e,t,r,Math.floor(n/2),Math.min(n,t.length))}function xf({firstIndex:e,lastIndex:t,bufferBefore:n,bufferAfter:r,minFirstIndex:o,maxLastIndex:i,positions:l,lastSize:a}){const c=l[e]-n,u=l[t]+r,d=Xo(c,l,{atStart:!0,lastPosition:l[l.length-1]+a}),p=Xo(u,l);return[rr(d,o,i),rr(p,o,i)]}function h1(e,t){return e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex}function dS(e,t,n){var o,i;const r=((o=e[t.firstColumnIndex])!=null?o:0)-((i=e[n])!=null?i:0);return Math.abs(r)}function jA(e,t){return e===0&&t===0?tn.NONE:Math.abs(t)>=Math.abs(e)?t>0?tn.DOWN:tn.UP:e>0?tn.RIGHT:tn.LEFT}function pS(e,t,n,r,o,i){if(e)switch(t){case tn.LEFT:t=tn.RIGHT;break;case tn.RIGHT:t=tn.LEFT;break}switch(t){case tn.NONE:return{rowAfter:n,rowBefore:n,columnAfter:r,columnBefore:r};case tn.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:i};case tn.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:i,columnBefore:0};case tn.UP:return{rowAfter:0,rowBefore:o,columnAfter:0,columnBefore:0};case tn.DOWN:return{rowAfter:o,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}const LA=()=>{var p,h;const e=nt(),t=Le(),n=me(e,Aa),r=me(e,vh),o=me(e,cw),i=n===0&&o===0,l=me(e,tF),a=!l&&i,c=!l&&n>0&&r===0;let u=null,d=null;return a&&(u="noRowsOverlay"),c&&(u="noResultsOverlay"),l&&(u="loadingOverlay",d=((h=(p=t.slotProps)==null?void 0:p.loadingOverlay)==null?void 0:h[i?"noRowsVariant":"variant"])||null),{overlayType:u,loadingOverlayVariant:d}},$A=$t("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant",overridesResolver:(e,t)=>t.overlayWrapper})(({overlayType:e,loadingOverlayVariant:t})=>t!=="skeleton"?{position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,width:0,height:0,zIndex:e==="loadingOverlay"?5:4}:{}),NA=$t("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),FA=e=>{const{classes:t}=e;return ye({root:["overlayWrapper"],inner:["overlayWrapperInner"]},ut,t)};function fS(e){const t=nt(),n=Le(),r=me(t,pn);let o=Math.max(r.viewportOuterSize.height-r.topContainerHeight-r.bottomContainerHeight-(r.hasScrollX?r.scrollbarSize:0),0);o===0&&(o=Iw);const i=FA(z({},e,{classes:n.classes}));return m.jsx($A,z({className:ue(i.root)},e,{children:m.jsx(NA,z({className:ue(i.inner),style:{height:o,width:r.viewportOuterSize.width}},e))}))}process.env.NODE_ENV!=="production"&&(fS.propTypes={loadingOverlayVariant:s.oneOf(["circular-progress","linear-progress","skeleton"]),overlayType:s.oneOf(["loadingOverlay","noResultsOverlay","noRowsOverlay"])});process.env.NODE_ENV!=="production"&&(mS.propTypes={loadingOverlayVariant:s.oneOf(["circular-progress","linear-progress","skeleton"]),overlayType:s.oneOf(["loadingOverlay","noResultsOverlay","noRowsOverlay"])});function mS(e){var i,l;const{overlayType:t}=e,n=Le();if(!t)return null;const r=(i=n.slots)==null?void 0:i[t],o=(l=n.slotProps)==null?void 0:l[t];return m.jsx(fS,z({},e,{children:m.jsx(r,z({},o))}))}const $c=e=>e.columnMenu;function AA(){var v;const e=Ir(),t=Le(),n=me(e,Zt),r=me(e,o8),o=me(e,e8),i=me(e,Bw),l=me(e,()=>wh(e)===null),a=me(e,m8),c=me(e,f8),u=me(e,lu),d=me(e,Va),p=me(e,$c),h=me(e,hr),f=me(e,nA),y=!(a===null&&i===null&&l),g=e.current.columnHeadersContainerRef;return m.jsx(t.slots.columnHeaders,z({ref:g,visibleColumns:n,filterColumnLookup:r,sortColumnLookup:o,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:u,headerGroupingMaxDepth:d,columnMenuState:p,columnVisibility:h,columnGroupsHeaderStructure:f,hasOtherElementInTabSequence:y},(v=t.slotProps)==null?void 0:v.columnHeaders))}const DA=Po(AA),Ph=b.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ph.displayName="GridConfigurationContext");const Oh=()=>{const e=b.useContext(Ph);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid configuration 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(`
423
- `));return e},_A=$t("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0,width:"calc(100% - (var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))"}),zA=$t("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.main,n.hasPinnedRight&&t["main--hasPinnedRight"],n.loadingOverlayVariant==="skeleton"&&t["main--hasSkeletonLoadingOverlay"]]}})({flexGrow:1,position:"relative",overflow:"hidden",display:"flex",flexDirection:"column"}),BA=ht((e,t)=>{var l;const{ownerState:n}=e,r=Le(),i=Oh().hooks.useGridAriaAttributes();return m.jsxs(zA,z({ownerState:n,className:e.className,tabIndex:-1},i,(l=r.slotProps)==null?void 0:l.main,{ref:t,children:[m.jsx(_A,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))}),VA=()=>ye({root:["topContainer"]},ut,{}),HA=$t("div")({position:"sticky",zIndex:40,top:0});function GA(e){const t=VA();return m.jsx(HA,z({},e,{className:ue(t.root,B["container--top"]),role:"presentation"}))}const WA=()=>ye({root:["bottomContainer"]},ut,{}),UA=$t("div")({position:"sticky",zIndex:40,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function qA(e){const t=WA();return m.jsx(UA,z({},e,{className:ue(t.root,B["container--bottom"]),role:"presentation"}))}const KA=(e,t)=>{const{classes:n}=e;return ye({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},ut,n)},YA=$t("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScrollerContent,n.overflowedContent&&t["virtualScrollerContent--overflowed"]]}})({}),XA=ht(function(t,n){var a;const r=Le(),o=!r.autoHeight&&((a=t.style)==null?void 0:a.minHeight)==="auto",i=KA(r,o),l={classes:r.classes,overflowedContent:o};return m.jsx(YA,z({},t,{ownerState:l,className:ue(i.root,t.className),ref:n}))}),ZA=$t("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),hS=$t("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:"var(--DataGrid-pinnedBackground)"}),QA=$t(hS)({left:0,borderRight:"1px solid var(--rowBorderColor)"}),JA=$t(hS)({right:0,borderLeft:"1px solid var(--rowBorderColor)"}),eD=$t("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"});function tD({rowsLength:e}){const t=nt(),{viewportOuterSize:n,minimumSize:r,hasScrollX:o,hasScrollY:i,scrollbarSize:l,leftPinnedWidth:a,rightPinnedWidth:c}=me(t,pn),u=o?l:0,d=n.height-r.height>0;return u===0&&!d?null:m.jsxs(ZA,{className:B.filler,role:"presentation",style:{height:u,"--rowBorderColor":e===0?"transparent":"var(--DataGrid-rowBorderColor)"},children:[a>0&&m.jsx(QA,{className:B["filler--pinnedLeft"],style:{width:a}}),m.jsx(eD,{}),c>0&&m.jsx(JA,{className:B["filler--pinnedRight"],style:{width:c+(i?l:0)}})]})}const nD=Po(tD),rD=["className"],oD=e=>{const{classes:t}=e;return ye({root:["virtualScrollerRenderZone"]},ut,t)},sD=$t("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone",overridesResolver:(e,t)=>t.virtualScrollerRenderZone})({position:"absolute",display:"flex",flexDirection:"column"}),iD=ht(function(t,n){const{className:r}=t,o=Be(t,rD),i=nt(),l=Le(),a=oD(l),c=me(i,()=>{var p;const u=Ha(i);return(p=Wi(i.current.state).positions[u.firstRowIndex])!=null?p:0});return m.jsx(sD,z({className:ue(a.root,r),ownerState:l,style:{transform:`translate3d(0, ${c}px, 0)`}},o,{ref:n}))}),lD={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1,disableColumnVirtualization:!0},dn=e=>e.editRows,gS=Fa(dn,(e,{rowId:t,editMode:n})=>n===co.Row&&!!e[t]),aD=Fa(dn,(e,{rowId:t,field:n})=>{var r,o;return(o=(r=e[t])==null?void 0:r[n])!=null?o:null}),ca=e=>e.preferencePanel,cD=Fa(ca,(e,t)=>!!(e.open&&e.labelId===t));var Ls=(function(e){return e.filters="filters",e.columns="columns",e})(Ls||{});const uD=(e,t)=>{const{classes:n}=e,r={root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]};return ye(r,ut,n)},bS=$t("div")({position:"absolute",display:"inline-block",zIndex:60,"&:hover":{zIndex:70},"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),dD=$t(bS)({width:"var(--size)",height:"calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-topContainerHeight) - var(--DataGrid-bottomContainerHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))",overflowY:"auto",overflowX:"hidden",outline:0,"& > div":{width:"var(--size)"},top:"var(--DataGrid-topContainerHeight)",right:"0px"}),pD=$t(bS)({width:"100%",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:"0px"}),g1=ht(function(t,n){const r=Ir(),o=Le(),i=b.useRef(!1),l=b.useRef(0),a=b.useRef(null),c=b.useRef(null),u=uD(o,t.position),d=me(r,pn),p=t.position==="vertical"?"height":"width",h=t.position==="vertical"?"scrollTop":"scrollLeft",f=t.position==="vertical"?"top":"left",y=t.position==="vertical"?d.hasScrollX:d.hasScrollY,g=d.minimumSize[p]+(y?d.scrollbarSize:0),x=(t.position==="vertical"?d.viewportInnerSize.height:d.viewportOuterSize.width)*(g/d.viewportOuterSize[p]),S=rt(()=>{const E=a.current,T=t.scrollPosition.current;if(!E||T[f]===l.current)return;if(l.current=T[f],i.current){i.current=!1;return}i.current=!0;const N=T[f]/g;E[h]=N*x}),w=rt(()=>{const E=r.current.virtualScrollerRef.current,T=a.current;if(!T)return;if(i.current){i.current=!1;return}i.current=!0;const N=T[h]/x;E[h]=N*g});Om(()=>{const E=r.current.virtualScrollerRef.current,T=a.current,N={passive:!0};return E.addEventListener("scroll",S,N),T.addEventListener("scroll",w,N),()=>{E.removeEventListener("scroll",S,N),T.removeEventListener("scroll",w,N)}}),b.useEffect(()=>{c.current.style.setProperty(p,`${x}px`)},[x,p]);const k=t.position==="vertical"?dD:pD;return m.jsx(k,{ref:It(n,a),className:u.root,style:t.position==="vertical"&&o.unstable_listView?{height:"100%",top:0}:void 0,tabIndex:-1,"aria-hidden":"true",onFocus:E=>{E.target.blur()},children:m.jsx("div",{ref:c,className:u.content})})}),fD=e=>{const{classes:t,hasScrollX:n,hasPinnedRight:r,loadingOverlayVariant:o}=e;return ye({root:["main",r&&"main--hasPinnedRight",o==="skeleton"&&"main--hasSkeletonLoadingOverlay"],scroller:["virtualScroller",n&&"virtualScroller--hasScrollX"]},ut,t)},mD=$t("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScroller,n.hasScrollX&&t["virtualScroller--hasScrollX"]]}})({position:"relative",height:"100%",flexGrow:1,overflow:"scroll",scrollbarWidth:"none",display:"flex",flexDirection:"column","&::-webkit-scrollbar":{display:"none"},"@media print":{overflow:"hidden"},zIndex:0}),hD=e=>e.dimensions.rightPinnedWidth>0;function gD(e){const t=nt(),n=Le(),r=me(t,A7),o=me(t,F7),i=me(t,hD),l=me(t,z7),a=LA(),c={classes:n.classes,hasScrollX:o,hasPinnedRight:i,loadingOverlayVariant:a.loadingOverlayVariant},u=fD(c),d=PA(),{getContainerProps:p,getScrollerProps:h,getContentProps:f,getRenderZoneProps:y,getScrollbarVerticalProps:g,getScrollbarHorizontalProps:v,getRows:x,getScrollAreaProps:S}=d,w=x();return m.jsxs(BA,z({className:u.root},p(),{ownerState:c,children:[m.jsx(xc,z({scrollDirection:"left"},S())),m.jsx(xc,z({scrollDirection:"right"},S())),m.jsx(xc,z({scrollDirection:"up"},S())),m.jsx(xc,z({scrollDirection:"down"},S())),m.jsxs(mD,z({className:u.scroller},h(),{ownerState:c,children:[m.jsxs(GA,{children:[!n.unstable_listView&&m.jsx(DA,{}),m.jsx(n.slots.pinnedRows,{position:"top",virtualScroller:d})]}),m.jsx(mS,z({},a)),m.jsx(XA,z({},f(),{children:m.jsxs(iD,z({},y(),{children:[w,m.jsx(n.slots.detailPanels,{virtualScroller:d})]}))})),l&&m.jsx(nD,{rowsLength:w.length}),m.jsx(qA,{children:m.jsx(n.slots.pinnedRows,{position:"bottom",virtualScroller:d})})]})),o&&!n.unstable_listView&&m.jsx(g1,z({position:"horizontal"},v())),r&&m.jsx(g1,z({position:"vertical"},g())),e.children]}))}function bD(){var t;const e=Le();return e.hideFooter?null:m.jsx(e.slots.footer,z({},(t=e.slotProps)==null?void 0:t.footer))}let pp;function Mh(){return pp===void 0&&document.createElement("div").focus({get preventScroll(){return pp=!0,!1}}),pp}function yD({defaultSlots:e,slots:t}){const n=t;if(!n||Object.keys(n).length===0)return e;const r=z({},e);return Object.keys(n).forEach(o=>{const i=o;n[i]!==void 0&&(r[i]=n[i])}),r}function vD(e){var o,i;if((o=e.slotProps)!=null&&o.root)return e;const t=Object.keys(e);if(!t.some(l=>l.startsWith("aria-")||l.startsWith("data-")))return e;const n={},r=(i=e.forwardedProps)!=null?i:{};for(let l=0;l<t.length;l+=1){const a=t[l];a.startsWith("aria-")||a.startsWith("data-")?r[a]=e[a]:n[a]=e[a]}return n.forwardedProps=r,n}function xD(e){return b.useMemo(()=>vD(e),[e])}const CD=[e=>e.autoPageSize&&e.autoHeight&&["MUI X: `<DataGrid autoPageSize={true} autoHeight={true} />` are not valid props.","You cannot use both the `autoPageSize` and `autoHeight` props at the same time because `autoHeight` scales the height of the Data Grid according to the `pageSize`.","","Please remove one of these two props."].join(`
424
- `)||void 0,e=>e.paginationMode==="client"&&e.paginationMeta!=null&&['MUI X: Usage of the `paginationMeta` prop with client-side pagination (`paginationMode="client"`) has no effect.','`paginationMeta` is only meant to be used with `paginationMode="server"`.'].join(`
425
- `)||void 0,e=>e.signature===nr.DataGrid&&e.paginationMode==="client"&&fw(e.rowCount)&&['MUI X: Usage of the `rowCount` prop with client side pagination (`paginationMode="client"`) has no effect.','`rowCount` is only meant to be used with `paginationMode="server"`.'].join(`
426
- `)||void 0,e=>e.paginationMode==="server"&&e.rowCount==null&&!e.unstable_dataSource&&["MUI X: The `rowCount` prop must be passed using `paginationMode='server'`","For more detail, see http://mui.com/components/data-grid/pagination/#index-based-pagination"].join(`
427
- `)||void 0];function wD(e,t){t.forEach(n=>{const r=n(e);r&&br(r,"error")})}const SD=e=>{const t=e.match(/^__row_group_by_columns_group_(.*)__$/);return t?t[1]:null},kD=e=>e===Ow||SD(e)!==null,yS=(e,t)=>{if(e)if(t){if(e===st.LEFT)return"right";if(e===st.RIGHT)return"left"}else{if(e===st.LEFT)return"left";if(e===st.RIGHT)return"right"}};function hd(e,t,n,r){const o=yS(n,t);return!o||r===void 0||(e[o]=r),e}const ED=["column","row","rowId","rowNode","align","children","colIndex","width","className","style","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","showRightBorder","showLeftBorder","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],TD=["changeReason","unstable_updateValueOnRender"];st.LEFT+"",No.LEFT,st.RIGHT+"",No.RIGHT,st.NONE+"",st.VIRTUAL+"";const ID=e=>{const{align:t,showLeftBorder:n,showRightBorder:r,pinnedPosition:o,isEditable:i,isSelected:l,isSelectionMode:a,classes:c}=e,u={root:["cell",`cell--text${ie(t)}`,l&&"selected",i&&"cell--editable",n&&"cell--withLeftBorder",r&&"cell--withRightBorder",o===st.LEFT&&"cell--pinnedLeft",o===st.RIGHT&&"cell--pinnedRight",a&&!i&&"cell--selectionMode"]};return ye(u,ut,c)};let b1=!1;const vS=ht(function(t,n){var be,Te,_e,ke,dt,at,Pt,qe;const{column:r,row:o,rowId:i,rowNode:l,align:a,colIndex:c,width:u,className:d,style:p,colSpan:h,disableDragEvents:f,isNotVisible:y,pinnedOffset:g,pinnedPosition:v,showRightBorder:x,showLeftBorder:S,onClick:w,onDoubleClick:k,onMouseDown:E,onMouseUp:T,onMouseOver:N,onKeyDown:P,onKeyUp:O,onDragEnter:j,onDragOver:$}=t,C=Be(t,ED),L=Ir(),F=Le(),M=Nn(),R=r.field,_=ia(L,aD,{rowId:i,field:R}),W=Oh().hooks.useCellAggregationResult(i,R),I=_?St.Edit:St.View,D=L.current.getCellParamsForRow(i,R,o,{colDef:r,cellMode:I,rowNode:l,tabIndex:me(L,()=>{const Ve=wh(L);return Ve&&Ve.field===R&&Ve.id===i?0:-1}),hasFocus:me(L,()=>{const Ve=jn(L);return(Ve==null?void 0:Ve.id)===i&&Ve.field===R})});D.api=L.current,W&&(D.value=W.value,D.formattedValue=r.valueFormatter?r.valueFormatter(D.value,o,r,L):D.value);const G=me(L,()=>L.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:i,field:R})),A=me(L,cS),K=me(L,SA),{hasFocus:Y,isEditable:U=!1,value:q}=D,Z=r.type==="actions"&&((be=r.getActions)==null?void 0:be.call(r,L.current.getRowParams(i)).some(Ve=>!Ve.props.disabled)),X=(I==="view"||!U)&&!Z?D.tabIndex:-1,{classes:Q,getCellClassName:re}=F,oe=[me(L,()=>L.current.unstable_applyPipeProcessors("cellClassName",[],{id:i,field:R}).filter(Boolean).join(" "))];r.cellClassName&&oe.push(typeof r.cellClassName=="function"?r.cellClassName(D):r.cellClassName),r.display==="flex"&&oe.push(B["cell--flex"]),re&&oe.push(re(D));const te=(Te=D.formattedValue)!=null?Te:q,fe=b.useRef(null),ve=It(n,fe),Ce=b.useRef(null),xe=(_e=F.cellSelection)!=null?_e:!1,Se={align:a,showLeftBorder:S,showRightBorder:x,isEditable:U,classes:F.classes,pinnedPosition:v,isSelected:G,isSelectionMode:xe},Oe=ID(Se),Ae=b.useCallback(Ve=>it=>{const ft=L.current.getCellParams(i,R||"");L.current.publishEvent(Ve,ft,it),T&&T(it)},[L,R,T,i]),se=b.useCallback(Ve=>it=>{const ft=L.current.getCellParams(i,R||"");L.current.publishEvent(Ve,ft,it),E&&E(it)},[L,R,E,i]),Ge=b.useCallback((Ve,it)=>ft=>{if(!L.current.getRow(i))return;const mn=L.current.getCellParams(i,R||"");L.current.publishEvent(Ve,mn,ft),it&&it(ft)},[L,R,i]),Ie=(dt=(ke=A[i])==null?void 0:ke[R])!=null?dt:!1,Ye=(Pt=(at=K[i])==null?void 0:at[R])!=null?Pt:1,ee=b.useMemo(()=>{if(y)return{padding:0,opacity:0,width:0,height:0,border:0};const Ve=hd(z({"--width":`${u}px`},p),M,v,g),it=v===st.LEFT,ft=v===st.RIGHT;return Ye>1&&(Ve.height=`calc(var(--height) * ${Ye})`,Ve.zIndex=10,(it||ft)&&(Ve.zIndex=40)),Ve},[u,y,p,g,v,M,Ye]);if(b.useEffect(()=>{if(!Y||I===St.Edit)return;const Ve=Yt(L.current.rootElementRef.current);if(fe.current&&!fe.current.contains(Ve.activeElement)){const it=fe.current.querySelector('[tabindex="0"]'),ft=Ce.current||it||fe.current;if(Mh())ft.focus({preventScroll:!0});else{const mn=L.current.getScrollPosition();ft.focus(),L.current.scroll(mn)}}},[Y,I,L]),Ie)return m.jsx("div",{"data-colindex":c,role:"presentation",style:z({width:"var(--width)"},ee)});let de=C.onFocus;process.env.NODE_ENV==="test"&&((qe=F.experimentalFeatures)!=null&&qe.warnIfFocusStateIsNotSynced)&&(de=Ve=>{const it=jn(L);if((it==null?void 0:it.id)===i&&it.field===R){typeof C.onFocus=="function"&&C.onFocus(Ve);return}b1||(console.warn([`MUI X: The cell with id=${i} and field=${R} received focus.`,`According to the state, the focus should be at id=${it==null?void 0:it.id}, field=${it==null?void 0:it.field}.`,"Not syncing the state may cause unwanted behaviors since the `cellFocusIn` event won't be fired.","Call `fireEvent.mouseUp` before the `fireEvent.click` to sync the focus with the state."].join(`
428
- `)),b1=!0)});let he,ae;if(_===null&&r.renderCell&&(he=r.renderCell(D)),_!==null&&r.renderEditCell){const Ve=L.current.getRowWithUpdatedValues(i,r.field),it=Be(_,TD),ft=r.valueFormatter?r.valueFormatter(_.value,Ve,r,L):D.formattedValue,mn=z({},D,{row:Ve,formattedValue:ft},it);he=r.renderEditCell(mn),oe.push(B["cell--editing"]),oe.push(Q==null?void 0:Q["cell--editing"])}if(he===void 0){const Ve=te==null?void 0:te.toString();he=Ve,ae=Ve}b.isValidElement(he)&&Z&&(he=b.cloneElement(he,{focusElementRef:Ce}));const ge=f?null:{onDragEnter:Ge("cellDragEnter",j),onDragOver:Ge("cellDragOver",$)};return m.jsx("div",z({className:ue(Oe.root,oe,d),role:"gridcell","data-field":R,"data-colindex":c,"aria-colindex":c+1,"aria-colspan":h,"aria-rowspan":Ye,style:ee,title:ae,tabIndex:X,onClick:Ge("cellClick",w),onDoubleClick:Ge("cellDoubleClick",k),onMouseOver:Ge("cellMouseOver",N),onMouseDown:se("cellMouseDown"),onMouseUp:Ae("cellMouseUp"),onKeyDown:Ge("cellKeyDown",P),onKeyUp:Ge("cellKeyUp",O)},ge,C,{onFocus:de,ref:ve,children:he}))});process.env.NODE_ENV!=="production"&&(vS.propTypes={align:s.oneOf(["center","left","right"]).isRequired,colIndex:s.number.isRequired,colSpan:s.number,column:s.object.isRequired,disableDragEvents:s.bool,isNotVisible:s.bool.isRequired,pinnedOffset:s.number,pinnedPosition:s.oneOf([0,1,2,3]).isRequired,row:s.object.isRequired,rowId:s.oneOfType([s.number,s.string]).isRequired,rowNode:s.object.isRequired,showLeftBorder:s.bool.isRequired,showRightBorder:s.bool.isRequired,width:s.number.isRequired});const PD=Po(vS),OD=["field","type","align","width","height","empty","style","className"],y1="1.3em",MD="1.2em",v1=[40,80],RD={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},jD=e=>{const{align:t,classes:n,empty:r}=e,o={root:["cell","cellSkeleton",`cell--text${t?ie(t):"Left"}`,r&&"cellEmpty"]};return ye(o,ut,n)},LD=gF(12345);function xS(e){const{field:t,type:n,align:r,width:o,height:i,empty:l=!1,style:a,className:c}=e,u=Be(e,OD),p={classes:Le().classes,align:r,empty:l},h=jD(p),f=b.useMemo(()=>{var x;if(n==="boolean"||n==="actions")return{variant:"circular",width:y1,height:y1};const[g,v]=n&&(x=RD[n])!=null?x:v1;return{variant:"text",width:`${Math.round(LD(g,v))}%`,height:MD}},[n]);return m.jsx("div",z({"data-field":t,className:ue(h.root,c),style:z({height:i,maxWidth:o,minWidth:o},a)},u,{children:!l&&m.jsx(zC,z({},f))}))}process.env.NODE_ENV!=="production"&&(xS.propTypes={align:s.string,empty:s.bool,field:s.string,height:s.oneOfType([s.oneOf(["auto"]),s.number]),type:s.oneOf(["actions","boolean","custom","date","dateTime","number","singleSelect","string"]),width:s.oneOfType([s.number,s.string])});const $D=Po(xS);function ND(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?Ea(fr(e.palette.divider,1),.88):ka(fr(e.palette.divider,1),.68)}const FD=10,Cc=-5,ni=1,x1={width:3,rx:1.5,x:10.5},AD="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",DD=e=>e.dimensions.hasScrollX&&(!e.dimensions.hasScrollY||e.dimensions.scrollbarSize===0),_D=ne("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${B.autoHeight}`]:t.autoHeight},{[`&.${B.autosizing}`]:t.autosizing},{[`&.${B["root--densityStandard"]}`]:t["root--densityStandard"]},{[`&.${B["root--densityComfortable"]}`]:t["root--densityComfortable"]},{[`&.${B["root--densityCompact"]}`]:t["root--densityCompact"]},{[`&.${B["root--disableUserSelection"]}`]:t["root--disableUserSelection"]},{[`&.${B["root--noToolbar"]}`]:t["root--noToolbar"]},{[`&.${B.withVerticalBorder}`]:t.withVerticalBorder},{[`& .${B.actionsCell}`]:t.actionsCell},{[`& .${B.booleanCell}`]:t.booleanCell},{[`& .${B.cell}`]:t.cell},{[`& .${B["cell--editable"]}`]:t["cell--editable"]},{[`& .${B["cell--editing"]}`]:t["cell--editing"]},{[`& .${B["cell--flex"]}`]:t["cell--flex"]},{[`& .${B["cell--pinnedLeft"]}`]:t["cell--pinnedLeft"]},{[`& .${B["cell--pinnedRight"]}`]:t["cell--pinnedRight"]},{[`& .${B["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${B["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${B["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${B["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${B["cell--selectionMode"]}`]:t["cell--selectionMode"]},{[`& .${B["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${B["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${B["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${B["cell--withLeftBorder"]}`]:t["cell--withLeftBorder"]},{[`& .${B["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${B.cellCheckbox}`]:t.cellCheckbox},{[`& .${B.cellEmpty}`]:t.cellEmpty},{[`& .${B.cellOffsetLeft}`]:t.cellOffsetLeft},{[`& .${B.cellSkeleton}`]:t.cellSkeleton},{[`& .${B.checkboxInput}`]:t.checkboxInput},{[`& .${B.columnHeader}`]:t.columnHeader},{[`& .${B["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${B["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${B["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${B["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${B["columnHeader--emptyGroup"]}`]:t["columnHeader--emptyGroup"]},{[`& .${B["columnHeader--filledGroup"]}`]:t["columnHeader--filledGroup"]},{[`& .${B["columnHeader--filtered"]}`]:t["columnHeader--filtered"]},{[`& .${B["columnHeader--last"]}`]:t["columnHeader--last"]},{[`& .${B["columnHeader--lastUnpinned"]}`]:t["columnHeader--lastUnpinned"]},{[`& .${B["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${B["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${B["columnHeader--pinnedLeft"]}`]:t["columnHeader--pinnedLeft"]},{[`& .${B["columnHeader--pinnedRight"]}`]:t["columnHeader--pinnedRight"]},{[`& .${B["columnHeader--siblingFocused"]}`]:t["columnHeader--siblingFocused"]},{[`& .${B["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${B["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${B["columnHeader--withLeftBorder"]}`]:t["columnHeader--withLeftBorder"]},{[`& .${B["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${B.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${B.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${B.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${B.columnHeaderTitleContainerContent}`]:t.columnHeaderTitleContainerContent},{[`& .${B.columnSeparator}`]:t.columnSeparator},{[`& .${B["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${B["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${B["columnSeparator--sideLeft"]}`]:t["columnSeparator--sideLeft"]},{[`& .${B["columnSeparator--sideRight"]}`]:t["columnSeparator--sideRight"]},{[`& .${B["container--bottom"]}`]:t["container--bottom"]},{[`& .${B["container--top"]}`]:t["container--top"]},{[`& .${B.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${B["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},{[`& .${B.editBooleanCell}`]:t.editBooleanCell},{[`& .${B.filterIcon}`]:t.filterIcon},{[`& .${B["filler--borderBottom"]}`]:t["filler--borderBottom"]},{[`& .${B["filler--pinnedLeft"]}`]:t["filler--pinnedLeft"]},{[`& .${B["filler--pinnedRight"]}`]:t["filler--pinnedRight"]},{[`& .${B.groupingCriteriaCell}`]:t.groupingCriteriaCell},{[`& .${B.groupingCriteriaCellLoadingContainer}`]:t.groupingCriteriaCellLoadingContainer},{[`& .${B.groupingCriteriaCellToggle}`]:t.groupingCriteriaCellToggle},{[`& .${B.headerFilterRow}`]:t.headerFilterRow},{[`& .${B.iconSeparator}`]:t.iconSeparator},{[`& .${B.menuIcon}`]:t.menuIcon},{[`& .${B.menuIconButton}`]:t.menuIconButton},{[`& .${B.menuList}`]:t.menuList},{[`& .${B.menuOpen}`]:t.menuOpen},{[`& .${B.overlayWrapperInner}`]:t.overlayWrapperInner},{[`& .${B.pinnedRows}`]:t.pinnedRows},{[`& .${B["pinnedRows--bottom"]}`]:t["pinnedRows--bottom"]},{[`& .${B["pinnedRows--top"]}`]:t["pinnedRows--top"]},{[`& .${B.row}`]:t.row},{[`& .${B["row--borderBottom"]}`]:t["row--borderBottom"]},{[`& .${B["row--detailPanelExpanded"]}`]:t["row--detailPanelExpanded"]},{[`& .${B["row--dragging"]}`]:t["row--dragging"]},{[`& .${B["row--dynamicHeight"]}`]:t["row--dynamicHeight"]},{[`& .${B["row--editable"]}`]:t["row--editable"]},{[`& .${B["row--editing"]}`]:t["row--editing"]},{[`& .${B["row--firstVisible"]}`]:t["row--firstVisible"]},{[`& .${B["row--lastVisible"]}`]:t["row--lastVisible"]},{[`& .${B.rowReorderCell}`]:t.rowReorderCell},{[`& .${B["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${B.rowReorderCellContainer}`]:t.rowReorderCellContainer},{[`& .${B.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${B.rowSkeleton}`]:t.rowSkeleton},{[`& .${B.scrollbar}`]:t.scrollbar},{[`& .${B["scrollbar--horizontal"]}`]:t["scrollbar--horizontal"]},{[`& .${B["scrollbar--vertical"]}`]:t["scrollbar--vertical"]},{[`& .${B.scrollbarFiller}`]:t.scrollbarFiller},{[`& .${B["scrollbarFiller--borderBottom"]}`]:t["scrollbarFiller--borderBottom"]},{[`& .${B["scrollbarFiller--borderTop"]}`]:t["scrollbarFiller--borderTop"]},{[`& .${B["scrollbarFiller--header"]}`]:t["scrollbarFiller--header"]},{[`& .${B["scrollbarFiller--pinnedRight"]}`]:t["scrollbarFiller--pinnedRight"]},{[`& .${B.sortIcon}`]:t.sortIcon},{[`& .${B.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${B.treeDataGroupingCellLoadingContainer}`]:t.treeDataGroupingCellLoadingContainer},{[`& .${B.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${B.withBorderColor}`]:t.withBorderColor}]})(({theme:e})=>{var P,O,j,$;const t=Ir(),n=me(t,DD),r=ND(e),o=e.shape.borderRadius,i=e.vars?e.vars.palette.background.default:(O=(P=e.mixins.MuiDataGrid)==null?void 0:P.containerBackground)!=null?O:e.palette.background.default,l=($=(j=e.mixins.MuiDataGrid)==null?void 0:j.pinnedBackground)!=null?$:i,a=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:fr(e.palette.background.default,e.palette.action.disabledOpacity),c=(e.vars||e).palette.action.hoverOpacity,u=(e.vars||e).palette.action.hover,d=(e.vars||e).palette.action.selectedOpacity,p=e.vars?`calc(${c} + ${d})`:c+d,h=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${d})`:fr(e.palette.primary.main,d),f=e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${p})`:fr(e.palette.primary.main,p),y=e.vars?VD:zD,g=C=>({[`& .${B["cell--pinnedLeft"]}, & .${B["cell--pinnedRight"]}`]:{backgroundColor:C,"&.Mui-selected":{backgroundColor:y(C,h,d),"&:hover":{backgroundColor:y(C,h,p)}}}}),v=y(l,u,c),x=g(v),S=y(l,h,d),w=g(S),k=y(l,f,p),E=g(k),T={backgroundColor:h,"&:hover":{backgroundColor:f,"@media (hover: none)":{backgroundColor:h}}};return z({"--unstable_DataGrid-radius":typeof o=="number"?`${o}px`:o,"--unstable_DataGrid-headWeight":e.typography.fontWeightMedium,"--unstable_DataGrid-overlayBackground":a,"--DataGrid-containerBackground":i,"--DataGrid-pinnedBackground":l,"--DataGrid-rowBorderColor":r,"--DataGrid-cellOffsetMultiplier":2,"--DataGrid-width":"0px","--DataGrid-hasScrollX":"0","--DataGrid-hasScrollY":"0","--DataGrid-scrollbarSize":"10px","--DataGrid-rowWidth":"0px","--DataGrid-columnsTotalWidth":"0px","--DataGrid-leftPinnedWidth":"0px","--DataGrid-rightPinnedWidth":"0px","--DataGrid-headerHeight":"0px","--DataGrid-headersTotalHeight":"0px","--DataGrid-topContainerHeight":"0px","--DataGrid-bottomContainerHeight":"0px",flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:r,borderRadius:"var(--unstable_DataGrid-radius)",color:(e.vars||e).palette.text.primary},e.typography.body2,{outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflow:"hidden",overflowAnchor:"none",transform:"translate(0, 0)",[`.${B.main} > *:first-child${AD}`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${B.autoHeight}`]:{height:"auto"},[`&.${B.autosizing}`]:{[`& .${B.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${B.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${B.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${B.groupingCriteriaCell}`]:{width:"unset"},[`& .${B.treeDataGroupingCell}`]:{width:"unset"}},[`& .${B.columnHeader}, & .${B.cell}`]:{WebkitTapHighlightColor:"transparent",padding:"0 10px",boxSizing:"border-box"},[`& .${B.columnHeader}:focus-within, & .${B.cell}:focus-within`]:{outline:`solid ${e.vars?`rgba(${e.vars.palette.primary.mainChannel} / 0.5)`:fr(e.palette.primary.main,.5)} ${ni}px`,outlineOffset:ni*-1},[`& .${B.columnHeader}:focus, & .${B.cell}:focus`]:{outline:`solid ${e.palette.primary.main} ${ni}px`,outlineOffset:ni*-1},[`& .${B.columnHeader}:focus,
429
- & .${B["columnHeader--withLeftBorder"]},
430
- & .${B["columnHeader--withRightBorder"]},
431
- & .${B["columnHeader--siblingFocused"]},
432
- & .${B["virtualScroller--hasScrollX"]} .${B["columnHeader--lastUnpinned"]},
433
- & .${B["virtualScroller--hasScrollX"]} .${B["columnHeader--last"]}
434
- `]:{[`& .${B.columnSeparator}`]:{opacity:0},"@media (hover: none)":{[`& .${B["columnSeparator--resizable"]}`]:{opacity:1}},[`& .${B["columnSeparator--resizable"]}:hover`]:{opacity:1}},[`&.${B["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${B["root--noToolbar"]} [aria-rowindex="1"] .${B["columnHeader--last"]}`]:{borderTopRightRadius:n?"calc(var(--unstable_DataGrid-radius) - 1px)":void 0},[`& .${B.columnHeaderCheckbox}, & .${B.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${B.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center"},[`& .${B["virtualScroller--hasScrollX"]} .${B["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${B["columnHeader--sorted"]} .${B.iconButtonContainer}, & .${B["columnHeader--filtered"]} .${B.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${B.columnHeader}:not(.${B["columnHeader--sorted"]}) .${B.sortButton}`]:{opacity:0,transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.shorter})},[`& .${B.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",gap:e.spacing(.25),minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${B.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${B["columnHeader--filledGroup"]} .${B.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${B.sortIcon}, & .${B.filterIcon}`]:{fontSize:"inherit"},[`& .${B["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${B["columnHeader--alignCenter"]} .${B.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${B["columnHeader--alignRight"]} .${B.columnHeaderDraggableContainer}, & .${B["columnHeader--alignRight"]} .${B.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${B["columnHeader--alignCenter"]} .${B.menuIcon}`]:{marginLeft:"auto"},[`& .${B["columnHeader--alignRight"]} .${B.menuIcon}`]:{marginRight:"auto",marginLeft:-5},[`& .${B["columnHeader--moving"]}`]:{backgroundColor:(e.vars||e).palette.action.hover},[`& .${B["columnHeader--pinnedLeft"]}, & .${B["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:40,background:"var(--DataGrid-pinnedBackground)"},[`& .${B.columnSeparator}`]:{position:"absolute",overflow:"hidden",zIndex:30,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:FD,color:r},[`& .${B.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)"},"@media (hover: hover)":{[`& .${B.columnHeader}:hover`]:{[`& .${B.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${B.iconButtonContainer}`]:{visibility:"visible",width:"auto"}},[`& .${B.columnHeader}:not(.${B["columnHeader--sorted"]}):hover .${B.sortButton}`]:{opacity:.5}},"@media (hover: none)":{[`& .${B.columnHeader} .${B.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${B.columnHeader}:focus,
435
- & .${B["columnHeader--siblingFocused"]}`]:{[`.${B["columnSeparator--resizable"]}`]:{color:(e.vars||e).palette.primary.main}}},[`& .${B["columnSeparator--sideLeft"]}`]:{left:Cc},[`& .${B["columnSeparator--sideRight"]}`]:{right:Cc},[`& .${B["columnHeader--withRightBorder"]} .${B["columnSeparator--sideLeft"]}`]:{left:Cc-.5},[`& .${B["columnHeader--withRightBorder"]} .${B["columnSeparator--sideRight"]}`]:{right:Cc-.5},[`& .${B["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none",[`&.${B["columnSeparator--resizing"]}`]:{color:(e.vars||e).palette.primary.main},"@media (hover: none)":{[`& .${B.iconSeparator} rect`]:x1},"@media (hover: hover)":{"&:hover":{color:(e.vars||e).palette.primary.main,[`& .${B.iconSeparator} rect`]:x1}},"& svg":{pointerEvents:"none"}},[`& .${B.iconSeparator}`]:{color:"inherit",transition:e.transitions.create(["color","width"],{duration:e.transitions.duration.shortest})},[`& .${B.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-5,display:"flex",alignItems:"center"},[`.${B.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${B.headerFilterRow}`]:{[`& .${B.columnHeader}`]:{boxSizing:"border-box",borderBottom:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${B["row--borderBottom"]} .${B.columnHeader},
436
- & .${B["row--borderBottom"]} .${B.filler},
437
- & .${B["row--borderBottom"]} .${B.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${B["row--borderBottom"]} .${B.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${B.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${B["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${B.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":T},[`& .${B["container--top"]}, & .${B["container--bottom"]}`]:{"[role=row]":{background:"var(--DataGrid-containerBackground)"}},[`& .${B.cell}`]:{flex:"0 0 auto",height:"var(--height)",width:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":T},[`& .${B["virtualScrollerContent--overflowed"]} .${B["row--lastVisible"]} .${B.cell}`]:{borderTopColor:"transparent"},[`& .${B["pinnedRows--top"]} :first-of-type`]:{[`& .${B.cell}, .${B.scrollbarFiller}`]:{borderTop:"none"}},[`&.${B["root--disableUserSelection"]}`]:{userSelect:"none"},[`& .${B["row--dynamicHeight"]} > .${B.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${B.cellEmpty}`]:{flex:1,padding:0,height:"unset"},[`& .${B.cell}.${B["cell--selectionMode"]}`]:{cursor:"default"},[`& .${B.cell}.${B["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:e.shadows[2],backgroundColor:(e.vars||e).palette.background.paper,"&:focus-within":{outline:`${ni}px solid ${(e.vars||e).palette.primary.main}`,outlineOffset:ni*-1}},[`& .${B["row--editing"]}`]:{boxShadow:e.shadows[2]},[`& .${B["row--editing"]} .${B.cell}`]:{boxShadow:e.shadows[0],backgroundColor:(e.vars||e).palette.background.paper},[`& .${B.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${B.booleanCell}[data-value="true"]`]:{color:(e.vars||e).palette.text.secondary},[`& .${B.booleanCell}[data-value="false"]`]:{color:(e.vars||e).palette.text.disabled},[`& .${B.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:e.spacing(1)},[`& .${B.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${B["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${B.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${B.withBorderColor}`]:{borderColor:r},[`& .${B["cell--withLeftBorder"]}, & .${B["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${B["cell--withRightBorder"]}, & .${B["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${B["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${B["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${B["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${B["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${B["cell--pinnedLeft"]}, & .${B["cell--pinnedRight"]}`]:{position:"sticky",zIndex:30,background:"var(--DataGrid-pinnedBackground)","&.Mui-selected":{backgroundColor:S}},[`& .${B.virtualScrollerContent} .${B.row}`]:{"&:hover":x,"&.Mui-selected":w,"&.Mui-selected:hover":E},[`& .${B.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${B.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${B.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${B.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${B["columnHeader--dragging"]}, & .${B["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity},[`& .${B["row--dragging"]}`]:{background:(e.vars||e).palette.background.paper,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:(e.vars||e).palette.action.disabledOpacity,[`& .${B.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${B.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${B.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`& .${B.treeDataGroupingCellLoadingContainer}, .${B.groupingCriteriaCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${B.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${B.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:e.spacing(2)},[`.${B.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",[`&.${B["scrollbarFiller--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${B["scrollbarFiller--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${B["scrollbarFiller--pinnedRight"]}`]:{backgroundColor:"var(--DataGrid-pinnedBackground)",position:"sticky",right:0}},[`& .${B.filler}`]:{flex:"1 0 auto"},[`& .${B["filler--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${B["main--hasSkeletonLoadingOverlay"]}`]:{[`& .${B.virtualScrollerContent}`]:{position:"fixed",visibility:"hidden"},[`& .${B["scrollbar--vertical"]}, & .${B.pinnedRows}, & .${B.virtualScroller} > .${B.filler}`]:{display:"none"}}})});function zD(e,t,n,r=1){const o=(c,u)=>Math.round((c**(1/r)*(1-n)+u**(1/r)*n)**r),i=lo(e),l=lo(t),a=[o(i.values[0],l.values[0]),o(i.values[1],l.values[1]),o(i.values[2],l.values[2])];return Sa({type:"rgb",values:a})}const BD=e=>`rgb(from ${e} r g b / 1)`;function VD(e,t,n){return`color-mix(in srgb,${e}, ${BD(t)} calc(${n} * 100%))`}const HD=()=>()=>{},GD=()=>!1,WD=()=>!0,UD=()=>uh.useSyncExternalStore(HD,GD,WD);function qD(){var i,l,a;const e=nt(),t=me(e,yr),n=Le(),r=me(e,ca),o=e.current.unstable_applyPipeProcessors("preferencePanel",null,(i=r.openedPanelValue)!=null?i:Ls.filters);return m.jsx(n.slots.panel,z({as:n.slots.basePopper,open:t.length>0&&r.open,id:r.panelId,"aria-labelledby":r.labelId},(l=n.slotProps)==null?void 0:l.panel,(a=n.slotProps)==null?void 0:a.basePopper,{children:o}))}function KD(){var t;const e=Le();return m.jsxs(b.Fragment,{children:[m.jsx(qD,{}),e.slots.toolbar&&m.jsx(e.slots.toolbar,z({},(t=e.slotProps)==null?void 0:t.toolbar))]})}const YD=["className","children"],XD=(e,t)=>{const{autoHeight:n,classes:r,showCellVerticalBorder:o}=e,i={root:["root",n&&"autoHeight",`root--density${ie(t)}`,e.slots.toolbar===null&&"root--noToolbar","withBorderColor",o&&"withVerticalBorder"]};return ye(i,ut,r)},CS=ht(function(t,n){const r=Le(),{className:o,children:i}=t,l=Be(t,YD),a=Ir(),c=me(a,pi),u=a.current.rootElementRef,d=b.useCallback(g=>{g!==null&&a.current.publishEvent("rootMount",g)},[a]),p=It(u,n,d),h=r,f=XD(h,c);return UD()?null:m.jsxs(_D,z({className:ue(f.root,o),ownerState:h},l,{ref:p,children:[m.jsx(KD,{}),m.jsx(gD,{children:i}),m.jsx(bD,{})]}))});process.env.NODE_ENV!=="production"&&(CS.propTypes={sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const ZD=Po(CS),QD=["className"],JD=e=>{const{classes:t}=e;return ye({root:["footerContainer","withBorderColor"]},ut,t)},e_=$t("div",{name:"MuiDataGrid",slot:"FooterContainer",overridesResolver:(e,t)=>t.footerContainer})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),wS=ht(function(t,n){const{className:r}=t,o=Be(t,QD),i=Le(),l=JD(i);return m.jsx(e_,z({className:ue(l.root,r),ownerState:i},o,{ref:n}))});process.env.NODE_ENV!=="production"&&(wS.propTypes={sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const t_=["className"],n_=e=>{const{classes:t}=e;return ye({root:["overlay"]},ut,t)},r_=$t("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),gd=ht(function(t,n){const{className:r}=t,o=Be(t,t_),i=Le(),l=n_(i);return m.jsx(r_,z({className:ue(l.root,r),ownerState:i},o,{ref:n}))});process.env.NODE_ENV!=="production"&&(gd.propTypes={sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const o_=e=>{const{classes:t,open:n}=e;return ye({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},ut,t)},s_=b.memo(e=>{var h,f,y;const{colDef:t,open:n,columnMenuId:r,columnMenuButtonId:o,iconButtonRef:i}=e,l=nt(),a=Le(),c=z({},e,{classes:a.classes}),u=o_(c),d=b.useCallback(g=>{g.preventDefault(),g.stopPropagation(),l.current.toggleColumnMenu(t.field)},[l,t.field]),p=(h=t.headerName)!=null?h:t.field;return m.jsx("div",{className:u.root,children:m.jsx(a.slots.baseTooltip,z({title:l.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(f=a.slotProps)==null?void 0:f.baseTooltip,{children:m.jsx(a.slots.baseIconButton,z({ref:i,tabIndex:-1,className:u.button,"aria-label":l.current.getLocaleText("columnMenuAriaLabel")(p),size:"small",onClick:d,"aria-haspopup":"menu","aria-expanded":n,"aria-controls":n?r:void 0,id:o},(y=a.slotProps)==null?void 0:y.baseIconButton,{children:m.jsx(a.slots.columnMenuIcon,{fontSize:"inherit"})}))}))})});function SS({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:l,onExited:a}){const c=nt(),u=c.current.getColumn(o),d=rt(p=>{p&&(p.stopPropagation(),l!=null&&l.contains(p.target))||c.current.hideColumnMenu()});return!l||!u?null:m.jsx(sd,{placement:`bottom-${u.align==="right"?"start":"end"}`,open:i,target:l,onClose:d,onExited:a,children:m.jsx(n,z({colDef:u,hideMenu:d,open:i,id:e,labelledby:t},r))})}process.env.NODE_ENV!=="production"&&(SS.propTypes={columnMenuButtonId:s.string,columnMenuId:s.string,ContentComponent:s.elementType.isRequired,contentComponentProps:s.any,field:s.string.isRequired,onExited:s.func,open:s.bool.isRequired,target:xr});function i_(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function du(e,t){return e.closest(`.${t}`)}function Mo(e){return e.replace(/["\\]/g,"\\$&")}function l_(e,t){return e.querySelector(`[role="columnheader"][data-field="${Mo(t)}"]`)}function kS(e){return`.${B.row}[data-id="${Mo(String(e))}"]`}function a_(e,t){return e.querySelector(kS(t))}function c_(e,{id:t,field:n}){const r=kS(t),o=`.${B.cell}[data-field="${Mo(n)}"]`,i=`${r} ${o}`;return e.querySelector(i)}function Ga(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function u_(e){return e.getAttribute("data-field")}function d_(e,t){return e.querySelector(`[data-field="${Mo(t)}"]`)}function p_(e){return e.getAttribute("data-fields").slice(2,-2).split("-|-")}function f_(e,t){var n;return Array.from((n=e.querySelectorAll(`[data-fields*="|-${Mo(t)}-|"]`))!=null?n:[])}function m_(e,t){var l;if(!du(e,B.root))throw new Error("MUI X: The root element is not found.");const r=e.getAttribute("aria-colindex");if(!r)return[];const o=Number(r)-1,i=[];return(l=t.virtualScrollerRef)!=null&&l.current?(IS(t).forEach(a=>{const c=a.getAttribute("data-id");if(!c)return;let u=o;const d=t.unstable_getCellColSpanInfo(c,o);d&&d.spannedByColSpan&&(u=d.leftVisibleCellIndex);const p=a.querySelector(`[data-colindex="${u}"]`);p&&i.push(p)}),i):[]}function C1(e,t){return e.rootElementRef.current.querySelector(`.${B[t]}`)}const ES=({api:e,colIndex:t,position:n,filterFn:r})=>{if(t===null)return[];const o=[];return IS(e).forEach(i=>{i.getAttribute("data-id")&&i.querySelectorAll(`.${B[n==="left"?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(a=>{const c=Ui(a);c!==null&&r(c)&&o.push(a)})}),o};function h_(e,t,n){const r=Ui(t);return ES({api:e,colIndex:r,position:n?"right":"left",filterFn:o=>n?o<r:o>r})}function g_(e,t,n){const r=Ui(t);return ES({api:e,colIndex:r,position:n?"left":"right",filterFn:o=>n?o>r:o<r})}const TS=({api:e,colIndex:t,position:n,filterFn:r})=>{var i;if(!((i=e.columnHeadersContainerRef)!=null&&i.current))return[];if(t===null)return[];const o=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${B[n==="left"?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach(l=>{const a=Ui(l);a!==null&&r(a,l)&&o.push(l)}),o};function b_(e,t,n){const r=Ui(t);return TS({api:e,position:n?"right":"left",colIndex:r,filterFn:o=>n?o<r:o>r})}function y_(e,t,n){const r=Ui(t);return TS({api:e,position:n?"left":"right",colIndex:r,filterFn:(o,i)=>i.classList.contains(B["columnHeader--last"])?!1:n?o>r:o<r})}function v_(e,t){return e.columnHeadersContainerRef.current.querySelector(`:scope > div > [data-field="${Mo(t)}"][role="columnheader"]`)}function x_(e,t){const n=e.virtualScrollerRef.current;return Array.from(n.querySelectorAll(`:scope > div > div > div > [data-field="${Mo(t)}"][role="gridcell"]`))}function IS(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${B.row}`)}function Ui(e){const t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}const C_=["className","aria-label"],w_=e=>{const{classes:t}=e;return ye({root:["columnHeaderTitle"]},ut,t)},S_=$t("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)",lineHeight:"normal"}),k_=ht(function(t,n){const{className:r}=t,o=Be(t,C_),i=Le(),l=w_(i);return m.jsx(S_,z({className:ue(l.root,r),ownerState:i},o,{ref:n}))});function PS(e){var c;const{label:t,description:n}=e,r=Le(),o=b.useRef(null),[i,l]=b.useState(""),a=b.useCallback(()=>{if(!n&&(o!=null&&o.current)){const u=i_(o.current);l(u?t:"")}},[n,t]);return m.jsx(r.slots.baseTooltip,z({title:n||i},(c=r.slotProps)==null?void 0:c.baseTooltip,{children:m.jsx(k_,{onMouseOver:a,ref:o,children:t})}))}process.env.NODE_ENV!=="production"&&(PS.propTypes={columnWidth:s.number.isRequired,description:s.node,label:s.string.isRequired});const E_=["resizable","resizing","height","side"];var Rh=(function(e){return e.Left="left",e.Right="right",e})(Rh||{});const T_=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${ie(o)}`],icon:["iconSeparator"]};return ye(i,ut,r)};function OS(e){const{height:t,side:n=Rh.Right}=e,r=Be(e,E_),o=Le(),i=z({},e,{side:n,classes:o.classes}),l=T_(i),a=b.useCallback(c=>{c.preventDefault(),c.stopPropagation()},[]);return m.jsx("div",z({className:l.root,style:{minHeight:t}},r,{onClick:a,children:m.jsx(o.slots.columnResizeIcon,{className:l.icon})}))}const I_=b.memo(OS);process.env.NODE_ENV!=="production"&&(OS.propTypes={height:s.number.isRequired,resizable:s.bool.isRequired,resizing:s.bool.isRequired,side:s.oneOf(["left","right"])});const P_=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],MS=ht(function(t,n){const{classes:r,colIndex:o,height:i,isResizing:l,sortDirection:a,tabIndex:c,separatorSide:u,isDraggable:d,headerComponent:p,description:h,width:f,columnMenuIconButton:y=null,columnMenu:g=null,columnTitleIconButtons:v=null,headerClassName:x,label:S,resizable:w,draggableContainerProps:k,columnHeaderSeparatorProps:E,style:T}=t,N=Be(t,P_),P=Le(),O=b.useRef(null),j=It(O,n);let $="none";return a!=null&&($=a==="asc"?"ascending":"descending"),m.jsxs("div",z({className:ue(r.root,x),style:z({},T,{height:i,width:f}),role:"columnheader",tabIndex:c,"aria-colindex":o+1,"aria-sort":$},N,{ref:j,children:[m.jsxs("div",z({className:r.draggableContainer,draggable:d,role:"presentation"},k,{children:[m.jsxs("div",{className:r.titleContainer,role:"presentation",children:[m.jsx("div",{className:r.titleContainerContent,children:p!==void 0?p:m.jsx(PS,{label:S,description:h,columnWidth:f})}),v]}),y]})),m.jsx(I_,z({resizable:!P.disableColumnResize&&!!w,resizing:l,height:i,side:u},E)),g]}))}),O_=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:i,showLeftBorder:l,filterItemsCounter:a,pinnedPosition:c,isLastUnpinned:u,isSiblingFocused:d}=e,p=o!=null,h=a!=null&&a>0,f=t.type==="number",y={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",p&&"columnHeader--sorted",h&&"columnHeader--filtered",f&&"columnHeader--numeric","withBorderColor",i&&"columnHeader--withRightBorder",l&&"columnHeader--withLeftBorder",c===st.LEFT&&"columnHeader--pinnedLeft",c===st.RIGHT&&"columnHeader--pinnedRight",u&&"columnHeader--lastUnpinned",d&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return ye(y,ut,n)};function RS(e){var Z,X,Q,re,J;const{colDef:t,columnMenuOpen:n,colIndex:r,headerHeight:o,isResizing:i,isLast:l,sortDirection:a,sortIndex:c,filterItemsCounter:u,hasFocus:d,tabIndex:p,disableReorder:h,separatorSide:f,showLeftBorder:y,showRightBorder:g,pinnedPosition:v,pinnedOffset:x}=e,S=Ir(),w=Le(),k=Nn(),E=b.useRef(null),T=xt(),N=xt(),P=b.useRef(null),[O,j]=b.useState(n),$=b.useMemo(()=>!w.disableColumnReorder&&!h&&!t.disableReorder,[w.disableColumnReorder,h,t.disableReorder]);let C;t.renderHeader&&(C=t.renderHeader(S.current.getColumnHeaderParams(t.field)));const L=z({},e,{classes:w.classes,showRightBorder:g,showLeftBorder:y}),F=O_(L),M=b.useCallback(oe=>te=>{Ga(te)||S.current.publishEvent(oe,S.current.getColumnHeaderParams(t.field),te)},[S,t.field]),R=b.useMemo(()=>({onClick:M("columnHeaderClick"),onContextMenu:M("columnHeaderContextMenu"),onDoubleClick:M("columnHeaderDoubleClick"),onMouseOver:M("columnHeaderOver"),onMouseOut:M("columnHeaderOut"),onMouseEnter:M("columnHeaderEnter"),onMouseLeave:M("columnHeaderLeave"),onKeyDown:M("columnHeaderKeyDown"),onFocus:M("columnHeaderFocus"),onBlur:M("columnHeaderBlur")}),[M]),_=b.useMemo(()=>$?{onDragStart:M("columnHeaderDragStart"),onDragEnter:M("columnHeaderDragEnter"),onDragOver:M("columnHeaderDragOver"),onDragEnd:M("columnHeaderDragEnd")}:{},[$,M]),V=b.useMemo(()=>({onMouseDown:M("columnSeparatorMouseDown"),onDoubleClick:M("columnSeparatorDoubleClick")}),[M]);b.useEffect(()=>{O||j(n)},[O,n]);const W=b.useCallback(()=>{j(!1)},[]),I=!w.disableColumnMenu&&!t.disableColumnMenu&&m.jsx(s_,{colDef:t,columnMenuId:T,columnMenuButtonId:N,open:O,iconButtonRef:P}),D=m.jsx(SS,{columnMenuId:T,columnMenuButtonId:N,field:t.field,open:n,target:P.current,ContentComponent:w.slots.columnMenu,contentComponentProps:(Z=w.slotProps)==null?void 0:Z.columnMenu,onExited:W}),G=(X=t.sortingOrder)!=null?X:w.sortingOrder,A=(t.sortable||a!=null)&&!t.hideSortIcons&&!w.disableColumnSorting,K=m.jsxs(b.Fragment,{children:[!w.disableColumnFilter&&m.jsx(w.slots.columnHeaderFilterIconButton,z({field:t.field,counter:u},(Q=w.slotProps)==null?void 0:Q.columnHeaderFilterIconButton)),A&&m.jsx(w.slots.columnHeaderSortIcon,z({field:t.field,direction:a,index:c,sortingOrder:G,disabled:!t.sortable},(re=w.slotProps)==null?void 0:re.columnHeaderSortIcon))]});b.useLayoutEffect(()=>{const oe=S.current.state.columnMenu;if(d&&!oe.open){const fe=E.current.querySelector('[tabindex="0"]')||E.current;if(!fe)return;if(Mh())fe.focus({preventScroll:!0});else{const ve=S.current.getScrollPosition();fe.focus(),S.current.scroll(ve)}}},[S,d]);const Y=typeof t.headerClassName=="function"?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,U=(J=t.headerName)!=null?J:t.field,q=b.useMemo(()=>hd(z({},e.style),k,v,x),[v,x,e.style,k]);return m.jsx(MS,z({ref:E,classes:F,columnMenuOpen:n,colIndex:r,height:o,isResizing:i,sortDirection:a,hasFocus:d,tabIndex:p,separatorSide:f,isDraggable:$,headerComponent:C,description:t.description,elementId:t.field,width:t.computedWidth,columnMenuIconButton:I,columnTitleIconButtons:K,headerClassName:ue(Y,l&&B["columnHeader--last"]),label:U,resizable:!w.disableColumnResize&&!!t.resizable,"data-field":t.field,columnMenu:D,draggableContainerProps:_,columnHeaderSeparatorProps:V,style:q},R))}process.env.NODE_ENV!=="production"&&(RS.propTypes={colDef:s.object.isRequired,colIndex:s.number.isRequired,columnMenuOpen:s.bool.isRequired,disableReorder:s.bool,filterItemsCounter:s.number,hasFocus:s.bool,headerHeight:s.number.isRequired,isDragging:s.bool.isRequired,isLast:s.bool.isRequired,isLastUnpinned:s.bool.isRequired,isResizing:s.bool.isRequired,isSiblingFocused:s.bool.isRequired,pinnedOffset:s.number,pinnedPosition:s.oneOf([0,1,2,3]),separatorSide:s.oneOf(["left","right"]),showLeftBorder:s.bool.isRequired,showRightBorder:s.bool.isRequired,sortDirection:s.oneOf(["asc","desc"]),sortIndex:s.number,style:s.object,tabIndex:s.oneOf([-1,0]).isRequired});const M_=Po(RS),R_=["className"],j_=e=>{const{classes:t}=e;return ye({root:["iconButtonContainer"]},ut,t)},L_=$t("div",{name:"MuiDataGrid",slot:"IconButtonContainer",overridesResolver:(e,t)=>t.iconButtonContainer})(()=>({display:"flex",visibility:"hidden",width:0})),jS=ht(function(t,n){const{className:r}=t,o=Be(t,R_),i=Le(),l=j_(i);return m.jsx(L_,z({className:ue(l.root,r),ownerState:i},o,{ref:n}))}),$_=["direction","index","sortingOrder","disabled","className"],N_=e=>{const{classes:t}=e;return ye({root:["sortButton"],icon:["sortIcon"]},ut,t)};function F_(e,t,n,r){let o;const i={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=e.columnUnsortedIcon,i.sortingOrder=r),o?m.jsx(o,z({fontSize:"small",className:n},i)):null}function LS(e){var f;const{direction:t,index:n,sortingOrder:r,disabled:o,className:i}=e,l=Be(e,$_),a=nt(),c=Le(),u=z({},e,{classes:c.classes}),d=N_(u),p=F_(c.slots,t,d.icon,r);if(!p)return null;const h=m.jsx(c.slots.baseIconButton,z({tabIndex:-1,"aria-label":a.current.getLocaleText("columnHeaderSortIconLabel"),title:a.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:o,className:ue(d.root,i)},(f=c.slotProps)==null?void 0:f.baseIconButton,l,{children:p}));return m.jsxs(jS,{children:[n!=null&&m.jsx(c.slots.baseBadge,{badgeContent:n,color:"default",overlap:"circular",children:h}),n==null&&h]})}const A_=b.memo(LS);process.env.NODE_ENV!=="production"&&(LS.propTypes={className:s.string,direction:s.oneOf(["asc","desc"]),disabled:s.bool,field:s.string.isRequired,index:s.number,sortingOrder:s.arrayOf(s.oneOf(["asc","desc"])).isRequired});const D_=e=>{const{classes:t}=e;return ye({icon:["filterIcon"]},ut,t)};function $S(e){return e.counter?m.jsx(NS,z({},e)):null}process.env.NODE_ENV!=="production"&&($S.propTypes={counter:s.number,field:s.string.isRequired,onClick:s.func});function NS(e){var f,y;const{counter:t,field:n,onClick:r}=e,o=nt(),i=Le(),l=z({},e,{classes:i.classes}),a=D_(l),c=xt(),u=ia(o,cD,c),d=xt(),p=b.useCallback(g=>{g.preventDefault(),g.stopPropagation();const{open:v,openedPanelValue:x}=ca(o.current.state);v&&x===Ls.filters?o.current.hideFilterPanel():o.current.showFilterPanel(void 0,d,c),r&&r(o.current.getColumnHeaderParams(n),g)},[o,n,r,d,c]);if(!t)return null;const h=m.jsx(i.slots.baseIconButton,z({id:c,onClick:p,color:"default","aria-label":o.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":u,"aria-controls":u?d:void 0},(f=i.slotProps)==null?void 0:f.baseIconButton,{children:m.jsx(i.slots.columnFilteredIcon,{className:a.icon,fontSize:"small"})}));return m.jsx(i.slots.baseTooltip,z({title:o.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},(y=i.slotProps)==null?void 0:y.baseTooltip,{children:m.jsxs(jS,{children:[t>1&&m.jsx(i.slots.baseBadge,{badgeContent:t,color:"default",children:h}),t===1&&h]})}))}process.env.NODE_ENV!=="production"&&(NS.propTypes={counter:s.number,field:s.string.isRequired,onClick:s.func});const w1=Me(m.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),S1=Me(m.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),k1=Me(m.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),E1=Me(m.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),__=Me(m.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),T1=Me(m.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),z_=Me(m.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");Me(m.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");Me(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");const B_=Me(m.jsx("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon"),V_=Me(m.jsx("rect",{width:"1",height:"24",x:"11.5",rx:"0.5"}),"Separator"),H_=Me(m.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),G_=Me(m.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),W_=Me(m.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),U_=Me(m.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),fp=Me(m.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),I1=Me(m.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),q_=Me(m.jsx("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),K_=Me(m.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),P1=Me(m.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),Y_=Me(m.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),X_=Me(m.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Z_=Me(m.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),Q_=Me(m.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),J_=Me(m.jsx("g",{children:m.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),ez=Me(m.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");Me(m.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");const tz=Me(m.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");function FS(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const pu=e=>e.indexOf("Arrow")===0||e.indexOf("Page")===0||e===" "||e==="Home"||e==="End",nz=e=>!!e.key,AS=e=>e==="Tab"||e==="Escape";function DS(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="V"&&!e.shiftKey&&!e.altKey}function rz(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="C"&&!e.shiftKey&&!e.altKey}const oz=["hideMenu","colDef","id","labelledby","className","children","open"],sz=ne(La)(()=>({minWidth:248})),_S=ht(function(t,n){const{hideMenu:r,id:o,labelledby:i,className:l,children:a,open:c}=t,u=Be(t,oz),d=b.useCallback(p=>{p.key==="Tab"&&p.preventDefault(),AS(p.key)&&r(p)},[r]);return m.jsx(sz,z({id:o,className:ue(B.menuList,l),"aria-labelledby":i,onKeyDown:d,autoFocus:c},u,{ref:n,children:a}))});process.env.NODE_ENV!=="production"&&(_S.propTypes={colDef:s.object.isRequired,hideMenu:s.func.isRequired,id:s.string,labelledby:s.string,open:s.bool.isRequired});const iz=["displayOrder"],lz=e=>{const t=Ir(),n=Le(),{defaultSlots:r,defaultSlotProps:o,slots:i={},slotProps:l={},hideMenu:a,colDef:c,addDividers:u=!0}=e,d=b.useMemo(()=>z({},r,i),[r,i]),p=b.useMemo(()=>{if(!l||Object.keys(l).length===0)return o;const y=z({},l);return Object.entries(o).forEach(([g,v])=>{y[g]=z({},v,l[g]||{})}),y},[o,l]),h=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),f=b.useMemo(()=>{const y=Object.keys(r);return Object.keys(i).filter(g=>!y.includes(g))},[i,r]);return b.useMemo(()=>{const v=Array.from(new Set([...h,...f])).filter(x=>d[x]!=null).sort((x,S)=>{const w=p[x],k=p[S],E=Number.isFinite(w==null?void 0:w.displayOrder)?w.displayOrder:100,T=Number.isFinite(k==null?void 0:k.displayOrder)?k.displayOrder:100;return E-T});return v.reduce((x,S,w)=>{let k={colDef:c,onClick:a};const E=p[S];if(E){const T=Be(E,iz);k=z({},k,T)}return u&&w!==v.length-1?[...x,[d[S],k],[n.slots.baseDivider,{}]]:[...x,[d[S],k]]},[])},[u,c,h,a,d,p,f,n.slots.baseDivider])};function zS(e){const{colDef:t,onClick:n}=e,r=nt(),o=Le(),a=Zt(r).filter(u=>u.disableColumnMenu!==!0).length===1,c=b.useCallback(u=>{a||(r.current.setColumnVisibility(t.field,!1),n(u))},[r,t.field,n,a]);return o.disableColumnSelector||t.hideable===!1?null:m.jsxs(Vn,{onClick:c,disabled:a,children:[m.jsx(ks,{children:m.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"})}),m.jsx(Es,{children:r.current.getLocaleText("columnMenuHideColumn")})]})}process.env.NODE_ENV!=="production"&&(zS.propTypes={colDef:s.object.isRequired,onClick:s.func.isRequired});function BS(e){const{onClick:t}=e,n=nt(),r=Le(),o=b.useCallback(i=>{t(i),n.current.showPreferences(Ls.columns)},[n,t]);return r.disableColumnSelector?null:m.jsxs(Vn,{onClick:o,children:[m.jsx(ks,{children:m.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),m.jsx(Es,{children:n.current.getLocaleText("columnMenuManageColumns")})]})}process.env.NODE_ENV!=="production"&&(BS.propTypes={colDef:s.object.isRequired,onClick:s.func.isRequired});function VS(e){return m.jsxs(b.Fragment,{children:[m.jsx(zS,z({},e)),m.jsx(BS,z({},e))]})}process.env.NODE_ENV!=="production"&&(VS.propTypes={colDef:s.object.isRequired,onClick:s.func.isRequired});function HS(e){const{colDef:t,onClick:n}=e,r=nt(),o=Le(),i=b.useCallback(l=>{n(l),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:m.jsxs(Vn,{onClick:i,children:[m.jsx(ks,{children:m.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"})}),m.jsx(Es,{children:r.current.getLocaleText("columnMenuFilter")})]})}process.env.NODE_ENV!=="production"&&(HS.propTypes={colDef:s.object.isRequired,onClick:s.func.isRequired});function GS(e){var d;const{colDef:t,onClick:n}=e,r=nt(),o=me(r,jr),i=Le(),l=b.useMemo(()=>{if(!t)return null;const p=o.find(h=>h.field===t.field);return p==null?void 0:p.sort},[t,o]),a=(d=t.sortingOrder)!=null?d:i.sortingOrder,c=b.useCallback(p=>{n(p);const h=p.currentTarget.getAttribute("data-value")||null;r.current.sortColumn(t.field,h===l?null:h)},[r,t,n,l]);if(i.disableColumnSorting||!t||!t.sortable||!a.some(p=>!!p))return null;const u=p=>{const h=r.current.getLocaleText(p);return typeof h=="function"?h(t):h};return m.jsxs(b.Fragment,{children:[a.includes("asc")&&l!=="asc"?m.jsxs(Vn,{onClick:c,"data-value":"asc",children:[m.jsx(ks,{children:m.jsx(i.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),m.jsx(Es,{children:u("columnMenuSortAsc")})]}):null,a.includes("desc")&&l!=="desc"?m.jsxs(Vn,{onClick:c,"data-value":"desc",children:[m.jsx(ks,{children:m.jsx(i.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),m.jsx(Es,{children:u("columnMenuSortDesc")})]}):null,a.includes(null)&&l!=null?m.jsxs(Vn,{onClick:c,children:[m.jsx(ks,{}),m.jsx(Es,{children:r.current.getLocaleText("columnMenuUnsort")})]}):null]})}process.env.NODE_ENV!=="production"&&(GS.propTypes={colDef:s.object.isRequired,onClick:s.func.isRequired});const az=["defaultSlots","defaultSlotProps","slots","slotProps"],cz={columnMenuSortItem:GS,columnMenuFilterItem:HS,columnMenuColumnsItem:VS},uz={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},WS=ht(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:l}=t,a=Be(t,az),c=lz(z({},a,{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:l}));return m.jsx(_S,z({},a,{ref:n,children:c.map(([u,d],p)=>m.jsx(u,z({},d),p))}))});process.env.NODE_ENV!=="production"&&(WS.propTypes={colDef:s.object.isRequired,defaultSlotProps:s.object.isRequired,defaultSlots:s.object.isRequired,hideMenu:s.func.isRequired,id:s.string,labelledby:s.string,open:s.bool.isRequired,slotProps:s.object,slots:s.object});const US=ht(function(t,n){return m.jsx(WS,z({},t,{ref:n,defaultSlots:cz,defaultSlotProps:uz}))});process.env.NODE_ENV!=="production"&&(US.propTypes={colDef:s.object.isRequired,hideMenu:s.func.isRequired,id:s.string,labelledby:s.string,open:s.bool.isRequired,slotProps:s.object,slots:s.object});const dz=["className","slotProps"],pz=e=>{const{classes:t}=e;return ye({root:["panelWrapper"]},ut,t)},fz=ne("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),mz=()=>!0,jh=ht(function(t,n){const{className:r,slotProps:o={}}=t,i=Be(t,dz),l=Le(),a=pz(l);return m.jsx(ra,z({open:!0,disableEnforceFocus:!0,isEnabled:mz},o.TrapFocus,{children:m.jsx(fz,z({tabIndex:-1,className:ue(a.root,r),ownerState:l},i,{ref:n}))}))});process.env.NODE_ENV!=="production"&&(jh.propTypes={slotProps:s.object});function qS(e){var n;const t=Le();return m.jsx(jh,z({},e,{children:m.jsx(t.slots.columnsManagement,z({},(n=t.slotProps)==null?void 0:n.columnsManagement))}))}process.env.NODE_ENV!=="production"&&(qS.propTypes={slotProps:s.object});const hz=["children","className","classes"],gz=$e("MuiDataGrid",["panel","paper"]),bz=ne(ns,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})(({theme:e})=>({zIndex:e.zIndex.modal})),yz=ne(Br,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,minWidth:300,maxHeight:450,display:"flex",maxWidth:`calc(100vw - ${e.spacing(.5)})`,overflow:"auto"})),KS=ht((e,t)=>{const{children:n,className:r}=e,o=Be(e,hz),i=nt(),l=Le(),a=gz,[c,u]=b.useState(!1),d=b.useCallback(()=>{i.current.hidePreferences()},[i]),p=b.useCallback(g=>{g.key==="Escape"&&i.current.hidePreferences()},[i]),h=b.useMemo(()=>[{name:"flip",enabled:!0,options:{rootBoundary:"document"}},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{u(!0)},effect:()=>()=>{u(!1)}}],[]),[f,y]=b.useState(null);return b.useEffect(()=>{var v,x;const g=(x=(v=i.current.rootElementRef)==null?void 0:v.current)==null?void 0:x.querySelector('[data-id="gridPanelAnchor"]');g&&y(g)},[i]),f?m.jsx(bz,z({placement:"bottom-start",className:ue(a.panel,r),ownerState:l,anchorEl:f,modifiers:h},o,{ref:t,children:m.jsx(na,{mouseEvent:"onPointerUp",touchEvent:!1,onClickAway:d,children:m.jsx(yz,{className:a.paper,ownerState:l,elevation:8,onKeyDown:p,children:c&&n})})})):null});process.env.NODE_ENV!=="production"&&(KS.propTypes={children:s.node,classes:s.object,open:s.bool.isRequired,ownerState:s.object});const vz=["className"],xz=e=>{const{classes:t}=e;return ye({root:["panelContent"]},ut,t)},Cz=$t("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function YS(e){const{className:t}=e,n=Be(e,vz),r=Le(),o=xz(r);return m.jsx(Cz,z({className:ue(o.root,t),ownerState:r},n))}process.env.NODE_ENV!=="production"&&(YS.propTypes={sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const wz=["className"],Sz=e=>{const{classes:t}=e;return ye({root:["panelFooter"]},ut,t)},kz=$t("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})(({theme:e})=>({padding:e.spacing(.5),display:"flex",justifyContent:"space-between"}));function XS(e){const{className:t}=e,n=Be(e,wz),r=Le(),o=Sz(r);return m.jsx(kz,z({className:ue(o.root,t),ownerState:r},n))}process.env.NODE_ENV!=="production"&&(XS.propTypes={sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const Ez=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],Tz=["InputComponentProps"],Iz=e=>{const{classes:t}=e;return ye({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},ut,t)},Pz=ne("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})(({theme:e})=>({display:"flex",padding:e.spacing(1)})),Oz=ne("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})(({theme:e})=>({flexShrink:0,justifyContent:"flex-end",marginRight:e.spacing(.5),marginBottom:e.spacing(.2)})),Mz=ne("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),Rz=ne("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),jz=ne("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:150}),Lz=ne("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),$z=e=>{switch(e){case Ln.And:return"filterPanelOperatorAnd";case Ln.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}},pl=e=>e.headerName||e.field,O1=new Intl.Collator,Cf=ht(function(t,n){var fe,ve,Ce,xe,Se,Oe,Ae,se,Ge,Ie,Ye;const{item:r,hasMultipleFilters:o,deleteFilter:i,applyFilterChanges:l,showMultiFilterOperators:a,disableMultiFilterOperator:c,applyMultiFilterOperatorChanges:u,focusElementRef:d,logicOperators:p=[Ln.And,Ln.Or],columnsSort:h,filterColumns:f,deleteIconProps:y={},logicOperatorInputProps:g={},operatorInputProps:v={},columnInputProps:x={},valueInputProps:S={},readOnly:w}=t,k=Be(t,Ez),E=nt(),T=me(E,Oo),N=me(E,Cw),P=me(E,yn),O=xt(),j=xt(),$=xt(),C=xt(),L=Le(),F=Iz(L),M=b.useRef(null),R=b.useRef(null),_=(fe=P.logicOperator)!=null?fe:Ln.And,V=o&&p.length>0,W=((ve=L.slotProps)==null?void 0:ve.baseFormControl)||{},D=(xe=(((Ce=L.slotProps)==null?void 0:Ce.baseSelect)||{}).native)!=null?xe:!1,G=((Se=L.slotProps)==null?void 0:Se.baseInputLabel)||{},A=((Oe=L.slotProps)==null?void 0:Oe.baseSelectOption)||{},{InputComponentProps:K}=S,Y=Be(S,Tz),{filteredColumns:U,selectedField:q}=b.useMemo(()=>{let ee=r.field;const de=T[r.field].filterable===!1?T[r.field]:null;if(de)return{filteredColumns:[de],selectedField:ee};if(f===void 0||typeof f!="function")return{filteredColumns:N,selectedField:ee};const he=f({field:r.field,columns:N,currentFilters:(P==null?void 0:P.items)||[]});return{filteredColumns:N.filter(ae=>{const ge=he.includes(ae.field);return ae.field===r.field&&!ge&&(ee=void 0),ge}),selectedField:ee}},[f,P==null?void 0:P.items,N,r.field,T]),Z=b.useMemo(()=>{switch(h){case"asc":return U.sort((ee,de)=>O1.compare(pl(ee),pl(de)));case"desc":return U.sort((ee,de)=>-O1.compare(pl(ee),pl(de)));default:return U}},[U,h]),X=r.field?E.current.getColumn(r.field):null,Q=b.useMemo(()=>{var ee;return!r.operator||!X?null:(ee=X.filterOperators)==null?void 0:ee.find(de=>de.value===r.operator)},[r,X]),re=b.useCallback(ee=>{const de=ee.target.value,he=E.current.getColumn(de);if(he.field===X.field)return;const ae=he.filterOperators.find(Te=>Te.value===r.operator)||he.filterOperators[0];let be=!ae.InputComponent||ae.InputComponent!==(Q==null?void 0:Q.InputComponent)||he.type!==X.type?void 0:r.value;if(he.type==="singleSelect"&&be!==void 0){const Te=he,_e=js(Te);Array.isArray(be)?be=be.filter(ke=>au(ke,_e,Te==null?void 0:Te.getOptionValue)!==void 0):au(r.value,_e,Te==null?void 0:Te.getOptionValue)===void 0&&(be=void 0)}l(z({},r,{field:de,operator:ae.value,value:be}))},[E,l,r,X,Q]),J=b.useCallback(ee=>{const de=ee.target.value,he=X==null?void 0:X.filterOperators.find(ge=>ge.value===de),ae=!(he!=null&&he.InputComponent)||(he==null?void 0:he.InputComponent)!==(Q==null?void 0:Q.InputComponent);l(z({},r,{operator:de,value:ae?void 0:r.value}))},[l,r,X,Q]),oe=b.useCallback(ee=>{const de=ee.target.value===Ln.And.toString()?Ln.And:Ln.Or;u(de)},[u]),te=()=>{i(r)};return b.useImperativeHandle(d,()=>({focus:()=>{var ee;Q!=null&&Q.InputComponent?(ee=M==null?void 0:M.current)==null||ee.focus():R.current.focus()}}),[Q]),m.jsxs(Pz,z({className:F.root,"data-id":r.id,ownerState:L},k,{ref:n,children:[m.jsx(Oz,z({variant:"standard",as:L.slots.baseFormControl},W,y,{className:ue(F.deleteIcon,W.className,y.className),ownerState:L,children:m.jsx(L.slots.baseIconButton,z({"aria-label":E.current.getLocaleText("filterPanelDeleteIconLabel"),title:E.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:te,size:"small",disabled:w},(Ae=L.slotProps)==null?void 0:Ae.baseIconButton,{children:m.jsx(L.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),m.jsx(Mz,z({variant:"standard",as:L.slots.baseFormControl},W,g,{sx:[V?{display:"flex"}:{display:"none"},a?{visibility:"visible"}:{visibility:"hidden"},W.sx,g.sx],className:ue(F.logicOperatorInput,W.className,g.className),ownerState:L,children:m.jsx(L.slots.baseSelect,z({inputProps:{"aria-label":E.current.getLocaleText("filterPanelLogicOperator")},value:_!=null?_:"",onChange:oe,disabled:!!c||p.length===1,native:D},(se=L.slotProps)==null?void 0:se.baseSelect,{children:p.map(ee=>H.createElement(L.slots.baseSelectOption,z({},A,{native:D,key:ee.toString(),value:ee.toString()}),E.current.getLocaleText($z(ee))))}))})),m.jsxs(Rz,z({variant:"standard",as:L.slots.baseFormControl},W,x,{className:ue(F.columnInput,W.className,x.className),ownerState:L,children:[m.jsx(L.slots.baseInputLabel,z({},G,{htmlFor:O,id:j,children:E.current.getLocaleText("filterPanelColumns")})),m.jsx(L.slots.baseSelect,z({labelId:j,id:O,label:E.current.getLocaleText("filterPanelColumns"),value:q!=null?q:"",onChange:re,native:D,disabled:w},(Ge=L.slotProps)==null?void 0:Ge.baseSelect,{children:Z.map(ee=>H.createElement(L.slots.baseSelectOption,z({},A,{native:D,key:ee.field,value:ee.field}),pl(ee)))}))]})),m.jsxs(jz,z({variant:"standard",as:L.slots.baseFormControl},W,v,{className:ue(F.operatorInput,W.className,v.className),ownerState:L,children:[m.jsx(L.slots.baseInputLabel,z({},G,{htmlFor:$,id:C,children:E.current.getLocaleText("filterPanelOperator")})),m.jsx(L.slots.baseSelect,z({labelId:C,label:E.current.getLocaleText("filterPanelOperator"),id:$,value:r.operator,onChange:J,native:D,inputRef:R,disabled:w},(Ie=L.slotProps)==null?void 0:Ie.baseSelect,{children:(Ye=X==null?void 0:X.filterOperators)==null?void 0:Ye.map(ee=>H.createElement(L.slots.baseSelectOption,z({},A,{native:D,key:ee.value,value:ee.value}),ee.label||E.current.getLocaleText(`filterOperator${ie(ee.value)}`)))}))]})),m.jsx(Lz,z({variant:"standard",as:L.slots.baseFormControl},W,Y,{className:ue(F.valueInput,W.className,Y.className),ownerState:L,children:Q!=null&&Q.InputComponent?m.jsx(Q.InputComponent,z({apiRef:E,item:r,applyValue:l,focusElementRef:M,disabled:w},Q.InputComponentProps,K),r.field):null}))]}))});process.env.NODE_ENV!=="production"&&(Cf.propTypes={applyFilterChanges:s.func.isRequired,applyMultiFilterOperatorChanges:s.func.isRequired,children:s.node,columnInputProps:s.any,columnsSort:s.oneOf(["asc","desc"]),deleteFilter:s.func.isRequired,deleteIconProps:s.any,disableMultiFilterOperator:s.bool,filterColumns:s.func,focusElementRef:s.oneOfType([s.func,s.object]),hasMultipleFilters:s.bool.isRequired,item:s.shape({field:s.string.isRequired,id:s.oneOfType([s.number,s.string]),operator:s.string.isRequired,value:s.any}).isRequired,logicOperatorInputProps:s.any,logicOperators:s.arrayOf(s.oneOf(["and","or"]).isRequired),operatorInputProps:s.any,readOnly:s.bool,showMultiFilterOperators:s.bool,valueInputProps:s.any});const Nz=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],M1=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),ZS=ht(function(t,n){var C,L;const r=nt(),o=Le(),i=me(r,yn),l=me(r,Cw),a=me(r,vF),c=b.useRef(null),u=b.useRef(null),{logicOperators:d=[Ln.And,Ln.Or],columnsSort:p,filterFormProps:h,getColumnForNewFilter:f,disableAddFilterButton:y=!1,disableRemoveAllButton:g=!1}=t,v=Be(t,Nz),x=r.current.upsertFilterItem,S=b.useCallback(F=>{r.current.setFilterLogicOperator(F)},[r]),w=b.useCallback(()=>{let F;if(f&&typeof f=="function"){const M=f({currentFilters:(i==null?void 0:i.items)||[],columns:l});if(M===null)return null;F=l.find(({field:R})=>R===M)}else F=l.find(M=>{var R;return(R=M.filterOperators)==null?void 0:R.length});return F?M1(F):null},[i==null?void 0:i.items,l,f]),k=b.useCallback(()=>{if(f===void 0||typeof f!="function")return w();const F=i.items.length?i.items:[w()].filter(Boolean),M=f({currentFilters:F,columns:l});if(M===null)return null;const R=l.find(({field:_})=>_===M);return R?M1(R):null},[i.items,l,f,w]),E=b.useMemo(()=>i.items.length?i.items:(u.current||(u.current=w()),u.current?[u.current]:[]),[i.items,w]),T=E.length>1,{readOnlyFilters:N,validFilters:P}=b.useMemo(()=>E.reduce((F,M)=>(a[M.field]?F.validFilters.push(M):F.readOnlyFilters.push(M),F),{readOnlyFilters:[],validFilters:[]}),[E,a]),O=b.useCallback(()=>{const F=k();F&&r.current.upsertFilterItems([...E,F])},[r,k,E]),j=b.useCallback(F=>{const M=P.length===1;r.current.deleteFilterItem(F),M&&r.current.hideFilterPanel()},[r,P.length]),$=b.useCallback(()=>P.length===1&&P[0].value===void 0?(r.current.deleteFilterItem(P[0]),r.current.hideFilterPanel()):r.current.setFilterModel(z({},i,{items:N}),"removeAllFilterItems"),[r,N,i,P]);return b.useEffect(()=>{d.length>0&&i.logicOperator&&!d.includes(i.logicOperator)&&S(d[0])},[d,S,i.logicOperator]),b.useEffect(()=>{P.length>0&&c.current.focus()},[P.length]),m.jsxs(jh,z({},v,{ref:n,children:[m.jsxs(YS,{children:[N.map((F,M)=>m.jsx(Cf,z({item:F,applyFilterChanges:x,deleteFilter:j,hasMultipleFilters:T,showMultiFilterOperators:M>0,disableMultiFilterOperator:M!==1,applyMultiFilterOperatorChanges:S,focusElementRef:null,readOnly:!0,logicOperators:d,columnsSort:p},h),F.id==null?M:F.id)),P.map((F,M)=>m.jsx(Cf,z({item:F,applyFilterChanges:x,deleteFilter:j,hasMultipleFilters:T,showMultiFilterOperators:N.length+M>0,disableMultiFilterOperator:N.length+M!==1,applyMultiFilterOperatorChanges:S,focusElementRef:M===P.length-1?c:null,logicOperators:d,columnsSort:p},h),F.id==null?M+N.length:F.id))]}),!o.disableMultipleColumnsFiltering&&!(y&&g)?m.jsxs(XS,{children:[y?m.jsx("span",{}):m.jsx(o.slots.baseButton,z({onClick:O,startIcon:m.jsx(o.slots.filterPanelAddIcon,{})},(C=o.slotProps)==null?void 0:C.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!g&&P.length>0?m.jsx(o.slots.baseButton,z({onClick:$,startIcon:m.jsx(o.slots.filterPanelRemoveAllIcon,{})},(L=o.slotProps)==null?void 0:L.baseButton,{children:r.current.getLocaleText("filterPanelRemoveAll")})):null]}):null]}))});process.env.NODE_ENV!=="production"&&(ZS.propTypes={children:s.node,columnsSort:s.oneOf(["asc","desc"]),disableAddFilterButton:s.bool,disableRemoveAllButton:s.bool,filterFormProps:s.shape({columnInputProps:s.any,columnsSort:s.oneOf(["asc","desc"]),deleteIconProps:s.any,filterColumns:s.func,logicOperatorInputProps:s.any,operatorInputProps:s.any,valueInputProps:s.any}),getColumnForNewFilter:s.func,logicOperators:s.arrayOf(s.oneOf(["and","or"]).isRequired),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const Fz=(e,t)=>{const n=new Set(Object.keys(e).filter(i=>e[i]===!1)),r=new Set(Object.keys(t).filter(i=>t[i]===!1));if(n.size!==r.size)return!1;let o=!0;return n.forEach(i=>{r.has(i)||(o=!1)}),o},Az=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1,Dz=e=>{const{classes:t}=e;return ye({root:["columnsManagement"],header:["columnsManagementHeader"],searchInput:["columnsManagementSearchInput"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},ut,t)},R1=new Intl.Collator;function QS(e){var M,R,_,V;const t=nt(),n=b.useRef(null),r=me(t,yr),o=Er(()=>hr(t)).current,i=me(t,hr),l=Le(),[a,c]=b.useState(""),u=Dz(l),{sort:d,searchPredicate:p=Az,autoFocusSearchField:h=!0,disableShowHideToggle:f=!1,disableResetButton:y=!1,toggleAllMode:g="all",getTogglableColumns:v,searchInputProps:x}=e,S=b.useMemo(()=>Fz(i,o),[i,o]),w=b.useMemo(()=>{switch(d){case"asc":return[...r].sort((W,I)=>R1.compare(W.headerName||W.field,I.headerName||I.field));case"desc":return[...r].sort((W,I)=>-R1.compare(W.headerName||W.field,I.headerName||I.field));default:return r}},[r,d]),k=W=>{const{name:I}=W.target;t.current.setColumnVisibility(I,i[I]===!1)},E=b.useMemo(()=>{const W=v?v(w):null,I=W?w.filter(({field:D})=>W.includes(D)):w;return a?I.filter(D=>p(D,a.toLowerCase())):I},[w,a,p,v]),T=b.useCallback(W=>{const I=hr(t),D=z({},I),G=v?v(r):null;return(g==="filteredOnly"?E:r).forEach(A=>{A.hideable&&(G==null||G.includes(A.field))&&(W?delete D[A.field]:D[A.field]=!1)}),t.current.setColumnVisibilityModel(D)},[t,r,v,g,E]),N=b.useCallback(W=>{c(W.target.value)},[]),P=b.useMemo(()=>E.filter(W=>W.hideable),[E]),O=b.useMemo(()=>P.every(W=>i[W.field]==null||i[W.field]!==!1),[i,P]),j=b.useMemo(()=>P.every(W=>i[W.field]===!1),[i,P]),$=b.useRef(null);b.useEffect(()=>{h?n.current.focus():$.current&&typeof $.current.focus=="function"&&$.current.focus()},[h]);let C=!1;const L=W=>C===!1&&W.hideable!==!1?(C=!0,!0):!1,F=b.useCallback(()=>{c(""),n.current.focus()},[]);return m.jsxs(b.Fragment,{children:[m.jsx(zz,{className:u.header,ownerState:l,children:m.jsx(Bz,z({as:l.slots.baseTextField,ownerState:l,placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:n,className:u.searchInput,value:a,onChange:N,variant:"outlined",size:"small",type:"search",InputProps:{startAdornment:m.jsx(l.slots.baseInputAdornment,{position:"start",children:m.jsx(l.slots.quickFilterIcon,{})}),endAdornment:m.jsx(l.slots.baseIconButton,z({"aria-label":t.current.getLocaleText("columnsManagementDeleteIconLabel"),size:"small",sx:[a?{visibility:"visible"}:{visibility:"hidden"}],tabIndex:-1,onClick:F},(M=l.slotProps)==null?void 0:M.baseIconButton,{children:m.jsx(l.slots.quickFilterClearIcon,{fontSize:"small"})}))},inputProps:{"aria-label":t.current.getLocaleText("columnsManagementSearchTitle")},autoComplete:"off",fullWidth:!0},(R=l.slotProps)==null?void 0:R.baseTextField,x))}),m.jsxs(_z,{className:u.root,ownerState:l,children:[E.map(W=>{var I;return m.jsx(oa,{className:u.row,control:m.jsx(l.slots.baseCheckbox,z({disabled:W.hideable===!1,checked:i[W.field]!==!1,onClick:k,name:W.field,sx:{p:.5},inputRef:L(W)?$:void 0},(I=l.slotProps)==null?void 0:I.baseCheckbox)),label:W.headerName||W.field},W.field)}),E.length===0&&m.jsx(Hz,{ownerState:l,children:t.current.getLocaleText("columnsManagementNoColumns")})]}),(!f||!y)&&E.length>0?m.jsxs(Vz,{ownerState:l,className:u.footer,children:[f?m.jsx("span",{}):m.jsx(oa,{control:m.jsx(l.slots.baseCheckbox,z({disabled:P.length===0,checked:O,indeterminate:!O&&!j,onClick:()=>T(!O),name:t.current.getLocaleText("columnsManagementShowHideAllText"),sx:{p:.5}},(_=l.slotProps)==null?void 0:_.baseCheckbox)),label:t.current.getLocaleText("columnsManagementShowHideAllText")}),y?null:m.jsx(l.slots.baseButton,z({onClick:()=>t.current.setColumnVisibilityModel(o),disabled:S},(V=l.slotProps)==null?void 0:V.baseButton,{children:t.current.getLocaleText("columnsManagementReset")}))]}):null]})}process.env.NODE_ENV!=="production"&&(QS.propTypes={autoFocusSearchField:s.bool,disableResetButton:s.bool,disableShowHideToggle:s.bool,getTogglableColumns:s.func,searchInputProps:s.object,searchPredicate:s.func,sort:s.oneOf(["asc","desc"]),toggleAllMode:s.oneOf(["all","filteredOnly"])});const _z=ne("div",{name:"MuiDataGrid",slot:"ColumnsManagement",overridesResolver:(e,t)=>t.columnsManagement})(({theme:e})=>({padding:e.spacing(0,3,1.5),display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,alignItems:"flex-start"})),zz=ne("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader",overridesResolver:(e,t)=>t.columnsManagementHeader})(({theme:e})=>({padding:e.spacing(1.5,3)})),Bz=ne(Vs,{name:"MuiDataGrid",slot:"ColumnsManagementSearchInput",overridesResolver:(e,t)=>t.columnsManagementSearchInput})(({theme:e})=>({[`& .${vn.root}`]:{padding:e.spacing(0,1.5,0,1.5)},[`& .${vn.input}::-webkit-search-decoration,
438
- & .${vn.input}::-webkit-search-cancel-button,
439
- & .${vn.input}::-webkit-search-results-button,
440
- & .${vn.input}::-webkit-search-results-decoration`]:{display:"none"}})),Vz=ne("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter",overridesResolver:(e,t)=>t.columnsManagementFooter})(({theme:e})=>({padding:e.spacing(.5,1,.5,3),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${e.palette.divider}`})),Hz=ne("div")(({theme:e})=>({padding:e.spacing(.5,0),color:e.palette.grey[500]})),JS=ht(function(t,n){var S,w;const{children:r,slotProps:o={}}=t,i=o.button||{},l=o.tooltip||{},a=nt(),c=Le(),u=xt(),d=xt(),[p,h]=b.useState(!1),f=b.useRef(null),y=It(n,f),g=k=>{var E;h(T=>!T),(E=i.onClick)==null||E.call(i,k)},v=()=>h(!1),x=k=>{k.key==="Tab"&&k.preventDefault(),AS(k.key)&&v()};return r==null?null:m.jsxs(b.Fragment,{children:[m.jsx(c.slots.baseTooltip,z({title:a.current.getLocaleText("toolbarExportLabel"),enterDelay:1e3},(S=c.slotProps)==null?void 0:S.baseTooltip,l,{children:m.jsx(c.slots.baseButton,z({size:"small",startIcon:m.jsx(c.slots.exportIcon,{}),"aria-expanded":p,"aria-label":a.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":p?d:void 0,id:u},(w=c.slotProps)==null?void 0:w.baseButton,i,{onClick:g,ref:y,children:a.current.getLocaleText("toolbarExport")}))})),m.jsx(sd,{open:p,target:f.current,onClose:v,position:"bottom-start",children:m.jsx(La,{id:d,className:B.menuList,"aria-labelledby":u,onKeyDown:x,autoFocusItem:p,children:b.Children.map(r,k=>b.isValidElement(k)?b.cloneElement(k,{hideMenu:v}):k)})})]})});process.env.NODE_ENV!=="production"&&(JS.propTypes={slotProps:s.object});const Gz=["hideMenu","options"],Wz=["hideMenu","options"],Uz=["csvOptions","printOptions","excelOptions"];function e2(e){const t=nt(),{hideMenu:n,options:r}=e,o=Be(e,Gz);return m.jsx(Vn,z({onClick:()=>{t.current.exportDataAsCsv(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportCSV")}))}process.env.NODE_ENV!=="production"&&(e2.propTypes={hideMenu:s.func,options:s.shape({allColumns:s.bool,delimiter:s.string,disableToolbarButton:s.bool,escapeFormulas:s.bool,fields:s.arrayOf(s.string),fileName:s.string,getRowsToExport:s.func,includeColumnGroupsHeaders:s.bool,includeHeaders:s.bool,shouldAppendQuotes:s.bool,utf8WithBom:s.bool})});function t2(e){const t=nt(),{hideMenu:n,options:r}=e,o=Be(e,Wz);return m.jsx(Vn,z({onClick:()=>{t.current.exportDataAsPrint(r),n==null||n()}},o,{children:t.current.getLocaleText("toolbarExportPrint")}))}process.env.NODE_ENV!=="production"&&(t2.propTypes={hideMenu:s.func,options:s.shape({allColumns:s.bool,bodyClassName:s.string,copyStyles:s.bool,disableToolbarButton:s.bool,fields:s.arrayOf(s.string),fileName:s.string,getRowsToExport:s.func,hideFooter:s.bool,hideToolbar:s.bool,includeCheckboxes:s.bool,pageStyle:s.oneOfType([s.func,s.string])})});const qz=ht(function(t,n){const r=t,{csvOptions:o={},printOptions:i={},excelOptions:l}=r,a=Be(r,Uz),u=nt().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:l,csvOptions:o,printOptions:i}).sort((d,p)=>d.componentName>p.componentName?1:-1);return u.length===0?null:m.jsx(JS,z({},a,{ref:n,children:u.map((d,p)=>b.cloneElement(d.component,{key:p}))}))});process.env.NODE_ENV!=="production"&&(qz.propTypes={csvOptions:s.object,printOptions:s.object,slotProps:s.object});const Kz=["className","selectedRowCount"],Yz=e=>{const{classes:t}=e;return ye({root:["selectedRowCount"]},ut,t)},Xz=$t("div",{name:"MuiDataGrid",slot:"SelectedRowCount",overridesResolver:(e,t)=>t.selectedRowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2),visibility:"hidden",width:0,height:0,[e.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}})),n2=ht(function(t,n){const{className:r,selectedRowCount:o}=t,i=Be(t,Kz),l=nt(),a=Le(),c=Yz(a),u=l.current.getLocaleText("footerRowSelected")(o);return m.jsx(Xz,z({className:ue(c.root,r),ownerState:a},i,{ref:n,children:u}))});process.env.NODE_ENV!=="production"&&(n2.propTypes={selectedRowCount:s.number.isRequired,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const r2=ht(function(t,n){var p,h;const r=nt(),o=Le(),i=me(r,nF),l=me(r,s8),a=me(r,xh),c=!o.hideFooterSelectedRowCount&&l>0?m.jsx(n2,{selectedRowCount:l}):m.jsx("div",{}),u=!o.hideFooterRowCount&&!o.pagination?m.jsx(o.slots.footerRowCount,z({},(p=o.slotProps)==null?void 0:p.footerRowCount,{rowCount:i,visibleRowCount:a})):null,d=o.pagination&&!o.hideFooterPagination&&o.slots.pagination&&m.jsx(o.slots.pagination,z({},(h=o.slotProps)==null?void 0:h.pagination));return m.jsxs(wS,z({},t,{ref:n,children:[c,u,d]}))});process.env.NODE_ENV!=="production"&&(r2.propTypes={sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const Bl=(e,t,n,r,o,i)=>{let l;switch(e){case st.LEFT:l=r[n];break;case st.RIGHT:l=o-r[n]-t+i;break;default:l=void 0;break}return l},fu=(e,t,n,r,o)=>{const i=t===n-1;return e===st.LEFT&&i?!0:r?e===st.LEFT?!0:e===st.RIGHT?!i:!i||o:!1},mu=(e,t)=>e===st.RIGHT&&t===0,fl={root:B.scrollbarFiller,header:B["scrollbarFiller--header"],borderTop:B["scrollbarFiller--borderTop"],borderBottom:B["scrollbarFiller--borderBottom"],pinnedRight:B["scrollbarFiller--pinnedRight"]};function Lh({header:e,borderTop:t=!0,borderBottom:n,pinnedRight:r}){return m.jsx("div",{role:"presentation",className:ue(fl.root,e&&fl.header,t&&fl.borderTop,n&&fl.borderBottom,r&&fl.pinnedRight)})}const Zz=$t("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay",overridesResolver:(e,t)=>t.skeletonLoadingOverlay})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),Qz=e=>{const{classes:t}=e;return ye({root:["skeletonLoadingOverlay"]},ut,t)},j1=e=>parseInt(e.getAttribute("data-colindex"),10),Jz=ht(function(t,n){var T;const r=Le(),{slots:o}=r,i=Nn(),l=Qz({classes:r.classes}),a=b.useRef(null),c=It(a,n),u=nt(),d=me(u,pn),p=(T=d==null?void 0:d.viewportInnerSize.height)!=null?T:0,h=Math.ceil(p/d.rowHeight),f=me(u,od),y=me(u,ss),g=b.useMemo(()=>y.filter(N=>N<=f).length,[f,y]),v=me(u,Zt),x=b.useMemo(()=>v.slice(0,g),[v,g]),S=me(u,Bi),w=b.useCallback(N=>{if(S.left.findIndex(P=>P.field===N)!==-1)return st.LEFT;if(S.right.findIndex(P=>P.field===N)!==-1)return st.RIGHT},[S.left,S.right]),k=b.useMemo(()=>{const N=[];for(let P=0;P<h;P+=1){const O=[];for(let j=0;j<x.length;j+=1){const $=x[j],C=w($.field),L=C===st.LEFT,F=C===st.RIGHT,M=yS(C,i),R=M?S[M].length:x.length-S.left.length-S.right.length,_=M?S[M].findIndex(re=>re.field===$.field):j-S.left.length,V=d.hasScrollY?d.scrollbarSize:0,W=hd({},i,C,Bl(C,$.computedWidth,j,y,d.columnsTotalWidth,V)),I=d.columnsTotalWidth<d.viewportOuterSize.width,D=fu(C,_,R,r.showCellVerticalBorder,I),G=mu(C,_),A=j===x.length-1,K=F&&_===0,Y=K&&I,U=A&&!K&&I,q=d.viewportOuterSize.width-d.columnsTotalWidth,Z=Math.max(0,q),X=m.jsx(o.skeletonCell,{width:Z,empty:!0},`skeleton-filler-column-${P}`),Q=A&&V!==0;Y&&O.push(X),O.push(m.jsx(o.skeletonCell,{field:$.field,type:$.type,align:$.align,width:"var(--width)",height:d.rowHeight,"data-colindex":j,className:ue(L&&B["cell--pinnedLeft"],F&&B["cell--pinnedRight"],D&&B["cell--withRightBorder"],G&&B["cell--withLeftBorder"]),style:z({"--width":`${$.computedWidth}px`},W)},`skeleton-column-${P}-${$.field}`)),U&&O.push(X),Q&&O.push(m.jsx(Lh,{pinnedRight:S.right.length>0},`skeleton-scrollbar-filler-${P}`))}N.push(m.jsx("div",{className:ue(B.row,B.rowSkeleton,P===0&&B["row--firstVisible"]),children:O},`skeleton-row-${P}`))}return N},[o,x,S,h,r.showCellVerticalBorder,d,y,w,i]);return Pe(u,"columnResize",N=>{var _,V,W;const{colDef:P,width:O}=N,j=(_=a.current)==null?void 0:_.querySelectorAll(`[data-field="${Mo(P.field)}"]`);if(!j)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const $=x.findIndex(I=>I.field===P.field),C=w(P.field),L=C===st.LEFT,F=C===st.RIGHT,M=getComputedStyle(j[0]).getPropertyValue("--width"),R=parseInt(M,10)-O;if(j&&j.forEach(I=>{I.style.setProperty("--width",`${O}px`)}),L){const I=(V=a.current)==null?void 0:V.querySelectorAll(`.${B["cell--pinnedLeft"]}`);I==null||I.forEach(D=>{j1(D)>$&&(D.style.left=`${parseInt(getComputedStyle(D).left,10)-R}px`)})}if(F){const I=(W=a.current)==null?void 0:W.querySelectorAll(`.${B["cell--pinnedRight"]}`);I==null||I.forEach(D=>{j1(D)<$&&(D.style.right=`${parseInt(getComputedStyle(D).right,10)+R}px`)})}}),m.jsx(Zz,z({className:l.root},t,{ref:c,children:k}))}),eB=["variant","noRowsVariant","style"],tB={"circular-progress":{component:Pa,style:{}},"linear-progress":{component:qm,style:{display:"block"}},skeleton:{component:Jz,style:{display:"block"}}},o2=ht(function(t,n){const{variant:r="circular-progress",noRowsVariant:o="circular-progress",style:i}=t,l=Be(t,eB),a=nt(),c=me(a,Aa),u=tB[c===0?o:r];return m.jsx(gd,z({style:z({},u.style,i)},l,{ref:n,children:m.jsx(u.component,{})}))});process.env.NODE_ENV!=="production"&&(o2.propTypes={noRowsVariant:s.oneOf(["circular-progress","linear-progress","skeleton"]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["circular-progress","linear-progress","skeleton"])});const s2=ht(function(t,n){const o=nt().current.getLocaleText("noRowsLabel");return m.jsx(gd,z({},t,{ref:n,children:o}))});process.env.NODE_ENV!=="production"&&(s2.propTypes={sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const nB=ne(qC)(({theme:e})=>({maxHeight:"calc(100% + 1px)",flexGrow:1,[`& .${Ts.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${Ts.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),rB=(e,t)=>({from:n,to:r,count:o,page:i})=>e({from:n,to:r,count:o,page:i,estimated:t}),oB=({from:e,to:t,count:n,estimated:r})=>r?`${e}–${t} of ${n!==-1?n:`more than ${r>t?r:t}`}`:`${e}–${t} of ${n!==-1?n:`more than ${t}`}`,i2=ht(function(t,n){var k,E;const r=nt(),o=Le(),i=me(r,Pn),l=me(r,fi),a=me(r,Kw),{paginationMode:c,loading:u,estimatedRowCount:d}=o,p=b.useMemo(()=>l===-1&&c==="server"&&u?{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}:{},[u,c,l]),h=b.useMemo(()=>Math.max(0,a-1),[a]),f=b.useMemo(()=>l===-1||i.page<=h?i.page:h,[h,i.page,l]),y=b.useCallback(T=>{const N=Number(T.target.value);r.current.setPageSize(N)},[r]),g=b.useCallback((T,N)=>{r.current.setPage(N)},[r]),v=T=>{for(let N=0;N<o.pageSizeOptions.length;N+=1){const P=o.pageSizeOptions[N];if(typeof P=="number"){if(P===T)return!0}else if(P.value===T)return!0}return!1};if(process.env.NODE_ENV!=="production"){const T=b.useRef(!1),N=(E=(k=o.paginationModel)==null?void 0:k.pageSize)!=null?E:i.pageSize;!T.current&&!o.autoPageSize&&!v(N)&&(console.warn([`MUI X: The page size \`${i.pageSize}\` is not present in the \`pageSizeOptions\`.`,"Add it to show the pagination select."].join(`
441
- `)),T.current=!0)}const x=v(i.pageSize)?o.pageSizeOptions:[],S=r.current.getLocaleText("MuiTablePagination"),w=rB(S.labelDisplayedRows||oB,d);return m.jsx(nB,z({component:"div",count:l,page:f,rowsPerPageOptions:x,rowsPerPage:i.pageSize,onPageChange:g,onRowsPerPageChange:y},p,S,{labelDisplayedRows:w},t,{ref:n}))});process.env.NODE_ENV!=="production"&&(i2.propTypes={component:s.elementType});const sB=["className","rowCount","visibleRowCount"],iB=e=>{const{classes:t}=e;return ye({root:["rowCount"]},ut,t)},lB=$t("div",{name:"MuiDataGrid",slot:"RowCount",overridesResolver:(e,t)=>t.rowCount})(({theme:e})=>({alignItems:"center",display:"flex",margin:e.spacing(0,2)})),l2=ht(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,l=Be(t,sB),a=nt(),c=Le(),u=iB(c);if(o===0)return null;const d=i<o?a.current.getLocaleText("footerTotalVisibleRows")(i,o):o.toLocaleString();return m.jsxs(lB,z({className:ue(u.root,r),ownerState:c},l,{ref:n,children:[a.current.getLocaleText("footerTotalRows")," ",d]}))});process.env.NODE_ENV!=="production"&&(l2.propTypes={rowCount:s.number.isRequired,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),visibleRowCount:s.number.isRequired});function aB(e){for(const t in e)return!1;return!0}function cB(e,t){return ye(t,ut,e)}const uB=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","pinnedColumns","offsetLeft","columnsTotalWidth","firstColumnIndex","lastColumnIndex","focusedColumnIndex","isFirstVisible","isLastVisible","isNotVisible","showBottomBorder","scrollbarWidth","gridHasFiller","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],dB=Fa(dn,(e,t)=>t?!!aB(e):!1),a2=ht(function(t,n){var he;const{selected:r,rowId:o,row:i,index:l,style:a,rowHeight:c,className:u,visibleColumns:d,pinnedColumns:p,offsetLeft:h,columnsTotalWidth:f,firstColumnIndex:y,lastColumnIndex:g,focusedColumnIndex:v,isFirstVisible:x,isLastVisible:S,isNotVisible:w,showBottomBorder:k,scrollbarWidth:E,gridHasFiller:T,onClick:N,onDoubleClick:P,onMouseEnter:O,onMouseLeave:j,onMouseOut:$,onMouseOver:C}=t,L=Be(t,uB),F=Ir(),M=Oh(),R=b.useRef(null),_=Le(),V=Th(F),W=me(F,jr),I=me(F,Hs),D=me(F,ss),G=_.rowReordering,A=ia(F,dB,G),K=It(R,n),Y=F.current.getRowNode(o),U=ia(F,gS,{rowId:o,editMode:_.editMode}),q=_.editMode===co.Row,Z=v!==void 0,X=Z&&v>=p.left.length&&v<y,Q=Z&&v<d.length-p.right.length&&v>=g,re=cB(_.classes,{root:["row",r&&"selected",q&&"row--editable",U&&"row--editing",x&&"row--firstVisible",S&&"row--lastVisible",k&&"row--borderBottom",c==="auto"&&"row--dynamicHeight"]}),J=M.hooks.useGridRowAriaAttributes();b.useLayoutEffect(()=>{if(V.range){const ae=F.current.getRowIndexRelativeToVisibleRows(o);ae!==void 0&&F.current.unstable_setLastMeasuredRowIndex(ae)}if(R.current&&c==="auto")return F.current.observeRowHeight(R.current,o)},[F,V.range,c,o]);const oe=b.useCallback((ae,ge)=>be=>{Ga(be)||F.current.getRow(o)&&(F.current.publishEvent(ae,F.current.getRowParams(o),be),ge&&ge(be))},[F,o]),te=b.useCallback(ae=>{const ge=du(ae.target,B.cell),be=ge==null?void 0:ge.getAttribute("data-field");if(be){if(be===Gi.field||be===ad||be==="__reorder__"||F.current.getCellMode(o,be)===St.Edit)return;const Te=F.current.getColumn(be);if((Te==null?void 0:Te.type)===id)return}oe("rowClick",N)(ae)},[F,N,oe,o]),{slots:fe,slotProps:ve,disableColumnReorder:Ce}=_,xe=me(F,()=>z({},F.current.getRowHeightEntry(o)),dh),Se=b.useMemo(()=>{if(w)return{opacity:0,width:0,height:0};const ae=z({},a,{maxHeight:c==="auto"?"none":c,minHeight:c,"--height":typeof c=="number"?`${c}px`:c});if(xe.spacingTop){const ge=_.rowSpacingType==="border"?"borderTopWidth":"marginTop";ae[ge]=xe.spacingTop}if(xe.spacingBottom){const ge=_.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let be=ae[ge];typeof be!="number"&&(be=parseInt(be||"0",10)),be+=xe.spacingBottom,ae[ge]=be}return ae},[w,c,a,xe,_.rowSpacingType]),Oe=F.current.unstable_applyPipeProcessors("rowClassName",[],o),Ae=J(Y,l);if(typeof _.getRowClassName=="function"){const ae=l-(((he=V.range)==null?void 0:he.firstRowIndex)||0),ge=z({},F.current.getRowParams(o),{isFirstVisible:ae===0,isLastVisible:ae===V.rows.length-1,indexRelativeToCurrentPage:ae});Oe.push(_.getRowClassName(ge))}const se=(ae,ge,be,Te,_e=st.NONE)=>{var We,pt;const ke=F.current.unstable_getCellColSpanInfo(o,be);if(ke!=null&&ke.spannedByColSpan)return null;const dt=(We=ke==null?void 0:ke.cellProps.width)!=null?We:ae.computedWidth,at=(pt=ke==null?void 0:ke.cellProps.colSpan)!=null?pt:1,Pt=Bl(_e,ae.computedWidth,be,D,f,E);if(Y.type==="skeletonRow")return m.jsx(fe.skeletonCell,{type:ae.type,width:dt,height:c,field:ae.field,align:ae.align},ae.field);const qe=ae.field==="__reorder__",Ve=!(Ce||ae.disableReorder),it=A&&!W.length&&I<=1,ft=!(Ve||qe&&it),mn=_e===st.VIRTUAL,qn=mu(_e,ge),Re=fu(_e,ge,Te,_.showCellVerticalBorder,T);return m.jsx(fe.cell,z({column:ae,width:dt,rowId:o,align:ae.align||"left",colIndex:be,colSpan:at,disableDragEvents:ft,isNotVisible:mn,pinnedOffset:Pt,pinnedPosition:_e,showLeftBorder:qn,showRightBorder:Re,row:i,rowNode:Y},ve==null?void 0:ve.cell),ae.field)},Ge=p.left.map((ae,ge)=>se(ae,ge,ge,p.left.length,st.LEFT)),Ie=p.right.map((ae,ge)=>{const be=d.length-p.right.length+ge;return se(ae,ge,be,p.right.length,st.RIGHT)}),Ye=d.length-p.left.length-p.right.length,ee=[];X&&ee.push(se(d[v],v-p.left.length,v,Ye,st.VIRTUAL));for(let ae=y;ae<g;ae+=1){const ge=d[ae],be=ae-p.left.length;ge&&ee.push(se(ge,be,ae,Ye))}Q&&ee.push(se(d[v],v-p.left.length,v,Ye,st.VIRTUAL));const de=i?{onClick:te,onDoubleClick:oe("rowDoubleClick",P),onMouseEnter:oe("rowMouseEnter",O),onMouseLeave:oe("rowMouseLeave",j),onMouseOut:oe("rowMouseOut",$),onMouseOver:oe("rowMouseOver",C)}:null;return m.jsxs("div",z({"data-id":o,"data-rowindex":l,role:"row",className:ue(...Oe,re.root,u),style:Se},Ae,de,L,{ref:K,children:[Ge,m.jsx("div",{role:"presentation",className:B.cellOffsetLeft,style:{width:h}}),ee,m.jsx("div",{role:"presentation",className:ue(B.cell,B.cellEmpty)}),Ie,E!==0&&m.jsx(Lh,{pinnedRight:p.right.length>0,borderTop:!x})]}))});process.env.NODE_ENV!=="production"&&(a2.propTypes={columnsTotalWidth:s.number.isRequired,firstColumnIndex:s.number.isRequired,focusedColumnIndex:s.number,gridHasFiller:s.bool.isRequired,index:s.number.isRequired,isFirstVisible:s.bool.isRequired,isLastVisible:s.bool.isRequired,isNotVisible:s.bool.isRequired,lastColumnIndex:s.number.isRequired,offsetLeft:s.number.isRequired,onClick:s.func,onDoubleClick:s.func,onMouseEnter:s.func,onMouseLeave:s.func,pinnedColumns:s.object.isRequired,row:s.object.isRequired,rowHeight:s.oneOfType([s.oneOf(["auto"]),s.number]).isRequired,rowId:s.oneOfType([s.number,s.string]).isRequired,scrollbarWidth:s.number.isRequired,selected:s.bool.isRequired,showBottomBorder:s.bool.isRequired,visibleColumns:s.arrayOf(s.object).isRequired});const pB=Po(a2),fB=()=>{const e=Ir(),t=Le(),n=me(e,Zt),r=me(e,vh),o=me(e,Va),i=me(e,cw);return{role:"grid","aria-colcount":n.length,"aria-rowcount":o+1+i+r,"aria-multiselectable":Ch(t)}},mB=()=>{const e=Ir(),t=me(e,qo),n=me(e,Va);return b.useCallback((r,o)=>{const i={},l=o+n+2;return i["aria-rowindex"]=l,e.current.isRowSelectable(r.id)&&(i["aria-selected"]=t[r.id]!==void 0),i},[e,t,n])};function hB({privateApiRef:e,configuration:t,props:n,children:r}){const o=b.useRef(e.current.getPublicApi());return m.jsx(Ph.Provider,{value:t,children:m.jsx(ch.Provider,{value:n,children:m.jsx(Eh.Provider,{value:e,children:m.jsx(ah.Provider,{value:o,children:r})})})})}const gB=e=>{const t=b.useRef(null),n=b.useRef(null),r=b.useRef(null),o=b.useRef(null),i=b.useRef(null),l=b.useRef(null);e.current.register("public",{rootElementRef:t}),e.current.register("private",{mainElementRef:n,virtualScrollerRef:r,virtualScrollbarVerticalRef:o,virtualScrollbarHorizontalRef:i,columnHeadersContainerRef:l})},bB=e=>{const t=Nn();e.current.state.isRtl===void 0&&(e.current.state.isRtl=t);const n=b.useRef(!0);b.useEffect(()=>{n.current?n.current=!1:e.current.setState(r=>z({},r,{isRtl:t}))},[e,t])},yB=mF()&&window.localStorage.getItem("DEBUG")!=null,Ml=()=>{},vB={debug:Ml,info:Ml,warn:Ml,error:Ml},L1=["debug","info","warn","error"];function $1(e,t,n=console){const r=L1.indexOf(t);if(r===-1)throw new Error(`MUI X: Log level ${t} not recognized.`);return L1.reduce((i,l,a)=>(a>=r?i[l]=(...c)=>{const[u,...d]=c;n[l](`MUI X: ${e} - ${u}`,...d)}:i[l]=Ml,i),{})}const xB=(e,t)=>{const n=b.useCallback(r=>yB?$1(r,"debug",t.logger):t.logLevel?$1(r,t.logLevel.toString(),t.logger):vB,[t.logLevel,t.logger]);et(e,{getLogger:n},"private")};class CB{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];if(o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0),process.env.NODE_ENV!=="production"){const i=o.highPriority.size+o.regular.size;i>this.maxListeners&&!this.warnOnce&&(this.warnOnce=!0,console.warn([`Possible EventEmitter memory leak detected. ${i} ${t} listeners added.`].join(`
442
- `)))}}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),i=Array.from(r.regular.keys());for(let l=o.length-1;l>=0;l-=1){const a=o[l];r.highPriority.has(a)&&a.apply(this,n)}for(let l=0;l<i.length;l+=1){const a=i[l];r.regular.has(a)&&a.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...i){r.removeListener(t,o),n.apply(r,i)})}}class $h{static create(t){return new $h(t)}constructor(t){this.value=void 0,this.listeners=void 0,this.subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.value,this.update=n=>{this.value=n,this.listeners.forEach(r=>r(n))},this.value=t,this.listeners=new Set}}const c2=Symbol("mui.api_private"),wB=e=>e.isPropagationStopped!==void 0;let N1=0;function SB(e){var o;const t=(o=e.current)==null?void 0:o[c2];if(t)return t;const n={},r={state:n,store:$h.create(n),instanceId:{id:N1}};return N1+=1,r.getPublicApi=()=>e.current,r.register=(i,l)=>{Object.keys(l).forEach(a=>{const c=l[a],u=r[a];if((u==null?void 0:u.spying)===!0?u.target=c:r[a]=c,i==="public"){const d=e.current,p=d[a];(p==null?void 0:p.spying)===!0?p.target=c:d[a]=c}})},r.register("private",{caches:{},eventManager:new CB}),r}function kB(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[c2]:e.current}}function EB(e,t){var l;const n=b.useRef(null),r=b.useRef(null);r.current||(r.current=SB(n)),n.current||(n.current=kB(r));const o=b.useCallback((...a)=>{const[c,u,d={}]=a;if(d.defaultMuiPrevented=!1,wB(d)&&d.isPropagationStopped())return;const p=t.signature===nr.DataGridPro||t.signature===nr.DataGridPremium?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(c,u,d,p)},[r,t.signature]),i=b.useCallback((a,c,u)=>{r.current.eventManager.on(a,c,u);const d=r.current;return()=>{d.eventManager.removeListener(a,c)}},[r]);return et(r,{subscribeEvent:i,publishEvent:o},"public"),e&&!((l=e.current)!=null&&l.state)&&(e.current=n.current),b.useImperativeHandle(e,()=>n.current,[n]),b.useEffect(()=>{const a=r.current;return()=>{a.publishEvent("unmount")}},[r]),r}const TB=(e,t)=>{const n=b.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})};function ua(e){"@babel/helpers - typeof";return ua=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ua(e)}function IB(e,t){if(ua(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ua(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function da(e){var t=IB(e,"string");return ua(t)=="symbol"?t:t+""}const PB=e=>{const t=b.useRef({}),n=b.useRef(!1),r=b.useCallback(d=>{n.current||!d||(n.current=!0,Object.values(d.appliers).forEach(p=>{p()}),n.current=!1)},[]),o=b.useCallback((d,p,h)=>{t.current[d]||(t.current[d]={processors:new Map,processorsAsArray:[],appliers:{}});const f=t.current[d];return f.processors.get(p)!==h&&(f.processors.set(p,h),f.processorsAsArray=Array.from(t.current[d].processors.values()).filter(g=>g!==null),r(f)),()=>{t.current[d].processors.set(p,null),t.current[d].processorsAsArray=Array.from(t.current[d].processors.values()).filter(g=>g!==null)}},[r]),i=b.useCallback((d,p,h)=>(t.current[d]||(t.current[d]={processors:new Map,processorsAsArray:[],appliers:{}}),t.current[d].appliers[p]=h,()=>{const f=t.current[d].appliers,y=Be(f,[p].map(da));t.current[d].appliers=y}),[]),l=b.useCallback(d=>{r(t.current[d])},[r]),a=b.useCallback((...d)=>{const[p,h,f]=d;if(!t.current[p])return h;const y=t.current[p].processorsAsArray;let g=h;for(let v=0;v<y.length;v+=1)g=y[v](g,f);return g},[]),c={registerPipeProcessor:o,registerPipeApplier:i,requestPipeProcessorsApplication:l},u={unstable_applyPipeProcessors:a};et(e,c,"private"),et(e,u,"public")},Ut=(e,t,n,r=!0)=>{const o=b.useRef(null),i=b.useRef(`mui-${Math.round(Math.random()*1e9)}`),l=b.useCallback(()=>{o.current=e.current.registerPipeProcessor(t,i.current,n)},[e,n,t]);Da(()=>{r&&l()});const a=b.useRef(!0);b.useEffect(()=>(a.current?a.current=!1:r&&l(),()=>{o.current&&(o.current(),o.current=null)}),[l,r])},Nh=(e,t,n)=>{const r=b.useRef(null),o=b.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=b.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);Da(()=>{i()});const l=b.useRef(!0);b.useEffect(()=>(l.current?l.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])},hu=(e,t,n,r)=>{const o=b.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);Da(()=>{o()});const i=b.useRef(!0);b.useEffect(()=>{i.current?i.current=!1:o()},[o])},$s="none",F1={rowTreeCreation:"rowTree",filtering:"rowTree",sorting:"rowTree",visibleRowsLookupCreation:"rowTree"},OB=e=>{const t=b.useRef(new Map),n=b.useRef({}),r=b.useCallback((c,u,d)=>{const p=()=>{const y=n.current[u],g=Be(y,[c].map(da));n.current[u]=g};n.current[u]||(n.current[u]={});const h=n.current[u],f=h[c];return h[c]=d,!f||f===d||c===e.current.getActiveStrategy(F1[u])&&e.current.publishEvent("activeStrategyProcessorChange",u),p},[e]),o=b.useCallback((c,u)=>{const d=e.current.getActiveStrategy(F1[c]);if(d==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const p=n.current[c];if(!p||!p[d])throw new Error(`No processor found for processor "${c}" on strategy "${d}"`);const h=p[d];return h(u)},[e]),i=b.useCallback(c=>{var p;const d=Array.from(t.current.entries()).find(([,h])=>h.group!==c?!1:h.isAvailable());return(p=d==null?void 0:d[0])!=null?p:$s},[]),l=b.useCallback((c,u,d)=>{t.current.set(u,{group:c,isAvailable:d}),e.current.publishEvent("strategyAvailabilityChange")},[e]);et(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:i,setStrategyAvailability:l},"private")},MB=e=>{const t=b.useRef({}),n=b.useCallback(c=>{t.current[c.stateId]=c},[]),r=b.useCallback((c,u)=>{let d;if(fF(c)?d=c(e.current.state):d=c,e.current.state===d)return!1;let p=!1;const h=[];if(Object.keys(t.current).forEach(f=>{const y=t.current[f],g=y.stateSelector(e.current.state,e.current.instanceId),v=y.stateSelector(d,e.current.instanceId);v!==g&&(h.push({stateId:y.stateId,hasPropChanged:v!==y.propModel}),y.propModel!==void 0&&v!==y.propModel&&(p=!0))}),h.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${h[0].stateId}, therefore, you're not allowed to update ${h.map(f=>f.stateId).join(", ")} in the same transaction.`);if(p||(e.current.state=d,e.current.publishEvent("stateChange",d),e.current.store.update(d)),h.length===1){const{stateId:f,hasPropChanged:y}=h[0],g=t.current[f],v=g.stateSelector(d,e.current.instanceId);g.propOnChange&&y&&g.propOnChange(v,{reason:u,api:e.current}),p||e.current.publishEvent(g.changeEvent,v,{reason:u})}return!p},[e]),o=b.useCallback((c,u,d)=>e.current.setState(p=>z({},p,{[c]:u(p[c])}),d),[e]),i=b.useCallback(()=>{},[]),l={setState:r,forceUpdate:i},a={updateControlState:o,registerControlState:n};et(e,l,"public"),et(e,a,"private")},RB=(e,t)=>z({},e,{props:{getRowId:t.getRowId}}),jB=(e,t)=>{b.useEffect(()=>{e.current.setState(n=>z({},n,{props:{getRowId:t.getRowId}}))},[e,t.getRowId])},LB=(e,t)=>{const n=EB(e,t);return gB(n),jB(n,t),bB(n),xB(n,t),MB(n),PB(n),OB(n),TB(n,t),n.current.register("private",{rootProps:t}),n},un=(e,t,n)=>{const r=b.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)};function wf(e,t){if(e==null)return"";const n=typeof e=="string"?e:`${e}`;if(t.shouldAppendQuotes||t.escapeFormulas){const r=n.replace(/"/g,'""');return t.escapeFormulas&&["=","+","-","@"," ","\r"].includes(r[0])?`"'${r}"`:[t.delimiter,`
443
- `,"\r",'"'].some(o=>n.includes(o))?`"${r}"`:r}return n}const u2=(e,t)=>{var i,l;const{csvOptions:n,ignoreValueFormatter:r}=t;let o;if(r){const a=e.colDef.type;a==="number"?o=String(e.value):a==="date"||a==="dateTime"?o=(i=e.value)==null?void 0:i.toISOString():typeof((l=e.value)==null?void 0:l.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return wf(o,n)};class Sf{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.csvOptions):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const $B=({id:e,columns:t,getCellParams:n,csvOptions:r,ignoreValueFormatter:o})=>{const i=new Sf({csvOptions:r});return t.forEach(l=>{const a=n(e,l.field);process.env.NODE_ENV!=="production"&&String(a.formattedValue)==="[object Object]"&&br(["MUI X: When the value of a field is an object or a `renderCell` is provided, the CSV export might not display the value correctly.","You can provide a `valueFormatter` with a string representation to be used."]),i.addValue(u2(a,{ignoreValueFormatter:o,csvOptions:r}))}),i.getRowString()};function NB(e){const{columns:t,rowIds:n,csvOptions:r,ignoreValueFormatter:o,apiRef:i}=e,l=n.reduce((p,h)=>`${p}${$B({id:h,columns:t,getCellParams:i.current.getCellParams,ignoreValueFormatter:o,csvOptions:r})}\r
444
- `,"").trim();if(!r.includeHeaders)return l;const a=t.filter(p=>p.field!==Gi.field),c=[];if(r.includeColumnGroupsHeaders){const p=i.current.getAllGroupDetails();let h=0;const f=a.reduce((y,g)=>{const v=i.current.getColumnGroupPath(g.field);return y[g.field]=v,h=Math.max(h,v.length),y},{});for(let y=0;y<h;y+=1){const g=new Sf({csvOptions:r,sanitizeCellValue:wf});c.push(g),a.forEach(v=>{const x=(f[v.field]||[])[y],S=p[x];g.addValue(S?S.headerName||S.groupId:"")})}}const u=new Sf({csvOptions:r,sanitizeCellValue:wf});return a.forEach(p=>{u.addValue(p.headerName||p.field)}),c.push(u),`${`${c.map(p=>p.getRowString()).join(`\r
445
- `)}\r
446
- `}${l}`.trim()}function A1(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function FB(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{A1(e)}):A1(e)}function AB(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const DB=(e,t)=>{const n=t.ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,i=b.useCallback(l=>{if(!rz(l)||AB(l.target))return;let a="";if(e.current.getSelectedRows().size>0)a=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1});else{const u=jn(e);if(u){const d=e.current.getCellParams(u.id,u.field);a=u2(d,{csvOptions:{delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:r})}}a=e.current.unstable_applyPipeProcessors("clipboardCopy",a),a&&(FB(a),e.current.publishEvent("clipboardCopy",a))},[e,r,o]);Vw(e,()=>e.current.rootElementRef.current,"keydown",i),Et(e,"clipboardCopy",t.onClipboardCopy)},_B=e=>z({},e,{columnMenu:{open:!1}}),zB=e=>{const t=fn(e,"useGridColumnMenu"),n=b.useCallback(l=>{const a=$c(e.current.state),c={open:!0,field:l};(c.open!==a.open||c.field!==a.field)&&(e.current.setState(d=>d.columnMenu.open&&d.columnMenu.field===l?d:(t.debug("Opening Column Menu"),z({},d,{columnMenu:{open:!0,field:l}}))),e.current.hidePreferences())},[e,t]),r=b.useCallback(()=>{const l=$c(e.current.state);if(l.field){const u=Oo(e),d=hr(e),p=Co(e);let h=l.field;if(u[h]||(h=p[0]),d[h]===!1){const f=p.filter(g=>g===h?!0:d[g]!==!1),y=f.indexOf(h);h=f[y+1]||f[y-1]}e.current.setColumnHeaderFocus(h)}const a={open:!1,field:void 0};(a.open!==l.open||a.field!==l.field)&&e.current.setState(u=>(t.debug("Hiding Column Menu"),z({},u,{columnMenu:a})))},[e,t]),o=b.useCallback(l=>{t.debug("Toggle Column Menu");const a=$c(e.current.state);!a.open||a.field!==l?n(l):r()},[e,t,n,r]);et(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),Pe(e,"columnResizeStart",r),Pe(e,"virtualScrollerWheel",e.current.hideColumnMenu),Pe(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},BB=(e,t,n)=>{var o,i,l,a,c,u;const r=ii({apiRef:n,columnsToUpsert:t.columns,initialState:(o=t.initialState)==null?void 0:o.columns,columnVisibilityModel:(c=(a=t.columnVisibilityModel)!=null?a:(l=(i=t.initialState)==null?void 0:i.columns)==null?void 0:l.columnVisibilityModel)!=null?c:{},keepOnlyColumnsToUpsert:!0});return z({},e,{columns:r,pinnedColumns:(u=e.pinnedColumns)!=null?u:iu})};function VB(e,t){var j,$;const n=fn(e,"useGridColumns"),r=b.useRef(t.columns);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:hr,changeEvent:"columnVisibilityModelChange"});const o=b.useCallback(C=>{n.debug("Updating columns state."),e.current.setState(D1(C)),e.current.publishEvent("columnsChange",C.orderedFields)},[n,e]),i=b.useCallback(C=>Oo(e)[C],[e]),l=b.useCallback(()=>yr(e),[e]),a=b.useCallback(()=>Zt(e),[e]),c=b.useCallback((C,L=!0)=>(L?Zt(e):yr(e)).findIndex(M=>M.field===C),[e]),u=b.useCallback(C=>{const L=c(C);return ss(e)[L]},[e,c]),d=b.useCallback(C=>{var F,M;hr(e)!==C&&(e.current.setState(R=>z({},R,{columns:ii({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:C,keepOnlyColumnsToUpsert:!1})})),(M=(F=e.current).updateRenderContext)==null||M.call(F),e.current.forceUpdate())},[e]),p=b.useCallback(C=>{const L=ii({apiRef:e,columnsToUpsert:C,initialState:void 0,keepOnlyColumnsToUpsert:!1});o(L)},[e,o]),h=b.useCallback((C,L)=>{var R;const F=hr(e),M=(R=F[C])!=null?R:!0;if(L!==M){const _=z({},F,{[C]:L});e.current.setColumnVisibilityModel(_)}},[e]),f=b.useCallback(C=>Co(e).findIndex(F=>F===C),[e]),y=b.useCallback((C,L)=>{const F=Co(e),M=f(C);if(M===L)return;n.debug(`Moving column ${C} to index ${L}`);const R=[...F],_=R.splice(M,1)[0];R.splice(L,0,_),o(z({},so(e.current.state),{orderedFields:R}));const V={column:e.current.getColumn(C),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(C),oldIndex:M};e.current.publishEvent("columnIndexChange",V)},[e,n,o,f]),g=b.useCallback((C,L)=>{n.debug(`Updating column ${C} width to ${L}`);const F=so(e.current.state),M=F.lookup[C],R=z({},M,{width:L,hasBeenResized:!0});o(yf(z({},F,{lookup:z({},F.lookup,{[C]:R})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(C),colDef:R,width:L})},[e,n,o]),v={getColumn:i,getAllColumns:l,getColumnIndex:c,getColumnPosition:u,getVisibleColumns:a,getColumnIndexRelativeToVisibleColumns:f,updateColumns:p,setColumnVisibilityModel:d,setColumnVisibility:h,setColumnWidth:g},x={setColumnIndex:y};et(e,v,"public"),et(e,x,t.signature===nr.DataGrid?"private":"public");const S=b.useCallback((C,L)=>{var W,I,D;const F={},M=hr(e);(!L.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys((D=(I=(W=t.initialState)==null?void 0:W.columns)==null?void 0:I.columnVisibilityModel)!=null?D:{}).length>0||Object.keys(M).length>0)&&(F.columnVisibilityModel=M),F.orderedFields=Co(e);const _=yr(e),V={};return _.forEach(G=>{if(G.hasBeenResized){const A={};sS.forEach(K=>{let Y=G[K];Y===1/0&&(Y=-1),A[K]=Y}),V[G.field]=A}}),Object.keys(V).length>0&&(F.dimensions=V),z({},C,{columns:F})},[e,t.columnVisibilityModel,(j=t.initialState)==null?void 0:j.columns]),w=b.useCallback((C,L)=>{var _;const F=(_=L.stateToRestore.columns)==null?void 0:_.columnVisibilityModel,M=L.stateToRestore.columns;if(F==null&&M==null)return C;const R=ii({apiRef:e,columnsToUpsert:[],initialState:M,columnVisibilityModel:F,keepOnlyColumnsToUpsert:!1});return e.current.setState(D1(R)),M!=null&&e.current.publishEvent("columnsChange",R.orderedFields),C},[e]),k=b.useCallback((C,L)=>{var F;if(L===Ls.columns){const M=t.slots.columnsPanel;return m.jsx(M,z({},(F=t.slotProps)==null?void 0:F.columnsPanel))}return C},[t.slots.columnsPanel,($=t.slotProps)==null?void 0:$.columnsPanel]),E=b.useCallback(C=>t.disableColumnSelector?C:[...C,"columnMenuColumnsItem"],[t.disableColumnSelector]);Ut(e,"columnMenu",E),Ut(e,"exportState",S),Ut(e,"restoreState",w),Ut(e,"preferencePanel",k);const T=b.useRef(null);Pe(e,"viewportInnerSizeChange",C=>{if(T.current!==C.width){if(T.current=C.width,!Zt(e).some(F=>F.flex&&F.flex>0))return;o(yf(so(e.current.state),e.current.getRootDimensions()))}});const P=b.useCallback(()=>{n.info("Columns pipe processing have changed, regenerating the columns");const C=ii({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});o(C)},[e,n,o]);Nh(e,"hydrateColumns",P);const O=b.useRef(!0);b.useEffect(()=>{if(O.current){O.current=!1;return}if(n.info(`GridColumns have changed, new length ${t.columns.length}`),r.current===t.columns)return;const C=ii({apiRef:e,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0});r.current=t.columns,o(C)},[n,e,o,t.columns]),b.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,n,t.columnVisibilityModel])}function D1(e){return t=>z({},t,{columns:e})}const HB=(e,t)=>{var n,r,o;return z({},e,{density:(o=(r=(n=t.initialState)==null?void 0:n.density)!=null?r:t.density)!=null?o:"standard"})},GB=(e,t)=>{var a;const n=fn(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:pi,changeEvent:"densityChange"});const o={setDensity:rt(c=>{pi(e.current.state)!==c&&(n.debug(`Set grid density to ${c}`),e.current.setState(d=>z({},d,{density:c})))})};et(e,o,"public");const i=b.useCallback((c,u)=>{var h;const d=pi(e.current.state);return!u.exportOnlyDirtyModels||t.density!=null||((h=t.initialState)==null?void 0:h.density)!=null?z({},c,{density:d}):c},[e,t.density,(a=t.initialState)==null?void 0:a.density]),l=b.useCallback((c,u)=>{var p;const d=(p=u.stateToRestore)!=null&&p.density?u.stateToRestore.density:pi(e.current.state);return e.current.setState(h=>z({},h,{density:d})),c},[e]);Ut(e,"exportState",i),Ut(e,"restoreState",l),b.useEffect(()=>{t.density&&e.current.setDensity(t.density)},[e,t.density])};function WB(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),i=document.createElement("a");i.href=o,i.download=r,i.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI X: exportAs not supported.")}const d2=({apiRef:e,options:t})=>{const n=yr(e);return t.fields?t.fields.reduce((o,i)=>{const l=n.find(a=>a.field===i);return l&&o.push(l),o},[]):(t.allColumns?n:Zt(e)).filter(o=>!o.disableExport)},p2=({apiRef:e})=>{var c,u;const t=Fw(e),n=ln(e),r=e.current.getSelectedRows(),o=t.filter(d=>n[d].type!=="footer"),i=_i(e),l=((c=i==null?void 0:i.top)==null?void 0:c.map(d=>d.id))||[],a=((u=i==null?void 0:i.bottom)==null?void 0:u.map(d=>d.id))||[];return o.unshift(...l),o.push(...a),r.size>0?o.filter(d=>r.has(d)):o},UB=(e,t)=>{const n=fn(e,"useGridCsvExport"),r=t.ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,i=b.useCallback((u={})=>{var f,y,g,v,x;n.debug("Get data as CSV");const d=d2({apiRef:e,options:u}),h=((f=u.getRowsToExport)!=null?f:p2)({apiRef:e});return NB({columns:d,rowIds:h,csvOptions:{delimiter:u.delimiter||",",shouldAppendQuotes:(y=u.shouldAppendQuotes)!=null?y:!0,includeHeaders:(g=u.includeHeaders)!=null?g:!0,includeColumnGroupsHeaders:(v=u.includeColumnGroupsHeaders)!=null?v:!0,escapeFormulas:(x=u.escapeFormulas)!=null?x:!0},ignoreValueFormatter:o,apiRef:e})},[n,e,o]),l=b.useCallback(u=>{n.debug("Export data as CSV");const d=i(u),p=new Blob([u!=null&&u.utf8WithBom?new Uint8Array([239,187,191]):"",d],{type:"text/csv"});WB(p,"csv",u==null?void 0:u.fileName)},[n,i]);et(e,{getDataAsCsv:i,exportDataAsCsv:l},"public");const c=b.useCallback((u,d)=>{var p;return(p=d.csvOptions)!=null&&p.disableToolbarButton?u:[...u,{component:m.jsx(e2,{options:d.csvOptions}),componentName:"csvExport"}]},[]);Ut(e,"exportMenu",c)},Nc=(e,t,n)=>{var u,d;let r=e.paginationModel;const o=e.rowCount,i=(u=n==null?void 0:n.pageSize)!=null?u:r.pageSize,l=(d=n==null?void 0:n.page)!=null?d:r.page,a=Hw(o,i,l);n&&((n==null?void 0:n.page)!==r.page||(n==null?void 0:n.pageSize)!==r.pageSize)&&(r=n);const c=i===-1?0:v8(r.page,a);return c!==r.page&&(r=z({},r,{page:c})),Ww(r.pageSize,t),r},qB=(e,t)=>{var S,w;const n=fn(e,"useGridPaginationModel"),r=me(e,Di),o=b.useRef(yn(e)),i=Math.floor(t.rowHeight*r);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:Pn,changeEvent:"paginationModelChange"});const l=b.useCallback(k=>{const E=Pn(e);k!==E.page&&(n.debug(`Setting page to ${k}`),e.current.setPaginationModel({page:k,pageSize:E.pageSize}))},[e,n]),a=b.useCallback(k=>{const E=Pn(e);k!==E.pageSize&&(n.debug(`Setting page size to ${k}`),e.current.setPaginationModel({pageSize:k,page:E.page}))},[e,n]),c=b.useCallback(k=>{const E=Pn(e);k!==E&&(n.debug("Setting 'paginationModel' to",k),e.current.setState(T=>z({},T,{pagination:z({},T.pagination,{paginationModel:Nc(T.pagination,t.signature,k)})}),"setPaginationModel"))},[e,n,t.signature]);et(e,{setPage:l,setPageSize:a,setPaginationModel:c},"public");const d=b.useCallback((k,E)=>{var P,O;const T=Pn(e);return!E.exportOnlyDirtyModels||t.paginationModel!=null||((O=(P=t.initialState)==null?void 0:P.pagination)==null?void 0:O.paginationModel)!=null||T.page!==0&&T.pageSize!==y8(t.autoPageSize)?z({},k,{pagination:z({},k.pagination,{paginationModel:T})}):k},[e,t.paginationModel,(w=(S=t.initialState)==null?void 0:S.pagination)==null?void 0:w.paginationModel,t.autoPageSize]),p=b.useCallback((k,E)=>{var N,P;const T=(N=E.stateToRestore.pagination)!=null&&N.paginationModel?z({},Gw(t.autoPageSize),(P=E.stateToRestore.pagination)==null?void 0:P.paginationModel):Pn(e);return e.current.setState(O=>z({},O,{pagination:z({},O.pagination,{paginationModel:Nc(O.pagination,t.signature,T)})}),"stateRestorePreProcessing"),k},[e,t.autoPageSize,t.signature]);Ut(e,"exportState",d),Ut(e,"restoreState",p);const h=()=>{var E;const k=Pn(e);(E=e.current.virtualScrollerRef)!=null&&E.current&&e.current.scrollToIndexes({rowIndex:k.page*k.pageSize})},f=b.useCallback(()=>{if(!t.autoPageSize)return;const k=e.current.getRootDimensions(),E=Math.max(1,Math.floor(k.viewportInnerSize.height/i));e.current.setPageSize(E)},[e,t.autoPageSize,i]),y=b.useCallback(k=>{if(k==null)return;const E=Pn(e);if(E.page===0)return;const T=Kw(e);E.page>T-1&&e.current.setPage(Math.max(0,T-1))},[e]),g=b.useCallback(()=>{Pn(e).page!==0&&e.current.setPage(0),e.current.getScrollPosition().top!==0&&e.current.scroll({top:0})},[e]),v=b.useCallback(k=>{const E=z({},k,{items:Dw(e)});Uo(E,o.current)||(o.current=E,g())},[e,g]);Pe(e,"viewportInnerSizeChange",f),Pe(e,"paginationModelChange",h),Pe(e,"rowCountChange",y),Pe(e,"sortModelChange",ys(t.resetPageOnSortFilter,g)),Pe(e,"filterModelChange",ys(t.resetPageOnSortFilter,v));const x=b.useRef(!0);b.useEffect(()=>{if(x.current){x.current=!1;return}t.pagination&&e.current.setState(k=>z({},k,{pagination:z({},k.pagination,{paginationModel:Nc(k.pagination,t.signature,t.paginationModel)})}))},[e,t.paginationModel,t.signature,t.pagination]),b.useEffect(()=>{e.current.setState(k=>{const E=t.pagination===!0;return k.pagination.paginationMode===t.paginationMode||k.pagination.enabled===E?k:z({},k,{pagination:z({},k.pagination,{paginationMode:t.paginationMode,enabled:t.pagination===!0})})})},[e,t.paginationMode,t.pagination]),b.useEffect(f,[f])};function KB(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function YB(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}const XB=(e,t)=>{const n=e.current.rootElementRef.current!==null,r=fn(e,"useGridPrintExport"),o=b.useRef(null),i=b.useRef(null),l=b.useRef({}),a=b.useRef([]),c=b.useRef(null);b.useEffect(()=>{o.current=Yt(e.current.rootElementRef.current)},[e,n]);const u=b.useCallback((v,x,S)=>new Promise(w=>{const k=d2({apiRef:e,options:{fields:v,allColumns:x}}).map(N=>N.field),E=yr(e),T={};E.forEach(N=>{T[N.field]=k.includes(N.field)}),S&&(T[Gi.field]=!0),e.current.setColumnVisibilityModel(T),w()}),[e]),d=b.useCallback(v=>{const S=v({apiRef:e}).reduce((w,k)=>{const E=e.current.getRow(k);return E[Mi]||w.push(E),w},[]);e.current.setRows(S)},[e]),p=b.useCallback((v,x)=>{var M,R,_;const S=z({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},x),w=v.contentDocument;if(!w)return;const k=Wi(e.current.state),E=e.current.rootElementRef.current,T=E.cloneNode(!0),N=T.querySelector(`.${B.main}`);N.style.overflow="visible",T.style.contain="size";let P=((M=E.querySelector(`.${B.toolbarContainer}`))==null?void 0:M.offsetHeight)||0,O=((R=E.querySelector(`.${B.footerContainer}`))==null?void 0:R.offsetHeight)||0;const j=T.querySelector(`.${B.footerContainer}`);S.hideToolbar&&((_=T.querySelector(`.${B.toolbarContainer}`))==null||_.remove(),P=0),S.hideFooter&&j&&(j.remove(),O=0);const $=k.currentPageTotalHeight+fd(e,t)+P+O;T.style.height=`${$}px`,T.style.boxSizing="content-box",!S.hideFooter&&j&&(j.style.position="absolute",j.style.width="100%",j.style.top=`${$-O}px`);const C=document.createElement("div");C.appendChild(T),w.body.style.marginTop="0px",w.body.innerHTML=C.innerHTML;const L=typeof S.pageStyle=="function"?S.pageStyle():S.pageStyle;if(typeof L=="string"){const V=w.createElement("style");V.appendChild(w.createTextNode(L)),w.head.appendChild(V)}S.bodyClassName&&w.body.classList.add(...S.bodyClassName.split(" "));const F=[];if(S.copyStyles){const V=E.getRootNode(),I=(V.constructor.name==="ShadowRoot"?V:o.current).querySelectorAll("style, link[rel='stylesheet']");for(let D=0;D<I.length;D+=1){const G=I[D];if(G.tagName==="STYLE"){const A=w.createElement(G.tagName),K=G.sheet;if(K){let Y="";for(let U=0;U<K.cssRules.length;U+=1)typeof K.cssRules[U].cssText=="string"&&(Y+=`${K.cssRules[U].cssText}\r
447
- `);A.appendChild(w.createTextNode(Y)),w.head.appendChild(A)}}else if(G.getAttribute("href")){const A=w.createElement(G.tagName);for(let K=0;K<G.attributes.length;K+=1){const Y=G.attributes[K];Y&&A.setAttribute(Y.nodeName,Y.nodeValue||"")}F.push(new Promise(K=>{A.addEventListener("load",()=>K())})),w.head.appendChild(A)}}}process.env.NODE_ENV!=="test"&&Promise.all(F).then(()=>{v.contentWindow.print()})},[e,o,t]),h=b.useCallback(v=>{var x,S;o.current.body.removeChild(v),e.current.restoreState(i.current||{}),(S=(x=i.current)==null?void 0:x.columns)!=null&&S.columnVisibilityModel||e.current.setColumnVisibilityModel(l.current),e.current.setState(w=>z({},w,{virtualization:c.current})),e.current.setRows(a.current),i.current=null,l.current={},a.current=[]},[e]),y={exportDataAsPrint:b.useCallback(async v=>{var S;if(r.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(i.current=e.current.exportState(),l.current=hr(e),a.current=e.current.getSortedRows().filter(w=>!w[Mi]),t.pagination){const k={page:0,pageSize:vh(e)};e.current.setState(E=>z({},E,{pagination:z({},E.pagination,{paginationModel:Nc(E.pagination,"DataGridPro",k)})}))}c.current=e.current.state.virtualization,e.current.unstable_setVirtualization(!1),await u(v==null?void 0:v.fields,v==null?void 0:v.allColumns,v==null?void 0:v.includeCheckboxes),d((S=v==null?void 0:v.getRowsToExport)!=null?S:p2),await KB();const x=YB(v==null?void 0:v.fileName);process.env.NODE_ENV==="test"?(o.current.body.appendChild(x),p(x,v),h(x)):(x.onload=()=>{p(x,v),x.contentWindow.matchMedia("print").addEventListener("change",k=>{k.matches===!1&&h(x)})},o.current.body.appendChild(x))},[t,r,e,p,h,u,d])};et(e,y,"public");const g=b.useCallback((v,x)=>{var S;return(S=x.printOptions)!=null&&S.disableToolbarButton?v:[...v,{component:m.jsx(t2,{options:x.printOptions}),componentName:"printExport"}]},[]);Ut(e,"exportMenu",g)},ZB=(e,t,n)=>{var o,i,l,a;const r=(a=(l=t.filterModel)!=null?l:(i=(o=t.initialState)==null?void 0:o.filter)==null?void 0:i.filterModel)!=null?a:la();return z({},e,{filter:z({filterModel:gh(r,t.disableMultipleColumnsFiltering,n)},gw),visibleRowsLookup:{}})},QB=e=>e.filteredRowsLookup;function _1(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function JB(){return ZC(Object.values)}const eV=(e,t)=>{var O,j,$;const n=fn(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:yn,changeEvent:"filterModelChange"});const r=b.useCallback(()=>{e.current.setState(C=>{const L=yn(C,e.current.instanceId),F=e.current.getFilterState(L),M=z({},C,{filter:z({},C.filter,F)}),R=_1(e,M);return z({},M,{visibleRowsLookup:R})}),e.current.publishEvent("filteredRowsSet")},[e]),o=b.useCallback((C,L)=>L==null||L.filterable===!1||t.disableColumnFilter?C:[...C,"columnMenuFilterItem"],[t.disableColumnFilter]),i=b.useCallback(()=>{r(),e.current.forceUpdate()},[e,r]),l=b.useCallback(C=>{const L=yn(e),F=[...L.items],M=F.findIndex(R=>R.id===C.id);M===-1?F.push(C):F[M]=C,e.current.setFilterModel(z({},L,{items:F}),"upsertFilterItem")},[e]),a=b.useCallback(C=>{const L=yn(e),F=[...L.items];C.forEach(M=>{const R=F.findIndex(_=>_.id===M.id);R===-1?F.push(M):F[R]=M}),e.current.setFilterModel(z({},L,{items:F}),"upsertFilterItems")},[e]),c=b.useCallback(C=>{const L=yn(e),F=L.items.filter(M=>M.id!==C.id);F.length!==L.items.length&&e.current.setFilterModel(z({},L,{items:F}),"deleteFilterItem")},[e]),u=b.useCallback((C,L,F)=>{if(n.debug("Displaying filter panel"),C){const M=yn(e),R=M.items.filter(I=>{var K;if(I.value!==void 0)return!(Array.isArray(I.value)&&I.value.length===0);const G=(K=e.current.getColumn(I.field).filterOperators)==null?void 0:K.find(Y=>Y.value===I.operator);return!(typeof(G==null?void 0:G.requiresFilterValue)=="undefined"?!0:G==null?void 0:G.requiresFilterValue)});let _;const V=R.find(I=>I.field===C),W=e.current.getColumn(C);V?_=R:t.disableMultipleColumnsFiltering?_=[gf({field:C,operator:W.filterOperators[0].value},e)]:_=[...R,gf({field:C,operator:W.filterOperators[0].value},e)],e.current.setFilterModel(z({},M,{items:_}))}e.current.showPreferences(Ls.filters,L,F)},[e,n,t.disableMultipleColumnsFiltering]),d=b.useCallback(()=>{n.debug("Hiding filter panel"),e.current.hidePreferences()},[e,n]),p=b.useCallback(C=>{const L=yn(e);L.logicOperator!==C&&e.current.setFilterModel(z({},L,{logicOperator:C}),"changeLogicOperator")},[e]),h=b.useCallback(C=>{const L=yn(e);Uo(L.quickFilterValues,C)||e.current.setFilterModel(z({},L,{quickFilterValues:[...C]}))},[e]),f=b.useCallback((C,L)=>{yn(e)!==C&&(n.debug("Setting filter model"),e.current.updateControlState("filter",Xy(C,t.disableMultipleColumnsFiltering,e),L),e.current.unstable_applyFilters())},[e,n,t.disableMultipleColumnsFiltering]),y=b.useCallback(C=>{const L=gh(C,t.disableMultipleColumnsFiltering,e),F=t.filterMode==="client"?kF(L,e,t.disableEval):null,M=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:F,filterModel:L!=null?L:la()});return z({},M,{filterModel:L})},[t.disableMultipleColumnsFiltering,t.filterMode,t.disableEval,e]),g={setFilterLogicOperator:p,unstable_applyFilters:i,deleteFilterItem:c,upsertFilterItem:l,upsertFilterItems:a,setFilterModel:f,showFilterPanel:u,hideFilterPanel:d,setQuickFilterValues:h,ignoreDiacritics:t.ignoreDiacritics,getFilterState:y};et(e,g,"public");const v=b.useCallback((C,L)=>{var R,_;const F=yn(e);return F.items.forEach(V=>{delete V.fromInput}),!L.exportOnlyDirtyModels||t.filterModel!=null||((_=(R=t.initialState)==null?void 0:R.filter)==null?void 0:_.filterModel)!=null||!Uo(F,la())?z({},C,{filter:{filterModel:F}}):C},[e,t.filterModel,(j=(O=t.initialState)==null?void 0:O.filter)==null?void 0:j.filterModel]),x=b.useCallback((C,L)=>{var M;const F=(M=L.stateToRestore.filter)==null?void 0:M.filterModel;return F==null?C:(e.current.updateControlState("filter",Xy(F,t.disableMultipleColumnsFiltering,e),"restoreState"),z({},C,{callbacks:[...C.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),S=b.useCallback((C,L)=>{var F;if(L===Ls.filters){const M=t.slots.filterPanel;return m.jsx(M,z({},(F=t.slotProps)==null?void 0:F.filterPanel))}return C},[t.slots.filterPanel,($=t.slotProps)==null?void 0:$.filterPanel]),{getRowId:w}=t,k=Er(JB),E=b.useCallback(C=>{var D;if(t.filterMode!=="client"||!C.isRowMatchingFilters||!C.filterModel.items.length&&!((D=C.filterModel.quickFilterValues)!=null&&D.length))return gw;const L=mr(e),F={},{isRowMatchingFilters:M}=C,R={},_={passingFilterItems:null,passingQuickFilterValues:null},V=k.current(e.current.state.rows.dataRowIdToModelLookup);for(let G=0;G<V.length;G+=1){const A=V[G],K=w?w(A):A.id;M(A,void 0,_);const Y=TF([_.passingFilterItems],[_.passingQuickFilterValues],C.filterModel,e,R);F[K]=Y}const W="auto-generated-group-footer-root";return L[W]&&(F[W]=!0),{filteredRowsLookup:F,filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}}},[e,t.filterMode,w,k]);Ut(e,"columnMenu",o),Ut(e,"exportState",v),Ut(e,"restoreState",x),Ut(e,"preferencePanel",S),hu(e,$s,"filtering",E),hu(e,$s,"visibleRowsLookupCreation",QB);const T=b.useCallback(()=>{n.debug("onColUpdated - GridColumns changed, applying filters");const C=yn(e),L=Oo(e),F=C.items.filter(M=>M.field&&L[M.field]);F.length<C.items.length&&e.current.setFilterModel(z({},C,{items:F}))},[e,n]),N=b.useCallback(C=>{C==="filtering"&&e.current.unstable_applyFilters()},[e]),P=b.useCallback(()=>{e.current.setState(C=>z({},C,{visibleRowsLookup:_1(e,C)})),e.current.forceUpdate()},[e]);Pe(e,"rowsSet",r),Pe(e,"columnsChange",T),Pe(e,"activeStrategyProcessorChange",N),Pe(e,"rowExpansionChange",P),Pe(e,"columnVisibilityModelChange",()=>{const C=yn(e);C.quickFilterValues&&Sw(C)&&e.current.unstable_applyFilters()}),Da(()=>{e.current.unstable_applyFilters()}),Rt(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,n,t.filterModel])},tV=e=>z({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),nV=(e,t)=>{const n=fn(e,"useGridFocus"),r=b.useRef(null),o=e.current.rootElementRef.current!==null,i=b.useCallback((P,O)=>{P&&e.current.getRow(P.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(P.id,P.field),O)},[e]),l=b.useCallback((P,O)=>{const j=jn(e);(j==null?void 0:j.id)===P&&(j==null?void 0:j.field)===O||(e.current.setState($=>(n.debug(`Focusing on cell with id=${P} and field=${O}`),z({},$,{tabIndex:{cell:{id:P,field:O},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:P,field:O},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.forceUpdate(),e.current.getRow(P)&&(j&&i(j,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(P,O))))},[e,n,i]),a=b.useCallback((P,O={})=>{const j=jn(e);i(j,O),e.current.setState($=>(n.debug(`Focusing on column header with colIndex=${P}`),z({},$,{tabIndex:{columnHeader:{field:P},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:P},columnHeaderFilter:null,cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,i]),c=b.useCallback((P,O={})=>{const j=jn(e);i(j,O),e.current.setState($=>(n.debug(`Focusing on column header filter with colIndex=${P}`),z({},$,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:P},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:P},cell:null,columnGroupHeader:null}}))),e.current.forceUpdate()},[e,n,i]),u=b.useCallback((P,O,j={})=>{const $=jn(e);$&&e.current.publishEvent("cellFocusOut",e.current.getCellParams($.id,$.field),j),e.current.setState(C=>z({},C,{tabIndex:{columnGroupHeader:{field:P,depth:O},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:P,depth:O},columnHeader:null,columnHeaderFilter:null,cell:null}})),e.current.forceUpdate()},[e]),d=b.useCallback(()=>lu(e),[e]),p=b.useCallback((P,O,j)=>{let $=e.current.getColumnIndex(O);const C=Zt(e),L=Ko(e,{pagination:t.pagination,paginationMode:t.paginationMode}),F=_i(e),M=[].concat(F.top||[],L.rows,F.bottom||[]);let R=M.findIndex(I=>I.id===P);j==="right"?$+=1:j==="left"?$-=1:R+=1,$>=C.length?(R+=1,R<M.length&&($=0)):$<0&&(R-=1,R>=0&&($=C.length-1)),R=rr(R,0,M.length-1);const _=M[R];if(!_)return;const V=e.current.unstable_getCellColSpanInfo(_.id,$);V&&V.spannedByColSpan&&(j==="left"||j==="below"?$=V.leftVisibleCellIndex:j==="right"&&($=V.rightVisibleCellIndex)),$=rr($,0,C.length-1);const W=C[$];e.current.setCellFocus(_.id,W.field)},[e,t.pagination,t.paginationMode]),h=b.useCallback(({id:P,field:O})=>{e.current.setCellFocus(P,O)},[e]),f=b.useCallback((P,O)=>{O.key==="Enter"||O.key==="Tab"||O.key==="Shift"||pu(O.key)||e.current.setCellFocus(P.id,P.field)},[e]),y=b.useCallback(({field:P},O)=>{O.target===O.currentTarget&&e.current.setColumnHeaderFocus(P,O)},[e]),g=b.useCallback(({fields:P,depth:O},j)=>{if(j.target!==j.currentTarget)return;const $=lu(e);$!==null&&$.depth===O&&P.includes($.field)||e.current.setColumnGroupHeaderFocus(P[0],O,j)},[e]),v=b.useCallback((P,O)=>{var j,$;($=(j=O.relatedTarget)==null?void 0:j.getAttribute("class"))!=null&&$.includes(B.columnHeader)||(n.debug("Clearing focus"),e.current.setState(C=>z({},C,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),x=b.useCallback(P=>{r.current=P},[]),S=b.useCallback(P=>{const O=r.current;r.current=null;const j=jn(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:P,cell:O}))return;if(!j){O&&e.current.setCellFocus(O.id,O.field);return}if((O==null?void 0:O.id)===j.id&&(O==null?void 0:O.field)===j.field)return;const C=e.current.getCellElement(j.id,j.field);C!=null&&C.contains(P.target)||(O?e.current.setCellFocus(O.id,O.field):(e.current.setState(L=>z({},L,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),e.current.forceUpdate(),i(j,P)))},[e,i]),w=b.useCallback(P=>{if(P.cellMode==="view")return;const O=jn(e);((O==null?void 0:O.id)!==P.id||(O==null?void 0:O.field)!==P.field)&&e.current.setCellFocus(P.id,P.field)},[e]),k=b.useCallback(()=>{var O;const P=jn(e);if(P&&!e.current.getRow(P.id)){const j=P.id;let $=null;if(typeof j!="undefined"){const C=e.current.getRowElement(j),L=C!=null&&C.dataset.rowindex?Number(C==null?void 0:C.dataset.rowindex):0,F=Ko(e,{pagination:t.pagination,paginationMode:t.paginationMode}),M=F.rows[rr(L,0,F.rows.length-1)];$=(O=M==null?void 0:M.id)!=null?O:null}e.current.setState(C=>z({},C,{focus:{cell:$===null?null:{id:$,field:P.field},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))}},[e,t.pagination,t.paginationMode]),E=rt(()=>{const P=jn(e);if(!P)return;const O=Ko(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(O.rows.find(C=>C.id===P.id))return;const $=Zt(e);e.current.setState(C=>z({},C,{tabIndex:{cell:{id:O.rows[0].id,field:$[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),T={setCellFocus:l,setColumnHeaderFocus:a,setColumnHeaderFilterFocus:c},N={moveFocusToRelativeCell:p,setColumnGroupHeaderFocus:u,getColumnGroupHeaderFocus:d};et(e,T,"public"),et(e,N,"private"),b.useEffect(()=>{const P=Yt(e.current.rootElementRef.current);return P.addEventListener("mouseup",S),()=>{P.removeEventListener("mouseup",S)}},[e,o,S]),Pe(e,"columnHeaderBlur",v),Pe(e,"cellDoubleClick",h),Pe(e,"cellMouseDown",x),Pe(e,"cellKeyDown",f),Pe(e,"cellModeChange",w),Pe(e,"columnHeaderFocus",y),Pe(e,"columnGroupHeaderFocus",g),Pe(e,"rowsSet",k),Pe(e,"paginationModelChange",E)},mp=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e<n)return e+1}else if(!r&&e>t)return e-1;return null},hp=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e>t)return e-1}else if(!r&&e<n)return e+1;return null};function rV(e,t,n,r){var a,c;const o=cS(e);if(!((a=o[t])!=null&&a[n]))return t;const i=Fw(e);let l=i.indexOf(t)+(r==="down"?1:-1);for(;l>=0&&l<i.length;){const u=i[l];if(!((c=o[u])!=null&&c[n]))return u;l+=r==="down"?1:-1}return t}const oV=yt(za,_i,(e,t)=>(t.top||[]).concat(e.rows,t.bottom||[])),sV=(e,t)=>{const n=fn(e,"useGridKeyboardNavigation"),r=Nn(),o=t.unstable_listView,i=b.useCallback(()=>oV(e),[e]),l=t.signature!=="DataGrid"&&t.headerFilters,a=b.useCallback((x,S,w="left",k="up")=>{const E=is(e),T=e.current.unstable_getCellColSpanInfo(S,x);T&&T.spannedByColSpan&&(w==="left"?x=T.leftVisibleCellIndex:w==="right"&&(x=T.rightVisibleCellIndex));const N=o?Li(e.current.state).field:zi(e)[x],P=rV(e,S,N,k),O=E.findIndex(j=>j.id===P);n.debug(`Navigating to cell row ${O}, col ${x}`),e.current.scrollToIndexes({colIndex:x,rowIndex:O}),e.current.setCellFocus(P,N)},[e,n,o]),c=b.useCallback((x,S)=>{n.debug(`Navigating to header col ${x}`),e.current.scrollToIndexes({colIndex:x});const w=e.current.getVisibleColumns()[x].field;e.current.setColumnHeaderFocus(w,S)},[e,n]),u=b.useCallback((x,S)=>{n.debug(`Navigating to header filter col ${x}`),e.current.scrollToIndexes({colIndex:x});const w=e.current.getVisibleColumns()[x].field;e.current.setColumnHeaderFilterFocus(w,S)},[e,n]),d=b.useCallback((x,S,w)=>{n.debug(`Navigating to header col ${x}`),e.current.scrollToIndexes({colIndex:x});const{field:k}=e.current.getVisibleColumns()[x];e.current.setColumnGroupHeaderFocus(k,S,w)},[e,n]),p=b.useCallback(x=>{var S;return(S=i()[x])==null?void 0:S.id},[i]),h=b.useCallback((x,S)=>{const w=S.currentTarget.querySelector(`.${B.columnHeaderTitleContainerContent}`);if(!!w&&w.contains(S.target)&&x.field!==Gi.field)return;const E=i(),T=e.current.getViewportPageSize(),N=x.field?e.current.getColumnIndex(x.field):0,P=E.length>0?0:null,O=E.length-1,j=0,$=Zt(e).length-1,C=Va(e);let L=!0;switch(S.key){case"ArrowDown":{l?u(N,S):P!==null&&a(N,p(P));break}case"ArrowRight":{const F=hp({currentColIndex:N,firstColIndex:j,lastColIndex:$,isRtl:r});F!==null&&c(F,S);break}case"ArrowLeft":{const F=mp({currentColIndex:N,firstColIndex:j,lastColIndex:$,isRtl:r});F!==null&&c(F,S);break}case"ArrowUp":{C>0&&d(N,C-1,S);break}case"PageDown":{P!==null&&O!==null&&a(N,p(Math.min(P+T,O)));break}case"Home":{c(j,S);break}case"End":{c($,S);break}case"Enter":{(S.ctrlKey||S.metaKey)&&e.current.toggleColumnMenu(x.field);break}case" ":break;default:L=!1}L&&S.preventDefault()},[e,i,l,u,a,p,r,c,d]),f=b.useCallback((x,S)=>{const w=eA(e)===x.field,k=tA(e)===x.field;if(w||k||!pu(S.key))return;const E=i(),T=e.current.getViewportPageSize(),N=x.field?e.current.getColumnIndex(x.field):0,P=0,O=E.length-1,j=0,$=Zt(e).length-1;let C=!0;switch(S.key){case"ArrowDown":{const L=p(P);L!=null&&a(N,L);break}case"ArrowRight":{const L=hp({currentColIndex:N,firstColIndex:j,lastColIndex:$,isRtl:r});L!==null&&u(L,S);break}case"ArrowLeft":{const L=mp({currentColIndex:N,firstColIndex:j,lastColIndex:$,isRtl:r});L!==null?u(L,S):e.current.setColumnHeaderFilterFocus(x.field,S);break}case"ArrowUp":{c(N,S);break}case"PageDown":{O!==null&&a(N,p(Math.min(P+T,O)));break}case"Home":{u(j,S);break}case"End":{u($,S);break}case" ":break;default:C=!1}C&&S.preventDefault()},[e,i,u,r,c,a,p]),y=b.useCallback((x,S)=>{const w=lu(e);if(w===null)return;const{field:k,depth:E}=w,{fields:T,depth:N,maxDepth:P}=x,O=i(),j=e.current.getViewportPageSize(),$=e.current.getColumnIndex(k),C=k?e.current.getColumnIndex(k):0,L=0,F=O.length-1,M=0,R=Zt(e).length-1;let _=!0;switch(S.key){case"ArrowDown":{N===P-1?c($,S):d($,E+1,S);break}case"ArrowUp":{N>0&&d($,E-1,S);break}case"ArrowRight":{const V=T.length-T.indexOf(k)-1;$+V+1<=R&&d($+V+1,E,S);break}case"ArrowLeft":{const V=T.indexOf(k);$-V-1>=M&&d($-V-1,E,S);break}case"PageDown":{F!==null&&a(C,p(Math.min(L+j,F)));break}case"Home":{d(M,E,S);break}case"End":{d(R,E,S);break}case" ":break;default:_=!1}_&&S.preventDefault()},[e,i,c,d,a,p]),g=b.useCallback((x,S)=>{if(Ga(S))return;const w=e.current.getCellParams(x.id,x.field);if(w.cellMode===St.Edit||!pu(S.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:S,cell:w}))return;const E=i();if(E.length===0)return;const T=e.current.getViewportPageSize(),N=o?()=>0:e.current.getColumnIndex,P=x.field?N(x.field):0,O=E.findIndex(R=>R.id===x.id),j=0,$=E.length-1,C=0,F=(o?[Li(e.current.state)]:Zt(e)).length-1;let M=!0;switch(S.key){case"ArrowDown":{O<$&&a(P,p(O+1),r?"right":"left","down");break}case"ArrowUp":{O>j?a(P,p(O-1)):l?u(P,S):c(P,S);break}case"ArrowRight":{const R=hp({currentColIndex:P,firstColIndex:C,lastColIndex:F,isRtl:r});R!==null&&a(R,p(O),r?"left":"right");break}case"ArrowLeft":{const R=mp({currentColIndex:P,firstColIndex:C,lastColIndex:F,isRtl:r});R!==null&&a(R,p(O),r?"right":"left");break}case"Tab":{S.shiftKey&&P>C?a(P-1,p(O),"left"):!S.shiftKey&&P<F&&a(P+1,p(O),"right");break}case" ":{if(x.field===ad)break;const _=x.colDef;if(_&&(_.field===BF||kD(_.field)))break;!S.shiftKey&&O<$&&a(P,p(Math.min(O+T,$)));break}case"PageDown":{O<$&&a(P,p(Math.min(O+T,$)));break}case"PageUp":{const R=Math.max(O-T,j);R!==O&&R>=j?a(P,p(R)):c(P,S);break}case"Home":{S.ctrlKey||S.metaKey||S.shiftKey?a(C,p(j)):a(C,p(O));break}case"End":{S.ctrlKey||S.metaKey||S.shiftKey?a(F,p($)):a(F,p(O));break}default:M=!1}M&&S.preventDefault()},[e,i,r,a,p,l,u,c,o]),v=b.useCallback((x,{event:S})=>S.key===" "?!1:x,[]);Ut(e,"canStartEditing",v),Pe(e,"columnHeaderKeyDown",h),Pe(e,"headerFilterKeyDown",f),Pe(e,"columnGroupHeaderKeyDown",y),Pe(e,"cellKeyDown",g)},iV=(e,t)=>{var y,g;const n=fn(e,"useGridRowCount"),r=me(e,xh),o=me(e,fi),i=me(e,Ol),l=me(e,Pn),a=Er(()=>Pn(e).pageSize);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:fi,changeEvent:"rowCountChange"});const u={setRowCount:b.useCallback(v=>{o!==v&&(n.debug("Setting 'rowCount' to",v),e.current.setState(x=>z({},x,{pagination:z({},x.pagination,{rowCount:v})})))},[e,n,o])};et(e,u,"public");const d=b.useCallback((v,x)=>{var k,E;const S=fi(e);return!x.exportOnlyDirtyModels||t.rowCount!=null||((E=(k=t.initialState)==null?void 0:k.pagination)==null?void 0:E.rowCount)!=null?z({},v,{pagination:z({},v.pagination,{rowCount:S})}):v},[e,t.rowCount,(g=(y=t.initialState)==null?void 0:y.pagination)==null?void 0:g.rowCount]),p=b.useCallback((v,x)=>{var w;const S=(w=x.stateToRestore.pagination)!=null&&w.rowCount?x.stateToRestore.pagination.rowCount:fi(e);return e.current.setState(k=>z({},k,{pagination:z({},k.pagination,{rowCount:S})})),v},[e]);Ut(e,"exportState",d),Ut(e,"restoreState",p);const h=b.useCallback(v=>{t.paginationMode==="client"||!a.current||v.pageSize!==a.current&&(a.current=v.pageSize,o===-1&&e.current.setPage(0))},[t.paginationMode,a,o,e]);Pe(e,"paginationModelChange",h),b.useEffect(()=>{t.paginationMode==="client"?e.current.setRowCount(r):t.rowCount!=null&&e.current.setRowCount(t.rowCount)},[e,t.paginationMode,r,t.rowCount]);const f=i.hasNextPage===!1;b.useEffect(()=>{f&&o===-1&&e.current.setRowCount(l.pageSize*l.page+r)},[e,r,f,o,l])},lV=(e,t)=>{var c,u;const n=fn(e,"useGridPaginationMeta"),r=me(e,Ol);e.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:Ol,changeEvent:"paginationMetaChange"});const i={setPaginationMeta:b.useCallback(d=>{r!==d&&(n.debug("Setting 'paginationMeta' to",d),e.current.setState(p=>z({},p,{pagination:z({},p.pagination,{meta:d})})))},[e,n,r])};et(e,i,"public");const l=b.useCallback((d,p)=>{var y,g;const h=Ol(e);return!p.exportOnlyDirtyModels||t.paginationMeta!=null||((g=(y=t.initialState)==null?void 0:y.pagination)==null?void 0:g.meta)!=null?z({},d,{pagination:z({},d.pagination,{meta:h})}):d},[e,t.paginationMeta,(u=(c=t.initialState)==null?void 0:c.pagination)==null?void 0:u.meta]),a=b.useCallback((d,p)=>{var f;const h=(f=p.stateToRestore.pagination)!=null&&f.meta?p.stateToRestore.pagination.meta:Ol(e);return e.current.setState(y=>z({},y,{pagination:z({},y.pagination,{meta:h})})),d},[e]);Ut(e,"exportState",l),Ut(e,"restoreState",a),b.useEffect(()=>{t.paginationMeta&&e.current.setPaginationMeta(t.paginationMeta)},[e,t.paginationMeta])},aV=(e,t)=>{var i,l,a,c,u,d,p,h,f,y,g,v;const n=z({},Gw(t.autoPageSize),(a=t.paginationModel)!=null?a:(l=(i=t.initialState)==null?void 0:i.pagination)==null?void 0:l.paginationModel);Ww(n.pageSize,t.signature);const r=(h=(d=t.rowCount)!=null?d:(u=(c=t.initialState)==null?void 0:c.pagination)==null?void 0:u.rowCount)!=null?h:t.paginationMode==="client"?(p=e.rows)==null?void 0:p.totalRowCount:void 0,o=(v=(g=t.paginationMeta)!=null?g:(y=(f=t.initialState)==null?void 0:f.pagination)==null?void 0:y.meta)!=null?v:{};return z({},e,{pagination:z({},e.pagination,{paginationModel:n,rowCount:r,meta:o,enabled:t.pagination===!0,paginationMode:t.paginationMode})})},cV=(e,t)=>{lV(e,t),qB(e,t),iV(e,t)},uV=(e,t)=>{var n,r;return z({},e,{preferencePanel:(r=(n=t.initialState)==null?void 0:n.preferencePanel)!=null?r:{open:!1}})},dV=(e,t)=>{var a;const n=fn(e,"useGridPreferencesPanel"),r=b.useCallback(()=>{e.current.setState(c=>{if(!c.preferencePanel.open)return c;n.debug("Hiding Preferences Panel");const u=ca(c);return e.current.publishEvent("preferencePanelClose",{openedPanelValue:u.openedPanelValue}),z({},c,{preferencePanel:{open:!1}})})},[e,n]),o=b.useCallback((c,u,d)=>{n.debug("Opening Preferences Panel"),e.current.setState(p=>z({},p,{preferencePanel:z({},p.preferencePanel,{open:!0,openedPanelValue:c,panelId:u,labelId:d})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:c})},[n,e]);et(e,{showPreferences:o,hidePreferences:r},"public");const i=b.useCallback((c,u)=>{var h;const d=ca(e.current.state);return!u.exportOnlyDirtyModels||((h=t.initialState)==null?void 0:h.preferencePanel)!=null||d.open?z({},c,{preferencePanel:d}):c},[e,(a=t.initialState)==null?void 0:a.preferencePanel]),l=b.useCallback((c,u)=>{const d=u.stateToRestore.preferencePanel;return d!=null&&e.current.setState(p=>z({},p,{preferencePanel:d})),c},[e]);Ut(e,"exportState",i),Ut(e,"restoreState",l)},kf=e=>{switch(e.type){case"boolean":return!1;case"date":case"dateTime":case"number":return;case"singleSelect":return null;case"string":default:return""}},pV=["id","field"],fV=["id","field"],mV=(e,t)=>{const[n,r]=b.useState({}),o=b.useRef(n),i=b.useRef({}),{processRowUpdate:l,onProcessRowUpdateError:a,cellModesModel:c,onCellModesModelChange:u}=t,d=M=>(...R)=>{t.editMode===co.Cell&&M(...R)},p=b.useCallback((M,R)=>{const _=e.current.getCellParams(M,R);if(!e.current.isCellEditable(_))throw new Error(`MUI X: The cell with id=${M} and field=${R} is not editable.`)},[e]),h=b.useCallback((M,R,_)=>{if(e.current.getCellMode(M,R)!==_)throw new Error(`MUI X: The cell with id=${M} and field=${R} is not in ${_} mode.`)},[e]),f=b.useCallback((M,R)=>{if(!M.isEditable||M.cellMode===St.Edit)return;const _=z({},M,{reason:bo.cellDoubleClick});e.current.publishEvent("cellEditStart",_,R)},[e]),y=b.useCallback((M,R)=>{if(M.cellMode===St.View||e.current.getCellMode(M.id,M.field)===St.View)return;const _=z({},M,{reason:Rr.cellFocusOut});e.current.publishEvent("cellEditStop",_,R)},[e]),g=b.useCallback((M,R)=>{if(M.cellMode===St.Edit){if(R.which===229)return;let _;if(R.key==="Escape"?_=Rr.escapeKeyDown:R.key==="Enter"?_=Rr.enterKeyDown:R.key==="Tab"&&(_=R.shiftKey?Rr.shiftTabKeyDown:Rr.tabKeyDown,R.preventDefault()),_){const V=z({},M,{reason:_});e.current.publishEvent("cellEditStop",V,R)}}else if(M.isEditable){let _;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:R,cellParams:M,editMode:"cell"}))return;if(FS(R)?_=bo.printableKeyDown:DS(R)?_=bo.pasteKeyDown:R.key==="Enter"?_=bo.enterKeyDown:(R.key==="Backspace"||R.key==="Delete")&&(_=bo.deleteKeyDown),_){const W=z({},M,{reason:_,key:R.key});e.current.publishEvent("cellEditStart",W,R)}}},[e]),v=b.useCallback(M=>{const{id:R,field:_,reason:V}=M,W={id:R,field:_};(V===bo.printableKeyDown||V===bo.deleteKeyDown||V===bo.pasteKeyDown)&&(W.deleteValue=!0),e.current.startCellEditMode(W)},[e]),x=b.useCallback(M=>{const{id:R,field:_,reason:V}=M;e.current.runPendingEditCellValueMutation(R,_);let W;V===Rr.enterKeyDown?W="below":V===Rr.tabKeyDown?W="right":V===Rr.shiftTabKeyDown&&(W="left");const I=V==="escapeKeyDown";e.current.stopCellEditMode({id:R,field:_,ignoreModifications:I,cellToFocusAfter:W})},[e]),S=M=>async(...R)=>{var _;if(M){const{id:V,field:W}=R[0];((_=e.current.state.editRows[V][W])==null?void 0:_.error)||M(...R)}};Pe(e,"cellDoubleClick",d(f)),Pe(e,"cellFocusOut",d(y)),Pe(e,"cellKeyDown",d(g)),Pe(e,"cellEditStart",d(v)),Pe(e,"cellEditStop",d(x)),Et(e,"cellEditStart",t.onCellEditStart),Et(e,"cellEditStop",S(t.onCellEditStop));const w=b.useCallback((M,R)=>{const _=dn(e.current.state);return _[M]&&_[M][R]?St.Edit:St.View},[e]),k=rt(M=>{const R=M!==t.cellModesModel;u&&R&&u(M,{api:e.current}),!(t.cellModesModel&&R)&&(r(M),o.current=M,e.current.publishEvent("cellModesModelChange",M))}),E=b.useCallback((M,R,_)=>{const V=z({},o.current);if(_!==null)V[M]=z({},V[M],{[R]:z({},_)});else{const W=V[M],I=Be(W,[R].map(da));V[M]=I,Object.keys(V[M]).length===0&&delete V[M]}k(V)},[k]),T=b.useCallback((M,R,_)=>{e.current.setState(V=>{const W=z({},V.editRows);return _!==null?W[M]=z({},W[M],{[R]:z({},_)}):(delete W[M][R],Object.keys(W[M]).length===0&&delete W[M]),z({},V,{editRows:W})}),e.current.forceUpdate()},[e]),N=b.useCallback(M=>{const{id:R,field:_}=M,V=Be(M,pV);p(R,_),h(R,_,St.View),E(R,_,z({mode:St.Edit},V))},[p,h,E]),P=rt(async M=>{const{id:R,field:_,deleteValue:V,initialValue:W}=M,I=e.current.getCellValue(R,_);let D=I;V?D=kf(e.current.getColumn(_)):W&&(D=W);const G=e.current.getColumn(_),A=!!G.preProcessEditCellProps&&V;let K={value:D,error:!1,isProcessingProps:A};if(T(R,_,K),e.current.setCellFocus(R,_),A&&(K=await Promise.resolve(G.preProcessEditCellProps({id:R,row:e.current.getRow(R),props:K,hasChanged:D!==I})),e.current.getCellMode(R,_)===St.Edit)){const Y=dn(e.current.state);T(R,_,z({},K,{value:Y[R][_].value,isProcessingProps:!1}))}}),O=b.useCallback(M=>{const{id:R,field:_}=M,V=Be(M,fV);h(R,_,St.Edit),E(R,_,z({mode:St.View},V))},[h,E]),j=rt(async M=>{const{id:R,field:_,ignoreModifications:V,cellToFocusAfter:W="none"}=M;h(R,_,St.Edit),e.current.runPendingEditCellValueMutation(R,_);const I=()=>{T(R,_,null),E(R,_,null),W!=="none"&&e.current.moveFocusToRelativeCell(R,_,W)};if(V){I();return}const D=dn(e.current.state),{error:G,isProcessingProps:A}=D[R][_];if(G||A){i.current[R][_].mode=St.Edit,E(R,_,{mode:St.Edit});return}const K=e.current.getRowWithUpdatedValuesFromCellEditing(R,_);if(l){const Y=U=>{i.current[R][_].mode=St.Edit,E(R,_,{mode:St.Edit}),a?a(U):process.env.NODE_ENV!=="production"&&br(["MUI X: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, for example `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see https://mui.com/x/react-data-grid/editing/#server-side-persistence."],"error")};try{const U=e.current.getRow(R);Promise.resolve(l(K,U,{rowId:R})).then(q=>{e.current.updateRows([q]),I()}).catch(Y)}catch(U){Y(U)}}else e.current.updateRows([K]),I()}),$=b.useCallback(async M=>{var U,q;const{id:R,field:_,value:V,debounceMs:W,unstable_skipValueParser:I}=M;p(R,_),h(R,_,St.Edit);const D=e.current.getColumn(_),G=e.current.getRow(R);let A=V;D.valueParser&&!I&&(A=D.valueParser(V,G,D,e));let K=dn(e.current.state),Y=z({},K[R][_],{value:A,changeReason:W?"debouncedSetEditCellValue":"setEditCellValue"});if(D.preProcessEditCellProps){const Z=V!==K[R][_].value;Y=z({},Y,{isProcessingProps:!0}),T(R,_,Y),Y=await Promise.resolve(D.preProcessEditCellProps({id:R,row:G,props:Y,hasChanged:Z}))}return e.current.getCellMode(R,_)===St.View?!1:(K=dn(e.current.state),Y=z({},Y,{isProcessingProps:!1}),Y.value=D.preProcessEditCellProps?K[R][_].value:A,T(R,_,Y),K=dn(e.current.state),!((q=(U=K[R])==null?void 0:U[_])!=null&&q.error))},[e,p,h,T]),C=b.useCallback((M,R)=>{const _=e.current.getColumn(R),V=dn(e.current.state),W=e.current.getRow(M);if(!V[M]||!V[M][R])return e.current.getRow(M);const{value:I}=V[M][R];return _.valueSetter?_.valueSetter(I,W,_,e):z({},W,{[R]:I})},[e]),L={getCellMode:w,startCellEditMode:N,stopCellEditMode:O},F={setCellEditingEditCellValue:$,getRowWithUpdatedValuesFromCellEditing:C};et(e,L,"public"),et(e,F,"private"),b.useEffect(()=>{c&&k(c)},[c,k]),Rt(()=>{const M=mr(e),R=i.current;i.current=mw(n),Object.entries(n).forEach(([_,V])=>{Object.entries(V).forEach(([W,I])=>{var A,K;const D=((K=(A=R[_])==null?void 0:A[W])==null?void 0:K.mode)||St.View,G=M[_]?e.current.getRowId(M[_]):_;I.mode===St.Edit&&D===St.View?P(z({id:G,field:W},I)):I.mode===St.View&&D===St.Edit&&j(z({id:G,field:W},I))})})},[e,n,P,j])},hV=["id"],gV=["id"],bV=(e,t)=>{const[n,r]=b.useState({}),o=b.useRef(n),i=b.useRef({}),l=b.useRef({}),a=b.useRef(void 0),c=b.useRef(null),{processRowUpdate:u,onProcessRowUpdateError:d,rowModesModel:p,onRowModesModelChange:h}=t,f=I=>(...D)=>{t.editMode===co.Row&&I(...D)},y=b.useCallback((I,D)=>{const G=e.current.getCellParams(I,D);if(!e.current.isCellEditable(G))throw new Error(`MUI X: The cell with id=${I} and field=${D} is not editable.`)},[e]),g=b.useCallback((I,D)=>{if(e.current.getRowMode(I)!==D)throw new Error(`MUI X: The row with id=${I} is not in ${D} mode.`)},[e]),v=b.useCallback(I=>{const D=dn(e.current.state);return Object.values(D[I]).some(G=>G.error)},[e]),x=b.useCallback((I,D)=>{if(!I.isEditable||e.current.getRowMode(I.id)===Gt.Edit)return;const G=e.current.getRowParams(I.id),A=z({},G,{field:I.field,reason:$o.cellDoubleClick});e.current.publishEvent("rowEditStart",A,D)},[e]),S=b.useCallback(I=>{c.current=I},[]),w=b.useCallback((I,D)=>{I.isEditable&&e.current.getRowMode(I.id)!==Gt.View&&(c.current=null,a.current=setTimeout(()=>{var G;if(((G=c.current)==null?void 0:G.id)!==I.id){if(!e.current.getRow(I.id)||e.current.getRowMode(I.id)===Gt.View||v(I.id))return;const A=e.current.getRowParams(I.id),K=z({},A,{field:I.field,reason:qr.rowFocusOut});e.current.publishEvent("rowEditStop",K,D)}}))},[e,v]);b.useEffect(()=>()=>{clearTimeout(a.current)},[]);const k=b.useCallback((I,D)=>{if(I.cellMode===Gt.Edit){if(D.which===229)return;let G;if(D.key==="Escape")G=qr.escapeKeyDown;else if(D.key==="Enter")G=qr.enterKeyDown;else if(D.key==="Tab"){const A=zi(e).filter(K=>e.current.getColumn(K).type===id?!0:e.current.isCellEditable(e.current.getCellParams(I.id,K)));if(D.shiftKey?I.field===A[0]&&(G=qr.shiftTabKeyDown):I.field===A[A.length-1]&&(G=qr.tabKeyDown),D.preventDefault(),!G){const K=A.findIndex(U=>U===I.field),Y=A[D.shiftKey?K-1:K+1];e.current.setCellFocus(I.id,Y)}}if(G){if(G!==qr.escapeKeyDown&&v(I.id))return;const A=z({},e.current.getRowParams(I.id),{reason:G,field:I.field});e.current.publishEvent("rowEditStop",A,D)}}else if(I.isEditable){let G;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:D,cellParams:I,editMode:"row"}))return;if(FS(D)||DS(D)?G=$o.printableKeyDown:D.key==="Enter"?G=$o.enterKeyDown:(D.key==="Backspace"||D.key==="Delete")&&(G=$o.deleteKeyDown),G){const K=e.current.getRowParams(I.id),Y=z({},K,{field:I.field,reason:G});e.current.publishEvent("rowEditStart",Y,D)}}},[e,v]),E=b.useCallback(I=>{const{id:D,field:G,reason:A}=I,K={id:D,fieldToFocus:G};(A===$o.printableKeyDown||A===$o.deleteKeyDown)&&(K.deleteValue=!!G),e.current.startRowEditMode(K)},[e]),T=b.useCallback(I=>{const{id:D,reason:G,field:A}=I;e.current.runPendingEditCellValueMutation(D);let K;G===qr.enterKeyDown?K="below":G===qr.tabKeyDown?K="right":G===qr.shiftTabKeyDown&&(K="left");const Y=G==="escapeKeyDown";e.current.stopRowEditMode({id:D,ignoreModifications:Y,field:A,cellToFocusAfter:K})},[e]);Pe(e,"cellDoubleClick",f(x)),Pe(e,"cellFocusIn",f(S)),Pe(e,"cellFocusOut",f(w)),Pe(e,"cellKeyDown",f(k)),Pe(e,"rowEditStart",f(E)),Pe(e,"rowEditStop",f(T)),Et(e,"rowEditStart",t.onRowEditStart),Et(e,"rowEditStop",t.onRowEditStop);const N=b.useCallback(I=>gS(e,{rowId:I,editMode:t.editMode})?Gt.Edit:Gt.View,[e,t.editMode]),P=rt(I=>{const D=I!==t.rowModesModel;h&&D&&h(I,{api:e.current}),!(t.rowModesModel&&D)&&(r(I),o.current=I,e.current.publishEvent("rowModesModelChange",I))}),O=b.useCallback((I,D)=>{const G=z({},o.current);D!==null?G[I]=z({},D):delete G[I],P(G)},[P]),j=b.useCallback((I,D)=>{e.current.setState(G=>{const A=z({},G.editRows);return D!==null?A[I]=D:delete A[I],z({},G,{editRows:A})}),e.current.forceUpdate()},[e]),$=b.useCallback((I,D,G)=>{e.current.setState(A=>{const K=z({},A.editRows);return G!==null?K[I]=z({},K[I],{[D]:z({},G)}):(delete K[I][D],Object.keys(K[I]).length===0&&delete K[I]),z({},A,{editRows:K})}),e.current.forceUpdate()},[e]),C=b.useCallback(I=>{const{id:D}=I,G=Be(I,hV);g(D,Gt.View),O(D,z({mode:Gt.Edit},G))},[g,O]),L=rt(I=>{const{id:D,fieldToFocus:G,deleteValue:A,initialValue:K}=I,Y=e.current.getRow(D),U=yr(e),q=U.reduce((Z,X)=>{const Q=X.field;if(!e.current.getCellParams(D,Q).isEditable)return Z;const J=e.current.getColumn(Q);let oe=e.current.getCellValue(D,Q);return G===Q&&(A||K)&&(A?oe=kf(J):K&&(oe=K)),Z[Q]={value:oe,error:!1,isProcessingProps:J.editable&&!!J.preProcessEditCellProps&&A},Z},{});l.current[D]=Y,j(D,q),G&&e.current.setCellFocus(D,G),U.filter(Z=>e.current.getCellParams(D,Z.field).isEditable&&Z.editable&&!!Z.preProcessEditCellProps&&A).forEach(Z=>{const X=Z.field,Q=e.current.getCellValue(D,X),re=A?kf(Z):K!=null?K:Q;Promise.resolve(Z.preProcessEditCellProps({id:D,row:Y,props:q[X],hasChanged:re!==Q})).then(J=>{if(e.current.getRowMode(D)===Gt.Edit){const oe=dn(e.current.state);$(D,X,z({},J,{value:oe[D][X].value,isProcessingProps:!1}))}})})}),F=b.useCallback(I=>{const{id:D}=I,G=Be(I,gV);g(D,Gt.Edit),O(D,z({mode:Gt.View},G))},[g,O]),M=rt(I=>{const{id:D,ignoreModifications:G,field:A,cellToFocusAfter:K="none"}=I;e.current.runPendingEditCellValueMutation(D);const Y=()=>{K!=="none"&&A&&e.current.moveFocusToRelativeCell(D,A,K),j(D,null),O(D,null),delete l.current[D]};if(G){Y();return}const U=dn(e.current.state),q=l.current[D];if(Object.values(U[D]).some(Q=>Q.isProcessingProps)){i.current[D].mode=Gt.Edit;return}if(v(D)){i.current[D].mode=Gt.Edit,O(D,{mode:Gt.Edit});return}const X=e.current.getRowWithUpdatedValuesFromRowEditing(D);if(u){const Q=re=>{i.current[D]&&(i.current[D].mode=Gt.Edit,O(D,{mode:Gt.Edit})),d?d(re):process.env.NODE_ENV!=="production"&&br(["MUI X: A call to `processRowUpdate` threw an error which was not handled because `onProcessRowUpdateError` is missing.","To handle the error pass a callback to the `onProcessRowUpdateError` prop, for example `<DataGrid onProcessRowUpdateError={(error) => ...} />`.","For more detail, see https://mui.com/x/react-data-grid/editing/#server-side-persistence."],"error")};try{Promise.resolve(u(X,q,{rowId:D})).then(re=>{e.current.updateRows([re]),Y()}).catch(Q)}catch(re){Q(re)}}else e.current.updateRows([X]),Y()}),R=b.useCallback(I=>{const{id:D,field:G,value:A,debounceMs:K,unstable_skipValueParser:Y}=I;y(D,G);const U=e.current.getColumn(G),q=e.current.getRow(D);let Z=A;U.valueParser&&!Y&&(Z=U.valueParser(A,q,U,e));let X=dn(e.current.state),Q=z({},X[D][G],{value:Z,changeReason:K?"debouncedSetEditCellValue":"setEditCellValue"});return U.preProcessEditCellProps||$(D,G,Q),new Promise(re=>{const J=[];if(U.preProcessEditCellProps){const oe=Q.value!==X[D][G].value;Q=z({},Q,{isProcessingProps:!0}),$(D,G,Q);const te=X[D],fe=Be(te,[G].map(da)),ve=Promise.resolve(U.preProcessEditCellProps({id:D,row:q,props:Q,hasChanged:oe,otherFieldsProps:fe})).then(Ce=>{if(e.current.getRowMode(D)===Gt.View){re(!1);return}X=dn(e.current.state),Ce=z({},Ce,{isProcessingProps:!1}),Ce.value=U.preProcessEditCellProps?X[D][G].value:Z,$(D,G,Ce)});J.push(ve)}Object.entries(X[D]).forEach(([oe,te])=>{if(oe===G)return;const fe=e.current.getColumn(oe);if(!fe.preProcessEditCellProps)return;te=z({},te,{isProcessingProps:!0}),$(D,oe,te),X=dn(e.current.state);const ve=X[D],Ce=Be(ve,[oe].map(da)),xe=Promise.resolve(fe.preProcessEditCellProps({id:D,row:q,props:te,hasChanged:!1,otherFieldsProps:Ce})).then(Se=>{if(e.current.getRowMode(D)===Gt.View){re(!1);return}Se=z({},Se,{isProcessingProps:!1}),$(D,oe,Se)});J.push(xe)}),Promise.all(J).then(()=>{e.current.getRowMode(D)===Gt.Edit?(X=dn(e.current.state),re(!X[D][G].error)):re(!1)})})},[e,y,$]),_=b.useCallback(I=>{const D=dn(e.current.state),G=e.current.getRow(I);if(!D[I])return e.current.getRow(I);let A=z({},l.current[I],G);return Object.entries(D[I]).forEach(([K,Y])=>{const U=e.current.getColumn(K);U!=null&&U.valueSetter?A=U.valueSetter(Y.value,A,U,e):A[K]=Y.value}),A},[e]),V={getRowMode:N,startRowEditMode:C,stopRowEditMode:F},W={setRowEditingEditCellValue:R,getRowWithUpdatedValuesFromRowEditing:_};et(e,V,"public"),et(e,W,"private"),b.useEffect(()=>{p&&P(p)},[p,P]),Rt(()=>{const I=mr(e),D=i.current;i.current=mw(n);const G=new Set([...Object.keys(n),...Object.keys(D)]);Array.from(G).forEach(A=>{var q,Z;const K=(q=n[A])!=null?q:{mode:Gt.View},Y=((Z=D[A])==null?void 0:Z.mode)||Gt.View,U=I[A]?e.current.getRowId(I[A]):A;K.mode===Gt.Edit&&Y===Gt.View?L(z({id:U},K)):K.mode===Gt.View&&Y===Gt.Edit&&M(z({id:U},K))})},[e,n,L,M])},yV=e=>z({},e,{editRows:{}}),vV=(e,t)=>{mV(e,t),bV(e,t);const n=b.useRef({}),{isCellEditable:r}=t,o=b.useCallback(h=>Ri(h.rowNode)||!h.colDef.editable||!h.colDef.renderEditCell?!1:r?r(h):!0,[r]),i=(h,f,y,g)=>{if(!y){g();return}if(n.current[h]||(n.current[h]={}),n.current[h][f]){const[S]=n.current[h][f];clearTimeout(S)}const v=()=>{const[S]=n.current[h][f];clearTimeout(S),g(),delete n.current[h][f]},x=setTimeout(()=>{g(),delete n.current[h][f]},y);n.current[h][f]=[x,v]};b.useEffect(()=>{const h=n.current;return()=>{Object.entries(h).forEach(([f,y])=>{Object.keys(y).forEach(g=>{const[v]=h[f][g];clearTimeout(v),delete h[f][g]})})}},[]);const l=b.useCallback((h,f)=>{if(n.current[h]){if(!f)Object.keys(n.current[h]).forEach(y=>{const[,g]=n.current[h][y];g()});else if(n.current[h][f]){const[,y]=n.current[h][f];y()}}},[]),a=b.useCallback(h=>{const{id:f,field:y,debounceMs:g}=h;return new Promise(v=>{i(f,y,g,async()=>{const x=t.editMode===co.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(f,y)===St.Edit){const S=await x(h);v(S)}})})},[e,t.editMode]),c=b.useCallback((h,f)=>t.editMode===co.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(h,f):e.current.getRowWithUpdatedValuesFromRowEditing(h),[e,t.editMode]),u=b.useCallback((h,f)=>{var g,v;return(v=(g=dn(e.current.state)[h])==null?void 0:g[f])!=null?v:null},[e]),d={isCellEditable:o,setEditCellValue:a,getRowWithUpdatedValues:c,unstable_getEditCellMeta:u},p={runPendingEditCellValueMutation:l};et(e,d,"public"),et(e,p,"private")},xV=(e,t,n)=>{const r=!!t.unstable_dataSource;return n.current.caches.rows=jc({rows:r?[]:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),z({},e,{rows:Tw({apiRef:n,rowCountProp:t.rowCount,loadingProp:r?!0:t.loading,previousTree:null,previousTreeDepths:null})})},CV=(e,t)=>{if(process.env.NODE_ENV!=="production")try{Object.freeze(t.rows)}catch(M){}const n=fn(e,"useGridRows"),r=b.useRef(Date.now()),o=b.useRef(t.rowCount),i=Jn(),l=b.useCallback(M=>{const R=mr(e)[M];if(R)return R;const _=e.current.getRowNode(M);return _&&Ri(_)?{[Mi]:M}:null},[e]),a=b.useCallback(M=>Ba(e.current.state,M),[e]),c=b.useCallback(({cache:M,throttle:R})=>{const _=()=>{r.current=Date.now(),e.current.setState(W=>z({},W,{rows:Tw({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:ln(e),previousTreeDepths:Uy(e),previousGroupsToFetch:rF(e)})})),e.current.publishEvent("rowsSet"),e.current.forceUpdate()};if(i.clear(),e.current.caches.rows=M,!R){_();return}const V=t.throttleRowsMs-(Date.now()-r.current);if(V>0){i.start(V,_);return}_()},[t.throttleRowsMs,t.rowCount,t.loading,e,i]),u=b.useCallback(M=>{n.debug(`Updating all rows, new length ${M.length}`);const R=jc({rows:M,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),_=e.current.caches.rows;R.rowsBeforePartialUpdates=_.rowsBeforePartialUpdates,c({cache:R,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,c,e]),d=b.useCallback(M=>{if(t.signature===nr.DataGrid&&M.length>1)throw new Error(["MUI X: You cannot update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
448
- `));const R=r1(e,M,t.getRowId),_=n1({updates:R,getRowId:t.getRowId,previousCache:e.current.caches.rows});c({cache:_,throttle:!0})},[t.signature,t.getRowId,c,e]),p=b.useCallback((M,R)=>{const _=r1(e,M,t.getRowId),V=n1({updates:_,getRowId:t.getRowId,previousCache:e.current.caches.rows,groupKeys:R!=null?R:[]});c({cache:V,throttle:!1})},[t.getRowId,c,e]),h=b.useCallback(M=>{M!==t.loading&&(n.debug(`Setting loading to ${M}`),e.current.setState(R=>z({},R,{rows:z({},R.rows,{loading:M})})),e.current.caches.rows.loadingPropBeforePartialUpdates=M)},[t.loading,e,n]),f=b.useCallback(()=>{const M=Pl(e),R=mr(e);return new Map(M.map(_=>{var V;return[_,(V=R[_])!=null?V:{}]}))},[e]),y=b.useCallback(()=>Aa(e),[e]),g=b.useCallback(()=>Pl(e),[e]),v=b.useCallback(M=>{const R=e.current.getRow(M),{rowToIndexMap:_}=Ko(e);return _.get(R)},[e]),x=b.useCallback((M,R)=>{const _=e.current.getRowNode(M);if(!_)throw new Error(`MUI X: No row with id #${M} found.`);if(_.type!=="group")throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const V=z({},_,{childrenExpanded:R});e.current.setState(W=>z({},W,{rows:z({},W.rows,{tree:z({},W.rows.tree,{[M]:V})})})),e.current.forceUpdate(),e.current.publishEvent("rowExpansionChange",V)},[e]),S=b.useCallback(M=>{var R;return(R=ln(e)[M])!=null?R:null},[e]),w=b.useCallback(({skipAutoGeneratedRows:M=!0,groupId:R,applySorting:_,applyFiltering:V})=>{const W=ln(e);let I;if(_){const D=W[R];if(!D)return[];const G=Vi(e);I=[];const A=G.findIndex(K=>K===R)+1;for(let K=A;K<G.length&&W[G[K]].depth>D.depth;K+=1){const Y=G[K];(!M||!Ri(W[Y]))&&I.push(Y)}}else I=bh(W,R,M);if(V){const D=Hi(e);I=I.filter(G=>D[G]!==!1)}return I},[e]),k=b.useCallback((M,R)=>{const _=e.current.getRowNode(M);if(!_)throw new Error(`MUI X: No row with id #${M} found.`);if(_.parent!==En)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if(_.type!=="leaf")throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");e.current.setState(V=>{const W=ln(V,e.current.instanceId)[En],I=W.children,D=I.findIndex(A=>A===M);if(D===-1||D===R)return V;n.debug(`Moving row ${M} to index ${R}`);const G=[...I];return G.splice(R,0,G.splice(D,1)[0]),z({},V,{rows:z({},V.rows,{tree:z({},V.rows.tree,{[En]:z({},W,{children:G})})})})}),e.current.publishEvent("rowsSet")},[e,n]),E=b.useCallback((M,R)=>{if(t.signature===nr.DataGrid&&R.length>1)throw new Error(["MUI X: You cannot replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(`
449
- `));if(R.length===0)return;if(Hs(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const V=z({},ln(e)),W=z({},mr(e)),I=z({},Wy(e)),D=V[En],G=[...D.children],A=new Set;for(let Y=0;Y<R.length;Y+=1){const U=R[Y],q=ld(U,t.getRowId,"A row was provided without id when calling replaceRows()."),[Z]=G.splice(M+Y,1,q);A.has(Z)||(delete W[Z],delete I[Z],delete V[Z]);const X={id:q,depth:0,parent:En,type:"leaf",groupingKey:null};W[q]=U,I[q]=q,V[q]=X,A.add(q)}V[En]=z({},D,{children:G});const K=G.filter(Y=>{var U;return((U=V[Y])==null?void 0:U.type)==="leaf"});e.current.caches.rows.dataRowIdToModelLookup=W,e.current.caches.rows.dataRowIdToIdLookup=I,e.current.setState(Y=>z({},Y,{rows:z({},Y.rows,{dataRowIdToModelLookup:W,dataRowIdToIdLookup:I,dataRowIds:K,tree:V})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId]),T={getRow:l,setLoading:h,getRowId:a,getRowModels:f,getRowsCount:y,getAllRowIds:g,setRows:u,updateRows:d,getRowNode:S,getRowIndexRelativeToVisibleRows:v,unstable_replaceRows:E},N={setRowIndex:k,setRowChildrenExpansion:x,getRowGroupChildren:w},P={updateServerRows:p},O=b.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let M;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?M=z({},e.current.caches.rows,{updates:{type:"full",rows:Pl(e)}}):M=jc({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),c({cache:M,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,c]),j=Er(()=>t.unstable_dataSource),$=b.useCallback(M=>{if(t.unstable_dataSource&&t.unstable_dataSource!==j.current){j.current=t.unstable_dataSource;return}M==="rowTreeCreation"&&O()},[O,j,t.unstable_dataSource]),C=b.useCallback(()=>{e.current.getActiveStrategy("rowTree")!==oF(e)&&O()},[e,O]);Pe(e,"activeStrategyProcessorChange",$),Pe(e,"strategyAvailabilityChange",C);const L=b.useCallback(()=>{e.current.setState(M=>{const R=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:ln(M,e.current.instanceId),treeDepths:Uy(M,e.current.instanceId),dataRowIds:Pl(M,e.current.instanceId),dataRowIdToModelLookup:mr(M,e.current.instanceId),dataRowIdToIdLookup:Wy(M,e.current.instanceId)});return z({},M,{rows:z({},M.rows,R,{totalTopLevelRowCount:Ew({tree:R.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet"),e.current.forceUpdate()},[e,t.rowCount]);Nh(e,"hydrateRows",L),et(e,T,"public"),et(e,N,t.signature===nr.DataGrid?"private":"public"),et(e,P,"private");const F=b.useRef(!0);b.useEffect(()=>{var W;if(F.current){F.current=!1;return}let M=!1;t.rowCount!==o.current&&(M=!0,o.current=t.rowCount);const R=e.current.caches.rows.rowsBeforePartialUpdates===t.rows,_=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,V=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;R&&(_||(e.current.setState(I=>z({},I,{rows:z({},I.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading,e.current.forceUpdate()),V||(e.current.setState(I=>z({},I,{rows:z({},I.rows,{totalRowCount:Math.max(t.rowCount||0,I.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,I.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount,e.current.forceUpdate()),!M)||(n.debug(`Updating all rows, new length ${(W=t.rows)==null?void 0:W.length}`),c({cache:jc({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1}))},[t.rows,t.rowCount,t.getRowId,t.loading,n,c,e])},wV=e=>{const t={[En]:z({},AF(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:En,type:"leaf",groupingKey:null}}return{groupingName:$s,tree:t,treeDepths:{0:e.length},dataRowIds:e}},SV=({previousTree:e,actions:t})=>{const n=z({},e),r={};for(let l=0;l<t.remove.length;l+=1){const a=t.remove[l];r[a]=!0,delete n[a]}for(let l=0;l<t.insert.length;l+=1){const a=t.insert[l];n[a]={id:a,depth:0,parent:En,type:"leaf",groupingKey:null}}const o=n[En];let i=[...o.children,...t.insert];return Object.values(r).length&&(i=i.filter(l=>!r[l])),n[En]=z({},o,{children:i}),{groupingName:$s,tree:n,treeDepths:{0:i.length},dataRowIds:i}},kV=e=>e.updates.type==="full"?wV(e.updates.rows):SV({previousTree:e.previousTree,actions:e.updates.actions}),EV=e=>{hu(e,$s,"rowTreeCreation",kV)};class gp extends Error{}function TV(e,t){var y;const n=b.useCallback(g=>({field:g,colDef:e.current.getColumn(g)}),[e]),r=b.useCallback(g=>{const v=e.current.getRow(g);if(!v)throw new gp(`No row with id #${g} found`);return{id:g,columns:e.current.getAllColumns(),row:v}},[e]),o=b.useCallback((g,v,x,{cellMode:S,colDef:w,hasFocus:k,rowNode:E,tabIndex:T})=>{const N=x[v],P=w!=null&&w.valueGetter?w.valueGetter(N,x,w,e):N,O={id:g,field:v,row:x,rowNode:E,colDef:w,cellMode:S,hasFocus:k,tabIndex:T,value:P,formattedValue:P,isEditable:!1,api:e.current};return w&&w.valueFormatter&&(O.formattedValue=w.valueFormatter(P,x,w,e)),O.isEditable=w&&e.current.isCellEditable(O),O},[e]),i=b.useCallback((g,v)=>{var T;const x=e.current.getRow(g),S=e.current.getRowNode(g);if(!x||!S)throw new gp(`No row with id #${g} found`);const w=jn(e),k=wh(e),E=e.current.getCellMode(g,v);return e.current.getCellParamsForRow(g,v,x,{colDef:t.unstable_listView&&((T=t.unstable_listColumn)==null?void 0:T.field)===v?Li(e.current.state):e.current.getColumn(v),rowNode:S,hasFocus:w!==null&&w.field===v&&w.id===g,tabIndex:k&&k.field===v&&k.id===g?0:-1,cellMode:E})},[e,t.unstable_listView,(y=t.unstable_listColumn)==null?void 0:y.field]),l=b.useCallback((g,v)=>{const x=e.current.getColumn(v),S=e.current.getRow(g);if(!S)throw new gp(`No row with id #${g} found`);return!x||!x.valueGetter?S[v]:x.valueGetter(S[x.field],S,x,e)},[e]),a=b.useCallback((g,v)=>{const x=v.field;if(!v||!v.valueGetter)return g[x];const S=g[v.field];return v.valueGetter(S,g,v,e)},[e]),c=b.useCallback((g,v)=>{const x=a(g,v);return!v||!v.valueFormatter?x:v.valueFormatter(x,g,v,e)},[e,a]),u=b.useCallback(g=>e.current.rootElementRef.current?l_(e.current.rootElementRef.current,g):null,[e]),d=b.useCallback(g=>e.current.rootElementRef.current?a_(e.current.rootElementRef.current,g):null,[e]),p=b.useCallback((g,v)=>e.current.rootElementRef.current?c_(e.current.rootElementRef.current,{id:g,field:v}):null,[e]),h={getCellValue:l,getCellParams:i,getCellElement:p,getRowValue:a,getRowFormattedValue:c,getRowParams:r,getRowElement:d,getColumnHeaderParams:n,getColumnHeaderElement:u},f={getCellParamsForRow:o};et(e,h,"public"),et(e,f,"private")}const f2=(e,t)=>e==null||Array.isArray(e)?e:t&&t[0]===e?t:[e],IV=(e,t)=>{var n;return z({},e,{rowSelection:t.rowSelection?(n=f2(t.rowSelectionModel))!=null?n:[]:[]})},PV=(e,t)=>{var V,W,I,D,G,A,K,Y,U;const n=fn(e,"useGridSelection"),r=b.useCallback(q=>(...Z)=>{t.rowSelection&&q(...Z)},[t.rowSelection]),o=t.signature!==nr.DataGrid&&(((V=t.rowSelectionPropagation)==null?void 0:V.parents)||((W=t.rowSelectionPropagation)==null?void 0:W.descendants)),i=b.useMemo(()=>f2(t.rowSelectionModel,Yn(e.current.state)),[e,t.rowSelectionModel]),l=b.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:i,propOnChange:t.onRowSelectionModelChange,stateSelector:Yn,changeEvent:"rowSelectionChange"});const{checkboxSelection:a,disableRowSelectionOnClick:c,isRowSelectable:u}=t,d=Ch(t),p=me(e,ln),h=me(e,Hs)>1,f=b.useCallback(q=>{var re;let Z=q;const X=(re=l.current)!=null?re:q,Q=e.current.isRowSelected(q);if(Q){const J=yi(e),oe=J.findIndex(fe=>fe===X),te=J.findIndex(fe=>fe===Z);if(oe===te)return;oe>te?Z=J[te+1]:Z=J[te-1]}l.current=q,e.current.selectRowRange({startId:X,endId:Z},!Q)},[e]),y=b.useCallback(q=>{if(t.signature===nr.DataGrid&&!d&&Array.isArray(q)&&q.length>1)throw new Error(["MUI X: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(`
450
- `));Yn(e.current.state)!==q&&(n.debug("Setting selection model"),e.current.setState(X=>z({},X,{rowSelection:t.rowSelection?q:[]})),e.current.forceUpdate())},[e,n,t.rowSelection,t.signature,d]),g=b.useCallback(q=>Yn(e.current.state).includes(q),[e]),v=b.useCallback(q=>{if(t.rowSelection===!1||u&&!u(e.current.getRowParams(q)))return!1;const Z=ln(e)[q];return!((Z==null?void 0:Z.type)==="footer"||(Z==null?void 0:Z.type)==="pinnedRow")},[e,t.rowSelection,u]),x=b.useCallback(()=>i8(e),[e]),S=b.useCallback((q,Z=!0,X=!1)=>{var Q,re,J,oe,te,fe,ve,Ce,xe,Se,Oe,Ae;if(e.current.isRowSelectable(q))if(l.current=q,X){n.debug(`Setting selection for row ${q}`);const se=[],Ge=Ie=>{se.push(Ie)};Z&&(Ge(q),o&&ul(e,p,q,(re=(Q=t.rowSelectionPropagation)==null?void 0:Q.descendants)!=null?re:!1,(oe=(J=t.rowSelectionPropagation)==null?void 0:J.parents)!=null?oe:!1,Ge)),e.current.setRowSelectionModel(se)}else{n.debug(`Toggling selection for row ${q}`);const se=Yn(e.current.state),Ge=new Set(se);Ge.delete(q);const Ie=de=>{Ge.add(de)},Ye=de=>{Ge.delete(de)};Z?(Ie(q),o&&ul(e,p,q,(fe=(te=t.rowSelectionPropagation)==null?void 0:te.descendants)!=null?fe:!1,(Ce=(ve=t.rowSelectionPropagation)==null?void 0:ve.parents)!=null?Ce:!1,Ie)):o&&s1(e,p,q,(Se=(xe=t.rowSelectionPropagation)==null?void 0:xe.descendants)!=null?Se:!1,(Ae=(Oe=t.rowSelectionPropagation)==null?void 0:Oe.parents)!=null?Ae:!1,Ye),(Ge.size<2||d)&&e.current.setRowSelectionModel(Array.from(Ge))}},[e,n,o,p,(I=t.rowSelectionPropagation)==null?void 0:I.descendants,(D=t.rowSelectionPropagation)==null?void 0:D.parents,d]),w=b.useCallback((q,Z=!0,X=!1)=>{n.debug("Setting selection for several rows");const Q=q.filter(oe=>e.current.isRowSelectable(oe));let re;if(X){if(Z){if(re=new Set(Q),o){const te=fe=>{re.add(fe)};Q.forEach(fe=>{var ve,Ce,xe,Se;ul(e,p,fe,(Ce=(ve=t.rowSelectionPropagation)==null?void 0:ve.descendants)!=null?Ce:!1,(Se=(xe=t.rowSelectionPropagation)==null?void 0:xe.parents)!=null?Se:!1,te)})}}else re=new Set;const oe=qo(e);if(re.size===Object.keys(oe).length&&Array.from(re).every(te=>oe[te]===te))return}else{re=new Set(Object.values(qo(e)));const oe=fe=>{re.add(fe)},te=fe=>{re.delete(fe)};Q.forEach(fe=>{var ve,Ce,xe,Se,Oe,Ae,se,Ge;Z?(re.add(fe),o&&ul(e,p,fe,(Ce=(ve=t.rowSelectionPropagation)==null?void 0:ve.descendants)!=null?Ce:!1,(Se=(xe=t.rowSelectionPropagation)==null?void 0:xe.parents)!=null?Se:!1,oe)):(te(fe),o&&s1(e,p,fe,(Ae=(Oe=t.rowSelectionPropagation)==null?void 0:Oe.descendants)!=null?Ae:!1,(Ge=(se=t.rowSelectionPropagation)==null?void 0:se.parents)!=null?Ge:!1,te))})}(re.size<2||d)&&e.current.setRowSelectionModel(Array.from(re))},[n,o,d,e,p,(G=t.rowSelectionPropagation)==null?void 0:G.descendants,(A=t.rowSelectionPropagation)==null?void 0:A.parents]),k=b.useCallback(q=>{var Q,re,J,oe;if(!h||!o||q.length===0)return q;const Z=new Set(q),X=te=>{Z.add(te)};for(const te of q)ul(e,p,te,(re=(Q=t.rowSelectionPropagation)==null?void 0:Q.descendants)!=null?re:!1,(oe=(J=t.rowSelectionPropagation)==null?void 0:J.parents)!=null?oe:!1,X,Z);return Array.from(Z)},[e,p,(K=t.rowSelectionPropagation)==null?void 0:K.descendants,(Y=t.rowSelectionPropagation)==null?void 0:Y.parents,h,o]),E=b.useCallback(({startId:q,endId:Z},X=!0,Q=!1)=>{if(!e.current.getRow(q)||!e.current.getRow(Z))return;n.debug(`Expanding selection from row ${q} to row ${Z}`);const re=yi(e),J=re.indexOf(q),oe=re.indexOf(Z),[te,fe]=J>oe?[oe,J]:[J,oe],ve=re.slice(te,fe+1);e.current.selectRows(ve,X,Q)},[e,n]),T={selectRow:S,setRowSelectionModel:y,getSelectedRows:x,isRowSelected:g,isRowSelectable:v},N={selectRows:w,selectRowRange:E,getPropagatedRowSelectionModel:k};et(e,T,"public"),et(e,N,t.signature===nr.DataGrid?"private":"public");const P=b.useRef(!0),O=b.useCallback((q=!1)=>{var fe;if(P.current)return;const Z=Yn(e.current.state),X=mr(e),Q=Hi(e),re=z({},qo(e)),J=ve=>t.filterMode==="server"?!X[ve]:!X[ve]||Q[ve]===!1;let oe=!1;Z.forEach(ve=>{var xe;if(J(ve)){if(t.keepNonExistentRowsSelected)return;delete re[ve],oe=!0;return}if(!((xe=t.rowSelectionPropagation)!=null&&xe.parents))return;const Ce=p[ve];if(Ce.type==="group"){if(Ce.isAutoGenerated){delete re[ve],oe=!0;return}Ce.children.every(Oe=>Q[Oe]===!1)||(delete re[ve],oe=!0)}});const te=h&&((fe=t.rowSelectionPropagation)==null?void 0:fe.parents)&&Object.keys(re).length>0;if(oe||te&&!q){const ve=Object.values(re);te?e.current.selectRows(ve,!0,!0):e.current.setRowSelectionModel(ve)}},[e,h,(U=t.rowSelectionPropagation)==null?void 0:U.parents,t.keepNonExistentRowsSelected,t.filterMode,p]),j=b.useCallback((q,Z)=>{const X=Z.metaKey||Z.ctrlKey,Q=!a&&!X&&!nz(Z),re=!d||Q,J=e.current.isRowSelected(q);re?e.current.selectRow(q,Q?!0:!J,!0):e.current.selectRow(q,!J,!1)},[e,d,a]),$=b.useCallback((q,Z)=>{var re;if(c)return;const X=(re=Z.target.closest(`.${B.cell}`))==null?void 0:re.getAttribute("data-field");if(X===Gi.field||X===ad)return;if(X){const J=e.current.getColumn(X);if((J==null?void 0:J.type)===id)return}ln(e)[q.id].type!=="pinnedRow"&&(Z.shiftKey&&d?f(q.id):j(q.id,Z))},[c,d,e,f,j]),C=b.useCallback((q,Z)=>{var X;d&&Z.shiftKey&&((X=window.getSelection())==null||X.removeAllRanges())},[d]),L=b.useCallback((q,Z)=>{d&&Z.nativeEvent.shiftKey?f(q.id):e.current.selectRow(q.id,q.value,!d)},[e,f,d]),F=b.useCallback(q=>{const Z=t.pagination&&t.checkboxSelectionVisibleOnly&&t.paginationMode==="client"?Yw(e):yi(e);e.current.selectRows(Z,q.value)},[e,t.checkboxSelectionVisibleOnly,t.pagination,t.paginationMode]),M=b.useCallback((q,Z)=>{if(e.current.getCellMode(q.id,q.field)!==St.Edit&&!Ga(Z)){if(pu(Z.key)&&Z.shiftKey){const X=jn(e);if(X&&X.id!==q.id){Z.preventDefault();const Q=e.current.isRowSelected(X.id);if(!d){e.current.selectRow(X.id,!Q,!0);return}const re=e.current.getRowIndexRelativeToVisibleRows(X.id),J=e.current.getRowIndexRelativeToVisibleRows(q.id);let oe,te;re>J?Q?(oe=J,te=re-1):(oe=J,te=re):Q?(oe=re+1,te=J):(oe=re,te=J);const ve=Ko(e).rows.slice(oe,te+1).map(Ce=>Ce.id);e.current.selectRows(ve,!Q);return}}if(Z.key===" "&&Z.shiftKey){Z.preventDefault(),j(q.id,Z);return}String.fromCharCode(Z.keyCode)==="A"&&(Z.ctrlKey||Z.metaKey)&&(Z.preventDefault(),w(e.current.getAllRowIds(),!0))}},[e,j,w,d]),R=rt(()=>{if(!t.rowSelection){e.current.setRowSelectionModel([]);return}if(i===void 0)return;if(!o||!h||i.length===0){e.current.setRowSelectionModel(i);return}const q=e.current.getPropagatedRowSelectionModel(i);if(q.length!==i.length||!q.every(Z=>i.includes(Z))){e.current.setRowSelectionModel(q);return}e.current.setRowSelectionModel(i)});Pe(e,"sortedRowsSet",r(()=>O(!0))),Pe(e,"filteredRowsSet",r(()=>O())),Pe(e,"rowClick",r($)),Pe(e,"rowSelectionCheckboxChange",r(L)),Pe(e,"headerSelectionCheckboxChange",F),Pe(e,"cellMouseDown",r(C)),Pe(e,"cellKeyDown",r(M)),b.useEffect(()=>{R()},[e,i,t.rowSelection,R]);const _=i!=null;b.useEffect(()=>{if(_||!t.rowSelection)return;const q=Yn(e.current.state);if(v){const Z=q.filter(X=>v(X));Z.length<q.length&&e.current.setRowSelectionModel(Z)}},[e,v,_,t.rowSelection]),b.useEffect(()=>{if(!t.rowSelection||_)return;const q=Yn(e.current.state);!d&&q.length>1&&e.current.setRowSelectionModel([])},[e,d,a,_,t.rowSelection]),b.useEffect(()=>{r(O)},[O,r]),b.useEffect(()=>{P.current&&(P.current=!1)},[])},OV=e=>{const{classes:t}=e;return b.useMemo(()=>ye({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},ut,t),[t])},MV=(e,t)=>{const n={classes:t.classes},r=OV(n),o=b.useCallback(i=>{const l=z({},Gi,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),a=t.checkboxSelection,c=i.lookup[cr]!=null;return a&&!c?(i.lookup[cr]=l,i.orderedFields=[cr,...i.orderedFields]):!a&&c?(delete i.lookup[cr],i.orderedFields=i.orderedFields.filter(u=>u!==cr)):a&&c&&(i.lookup[cr]=z({},l,i.lookup[cr]),t.columns.some(u=>u.field===cr)||(i.orderedFields=[cr,...i.orderedFields.filter(u=>u!==cr)])),i},[e,r,t.columns,t.checkboxSelection]);Ut(e,"hydrateColumns",o)},RV=(e,t)=>{var r,o,i,l;const n=(l=(i=t.sortModel)!=null?i:(o=(r=t.initialState)==null?void 0:r.sorting)==null?void 0:o.sortModel)!=null?l:[];return z({},e,{sorting:{sortModel:uw(n,t.disableMultipleColumnsSorting),sortedRows:[]}})},jV=(e,t)=>{var E,T;const n=fn(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:jr,changeEvent:"sortModelChange"});const r=b.useCallback((N,P)=>{const O=jr(e),j=O.findIndex(C=>C.field===N);let $=[...O];return j>-1?(P==null?void 0:P.sort)==null?$.splice(j,1):$.splice(j,1,P):$=[...O,P],$},[e]),o=b.useCallback((N,P)=>{var $,C;const j=jr(e).find(L=>L.field===N.field);if(j){const L=P===void 0?Ky(($=N.sortingOrder)!=null?$:t.sortingOrder,j.sort):P;return L===void 0?void 0:z({},j,{sort:L})}return{field:N.field,sort:P===void 0?Ky((C=N.sortingOrder)!=null?C:t.sortingOrder):P}},[e,t.sortingOrder]),i=b.useCallback((N,P)=>P==null||P.sortable===!1||t.disableColumnSorting?N:(P.sortingOrder||t.sortingOrder).some(j=>!!j)?[...N,"columnMenuSortItem"]:N,[t.sortingOrder,t.disableColumnSorting]),l=b.useCallback(()=>{e.current.setState(N=>{if(t.sortingMode==="server")return n.debug("Skipping sorting rows as sortingMode = server"),z({},N,{sorting:z({},N.sorting,{sortedRows:bh(ln(e),En,!1)})});const P=jr(N,e.current.instanceId),O=cF(P,e),j=e.current.applyStrategyProcessor("sorting",{sortRowList:O});return z({},N,{sorting:z({},N.sorting,{sortedRows:j})})}),e.current.publishEvent("sortedRowsSet"),e.current.forceUpdate()},[e,n,t.sortingMode]),a=b.useCallback(N=>{jr(e)!==N&&(n.debug("Setting sort model"),e.current.setState(qy(N,t.disableMultipleColumnsSorting)),e.current.forceUpdate(),e.current.applySorting())},[e,n,t.disableMultipleColumnsSorting]),c=b.useCallback((N,P,O)=>{const j=e.current.getColumn(N),$=o(j,P);let C;!O||t.disableMultipleColumnsSorting?C=($==null?void 0:$.sort)==null?[]:[$]:C=r(j.field,$),e.current.setSortModel(C)},[e,r,o,t.disableMultipleColumnsSorting]),u=b.useCallback(()=>jr(e),[e]),d=b.useCallback(()=>yh(e).map(P=>P.model),[e]),p=b.useCallback(()=>Vi(e),[e]),h=b.useCallback(N=>e.current.getSortedRowIds()[N],[e]);et(e,{getSortModel:u,getSortedRows:d,getSortedRowIds:p,getRowIdFromRowIndex:h,setSortModel:a,sortColumn:c,applySorting:l},"public");const y=b.useCallback((N,P)=>{var $,C;const O=jr(e);return!P.exportOnlyDirtyModels||t.sortModel!=null||((C=($=t.initialState)==null?void 0:$.sorting)==null?void 0:C.sortModel)!=null||O.length>0?z({},N,{sorting:{sortModel:O}}):N},[e,t.sortModel,(T=(E=t.initialState)==null?void 0:E.sorting)==null?void 0:T.sortModel]),g=b.useCallback((N,P)=>{var j;const O=(j=P.stateToRestore.sorting)==null?void 0:j.sortModel;return O==null?N:(e.current.setState(qy(O,t.disableMultipleColumnsSorting)),z({},N,{callbacks:[...N.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),v=b.useCallback(N=>{const P=ln(e),O=P[En],j=N.sortRowList?N.sortRowList(O.children.map($=>P[$])):[...O.children];return O.footerId!=null&&j.push(O.footerId),j},[e]);Ut(e,"exportState",y),Ut(e,"restoreState",g),hu(e,$s,"sorting",v);const x=b.useCallback(({field:N,colDef:P},O)=>{if(!P.sortable||t.disableColumnSorting)return;const j=O.shiftKey||O.metaKey||O.ctrlKey;c(N,void 0,j)},[c,t.disableColumnSorting]),S=b.useCallback(({field:N,colDef:P},O)=>{!P.sortable||t.disableColumnSorting||O.key==="Enter"&&!O.ctrlKey&&!O.metaKey&&c(N,void 0,O.shiftKey)},[c,t.disableColumnSorting]),w=b.useCallback(()=>{const N=jr(e),P=Oo(e);if(N.length>0){const O=N.filter(j=>P[j.field]);O.length<N.length&&e.current.setSortModel(O)}},[e]),k=b.useCallback(N=>{N==="sorting"&&e.current.applySorting()},[e]);Ut(e,"columnMenu",i),Pe(e,"columnHeaderClick",x),Pe(e,"columnHeaderKeyDown",S),Pe(e,"rowsSet",e.current.applySorting),Pe(e,"columnsChange",w),Pe(e,"activeStrategyProcessorChange",k),Da(()=>{e.current.applySorting()}),Rt(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function z1(e){const{containerSize:t,scrollPosition:n,elementSize:r,elementOffset:o}=e,i=o+r;if(r>t)return o;if(i-t>n)return i-t;if(o<n)return o}const LV=(e,t)=>{const n=Nn(),r=fn(e,"useGridScroll"),o=e.current.columnHeadersContainerRef,i=e.current.virtualScrollerRef,l=me(e,is),a=b.useCallback(p=>{var x;const h=pn(e.current.state),f=Aa(e),y=t.unstable_listView?[Li(e.current.state)]:Zt(e);if(!(p.rowIndex==null)&&f===0||y.length===0)return!1;r.debug(`Scrolling to cell at row ${p.rowIndex}, col: ${p.colIndex} `);let v={};if(p.colIndex!==void 0){const S=ss(e);let w;if(typeof p.rowIndex!="undefined"){const k=(x=l[p.rowIndex])==null?void 0:x.id,E=e.current.unstable_getCellColSpanInfo(k,p.colIndex);E&&!E.spannedByColSpan&&(w=E.cellProps.width)}typeof w=="undefined"&&(w=y[p.colIndex].computedWidth),v.left=z1({containerSize:h.viewportOuterSize.width,scrollPosition:Math.abs(i.current.scrollLeft),elementSize:w,elementOffset:S[p.colIndex]})}if(p.rowIndex!==void 0){const S=Wi(e.current.state),w=C8(e),k=qw(e),E=t.pagination?p.rowIndex-w*k:p.rowIndex,T=S.positions[E+1]?S.positions[E+1]-S.positions[E]:S.currentPageTotalHeight-S.positions[E];v.top=z1({containerSize:h.viewportInnerSize.height,scrollPosition:i.current.scrollTop,elementSize:T,elementOffset:S.positions[E]})}return v=e.current.unstable_applyPipeProcessors("scrollToIndexes",v,p),typeof v.left!==void 0||typeof v.top!==void 0?(e.current.scroll(v),!0):!1},[r,e,i,t.pagination,l,t.unstable_listView]),c=b.useCallback(p=>{if(i.current&&p.left!==void 0&&o.current){const h=n?-1:1;o.current.scrollLeft=p.left,i.current.scrollLeft=h*p.left,r.debug(`Scrolling left: ${p.left}`)}i.current&&p.top!==void 0&&(i.current.scrollTop=p.top,r.debug(`Scrolling top: ${p.top}`)),r.debug("Scrolling, updating container, and viewport")},[i,n,o,r]),u=b.useCallback(()=>i!=null&&i.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0},[i]);et(e,{scroll:c,scrollToIndexes:a,getScrollPosition:u},"public")};function $V(e,t){Et(e,"columnHeaderClick",t.onColumnHeaderClick),Et(e,"columnHeaderContextMenu",t.onColumnHeaderContextMenu),Et(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),Et(e,"columnHeaderOver",t.onColumnHeaderOver),Et(e,"columnHeaderOut",t.onColumnHeaderOut),Et(e,"columnHeaderEnter",t.onColumnHeaderEnter),Et(e,"columnHeaderLeave",t.onColumnHeaderLeave),Et(e,"cellClick",t.onCellClick),Et(e,"cellDoubleClick",t.onCellDoubleClick),Et(e,"cellKeyDown",t.onCellKeyDown),Et(e,"preferencePanelClose",t.onPreferencePanelClose),Et(e,"preferencePanelOpen",t.onPreferencePanelOpen),Et(e,"menuOpen",t.onMenuOpen),Et(e,"menuClose",t.onMenuClose),Et(e,"rowDoubleClick",t.onRowDoubleClick),Et(e,"rowClick",t.onRowClick),Et(e,"stateChange",t.onStateChange)}function NV(e,t=166){let n,r;const o=()=>{n=void 0,e(...r)};function i(...l){r=l,n===void 0&&(n=setTimeout(o,t))}return i.clear=()=>{clearTimeout(n),n=void 0},i}const Ef={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:co.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},li={width:0,height:0},FV={isReady:!1,root:li,viewportOuterSize:li,viewportInnerSize:li,contentSize:li,minimumSize:li,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},AV=(e,t,n)=>{const r=FV,o=Di(n);return z({},e,{dimensions:z({},r,h2(t,n,o,Bi(n)))})},m2=Ue(Zt,ss,(e,t)=>{const n=e.length;return n===0?0:mi(t[n-1]+e[n-1].computedWidth,1)});function DV(e,t){const n=fn(e,"useResizeContainer"),r=b.useRef(!1),o=b.useRef(li),i=me(e,Bi),l=me(e,Di),a=me(e,m2),c=b.useRef(!0),u=b.useRef({counter:0,heights:{content:0,pinnedTop:0,pinnedBottom:0}}),{rowHeight:d,headerHeight:p,groupHeaderHeight:h,headerFilterHeight:f,headersTotalHeight:y,leftPinnedWidth:g,rightPinnedWidth:v}=h2(t,e,l,i),x=b.useRef(void 0),S=b.useCallback(()=>pn(e.current.state),[e]),w=b.useCallback(L=>{e.current.setState(F=>z({},F,{dimensions:L})),e.current.rootElementRef.current&&B1(e.current.rootElementRef.current,pn(e.current.state))},[e]),k=b.useCallback(()=>{const L=e.current.mainElementRef.current;if(!L)return;const F=vr(L).getComputedStyle(L),M={width:parseFloat(F.width)||0,height:parseFloat(F.height)||0};(!x.current||!H1(x.current,M))&&(e.current.publishEvent("resize",M),x.current=M)},[e]),E=b.useCallback(()=>{const L=pn(e.current.state);if(!L.isReady)return 0;const F=Ko(e);if(t.getRowHeight){const R=Ha(e),_=R.lastRowIndex-R.firstRowIndex;return Math.min(_-1,F.rows.length)}const M=Math.floor(L.viewportInnerSize.height/d);return Math.min(M,F.rows.length)},[e,t.getRowHeight,d]),T=b.useCallback(()=>{var q,Z;if(c.current)return;const L=_V(e.current.mainElementRef.current,t.scrollbarSize),F=Wi(e.current.state),M=y+F.pinnedTopRowsTotalHeight,R=F.pinnedBottomRowsTotalHeight,V={width:a-g-v,height:mi(F.currentPageTotalHeight,1)},W=e.current.state.dimensions;let I,D,G=!1,A=!1;if(t.autoHeight)A=!1,G=Math.round(a)>Math.round(o.current.width),I={width:o.current.width,height:M+R+V.height},D={width:Math.max(0,I.width-(A?L:0)),height:Math.max(0,I.height-(G?L:0))};else{I={width:o.current.width,height:o.current.height},D={width:Math.max(0,I.width-g-v),height:Math.max(0,I.height-M-R)};const X=V,Q=D,re=X.width>Q.width,J=X.height>Q.height;(re||J)&&(A=J,G=X.width+(A?L:0)>Q.width,G&&(A=X.height+L>Q.height));{const oe=u.current,te=F.currentPageTotalHeight!==oe.heights.content||F.pinnedTopRowsTotalHeight!==oe.heights.pinnedTop||F.pinnedBottomRowsTotalHeight!==oe.heights.pinnedBottom;te&&(oe.counter=0,oe.heights={content:F.currentPageTotalHeight,pinnedTop:F.pinnedTopRowsTotalHeight,pinnedBottom:F.pinnedBottomRowsTotalHeight}),W.isReady&&A!==W.hasScrollY&&(te||(oe.counter+=1),oe.counter>=2&&(A=!1,G=re))}A&&(D.width-=L),G&&(D.height-=L)}const K=Math.max(I.width,a+(A?L:0)),Y={width:a,height:M+V.height+R},U={isReady:!0,root:o.current,viewportOuterSize:I,viewportInnerSize:D,contentSize:V,minimumSize:Y,hasScrollX:G,hasScrollY:A,scrollbarSize:L,headerHeight:p,groupHeaderHeight:h,headerFilterHeight:f,rowWidth:K,rowHeight:d,columnsTotalWidth:a,leftPinnedWidth:g,rightPinnedWidth:v,headersTotalHeight:y,topContainerHeight:M,bottomContainerHeight:R};Uo(W,U)||(w(U),H1(U.viewportInnerSize,W.viewportInnerSize)||e.current.publishEvent("viewportInnerSizeChange",U.viewportInnerSize),(Z=(q=e.current).updateRenderContext)==null||Z.call(q))},[e,w,t.scrollbarSize,t.autoHeight,d,p,h,f,a,y,g,v]),N=rt(T),P=b.useMemo(()=>t.resizeThrottleMs>0?NV(()=>{N(),e.current.publishEvent("debouncedResize",o.current)},t.resizeThrottleMs):void 0,[e,t.resizeThrottleMs,N]);b.useEffect(()=>P==null?void 0:P.clear,[P]);const O={resize:k,getRootDimensions:S},j={updateDimensions:T,getViewportPageSize:E};Rt(T,[T]),et(e,O,"public"),et(e,j,"private");const $=b.useCallback(L=>{B1(L,pn(e.current.state))},[e]),C=b.useCallback(L=>{if(o.current=L,L.height===0&&!r.current&&!t.autoHeight&&!uu&&(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(`
451
- `)),r.current=!0),L.width===0&&!r.current&&!uu&&(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(`
452
- `)),r.current=!0),c.current||!P){c.current=!1,T();return}P()},[T,t.autoHeight,P,n]);Et(e,"rootMount",$),Et(e,"resize",C),Et(e,"debouncedResize",t.onResize)}function B1(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 h2(e,t,n,r){var i,l;const o=Pw(e.rowHeight,Ef.rowHeight,_F);return{rowHeight:Math.floor(o*n),headerHeight:Math.floor(e.columnHeaderHeight*n),groupHeaderHeight:Math.floor(((i=e.columnGroupHeaderHeight)!=null?i:e.columnHeaderHeight)*n),headerFilterHeight:Math.floor(((l=e.headerFilterHeight)!=null?l:e.columnHeaderHeight)*n),columnsTotalWidth:m2(t),headersTotalHeight:fd(t,e),leftPinnedWidth:r.left.reduce((a,c)=>a+c.computedWidth,0),rightPinnedWidth:r.right.reduce((a,c)=>a+c.computedWidth,0)}}const V1=new WeakMap;function _V(e,t){if(t!==void 0)return t;if(e===null)return 0;const n=V1.get(e);if(n!==void 0)return n;const o=Yt(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 i=o.offsetWidth-o.clientWidth;return e.removeChild(o),V1.set(e,i),i}function H1(e,t){return e.width===t.width&&e.height===t.height}const zV=typeof globalThis.ResizeObserver!="undefined"?globalThis.ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},BV=(e,t,n)=>{n.current.caches.rowsMeta={heights:new Map};const r=ph(n.current.state),o=Aa(n),i=_a(n.current.state),l=Math.min(i.enabled?i.paginationModel.pageSize:o,o);return z({},e,{rowsMeta:{currentPageTotalHeight:l*r,positions:Array.from({length:l},(a,c)=>c*r),pinnedTopRowsTotalHeight:0,pinnedBottomRowsTotalHeight:0}})},VV=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=e.current.caches.rowsMeta.heights,l=b.useRef(-1),a=b.useRef(!1),c=b.useRef(!1),u=me(e,Di),d=Th(e),p=me(e,_i),h=me(e,ph),f=j=>{let $=i.get(j);return $===void 0&&($={content:h,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},i.set(j,$)),$},y=b.useCallback(j=>{var L,F;const $=pn(e.current.state).rowHeight,C=e.current.getRowHeightEntry(j.id);if(!n)C.content=$,C.needsFirstMeasurement=!1;else{const M=n(z({},j,{densityFactor:u}));if(M==="auto"){if(C.needsFirstMeasurement){const R=o?o(z({},j,{densityFactor:u})):$;C.content=R!=null?R:$}a.current=!0,C.autoHeight=!0}else C.content=Pw(M,$,zF),C.needsFirstMeasurement=!1,C.autoHeight=!1}if(r){const M=e.current.getRowIndexRelativeToVisibleRows(j.id),R=r(z({},j,{isFirstVisible:M===0,isLastVisible:M===d.rows.length-1,indexRelativeToCurrentPage:M}));C.spacingTop=(L=R.top)!=null?L:0,C.spacingBottom=(F=R.bottom)!=null?F:0}else C.spacingTop=0,C.spacingBottom=0;return e.current.unstable_applyPipeProcessors("rowHeight",C,j),C},[e,d.rows,n,o,h,r,u]),g=b.useCallback(()=>{a.current=!1;const j=p.top.reduce((R,_)=>{const V=y(_);return R+V.content+V.spacingTop+V.spacingBottom+V.detail},0),$=p.bottom.reduce((R,_)=>{const V=y(_);return R+V.content+V.spacingTop+V.spacingBottom+V.detail},0),C=[],L=d.rows.reduce((R,_)=>{C.push(R);const V=y(_),W=V.content+V.spacingTop+V.spacingBottom+V.detail;return R+W},0);a.current||(l.current=1/0);const F=j!==e.current.state.rowsMeta.pinnedTopRowsTotalHeight||$!==e.current.state.rowsMeta.pinnedBottomRowsTotalHeight||L!==e.current.state.rowsMeta.currentPageTotalHeight,M={currentPageTotalHeight:L,positions:C,pinnedTopRowsTotalHeight:j,pinnedBottomRowsTotalHeight:$};e.current.setState(R=>z({},R,{rowsMeta:M})),F&&e.current.updateDimensions(),c.current=!0},[e,p,d.rows,y]),v=j=>{var $,C;return(C=($=i.get(j))==null?void 0:$.content)!=null?C:h},x=(j,$)=>{const C=e.current.getRowHeightEntry(j),L=C.content!==$;C.needsFirstMeasurement=!1,C.content=$,c.current&&(c.current=!L)},S=j=>{var $,C;return(C=($=i.get(j))==null?void 0:$.autoHeight)!=null?C:!1},w=()=>l.current,k=j=>{a.current&&j>l.current&&(l.current=j)},E=()=>{i.clear(),g()},T=Er(()=>new zV(j=>{var $;for(let C=0;C<j.length;C+=1){const L=j[C],F=L.borderBoxSize&&L.borderBoxSize.length>0?L.borderBoxSize[0].blockSize:L.contentRect.height,M=L.target.__mui_id;if((($=uS(e))==null?void 0:$.id)===M&&F===0)return;e.current.unstable_storeRowHeightMeasurement(M,F)}c.current||requestAnimationFrame(()=>{e.current.requestPipeProcessorsApplication("rowHeight")})})).current,N=(j,$)=>(j.__mui_id=$,T.observe(j),()=>T.unobserve(j));Nh(e,"rowHeight",g),Rt(()=>{g()},[g]);const P={unstable_getRowHeight:v,unstable_setLastMeasuredRowIndex:k,unstable_storeRowHeightMeasurement:x,resetRowHeights:E},O={hydrateRowsMeta:g,observeRowHeight:N,rowHasAutoHeight:S,getRowHeightEntry:f,getLastMeasuredRowIndex:w};et(e,P,"public"),et(e,O,"private")},HV=e=>{const t=b.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=b.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(l=>{l()}),e.current.forceUpdate()},[e]);et(e,{exportState:t,restoreState:n},"public")},GV=e=>{const t=b.useRef({}),n=(a,c)=>{var u;return(u=t.current[a])==null?void 0:u[c]},r=()=>{t.current={}},o=b.useCallback(({rowId:a,minFirstColumn:c,maxLastColumn:u,columns:d})=>{for(let p=c;p<u;p+=1){const h=WV({apiRef:e,lookup:t.current,columnIndex:p,rowId:a,minFirstColumnIndex:c,maxLastColumnIndex:u,columns:d});h.colSpan>1&&(p+=h.colSpan-1)}},[e]),i={unstable_getCellColSpanInfo:n},l={resetColSpan:r,calculateColSpan:o};et(e,i,"public"),et(e,l,"private"),Pe(e,"columnOrderChange",r)};function WV(e){const{apiRef:t,lookup:n,columnIndex:r,rowId:o,minFirstColumnIndex:i,maxLastColumnIndex:l,columns:a}=e,c=a.length,u=a[r],d=t.current.getRow(o),p=t.current.getRowValue(d,u),h=typeof u.colSpan=="function"?u.colSpan(p,d,u,t):u.colSpan;if(!h||h===1)return bp(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:1,width:u.computedWidth}}),{colSpan:1};let f=u.computedWidth;for(let y=1;y<h;y+=1){const g=r+y;if(g>=i&&g<l){const v=a[g];f+=v.computedWidth,bp(n,o,r+y,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(r+h,c-1),leftVisibleCellIndex:r})}bp(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:h,width:f}})}return{colSpan:h}}function bp(e,t,n,r){e[t]||(e[t]={}),e[t][n]=r}const g2=(e,t,n)=>{if(hw(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(`
453
- `));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{g2(i,[...t,r],n)})},Tf=e=>{if(!e)return{};const t={};return e.forEach(n=>{g2(n,[],t)}),t},If=(e,t,n)=>{const r=c=>{var u;return(u=t[c])!=null?u:[]},o=[],i=Math.max(...e.map(c=>r(c).length)),l=(c,u,d)=>Uo(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<i;c+=1){const u=e.reduce((d,p)=>{var v;const h=(v=r(p)[c])!=null?v:null;if(d.length===0)return[{columnFields:[p],groupId:h}];const f=d[d.length-1],y=f.columnFields[f.columnFields.length-1];return f.groupId!==h||!l(y,p,c)||a(y,p)?[...d,{columnFields:[p],groupId:h}]:[...d.slice(0,d.length-1),{columnFields:[...f.columnFields,p],groupId:h}]},[]);o.push(u)}return o},UV=["groupId","children"],Fh=e=>{let t={};return e.forEach(n=>{if(hw(n))return;const{groupId:r,children:o}=n,i=Be(n,UV);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=z({},i,{groupId:r}),a=Fh(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=z({},t,a,{[r]:l})}),z({},t)},qV=(e,t,n)=>{var u,d,p;if(!t.columnGroupingModel)return e;const r=Co(n),o=zi(n),i=Fh((u=t.columnGroupingModel)!=null?u:[]),l=Tf((d=t.columnGroupingModel)!=null?d:[]),a=If(r,l,(p=n.current.state.pinnedColumns)!=null?p:{}),c=o.length===0?0:Math.max(...o.map(h=>{var f,y;return(y=(f=l[h])==null?void 0:f.length)!=null?y:0}));return z({},e,{columnGrouping:{lookup:i,unwrappedGroupingModel:l,headerStructure:a,maxDepth:c}})},KV=(e,t)=>{const n=b.useCallback(a=>{var u;return(u=rS(e)[a])!=null?u:[]},[e]),r=b.useCallback(()=>oS(e),[e]);et(e,{getColumnGroupPath:n,getAllGroupDetails:r},"public");const i=b.useCallback(()=>{var c;const a=Tf((c=t.columnGroupingModel)!=null?c:[]);e.current.setState(u=>{var f,y,g;const d=(y=(f=u.columns)==null?void 0:f.orderedFields)!=null?y:[],p=(g=u.pinnedColumns)!=null?g:{},h=If(d,a,p);return z({},u,{columnGrouping:z({},u.columnGrouping,{headerStructure:h})})})},[e,t.columnGroupingModel]),l=b.useCallback(a=>{var g,v,x;const c=(x=(v=(g=e.current).getPinnedColumns)==null?void 0:v.call(g))!=null?x:{},u=Co(e),d=zi(e),p=Fh(a!=null?a:[]),h=Tf(a!=null?a:[]),f=If(u,h,c),y=d.length===0?0:Math.max(...d.map(S=>{var w,k;return(k=(w=h[S])==null?void 0:w.length)!=null?k:0}));e.current.setState(S=>z({},S,{columnGrouping:{lookup:p,unwrappedGroupingModel:h,headerStructure:f,maxDepth:y}}))},[e]);Pe(e,"columnIndexChange",i),Pe(e,"columnsChange",()=>{l(t.columnGroupingModel)}),Pe(e,"columnVisibilityModelChange",()=>{l(t.columnGroupingModel)}),b.useEffect(()=>{l(t.columnGroupingModel)},[l,t.columnGroupingModel])};function YV(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function G1(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 W1(e,t,n,r){let o=e;return r==="Right"?o+=t-n.left:o+=n.right-t,o}function XV(e,t,n){return n==="Left"?e-t.left:t.right-e}function ZV(e){return e==="Right"?"Left":"Right"}function QV(e,t){const n=e.classList.contains(B["columnSeparator--sideRight"])?"Right":"Left";return t?ZV(n):n}function U1(e){e.preventDefault(),e.stopImmediatePropagation()}function JV(e){const t=b.useRef(void 0),n=()=>aS(e),r=me(e,n);return b.useEffect(()=>{t.current&&r===!1&&(t.current.resolve(),t.current=void 0)}),()=>{if(!t.current){if(n()===!1)return Promise.resolve();t.current=YV()}return t.current}}function eH(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],i=o-r,l=i<5?5:i*t;return n.filter(a=>a>r-l&&a<o+l)}function tH(e,t,n){const r={},o=e.current.rootElementRef.current;return o.classList.add(B.autosizing),n.forEach(i=>{var y,g;const a=x_(e.current,i.field).map(v=>{var x;return(x=v.getBoundingClientRect().width)!=null?x:0}),c=t.includeOutliers?a:eH(a,t.outliersFactor);if(t.includeHeaders){const v=v_(e.current,i.field);if(v){const x=v.querySelector(`.${B.columnHeaderTitle}`),S=v.querySelector(`.${B.columnHeaderTitleContainerContent}`),w=v.querySelector(`.${B.iconButtonContainer}`),k=v.querySelector(`.${B.menuIcon}`),E=x!=null?x:S,T=window.getComputedStyle(v,null),N=parseInt(T.paddingLeft,10)+parseInt(T.paddingRight,10),O=E.scrollWidth+1+N+((y=w==null?void 0:w.clientWidth)!=null?y:0)+((g=k==null?void 0:k.clientWidth)!=null?g:0);c.push(O)}}const u=i.minWidth!==-1/0&&i.minWidth!==void 0,d=i.maxWidth!==1/0&&i.maxWidth!==void 0,p=u?i.minWidth:0,h=d?i.maxWidth:1/0,f=c.length===0?0:Math.max(...c);r[i.field]=rr(f,p,h)}),o.classList.remove(B.autosizing),r}const nH=e=>z({},e,{columnResize:{resizingColumnField:""}});function rH(){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 oH=(e,t)=>{const n=Nn(),r=fn(e,"useGridColumnResize"),o=Er(rH).current,i=b.useRef(null),l=b.useRef(null),a=Jn(),c=b.useRef(void 0),u=O=>{var M,R;r.debug(`Updating width to ${O} for col ${o.colDef.field}`);const j=o.columnHeaderElement.offsetWidth,$=O-j,C=O-o.initialColWidth;if(C>0){const _=o.initialTotalWidth+C;(R=(M=e.current.rootElementRef)==null?void 0:M.current)==null||R.style.setProperty("--DataGrid-rowWidth",`${_}px`)}o.colDef.computedWidth=O,o.colDef.width=O,o.colDef.flex=0,o.columnHeaderElement.style.width=`${O}px`;const L=o.headerFilterElement;L&&(L.style.width=`${O}px`),o.groupHeaderElements.forEach(_=>{const V=_;let W;V.getAttribute("aria-colspan")==="1"?W=`${O}px`:W=`${V.offsetWidth+$}px`,V.style.width=W}),o.cellElements.forEach(_=>{const V=_;let W;V.getAttribute("aria-colspan")==="1"?W=`${O}px`:W=`${V.offsetWidth+$}px`,V.style.setProperty("--width",W)});const F=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);F===No.LEFT&&(ri(o.fillerLeft,"width",$),o.leftPinnedCellsAfter.forEach(_=>{ri(_,"left",$)}),o.leftPinnedHeadersAfter.forEach(_=>{ri(_,"left",$)})),F===No.RIGHT&&(ri(o.fillerRight,"width",$),o.rightPinnedCellsBefore.forEach(_=>{ri(_,"right",$)}),o.rightPinnedHeadersBefore.forEach(_=>{ri(_,"right",$)}))},d=O=>{if(x(),o.previousMouseClickEvent){const j=o.previousMouseClickEvent,$=j.timeStamp,C=j.clientX,L=j.clientY;if(O.timeStamp-$<300&&O.clientX===C&&O.clientY===L){o.previousMouseClickEvent=void 0,e.current.publishEvent("columnResizeStop",null,O);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 j=so(e.current.state);o.groupHeaderElements.forEach($=>{const C=p_($),L=$,M=`${C.reduce((R,_)=>j.columnVisibilityModel[_]!==!1?R+j.lookup[_].computedWidth:R,0)}px`;L.style.width=M})}a.start(0,()=>{e.current.publishEvent("columnResizeStop",null,O)})},p=(O,j,$)=>{var M;const C=e.current.rootElementRef.current;o.initialColWidth=O.computedWidth,o.initialTotalWidth=e.current.getRootDimensions().rowWidth,o.colDef=O,o.columnHeaderElement=d_(e.current.columnHeadersContainerRef.current,O.field);const L=C.querySelector(`.${B.headerFilterRow} [data-field="${Mo(O.field)}"]`);L&&(o.headerFilterElement=L),o.groupHeaderElements=f_((M=e.current.columnHeadersContainerRef)==null?void 0:M.current,O.field),o.cellElements=m_(o.columnHeaderElement,e.current),o.fillerLeft=C1(e.current,n?"filler--pinnedRight":"filler--pinnedLeft"),o.fillerRight=C1(e.current,n?"filler--pinnedLeft":"filler--pinnedRight");const F=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);o.leftPinnedCellsAfter=F!==No.LEFT?[]:h_(e.current,o.columnHeaderElement,n),o.rightPinnedCellsBefore=F!==No.RIGHT?[]:g_(e.current,o.columnHeaderElement,n),o.leftPinnedHeadersAfter=F!==No.LEFT?[]:b_(e.current,o.columnHeaderElement,n),o.rightPinnedHeadersBefore=F!==No.RIGHT?[]:y_(e.current,o.columnHeaderElement,n),l.current=QV(j,n),i.current=XV($,o.columnHeaderElement.getBoundingClientRect(),l.current)},h=rt(d),f=rt(O=>{if(O.buttons===0){h(O);return}let j=W1(i.current,O.clientX,o.columnHeaderElement.getBoundingClientRect(),l.current);j=rr(j,o.colDef.minWidth,o.colDef.maxWidth),u(j);const $={element:o.columnHeaderElement,colDef:o.colDef,width:j};e.current.publishEvent("columnResize",$,O)}),y=rt(O=>{G1(O,c.current)&&d(O)}),g=rt(O=>{const j=G1(O,c.current);if(!j)return;if(O.type==="mousemove"&&O.buttons===0){y(O);return}let $=W1(i.current,j.x,o.columnHeaderElement.getBoundingClientRect(),l.current);$=rr($,o.colDef.minWidth,o.colDef.maxWidth),u($);const C={element:o.columnHeaderElement,colDef:o.colDef,width:$};e.current.publishEvent("columnResize",C,O)}),v=rt(O=>{const j=du(O.target,B["columnSeparator--resizable"]);if(!j)return;const $=O.changedTouches[0];$!=null&&(c.current=$.identifier);const C=du(O.target,B.columnHeader),L=u_(C),F=e.current.getColumn(L);r.debug(`Start Resize on col ${F.field}`),e.current.publishEvent("columnResizeStart",{field:L},O),p(F,j,$.clientX);const M=Yt(O.currentTarget);M.addEventListener("touchmove",g),M.addEventListener("touchend",y)}),x=b.useCallback(()=>{const O=Yt(e.current.rootElementRef.current);O.body.style.removeProperty("cursor"),O.removeEventListener("mousemove",f),O.removeEventListener("mouseup",h),O.removeEventListener("touchmove",g),O.removeEventListener("touchend",y),setTimeout(()=>{O.removeEventListener("click",U1,!0)},100),o.columnHeaderElement&&(o.columnHeaderElement.style.pointerEvents="unset")},[e,o,f,h,g,y]),S=b.useCallback(({field:O})=>{e.current.setState(j=>z({},j,{columnResize:z({},j.columnResize,{resizingColumnField:O})})),e.current.forceUpdate()},[e]),w=b.useCallback(()=>{e.current.setState(O=>z({},O,{columnResize:z({},O.columnResize,{resizingColumnField:""})})),e.current.forceUpdate()},[e]),k=rt(({colDef:O},j)=>{if(j.button!==0||!j.currentTarget.classList.contains(B["columnSeparator--resizable"]))return;j.preventDefault(),r.debug(`Start Resize on col ${O.field}`),e.current.publishEvent("columnResizeStart",{field:O.field},j),p(O,j.currentTarget,j.clientX);const $=Yt(e.current.rootElementRef.current);$.body.style.cursor="col-resize",o.previousMouseClickEvent=j.nativeEvent,$.addEventListener("mousemove",f),$.addEventListener("mouseup",h),$.addEventListener("click",U1,!0)}),E=rt((O,j)=>{if(t.disableAutosize||j.button!==0)return;const $=e.current.state.columns.lookup[O.field];$.resizable!==!1&&e.current.autosizeColumns(z({},t.autosizeOptions,{disableColumnVirtualization:!1,columns:[$.field]}))}),T=JV(e),N=b.useRef(!1),P=b.useCallback(async O=>{var F,M;if(!((F=e.current.rootElementRef)==null?void 0:F.current)||N.current)return;N.current=!0;const $=so(e.current.state),C=z({},lD,O,{columns:(M=O==null?void 0:O.columns)!=null?M:$.orderedFields});C.columns=C.columns.filter(R=>$.columnVisibilityModel[R]!==!1);const L=C.columns.map(R=>e.current.state.columns.lookup[R]);try{!t.disableVirtualization&&C.disableColumnVirtualization&&(e.current.unstable_setColumnVirtualization(!1),await T());const R=tH(e,C,L),_=L.map(V=>z({},V,{width:R[V.field],computedWidth:R[V.field],flex:0}));if(C.expand){const W=$.orderedFields.map(A=>$.lookup[A]).filter(A=>$.columnVisibilityModel[A.field]!==!1).reduce((A,K)=>{var Y,U;return A+((U=(Y=R[K.field])!=null?Y:K.computedWidth)!=null?U:K.width)},0),G=e.current.getRootDimensions().viewportInnerSize.width-W;if(G>0){const A=G/(_.length||1);_.forEach(K=>{K.width+=A,K.computedWidth+=A})}}e.current.updateColumns(_),_.forEach((V,W)=>{if(V.width!==L[W].width){const I=V.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(V.field),colDef:V,width:I})}})}finally{t.disableVirtualization||e.current.unstable_setColumnVirtualization(!0),N.current=!1}},[e,T,t.disableVirtualization]);b.useEffect(()=>x,[x]),Om(()=>{t.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(t.autosizeOptions)})}),Vw(e,()=>{var O;return(O=e.current.columnHeadersContainerRef)==null?void 0:O.current},"touchstart",v,{passive:!0}),et(e,{autosizeColumns:P},"public"),Pe(e,"columnResizeStop",w),Pe(e,"columnResizeStart",S),Pe(e,"columnSeparatorMouseDown",k),Pe(e,"columnSeparatorDoubleClick",E),Et(e,"columnResize",t.onColumnResize),Et(e,"columnWidthChange",t.onColumnWidthChange)};function ri(e,t,n){e&&(e.style[t]=`${parseInt(e.style[t],10)+n}px`)}function sH(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 q1(e){return e.firstRowIndex!==0||e.lastRowIndex!==0}const yp=(e,t,n)=>{var i;if(!e)return null;let r=e[t.field];const o=(i=t.rowSpanValueGetter)!=null?i:t.valueGetter;return o&&(r=o(r,e,t,n)),r},hi={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},gu={firstRowIndex:0,lastRowIndex:0},iH=new Set([cr,"__reorder__",ad]),K1=20,b2=(e,t,n,r,o,i,l)=>{const a=i?{}:z({},e.current.state.rowSpanning.spannedCells),c=i?{}:z({},e.current.state.rowSpanning.hiddenCells),u=i?{}:z({},e.current.state.rowSpanning.hiddenCellOriginMap);return i&&(l=gu),t.forEach(d=>{var p;if(!iH.has(d.field)){for(let h=o.firstRowIndex;h<o.lastRowIndex;h+=1){const f=n[h];if((p=c[f.id])!=null&&p[d.field])continue;const y=yp(f.model,d,e);if(y==null)continue;let g=f.id,v=h,x=0;const S=[];if(h===o.firstRowIndex){let k=h-1,E=n[k];for(;k>=r.firstRowIndex&&E&&yp(E.model,d,e)===y;){const T=n[k+1];c[T.id]?c[T.id][d.field]=!0:c[T.id]={[d.field]:!0},S.push(h),x+=1,g=E.id,v=k,k-=1,E=n[k]}}S.forEach(k=>{u[k]?u[k][d.field]=v:u[k]={[d.field]:v}});let w=h+1;for(;w<=r.lastRowIndex&&n[w]&&yp(n[w].model,d,e)===y;){const k=n[w];c[k.id]?c[k.id][d.field]=!0:c[k.id]={[d.field]:!0},u[w]?u[w][d.field]=v:u[w]={[d.field]:v},w+=1,x+=1}x>0&&(a[g]?a[g][d.field]=x+1:a[g]={[d.field]:x+1})}l={firstRowIndex:Math.min(l.firstRowIndex,o.firstRowIndex),lastRowIndex:Math.max(l.lastRowIndex,o.lastRowIndex)}}}),{spannedCells:a,hiddenCells:c,hiddenCellOriginMap:u,processedRange:l}},y2=(e,t)=>{const n=Pl(t).length;if(e.pagination){const r=qw(t);let o=K1;return r>0&&(o=r-1),{firstRowIndex:0,lastRowIndex:Math.min(o,n)}}return{firstRowIndex:0,lastRowIndex:Math.min(K1,n)}},lH=(e,t,n)=>{var y;if(!t.unstable_rowSpanning)return z({},e,{rowSpanning:hi});const r=e.rows.dataRowIds||[],o=e.columns.orderedFields||[],i=e.rows.dataRowIdToModelLookup,l=e.columns.lookup,a=!!e.filter.filterModel.items.length||!!((y=e.filter.filterModel.quickFilterValues)!=null&&y.length);if(!r.length||!o.length||!i||!l||a)return z({},e,{rowSpanning:hi});const c=y2(t,n),u=r.map(g=>({id:g,model:i[g]})),d=o.map(g=>l[g]),{spannedCells:p,hiddenCells:h,hiddenCellOriginMap:f}=b2(n,d,u,c,c,!0,gu);return z({},e,{rowSpanning:{spannedCells:p,hiddenCells:h,hiddenCellOriginMap:f}})},aH=(e,t)=>{const n=Er(()=>e.current.state.rowSpanning!==hi?y2(t,e):gu),r=b.useCallback((i,l=!1)=>{const{range:a,rows:c}=Ko(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(a===null||!q1(i))return;l&&(n.current=gu);const u=sH({firstRowIndex:i.firstRowIndex,lastRowIndex:Math.min(i.lastRowIndex,a.lastRowIndex+1)},n.current);if(u===null)return;const d=Zt(e),{spannedCells:p,hiddenCells:h,hiddenCellOriginMap:f,processedRange:y}=b2(e,d,c,a,u,l,n.current);n.current=y;const g=Object.keys(p).length,v=Object.keys(h).length,x=Object.keys(e.current.state.rowSpanning.spannedCells).length,S=Object.keys(e.current.state.rowSpanning.hiddenCells).length;!(l||g!==x||v!==S)||g===0&&x===0||e.current.setState(E=>z({},E,{rowSpanning:{spannedCells:p,hiddenCells:h,hiddenCellOriginMap:f}}))},[e,n,t.pagination,t.paginationMode]),o=b.useCallback(()=>{const i=Ha(e);q1(i)&&r(i,!0)},[e,r]);Pe(e,"renderedRowsIntervalChange",ys(t.unstable_rowSpanning,r)),Pe(e,"sortedRowsSet",ys(t.unstable_rowSpanning,o)),Pe(e,"paginationModelChange",ys(t.unstable_rowSpanning,o)),Pe(e,"filteredRowsSet",ys(t.unstable_rowSpanning,o)),Pe(e,"columnsChange",ys(t.unstable_rowSpanning,o)),b.useEffect(()=>{t.unstable_rowSpanning?e.current.state.rowSpanning===hi&&o():e.current.state.rowSpanning!==hi&&e.current.setState(i=>z({},i,{rowSpanning:hi}))},[e,o,t.unstable_rowSpanning])},cH=(e,t,n)=>z({},e,{listViewColumn:t.unstable_listColumn?z({},t.unstable_listColumn,{computedWidth:Pf(n)}):void 0});function uH(e,t){const n=()=>{e.current.setState(i=>i.listViewColumn?z({},i,{listViewColumn:z({},i.listViewColumn,{computedWidth:Pf(e)})}):i)},r=b.useRef(null);Pe(e,"viewportInnerSizeChange",i=>{r.current!==i.width&&(r.current=i.width,n())}),Pe(e,"columnVisibilityModelChange",n),Rt(()=>{const i=t.unstable_listColumn;i&&e.current.setState(l=>z({},l,{listViewColumn:z({},i,{computedWidth:Pf(e)})}))},[e,t.unstable_listColumn]),b.useEffect(()=>{t.unstable_listView&&!t.unstable_listColumn&&br(["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 Pf(e){return pn(e.current.state).viewportInnerSize.width}const dH=(e,t)=>{const n=LB(e,t);return MV(n,t),EV(n),un(RB,n,t),un(IV,n,t),un(BB,n,t),un(xV,n,t),un(aV,n,t),un(yV,n,t),un(tV,n,t),un(RV,n,t),un(uV,n,t),un(ZB,n,t),un(lH,n,t),un(HB,n,t),un(nH,n,t),un(_B,n,t),un(qV,n,t),un(CA,n,t),un(AV,n,t),un(BV,n,t),un(cH,n,t),sV(n,t),PV(n,t),VB(n,t),CV(n,t),aH(n,t),TV(n,t),GV(n),KV(n,t),vV(n,t),nV(n,t),dV(n,t),eV(n,t),jV(n,t),GB(n,t),oH(n,t),cV(n,t),VV(n,t),LV(n,t),zB(n),UB(n,t),XB(n,t),DB(n,t),DV(n,t),$V(n,t),HV(n),wA(n,t),uH(n,t),n},pH=e=>{const{classes:t,headerAlign:n,isDragging:r,isLastColumn:o,showLeftBorder:i,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",i&&"columnHeader--withLeftBorder","withBorderColor",a===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",c===st.LEFT&&"columnHeader--pinnedLeft",c===st.RIGHT&&"columnHeader--pinnedRight",o&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]};return ye(u,ut,t)};function fH(e){var V;const{groupId:t,width:n,depth:r,maxDepth:o,fields:i,height:l,colIndex:a,hasFocus:c,tabIndex:u,isLastColumn:d,pinnedPosition:p,pinnedOffset:h}=e,f=Le(),y=Nn(),g=b.useRef(null),v=nt(),x=me(v,oS),S=t?x[t]:{},{headerName:w=t!=null?t:"",description:k="",headerAlign:E=void 0}=S;let T;const N=t&&((V=x[t])==null?void 0:V.renderHeaderGroup),P=b.useMemo(()=>({groupId:t,headerName:w,description:k,depth:r,maxDepth:o,fields:i,colIndex:a,isLastColumn:d}),[t,w,k,r,o,i,a,d]);t&&N&&(T=N(P));const O=z({},e,{classes:f.classes,headerAlign:E,depth:r,isDragging:!1}),j=w!=null?w:t,$=xt(),C=t===null?`empty-group-cell-${$}`:t,L=pH(O);b.useLayoutEffect(()=>{if(c){const I=g.current.querySelector('[tabindex="0"]')||g.current;if(!I)return;if(Mh())I.focus({preventScroll:!0});else{const D=v.current.getScrollPosition();I.focus(),v.current.scroll(D)}}},[v,c]);const F=b.useCallback(W=>I=>{Ga(I)||v.current.publishEvent(W,P,I)},[v,P]),M=b.useMemo(()=>({onKeyDown:F("columnGroupHeaderKeyDown"),onFocus:F("columnGroupHeaderFocus"),onBlur:F("columnGroupHeaderBlur")}),[F]),R=typeof S.headerClassName=="function"?S.headerClassName(P):S.headerClassName,_=b.useMemo(()=>hd(z({},e.style),y,p,h),[p,h,e.style,y]);return m.jsx(MS,z({ref:g,classes:L,columnMenuOpen:!1,colIndex:a,height:l,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:u,isDraggable:!1,headerComponent:T,headerClassName:R,description:k,elementId:C,width:n,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:j,"aria-colspan":i.length,"data-fields":`|-${i.join("-|-")}-|`,style:_},M))}const Y1=ne("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})({display:"flex"}),mH=e=>{const{visibleColumns:t,sortColumnLookup:n,filterColumnLookup:r,columnHeaderTabIndexState:o,columnGroupHeaderTabIndexState:i,columnHeaderFocus:l,columnGroupHeaderFocus:a,headerGroupingMaxDepth:c,columnMenuState:u,columnVisibility:d,columnGroupsHeaderStructure:p,hasOtherElementInTabSequence:h}=e,[f,y]=b.useState(""),[g,v]=b.useState(""),x=Ir(),S=Le(),w=me(x,rS),k=me(x,ss),E=me(x,xA),T=me(x,Bi),N=me(x,Oo),P=dS(k,E,T.left.length),O=me(x,od),j=me(x,iw),$=me(x,D7),C=me(x,_7),L=me(x,lw),F=b.useCallback(U=>v(U.field),[]),M=b.useCallback(()=>v(""),[]),R=b.useCallback(U=>y(U.field),[]),_=b.useCallback(()=>y(""),[]),V=b.useMemo(()=>T.left.length?{firstColumnIndex:0,lastColumnIndex:T.left.length}:null,[T.left.length]),W=b.useMemo(()=>T.right.length?{firstColumnIndex:t.length-T.right.length,lastColumnIndex:t.length}:null,[T.right.length,t.length]);Pe(x,"columnResizeStart",F),Pe(x,"columnResizeStop",M),Pe(x,"columnHeaderDragStart",R),Pe(x,"columnHeaderDragEnd",_);const I=U=>{const{renderContext:q=E}=U||{},Z=q.firstColumnIndex,X=q.lastColumnIndex;return{renderedColumns:t.slice(Z,X),firstColumnToRender:Z,lastColumnToRender:X}},D=(U,q,Z,X=!1)=>{const Q=(U==null?void 0:U.position)===st.RIGHT,re=(U==null?void 0:U.position)===void 0,J=T.right.length>0&&Q||T.right.length===0&&re,oe=P-Z;return m.jsxs(b.Fragment,{children:[re&&m.jsx("div",{role:"presentation",style:{width:oe}}),q,re&&m.jsx("div",{role:"presentation",className:ue(B.filler,X&&B["filler--borderBottom"])}),J&&m.jsx(Lh,{header:!0,pinnedRight:Q,borderBottom:X,borderTop:!1})]})},G=(U,q={})=>{const{renderedColumns:Z,firstColumnToRender:X}=I(U),Q=[];for(let re=0;re<Z.length;re+=1){const J=Z[re],oe=X+re,te=oe===0,fe=o!==null&&o.field===J.field||te&&!h?0:-1,ve=l!==null&&l.field===J.field,Ce=u.open&&u.field===J.field,xe=U==null?void 0:U.position,Se=Bl(xe,J.computedWidth,oe,k,O,L),Oe=xe===st.RIGHT?Z[re-1]:Z[re+1],Ae=Oe?l!==null&&l.field===Oe.field:!1,se=oe+1===k.length-T.right.length,Ge=re,Ie=Z.length,Ye=mu(xe,Ge),ee=fu(xe,Ge,Ie,S.showColumnVerticalBorder,j);Q.push(m.jsx(M_,z({},n[J.field],{columnMenuOpen:Ce,filterItemsCounter:r[J.field]&&r[J.field].length,headerHeight:$,isDragging:J.field===f,colDef:J,colIndex:oe,isResizing:g===J.field,isLast:oe===k.length-1,hasFocus:ve,tabIndex:fe,pinnedPosition:xe,pinnedOffset:Se,isLastUnpinned:se,isSiblingFocused:Ae,showLeftBorder:Ye,showRightBorder:ee},q),J.field))}return D(U,Q,0)},A=()=>m.jsxs(Y1,{role:"row","aria-rowindex":c+1,ownerState:S,className:B["row--borderBottom"],children:[V&&G({position:st.LEFT,renderContext:V},{disableReorder:!0}),G({renderContext:E}),W&&G({position:st.RIGHT,renderContext:W},{disableReorder:!0,separatorSide:Rh.Left})]}),K=({depth:U,params:q})=>{var Ie,Ye,ee,de;const Z=I(q);if(Z.renderedColumns.length===0)return null;const{firstColumnToRender:X,lastColumnToRender:Q}=Z,re=p[U],J=t[X].field,oe=(Ye=(Ie=w[J])==null?void 0:Ie[U])!=null?Ye:null,te=re.findIndex(({groupId:he,columnFields:ae})=>he===oe&&ae.includes(J)),fe=t[Q-1].field,ve=(de=(ee=w[fe])==null?void 0:ee[U])!=null?de:null,Ce=re.findIndex(({groupId:he,columnFields:ae})=>he===ve&&ae.includes(fe)),xe=re.slice(te,Ce+1).map(he=>z({},he,{columnFields:he.columnFields.filter(ae=>d[ae]!==!1)})).filter(he=>he.columnFields.length>0),Se=xe[0].columnFields.indexOf(J),Ae=xe[0].columnFields.slice(0,Se).reduce((he,ae)=>{var be;const ge=N[ae];return he+((be=ge.computedWidth)!=null?be:0)},0);let se=X;const Ge=xe.map(({groupId:he,columnFields:ae},ge)=>{const be=a!==null&&a.depth===U&&ae.includes(a.field),Te=i!==null&&i.depth===U&&ae.includes(i.field)?0:-1,_e={width:ae.reduce((Pt,qe)=>Pt+N[qe].computedWidth,0),fields:ae,colIndex:se},ke=q.position,dt=Bl(ke,_e.width,se,k,O,L);se+=ae.length;let at=ge;return ke===st.LEFT&&(at=se-1),m.jsx(fH,{groupId:he,width:_e.width,fields:_e.fields,colIndex:_e.colIndex,depth:U,isLastColumn:ge===xe.length-1,maxDepth:c,height:C,hasFocus:be,tabIndex:Te,pinnedPosition:ke,pinnedOffset:dt,showLeftBorder:mu(ke,at),showRightBorder:fu(ke,at,xe.length,S.showColumnVerticalBorder,j)},ge)});return D(q,Ge,Ae)};return{renderContext:E,leftRenderContext:V,rightRenderContext:W,pinnedColumns:T,visibleColumns:t,columnPositions:k,getFillers:D,getColumnHeadersRow:A,getColumnsToRender:I,getColumnGroupHeadersRows:()=>{if(c===0)return null;const U=[];for(let q=0;q<c;q+=1)U.push(m.jsxs(Y1,{role:"row","aria-rowindex":q+1,ownerState:S,children:[V&&K({depth:q,params:{position:st.LEFT,renderContext:V,maxLastColumn:V.lastColumnIndex}}),K({depth:q,params:{renderContext:E}}),W&&K({depth:q,params:{position:st.RIGHT,renderContext:W,maxLastColumn:W.lastColumnIndex}})]},q));return U},getPinnedCellOffset:Bl,isDragging:!!f,getInnerProps:()=>({role:"rowgroup"})}},hH=["className"],gH=e=>{const{classes:t}=e;return ye({root:["columnHeaders"]},ut,t)},bH=$t("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),yH=ht(function(t,n){const{className:r}=t,o=Be(t,hH),i=Le(),l=gH(i);return m.jsx(bH,z({className:ue(l.root,r),ownerState:i},o,{role:"presentation",ref:n}))}),vH=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],v2=ht(function(t,n){const{visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:u,headerGroupingMaxDepth:d,columnMenuState:p,columnVisibility:h,columnGroupsHeaderStructure:f,hasOtherElementInTabSequence:y}=t,g=Be(t,vH),{getInnerProps:v,getColumnHeadersRow:x,getColumnGroupHeadersRows:S}=mH({visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:a,columnHeaderFocus:c,columnGroupHeaderFocus:u,headerGroupingMaxDepth:d,columnMenuState:p,columnVisibility:h,columnGroupsHeaderStructure:f,hasOtherElementInTabSequence:y});return m.jsxs(yH,z({},g,v(),{ref:n,children:[S(),x()]}))});process.env.NODE_ENV!=="production"&&(v2.propTypes={columnGroupHeaderFocus:s.shape({depth:s.number.isRequired,field:s.string.isRequired}),columnGroupHeaderTabIndexState:s.shape({depth:s.number.isRequired,field:s.string.isRequired}),columnGroupsHeaderStructure:s.arrayOf(s.arrayOf(s.shape({columnFields:s.arrayOf(s.string).isRequired,groupId:s.string}))).isRequired,columnHeaderFocus:s.shape({field:s.string.isRequired}),columnHeaderTabIndexState:s.shape({field:s.string.isRequired}),columnMenuState:s.shape({field:s.string,open:s.bool.isRequired}).isRequired,columnVisibility:s.object.isRequired,filterColumnLookup:s.object.isRequired,hasOtherElementInTabSequence:s.bool.isRequired,headerGroupingMaxDepth:s.number.isRequired,sortColumnLookup:s.object.isRequired,visibleColumns:s.arrayOf(s.object).isRequired});const xH=Po(v2);function CH(e){return null}function wH(e){return null}const SH=ht(function(t,n){const o=nt().current.getLocaleText("noResultsOverlayLabel");return m.jsx(gd,z({},t,{ref:n,children:o}))}),kH=["sortingOrder"],EH=b.memo(function(t){const{sortingOrder:n}=t,r=Be(t,kH),o=Le(),[i]=n,l=i==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return l?m.jsx(l,z({},r)):null}),TH=["native"];function IH(e){let{native:t}=e,n=Be(e,TH);return t?m.jsx("option",z({},n)):m.jsx(Vn,z({},n))}const PH={booleanCellTrueIcon:X_,booleanCellFalseIcon:fp,columnMenuIcon:U_,openFilterButtonIcon:__,filterPanelDeleteIcon:fp,columnFilteredIcon:T1,columnSelectorIcon:B_,columnUnsortedIcon:EH,columnSortedAscendingIcon:w1,columnSortedDescendingIcon:S1,columnResizeIcon:V_,densityCompactIcon:H_,densityStandardIcon:G_,densityComfortableIcon:W_,exportIcon:Y_,moreActionsIcon:Z_,treeDataCollapseIcon:E1,treeDataExpandIcon:k1,groupingCriteriaCollapseIcon:E1,groupingCriteriaExpandIcon:k1,detailPanelExpandIcon:I1,detailPanelCollapseIcon:q_,rowReorderIcon:P1,quickFilterIcon:z_,quickFilterClearIcon:fp,columnMenuHideIcon:Q_,columnMenuSortAscendingIcon:w1,columnMenuSortDescendingIcon:S1,columnMenuFilterIcon:T1,columnMenuManageColumnsIcon:J_,columnMenuClearIcon:ez,loadIcon:K_,filterPanelAddIcon:I1,filterPanelRemoveAllIcon:tz,columnReorderIcon:P1},OH=z({},PH,{baseBadge:gC,baseCheckbox:Ju,baseDivider:Jc,baseTextField:Vs,baseFormControl:zs,baseSelect:Bs,baseButton:Dr,baseIconButton:Tn,baseInputAdornment:eu,baseTooltip:sa,basePopper:ns,baseInputLabel:Wm,baseSelectOption:IH,baseChip:zm}),MH=z({},OH,{cell:PD,skeletonCell:$D,columnHeaderFilterIconButton:$S,columnHeaderSortIcon:A_,columnMenu:US,columnHeaders:xH,detailPanels:CH,footer:r2,footerRowCount:l2,toolbar:null,pinnedRows:wH,loadingOverlay:o2,noResultsOverlay:SH,noRowsOverlay:s2,pagination:i2,filterPanel:ZS,columnsPanel:qS,columnsManagement:QS,panel:KS,row:pB}),RH={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid",unstable_listView:!1},jH=MH,LH=e=>{const t=Xt(),n=xD(b.useMemo(()=>kx({props:e,theme:t,name:"MuiDataGrid"}),[t,e])),r=b.useMemo(()=>z({},B7,n.localeText),[n.localeText]),o=b.useMemo(()=>yD({defaultSlots:jH,slots:n.slots}),[n.slots]),i=b.useMemo(()=>Object.keys(Ef).reduce((l,a)=>{var c;return l[a]=(c=n[a])!=null?c:Ef[a],l},{}),[n]);return b.useMemo(()=>z({},n,i,{localeText:r,slots:o},RH),[n,r,o,i])},$H={hooks:{useGridAriaAttributes:fB,useGridRowAriaAttributes:mB,useCellAggregationResult:()=>null}},x2=ht(function(t,n){var i;const r=LH(t),o=dH(r.apiRef,r);return process.env.NODE_ENV!=="production"&&wD(r,CD),m.jsx(hB,{privateApiRef:o,configuration:$H,props:r,children:m.jsx(ZD,z({className:r.className,style:r.style,sx:r.sx},r.forwardedProps,(i=r.slotProps)==null?void 0:i.root,{ref:n}))})}),NH=b.memo(x2);x2.propTypes={apiRef:s.shape({current:s.object.isRequired}),"aria-label":s.string,"aria-labelledby":s.string,autoHeight:s.bool,autoPageSize:s.bool,autosizeOnMount:s.bool,autosizeOptions:s.shape({columns:s.arrayOf(s.string),disableColumnVirtualization:s.bool,expand:s.bool,includeHeaders:s.bool,includeOutliers:s.bool,outliersFactor:s.number}),cellModesModel:s.object,checkboxSelection:s.bool,classes:s.object,clipboardCopyCellDelimiter:s.string,columnBufferPx:s.number,columnGroupHeaderHeight:s.number,columnGroupingModel:s.arrayOf(s.object),columnHeaderHeight:s.number,columns:s.arrayOf(s.object).isRequired,columnVisibilityModel:s.object,density:s.oneOf(["comfortable","compact","standard"]),disableAutosize:s.bool,disableColumnFilter:s.bool,disableColumnMenu:s.bool,disableColumnResize:s.bool,disableColumnSelector:s.bool,disableColumnSorting:s.bool,disableDensitySelector:s.bool,disableEval:s.bool,disableMultipleRowSelection:s.bool,disableRowSelectionOnClick:s.bool,disableVirtualization:s.bool,editMode:s.oneOf(["cell","row"]),estimatedRowCount:s.number,experimentalFeatures:s.shape({warnIfFocusStateIsNotSynced:s.bool}),filterDebounceMs:s.number,filterMode:s.oneOf(["client","server"]),filterModel:s.shape({items:s.arrayOf(s.shape({field:s.string.isRequired,id:s.oneOfType([s.number,s.string]),operator:s.string.isRequired,value:s.any})).isRequired,logicOperator:s.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:s.bool,quickFilterLogicOperator:s.oneOf(["and","or"]),quickFilterValues:s.array}),forwardedProps:s.object,getCellClassName:s.func,getDetailPanelContent:s.func,getEstimatedRowHeight:s.func,getRowClassName:s.func,getRowHeight:s.func,getRowId:s.func,getRowSpacing:s.func,hideFooter:s.bool,hideFooterPagination:s.bool,hideFooterSelectedRowCount:s.bool,ignoreDiacritics:s.bool,ignoreValueFormatterDuringExport:s.oneOfType([s.shape({clipboardExport:s.bool,csvExport:s.bool}),s.bool]),indeterminateCheckboxAction:s.oneOf(["deselect","select"]),initialState:s.object,isCellEditable:s.func,isRowSelectable:s.func,keepNonExistentRowsSelected:s.bool,loading:s.bool,localeText:s.object,logger:s.shape({debug:s.func.isRequired,error:s.func.isRequired,info:s.func.isRequired,warn:s.func.isRequired}),logLevel:s.oneOf(["debug","error","info","warn",!1]),nonce:s.string,onCellClick:s.func,onCellDoubleClick:s.func,onCellEditStart:s.func,onCellEditStop:s.func,onCellKeyDown:s.func,onCellModesModelChange:s.func,onClipboardCopy:s.func,onColumnHeaderClick:s.func,onColumnHeaderContextMenu:s.func,onColumnHeaderDoubleClick:s.func,onColumnHeaderEnter:s.func,onColumnHeaderLeave:s.func,onColumnHeaderOut:s.func,onColumnHeaderOver:s.func,onColumnOrderChange:s.func,onColumnResize:s.func,onColumnVisibilityModelChange:s.func,onColumnWidthChange:s.func,onDensityChange:s.func,onFilterModelChange:s.func,onMenuClose:s.func,onMenuOpen:s.func,onPaginationMetaChange:s.func,onPaginationModelChange:s.func,onPreferencePanelClose:s.func,onPreferencePanelOpen:s.func,onProcessRowUpdateError:s.func,onResize:s.func,onRowClick:s.func,onRowCountChange:s.func,onRowDoubleClick:s.func,onRowEditStart:s.func,onRowEditStop:s.func,onRowModesModelChange:s.func,onRowSelectionModelChange:s.func,onSortModelChange:s.func,onStateChange:s.func,pageSizeOptions:s.arrayOf(s.oneOfType([s.number,s.shape({label:s.string.isRequired,value:s.number.isRequired})]).isRequired),pagination:s.oneOf([!0]),paginationMeta:s.shape({hasNextPage:s.bool}),paginationMode:s.oneOf(["client","server"]),paginationModel:s.shape({page:s.number.isRequired,pageSize:s.number.isRequired}),processRowUpdate:s.func,resetPageOnSortFilter:s.bool,resizeThrottleMs:s.number,rowBufferPx:s.number,rowCount:s.number,rowHeight:s.number,rowModesModel:s.object,rowPositionsDebounceMs:s.number,rows:s.arrayOf(s.object),rowSelection:s.bool,rowSelectionModel:s.oneOfType([s.arrayOf(s.oneOfType([s.number,s.string]).isRequired),s.number,s.string]),rowSpacingType:s.oneOf(["border","margin"]),scrollbarSize:s.number,showCellVerticalBorder:s.bool,showColumnVerticalBorder:s.bool,slotProps:s.object,slots:s.object,sortingMode:s.oneOf(["client","server"]),sortingOrder:s.arrayOf(s.oneOf(["asc","desc"])),sortModel:s.arrayOf(s.shape({field:s.string.isRequired,sort:s.oneOf(["asc","desc"])})),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),unstable_rowSpanning:s.bool,virtualizeColumnsWithAutoRowHeight:s.bool};const FH=({sx:e,...t})=>{const n=Xt();return m.jsx(NH,{disableRowSelectionOnClick:!0,...t,sx:{border:`1px solid ${n.palette.neutral.lighter}`,borderRadius:"8px",fontFamily:n.typography.fontFamily,fontSize:"0.875rem",[`& .${B.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"}},[`& .${B.columnSeparator}`]:{color:n.palette.neutral.lighter},[`& .${B.row}`]:{"&:hover":{backgroundColor:n.palette.neutral.lighter},"&.Mui-selected":{backgroundColor:n.palette.neutral.lighter,"&:hover":{backgroundColor:n.palette.neutral.lighter}}},[`& .${B.cell}`]:{color:"rgba(51, 51, 51, 0.87)","&:focus, &:focus-within":{outline:`2px solid ${n.palette.primary.main}`,outlineOffset:"-2px"}},[`& .${B.footerContainer}`]:{borderTop:`1px solid ${n.palette.neutral.lighter}`},[`& .${B.overlay}`]:{color:n.palette.neutral.dark},...e}})},AH=Me(m.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}),"EditOutlined"),DH=Me(m.jsx("path",{d:"m11 8.89.94 3.11h2.82l-2.27 1.62.93 3.01L11 14.79l-2.42 1.84.93-3.01L7.24 12h2.82zM8.58 10H1l6.17 4.41L4.83 22 11 17.31 17.18 22l-2.35-7.59L21 10h-7.58L11 2zm12.78 12-1.86-6.01L23.68 13h-3.44l-3.08 2.2 1.46 4.72zM17 8l-1.82-6-1.04 3.45.77 2.55z"}),"HotelClassOutlined"),_H=Me(m.jsx("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1q-.09-.03-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1q.09.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64zm-1.98-1.71c.04.31.05.52.05.73s-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"SettingsOutlined"),zH=e=>"name"in e&&typeof e.name=="string"?e.name:"",BH=({className:e,columns:t,data:n=[],hideStarIcon:r=!1,isLoading:o=!1,sort:i,onConfigure:l,alwaysShowConfigureIcon:a=!1,onDelete:c,onEdit:u,onSelectRow:d,renderInlineEdit:p,labels:h={}})=>{const[f,y]=H.useState(""),{actions:g="Actions",noRecords:v="There are no records.",edit:x="Edit",configure:S="Configure"}=h,w=j=>u?u(f,j).then(()=>y("")):Promise.resolve(),k=H.useCallback((j,$)=>()=>{switch($){case"configure":l==null||l(j);break;case"delete":c==null||c(j);break;case"edit":y(j);break;case"select":d==null||d(j);break}},[l,c,d]),E=j=>!!(l||c||u)&&j!==f,T="#F5F5F5",N="#555555",P="#FFFFFF",O="#364699";return m.jsx(WC,{className:e,children:m.jsxs(sh,{sx:{minWidth:800,"& td, & th":{px:4.5,py:3}},children:[m.jsx(ih,{sx:{background:"rgba(217, 217, 217, 0.10)"},children:m.jsxs(ws,{sx:{border:"1px solid #F5F5F5"},children:[t.map((j,$)=>m.jsx(kn,{sortDirection:(i==null?void 0:i.column)===j.dataKey?i==null?void 0:i.direction:!1,sx:$<t.length-1?{borderRight:"1px solid #F5F5F5"}:void 0,children:j.onSort?m.jsx(KC,{active:(i==null?void 0:i.column)===j.dataKey,direction:(i==null?void 0:i.column)===j.dataKey?i==null?void 0:i.direction:"asc",onClick:()=>{var C;return(C=j.onSort)==null?void 0:C.call(j,{column:j.dataKey,direction:(i==null?void 0:i.column)===j.dataKey&&(i==null?void 0:i.direction)==="asc"?"desc":"asc"})},children:m.jsx(ot,{sx:{color:N,textTransform:"capitalize"},variant:"caption",children:j.label})}):m.jsx(ot,{sx:{color:N,textTransform:"capitalize"},variant:"caption",children:j.label})},`${String(j.dataKey)}-header`)),E()&&m.jsx(kn,{children:m.jsx("span",{style:{position:"absolute",width:1,height:1,overflow:"hidden",clip:"rect(0,0,0,0)"},children:g})})]})}),o&&m.jsx(Rc,{sx:{"& td":{borderBottomColor:T}},children:m.jsx(ws,{children:m.jsx(kn,{colSpan:t.length+(E()?1:0),children:m.jsx(qm,{"aria-label":"Loading"})})})}),!o&&n.length===0&&m.jsx(Rc,{sx:{"& td":{borderBottomColor:T}},children:m.jsx(ws,{children:m.jsx(kn,{colSpan:t.length+(E()?1:0),children:m.jsx(ot,{sx:{textAlign:"center",color:N,my:5},children:v})})})}),!o&&n.length>0&&m.jsx(Rc,{sx:{"& td":{borderBottomColor:T}},children:n.map(j=>m.jsxs(ws,{sx:{"&:hover, &:focus-within":{backgroundColor:T},"&:hover .favorite-button, &:focus-within .favorite-button":{backgroundColor:P},"&:hover .hover-icon, &:focus-within .hover-icon":{opacity:1},"&:focus-visible":{outline:`2px solid ${O}`,outlineOffset:"-2px"},cursor:j.id!==f?"pointer":"default"},tabIndex:j.id!==f?0:void 0,onClick:j.id!==f?k(j.id,"select"):void 0,onKeyDown:j.id!==f?$=>{$.target===$.currentTarget&&$.key==="Enter"&&($.preventDefault(),k(j.id,"select")())}:void 0,children:[j.id===f?m.jsx(kn,{colSpan:t.length+(E(j.id)?0:1),children:p?p(j.id,zH(j),w,()=>y("")):null}):t.map(($,C)=>{var L,F;return m.jsx(kn,{children:m.jsx("div",{style:C===0?{display:"flex",alignItems:"center",gap:10}:void 0,children:C===0?m.jsxs(m.Fragment,{children:[!r&&m.jsx(Tn,{disabled:!0,"aria-label":"favorite",className:"favorite-button",size:"small",sx:{borderRadius:"10px",backgroundColor:T},children:m.jsx(DH,{fontSize:"inherit"})}),m.jsx(ot,{sx:{fontWeight:700,color:"rgba(51,51,51,0.87)",fontSize:"0.875rem",cursor:"pointer","&:hover":{textDecoration:"underline"}},onClick:k(j.id,"select"),children:$.render?$.render(j):$.dataKey?String((L=j[$.dataKey])!=null?L:""):""})]}):m.jsx("div",{style:{fontWeight:400,color:N,fontSize:"0.75rem"},children:$.render?$.render(j):$.dataKey?String((F=j[$.dataKey])!=null?F:""):""})})},`${String(j.id)}-${String($.dataKey)}`)}),E(j.id)&&m.jsxs(kn,{align:"right",children:[l&&m.jsx(sa,{title:S,children:m.jsx(Tn,{"aria-label":S,className:a?void 0:"hover-icon",size:"small",sx:a?void 0:{opacity:0},onClick:$=>{$.stopPropagation(),k(j.id,"configure")()},children:m.jsx(_H,{fontSize:"inherit"})})}),u&&m.jsx(sa,{title:x,children:m.jsx(Tn,{"aria-label":x,className:"hover-icon",size:"small",sx:{opacity:0},onClick:$=>{$.stopPropagation(),k(j.id,"edit")()},children:m.jsx(AH,{fontSize:"inherit"})})})]})]},j.id))})]})})},VH=({children:e})=>m.jsx(sh,{sx:{"& .MuiTableHead-root":{background:"rgba(217, 217, 217, 0.10)","& .MuiTableCell-root":{border:"1px solid #F5F5F5",color:"rgba(51, 51, 51, 0.60)"}},"& .MuiTableCell-root":{whiteSpace:"nowrap"},"& .MuiTableBody-root":{"& .MuiTableRow-root":{"&.checked":{background:"#F5F5F5"},"&:hover":{background:"#F5F5F5",transition:"200ms","& .actionIcons":{opacity:"1"},"& .tableButton":{background:"#FFF"}}}}},children:e}),Ah=()=>m.jsxs(Ms,{fontSize:"small",children:[m.jsx("rect",{fill:"#fff",height:"20",width:"20",x:"2",y:"2"}),m.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"}),m.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"})]}),C2=()=>m.jsxs(Ms,{fontSize:"small",children:[m.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"}),m.jsx("path",{d:"M7 11h10v2H7z"})]}),w2=({allChecked:e,someChecked:t,onSelectAll:n})=>m.jsx(kn,{sx:{padding:"8px 12px",width:"1%"},children:m.jsx(Ju,{checked:e,checkedIcon:m.jsx(Ah,{}),indeterminate:t&&!e,indeterminateIcon:m.jsx(C2,{}),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)}}}})}),HH=Me(m.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),GH=Me(m.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),S2=({sortDirection:e})=>m.jsxs("svg",{fill:"none",height:"16",viewBox:"0 0 13 16",width:"13",xmlns:"http://www.w3.org/2000/svg",children:[m.jsx("path",{d:"M3.5 7L6.5 3L9.5 7H3.5Z",fill:"#333333",fillOpacity:e==="desc"?"0":"0.6"}),m.jsx("path",{d:"M3.5 9L6.5 13L9.5 9H3.5Z",fill:"#333333",fillOpacity:e==="asc"?"0":"0.6"})]});function WH({field:e,label:t,sx:n,value:r,setTableSearch:o,setTableSort:i,sortDirection:l,searchable:a=!0}){const[c,u]=H.useState(!1),d=a&&(c||!!r);return m.jsx(kn,{sx:{padding:"3px 2px 3px 6px",...n},onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:m.jsxs(Je,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"2px"},children:[a?m.jsx(Vs,{disabled:!d,placeholder:t,size:"small",slotProps:{input:{startAdornment:m.jsx(eu,{position:"start",children:m.jsx(GH,{sx:{transition:p=>p.transitions.create("all",{duration:p.transitions.duration.standard}),transitionDelay:"100ms",opacity:d?1:0,fontSize:"1rem"}})}),endAdornment:m.jsx(eu,{position:"end",sx:{position:"absolute",top:"2px",right:"2px"},children:m.jsx(Tn,{size:"small","aria-label":`Clear ${t} search`,sx:{transition:p=>p.transitions.create("all",{duration:p.transitions.duration.standard}),opacity:r?1:0,pointerEvents:r?"auto":"none"},onClick:()=>o(p=>({...p,[e]:""})),children:m.jsx(HH,{sx:{fontSize:"0.75rem"}})})}),autoComplete:"off"}},sx:{"& .MuiInputBase-root":{transition:p=>p.transitions.create("all",{duration:p.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:p=>p.transitions.create("all",{duration:p.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:p=>o(h=>({...h,[e]:p.target.value}))}):m.jsx(Je,{sx:{color:"text.secondary",fontSize:"0.75rem",lineHeight:1.2,paddingLeft:"6px",whiteSpace:"nowrap"},children:t}),m.jsx(Tn,{size:"small","aria-label":`Sort by ${t}`,onClick:()=>i(p=>{if(!p)return{field:e,direction:"asc"};if(p.direction==="asc")return{field:e,direction:"desc"}}),children:m.jsx(S2,{sortDirection:l})})]})})}const k2=H.memo(WH),UH={position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},qH=({shouldRenderCheckbox:e,shouldRenderAction:t,items:n,tableSearch:r,setTableSearch:o,tableSort:i,setTableSort:l,allChecked:a,someChecked:c,onSelectAll:u})=>m.jsx(ih,{children:m.jsxs(ws,{children:[e?m.jsx(w2,{allChecked:a,someChecked:c,onSelectAll:u}):null,n.map(d=>{var p;return d.type==="tableCell"?m.jsx(kn,{children:m.jsx(ot,{sx:{color:"#33333399",fontSize:"0.75rem"},children:d.label})},d.id):d.type==="searchable"?m.jsx(k2,{field:d.field,label:d.label,setTableSearch:o,setTableSort:l,sortDirection:(i==null?void 0:i.field)===d.field?i==null?void 0:i.direction:void 0,value:(p=r[d.field])!=null?p:""},d.id):null}),t?m.jsx(kn,{children:m.jsx(Je,{component:"span",sx:UH,children:"Actions"})}):null]})}),KH=Me(m.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-2m0 16H5V5h14zM7 11h10v2H7z"}),"IndeterminateCheckBoxOutlined"),E2=H.memo(({id:e,index:t,checked:n,onTableRowCheck:r,children:o,onClick:i,shouldRenderCheckbox:l})=>m.jsxs(ws,{className:n?"checked":"",sx:{cursor:i?"pointer":void 0},onClick:i,children:[l?m.jsx(kn,{sx:{padding:"13px 12px",borderBottom:"1px solid #F5F5F5"},children:m.jsx(Ju,{checked:n,checkedIcon:m.jsx(Ah,{}),indeterminateIcon:m.jsx(KH,{}),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));E2.displayName="CustomTableRow";const YH=({label:e})=>m.jsx(kn,{sx:{padding:"7px 16px"},children:m.jsx(ot,{sx:{fontSize:"0.75rem"},children:e})});function T2(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 p=d.toLowerCase();return typeof u=="string"?u.toLowerCase().includes(p):Array.isArray(u)&&u.every(h=>typeof h=="string")?u.some(h=>h.toLowerCase().includes(p)):!1},i=e.filter(u=>t?Object.entries(t).every(([d,p])=>o(u[d],p)):!0);if(!n)return i;const{field:l,direction:a}=n,c=a==="asc"?1:-1;return[...i].sort((u,d)=>{const p=u[l],h=d[l];if(typeof p=="number"&&typeof h=="number")return c*(p-h);const f=r(p),y=r(h);return f&&y?c*f.localeCompare(y):0})}const XH=e=>{const[t,n]=H.useState({}),[r,o]=H.useState(),[i,l]=H.useState(new Set),[a,c]=H.useState(null),u=T2(e,t,r),d=u.map(v=>v.id).filter(Boolean),p=d.length>0&&d.every(v=>i.has(v)),h=d.some(v=>i.has(v));return{tableSearch:t,setTableSearch:n,tableSort:r,setTableSort:o,allChecked:p,someChecked:h,onSelectAll:()=>{u.every(v=>i.has(v.id))?l(new Set):l(new Set(u.map(v=>v.id)))},onTableRowCheck:(v,x,S)=>{if(S.shiftKey&&a!==null){const w=Math.min(a,x),k=Math.max(a,x),E=new Set(i);d.slice(w,k+1).forEach(T=>E.add(T)),l(E)}else{const w=new Set(i);w.has(v)?w.delete(v):w.add(v),l(w)}c(x)},filteredTableData:u,checkedIds:i,unselectAll:()=>l(new Set)}},I2=H.forwardRef(({onClick:e,holdDuration:t=2e3,holdLabel:n="Hold to confirm...",children:r,disabled:o,...i},l)=>{const[a,c]=H.useState(!1),[u,d]=H.useState(!1),[p,h]=H.useState(0),f=H.useRef(null),y=H.useRef(null),g=H.useRef(0),v=H.useRef(!1),x=()=>{f.current&&(clearTimeout(f.current),f.current=null),y.current&&(clearInterval(y.current),y.current=null)},S=()=>{o||u||a||(x(),g.current=performance.now(),h(0),c(!0),y.current=setInterval(()=>{const k=performance.now()-g.current;h(Math.min(k/t*100,100))},16),f.current=setTimeout(()=>{x(),h(100),c(!1),d(!0),(async()=>{try{await e()}finally{d(!1),h(0)}})()},t))},w=()=>{a&&(x(),c(!1),h(0))};return H.useEffect(()=>()=>x(),[]),m.jsx(Je,{sx:{position:"relative"},children:m.jsx(Dr,{ref:l,disabled:o||u,onPointerDown:S,onPointerUp:w,onPointerLeave:w,onPointerCancel:w,onKeyDown:k=>{k.key!==" "&&k.key!=="Enter"||v.current||(k.preventDefault(),v.current=!0,S())},onKeyUp:k=>{k.key!==" "&&k.key!=="Enter"||(v.current=!1,w())},onBlur:()=>{v.current=!1,w()},sx:{display:"flex",alignItems:"center",gap:1,width:"100%",touchAction:"none"},...i,children:a?m.jsxs(m.Fragment,{children:[m.jsx(Pa,{size:18,sx:{color:"inherit","& .MuiCircularProgress-circleDeterminate":{transition:"none"}},thickness:7,value:p,variant:"determinate"}),m.jsx("span",{children:n})]}):r})})});I2.displayName="HoldToConfirmButton";const ZH=Me(m.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert"),QH=({menuItems:e,ariaLabel:t="Open menu"})=>{const[n,r]=H.useState(null),o=!!n,i=c=>{r(c.currentTarget)},l=()=>{r(null)},a=c=>{c(),l()};return m.jsxs(m.Fragment,{children:[m.jsx(Tn,{"aria-haspopup":"true","aria-label":t,onClick:i,children:m.jsx(ZH,{})}),m.jsx(Ym,{anchorEl:n,anchorOrigin:{vertical:"bottom",horizontal:"right"},open:o,transformOrigin:{vertical:"top",horizontal:"right"},onClose:l,children:e.map((c,u)=>m.jsx(Vn,{onClick:()=>a(c.onClick),children:c.label},u))})]})},JH=({title:e,className:t,subtitle:n,"data-testid":r})=>m.jsxs("div",{children:[m.jsx("h1",{className:`text-primary text-lg font-bold uppercase ${t!=null?t:""}`,"data-testid":r,children:e}),n&&m.jsx("p",{className:"text-neutral text-sm",children:n})]});var Wa=e=>typeof e=="number"&&!isNaN(e),Ns=e=>typeof e=="string",To=e=>typeof e=="function",eG=e=>Ns(e)||Wa(e),Of=e=>Ns(e)||To(e)?e:null,tG=(e,t)=>e===!1||Wa(e)&&e>0?e:t,Mf=e=>H.isValidElement(e)||Ns(e)||To(e)||Wa(e);function nG(e,t,n=300){let{scrollHeight:r,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}function P2({enter:e,exit:t,appendPosition:n=!1,collapse:r=!0,collapseDuration:o=300}){return function({children:i,position:l,preventExitTransition:a,done:c,nodeRef:u,isIn:d,playToast:p}){let h=n?`${e}--${l}`:e,f=n?`${t}--${l}`:t,y=H.useRef(0);return H.useLayoutEffect(()=>{let g=u.current,v=h.split(" "),x=S=>{S.target===u.current&&(p(),g.removeEventListener("animationend",x),g.removeEventListener("animationcancel",x),y.current===0&&S.type!=="animationcancel"&&g.classList.remove(...v))};g.classList.add(...v),g.addEventListener("animationend",x),g.addEventListener("animationcancel",x)},[]),H.useEffect(()=>{let g=u.current,v=()=>{g.removeEventListener("animationend",v),r?nG(g,c,o):c()};d||(a?v():(y.current=1,g.className+=` ${f}`,g.addEventListener("animationend",v)))},[d]),H.createElement(H.Fragment,null,i)}}function X1(e,t){return{content:O2(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:t}}function O2(e,t,n=!1){return H.isValidElement(e)&&!Ns(e.type)?H.cloneElement(e,{closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:n}):To(e)?e({closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:n}):e}function rG({closeToast:e,theme:t,ariaLabel:n="close"}){return H.createElement("button",{className:`Toastify__close-button Toastify__close-button--${t}`,type:"button",onClick:r=>{r.stopPropagation(),e(!0)},"aria-label":n},H.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},H.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function oG({delay:e,isRunning:t,closeToast:n,type:r="default",hide:o,className:i,controlledProgress:l,progress:a,rtl:c,isIn:u,theme:d}){let p=o||l&&a===0,h={animationDuration:`${e}ms`,animationPlayState:t?"running":"paused"};l&&(h.transform=`scaleX(${a})`);let f=ue("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${d}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":c}),y=To(i)?i({rtl:c,type:r,defaultClassName:f}):ue(f,i),g={[l&&a>=1?"onTransitionEnd":"onAnimationEnd"]:l&&a<1?null:()=>{u&&n()}};return H.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":p},H.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${d} Toastify__progress-bar--${r}`}),H.createElement("div",{role:"progressbar","aria-hidden":p?"true":"false","aria-label":"notification timer","aria-valuenow":l?Math.round(a*100):void 0,"aria-valuemin":0,"aria-valuemax":100,className:y,style:h,...g}))}var sG=1,M2=()=>`${sG++}`;function iG(e,t,n){let r=1,o=0,i=[],l=[],a=t,c=new Map,u=new Set,d=S=>(u.add(S),()=>u.delete(S)),p=()=>{l=Array.from(c.values()),u.forEach(S=>S())},h=({containerId:S,toastId:w,updateId:k})=>{let E=S?S!==e:e!==1,T=c.has(w)&&k==null;return E||T},f=(S,w)=>{c.forEach(k=>{var E;(w==null||w===k.props.toastId)&&((E=k.toggle)==null||E.call(k,S))})},y=S=>{var w,k;S.isActive&&((k=(w=S.props)==null?void 0:w.onClose)==null||k.call(w,S.removalReason),S.isActive=!1,n(X1(S,"removed")))},g=S=>{if(S==null)c.forEach(y);else{let w=c.get(S);w&&y(w)}p()},v=()=>{o-=i.length,i=[]},x=S=>{var w,k;let{toastId:E,updateId:T}=S.props,N=T==null;S.staleId&&c.delete(S.staleId),S.isActive=!0,c.set(E,S),p(),n(X1(S,N?"added":"updated")),N&&((k=(w=S.props).onOpen)==null||k.call(w))};return{id:e,props:a,observe:d,toggle:f,removeToast:g,toasts:c,clearQueue:v,buildToast:(S,w)=>{if(h(w))return;let{toastId:k,updateId:E,data:T,staleId:N,delay:P}=w,O=E==null;O&&o++;let j={...a,style:a.toastStyle,key:r++,...Object.fromEntries(Object.entries(w).filter(([C,L])=>L!=null)),toastId:k,updateId:E,data:T,isIn:!1,className:Of(w.className||a.toastClassName),progressClassName:Of(w.progressClassName||a.progressClassName),autoClose:w.isLoading?!1:tG(w.autoClose,a.autoClose),closeToast(C){let L=c.get(k);L&&(L.removalReason=C,g(k))},deleteToast(){if(c.get(k)!=null){if(c.delete(k),o--,o<0&&(o=0),i.length>0){x(i.shift());return}p()}}};j.closeButton=a.closeButton,w.closeButton===!1||Mf(w.closeButton)?j.closeButton=w.closeButton:w.closeButton===!0&&(j.closeButton=Mf(a.closeButton)?a.closeButton:!0);let $={content:S,props:j,staleId:N};a.limit&&a.limit>0&&o>a.limit&&O?i.push($):Wa(P)?setTimeout(()=>{x($)},P):x($)},setProps(S){a=S},setToggle:(S,w)=>{let k=c.get(S);k&&(k.toggle=w)},isToastActive:S=>{var w;return(w=c.get(S))==null?void 0:w.isActive},getSnapshot:()=>l}}var $n=new Map,pa=[],Rf=new Set,lG=e=>Rf.forEach(t=>t(e)),R2=()=>$n.size>0;function aG(){pa.forEach(e=>L2(e.content,e.options)),pa=[]}var cG=(e,{containerId:t})=>{var n;return(n=$n.get(t||1))==null?void 0:n.toasts.get(e)};function j2(e,t){var n;if(t)return!!((n=$n.get(t))!=null&&n.isToastActive(e));let r=!1;return $n.forEach(o=>{o.isToastActive(e)&&(r=!0)}),r}function uG(e){if(!R2()){pa=pa.filter(t=>e!=null&&t.options.toastId!==e);return}if(e==null||eG(e))$n.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=$n.get(e.containerId);t?t.removeToast(e.id):$n.forEach(n=>{n.removeToast(e.id)})}}var dG=(e={})=>{$n.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})};function L2(e,t){Mf(e)&&(R2()||pa.push({content:e,options:t}),$n.forEach(n=>{n.buildToast(e,t)}))}function pG(e){var t;(t=$n.get(e.containerId||1))==null||t.setToggle(e.id,e.fn)}function $2(e,t){$n.forEach(n=>{(t==null||!(t!=null&&t.containerId)||(t==null?void 0:t.containerId)===n.id)&&n.toggle(e,t==null?void 0:t.id)})}function fG(e){let t=e.containerId||1;return{subscribe(n){let r=iG(t,e,lG);$n.set(t,r);let o=r.observe(n);return aG(),()=>{o(),$n.delete(t)}},setProps(n){var r;(r=$n.get(t))==null||r.setProps(n)},getSnapshot(){var n;return(n=$n.get(t))==null?void 0:n.getSnapshot()}}}function mG(e){return Rf.add(e),()=>{Rf.delete(e)}}function hG(e){return e&&(Ns(e.toastId)||Wa(e.toastId))?e.toastId:M2()}function Ua(e,t){return L2(e,t),t.toastId}function bd(e,t){return{...t,type:t&&t.type||e,toastId:hG(t)}}function yd(e){return(t,n)=>Ua(t,bd(e,n))}function bt(e,t){return Ua(e,bd("default",t))}bt.loading=(e,t)=>Ua(e,bd("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t}));function gG(e,{pending:t,error:n,success:r},o){let i;t&&(i=Ns(t)?bt.loading(t,o):bt.loading(t.render,{...o,...t}));let l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},a=(u,d,p)=>{if(d==null){bt.dismiss(i);return}let h={type:u,...l,...o,data:p},f=Ns(d)?{render:d}:d;return i?bt.update(i,{...h,...f}):bt(f.render,{...h,...f}),p},c=To(e)?e():e;return c.then(u=>a("success",r,u)).catch(u=>a("error",n,u)),c}bt.promise=gG;bt.success=yd("success");bt.info=yd("info");bt.error=yd("error");bt.warning=yd("warning");bt.warn=bt.warning;bt.dark=(e,t)=>Ua(e,bd("default",{theme:"dark",...t}));function bG(e){uG(e)}bt.dismiss=bG;bt.clearWaitingQueue=dG;bt.isActive=j2;bt.update=(e,t={})=>{let n=cG(e,t);if(n){let{props:r,content:o}=n,i={delay:100,...r,...t,toastId:t.toastId||e,updateId:M2()};i.toastId!==e&&(i.staleId=e);let l=i.render||o;delete i.render,Ua(l,i)}};bt.done=e=>{bt.update(e,{progress:1})};bt.onChange=mG;bt.play=e=>$2(!0,e);bt.pause=e=>$2(!1,e);function yG(e){var t;let{subscribe:n,getSnapshot:r,setProps:o}=H.useRef(fG(e)).current;o(e);let i=(t=H.useSyncExternalStore(n,r,r))==null?void 0:t.slice();function l(a){if(!i)return[];let c=new Map;return e.newestOnTop&&i.reverse(),i.forEach(u=>{let{position:d}=u.props;c.has(d)||c.set(d,[]),c.get(d).push(u)}),Array.from(c,u=>a(u[0],u[1]))}return{getToastToRender:l,isToastActive:j2,count:i==null?void 0:i.length}}function vG(e){let[t,n]=H.useState(!1),[r,o]=H.useState(!1),i=H.useRef(null),l=H.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:a,pauseOnHover:c,closeToast:u,onClick:d,closeOnClick:p}=e;pG({id:e.toastId,containerId:e.containerId,fn:n}),H.useEffect(()=>{if(e.pauseOnFocusLoss)return h(),()=>{f()}},[e.pauseOnFocusLoss]);function h(){document.hasFocus()||x(),window.addEventListener("focus",v),window.addEventListener("blur",x)}function f(){window.removeEventListener("focus",v),window.removeEventListener("blur",x)}function y(N){if(e.draggable===!0||e.draggable===N.pointerType){S();let P=i.current;l.canCloseOnClick=!0,l.canDrag=!0,P.style.transition="none",e.draggableDirection==="x"?(l.start=N.clientX,l.removalDistance=P.offsetWidth*(e.draggablePercent/100)):(l.start=N.clientY,l.removalDistance=P.offsetHeight*(e.draggablePercent===80?e.draggablePercent*1.5:e.draggablePercent)/100)}}function g(N){let{top:P,bottom:O,left:j,right:$}=i.current.getBoundingClientRect();N.pointerType==="mouse"&&e.pauseOnHover&&N.clientX>=j&&N.clientX<=$&&N.clientY>=P&&N.clientY<=O?x():v()}function v(){n(!0)}function x(){n(!1)}function S(){l.didMove=!1,document.addEventListener("pointermove",k),document.addEventListener("pointerup",E)}function w(){document.removeEventListener("pointermove",k),document.removeEventListener("pointerup",E)}function k(N){let P=i.current;if(l.canDrag&&P){l.didMove=!0,t&&x(),e.draggableDirection==="x"?l.delta=N.clientX-l.start:l.delta=N.clientY-l.start,l.start!==N.clientX&&(l.canCloseOnClick=!1);let O=e.draggableDirection==="x"?`${l.delta}px, var(--y)`:`0, calc(${l.delta}px + var(--y))`;P.style.transform=`translate3d(${O},0)`,P.style.opacity=`${1-Math.abs(l.delta/l.removalDistance)}`}}function E(){w();let N=i.current;if(l.canDrag&&l.didMove&&N){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance){o(!0),e.closeToast(!0),e.collapseAll();return}N.style.transition="transform 0.2s, opacity 0.2s",N.style.removeProperty("transform"),N.style.removeProperty("opacity")}}let T={onPointerDown:y,onPointerUp:g};return a&&c&&(T.onMouseEnter=x,e.stacked||(T.onMouseLeave=v)),p&&(T.onClick=N=>{d&&d(N),l.canCloseOnClick&&u(!0)}),{playToast:v,pauseToast:x,isRunning:t,preventExitTransition:r,toastRef:i,eventHandlers:T}}var N2=typeof window!="undefined"?H.useLayoutEffect:H.useEffect,vd=({theme:e,type:t,isLoading:n,...r})=>H.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${t})`,...r});function xG(e){return H.createElement(vd,{...e},H.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))}function CG(e){return H.createElement(vd,{...e},H.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))}function wG(e){return H.createElement(vd,{...e},H.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))}function SG(e){return H.createElement(vd,{...e},H.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))}function kG(){return H.createElement("div",{className:"Toastify__spinner"})}var jf={info:CG,warning:xG,success:wG,error:SG,spinner:kG},EG=e=>e in jf;function TG({theme:e,type:t,isLoading:n,icon:r}){let o=null,i={theme:e,type:t};return r===!1||(To(r)?o=r({...i,isLoading:n}):H.isValidElement(r)?o=H.cloneElement(r,i):n?o=jf.spinner():EG(t)&&(o=jf[t](i))),o}var IG=e=>{let{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:o,playToast:i}=vG(e),{closeButton:l,children:a,autoClose:c,onClick:u,type:d,hideProgressBar:p,closeToast:h,transition:f,position:y,className:g,style:v,progressClassName:x,updateId:S,role:w,progress:k,rtl:E,toastId:T,deleteToast:N,isIn:P,isLoading:O,closeOnClick:j,theme:$,ariaLabel:C}=e,L=ue("Toastify__toast",`Toastify__toast-theme--${$}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":E},{"Toastify__toast--close-on-click":j}),F=To(g)?g({rtl:E,position:y,type:d,defaultClassName:L}):ue(L,g),M=TG(e),R=!!k||!c,_={closeToast:h,type:d,theme:$},V=null;return l===!1||(To(l)?V=l(_):H.isValidElement(l)?V=H.cloneElement(l,_):V=rG(_)),H.createElement(f,{isIn:P,done:N,position:y,preventExitTransition:n,nodeRef:r,playToast:i},H.createElement("div",{id:T,tabIndex:0,onClick:u,"data-in":P,className:F,...o,style:v,ref:r,...P&&{role:w,"aria-label":C}},M!=null&&H.createElement("div",{className:ue("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!O})},M),O2(a,e,!t),V,!e.customProgressBar&&H.createElement(oG,{...S&&!R?{key:`p-${S}`}:{},rtl:E,theme:$,delay:c,isRunning:t,isIn:P,closeToast:h,hide:p,type:d,className:x,controlledProgress:R,progress:k||0})))},F2=(e,t=!1)=>({enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}),PG=P2(F2("bounce",!0)),OG=P2(F2("slide",!0)),MG={position:"top-right",transition:PG,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:e=>e.altKey&&e.code==="KeyT"};function RG(e){let t={...MG,...e},n=e.stacked,[r,o]=H.useState(!0),i=H.useRef(null),{getToastToRender:l,isToastActive:a,count:c}=yG(t),{className:u,style:d,rtl:p,containerId:h,hotKeys:f}=t;function y(v){let x=ue("Toastify__toast-container",`Toastify__toast-container--${v}`,{"Toastify__toast-container--rtl":p});return To(u)?u({position:v,rtl:p,defaultClassName:x}):ue(x,Of(u))}function g(){n&&(o(!0),bt.play())}return N2(()=>{var v;if(n){let x=i.current.querySelectorAll('[data-in="true"]'),S=12,w=(v=t.position)==null?void 0:v.includes("top"),k=0,E=0;Array.from(x).reverse().forEach((T,N)=>{let P=T;P.classList.add("Toastify__toast--stacked"),N>0&&(P.dataset.collapsed=`${r}`),P.dataset.pos||(P.dataset.pos=w?"top":"bot");let O=k*(r?.2:1)+(r?0:S*N),j=Math.max(.5,1-(r?E:0));P.style.setProperty("--y",`${w?O:O*-1}px`),P.style.setProperty("--g",`${S}`),P.style.setProperty("--s",`${j}`),k+=P.offsetHeight,E+=.025})}},[r,c,n]),H.useEffect(()=>{function v(x){var S;let w=i.current;f(x)&&((S=w==null?void 0:w.querySelector('[tabIndex="0"]'))==null||S.focus(),o(!1),bt.pause()),x.key==="Escape"&&(document.activeElement===w||w!=null&&w.contains(document.activeElement))&&(o(!0),bt.play())}return document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}},[f]),H.createElement("section",{ref:i,className:"Toastify",id:h,onMouseEnter:()=>{n&&(o(!1),bt.pause())},onMouseLeave:g,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":t["aria-label"]},l((v,x)=>{let S=x.length?{...d}:{...d,pointerEvents:"none"};return H.createElement("div",{tabIndex:-1,className:y(v),"data-stacked":n,style:S,key:`c-${v}`},x.map(({content:w,props:k})=>H.createElement(IG,{...k,stacked:n,collapseAll:g,isIn:a(k.toastId,k.containerId),key:`t-${k.key}`},w)))}))}var jG=`:root {
454
- --toastify-color-light: #fff;
455
- --toastify-color-dark: #121212;
456
- --toastify-color-info: #3498db;
457
- --toastify-color-success: #07bc0c;
458
- --toastify-color-warning: #f1c40f;
459
- --toastify-color-error: hsl(6, 78%, 57%);
460
- --toastify-color-transparent: rgba(255, 255, 255, 0.7);
461
-
462
- --toastify-icon-color-info: var(--toastify-color-info);
463
- --toastify-icon-color-success: var(--toastify-color-success);
464
- --toastify-icon-color-warning: var(--toastify-color-warning);
465
- --toastify-icon-color-error: var(--toastify-color-error);
466
-
467
- --toastify-container-width: fit-content;
468
- --toastify-toast-width: 320px;
469
- --toastify-toast-offset: 16px;
470
- --toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));
471
- --toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));
472
- --toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));
473
- --toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));
474
- --toastify-toast-background: #fff;
475
- --toastify-toast-padding: 14px;
476
- --toastify-toast-min-height: 64px;
477
- --toastify-toast-max-height: 800px;
478
- --toastify-toast-bd-radius: 6px;
479
- --toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
480
- --toastify-font-family: sans-serif;
481
- --toastify-z-index: 9999;
482
- --toastify-text-color-light: #757575;
483
- --toastify-text-color-dark: #fff;
484
-
485
- /* Used only for colored theme */
486
- --toastify-text-color-info: #fff;
487
- --toastify-text-color-success: #fff;
488
- --toastify-text-color-warning: #fff;
489
- --toastify-text-color-error: #fff;
490
-
491
- --toastify-spinner-color: #616161;
492
- --toastify-spinner-color-empty-area: #e0e0e0;
493
- --toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);
494
- --toastify-color-progress-dark: #bb86fc;
495
- --toastify-color-progress-info: var(--toastify-color-info);
496
- --toastify-color-progress-success: var(--toastify-color-success);
497
- --toastify-color-progress-warning: var(--toastify-color-warning);
498
- --toastify-color-progress-error: var(--toastify-color-error);
499
- /* used to control the opacity of the progress trail */
500
- --toastify-color-progress-bgo: 0.2;
501
- }
502
-
503
- .Toastify__toast-container {
504
- z-index: var(--toastify-z-index);
505
- -webkit-transform: translate3d(0, 0, var(--toastify-z-index));
506
- position: fixed;
507
- width: var(--toastify-container-width);
508
- box-sizing: border-box;
509
- color: #fff;
510
- display: flex;
511
- flex-direction: column;
512
- }
513
-
514
- .Toastify__toast-container--top-left {
515
- top: var(--toastify-toast-top);
516
- left: var(--toastify-toast-left);
517
- }
518
- .Toastify__toast-container--top-center {
519
- top: var(--toastify-toast-top);
520
- left: 50%;
521
- transform: translateX(-50%);
522
- align-items: center;
523
- }
524
- .Toastify__toast-container--top-right {
525
- top: var(--toastify-toast-top);
526
- right: var(--toastify-toast-right);
527
- align-items: end;
528
- }
529
- .Toastify__toast-container--bottom-left {
530
- bottom: var(--toastify-toast-bottom);
531
- left: var(--toastify-toast-left);
532
- }
533
- .Toastify__toast-container--bottom-center {
534
- bottom: var(--toastify-toast-bottom);
535
- left: 50%;
536
- transform: translateX(-50%);
537
- align-items: center;
538
- }
539
- .Toastify__toast-container--bottom-right {
540
- bottom: var(--toastify-toast-bottom);
541
- right: var(--toastify-toast-right);
542
- align-items: end;
543
- }
544
-
545
- .Toastify__toast {
546
- --y: 0px;
547
- position: relative;
548
- touch-action: none;
549
- width: var(--toastify-toast-width);
550
- min-height: var(--toastify-toast-min-height);
551
- box-sizing: border-box;
552
- margin-bottom: 1rem;
553
- padding: var(--toastify-toast-padding);
554
- border-radius: var(--toastify-toast-bd-radius);
555
- box-shadow: var(--toastify-toast-shadow);
556
- max-height: var(--toastify-toast-max-height);
557
- font-family: var(--toastify-font-family);
558
- /* webkit only issue #791 */
559
- z-index: 0;
560
- /* inner swag */
561
- display: flex;
562
- flex: 1 auto;
563
- align-items: center;
564
- word-break: break-word;
565
- }
566
-
567
- @media only screen and (max-width: 480px) {
568
- .Toastify__toast-container {
569
- width: 100vw;
570
- left: env(safe-area-inset-left);
571
- margin: 0;
572
- }
573
- .Toastify__toast-container--top-left,
574
- .Toastify__toast-container--top-center,
575
- .Toastify__toast-container--top-right {
576
- top: env(safe-area-inset-top);
577
- transform: translateX(0);
578
- }
579
- .Toastify__toast-container--bottom-left,
580
- .Toastify__toast-container--bottom-center,
581
- .Toastify__toast-container--bottom-right {
582
- bottom: env(safe-area-inset-bottom);
583
- transform: translateX(0);
584
- }
585
- .Toastify__toast-container--rtl {
586
- right: env(safe-area-inset-right);
587
- left: initial;
588
- }
589
- .Toastify__toast {
590
- --toastify-toast-width: 100%;
591
- margin-bottom: 0;
592
- border-radius: 0;
593
- }
594
- }
595
-
596
- .Toastify__toast-container[data-stacked='true'] {
597
- width: var(--toastify-toast-width);
598
- }
599
-
600
- @media only screen and (max-width: 480px) {
601
- .Toastify__toast-container[data-stacked='true'] {
602
- width: 100vw;
603
- }
604
- }
605
-
606
- .Toastify__toast--stacked {
607
- position: absolute;
608
- width: 100%;
609
- transform: translate3d(0, var(--y), 0) scale(var(--s));
610
- transition: transform 0.3s;
611
- }
612
-
613
- .Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,
614
- .Toastify__toast--stacked[data-collapsed] .Toastify__close-button {
615
- transition: opacity 0.1s;
616
- }
617
-
618
- .Toastify__toast--stacked[data-collapsed='false'] {
619
- overflow: visible;
620
- }
621
-
622
- .Toastify__toast--stacked[data-collapsed='true']:not(:last-child) > * {
623
- opacity: 0;
624
- }
625
-
626
- .Toastify__toast--stacked:after {
627
- content: '';
628
- position: absolute;
629
- left: 0;
630
- right: 0;
631
- height: calc(var(--g) * 1px);
632
- bottom: 100%;
633
- }
634
-
635
- .Toastify__toast--stacked[data-pos='top'] {
636
- top: 0;
637
- }
638
-
639
- .Toastify__toast--stacked[data-pos='bot'] {
640
- bottom: 0;
641
- }
642
-
643
- .Toastify__toast--stacked[data-pos='bot'].Toastify__toast--stacked:before {
644
- transform-origin: top;
645
- }
646
-
647
- .Toastify__toast--stacked[data-pos='top'].Toastify__toast--stacked:before {
648
- transform-origin: bottom;
649
- }
650
-
651
- .Toastify__toast--stacked:before {
652
- content: '';
653
- position: absolute;
654
- left: 0;
655
- right: 0;
656
- bottom: 0;
657
- height: 100%;
658
- transform: scaleY(3);
659
- z-index: -1;
660
- }
661
-
662
- .Toastify__toast--rtl {
663
- direction: rtl;
664
- }
665
-
666
- .Toastify__toast--close-on-click {
667
- cursor: pointer;
668
- }
669
-
670
- .Toastify__toast-icon {
671
- margin-inline-end: 10px;
672
- width: 22px;
673
- flex-shrink: 0;
674
- display: flex;
675
- }
676
-
677
- .Toastify--animate {
678
- animation-fill-mode: both;
679
- animation-duration: 0.5s;
680
- }
681
-
682
- .Toastify--animate-icon {
683
- animation-fill-mode: both;
684
- animation-duration: 0.3s;
685
- }
686
-
687
- .Toastify__toast-theme--dark {
688
- background: var(--toastify-color-dark);
689
- color: var(--toastify-text-color-dark);
690
- }
691
-
692
- .Toastify__toast-theme--light {
693
- background: var(--toastify-color-light);
694
- color: var(--toastify-text-color-light);
695
- }
696
-
697
- .Toastify__toast-theme--colored.Toastify__toast--default {
698
- background: var(--toastify-color-light);
699
- color: var(--toastify-text-color-light);
700
- }
701
-
702
- .Toastify__toast-theme--colored.Toastify__toast--info {
703
- color: var(--toastify-text-color-info);
704
- background: var(--toastify-color-info);
705
- }
706
-
707
- .Toastify__toast-theme--colored.Toastify__toast--success {
708
- color: var(--toastify-text-color-success);
709
- background: var(--toastify-color-success);
710
- }
711
-
712
- .Toastify__toast-theme--colored.Toastify__toast--warning {
713
- color: var(--toastify-text-color-warning);
714
- background: var(--toastify-color-warning);
715
- }
716
-
717
- .Toastify__toast-theme--colored.Toastify__toast--error {
718
- color: var(--toastify-text-color-error);
719
- background: var(--toastify-color-error);
720
- }
721
-
722
- .Toastify__progress-bar-theme--light {
723
- background: var(--toastify-color-progress-light);
724
- }
725
-
726
- .Toastify__progress-bar-theme--dark {
727
- background: var(--toastify-color-progress-dark);
728
- }
729
-
730
- .Toastify__progress-bar--info {
731
- background: var(--toastify-color-progress-info);
732
- }
733
-
734
- .Toastify__progress-bar--success {
735
- background: var(--toastify-color-progress-success);
736
- }
737
-
738
- .Toastify__progress-bar--warning {
739
- background: var(--toastify-color-progress-warning);
740
- }
741
-
742
- .Toastify__progress-bar--error {
743
- background: var(--toastify-color-progress-error);
744
- }
745
-
746
- .Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,
747
- .Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,
748
- .Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,
749
- .Toastify__progress-bar-theme--colored.Toastify__progress-bar--error {
750
- background: var(--toastify-color-transparent);
751
- }
752
-
753
- .Toastify__close-button {
754
- color: #fff;
755
- position: absolute;
756
- top: 6px;
757
- right: 6px;
758
- background: transparent;
759
- outline: none;
760
- border: none;
761
- padding: 0;
762
- cursor: pointer;
763
- opacity: 0.7;
764
- transition: 0.3s ease;
765
- z-index: 1;
766
- }
767
-
768
- .Toastify__toast--rtl .Toastify__close-button {
769
- left: 6px;
770
- right: unset;
771
- }
772
-
773
- .Toastify__close-button--light {
774
- color: #000;
775
- opacity: 0.3;
776
- }
777
-
778
- .Toastify__close-button > svg {
779
- fill: currentColor;
780
- height: 16px;
781
- width: 14px;
782
- }
783
-
784
- .Toastify__close-button:hover,
785
- .Toastify__close-button:focus {
786
- opacity: 1;
787
- }
788
-
789
- @keyframes Toastify__trackProgress {
790
- 0% {
791
- transform: scaleX(1);
792
- }
793
- 100% {
794
- transform: scaleX(0);
795
- }
796
- }
797
-
798
- .Toastify__progress-bar {
799
- position: absolute;
800
- bottom: 0;
801
- left: 0;
802
- width: 100%;
803
- height: 100%;
804
- z-index: 1;
805
- opacity: 0.7;
806
- transform-origin: left;
807
- }
808
-
809
- .Toastify__progress-bar--animated {
810
- animation: Toastify__trackProgress linear 1 forwards;
811
- }
812
-
813
- .Toastify__progress-bar--controlled {
814
- transition: transform 0.2s;
815
- }
816
-
817
- .Toastify__progress-bar--rtl {
818
- right: 0;
819
- left: initial;
820
- transform-origin: right;
821
- border-bottom-left-radius: initial;
822
- }
823
-
824
- .Toastify__progress-bar--wrp {
825
- position: absolute;
826
- overflow: hidden;
827
- bottom: 0;
828
- left: 0;
829
- width: 100%;
830
- height: 5px;
831
- border-bottom-left-radius: var(--toastify-toast-bd-radius);
832
- border-bottom-right-radius: var(--toastify-toast-bd-radius);
833
- }
834
-
835
- .Toastify__progress-bar--wrp[data-hidden='true'] {
836
- opacity: 0;
837
- }
838
-
839
- .Toastify__progress-bar--bg {
840
- opacity: var(--toastify-color-progress-bgo);
841
- width: 100%;
842
- height: 100%;
843
- }
844
-
845
- .Toastify__spinner {
846
- width: 20px;
847
- height: 20px;
848
- box-sizing: border-box;
849
- border: 2px solid;
850
- border-radius: 100%;
851
- border-color: var(--toastify-spinner-color-empty-area);
852
- border-right-color: var(--toastify-spinner-color);
853
- animation: Toastify__spin 0.65s linear infinite;
854
- }
855
-
856
- @keyframes Toastify__bounceInRight {
857
- from,
858
- 60%,
859
- 75%,
860
- 90%,
861
- to {
862
- animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
863
- }
864
- from {
865
- opacity: 0;
866
- transform: translate3d(3000px, 0, 0);
867
- }
868
- 60% {
869
- opacity: 1;
870
- transform: translate3d(-25px, 0, 0);
871
- }
872
- 75% {
873
- transform: translate3d(10px, 0, 0);
874
- }
875
- 90% {
876
- transform: translate3d(-5px, 0, 0);
877
- }
878
- to {
879
- transform: none;
880
- }
881
- }
882
-
883
- @keyframes Toastify__bounceOutRight {
884
- 20% {
885
- opacity: 1;
886
- transform: translate3d(-20px, var(--y), 0);
887
- }
888
- to {
889
- opacity: 0;
890
- transform: translate3d(2000px, var(--y), 0);
891
- }
892
- }
893
-
894
- @keyframes Toastify__bounceInLeft {
895
- from,
896
- 60%,
897
- 75%,
898
- 90%,
899
- to {
900
- animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
901
- }
902
- 0% {
903
- opacity: 0;
904
- transform: translate3d(-3000px, 0, 0);
905
- }
906
- 60% {
907
- opacity: 1;
908
- transform: translate3d(25px, 0, 0);
909
- }
910
- 75% {
911
- transform: translate3d(-10px, 0, 0);
912
- }
913
- 90% {
914
- transform: translate3d(5px, 0, 0);
915
- }
916
- to {
917
- transform: none;
918
- }
919
- }
920
-
921
- @keyframes Toastify__bounceOutLeft {
922
- 20% {
923
- opacity: 1;
924
- transform: translate3d(20px, var(--y), 0);
925
- }
926
- to {
927
- opacity: 0;
928
- transform: translate3d(-2000px, var(--y), 0);
929
- }
930
- }
931
-
932
- @keyframes Toastify__bounceInUp {
933
- from,
934
- 60%,
935
- 75%,
936
- 90%,
937
- to {
938
- animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
939
- }
940
- from {
941
- opacity: 0;
942
- transform: translate3d(0, 3000px, 0);
943
- }
944
- 60% {
945
- opacity: 1;
946
- transform: translate3d(0, -20px, 0);
947
- }
948
- 75% {
949
- transform: translate3d(0, 10px, 0);
950
- }
951
- 90% {
952
- transform: translate3d(0, -5px, 0);
953
- }
954
- to {
955
- transform: translate3d(0, 0, 0);
956
- }
957
- }
958
-
959
- @keyframes Toastify__bounceOutUp {
960
- 20% {
961
- transform: translate3d(0, calc(var(--y) - 10px), 0);
962
- }
963
- 40%,
964
- 45% {
965
- opacity: 1;
966
- transform: translate3d(0, calc(var(--y) + 20px), 0);
967
- }
968
- to {
969
- opacity: 0;
970
- transform: translate3d(0, -2000px, 0);
971
- }
972
- }
973
-
974
- @keyframes Toastify__bounceInDown {
975
- from,
976
- 60%,
977
- 75%,
978
- 90%,
979
- to {
980
- animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
981
- }
982
- 0% {
983
- opacity: 0;
984
- transform: translate3d(0, -3000px, 0);
985
- }
986
- 60% {
987
- opacity: 1;
988
- transform: translate3d(0, 25px, 0);
989
- }
990
- 75% {
991
- transform: translate3d(0, -10px, 0);
992
- }
993
- 90% {
994
- transform: translate3d(0, 5px, 0);
995
- }
996
- to {
997
- transform: none;
998
- }
999
- }
1000
-
1001
- @keyframes Toastify__bounceOutDown {
1002
- 20% {
1003
- transform: translate3d(0, calc(var(--y) - 10px), 0);
1004
- }
1005
- 40%,
1006
- 45% {
1007
- opacity: 1;
1008
- transform: translate3d(0, calc(var(--y) + 20px), 0);
1009
- }
1010
- to {
1011
- opacity: 0;
1012
- transform: translate3d(0, 2000px, 0);
1013
- }
1014
- }
1015
-
1016
- .Toastify__bounce-enter--top-left,
1017
- .Toastify__bounce-enter--bottom-left {
1018
- animation-name: Toastify__bounceInLeft;
1019
- }
1020
-
1021
- .Toastify__bounce-enter--top-right,
1022
- .Toastify__bounce-enter--bottom-right {
1023
- animation-name: Toastify__bounceInRight;
1024
- }
1025
-
1026
- .Toastify__bounce-enter--top-center {
1027
- animation-name: Toastify__bounceInDown;
1028
- }
1029
-
1030
- .Toastify__bounce-enter--bottom-center {
1031
- animation-name: Toastify__bounceInUp;
1032
- }
1033
-
1034
- .Toastify__bounce-exit--top-left,
1035
- .Toastify__bounce-exit--bottom-left {
1036
- animation-name: Toastify__bounceOutLeft;
1037
- }
1038
-
1039
- .Toastify__bounce-exit--top-right,
1040
- .Toastify__bounce-exit--bottom-right {
1041
- animation-name: Toastify__bounceOutRight;
1042
- }
1043
-
1044
- .Toastify__bounce-exit--top-center {
1045
- animation-name: Toastify__bounceOutUp;
1046
- }
1047
-
1048
- .Toastify__bounce-exit--bottom-center {
1049
- animation-name: Toastify__bounceOutDown;
1050
- }
1051
-
1052
- @keyframes Toastify__zoomIn {
1053
- from {
1054
- opacity: 0;
1055
- transform: scale3d(0.3, 0.3, 0.3);
1056
- }
1057
- 50% {
1058
- opacity: 1;
1059
- }
1060
- }
1061
-
1062
- @keyframes Toastify__zoomOut {
1063
- from {
1064
- opacity: 1;
1065
- }
1066
- 50% {
1067
- opacity: 0;
1068
- transform: translate3d(0, var(--y), 0) scale3d(0.3, 0.3, 0.3);
1069
- }
1070
- to {
1071
- opacity: 0;
1072
- }
1073
- }
1074
-
1075
- .Toastify__zoom-enter {
1076
- animation-name: Toastify__zoomIn;
1077
- }
1078
-
1079
- .Toastify__zoom-exit {
1080
- animation-name: Toastify__zoomOut;
1081
- }
1082
-
1083
- @keyframes Toastify__flipIn {
1084
- from {
1085
- transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
1086
- animation-timing-function: ease-in;
1087
- opacity: 0;
1088
- }
1089
- 40% {
1090
- transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
1091
- animation-timing-function: ease-in;
1092
- }
1093
- 60% {
1094
- transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
1095
- opacity: 1;
1096
- }
1097
- 80% {
1098
- transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
1099
- }
1100
- to {
1101
- transform: perspective(400px);
1102
- }
1103
- }
1104
-
1105
- @keyframes Toastify__flipOut {
1106
- from {
1107
- transform: translate3d(0, var(--y), 0) perspective(400px);
1108
- }
1109
- 30% {
1110
- transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, -20deg);
1111
- opacity: 1;
1112
- }
1113
- to {
1114
- transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, 90deg);
1115
- opacity: 0;
1116
- }
1117
- }
1118
-
1119
- .Toastify__flip-enter {
1120
- animation-name: Toastify__flipIn;
1121
- }
1122
-
1123
- .Toastify__flip-exit {
1124
- animation-name: Toastify__flipOut;
1125
- }
1126
-
1127
- @keyframes Toastify__slideInRight {
1128
- from {
1129
- transform: translate3d(110%, 0, 0);
1130
- visibility: visible;
1131
- }
1132
- to {
1133
- transform: translate3d(0, var(--y), 0);
1134
- }
1135
- }
1136
-
1137
- @keyframes Toastify__slideInLeft {
1138
- from {
1139
- transform: translate3d(-110%, 0, 0);
1140
- visibility: visible;
1141
- }
1142
- to {
1143
- transform: translate3d(0, var(--y), 0);
1144
- }
1145
- }
1146
-
1147
- @keyframes Toastify__slideInUp {
1148
- from {
1149
- transform: translate3d(0, 110%, 0);
1150
- visibility: visible;
1151
- }
1152
- to {
1153
- transform: translate3d(0, var(--y), 0);
1154
- }
1155
- }
1156
-
1157
- @keyframes Toastify__slideInDown {
1158
- from {
1159
- transform: translate3d(0, -110%, 0);
1160
- visibility: visible;
1161
- }
1162
- to {
1163
- transform: translate3d(0, var(--y), 0);
1164
- }
1165
- }
1166
-
1167
- @keyframes Toastify__slideOutRight {
1168
- from {
1169
- transform: translate3d(0, var(--y), 0);
1170
- }
1171
- to {
1172
- visibility: hidden;
1173
- transform: translate3d(110%, var(--y), 0);
1174
- }
1175
- }
1176
-
1177
- @keyframes Toastify__slideOutLeft {
1178
- from {
1179
- transform: translate3d(0, var(--y), 0);
1180
- }
1181
- to {
1182
- visibility: hidden;
1183
- transform: translate3d(-110%, var(--y), 0);
1184
- }
1185
- }
1186
-
1187
- @keyframes Toastify__slideOutDown {
1188
- from {
1189
- transform: translate3d(0, var(--y), 0);
1190
- }
1191
- to {
1192
- visibility: hidden;
1193
- transform: translate3d(0, 500px, 0);
1194
- }
1195
- }
1196
-
1197
- @keyframes Toastify__slideOutUp {
1198
- from {
1199
- transform: translate3d(0, var(--y), 0);
1200
- }
1201
- to {
1202
- visibility: hidden;
1203
- transform: translate3d(0, -500px, 0);
1204
- }
1205
- }
1206
-
1207
- .Toastify__slide-enter--top-left,
1208
- .Toastify__slide-enter--bottom-left {
1209
- animation-name: Toastify__slideInLeft;
1210
- }
1211
-
1212
- .Toastify__slide-enter--top-right,
1213
- .Toastify__slide-enter--bottom-right {
1214
- animation-name: Toastify__slideInRight;
1215
- }
1216
-
1217
- .Toastify__slide-enter--top-center {
1218
- animation-name: Toastify__slideInDown;
1219
- }
1220
-
1221
- .Toastify__slide-enter--bottom-center {
1222
- animation-name: Toastify__slideInUp;
1223
- }
1224
-
1225
- .Toastify__slide-exit--top-left,
1226
- .Toastify__slide-exit--bottom-left {
1227
- animation-name: Toastify__slideOutLeft;
1228
- animation-timing-function: ease-in;
1229
- animation-duration: 0.3s;
1230
- }
1231
-
1232
- .Toastify__slide-exit--top-right,
1233
- .Toastify__slide-exit--bottom-right {
1234
- animation-name: Toastify__slideOutRight;
1235
- animation-timing-function: ease-in;
1236
- animation-duration: 0.3s;
1237
- }
1238
-
1239
- .Toastify__slide-exit--top-center {
1240
- animation-name: Toastify__slideOutUp;
1241
- animation-timing-function: ease-in;
1242
- animation-duration: 0.3s;
1243
- }
1244
-
1245
- .Toastify__slide-exit--bottom-center {
1246
- animation-name: Toastify__slideOutDown;
1247
- animation-timing-function: ease-in;
1248
- animation-duration: 0.3s;
1249
- }
1250
-
1251
- @keyframes Toastify__spin {
1252
- from {
1253
- transform: rotate(0deg);
1254
- }
1255
- to {
1256
- transform: rotate(360deg);
1257
- }
1258
- }
1259
- `,Z1=new Map,LG=(e,t)=>{N2(()=>{if(typeof document=="undefined")return;let n=document,r=Z1.get(n);if(r){t&&r.setAttribute("nonce",t);return}let o=n.createElement("style");o.textContent=e,t&&o.setAttribute("nonce",t),n.head.appendChild(o),Z1.set(n,o)},[t])};function $G(e){return LG(jG,e.nonce),H.createElement(RG,{...e})}const NG=Me(m.jsx("path",{d:"M9 16.17 5.53 12.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41a.996.996 0 0 0-1.41 0z"}),"CheckRounded"),FG=Me(m.jsx("path",{d:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"CloseRounded"),AG=Me(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 11c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1m1 4h-2v-2h2z"}),"ErrorRounded"),DG=Me(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 15c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1m1-8h-2V7h2z"}),"InfoRounded"),_G=Me(m.jsx("path",{d:"M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3M12 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1m1 4h-2v-2h2z"}),"WarningRounded"),ml=({type:e})=>{switch(e){case"error":return m.jsx(AG,{sx:{color:"#5C0924"}});case"info":return m.jsx(DG,{sx:{color:"#161E4A"}});case"success":return m.jsx(NG,{sx:{color:"#00514B"}});case"warning":return m.jsx(_G,{sx:{color:"#816E09"}});case"default":default:return null}},zG=e=>{const t=e.type==="error",n=H.useCallback(r=>{r&&t&&r.focus()},[t]);return m.jsx(Tn,{ref:n,"aria-label":e.ariaLabel||"Close notification",sx:{position:"absolute",top:8,right:8,padding:"4px"},onClick:()=>e.closeToast(!0),children:m.jsx(FG,{sx:{fontSize:"1rem",color:"#555555"}})})},BG=e=>m.jsx($G,{hideProgressBar:!0,newestOnTop:!0,"aria-label":"Toast",className:"whitespace-pre-wrap",closeButton:zG,position:"top-right",transition:OG,...e}),hl="relative min-h-auto! text-sm border-l-[5px] rounded-none! p-2! pr-10!",VG={default:(e,t)=>bt(e,{ariaLabel:e,autoClose:3e3,className:hl,type:"default",icon:m.jsx(ml,{type:"default"}),...t}),error:(e,t)=>bt.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:`${hl} text-[#5C0924]! bg-[#FBEAEC]! border-[#5C0924]`,type:"error",icon:m.jsx(ml,{type:"error"}),...t}),info:(e,t)=>bt.info(e,{ariaLabel:e,autoClose:3500,className:`${hl} text-[#161E4A]! bg-[#E9ECF6]! border-[#161E4A]`,type:"info",icon:m.jsx(ml,{type:"info"}),...t}),ok:(e,t)=>bt.success(e!=null?e:"Success!",{ariaLabel:e!=null?e:"Success!",autoClose:2500,className:`${hl} text-[#00514B]! bg-[#EBF6F5]! border-[#00514B]`,type:"success",icon:m.jsx(ml,{type:"success"}),...t}),warning:(e,t)=>bt.warning(e,{ariaLabel:e,autoClose:3500,className:`${hl} text-[#816E09]! bg-[#FEFBE0]! border-[#816E09]!`,type:"warning",icon:m.jsx(ml,{type:"warning"}),...t}),dismiss:e=>bt.dismiss(e),isActive:e=>bt.isActive(e)},HG=ne(({className:e,...t})=>m.jsx(sa,{...t,classes:{popper:e}}))(()=>({[`& .${Kt.tooltip}`]:{backgroundColor:"#FFFFFF",color:"rgba(51, 51, 51, 0.89)",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"},[`& .${Kt.arrow}`]:{color:"#FFFFFF","&::before":{backgroundColor:"#FFFFFF",border:"1px solid #D9D9D9"}}})),GG=({icon:e,title:t,showOnlyOnOverflow:n=!1,children:r,...o})=>{const[i,l]=H.useState(!1),[a,c]=H.useState(null);H.useEffect(()=>{if(!n||!a)return;const h=()=>{l(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight)};h();const f=new ResizeObserver(h);return f.observe(a),()=>f.disconnect()},[n,a]);const u=e?m.jsxs(Je,{sx:{display:"flex",alignItems:"center",gap:"10px"},children:[e,t]}):t,d=n&&H.isValidElement(r)?H.cloneElement(r,{ref:c}):r,p=n?!i:o.disableHoverListener;return m.jsx(HG,{...o,disableHoverListener:p,title:u,children:d})},WG={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"}},UG=({user:e,size:t="sm"})=>{var u,d,p,h;const n=Xt(),r=(d=(u=e==null?void 0:e.personalInfo.firstName)==null?void 0:u.charAt(0).toUpperCase())!=null?d:"",o=(h=(p=e==null?void 0:e.personalInfo.lastName)==null?void 0:p.charAt(0).toUpperCase())!=null?h:"",i=`${r}${o}`.trim()||" ",{width:l,height:a,fontSize:c}=WG[t];return m.jsx(fC,{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:i})},qG=Me(m.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning"),KG=({messages:e})=>{const t=Xt();return e.length===0?null:m.jsx(Rm,{icon:m.jsx(qG,{sx:{color:"#665312"}}),severity:"warning",sx:{display:"flex",backgroundColor:t.palette.warning.lightest,justifyContent:"center"},children:m.jsx(ot,{sx:{fontFamily:"Lato",fontWeight:500,color:"#665312"},children:e.join(", ")})})},A2=24,Q1=-40,YG=0,D2=e=>{if(e<=0)return 0;const t=20*Math.log10(e);return Math.min(1,Math.max(0,(t-Q1)/(YG-Q1)))},_2=(e,t,n=A2)=>e<=Math.floor(n*t),XG={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"}},Dh=({className:e,volume:t,label:n="Input Level",hideLabel:r=!1,barCount:o=A2,size:i="default"})=>{const l=Xt(),a=Array.from({length:o},(d,p)=>p+1),c=XG[i],u=D2(t);return m.jsxs(Je,{className:e,sx:{width:"100%",display:"flex",flexDirection:"column",gap:"0.5rem"},children:[!r&&m.jsx(ot,{sx:{fontFamily:l.typography.fontFamily,fontWeight:l.typography.fontWeightBold},children:n}),m.jsx(Je,{...r&&{role:"img","aria-label":n},sx:{width:"100%",height:c.height,display:"flex",gap:c.gap},children:a.map(d=>m.jsx(Je,{sx:{...c.bar,height:"100%",borderRadius:c.radius,border:`0.5px solid ${l.palette.neutral.light}`,backgroundColor:_2(d,u,o)?l.palette["acuity-green"].main:l.customColors.white}},`audio-volume-bar-${d}`))})]})},_h=e=>{const[t,n]=H.useState(0);return H.useEffect(()=>{if(!e){n(0);return}let r;const o=new AudioContext,i=o.createMediaStreamSource(e),l=o.createAnalyser();l.fftSize=512,i.connect(l);const a=new Uint8Array(l.frequencyBinCount),c=()=>{let u=0;l.getByteTimeDomainData(a);for(let d=0;d<a.length;d++){const p=(a[d]-128)/128;u+=p*p}n(Math.sqrt(u/a.length)),r=requestAnimationFrame(c)};return c(),()=>{cancelAnimationFrame(r),l.disconnect(),i.disconnect(),o.close()}},[e]),t},ZG=Me(m.jsx("path",{d:"M12 15c1.66 0 2.99-1.34 2.99-3L15 6c0-1.66-1.34-3-3-3S9 4.34 9 6v6c0 1.66 1.34 3 3 3m-1.2-9.1c0-.66.54-1.2 1.2-1.2s1.2.54 1.2 1.2l-.01 6.2c0 .66-.53 1.2-1.19 1.2s-1.2-.54-1.2-1.2zm6.5 6.1c0 3-2.54 5.1-5.3 5.1S6.7 15 6.7 12H5c0 3.41 2.72 6.23 6 6.72V22h2v-3.28c3.28-.48 6-3.3 6-6.72z"}),"KeyboardVoiceOutlined"),QG=({stream:e,levelLabel:t})=>{const n=_h(e);return m.jsx(Je,{"data-testid":"recording-audio-level",sx:{width:"fit-content"},children:m.jsx(Dh,{volume:n,label:t,hideLabel:!0,barCount:8,size:"small"})})},JG=({label:e="Recording",stream:t,levelLabel:n="Input Level",className:r})=>{const o=Xt();return m.jsxs(Je,{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:[m.jsx(Je,{"aria-hidden":!0,sx:{width:12,height:12,borderRadius:"50%",backgroundColor:o.palette.error.main,justifySelf:"center"}}),m.jsx(ot,{sx:{fontSize:"0.875rem",fontWeight:500,lineHeight:"1.25rem",color:o.palette.neutral.darkest,margin:0},children:e}),m.jsx(ZG,{"aria-hidden":!0,sx:{color:o.palette.neutral.darkest,fontSize:14,justifySelf:"center"}}),m.jsx(QG,{stream:t,levelLabel:n})]})},eW=Me(m.jsx("path",{d:"m9.56 8-2-2-4.15-4.14L2 3.27 4.73 6H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.21 0 .39-.08.55-.18L19.73 21l1.41-1.41-8.86-8.86zM5 16V8h1.73l8 8zm10-8v2.61l6 6V6.5l-4 4V7c0-.55-.45-1-1-1h-5.61l2 2z"}),"VideocamOffOutlined"),tW=Me(m.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),J1=Me(m.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),nW=Me(m.jsx("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3m-1.2-9.1c0-.66.54-1.2 1.2-1.2s1.2.54 1.2 1.2l-.01 6.2c0 .66-.53 1.2-1.19 1.2s-1.2-.54-1.2-1.2zm6.5 6.1c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72z"}),"MicNone"),rW={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. "}},z2=({className:e,disabled:t,error:n,hideLabel:r=!1,options:o=[],type:i,value:l="",onChange:a,showMessage:c=!0,pendingMessage:u,pendingTone:d="neutral",compact:p=!1,labels:h})=>{const f=Xt(),{label:y,okMessage:g,errorMessage:v}=h!=null?h:rW[i],x=H.useMemo(()=>({width:p?"329px":r?"485px":"100%",height:p?"49px":r?"54px":"auto",labelFontSize:p?"8px":"10px",valueFontSize:p?"12px":"16px",labelColor:p?f.palette.neutral.darkest:f.palette.neutral.main,valueColor:p?f.palette.neutral.darkest:f.palette.neutral.dark,borderRadius:p?"10px":"8px",gap:p?"0px":"4px"}),[p,r,f.palette.neutral]),S=H.useMemo(()=>r||p?{width:x.width,height:x.height,borderRadius:x.borderRadius,padding:"10px","& .MuiSelect-select":{padding:p?"19px 10px":"10px",display:"flex",flexDirection:"column",gap:"4px"}}:{},[r,p,x]),w=H.useCallback(P=>{a(P.target.value)},[a]),k=H.useCallback(P=>{const O=o.find(j=>j.deviceId===P);return!O||!r&&!p?(O==null?void 0:O.label)||"":m.jsxs(Je,{sx:{display:"flex",flexDirection:"column",gap:x.gap},children:[m.jsx(ot,{component:"span",sx:{fontFamily:f.typography.fontFamily,fontSize:x.labelFontSize,fontWeight:600,lineHeight:"20px",color:x.labelColor},children:y}),m.jsx(ot,{component:"span",sx:{fontFamily:f.typography.fontFamily,fontSize:x.valueFontSize,fontWeight:600,lineHeight:"20px",color:x.valueColor},children:O.label})]})},[o,r,p,x,f.typography,y]),E=!n&&!!l&&!!u,T=!n&&!!l&&!u,N=!!n;return m.jsxs(Je,{className:e,sx:{width:"100%",minWidth:"300px"},children:[!r&&m.jsx(ot,{sx:{fontFamily:f.typography.fontFamily,fontWeight:f.typography.fontWeightBold,mb:"0.5rem"},children:y}),m.jsx(zs,{sx:{mb:"0.375rem"},fullWidth:!0,disabled:!o.length,children:m.jsx(Bs,{SelectDisplayProps:{"aria-label":y},disabled:t,value:l,onChange:w,sx:S,renderValue:k,children:o.map(P=>m.jsx(Vn,{"aria-label":P.label,value:P.deviceId,children:P.label},P.deviceId))})}),c&&m.jsxs(Je,{"aria-live":"polite",sx:{minHeight:"20px",display:"flex",alignItems:"center",gap:"0.5rem"},children:[E&&d==="neutral"&&m.jsxs(m.Fragment,{children:[m.jsx(nW,{fontSize:"small",sx:{color:f.palette.neutral.dark}}),m.jsx(ot,{sx:{fontSize:"10px",color:f.palette.neutral.dark},children:u})]}),E&&d==="error"&&m.jsxs(m.Fragment,{children:[m.jsx(J1,{fontSize:"small",sx:{color:f.palette["acuity-red"].main}}),m.jsx(ot,{sx:{fontSize:"10px",color:f.palette["acuity-red"].main},children:u})]}),T&&m.jsxs(m.Fragment,{children:[m.jsx(tW,{fontSize:"small",sx:{color:f.palette["acuity-green"].darkest}}),m.jsx(ot,{sx:{fontSize:"10px",color:f.palette["acuity-green"].darkest},children:g})]}),N&&m.jsxs(m.Fragment,{children:[m.jsx(J1,{fontSize:"small",sx:{color:f.palette["acuity-red"].main}}),m.jsx(ot,{sx:{fontSize:"10px",color:f.palette["acuity-red"].main},children:v})]})]})]})},B2=.02,V2=250,H2=8e3,G2=(e,t)=>{const[n,r]=H.useState(t?"listening":"idle"),o=H.useRef(0),i=e>=B2,l=n==="detected";return H.useEffect(()=>{if(o.current=0,!t){r("idle");return}r("listening");const a=setTimeout(()=>{r(c=>c==="listening"?"silent":c)},H2);return()=>clearTimeout(a)},[t]),H.useEffect(()=>{if(!t||!i||l)return;const a=Date.now(),c=setTimeout(()=>r("detected"),Math.max(0,V2-o.current));return()=>{clearTimeout(c),o.current+=Date.now()-a}},[t,i,l]),n},W2={speakToTest:"Speak to check your microphone.",noSoundDetected:"No sound detected. Speak into your microphone or choose another device.",inputLevel:"Input Level"},oW=({stream:e})=>{const t=Xt(),n=H.useRef(null);return H.useEffect(()=>{n.current&&(n.current.srcObject=e!=null?e:null)},[e]),m.jsxs(Je,{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:[m.jsx(eW,{"aria-hidden":!0,sx:{fontSize:80,color:t.palette.neutral.dark}}),m.jsx(Je,{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"}})]})},sW=({devices:e,labels:t,onStatusChange:n})=>{const r=_h(e.audioStream),o=G2(r,e.audioStream);H.useEffect(()=>n==null?void 0:n(o),[o,n]);let i;return o==="silent"?i=t.noSoundDetected:o!=="detected"&&(i=t.speakToTest),m.jsxs(m.Fragment,{children:[m.jsx(z2,{type:"audio",disabled:e.audioPerm!=="granted"||!e.audioDevices.length,error:e.audioError,options:e.audioDevices,value:e.activeAudioId,onChange:e.onSelectAudio,pendingMessage:i,pendingTone:o==="silent"?"error":"neutral",labels:t.microphone}),m.jsx(Dh,{volume:r,label:t.inputLevel})]})},iW=({devices:e,onMicStatusChange:t,labels:n,className:r})=>{const o=Xt(),i={...W2,...n};return m.jsxs(Je,{className:r,sx:{width:"100%",display:"flex",justifyContent:"center",flexWrap:{xs:"wrap",md:"nowrap"},gap:"3rem"},children:[m.jsx(Je,{sx:{width:"100%",maxWidth:"624px"},children:m.jsx(oW,{stream:e.videoStream})}),m.jsx(Je,{sx:{display:{xs:"none",md:"block"},borderLeft:`1px solid ${o.palette.neutral.lighter}`}}),m.jsxs(Je,{sx:{width:"100%",maxWidth:"330px",display:"flex",flexDirection:"column",gap:"2.5rem"},children:[m.jsx(z2,{type:"video",disabled:e.videoPerm!=="granted"||!e.videoDevices.length,error:e.videoError,options:e.videoDevices,value:e.activeVideoId,onChange:e.onSelectVideo,labels:i.camera}),m.jsx(sW,{devices:e,labels:i,onStatusChange:t})]})]})},lW=Me(m.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m3.3 14.71L11 12.41V7h2v4.59l3.71 3.71z"}),"AccessTimeFilled");function e0(e){const t=Math.abs(e);return t<10?`0${t}`:t.toString()}function zh(e){const t=Math.floor(Math.abs(e)/60)*Math.sign(e),n=Math.abs(e)%60;return`${e<0?"-":""}${e0(t)}:${e0(n)}`}const aW=({timeLeft:e,timerLabel:t,variant:n="info",showClockIcon:r=!0,accessibleLabel:o="Time Left : "})=>{const i=Xt(),l=zh(e),a=n==="info",c=a?i.palette.primary.main:i.palette.warning.darkest,u=a?i.palette.primary.lightest:i.palette.warning.lightest;return m.jsxs(hf,{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:[m.jsxs(hf,{direction:"row",spacing:"0.25rem",alignItems:"center",sx:{minWidth:0,overflow:"hidden",flexShrink:1},children:[r&&m.jsx(lW,{sx:{flexShrink:0}}),t&&m.jsx(ot,{sx:{fontSize:{xs:"0.875rem",sm:"1rem"},whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:t})]}),m.jsx(ot,{sx:{fontWeight:"bold",ml:"0.5rem",fontSize:{xs:"0.875rem",sm:"1rem"},flexShrink:0,minWidth:"fit-content"},children:l})]})},U2=ne(Je)(()=>({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"})),cW=({imageUrl:e,altText:t="Preview Image"})=>e?m.jsx(U2,{children:m.jsx("img",{src:e,alt:t,style:{width:"100%",height:"100%",objectFit:"contain",display:"block"}})}):null;function uW(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const dW=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,pW=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,fW={};function t0(e,t){return(fW.jsx?pW:dW).test(e)}const mW=/[ \t\n\f\r]/g;function hW(e){return typeof e=="object"?e.type==="text"?n0(e.value):!1:n0(e)}function n0(e){return e.replace(mW,"")===""}class qa{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}qa.prototype.normal={};qa.prototype.property={};qa.prototype.space=void 0;function q2(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new qa(n,r,t)}function Lf(e){return e.toLowerCase()}class Un{constructor(t,n){this.attribute=n,this.property=t}}Un.prototype.attribute="";Un.prototype.booleanish=!1;Un.prototype.boolean=!1;Un.prototype.commaOrSpaceSeparated=!1;Un.prototype.commaSeparated=!1;Un.prototype.defined=!1;Un.prototype.mustUseProperty=!1;Un.prototype.number=!1;Un.prototype.overloadedBoolean=!1;Un.prototype.property="";Un.prototype.spaceSeparated=!1;Un.prototype.space=void 0;let gW=0;const Qe=Gs(),on=Gs(),$f=Gs(),we=Gs(),Bt=Gs(),Is=Gs(),Kn=Gs();function Gs(){return 2**++gW}const Nf=Object.freeze(Object.defineProperty({__proto__:null,boolean:Qe,booleanish:on,commaOrSpaceSeparated:Kn,commaSeparated:Is,number:we,overloadedBoolean:$f,spaceSeparated:Bt},Symbol.toStringTag,{value:"Module"})),vp=Object.keys(Nf);class Bh extends Un{constructor(t,n,r,o){let i=-1;if(super(t,n),r0(this,"space",o),typeof r=="number")for(;++i<vp.length;){const l=vp[i];r0(this,vp[i],(r&Nf[l])===Nf[l])}}}Bh.prototype.defined=!0;function r0(e,t,n){n&&(e[t]=n)}function qi(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new Bh(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Lf(r)]=r,n[Lf(i.attribute)]=r}return new qa(t,n,e.space)}const K2=qi({properties:{ariaActiveDescendant:null,ariaAtomic:on,ariaAutoComplete:null,ariaBusy:on,ariaChecked:on,ariaColCount:we,ariaColIndex:we,ariaColSpan:we,ariaControls:Bt,ariaCurrent:null,ariaDescribedBy:Bt,ariaDetails:null,ariaDisabled:on,ariaDropEffect:Bt,ariaErrorMessage:null,ariaExpanded:on,ariaFlowTo:Bt,ariaGrabbed:on,ariaHasPopup:null,ariaHidden:on,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Bt,ariaLevel:we,ariaLive:null,ariaModal:on,ariaMultiLine:on,ariaMultiSelectable:on,ariaOrientation:null,ariaOwns:Bt,ariaPlaceholder:null,ariaPosInSet:we,ariaPressed:on,ariaReadOnly:on,ariaRelevant:null,ariaRequired:on,ariaRoleDescription:Bt,ariaRowCount:we,ariaRowIndex:we,ariaRowSpan:we,ariaSelected:on,ariaSetSize:we,ariaSort:null,ariaValueMax:we,ariaValueMin:we,ariaValueNow:we,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Y2(e,t){return t in e?e[t]:t}function X2(e,t){return Y2(e,t.toLowerCase())}const bW=qi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Is,acceptCharset:Bt,accessKey:Bt,action:null,allow:null,allowFullScreen:Qe,allowPaymentRequest:Qe,allowUserMedia:Qe,alpha:Qe,alt:null,as:null,async:Qe,autoCapitalize:null,autoComplete:Bt,autoFocus:Qe,autoPlay:Qe,blocking:Bt,capture:null,charSet:null,checked:Qe,cite:null,className:Bt,closedBy:null,colorSpace:null,cols:we,colSpan:we,command:null,commandFor:null,content:null,contentEditable:on,controls:Qe,controlsList:Bt,coords:we|Is,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Qe,defer:Qe,dir:null,dirName:null,disabled:Qe,download:$f,draggable:on,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Qe,formTarget:null,headers:Bt,height:we,hidden:$f,high:we,href:null,hrefLang:null,htmlFor:Bt,httpEquiv:Bt,id:null,imageSizes:null,imageSrcSet:null,inert:Qe,inputMode:null,integrity:null,is:null,isMap:Qe,itemId:null,itemProp:Bt,itemRef:Bt,itemScope:Qe,itemType:Bt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Qe,low:we,manifest:null,max:null,maxLength:we,media:null,method:null,min:null,minLength:we,multiple:Qe,muted:Qe,name:null,nonce:null,noModule:Qe,noValidate:Qe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Qe,optimum:we,pattern:null,ping:Bt,placeholder:null,playsInline:Qe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Qe,referrerPolicy:null,rel:Bt,required:Qe,reversed:Qe,rows:we,rowSpan:we,sandbox:Bt,scope:null,scoped:Qe,seamless:Qe,selected:Qe,shadowRootClonable:Qe,shadowRootCustomElementRegistry:Qe,shadowRootDelegatesFocus:Qe,shadowRootMode:null,shadowRootSerializable:Qe,shape:null,size:we,sizes:null,slot:null,span:we,spellCheck:on,src:null,srcDoc:null,srcLang:null,srcSet:null,start:we,step:null,style:null,tabIndex:we,target:null,title:null,translate:null,type:null,typeMustMatch:Qe,useMap:null,value:on,width:we,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Bt,axis:null,background:null,bgColor:null,border:we,borderColor:null,bottomMargin:we,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Qe,declare:Qe,event:null,face:null,frame:null,frameBorder:null,hSpace:we,leftMargin:we,link:null,longDesc:null,lowSrc:null,marginHeight:we,marginWidth:we,noResize:Qe,noHref:Qe,noShade:Qe,noWrap:Qe,object:null,profile:null,prompt:null,rev:null,rightMargin:we,rules:null,scheme:null,scrolling:on,standby:null,summary:null,text:null,topMargin:we,valueType:null,version:null,vAlign:null,vLink:null,vSpace:we,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Qe,disablePictureInPicture:Qe,disableRemotePlayback:Qe,exportParts:Is,part:Bt,prefix:null,property:null,results:we,security:null,unselectable:null},space:"html",transform:X2}),yW=qi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Kn,accentHeight:we,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:we,amplitude:we,arabicForm:null,ascent:we,attributeName:null,attributeType:null,azimuth:we,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:we,by:null,calcMode:null,capHeight:we,className:Bt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:we,diffuseConstant:we,direction:null,display:null,dur:null,divisor:we,dominantBaseline:null,download:Qe,dx:null,dy:null,edgeMode:null,editable:null,elevation:we,enableBackground:null,end:null,event:null,exponent:we,externalResourcesRequired:null,fill:null,fillOpacity:we,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Is,g2:Is,glyphName:Is,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:we,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:we,horizOriginX:we,horizOriginY:we,id:null,ideographic:we,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:we,k:we,k1:we,k2:we,k3:we,k4:we,kernelMatrix:Kn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:we,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:we,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:we,overlineThickness:we,paintOrder:null,panose1:null,path:null,pathLength:we,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Bt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:we,pointsAtY:we,pointsAtZ:we,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Kn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Kn,rev:Kn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Kn,requiredFeatures:Kn,requiredFonts:Kn,requiredFormats:Kn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:we,specularExponent:we,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:we,strikethroughThickness:we,string:null,stroke:null,strokeDashArray:Kn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:we,strokeOpacity:we,strokeWidth:null,style:null,surfaceScale:we,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Kn,tabIndex:we,tableValues:null,target:null,targetX:we,targetY:we,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Kn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:we,underlineThickness:we,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:we,values:null,vAlphabetic:we,vMathematical:we,vectorEffect:null,vHanging:we,vIdeographic:we,version:null,vertAdvY:we,vertOriginX:we,vertOriginY:we,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:we,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Y2}),Z2=qi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Q2=qi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:X2}),J2=qi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),vW={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},xW=/[A-Z]/g,o0=/-[a-z]/g,CW=/^data[-\w.:]+$/i;function wW(e,t){const n=Lf(t);let r=t,o=Un;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&CW.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(o0,kW);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!o0.test(i)){let l=i.replace(xW,SW);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}o=Bh}return new o(r,t)}function SW(e){return"-"+e.toLowerCase()}function kW(e){return e.charAt(1).toUpperCase()}const EW=q2([K2,bW,Z2,Q2,J2],"html"),Vh=q2([K2,yW,Z2,Q2,J2],"svg");function TW(e){return e.join(" ").trim()}var oi={},xp,s0;function IW(){if(s0)return xp;s0=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,c=`
1260
- `,u="/",d="*",p="",h="comment",f="declaration";function y(v,x){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];x=x||{};var S=1,w=1;function k(F){var M=F.match(t);M&&(S+=M.length);var R=F.lastIndexOf(c);w=~R?F.length-R:w+F.length}function E(){var F={line:S,column:w};return function(M){return M.position=new T(F),O(),M}}function T(F){this.start=F,this.end={line:S,column:w},this.source=x.source}T.prototype.content=v;function N(F){var M=new Error(x.source+":"+S+":"+w+": "+F);if(M.reason=F,M.filename=x.source,M.line=S,M.column=w,M.source=v,!x.silent)throw M}function P(F){var M=F.exec(v);if(M){var R=M[0];return k(R),v=v.slice(R.length),M}}function O(){P(n)}function j(F){var M;for(F=F||[];M=$();)M!==!1&&F.push(M);return F}function $(){var F=E();if(!(u!=v.charAt(0)||d!=v.charAt(1))){for(var M=2;p!=v.charAt(M)&&(d!=v.charAt(M)||u!=v.charAt(M+1));)++M;if(M+=2,p===v.charAt(M-1))return N("End of comment missing");var R=v.slice(2,M-2);return w+=2,k(R),v=v.slice(M),w+=2,F({type:h,comment:R})}}function C(){var F=E(),M=P(r);if(M){if($(),!P(o))return N("property missing ':'");var R=P(i),_=F({type:f,property:g(M[0].replace(e,p)),value:R?g(R[0].replace(e,p)):p});return P(l),_}}function L(){var F=[];j(F);for(var M;M=C();)M!==!1&&(F.push(M),j(F));return F}return O(),L()}function g(v){return v?v.replace(a,p):p}return xp=y,xp}var i0;function PW(){if(i0)return oi;i0=1;var e=oi&&oi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(oi,"__esModule",{value:!0}),oi.default=n;const t=e(IW());function n(r,o){let i=null;if(!r||typeof r!="string")return i;const l=(0,t.default)(r),a=typeof o=="function";return l.forEach(c=>{if(c.type!=="declaration")return;const{property:u,value:d}=c;a?o(u,d,c):d&&(i=i||{},i[u]=d)}),i}return oi}var gl={},l0;function OW(){if(l0)return gl;l0=1,Object.defineProperty(gl,"__esModule",{value:!0}),gl.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,i=function(u){return!u||n.test(u)||e.test(u)},l=function(u,d){return d.toUpperCase()},a=function(u,d){return"".concat(d,"-")},c=function(u,d){return d===void 0&&(d={}),i(u)?u:(u=u.toLowerCase(),d.reactCompat?u=u.replace(o,a):u=u.replace(r,a),u.replace(t,l))};return gl.camelCase=c,gl}var bl,a0;function MW(){if(a0)return bl;a0=1;var e=bl&&bl.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(PW()),n=OW();function r(o,i){var l={};return!o||typeof o!="string"||(0,t.default)(o,function(a,c){a&&c&&(l[(0,n.camelCase)(a,i)]=c)}),l}return r.default=r,bl=r,bl}var RW=MW();const jW=vu(RW),ek=tk("end"),Hh=tk("start");function tk(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function LW(e){const t=Hh(e),n=ek(e);if(t&&n)return{start:t,end:n}}function Vl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?c0(e.position):"start"in e||"end"in e?c0(e):"line"in e||"column"in e?Ff(e):""}function Ff(e){return u0(e&&e.line)+":"+u0(e&&e.column)}function c0(e){return Ff(e&&e.start)+"-"+Ff(e&&e.end)}function u0(e){return e&&typeof e=="number"?e:1}class Mn extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",i={},l=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?o=t:!i.cause&&t&&(l=!0,o=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?i.ruleId=r:(i.source=r.slice(0,c),i.ruleId=r.slice(c+1))}if(!i.place&&i.ancestors&&i.ancestors){const c=i.ancestors[i.ancestors.length-1];c&&(i.place=c.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=a?a.line:void 0,this.name=Vl(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=l&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Mn.prototype.file="";Mn.prototype.name="";Mn.prototype.reason="";Mn.prototype.message="";Mn.prototype.stack="";Mn.prototype.column=void 0;Mn.prototype.line=void 0;Mn.prototype.ancestors=void 0;Mn.prototype.cause=void 0;Mn.prototype.fatal=void 0;Mn.prototype.place=void 0;Mn.prototype.ruleId=void 0;Mn.prototype.source=void 0;const Gh={}.hasOwnProperty,$W=new Map,NW=/[A-Z]/g,FW=new Set(["table","tbody","thead","tfoot","tr"]),AW=new Set(["td","th"]),nk="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function DW(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=UW(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=WW(n,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Vh:EW,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=rk(o,e,void 0);return i&&typeof i!="string"?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function rk(e,t,n){if(t.type==="element")return _W(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return zW(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return VW(e,t,n);if(t.type==="mdxjsEsm")return BW(e,t);if(t.type==="root")return HW(e,t,n);if(t.type==="text")return GW(e,t)}function _W(e,t,n){const r=e.schema;let o=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=Vh,e.schema=o),e.ancestors.push(t);const i=sk(e,t.tagName,!1),l=qW(e,t);let a=Uh(e,t);return FW.has(t.tagName)&&(a=a.filter(function(c){return typeof c=="string"?!hW(c):!0})),ok(e,l,i,t),Wh(l,a),e.ancestors.pop(),e.schema=r,e.create(t,i,l,n)}function zW(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}fa(e,t.position)}function BW(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);fa(e,t.position)}function VW(e,t,n){const r=e.schema;let o=r;t.name==="svg"&&r.space==="html"&&(o=Vh,e.schema=o),e.ancestors.push(t);const i=t.name===null?e.Fragment:sk(e,t.name,!0),l=KW(e,t),a=Uh(e,t);return ok(e,l,i,t),Wh(l,a),e.ancestors.pop(),e.schema=r,e.create(t,i,l,n)}function HW(e,t,n){const r={};return Wh(r,Uh(e,t)),e.create(t,e.Fragment,r,n)}function GW(e,t){return t.value}function ok(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Wh(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function WW(e,t,n){return r;function r(o,i,l,a){const u=Array.isArray(l.children)?n:t;return a?u(i,l,a):u(i,l)}}function UW(e,t){return n;function n(r,o,i,l){const a=Array.isArray(i.children),c=Hh(r);return t(o,i,l,a,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function qW(e,t){const n={};let r,o;for(o in t.properties)if(o!=="children"&&Gh.call(t.properties,o)){const i=YW(e,o,t.properties[o]);if(i){const[l,a]=i;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&AW.has(t.tagName)?r=a:n[l]=a}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function KW(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const l=i.expression;l.type;const a=l.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else fa(e,t.position);else{const o=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,i=e.evaluater.evaluateExpression(a.expression)}else fa(e,t.position);else i=r.value===null?!0:r.value;n[o]=i}return n}function Uh(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:$W;for(;++r<t.children.length;){const i=t.children[r];let l;if(e.passKeys){const c=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(c){const u=o.get(c)||0;l=c+"-"+u,o.set(c,u+1)}}const a=rk(e,i,l);a!==void 0&&n.push(a)}return n}function YW(e,t,n){const r=wW(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?uW(n):TW(n)),r.property==="style"){let o=typeof n=="object"?n:XW(e,String(n));return e.stylePropertyNameCase==="css"&&(o=ZW(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?vW[r.property]||r.property:r.attribute,n]}}function XW(e,t){try{return jW(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,o=new Mn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=nk+"#cannot-parse-style-attribute",o}}function sk(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let i=-1,l;for(;++i<o.length;){const a=t0(o[i])?{type:"Identifier",name:o[i]}:{type:"Literal",value:o[i]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(i&&a.type==="Literal"),optional:!1}:a}r=l}else r=t0(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return Gh.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);fa(e)}function fa(e,t){const n=new Mn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=nk+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ZW(e){const t={};let n;for(n in e)Gh.call(e,n)&&(t[QW(n)]=e[n]);return t}function QW(e){let t=e.replace(NW,JW);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function JW(e){return"-"+e.toLowerCase()}const Cp={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},eU={};function tU(e,t){const n=eU,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return ik(e,r,o)}function ik(e,t,n){if(nU(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return d0(e.children,t,n)}return Array.isArray(e)?d0(e,t,n):""}function d0(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=ik(e[o],t,n);return r.join("")}function nU(e){return!!(e&&typeof e=="object")}const p0=document.createElement("i");function qh(e){const t="&"+e+";";p0.innerHTML=t;const n=p0.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function uo(e,t,n,r){const o=e.length;let i=0,l;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);i<r.length;)l=r.slice(i,i+1e4),l.unshift(t,0),e.splice(...l),i+=1e4,t+=1e4}function pr(e,t){return e.length>0?(uo(e,e.length,0,t),e):t}const f0={}.hasOwnProperty;function rU(e){const t={};let n=-1;for(;++n<e.length;)oU(t,e[n]);return t}function oU(e,t){let n;for(n in t){const o=(f0.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let l;if(i)for(l in i){f0.call(o,l)||(o[l]=[]);const a=i[l];sU(o[l],Array.isArray(a)?a:a?[a]:[])}}}function sU(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);uo(e,0,0,r)}function lk(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function vi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Jr=ls(/[A-Za-z]/),er=ls(/[\dA-Za-z]/),iU=ls(/[#-'*+\--9=?A-Z^-~]/);function Af(e){return e!==null&&(e<32||e===127)}const Df=ls(/\d/),lU=ls(/[\dA-Fa-f]/),aU=ls(/[!-/:-@[-`{-~]/);function Ze(e){return e!==null&&e<-2}function Hn(e){return e!==null&&(e<0||e===32)}function Tt(e){return e===-2||e===-1||e===32}const cU=ls(/\p{P}|\p{S}/u),uU=ls(/\s/);function ls(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ki(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let l="";if(i===37&&er(e.charCodeAt(n+1))&&er(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(l=String.fromCharCode(i));else if(i>55295&&i<57344){const a=e.charCodeAt(n+1);i<56320&&a>56319&&a<57344?(l=String.fromCharCode(i,a),o=1):l="�"}else l=String.fromCharCode(i);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+o+1,l=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function Wt(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return l;function l(c){return Tt(c)?(e.enter(n),a(c)):t(c)}function a(c){return Tt(c)&&i++<o?(e.consume(c),a):(e.exit(n),t(c))}}const dU={tokenize:pU};function pU(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Wt(e,t,"linePrefix")}function o(a){return e.enter("paragraph"),i(a)}function i(a){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return Ze(a)?(e.consume(a),e.exit("chunkText"),i):(e.consume(a),l)}}const fU={tokenize:mU},m0={tokenize:hU};function mU(e){const t=this,n=[];let r=0,o,i,l;return a;function a(w){if(r<n.length){const k=n[r];return t.containerState=k[1],e.attempt(k[0].continuation,c,u)(w)}return u(w)}function c(w){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&S();const k=t.events.length;let E=k,T;for(;E--;)if(t.events[E][0]==="exit"&&t.events[E][1].type==="chunkFlow"){T=t.events[E][1].end;break}x(r);let N=k;for(;N<t.events.length;)t.events[N][1].end={...T},N++;return uo(t.events,E+1,0,t.events.slice(k)),t.events.length=N,u(w)}return a(w)}function u(w){if(r===n.length){if(!o)return h(w);if(o.currentConstruct&&o.currentConstruct.concrete)return y(w);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(m0,d,p)(w)}function d(w){return o&&S(),x(r),h(w)}function p(w){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,y(w)}function h(w){return t.containerState={},e.attempt(m0,f,y)(w)}function f(w){return r++,n.push([t.currentConstruct,t.containerState]),h(w)}function y(w){if(w===null){o&&S(),x(0),e.consume(w);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:i}),g(w)}function g(w){if(w===null){v(e.exit("chunkFlow"),!0),x(0),e.consume(w);return}return Ze(w)?(e.consume(w),v(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(w),g)}function v(w,k){const E=t.sliceStream(w);if(k&&E.push(null),w.previous=i,i&&(i.next=w),i=w,o.defineSkip(w.start),o.write(E),t.parser.lazy[w.start.line]){let T=o.events.length;for(;T--;)if(o.events[T][1].start.offset<l&&(!o.events[T][1].end||o.events[T][1].end.offset>l))return;const N=t.events.length;let P=N,O,j;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(O){j=t.events[P][1].end;break}O=!0}for(x(r),T=N;T<t.events.length;)t.events[T][1].end={...j},T++;uo(t.events,P+1,0,t.events.slice(N)),t.events.length=T}}function x(w){let k=n.length;for(;k-- >w;){const E=n[k];t.containerState=E[1],E[0].exit.call(t,e)}n.length=w}function S(){o.write([null]),i=void 0,o=void 0,t.containerState._closeFlow=void 0}}function hU(e,t,n){return Wt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function h0(e){if(e===null||Hn(e)||uU(e))return 1;if(cU(e))return 2}function Kh(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const _f={name:"attention",resolveAll:gU,tokenize:bU};function gU(e,t){let n=-1,r,o,i,l,a,c,u,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p={...e[r][1].end},h={...e[n][1].start};g0(p,-c),g0(h,c),l={type:c>1?"strongSequence":"emphasisSequence",start:p,end:{...e[r][1].end}},a={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},i={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},o={type:c>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[n][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=pr(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=pr(u,[["enter",o,t],["enter",l,t],["exit",l,t],["enter",i,t]]),u=pr(u,Kh(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=pr(u,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=pr(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,uo(e,r-1,n-r+3,u),n=r+u.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function bU(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=h0(r);let i;return l;function l(c){return i=c,e.enter("attentionSequence"),a(c)}function a(c){if(c===i)return e.consume(c),a;const u=e.exit("attentionSequence"),d=h0(c),p=!d||d===2&&o||n.includes(c),h=!o||o===2&&d||n.includes(r);return u._open=!!(i===42?p:p&&(o||!h)),u._close=!!(i===42?h:h&&(d||!p)),t(c)}}function g0(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const yU={name:"autolink",tokenize:vU};function vU(e,t,n){let r=0;return o;function o(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(f){return Jr(f)?(e.consume(f),l):f===64?n(f):u(f)}function l(f){return f===43||f===45||f===46||er(f)?(r=1,a(f)):u(f)}function a(f){return f===58?(e.consume(f),r=0,c):(f===43||f===45||f===46||er(f))&&r++<32?(e.consume(f),a):(r=0,u(f))}function c(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||Af(f)?n(f):(e.consume(f),c)}function u(f){return f===64?(e.consume(f),d):iU(f)?(e.consume(f),u):n(f)}function d(f){return er(f)?p(f):n(f)}function p(f){return f===46?(e.consume(f),r=0,d):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):h(f)}function h(f){if((f===45||er(f))&&r++<63){const y=f===45?h:p;return e.consume(f),y}return n(f)}}const xd={partial:!0,tokenize:xU};function xU(e,t,n){return r;function r(i){return Tt(i)?Wt(e,o,"linePrefix")(i):o(i)}function o(i){return i===null||Ze(i)?t(i):n(i)}}const ak={continuation:{tokenize:wU},exit:SU,name:"blockQuote",tokenize:CU};function CU(e,t,n){const r=this;return o;function o(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),i}return n(l)}function i(l){return Tt(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function wU(e,t,n){const r=this;return o;function o(l){return Tt(l)?Wt(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):i(l)}function i(l){return e.attempt(ak,t,n)(l)}}function SU(e){e.exit("blockQuote")}const ck={name:"characterEscape",tokenize:kU};function kU(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),o}function o(i){return aU(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const uk={name:"characterReference",tokenize:EU};function EU(e,t,n){const r=this;let o=0,i,l;return a;function a(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),c}function c(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,l=er,d(p))}function u(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,l=lU,d):(e.enter("characterReferenceValue"),i=7,l=Df,d(p))}function d(p){if(p===59&&o){const h=e.exit("characterReferenceValue");return l===er&&!qh(r.sliceSerialize(h))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(p)&&o++<i?(e.consume(p),d):n(p)}}const b0={partial:!0,tokenize:IU},y0={concrete:!0,name:"codeFenced",tokenize:TU};function TU(e,t,n){const r=this,o={partial:!0,tokenize:E};let i=0,l=0,a;return c;function c(T){return u(T)}function u(T){const N=r.events[r.events.length-1];return i=N&&N[1].type==="linePrefix"?N[2].sliceSerialize(N[1],!0).length:0,a=T,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(T)}function d(T){return T===a?(l++,e.consume(T),d):l<3?n(T):(e.exit("codeFencedFenceSequence"),Tt(T)?Wt(e,p,"whitespace")(T):p(T))}function p(T){return T===null||Ze(T)?(e.exit("codeFencedFence"),r.interrupt?t(T):e.check(b0,g,k)(T)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(T))}function h(T){return T===null||Ze(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(T)):Tt(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Wt(e,f,"whitespace")(T)):T===96&&T===a?n(T):(e.consume(T),h)}function f(T){return T===null||Ze(T)?p(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(T))}function y(T){return T===null||Ze(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(T)):T===96&&T===a?n(T):(e.consume(T),y)}function g(T){return e.attempt(o,k,v)(T)}function v(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),x}function x(T){return i>0&&Tt(T)?Wt(e,S,"linePrefix",i+1)(T):S(T)}function S(T){return T===null||Ze(T)?e.check(b0,g,k)(T):(e.enter("codeFlowValue"),w(T))}function w(T){return T===null||Ze(T)?(e.exit("codeFlowValue"),S(T)):(e.consume(T),w)}function k(T){return e.exit("codeFenced"),t(T)}function E(T,N,P){let O=0;return j;function j(M){return T.enter("lineEnding"),T.consume(M),T.exit("lineEnding"),$}function $(M){return T.enter("codeFencedFence"),Tt(M)?Wt(T,C,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):C(M)}function C(M){return M===a?(T.enter("codeFencedFenceSequence"),L(M)):P(M)}function L(M){return M===a?(O++,T.consume(M),L):O>=l?(T.exit("codeFencedFenceSequence"),Tt(M)?Wt(T,F,"whitespace")(M):F(M)):P(M)}function F(M){return M===null||Ze(M)?(T.exit("codeFencedFence"),N(M)):P(M)}}}function IU(e,t,n){const r=this;return o;function o(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i)}function i(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const wp={name:"codeIndented",tokenize:OU},PU={partial:!0,tokenize:MU};function OU(e,t,n){const r=this;return o;function o(u){return e.enter("codeIndented"),Wt(e,i,"linePrefix",5)(u)}function i(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(u):n(u)}function l(u){return u===null?c(u):Ze(u)?e.attempt(PU,l,c)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||Ze(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),a)}function c(u){return e.exit("codeIndented"),t(u)}}function MU(e,t,n){const r=this;return o;function o(l){return r.parser.lazy[r.now().line]?n(l):Ze(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):Wt(e,i,"linePrefix",5)(l)}function i(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):Ze(l)?o(l):n(l)}}const RU={name:"codeText",previous:LU,resolve:jU,tokenize:$U};function jU(e){let t=e.length-4,n=3,r,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)o===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(o=r):(r===t||e[r][1].type==="lineEnding")&&(e[o][1].type="codeTextData",r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),t-=r-o-2,r=o+2),o=void 0);return e}function LU(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function $U(e,t,n){let r=0,o,i;return l;function l(p){return e.enter("codeText"),e.enter("codeTextSequence"),a(p)}function a(p){return p===96?(e.consume(p),r++,a):(e.exit("codeTextSequence"),c(p))}function c(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),c):p===96?(i=e.enter("codeTextSequence"),o=0,d(p)):Ze(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("codeTextData"),u(p))}function u(p){return p===null||p===32||p===96||Ze(p)?(e.exit("codeTextData"),c(p)):(e.consume(p),u)}function d(p){return p===96?(e.consume(p),o++,d):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(i.type="codeTextData",u(p))}}class NU{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n==null?Number.POSITIVE_INFINITY:n;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const o=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&yl(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),yl(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),yl(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);yl(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);yl(this.left,n.reverse())}}}function yl(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function dk(e){const t={};let n=-1,r,o,i,l,a,c,u;const d=new NU(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,i=0,i<c.length&&c[i][1].type==="lineEndingBlank"&&(i+=2),i<c.length&&c[i][1].type==="content"))for(;++i<c.length&&c[i][1].type!=="content";)c[i][1].type==="chunkText"&&(c[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,FU(d,n)),n=t[n],u=!0);else if(r[1]._container){for(i=n,o=void 0;i--;)if(l=d.get(i),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(o&&(d.get(o)[1].type="lineEndingBlank"),l[1].type="lineEnding",o=i);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;o&&(r[1].end={...d.get(o)[1].start},a=d.slice(o,n),a.unshift(r),d.splice(o,n-o+1,a))}}return uo(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function FU(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,c=[],u={};let d,p,h=-1,f=n,y=0,g=0;const v=[g];for(;f;){for(;e.get(++o)[1]!==f;);i.push(o),f._tokenizer||(d=r.sliceStream(f),f.next||d.push(null),p&&l.defineSkip(f.start),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(d),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),p=f,f=f.next}for(f=n;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(g=h+1,v.push(g),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(l.events=[],f?(f._tokenizer=void 0,f.previous=void 0):v.pop(),h=v.length;h--;){const x=a.slice(v[h],v[h+1]),S=i.pop();c.push([S,S+x.length-1]),e.splice(S,2,x)}for(c.reverse(),h=-1;++h<c.length;)u[y+c[h][0]]=y+c[h][1],y+=c[h][1]-c[h][0]-1;return u}const AU={resolve:_U,tokenize:zU},DU={partial:!0,tokenize:BU};function _U(e){return dk(e),e}function zU(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(a)}function o(a){return a===null?i(a):Ze(a)?e.check(DU,l,i)(a):(e.consume(a),o)}function i(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function l(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function BU(e,t,n){const r=this;return o;function o(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Wt(e,i,"linePrefix")}function i(l){if(l===null||Ze(l))return n(l);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function pk(e,t,n,r,o,i,l,a,c){const u=c||Number.POSITIVE_INFINITY;let d=0;return p;function p(x){return x===60?(e.enter(r),e.enter(o),e.enter(i),e.consume(x),e.exit(i),h):x===null||x===32||x===41||Af(x)?n(x):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),g(x))}function h(x){return x===62?(e.enter(i),e.consume(x),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),f(x))}function f(x){return x===62?(e.exit("chunkString"),e.exit(a),h(x)):x===null||x===60||Ze(x)?n(x):(e.consume(x),x===92?y:f)}function y(x){return x===60||x===62||x===92?(e.consume(x),f):f(x)}function g(x){return!d&&(x===null||x===41||Hn(x))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(x)):d<u&&x===40?(e.consume(x),d++,g):x===41?(e.consume(x),d--,g):x===null||x===32||x===40||Af(x)?n(x):(e.consume(x),x===92?v:g)}function v(x){return x===40||x===41||x===92?(e.consume(x),g):g(x)}}function fk(e,t,n,r,o,i){const l=this;let a=0,c;return u;function u(f){return e.enter(r),e.enter(o),e.consume(f),e.exit(o),e.enter(i),d}function d(f){return a>999||f===null||f===91||f===93&&!c||f===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(f):f===93?(e.exit(i),e.enter(o),e.consume(f),e.exit(o),e.exit(r),t):Ze(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),p(f))}function p(f){return f===null||f===91||f===93||Ze(f)||a++>999?(e.exit("chunkString"),d(f)):(e.consume(f),c||(c=!Tt(f)),f===92?h:p)}function h(f){return f===91||f===92||f===93?(e.consume(f),a++,p):p(f)}}function mk(e,t,n,r,o,i){let l;return a;function a(h){return h===34||h===39||h===40?(e.enter(r),e.enter(o),e.consume(h),e.exit(o),l=h===40?41:h,c):n(h)}function c(h){return h===l?(e.enter(o),e.consume(h),e.exit(o),e.exit(r),t):(e.enter(i),u(h))}function u(h){return h===l?(e.exit(i),c(l)):h===null?n(h):Ze(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),Wt(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===l||h===null||Ze(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?p:d)}function p(h){return h===l||h===92?(e.consume(h),d):d(h)}}function Hl(e,t){let n;return r;function r(o){return Ze(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):Tt(o)?Wt(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const VU={name:"definition",tokenize:GU},HU={partial:!0,tokenize:WU};function GU(e,t,n){const r=this;let o;return i;function i(f){return e.enter("definition"),l(f)}function l(f){return fk.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function a(f){return o=vi(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),c):n(f)}function c(f){return Hn(f)?Hl(e,u)(f):u(f)}function u(f){return pk(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function d(f){return e.attempt(HU,p,p)(f)}function p(f){return Tt(f)?Wt(e,h,"whitespace")(f):h(f)}function h(f){return f===null||Ze(f)?(e.exit("definition"),r.parser.defined.push(o),t(f)):n(f)}}function WU(e,t,n){return r;function r(a){return Hn(a)?Hl(e,o)(a):n(a)}function o(a){return mk(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return Tt(a)?Wt(e,l,"whitespace")(a):l(a)}function l(a){return a===null||Ze(a)?t(a):n(a)}}const UU={name:"hardBreakEscape",tokenize:qU};function qU(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),o}function o(i){return Ze(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const KU={name:"headingAtx",resolve:YU,tokenize:XU};function YU(e,t){let n=e.length-2,r=3,o,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},uo(e,r,n-r+1,[["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t]])),e}function XU(e,t,n){let r=0;return o;function o(d){return e.enter("atxHeading"),i(d)}function i(d){return e.enter("atxHeadingSequence"),l(d)}function l(d){return d===35&&r++<6?(e.consume(d),l):d===null||Hn(d)?(e.exit("atxHeadingSequence"),a(d)):n(d)}function a(d){return d===35?(e.enter("atxHeadingSequence"),c(d)):d===null||Ze(d)?(e.exit("atxHeading"),t(d)):Tt(d)?Wt(e,a,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function c(d){return d===35?(e.consume(d),c):(e.exit("atxHeadingSequence"),a(d))}function u(d){return d===null||d===35||Hn(d)?(e.exit("atxHeadingText"),a(d)):(e.consume(d),u)}}const ZU=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],v0=["pre","script","style","textarea"],QU={concrete:!0,name:"htmlFlow",resolveTo:tq,tokenize:nq},JU={partial:!0,tokenize:oq},eq={partial:!0,tokenize:rq};function tq(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function nq(e,t,n){const r=this;let o,i,l,a,c;return u;function u(A){return d(A)}function d(A){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(A),p}function p(A){return A===33?(e.consume(A),h):A===47?(e.consume(A),i=!0,g):A===63?(e.consume(A),o=3,r.interrupt?t:I):Jr(A)?(e.consume(A),l=String.fromCharCode(A),v):n(A)}function h(A){return A===45?(e.consume(A),o=2,f):A===91?(e.consume(A),o=5,a=0,y):Jr(A)?(e.consume(A),o=4,r.interrupt?t:I):n(A)}function f(A){return A===45?(e.consume(A),r.interrupt?t:I):n(A)}function y(A){const K="CDATA[";return A===K.charCodeAt(a++)?(e.consume(A),a===K.length?r.interrupt?t:C:y):n(A)}function g(A){return Jr(A)?(e.consume(A),l=String.fromCharCode(A),v):n(A)}function v(A){if(A===null||A===47||A===62||Hn(A)){const K=A===47,Y=l.toLowerCase();return!K&&!i&&v0.includes(Y)?(o=1,r.interrupt?t(A):C(A)):ZU.includes(l.toLowerCase())?(o=6,K?(e.consume(A),x):r.interrupt?t(A):C(A)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(A):i?S(A):w(A))}return A===45||er(A)?(e.consume(A),l+=String.fromCharCode(A),v):n(A)}function x(A){return A===62?(e.consume(A),r.interrupt?t:C):n(A)}function S(A){return Tt(A)?(e.consume(A),S):j(A)}function w(A){return A===47?(e.consume(A),j):A===58||A===95||Jr(A)?(e.consume(A),k):Tt(A)?(e.consume(A),w):j(A)}function k(A){return A===45||A===46||A===58||A===95||er(A)?(e.consume(A),k):E(A)}function E(A){return A===61?(e.consume(A),T):Tt(A)?(e.consume(A),E):w(A)}function T(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),c=A,N):Tt(A)?(e.consume(A),T):P(A)}function N(A){return A===c?(e.consume(A),c=null,O):A===null||Ze(A)?n(A):(e.consume(A),N)}function P(A){return A===null||A===34||A===39||A===47||A===60||A===61||A===62||A===96||Hn(A)?E(A):(e.consume(A),P)}function O(A){return A===47||A===62||Tt(A)?w(A):n(A)}function j(A){return A===62?(e.consume(A),$):n(A)}function $(A){return A===null||Ze(A)?C(A):Tt(A)?(e.consume(A),$):n(A)}function C(A){return A===45&&o===2?(e.consume(A),R):A===60&&o===1?(e.consume(A),_):A===62&&o===4?(e.consume(A),D):A===63&&o===3?(e.consume(A),I):A===93&&o===5?(e.consume(A),W):Ze(A)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(JU,G,L)(A)):A===null||Ze(A)?(e.exit("htmlFlowData"),L(A)):(e.consume(A),C)}function L(A){return e.check(eq,F,G)(A)}function F(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),M}function M(A){return A===null||Ze(A)?L(A):(e.enter("htmlFlowData"),C(A))}function R(A){return A===45?(e.consume(A),I):C(A)}function _(A){return A===47?(e.consume(A),l="",V):C(A)}function V(A){if(A===62){const K=l.toLowerCase();return v0.includes(K)?(e.consume(A),D):C(A)}return Jr(A)&&l.length<8?(e.consume(A),l+=String.fromCharCode(A),V):C(A)}function W(A){return A===93?(e.consume(A),I):C(A)}function I(A){return A===62?(e.consume(A),D):A===45&&o===2?(e.consume(A),I):C(A)}function D(A){return A===null||Ze(A)?(e.exit("htmlFlowData"),G(A)):(e.consume(A),D)}function G(A){return e.exit("htmlFlow"),t(A)}}function rq(e,t,n){const r=this;return o;function o(l){return Ze(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):n(l)}function i(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function oq(e,t,n){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(xd,t,n)}}const sq={name:"htmlText",tokenize:iq};function iq(e,t,n){const r=this;let o,i,l;return a;function a(I){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(I),c}function c(I){return I===33?(e.consume(I),u):I===47?(e.consume(I),E):I===63?(e.consume(I),w):Jr(I)?(e.consume(I),P):n(I)}function u(I){return I===45?(e.consume(I),d):I===91?(e.consume(I),i=0,y):Jr(I)?(e.consume(I),S):n(I)}function d(I){return I===45?(e.consume(I),f):n(I)}function p(I){return I===null?n(I):I===45?(e.consume(I),h):Ze(I)?(l=p,_(I)):(e.consume(I),p)}function h(I){return I===45?(e.consume(I),f):p(I)}function f(I){return I===62?R(I):I===45?h(I):p(I)}function y(I){const D="CDATA[";return I===D.charCodeAt(i++)?(e.consume(I),i===D.length?g:y):n(I)}function g(I){return I===null?n(I):I===93?(e.consume(I),v):Ze(I)?(l=g,_(I)):(e.consume(I),g)}function v(I){return I===93?(e.consume(I),x):g(I)}function x(I){return I===62?R(I):I===93?(e.consume(I),x):g(I)}function S(I){return I===null||I===62?R(I):Ze(I)?(l=S,_(I)):(e.consume(I),S)}function w(I){return I===null?n(I):I===63?(e.consume(I),k):Ze(I)?(l=w,_(I)):(e.consume(I),w)}function k(I){return I===62?R(I):w(I)}function E(I){return Jr(I)?(e.consume(I),T):n(I)}function T(I){return I===45||er(I)?(e.consume(I),T):N(I)}function N(I){return Ze(I)?(l=N,_(I)):Tt(I)?(e.consume(I),N):R(I)}function P(I){return I===45||er(I)?(e.consume(I),P):I===47||I===62||Hn(I)?O(I):n(I)}function O(I){return I===47?(e.consume(I),R):I===58||I===95||Jr(I)?(e.consume(I),j):Ze(I)?(l=O,_(I)):Tt(I)?(e.consume(I),O):R(I)}function j(I){return I===45||I===46||I===58||I===95||er(I)?(e.consume(I),j):$(I)}function $(I){return I===61?(e.consume(I),C):Ze(I)?(l=$,_(I)):Tt(I)?(e.consume(I),$):O(I)}function C(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),o=I,L):Ze(I)?(l=C,_(I)):Tt(I)?(e.consume(I),C):(e.consume(I),F)}function L(I){return I===o?(e.consume(I),o=void 0,M):I===null?n(I):Ze(I)?(l=L,_(I)):(e.consume(I),L)}function F(I){return I===null||I===34||I===39||I===60||I===61||I===96?n(I):I===47||I===62||Hn(I)?O(I):(e.consume(I),F)}function M(I){return I===47||I===62||Hn(I)?O(I):n(I)}function R(I){return I===62?(e.consume(I),e.exit("htmlTextData"),e.exit("htmlText"),t):n(I)}function _(I){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),V}function V(I){return Tt(I)?Wt(e,W,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):W(I)}function W(I){return e.enter("htmlTextData"),l(I)}}const Yh={name:"labelEnd",resolveAll:uq,resolveTo:dq,tokenize:pq},lq={tokenize:fq},aq={tokenize:mq},cq={tokenize:hq};function uq(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",t+=o}}return e.length!==n.length&&uo(e,0,e.length,n),e}function dq(e,t){let n=e.length,r=0,o,i,l,a;for(;n--;)if(o=e[n][1],i){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(i=n,o.type!=="labelLink")){r=2;break}}else o.type==="labelEnd"&&(l=n);const c={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[i][1].start},end:{...e[l][1].end}},d={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",c,t],["enter",u,t]],a=pr(a,e.slice(i+1,i+r+3)),a=pr(a,[["enter",d,t]]),a=pr(a,Kh(t.parser.constructs.insideSpan.null,e.slice(i+r+4,l-3),t)),a=pr(a,[["exit",d,t],e[l-2],e[l-1],["exit",u,t]]),a=pr(a,e.slice(l+1)),a=pr(a,[["exit",c,t]]),uo(e,i,e.length,a),e}function pq(e,t,n){const r=this;let o=r.events.length,i,l;for(;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){i=r.events[o][1];break}return a;function a(h){return i?i._inactive?p(h):(l=r.parser.defined.includes(vi(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),c):n(h)}function c(h){return h===40?e.attempt(lq,d,l?d:p)(h):h===91?e.attempt(aq,d,l?u:p)(h):l?d(h):p(h)}function u(h){return e.attempt(cq,d,p)(h)}function d(h){return t(h)}function p(h){return i._balanced=!0,n(h)}}function fq(e,t,n){return r;function r(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),o}function o(p){return Hn(p)?Hl(e,i)(p):i(p)}function i(p){return p===41?d(p):pk(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function l(p){return Hn(p)?Hl(e,c)(p):d(p)}function a(p){return n(p)}function c(p){return p===34||p===39||p===40?mk(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):d(p)}function u(p){return Hn(p)?Hl(e,d)(p):d(p)}function d(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function mq(e,t,n){const r=this;return o;function o(a){return fk.call(r,e,i,l,"reference","referenceMarker","referenceString")(a)}function i(a){return r.parser.defined.includes(vi(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function l(a){return n(a)}}function hq(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),o}function o(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const gq={name:"labelStartImage",resolveAll:Yh.resolveAll,tokenize:bq};function bq(e,t,n){const r=this;return o;function o(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),i}function i(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):n(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const yq={name:"labelStartLink",resolveAll:Yh.resolveAll,tokenize:vq};function vq(e,t,n){const r=this;return o;function o(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),i}function i(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const Sp={name:"lineEnding",tokenize:xq};function xq(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Wt(e,t,"linePrefix")}}const Fc={name:"thematicBreak",tokenize:Cq};function Cq(e,t,n){let r=0,o;return i;function i(u){return e.enter("thematicBreak"),l(u)}function l(u){return o=u,a(u)}function a(u){return u===o?(e.enter("thematicBreakSequence"),c(u)):r>=3&&(u===null||Ze(u))?(e.exit("thematicBreak"),t(u)):n(u)}function c(u){return u===o?(e.consume(u),r++,c):(e.exit("thematicBreakSequence"),Tt(u)?Wt(e,a,"whitespace")(u):a(u))}}const Dn={continuation:{tokenize:Eq},exit:Iq,name:"list",tokenize:kq},wq={partial:!0,tokenize:Pq},Sq={partial:!0,tokenize:Tq};function kq(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,l=0;return a;function a(f){const y=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:Df(f)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Fc,n,u)(f):u(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(f)}return n(f)}function c(f){return Df(f)&&++l<10?(e.consume(f),c):(!r.interrupt||l<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),u(f)):n(f)}function u(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(xd,r.interrupt?n:d,e.attempt(wq,h,p))}function d(f){return r.containerState.initialBlankLine=!0,i++,h(f)}function p(f){return Tt(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),h):n(f)}function h(f){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function Eq(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(xd,o,i);function o(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Wt(e,t,"listItemIndent",r.containerState.size+1)(a)}function i(a){return r.containerState.furtherBlankLines||!Tt(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Sq,t,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,Wt(e,e.attempt(Dn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Tq(e,t,n){const r=this;return Wt(e,o,"listItemIndent",r.containerState.size+1);function o(i){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(i):n(i)}}function Iq(e){e.exit(this.containerState.type)}function Pq(e,t,n){const r=this;return Wt(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(i){const l=r.events[r.events.length-1];return!Tt(i)&&l&&l[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const x0={name:"setextUnderline",resolveTo:Oq,tokenize:Mq};function Oq(e,t){let n=e.length,r,o,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",i?(e.splice(o,0,["enter",l,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function Mq(e,t,n){const r=this;let o;return i;function i(u){let d=r.events.length,p;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){p=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(e.enter("setextHeadingLine"),o=u,l(u)):n(u)}function l(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===o?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),Tt(u)?Wt(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||Ze(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Rq={tokenize:jq};function jq(e){const t=this,n=e.attempt(xd,r,e.attempt(this.parser.constructs.flowInitial,o,Wt(e,e.attempt(this.parser.constructs.flow,o,e.attempt(AU,o)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Lq={resolveAll:gk()},$q=hk("string"),Nq=hk("text");function hk(e){return{resolveAll:gk(e==="text"?Fq:void 0),tokenize:t};function t(n){const r=this,o=this.parser.constructs[e],i=n.attempt(o,l,a);return l;function l(d){return u(d)?i(d):a(d)}function a(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),c}function c(d){return u(d)?(n.exit("data"),i(d)):(n.consume(d),c)}function u(d){if(d===null)return!0;const p=o[d];let h=-1;if(p)for(;++h<p.length;){const f=p[h];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function gk(e){return t;function t(n,r){let o=-1,i;for(;++o<=n.length;)i===void 0?n[o]&&n[o][1].type==="data"&&(i=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==i+2&&(n[i][1].end=n[o-1][1].end,n.splice(i+2,o-i-2),o=i+2),i=void 0);return e?e(n,r):n}}function Fq(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],o=t.sliceStream(r);let i=o.length,l=-1,a=0,c;for(;i--;){const u=o[i];if(typeof u=="string"){for(l=u.length;u.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(u===-2)c=!0,a++;else if(u!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||c||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?l:r.start._bufferIndex+l,_index:r.start._index+i,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const Aq={42:Dn,43:Dn,45:Dn,48:Dn,49:Dn,50:Dn,51:Dn,52:Dn,53:Dn,54:Dn,55:Dn,56:Dn,57:Dn,62:ak},Dq={91:VU},_q={[-2]:wp,[-1]:wp,32:wp},zq={35:KU,42:Fc,45:[x0,Fc],60:QU,61:x0,95:Fc,96:y0,126:y0},Bq={38:uk,92:ck},Vq={[-5]:Sp,[-4]:Sp,[-3]:Sp,33:gq,38:uk,42:_f,60:[yU,sq],91:yq,92:[UU,ck],93:Yh,95:_f,96:RU},Hq={null:[_f,Lq]},Gq={null:[42,95]},Wq={null:[]},Uq=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Gq,contentInitial:Dq,disable:Wq,document:Aq,flow:zq,flowInitial:_q,insideSpan:Hq,string:Bq,text:Vq},Symbol.toStringTag,{value:"Module"}));function qq(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let l=[],a=[];const c={attempt:N(E),check:N(T),consume:S,enter:w,exit:k,interrupt:N(T,{interrupt:!0})},u={code:null,containerState:{},defineSkip:g,events:[],now:y,parser:e,previous:null,sliceSerialize:h,sliceStream:f,write:p};let d=t.tokenize.call(u,c);return t.resolveAll&&i.push(t),u;function p($){return l=pr(l,$),v(),l[l.length-1]!==null?[]:(P(t,0),u.events=Kh(i,u.events,u),u.events)}function h($,C){return Yq(f($),C)}function f($){return Kq(l,$)}function y(){const{_bufferIndex:$,_index:C,line:L,column:F,offset:M}=r;return{_bufferIndex:$,_index:C,line:L,column:F,offset:M}}function g($){o[$.line]=$.column,j()}function v(){let $;for(;r._index<l.length;){const C=l[r._index];if(typeof C=="string")for($=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===$&&r._bufferIndex<C.length;)x(C.charCodeAt(r._bufferIndex));else x(C)}}function x($){d=d($)}function S($){Ze($)?(r.line++,r.column=1,r.offset+=$===-3?2:1,j()):$!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=$}function w($,C){const L=C||{};return L.type=$,L.start=y(),u.events.push(["enter",L,u]),a.push(L),L}function k($){const C=a.pop();return C.end=y(),u.events.push(["exit",C,u]),C}function E($,C){P($,C.from)}function T($,C){C.restore()}function N($,C){return L;function L(F,M,R){let _,V,W,I;return Array.isArray(F)?G(F):"tokenize"in F?G([F]):D(F);function D(U){return q;function q(Z){const X=Z!==null&&U[Z],Q=Z!==null&&U.null,re=[...Array.isArray(X)?X:X?[X]:[],...Array.isArray(Q)?Q:Q?[Q]:[]];return G(re)(Z)}}function G(U){return _=U,V=0,U.length===0?R:A(U[V])}function A(U){return q;function q(Z){return I=O(),W=U,U.partial||(u.currentConstruct=U),U.name&&u.parser.constructs.disable.null.includes(U.name)?Y():U.tokenize.call(C?Object.assign(Object.create(u),C):u,c,K,Y)(Z)}}function K(U){return $(W,I),M}function Y(U){return I.restore(),++V<_.length?A(_[V]):R}}}function P($,C){$.resolveAll&&!i.includes($)&&i.push($),$.resolve&&uo(u.events,C,u.events.length-C,$.resolve(u.events.slice(C),u)),$.resolveTo&&(u.events=$.resolveTo(u.events,u))}function O(){const $=y(),C=u.previous,L=u.currentConstruct,F=u.events.length,M=Array.from(a);return{from:F,restore:R};function R(){r=$,u.previous=C,u.currentConstruct=L,u.events.length=F,a=M,j()}}function j(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function Kq(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let l;if(n===o)l=[e[n].slice(r,i)];else{if(l=e.slice(n,o),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}i>0&&l.push(e[o].slice(0,i))}return l}function Yq(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let l;if(typeof i=="string")l=i;else switch(i){case-5:{l="\r";break}case-4:{l=`
1261
- `;break}case-3:{l=`\r
1262
- `;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&o)continue;l=" ";break}default:l=String.fromCharCode(i)}o=i===-2,r.push(l)}return r.join("")}function Xq(e){const r={constructs:rU([Uq,...(e||{}).extensions||[]]),content:o(dU),defined:[],document:o(fU),flow:o(Rq),lazy:{},string:o($q),text:o(Nq)};return r;function o(i){return l;function l(a){return qq(r,i,a)}}}function Zq(e){for(;!dk(e););return e}const C0=/[\0\t\n\r]/g;function Qq(){let e=1,t="",n=!0,r;return o;function o(i,l,a){const c=[];let u,d,p,h,f;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(l||void 0).decode(i)),p=0,t="",n&&(i.charCodeAt(0)===65279&&p++,n=void 0);p<i.length;){if(C0.lastIndex=p,u=C0.exec(i),h=u&&u.index!==void 0?u.index:i.length,f=i.charCodeAt(h),!u){t=i.slice(p);break}if(f===10&&p===h&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),p<h&&(c.push(i.slice(p,h)),e+=h-p),f){case 0:{c.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,c.push(-2);e++<d;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}p=h+1}return a&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}const Jq=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function eK(e){return e.replace(Jq,tK)}function tK(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),i=o===120||o===88;return lk(n.slice(i?2:1),i?16:10)}return qh(n)||e}const bk={}.hasOwnProperty;function nK(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),rK(n)(Zq(Xq(n).document().write(Qq()(e,t,!0))))}function rK(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(Se),autolinkProtocol:O,autolinkEmail:O,atxHeading:i(fe),blockQuote:i(Q),characterEscape:O,characterReference:O,codeFenced:i(re),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:i(re,l),codeText:i(J,l),codeTextData:O,data:O,codeFlowValue:O,definition:i(oe),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:i(te),hardBreakEscape:i(ve),hardBreakTrailing:i(ve),htmlFlow:i(Ce,l),htmlFlowData:O,htmlText:i(Ce,l),htmlTextData:O,image:i(xe),label:l,link:i(Se),listItem:i(Ae),listItemValue:h,listOrdered:i(Oe,p),listUnordered:i(Oe),paragraph:i(se),reference:A,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:i(fe),strong:i(Ge),thematicBreak:i(Ye)},exit:{atxHeading:c(),atxHeadingSequence:E,autolink:c(),autolinkEmail:X,autolinkProtocol:Z,blockQuote:c(),characterEscapeValue:j,characterReferenceMarkerHexadecimal:Y,characterReferenceMarkerNumeric:Y,characterReferenceValue:U,characterReference:q,codeFenced:c(v),codeFencedFence:g,codeFencedFenceInfo:f,codeFencedFenceMeta:y,codeFlowValue:j,codeIndented:c(x),codeText:c(M),codeTextData:j,data:j,definition:c(),definitionDestinationString:k,definitionLabelString:S,definitionTitleString:w,emphasis:c(),hardBreakEscape:c(C),hardBreakTrailing:c(C),htmlFlow:c(L),htmlFlowData:j,htmlText:c(F),htmlTextData:j,image:c(_),label:W,labelText:V,lineEnding:$,link:c(R),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:K,resourceDestinationString:I,resourceTitleString:D,resource:G,setextHeading:c(P),setextHeadingLineSequence:N,setextHeadingText:T,strong:c(),thematicBreak:c()}};yk(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ee){let de={type:"root",children:[]};const he={stack:[de],tokenStack:[],config:t,enter:a,exit:u,buffer:l,resume:d,data:n},ae=[];let ge=-1;for(;++ge<ee.length;)if(ee[ge][1].type==="listOrdered"||ee[ge][1].type==="listUnordered")if(ee[ge][0]==="enter")ae.push(ge);else{const be=ae.pop();ge=o(ee,be,ge)}for(ge=-1;++ge<ee.length;){const be=t[ee[ge][0]];bk.call(be,ee[ge][1].type)&&be[ee[ge][1].type].call(Object.assign({sliceSerialize:ee[ge][2].sliceSerialize},he),ee[ge][1])}if(he.tokenStack.length>0){const be=he.tokenStack[he.tokenStack.length-1];(be[1]||w0).call(he,void 0,be[0])}for(de.position={start:Lo(ee.length>0?ee[0][1].start:{line:1,column:1,offset:0}),end:Lo(ee.length>0?ee[ee.length-2][1].end:{line:1,column:1,offset:0})},ge=-1;++ge<t.transforms.length;)de=t.transforms[ge](de)||de;return de}function o(ee,de,he){let ae=de-1,ge=-1,be=!1,Te,_e,ke,dt;for(;++ae<=he;){const at=ee[ae];switch(at[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{at[0]==="enter"?ge++:ge--,dt=void 0;break}case"lineEndingBlank":{at[0]==="enter"&&(Te&&!dt&&!ge&&!ke&&(ke=ae),dt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:dt=void 0}if(!ge&&at[0]==="enter"&&at[1].type==="listItemPrefix"||ge===-1&&at[0]==="exit"&&(at[1].type==="listUnordered"||at[1].type==="listOrdered")){if(Te){let Pt=ae;for(_e=void 0;Pt--;){const qe=ee[Pt];if(qe[1].type==="lineEnding"||qe[1].type==="lineEndingBlank"){if(qe[0]==="exit")continue;_e&&(ee[_e][1].type="lineEndingBlank",be=!0),qe[1].type="lineEnding",_e=Pt}else if(!(qe[1].type==="linePrefix"||qe[1].type==="blockQuotePrefix"||qe[1].type==="blockQuotePrefixWhitespace"||qe[1].type==="blockQuoteMarker"||qe[1].type==="listItemIndent"))break}ke&&(!_e||ke<_e)&&(Te._spread=!0),Te.end=Object.assign({},_e?ee[_e][1].start:at[1].end),ee.splice(_e||ae,0,["exit",Te,at[2]]),ae++,he++}if(at[1].type==="listItemPrefix"){const Pt={type:"listItem",_spread:!1,start:Object.assign({},at[1].start),end:void 0};Te=Pt,ee.splice(ae,0,["enter",Pt,at[2]]),ae++,he++,ke=void 0,dt=!0}}}return ee[de][1]._spread=be,he}function i(ee,de){return he;function he(ae){a.call(this,ee(ae),ae),de&&de.call(this,ae)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(ee,de,he){this.stack[this.stack.length-1].children.push(ee),this.stack.push(ee),this.tokenStack.push([de,he||void 0]),ee.position={start:Lo(de.start),end:void 0}}function c(ee){return de;function de(he){ee&&ee.call(this,he),u.call(this,he)}}function u(ee,de){const he=this.stack.pop(),ae=this.tokenStack.pop();if(ae)ae[0].type!==ee.type&&(de?de.call(this,ee,ae[0]):(ae[1]||w0).call(this,ee,ae[0]));else throw new Error("Cannot close `"+ee.type+"` ("+Vl({start:ee.start,end:ee.end})+"): it’s not open");he.position.end=Lo(ee.end)}function d(){return tU(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function h(ee){if(this.data.expectingFirstListItemValue){const de=this.stack[this.stack.length-2];de.start=Number.parseInt(this.sliceSerialize(ee),10),this.data.expectingFirstListItemValue=void 0}}function f(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.lang=ee}function y(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.meta=ee}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee.replace(/(\r?\n|\r)$/g,"")}function S(ee){const de=this.resume(),he=this.stack[this.stack.length-1];he.label=de,he.identifier=vi(this.sliceSerialize(ee)).toLowerCase()}function w(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.title=ee}function k(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.url=ee}function E(ee){const de=this.stack[this.stack.length-1];if(!de.depth){const he=this.sliceSerialize(ee).length;de.depth=he}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function N(ee){const de=this.stack[this.stack.length-1];de.depth=this.sliceSerialize(ee).codePointAt(0)===61?1:2}function P(){this.data.setextHeadingSlurpLineEnding=void 0}function O(ee){const he=this.stack[this.stack.length-1].children;let ae=he[he.length-1];(!ae||ae.type!=="text")&&(ae=Ie(),ae.position={start:Lo(ee.start),end:void 0},he.push(ae)),this.stack.push(ae)}function j(ee){const de=this.stack.pop();de.value+=this.sliceSerialize(ee),de.position.end=Lo(ee.end)}function $(ee){const de=this.stack[this.stack.length-1];if(this.data.atHardBreak){const he=de.children[de.children.length-1];he.position.end=Lo(ee.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(de.type)&&(O.call(this,ee),j.call(this,ee))}function C(){this.data.atHardBreak=!0}function L(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee}function F(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee}function M(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee}function R(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=de,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function _(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=de,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function V(ee){const de=this.sliceSerialize(ee),he=this.stack[this.stack.length-2];he.label=eK(de),he.identifier=vi(de).toLowerCase()}function W(){const ee=this.stack[this.stack.length-1],de=this.resume(),he=this.stack[this.stack.length-1];if(this.data.inReference=!0,he.type==="link"){const ae=ee.children;he.children=ae}else he.alt=de}function I(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.url=ee}function D(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.title=ee}function G(){this.data.inReference=void 0}function A(){this.data.referenceType="collapsed"}function K(ee){const de=this.resume(),he=this.stack[this.stack.length-1];he.label=de,he.identifier=vi(this.sliceSerialize(ee)).toLowerCase(),this.data.referenceType="full"}function Y(ee){this.data.characterReferenceType=ee.type}function U(ee){const de=this.sliceSerialize(ee),he=this.data.characterReferenceType;let ae;he?(ae=lk(de,he==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ae=qh(de);const ge=this.stack[this.stack.length-1];ge.value+=ae}function q(ee){const de=this.stack.pop();de.position.end=Lo(ee.end)}function Z(ee){j.call(this,ee);const de=this.stack[this.stack.length-1];de.url=this.sliceSerialize(ee)}function X(ee){j.call(this,ee);const de=this.stack[this.stack.length-1];de.url="mailto:"+this.sliceSerialize(ee)}function Q(){return{type:"blockquote",children:[]}}function re(){return{type:"code",lang:null,meta:null,value:""}}function J(){return{type:"inlineCode",value:""}}function oe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function te(){return{type:"emphasis",children:[]}}function fe(){return{type:"heading",depth:0,children:[]}}function ve(){return{type:"break"}}function Ce(){return{type:"html",value:""}}function xe(){return{type:"image",title:null,url:"",alt:null}}function Se(){return{type:"link",title:null,url:"",children:[]}}function Oe(ee){return{type:"list",ordered:ee.type==="listOrdered",start:null,spread:ee._spread,children:[]}}function Ae(ee){return{type:"listItem",spread:ee._spread,checked:null,children:[]}}function se(){return{type:"paragraph",children:[]}}function Ge(){return{type:"strong",children:[]}}function Ie(){return{type:"text",value:""}}function Ye(){return{type:"thematicBreak"}}}function Lo(e){return{line:e.line,column:e.column,offset:e.offset}}function yk(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?yk(e,r):oK(e,r)}}function oK(e,t){let n;for(n in t)if(bk.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function w0(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Vl({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Vl({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Vl({start:t.start,end:t.end})+") is still open")}function sK(e){const t=this;t.parser=n;function n(r){return nK(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function iK(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function lK(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
1263
- `}]}function aK(e,t){const n=t.value?t.value+`
1264
- `:"",r={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(r.className=["language-"+o[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function cK(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function uK(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dK(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=Ki(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=i+1,a+=1,e.footnoteCounts.set(r,a);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,u),e.applyData(t,u)}function pK(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function fK(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function vk(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&i.type==="text"?i.value="["+i.value:o.unshift({type:"text",value:"["});const l=o[o.length-1];return l&&l.type==="text"?l.value+=r:o.push({type:"text",value:r}),o}function mK(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return vk(e,t);const o={src:Ki(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)}function hK(e,t){const n={src:Ki(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function gK(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function bK(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return vk(e,t);const o={href:Ki(r.url||"")};r.title!==null&&r.title!==void 0&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function yK(e,t){const n={href:Ki(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function vK(e,t,n){const r=e.all(t),o=n?xK(n):xk(t),i={},l=[];if(typeof t.checked=="boolean"){const d=r[0];let p;d&&d.type==="element"&&d.tagName==="p"?p=d:(p={type:"element",tagName:"p",properties:{},children:[]},r.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const d=r[a];(o||a!==0||d.type!=="element"||d.tagName!=="p")&&l.push({type:"text",value:`
1265
- `}),d.type==="element"&&d.tagName==="p"&&!o?l.push(...d.children):l.push(d)}const c=r[r.length-1];c&&(o||c.type!=="element"||c.tagName!=="p")&&l.push({type:"text",value:`
1266
- `});const u={type:"element",tagName:"li",properties:i,children:l};return e.patch(t,u),e.applyData(t,u)}function xK(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=xk(n[r])}return t}function xk(e){const t=e.spread;return t==null?e.children.length>1:t}function CK(e,t){const n={},r=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<r.length;){const l=r[o];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function wK(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function SK(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function kK(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function EK(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),o.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=Hh(t.children[1]),c=ek(t.children[t.children.length-1]);a&&c&&(l.position={start:a,end:c}),o.push(l)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)}function TK(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,a=l?l.length:t.children.length;let c=-1;const u=[];for(;++c<a;){const p=t.children[c],h={},f=l?l[c]:void 0;f&&(h.align=f);let y={type:"element",tagName:i,properties:h,children:[]};p&&(y.children=e.all(p),e.patch(p,y),y=e.applyData(p,y)),u.push(y)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function IK(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const S0=9,k0=32;function PK(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(E0(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(E0(t.slice(o),o>0,!1)),i.join("")}function E0(e,t,n){let r=0,o=e.length;if(t){let i=e.codePointAt(r);for(;i===S0||i===k0;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(o-1);for(;i===S0||i===k0;)o--,i=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}function OK(e,t){const n={type:"text",value:PK(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function MK(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const RK={blockquote:iK,break:lK,code:aK,delete:cK,emphasis:uK,footnoteReference:dK,heading:pK,html:fK,imageReference:mK,image:hK,inlineCode:gK,linkReference:bK,link:yK,listItem:vK,list:CK,paragraph:wK,root:SK,strong:kK,table:EK,tableCell:IK,tableRow:TK,text:OK,thematicBreak:MK,toml:wc,yaml:wc,definition:wc,footnoteDefinition:wc};function wc(){}const Ck=-1,Cd=0,Gl=1,bu=2,Xh=3,Zh=4,Qh=5,Jh=6,wk=7,Sk=8,kk=typeof self=="object"?self:globalThis,T0=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new kk[e](t)},jK=(e,t)=>{const n=(o,i)=>(e.set(i,o),o),r=o=>{if(e.has(o))return e.get(o);const[i,l]=t[o];switch(i){case Cd:case Ck:return n(l,o);case Gl:{const a=n([],o);for(const c of l)a.push(r(c));return a}case bu:{const a=n({},o);for(const[c,u]of l)a[r(c)]=r(u);return a}case Xh:return n(new Date(l),o);case Zh:{const{source:a,flags:c}=l;return n(new RegExp(a,c),o)}case Qh:{const a=n(new Map,o);for(const[c,u]of l)a.set(r(c),r(u));return a}case Jh:{const a=n(new Set,o);for(const c of l)a.add(r(c));return a}case wk:{const{name:a,message:c}=l;return n(typeof kk[a]=="function"?T0(a,c):new Error(c),o)}case Sk:return n(BigInt(l),o);case"BigInt":return n(Object(BigInt(l)),o);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:a}=new Uint8Array(l);return n(new DataView(a),l)}}return n(T0(i,l),o)};return r},I0=e=>jK(new Map,e)(0),gs="",{toString:LK}={},{keys:$K}=Object,vl=e=>{const t=typeof e;if(t!=="object"||!e)return[Cd,t];const n=LK.call(e).slice(8,-1);switch(n){case"Array":return[Gl,gs];case"Object":return[bu,gs];case"Date":return[Xh,gs];case"RegExp":return[Zh,gs];case"Map":return[Qh,gs];case"Set":return[Jh,gs];case"DataView":return[Gl,n]}return n.includes("Array")?[Gl,n]:e instanceof Error?[wk,e.name||"Error"]:[bu,n]},Sc=([e,t])=>e===Cd&&(t==="function"||t==="symbol"),NK=(e,t,n,r)=>{const o=(l,a)=>{const c=r.push(l)-1;return n.set(a,c),c},i=l=>{if(n.has(l))return n.get(l);let[a,c]=vl(l);switch(a){case Cd:{let d=l;switch(c){case"bigint":a=Sk,d=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);d=null;break;case"undefined":return o([Ck],l)}return o([a,d],l)}case Gl:{if(c){let h=l;return c==="DataView"?h=new Uint8Array(l.buffer):c==="ArrayBuffer"&&(h=new Uint8Array(l)),o([c,[...h]],l)}const d=[],p=o([a,d],l);for(const h of l)d.push(i(h));return p}case bu:{if(c)switch(c){case"BigInt":return o([c,l.toString()],l);case"Boolean":case"Number":case"String":return o([c,l.valueOf()],l)}if(t&&"toJSON"in l)return i(l.toJSON());const d=[],p=o([a,d],l);for(const h of $K(l))(e||!Sc(vl(l[h])))&&d.push([i(h),i(l[h])]);return p}case Xh:return o([a,isNaN(l.getTime())?gs:l.toISOString()],l);case Zh:{const{source:d,flags:p}=l;return o([a,{source:d,flags:p}],l)}case Qh:{const d=[],p=o([a,d],l);for(const[h,f]of l)(e||!(Sc(vl(h))||Sc(vl(f))))&&d.push([i(h),i(f)]);return p}case Jh:{const d=[],p=o([a,d],l);for(const h of l)(e||!Sc(vl(h)))&&d.push(i(h));return p}}const{message:u}=l;return o([a,{name:c,message:u}],l)};return i},P0=(e,{json:t,lossy:n}={})=>{const r=[];return NK(!(t||n),!!t,new Map,r)(e),r},yu=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?I0(P0(e,t)):structuredClone(e):(e,t)=>I0(P0(e,t));function FK(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function AK(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function DK(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||FK,r=e.options.footnoteBackLabel||AK,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let c=-1;for(;++c<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[c]);if(!u)continue;const d=e.all(u),p=String(u.identifier).toUpperCase(),h=Ki(p.toLowerCase());let f=0;const y=[],g=e.footnoteCounts.get(p);for(;g!==void 0&&++f<=g;){y.length>0&&y.push({type:"text",value:" "});let S=typeof n=="string"?n:n(c,f);typeof S=="string"&&(S={type:"text",value:S}),y.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,f),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}const v=d[d.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const S=v.children[v.children.length-1];S&&S.type==="text"?S.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...y)}else d.push(...y);const x={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(d,!0)};e.patch(u,x),a.push(x)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...yu(l),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
1267
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
1268
- `}]}}const Ek=(function(e){if(e==null)return VK;if(typeof e=="function")return wd(e);if(typeof e=="object")return Array.isArray(e)?_K(e):zK(e);if(typeof e=="string")return BK(e);throw new Error("Expected function, string, or object as test")});function _K(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Ek(e[n]);return wd(r);function r(...o){let i=-1;for(;++i<t.length;)if(t[i].apply(this,o))return!0;return!1}}function zK(e){const t=e;return wd(n);function n(r){const o=r;let i;for(i in e)if(o[i]!==t[i])return!1;return!0}}function BK(e){return wd(t);function t(n){return n&&n.type===e}}function wd(e){return t;function t(n,r,o){return!!(HK(n)&&e.call(this,n,typeof r=="number"?r:void 0,o||void 0))}}function VK(){return!0}function HK(e){return e!==null&&typeof e=="object"&&"type"in e}const Tk=[],GK=!0,O0=!1,WK="skip";function UK(e,t,n,r){let o;typeof t=="function"&&typeof n!="function"?(r=n,n=t):o=t;const i=Ek(o),l=r?-1:1;a(e,void 0,[])();function a(c,u,d){const p=c&&typeof c=="object"?c:{};if(typeof p.type=="string"){const f=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(c.type+(f?"<"+f+">":""))+")"})}return h;function h(){let f=Tk,y,g,v;if((!t||i(c,u,d[d.length-1]||void 0))&&(f=qK(n(c,d)),f[0]===O0))return f;if("children"in c&&c.children){const x=c;if(x.children&&f[0]!==WK)for(g=(r?x.children.length:-1)+l,v=d.concat(x);g>-1&&g<x.children.length;){const S=x.children[g];if(y=a(S,g,v)(),y[0]===O0)return y;g=typeof y[1]=="number"?y[1]:g+l}}return f}}}function qK(e){return Array.isArray(e)?e:typeof e=="number"?[GK,e]:e==null?Tk:[e]}function Ik(e,t,n,r){let o,i,l;typeof t=="function"&&typeof n!="function"?(i=void 0,l=t,o=n):(i=t,l=n,o=r),UK(e,i,a,o);function a(c,u){const d=u[u.length-1],p=d?d.children.indexOf(c):void 0;return l(c,p,d)}}const zf={}.hasOwnProperty,KK={};function YK(e,t){const n=t||KK,r=new Map,o=new Map,i=new Map,l={...RK,...n.handlers},a={all:u,applyData:ZK,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:l,one:c,options:n,patch:XK,wrap:JK};return Ik(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const p=d.type==="definition"?r:o,h=String(d.identifier).toUpperCase();p.has(h)||p.set(h,d)}}),a;function c(d,p){const h=d.type,f=a.handlers[h];if(zf.call(a.handlers,h)&&f)return f(a,d,p);if(a.options.passThrough&&a.options.passThrough.includes(h)){if("children"in d){const{children:g,...v}=d,x=yu(v);return x.children=a.all(d),x}return yu(d)}return(a.options.unknownHandler||QK)(a,d,p)}function u(d){const p=[];if("children"in d){const h=d.children;let f=-1;for(;++f<h.length;){const y=a.one(h[f],d);if(y){if(f&&h[f-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=M0(y.value)),!Array.isArray(y)&&y.type==="element")){const g=y.children[0];g&&g.type==="text"&&(g.value=M0(g.value))}Array.isArray(y)?p.push(...y):p.push(y)}}}return p}}function XK(e,t){e.position&&(t.position=LW(e))}function ZK(e,t){let n=t;if(e&&e.data){const r=e.data.hName,o=e.data.hChildren,i=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&i&&Object.assign(n.properties,yu(i)),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function QK(e,t){const n=t.data||{},r="value"in t&&!(zf.call(n,"hProperties")||zf.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function JK(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
1269
- `});++r<e.length;)r&&n.push({type:"text",value:`
1270
- `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
1271
- `}),n}function M0(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function R0(e,t){const n=YK(e,t),r=n.one(e,void 0),o=DK(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:`
1272
- `},o),i}function eY(e,t){return e&&"run"in e?async function(n,r){const o=R0(n,{file:r,...t});await e.run(o,r)}:function(n,r){return R0(n,{file:r,...e||t})}}function j0(e){if(e)throw e}var kp,L0;function tY(){if(L0)return kp;L0=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},i=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var d=e.call(u,"constructor"),p=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!d&&!p)return!1;var h;for(h in u);return typeof h=="undefined"||e.call(u,h)},l=function(u,d){n&&d.name==="__proto__"?n(u,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):u[d.name]=d.newValue},a=function(u,d){if(d==="__proto__")if(e.call(u,d)){if(r)return r(u,d).value}else return;return u[d]};return kp=function c(){var u,d,p,h,f,y,g=arguments[0],v=1,x=arguments.length,S=!1;for(typeof g=="boolean"&&(S=g,g=arguments[1]||{},v=2),(g==null||typeof g!="object"&&typeof g!="function")&&(g={});v<x;++v)if(u=arguments[v],u!=null)for(d in u)p=a(g,d),h=a(u,d),g!==h&&(S&&h&&(i(h)||(f=o(h)))?(f?(f=!1,y=p&&o(p)?p:[]):y=p&&i(p)?p:{},l(g,{name:d,newValue:c(S,y,h)})):typeof h!="undefined"&&l(g,{name:d,newValue:h}));return g},kp}var nY=tY();const Ep=vu(nY);function Bf(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function rY(){const e=[],t={run:n,use:r};return t;function n(...o){let i=-1;const l=o.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...o);function a(c,...u){const d=e[++i];let p=-1;if(c){l(c);return}for(;++p<o.length;)(u[p]===null||u[p]===void 0)&&(u[p]=o[p]);o=u,d?oY(d,a)(...u):l(null,...u)}}function r(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function oY(e,t){let n;return r;function r(...l){const a=e.length>l.length;let c;a&&l.push(o);try{c=e.apply(this,l)}catch(u){const d=u;if(a&&n)throw d;return o(d)}a||(c&&c.then&&typeof c.then=="function"?c.then(i,o):c instanceof Error?o(c):i(c))}function o(l,...a){n||(n=!0,t(l,...a))}function i(l){o(null,l)}}const Kr={basename:sY,dirname:iY,extname:lY,join:aY,sep:"/"};function sY(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ka(e);let n=0,r=-1,o=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(i){n=o+1;break}}else r<0&&(i=!0,r=o+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,a=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(i){n=o+1;break}}else l<0&&(i=!0,l=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(r=o):(a=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function iY(e){if(Ka(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function lY(e){Ka(e);let t=e.length,n=-1,r=0,o=-1,i=0,l;for(;t--;){const a=e.codePointAt(t);if(a===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),a===46?o<0?o=t:i!==1&&(i=1):o>-1&&(i=-1)}return o<0||n<0||i===0||i===1&&o===n-1&&o===r+1?"":e.slice(o,n)}function aY(...e){let t=-1,n;for(;++t<e.length;)Ka(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":cY(n)}function cY(e){Ka(e);const t=e.codePointAt(0)===47;let n=uY(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function uY(e,t){let n="",r=0,o=-1,i=0,l=-1,a,c;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(o===l-1||i===1))if(o!==l-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),o=l,i=0;continue}}else if(n.length>0){n="",r=0,o=l,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(o+1,l):n=e.slice(o+1,l),r=l-o-1;o=l,i=0}else a===46&&i>-1?i++:i=-1}return n}function Ka(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const dY={cwd:pY};function pY(){return"/"}function Vf(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function fY(e){if(typeof e=="string")e=new URL(e);else if(!Vf(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return mY(e)}function mY(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const Tp=["history","path","basename","stem","extname","dirname"];class Pk{constructor(t){let n;t?Vf(t)?n={path:t}:typeof t=="string"||hY(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":dY.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Tp.length;){const i=Tp[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let o;for(o in n)Tp.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?Kr.basename(this.path):void 0}set basename(t){Pp(t,"basename"),Ip(t,"basename"),this.path=Kr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Kr.dirname(this.path):void 0}set dirname(t){$0(this.basename,"dirname"),this.path=Kr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Kr.extname(this.path):void 0}set extname(t){if(Ip(t,"extname"),$0(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Kr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Vf(t)&&(t=fY(t)),Pp(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Kr.basename(this.path,this.extname):void 0}set stem(t){Pp(t,"stem"),Ip(t,"stem"),this.path=Kr.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const o=this.message(t,n,r);throw o.fatal=!0,o}info(t,n,r){const o=this.message(t,n,r);return o.fatal=void 0,o}message(t,n,r){const o=new Mn(t,n,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Ip(e,t){if(e&&e.includes(Kr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Kr.sep+"`")}function Pp(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function $0(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function hY(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const gY=(function(e){const r=this.constructor.prototype,o=r[e],i=function(){return o.apply(i,arguments)};return Object.setPrototypeOf(i,r),i}),bY={}.hasOwnProperty;class eg extends gY{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=rY()}copy(){const t=new eg;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Ep(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Rp("data",this.frozen),this.namespace[t]=n,this):bY.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Rp("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=n.call(t,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=kc(t),r=this.parser||this.Parser;return Op("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Op("process",this.parser||this.Parser),Mp("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(i,l){const a=kc(t),c=r.parse(a);r.run(c,a,function(d,p,h){if(d||!p||!h)return u(d);const f=p,y=r.stringify(f,h);xY(y)?h.value=y:h.result=y,u(d,h)});function u(d,p){d||!p?l(d):i?i(p):n(void 0,p)}}}processSync(t){let n=!1,r;return this.freeze(),Op("processSync",this.parser||this.Parser),Mp("processSync",this.compiler||this.Compiler),this.process(t,o),F0("processSync","process",n),r;function o(i,l){n=!0,j0(i),r=l}}run(t,n,r){N0(t),this.freeze();const o=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(l,a){const c=kc(n);o.run(t,c,u);function u(d,p,h){const f=p||t;d?a(d):l?l(f):r(void 0,f,h)}}}runSync(t,n){let r=!1,o;return this.run(t,n,i),F0("runSync","run",r),o;function i(l,a){j0(l),o=a,r=!0}}stringify(t,n){this.freeze();const r=kc(n),o=this.compiler||this.Compiler;return Mp("stringify",o),N0(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if(Rp("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(u){if(typeof u=="function")c(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...p]=u;c(d,p)}else l(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function l(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(o.settings=Ep(!0,o.settings,u.settings))}function a(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const p=u[d];i(p)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function c(u,d){let p=-1,h=-1;for(;++p<r.length;)if(r[p][0]===u){h=p;break}if(h===-1)r.push([u,...d]);else if(d.length>0){let[f,...y]=d;const g=r[h][1];Bf(g)&&Bf(f)&&(f=Ep(!0,g,f)),r[h]=[u,f,...y]}}}}const yY=new eg().freeze();function Op(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Mp(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Rp(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function N0(e){if(!Bf(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function F0(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function kc(e){return vY(e)?e:new Pk(e)}function vY(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function xY(e){return typeof e=="string"||CY(e)}function CY(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const wY="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",A0=[],D0={allowDangerousHtml:!0},SY=/^(https?|ircs?|mailto|xmpp)$/i,kY=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function EY(e){const t=TY(e),n=IY(e);return PY(t.runSync(t.parse(n),n),e)}function TY(e){const t=e.rehypePlugins||A0,n=e.remarkPlugins||A0,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...D0}:D0;return yY().use(sK).use(n).use(eY,r).use(t)}function IY(e){const t=e.children||"",n=new Pk;return typeof t=="string"&&(n.value=t),n}function PY(e,t){const n=t.allowedElements,r=t.allowElement,o=t.components,i=t.disallowedElements,l=t.skipHtml,a=t.unwrapDisallowed,c=t.urlTransform||OY;for(const d of kY)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+wY+d.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),Ik(e,u),DW(e,{Fragment:m.Fragment,components:o,ignoreInvalidStyle:!0,jsx:m.jsx,jsxs:m.jsxs,passKeys:!0,passNode:!0});function u(d,p,h){if(d.type==="raw"&&h&&typeof p=="number")return l?h.children.splice(p,1):h.children[p]={type:"text",value:d.value},p;if(d.type==="element"){let f;for(f in Cp)if(Object.hasOwn(Cp,f)&&Object.hasOwn(d.properties,f)){const y=d.properties[f],g=Cp[f];(g===null||g.includes(d.tagName))&&(d.properties[f]=c(String(y||""),f,d))}}if(d.type==="element"){let f=n?!n.includes(d.tagName):i?i.includes(d.tagName):!1;if(!f&&r&&typeof p=="number"&&(f=!r(d,p,h)),f&&h&&typeof p=="number")return a&&d.children?h.children.splice(p,1,...d.children):h.children.splice(p,1),p}}}function OY(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||n!==-1&&t>n||r!==-1&&t>r||SY.test(e.slice(0,t))?e:""}const go="Lato, sans-serif",Ok=e=>{var t,n,r,o,i,l,a,c,u,d,p,h,f,y,g,v,x,S,w,k,E,T;return{h1:{fontFamily:(t=e.typography.fontFamily)!=null?t:go,fontWeight:(n=e.typography.fontWeightBold)!=null?n:700,fontSize:(r=e.typography["4xl"])!=null?r:"3rem",textAlign:"center",verticalAlign:"middle"},h2:{fontFamily:(o=e.typography.fontFamily)!=null?o:go,fontWeight:(i=e.typography.fontWeightMedium)!=null?i:600,fontSize:(l=e.typography["3xl"])!=null?l:"2.5rem",textAlign:"center",verticalAlign:"middle"},h3:{fontFamily:(a=e.typography.fontFamily)!=null?a:go,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:go,fontWeight:(p=e.typography.fontWeightMedium)!=null?p:700,fontSize:(h=e.typography.base)!=null?h:"1rem",textAlign:"center",verticalAlign:"middle"},ul:{fontFamily:(f=e.typography.fontFamily)!=null?f:go,fontWeight:(y=e.typography.fontWeightRegular)!=null?y:400,listStyleType:"disc",pl:"1rem",textAlign:"left",width:"100%",pt:0},ol:{fontFamily:(g=e.typography.fontFamily)!=null?g:go,fontWeight:(v=e.typography.fontWeightRegular)!=null?v:400,listStyleType:"decimal",pl:"1rem",mt:"0.5rem",textAlign:"left",width:"100%"},p:{fontFamily:(x=e.typography.fontFamily)!=null?x:go,fontWeight:(S=e.typography.fontWeightRegular)!=null?S:400,mt:"0.25rem",textAlign:"left",wordBreak:"break-word",width:"100%"},a:{fontFamily:(w=e.typography.fontFamily)!=null?w:go,fontWeight:(k=e.typography.fontWeightRegular)!=null?k:400,color:e.palette.primary.main,textDecoration:"underline"},li:{fontFamily:(E=e.typography.fontFamily)!=null?E:go,fontWeight:(T=e.typography.fontWeightRegular)!=null?T:400,display:"list-item",p:0}}},MY=ne(Je)(({theme:e})=>({width:"100%",maxWidth:"624px",borderRadius:"10px",overflow:"hidden",position:"relative",height:"100%",padding:"0.5rem",fontFamily:e.typography.fontFamily})),RY=({content:e=""})=>{const t=Xt(),n=H.useMemo(()=>Ok(t),[t]);return m.jsx(MY,{"data-testid":"content-text",children:m.jsx(EY,{components:{h1({children:r}){return m.jsx(ot,{variant:"h1",component:"h1",sx:n.h1,children:r})},h2({children:r}){return m.jsx(ot,{variant:"h2",component:"h2",sx:n.h2,children:r})},h3({children:r}){return m.jsx(ot,{variant:"h3",component:"h3",sx:n.h3,children:r})},h4({children:r}){return m.jsx(ot,{variant:"h4",component:"h4",sx:n.h4,children:r})},ul({children:r}){return m.jsx(tu,{sx:n.ul,children:r})},p({children:r}){return m.jsx(ot,{sx:n.p,children:r})},ol({children:r}){return m.jsx(tu,{component:"ol",sx:n.ol,children:r})},a({children:r,href:o}){return m.jsx(OC,{href:o,target:"_blank",rel:"noopener noreferrer",underline:"always",sx:n.a,children:r})},li({children:r}){return m.jsx(MC,{sx:n.li,children:r})}},children:e})})},jY=Me(m.jsx("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay"),LY=({label:e,onClick:t,ariaLabel:n})=>{const r=Xt();return m.jsx(Dr,{onClick:t,"aria-label":n||e,startIcon:m.jsx(jY,{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})},$Y=ne(Dr)(({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"}})),NY=ne(Dr)(({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%"}})),FY=({children:e})=>{const t=Xt();return m.jsx(bC,{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})},AY=Me(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m4 14H8V8h8z"}),"StopCircle"),DY=Me(m.jsx("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp"),tg={en:"en-CA",fr:"fr-CA"};function _Y(e){const t=(e!=null?e:"").toLowerCase().split(/[-_]/)[0];return t in tg?t:"en"}const zY=1e4;function Mk(e,t){var o;const n=t.toLowerCase(),r=n.split("-")[0];return(o=e.find(i=>i.lang.toLowerCase().replace("_","-")===n))!=null?o:e.find(i=>i.lang.toLowerCase().startsWith(r))}function jp(){return typeof window!="undefined"&&"speechSynthesis"in window&&typeof window.SpeechSynthesisUtterance=="function"}const BY=({text:e,language:t,playLabel:n="Text to speech",stopLabel:r="Stop reading aloud"})=>{const[o,i]=H.useState(!1),[l]=H.useState(jp),a=H.useRef(null),c=H.useCallback(()=>{a.current!==null&&(clearInterval(a.current),a.current=null)},[]),u=H.useCallback(()=>{c(),jp()&&window.speechSynthesis.cancel(),i(!1)},[c]);H.useEffect(()=>u,[u]),H.useEffect(()=>{u()},[e,u]);const d=H.useCallback(()=>{if(!jp()||!e)return;window.speechSynthesis.cancel();const p=new SpeechSynthesisUtterance(e),h=tg[t];p.lang=h;const f=Mk(window.speechSynthesis.getVoices(),h);f&&(p.voice=f);const y=()=>{c(),i(!1)};p.onend=y,p.onerror=y,i(!0),window.speechSynthesis.speak(p),c(),a.current=setInterval(()=>{if(!window.speechSynthesis.speaking){c();return}window.speechSynthesis.pause(),window.speechSynthesis.resume()},zY)},[e,t,c]);return!l||!e?null:m.jsx(Dr,{onClick:o?u:d,startIcon:o?m.jsx(AY,{}):m.jsx(DY,{}),variant:"outlined","aria-live":"polite",sx:{whiteSpace:"nowrap",flexShrink:0,borderRadius:"1rem",textTransform:"none"},children:o?r:n})},VY=Me(m.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m4.5 14H8c-1.66 0-3-1.34-3-3s1.34-3 3-3l.14.01C8.58 8.28 10.13 7 12 7c2.21 0 4 1.79 4 4h.5c1.38 0 2.5 1.12 2.5 2.5S17.88 16 16.5 16"}),"CloudCircle"),Rk=Xl.div`
1273
- flex-direction: row;
1274
- display: flex;
1275
- align-items: center;
1276
- background-color: white;
1277
- height: 45px;
1278
- width: 100%;
1279
- z-index: 0;
1280
- `,HY=_r`
1281
- from { width: 0%; }
1282
- to { width: 100%; }
1283
- `,GY=Xl(Rk,{shouldForwardProp:e=>!["duration","paused"].includes(e)})(({duration:e,paused:t})=>({animation:`${HY} ${e}s linear forwards`,animationPlayState:t?"paused":"running",overflow:"hidden",textWrap:"nowrap",position:"absolute",zIndex:1,top:0,width:0})),WY=m.jsx(VY,{}),UY={display:"flex",alignItems:"center",ml:"0.5rem","& > svg":{fontSize:25}},Hf=H.forwardRef(({timeLeft:e,positionLeftOffset:t,label:n,icon:r},o)=>{const i={position:"absolute",left:t,marginLeft:0};return m.jsxs(m.Fragment,{children:[m.jsx(Je,{sx:UY,children:r!=null?r:WY}),n&&m.jsx(ot,{sx:{ml:"0.25rem"},children:n}),m.jsx(ot,{ref:o,sx:{mr:"0.5rem"},style:{marginLeft:"auto",...t?i:{}},children:zh(e)})]})});Hf.displayName="BarContent";function qY(e,t){switch(!0){case e<50:return{backgroundColor:t.palette["acuity-green"].dark,color:t.palette.common.white};case e<90:return{backgroundColor:t.customColors["yellowy-taupe"],color:t.palette.neutral.darkest};case e>=90:return{backgroundColor:t.palette["acuity-red"].dark,color:t.palette.common.white};default:return{backgroundColor:t.palette["acuity-green"].dark,color:t.palette.common.white}}}function KY(e){return[0,100,e].sort((n,r)=>n-r)[1]}const YY=({secondsLeft:e,paused:t,duration:n,label:r,icon:o})=>{const i=Xt(),[l,a]=H.useState(0),c=Math.max(e,0),u=KY(Math.floor((n-c)*100/n)),d=H.useRef(null),p=qY(u,i),{backgroundColor:h,color:f}=t?{backgroundColor:fr(p.backgroundColor,.35),color:i.palette.neutral.darkest}:p;return H.useLayoutEffect(()=>{var g;const y=(g=d.current)==null?void 0:g.offsetLeft;y!==void 0&&y!==l&&a(y)},[l,c,r,o]),m.jsxs(Br,{role:"timer","aria-label":t?"Thinking time is paused":`${c} seconds remaining`,variant:"outlined",sx:{width:"inherit",borderRadius:"20px",position:"relative",overflow:"hidden",...t&&{border:`1px dashed ${i.palette.neutral.dark}`}},children:[m.jsx(Rk,{"aria-hidden":"true",children:m.jsx(Hf,{ref:d,timeLeft:c,label:r,icon:o})}),m.jsx(GY,{duration:n,paused:t,style:{backgroundColor:h,color:f},children:m.jsx(Hf,{timeLeft:c,positionLeftOffset:l,label:r,icon:o})})]})},XY=Me(m.jsx("path",{d:"M9.19 6.35c-2.04 2.29-3.44 5.58-3.57 5.89L2 10.69l4.05-4.05c.47-.47 1.15-.68 1.81-.55zM11.17 17s3.74-1.55 5.89-3.7c5.4-5.4 4.5-9.62 4.21-10.57-.95-.3-5.17-1.19-10.57 4.21C8.55 9.09 7 12.83 7 12.83zm6.48-2.19c-2.29 2.04-5.58 3.44-5.89 3.57L13.31 22l4.05-4.05c.47-.47.68-1.15.55-1.81zM9 18c0 .83-.34 1.58-.88 2.12C6.94 21.3 2 22 2 22s.7-4.94 1.88-6.12C4.42 15.34 5.17 15 6 15c1.66 0 3 1.34 3 3m4-9c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2"}),"RocketLaunch"),ZY=ne("div",{shouldForwardProp:e=>!["isBackground","width","variant"].includes(e)})(({theme:e,isBackground:t=!0,width:n=100,variant:r})=>{function o(){return r==="error"?e.palette.error.main:t?e.palette.background.paper:e.palette["acuity-green"].dark}return{display:"flex",flexDirection:"row",alignItems:"center",backgroundColor:o(),height:"100%",zIndex:t?0:1,position:t?"relative":"absolute",width:`${n}%`,overflow:"hidden",top:t?"auto":0,textWrap:"nowrap",transition:`width ${n===100?0:.25}s linear`}}),_0=({isBackground:e=!0,width:t=100,label:n,variant:r})=>{const o=Xt();function i(){return r==="error"?o.palette.common.white:e?o.palette.text.primary:o.palette.common.white}const l=i();return m.jsxs(ZY,{isBackground:e,width:t,variant:r,children:[m.jsx(XY,{sx:{fontSize:25,ml:"1rem",fill:l}}),m.jsx(ot,{sx:{ml:"0.5rem",mr:"1rem",color:l},children:n})]})},QY={"in-progress":"Uploading your video",error:"There was an error uploading your video"},JY=({percentDone:e,label:t,variant:n,accessibleLabel:r})=>m.jsxs(Br,{role:"progressbar","aria-label":r!=null?r:QY[n],"aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":100,sx:{width:"fit-content",position:"relative",overflow:"hidden",height:"45px",borderRadius:"20px"},children:[m.jsx(_0,{label:t,variant:n}),m.jsx(_0,{isBackground:!1,width:e,label:t,variant:n})]}),jk="@media (min-width: 768px)",eX={position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:0},tX=ne(zs)(()=>({width:"100%",maxWidth:"800px",margin:"1rem 0"})),nX=ne("p")(({theme:e})=>({color:e.palette.text.primary,fontWeight:500,fontSize:"1rem",margin:"0 0 1rem 0"})),rX=ne(Je)(()=>({width:"100%",[jk]:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"0.5rem"}})),z0=ne(ot)(({theme:e})=>({...eX,fontSize:"0.875rem",color:e.palette.text.secondary,minWidth:"100px",textAlign:"center",[jk]:{position:"static",width:"auto",height:"auto",margin:0,overflow:"visible",clip:"auto",whiteSpace:"normal"}})),oX=ne(oa)(({theme:e})=>({margin:0,"& .MuiFormControlLabel-label":{fontSize:"0.875rem",fontWeight:500},"& .MuiRadio-root":{padding:"8px",color:e.palette.grey[400],"&.Mui-checked":{color:e.palette.primary.main}}})),sX=ne(nh)(()=>({flexDirection:"row",justifyContent:"space-evenly",flex:1,gap:"8px"})),iX=({label:e,min:t,max:n,leftLabel:r,rightLabel:o,value:i,onChange:l,name:a,disabled:c=!1,getOptionAriaLabel:u})=>{var w,k;const d=H.useId(),p=a!=null?a:d,h=`${p}-label`,[f,y]=H.useState(),g=(k=(w=i!=null?i:f)==null?void 0:w.toString())!=null?k:"",v=E=>{const T=Number(E.target.value);y(T),l==null||l(T)},x=u!=null?u:(E=>E===t?`${E} of ${n}, ${r}`:E===n?`${E} of ${n}, ${o}`:`${E} of ${n}`),S=Array.from({length:Math.max(n-t+1,0)},(E,T)=>t+T);return m.jsxs(tX,{"data-testid":"numeric-scale",children:[m.jsx(nX,{id:h,children:e}),m.jsxs(rX,{children:[m.jsx(z0,{children:r}),m.jsx(sX,{value:g,onChange:v,name:p,"data-testid":"numeric-scale-group","aria-labelledby":h,children:S.map(E=>m.jsx(oX,{value:E.toString(),control:m.jsx(th,{disabled:c,slotProps:{input:{"aria-label":x(E)}},"data-testid":`numeric-scale-option-${E}`}),label:m.jsx(ot,{variant:"body2",sx:{fontWeight:500},children:E}),labelPlacement:"bottom",disabled:c},E))}),m.jsx(z0,{children:o})]})]})},lX=({children:e,sx:t,...n})=>m.jsx(Dr,{"data-testid":"primary-button",variant:"contained",color:"primary",sx:{height:"45px",borderRadius:"16px",fontSize:"16px",fontWeight:700,textTransform:"none",padding:"16px 32px",...t||{}},...n,children:e}),aX=({section:e,sectionNumber:t,totalSections:n})=>`Step ${t} of ${n}: ${e.label}, ${e.state}`,cX=({completedSections:e,totalSections:t,currentSection:n})=>`Progress stepper: ${e} of ${t} steps completed, currently on step ${n}.`,uX=ne(Je)(()=>({marginLeft:"clamp(8px, 1vw, 20px)",marginRight:"clamp(8px, 1vw, 20px)"})),dX=ne(GC)(({theme:e})=>({paddingLeft:"15vw",paddingRight:"15vw","& .MuiStep-root":{paddingLeft:"15px",paddingRight:"15px"},"& .MuiStep-root:first-of-type":{paddingLeft:"0"},"& .MuiStep-root:last-of-type":{paddingRight:"0"},"& .MuiStepConnector-root":{top:"50%",transform:"translateY(-50%)",left:"calc(-50% + 16px)",right:"calc(50% + 16px)"},"& .MuiStepConnector-line":{height:3,border:0,backgroundColor:e.palette.neutral.lighter,borderRadius:1},[e.breakpoints.down("sm")]:{paddingLeft:"18px",paddingRight:"18px"}})),pX=(e,t)=>{switch(e){case"complete":return{backgroundColor:t.palette.primary.main,color:t.palette.common.white,border:`3px solid ${t.palette.primary.main}`};case"active":return{backgroundColor:t.palette.common.white,color:t.palette.primary.main,border:`3px solid ${t.palette.primary.main}`};case"upcoming":default:return{backgroundColor:t.palette.common.white,color:t.palette.neutral.dark,border:`3px solid ${t.palette.neutral.lighter}`}}},fX=(e,t,n)=>t||n||!!e&&(e.length>3||/\d{3,}/.test(e)||e.includes(" ")),mX=ne("div",{shouldForwardProp:e=>!["state","wide"].includes(e)})(({theme:e,state:t,wide:n})=>({zIndex:1,display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center",fontSize:"0.875rem",fontWeight:600,transition:"all 0.2s ease-in-out",position:"relative",...t==="complete"?{width:"34px",height:"34px",borderRadius:"24px",fontSize:"14px",borderWidth:"2px"}:n?{minWidth:"60px",width:"max-content",maxWidth:"min(180px, 18vw)",height:"34px",borderRadius:"22px",padding:"8px 16px",whiteSpace:"normal",wordWrap:"break-word",lineHeight:1.2}:{width:"34px",height:"34px",borderRadius:"50%"},...pX(t,e),[e.breakpoints.down("sm")]:{width:"23px !important",height:"23px !important",fontSize:"12px !important"}})),hX=ne(rh)(()=>({"& .MuiStepLabel-label":{display:"none !important"}})),gX=()=>m.jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none","data-testid":"check-icon","aria-hidden":"true",children:m.jsx("path",{d:"M9.98242 1.19141L3.33301 7.98145L0.0166016 4.5957L1.16602 3.42188L3.32422 5.62598L3.33301 5.63477L3.3418 5.62598L8.83301 0.0175781L9.98242 1.19141Z",fill:"white"})}),bX=({section:e,sectionNumber:t,totalSections:n,ariaLabel:r})=>m.jsx(mX,{state:e.state,wide:fX(e.label,t===1,t===n),role:"img","aria-label":r,"data-testid":`step-icon-${t}`,children:e.state==="complete"?m.jsx(gX,{}):e.label}),yX=({progress:e,getStepAriaLabel:t=aX,getContainerAriaLabel:n=cX})=>{const r=e==null?void 0:e.sections;if(!r||r.length===0)return null;const o=r.length,i=r.findIndex(c=>c.state==="active"),l=i!==-1?i:0,a=r.filter(c=>c.state==="complete").length;return m.jsx(uX,{children:m.jsx(dX,{activeStep:l,alternativeLabel:!0,"aria-label":n({completedSections:a,totalSections:o,currentSection:l+1}),children:r.map((c,u)=>m.jsx(BC,{completed:c.state==="complete",children:m.jsx(hX,{slots:{stepIcon:d=>m.jsx(bX,{...d,section:c,sectionNumber:u+1,totalSections:o,ariaLabel:t({section:c,sectionNumber:u+1,totalSections:o})})}})},`${c.label}-${u}`))})})},vX=ne(zs)(()=>({width:"100%",maxWidth:"800px",margin:"1rem 0"})),xX=ne("p")(({theme:e})=>({color:e.palette.text.primary,fontWeight:500,fontSize:"1rem",margin:"0 0 0.75rem 0",display:"block"})),CX=ne(nh)(()=>({gap:"0.625rem"})),wX=ne(oa)(({theme:e})=>({marginLeft:0,marginRight:0,padding:0,"& .MuiFormControlLabel-label":{fontSize:"0.875rem"},"& .MuiRadio-root":{color:e.palette.grey[400],"&.Mui-checked":{color:e.palette.primary.main}},"&:hover .MuiRadio-root":{backgroundColor:e.palette.action.hover}})),SX=ne(Je)(()=>({marginTop:"0.5rem",marginLeft:"2rem"})),kX=ne(Vs)(({theme:e})=>({"& .MuiOutlinedInput-root":{padding:0,"& fieldset":{display:"none"}},"& .MuiInputBase-input":{fontSize:"0.875rem",padding:"15px 20px",resize:"vertical",backgroundColor:e.palette.common.white,border:`1px solid ${e.palette.grey[400]}`,borderRadius:0,"&:hover":{borderColor:e.palette.primary.main},"&:focus":{borderColor:e.palette.primary.main,outline:"none"}}})),EX=({label:e,options:t,value:n,freeTextValue:r,onChange:o,name:i,disabled:l=!1,freeTextPlaceholder:a="Type your answer"})=>{const c=H.useId(),u=i!=null?i:c,d=`${u}-label`,[p,h]=H.useState(""),[f,y]=H.useState(""),g=n!=null?n:p,v=r!=null?r:f,x=w=>{const k=w.target.value,E=t.find(N=>N.value===k),T=E!=null&&E.allowsFreeText?v:"";h(k),y(T),o==null||o(k,E!=null&&E.allowsFreeText?T:void 0)},S=w=>{const k=w.target.value;y(k),o==null||o(g,k)};return m.jsxs(vX,{"data-testid":"single-select",children:[m.jsx(xX,{id:d,children:e}),m.jsx(CX,{value:g,onChange:x,name:u,"data-testid":"single-select-group","aria-labelledby":d,children:t.map(w=>m.jsxs(Je,{children:[m.jsx(wX,{value:w.value,control:m.jsx(th,{disabled:l,"data-testid":`single-select-option-${w.value}`}),label:w.label,disabled:l}),w.allowsFreeText&&g===w.value&&m.jsx(SX,{children:m.jsx(kX,{fullWidth:!0,multiline:!0,minRows:1,placeholder:a,value:v,onChange:S,variant:"outlined",disabled:l,slotProps:{htmlInput:{"aria-label":`${w.label} free text`}}})})]},w.value))})]})},TX=ne(zs)(()=>({width:"100%",maxWidth:"800px",margin:"1rem 0"})),IX=ne(Gm)(({theme:e})=>({color:e.palette.text.primary,fontWeight:500,fontSize:"1rem",marginBottom:"0.5rem",display:"block"})),PX=ne(Vs)(({theme:e})=>({"& .MuiOutlinedInput-root":{backgroundColor:e.palette.background.paper,"&:hover fieldset":{borderColor:e.palette.primary.main},"&.Mui-focused fieldset":{borderColor:e.palette.primary.main}},"& .MuiInputBase-input":{fontSize:"0.875rem",padding:"12px"}})),OX=ne(ot)(({theme:e})=>({fontSize:"0.75rem",color:e.palette.text.secondary,textAlign:"right",marginTop:"0.25rem"})),MX=({label:e,placeholder:t,maxLength:n,value:r,defaultValue:o="",onChange:i,multiline:l=!0,rows:a=4})=>{const[c,u]=H.useState(o),d=r!=null?r:c,p=h=>{const f=h.target.value;n&&f.length>n||(u(f),i==null||i(f))};return m.jsxs(TX,{"data-testid":"text-response",children:[m.jsx(IX,{children:e}),m.jsxs(Je,{children:[m.jsx(PX,{multiline:l,rows:l?a:void 0,fullWidth:!0,placeholder:t,value:d,onChange:p,slotProps:{htmlInput:{maxLength:n,"aria-label":e}},variant:"outlined"}),n&&m.jsxs(OX,{children:[d.length,"/",n]})]})]})},RX=Me([m.jsx("path",{d:"M18 10.48V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4.48l4 3.98v-11zm-2-.79V18H4V6h12z"},"0"),m.jsx("circle",{cx:"10",cy:"10",r:"2"},"1"),m.jsx("path",{d:"M14 15.43c0-.81-.48-1.53-1.22-1.85-.85-.37-1.79-.58-2.78-.58s-1.93.21-2.78.58C6.48 13.9 6 14.62 6 15.43V16h8z"},"2")],"VideoCameraFrontOutlined"),jX=({sx:e,...t})=>{const n=Xt();return m.jsx(Je,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:"1.5em",height:"1.5em",borderRadius:"50%",backgroundColor:n.palette["acuity-green"].main,border:`2px solid ${n.palette.common.white}`,boxSizing:"border-box"},children:m.jsx(RX,{...t,sx:{fontSize:"0.9em",fill:n.palette.common.white,color:n.palette.common.white,...e}})})},LX=({"aria-label":e="Acuity Insights",...t})=>m.jsx("svg",{fill:"none",height:"39",role:"img",viewBox:"0 0 39 39",width:"39",xmlns:"http://www.w3.org/2000/svg","aria-label":e,...t,children:m.jsx("path",{d:"M0 19.5C0 30.2696 8.73045 39 19.5 39C30.2696 39 39 30.2696 39 19.5C39 8.73045 30.2696 3.8147e-06 19.5 3.8147e-06C8.73045 3.8147e-06 0 8.73045 0 19.5ZM21.4413 10.2613C21.6667 10.5733 29.64 28.5653 29.64 28.7733C29.64 28.8947 28.9813 28.9467 27.8027 28.912C26.68 28.8802 25.6753 28.2066 25.2196 27.18L22.7413 21.5973C19.916 15.236 19.5 14.404 19.3267 14.7507C19.24 14.976 17.784 18.2347 16.1027 22.0133L13.8001 27.1811C13.3429 28.2072 12.3376 28.8802 11.2147 28.912C10.1747 28.9293 9.36 28.8947 9.36 28.808C9.36 28.652 16.9693 11.4573 17.4373 10.5213C17.68 10.0533 17.6973 10.0533 19.4827 10.0533C20.7133 10.0533 21.3373 10.1227 21.4413 10.2613ZM21.4933 26.9707C21.8747 27.7853 22.1867 28.5653 22.1867 28.704C22.1867 28.8947 21.684 28.9467 19.4827 28.9467H17.1907C16.9822 28.9467 16.8301 28.7497 16.8827 28.548C16.9347 28.3227 17.2467 27.5427 17.576 26.8147L17.6375 26.6793C17.9695 25.9489 18.6977 25.48 19.5 25.48C20.3021 25.48 21.0301 25.9492 21.3614 26.6797L21.4933 26.9707Z",fill:"#4B55A5"})}),$X=({"aria-label":e="Acuity Insights",...t})=>m.jsxs("svg",{fill:"none",height:"29",role:"img",viewBox:"0 0 28 29",width:"28",xmlns:"http://www.w3.org/2000/svg","aria-label":e,...t,children:[m.jsx("rect",{fill:"#364699",height:"28.86",rx:"6",width:"28"}),m.jsx("path",{d:"M5.74341 14.7997V15.0643C5.74341 19.8224 9.60065 23.6797 14.3588 23.6797C19.1169 23.6797 22.9742 19.8224 22.9742 15.0643V14.7997V14.5351C22.9742 9.77693 19.1169 5.91969 14.3588 5.91969C9.60065 5.91969 5.74341 9.77693 5.74341 14.5351V14.7997ZM15.2165 10.5925C15.3161 10.7346 18.8388 18.9279 18.8388 19.0226C18.8388 19.0779 18.5478 19.1016 18.027 19.0858C17.5319 19.0713 17.09 18.7712 16.894 18.3162L15.7909 15.7548C14.5426 12.8579 14.3588 12.479 14.2822 12.6369C14.2439 12.7395 13.6006 14.2235 12.8578 15.9442L11.8322 18.3167C11.6356 18.7715 11.1935 19.0713 10.6982 19.0858C10.2387 19.0937 9.87879 19.0779 9.87879 19.0384C9.87879 18.9674 13.2407 11.1372 13.4475 10.7109C13.5547 10.4978 13.5623 10.4978 14.3511 10.4978C14.8949 10.4978 15.1706 10.5294 15.2165 10.5925ZM15.2395 18.2017C15.408 18.5727 15.5458 18.9279 15.5458 18.991C15.5458 19.0779 15.3237 19.1016 14.3511 19.1016H13.3437C13.2487 19.1016 13.1791 19.0121 13.2024 18.92C13.2254 18.8174 13.3632 18.4622 13.5087 18.1307L13.5419 18.0554C13.6847 17.7318 14.005 17.5229 14.3588 17.5229C14.7125 17.5229 15.0328 17.7319 15.1752 18.0556L15.2395 18.2017Z",fill:"white"})]}),ai={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)"}},B0=["Lato","Helvetica Neue","Helvetica","Arial","sans-serif"].join(","),Lk=Gu({palette:{...ai,primary:{...ai.primary,contrastText:"#FFFFFF"},neutral:{...ai.neutral,darker:ai.neutral.darkest}},customColors:{...ai.customColors,transparent:"rgba(0, 0, 0, 0)","yellowy-taupe":"#FCEDCA"},typography:{fontFamily:B0,sm:{fontSize:".875rem",lineHeight:"1.25rem"},base:{fontSize:"1rem",lineHeight:"1.5rem"},lg:{fontSize:"1.125rem",lineHeight:"1.5rem"},xl:{fontSize:"1.25rem",lineHeight:"1.75rem"},"2xl":{fontSize:"1.4375rem",lineHeight:"2rem"},"3xl":{fontSize:"1.625rem",lineHeight:"2.25rem"},"4xl":{fontSize:"2.25rem",lineHeight:"3rem"}},components:{MuiCssBaseline:{styleOverrides:{body:{fontFamily:B0}}}}}),NX=({children:e,withCssBaseline:t=!1})=>m.jsxs(QM,{theme:Lk,children:[t&&m.jsx(wC,{}),e]});exports.AcuityDataGrid=FH;exports.AcuityLogo=LX;exports.AcuityLogoMobile=$X;exports.AcuityMuiThemeProvider=NX;exports.AddItem=r7;exports.AdvancedTable=BH;exports.Alert=uv;exports.AlertBanner=KG;exports.AppLayout=u7;exports.AppLayoutDrawer=XC;exports.AudioVolumeIndicator=Dh;exports.Badge=Kv;exports.Button=pv;exports.ButtonAddTableItem=o7;exports.Card=mT;exports.Checkbox=bT;exports.CheckboxCell=w2;exports.CheckedIcon=Ah;exports.ContentPanelContext=lh;exports.CustomTable=VH;exports.CustomTableHead=qH;exports.CustomTableRow=E2;exports.DEFAULT_DEVICE_PICKER_LABELS=W2;exports.DefaultStepButton=$Y;exports.DevicePicker=iW;exports.DigitalTimer=aW;exports.Dropdown=oP;exports.DropdownAtom=Qv;exports.FileDropzone=i7;exports.FormValidation=vT;exports.Heading=Zf;exports.HoldToConfirmButton=I2;exports.Icon=io;exports.IconButton=Cu;exports.ImageFrame=U2;exports.ImagePreview=cW;exports.IndeterminateIcon=C2;exports.InlineAlert=l7;exports.KebabMenu=QH;exports.LabelAtom=Yv;exports.LabelCell=YH;exports.Link=MT;exports.MIC_SIGNAL_SUSTAIN_MS=V2;exports.MIC_SIGNAL_THRESHOLD=B2;exports.MIC_SILENCE_TIMEOUT_MS=H2;exports.Markdown=RY;exports.Modal=F5;exports.NumericScale=iX;exports.PageTitle=JH;exports.PrimaryButton=lX;exports.ProgressBar=cP;exports.ProgressStepper=yX;exports.Radio=PT;exports.RecordStepButton=NY;exports.RecordingBadge=JG;exports.ReplayButton=LY;exports.SPEECH_LOCALES=tg;exports.SingleSelect=EX;exports.SortIcon=S2;exports.SortableTableCell=k2;exports.Spinner=Dc;exports.Tab=V5;exports.Tabs=B5;exports.TexFooter=FY;exports.TextInput=eP;exports.TextInputAtom=Zv;exports.TextResponse=MX;exports.TextToSpeech=BY;exports.Textarea=Z5;exports.TextareaAtom=Xv;exports.TimerProgressBar=YY;exports.Toast=BG;exports.Tooltip=GG;exports.UploadProgressBar=JY;exports.UserAvatar=UG;exports.VideoInterviewIcon=jX;exports.acuityMuiTheme=Lk;exports.filterTableData=T2;exports.formatTime=zh;exports.getMarkdownStyles=Ok;exports.isVolumeBarFilled=_2;exports.pickVoice=Mk;exports.platformPalette=ai;exports.toMeterLevel=D2;exports.toSpeechLanguage=_Y;exports.toast=VG;exports.useContentPanelContext=YC;exports.useMicSignalCheck=G2;exports.useMicVolume=_h;exports.useTable=XH;
1284
- //# sourceMappingURL=index.cjs.js.map