@visio-io/design-system 1.7.0 → 1.8.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 CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var Zv=Object.defineProperty;var Xv=(e,t,n)=>t in e?Zv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var pe=(e,t,n)=>Xv(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ae=require("@mui/material/styles"),A=require("react"),q=require("@mui/material"),kt=require("@mui/icons-material"),Wt=require("@mui/system"),Qv=require("@emotion/styled"),Jv=require("@emotion/react"),er=require("react-dom");function Wh(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const P=Wh(A),e0=Wh(er),dt={primary:"#006399",onPrimary:"#ffffff",primaryContainer:"#cfe5ff",onPrimaryContainer:"#001d33",secondary:"#526070",onSecondary:"#ffffff",secondaryContainer:"#d5e4f7",onSecondaryContainer:"#0f1d2a",tertiary:"#68587a",onTertiary:"#ffffff",tertiaryContainer:"#eedcff",onTertiaryContainer:"#231533",error:"#ba1a1a",onError:"#ffffff",errorContainer:"#ffdad6",onErrorContainer:"#410002",surface:"#fdfcff",onSurface:"#1a1c1e",surfaceVariant:"#dee3eb",onSurfaceVariant:"#42474e",outline:"#72787e",inverseSurface:"#2f3033",inverseOnSurface:"#f1f0f4",inversePrimary:"#98cbff"},ft={primary:"#98cbff",onPrimary:"#003354",primaryContainer:"#004a78",onPrimaryContainer:"#cfe5ff",secondary:"#b9c8da",onSecondary:"#233241",secondaryContainer:"#3a4a58",onSecondaryContainer:"#d5e4f7",tertiary:"#d3bee5",onTertiary:"#382a4a",tertiaryContainer:"#4f4062",onTertiaryContainer:"#eedcff",error:"#ffb4ab",onError:"#690005",errorContainer:"#93000a",onErrorContainer:"#ffdad6",surface:"#1a1c1e",onSurface:"#e2e2e6",surfaceVariant:"#42474e",onSurfaceVariant:"#c2c7cf",outline:"#8c9198",inverseSurface:"#e2e2e6",inverseOnSurface:"#2f3033",inversePrimary:"#006399"},Mt={fontFamily:'"Inter", "Helvetica", "Arial", sans-serif',fontSize:{xs:12,sm:14,md:16,lg:18,xl:20,xxl:24},fontWeight:{regular:400,medium:500,semibold:600,bold:700},lineHeight:{tight:1.2,normal:1.5,relaxed:1.7}},Uh={xxs:2,xs:4,sm:8,md:12,lg:16,xl:24,xxl:32,xxxl:64},pi={sm:4,md:8,lg:12,xl:16,pill:999},Hh={shape:{borderRadius:pi.md,borderRadiusSm:pi.sm},spacing:8,components:{MuiButton:{styleOverrides:{root:{borderRadius:pi.md,fontWeight:Mt.fontWeight.medium,letterSpacing:"0.2px",textTransform:"none","&:focus-visible":{outline:"2px solid currentColor",outlineOffset:"2px"},"&.Mui-disabled":{opacity:.6}}},variants:[{props:{variant:"contained",color:"primary"},style:{boxShadow:"none"}}]},MuiList:{styleOverrides:{root:{padding:"4px"}}}},typography:{fontFamily:Mt.fontFamily,fontWeightRegular:Mt.fontWeight.regular,fontWeightMedium:Mt.fontWeight.medium,fontWeightBold:Mt.fontWeight.bold,h1:{fontSize:Mt.fontSize.xxl,fontWeight:Mt.fontWeight.bold,lineHeight:Mt.lineHeight.tight},h2:{fontSize:Mt.fontSize.xl,fontWeight:Mt.fontWeight.bold,lineHeight:Mt.lineHeight.tight},body1:{fontSize:Mt.fontSize.md,lineHeight:Mt.lineHeight.normal},body2:{fontSize:Mt.fontSize.sm,lineHeight:Mt.lineHeight.normal},button:{fontWeight:Mt.fontWeight.semibold,textTransform:"none"}}},Yh=ae.createTheme({...Hh,palette:{mode:"light",primary:{main:dt.primary,contrastText:dt.onPrimary},secondary:{main:dt.secondary,contrastText:dt.onSecondary},error:{main:dt.error,contrastText:dt.onError},background:{default:dt.surface,paper:dt.surface},text:{primary:dt.onSurface,secondary:dt.onSurfaceVariant},divider:dt.outline},visio:{surfaceVariant:dt.surfaceVariant,onSurfaceVariant:dt.onSurfaceVariant,inverseSurface:dt.inverseSurface,inverseOnSurface:dt.inverseOnSurface,inversePrimary:dt.inversePrimary,outline:dt.outline,tertiary:{main:dt.tertiary,contrastText:dt.onTertiary,container:dt.tertiaryContainer,onContainer:dt.onTertiaryContainer}}}),qh=ae.createTheme({...Hh,palette:{mode:"dark",primary:{main:ft.primary,contrastText:ft.onPrimary},secondary:{main:ft.secondary,contrastText:ft.onSecondary},error:{main:ft.error,contrastText:ft.onError},background:{default:ft.surface,paper:ft.surface},text:{primary:ft.onSurface,secondary:ft.onSurfaceVariant},divider:ft.outline},visio:{surfaceVariant:ft.surfaceVariant,onSurfaceVariant:ft.onSurfaceVariant,inverseSurface:ft.inverseSurface,inverseOnSurface:ft.inverseOnSurface,inversePrimary:ft.inversePrimary,outline:ft.outline,tertiary:{main:ft.tertiary,contrastText:ft.onTertiary,container:ft.tertiaryContainer,onContainer:ft.onTertiaryContainer}}}),t0=Uh;var Cr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ml={exports:{}},Dr={};/**
1
+ "use strict";var Zv=Object.defineProperty;var Xv=(e,t,n)=>t in e?Zv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var pe=(e,t,n)=>Xv(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ae=require("@mui/material/styles"),_=require("react"),q=require("@mui/material"),kt=require("@mui/icons-material"),Wt=require("@mui/system"),Qv=require("@emotion/styled"),Jv=require("@emotion/react"),er=require("react-dom");function Wh(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const P=Wh(_),e0=Wh(er),dt={primary:"#006399",onPrimary:"#ffffff",primaryContainer:"#cfe5ff",onPrimaryContainer:"#001d33",secondary:"#526070",onSecondary:"#ffffff",secondaryContainer:"#d5e4f7",onSecondaryContainer:"#0f1d2a",tertiary:"#68587a",onTertiary:"#ffffff",tertiaryContainer:"#eedcff",onTertiaryContainer:"#231533",error:"#ba1a1a",onError:"#ffffff",errorContainer:"#ffdad6",onErrorContainer:"#410002",surface:"#fdfcff",onSurface:"#1a1c1e",surfaceVariant:"#dee3eb",onSurfaceVariant:"#42474e",outline:"#72787e",inverseSurface:"#2f3033",inverseOnSurface:"#f1f0f4",inversePrimary:"#98cbff"},ft={primary:"#98cbff",onPrimary:"#003354",primaryContainer:"#004a78",onPrimaryContainer:"#cfe5ff",secondary:"#b9c8da",onSecondary:"#233241",secondaryContainer:"#3a4a58",onSecondaryContainer:"#d5e4f7",tertiary:"#d3bee5",onTertiary:"#382a4a",tertiaryContainer:"#4f4062",onTertiaryContainer:"#eedcff",error:"#ffb4ab",onError:"#690005",errorContainer:"#93000a",onErrorContainer:"#ffdad6",surface:"#1a1c1e",onSurface:"#e2e2e6",surfaceVariant:"#42474e",onSurfaceVariant:"#c2c7cf",outline:"#8c9198",inverseSurface:"#e2e2e6",inverseOnSurface:"#2f3033",inversePrimary:"#006399"},Mt={fontFamily:'"Inter", "Helvetica", "Arial", sans-serif',fontSize:{xs:12,sm:14,md:16,lg:18,xl:20,xxl:24},fontWeight:{regular:400,medium:500,semibold:600,bold:700},lineHeight:{tight:1.2,normal:1.5,relaxed:1.7}},Uh={xxs:2,xs:4,sm:8,md:12,lg:16,xl:24,xxl:32,xxxl:64},pi={sm:4,md:8,lg:12,xl:16,pill:999},Hh={shape:{borderRadius:pi.md,borderRadiusSm:pi.sm},spacing:8,components:{MuiButton:{styleOverrides:{root:{borderRadius:pi.md,fontWeight:Mt.fontWeight.medium,letterSpacing:"0.2px",textTransform:"none","&:focus-visible":{outline:"2px solid currentColor",outlineOffset:"2px"},"&.Mui-disabled":{opacity:.6}}},variants:[{props:{variant:"contained",color:"primary"},style:{boxShadow:"none"}}]},MuiList:{styleOverrides:{root:{padding:"4px"}}}},typography:{fontFamily:Mt.fontFamily,fontWeightRegular:Mt.fontWeight.regular,fontWeightMedium:Mt.fontWeight.medium,fontWeightBold:Mt.fontWeight.bold,h1:{fontSize:Mt.fontSize.xxl,fontWeight:Mt.fontWeight.bold,lineHeight:Mt.lineHeight.tight},h2:{fontSize:Mt.fontSize.xl,fontWeight:Mt.fontWeight.bold,lineHeight:Mt.lineHeight.tight},body1:{fontSize:Mt.fontSize.md,lineHeight:Mt.lineHeight.normal},body2:{fontSize:Mt.fontSize.sm,lineHeight:Mt.lineHeight.normal},button:{fontWeight:Mt.fontWeight.semibold,textTransform:"none"}}},Yh=ae.createTheme({...Hh,palette:{mode:"light",primary:{main:dt.primary,contrastText:dt.onPrimary},secondary:{main:dt.secondary,contrastText:dt.onSecondary},error:{main:dt.error,contrastText:dt.onError},background:{default:dt.surface,paper:dt.surface},text:{primary:dt.onSurface,secondary:dt.onSurfaceVariant},divider:dt.outline},visio:{surfaceVariant:dt.surfaceVariant,onSurfaceVariant:dt.onSurfaceVariant,inverseSurface:dt.inverseSurface,inverseOnSurface:dt.inverseOnSurface,inversePrimary:dt.inversePrimary,outline:dt.outline,tertiary:{main:dt.tertiary,contrastText:dt.onTertiary,container:dt.tertiaryContainer,onContainer:dt.onTertiaryContainer}}}),qh=ae.createTheme({...Hh,palette:{mode:"dark",primary:{main:ft.primary,contrastText:ft.onPrimary},secondary:{main:ft.secondary,contrastText:ft.onSecondary},error:{main:ft.error,contrastText:ft.onError},background:{default:ft.surface,paper:ft.surface},text:{primary:ft.onSurface,secondary:ft.onSurfaceVariant},divider:ft.outline},visio:{surfaceVariant:ft.surfaceVariant,onSurfaceVariant:ft.onSurfaceVariant,inverseSurface:ft.inverseSurface,inverseOnSurface:ft.inverseOnSurface,inversePrimary:ft.inversePrimary,outline:ft.outline,tertiary:{main:ft.tertiary,contrastText:ft.onTertiary,container:ft.tertiaryContainer,onContainer:ft.onTertiaryContainer}}}),t0=Uh;var wr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kl={exports:{}},Dr={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -14,31 +14,31 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Sd;function o0(){return Sd||(Sd=1,process.env.NODE_ENV!=="production"&&function(){function e(R){if(R==null)return null;if(typeof R=="function")return R.$$typeof===j?null:R.displayName||R.name||null;if(typeof R=="string")return R;switch(R){case y:return"Fragment";case w:return"Profiler";case v:return"StrictMode";case E:return"Suspense";case M:return"SuspenseList";case $:return"Activity"}if(typeof R=="object")switch(typeof R.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),R.$$typeof){case g:return"Portal";case S:return R.displayName||"Context";case x:return(R._context.displayName||"Context")+".Consumer";case T:var Y=R.render;return R=R.displayName,R||(R=Y.displayName||Y.name||"",R=R!==""?"ForwardRef("+R+")":"ForwardRef"),R;case _:return Y=R.displayName||null,Y!==null?Y:e(R.type)||"Memo";case D:Y=R._payload,R=R._init;try{return e(R(Y))}catch{}}return null}function t(R){return""+R}function n(R){try{t(R);var Y=!1}catch{Y=!0}if(Y){Y=console;var G=Y.error,Z=typeof Symbol=="function"&&Symbol.toStringTag&&R[Symbol.toStringTag]||R.constructor.name||"Object";return G.call(Y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Z),t(R)}}function o(R){if(R===y)return"<>";if(typeof R=="object"&&R!==null&&R.$$typeof===D)return"<...>";try{var Y=e(R);return Y?"<"+Y+">":"<...>"}catch{return"<...>"}}function r(){var R=C.A;return R===null?null:R.getOwner()}function i(){return Error("react-stack-top-frame")}function a(R){if(L.call(R,"key")){var Y=Object.getOwnPropertyDescriptor(R,"key").get;if(Y&&Y.isReactWarning)return!1}return R.key!==void 0}function l(R,Y){function G(){O||(O=!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)",Y))}G.isReactWarning=!0,Object.defineProperty(R,"key",{get:G,configurable:!0})}function c(){var R=e(this.type);return N[R]||(N[R]=!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.")),R=this.props.ref,R!==void 0?R:null}function u(R,Y,G,Z,re,X){var Q=G.ref;return R={$$typeof:m,type:R,key:Y,props:G,_owner:Z},(Q!==void 0?Q:null)!==null?Object.defineProperty(R,"ref",{enumerable:!1,get:c}):Object.defineProperty(R,"ref",{enumerable:!1,value:null}),R._store={},Object.defineProperty(R._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(R,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(R,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:re}),Object.defineProperty(R,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(R.props),Object.freeze(R)),R}function d(R,Y,G,Z,re,X){var Q=Y.children;if(Q!==void 0)if(Z)if(k(Q)){for(Z=0;Z<Q.length;Z++)f(Q[Z]);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 f(Q);if(L.call(Y,"key")){Q=e(R);var K=Object.keys(Y).filter(function(z){return z!=="key"});Z=0<K.length?"{key: someKey, "+K.join(": ..., ")+": ...}":"{key: someKey}",B[Q+Z]||(K=0<K.length?"{"+K.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var Sd;function o0(){return Sd||(Sd=1,process.env.NODE_ENV!=="production"&&function(){function e(R){if(R==null)return null;if(typeof R=="function")return R.$$typeof===j?null:R.displayName||R.name||null;if(typeof R=="string")return R;switch(R){case y:return"Fragment";case C:return"Profiler";case v:return"StrictMode";case E:return"Suspense";case M:return"SuspenseList";case $:return"Activity"}if(typeof R=="object")switch(typeof R.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),R.$$typeof){case g:return"Portal";case S:return R.displayName||"Context";case x:return(R._context.displayName||"Context")+".Consumer";case T:var Y=R.render;return R=R.displayName,R||(R=Y.displayName||Y.name||"",R=R!==""?"ForwardRef("+R+")":"ForwardRef"),R;case A:return Y=R.displayName||null,Y!==null?Y:e(R.type)||"Memo";case k:Y=R._payload,R=R._init;try{return e(R(Y))}catch{}}return null}function t(R){return""+R}function n(R){try{t(R);var Y=!1}catch{Y=!0}if(Y){Y=console;var G=Y.error,Z=typeof Symbol=="function"&&Symbol.toStringTag&&R[Symbol.toStringTag]||R.constructor.name||"Object";return G.call(Y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Z),t(R)}}function o(R){if(R===y)return"<>";if(typeof R=="object"&&R!==null&&R.$$typeof===k)return"<...>";try{var Y=e(R);return Y?"<"+Y+">":"<...>"}catch{return"<...>"}}function r(){var R=w.A;return R===null?null:R.getOwner()}function i(){return Error("react-stack-top-frame")}function a(R){if(L.call(R,"key")){var Y=Object.getOwnPropertyDescriptor(R,"key").get;if(Y&&Y.isReactWarning)return!1}return R.key!==void 0}function l(R,Y){function G(){O||(O=!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)",Y))}G.isReactWarning=!0,Object.defineProperty(R,"key",{get:G,configurable:!0})}function c(){var R=e(this.type);return N[R]||(N[R]=!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.")),R=this.props.ref,R!==void 0?R:null}function u(R,Y,G,Z,re,X){var Q=G.ref;return R={$$typeof:m,type:R,key:Y,props:G,_owner:Z},(Q!==void 0?Q:null)!==null?Object.defineProperty(R,"ref",{enumerable:!1,get:c}):Object.defineProperty(R,"ref",{enumerable:!1,value:null}),R._store={},Object.defineProperty(R._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(R,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(R,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:re}),Object.defineProperty(R,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(R.props),Object.freeze(R)),R}function d(R,Y,G,Z,re,X){var Q=Y.children;if(Q!==void 0)if(Z)if(D(Q)){for(Z=0;Z<Q.length;Z++)f(Q[Z]);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 f(Q);if(L.call(Y,"key")){Q=e(R);var K=Object.keys(Y).filter(function(z){return z!=="key"});Z=0<K.length?"{key: someKey, "+K.join(": ..., ")+": ...}":"{key: someKey}",B[Q+Z]||(K=0<K.length?"{"+K.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,Z,Q,K,Q),B[Q+Z]=!0)}if(Q=null,G!==void 0&&(n(G),Q=""+G),a(Y)&&(n(Y.key),Q=""+Y.key),"key"in Y){G={};for(var te in Y)te!=="key"&&(G[te]=Y[te])}else G=Y;return Q&&l(G,typeof R=="function"?R.displayName||R.name||"Unknown":R),u(R,Q,G,r(),re,X)}function f(R){p(R)?R._store&&(R._store.validated=1):typeof R=="object"&&R!==null&&R.$$typeof===D&&(R._payload.status==="fulfilled"?p(R._payload.value)&&R._payload.value._store&&(R._payload.value._store.validated=1):R._store&&(R._store.validated=1))}function p(R){return typeof R=="object"&&R!==null&&R.$$typeof===m}var h=A,m=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),S=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),j=Symbol.for("react.client.reference"),C=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=Object.prototype.hasOwnProperty,k=Array.isArray,I=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(R){return R()}};var O,N={},F=h.react_stack_bottom_frame.bind(h,i)(),V=I(o(i)),B={};Rr.Fragment=y,Rr.jsx=function(R,Y,G){var Z=1e4>C.recentlyCreatedOwnerStacks++;return d(R,Y,G,!1,Z?Error("react-stack-top-frame"):F,Z?I(o(R)):V)},Rr.jsxs=function(R,Y,G){var Z=1e4>C.recentlyCreatedOwnerStacks++;return d(R,Y,G,!0,Z?Error("react-stack-top-frame"):F,Z?I(o(R)):V)}}()),Rr}process.env.NODE_ENV==="production"?Ml.exports=n0():Ml.exports=o0();var b=Ml.exports;const Gh=A.createContext(null),r0=({children:e,defaultMode:t="light",mode:n,onModeChange:o,enableCssBaseline:r=!0})=>{const[i,a]=A.useState(n??t),l=n??i;A.useEffect(()=>{n&&a(n)},[n]);const c=A.useCallback(p=>{n||a(p),o==null||o(p)},[n,o]),u=A.useCallback(()=>{c(l==="light"?"dark":"light")},[l,c]),d=A.useMemo(()=>l==="dark"?qh:Yh,[l]),f=A.useMemo(()=>({mode:l,setMode:c,toggleMode:u,theme:d}),[l,c,u,d]);return b.jsx(Gh.Provider,{value:f,children:b.jsxs(q.ThemeProvider,{theme:d,children:[r?b.jsx(q.CssBaseline,{}):null,e]})})},s0=()=>{const e=A.useContext(Gh);if(!e)throw new Error("useVisioTheme must be used within VisioThemeProvider.");return e},i0="_button_1x96v_1",a0="_borderRadiusNone_1x96v_8",l0="_borderRadiusSmall_1x96v_12",c0="_borderRadiusMedium_1x96v_16",u0="_borderRadiusLarge_1x96v_20",d0="_borderRadiusRound_1x96v_24",To={button:i0,borderRadiusNone:a0,borderRadiusSmall:l0,borderRadiusMedium:c0,borderRadiusLarge:u0,borderRadiusRound:d0},f0=(e,t="medium")=>{const n=e??t;if(typeof n=="number")return"";switch(n){case"none":return To.borderRadiusNone;case"small":return To.borderRadiusSmall;case"medium":return To.borderRadiusMedium;case"large":return To.borderRadiusLarge;case"round":return To.borderRadiusRound;default:return To.borderRadiusMedium}},p0=e=>{if(typeof e=="number")return`${e}px`},h0=(e,t,n)=>{const o=n||t;if(o)return r=>{if(e){r.preventDefault();return}o(r)}},Pc=A.forwardRef(({children:e,loading:t=!1,loadingText:n,startIcon:o,endIcon:r,variant:i="contained",size:a="medium",color:l="primary",borderRadius:c="medium",fullWidth:u=!1,disabled:d=!1,type:f="button",className:p,onClick:h,onAction:m,...g},y)=>{const v=d||t,w=f0(c),x=p0(c),S=h0(v,h,m),T=`${To.button} ${w} ${p||""}`.trim();return b.jsx(q.Button,{ref:y,variant:i,size:a,color:l,fullWidth:u,disabled:v,type:f,onClick:S,startIcon:t?b.jsx(q.CircularProgress,{size:a==="small"?16:a==="medium"?20:24,color:"inherit"}):o,endIcon:t?void 0:r,className:T,style:x?{borderRadius:x}:void 0,...g,children:t&&n?n:e})});Pc.displayName="Button";const m0=e=>{if(e)return t=>{e(t)}},g0="_filterButton_8fgad_1",y0={filterButton:g0},Kh=A.forwardRef(({children:e="Filtros",onClick:t,className:n,...o},r)=>{const a=q.useTheme().palette.mode==="dark",l=m0(t);return b.jsx(q.Button,{ref:r,variant:"outlined",onClick:l,className:`${y0.filterButton} ${n||""}`,"data-theme":a?"dark":"light",...o,children:e})});Kh.displayName="FilterButton";const b0=(e,t)=>n=>{n.stopPropagation(),t==null||t(n),e()},v0="_filterChip_l6gto_1",x0="_textVariant_l6gto_52",S0="_icon_l6gto_64",C0="_label_l6gto_80",w0="_overlay_l6gto_92",T0="_deleteIcon_l6gto_106",zo={filterChip:v0,textVariant:x0,icon:S0,label:C0,overlay:w0,deleteIcon:T0},Zh=({label:e,icon:t,onRemove:n,className:o,onClick:r,variant:i="outlined",ref:a,...l})=>{const u=q.useTheme().palette.mode==="dark",d=b0(n,r),f=i==="text";return b.jsxs(q.Box,{ref:a,className:`${zo.filterChip} ${f?zo.textVariant:""} ${o||""}`.trim(),"data-theme":u?"dark":"light",onClick:d,role:"button",tabIndex:0,onKeyDown:p=>{(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),n())},"aria-label":`Remover filtro ${e}`,component:"div",...l,children:[t&&b.jsx(q.Box,{className:zo.icon,component:"div",children:t}),b.jsx(q.Box,{className:zo.label,component:"span",children:e}),!f&&b.jsx(q.Box,{className:zo.overlay,component:"div",children:b.jsx(kt.Delete,{className:zo.deleteIcon})})]})};Zh.displayName="FilterChip";const Cd=e=>e,P0=()=>{let e=Cd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Cd}}},E0=P0();function Tn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}function ce(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Tn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function wd(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}var Ol={exports:{}},Gs={exports:{}},We={};/** @license React v16.13.1
22
+ <%s key={someKey} {...props} />`,Z,Q,K,Q),B[Q+Z]=!0)}if(Q=null,G!==void 0&&(n(G),Q=""+G),a(Y)&&(n(Y.key),Q=""+Y.key),"key"in Y){G={};for(var te in Y)te!=="key"&&(G[te]=Y[te])}else G=Y;return Q&&l(G,typeof R=="function"?R.displayName||R.name||"Unknown":R),u(R,Q,G,r(),re,X)}function f(R){p(R)?R._store&&(R._store.validated=1):typeof R=="object"&&R!==null&&R.$$typeof===k&&(R._payload.status==="fulfilled"?p(R._payload.value)&&R._payload.value._store&&(R._payload.value._store.validated=1):R._store&&(R._store.validated=1))}function p(R){return typeof R=="object"&&R!==null&&R.$$typeof===m}var h=_,m=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),S=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),j=Symbol.for("react.client.reference"),w=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=Object.prototype.hasOwnProperty,D=Array.isArray,I=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(R){return R()}};var O,N={},F=h.react_stack_bottom_frame.bind(h,i)(),V=I(o(i)),B={};Rr.Fragment=y,Rr.jsx=function(R,Y,G){var Z=1e4>w.recentlyCreatedOwnerStacks++;return d(R,Y,G,!1,Z?Error("react-stack-top-frame"):F,Z?I(o(R)):V)},Rr.jsxs=function(R,Y,G){var Z=1e4>w.recentlyCreatedOwnerStacks++;return d(R,Y,G,!0,Z?Error("react-stack-top-frame"):F,Z?I(o(R)):V)}}()),Rr}process.env.NODE_ENV==="production"?kl.exports=n0():kl.exports=o0();var b=kl.exports;const Gh=_.createContext(null),r0=({children:e,defaultMode:t="light",mode:n,onModeChange:o,enableCssBaseline:r=!0})=>{const[i,a]=_.useState(n??t),l=n??i;_.useEffect(()=>{n&&a(n)},[n]);const c=_.useCallback(p=>{n||a(p),o==null||o(p)},[n,o]),u=_.useCallback(()=>{c(l==="light"?"dark":"light")},[l,c]),d=_.useMemo(()=>l==="dark"?qh:Yh,[l]),f=_.useMemo(()=>({mode:l,setMode:c,toggleMode:u,theme:d}),[l,c,u,d]);return b.jsx(Gh.Provider,{value:f,children:b.jsxs(q.ThemeProvider,{theme:d,children:[r?b.jsx(q.CssBaseline,{}):null,e]})})},s0=()=>{const e=_.useContext(Gh);if(!e)throw new Error("useVisioTheme must be used within VisioThemeProvider.");return e},i0="_button_1x96v_1",a0="_borderRadiusNone_1x96v_8",l0="_borderRadiusSmall_1x96v_12",c0="_borderRadiusMedium_1x96v_16",u0="_borderRadiusLarge_1x96v_20",d0="_borderRadiusRound_1x96v_24",To={button:i0,borderRadiusNone:a0,borderRadiusSmall:l0,borderRadiusMedium:c0,borderRadiusLarge:u0,borderRadiusRound:d0},f0=(e,t="medium")=>{const n=e??t;if(typeof n=="number")return"";switch(n){case"none":return To.borderRadiusNone;case"small":return To.borderRadiusSmall;case"medium":return To.borderRadiusMedium;case"large":return To.borderRadiusLarge;case"round":return To.borderRadiusRound;default:return To.borderRadiusMedium}},p0=e=>{if(typeof e=="number")return`${e}px`},h0=(e,t,n)=>{const o=n||t;if(o)return r=>{if(e){r.preventDefault();return}o(r)}},Mc=_.forwardRef(({children:e,loading:t=!1,loadingText:n,startIcon:o,endIcon:r,variant:i="contained",size:a="medium",color:l="primary",borderRadius:c="medium",fullWidth:u=!1,disabled:d=!1,type:f="button",className:p,onClick:h,onAction:m,...g},y)=>{const v=d||t,C=f0(c),x=p0(c),S=h0(v,h,m),T=`${To.button} ${C} ${p||""}`.trim();return b.jsx(q.Button,{ref:y,variant:i,size:a,color:l,fullWidth:u,disabled:v,type:f,onClick:S,startIcon:t?b.jsx(q.CircularProgress,{size:a==="small"?16:a==="medium"?20:24,color:"inherit"}):o,endIcon:t?void 0:r,className:T,style:x?{borderRadius:x}:void 0,...g,children:t&&n?n:e})});Mc.displayName="Button";const m0=e=>{if(e)return t=>{e(t)}},g0="_filterButton_8fgad_1",y0={filterButton:g0},Kh=_.forwardRef(({children:e="Filtros",onClick:t,className:n,...o},r)=>{const a=q.useTheme().palette.mode==="dark",l=m0(t);return b.jsx(q.Button,{ref:r,variant:"outlined",onClick:l,className:`${y0.filterButton} ${n||""}`,"data-theme":a?"dark":"light",...o,children:e})});Kh.displayName="FilterButton";const b0=(e,t)=>n=>{n.stopPropagation(),t==null||t(n),e()},v0="_filterChip_l6gto_1",x0="_textVariant_l6gto_52",S0="_icon_l6gto_64",w0="_label_l6gto_80",C0="_overlay_l6gto_92",T0="_deleteIcon_l6gto_106",zo={filterChip:v0,textVariant:x0,icon:S0,label:w0,overlay:C0,deleteIcon:T0},Zh=({label:e,icon:t,onRemove:n,className:o,onClick:r,variant:i="outlined",ref:a,...l})=>{const u=q.useTheme().palette.mode==="dark",d=b0(n,r),f=i==="text";return b.jsxs(q.Box,{ref:a,className:`${zo.filterChip} ${f?zo.textVariant:""} ${o||""}`.trim(),"data-theme":u?"dark":"light",onClick:d,role:"button",tabIndex:0,onKeyDown:p=>{(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),n())},"aria-label":`Remover filtro ${e}`,component:"div",...l,children:[t&&b.jsx(q.Box,{className:zo.icon,component:"div",children:t}),b.jsx(q.Box,{className:zo.label,component:"span",children:e}),!f&&b.jsx(q.Box,{className:zo.overlay,component:"div",children:b.jsx(kt.Delete,{className:zo.deleteIcon})})]})};Zh.displayName="FilterChip";const wd=e=>e,P0=()=>{let e=wd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=wd}}},E0=P0();function Tn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}function ce(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Tn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Cd(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}var Dl={exports:{}},Gs={exports:{}},We={};/** @license React v16.13.1
23
23
  * react-is.production.min.js
24
24
  *
25
25
  * Copyright (c) Facebook, Inc. and its affiliates.
26
26
  *
27
27
  * This source code is licensed under the MIT license found in the
28
28
  * LICENSE file in the root directory of this source tree.
29
- */var Td;function M0(){if(Td)return We;Td=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(T){if(typeof T=="object"&&T!==null){var E=T.$$typeof;switch(E){case t:switch(T=T.type,T){case c:case u:case o:case i:case r:case f:return T;default:switch(T=T&&T.$$typeof,T){case l:case d:case m:case h:case a:return T;default:return E}}case n:return E}}}function S(T){return x(T)===u}return We.AsyncMode=c,We.ConcurrentMode=u,We.ContextConsumer=l,We.ContextProvider=a,We.Element=t,We.ForwardRef=d,We.Fragment=o,We.Lazy=m,We.Memo=h,We.Portal=n,We.Profiler=i,We.StrictMode=r,We.Suspense=f,We.isAsyncMode=function(T){return S(T)||x(T)===c},We.isConcurrentMode=S,We.isContextConsumer=function(T){return x(T)===l},We.isContextProvider=function(T){return x(T)===a},We.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},We.isForwardRef=function(T){return x(T)===d},We.isFragment=function(T){return x(T)===o},We.isLazy=function(T){return x(T)===m},We.isMemo=function(T){return x(T)===h},We.isPortal=function(T){return x(T)===n},We.isProfiler=function(T){return x(T)===i},We.isStrictMode=function(T){return x(T)===r},We.isSuspense=function(T){return x(T)===f},We.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===o||T===u||T===i||T===r||T===f||T===p||typeof T=="object"&&T!==null&&(T.$$typeof===m||T.$$typeof===h||T.$$typeof===a||T.$$typeof===l||T.$$typeof===d||T.$$typeof===y||T.$$typeof===v||T.$$typeof===w||T.$$typeof===g)},We.typeOf=x,We}var Ue={};/** @license React v16.13.1
29
+ */var Td;function M0(){if(Td)return We;Td=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function x(T){if(typeof T=="object"&&T!==null){var E=T.$$typeof;switch(E){case t:switch(T=T.type,T){case c:case u:case o:case i:case r:case f:return T;default:switch(T=T&&T.$$typeof,T){case l:case d:case m:case h:case a:return T;default:return E}}case n:return E}}}function S(T){return x(T)===u}return We.AsyncMode=c,We.ConcurrentMode=u,We.ContextConsumer=l,We.ContextProvider=a,We.Element=t,We.ForwardRef=d,We.Fragment=o,We.Lazy=m,We.Memo=h,We.Portal=n,We.Profiler=i,We.StrictMode=r,We.Suspense=f,We.isAsyncMode=function(T){return S(T)||x(T)===c},We.isConcurrentMode=S,We.isContextConsumer=function(T){return x(T)===l},We.isContextProvider=function(T){return x(T)===a},We.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},We.isForwardRef=function(T){return x(T)===d},We.isFragment=function(T){return x(T)===o},We.isLazy=function(T){return x(T)===m},We.isMemo=function(T){return x(T)===h},We.isPortal=function(T){return x(T)===n},We.isProfiler=function(T){return x(T)===i},We.isStrictMode=function(T){return x(T)===r},We.isSuspense=function(T){return x(T)===f},We.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===o||T===u||T===i||T===r||T===f||T===p||typeof T=="object"&&T!==null&&(T.$$typeof===m||T.$$typeof===h||T.$$typeof===a||T.$$typeof===l||T.$$typeof===d||T.$$typeof===y||T.$$typeof===v||T.$$typeof===C||T.$$typeof===g)},We.typeOf=x,We}var Ue={};/** @license React v16.13.1
30
30
  * react-is.development.js
31
31
  *
32
32
  * Copyright (c) Facebook, Inc. and its affiliates.
33
33
  *
34
34
  * This source code is licensed under the MIT license found in the
35
35
  * LICENSE file in the root directory of this source tree.
36
- */var Pd;function O0(){return Pd||(Pd=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(W){return typeof W=="string"||typeof W=="function"||W===o||W===u||W===i||W===r||W===f||W===p||typeof W=="object"&&W!==null&&(W.$$typeof===m||W.$$typeof===h||W.$$typeof===a||W.$$typeof===l||W.$$typeof===d||W.$$typeof===y||W.$$typeof===v||W.$$typeof===w||W.$$typeof===g)}function S(W){if(typeof W=="object"&&W!==null){var ee=W.$$typeof;switch(ee){case t:var J=W.type;switch(J){case c:case u:case o:case i:case r:case f:return J;default:var ie=J&&J.$$typeof;switch(ie){case l:case d:case m:case h:case a:return ie;default:return ee}}case n:return ee}}}var T=c,E=u,M=l,_=a,D=t,$=d,j=o,C=m,L=h,k=n,I=i,O=r,N=f,F=!1;function V(W){return F||(F=!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.")),B(W)||S(W)===c}function B(W){return S(W)===u}function R(W){return S(W)===l}function Y(W){return S(W)===a}function G(W){return typeof W=="object"&&W!==null&&W.$$typeof===t}function Z(W){return S(W)===d}function re(W){return S(W)===o}function X(W){return S(W)===m}function Q(W){return S(W)===h}function K(W){return S(W)===n}function te(W){return S(W)===i}function z(W){return S(W)===r}function H(W){return S(W)===f}Ue.AsyncMode=T,Ue.ConcurrentMode=E,Ue.ContextConsumer=M,Ue.ContextProvider=_,Ue.Element=D,Ue.ForwardRef=$,Ue.Fragment=j,Ue.Lazy=C,Ue.Memo=L,Ue.Portal=k,Ue.Profiler=I,Ue.StrictMode=O,Ue.Suspense=N,Ue.isAsyncMode=V,Ue.isConcurrentMode=B,Ue.isContextConsumer=R,Ue.isContextProvider=Y,Ue.isElement=G,Ue.isForwardRef=Z,Ue.isFragment=re,Ue.isLazy=X,Ue.isMemo=Q,Ue.isPortal=K,Ue.isProfiler=te,Ue.isStrictMode=z,Ue.isSuspense=H,Ue.isValidElementType=x,Ue.typeOf=S}()),Ue}var Ed;function Xh(){return Ed||(Ed=1,process.env.NODE_ENV==="production"?Gs.exports=M0():Gs.exports=O0()),Gs.exports}/*
36
+ */var Pd;function O0(){return Pd||(Pd=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function x(W){return typeof W=="string"||typeof W=="function"||W===o||W===u||W===i||W===r||W===f||W===p||typeof W=="object"&&W!==null&&(W.$$typeof===m||W.$$typeof===h||W.$$typeof===a||W.$$typeof===l||W.$$typeof===d||W.$$typeof===y||W.$$typeof===v||W.$$typeof===C||W.$$typeof===g)}function S(W){if(typeof W=="object"&&W!==null){var ee=W.$$typeof;switch(ee){case t:var J=W.type;switch(J){case c:case u:case o:case i:case r:case f:return J;default:var ie=J&&J.$$typeof;switch(ie){case l:case d:case m:case h:case a:return ie;default:return ee}}case n:return ee}}}var T=c,E=u,M=l,A=a,k=t,$=d,j=o,w=m,L=h,D=n,I=i,O=r,N=f,F=!1;function V(W){return F||(F=!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.")),B(W)||S(W)===c}function B(W){return S(W)===u}function R(W){return S(W)===l}function Y(W){return S(W)===a}function G(W){return typeof W=="object"&&W!==null&&W.$$typeof===t}function Z(W){return S(W)===d}function re(W){return S(W)===o}function X(W){return S(W)===m}function Q(W){return S(W)===h}function K(W){return S(W)===n}function te(W){return S(W)===i}function z(W){return S(W)===r}function H(W){return S(W)===f}Ue.AsyncMode=T,Ue.ConcurrentMode=E,Ue.ContextConsumer=M,Ue.ContextProvider=A,Ue.Element=k,Ue.ForwardRef=$,Ue.Fragment=j,Ue.Lazy=w,Ue.Memo=L,Ue.Portal=D,Ue.Profiler=I,Ue.StrictMode=O,Ue.Suspense=N,Ue.isAsyncMode=V,Ue.isConcurrentMode=B,Ue.isContextConsumer=R,Ue.isContextProvider=Y,Ue.isElement=G,Ue.isForwardRef=Z,Ue.isFragment=re,Ue.isLazy=X,Ue.isMemo=Q,Ue.isPortal=K,Ue.isProfiler=te,Ue.isStrictMode=z,Ue.isSuspense=H,Ue.isValidElementType=x,Ue.typeOf=S}()),Ue}var Ed;function Xh(){return Ed||(Ed=1,process.env.NODE_ENV==="production"?Gs.exports=M0():Gs.exports=O0()),Gs.exports}/*
37
37
  object-assign
38
38
  (c) Sindre Sorhus
39
39
  @license MIT
40
- */var $a,Md;function k0(){if(Md)return $a;Md=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function r(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $a=r()?Object.assign:function(i,a){for(var l,c=o(i),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var f in l)t.call(l,f)&&(c[f]=l[f]);if(e){u=e(l);for(var p=0;p<u.length;p++)n.call(l,u[p])&&(c[u[p]]=l[u[p]])}}return c},$a}var Va,Od;function Ec(){if(Od)return Va;Od=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Va=e,Va}var Fa,kd;function Qh(){return kd||(kd=1,Fa=Function.call.bind(Object.prototype.hasOwnProperty)),Fa}var Ba,Dd;function D0(){if(Dd)return Ba;Dd=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ec(),n={},o=Qh();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function r(i,a,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(o(i,d)){var f;try{if(typeof i[d]!="function"){var p=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}f=i[d](a,d,c,l,null,t)}catch(m){f=m}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var h=u?u():"";e("Failed "+l+" type: "+f.message+(h??""))}}}}return r.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ba=r,Ba}var za,Rd;function R0(){if(Rd)return za;Rd=1;var e=Xh(),t=k0(),n=Ec(),o=Qh(),r=D0(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return za=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(B){var R=B&&(u&&B[u]||B[d]);if(typeof R=="function")return R}var p="<<anonymous>>",h={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:w(),arrayOf:x,element:S(),elementType:T(),instanceOf:E,node:$(),objectOf:_,oneOf:M,oneOfType:D,shape:C,exact:L};function m(B,R){return B===R?B!==0||1/B===1/R:B!==B&&R!==R}function g(B,R){this.message=B,this.data=R&&typeof R=="object"?R:{},this.stack=""}g.prototype=Error.prototype;function y(B){if(process.env.NODE_ENV!=="production")var R={},Y=0;function G(re,X,Q,K,te,z,H){if(K=K||p,z=z||Q,H!==n){if(c){var W=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 W.name="Invariant Violation",W}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ee=K+":"+Q;!R[ee]&&Y<3&&(i("You are manually calling a React.PropTypes validation function for the `"+z+"` prop on `"+K+"`. 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."),R[ee]=!0,Y++)}}return X[Q]==null?re?X[Q]===null?new g("The "+te+" `"+z+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new g("The "+te+" `"+z+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:B(X,Q,K,te,z)}var Z=G.bind(null,!1);return Z.isRequired=G.bind(null,!0),Z}function v(B){function R(Y,G,Z,re,X,Q){var K=Y[G],te=O(K);if(te!==B){var z=N(K);return new g("Invalid "+re+" `"+X+"` of type "+("`"+z+"` supplied to `"+Z+"`, expected ")+("`"+B+"`."),{expectedType:B})}return null}return y(R)}function w(){return y(a)}function x(B){function R(Y,G,Z,re,X){if(typeof B!="function")return new g("Property `"+X+"` of component `"+Z+"` has invalid PropType notation inside arrayOf.");var Q=Y[G];if(!Array.isArray(Q)){var K=O(Q);return new g("Invalid "+re+" `"+X+"` of type "+("`"+K+"` supplied to `"+Z+"`, expected an array."))}for(var te=0;te<Q.length;te++){var z=B(Q,te,Z,re,X+"["+te+"]",n);if(z instanceof Error)return z}return null}return y(R)}function S(){function B(R,Y,G,Z,re){var X=R[Y];if(!l(X)){var Q=O(X);return new g("Invalid "+Z+" `"+re+"` of type "+("`"+Q+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return y(B)}function T(){function B(R,Y,G,Z,re){var X=R[Y];if(!e.isValidElementType(X)){var Q=O(X);return new g("Invalid "+Z+" `"+re+"` of type "+("`"+Q+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return y(B)}function E(B){function R(Y,G,Z,re,X){if(!(Y[G]instanceof B)){var Q=B.name||p,K=V(Y[G]);return new g("Invalid "+re+" `"+X+"` of type "+("`"+K+"` supplied to `"+Z+"`, expected ")+("instance of `"+Q+"`."))}return null}return y(R)}function M(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function R(Y,G,Z,re,X){for(var Q=Y[G],K=0;K<B.length;K++)if(m(Q,B[K]))return null;var te=JSON.stringify(B,function(H,W){var ee=N(W);return ee==="symbol"?String(W):W});return new g("Invalid "+re+" `"+X+"` of value `"+String(Q)+"` "+("supplied to `"+Z+"`, expected one of "+te+"."))}return y(R)}function _(B){function R(Y,G,Z,re,X){if(typeof B!="function")return new g("Property `"+X+"` of component `"+Z+"` has invalid PropType notation inside objectOf.");var Q=Y[G],K=O(Q);if(K!=="object")return new g("Invalid "+re+" `"+X+"` of type "+("`"+K+"` supplied to `"+Z+"`, expected an object."));for(var te in Q)if(o(Q,te)){var z=B(Q,te,Z,re,X+"."+te,n);if(z instanceof Error)return z}return null}return y(R)}function D(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var R=0;R<B.length;R++){var Y=B[R];if(typeof Y!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+F(Y)+" at index "+R+"."),a}function G(Z,re,X,Q,K){for(var te=[],z=0;z<B.length;z++){var H=B[z],W=H(Z,re,X,Q,K,n);if(W==null)return null;W.data&&o(W.data,"expectedType")&&te.push(W.data.expectedType)}var ee=te.length>0?", expected one of type ["+te.join(", ")+"]":"";return new g("Invalid "+Q+" `"+K+"` supplied to "+("`"+X+"`"+ee+"."))}return y(G)}function $(){function B(R,Y,G,Z,re){return k(R[Y])?null:new g("Invalid "+Z+" `"+re+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return y(B)}function j(B,R,Y,G,Z){return new g((B||"React class")+": "+R+" type `"+Y+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Z+"`.")}function C(B){function R(Y,G,Z,re,X){var Q=Y[G],K=O(Q);if(K!=="object")return new g("Invalid "+re+" `"+X+"` of type `"+K+"` "+("supplied to `"+Z+"`, expected `object`."));for(var te in B){var z=B[te];if(typeof z!="function")return j(Z,re,X,te,N(z));var H=z(Q,te,Z,re,X+"."+te,n);if(H)return H}return null}return y(R)}function L(B){function R(Y,G,Z,re,X){var Q=Y[G],K=O(Q);if(K!=="object")return new g("Invalid "+re+" `"+X+"` of type `"+K+"` "+("supplied to `"+Z+"`, expected `object`."));var te=t({},Y[G],B);for(var z in te){var H=B[z];if(o(B,z)&&typeof H!="function")return j(Z,re,X,z,N(H));if(!H)return new g("Invalid "+re+" `"+X+"` key `"+z+"` supplied to `"+Z+"`.\nBad object: "+JSON.stringify(Y[G],null," ")+`
41
- Valid keys: `+JSON.stringify(Object.keys(B),null," "));var W=H(Q,z,Z,re,X+"."+z,n);if(W)return W}return null}return y(R)}function k(B){switch(typeof B){case"number":case"string":case"undefined":return!0;case"boolean":return!B;case"object":if(Array.isArray(B))return B.every(k);if(B===null||l(B))return!0;var R=f(B);if(R){var Y=R.call(B),G;if(R!==B.entries){for(;!(G=Y.next()).done;)if(!k(G.value))return!1}else for(;!(G=Y.next()).done;){var Z=G.value;if(Z&&!k(Z[1]))return!1}}else return!1;return!0;default:return!1}}function I(B,R){return B==="symbol"?!0:R?R["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&R instanceof Symbol:!1}function O(B){var R=typeof B;return Array.isArray(B)?"array":B instanceof RegExp?"object":I(R,B)?"symbol":R}function N(B){if(typeof B>"u"||B===null)return""+B;var R=O(B);if(R==="object"){if(B instanceof Date)return"date";if(B instanceof RegExp)return"regexp"}return R}function F(B){var R=N(B);switch(R){case"array":case"object":return"an "+R;case"boolean":case"date":case"regexp":return"a "+R;default:return R}}function V(B){return!B.constructor||!B.constructor.name?p:B.constructor.name}return h.checkPropTypes=r,h.resetWarningCache=r.resetWarningCache,h.PropTypes=h,h},za}var Wa,Id;function I0(){if(Id)return Wa;Id=1;var e=Ec();function t(){}function n(){}return n.resetWarningCache=t,Wa=function(){function o(a,l,c,u,d,f){if(f!==e){var p=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 p.name="Invariant Violation",p}}o.isRequired=o;function r(){return o}var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Wa}if(process.env.NODE_ENV!=="production"){var A0=Xh(),N0=!0;Ol.exports=R0()(A0.isElement,N0)}else Ol.exports=I0()();var _0=Ol.exports;const s=oo(_0);function Jh(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Jh(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function ye(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Jh(e))&&(o&&(o+=" "),o+=t);return o}function Ce(e,t,n=void 0){const o={};for(const r in e){const i=e[r];let a="",l=!0;for(let c=0;c<i.length;c+=1){const u=i[c];u&&(a+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(a+=" "+n[u]))}o[r]=a}return o}var kl={exports:{}},Ge={};/**
40
+ */var Fa,Md;function k0(){if(Md)return Fa;Md=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function r(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Fa=r()?Object.assign:function(i,a){for(var l,c=o(i),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var f in l)t.call(l,f)&&(c[f]=l[f]);if(e){u=e(l);for(var p=0;p<u.length;p++)n.call(l,u[p])&&(c[u[p]]=l[u[p]])}}return c},Fa}var Ba,Od;function Oc(){if(Od)return Ba;Od=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ba=e,Ba}var za,kd;function Qh(){return kd||(kd=1,za=Function.call.bind(Object.prototype.hasOwnProperty)),za}var Wa,Dd;function D0(){if(Dd)return Wa;Dd=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Oc(),n={},o=Qh();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function r(i,a,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(o(i,d)){var f;try{if(typeof i[d]!="function"){var p=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}f=i[d](a,d,c,l,null,t)}catch(m){f=m}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var h=u?u():"";e("Failed "+l+" type: "+f.message+(h??""))}}}}return r.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Wa=r,Wa}var Ua,Rd;function R0(){if(Rd)return Ua;Rd=1;var e=Xh(),t=k0(),n=Oc(),o=Qh(),r=D0(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return Ua=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(B){var R=B&&(u&&B[u]||B[d]);if(typeof R=="function")return R}var p="<<anonymous>>",h={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:C(),arrayOf:x,element:S(),elementType:T(),instanceOf:E,node:$(),objectOf:A,oneOf:M,oneOfType:k,shape:w,exact:L};function m(B,R){return B===R?B!==0||1/B===1/R:B!==B&&R!==R}function g(B,R){this.message=B,this.data=R&&typeof R=="object"?R:{},this.stack=""}g.prototype=Error.prototype;function y(B){if(process.env.NODE_ENV!=="production")var R={},Y=0;function G(re,X,Q,K,te,z,H){if(K=K||p,z=z||Q,H!==n){if(c){var W=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 W.name="Invariant Violation",W}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ee=K+":"+Q;!R[ee]&&Y<3&&(i("You are manually calling a React.PropTypes validation function for the `"+z+"` prop on `"+K+"`. 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."),R[ee]=!0,Y++)}}return X[Q]==null?re?X[Q]===null?new g("The "+te+" `"+z+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new g("The "+te+" `"+z+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:B(X,Q,K,te,z)}var Z=G.bind(null,!1);return Z.isRequired=G.bind(null,!0),Z}function v(B){function R(Y,G,Z,re,X,Q){var K=Y[G],te=O(K);if(te!==B){var z=N(K);return new g("Invalid "+re+" `"+X+"` of type "+("`"+z+"` supplied to `"+Z+"`, expected ")+("`"+B+"`."),{expectedType:B})}return null}return y(R)}function C(){return y(a)}function x(B){function R(Y,G,Z,re,X){if(typeof B!="function")return new g("Property `"+X+"` of component `"+Z+"` has invalid PropType notation inside arrayOf.");var Q=Y[G];if(!Array.isArray(Q)){var K=O(Q);return new g("Invalid "+re+" `"+X+"` of type "+("`"+K+"` supplied to `"+Z+"`, expected an array."))}for(var te=0;te<Q.length;te++){var z=B(Q,te,Z,re,X+"["+te+"]",n);if(z instanceof Error)return z}return null}return y(R)}function S(){function B(R,Y,G,Z,re){var X=R[Y];if(!l(X)){var Q=O(X);return new g("Invalid "+Z+" `"+re+"` of type "+("`"+Q+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return y(B)}function T(){function B(R,Y,G,Z,re){var X=R[Y];if(!e.isValidElementType(X)){var Q=O(X);return new g("Invalid "+Z+" `"+re+"` of type "+("`"+Q+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return y(B)}function E(B){function R(Y,G,Z,re,X){if(!(Y[G]instanceof B)){var Q=B.name||p,K=V(Y[G]);return new g("Invalid "+re+" `"+X+"` of type "+("`"+K+"` supplied to `"+Z+"`, expected ")+("instance of `"+Q+"`."))}return null}return y(R)}function M(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function R(Y,G,Z,re,X){for(var Q=Y[G],K=0;K<B.length;K++)if(m(Q,B[K]))return null;var te=JSON.stringify(B,function(H,W){var ee=N(W);return ee==="symbol"?String(W):W});return new g("Invalid "+re+" `"+X+"` of value `"+String(Q)+"` "+("supplied to `"+Z+"`, expected one of "+te+"."))}return y(R)}function A(B){function R(Y,G,Z,re,X){if(typeof B!="function")return new g("Property `"+X+"` of component `"+Z+"` has invalid PropType notation inside objectOf.");var Q=Y[G],K=O(Q);if(K!=="object")return new g("Invalid "+re+" `"+X+"` of type "+("`"+K+"` supplied to `"+Z+"`, expected an object."));for(var te in Q)if(o(Q,te)){var z=B(Q,te,Z,re,X+"."+te,n);if(z instanceof Error)return z}return null}return y(R)}function k(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var R=0;R<B.length;R++){var Y=B[R];if(typeof Y!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+F(Y)+" at index "+R+"."),a}function G(Z,re,X,Q,K){for(var te=[],z=0;z<B.length;z++){var H=B[z],W=H(Z,re,X,Q,K,n);if(W==null)return null;W.data&&o(W.data,"expectedType")&&te.push(W.data.expectedType)}var ee=te.length>0?", expected one of type ["+te.join(", ")+"]":"";return new g("Invalid "+Q+" `"+K+"` supplied to "+("`"+X+"`"+ee+"."))}return y(G)}function $(){function B(R,Y,G,Z,re){return D(R[Y])?null:new g("Invalid "+Z+" `"+re+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return y(B)}function j(B,R,Y,G,Z){return new g((B||"React class")+": "+R+" type `"+Y+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Z+"`.")}function w(B){function R(Y,G,Z,re,X){var Q=Y[G],K=O(Q);if(K!=="object")return new g("Invalid "+re+" `"+X+"` of type `"+K+"` "+("supplied to `"+Z+"`, expected `object`."));for(var te in B){var z=B[te];if(typeof z!="function")return j(Z,re,X,te,N(z));var H=z(Q,te,Z,re,X+"."+te,n);if(H)return H}return null}return y(R)}function L(B){function R(Y,G,Z,re,X){var Q=Y[G],K=O(Q);if(K!=="object")return new g("Invalid "+re+" `"+X+"` of type `"+K+"` "+("supplied to `"+Z+"`, expected `object`."));var te=t({},Y[G],B);for(var z in te){var H=B[z];if(o(B,z)&&typeof H!="function")return j(Z,re,X,z,N(H));if(!H)return new g("Invalid "+re+" `"+X+"` key `"+z+"` supplied to `"+Z+"`.\nBad object: "+JSON.stringify(Y[G],null," ")+`
41
+ Valid keys: `+JSON.stringify(Object.keys(B),null," "));var W=H(Q,z,Z,re,X+"."+z,n);if(W)return W}return null}return y(R)}function D(B){switch(typeof B){case"number":case"string":case"undefined":return!0;case"boolean":return!B;case"object":if(Array.isArray(B))return B.every(D);if(B===null||l(B))return!0;var R=f(B);if(R){var Y=R.call(B),G;if(R!==B.entries){for(;!(G=Y.next()).done;)if(!D(G.value))return!1}else for(;!(G=Y.next()).done;){var Z=G.value;if(Z&&!D(Z[1]))return!1}}else return!1;return!0;default:return!1}}function I(B,R){return B==="symbol"?!0:R?R["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&R instanceof Symbol:!1}function O(B){var R=typeof B;return Array.isArray(B)?"array":B instanceof RegExp?"object":I(R,B)?"symbol":R}function N(B){if(typeof B>"u"||B===null)return""+B;var R=O(B);if(R==="object"){if(B instanceof Date)return"date";if(B instanceof RegExp)return"regexp"}return R}function F(B){var R=N(B);switch(R){case"array":case"object":return"an "+R;case"boolean":case"date":case"regexp":return"a "+R;default:return R}}function V(B){return!B.constructor||!B.constructor.name?p:B.constructor.name}return h.checkPropTypes=r,h.resetWarningCache=r.resetWarningCache,h.PropTypes=h,h},Ua}var Ha,Id;function I0(){if(Id)return Ha;Id=1;var e=Oc();function t(){}function n(){}return n.resetWarningCache=t,Ha=function(){function o(a,l,c,u,d,f){if(f!==e){var p=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 p.name="Invariant Violation",p}}o.isRequired=o;function r(){return o}var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Ha}if(process.env.NODE_ENV!=="production"){var A0=Xh(),N0=!0;Dl.exports=R0()(A0.isElement,N0)}else Dl.exports=I0()();var _0=Dl.exports;const s=oo(_0);function Jh(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Jh(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function ye(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Jh(e))&&(o&&(o+=" "),o+=t);return o}function we(e,t,n=void 0){const o={};for(const r in e){const i=e[r];let a="",l=!0;for(let c=0;c<i.length;c+=1){const u=i[c];u&&(a+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(a+=" "+n[u]))}o[r]=a}return o}var Rl={exports:{}},Ge={};/**
42
42
  * @license React
43
43
  * react-is.production.js
44
44
  *
@@ -54,15 +54,15 @@ Valid keys: `+JSON.stringify(Object.keys(B),null," "));var W=H(Q,z,Z,re,X+"."+z
54
54
  *
55
55
  * This source code is licensed under the MIT license found in the
56
56
  * LICENSE file in the root directory of this source tree.
57
- */var Nd;function L0(){return Nd||(Nd=1,process.env.NODE_ENV!=="production"&&function(){function e(g){if(typeof g=="object"&&g!==null){var y=g.$$typeof;switch(y){case t:switch(g=g.type,g){case o:case i:case r:case u:case d:case h:return g;default:switch(g=g&&g.$$typeof,g){case l:case c:case p:case f:return g;case a:return g;default:return y}}case n:return y}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");Ke.ContextConsumer=a,Ke.ContextProvider=l,Ke.Element=t,Ke.ForwardRef=c,Ke.Fragment=o,Ke.Lazy=p,Ke.Memo=f,Ke.Portal=n,Ke.Profiler=i,Ke.StrictMode=r,Ke.Suspense=u,Ke.SuspenseList=d,Ke.isContextConsumer=function(g){return e(g)===a},Ke.isContextProvider=function(g){return e(g)===l},Ke.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},Ke.isForwardRef=function(g){return e(g)===c},Ke.isFragment=function(g){return e(g)===o},Ke.isLazy=function(g){return e(g)===p},Ke.isMemo=function(g){return e(g)===f},Ke.isPortal=function(g){return e(g)===n},Ke.isProfiler=function(g){return e(g)===i},Ke.isStrictMode=function(g){return e(g)===r},Ke.isSuspense=function(g){return e(g)===u},Ke.isSuspenseList=function(g){return e(g)===d},Ke.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===o||g===i||g===r||g===u||g===d||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===f||g.$$typeof===l||g.$$typeof===a||g.$$typeof===c||g.$$typeof===m||g.getModuleId!==void 0)},Ke.typeOf=e}()),Ke}process.env.NODE_ENV==="production"?kl.exports=j0():kl.exports=L0();var Lo=kl.exports;function xn(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 em(e){if(P.isValidElement(e)||Lo.isValidElementType(e)||!xn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=em(e[n])}),t}function At(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return xn(e)&&xn(t)&&Object.keys(t).forEach(r=>{P.isValidElement(t[r])||Lo.isValidElementType(t[r])?o[r]=t[r]:xn(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&xn(e[r])?o[r]=At(e[r],t[r],n):n.clone?o[r]=xn(t[r])?em(t[r]):t[r]:o[r]=t[r]}),o}function ts(e,t){return t?At(e,t,{clone:!1}):e}const ro=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function _d(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,r)=>{var a,l;const i=/min-width:\s*([0-9.]+)/;return+(((a=o.match(i))==null?void 0:a[1])||0)-+(((l=r.match(i))==null?void 0:l[1])||0)});return n.length?n.reduce((o,r)=>{const i=t[r];return delete o[r],o[r]=i,o},{...t}):t}function $0(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function V0(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
58
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Tn(18,`(${t})`));return null}const[,o,r]=n,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(i)}function F0(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...l)=>t(e.breakpoints.up(...l),a),i.down=(...l)=>t(e.breakpoints.down(...l),a),i.between=(...l)=>t(e.breakpoints.between(...l),a),i.only=(...l)=>t(e.breakpoints.only(...l),a),i.not=(...l)=>{const c=t(e.breakpoints.not(...l),a);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const o={},r=i=>(n(o,i),o);return n(r),{...e,containerQueries:r}}const Yi={xs:0,sm:600,md:900,lg:1200,xl:1536},jd={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Yi[e]}px)`},B0={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Yi[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function _n(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const i=o.breakpoints||jd;return t.reduce((a,l,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=o.breakpoints||jd;return Object.keys(t).reduce((a,l)=>{if($0(i.keys,l)){const c=V0(o.containerQueries?o:B0,l);c&&(a[c]=n(t[l],l))}else if(Object.keys(i.values||Yi).includes(l)){const c=i.up(l);a[c]=n(t[l],l)}else{const c=l;a[c]=t[c]}return a},{})}return n(t)}function z0(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((o,r)=>{const i=e.up(r);return o[i]={},o},{}))||{}}function Ld(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function qi(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((r,i)=>r&&r[i]?r[i]:null,e);if(o!=null)return o}return t.split(".").reduce((o,r)=>o&&o[r]!=null?o[r]:null,e)}function Ci(e,t,n,o=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||o:r=qi(e,n)||o,t&&(r=t(r,o,e)),r}function mt(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=a=>{if(a[t]==null)return null;const l=a[t],c=a.theme,u=qi(c,o)||{};return _n(a,l,f=>{let p=Ci(u,r,f);return f===p&&typeof f=="string"&&(p=Ci(u,r,`${t}${f==="default"?"":ce(f)}`,f)),n===!1?p:{[n]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:ro}:{},i.filterProps=[t],i}function W0(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const U0={m:"margin",p:"padding"},H0={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},$d={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Y0=W0(e=>{if(e.length>2)if($d[e])e=$d[e];else return[e];const[t,n]=e.split(""),o=U0[t],r=H0[n]||"";return Array.isArray(r)?r.map(i=>o+i):[o+r]}),Gi=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ki=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],q0=[...Gi,...Ki];function Ms(e,t,n,o){const r=qi(e,t,!0)??n;return typeof r=="number"||typeof r=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${i}.`),typeof r=="string"?r.startsWith("var(")&&i===0?0:r.startsWith("var(")&&i===1?r:`calc(${i} * ${r})`:r*i):Array.isArray(r)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>r.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(r)}.`,`${a} > ${r.length-1}, you need to add the missing values.`].join(`
57
+ */var Nd;function L0(){return Nd||(Nd=1,process.env.NODE_ENV!=="production"&&function(){function e(g){if(typeof g=="object"&&g!==null){var y=g.$$typeof;switch(y){case t:switch(g=g.type,g){case o:case i:case r:case u:case d:case h:return g;default:switch(g=g&&g.$$typeof,g){case l:case c:case p:case f:return g;case a:return g;default:return y}}case n:return y}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");Ke.ContextConsumer=a,Ke.ContextProvider=l,Ke.Element=t,Ke.ForwardRef=c,Ke.Fragment=o,Ke.Lazy=p,Ke.Memo=f,Ke.Portal=n,Ke.Profiler=i,Ke.StrictMode=r,Ke.Suspense=u,Ke.SuspenseList=d,Ke.isContextConsumer=function(g){return e(g)===a},Ke.isContextProvider=function(g){return e(g)===l},Ke.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},Ke.isForwardRef=function(g){return e(g)===c},Ke.isFragment=function(g){return e(g)===o},Ke.isLazy=function(g){return e(g)===p},Ke.isMemo=function(g){return e(g)===f},Ke.isPortal=function(g){return e(g)===n},Ke.isProfiler=function(g){return e(g)===i},Ke.isStrictMode=function(g){return e(g)===r},Ke.isSuspense=function(g){return e(g)===u},Ke.isSuspenseList=function(g){return e(g)===d},Ke.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===o||g===i||g===r||g===u||g===d||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===f||g.$$typeof===l||g.$$typeof===a||g.$$typeof===c||g.$$typeof===m||g.getModuleId!==void 0)},Ke.typeOf=e}()),Ke}process.env.NODE_ENV==="production"?Rl.exports=j0():Rl.exports=L0();var Lo=Rl.exports;function xn(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 em(e){if(P.isValidElement(e)||Lo.isValidElementType(e)||!xn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=em(e[n])}),t}function At(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return xn(e)&&xn(t)&&Object.keys(t).forEach(r=>{P.isValidElement(t[r])||Lo.isValidElementType(t[r])?o[r]=t[r]:xn(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&xn(e[r])?o[r]=At(e[r],t[r],n):n.clone?o[r]=xn(t[r])?em(t[r]):t[r]:o[r]=t[r]}),o}function ts(e,t){return t?At(e,t,{clone:!1}):e}const ro=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function _d(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,r)=>{var a,l;const i=/min-width:\s*([0-9.]+)/;return+(((a=o.match(i))==null?void 0:a[1])||0)-+(((l=r.match(i))==null?void 0:l[1])||0)});return n.length?n.reduce((o,r)=>{const i=t[r];return delete o[r],o[r]=i,o},{...t}):t}function $0(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function V0(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
58
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Tn(18,`(${t})`));return null}const[,o,r]=n,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(i)}function F0(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...l)=>t(e.breakpoints.up(...l),a),i.down=(...l)=>t(e.breakpoints.down(...l),a),i.between=(...l)=>t(e.breakpoints.between(...l),a),i.only=(...l)=>t(e.breakpoints.only(...l),a),i.not=(...l)=>{const c=t(e.breakpoints.not(...l),a);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const o={},r=i=>(n(o,i),o);return n(r),{...e,containerQueries:r}}const Yi={xs:0,sm:600,md:900,lg:1200,xl:1536},jd={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Yi[e]}px)`},B0={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Yi[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function _n(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const i=o.breakpoints||jd;return t.reduce((a,l,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=o.breakpoints||jd;return Object.keys(t).reduce((a,l)=>{if($0(i.keys,l)){const c=V0(o.containerQueries?o:B0,l);c&&(a[c]=n(t[l],l))}else if(Object.keys(i.values||Yi).includes(l)){const c=i.up(l);a[c]=n(t[l],l)}else{const c=l;a[c]=t[c]}return a},{})}return n(t)}function z0(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((o,r)=>{const i=e.up(r);return o[i]={},o},{}))||{}}function Ld(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function qi(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((r,i)=>r&&r[i]?r[i]:null,e);if(o!=null)return o}return t.split(".").reduce((o,r)=>o&&o[r]!=null?o[r]:null,e)}function wi(e,t,n,o=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||o:r=qi(e,n)||o,t&&(r=t(r,o,e)),r}function mt(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=a=>{if(a[t]==null)return null;const l=a[t],c=a.theme,u=qi(c,o)||{};return _n(a,l,f=>{let p=wi(u,r,f);return f===p&&typeof f=="string"&&(p=wi(u,r,`${t}${f==="default"?"":ce(f)}`,f)),n===!1?p:{[n]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:ro}:{},i.filterProps=[t],i}function W0(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const U0={m:"margin",p:"padding"},H0={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},$d={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Y0=W0(e=>{if(e.length>2)if($d[e])e=$d[e];else return[e];const[t,n]=e.split(""),o=U0[t],r=H0[n]||"";return Array.isArray(r)?r.map(i=>o+i):[o+r]}),Gi=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ki=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],q0=[...Gi,...Ki];function Ms(e,t,n,o){const r=qi(e,t,!0)??n;return typeof r=="number"||typeof r=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${i}.`),typeof r=="string"?r.startsWith("var(")&&i===0?0:r.startsWith("var(")&&i===1?r:`calc(${i} * ${r})`:r*i):Array.isArray(r)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>r.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(r)}.`,`${a} > ${r.length-1}, you need to add the missing values.`].join(`
59
59
  `)):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(`
60
60
  `)));const l=r[a];return i>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof r=="function"?r:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${r}) is invalid.`,"It should be a number, an array or a function."].join(`
61
- `)),()=>{})}function Mc(e){return Ms(e,"spacing",8,"spacing")}function Os(e,t){return typeof t=="string"||t==null?t:e(t)}function G0(e,t){return n=>e.reduce((o,r)=>(o[r]=Os(t,n),o),{})}function K0(e,t,n,o){if(!t.includes(n))return null;const r=Y0(n),i=G0(r,o),a=e[n];return _n(e,a,i)}function tm(e,t){const n=Mc(e.theme);return Object.keys(e).map(o=>K0(e,t,o,n)).reduce(ts,{})}function pt(e){return tm(e,Gi)}pt.propTypes=process.env.NODE_ENV!=="production"?Gi.reduce((e,t)=>(e[t]=ro,e),{}):{};pt.filterProps=Gi;function ht(e){return tm(e,Ki)}ht.propTypes=process.env.NODE_ENV!=="production"?Ki.reduce((e,t)=>(e[t]=ro,e),{}):{};ht.filterProps=Ki;process.env.NODE_ENV!=="production"&&q0.reduce((e,t)=>(e[t]=ro,e),{});function Zi(...e){const t=e.reduce((o,r)=>(r.filterProps.forEach(i=>{o[i]=r}),o),{}),n=o=>Object.keys(o).reduce((r,i)=>t[i]?ts(r,t[i](o)):r,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,r)=>Object.assign(o,r.propTypes),{}):{},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function Qt(e){return typeof e!="number"?e:`${e}px solid`}function sn(e,t){return mt({prop:e,themeKey:"borders",transform:t})}const Z0=sn("border",Qt),X0=sn("borderTop",Qt),Q0=sn("borderRight",Qt),J0=sn("borderBottom",Qt),e1=sn("borderLeft",Qt),t1=sn("borderColor"),n1=sn("borderTopColor"),o1=sn("borderRightColor"),r1=sn("borderBottomColor"),s1=sn("borderLeftColor"),i1=sn("outline",Qt),a1=sn("outlineColor"),Xi=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ms(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:Os(t,o)});return _n(e,e.borderRadius,n)}return null};Xi.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:ro}:{};Xi.filterProps=["borderRadius"];Zi(Z0,X0,Q0,J0,e1,t1,n1,o1,r1,s1,Xi,i1,a1);const Qi=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ms(e.theme,"spacing",8,"gap"),n=o=>({gap:Os(t,o)});return _n(e,e.gap,n)}return null};Qi.propTypes=process.env.NODE_ENV!=="production"?{gap:ro}:{};Qi.filterProps=["gap"];const Ji=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ms(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:Os(t,o)});return _n(e,e.columnGap,n)}return null};Ji.propTypes=process.env.NODE_ENV!=="production"?{columnGap:ro}:{};Ji.filterProps=["columnGap"];const ea=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ms(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:Os(t,o)});return _n(e,e.rowGap,n)}return null};ea.propTypes=process.env.NODE_ENV!=="production"?{rowGap:ro}:{};ea.filterProps=["rowGap"];const l1=mt({prop:"gridColumn"}),c1=mt({prop:"gridRow"}),u1=mt({prop:"gridAutoFlow"}),d1=mt({prop:"gridAutoColumns"}),f1=mt({prop:"gridAutoRows"}),p1=mt({prop:"gridTemplateColumns"}),h1=mt({prop:"gridTemplateRows"}),m1=mt({prop:"gridTemplateAreas"}),g1=mt({prop:"gridArea"});Zi(Qi,Ji,ea,l1,c1,u1,d1,f1,p1,h1,m1,g1);function ar(e,t){return t==="grey"?t:e}const y1=mt({prop:"color",themeKey:"palette",transform:ar}),b1=mt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ar}),v1=mt({prop:"backgroundColor",themeKey:"palette",transform:ar});Zi(y1,b1,v1);function Ht(e){return e<=1&&e!==0?`${e*100}%`:e}const x1=mt({prop:"width",transform:Ht}),Oc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i,a,l,c;const o=((a=(i=(r=e.theme)==null?void 0:r.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||Yi[n];return o?((c=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Ht(n)}};return _n(e,e.maxWidth,t)}return null};Oc.filterProps=["maxWidth"];const S1=mt({prop:"minWidth",transform:Ht}),C1=mt({prop:"height",transform:Ht}),w1=mt({prop:"maxHeight",transform:Ht}),T1=mt({prop:"minHeight",transform:Ht});mt({prop:"size",cssProperty:"width",transform:Ht});mt({prop:"size",cssProperty:"height",transform:Ht});const P1=mt({prop:"boxSizing"});Zi(x1,Oc,S1,C1,w1,T1,P1);const ks={border:{themeKey:"borders",transform:Qt},borderTop:{themeKey:"borders",transform:Qt},borderRight:{themeKey:"borders",transform:Qt},borderBottom:{themeKey:"borders",transform:Qt},borderLeft:{themeKey:"borders",transform:Qt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Xi},color:{themeKey:"palette",transform:ar},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ar},backgroundColor:{themeKey:"palette",transform:ar},p:{style:ht},pt:{style:ht},pr:{style:ht},pb:{style:ht},pl:{style:ht},px:{style:ht},py:{style:ht},padding:{style:ht},paddingTop:{style:ht},paddingRight:{style:ht},paddingBottom:{style:ht},paddingLeft:{style:ht},paddingX:{style:ht},paddingY:{style:ht},paddingInline:{style:ht},paddingInlineStart:{style:ht},paddingInlineEnd:{style:ht},paddingBlock:{style:ht},paddingBlockStart:{style:ht},paddingBlockEnd:{style:ht},m:{style:pt},mt:{style:pt},mr:{style:pt},mb:{style:pt},ml:{style:pt},mx:{style:pt},my:{style:pt},margin:{style:pt},marginTop:{style:pt},marginRight:{style:pt},marginBottom:{style:pt},marginLeft:{style:pt},marginX:{style:pt},marginY:{style:pt},marginInline:{style:pt},marginInlineStart:{style:pt},marginInlineEnd:{style:pt},marginBlock:{style:pt},marginBlockStart:{style:pt},marginBlockEnd:{style:pt},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:Qi},rowGap:{style:ea},columnGap:{style:Ji},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ht},maxWidth:{style:Oc},minWidth:{transform:Ht},height:{transform:Ht},maxHeight:{transform:Ht},minHeight:{transform:Ht},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 E1(...e){const t=e.reduce((o,r)=>o.concat(Object.keys(r)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function M1(e,t){return typeof e=="function"?e(t):e}function O1(){function e(n,o,r,i){const a={[n]:o,theme:r},l=i[n];if(!l)return{[n]:o};const{cssProperty:c=n,themeKey:u,transform:d,style:f}=l;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[n]:o};const p=qi(r,u)||{};return f?f(a):_n(a,o,m=>{let g=Ci(p,d,m);return m===g&&typeof m=="string"&&(g=Ci(p,d,`${n}${m==="default"?"":ce(m)}`,m)),c===!1?g:{[c]:g}})}function t(n){const{sx:o,theme:r={},nested:i}=n||{};if(!o)return null;const a=r.unstable_sxConfig??ks;function l(c){let u=c;if(typeof c=="function")u=c(r);else if(typeof c!="object")return c;if(!u)return null;const d=z0(r.breakpoints),f=Object.keys(d);let p=d;return Object.keys(u).forEach(h=>{const m=M1(u[h],r);if(m!=null)if(typeof m=="object")if(a[h])p=ts(p,e(h,m,r,a));else{const g=_n({theme:r},m,y=>({[h]:y}));E1(g,m)?p[h]=t({sx:m,theme:r,nested:!0}):p=ts(p,g)}else p=ts(p,e(h,m,r,a))}),!i&&r.modularCssLayers?{"@layer sx":_d(r,Ld(f,p))}:_d(r,Ld(f,p))}return Array.isArray(o)?o.map(l):l(o)}return t}const fr=O1();fr.filterProps=["sx"];const k1=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??ks;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function D1(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=k1(n);let i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return xn(l)?{...o,...l}:o}:i={...o,...t},{...r,sx:i}}function R1(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function kc(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}].`),R1(e,t,n)}function I1(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(o=>o+o)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((o,r)=>r<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function Qn(e){if(e.type)return e;if(e.charAt(0)==="#")return Qn(I1(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.
61
+ `)),()=>{})}function kc(e){return Ms(e,"spacing",8,"spacing")}function Os(e,t){return typeof t=="string"||t==null?t:e(t)}function G0(e,t){return n=>e.reduce((o,r)=>(o[r]=Os(t,n),o),{})}function K0(e,t,n,o){if(!t.includes(n))return null;const r=Y0(n),i=G0(r,o),a=e[n];return _n(e,a,i)}function tm(e,t){const n=kc(e.theme);return Object.keys(e).map(o=>K0(e,t,o,n)).reduce(ts,{})}function pt(e){return tm(e,Gi)}pt.propTypes=process.env.NODE_ENV!=="production"?Gi.reduce((e,t)=>(e[t]=ro,e),{}):{};pt.filterProps=Gi;function ht(e){return tm(e,Ki)}ht.propTypes=process.env.NODE_ENV!=="production"?Ki.reduce((e,t)=>(e[t]=ro,e),{}):{};ht.filterProps=Ki;process.env.NODE_ENV!=="production"&&q0.reduce((e,t)=>(e[t]=ro,e),{});function Zi(...e){const t=e.reduce((o,r)=>(r.filterProps.forEach(i=>{o[i]=r}),o),{}),n=o=>Object.keys(o).reduce((r,i)=>t[i]?ts(r,t[i](o)):r,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,r)=>Object.assign(o,r.propTypes),{}):{},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function Qt(e){return typeof e!="number"?e:`${e}px solid`}function sn(e,t){return mt({prop:e,themeKey:"borders",transform:t})}const Z0=sn("border",Qt),X0=sn("borderTop",Qt),Q0=sn("borderRight",Qt),J0=sn("borderBottom",Qt),ex=sn("borderLeft",Qt),tx=sn("borderColor"),nx=sn("borderTopColor"),ox=sn("borderRightColor"),rx=sn("borderBottomColor"),sx=sn("borderLeftColor"),ix=sn("outline",Qt),ax=sn("outlineColor"),Xi=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ms(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:Os(t,o)});return _n(e,e.borderRadius,n)}return null};Xi.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:ro}:{};Xi.filterProps=["borderRadius"];Zi(Z0,X0,Q0,J0,ex,tx,nx,ox,rx,sx,Xi,ix,ax);const Qi=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ms(e.theme,"spacing",8,"gap"),n=o=>({gap:Os(t,o)});return _n(e,e.gap,n)}return null};Qi.propTypes=process.env.NODE_ENV!=="production"?{gap:ro}:{};Qi.filterProps=["gap"];const Ji=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ms(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:Os(t,o)});return _n(e,e.columnGap,n)}return null};Ji.propTypes=process.env.NODE_ENV!=="production"?{columnGap:ro}:{};Ji.filterProps=["columnGap"];const ea=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ms(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:Os(t,o)});return _n(e,e.rowGap,n)}return null};ea.propTypes=process.env.NODE_ENV!=="production"?{rowGap:ro}:{};ea.filterProps=["rowGap"];const lx=mt({prop:"gridColumn"}),cx=mt({prop:"gridRow"}),ux=mt({prop:"gridAutoFlow"}),dx=mt({prop:"gridAutoColumns"}),fx=mt({prop:"gridAutoRows"}),px=mt({prop:"gridTemplateColumns"}),hx=mt({prop:"gridTemplateRows"}),mx=mt({prop:"gridTemplateAreas"}),gx=mt({prop:"gridArea"});Zi(Qi,Ji,ea,lx,cx,ux,dx,fx,px,hx,mx,gx);function ar(e,t){return t==="grey"?t:e}const yx=mt({prop:"color",themeKey:"palette",transform:ar}),bx=mt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ar}),vx=mt({prop:"backgroundColor",themeKey:"palette",transform:ar});Zi(yx,bx,vx);function Ht(e){return e<=1&&e!==0?`${e*100}%`:e}const xx=mt({prop:"width",transform:Ht}),Dc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i,a,l,c;const o=((a=(i=(r=e.theme)==null?void 0:r.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||Yi[n];return o?((c=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:c.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Ht(n)}};return _n(e,e.maxWidth,t)}return null};Dc.filterProps=["maxWidth"];const Sx=mt({prop:"minWidth",transform:Ht}),wx=mt({prop:"height",transform:Ht}),Cx=mt({prop:"maxHeight",transform:Ht}),Tx=mt({prop:"minHeight",transform:Ht});mt({prop:"size",cssProperty:"width",transform:Ht});mt({prop:"size",cssProperty:"height",transform:Ht});const Px=mt({prop:"boxSizing"});Zi(xx,Dc,Sx,wx,Cx,Tx,Px);const ks={border:{themeKey:"borders",transform:Qt},borderTop:{themeKey:"borders",transform:Qt},borderRight:{themeKey:"borders",transform:Qt},borderBottom:{themeKey:"borders",transform:Qt},borderLeft:{themeKey:"borders",transform:Qt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Xi},color:{themeKey:"palette",transform:ar},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ar},backgroundColor:{themeKey:"palette",transform:ar},p:{style:ht},pt:{style:ht},pr:{style:ht},pb:{style:ht},pl:{style:ht},px:{style:ht},py:{style:ht},padding:{style:ht},paddingTop:{style:ht},paddingRight:{style:ht},paddingBottom:{style:ht},paddingLeft:{style:ht},paddingX:{style:ht},paddingY:{style:ht},paddingInline:{style:ht},paddingInlineStart:{style:ht},paddingInlineEnd:{style:ht},paddingBlock:{style:ht},paddingBlockStart:{style:ht},paddingBlockEnd:{style:ht},m:{style:pt},mt:{style:pt},mr:{style:pt},mb:{style:pt},ml:{style:pt},mx:{style:pt},my:{style:pt},margin:{style:pt},marginTop:{style:pt},marginRight:{style:pt},marginBottom:{style:pt},marginLeft:{style:pt},marginX:{style:pt},marginY:{style:pt},marginInline:{style:pt},marginInlineStart:{style:pt},marginInlineEnd:{style:pt},marginBlock:{style:pt},marginBlockStart:{style:pt},marginBlockEnd:{style:pt},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:Qi},rowGap:{style:ea},columnGap:{style:Ji},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ht},maxWidth:{style:Dc},minWidth:{transform:Ht},height:{transform:Ht},maxHeight:{transform:Ht},minHeight:{transform:Ht},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 Ex(...e){const t=e.reduce((o,r)=>o.concat(Object.keys(r)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function Mx(e,t){return typeof e=="function"?e(t):e}function Ox(){function e(n,o,r,i){const a={[n]:o,theme:r},l=i[n];if(!l)return{[n]:o};const{cssProperty:c=n,themeKey:u,transform:d,style:f}=l;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[n]:o};const p=qi(r,u)||{};return f?f(a):_n(a,o,m=>{let g=wi(p,d,m);return m===g&&typeof m=="string"&&(g=wi(p,d,`${n}${m==="default"?"":ce(m)}`,m)),c===!1?g:{[c]:g}})}function t(n){const{sx:o,theme:r={},nested:i}=n||{};if(!o)return null;const a=r.unstable_sxConfig??ks;function l(c){let u=c;if(typeof c=="function")u=c(r);else if(typeof c!="object")return c;if(!u)return null;const d=z0(r.breakpoints),f=Object.keys(d);let p=d;return Object.keys(u).forEach(h=>{const m=Mx(u[h],r);if(m!=null)if(typeof m=="object")if(a[h])p=ts(p,e(h,m,r,a));else{const g=_n({theme:r},m,y=>({[h]:y}));Ex(g,m)?p[h]=t({sx:m,theme:r,nested:!0}):p=ts(p,g)}else p=ts(p,e(h,m,r,a))}),!i&&r.modularCssLayers?{"@layer sx":_d(r,Ld(f,p))}:_d(r,Ld(f,p))}return Array.isArray(o)?o.map(l):l(o)}return t}const fr=Ox();fr.filterProps=["sx"];const kx=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??ks;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Dx(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=kx(n);let i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return xn(l)?{...o,...l}:o}:i={...o,...t},{...r,sx:i}}function Rx(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Rc(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}].`),Rx(e,t,n)}function Ix(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(o=>o+o)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((o,r)=>r<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function Qn(e){if(e.type)return e;if(e.charAt(0)==="#")return Qn(Ix(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.
62
62
  The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Tn(9,e));let o=e.substring(t+1,e.length-1),r;if(n==="color"){if(o=o.split(" "),r=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${r}\` color space.
63
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Tn(10,r))}else o=o.split(",");return o=o.map(i=>parseFloat(i)),{type:n,values:o,colorSpace:r}}const A1=e=>{const t=Qn(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},Hr=(e,t)=>{try{return A1(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function ta(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((r,i)=>i<3?parseInt(r,10):r):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function nm(e){e=Qn(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),a=(u,d=(u+n/30)%12)=>r-i*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),ta({type:l,values:c})}function Dl(e){e=Qn(e);let t=e.type==="hsl"||e.type==="hsla"?Qn(nm(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 Vd(e,t){const n=Dl(e),o=Dl(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function wi(e,t){return e=Qn(e),t=kc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ta(e)}function po(e,t,n){try{return wi(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function na(e,t){if(e=Qn(e),t=kc(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 ta(e)}function He(e,t,n){try{return na(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function oa(e,t){if(e=Qn(e),t=kc(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 ta(e)}function Ye(e,t,n){try{return oa(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function N1(e,t=.15){return Dl(e)>.5?na(e,t):oa(e,t)}function Ks(e,t,n){try{return N1(e,t)}catch{return e}}const fs={black:"#000",white:"#fff"},_1={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"},Wo={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Uo={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ir={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ho={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Yo={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},qo={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function om(){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:fs.white,default:fs.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 rm=om();function sm(){return{text:{primary:fs.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:fs.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 Rl=sm();function Fd(e,t,n,o){const r=o.light||o,i=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=oa(e.main,r):t==="dark"&&(e.dark=na(e.main,i)))}function Bd(e,t,n,o,r){const i=r.light||r,a=r.dark||r*1.5;t[n]||(t.hasOwnProperty(o)?t[n]=t[o]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function j1(e="light"){return e==="dark"?{main:Ho[200],light:Ho[50],dark:Ho[400]}:{main:Ho[700],light:Ho[400],dark:Ho[800]}}function L1(e="light"){return e==="dark"?{main:Wo[200],light:Wo[50],dark:Wo[400]}:{main:Wo[500],light:Wo[300],dark:Wo[700]}}function $1(e="light"){return e==="dark"?{main:Uo[500],light:Uo[300],dark:Uo[700]}:{main:Uo[700],light:Uo[400],dark:Uo[800]}}function V1(e="light"){return e==="dark"?{main:Yo[400],light:Yo[300],dark:Yo[700]}:{main:Yo[700],light:Yo[500],dark:Yo[900]}}function F1(e="light"){return e==="dark"?{main:qo[400],light:qo[300],dark:qo[700]}:{main:qo[800],light:qo[500],dark:qo[900]}}function B1(e="light"){return e==="dark"?{main:Ir[400],light:Ir[300],dark:Ir[700]}:{main:"#ed6c02",light:Ir[500],dark:Ir[900]}}function z1(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Dc(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,colorSpace:r,...i}=e,a=e.primary||j1(t),l=e.secondary||L1(t),c=e.error||$1(t),u=e.info||V1(t),d=e.success||F1(t),f=e.warning||B1(t);function p(y){if(r)return z1(y);const v=Vd(y,Rl.text.primary)>=n?Rl.text.primary:rm.text.primary;if(process.env.NODE_ENV!=="production"){const w=Vd(y,v);w<3&&console.error([`MUI: The contrast ratio of ${w}:1 for ${v} on ${y}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
64
- `))}return v}const h=({color:y,name:v,mainShade:w=500,lightShade:x=300,darkShade:S=700})=>{if(y={...y},!y.main&&y[w]&&(y.main=y[w]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
65
- The color object needs to have a \`main\` property or a \`${w}\` property.`:Tn(11,v?` (${v})`:"",w));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
63
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Tn(10,r))}else o=o.split(",");return o=o.map(i=>parseFloat(i)),{type:n,values:o,colorSpace:r}}const Ax=e=>{const t=Qn(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},Hr=(e,t)=>{try{return Ax(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function ta(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((r,i)=>i<3?parseInt(r,10):r):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function nm(e){e=Qn(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),a=(u,d=(u+n/30)%12)=>r-i*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),ta({type:l,values:c})}function Il(e){e=Qn(e);let t=e.type==="hsl"||e.type==="hsla"?Qn(nm(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 Vd(e,t){const n=Il(e),o=Il(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function Ci(e,t){return e=Qn(e),t=Rc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ta(e)}function po(e,t,n){try{return Ci(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function na(e,t){if(e=Qn(e),t=Rc(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 ta(e)}function He(e,t,n){try{return na(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function oa(e,t){if(e=Qn(e),t=Rc(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 ta(e)}function Ye(e,t,n){try{return oa(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Nx(e,t=.15){return Il(e)>.5?na(e,t):oa(e,t)}function Ks(e,t,n){try{return Nx(e,t)}catch{return e}}const fs={black:"#000",white:"#fff"},_x={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"},Wo={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Uo={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ir={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ho={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Yo={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},qo={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function om(){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:fs.white,default:fs.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 rm=om();function sm(){return{text:{primary:fs.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:fs.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 Al=sm();function Fd(e,t,n,o){const r=o.light||o,i=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=oa(e.main,r):t==="dark"&&(e.dark=na(e.main,i)))}function Bd(e,t,n,o,r){const i=r.light||r,a=r.dark||r*1.5;t[n]||(t.hasOwnProperty(o)?t[n]=t[o]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function jx(e="light"){return e==="dark"?{main:Ho[200],light:Ho[50],dark:Ho[400]}:{main:Ho[700],light:Ho[400],dark:Ho[800]}}function Lx(e="light"){return e==="dark"?{main:Wo[200],light:Wo[50],dark:Wo[400]}:{main:Wo[500],light:Wo[300],dark:Wo[700]}}function $x(e="light"){return e==="dark"?{main:Uo[500],light:Uo[300],dark:Uo[700]}:{main:Uo[700],light:Uo[400],dark:Uo[800]}}function Vx(e="light"){return e==="dark"?{main:Yo[400],light:Yo[300],dark:Yo[700]}:{main:Yo[700],light:Yo[500],dark:Yo[900]}}function Fx(e="light"){return e==="dark"?{main:qo[400],light:qo[300],dark:qo[700]}:{main:qo[800],light:qo[500],dark:qo[900]}}function Bx(e="light"){return e==="dark"?{main:Ir[400],light:Ir[300],dark:Ir[700]}:{main:"#ed6c02",light:Ir[500],dark:Ir[900]}}function zx(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Ic(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,colorSpace:r,...i}=e,a=e.primary||jx(t),l=e.secondary||Lx(t),c=e.error||$x(t),u=e.info||Vx(t),d=e.success||Fx(t),f=e.warning||Bx(t);function p(y){if(r)return zx(y);const v=Vd(y,Al.text.primary)>=n?Al.text.primary:rm.text.primary;if(process.env.NODE_ENV!=="production"){const C=Vd(y,v);C<3&&console.error([`MUI: The contrast ratio of ${C}:1 for ${v} on ${y}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
64
+ `))}return v}const h=({color:y,name:v,mainShade:C=500,lightShade:x=300,darkShade:S=700})=>{if(y={...y},!y.main&&y[C]&&(y.main=y[C]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
65
+ The color object needs to have a \`main\` property or a \`${C}\` property.`:Tn(11,v?` (${v})`:"",C));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
66
66
  \`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
67
67
 
68
68
  Did you intend to use one of the following approaches?
@@ -75,56 +75,56 @@ const theme1 = createTheme({ palette: {
75
75
 
76
76
  const theme2 = createTheme({ palette: {
77
77
  primary: { main: green[500] },
78
- } });`:Tn(12,v?` (${v})`:"",JSON.stringify(y.main)));return r?(Bd(r,y,"light",x,o),Bd(r,y,"dark",S,o)):(Fd(y,"light",x,o),Fd(y,"dark",S,o)),y.contrastText||(y.contrastText=p(y.main)),y};let m;return t==="light"?m=om():t==="dark"&&(m=sm()),process.env.NODE_ENV!=="production"&&(m||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),At({common:{...fs},mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:c,name:"error"}),warning:h({color:f,name:"warning"}),info:h({color:u,name:"info"}),success:h({color:d,name:"success"}),grey:_1,contrastThreshold:n,getContrastText:p,augmentColor:h,tonalOffset:o,...m},i)}function W1(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var U1={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function H1(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Y1=/[A-Z]|^ms/g,q1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,im=function(t){return t.charCodeAt(1)===45},zd=function(t){return t!=null&&typeof t!="boolean"},Ua=H1(function(e){return im(e)?e:e.replace(Y1,"-$&").toLowerCase()}),Wd=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(q1,function(o,r,i){return Gn={name:r,styles:i,next:Gn},r})}return U1[t]!==1&&!im(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ti(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return Gn={name:r.name,styles:r.styles,next:Gn},r.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Gn={name:a.name,styles:a.styles,next:Gn},a=a.next;var l=i.styles+";";return l}return G1(e,t,n)}}var c=n;return c}function G1(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=Ti(e,t,n[r])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;zd(l)&&(o+=Ua(i)+":"+Wd(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var c=0;c<a.length;c++)zd(a[c])&&(o+=Ua(i)+":"+Wd(i,a[c])+";");else{var u=Ti(e,t,a);switch(i){case"animation":case"animationName":{o+=Ua(i)+":"+u+";";break}default:o+=i+"{"+u+"}"}}}return o}var Ud=/label:\s*([^\s;{]+)\s*(;|$)/g,Gn;function K1(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,r="";Gn=void 0;var i=e[0];if(i==null||i.raw===void 0)o=!1,r+=Ti(n,t,i);else{var a=i;r+=a[0]}for(var l=1;l<e.length;l++)if(r+=Ti(n,t,e[l]),o){var c=i;r+=c[l]}Ud.lastIndex=0;for(var u="",d;(d=Ud.exec(r))!==null;)u+="-"+d[1];var f=W1(r)+u;return{name:f,styles:r,next:Gn}}/**
78
+ } });`:Tn(12,v?` (${v})`:"",JSON.stringify(y.main)));return r?(Bd(r,y,"light",x,o),Bd(r,y,"dark",S,o)):(Fd(y,"light",x,o),Fd(y,"dark",S,o)),y.contrastText||(y.contrastText=p(y.main)),y};let m;return t==="light"?m=om():t==="dark"&&(m=sm()),process.env.NODE_ENV!=="production"&&(m||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),At({common:{...fs},mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:c,name:"error"}),warning:h({color:f,name:"warning"}),info:h({color:u,name:"info"}),success:h({color:d,name:"success"}),grey:_x,contrastThreshold:n,getContrastText:p,augmentColor:h,tonalOffset:o,...m},i)}function Wx(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Ux={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Hx(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Yx=/[A-Z]|^ms/g,qx=/_EMO_([^_]+?)_([^]*?)_EMO_/g,im=function(t){return t.charCodeAt(1)===45},zd=function(t){return t!=null&&typeof t!="boolean"},Ya=Hx(function(e){return im(e)?e:e.replace(Yx,"-$&").toLowerCase()}),Wd=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(qx,function(o,r,i){return Gn={name:r,styles:i,next:Gn},r})}return Ux[t]!==1&&!im(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ti(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return Gn={name:r.name,styles:r.styles,next:Gn},r.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Gn={name:a.name,styles:a.styles,next:Gn},a=a.next;var l=i.styles+";";return l}return Gx(e,t,n)}}var c=n;return c}function Gx(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=Ti(e,t,n[r])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;zd(l)&&(o+=Ya(i)+":"+Wd(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var c=0;c<a.length;c++)zd(a[c])&&(o+=Ya(i)+":"+Wd(i,a[c])+";");else{var u=Ti(e,t,a);switch(i){case"animation":case"animationName":{o+=Ya(i)+":"+u+";";break}default:o+=i+"{"+u+"}"}}}return o}var Ud=/label:\s*([^\s;{]+)\s*(;|$)/g,Gn;function Kx(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,r="";Gn=void 0;var i=e[0];if(i==null||i.raw===void 0)o=!1,r+=Ti(n,t,i);else{var a=i;r+=a[0]}for(var l=1;l<e.length;l++)if(r+=Ti(n,t,e[l]),o){var c=i;r+=c[l]}Ud.lastIndex=0;for(var u="",d;(d=Ud.exec(r))!==null;)u+="-"+d[1];var f=Wx(r)+u;return{name:f,styles:r,next:Gn}}/**
79
79
  * @mui/styled-engine v7.3.7
80
80
  *
81
81
  * @license MIT
82
82
  * This source code is licensed under the MIT license found in the
83
83
  * LICENSE file in the root directory of this source tree.
84
- */function Z1(e,t){const n=Qv(e,t);return process.env.NODE_ENV!=="production"?(...o)=>{const r=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
85
- `)):o.some(i=>i===void 0)&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...o)}:n}function X1(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Hd=[];function Ao(e){return Hd[0]=e,K1(Hd)}const Q1="exact-prop: ​";function am(e){return process.env.NODE_ENV==="production"?e:{...e,[Q1]:t=>{const n=Object.keys(t).filter(o=>!e.hasOwnProperty(o));return n.length>0?new Error(`The following props are not supported: ${n.map(o=>`\`${o}\``).join(", ")}. Please remove them.`):null}}}const wt=typeof window<"u"?P.useLayoutEffect:P.useEffect;function J1(e){return Object.keys(e).length===0}function ex(e=null){const t=P.useContext(Jv.ThemeContext);return!t||J1(t)?e:t}const tx=P.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const fn=()=>P.useContext(tx)??!1;function ps(e,t,n=!1){const o={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const i=r;if(i==="components"||i==="slots")o[i]={...e[i],...o[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],l=t[i];if(!l)o[i]=a||{};else if(!a)o[i]=l;else{o[i]={...l};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const u=c;o[i][u]=ps(a[u],l[u],n)}}}else i==="className"&&n&&t.className?o.className=ye(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&n&&t.style?o.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:o[i]===void 0&&(o[i]=e[i])}return o}const nx=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function ox(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const r=t.components[n];return r.defaultProps?ps(r.defaultProps,o,t.components.mergeClassNameAndStyle):!r.styleOverrides&&!r.variants?ps(r,o,t.components.mergeClassNameAndStyle):o}function rx({props:e,name:t}){const n=P.useContext(nx);return ox({props:e,name:t,theme:{components:n}})}let Yd=0;function sx(e){const[t,n]=P.useState(e),o=e||t;return P.useEffect(()=>{t==null&&(Yd+=1,n(`mui-${Yd}`))},[t]),o}const ix={...P},qd=ix.useId;function so(e){if(qd!==void 0){const t=qd();return e??t}return sx(e)}const ax=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function lx(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,i=ax(t),a=Object.keys(i);function l(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function c(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-o/100}${n})`}function u(p,h){const m=a.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(m!==-1&&typeof t[a[m]]=="number"?t[a[m]]:h)-o/100}${n})`}function d(p){return a.indexOf(p)+1<a.length?u(p,a[a.indexOf(p)+1]):l(p)}function f(p){const h=a.indexOf(p);return h===0?l(a[1]):h===a.length-1?c(a[h]):u(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:l,down:c,between:u,only:d,not:f,unit:n,...r}}const cx={borderRadius:4};function ux(e=8,t=Mc({spacing:e})){if(e.mui)return e;const n=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function dx(e,t){var o;const n=this;if(n.vars){if(!((o=n.colorSchemes)!=null&&o[e])||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function lm(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...a}=e,l=lx(n),c=ux(r);let u=At({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:c,shape:{...cx,...i}},a);return u=F0(u),u.applyStyles=dx,u=t.reduce((d,f)=>At(d,f),u),u.unstable_sxConfig={...ks,...a==null?void 0:a.unstable_sxConfig},u.unstable_sx=function(f){return fr({sx:f,theme:this})},u}const Gd=(e,t,n,o=[])=>{let r=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(r)?r[Number(i)]=n:r&&typeof r=="object"&&(r[i]=n):r&&typeof r=="object"&&(r[i]||(r[i]=o.includes(i)?[]:{}),r=r[i])})},fx=(e,t,n)=>{function o(r,i=[],a=[]){Object.entries(r).forEach(([l,c])=>{(!n||n&&!n([...i,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?o(c,[...i,l],Array.isArray(c)?[...a,l]:a):t([...i,l],c,a))})}o(e)},px=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Ha(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},a={};return fx(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!o||!o(l,c))){const d=`--${n?`${n}-`:""}${l.join("-")}`,f=px(l,c);Object.assign(r,{[d]:f}),Gd(i,l,`var(${d})`,u),Gd(a,l,`var(${d}, ${f})`,u)}},l=>l[0]==="vars"),{css:r,vars:i,varsWithDefaults:a}}function hx(e,t={}){const{getSelector:n=v,disableCssColorScheme:o,colorSchemeSelector:r,enableContrastVars:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...u}=e,{vars:d,css:f,varsWithDefaults:p}=Ha(u,t);let h=p;const m={},{[c]:g,...y}=a;if(Object.entries(y||{}).forEach(([S,T])=>{const{vars:E,css:M,varsWithDefaults:_}=Ha(T,t);h=At(h,_),m[S]={css:M,vars:E}}),g){const{css:S,vars:T,varsWithDefaults:E}=Ha(g,t);h=At(h,E),m[c]={css:S,vars:T}}function v(S,T){var M,_;let E=r;if(r==="class"&&(E=".%s"),r==="data"&&(E="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(E=`[${r}="%s"]`),S){if(E==="media")return e.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${((_=(M=a[S])==null?void 0:M.palette)==null?void 0:_.mode)||S})`]:{":root":T}};if(E)return e.defaultColorScheme===S?`:root, ${E.replace("%s",String(S))}`:E.replace("%s",String(S))}return":root"}return{vars:h,generateThemeVars:()=>{let S={...d};return Object.entries(m).forEach(([,{vars:T}])=>{S=At(S,T)}),S},generateStyleSheets:()=>{var D,$;const S=[],T=e.defaultColorScheme||"light";function E(j,C){Object.keys(C).length&&S.push(typeof j=="string"?{[j]:{...C}}:j)}E(n(void 0,{...f}),f);const{[T]:M,..._}=m;if(M){const{css:j}=M,C=($=(D=a[T])==null?void 0:D.palette)==null?void 0:$.mode,L=!o&&C?{colorScheme:C,...j}:{...j};E(n(T,{...L}),L)}return Object.entries(_).forEach(([j,{css:C}])=>{var I,O;const L=(O=(I=a[j])==null?void 0:I.palette)==null?void 0:O.mode,k=!o&&L?{colorScheme:L,...C}:{...C};E(n(j,{...k}),k)}),i&&S.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),S}}}function mx(e){const t={};return Object.entries(e).forEach(o=>{const[r,i]=o;typeof i=="object"&&(t[r]=`${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 gx(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)} &`:"&"}}const yx={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 Te(e,t,n="Mui"){const o=yx[t];return o?`${n}-${o}`:`${E0.generate(e)}-${t}`}function bx(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function vx(e){return Math.round(e*1e5)/1e5}const Kd={textTransform:"uppercase"},Zd='"Roboto", "Helvetica", "Arial", sans-serif';function xx(e,t){const{fontFamily:n=Zd,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d,...f}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=o/14,h=d||(y=>`${y/c*p}rem`),m=(y,v,w,x,S)=>({fontFamily:n,fontWeight:y,fontSize:h(v),lineHeight:w,...n===Zd?{letterSpacing:`${vx(x/v)}em`}:{},...S,...u}),g={h1:m(r,96,1.167,-1.5),h2:m(r,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(a,14,1.75,.4,Kd),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,Kd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return At({htmlFontSize:c,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...g},f,{clone:!1})}const Sx=.2,Cx=.14,wx=.12;function ot(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Sx})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Cx})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${wx})`].join(",")}const Tx=["none",ot(0,2,1,-1,0,1,1,0,0,1,3,0),ot(0,3,1,-2,0,2,2,0,0,1,5,0),ot(0,3,3,-2,0,3,4,0,0,1,8,0),ot(0,2,4,-1,0,4,5,0,0,1,10,0),ot(0,3,5,-1,0,5,8,0,0,1,14,0),ot(0,3,5,-1,0,6,10,0,0,1,18,0),ot(0,4,5,-2,0,7,10,1,0,2,16,1),ot(0,5,5,-3,0,8,10,1,0,3,14,2),ot(0,5,6,-3,0,9,12,1,0,3,16,2),ot(0,6,6,-3,0,10,14,1,0,4,18,3),ot(0,6,7,-4,0,11,15,1,0,4,20,3),ot(0,7,8,-4,0,12,17,2,0,5,22,4),ot(0,7,8,-4,0,13,19,2,0,5,24,4),ot(0,7,9,-4,0,14,21,2,0,5,26,4),ot(0,8,9,-5,0,15,22,2,0,6,28,5),ot(0,8,10,-5,0,16,24,2,0,6,30,5),ot(0,8,11,-5,0,17,26,2,0,6,32,5),ot(0,9,11,-5,0,18,28,2,0,7,34,6),ot(0,9,12,-6,0,19,29,2,0,7,36,6),ot(0,10,13,-6,0,20,31,3,0,8,38,7),ot(0,10,13,-6,0,21,33,3,0,8,40,7),ot(0,10,14,-6,0,22,35,3,0,8,42,7),ot(0,11,14,-7,0,23,36,3,0,9,44,8),ot(0,11,15,-7,0,24,38,3,0,9,46,8)],Px={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)"},Ex={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Xd(e){return`${Math.round(e)}ms`}function Mx(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Ox(e){const t={...Px,...e.easing},n={...Ex,...e.duration};return{getAutoHeightDuration:Mx,create:(r=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:c=0,...u}=i;if(process.env.NODE_ENV!=="production"){const d=p=>typeof p=="string",f=p=>!Number.isNaN(parseFloat(p));!d(r)&&!Array.isArray(r)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(a)&&!d(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!f(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(`
86
- `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(r)?r:[r]).map(d=>`${d} ${typeof a=="string"?a:Xd(a)} ${l} ${typeof c=="string"?c:Xd(c)}`).join(",")},...e,easing:t,duration:n}}const kx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Dx(e){return xn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function cm(e={}){const t={...e};function n(o){const r=Object.entries(o);for(let i=0;i<r.length;i++){const[a,l]=r[i];!Dx(l)||a.startsWith("unstable_")?delete o[a]:xn(l)&&(o[a]={...l},n(o[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
84
+ */function Zx(e,t){const n=Qv(e,t);return process.env.NODE_ENV!=="production"?(...o)=>{const r=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
85
+ `)):o.some(i=>i===void 0)&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...o)}:n}function Xx(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Hd=[];function Ao(e){return Hd[0]=e,Kx(Hd)}const Qx="exact-prop: ​";function am(e){return process.env.NODE_ENV==="production"?e:{...e,[Qx]:t=>{const n=Object.keys(t).filter(o=>!e.hasOwnProperty(o));return n.length>0?new Error(`The following props are not supported: ${n.map(o=>`\`${o}\``).join(", ")}. Please remove them.`):null}}}const Ct=typeof window<"u"?P.useLayoutEffect:P.useEffect;function Jx(e){return Object.keys(e).length===0}function e1(e=null){const t=P.useContext(Jv.ThemeContext);return!t||Jx(t)?e:t}const t1=P.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const fn=()=>P.useContext(t1)??!1;function ps(e,t,n=!1){const o={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const i=r;if(i==="components"||i==="slots")o[i]={...e[i],...o[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],l=t[i];if(!l)o[i]=a||{};else if(!a)o[i]=l;else{o[i]={...l};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const u=c;o[i][u]=ps(a[u],l[u],n)}}}else i==="className"&&n&&t.className?o.className=ye(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&n&&t.style?o.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:o[i]===void 0&&(o[i]=e[i])}return o}const n1=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function o1(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const r=t.components[n];return r.defaultProps?ps(r.defaultProps,o,t.components.mergeClassNameAndStyle):!r.styleOverrides&&!r.variants?ps(r,o,t.components.mergeClassNameAndStyle):o}function r1({props:e,name:t}){const n=P.useContext(n1);return o1({props:e,name:t,theme:{components:n}})}let Yd=0;function s1(e){const[t,n]=P.useState(e),o=e||t;return P.useEffect(()=>{t==null&&(Yd+=1,n(`mui-${Yd}`))},[t]),o}const i1={...P},qd=i1.useId;function so(e){if(qd!==void 0){const t=qd();return e??t}return s1(e)}const a1=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function l1(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,i=a1(t),a=Object.keys(i);function l(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function c(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-o/100}${n})`}function u(p,h){const m=a.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(m!==-1&&typeof t[a[m]]=="number"?t[a[m]]:h)-o/100}${n})`}function d(p){return a.indexOf(p)+1<a.length?u(p,a[a.indexOf(p)+1]):l(p)}function f(p){const h=a.indexOf(p);return h===0?l(a[1]):h===a.length-1?c(a[h]):u(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:l,down:c,between:u,only:d,not:f,unit:n,...r}}const c1={borderRadius:4};function u1(e=8,t=kc({spacing:e})){if(e.mui)return e;const n=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function d1(e,t){var o;const n=this;if(n.vars){if(!((o=n.colorSchemes)!=null&&o[e])||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function lm(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...a}=e,l=l1(n),c=u1(r);let u=At({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:c,shape:{...c1,...i}},a);return u=F0(u),u.applyStyles=d1,u=t.reduce((d,f)=>At(d,f),u),u.unstable_sxConfig={...ks,...a==null?void 0:a.unstable_sxConfig},u.unstable_sx=function(f){return fr({sx:f,theme:this})},u}const Gd=(e,t,n,o=[])=>{let r=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(r)?r[Number(i)]=n:r&&typeof r=="object"&&(r[i]=n):r&&typeof r=="object"&&(r[i]||(r[i]=o.includes(i)?[]:{}),r=r[i])})},f1=(e,t,n)=>{function o(r,i=[],a=[]){Object.entries(r).forEach(([l,c])=>{(!n||n&&!n([...i,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?o(c,[...i,l],Array.isArray(c)?[...a,l]:a):t([...i,l],c,a))})}o(e)},p1=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function qa(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},a={};return f1(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!o||!o(l,c))){const d=`--${n?`${n}-`:""}${l.join("-")}`,f=p1(l,c);Object.assign(r,{[d]:f}),Gd(i,l,`var(${d})`,u),Gd(a,l,`var(${d}, ${f})`,u)}},l=>l[0]==="vars"),{css:r,vars:i,varsWithDefaults:a}}function h1(e,t={}){const{getSelector:n=v,disableCssColorScheme:o,colorSchemeSelector:r,enableContrastVars:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...u}=e,{vars:d,css:f,varsWithDefaults:p}=qa(u,t);let h=p;const m={},{[c]:g,...y}=a;if(Object.entries(y||{}).forEach(([S,T])=>{const{vars:E,css:M,varsWithDefaults:A}=qa(T,t);h=At(h,A),m[S]={css:M,vars:E}}),g){const{css:S,vars:T,varsWithDefaults:E}=qa(g,t);h=At(h,E),m[c]={css:S,vars:T}}function v(S,T){var M,A;let E=r;if(r==="class"&&(E=".%s"),r==="data"&&(E="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(E=`[${r}="%s"]`),S){if(E==="media")return e.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${((A=(M=a[S])==null?void 0:M.palette)==null?void 0:A.mode)||S})`]:{":root":T}};if(E)return e.defaultColorScheme===S?`:root, ${E.replace("%s",String(S))}`:E.replace("%s",String(S))}return":root"}return{vars:h,generateThemeVars:()=>{let S={...d};return Object.entries(m).forEach(([,{vars:T}])=>{S=At(S,T)}),S},generateStyleSheets:()=>{var k,$;const S=[],T=e.defaultColorScheme||"light";function E(j,w){Object.keys(w).length&&S.push(typeof j=="string"?{[j]:{...w}}:j)}E(n(void 0,{...f}),f);const{[T]:M,...A}=m;if(M){const{css:j}=M,w=($=(k=a[T])==null?void 0:k.palette)==null?void 0:$.mode,L=!o&&w?{colorScheme:w,...j}:{...j};E(n(T,{...L}),L)}return Object.entries(A).forEach(([j,{css:w}])=>{var I,O;const L=(O=(I=a[j])==null?void 0:I.palette)==null?void 0:O.mode,D=!o&&L?{colorScheme:L,...w}:{...w};E(n(j,{...D}),D)}),i&&S.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),S}}}function m1(e){const t={};return Object.entries(e).forEach(o=>{const[r,i]=o;typeof i=="object"&&(t[r]=`${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 g1(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)} &`:"&"}}const y1={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 Te(e,t,n="Mui"){const o=y1[t];return o?`${n}-${o}`:`${E0.generate(e)}-${t}`}function b1(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function v1(e){return Math.round(e*1e5)/1e5}const Kd={textTransform:"uppercase"},Zd='"Roboto", "Helvetica", "Arial", sans-serif';function x1(e,t){const{fontFamily:n=Zd,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d,...f}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=o/14,h=d||(y=>`${y/c*p}rem`),m=(y,v,C,x,S)=>({fontFamily:n,fontWeight:y,fontSize:h(v),lineHeight:C,...n===Zd?{letterSpacing:`${v1(x/v)}em`}:{},...S,...u}),g={h1:m(r,96,1.167,-1.5),h2:m(r,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(a,14,1.75,.4,Kd),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,Kd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return At({htmlFontSize:c,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...g},f,{clone:!1})}const S1=.2,w1=.14,C1=.12;function ot(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${S1})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${w1})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${C1})`].join(",")}const T1=["none",ot(0,2,1,-1,0,1,1,0,0,1,3,0),ot(0,3,1,-2,0,2,2,0,0,1,5,0),ot(0,3,3,-2,0,3,4,0,0,1,8,0),ot(0,2,4,-1,0,4,5,0,0,1,10,0),ot(0,3,5,-1,0,5,8,0,0,1,14,0),ot(0,3,5,-1,0,6,10,0,0,1,18,0),ot(0,4,5,-2,0,7,10,1,0,2,16,1),ot(0,5,5,-3,0,8,10,1,0,3,14,2),ot(0,5,6,-3,0,9,12,1,0,3,16,2),ot(0,6,6,-3,0,10,14,1,0,4,18,3),ot(0,6,7,-4,0,11,15,1,0,4,20,3),ot(0,7,8,-4,0,12,17,2,0,5,22,4),ot(0,7,8,-4,0,13,19,2,0,5,24,4),ot(0,7,9,-4,0,14,21,2,0,5,26,4),ot(0,8,9,-5,0,15,22,2,0,6,28,5),ot(0,8,10,-5,0,16,24,2,0,6,30,5),ot(0,8,11,-5,0,17,26,2,0,6,32,5),ot(0,9,11,-5,0,18,28,2,0,7,34,6),ot(0,9,12,-6,0,19,29,2,0,7,36,6),ot(0,10,13,-6,0,20,31,3,0,8,38,7),ot(0,10,13,-6,0,21,33,3,0,8,40,7),ot(0,10,14,-6,0,22,35,3,0,8,42,7),ot(0,11,14,-7,0,23,36,3,0,9,44,8),ot(0,11,15,-7,0,24,38,3,0,9,46,8)],P1={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)"},E1={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Xd(e){return`${Math.round(e)}ms`}function M1(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function O1(e){const t={...P1,...e.easing},n={...E1,...e.duration};return{getAutoHeightDuration:M1,create:(r=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:c=0,...u}=i;if(process.env.NODE_ENV!=="production"){const d=p=>typeof p=="string",f=p=>!Number.isNaN(parseFloat(p));!d(r)&&!Array.isArray(r)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(a)&&!d(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!f(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(`
86
+ `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(r)?r:[r]).map(d=>`${d} ${typeof a=="string"?a:Xd(a)} ${l} ${typeof c=="string"?c:Xd(c)}`).join(",")},...e,easing:t,duration:n}}const k1={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function D1(e){return xn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function cm(e={}){const t={...e};function n(o){const r=Object.entries(o);for(let i=0;i<r.length;i++){const[a,l]=r[i];!D1(l)||a.startsWith("unstable_")?delete o[a]:xn(l)&&(o[a]={...l},n(o[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
87
87
 
88
88
  const theme = ${JSON.stringify(t,null,2)};
89
89
 
90
90
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
91
91
  theme.transitions = createTransitions(theme.transitions || {});
92
92
 
93
- export default theme;`}function Qd(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Rx=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let o=0;o<t.length;o+=1)n+=+t[o];return n};function Ix(e){Object.assign(e,{alpha(t,n){const o=this||e;return o.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:o.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:wi(t,Rx(n))},lighten(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #fff ${Qd(n)})`:oa(t,n)},darken(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #000 ${Qd(n)})`:na(t,n)}})}function Il(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:a={},typography:l={},shape:c,colorSpace:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Tn(20));const f=Dc({...i,colorSpace:u}),p=lm(e);let h=At(p,{mixins:bx(p.breakpoints,o),palette:f,shadows:Tx.slice(),typography:xx(f,l),transitions:Ox(a),zIndex:{...kx}});if(h=At(h,d),h=t.reduce((m,g)=>At(m,g),h),process.env.NODE_ENV!=="production"){const m=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(y,v)=>{let w;for(w in y){const x=y[w];if(m.includes(w)&&Object.keys(x).length>0){if(process.env.NODE_ENV!=="production"){const S=Te("",w);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${w}\` internal state.`,"You can not override it like this: ",JSON.stringify(y,null,2),"",`Instead, you need to use the '&.${S}' syntax:`,JSON.stringify({root:{[`&.${S}`]:x}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
94
- `))}y[w]={}}}};Object.keys(h.components).forEach(y=>{const v=h.components[y].styleOverrides;v&&y.startsWith("Mui")&&g(v,y)})}return h.unstable_sxConfig={...ks,...d==null?void 0:d.unstable_sxConfig},h.unstable_sx=function(g){return fr({sx:g,theme:this})},h.toRuntimeSource=cm,Ix(h),h}function Al(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 Ax=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Al(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function um(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function dm(e){return e==="dark"?Ax:[]}function Nx(e){const{palette:t={mode:"light"},opacity:n,overlays:o,colorSpace:r,...i}=e,a=Dc({...t,colorSpace:r});return{palette:a,opacity:{...um(a.mode),...n},overlays:o||dm(a.mode),...i}}function _x(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const jx=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Lx=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let i=r;if(r==="class"&&(i=".%s"),r==="data"&&(i="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(i=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return jx(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:a}}:i?{[i.replace("%s",t)]:a,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...a}}}if(i&&i!=="media")return`${o}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}return o};function $x(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function oe(e,t,n){!e[t]&&n&&(e[t]=n)}function Yr(e){return typeof e!="string"||!e.startsWith("hsl")?e:nm(e)}function kn(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Hr(Yr(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().
95
- 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 Vx(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const gn=e=>{try{return e()}catch{}},Fx=(e="mui")=>Wt.unstable_createGetCssVar(e);function Ya(e,t,n,o,r){if(!n)return;n=n===!0?{}:n;const i=r==="dark"?"dark":"light";if(!o){t[r]=Nx({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:a,...l}=Il({...o,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[r]={...n,palette:a,opacity:{...um(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||dm(i)},l}function Bx(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=_x,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,f=Object.keys(n)[0],p=o||(n.light&&f!=="light"?"light":f),h=Fx(i),{[p]:m,light:g,dark:y,...v}=n,w={...v};let x=m;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(x=!0),!x)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:Tn(21,p));let S;a&&(S="oklch");const T=Ya(S,w,x,d,p);g&&!w.light&&Ya(S,w,g,void 0,"light"),y&&!w.dark&&Ya(S,w,y,void 0,"dark");let E={defaultColorScheme:p,...T,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:h,colorSchemes:w,font:{...mx(T.typography),...T.font},spacing:Vx(d.spacing)};Object.keys(E.colorSchemes).forEach(j=>{const C=E.colorSchemes[j].palette,L=I=>{const O=I.split("-"),N=O[1],F=O[2];return h(I,C[N][F])};C.mode==="light"&&(oe(C.common,"background","#fff"),oe(C.common,"onBackground","#000")),C.mode==="dark"&&(oe(C.common,"background","#000"),oe(C.common,"onBackground","#fff"));function k(I,O,N){if(S){let F;return I===po&&(F=`transparent ${((1-N)*100).toFixed(0)}%`),I===He&&(F=`#000 ${(N*100).toFixed(0)}%`),I===Ye&&(F=`#fff ${(N*100).toFixed(0)}%`),`color-mix(in ${S}, ${O}, ${F})`}return I(O,N)}if($x(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){oe(C.Alert,"errorColor",k(He,C.error.light,.6)),oe(C.Alert,"infoColor",k(He,C.info.light,.6)),oe(C.Alert,"successColor",k(He,C.success.light,.6)),oe(C.Alert,"warningColor",k(He,C.warning.light,.6)),oe(C.Alert,"errorFilledBg",L("palette-error-main")),oe(C.Alert,"infoFilledBg",L("palette-info-main")),oe(C.Alert,"successFilledBg",L("palette-success-main")),oe(C.Alert,"warningFilledBg",L("palette-warning-main")),oe(C.Alert,"errorFilledColor",gn(()=>C.getContrastText(C.error.main))),oe(C.Alert,"infoFilledColor",gn(()=>C.getContrastText(C.info.main))),oe(C.Alert,"successFilledColor",gn(()=>C.getContrastText(C.success.main))),oe(C.Alert,"warningFilledColor",gn(()=>C.getContrastText(C.warning.main))),oe(C.Alert,"errorStandardBg",k(Ye,C.error.light,.9)),oe(C.Alert,"infoStandardBg",k(Ye,C.info.light,.9)),oe(C.Alert,"successStandardBg",k(Ye,C.success.light,.9)),oe(C.Alert,"warningStandardBg",k(Ye,C.warning.light,.9)),oe(C.Alert,"errorIconColor",L("palette-error-main")),oe(C.Alert,"infoIconColor",L("palette-info-main")),oe(C.Alert,"successIconColor",L("palette-success-main")),oe(C.Alert,"warningIconColor",L("palette-warning-main")),oe(C.AppBar,"defaultBg",L("palette-grey-100")),oe(C.Avatar,"defaultBg",L("palette-grey-400")),oe(C.Button,"inheritContainedBg",L("palette-grey-300")),oe(C.Button,"inheritContainedHoverBg",L("palette-grey-A100")),oe(C.Chip,"defaultBorder",L("palette-grey-400")),oe(C.Chip,"defaultAvatarColor",L("palette-grey-700")),oe(C.Chip,"defaultIconColor",L("palette-grey-700")),oe(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),oe(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),oe(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),oe(C.LinearProgress,"primaryBg",k(Ye,C.primary.main,.62)),oe(C.LinearProgress,"secondaryBg",k(Ye,C.secondary.main,.62)),oe(C.LinearProgress,"errorBg",k(Ye,C.error.main,.62)),oe(C.LinearProgress,"infoBg",k(Ye,C.info.main,.62)),oe(C.LinearProgress,"successBg",k(Ye,C.success.main,.62)),oe(C.LinearProgress,"warningBg",k(Ye,C.warning.main,.62)),oe(C.Skeleton,"bg",S?k(po,C.text.primary,.11):`rgba(${L("palette-text-primaryChannel")} / 0.11)`),oe(C.Slider,"primaryTrack",k(Ye,C.primary.main,.62)),oe(C.Slider,"secondaryTrack",k(Ye,C.secondary.main,.62)),oe(C.Slider,"errorTrack",k(Ye,C.error.main,.62)),oe(C.Slider,"infoTrack",k(Ye,C.info.main,.62)),oe(C.Slider,"successTrack",k(Ye,C.success.main,.62)),oe(C.Slider,"warningTrack",k(Ye,C.warning.main,.62));const I=S?k(He,C.background.default,.6825):Ks(C.background.default,.8);oe(C.SnackbarContent,"bg",I),oe(C.SnackbarContent,"color",gn(()=>S?Rl.text.primary:C.getContrastText(I))),oe(C.SpeedDialAction,"fabHoverBg",Ks(C.background.paper,.15)),oe(C.StepConnector,"border",L("palette-grey-400")),oe(C.StepContent,"border",L("palette-grey-400")),oe(C.Switch,"defaultColor",L("palette-common-white")),oe(C.Switch,"defaultDisabledColor",L("palette-grey-100")),oe(C.Switch,"primaryDisabledColor",k(Ye,C.primary.main,.62)),oe(C.Switch,"secondaryDisabledColor",k(Ye,C.secondary.main,.62)),oe(C.Switch,"errorDisabledColor",k(Ye,C.error.main,.62)),oe(C.Switch,"infoDisabledColor",k(Ye,C.info.main,.62)),oe(C.Switch,"successDisabledColor",k(Ye,C.success.main,.62)),oe(C.Switch,"warningDisabledColor",k(Ye,C.warning.main,.62)),oe(C.TableCell,"border",k(Ye,k(po,C.divider,1),.88)),oe(C.Tooltip,"bg",k(po,C.grey[700],.92))}if(C.mode==="dark"){oe(C.Alert,"errorColor",k(Ye,C.error.light,.6)),oe(C.Alert,"infoColor",k(Ye,C.info.light,.6)),oe(C.Alert,"successColor",k(Ye,C.success.light,.6)),oe(C.Alert,"warningColor",k(Ye,C.warning.light,.6)),oe(C.Alert,"errorFilledBg",L("palette-error-dark")),oe(C.Alert,"infoFilledBg",L("palette-info-dark")),oe(C.Alert,"successFilledBg",L("palette-success-dark")),oe(C.Alert,"warningFilledBg",L("palette-warning-dark")),oe(C.Alert,"errorFilledColor",gn(()=>C.getContrastText(C.error.dark))),oe(C.Alert,"infoFilledColor",gn(()=>C.getContrastText(C.info.dark))),oe(C.Alert,"successFilledColor",gn(()=>C.getContrastText(C.success.dark))),oe(C.Alert,"warningFilledColor",gn(()=>C.getContrastText(C.warning.dark))),oe(C.Alert,"errorStandardBg",k(He,C.error.light,.9)),oe(C.Alert,"infoStandardBg",k(He,C.info.light,.9)),oe(C.Alert,"successStandardBg",k(He,C.success.light,.9)),oe(C.Alert,"warningStandardBg",k(He,C.warning.light,.9)),oe(C.Alert,"errorIconColor",L("palette-error-main")),oe(C.Alert,"infoIconColor",L("palette-info-main")),oe(C.Alert,"successIconColor",L("palette-success-main")),oe(C.Alert,"warningIconColor",L("palette-warning-main")),oe(C.AppBar,"defaultBg",L("palette-grey-900")),oe(C.AppBar,"darkBg",L("palette-background-paper")),oe(C.AppBar,"darkColor",L("palette-text-primary")),oe(C.Avatar,"defaultBg",L("palette-grey-600")),oe(C.Button,"inheritContainedBg",L("palette-grey-800")),oe(C.Button,"inheritContainedHoverBg",L("palette-grey-700")),oe(C.Chip,"defaultBorder",L("palette-grey-700")),oe(C.Chip,"defaultAvatarColor",L("palette-grey-300")),oe(C.Chip,"defaultIconColor",L("palette-grey-300")),oe(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),oe(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),oe(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),oe(C.LinearProgress,"primaryBg",k(He,C.primary.main,.5)),oe(C.LinearProgress,"secondaryBg",k(He,C.secondary.main,.5)),oe(C.LinearProgress,"errorBg",k(He,C.error.main,.5)),oe(C.LinearProgress,"infoBg",k(He,C.info.main,.5)),oe(C.LinearProgress,"successBg",k(He,C.success.main,.5)),oe(C.LinearProgress,"warningBg",k(He,C.warning.main,.5)),oe(C.Skeleton,"bg",S?k(po,C.text.primary,.13):`rgba(${L("palette-text-primaryChannel")} / 0.13)`),oe(C.Slider,"primaryTrack",k(He,C.primary.main,.5)),oe(C.Slider,"secondaryTrack",k(He,C.secondary.main,.5)),oe(C.Slider,"errorTrack",k(He,C.error.main,.5)),oe(C.Slider,"infoTrack",k(He,C.info.main,.5)),oe(C.Slider,"successTrack",k(He,C.success.main,.5)),oe(C.Slider,"warningTrack",k(He,C.warning.main,.5));const I=S?k(Ye,C.background.default,.985):Ks(C.background.default,.98);oe(C.SnackbarContent,"bg",I),oe(C.SnackbarContent,"color",gn(()=>S?rm.text.primary:C.getContrastText(I))),oe(C.SpeedDialAction,"fabHoverBg",Ks(C.background.paper,.15)),oe(C.StepConnector,"border",L("palette-grey-600")),oe(C.StepContent,"border",L("palette-grey-600")),oe(C.Switch,"defaultColor",L("palette-grey-300")),oe(C.Switch,"defaultDisabledColor",L("palette-grey-600")),oe(C.Switch,"primaryDisabledColor",k(He,C.primary.main,.55)),oe(C.Switch,"secondaryDisabledColor",k(He,C.secondary.main,.55)),oe(C.Switch,"errorDisabledColor",k(He,C.error.main,.55)),oe(C.Switch,"infoDisabledColor",k(He,C.info.main,.55)),oe(C.Switch,"successDisabledColor",k(He,C.success.main,.55)),oe(C.Switch,"warningDisabledColor",k(He,C.warning.main,.55)),oe(C.TableCell,"border",k(He,k(po,C.divider,1),.68)),oe(C.Tooltip,"bg",k(po,C.grey[700],.92))}kn(C.background,"default"),kn(C.background,"paper"),kn(C.common,"background"),kn(C.common,"onBackground"),kn(C,"divider"),Object.keys(C).forEach(I=>{const O=C[I];I!=="tonalOffset"&&O&&typeof O=="object"&&(O.main&&oe(C[I],"mainChannel",Hr(Yr(O.main))),O.light&&oe(C[I],"lightChannel",Hr(Yr(O.light))),O.dark&&oe(C[I],"darkChannel",Hr(Yr(O.dark))),O.contrastText&&oe(C[I],"contrastTextChannel",Hr(Yr(O.contrastText))),I==="text"&&(kn(C[I],"primary"),kn(C[I],"secondary")),I==="action"&&(O.active&&kn(C[I],"active"),O.selected&&kn(C[I],"selected")))})}),E=t.reduce((j,C)=>At(j,C),E);const M={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:l,getSelector:Lx(E),enableContrastVars:a},{vars:_,generateThemeVars:D,generateStyleSheets:$}=hx(E,M);return E.vars=_,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([j,C])=>{E[j]=C}),E.generateThemeVars=D,E.generateStyleSheets=$,E.generateSpacing=function(){return Wt.createSpacing(d.spacing,Mc(this))},E.getColorSchemeSelector=gx(c),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=l,E.unstable_sxConfig={...ks,...d==null?void 0:d.unstable_sxConfig},E.unstable_sx=function(C){return fr({sx:C,theme:this})},E.toRuntimeSource=cm,E}function Jd(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Dc({...n===!0?{}:n.palette,mode:t})})}function zx(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,l=i||"light",c=r==null?void 0:r[l],u={...r,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Il(e,...t);let d=n;"palette"in e||u[l]&&(u[l]!==!0?d=u[l].palette:l==="dark"&&(d={mode:"dark"}));const f=Il({...e,palette:d},...t);return f.defaultColorScheme=l,f.colorSchemes=u,f.palette.mode==="light"&&(f.colorSchemes.light={...u.light!==!0&&u.light,palette:f.palette},Jd(f,"dark",u.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:f.palette},Jd(f,"light",u.light)),f}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),Bx({...a,colorSchemes:u,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const Rc=zx(),ra="$$material";function sa(){const e=Wt.useTheme(Rc);return process.env.NODE_ENV!=="production"&&P.useDebugValue(e),e[ra]||e}function fm(e){return b.jsx(Wt.GlobalStyles,{...e,defaultTheme:Rc,themeId:ra})}process.env.NODE_ENV!=="production"&&(fm.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function pm(e,t=""){return e.displayName||e.name||t}function ef(e,t,n){const o=pm(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function Wx(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return pm(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Lo.ForwardRef:return ef(e,e.render,"ForwardRef");case Lo.Memo:return ef(e,e.type,"memo");default:return}}}function Ux(e){const{variants:t,...n}=e,o={variants:t,style:Ao(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=Ao(r.style))}),o}const Hx=lm();function Zn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ko(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Yx(e){return e?(t,n)=>n[e]:null}function qx(e,t,n){e.theme=Xx(e.theme)?n:e.theme[t]||e.theme}function hi(e,t,n){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(r=>hi(e,r,n));if(Array.isArray(o==null?void 0:o.variants)){let r;if(o.isProcessed)r=n?ko(o.style,n):o.style;else{const{variants:i,...a}=o;r=n?ko(Ao(a),n):a}return hm(e,o.variants,[r],n)}return o!=null&&o.isProcessed?n?ko(Ao(o.style),n):o.style:n?ko(Ao(o),n):o}function hm(e,t,n=[],o=void 0){var i;let r;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(r))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&((i=e.ownerState)==null?void 0:i[c])!==l.props[c])continue e;typeof l.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(o?ko(Ao(l.style(r)),o):l.style(r))):n.push(o?ko(Ao(l.style),o):l.style)}return n}function Gx(e={}){const{themeId:t,defaultTheme:n=Hx,rootShouldForwardProp:o=Zn,slotShouldForwardProp:r=Zn}=e;function i(l){qx(l,t,n)}return(l,c={})=>{X1(l,E=>E.filter(M=>M!==fr));const{name:u,slot:d,skipVariantsResolver:f,skipSx:p,overridesResolver:h=Yx(mm(d)),...m}=c,g=u&&u.startsWith("Mui")||d?"components":"custom",y=f!==void 0?f:d&&d!=="Root"&&d!=="root"||!1,v=p||!1;let w=Zn;d==="Root"||d==="root"?w=o:d?w=r:Qx(l)&&(w=void 0);const x=Z1(l,{shouldForwardProp:w,label:Zx(u,d),...m}),S=E=>{if(E.__emotion_real===E)return E;if(typeof E=="function")return function(_){return hi(_,E,_.theme.modularCssLayers?g:void 0)};if(xn(E)){const M=Ux(E);return function(D){return M.variants?hi(D,M,D.theme.modularCssLayers?g:void 0):D.theme.modularCssLayers?ko(M.style,g):M.style}}return E},T=(...E)=>{const M=[],_=E.map(S),D=[];if(M.push(i),u&&h&&D.push(function(L){var N,F;const I=(F=(N=L.theme.components)==null?void 0:N[u])==null?void 0:F.styleOverrides;if(!I)return null;const O={};for(const V in I)O[V]=hi(L,I[V],L.theme.modularCssLayers?"theme":void 0);return h(L,O)}),u&&!y&&D.push(function(L){var O,N;const k=L.theme,I=(N=(O=k==null?void 0:k.components)==null?void 0:O[u])==null?void 0:N.variants;return I?hm(L,I,[],L.theme.modularCssLayers?"theme":void 0):null}),v||D.push(fr),Array.isArray(_[0])){const C=_.shift(),L=new Array(M.length).fill(""),k=new Array(D.length).fill("");let I;I=[...L,...C,...k],I.raw=[...L,...C.raw,...k],M.unshift(I)}const $=[...M,..._,...D],j=x(...$);return l.muiName&&(j.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(j.displayName=Kx(u,d,l)),j};return x.withConfig&&(T.withConfig=x.withConfig),T}}function Kx(e,t,n){return e?`${e}${ce(t||"")}`:`Styled(${Wx(n)})`}function Zx(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${mm(t||"Root")}`),n}function Xx(e){for(const t in e)return!1;return!0}function Qx(e){return typeof e=="string"&&e.charCodeAt(0)>96}function mm(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function gm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const pn=e=>gm(e)&&e!=="classes",be=Gx({themeId:ra,defaultTheme:Rc,rootShouldForwardProp:pn});function Jx(e){return function(n){return b.jsx(fm,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function eS(){return D1}const Xe=Wt.unstable_memoTheme;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Fe(e){return rx(e)}function we(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=Te(e,r,n)}),o}function tS(e){return Te("MuiSvgIcon",e)}we("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const nS=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${ce(t)}`,`fontSize${ce(n)}`]};return Ce(r,tS,o)},oS=be("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ce(n.color)}`],t[`fontSize${ce(n.fontSize)}`]]}})(Xe(({theme:e})=>{var t,n,o,r,i,a,l,c,u,d,f,p,h,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(r=(t=e.transitions)==null?void 0:t.create)==null?void 0:r.call(t,"fill",{duration:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:g=>!g.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,g])=>g&&g.main).map(([g])=>{var y,v;return{props:{color:g},style:{color:(v=(y=(e.vars??e).palette)==null?void 0:y[g])==null?void 0:v.main}}}),{props:{color:"action"},style:{color:(p=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:p.active}},{props:{color:"disabled"},style:{color:(m=(h=(e.vars??e).palette)==null?void 0:h.action)==null?void 0:m.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Pi=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiSvgIcon"}),{children:r,className:i,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:f,viewBox:p="0 0 24 24",...h}=o,m=P.isValidElement(r)&&r.type==="svg",g={...o,color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:m},y={};d||(y.viewBox=p);const v=nS(g);return b.jsxs(oS,{as:l,className:ye(v.root,i),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...y,...h,...m&&r.props,ownerState:g,children:[m?r.props.children:r,f?b.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(Pi.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});Pi.muiName="SvgIcon";function gt(e,t){function n(o,r){return b.jsx(Pi,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:r,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Pi.muiName,P.memo(P.forwardRef(n))}function ym(e,t=166){let n;function o(...r){const i=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(i,t)}return o.clear=()=>{clearTimeout(n)},o}function ns(e,t){var n,o,r;return P.isValidElement(e)&&t.indexOf(e.type.muiName??((r=(o=(n=e.type)==null?void 0:n._payload)==null?void 0:o.value)==null?void 0:r.muiName))!==-1}function Pt(e){return e&&e.ownerDocument||document}function jn(e){return Pt(e).defaultView||window}function tf(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function rS(e,t,n,o,r){if(process.env.NODE_ENV==="production")return null;const i=r||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function Jn(e){const{controlled:t,default:n,name:o,state:r="value"}=e,{current:i}=P.useRef(t!==void 0),[a,l]=P.useState(n),c=i?t:a;if(process.env.NODE_ENV!=="production"){P.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${r} state of ${o} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
93
+ export default theme;`}function Qd(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const R1=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let o=0;o<t.length;o+=1)n+=+t[o];return n};function I1(e){Object.assign(e,{alpha(t,n){const o=this||e;return o.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:o.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:Ci(t,R1(n))},lighten(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #fff ${Qd(n)})`:oa(t,n)},darken(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #000 ${Qd(n)})`:na(t,n)}})}function Nl(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:a={},typography:l={},shape:c,colorSpace:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Tn(20));const f=Ic({...i,colorSpace:u}),p=lm(e);let h=At(p,{mixins:b1(p.breakpoints,o),palette:f,shadows:T1.slice(),typography:x1(f,l),transitions:O1(a),zIndex:{...k1}});if(h=At(h,d),h=t.reduce((m,g)=>At(m,g),h),process.env.NODE_ENV!=="production"){const m=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(y,v)=>{let C;for(C in y){const x=y[C];if(m.includes(C)&&Object.keys(x).length>0){if(process.env.NODE_ENV!=="production"){const S=Te("",C);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${C}\` internal state.`,"You can not override it like this: ",JSON.stringify(y,null,2),"",`Instead, you need to use the '&.${S}' syntax:`,JSON.stringify({root:{[`&.${S}`]:x}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
94
+ `))}y[C]={}}}};Object.keys(h.components).forEach(y=>{const v=h.components[y].styleOverrides;v&&y.startsWith("Mui")&&g(v,y)})}return h.unstable_sxConfig={...ks,...d==null?void 0:d.unstable_sxConfig},h.unstable_sx=function(g){return fr({sx:g,theme:this})},h.toRuntimeSource=cm,I1(h),h}function _l(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 A1=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=_l(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function um(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function dm(e){return e==="dark"?A1:[]}function N1(e){const{palette:t={mode:"light"},opacity:n,overlays:o,colorSpace:r,...i}=e,a=Ic({...t,colorSpace:r});return{palette:a,opacity:{...um(a.mode),...n},overlays:o||dm(a.mode),...i}}function _1(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 j1=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],L1=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let i=r;if(r==="class"&&(i=".%s"),r==="data"&&(i="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(i=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return j1(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:a}}:i?{[i.replace("%s",t)]:a,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...a}}}if(i&&i!=="media")return`${o}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}return o};function $1(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function oe(e,t,n){!e[t]&&n&&(e[t]=n)}function Yr(e){return typeof e!="string"||!e.startsWith("hsl")?e:nm(e)}function kn(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Hr(Yr(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().
95
+ 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 V1(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const gn=e=>{try{return e()}catch{}},F1=(e="mui")=>Wt.unstable_createGetCssVar(e);function Ga(e,t,n,o,r){if(!n)return;n=n===!0?{}:n;const i=r==="dark"?"dark":"light";if(!o){t[r]=N1({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:a,...l}=Nl({...o,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[r]={...n,palette:a,opacity:{...um(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||dm(i)},l}function B1(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=_1,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,f=Object.keys(n)[0],p=o||(n.light&&f!=="light"?"light":f),h=F1(i),{[p]:m,light:g,dark:y,...v}=n,C={...v};let x=m;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(x=!0),!x)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:Tn(21,p));let S;a&&(S="oklch");const T=Ga(S,C,x,d,p);g&&!C.light&&Ga(S,C,g,void 0,"light"),y&&!C.dark&&Ga(S,C,y,void 0,"dark");let E={defaultColorScheme:p,...T,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:h,colorSchemes:C,font:{...m1(T.typography),...T.font},spacing:V1(d.spacing)};Object.keys(E.colorSchemes).forEach(j=>{const w=E.colorSchemes[j].palette,L=I=>{const O=I.split("-"),N=O[1],F=O[2];return h(I,w[N][F])};w.mode==="light"&&(oe(w.common,"background","#fff"),oe(w.common,"onBackground","#000")),w.mode==="dark"&&(oe(w.common,"background","#000"),oe(w.common,"onBackground","#fff"));function D(I,O,N){if(S){let F;return I===po&&(F=`transparent ${((1-N)*100).toFixed(0)}%`),I===He&&(F=`#000 ${(N*100).toFixed(0)}%`),I===Ye&&(F=`#fff ${(N*100).toFixed(0)}%`),`color-mix(in ${S}, ${O}, ${F})`}return I(O,N)}if($1(w,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),w.mode==="light"){oe(w.Alert,"errorColor",D(He,w.error.light,.6)),oe(w.Alert,"infoColor",D(He,w.info.light,.6)),oe(w.Alert,"successColor",D(He,w.success.light,.6)),oe(w.Alert,"warningColor",D(He,w.warning.light,.6)),oe(w.Alert,"errorFilledBg",L("palette-error-main")),oe(w.Alert,"infoFilledBg",L("palette-info-main")),oe(w.Alert,"successFilledBg",L("palette-success-main")),oe(w.Alert,"warningFilledBg",L("palette-warning-main")),oe(w.Alert,"errorFilledColor",gn(()=>w.getContrastText(w.error.main))),oe(w.Alert,"infoFilledColor",gn(()=>w.getContrastText(w.info.main))),oe(w.Alert,"successFilledColor",gn(()=>w.getContrastText(w.success.main))),oe(w.Alert,"warningFilledColor",gn(()=>w.getContrastText(w.warning.main))),oe(w.Alert,"errorStandardBg",D(Ye,w.error.light,.9)),oe(w.Alert,"infoStandardBg",D(Ye,w.info.light,.9)),oe(w.Alert,"successStandardBg",D(Ye,w.success.light,.9)),oe(w.Alert,"warningStandardBg",D(Ye,w.warning.light,.9)),oe(w.Alert,"errorIconColor",L("palette-error-main")),oe(w.Alert,"infoIconColor",L("palette-info-main")),oe(w.Alert,"successIconColor",L("palette-success-main")),oe(w.Alert,"warningIconColor",L("palette-warning-main")),oe(w.AppBar,"defaultBg",L("palette-grey-100")),oe(w.Avatar,"defaultBg",L("palette-grey-400")),oe(w.Button,"inheritContainedBg",L("palette-grey-300")),oe(w.Button,"inheritContainedHoverBg",L("palette-grey-A100")),oe(w.Chip,"defaultBorder",L("palette-grey-400")),oe(w.Chip,"defaultAvatarColor",L("palette-grey-700")),oe(w.Chip,"defaultIconColor",L("palette-grey-700")),oe(w.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),oe(w.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),oe(w.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),oe(w.LinearProgress,"primaryBg",D(Ye,w.primary.main,.62)),oe(w.LinearProgress,"secondaryBg",D(Ye,w.secondary.main,.62)),oe(w.LinearProgress,"errorBg",D(Ye,w.error.main,.62)),oe(w.LinearProgress,"infoBg",D(Ye,w.info.main,.62)),oe(w.LinearProgress,"successBg",D(Ye,w.success.main,.62)),oe(w.LinearProgress,"warningBg",D(Ye,w.warning.main,.62)),oe(w.Skeleton,"bg",S?D(po,w.text.primary,.11):`rgba(${L("palette-text-primaryChannel")} / 0.11)`),oe(w.Slider,"primaryTrack",D(Ye,w.primary.main,.62)),oe(w.Slider,"secondaryTrack",D(Ye,w.secondary.main,.62)),oe(w.Slider,"errorTrack",D(Ye,w.error.main,.62)),oe(w.Slider,"infoTrack",D(Ye,w.info.main,.62)),oe(w.Slider,"successTrack",D(Ye,w.success.main,.62)),oe(w.Slider,"warningTrack",D(Ye,w.warning.main,.62));const I=S?D(He,w.background.default,.6825):Ks(w.background.default,.8);oe(w.SnackbarContent,"bg",I),oe(w.SnackbarContent,"color",gn(()=>S?Al.text.primary:w.getContrastText(I))),oe(w.SpeedDialAction,"fabHoverBg",Ks(w.background.paper,.15)),oe(w.StepConnector,"border",L("palette-grey-400")),oe(w.StepContent,"border",L("palette-grey-400")),oe(w.Switch,"defaultColor",L("palette-common-white")),oe(w.Switch,"defaultDisabledColor",L("palette-grey-100")),oe(w.Switch,"primaryDisabledColor",D(Ye,w.primary.main,.62)),oe(w.Switch,"secondaryDisabledColor",D(Ye,w.secondary.main,.62)),oe(w.Switch,"errorDisabledColor",D(Ye,w.error.main,.62)),oe(w.Switch,"infoDisabledColor",D(Ye,w.info.main,.62)),oe(w.Switch,"successDisabledColor",D(Ye,w.success.main,.62)),oe(w.Switch,"warningDisabledColor",D(Ye,w.warning.main,.62)),oe(w.TableCell,"border",D(Ye,D(po,w.divider,1),.88)),oe(w.Tooltip,"bg",D(po,w.grey[700],.92))}if(w.mode==="dark"){oe(w.Alert,"errorColor",D(Ye,w.error.light,.6)),oe(w.Alert,"infoColor",D(Ye,w.info.light,.6)),oe(w.Alert,"successColor",D(Ye,w.success.light,.6)),oe(w.Alert,"warningColor",D(Ye,w.warning.light,.6)),oe(w.Alert,"errorFilledBg",L("palette-error-dark")),oe(w.Alert,"infoFilledBg",L("palette-info-dark")),oe(w.Alert,"successFilledBg",L("palette-success-dark")),oe(w.Alert,"warningFilledBg",L("palette-warning-dark")),oe(w.Alert,"errorFilledColor",gn(()=>w.getContrastText(w.error.dark))),oe(w.Alert,"infoFilledColor",gn(()=>w.getContrastText(w.info.dark))),oe(w.Alert,"successFilledColor",gn(()=>w.getContrastText(w.success.dark))),oe(w.Alert,"warningFilledColor",gn(()=>w.getContrastText(w.warning.dark))),oe(w.Alert,"errorStandardBg",D(He,w.error.light,.9)),oe(w.Alert,"infoStandardBg",D(He,w.info.light,.9)),oe(w.Alert,"successStandardBg",D(He,w.success.light,.9)),oe(w.Alert,"warningStandardBg",D(He,w.warning.light,.9)),oe(w.Alert,"errorIconColor",L("palette-error-main")),oe(w.Alert,"infoIconColor",L("palette-info-main")),oe(w.Alert,"successIconColor",L("palette-success-main")),oe(w.Alert,"warningIconColor",L("palette-warning-main")),oe(w.AppBar,"defaultBg",L("palette-grey-900")),oe(w.AppBar,"darkBg",L("palette-background-paper")),oe(w.AppBar,"darkColor",L("palette-text-primary")),oe(w.Avatar,"defaultBg",L("palette-grey-600")),oe(w.Button,"inheritContainedBg",L("palette-grey-800")),oe(w.Button,"inheritContainedHoverBg",L("palette-grey-700")),oe(w.Chip,"defaultBorder",L("palette-grey-700")),oe(w.Chip,"defaultAvatarColor",L("palette-grey-300")),oe(w.Chip,"defaultIconColor",L("palette-grey-300")),oe(w.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),oe(w.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),oe(w.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),oe(w.LinearProgress,"primaryBg",D(He,w.primary.main,.5)),oe(w.LinearProgress,"secondaryBg",D(He,w.secondary.main,.5)),oe(w.LinearProgress,"errorBg",D(He,w.error.main,.5)),oe(w.LinearProgress,"infoBg",D(He,w.info.main,.5)),oe(w.LinearProgress,"successBg",D(He,w.success.main,.5)),oe(w.LinearProgress,"warningBg",D(He,w.warning.main,.5)),oe(w.Skeleton,"bg",S?D(po,w.text.primary,.13):`rgba(${L("palette-text-primaryChannel")} / 0.13)`),oe(w.Slider,"primaryTrack",D(He,w.primary.main,.5)),oe(w.Slider,"secondaryTrack",D(He,w.secondary.main,.5)),oe(w.Slider,"errorTrack",D(He,w.error.main,.5)),oe(w.Slider,"infoTrack",D(He,w.info.main,.5)),oe(w.Slider,"successTrack",D(He,w.success.main,.5)),oe(w.Slider,"warningTrack",D(He,w.warning.main,.5));const I=S?D(Ye,w.background.default,.985):Ks(w.background.default,.98);oe(w.SnackbarContent,"bg",I),oe(w.SnackbarContent,"color",gn(()=>S?rm.text.primary:w.getContrastText(I))),oe(w.SpeedDialAction,"fabHoverBg",Ks(w.background.paper,.15)),oe(w.StepConnector,"border",L("palette-grey-600")),oe(w.StepContent,"border",L("palette-grey-600")),oe(w.Switch,"defaultColor",L("palette-grey-300")),oe(w.Switch,"defaultDisabledColor",L("palette-grey-600")),oe(w.Switch,"primaryDisabledColor",D(He,w.primary.main,.55)),oe(w.Switch,"secondaryDisabledColor",D(He,w.secondary.main,.55)),oe(w.Switch,"errorDisabledColor",D(He,w.error.main,.55)),oe(w.Switch,"infoDisabledColor",D(He,w.info.main,.55)),oe(w.Switch,"successDisabledColor",D(He,w.success.main,.55)),oe(w.Switch,"warningDisabledColor",D(He,w.warning.main,.55)),oe(w.TableCell,"border",D(He,D(po,w.divider,1),.68)),oe(w.Tooltip,"bg",D(po,w.grey[700],.92))}kn(w.background,"default"),kn(w.background,"paper"),kn(w.common,"background"),kn(w.common,"onBackground"),kn(w,"divider"),Object.keys(w).forEach(I=>{const O=w[I];I!=="tonalOffset"&&O&&typeof O=="object"&&(O.main&&oe(w[I],"mainChannel",Hr(Yr(O.main))),O.light&&oe(w[I],"lightChannel",Hr(Yr(O.light))),O.dark&&oe(w[I],"darkChannel",Hr(Yr(O.dark))),O.contrastText&&oe(w[I],"contrastTextChannel",Hr(Yr(O.contrastText))),I==="text"&&(kn(w[I],"primary"),kn(w[I],"secondary")),I==="action"&&(O.active&&kn(w[I],"active"),O.selected&&kn(w[I],"selected")))})}),E=t.reduce((j,w)=>At(j,w),E);const M={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:l,getSelector:L1(E),enableContrastVars:a},{vars:A,generateThemeVars:k,generateStyleSheets:$}=h1(E,M);return E.vars=A,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([j,w])=>{E[j]=w}),E.generateThemeVars=k,E.generateStyleSheets=$,E.generateSpacing=function(){return Wt.createSpacing(d.spacing,kc(this))},E.getColorSchemeSelector=g1(c),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=l,E.unstable_sxConfig={...ks,...d==null?void 0:d.unstable_sxConfig},E.unstable_sx=function(w){return fr({sx:w,theme:this})},E.toRuntimeSource=cm,E}function Jd(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ic({...n===!0?{}:n.palette,mode:t})})}function z1(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,l=i||"light",c=r==null?void 0:r[l],u={...r,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Nl(e,...t);let d=n;"palette"in e||u[l]&&(u[l]!==!0?d=u[l].palette:l==="dark"&&(d={mode:"dark"}));const f=Nl({...e,palette:d},...t);return f.defaultColorScheme=l,f.colorSchemes=u,f.palette.mode==="light"&&(f.colorSchemes.light={...u.light!==!0&&u.light,palette:f.palette},Jd(f,"dark",u.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:f.palette},Jd(f,"light",u.light)),f}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),B1({...a,colorSchemes:u,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const Ac=z1(),ra="$$material";function sa(){const e=Wt.useTheme(Ac);return process.env.NODE_ENV!=="production"&&P.useDebugValue(e),e[ra]||e}function fm(e){return b.jsx(Wt.GlobalStyles,{...e,defaultTheme:Ac,themeId:ra})}process.env.NODE_ENV!=="production"&&(fm.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function pm(e,t=""){return e.displayName||e.name||t}function ef(e,t,n){const o=pm(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function W1(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return pm(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Lo.ForwardRef:return ef(e,e.render,"ForwardRef");case Lo.Memo:return ef(e,e.type,"memo");default:return}}}function U1(e){const{variants:t,...n}=e,o={variants:t,style:Ao(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=Ao(r.style))}),o}const H1=lm();function Zn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ko(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Y1(e){return e?(t,n)=>n[e]:null}function q1(e,t,n){e.theme=X1(e.theme)?n:e.theme[t]||e.theme}function hi(e,t,n){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(r=>hi(e,r,n));if(Array.isArray(o==null?void 0:o.variants)){let r;if(o.isProcessed)r=n?ko(o.style,n):o.style;else{const{variants:i,...a}=o;r=n?ko(Ao(a),n):a}return hm(e,o.variants,[r],n)}return o!=null&&o.isProcessed?n?ko(Ao(o.style),n):o.style:n?ko(Ao(o),n):o}function hm(e,t,n=[],o=void 0){var i;let r;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(r))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&((i=e.ownerState)==null?void 0:i[c])!==l.props[c])continue e;typeof l.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(o?ko(Ao(l.style(r)),o):l.style(r))):n.push(o?ko(Ao(l.style),o):l.style)}return n}function G1(e={}){const{themeId:t,defaultTheme:n=H1,rootShouldForwardProp:o=Zn,slotShouldForwardProp:r=Zn}=e;function i(l){q1(l,t,n)}return(l,c={})=>{Xx(l,E=>E.filter(M=>M!==fr));const{name:u,slot:d,skipVariantsResolver:f,skipSx:p,overridesResolver:h=Y1(mm(d)),...m}=c,g=u&&u.startsWith("Mui")||d?"components":"custom",y=f!==void 0?f:d&&d!=="Root"&&d!=="root"||!1,v=p||!1;let C=Zn;d==="Root"||d==="root"?C=o:d?C=r:Q1(l)&&(C=void 0);const x=Zx(l,{shouldForwardProp:C,label:Z1(u,d),...m}),S=E=>{if(E.__emotion_real===E)return E;if(typeof E=="function")return function(A){return hi(A,E,A.theme.modularCssLayers?g:void 0)};if(xn(E)){const M=U1(E);return function(k){return M.variants?hi(k,M,k.theme.modularCssLayers?g:void 0):k.theme.modularCssLayers?ko(M.style,g):M.style}}return E},T=(...E)=>{const M=[],A=E.map(S),k=[];if(M.push(i),u&&h&&k.push(function(L){var N,F;const I=(F=(N=L.theme.components)==null?void 0:N[u])==null?void 0:F.styleOverrides;if(!I)return null;const O={};for(const V in I)O[V]=hi(L,I[V],L.theme.modularCssLayers?"theme":void 0);return h(L,O)}),u&&!y&&k.push(function(L){var O,N;const D=L.theme,I=(N=(O=D==null?void 0:D.components)==null?void 0:O[u])==null?void 0:N.variants;return I?hm(L,I,[],L.theme.modularCssLayers?"theme":void 0):null}),v||k.push(fr),Array.isArray(A[0])){const w=A.shift(),L=new Array(M.length).fill(""),D=new Array(k.length).fill("");let I;I=[...L,...w,...D],I.raw=[...L,...w.raw,...D],M.unshift(I)}const $=[...M,...A,...k],j=x(...$);return l.muiName&&(j.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(j.displayName=K1(u,d,l)),j};return x.withConfig&&(T.withConfig=x.withConfig),T}}function K1(e,t,n){return e?`${e}${ce(t||"")}`:`Styled(${W1(n)})`}function Z1(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${mm(t||"Root")}`),n}function X1(e){for(const t in e)return!1;return!0}function Q1(e){return typeof e=="string"&&e.charCodeAt(0)>96}function mm(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function gm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const pn=e=>gm(e)&&e!=="classes",be=G1({themeId:ra,defaultTheme:Ac,rootShouldForwardProp:pn});function J1(e){return function(n){return b.jsx(fm,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function eS(){return Dx}const Xe=Wt.unstable_memoTheme;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Fe(e){return r1(e)}function Ce(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=Te(e,r,n)}),o}function tS(e){return Te("MuiSvgIcon",e)}Ce("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const nS=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${ce(t)}`,`fontSize${ce(n)}`]};return we(r,tS,o)},oS=be("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ce(n.color)}`],t[`fontSize${ce(n.fontSize)}`]]}})(Xe(({theme:e})=>{var t,n,o,r,i,a,l,c,u,d,f,p,h,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(r=(t=e.transitions)==null?void 0:t.create)==null?void 0:r.call(t,"fill",{duration:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:g=>!g.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,g])=>g&&g.main).map(([g])=>{var y,v;return{props:{color:g},style:{color:(v=(y=(e.vars??e).palette)==null?void 0:y[g])==null?void 0:v.main}}}),{props:{color:"action"},style:{color:(p=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:p.active}},{props:{color:"disabled"},style:{color:(m=(h=(e.vars??e).palette)==null?void 0:h.action)==null?void 0:m.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Pi=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiSvgIcon"}),{children:r,className:i,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:f,viewBox:p="0 0 24 24",...h}=o,m=P.isValidElement(r)&&r.type==="svg",g={...o,color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:m},y={};d||(y.viewBox=p);const v=nS(g);return b.jsxs(oS,{as:l,className:ye(v.root,i),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...y,...h,...m&&r.props,ownerState:g,children:[m?r.props.children:r,f?b.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(Pi.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});Pi.muiName="SvgIcon";function gt(e,t){function n(o,r){return b.jsx(Pi,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:r,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Pi.muiName,P.memo(P.forwardRef(n))}function ym(e,t=166){let n;function o(...r){const i=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(i,t)}return o.clear=()=>{clearTimeout(n)},o}function ns(e,t){var n,o,r;return P.isValidElement(e)&&t.indexOf(e.type.muiName??((r=(o=(n=e.type)==null?void 0:n._payload)==null?void 0:o.value)==null?void 0:r.muiName))!==-1}function Pt(e){return e&&e.ownerDocument||document}function jn(e){return Pt(e).defaultView||window}function tf(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function rS(e,t,n,o,r){if(process.env.NODE_ENV==="production")return null;const i=r||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function Jn(e){const{controlled:t,default:n,name:o,state:r="value"}=e,{current:i}=P.useRef(t!==void 0),[a,l]=P.useState(n),c=i?t:a;if(process.env.NODE_ENV!=="production"){P.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${r} state of ${o} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${o} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
96
96
  `))},[r,o,t]);const{current:d}=P.useRef(n);P.useEffect(()=>{!i&&JSON.stringify(n)!==JSON.stringify(d)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${o} after being initialized. To suppress this warning opt to use a controlled ${o}.`].join(`
97
- `))},[JSON.stringify(n)])}const u=P.useCallback(d=>{i||l(d)},[]);return[c,u]}function he(e){const t=P.useRef(e);return wt(()=>{t.current=e}),P.useRef((...n)=>(0,t.current)(...n)).current}function $e(...e){const t=P.useRef(void 0),n=P.useCallback(o=>{const r=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{r.forEach(i=>i==null?void 0:i())}},e);return P.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}function sS(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function iS(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(u=>{sS(u,l[u])&&typeof a[u]=="function"&&(c[u]=(...d)=>{a[u](...d),l[u](...d)})}),c}if(typeof e=="function"||typeof t=="function")return a=>{const l=typeof t=="function"?t(a):t,c=typeof e=="function"?e({...a,...l}):e,u=ye(a==null?void 0:a.className,l==null?void 0:l.className,c==null?void 0:c.className),d=n(c,l);return{...l,...c,...d,...!!u&&{className:u},...(l==null?void 0:l.style)&&(c==null?void 0:c.style)&&{style:{...l.style,...c.style}},...(l==null?void 0:l.sx)&&(c==null?void 0:c.sx)&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const o=t,r=n(e,o),i=ye(o==null?void 0:o.className,e==null?void 0:e.className);return{...t,...e,...r,...!!i&&{className:i},...(o==null?void 0:o.style)&&(e==null?void 0:e.style)&&{style:{...o.style,...e.style}},...(o==null?void 0:o.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const aS=gt(b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),lS=gt(b.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),cS=gt(b.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),uS=(e,t)=>()=>{if(!t)return;const n={};e.forEach(o=>{o.items.forEach(r=>{r.value!==void 0&&r.value!==null&&r.value!==""&&(n[r.id]=r.value)})}),console.log("Filtros ativos:",n),t(n)},dS=(e,t,n)=>()=>{const o=e.map(r=>({...r,items:r.items.map(i=>({...i,value:void 0}))}));n&&n(o),t&&t()},fS=(e,t,n)=>()=>{const o=t.map(r=>r.id===e?{...r,expanded:!r.expanded}:r);n(o)},pS=(e,t,n,o)=>r=>{const i=n.map(a=>a.id===e?{...a,items:a.items.map(l=>l.id===t?{...l,value:r}:l)}:a);o(i)},hS="_modal_1ktm2_1",mS="_content_1ktm2_67",gS="_contentWrapper_1ktm2_74",yS="_closeButton_1ktm2_81",bS="_header_1ktm2_93",vS="_title_1ktm2_100",xS="_description_1ktm2_109",SS="_filtersContent_1ktm2_118",CS="_filterGroup_1ktm2_128",wS="_expandableHeader_1ktm2_135",TS="_expandableLabel_1ktm2_145",PS="_chevronIcon_1ktm2_153",ES="_chevron_1ktm2_153",MS="_filterItems_1ktm2_166",OS="_filterItem_1ktm2_166",kS="_filterItemSize1_1ktm2_178",DS="_filterItemSize2_1ktm2_182",RS="_filterItemSize3_1ktm2_186",IS="_filterItemSize4_1ktm2_190",AS="_filterItemSize5_1ktm2_194",NS="_filterItemSize6_1ktm2_198",_S="_filterInput_1ktm2_202",jS="_inputLabel_1ktm2_206",LS="_select_1ktm2_210",$S="_placeholder_1ktm2_227",VS="_helperText_1ktm2_231",FS="_footer_1ktm2_238",BS="_clearButton_1ktm2_245",zS="_applyButton_1ktm2_267",Ze={modal:hS,content:mS,contentWrapper:gS,closeButton:yS,header:bS,title:vS,description:xS,filtersContent:SS,filterGroup:CS,expandableHeader:wS,expandableLabel:TS,chevronIcon:PS,chevron:ES,filterItems:MS,filterItem:OS,filterItemSize1:kS,filterItemSize2:DS,filterItemSize3:RS,filterItemSize4:IS,filterItemSize5:AS,filterItemSize6:NS,filterInput:_S,inputLabel:jS,select:LS,"Mui-focused":"_Mui-focused_1ktm2_219",placeholder:$S,helperText:VS,footer:FS,clearButton:BS,applyButton:zS},bm=({open:e,onClose:t,title:n="Filtros",description:o="Use os filtros abaixo para encontrar câmeras e pontos de interesse.",children:r,formId:i,groups:a,onApply:l,onClear:c,onOpened:u,clearButtonText:d="Limpar filtros",applyButtonText:f="Filtrar",className:p,...h})=>{const m=q.useTheme(),g=m.palette.mode==="dark",y=q.useMediaQuery(m.breakpoints.down("md")),[v,w]=A.useState(a??[]),x=!!r;A.useEffect(()=>{w(a??[])},[a]);const S=uS(v,l),T=dS(v,c,w),E=(M,_)=>{var C;const D=pS(_,M.id,v,w),$=M.size||6,j=Ze[`filterItemSize${$}`];if(M.render)return b.jsx(q.Box,{className:`${Ze.filterItem} ${j}`,children:M.render(M,D)},M.id);switch(M.type){case"select":case"multi-select":const L=M.type==="multi-select";let k;L?M.value!==void 0&&M.value!==null?k=Array.isArray(M.value)?M.value:[M.value]:k=[]:k=M.value!==void 0&&M.value!==null?M.value:"";const I=L?Array.isArray(k)&&k.length>0:k!==""&&k!==null&&k!==void 0;return b.jsx(q.Box,{className:`${Ze.filterItem} ${j}`,children:b.jsxs(q.FormControl,{fullWidth:!0,className:Ze.filterInput,children:[b.jsx(q.InputLabel,{id:`${M.id}-label`,className:Ze.inputLabel,shrink:I,children:M.label}),b.jsx(q.Select,{labelId:`${M.id}-label`,value:k,onChange:O=>D(O.target.value),multiple:L,label:M.label,className:Ze.select,displayEmpty:!0,renderValue:O=>{var F;if(L){const V=Array.isArray(O)?O:[];return V.length===0?b.jsx(q.Box,{component:"span",style:{opacity:0},children:M.label}):V.map(R=>{var Y,G;return((G=(Y=M.options)==null?void 0:Y.find(Z=>Z.value===R))==null?void 0:G.label)||R}).join(", ")}if(!O||O==="")return b.jsx(q.Box,{component:"span",style:{opacity:0},children:M.label});const N=(F=M.options)==null?void 0:F.find(V=>V.value===O);return(N==null?void 0:N.label)||O},notched:I,children:(C=M.options)==null?void 0:C.map(O=>b.jsx(q.MenuItem,{value:O.value,children:O.label},O.value))}),M.helperText&&b.jsx(q.Box,{className:Ze.helperText,children:M.helperText})]})},M.id);case"text":return b.jsx(q.Box,{className:`${Ze.filterItem} ${j}`,children:b.jsx(q.TextField,{fullWidth:!0,label:M.label,placeholder:M.placeholder,value:M.value||"",onChange:O=>D(O.target.value),className:Ze.filterInput,helperText:M.helperText,FormHelperTextProps:{className:Ze.helperText}})},M.id);default:return null}};return b.jsx(q.Dialog,{open:e,onClose:t,maxWidth:"md",fullWidth:!0,fullScreen:y,TransitionProps:{onEntered:()=>u==null?void 0:u()},PaperProps:{className:`${Ze.modal} ${p||""}`,"data-theme":g?"dark":"light"},...h,children:b.jsx(q.DialogContent,{className:Ze.content,children:b.jsxs(q.Box,{className:Ze.contentWrapper,children:[b.jsx(q.IconButton,{className:Ze.closeButton,onClick:t,"aria-label":"Fechar",size:"small",children:b.jsx(cS,{})}),b.jsxs(q.Box,{className:Ze.header,children:[b.jsx(q.Box,{className:Ze.title,children:n}),b.jsx(q.Box,{className:Ze.description,children:o})]}),b.jsx(q.Box,{className:Ze.filtersContent,children:x?r:v.map(M=>{const _=fS(M.id,v,w),D=M.expanded!==!1;return b.jsxs(q.Box,{className:Ze.filterGroup,children:[b.jsxs(q.Box,{className:Ze.expandableHeader,onClick:_,children:[b.jsx(q.Box,{className:Ze.expandableLabel,children:M.label}),b.jsx(q.Box,{className:Ze.chevronIcon,children:D?b.jsx(lS,{className:Ze.chevron}):b.jsx(aS,{className:Ze.chevron})})]}),D&&b.jsx(q.Box,{className:Ze.filterItems,children:M.items.map($=>E($,M.id))})]},M.id)})}),b.jsxs(q.Box,{className:Ze.footer,children:[b.jsx(q.Button,{onClick:T,className:Ze.clearButton,"data-theme":g?"dark":"light",children:d}),b.jsx(q.Button,{type:i?"submit":"button",form:i,onClick:i?void 0:S,className:Ze.applyButton,"data-theme":g?"dark":"light",children:f})]})]})})})};bm.displayName="FilterModal";const WS="_container_1hyey_1",US="_card_1hyey_7",HS="_icon_1hyey_18",YS="_text_1hyey_32",Zs={container:WS,card:US,icon:HS,text:YS},qS=({items:e,className:t,sx:n})=>{const o=q.useTheme(),r={backgroundColor:o.palette.background.paper,borderColor:o.palette.divider},i={color:o.palette.text.primary,"& svg":{fill:o.palette.text.primary}},a={color:o.palette.text.secondary,fontFamily:o.typography.fontFamily,fontSize:o.typography.body2.fontSize,fontWeight:o.typography.fontWeightMedium,lineHeight:o.typography.body2.lineHeight};return b.jsx(q.Box,{className:`${Zs.container} ${t||""}`,sx:n,children:e.map((l,c)=>b.jsxs(q.Box,{className:Zs.card,sx:r,children:[l.icon&&b.jsx(q.Box,{className:Zs.icon,sx:i,children:l.icon}),b.jsxs(q.Typography,{component:"span",className:Zs.text,sx:a,children:[l.count," ",l.label]})]},c))})},Ic=A.createContext({});function Ac(e){const t=A.useRef(null);return t.current===null&&(t.current=e()),t.current}const vm=typeof window<"u",xm=vm?A.useLayoutEffect:A.useEffect,ia=A.createContext(null);function Nc(e,t){e.indexOf(t)===-1&&e.push(t)}function _c(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Pn=(e,t,n)=>n>t?t:n<e?e:n;function Nl(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let wr=()=>{},Ln=()=>{};var zh;typeof process<"u"&&((zh=process.env)==null?void 0:zh.NODE_ENV)!=="production"&&(wr=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Nl(t,n))},Ln=(e,t,n)=>{if(!e)throw new Error(Nl(t,n))});const $n={},Sm=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Cm(e){return typeof e=="object"&&e!==null}const wm=e=>/^0[^.\s]+$/u.test(e);function jc(e){let t;return()=>(t===void 0&&(t=e()),t)}const en=e=>e,GS=(e,t)=>n=>t(e(n)),Ds=(...e)=>e.reduce(GS),hs=(e,t,n)=>{const o=t-e;return o===0?1:(n-e)/o};class Lc{constructor(){this.subscriptions=[]}add(t){return Nc(this.subscriptions,t),()=>_c(this.subscriptions,t)}notify(t,n,o){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,o);else for(let i=0;i<r;i++){const a=this.subscriptions[i];a&&a(t,n,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Sn=e=>e*1e3,Jt=e=>e/1e3;function Tm(e,t){return t?e*(1e3/t):0}const nf=new Set;function $c(e,t,n){e||nf.has(t)||(console.warn(Nl(t,n)),nf.add(t))}const Pm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,KS=1e-7,ZS=12;function XS(e,t,n,o,r){let i,a,l=0;do a=t+(n-t)/2,i=Pm(a,o,r)-e,i>0?n=a:t=a;while(Math.abs(i)>KS&&++l<ZS);return a}function Rs(e,t,n,o){if(e===t&&n===o)return en;const r=i=>XS(i,0,1,e,n);return i=>i===0||i===1?i:Pm(r(i),t,o)}const Em=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Mm=e=>t=>1-e(1-t),Om=Rs(.33,1.53,.69,.99),Vc=Mm(Om),km=Em(Vc),Dm=e=>(e*=2)<1?.5*Vc(e):.5*(2-Math.pow(2,-10*(e-1))),Fc=e=>1-Math.sin(Math.acos(e)),Rm=Mm(Fc),Im=Em(Fc),QS=Rs(.42,0,1,1),JS=Rs(0,0,.58,1),Am=Rs(.42,0,.58,1),eC=e=>Array.isArray(e)&&typeof e[0]!="number",Nm=e=>Array.isArray(e)&&typeof e[0]=="number",of={linear:en,easeIn:QS,easeInOut:Am,easeOut:JS,circIn:Fc,circInOut:Im,circOut:Rm,backIn:Vc,backInOut:km,backOut:Om,anticipate:Dm},tC=e=>typeof e=="string",rf=e=>{if(Nm(e)){Ln(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,o,r]=e;return Rs(t,n,o,r)}else if(tC(e))return Ln(of[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),of[e];return e},Xs=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function nC(e,t){let n=new Set,o=new Set,r=!1,i=!1;const a=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(d){a.has(d)&&(u.schedule(d),e()),d(l)}const u={schedule:(d,f=!1,p=!1)=>{const m=p&&r?n:o;return f&&a.add(d),m.has(d)||m.add(d),d},cancel:d=>{o.delete(d),a.delete(d)},process:d=>{if(l=d,r){i=!0;return}r=!0,[n,o]=[o,n],n.forEach(c),n.clear(),r=!1,i&&(i=!1,u.process(d))}};return u}const oC=40;function _m(e,t){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=Xs.reduce((x,S)=>(x[S]=nC(i),x),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:d,update:f,preRender:p,render:h,postRender:m}=a,g=()=>{const x=$n.useManualTiming?r.timestamp:performance.now();n=!1,$n.useManualTiming||(r.delta=o?1e3/60:Math.max(Math.min(x-r.timestamp,oC),1)),r.timestamp=x,r.isProcessing=!0,l.process(r),c.process(r),u.process(r),d.process(r),f.process(r),p.process(r),h.process(r),m.process(r),r.isProcessing=!1,n&&t&&(o=!1,e(g))},y=()=>{n=!0,o=!0,r.isProcessing||e(g)};return{schedule:Xs.reduce((x,S)=>{const T=a[S];return x[S]=(E,M=!1,_=!1)=>(n||y(),T.schedule(E,M,_)),x},{}),cancel:x=>{for(let S=0;S<Xs.length;S++)a[Xs[S]].cancel(x)},state:r,steps:a}}const{schedule:et,cancel:eo,state:Ot,steps:qa}=_m(typeof requestAnimationFrame<"u"?requestAnimationFrame:en,!0);let mi;function rC(){mi=void 0}const Lt={now:()=>(mi===void 0&&Lt.set(Ot.isProcessing||$n.useManualTiming?Ot.timestamp:performance.now()),mi),set:e=>{mi=e,queueMicrotask(rC)}},jm=e=>t=>typeof t=="string"&&t.startsWith(e),Lm=jm("--"),sC=jm("var(--"),Bc=e=>sC(e)?iC.test(e.split("/*")[0].trim()):!1,iC=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function sf(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Tr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ms={...Tr,transform:e=>Pn(0,1,e)},Qs={...Tr,default:1},os=e=>Math.round(e*1e5)/1e5,zc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function aC(e){return e==null}const lC=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Wc=(e,t)=>n=>!!(typeof n=="string"&&lC.test(n)&&n.startsWith(e)||t&&!aC(n)&&Object.prototype.hasOwnProperty.call(n,t)),$m=(e,t,n)=>o=>{if(typeof o!="string")return o;const[r,i,a,l]=o.match(zc);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},cC=e=>Pn(0,255,e),Ga={...Tr,transform:e=>Math.round(cC(e))},Do={test:Wc("rgb","red"),parse:$m("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+Ga.transform(e)+", "+Ga.transform(t)+", "+Ga.transform(n)+", "+os(ms.transform(o))+")"};function uC(e){let t="",n="",o="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}}const _l={test:Wc("#"),parse:uC,transform:Do.transform},Is=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Wn=Is("deg"),Cn=Is("%"),xe=Is("px"),dC=Is("vh"),fC=Is("vw"),af={...Cn,parse:e=>Cn.parse(e)/100,transform:e=>Cn.transform(e*100)},tr={test:Wc("hsl","hue"),parse:$m("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+Cn.transform(os(t))+", "+Cn.transform(os(n))+", "+os(ms.transform(o))+")"},vt={test:e=>Do.test(e)||_l.test(e)||tr.test(e),parse:e=>Do.test(e)?Do.parse(e):tr.test(e)?tr.parse(e):_l.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Do.transform(e):tr.transform(e),getAnimatableNone:e=>{const t=vt.parse(e);return t.alpha=0,vt.transform(t)}},pC=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function hC(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(zc))==null?void 0:t.length)||0)+(((n=e.match(pC))==null?void 0:n.length)||0)>0}const Vm="number",Fm="color",mC="var",gC="var(",lf="${}",yC=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function gs(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},r=[];let i=0;const l=t.replace(yC,c=>(vt.test(c)?(o.color.push(i),r.push(Fm),n.push(vt.parse(c))):c.startsWith(gC)?(o.var.push(i),r.push(mC),n.push(c)):(o.number.push(i),r.push(Vm),n.push(parseFloat(c))),++i,lf)).split(lf);return{values:n,split:l,indexes:o,types:r}}function Bm(e){return gs(e).values}function zm(e){const{split:t,types:n}=gs(e),o=t.length;return r=>{let i="";for(let a=0;a<o;a++)if(i+=t[a],r[a]!==void 0){const l=n[a];l===Vm?i+=os(r[a]):l===Fm?i+=vt.transform(r[a]):i+=r[a]}return i}}const bC=e=>typeof e=="number"?0:vt.test(e)?vt.getAnimatableNone(e):e;function vC(e){const t=Bm(e);return zm(e)(t.map(bC))}const to={test:hC,parse:Bm,createTransformer:zm,getAnimatableNone:vC};function Ka(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function xC({hue:e,saturation:t,lightness:n,alpha:o}){e/=360,t/=100,n/=100;let r=0,i=0,a=0;if(!t)r=i=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;r=Ka(c,l,e+1/3),i=Ka(c,l,e),a=Ka(c,l,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:o}}function Ei(e,t){return n=>n>0?t:e}const ct=(e,t,n)=>e+(t-e)*n,Za=(e,t,n)=>{const o=e*e,r=n*(t*t-o)+o;return r<0?0:Math.sqrt(r)},SC=[_l,Do,tr],CC=e=>SC.find(t=>t.test(e));function cf(e){const t=CC(e);if(wr(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===tr&&(n=xC(n)),n}const uf=(e,t)=>{const n=cf(e),o=cf(t);if(!n||!o)return Ei(e,t);const r={...n};return i=>(r.red=Za(n.red,o.red,i),r.green=Za(n.green,o.green,i),r.blue=Za(n.blue,o.blue,i),r.alpha=ct(n.alpha,o.alpha,i),Do.transform(r))},jl=new Set(["none","hidden"]);function wC(e,t){return jl.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function TC(e,t){return n=>ct(e,t,n)}function Uc(e){return typeof e=="number"?TC:typeof e=="string"?Bc(e)?Ei:vt.test(e)?uf:MC:Array.isArray(e)?Wm:typeof e=="object"?vt.test(e)?uf:PC:Ei}function Wm(e,t){const n=[...e],o=n.length,r=e.map((i,a)=>Uc(i)(i,t[a]));return i=>{for(let a=0;a<o;a++)n[a]=r[a](i);return n}}function PC(e,t){const n={...e,...t},o={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(o[r]=Uc(e[r])(e[r],t[r]));return r=>{for(const i in o)n[i]=o[i](r);return n}}function EC(e,t){const n=[],o={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const i=t.types[r],a=e.indexes[i][o[i]],l=e.values[a]??0;n[r]=l,o[i]++}return n}const MC=(e,t)=>{const n=to.createTransformer(t),o=gs(e),r=gs(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?jl.has(e)&&!r.values.length||jl.has(t)&&!o.values.length?wC(e,t):Ds(Wm(EC(o,r),r.values),n):(wr(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Ei(e,t))};function Um(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ct(e,t,n):Uc(e)(e,t)}const OC=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>et.update(t,n),stop:()=>eo(t),now:()=>Ot.isProcessing?Ot.timestamp:Lt.now()}},Hm=(e,t,n=10)=>{let o="";const r=Math.max(Math.round(t/n),2);for(let i=0;i<r;i++)o+=Math.round(e(i/(r-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},Mi=2e4;function Hc(e){let t=0;const n=50;let o=e.next(t);for(;!o.done&&t<Mi;)t+=n,o=e.next(t);return t>=Mi?1/0:t}function kC(e,t=100,n){const o=n({...e,keyframes:[0,t]}),r=Math.min(Hc(o),Mi);return{type:"keyframes",ease:i=>o.next(r*i).value/t,duration:Jt(r)}}const DC=5;function Ym(e,t,n){const o=Math.max(t-DC,0);return Tm(n-e(o),t-o)}const lt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Xa=.001;function RC({duration:e=lt.duration,bounce:t=lt.bounce,velocity:n=lt.velocity,mass:o=lt.mass}){let r,i;wr(e<=Sn(lt.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=Pn(lt.minDamping,lt.maxDamping,a),e=Pn(lt.minDuration,lt.maxDuration,Jt(e)),a<1?(r=u=>{const d=u*a,f=d*e,p=d-n,h=Ll(u,a),m=Math.exp(-f);return Xa-p/h*m},i=u=>{const f=u*a*e,p=f*n+n,h=Math.pow(a,2)*Math.pow(u,2)*e,m=Math.exp(-f),g=Ll(Math.pow(u,2),a);return(-r(u)+Xa>0?-1:1)*((p-h)*m)/g}):(r=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-Xa+d*f},i=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const l=5/e,c=AC(r,i,l);if(e=Sn(e),isNaN(c))return{stiffness:lt.stiffness,damping:lt.damping,duration:e};{const u=Math.pow(c,2)*o;return{stiffness:u,damping:a*2*Math.sqrt(o*u),duration:e}}}const IC=12;function AC(e,t,n){let o=n;for(let r=1;r<IC;r++)o=o-e(o)/t(o);return o}function Ll(e,t){return e*Math.sqrt(1-t*t)}const NC=["duration","bounce"],_C=["stiffness","damping","mass"];function df(e,t){return t.some(n=>e[n]!==void 0)}function jC(e){let t={velocity:lt.velocity,stiffness:lt.stiffness,damping:lt.damping,mass:lt.mass,isResolvedFromDuration:!1,...e};if(!df(e,_C)&&df(e,NC))if(e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),r=o*o,i=2*Pn(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:lt.mass,stiffness:r,damping:i}}else{const n=RC(e);t={...t,...n,mass:lt.mass},t.isResolvedFromDuration=!0}return t}function Oi(e=lt.visualDuration,t=lt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:o,restDelta:r}=n;const i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:i},{stiffness:c,damping:u,mass:d,duration:f,velocity:p,isResolvedFromDuration:h}=jC({...n,velocity:-Jt(n.velocity||0)}),m=p||0,g=u/(2*Math.sqrt(c*d)),y=a-i,v=Jt(Math.sqrt(c/d)),w=Math.abs(y)<5;o||(o=w?lt.restSpeed.granular:lt.restSpeed.default),r||(r=w?lt.restDelta.granular:lt.restDelta.default);let x;if(g<1){const T=Ll(v,g);x=E=>{const M=Math.exp(-g*v*E);return a-M*((m+g*v*y)/T*Math.sin(T*E)+y*Math.cos(T*E))}}else if(g===1)x=T=>a-Math.exp(-v*T)*(y+(m+v*y)*T);else{const T=v*Math.sqrt(g*g-1);x=E=>{const M=Math.exp(-g*v*E),_=Math.min(T*E,300);return a-M*((m+g*v*y)*Math.sinh(_)+T*y*Math.cosh(_))/T}}const S={calculatedDuration:h&&f||null,next:T=>{const E=x(T);if(h)l.done=T>=f;else{let M=T===0?m:0;g<1&&(M=T===0?Sn(m):Ym(x,T,E));const _=Math.abs(M)<=o,D=Math.abs(a-E)<=r;l.done=_&&D}return l.value=l.done?a:E,l},toString:()=>{const T=Math.min(Hc(S),Mi),E=Hm(M=>S.next(T*M).value,T,30);return T+"ms "+E},toTransition:()=>{}};return S}Oi.applyToOptions=e=>{const t=kC(e,100,Oi);return e.ease=t.ease,e.duration=Sn(t.duration),e.type="keyframes",e};function $l({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:a,min:l,max:c,restDelta:u=.5,restSpeed:d}){const f=e[0],p={done:!1,value:f},h=_=>l!==void 0&&_<l||c!==void 0&&_>c,m=_=>l===void 0?c:c===void 0||Math.abs(l-_)<Math.abs(c-_)?l:c;let g=n*t;const y=f+g,v=a===void 0?y:a(y);v!==y&&(g=v-f);const w=_=>-g*Math.exp(-_/o),x=_=>v+w(_),S=_=>{const D=w(_),$=x(_);p.done=Math.abs(D)<=u,p.value=p.done?v:$};let T,E;const M=_=>{h(p.value)&&(T=_,E=Oi({keyframes:[p.value,m(p.value)],velocity:Ym(x,_,p.value),damping:r,stiffness:i,restDelta:u,restSpeed:d}))};return M(0),{calculatedDuration:null,next:_=>{let D=!1;return!E&&T===void 0&&(D=!0,S(_),M(_)),T!==void 0&&_>=T?E.next(_-T):(!D&&S(_),p)}}}function LC(e,t,n){const o=[],r=n||$n.mix||Um,i=e.length-1;for(let a=0;a<i;a++){let l=r(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||en:t;l=Ds(c,l)}o.push(l)}return o}function $C(e,t,{clamp:n=!0,ease:o,mixer:r}={}){const i=e.length;if(Ln(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=LC(t,o,r),c=l.length,u=d=>{if(a&&d<e[0])return t[0];let f=0;if(c>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const p=hs(e[f],e[f+1],d);return l[f](p)};return n?d=>u(Pn(e[0],e[i-1],d)):u}function VC(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const r=hs(0,t,o);e.push(ct(n,1,r))}}function FC(e){const t=[0];return VC(t,e.length-1),t}function BC(e,t){return e.map(n=>n*t)}function zC(e,t){return e.map(()=>t||Am).splice(0,e.length-1)}function nr({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const r=eC(o)?o.map(rf):rf(o),i={done:!1,value:t[0]},a=BC(n&&n.length===t.length?n:FC(t),e),l=$C(a,t,{ease:Array.isArray(r)?r:zC(t,r)});return{calculatedDuration:e,next:c=>(i.value=l(c),i.done=c>=e,i)}}const WC=e=>e!==null;function Yc(e,{repeat:t,repeatType:n="loop"},o,r=1){const i=e.filter(WC),l=r<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!l||o===void 0?i[l]:o}const UC={decay:$l,inertia:$l,tween:nr,keyframes:nr,spring:Oi};function qm(e){typeof e.type=="string"&&(e.type=UC[e.type])}class qc{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const HC=e=>e/100;class Gc extends qc{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var o,r;const{motionValue:n}=this.options;n&&n.updatedAt!==Lt.now()&&this.tick(Lt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(r=(o=this.options).onStop)==null||r.call(o))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;qm(t);const{type:n=nr,repeat:o=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=t;let{keyframes:l}=t;const c=n||nr;process.env.NODE_ENV!=="production"&&c!==nr&&Ln(l.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${l}`,"spring-two-frames"),c!==nr&&typeof l[0]!="number"&&(this.mixKeyframes=Ds(HC,Um(l[0],l[1])),l=[0,100]);const u=c({...t,keyframes:l});i==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...l].reverse(),velocity:-a})),u.calculatedDuration===null&&(u.calculatedDuration=Hc(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+r,this.totalDuration=this.resolvedDuration*(o+1)-r,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:o,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return o.next(0);const{delay:u=0,keyframes:d,repeat:f,repeatType:p,repeatDelay:h,type:m,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?v<0:v>r;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let x=this.currentTime,S=o;if(f){const _=Math.min(this.currentTime,r)/l;let D=Math.floor(_),$=_%1;!$&&_>=1&&($=1),$===1&&D--,D=Math.min(D,f+1),!!(D%2)&&(p==="reverse"?($=1-$,h&&($-=h/l)):p==="mirror"&&(S=a)),x=Pn(0,1,$)*l}const T=w?{done:!1,value:d[0]}:S.next(x);i&&(T.value=i(T.value));let{done:E}=T;!w&&c!==null&&(E=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return M&&m!==$l&&(T.value=Yc(d,this.options,y,this.speed)),g&&g(T.value),M&&this.finish(),T}then(t,n){return this.finished.then(t,n)}get duration(){return Jt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Jt(t)}get time(){return Jt(this.currentTime)}set time(t){var n;t=Sn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Lt.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Jt(this.currentTime))}play(){var r,i;if(this.isStopped)return;const{driver:t=OC,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),(i=(r=this.options).onPlay)==null||i.call(r);const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=n??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Lt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function YC(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Ro=e=>e*180/Math.PI,Vl=e=>{const t=Ro(Math.atan2(e[1],e[0]));return Fl(t)},qC={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Vl,rotateZ:Vl,skewX:e=>Ro(Math.atan(e[1])),skewY:e=>Ro(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Fl=e=>(e=e%360,e<0&&(e+=360),e),ff=Vl,pf=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),hf=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),GC={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:pf,scaleY:hf,scale:e=>(pf(e)+hf(e))/2,rotateX:e=>Fl(Ro(Math.atan2(e[6],e[5]))),rotateY:e=>Fl(Ro(Math.atan2(-e[2],e[0]))),rotateZ:ff,rotate:ff,skewX:e=>Ro(Math.atan(e[4])),skewY:e=>Ro(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Bl(e){return e.includes("scale")?1:0}function zl(e,t){if(!e||e==="none")return Bl(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,r;if(n)o=GC,r=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=qC,r=l}if(!r)return Bl(t);const i=o[t],a=r[1].split(",").map(ZC);return typeof i=="function"?i(a):a[i]}const KC=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return zl(n,t)};function ZC(e){return parseFloat(e.trim())}const Pr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Er=new Set(Pr),mf=e=>e===Tr||e===xe,XC=new Set(["x","y","z"]),QC=Pr.filter(e=>!XC.has(e));function JC(e){const t=[];return QC.forEach(n=>{const o=e.getValue(n);o!==void 0&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),t}const Kn={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>zl(t,"x"),y:(e,{transform:t})=>zl(t,"y")};Kn.translateX=Kn.x;Kn.translateY=Kn.y;const No=new Set;let Wl=!1,Ul=!1,Hl=!1;function Gm(){if(Ul){const e=Array.from(No).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),n=new Map;t.forEach(o=>{const r=JC(o);r.length&&(n.set(o,r),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();const r=n.get(o);r&&r.forEach(([i,a])=>{var l;(l=o.getValue(i))==null||l.set(a)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Ul=!1,Wl=!1,No.forEach(e=>e.complete(Hl)),No.clear()}function Km(){No.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ul=!0)})}function ew(){Hl=!0,Km(),Gm(),Hl=!1}class Kc{constructor(t,n,o,r,i,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=o,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(No.add(this),Wl||(Wl=!0,et.read(Km),et.resolveKeyframes(Gm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:o,motionValue:r}=this;if(t[0]===null){const i=r==null?void 0:r.get(),a=t[t.length-1];if(i!==void 0)t[0]=i;else if(o&&n){const l=o.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),r&&i===void 0&&r.set(t[0])}YC(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),No.delete(this)}cancel(){this.state==="scheduled"&&(No.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const tw=e=>e.startsWith("--");function nw(e,t,n){tw(t)?e.style.setProperty(t,n):e.style[t]=n}const ow=jc(()=>window.ScrollTimeline!==void 0),rw={};function sw(e,t){const n=jc(e);return()=>rw[t]??n()}const Zm=sw(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),qr=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,gf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qr([0,.65,.55,1]),circOut:qr([.55,0,1,.45]),backIn:qr([.31,.01,.66,-.59]),backOut:qr([.33,1.53,.69,.99])};function Xm(e,t){if(e)return typeof e=="function"?Zm()?Hm(e,t):"ease-out":Nm(e)?qr(e):Array.isArray(e)?e.map(n=>Xm(n,t)||gf.easeOut):gf[e]}function iw(e,t,n,{delay:o=0,duration:r=300,repeat:i=0,repeatType:a="loop",ease:l="easeOut",times:c}={},u=void 0){const d={[t]:n};c&&(d.offset=c);const f=Xm(l,r);Array.isArray(f)&&(d.easing=f);const p={delay:o,duration:r,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"};return u&&(p.pseudoElement=u),e.animate(d,p)}function Qm(e){return typeof e=="function"&&"applyToOptions"in e}function aw({type:e,...t}){return Qm(e)&&Zm()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class lw extends qc{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:o,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:l,onComplete:c}=t;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=t,Ln(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=aw(t);this.animation=iw(n,o,r,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=Yc(r,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(d):nw(n,o,d),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,o,r;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((r=(o=this.animation).commitStyles)==null||r.call(o))}get duration(){var n,o;const t=((o=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:o.call(n).duration)||0;return Jt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Jt(t)}get time(){return Jt(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Sn(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var o;return this.allowFlatten&&((o=this.animation.effect)==null||o.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&ow()?(this.animation.timeline=t,en):n(this)}}const Jm={anticipate:Dm,backInOut:km,circInOut:Im};function cw(e){return e in Jm}function uw(e){typeof e.ease=="string"&&cw(e.ease)&&(e.ease=Jm[e.ease])}const Qa=10;class dw extends lw{constructor(t){uw(t),qm(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:o,onComplete:r,element:i,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new Gc({...a,autoplay:!1}),c=Math.max(Qa,Lt.now()-this.startTime),u=Pn(0,Qa,c-Qa);n.setWithVelocity(l.sample(Math.max(0,c-u)).value,l.sample(c).value,u),l.stop()}}const yf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(to.test(e)||e==="0")&&!e.startsWith("url("));function fw(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function pw(e,t,n,o){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],a=yf(r,t),l=yf(i,t);return wr(a===l,`You are trying to animate ${t} from "${r}" to "${i}". "${a?i:r}" is not an animatable value.`,"value-not-animatable"),!a||!l?!1:fw(e)||(n==="spring"||Qm(n))&&o}function Yl(e){e.duration=0,e.type="keyframes"}const hw=new Set(["opacity","clipPath","filter","transform"]),mw=jc(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function gw(e){var d;const{motionValue:t,name:n,repeatDelay:o,repeatType:r,damping:i,type:a}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return mw()&&n&&hw.has(n)&&(n!=="transform"||!u)&&!c&&!o&&r!=="mirror"&&i!==0&&a!=="inertia"}const yw=40;class bw extends qc{constructor({autoplay:t=!0,delay:n=0,type:o="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a="loop",keyframes:l,name:c,motionValue:u,element:d,...f}){var m;super(),this.stop=()=>{var g,y;this._animation&&(this._animation.stop(),(g=this.stopTimeline)==null||g.call(this)),(y=this.keyframeResolver)==null||y.cancel()},this.createdAt=Lt.now();const p={autoplay:t,delay:n,type:o,repeat:r,repeatDelay:i,repeatType:a,name:c,motionValue:u,element:d,...f},h=(d==null?void 0:d.KeyframeResolver)||Kc;this.keyframeResolver=new h(l,(g,y,v)=>this.onKeyframesResolved(g,y,p,!v),c,u,d),(m=this.keyframeResolver)==null||m.scheduleResolve()}onKeyframesResolved(t,n,o,r){var y,v;this.keyframeResolver=void 0;const{name:i,type:a,velocity:l,delay:c,isHandoff:u,onUpdate:d}=o;this.resolvedAt=Lt.now(),pw(t,i,a,l)||(($n.instantAnimations||!c)&&(d==null||d(Yc(t,o,n))),t[0]=t[t.length-1],Yl(o),o.repeat=0);const p={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>yw?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...o,keyframes:t},h=!u&&gw(p),m=(v=(y=p.motionValue)==null?void 0:y.owner)==null?void 0:v.current,g=h?new dw({...p,element:m}):new Gc(p);g.finished.then(()=>{this.notifyFinished()}).catch(en),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),ew()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function eg(e,t,n,o=0,r=1){const i=Array.from(e).sort((u,d)=>u.sortNodePosition(d)).indexOf(t),a=e.size,l=(a-1)*o;return typeof n=="function"?n(i,a):r===1?i*o:l-i*o}const vw=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function xw(e){const t=vw.exec(e);if(!t)return[,];const[,n,o,r]=t;return[`--${n??o}`,r]}const Sw=4;function tg(e,t,n=1){Ln(n<=Sw,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[o,r]=xw(e);if(!o)return;const i=window.getComputedStyle(t).getPropertyValue(o);if(i){const a=i.trim();return Sm(a)?parseFloat(a):a}return Bc(r)?tg(r,t,n+1):r}const Cw={type:"spring",stiffness:500,damping:25,restSpeed:10},ww=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Tw={type:"keyframes",duration:.8},Pw={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ew=(e,{keyframes:t})=>t.length>2?Tw:Er.has(e)?e.startsWith("scale")?ww(t[1]):Cw:Pw,Mw=e=>e!==null;function Ow(e,{repeat:t,repeatType:n="loop"},o){const r=e.filter(Mw),i=t&&n!=="loop"&&t%2===1?0:r.length-1;return r[i]}function Zc(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}function kw({when:e,delay:t,delayChildren:n,staggerChildren:o,staggerDirection:r,repeat:i,repeatType:a,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const Xc=(e,t,n,o={},r,i)=>a=>{const l=Zc(o,e)||{},c=l.delay||o.delay||0;let{elapsed:u=0}=o;u=u-Sn(c);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:p=>{t.set(p),l.onUpdate&&l.onUpdate(p)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:r};kw(l)||Object.assign(d,Ew(e,d)),d.duration&&(d.duration=Sn(d.duration)),d.repeatDelay&&(d.repeatDelay=Sn(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Yl(d),d.delay===0&&(f=!0)),($n.instantAnimations||$n.skipAnimations||r!=null&&r.shouldSkipAnimations)&&(f=!0,Yl(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,f&&!i&&t.get()!==void 0){const p=Ow(d.keyframes,l);if(p!==void 0){et.update(()=>{d.onUpdate(p),d.onComplete()});return}}return l.isSync?new Gc(d):new bw(d)};function bf(e){const t=[{},{}];return e==null||e.values.forEach((n,o)=>{t[0][o]=n.get(),t[1][o]=n.getVelocity()}),t}function Qc(e,t,n,o){if(typeof t=="function"){const[r,i]=bf(o);t=t(n!==void 0?n:e.custom,r,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,i]=bf(o);t=t(n!==void 0?n:e.custom,r,i)}return t}function lr(e,t,n){const o=e.getProps();return Qc(o,t,n!==void 0?n:o.custom,e)}const ng=new Set(["width","height","top","left","right","bottom",...Pr]),vf=30,Dw=e=>!isNaN(parseFloat(e));class Rw{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{var i;const r=Lt.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Lt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Dw(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&$c(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Lc);const o=this.events[t].add(n);return t==="change"?()=>{o(),et.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,o){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Lt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>vf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,vf);return Tm(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function pr(e,t){return new Rw(e,t)}const ql=e=>Array.isArray(e);function Iw(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,pr(n))}function Aw(e){return ql(e)?e[e.length-1]||0:e}function Nw(e,t){const n=lr(e,t);let{transitionEnd:o={},transition:r={},...i}=n||{};i={...i,...o};for(const a in i){const l=Aw(i[a]);Iw(e,a,l)}}const It=e=>!!(e&&e.getVelocity);function _w(e){return!!(It(e)&&e.add)}function Gl(e,t){const n=e.getValue("willChange");if(_w(n))return n.add(t);if(!n&&$n.WillChange){const o=new $n.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function Jc(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const jw="framerAppearId",og="data-"+Jc(jw);function rg(e){return e.props[og]}function Lw({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,o}function sg(e,t,{delay:n=0,transitionOverride:o,type:r}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...l}=t;const c=i==null?void 0:i.reduceMotion;o&&(i=o);const u=[],d=r&&e.animationState&&e.animationState.getState()[r];for(const f in l){const p=e.getValue(f,e.latestValues[f]??null),h=l[f];if(h===void 0||d&&Lw(d,f))continue;const m={delay:n,...Zc(i||{},f)},g=p.get();if(g!==void 0&&!p.isAnimating&&!Array.isArray(h)&&h===g&&!m.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const x=rg(e);if(x){const S=window.MotionHandoffAnimation(x,f,et);S!==null&&(m.startTime=S,y=!0)}}Gl(e,f);const v=c??e.shouldReduceMotion;p.start(Xc(f,p,h,v&&ng.has(f)?{type:!1}:m,e,y));const w=p.animation;w&&u.push(w)}return a&&Promise.all(u).then(()=>{et.update(()=>{a&&Nw(e,a)})}),u}function Kl(e,t,n={}){var c;const o=lr(e,t,n.type==="exit"?(c=e.presenceContext)==null?void 0:c.custom:void 0);let{transition:r=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(r=n.transitionOverride);const i=o?()=>Promise.all(sg(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:p}=r;return $w(e,t,u,d,f,p,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[u,d]=l==="beforeChildren"?[i,a]:[a,i];return u().then(()=>d())}else return Promise.all([i(),a(n.delay)])}function $w(e,t,n=0,o=0,r=0,i=1,a){const l=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),l.push(Kl(c,t,{...a,delay:n+(typeof o=="function"?0:o)+eg(e.variantChildren,c,o,r,i)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function Vw(e,t,n={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){const r=t.map(i=>Kl(e,i,n));o=Promise.all(r)}else if(typeof t=="string")o=Kl(e,t,n);else{const r=typeof t=="function"?lr(e,t,n.custom):t;o=Promise.all(sg(e,r,n))}return o.then(()=>{e.notify("AnimationComplete",t)})}const Fw={test:e=>e==="auto",parse:e=>e},ig=e=>t=>t.test(e),ag=[Tr,xe,Cn,Wn,fC,dC,Fw],xf=e=>ag.find(ig(e));function Bw(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||wm(e):!0}const zw=new Set(["brightness","contrast","saturate","opacity"]);function Ww(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=n.match(zc)||[];if(!o)return e;const r=n.replace(o,"");let i=zw.has(t)?1:0;return o!==n&&(i*=100),t+"("+i+r+")"}const Uw=/\b([a-z-]*)\(.*?\)/gu,Zl={...to,getAnimatableNone:e=>{const t=e.match(Uw);return t?t.map(Ww).join(" "):e}},Sf={...Tr,transform:Math.round},Hw={rotate:Wn,rotateX:Wn,rotateY:Wn,rotateZ:Wn,scale:Qs,scaleX:Qs,scaleY:Qs,scaleZ:Qs,skew:Wn,skewX:Wn,skewY:Wn,distance:xe,translateX:xe,translateY:xe,translateZ:xe,x:xe,y:xe,z:xe,perspective:xe,transformPerspective:xe,opacity:ms,originX:af,originY:af,originZ:xe},eu={borderWidth:xe,borderTopWidth:xe,borderRightWidth:xe,borderBottomWidth:xe,borderLeftWidth:xe,borderRadius:xe,borderTopLeftRadius:xe,borderTopRightRadius:xe,borderBottomRightRadius:xe,borderBottomLeftRadius:xe,width:xe,maxWidth:xe,height:xe,maxHeight:xe,top:xe,right:xe,bottom:xe,left:xe,inset:xe,insetBlock:xe,insetBlockStart:xe,insetBlockEnd:xe,insetInline:xe,insetInlineStart:xe,insetInlineEnd:xe,padding:xe,paddingTop:xe,paddingRight:xe,paddingBottom:xe,paddingLeft:xe,paddingBlock:xe,paddingBlockStart:xe,paddingBlockEnd:xe,paddingInline:xe,paddingInlineStart:xe,paddingInlineEnd:xe,margin:xe,marginTop:xe,marginRight:xe,marginBottom:xe,marginLeft:xe,marginBlock:xe,marginBlockStart:xe,marginBlockEnd:xe,marginInline:xe,marginInlineStart:xe,marginInlineEnd:xe,fontSize:xe,backgroundPositionX:xe,backgroundPositionY:xe,...Hw,zIndex:Sf,fillOpacity:ms,strokeOpacity:ms,numOctaves:Sf},Yw={...eu,color:vt,backgroundColor:vt,outlineColor:vt,fill:vt,stroke:vt,borderColor:vt,borderTopColor:vt,borderRightColor:vt,borderBottomColor:vt,borderLeftColor:vt,filter:Zl,WebkitFilter:Zl},lg=e=>Yw[e];function cg(e,t){let n=lg(e);return n!==Zl&&(n=to),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const qw=new Set(["auto","none","0"]);function Gw(e,t,n){let o=0,r;for(;o<e.length&&!r;){const i=e[o];typeof i=="string"&&!qw.has(i)&&gs(i).values.length&&(r=e[o]),o++}if(r&&n)for(const i of t)e[i]=cg(n,r)}class Kw extends Kc{constructor(t,n,o,r,i){super(t,n,o,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:o}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let f=t[d];if(typeof f=="string"&&(f=f.trim(),Bc(f))){const p=tg(f,n.current);p!==void 0&&(t[d]=p),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!ng.has(o)||t.length!==2)return;const[r,i]=t,a=xf(r),l=xf(i),c=sf(r),u=sf(i);if(c!==u&&Kn[o]){this.needsMeasurement=!0;return}if(a!==l)if(mf(a)&&mf(l))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else Kn[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,o=[];for(let r=0;r<t.length;r++)(t[r]===null||Bw(t[r]))&&o.push(r);o.length&&Gw(t,o,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Kn[o](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(o,r).jump(r,!1)}measureEndState(){var l;const{element:t,name:n,unresolvedKeyframes:o}=this;if(!t||!t.current)return;const r=t.getValue(n);r&&r.jump(this.measuredOrigin,!1);const i=o.length-1,a=o[i];o[i]=Kn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),(l=this.removedTransforms)!=null&&l.length&&this.removedTransforms.forEach(([c,u])=>{t.getValue(c).set(u)}),this.resolveNoneKeyframes()}}function Zw(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;const r=(n==null?void 0:n[e])??o.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(o=>o!=null)}const ug=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Xl(e){return Cm(e)&&"offsetHeight"in e}const{schedule:tu}=_m(queueMicrotask,!1),dn={x:!1,y:!1};function dg(){return dn.x||dn.y}function Xw(e){return e==="x"||e==="y"?dn[e]?null:(dn[e]=!0,()=>{dn[e]=!1}):dn.x||dn.y?null:(dn.x=dn.y=!0,()=>{dn.x=dn.y=!1})}function fg(e,t){const n=Zw(e),o=new AbortController,r={passive:!0,...t,signal:o.signal};return[n,r,()=>o.abort()]}function Cf(e){return!(e.pointerType==="touch"||dg())}function Qw(e,t,n={}){const[o,r,i]=fg(e,n),a=l=>{if(!Cf(l))return;const{target:c}=l,u=t(c,l);if(typeof u!="function"||!c)return;const d=f=>{Cf(f)&&(u(f),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,r)};return o.forEach(l=>{l.addEventListener("pointerenter",a,r)}),i}const pg=(e,t)=>t?e===t?!0:pg(e,t.parentElement):!1,nu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Jw=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function hg(e){return Jw.has(e.tagName)||e.isContentEditable===!0}const gi=new WeakSet;function wf(e){return t=>{t.key==="Enter"&&e(t)}}function Ja(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const eT=(e,t)=>{const n=e.currentTarget;if(!n)return;const o=wf(()=>{if(gi.has(n))return;Ja(n,"down");const r=wf(()=>{Ja(n,"up")}),i=()=>Ja(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",o,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",o),t)};function Tf(e){return nu(e)&&!dg()}function tT(e,t,n={}){const[o,r,i]=fg(e,n),a=l=>{const c=l.currentTarget;if(!Tf(l))return;gi.add(c);const u=t(c,l),d=(h,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),gi.has(c)&&gi.delete(c),Tf(h)&&typeof u=="function"&&u(h,{success:m})},f=h=>{d(h,c===window||c===document||n.useGlobalTarget||pg(c,h.target))},p=h=>{d(h,!1)};window.addEventListener("pointerup",f,r),window.addEventListener("pointercancel",p,r)};return o.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,r),Xl(l)&&(l.addEventListener("focus",u=>eT(u,r)),!hg(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function mg(e){return Cm(e)&&"ownerSVGElement"in e}function nT(e){return mg(e)&&e.tagName==="svg"}const oT=[...ag,vt,to],rT=e=>oT.find(ig(e)),Pf=()=>({translate:0,scale:1,origin:0,originPoint:0}),or=()=>({x:Pf(),y:Pf()}),Ef=()=>({min:0,max:0}),Ct=()=>({x:Ef(),y:Ef()}),Ql={current:null},gg={current:!1},sT=typeof window<"u";function iT(){if(gg.current=!0,!!sT)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ql.current=e.matches;e.addEventListener("change",t),t()}else Ql.current=!1}const aT=new WeakMap;function aa(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ys(e){return typeof e=="string"||Array.isArray(e)}const ou=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ru=["initial",...ou];function la(e){return aa(e.animate)||ru.some(t=>ys(e[t]))}function yg(e){return!!(la(e)||e.variants)}function lT(e,t,n){for(const o in t){const r=t[o],i=n[o];if(It(r))e.addValue(o,r);else if(It(i))e.addValue(o,pr(r,{owner:e}));else if(i!==r)if(e.hasValue(o)){const a=e.getValue(o);a.liveStyle===!0?a.jump(r):a.hasAnimated||a.set(r)}else{const a=e.getStaticValue(o);e.addValue(o,pr(a!==void 0?a:r,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Mf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ki={};function bg(e){ki=e}function cT(){return ki}class uT{scrapeMotionValuesFromProps(t,n,o){return{}}constructor({parent:t,props:n,presenceContext:o,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Kc,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=Lt.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,et.render(this.render,!1,!0))};const{latestValues:u,renderState:d}=l;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=la(n),this.isVariantNode=yg(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in p){const m=p[h];u[h]!==void 0&&It(m)&&m.set(u[h])}}mount(t){var n;this.current=t,aT.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,r)=>this.bindToMotionValue(r,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(gg.current||iT(),this.shouldReduceMotion=Ql.current),process.env.NODE_ENV!=="production"&&$c(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),eo(this.notifyUpdate),eo(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const o=this.features[n];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const o=Er.has(t);o&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&et.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ki){const n=ki[t];if(!n)continue;const{isEnabled:o,Feature:r}=n;if(!this.features[t]&&r&&o(this.props)&&(this.features[t]=new r(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ct()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let o=0;o<Mf.length;o++){const r=Mf[o];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const i="on"+r,a=t[i];a&&(this.propEventSubscriptions[r]=this.on(r,a))}this.prevMotionValues=lT(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const o=this.values.get(t);n!==o&&(o&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&n!==void 0&&(o=pr(n===null?void 0:n,{owner:this}),this.addValue(t,o)),o}readValue(t,n){let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(Sm(o)||wm(o))?o=parseFloat(o):!rT(o)&&to.test(n)&&(o=cg(t,n)),this.setBaseTarget(t,It(o)?o.get():o)),It(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let o;if(typeof n=="string"||typeof n=="object"){const a=Qc(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);a&&(o=a[t])}if(n&&o!==void 0)return o;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!It(r)?r:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Lc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){tu.render(this.render)}}class vg extends uT{constructor(){super(...arguments),this.KeyframeResolver=Kw}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const o=t.style;return o?o[n]:void 0}removeValueFromRenderState(t,{vars:n,style:o}){delete n[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;It(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class io{constructor(t){this.isMounted=!1,this.node=t}update(){}}function xg({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function dT({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function fT(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}function el(e){return e===void 0||e===1}function Jl({scale:e,scaleX:t,scaleY:n}){return!el(e)||!el(t)||!el(n)}function Po(e){return Jl(e)||Sg(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Sg(e){return Of(e.x)||Of(e.y)}function Of(e){return e&&e!=="0%"}function Di(e,t,n){const o=e-n,r=t*o;return n+r}function kf(e,t,n,o,r){return r!==void 0&&(e=Di(e,r,o)),Di(e,n,o)+t}function ec(e,t=0,n=1,o,r){e.min=kf(e.min,t,n,o,r),e.max=kf(e.max,t,n,o,r)}function Cg(e,{x:t,y:n}){ec(e.x,t.translate,t.scale,t.originPoint),ec(e.y,n.translate,n.scale,n.originPoint)}const Df=.999999999999,Rf=1.0000000000001;function pT(e,t,n,o=!1){const r=n.length;if(!r)return;t.x=t.y=1;let i,a;for(let l=0;l<r;l++){i=n[l],a=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(o&&i.options.layoutScroll&&i.scroll&&i!==i.root&&sr(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Cg(e,a)),o&&Po(i.latestValues)&&sr(e,i.latestValues))}t.x<Rf&&t.x>Df&&(t.x=1),t.y<Rf&&t.y>Df&&(t.y=1)}function rr(e,t){e.min=e.min+t,e.max=e.max+t}function If(e,t,n,o,r=.5){const i=ct(e.min,e.max,r);ec(e,t,n,i,o)}function sr(e,t){If(e.x,t.x,t.scaleX,t.scale,t.originX),If(e.y,t.y,t.scaleY,t.scale,t.originY)}function wg(e,t){return xg(fT(e.getBoundingClientRect(),t))}function hT(e,t,n){const o=wg(e,n),{scroll:r}=t;return r&&(rr(o.x,r.offset.x),rr(o.y,r.offset.y)),o}const mT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gT=Pr.length;function yT(e,t,n){let o="",r=!0;for(let i=0;i<gT;i++){const a=Pr[i],l=e[a];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(a.startsWith("scale")?1:0);else{const u=parseFloat(l);c=a.startsWith("scale")?u===1:u===0}if(!c||n){const u=ug(l,eu[a]);if(!c){r=!1;const d=mT[a]||a;o+=`${d}(${u}) `}n&&(t[a]=u)}}return o=o.trim(),n?o=n(t,r?"":o):r&&(o="none"),o}function su(e,t,n){const{style:o,vars:r,transformOrigin:i}=e;let a=!1,l=!1;for(const c in t){const u=t[c];if(Er.has(c)){a=!0;continue}else if(Lm(c)){r[c]=u;continue}else{const d=ug(u,eu[c]);c.startsWith("origin")?(l=!0,i[c]=d):o[c]=d}}if(t.transform||(a||n?o.transform=yT(t,e.transform,n):o.transform&&(o.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=i;o.transformOrigin=`${c} ${u} ${d}`}}function Tg(e,{style:t,vars:n},o,r){const i=e.style;let a;for(a in t)i[a]=t[a];r==null||r.applyProjectionStyles(i,o);for(a in n)i.setProperty(a,n[a])}function Af(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ar={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(xe.test(e))e=parseFloat(e);else return e;const n=Af(e,t.target.x),o=Af(e,t.target.y);return`${n}% ${o}%`}},bT={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,r=to.parse(e);if(r.length>5)return o;const i=to.createTransformer(e),a=typeof r[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;r[0+a]/=l,r[1+a]/=c;const u=ct(l,c,.5);return typeof r[2+a]=="number"&&(r[2+a]/=u),typeof r[3+a]=="number"&&(r[3+a]/=u),i(r)}},tc={borderRadius:{...Ar,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ar,borderTopRightRadius:Ar,borderBottomLeftRadius:Ar,borderBottomRightRadius:Ar,boxShadow:bT};function Pg(e,{layout:t,layoutId:n}){return Er.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!tc[e]||e==="opacity")}function iu(e,t,n){var a;const o=e.style,r=t==null?void 0:t.style,i={};if(!o)return i;for(const l in o)(It(o[l])||r&&It(r[l])||Pg(l,e)||((a=n==null?void 0:n.getValue(l))==null?void 0:a.liveStyle)!==void 0)&&(i[l]=o[l]);return i}function vT(e){return window.getComputedStyle(e)}class xT extends vg{constructor(){super(...arguments),this.type="html",this.renderInstance=Tg}readValueFromInstance(t,n){var o;if(Er.has(n))return(o=this.projection)!=null&&o.isProjecting?Bl(n):KC(t,n);{const r=vT(t),i=(Lm(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return wg(t,n)}build(t,n,o){su(t,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,o){return iu(t,n,o)}}const ST={offset:"stroke-dashoffset",array:"stroke-dasharray"},CT={offset:"strokeDashoffset",array:"strokeDasharray"};function wT(e,t,n=1,o=0,r=!0){e.pathLength=1;const i=r?ST:CT;e[i.offset]=`${-o}`,e[i.array]=`${t} ${n}`}const TT=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Eg(e,{attrX:t,attrY:n,attrScale:o,pathLength:r,pathSpacing:i=1,pathOffset:a=0,...l},c,u,d){if(su(e,l,u),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p}=e;f.transform&&(p.transform=f.transform,delete f.transform),(p.transform||f.transformOrigin)&&(p.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),p.transform&&(p.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete f.transformBox);for(const h of TT)f[h]!==void 0&&(p[h]=f[h],delete f[h]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),o!==void 0&&(f.scale=o),r!==void 0&&wT(f,r,i,a,!1)}const Mg=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Og=e=>typeof e=="string"&&e.toLowerCase()==="svg";function PT(e,t,n,o){Tg(e,t,void 0,o);for(const r in t.attrs)e.setAttribute(Mg.has(r)?r:Jc(r),t.attrs[r])}function kg(e,t,n){const o=iu(e,t,n);for(const r in e)if(It(e[r])||It(t[r])){const i=Pr.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[i]=e[r]}return o}class ET extends vg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ct}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Er.has(n)){const o=lg(n);return o&&o.default||0}return n=Mg.has(n)?n:Jc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,o){return kg(t,n,o)}build(t,n,o){Eg(t,n,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,n,o,r){PT(t,n,o,r)}mount(t){this.isSVGTag=Og(t.tagName),super.mount(t)}}const MT=ru.length;function Dg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Dg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<MT;n++){const o=ru[n],r=e.props[o];(ys(r)||r===!1)&&(t[o]=r)}return t}function Rg(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let o=0;o<n;o++)if(t[o]!==e[o])return!1;return!0}const OT=[...ou].reverse(),kT=ou.length;function DT(e){return t=>Promise.all(t.map(({animation:n,options:o})=>Vw(e,n,o)))}function RT(e){let t=DT(e),n=Nf(),o=!0;const r=c=>(u,d)=>{var p;const f=lr(e,d,c==="exit"?(p=e.presenceContext)==null?void 0:p.custom:void 0);if(f){const{transition:h,transitionEnd:m,...g}=f;u={...u,...g,...m}}return u};function i(c){t=c(e)}function a(c){const{props:u}=e,d=Dg(e.parent)||{},f=[],p=new Set;let h={},m=1/0;for(let y=0;y<kT;y++){const v=OT[y],w=n[v],x=u[v]!==void 0?u[v]:d[v],S=ys(x),T=v===c?w.isActive:null;T===!1&&(m=y);let E=x===d[v]&&x!==u[v]&&S;if(E&&o&&e.manuallyAnimateOnMount&&(E=!1),w.protectedKeys={...h},!w.isActive&&T===null||!x&&!w.prevProp||aa(x)||typeof x=="boolean")continue;const M=IT(w.prevProp,x);let _=M||v===c&&w.isActive&&!E&&S||y>m&&S,D=!1;const $=Array.isArray(x)?x:[x];let j=$.reduce(r(v),{});T===!1&&(j={});const{prevResolvedValues:C={}}=w,L={...C,...j},k=N=>{_=!0,p.has(N)&&(D=!0,p.delete(N)),w.needsAnimating[N]=!0;const F=e.getValue(N);F&&(F.liveStyle=!1)};for(const N in L){const F=j[N],V=C[N];if(h.hasOwnProperty(N))continue;let B=!1;ql(F)&&ql(V)?B=!Rg(F,V):B=F!==V,B?F!=null?k(N):p.add(N):F!==void 0&&p.has(N)?k(N):w.protectedKeys[N]=!0}w.prevProp=x,w.prevResolvedValues=j,w.isActive&&(h={...h,...j}),o&&e.blockInitialAnimation&&(_=!1);const I=E&&M;_&&(!I||D)&&f.push(...$.map(N=>{const F={type:v};if(typeof N=="string"&&o&&!I&&e.manuallyAnimateOnMount&&e.parent){const{parent:V}=e,B=lr(V,N);if(V.enteringChildren&&B){const{delayChildren:R}=B.transition||{};F.delay=eg(V.enteringChildren,e,R)}}return{animation:N,options:F}}))}if(p.size){const y={};if(typeof u.initial!="boolean"){const v=lr(e,Array.isArray(u.initial)?u.initial[0]:u.initial);v&&v.transition&&(y.transition=v.transition)}p.forEach(v=>{const w=e.getBaseTarget(v),x=e.getValue(v);x&&(x.liveStyle=!0),y[v]=w??null}),f.push({animation:y})}let g=!!f.length;return o&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(g=!1),o=!1,g?t(f):Promise.resolve()}function l(c,u){var f;if(n[c].isActive===u)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(p=>{var h;return(h=p.animationState)==null?void 0:h.setActive(c,u)}),n[c].isActive=u;const d=a(c);for(const p in n)n[p].protectedKeys={};return d}return{animateChanges:a,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Nf()}}}function IT(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Rg(t,e):!1}function ho(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Nf(){return{animate:ho(!0),whileInView:ho(),whileHover:ho(),whileTap:ho(),whileDrag:ho(),whileFocus:ho(),exit:ho()}}function _f(e,t){e.min=t.min,e.max=t.max}function ln(e,t){_f(e.x,t.x),_f(e.y,t.y)}function jf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Ig=1e-4,AT=1-Ig,NT=1+Ig,Ag=.01,_T=0-Ag,jT=0+Ag;function $t(e){return e.max-e.min}function LT(e,t,n){return Math.abs(e-t)<=n}function Lf(e,t,n,o=.5){e.origin=o,e.originPoint=ct(t.min,t.max,e.origin),e.scale=$t(n)/$t(t),e.translate=ct(n.min,n.max,e.origin)-e.originPoint,(e.scale>=AT&&e.scale<=NT||isNaN(e.scale))&&(e.scale=1),(e.translate>=_T&&e.translate<=jT||isNaN(e.translate))&&(e.translate=0)}function rs(e,t,n,o){Lf(e.x,t.x,n.x,o?o.originX:void 0),Lf(e.y,t.y,n.y,o?o.originY:void 0)}function $f(e,t,n){e.min=n.min+t.min,e.max=e.min+$t(t)}function $T(e,t,n){$f(e.x,t.x,n.x),$f(e.y,t.y,n.y)}function Vf(e,t,n){e.min=t.min-n.min,e.max=e.min+$t(t)}function Ri(e,t,n){Vf(e.x,t.x,n.x),Vf(e.y,t.y,n.y)}function Ff(e,t,n,o,r){return e-=t,e=Di(e,1/n,o),r!==void 0&&(e=Di(e,1/r,o)),e}function VT(e,t=0,n=1,o=.5,r,i=e,a=e){if(Cn.test(t)&&(t=parseFloat(t),t=ct(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=ct(i.min,i.max,o);e===i&&(l-=t),e.min=Ff(e.min,t,n,l,r),e.max=Ff(e.max,t,n,l,r)}function Bf(e,t,[n,o,r],i,a){VT(e,t[n],t[o],t[r],t.scale,i,a)}const FT=["x","scaleX","originX"],BT=["y","scaleY","originY"];function zf(e,t,n,o){Bf(e.x,t,FT,n?n.x:void 0,o?o.x:void 0),Bf(e.y,t,BT,n?n.y:void 0,o?o.y:void 0)}function Wf(e){return e.translate===0&&e.scale===1}function Ng(e){return Wf(e.x)&&Wf(e.y)}function Uf(e,t){return e.min===t.min&&e.max===t.max}function zT(e,t){return Uf(e.x,t.x)&&Uf(e.y,t.y)}function Hf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function _g(e,t){return Hf(e.x,t.x)&&Hf(e.y,t.y)}function Yf(e){return $t(e.x)/$t(e.y)}function qf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Zt(e){return[e("x"),e("y")]}function WT(e,t,n){let o="";const r=e.x.translate/t.x,i=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((r||i||a)&&(o=`translate3d(${r}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:f,rotateY:p,skewX:h,skewY:m}=n;u&&(o=`perspective(${u}px) ${o}`),d&&(o+=`rotate(${d}deg) `),f&&(o+=`rotateX(${f}deg) `),p&&(o+=`rotateY(${p}deg) `),h&&(o+=`skewX(${h}deg) `),m&&(o+=`skewY(${m}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(o+=`scale(${l}, ${c})`),o||"none"}const jg=["TopLeft","TopRight","BottomLeft","BottomRight"],UT=jg.length,Gf=e=>typeof e=="string"?parseFloat(e):e,Kf=e=>typeof e=="number"||xe.test(e);function HT(e,t,n,o,r,i){r?(e.opacity=ct(0,n.opacity??1,YT(o)),e.opacityExit=ct(t.opacity??1,0,qT(o))):i&&(e.opacity=ct(t.opacity??1,n.opacity??1,o));for(let a=0;a<UT;a++){const l=`border${jg[a]}Radius`;let c=Zf(t,l),u=Zf(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||Kf(c)===Kf(u)?(e[l]=Math.max(ct(Gf(c),Gf(u),o),0),(Cn.test(u)||Cn.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=ct(t.rotate||0,n.rotate||0,o))}function Zf(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const YT=Lg(0,.5,Rm),qT=Lg(.5,.95,en);function Lg(e,t,n){return o=>o<e?0:o>t?1:n(hs(e,t,o))}function GT(e,t,n){const o=It(e)?e:pr(e);return o.start(Xc("",o,t,n)),o.animation}function bs(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}const KT=(e,t)=>e.depth-t.depth;class ZT{constructor(){this.children=[],this.isDirty=!1}add(t){Nc(this.children,t),this.isDirty=!0}remove(t){_c(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(KT),this.isDirty=!1,this.children.forEach(t)}}function XT(e,t){const n=Lt.now(),o=({timestamp:r})=>{const i=r-n;i>=t&&(eo(o),e(i-t))};return et.setup(o,!0),()=>eo(o)}function yi(e){return It(e)?e.get():e}class QT{constructor(){this.members=[]}add(t){Nc(this.members,t),t.scheduleRender()}remove(t){if(_c(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(r=>t===r);if(n===0)return!1;let o;for(let r=n;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1){o=i;break}}return o?(this.promote(o),!0):!1}promote(t,n){const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender();const r=o.options.layoutDependency,i=t.options.layoutDependency;r!==void 0&&i!==void 0&&r===i||(t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0));const{crossfade:l}=t.options;l===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:o}=t;n.onExitComplete&&n.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const bi={hasAnimatedSinceResize:!0,hasEverUpdated:!1},tl=["","X","Y","Z"],JT=1e3;let e2=0;function nl(e,t,n,o){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function $g(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=rg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",et,!(r||i))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&$g(o)}function Vg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(a={},l=t==null?void 0:t()){this.id=e2++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(o2),this.nodes.forEach(a2),this.nodes.forEach(l2),this.nodes.forEach(r2)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new ZT)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Lc),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){const c=this.eventHandlers.get(a);c&&c.notify(...l)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=mg(a)&&!nT(a),this.instance=a;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),e){let d,f=0;const p=()=>this.root.updateBlockedByResize=!1;et.read(()=>{f=window.innerWidth}),e(a,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,d&&d(),d=XT(p,250),bi.hasAnimatedSinceResize&&(bi.hasAnimatedSinceResize=!1,this.nodes.forEach(Jf)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:p,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||p2,{onLayoutAnimationStart:g,onLayoutAnimationComplete:y}=u.getProps(),v=!this.targetLayout||!_g(this.targetLayout,h),w=!f&&p;if(this.options.layoutRoot||this.resumeFrom||w||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...Zc(m,"layout"),onPlay:g,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(d,w)}else f||Jf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eo(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(c2),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&$g(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Xf);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Qf);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(i2),this.nodes.forEach(t2),this.nodes.forEach(n2)):this.nodes.forEach(Qf),this.clearAllSnapshots();const l=Lt.now();Ot.delta=Pn(0,1e3/60,l-Ot.timestamp),Ot.timestamp=l,Ot.isProcessing=!0,qa.update.process(Ot),qa.preRender.process(Ot),qa.render.process(Ot),Ot.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(s2),this.sharedNodes.forEach(u2)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,et.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){et.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!$t(this.snapshot.measuredBox.x)&&!$t(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Ct(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l&&this.instance){const c=o(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!r)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Ng(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&this.instance&&(l||Po(this.latestValues)||d)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return a&&(c=this.removeTransform(c)),h2(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:a}=this.options;if(!a)return Ct();const l=a.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(m2))){const{scroll:d}=this.root;d&&(rr(l.x,d.offset.x),rr(l.y,d.offset.y))}return l}removeElementScroll(a){var c;const l=Ct();if(ln(l,a),(c=this.scroll)!=null&&c.wasRoot)return l;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:f,options:p}=d;d!==this.root&&f&&p.layoutScroll&&(f.wasRoot&&ln(l,a),rr(l.x,f.offset.x),rr(l.y,f.offset.y))}return l}applyTransform(a,l=!1){const c=Ct();ln(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&sr(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Po(d.latestValues)&&sr(c,d.latestValues)}return Po(this.latestValues)&&sr(c,this.latestValues),c}removeTransform(a){const l=Ct();ln(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!Po(u.latestValues))continue;Jl(u.latestValues)&&u.updateSnapshot();const d=Ct(),f=u.measurePageBox();ln(d,f),zf(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return Po(this.latestValues)&&zf(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ot.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var h;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(h=this.parent)!=null&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!this.layout||!(d||f))return;this.resolvedRelativeTargetAt=Ot.timestamp;const p=this.getClosestProjectingParent();p&&this.linkedParentVersion!==p.layoutVersion&&!p.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(p&&p.layout?this.createRelativeTarget(p,this.layout.layoutBox,p.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ct(),this.targetWithTransforms=Ct()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),$T(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ln(this.target,this.layout.layoutBox),Cg(this.target,this.targetDelta)):ln(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?this.createRelativeTarget(p,this.target,p.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Jl(this.parent.latestValues)||Sg(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,l,c){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ct(),this.relativeTargetOrigin=Ct(),Ri(this.relativeTargetOrigin,l,c),ln(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var m;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Ot.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;ln(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,p=this.treeScale.y;pT(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Ct());const{target:h}=a;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(jf(this.prevProjectionDelta.x,this.projectionDelta.x),jf(this.prevProjectionDelta.y,this.projectionDelta.y)),rs(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!qf(this.projectionDelta.x,this.prevProjectionDelta.x)||!qf(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var l;if((l=this.options.visualElement)==null||l.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=or(),this.projectionDelta=or(),this.projectionDeltaWithTransform=or()}setAnimationOrigin(a,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},f=or();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const p=Ct(),h=c?c.source:void 0,m=this.layout?this.layout.source:void 0,g=h!==m,y=this.getStack(),v=!y||y.members.length<=1,w=!!(g&&!v&&this.options.crossfade===!0&&!this.path.some(f2));this.animationProgress=0;let x;this.mixTargetDelta=S=>{const T=S/1e3;ep(f.x,a.x,T),ep(f.y,a.y,T),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ri(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),d2(this.relativeTarget,this.relativeTargetOrigin,p,T),x&&zT(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Ct()),ln(x,this.relativeTarget)),g&&(this.animationValues=d,HT(d,u,this.latestValues,T,w,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var l,c,u;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(u=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||u.stop(),this.pendingAnimation&&(eo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=et.update(()=>{bi.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=pr(0)),this.currentAnimation=GT(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),a.onUpdate&&a.onUpdate(d)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(JT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=a;if(!(!l||!c||!u)){if(this!==a&&this.layout&&u&&Fg(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||Ct();const f=$t(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+f;const p=$t(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+p}ln(l,c),sr(l,d),rs(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new QT),this.sharedNodes.get(a).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var l;const{layoutId:a}=this.options;return a?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:a}=this.options;return a?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&nl("z",a,u,this.animationValues);for(let d=0;d<tl.length;d++)nl(`rotate${tl[d]}`,a,u,this.animationValues),nl(`skew${tl[d]}`,a,u,this.animationValues);a.render();for(const d in u)a.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);a.scheduleRender()}applyProjectionStyles(a,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=yi(l==null?void 0:l.pointerEvents)||"",a.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=yi(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!Po(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=WT(this.projectionDeltaWithTransform,this.treeScale,d);c&&(f=c(d,f)),a.transform=f;const{x:p,y:h}=this.projectionDelta;a.transformOrigin=`${p.origin*100}% ${h.origin*100}% 0`,u.animationValues?a.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:a.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const m in tc){if(d[m]===void 0)continue;const{correct:g,applyTo:y,isCSSVariable:v}=tc[m],w=f==="none"?d[m]:g(d[m],u);if(y){const x=y.length;for(let S=0;S<x;S++)a[y[S]]=w}else v?this.options.visualElement.renderState.vars[m]=w:a[m]=w}this.options.layoutId&&(a.pointerEvents=u===this?yi(l==null?void 0:l.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var l;return(l=a.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(Xf),this.root.sharedNodes.clear()}}}function t2(e){e.updateLayout()}function n2(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i==="size"?Zt(f=>{const p=a?t.measuredBox[f]:t.layoutBox[f],h=$t(p);p.min=o[f].min,p.max=p.min+h}):Fg(i,t.layoutBox,o)&&Zt(f=>{const p=a?t.measuredBox[f]:t.layoutBox[f],h=$t(o[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const l=or();rs(l,o,t.layoutBox);const c=or();a?rs(c,e.applyTransform(r,!0),t.measuredBox):rs(c,o,t.layoutBox);const u=!Ng(l);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const m=Ct();Ri(m,t.layoutBox,p.layoutBox);const g=Ct();Ri(g,o,h.layoutBox),_g(m,g)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=m,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:t,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:o}=e.options;o&&o()}e.options.transition=void 0}function o2(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function r2(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function s2(e){e.clearSnapshot()}function Xf(e){e.clearMeasurements()}function Qf(e){e.isLayoutDirty=!1}function i2(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Jf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function a2(e){e.resolveTargetDelta()}function l2(e){e.calcProjection()}function c2(e){e.resetSkewAndRotation()}function u2(e){e.removeLeadSnapshot()}function ep(e,t,n){e.translate=ct(t.translate,0,n),e.scale=ct(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function tp(e,t,n,o){e.min=ct(t.min,n.min,o),e.max=ct(t.max,n.max,o)}function d2(e,t,n,o){tp(e.x,t.x,n.x,o),tp(e.y,t.y,n.y,o)}function f2(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const p2={duration:.45,ease:[.4,0,.1,1]},np=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),op=np("applewebkit/")&&!np("chrome/")?Math.round:en;function rp(e){e.min=op(e.min),e.max=op(e.max)}function h2(e){rp(e.x),rp(e.y)}function Fg(e,t,n){return e==="position"||e==="preserve-aspect"&&!LT(Yf(t),Yf(n),.2)}function m2(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const g2=Vg({attachResizeListener:(e,t)=>bs(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),ol={current:void 0},Bg=Vg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ol.current){const e=new g2({});e.mount(window),e.setOptions({layoutScroll:!0}),ol.current=e}return ol.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),au=A.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function sp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function y2(...e){return t=>{let n=!1;const o=e.map(r=>{const i=sp(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<o.length;r++){const i=o[r];typeof i=="function"?i():sp(e[r],null)}}}}function b2(...e){return P.useCallback(y2(...e),e)}class v2 extends P.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const o=n.offsetParent,r=Xl(o)&&o.offsetWidth||0,i=Xl(o)&&o.offsetHeight||0,a=this.props.sizeRef.current;a.height=n.offsetHeight||0,a.width=n.offsetWidth||0,a.top=n.offsetTop,a.left=n.offsetLeft,a.right=r-a.width-a.left,a.bottom=i-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}}function x2({children:e,isPresent:t,anchorX:n,anchorY:o,root:r}){var f;const i=A.useId(),a=A.useRef(null),l=A.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=A.useContext(au),u=((f=e.props)==null?void 0:f.ref)??(e==null?void 0:e.ref),d=b2(a,u);return A.useInsertionEffect(()=>{const{width:p,height:h,top:m,left:g,right:y,bottom:v}=l.current;if(t||!a.current||!p||!h)return;const w=n==="left"?`left: ${g}`:`right: ${y}`,x=o==="bottom"?`bottom: ${v}`:`top: ${m}`;a.current.dataset.motionPopId=i;const S=document.createElement("style");c&&(S.nonce=c);const T=r??document.head;return T.appendChild(S),S.sheet&&S.sheet.insertRule(`
97
+ `))},[JSON.stringify(n)])}const u=P.useCallback(d=>{i||l(d)},[]);return[c,u]}function he(e){const t=P.useRef(e);return Ct(()=>{t.current=e}),P.useRef((...n)=>(0,t.current)(...n)).current}function $e(...e){const t=P.useRef(void 0),n=P.useCallback(o=>{const r=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{r.forEach(i=>i==null?void 0:i())}},e);return P.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}function sS(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function iS(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(u=>{sS(u,l[u])&&typeof a[u]=="function"&&(c[u]=(...d)=>{a[u](...d),l[u](...d)})}),c}if(typeof e=="function"||typeof t=="function")return a=>{const l=typeof t=="function"?t(a):t,c=typeof e=="function"?e({...a,...l}):e,u=ye(a==null?void 0:a.className,l==null?void 0:l.className,c==null?void 0:c.className),d=n(c,l);return{...l,...c,...d,...!!u&&{className:u},...(l==null?void 0:l.style)&&(c==null?void 0:c.style)&&{style:{...l.style,...c.style}},...(l==null?void 0:l.sx)&&(c==null?void 0:c.sx)&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const o=t,r=n(e,o),i=ye(o==null?void 0:o.className,e==null?void 0:e.className);return{...t,...e,...r,...!!i&&{className:i},...(o==null?void 0:o.style)&&(e==null?void 0:e.style)&&{style:{...o.style,...e.style}},...(o==null?void 0:o.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const aS=gt(b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),lS=gt(b.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),cS=gt(b.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),uS=(e,t)=>()=>{if(!t)return;const n={};e.forEach(o=>{o.items.forEach(r=>{r.value!==void 0&&r.value!==null&&r.value!==""&&(n[r.id]=r.value)})}),console.log("Filtros ativos:",n),t(n)},dS=(e,t,n)=>()=>{const o=e.map(r=>({...r,items:r.items.map(i=>({...i,value:void 0}))}));n&&n(o),t&&t()},fS=(e,t,n)=>()=>{const o=t.map(r=>r.id===e?{...r,expanded:!r.expanded}:r);n(o)},pS=(e,t,n,o)=>r=>{const i=n.map(a=>a.id===e?{...a,items:a.items.map(l=>l.id===t?{...l,value:r}:l)}:a);o(i)},hS="_modal_1ktm2_1",mS="_content_1ktm2_67",gS="_contentWrapper_1ktm2_74",yS="_closeButton_1ktm2_81",bS="_header_1ktm2_93",vS="_title_1ktm2_100",xS="_description_1ktm2_109",SS="_filtersContent_1ktm2_118",wS="_filterGroup_1ktm2_128",CS="_expandableHeader_1ktm2_135",TS="_expandableLabel_1ktm2_145",PS="_chevronIcon_1ktm2_153",ES="_chevron_1ktm2_153",MS="_filterItems_1ktm2_166",OS="_filterItem_1ktm2_166",kS="_filterItemSize1_1ktm2_178",DS="_filterItemSize2_1ktm2_182",RS="_filterItemSize3_1ktm2_186",IS="_filterItemSize4_1ktm2_190",AS="_filterItemSize5_1ktm2_194",NS="_filterItemSize6_1ktm2_198",_S="_filterInput_1ktm2_202",jS="_inputLabel_1ktm2_206",LS="_select_1ktm2_210",$S="_placeholder_1ktm2_227",VS="_helperText_1ktm2_231",FS="_footer_1ktm2_238",BS="_clearButton_1ktm2_245",zS="_applyButton_1ktm2_267",Ze={modal:hS,content:mS,contentWrapper:gS,closeButton:yS,header:bS,title:vS,description:xS,filtersContent:SS,filterGroup:wS,expandableHeader:CS,expandableLabel:TS,chevronIcon:PS,chevron:ES,filterItems:MS,filterItem:OS,filterItemSize1:kS,filterItemSize2:DS,filterItemSize3:RS,filterItemSize4:IS,filterItemSize5:AS,filterItemSize6:NS,filterInput:_S,inputLabel:jS,select:LS,"Mui-focused":"_Mui-focused_1ktm2_219",placeholder:$S,helperText:VS,footer:FS,clearButton:BS,applyButton:zS},bm=({open:e,onClose:t,title:n="Filtros",description:o="Use os filtros abaixo para encontrar câmeras e pontos de interesse.",children:r,formId:i,groups:a,onApply:l,onClear:c,onOpened:u,clearButtonText:d="Limpar filtros",applyButtonText:f="Filtrar",className:p,...h})=>{const m=q.useTheme(),g=m.palette.mode==="dark",y=q.useMediaQuery(m.breakpoints.down("md")),[v,C]=_.useState(a??[]),x=!!r;_.useEffect(()=>{C(a??[])},[a]);const S=uS(v,l),T=dS(v,c,C),E=(M,A)=>{var w;const k=pS(A,M.id,v,C),$=M.size||6,j=Ze[`filterItemSize${$}`];if(M.render)return b.jsx(q.Box,{className:`${Ze.filterItem} ${j}`,children:M.render(M,k)},M.id);switch(M.type){case"select":case"multi-select":const L=M.type==="multi-select";let D;L?M.value!==void 0&&M.value!==null?D=Array.isArray(M.value)?M.value:[M.value]:D=[]:D=M.value!==void 0&&M.value!==null?M.value:"";const I=L?Array.isArray(D)&&D.length>0:D!==""&&D!==null&&D!==void 0;return b.jsx(q.Box,{className:`${Ze.filterItem} ${j}`,children:b.jsxs(q.FormControl,{fullWidth:!0,className:Ze.filterInput,children:[b.jsx(q.InputLabel,{id:`${M.id}-label`,className:Ze.inputLabel,shrink:I,children:M.label}),b.jsx(q.Select,{labelId:`${M.id}-label`,value:D,onChange:O=>k(O.target.value),multiple:L,label:M.label,className:Ze.select,displayEmpty:!0,renderValue:O=>{var F;if(L){const V=Array.isArray(O)?O:[];return V.length===0?b.jsx(q.Box,{component:"span",style:{opacity:0},children:M.label}):V.map(R=>{var Y,G;return((G=(Y=M.options)==null?void 0:Y.find(Z=>Z.value===R))==null?void 0:G.label)||R}).join(", ")}if(!O||O==="")return b.jsx(q.Box,{component:"span",style:{opacity:0},children:M.label});const N=(F=M.options)==null?void 0:F.find(V=>V.value===O);return(N==null?void 0:N.label)||O},notched:I,children:(w=M.options)==null?void 0:w.map(O=>b.jsx(q.MenuItem,{value:O.value,children:O.label},O.value))}),M.helperText&&b.jsx(q.Box,{className:Ze.helperText,children:M.helperText})]})},M.id);case"text":return b.jsx(q.Box,{className:`${Ze.filterItem} ${j}`,children:b.jsx(q.TextField,{fullWidth:!0,label:M.label,placeholder:M.placeholder,value:M.value||"",onChange:O=>k(O.target.value),className:Ze.filterInput,helperText:M.helperText,FormHelperTextProps:{className:Ze.helperText}})},M.id);default:return null}};return b.jsx(q.Dialog,{open:e,onClose:t,maxWidth:"md",fullWidth:!0,fullScreen:y,TransitionProps:{onEntered:()=>u==null?void 0:u()},PaperProps:{className:`${Ze.modal} ${p||""}`,"data-theme":g?"dark":"light"},...h,children:b.jsx(q.DialogContent,{className:Ze.content,children:b.jsxs(q.Box,{className:Ze.contentWrapper,children:[b.jsx(q.IconButton,{className:Ze.closeButton,onClick:t,"aria-label":"Fechar",size:"small",children:b.jsx(cS,{})}),b.jsxs(q.Box,{className:Ze.header,children:[b.jsx(q.Box,{className:Ze.title,children:n}),b.jsx(q.Box,{className:Ze.description,children:o})]}),b.jsx(q.Box,{className:Ze.filtersContent,children:x?r:v.map(M=>{const A=fS(M.id,v,C),k=M.expanded!==!1;return b.jsxs(q.Box,{className:Ze.filterGroup,children:[b.jsxs(q.Box,{className:Ze.expandableHeader,onClick:A,children:[b.jsx(q.Box,{className:Ze.expandableLabel,children:M.label}),b.jsx(q.Box,{className:Ze.chevronIcon,children:k?b.jsx(lS,{className:Ze.chevron}):b.jsx(aS,{className:Ze.chevron})})]}),k&&b.jsx(q.Box,{className:Ze.filterItems,children:M.items.map($=>E($,M.id))})]},M.id)})}),b.jsxs(q.Box,{className:Ze.footer,children:[b.jsx(q.Button,{onClick:T,className:Ze.clearButton,"data-theme":g?"dark":"light",children:d}),b.jsx(q.Button,{type:i?"submit":"button",form:i,onClick:i?void 0:S,className:Ze.applyButton,"data-theme":g?"dark":"light",children:f})]})]})})})};bm.displayName="FilterModal";const WS="_container_1hyey_1",US="_card_1hyey_7",HS="_icon_1hyey_18",YS="_text_1hyey_32",Zs={container:WS,card:US,icon:HS,text:YS},qS=({items:e,className:t,sx:n})=>{const o=q.useTheme(),r={backgroundColor:o.palette.background.paper,borderColor:o.palette.divider},i={color:o.palette.text.primary,"& svg":{fill:o.palette.text.primary}},a={color:o.palette.text.secondary,fontFamily:o.typography.fontFamily,fontSize:o.typography.body2.fontSize,fontWeight:o.typography.fontWeightMedium,lineHeight:o.typography.body2.lineHeight};return b.jsx(q.Box,{className:`${Zs.container} ${t||""}`,sx:n,children:e.map((l,c)=>b.jsxs(q.Box,{className:Zs.card,sx:r,children:[l.icon&&b.jsx(q.Box,{className:Zs.icon,sx:i,children:l.icon}),b.jsxs(q.Typography,{component:"span",className:Zs.text,sx:a,children:[l.count," ",l.label]})]},c))})},Nc=_.createContext({});function _c(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const vm=typeof window<"u",xm=vm?_.useLayoutEffect:_.useEffect,ia=_.createContext(null);function jc(e,t){e.indexOf(t)===-1&&e.push(t)}function Lc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Pn=(e,t,n)=>n>t?t:n<e?e:n;function jl(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Cr=()=>{},Ln=()=>{};var zh;typeof process<"u"&&((zh=process.env)==null?void 0:zh.NODE_ENV)!=="production"&&(Cr=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(jl(t,n))},Ln=(e,t,n)=>{if(!e)throw new Error(jl(t,n))});const $n={},Sm=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function wm(e){return typeof e=="object"&&e!==null}const Cm=e=>/^0[^.\s]+$/u.test(e);function $c(e){let t;return()=>(t===void 0&&(t=e()),t)}const en=e=>e,GS=(e,t)=>n=>t(e(n)),Ds=(...e)=>e.reduce(GS),hs=(e,t,n)=>{const o=t-e;return o===0?1:(n-e)/o};class Vc{constructor(){this.subscriptions=[]}add(t){return jc(this.subscriptions,t),()=>Lc(this.subscriptions,t)}notify(t,n,o){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,o);else for(let i=0;i<r;i++){const a=this.subscriptions[i];a&&a(t,n,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Sn=e=>e*1e3,Jt=e=>e/1e3;function Tm(e,t){return t?e*(1e3/t):0}const nf=new Set;function Fc(e,t,n){e||nf.has(t)||(console.warn(jl(t,n)),nf.add(t))}const Pm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,KS=1e-7,ZS=12;function XS(e,t,n,o,r){let i,a,l=0;do a=t+(n-t)/2,i=Pm(a,o,r)-e,i>0?n=a:t=a;while(Math.abs(i)>KS&&++l<ZS);return a}function Rs(e,t,n,o){if(e===t&&n===o)return en;const r=i=>XS(i,0,1,e,n);return i=>i===0||i===1?i:Pm(r(i),t,o)}const Em=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Mm=e=>t=>1-e(1-t),Om=Rs(.33,1.53,.69,.99),Bc=Mm(Om),km=Em(Bc),Dm=e=>(e*=2)<1?.5*Bc(e):.5*(2-Math.pow(2,-10*(e-1))),zc=e=>1-Math.sin(Math.acos(e)),Rm=Mm(zc),Im=Em(zc),QS=Rs(.42,0,1,1),JS=Rs(0,0,.58,1),Am=Rs(.42,0,.58,1),ew=e=>Array.isArray(e)&&typeof e[0]!="number",Nm=e=>Array.isArray(e)&&typeof e[0]=="number",of={linear:en,easeIn:QS,easeInOut:Am,easeOut:JS,circIn:zc,circInOut:Im,circOut:Rm,backIn:Bc,backInOut:km,backOut:Om,anticipate:Dm},tw=e=>typeof e=="string",rf=e=>{if(Nm(e)){Ln(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,o,r]=e;return Rs(t,n,o,r)}else if(tw(e))return Ln(of[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),of[e];return e},Xs=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function nw(e,t){let n=new Set,o=new Set,r=!1,i=!1;const a=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(d){a.has(d)&&(u.schedule(d),e()),d(l)}const u={schedule:(d,f=!1,p=!1)=>{const m=p&&r?n:o;return f&&a.add(d),m.has(d)||m.add(d),d},cancel:d=>{o.delete(d),a.delete(d)},process:d=>{if(l=d,r){i=!0;return}r=!0,[n,o]=[o,n],n.forEach(c),n.clear(),r=!1,i&&(i=!1,u.process(d))}};return u}const ow=40;function _m(e,t){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=Xs.reduce((x,S)=>(x[S]=nw(i),x),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:d,update:f,preRender:p,render:h,postRender:m}=a,g=()=>{const x=$n.useManualTiming?r.timestamp:performance.now();n=!1,$n.useManualTiming||(r.delta=o?1e3/60:Math.max(Math.min(x-r.timestamp,ow),1)),r.timestamp=x,r.isProcessing=!0,l.process(r),c.process(r),u.process(r),d.process(r),f.process(r),p.process(r),h.process(r),m.process(r),r.isProcessing=!1,n&&t&&(o=!1,e(g))},y=()=>{n=!0,o=!0,r.isProcessing||e(g)};return{schedule:Xs.reduce((x,S)=>{const T=a[S];return x[S]=(E,M=!1,A=!1)=>(n||y(),T.schedule(E,M,A)),x},{}),cancel:x=>{for(let S=0;S<Xs.length;S++)a[Xs[S]].cancel(x)},state:r,steps:a}}const{schedule:et,cancel:eo,state:Ot,steps:Ka}=_m(typeof requestAnimationFrame<"u"?requestAnimationFrame:en,!0);let mi;function rw(){mi=void 0}const Lt={now:()=>(mi===void 0&&Lt.set(Ot.isProcessing||$n.useManualTiming?Ot.timestamp:performance.now()),mi),set:e=>{mi=e,queueMicrotask(rw)}},jm=e=>t=>typeof t=="string"&&t.startsWith(e),Lm=jm("--"),sw=jm("var(--"),Wc=e=>sw(e)?iw.test(e.split("/*")[0].trim()):!1,iw=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function sf(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Tr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ms={...Tr,transform:e=>Pn(0,1,e)},Qs={...Tr,default:1},os=e=>Math.round(e*1e5)/1e5,Uc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function aw(e){return e==null}const lw=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Hc=(e,t)=>n=>!!(typeof n=="string"&&lw.test(n)&&n.startsWith(e)||t&&!aw(n)&&Object.prototype.hasOwnProperty.call(n,t)),$m=(e,t,n)=>o=>{if(typeof o!="string")return o;const[r,i,a,l]=o.match(Uc);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},cw=e=>Pn(0,255,e),Za={...Tr,transform:e=>Math.round(cw(e))},Do={test:Hc("rgb","red"),parse:$m("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+Za.transform(e)+", "+Za.transform(t)+", "+Za.transform(n)+", "+os(ms.transform(o))+")"};function uw(e){let t="",n="",o="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}}const Ll={test:Hc("#"),parse:uw,transform:Do.transform},Is=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Wn=Is("deg"),wn=Is("%"),xe=Is("px"),dw=Is("vh"),fw=Is("vw"),af={...wn,parse:e=>wn.parse(e)/100,transform:e=>wn.transform(e*100)},tr={test:Hc("hsl","hue"),parse:$m("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+wn.transform(os(t))+", "+wn.transform(os(n))+", "+os(ms.transform(o))+")"},vt={test:e=>Do.test(e)||Ll.test(e)||tr.test(e),parse:e=>Do.test(e)?Do.parse(e):tr.test(e)?tr.parse(e):Ll.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Do.transform(e):tr.transform(e),getAnimatableNone:e=>{const t=vt.parse(e);return t.alpha=0,vt.transform(t)}},pw=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function hw(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Uc))==null?void 0:t.length)||0)+(((n=e.match(pw))==null?void 0:n.length)||0)>0}const Vm="number",Fm="color",mw="var",gw="var(",lf="${}",yw=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function gs(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},r=[];let i=0;const l=t.replace(yw,c=>(vt.test(c)?(o.color.push(i),r.push(Fm),n.push(vt.parse(c))):c.startsWith(gw)?(o.var.push(i),r.push(mw),n.push(c)):(o.number.push(i),r.push(Vm),n.push(parseFloat(c))),++i,lf)).split(lf);return{values:n,split:l,indexes:o,types:r}}function Bm(e){return gs(e).values}function zm(e){const{split:t,types:n}=gs(e),o=t.length;return r=>{let i="";for(let a=0;a<o;a++)if(i+=t[a],r[a]!==void 0){const l=n[a];l===Vm?i+=os(r[a]):l===Fm?i+=vt.transform(r[a]):i+=r[a]}return i}}const bw=e=>typeof e=="number"?0:vt.test(e)?vt.getAnimatableNone(e):e;function vw(e){const t=Bm(e);return zm(e)(t.map(bw))}const to={test:hw,parse:Bm,createTransformer:zm,getAnimatableNone:vw};function Xa(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function xw({hue:e,saturation:t,lightness:n,alpha:o}){e/=360,t/=100,n/=100;let r=0,i=0,a=0;if(!t)r=i=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;r=Xa(c,l,e+1/3),i=Xa(c,l,e),a=Xa(c,l,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:o}}function Ei(e,t){return n=>n>0?t:e}const ct=(e,t,n)=>e+(t-e)*n,Qa=(e,t,n)=>{const o=e*e,r=n*(t*t-o)+o;return r<0?0:Math.sqrt(r)},Sw=[Ll,Do,tr],ww=e=>Sw.find(t=>t.test(e));function cf(e){const t=ww(e);if(Cr(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===tr&&(n=xw(n)),n}const uf=(e,t)=>{const n=cf(e),o=cf(t);if(!n||!o)return Ei(e,t);const r={...n};return i=>(r.red=Qa(n.red,o.red,i),r.green=Qa(n.green,o.green,i),r.blue=Qa(n.blue,o.blue,i),r.alpha=ct(n.alpha,o.alpha,i),Do.transform(r))},$l=new Set(["none","hidden"]);function Cw(e,t){return $l.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Tw(e,t){return n=>ct(e,t,n)}function Yc(e){return typeof e=="number"?Tw:typeof e=="string"?Wc(e)?Ei:vt.test(e)?uf:Mw:Array.isArray(e)?Wm:typeof e=="object"?vt.test(e)?uf:Pw:Ei}function Wm(e,t){const n=[...e],o=n.length,r=e.map((i,a)=>Yc(i)(i,t[a]));return i=>{for(let a=0;a<o;a++)n[a]=r[a](i);return n}}function Pw(e,t){const n={...e,...t},o={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(o[r]=Yc(e[r])(e[r],t[r]));return r=>{for(const i in o)n[i]=o[i](r);return n}}function Ew(e,t){const n=[],o={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const i=t.types[r],a=e.indexes[i][o[i]],l=e.values[a]??0;n[r]=l,o[i]++}return n}const Mw=(e,t)=>{const n=to.createTransformer(t),o=gs(e),r=gs(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?$l.has(e)&&!r.values.length||$l.has(t)&&!o.values.length?Cw(e,t):Ds(Wm(Ew(o,r),r.values),n):(Cr(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Ei(e,t))};function Um(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ct(e,t,n):Yc(e)(e,t)}const Ow=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>et.update(t,n),stop:()=>eo(t),now:()=>Ot.isProcessing?Ot.timestamp:Lt.now()}},Hm=(e,t,n=10)=>{let o="";const r=Math.max(Math.round(t/n),2);for(let i=0;i<r;i++)o+=Math.round(e(i/(r-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},Mi=2e4;function qc(e){let t=0;const n=50;let o=e.next(t);for(;!o.done&&t<Mi;)t+=n,o=e.next(t);return t>=Mi?1/0:t}function kw(e,t=100,n){const o=n({...e,keyframes:[0,t]}),r=Math.min(qc(o),Mi);return{type:"keyframes",ease:i=>o.next(r*i).value/t,duration:Jt(r)}}const Dw=5;function Ym(e,t,n){const o=Math.max(t-Dw,0);return Tm(n-e(o),t-o)}const lt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ja=.001;function Rw({duration:e=lt.duration,bounce:t=lt.bounce,velocity:n=lt.velocity,mass:o=lt.mass}){let r,i;Cr(e<=Sn(lt.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=Pn(lt.minDamping,lt.maxDamping,a),e=Pn(lt.minDuration,lt.maxDuration,Jt(e)),a<1?(r=u=>{const d=u*a,f=d*e,p=d-n,h=Vl(u,a),m=Math.exp(-f);return Ja-p/h*m},i=u=>{const f=u*a*e,p=f*n+n,h=Math.pow(a,2)*Math.pow(u,2)*e,m=Math.exp(-f),g=Vl(Math.pow(u,2),a);return(-r(u)+Ja>0?-1:1)*((p-h)*m)/g}):(r=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-Ja+d*f},i=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const l=5/e,c=Aw(r,i,l);if(e=Sn(e),isNaN(c))return{stiffness:lt.stiffness,damping:lt.damping,duration:e};{const u=Math.pow(c,2)*o;return{stiffness:u,damping:a*2*Math.sqrt(o*u),duration:e}}}const Iw=12;function Aw(e,t,n){let o=n;for(let r=1;r<Iw;r++)o=o-e(o)/t(o);return o}function Vl(e,t){return e*Math.sqrt(1-t*t)}const Nw=["duration","bounce"],_w=["stiffness","damping","mass"];function df(e,t){return t.some(n=>e[n]!==void 0)}function jw(e){let t={velocity:lt.velocity,stiffness:lt.stiffness,damping:lt.damping,mass:lt.mass,isResolvedFromDuration:!1,...e};if(!df(e,_w)&&df(e,Nw))if(e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),r=o*o,i=2*Pn(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:lt.mass,stiffness:r,damping:i}}else{const n=Rw(e);t={...t,...n,mass:lt.mass},t.isResolvedFromDuration=!0}return t}function Oi(e=lt.visualDuration,t=lt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:o,restDelta:r}=n;const i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:i},{stiffness:c,damping:u,mass:d,duration:f,velocity:p,isResolvedFromDuration:h}=jw({...n,velocity:-Jt(n.velocity||0)}),m=p||0,g=u/(2*Math.sqrt(c*d)),y=a-i,v=Jt(Math.sqrt(c/d)),C=Math.abs(y)<5;o||(o=C?lt.restSpeed.granular:lt.restSpeed.default),r||(r=C?lt.restDelta.granular:lt.restDelta.default);let x;if(g<1){const T=Vl(v,g);x=E=>{const M=Math.exp(-g*v*E);return a-M*((m+g*v*y)/T*Math.sin(T*E)+y*Math.cos(T*E))}}else if(g===1)x=T=>a-Math.exp(-v*T)*(y+(m+v*y)*T);else{const T=v*Math.sqrt(g*g-1);x=E=>{const M=Math.exp(-g*v*E),A=Math.min(T*E,300);return a-M*((m+g*v*y)*Math.sinh(A)+T*y*Math.cosh(A))/T}}const S={calculatedDuration:h&&f||null,next:T=>{const E=x(T);if(h)l.done=T>=f;else{let M=T===0?m:0;g<1&&(M=T===0?Sn(m):Ym(x,T,E));const A=Math.abs(M)<=o,k=Math.abs(a-E)<=r;l.done=A&&k}return l.value=l.done?a:E,l},toString:()=>{const T=Math.min(qc(S),Mi),E=Hm(M=>S.next(T*M).value,T,30);return T+"ms "+E},toTransition:()=>{}};return S}Oi.applyToOptions=e=>{const t=kw(e,100,Oi);return e.ease=t.ease,e.duration=Sn(t.duration),e.type="keyframes",e};function Fl({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:a,min:l,max:c,restDelta:u=.5,restSpeed:d}){const f=e[0],p={done:!1,value:f},h=A=>l!==void 0&&A<l||c!==void 0&&A>c,m=A=>l===void 0?c:c===void 0||Math.abs(l-A)<Math.abs(c-A)?l:c;let g=n*t;const y=f+g,v=a===void 0?y:a(y);v!==y&&(g=v-f);const C=A=>-g*Math.exp(-A/o),x=A=>v+C(A),S=A=>{const k=C(A),$=x(A);p.done=Math.abs(k)<=u,p.value=p.done?v:$};let T,E;const M=A=>{h(p.value)&&(T=A,E=Oi({keyframes:[p.value,m(p.value)],velocity:Ym(x,A,p.value),damping:r,stiffness:i,restDelta:u,restSpeed:d}))};return M(0),{calculatedDuration:null,next:A=>{let k=!1;return!E&&T===void 0&&(k=!0,S(A),M(A)),T!==void 0&&A>=T?E.next(A-T):(!k&&S(A),p)}}}function Lw(e,t,n){const o=[],r=n||$n.mix||Um,i=e.length-1;for(let a=0;a<i;a++){let l=r(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||en:t;l=Ds(c,l)}o.push(l)}return o}function $w(e,t,{clamp:n=!0,ease:o,mixer:r}={}){const i=e.length;if(Ln(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=Lw(t,o,r),c=l.length,u=d=>{if(a&&d<e[0])return t[0];let f=0;if(c>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const p=hs(e[f],e[f+1],d);return l[f](p)};return n?d=>u(Pn(e[0],e[i-1],d)):u}function Vw(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const r=hs(0,t,o);e.push(ct(n,1,r))}}function Fw(e){const t=[0];return Vw(t,e.length-1),t}function Bw(e,t){return e.map(n=>n*t)}function zw(e,t){return e.map(()=>t||Am).splice(0,e.length-1)}function nr({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const r=ew(o)?o.map(rf):rf(o),i={done:!1,value:t[0]},a=Bw(n&&n.length===t.length?n:Fw(t),e),l=$w(a,t,{ease:Array.isArray(r)?r:zw(t,r)});return{calculatedDuration:e,next:c=>(i.value=l(c),i.done=c>=e,i)}}const Ww=e=>e!==null;function Gc(e,{repeat:t,repeatType:n="loop"},o,r=1){const i=e.filter(Ww),l=r<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!l||o===void 0?i[l]:o}const Uw={decay:Fl,inertia:Fl,tween:nr,keyframes:nr,spring:Oi};function qm(e){typeof e.type=="string"&&(e.type=Uw[e.type])}class Kc{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Hw=e=>e/100;class Zc extends Kc{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var o,r;const{motionValue:n}=this.options;n&&n.updatedAt!==Lt.now()&&this.tick(Lt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(r=(o=this.options).onStop)==null||r.call(o))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;qm(t);const{type:n=nr,repeat:o=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=t;let{keyframes:l}=t;const c=n||nr;process.env.NODE_ENV!=="production"&&c!==nr&&Ln(l.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${l}`,"spring-two-frames"),c!==nr&&typeof l[0]!="number"&&(this.mixKeyframes=Ds(Hw,Um(l[0],l[1])),l=[0,100]);const u=c({...t,keyframes:l});i==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...l].reverse(),velocity:-a})),u.calculatedDuration===null&&(u.calculatedDuration=qc(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+r,this.totalDuration=this.resolvedDuration*(o+1)-r,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:o,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return o.next(0);const{delay:u=0,keyframes:d,repeat:f,repeatType:p,repeatDelay:h,type:m,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?v<0:v>r;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let x=this.currentTime,S=o;if(f){const A=Math.min(this.currentTime,r)/l;let k=Math.floor(A),$=A%1;!$&&A>=1&&($=1),$===1&&k--,k=Math.min(k,f+1),!!(k%2)&&(p==="reverse"?($=1-$,h&&($-=h/l)):p==="mirror"&&(S=a)),x=Pn(0,1,$)*l}const T=C?{done:!1,value:d[0]}:S.next(x);i&&(T.value=i(T.value));let{done:E}=T;!C&&c!==null&&(E=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return M&&m!==Fl&&(T.value=Gc(d,this.options,y,this.speed)),g&&g(T.value),M&&this.finish(),T}then(t,n){return this.finished.then(t,n)}get duration(){return Jt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Jt(t)}get time(){return Jt(this.currentTime)}set time(t){var n;t=Sn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Lt.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Jt(this.currentTime))}play(){var r,i;if(this.isStopped)return;const{driver:t=Ow,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),(i=(r=this.options).onPlay)==null||i.call(r);const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=n??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Lt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function Yw(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Ro=e=>e*180/Math.PI,Bl=e=>{const t=Ro(Math.atan2(e[1],e[0]));return zl(t)},qw={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Bl,rotateZ:Bl,skewX:e=>Ro(Math.atan(e[1])),skewY:e=>Ro(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},zl=e=>(e=e%360,e<0&&(e+=360),e),ff=Bl,pf=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),hf=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Gw={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:pf,scaleY:hf,scale:e=>(pf(e)+hf(e))/2,rotateX:e=>zl(Ro(Math.atan2(e[6],e[5]))),rotateY:e=>zl(Ro(Math.atan2(-e[2],e[0]))),rotateZ:ff,rotate:ff,skewX:e=>Ro(Math.atan(e[4])),skewY:e=>Ro(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Wl(e){return e.includes("scale")?1:0}function Ul(e,t){if(!e||e==="none")return Wl(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,r;if(n)o=Gw,r=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=qw,r=l}if(!r)return Wl(t);const i=o[t],a=r[1].split(",").map(Zw);return typeof i=="function"?i(a):a[i]}const Kw=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Ul(n,t)};function Zw(e){return parseFloat(e.trim())}const Pr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Er=new Set(Pr),mf=e=>e===Tr||e===xe,Xw=new Set(["x","y","z"]),Qw=Pr.filter(e=>!Xw.has(e));function Jw(e){const t=[];return Qw.forEach(n=>{const o=e.getValue(n);o!==void 0&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),t}const Kn={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Ul(t,"x"),y:(e,{transform:t})=>Ul(t,"y")};Kn.translateX=Kn.x;Kn.translateY=Kn.y;const No=new Set;let Hl=!1,Yl=!1,ql=!1;function Gm(){if(Yl){const e=Array.from(No).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),n=new Map;t.forEach(o=>{const r=Jw(o);r.length&&(n.set(o,r),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();const r=n.get(o);r&&r.forEach(([i,a])=>{var l;(l=o.getValue(i))==null||l.set(a)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Yl=!1,Hl=!1,No.forEach(e=>e.complete(ql)),No.clear()}function Km(){No.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Yl=!0)})}function eC(){ql=!0,Km(),Gm(),ql=!1}class Xc{constructor(t,n,o,r,i,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=o,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(No.add(this),Hl||(Hl=!0,et.read(Km),et.resolveKeyframes(Gm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:o,motionValue:r}=this;if(t[0]===null){const i=r==null?void 0:r.get(),a=t[t.length-1];if(i!==void 0)t[0]=i;else if(o&&n){const l=o.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),r&&i===void 0&&r.set(t[0])}Yw(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),No.delete(this)}cancel(){this.state==="scheduled"&&(No.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const tC=e=>e.startsWith("--");function nC(e,t,n){tC(t)?e.style.setProperty(t,n):e.style[t]=n}const oC=$c(()=>window.ScrollTimeline!==void 0),rC={};function sC(e,t){const n=$c(e);return()=>rC[t]??n()}const Zm=sC(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),qr=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,gf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qr([0,.65,.55,1]),circOut:qr([.55,0,1,.45]),backIn:qr([.31,.01,.66,-.59]),backOut:qr([.33,1.53,.69,.99])};function Xm(e,t){if(e)return typeof e=="function"?Zm()?Hm(e,t):"ease-out":Nm(e)?qr(e):Array.isArray(e)?e.map(n=>Xm(n,t)||gf.easeOut):gf[e]}function iC(e,t,n,{delay:o=0,duration:r=300,repeat:i=0,repeatType:a="loop",ease:l="easeOut",times:c}={},u=void 0){const d={[t]:n};c&&(d.offset=c);const f=Xm(l,r);Array.isArray(f)&&(d.easing=f);const p={delay:o,duration:r,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"};return u&&(p.pseudoElement=u),e.animate(d,p)}function Qm(e){return typeof e=="function"&&"applyToOptions"in e}function aC({type:e,...t}){return Qm(e)&&Zm()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class lC extends Kc{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:o,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:l,onComplete:c}=t;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=t,Ln(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=aC(t);this.animation=iC(n,o,r,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=Gc(r,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(d):nC(n,o,d),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,o,r;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((r=(o=this.animation).commitStyles)==null||r.call(o))}get duration(){var n,o;const t=((o=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:o.call(n).duration)||0;return Jt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Jt(t)}get time(){return Jt(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Sn(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var o;return this.allowFlatten&&((o=this.animation.effect)==null||o.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&oC()?(this.animation.timeline=t,en):n(this)}}const Jm={anticipate:Dm,backInOut:km,circInOut:Im};function cC(e){return e in Jm}function uC(e){typeof e.ease=="string"&&cC(e.ease)&&(e.ease=Jm[e.ease])}const el=10;class dC extends lC{constructor(t){uC(t),qm(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:o,onComplete:r,element:i,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new Zc({...a,autoplay:!1}),c=Math.max(el,Lt.now()-this.startTime),u=Pn(0,el,c-el);n.setWithVelocity(l.sample(Math.max(0,c-u)).value,l.sample(c).value,u),l.stop()}}const yf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(to.test(e)||e==="0")&&!e.startsWith("url("));function fC(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function pC(e,t,n,o){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],a=yf(r,t),l=yf(i,t);return Cr(a===l,`You are trying to animate ${t} from "${r}" to "${i}". "${a?i:r}" is not an animatable value.`,"value-not-animatable"),!a||!l?!1:fC(e)||(n==="spring"||Qm(n))&&o}function Gl(e){e.duration=0,e.type="keyframes"}const hC=new Set(["opacity","clipPath","filter","transform"]),mC=$c(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function gC(e){var d;const{motionValue:t,name:n,repeatDelay:o,repeatType:r,damping:i,type:a}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return mC()&&n&&hC.has(n)&&(n!=="transform"||!u)&&!c&&!o&&r!=="mirror"&&i!==0&&a!=="inertia"}const yC=40;class bC extends Kc{constructor({autoplay:t=!0,delay:n=0,type:o="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a="loop",keyframes:l,name:c,motionValue:u,element:d,...f}){var m;super(),this.stop=()=>{var g,y;this._animation&&(this._animation.stop(),(g=this.stopTimeline)==null||g.call(this)),(y=this.keyframeResolver)==null||y.cancel()},this.createdAt=Lt.now();const p={autoplay:t,delay:n,type:o,repeat:r,repeatDelay:i,repeatType:a,name:c,motionValue:u,element:d,...f},h=(d==null?void 0:d.KeyframeResolver)||Xc;this.keyframeResolver=new h(l,(g,y,v)=>this.onKeyframesResolved(g,y,p,!v),c,u,d),(m=this.keyframeResolver)==null||m.scheduleResolve()}onKeyframesResolved(t,n,o,r){var y,v;this.keyframeResolver=void 0;const{name:i,type:a,velocity:l,delay:c,isHandoff:u,onUpdate:d}=o;this.resolvedAt=Lt.now(),pC(t,i,a,l)||(($n.instantAnimations||!c)&&(d==null||d(Gc(t,o,n))),t[0]=t[t.length-1],Gl(o),o.repeat=0);const p={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>yC?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...o,keyframes:t},h=!u&&gC(p),m=(v=(y=p.motionValue)==null?void 0:y.owner)==null?void 0:v.current,g=h?new dC({...p,element:m}):new Zc(p);g.finished.then(()=>{this.notifyFinished()}).catch(en),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),eC()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function eg(e,t,n,o=0,r=1){const i=Array.from(e).sort((u,d)=>u.sortNodePosition(d)).indexOf(t),a=e.size,l=(a-1)*o;return typeof n=="function"?n(i,a):r===1?i*o:l-i*o}const vC=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function xC(e){const t=vC.exec(e);if(!t)return[,];const[,n,o,r]=t;return[`--${n??o}`,r]}const SC=4;function tg(e,t,n=1){Ln(n<=SC,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[o,r]=xC(e);if(!o)return;const i=window.getComputedStyle(t).getPropertyValue(o);if(i){const a=i.trim();return Sm(a)?parseFloat(a):a}return Wc(r)?tg(r,t,n+1):r}const wC={type:"spring",stiffness:500,damping:25,restSpeed:10},CC=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),TC={type:"keyframes",duration:.8},PC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},EC=(e,{keyframes:t})=>t.length>2?TC:Er.has(e)?e.startsWith("scale")?CC(t[1]):wC:PC,MC=e=>e!==null;function OC(e,{repeat:t,repeatType:n="loop"},o){const r=e.filter(MC),i=t&&n!=="loop"&&t%2===1?0:r.length-1;return r[i]}function Qc(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}function kC({when:e,delay:t,delayChildren:n,staggerChildren:o,staggerDirection:r,repeat:i,repeatType:a,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const Jc=(e,t,n,o={},r,i)=>a=>{const l=Qc(o,e)||{},c=l.delay||o.delay||0;let{elapsed:u=0}=o;u=u-Sn(c);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:p=>{t.set(p),l.onUpdate&&l.onUpdate(p)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:i?void 0:r};kC(l)||Object.assign(d,EC(e,d)),d.duration&&(d.duration=Sn(d.duration)),d.repeatDelay&&(d.repeatDelay=Sn(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Gl(d),d.delay===0&&(f=!0)),($n.instantAnimations||$n.skipAnimations||r!=null&&r.shouldSkipAnimations)&&(f=!0,Gl(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,f&&!i&&t.get()!==void 0){const p=OC(d.keyframes,l);if(p!==void 0){et.update(()=>{d.onUpdate(p),d.onComplete()});return}}return l.isSync?new Zc(d):new bC(d)};function bf(e){const t=[{},{}];return e==null||e.values.forEach((n,o)=>{t[0][o]=n.get(),t[1][o]=n.getVelocity()}),t}function eu(e,t,n,o){if(typeof t=="function"){const[r,i]=bf(o);t=t(n!==void 0?n:e.custom,r,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,i]=bf(o);t=t(n!==void 0?n:e.custom,r,i)}return t}function lr(e,t,n){const o=e.getProps();return eu(o,t,n!==void 0?n:o.custom,e)}const ng=new Set(["width","height","top","left","right","bottom",...Pr]),vf=30,DC=e=>!isNaN(parseFloat(e));class RC{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{var i;const r=Lt.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Lt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=DC(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Fc(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Vc);const o=this.events[t].add(n);return t==="change"?()=>{o(),et.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,o){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Lt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>vf)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,vf);return Tm(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function pr(e,t){return new RC(e,t)}const Kl=e=>Array.isArray(e);function IC(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,pr(n))}function AC(e){return Kl(e)?e[e.length-1]||0:e}function NC(e,t){const n=lr(e,t);let{transitionEnd:o={},transition:r={},...i}=n||{};i={...i,...o};for(const a in i){const l=AC(i[a]);IC(e,a,l)}}const It=e=>!!(e&&e.getVelocity);function _C(e){return!!(It(e)&&e.add)}function Zl(e,t){const n=e.getValue("willChange");if(_C(n))return n.add(t);if(!n&&$n.WillChange){const o=new $n.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function tu(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const jC="framerAppearId",og="data-"+tu(jC);function rg(e){return e.props[og]}function LC({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,o}function sg(e,t,{delay:n=0,transitionOverride:o,type:r}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...l}=t;const c=i==null?void 0:i.reduceMotion;o&&(i=o);const u=[],d=r&&e.animationState&&e.animationState.getState()[r];for(const f in l){const p=e.getValue(f,e.latestValues[f]??null),h=l[f];if(h===void 0||d&&LC(d,f))continue;const m={delay:n,...Qc(i||{},f)},g=p.get();if(g!==void 0&&!p.isAnimating&&!Array.isArray(h)&&h===g&&!m.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const x=rg(e);if(x){const S=window.MotionHandoffAnimation(x,f,et);S!==null&&(m.startTime=S,y=!0)}}Zl(e,f);const v=c??e.shouldReduceMotion;p.start(Jc(f,p,h,v&&ng.has(f)?{type:!1}:m,e,y));const C=p.animation;C&&u.push(C)}return a&&Promise.all(u).then(()=>{et.update(()=>{a&&NC(e,a)})}),u}function Xl(e,t,n={}){var c;const o=lr(e,t,n.type==="exit"?(c=e.presenceContext)==null?void 0:c.custom:void 0);let{transition:r=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(r=n.transitionOverride);const i=o?()=>Promise.all(sg(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:p}=r;return $C(e,t,u,d,f,p,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[u,d]=l==="beforeChildren"?[i,a]:[a,i];return u().then(()=>d())}else return Promise.all([i(),a(n.delay)])}function $C(e,t,n=0,o=0,r=0,i=1,a){const l=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),l.push(Xl(c,t,{...a,delay:n+(typeof o=="function"?0:o)+eg(e.variantChildren,c,o,r,i)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function VC(e,t,n={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){const r=t.map(i=>Xl(e,i,n));o=Promise.all(r)}else if(typeof t=="string")o=Xl(e,t,n);else{const r=typeof t=="function"?lr(e,t,n.custom):t;o=Promise.all(sg(e,r,n))}return o.then(()=>{e.notify("AnimationComplete",t)})}const FC={test:e=>e==="auto",parse:e=>e},ig=e=>t=>t.test(e),ag=[Tr,xe,wn,Wn,fw,dw,FC],xf=e=>ag.find(ig(e));function BC(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Cm(e):!0}const zC=new Set(["brightness","contrast","saturate","opacity"]);function WC(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=n.match(Uc)||[];if(!o)return e;const r=n.replace(o,"");let i=zC.has(t)?1:0;return o!==n&&(i*=100),t+"("+i+r+")"}const UC=/\b([a-z-]*)\(.*?\)/gu,Ql={...to,getAnimatableNone:e=>{const t=e.match(UC);return t?t.map(WC).join(" "):e}},Sf={...Tr,transform:Math.round},HC={rotate:Wn,rotateX:Wn,rotateY:Wn,rotateZ:Wn,scale:Qs,scaleX:Qs,scaleY:Qs,scaleZ:Qs,skew:Wn,skewX:Wn,skewY:Wn,distance:xe,translateX:xe,translateY:xe,translateZ:xe,x:xe,y:xe,z:xe,perspective:xe,transformPerspective:xe,opacity:ms,originX:af,originY:af,originZ:xe},nu={borderWidth:xe,borderTopWidth:xe,borderRightWidth:xe,borderBottomWidth:xe,borderLeftWidth:xe,borderRadius:xe,borderTopLeftRadius:xe,borderTopRightRadius:xe,borderBottomRightRadius:xe,borderBottomLeftRadius:xe,width:xe,maxWidth:xe,height:xe,maxHeight:xe,top:xe,right:xe,bottom:xe,left:xe,inset:xe,insetBlock:xe,insetBlockStart:xe,insetBlockEnd:xe,insetInline:xe,insetInlineStart:xe,insetInlineEnd:xe,padding:xe,paddingTop:xe,paddingRight:xe,paddingBottom:xe,paddingLeft:xe,paddingBlock:xe,paddingBlockStart:xe,paddingBlockEnd:xe,paddingInline:xe,paddingInlineStart:xe,paddingInlineEnd:xe,margin:xe,marginTop:xe,marginRight:xe,marginBottom:xe,marginLeft:xe,marginBlock:xe,marginBlockStart:xe,marginBlockEnd:xe,marginInline:xe,marginInlineStart:xe,marginInlineEnd:xe,fontSize:xe,backgroundPositionX:xe,backgroundPositionY:xe,...HC,zIndex:Sf,fillOpacity:ms,strokeOpacity:ms,numOctaves:Sf},YC={...nu,color:vt,backgroundColor:vt,outlineColor:vt,fill:vt,stroke:vt,borderColor:vt,borderTopColor:vt,borderRightColor:vt,borderBottomColor:vt,borderLeftColor:vt,filter:Ql,WebkitFilter:Ql},lg=e=>YC[e];function cg(e,t){let n=lg(e);return n!==Ql&&(n=to),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const qC=new Set(["auto","none","0"]);function GC(e,t,n){let o=0,r;for(;o<e.length&&!r;){const i=e[o];typeof i=="string"&&!qC.has(i)&&gs(i).values.length&&(r=e[o]),o++}if(r&&n)for(const i of t)e[i]=cg(n,r)}class KC extends Xc{constructor(t,n,o,r,i){super(t,n,o,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:o}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let f=t[d];if(typeof f=="string"&&(f=f.trim(),Wc(f))){const p=tg(f,n.current);p!==void 0&&(t[d]=p),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!ng.has(o)||t.length!==2)return;const[r,i]=t,a=xf(r),l=xf(i),c=sf(r),u=sf(i);if(c!==u&&Kn[o]){this.needsMeasurement=!0;return}if(a!==l)if(mf(a)&&mf(l))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else Kn[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,o=[];for(let r=0;r<t.length;r++)(t[r]===null||BC(t[r]))&&o.push(r);o.length&&GC(t,o,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Kn[o](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(o,r).jump(r,!1)}measureEndState(){var l;const{element:t,name:n,unresolvedKeyframes:o}=this;if(!t||!t.current)return;const r=t.getValue(n);r&&r.jump(this.measuredOrigin,!1);const i=o.length-1,a=o[i];o[i]=Kn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),(l=this.removedTransforms)!=null&&l.length&&this.removedTransforms.forEach(([c,u])=>{t.getValue(c).set(u)}),this.resolveNoneKeyframes()}}function ZC(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;const r=(n==null?void 0:n[e])??o.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(o=>o!=null)}const ug=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Jl(e){return wm(e)&&"offsetHeight"in e}const{schedule:ou}=_m(queueMicrotask,!1),dn={x:!1,y:!1};function dg(){return dn.x||dn.y}function XC(e){return e==="x"||e==="y"?dn[e]?null:(dn[e]=!0,()=>{dn[e]=!1}):dn.x||dn.y?null:(dn.x=dn.y=!0,()=>{dn.x=dn.y=!1})}function fg(e,t){const n=ZC(e),o=new AbortController,r={passive:!0,...t,signal:o.signal};return[n,r,()=>o.abort()]}function wf(e){return!(e.pointerType==="touch"||dg())}function QC(e,t,n={}){const[o,r,i]=fg(e,n),a=l=>{if(!wf(l))return;const{target:c}=l,u=t(c,l);if(typeof u!="function"||!c)return;const d=f=>{wf(f)&&(u(f),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,r)};return o.forEach(l=>{l.addEventListener("pointerenter",a,r)}),i}const pg=(e,t)=>t?e===t?!0:pg(e,t.parentElement):!1,ru=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,JC=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function hg(e){return JC.has(e.tagName)||e.isContentEditable===!0}const gi=new WeakSet;function Cf(e){return t=>{t.key==="Enter"&&e(t)}}function tl(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const eT=(e,t)=>{const n=e.currentTarget;if(!n)return;const o=Cf(()=>{if(gi.has(n))return;tl(n,"down");const r=Cf(()=>{tl(n,"up")}),i=()=>tl(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",o,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",o),t)};function Tf(e){return ru(e)&&!dg()}function tT(e,t,n={}){const[o,r,i]=fg(e,n),a=l=>{const c=l.currentTarget;if(!Tf(l))return;gi.add(c);const u=t(c,l),d=(h,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),gi.has(c)&&gi.delete(c),Tf(h)&&typeof u=="function"&&u(h,{success:m})},f=h=>{d(h,c===window||c===document||n.useGlobalTarget||pg(c,h.target))},p=h=>{d(h,!1)};window.addEventListener("pointerup",f,r),window.addEventListener("pointercancel",p,r)};return o.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,r),Jl(l)&&(l.addEventListener("focus",u=>eT(u,r)),!hg(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function mg(e){return wm(e)&&"ownerSVGElement"in e}function nT(e){return mg(e)&&e.tagName==="svg"}const oT=[...ag,vt,to],rT=e=>oT.find(ig(e)),Pf=()=>({translate:0,scale:1,origin:0,originPoint:0}),or=()=>({x:Pf(),y:Pf()}),Ef=()=>({min:0,max:0}),wt=()=>({x:Ef(),y:Ef()}),ec={current:null},gg={current:!1},sT=typeof window<"u";function iT(){if(gg.current=!0,!!sT)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ec.current=e.matches;e.addEventListener("change",t),t()}else ec.current=!1}const aT=new WeakMap;function aa(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ys(e){return typeof e=="string"||Array.isArray(e)}const su=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],iu=["initial",...su];function la(e){return aa(e.animate)||iu.some(t=>ys(e[t]))}function yg(e){return!!(la(e)||e.variants)}function lT(e,t,n){for(const o in t){const r=t[o],i=n[o];if(It(r))e.addValue(o,r);else if(It(i))e.addValue(o,pr(r,{owner:e}));else if(i!==r)if(e.hasValue(o)){const a=e.getValue(o);a.liveStyle===!0?a.jump(r):a.hasAnimated||a.set(r)}else{const a=e.getStaticValue(o);e.addValue(o,pr(a!==void 0?a:r,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const Mf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ki={};function bg(e){ki=e}function cT(){return ki}class uT{scrapeMotionValuesFromProps(t,n,o){return{}}constructor({parent:t,props:n,presenceContext:o,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Xc,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=Lt.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,et.render(this.render,!1,!0))};const{latestValues:u,renderState:d}=l;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=la(n),this.isVariantNode=yg(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in p){const m=p[h];u[h]!==void 0&&It(m)&&m.set(u[h])}}mount(t){var n;this.current=t,aT.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,r)=>this.bindToMotionValue(r,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(gg.current||iT(),this.shouldReduceMotion=ec.current),process.env.NODE_ENV!=="production"&&Fc(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),eo(this.notifyUpdate),eo(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const o=this.features[n];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const o=Er.has(t);o&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&et.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ki){const n=ki[t];if(!n)continue;const{isEnabled:o,Feature:r}=n;if(!this.features[t]&&r&&o(this.props)&&(this.features[t]=new r(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):wt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let o=0;o<Mf.length;o++){const r=Mf[o];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const i="on"+r,a=t[i];a&&(this.propEventSubscriptions[r]=this.on(r,a))}this.prevMotionValues=lT(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const o=this.values.get(t);n!==o&&(o&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&n!==void 0&&(o=pr(n===null?void 0:n,{owner:this}),this.addValue(t,o)),o}readValue(t,n){let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(Sm(o)||Cm(o))?o=parseFloat(o):!rT(o)&&to.test(n)&&(o=cg(t,n)),this.setBaseTarget(t,It(o)?o.get():o)),It(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let o;if(typeof n=="string"||typeof n=="object"){const a=eu(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);a&&(o=a[t])}if(n&&o!==void 0)return o;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!It(r)?r:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Vc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){ou.render(this.render)}}class vg extends uT{constructor(){super(...arguments),this.KeyframeResolver=KC}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const o=t.style;return o?o[n]:void 0}removeValueFromRenderState(t,{vars:n,style:o}){delete n[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;It(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class io{constructor(t){this.isMounted=!1,this.node=t}update(){}}function xg({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function dT({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function fT(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}function nl(e){return e===void 0||e===1}function tc({scale:e,scaleX:t,scaleY:n}){return!nl(e)||!nl(t)||!nl(n)}function Po(e){return tc(e)||Sg(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Sg(e){return Of(e.x)||Of(e.y)}function Of(e){return e&&e!=="0%"}function Di(e,t,n){const o=e-n,r=t*o;return n+r}function kf(e,t,n,o,r){return r!==void 0&&(e=Di(e,r,o)),Di(e,n,o)+t}function nc(e,t=0,n=1,o,r){e.min=kf(e.min,t,n,o,r),e.max=kf(e.max,t,n,o,r)}function wg(e,{x:t,y:n}){nc(e.x,t.translate,t.scale,t.originPoint),nc(e.y,n.translate,n.scale,n.originPoint)}const Df=.999999999999,Rf=1.0000000000001;function pT(e,t,n,o=!1){const r=n.length;if(!r)return;t.x=t.y=1;let i,a;for(let l=0;l<r;l++){i=n[l],a=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(o&&i.options.layoutScroll&&i.scroll&&i!==i.root&&sr(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,wg(e,a)),o&&Po(i.latestValues)&&sr(e,i.latestValues))}t.x<Rf&&t.x>Df&&(t.x=1),t.y<Rf&&t.y>Df&&(t.y=1)}function rr(e,t){e.min=e.min+t,e.max=e.max+t}function If(e,t,n,o,r=.5){const i=ct(e.min,e.max,r);nc(e,t,n,i,o)}function sr(e,t){If(e.x,t.x,t.scaleX,t.scale,t.originX),If(e.y,t.y,t.scaleY,t.scale,t.originY)}function Cg(e,t){return xg(fT(e.getBoundingClientRect(),t))}function hT(e,t,n){const o=Cg(e,n),{scroll:r}=t;return r&&(rr(o.x,r.offset.x),rr(o.y,r.offset.y)),o}const mT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gT=Pr.length;function yT(e,t,n){let o="",r=!0;for(let i=0;i<gT;i++){const a=Pr[i],l=e[a];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(a.startsWith("scale")?1:0);else{const u=parseFloat(l);c=a.startsWith("scale")?u===1:u===0}if(!c||n){const u=ug(l,nu[a]);if(!c){r=!1;const d=mT[a]||a;o+=`${d}(${u}) `}n&&(t[a]=u)}}return o=o.trim(),n?o=n(t,r?"":o):r&&(o="none"),o}function au(e,t,n){const{style:o,vars:r,transformOrigin:i}=e;let a=!1,l=!1;for(const c in t){const u=t[c];if(Er.has(c)){a=!0;continue}else if(Lm(c)){r[c]=u;continue}else{const d=ug(u,nu[c]);c.startsWith("origin")?(l=!0,i[c]=d):o[c]=d}}if(t.transform||(a||n?o.transform=yT(t,e.transform,n):o.transform&&(o.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=i;o.transformOrigin=`${c} ${u} ${d}`}}function Tg(e,{style:t,vars:n},o,r){const i=e.style;let a;for(a in t)i[a]=t[a];r==null||r.applyProjectionStyles(i,o);for(a in n)i.setProperty(a,n[a])}function Af(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ar={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(xe.test(e))e=parseFloat(e);else return e;const n=Af(e,t.target.x),o=Af(e,t.target.y);return`${n}% ${o}%`}},bT={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,r=to.parse(e);if(r.length>5)return o;const i=to.createTransformer(e),a=typeof r[0]!="number"?1:0,l=n.x.scale*t.x,c=n.y.scale*t.y;r[0+a]/=l,r[1+a]/=c;const u=ct(l,c,.5);return typeof r[2+a]=="number"&&(r[2+a]/=u),typeof r[3+a]=="number"&&(r[3+a]/=u),i(r)}},oc={borderRadius:{...Ar,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ar,borderTopRightRadius:Ar,borderBottomLeftRadius:Ar,borderBottomRightRadius:Ar,boxShadow:bT};function Pg(e,{layout:t,layoutId:n}){return Er.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!oc[e]||e==="opacity")}function lu(e,t,n){var a;const o=e.style,r=t==null?void 0:t.style,i={};if(!o)return i;for(const l in o)(It(o[l])||r&&It(r[l])||Pg(l,e)||((a=n==null?void 0:n.getValue(l))==null?void 0:a.liveStyle)!==void 0)&&(i[l]=o[l]);return i}function vT(e){return window.getComputedStyle(e)}class xT extends vg{constructor(){super(...arguments),this.type="html",this.renderInstance=Tg}readValueFromInstance(t,n){var o;if(Er.has(n))return(o=this.projection)!=null&&o.isProjecting?Wl(n):Kw(t,n);{const r=vT(t),i=(Lm(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Cg(t,n)}build(t,n,o){au(t,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,o){return lu(t,n,o)}}const ST={offset:"stroke-dashoffset",array:"stroke-dasharray"},wT={offset:"strokeDashoffset",array:"strokeDasharray"};function CT(e,t,n=1,o=0,r=!0){e.pathLength=1;const i=r?ST:wT;e[i.offset]=`${-o}`,e[i.array]=`${t} ${n}`}const TT=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Eg(e,{attrX:t,attrY:n,attrScale:o,pathLength:r,pathSpacing:i=1,pathOffset:a=0,...l},c,u,d){if(au(e,l,u),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p}=e;f.transform&&(p.transform=f.transform,delete f.transform),(p.transform||f.transformOrigin)&&(p.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),p.transform&&(p.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete f.transformBox);for(const h of TT)f[h]!==void 0&&(p[h]=f[h],delete f[h]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),o!==void 0&&(f.scale=o),r!==void 0&&CT(f,r,i,a,!1)}const Mg=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Og=e=>typeof e=="string"&&e.toLowerCase()==="svg";function PT(e,t,n,o){Tg(e,t,void 0,o);for(const r in t.attrs)e.setAttribute(Mg.has(r)?r:tu(r),t.attrs[r])}function kg(e,t,n){const o=lu(e,t,n);for(const r in e)if(It(e[r])||It(t[r])){const i=Pr.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[i]=e[r]}return o}class ET extends vg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=wt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Er.has(n)){const o=lg(n);return o&&o.default||0}return n=Mg.has(n)?n:tu(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,o){return kg(t,n,o)}build(t,n,o){Eg(t,n,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,n,o,r){PT(t,n,o,r)}mount(t){this.isSVGTag=Og(t.tagName),super.mount(t)}}const MT=iu.length;function Dg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Dg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<MT;n++){const o=iu[n],r=e.props[o];(ys(r)||r===!1)&&(t[o]=r)}return t}function Rg(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let o=0;o<n;o++)if(t[o]!==e[o])return!1;return!0}const OT=[...su].reverse(),kT=su.length;function DT(e){return t=>Promise.all(t.map(({animation:n,options:o})=>VC(e,n,o)))}function RT(e){let t=DT(e),n=Nf(),o=!0;const r=c=>(u,d)=>{var p;const f=lr(e,d,c==="exit"?(p=e.presenceContext)==null?void 0:p.custom:void 0);if(f){const{transition:h,transitionEnd:m,...g}=f;u={...u,...g,...m}}return u};function i(c){t=c(e)}function a(c){const{props:u}=e,d=Dg(e.parent)||{},f=[],p=new Set;let h={},m=1/0;for(let y=0;y<kT;y++){const v=OT[y],C=n[v],x=u[v]!==void 0?u[v]:d[v],S=ys(x),T=v===c?C.isActive:null;T===!1&&(m=y);let E=x===d[v]&&x!==u[v]&&S;if(E&&o&&e.manuallyAnimateOnMount&&(E=!1),C.protectedKeys={...h},!C.isActive&&T===null||!x&&!C.prevProp||aa(x)||typeof x=="boolean")continue;const M=IT(C.prevProp,x);let A=M||v===c&&C.isActive&&!E&&S||y>m&&S,k=!1;const $=Array.isArray(x)?x:[x];let j=$.reduce(r(v),{});T===!1&&(j={});const{prevResolvedValues:w={}}=C,L={...w,...j},D=N=>{A=!0,p.has(N)&&(k=!0,p.delete(N)),C.needsAnimating[N]=!0;const F=e.getValue(N);F&&(F.liveStyle=!1)};for(const N in L){const F=j[N],V=w[N];if(h.hasOwnProperty(N))continue;let B=!1;Kl(F)&&Kl(V)?B=!Rg(F,V):B=F!==V,B?F!=null?D(N):p.add(N):F!==void 0&&p.has(N)?D(N):C.protectedKeys[N]=!0}C.prevProp=x,C.prevResolvedValues=j,C.isActive&&(h={...h,...j}),o&&e.blockInitialAnimation&&(A=!1);const I=E&&M;A&&(!I||k)&&f.push(...$.map(N=>{const F={type:v};if(typeof N=="string"&&o&&!I&&e.manuallyAnimateOnMount&&e.parent){const{parent:V}=e,B=lr(V,N);if(V.enteringChildren&&B){const{delayChildren:R}=B.transition||{};F.delay=eg(V.enteringChildren,e,R)}}return{animation:N,options:F}}))}if(p.size){const y={};if(typeof u.initial!="boolean"){const v=lr(e,Array.isArray(u.initial)?u.initial[0]:u.initial);v&&v.transition&&(y.transition=v.transition)}p.forEach(v=>{const C=e.getBaseTarget(v),x=e.getValue(v);x&&(x.liveStyle=!0),y[v]=C??null}),f.push({animation:y})}let g=!!f.length;return o&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(g=!1),o=!1,g?t(f):Promise.resolve()}function l(c,u){var f;if(n[c].isActive===u)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(p=>{var h;return(h=p.animationState)==null?void 0:h.setActive(c,u)}),n[c].isActive=u;const d=a(c);for(const p in n)n[p].protectedKeys={};return d}return{animateChanges:a,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Nf()}}}function IT(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Rg(t,e):!1}function ho(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Nf(){return{animate:ho(!0),whileInView:ho(),whileHover:ho(),whileTap:ho(),whileDrag:ho(),whileFocus:ho(),exit:ho()}}function _f(e,t){e.min=t.min,e.max=t.max}function ln(e,t){_f(e.x,t.x),_f(e.y,t.y)}function jf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Ig=1e-4,AT=1-Ig,NT=1+Ig,Ag=.01,_T=0-Ag,jT=0+Ag;function $t(e){return e.max-e.min}function LT(e,t,n){return Math.abs(e-t)<=n}function Lf(e,t,n,o=.5){e.origin=o,e.originPoint=ct(t.min,t.max,e.origin),e.scale=$t(n)/$t(t),e.translate=ct(n.min,n.max,e.origin)-e.originPoint,(e.scale>=AT&&e.scale<=NT||isNaN(e.scale))&&(e.scale=1),(e.translate>=_T&&e.translate<=jT||isNaN(e.translate))&&(e.translate=0)}function rs(e,t,n,o){Lf(e.x,t.x,n.x,o?o.originX:void 0),Lf(e.y,t.y,n.y,o?o.originY:void 0)}function $f(e,t,n){e.min=n.min+t.min,e.max=e.min+$t(t)}function $T(e,t,n){$f(e.x,t.x,n.x),$f(e.y,t.y,n.y)}function Vf(e,t,n){e.min=t.min-n.min,e.max=e.min+$t(t)}function Ri(e,t,n){Vf(e.x,t.x,n.x),Vf(e.y,t.y,n.y)}function Ff(e,t,n,o,r){return e-=t,e=Di(e,1/n,o),r!==void 0&&(e=Di(e,1/r,o)),e}function VT(e,t=0,n=1,o=.5,r,i=e,a=e){if(wn.test(t)&&(t=parseFloat(t),t=ct(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=ct(i.min,i.max,o);e===i&&(l-=t),e.min=Ff(e.min,t,n,l,r),e.max=Ff(e.max,t,n,l,r)}function Bf(e,t,[n,o,r],i,a){VT(e,t[n],t[o],t[r],t.scale,i,a)}const FT=["x","scaleX","originX"],BT=["y","scaleY","originY"];function zf(e,t,n,o){Bf(e.x,t,FT,n?n.x:void 0,o?o.x:void 0),Bf(e.y,t,BT,n?n.y:void 0,o?o.y:void 0)}function Wf(e){return e.translate===0&&e.scale===1}function Ng(e){return Wf(e.x)&&Wf(e.y)}function Uf(e,t){return e.min===t.min&&e.max===t.max}function zT(e,t){return Uf(e.x,t.x)&&Uf(e.y,t.y)}function Hf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function _g(e,t){return Hf(e.x,t.x)&&Hf(e.y,t.y)}function Yf(e){return $t(e.x)/$t(e.y)}function qf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Zt(e){return[e("x"),e("y")]}function WT(e,t,n){let o="";const r=e.x.translate/t.x,i=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((r||i||a)&&(o=`translate3d(${r}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:f,rotateY:p,skewX:h,skewY:m}=n;u&&(o=`perspective(${u}px) ${o}`),d&&(o+=`rotate(${d}deg) `),f&&(o+=`rotateX(${f}deg) `),p&&(o+=`rotateY(${p}deg) `),h&&(o+=`skewX(${h}deg) `),m&&(o+=`skewY(${m}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(o+=`scale(${l}, ${c})`),o||"none"}const jg=["TopLeft","TopRight","BottomLeft","BottomRight"],UT=jg.length,Gf=e=>typeof e=="string"?parseFloat(e):e,Kf=e=>typeof e=="number"||xe.test(e);function HT(e,t,n,o,r,i){r?(e.opacity=ct(0,n.opacity??1,YT(o)),e.opacityExit=ct(t.opacity??1,0,qT(o))):i&&(e.opacity=ct(t.opacity??1,n.opacity??1,o));for(let a=0;a<UT;a++){const l=`border${jg[a]}Radius`;let c=Zf(t,l),u=Zf(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||Kf(c)===Kf(u)?(e[l]=Math.max(ct(Gf(c),Gf(u),o),0),(wn.test(u)||wn.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=ct(t.rotate||0,n.rotate||0,o))}function Zf(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const YT=Lg(0,.5,Rm),qT=Lg(.5,.95,en);function Lg(e,t,n){return o=>o<e?0:o>t?1:n(hs(e,t,o))}function GT(e,t,n){const o=It(e)?e:pr(e);return o.start(Jc("",o,t,n)),o.animation}function bs(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}const KT=(e,t)=>e.depth-t.depth;class ZT{constructor(){this.children=[],this.isDirty=!1}add(t){jc(this.children,t),this.isDirty=!0}remove(t){Lc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(KT),this.isDirty=!1,this.children.forEach(t)}}function XT(e,t){const n=Lt.now(),o=({timestamp:r})=>{const i=r-n;i>=t&&(eo(o),e(i-t))};return et.setup(o,!0),()=>eo(o)}function yi(e){return It(e)?e.get():e}class QT{constructor(){this.members=[]}add(t){jc(this.members,t),t.scheduleRender()}remove(t){if(Lc(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(r=>t===r);if(n===0)return!1;let o;for(let r=n;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1){o=i;break}}return o?(this.promote(o),!0):!1}promote(t,n){const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender();const r=o.options.layoutDependency,i=t.options.layoutDependency;r!==void 0&&i!==void 0&&r===i||(t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0));const{crossfade:l}=t.options;l===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:o}=t;n.onExitComplete&&n.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const bi={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ol=["","X","Y","Z"],JT=1e3;let eP=0;function rl(e,t,n,o){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function $g(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=rg(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",et,!(r||i))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&$g(o)}function Vg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(a={},l=t==null?void 0:t()){this.id=eP++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(oP),this.nodes.forEach(aP),this.nodes.forEach(lP),this.nodes.forEach(rP)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new ZT)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Vc),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){const c=this.eventHandlers.get(a);c&&c.notify(...l)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=mg(a)&&!nT(a),this.instance=a;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),e){let d,f=0;const p=()=>this.root.updateBlockedByResize=!1;et.read(()=>{f=window.innerWidth}),e(a,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,d&&d(),d=XT(p,250),bi.hasAnimatedSinceResize&&(bi.hasAnimatedSinceResize=!1,this.nodes.forEach(Jf)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:p,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||pP,{onLayoutAnimationStart:g,onLayoutAnimationComplete:y}=u.getProps(),v=!this.targetLayout||!_g(this.targetLayout,h),C=!f&&p;if(this.options.layoutRoot||this.resumeFrom||C||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...Qc(m,"layout"),onPlay:g,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(d,C)}else f||Jf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eo(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(cP),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&$g(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Xf);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Qf);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(iP),this.nodes.forEach(tP),this.nodes.forEach(nP)):this.nodes.forEach(Qf),this.clearAllSnapshots();const l=Lt.now();Ot.delta=Pn(0,1e3/60,l-Ot.timestamp),Ot.timestamp=l,Ot.isProcessing=!0,Ka.update.process(Ot),Ka.preRender.process(Ot),Ka.render.process(Ot),Ot.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ou.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sP),this.sharedNodes.forEach(uP)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,et.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){et.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!$t(this.snapshot.measuredBox.x)&&!$t(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=wt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l&&this.instance){const c=o(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!r)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Ng(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&this.instance&&(l||Po(this.latestValues)||d)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return a&&(c=this.removeTransform(c)),hP(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:a}=this.options;if(!a)return wt();const l=a.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(mP))){const{scroll:d}=this.root;d&&(rr(l.x,d.offset.x),rr(l.y,d.offset.y))}return l}removeElementScroll(a){var c;const l=wt();if(ln(l,a),(c=this.scroll)!=null&&c.wasRoot)return l;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:f,options:p}=d;d!==this.root&&f&&p.layoutScroll&&(f.wasRoot&&ln(l,a),rr(l.x,f.offset.x),rr(l.y,f.offset.y))}return l}applyTransform(a,l=!1){const c=wt();ln(c,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&sr(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Po(d.latestValues)&&sr(c,d.latestValues)}return Po(this.latestValues)&&sr(c,this.latestValues),c}removeTransform(a){const l=wt();ln(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!Po(u.latestValues))continue;tc(u.latestValues)&&u.updateSnapshot();const d=wt(),f=u.measurePageBox();ln(d,f),zf(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return Po(this.latestValues)&&zf(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ot.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var h;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(h=this.parent)!=null&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!this.layout||!(d||f))return;this.resolvedRelativeTargetAt=Ot.timestamp;const p=this.getClosestProjectingParent();p&&this.linkedParentVersion!==p.layoutVersion&&!p.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(p&&p.layout?this.createRelativeTarget(p,this.layout.layoutBox,p.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=wt(),this.targetWithTransforms=wt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),$T(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ln(this.target,this.layout.layoutBox),wg(this.target,this.targetDelta)):ln(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?this.createRelativeTarget(p,this.target,p.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||tc(this.parent.latestValues)||Sg(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,l,c){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=wt(),this.relativeTargetOrigin=wt(),Ri(this.relativeTargetOrigin,l,c),ln(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var m;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Ot.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;ln(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,p=this.treeScale.y;pT(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=wt());const{target:h}=a;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(jf(this.prevProjectionDelta.x,this.projectionDelta.x),jf(this.prevProjectionDelta.y,this.projectionDelta.y)),rs(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!qf(this.projectionDelta.x,this.prevProjectionDelta.x)||!qf(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var l;if((l=this.options.visualElement)==null||l.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=or(),this.projectionDelta=or(),this.projectionDeltaWithTransform=or()}setAnimationOrigin(a,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},f=or();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const p=wt(),h=c?c.source:void 0,m=this.layout?this.layout.source:void 0,g=h!==m,y=this.getStack(),v=!y||y.members.length<=1,C=!!(g&&!v&&this.options.crossfade===!0&&!this.path.some(fP));this.animationProgress=0;let x;this.mixTargetDelta=S=>{const T=S/1e3;ep(f.x,a.x,T),ep(f.y,a.y,T),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ri(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),dP(this.relativeTarget,this.relativeTargetOrigin,p,T),x&&zT(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=wt()),ln(x,this.relativeTarget)),g&&(this.animationValues=d,HT(d,u,this.latestValues,T,C,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var l,c,u;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(u=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||u.stop(),this.pendingAnimation&&(eo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=et.update(()=>{bi.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=pr(0)),this.currentAnimation=GT(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),a.onUpdate&&a.onUpdate(d)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(JT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=a;if(!(!l||!c||!u)){if(this!==a&&this.layout&&u&&Fg(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||wt();const f=$t(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+f;const p=$t(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+p}ln(l,c),sr(l,d),rs(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new QT),this.sharedNodes.get(a).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var l;const{layoutId:a}=this.options;return a?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:a}=this.options;return a?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&rl("z",a,u,this.animationValues);for(let d=0;d<ol.length;d++)rl(`rotate${ol[d]}`,a,u,this.animationValues),rl(`skew${ol[d]}`,a,u,this.animationValues);a.render();for(const d in u)a.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);a.scheduleRender()}applyProjectionStyles(a,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=yi(l==null?void 0:l.pointerEvents)||"",a.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=yi(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!Po(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=WT(this.projectionDeltaWithTransform,this.treeScale,d);c&&(f=c(d,f)),a.transform=f;const{x:p,y:h}=this.projectionDelta;a.transformOrigin=`${p.origin*100}% ${h.origin*100}% 0`,u.animationValues?a.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:a.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const m in oc){if(d[m]===void 0)continue;const{correct:g,applyTo:y,isCSSVariable:v}=oc[m],C=f==="none"?d[m]:g(d[m],u);if(y){const x=y.length;for(let S=0;S<x;S++)a[y[S]]=C}else v?this.options.visualElement.renderState.vars[m]=C:a[m]=C}this.options.layoutId&&(a.pointerEvents=u===this?yi(l==null?void 0:l.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var l;return(l=a.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(Xf),this.root.sharedNodes.clear()}}}function tP(e){e.updateLayout()}function nP(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i==="size"?Zt(f=>{const p=a?t.measuredBox[f]:t.layoutBox[f],h=$t(p);p.min=o[f].min,p.max=p.min+h}):Fg(i,t.layoutBox,o)&&Zt(f=>{const p=a?t.measuredBox[f]:t.layoutBox[f],h=$t(o[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const l=or();rs(l,o,t.layoutBox);const c=or();a?rs(c,e.applyTransform(r,!0),t.measuredBox):rs(c,o,t.layoutBox);const u=!Ng(l);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const m=wt();Ri(m,t.layoutBox,p.layoutBox);const g=wt();Ri(g,o,h.layoutBox),_g(m,g)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=m,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:t,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:o}=e.options;o&&o()}e.options.transition=void 0}function oP(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function rP(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function sP(e){e.clearSnapshot()}function Xf(e){e.clearMeasurements()}function Qf(e){e.isLayoutDirty=!1}function iP(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Jf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function aP(e){e.resolveTargetDelta()}function lP(e){e.calcProjection()}function cP(e){e.resetSkewAndRotation()}function uP(e){e.removeLeadSnapshot()}function ep(e,t,n){e.translate=ct(t.translate,0,n),e.scale=ct(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function tp(e,t,n,o){e.min=ct(t.min,n.min,o),e.max=ct(t.max,n.max,o)}function dP(e,t,n,o){tp(e.x,t.x,n.x,o),tp(e.y,t.y,n.y,o)}function fP(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const pP={duration:.45,ease:[.4,0,.1,1]},np=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),op=np("applewebkit/")&&!np("chrome/")?Math.round:en;function rp(e){e.min=op(e.min),e.max=op(e.max)}function hP(e){rp(e.x),rp(e.y)}function Fg(e,t,n){return e==="position"||e==="preserve-aspect"&&!LT(Yf(t),Yf(n),.2)}function mP(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const gP=Vg({attachResizeListener:(e,t)=>bs(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),sl={current:void 0},Bg=Vg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sl.current){const e=new gP({});e.mount(window),e.setOptions({layoutScroll:!0}),sl.current=e}return sl.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),cu=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function sp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function yP(...e){return t=>{let n=!1;const o=e.map(r=>{const i=sp(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<o.length;r++){const i=o[r];typeof i=="function"?i():sp(e[r],null)}}}}function bP(...e){return P.useCallback(yP(...e),e)}class vP extends P.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const o=n.offsetParent,r=Jl(o)&&o.offsetWidth||0,i=Jl(o)&&o.offsetHeight||0,a=this.props.sizeRef.current;a.height=n.offsetHeight||0,a.width=n.offsetWidth||0,a.top=n.offsetTop,a.left=n.offsetLeft,a.right=r-a.width-a.left,a.bottom=i-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}}function xP({children:e,isPresent:t,anchorX:n,anchorY:o,root:r}){var f;const i=_.useId(),a=_.useRef(null),l=_.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=_.useContext(cu),u=((f=e.props)==null?void 0:f.ref)??(e==null?void 0:e.ref),d=bP(a,u);return _.useInsertionEffect(()=>{const{width:p,height:h,top:m,left:g,right:y,bottom:v}=l.current;if(t||!a.current||!p||!h)return;const C=n==="left"?`left: ${g}`:`right: ${y}`,x=o==="bottom"?`bottom: ${v}`:`top: ${m}`;a.current.dataset.motionPopId=i;const S=document.createElement("style");c&&(S.nonce=c);const T=r??document.head;return T.appendChild(S),S.sheet&&S.sheet.insertRule(`
98
98
  [data-motion-pop-id="${i}"] {
99
99
  position: absolute !important;
100
100
  width: ${p}px !important;
101
101
  height: ${h}px !important;
102
- ${w}px !important;
102
+ ${C}px !important;
103
103
  ${x}px !important;
104
104
  }
105
- `),()=>{T.contains(S)&&T.removeChild(S)}},[t]),b.jsx(v2,{isPresent:t,childRef:a,sizeRef:l,children:P.cloneElement(e,{ref:d})})}const S2=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:r,presenceAffectsLayout:i,mode:a,anchorX:l,anchorY:c,root:u})=>{const d=Ac(C2),f=A.useId();let p=!0,h=A.useMemo(()=>(p=!1,{id:f,initial:t,isPresent:n,custom:r,onExitComplete:m=>{d.set(m,!0);for(const g of d.values())if(!g)return;o&&o()},register:m=>(d.set(m,!1),()=>d.delete(m))}),[n,d,o]);return i&&p&&(h={...h}),A.useMemo(()=>{d.forEach((m,g)=>d.set(g,!1))},[n]),P.useEffect(()=>{!n&&!d.size&&o&&o()},[n]),a==="popLayout"&&(e=b.jsx(x2,{isPresent:n,anchorX:l,anchorY:c,root:u,children:e})),b.jsx(ia.Provider,{value:h,children:e})};function C2(){return new Map}function zg(e=!0){const t=A.useContext(ia);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:r}=t,i=A.useId();A.useEffect(()=>{if(e)return r(i)},[e]);const a=A.useCallback(()=>e&&o&&o(i),[i,o,e]);return!n&&o?[!1,a]:[!0]}const Js=e=>e.key||"";function ip(e){const t=[];return A.Children.forEach(e,n=>{A.isValidElement(n)&&t.push(n)}),t}const ap=({children:e,custom:t,initial:n=!0,onExitComplete:o,presenceAffectsLayout:r=!0,mode:i="sync",propagate:a=!1,anchorX:l="left",anchorY:c="top",root:u})=>{const[d,f]=zg(a),p=A.useMemo(()=>ip(e),[e]),h=a&&!d?[]:p.map(Js),m=A.useRef(!0),g=A.useRef(p),y=Ac(()=>new Map),v=A.useRef(new Set),[w,x]=A.useState(p),[S,T]=A.useState(p);xm(()=>{m.current=!1,g.current=p;for(let _=0;_<S.length;_++){const D=Js(S[_]);h.includes(D)?(y.delete(D),v.current.delete(D)):y.get(D)!==!0&&y.set(D,!1)}},[S,h.length,h.join("-")]);const E=[];if(p!==w){let _=[...p];for(let D=0;D<S.length;D++){const $=S[D],j=Js($);h.includes(j)||(_.splice(D,0,$),E.push($))}return i==="wait"&&E.length&&(_=E),T(ip(_)),x(p),null}process.env.NODE_ENV!=="production"&&i==="wait"&&S.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:M}=A.useContext(Ic);return b.jsx(b.Fragment,{children:S.map(_=>{const D=Js(_),$=a&&!d?!1:p===S||h.includes(D),j=()=>{if(v.current.has(D))return;if(v.current.add(D),y.has(D))y.set(D,!0);else return;let C=!0;y.forEach(L=>{L||(C=!1)}),C&&(M==null||M(),T(g.current),a&&(f==null||f()),o&&o())};return b.jsx(S2,{isPresent:$,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:r,mode:i,root:u,onExitComplete:$?void 0:j,anchorX:l,anchorY:c,children:_},D)})})},Wg=A.createContext({strict:!1}),lp={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let cp=!1;function w2(){if(cp)return;const e={};for(const t in lp)e[t]={isEnabled:n=>lp[t].some(o=>!!n[o])};bg(e),cp=!0}function Ug(){return w2(),cT()}function T2(e){const t=Ug();for(const n in e)t[n]={...t[n],...e[n]};bg(t)}const P2=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ii(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||P2.has(e)}let Hg=e=>!Ii(e);function E2(e){typeof e=="function"&&(Hg=t=>t.startsWith("on")?!Ii(t):e(t))}try{E2(require("@emotion/is-prop-valid").default)}catch{}function M2(e,t,n){const o={};for(const r in e)r==="values"&&typeof e.values=="object"||(Hg(r)||n===!0&&Ii(r)||!t&&!Ii(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}const ca=A.createContext({});function O2(e,t){if(la(e)){const{initial:n,animate:o}=e;return{initial:n===!1||ys(n)?n:void 0,animate:ys(o)?o:void 0}}return e.inherit!==!1?t:{}}function k2(e){const{initial:t,animate:n}=O2(e,A.useContext(ca));return A.useMemo(()=>({initial:t,animate:n}),[up(t),up(n)])}function up(e){return Array.isArray(e)?e.join(" "):e}const lu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Yg(e,t,n){for(const o in t)!It(t[o])&&!Pg(o,n)&&(e[o]=t[o])}function D2({transformTemplate:e},t){return A.useMemo(()=>{const n=lu();return su(n,t,e),Object.assign({},n.vars,n.style)},[t])}function R2(e,t){const n=e.style||{},o={};return Yg(o,n,e),Object.assign(o,D2(e,t)),o}function I2(e,t){const n={},o=R2(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const qg=()=>({...lu(),attrs:{}});function A2(e,t,n,o){const r=A.useMemo(()=>{const i=qg();return Eg(i,t,Og(o),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Yg(i,e.style,e),r.style={...i,...r.style}}return r}const N2=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function cu(e){return typeof e!="string"||e.includes("-")?!1:!!(N2.indexOf(e)>-1||/[A-Z]/u.test(e))}function _2(e,t,n,{latestValues:o},r,i=!1,a){const c=(a??cu(e)?A2:I2)(t,o,r,e),u=M2(t,typeof e=="string",i),d=e!==A.Fragment?{...u,...c,ref:n}:{},{children:f}=t,p=A.useMemo(()=>It(f)?f.get():f,[f]);return A.createElement(e,{...d,children:p})}function j2({scrapeMotionValuesFromProps:e,createRenderState:t},n,o,r){return{latestValues:L2(n,o,r,e),renderState:t()}}function L2(e,t,n,o){const r={},i=o(e,{});for(const p in i)r[p]=yi(i[p]);let{initial:a,animate:l}=e;const c=la(e),u=yg(e);t&&u&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const f=d?l:a;if(f&&typeof f!="boolean"&&!aa(f)){const p=Array.isArray(f)?f:[f];for(let h=0;h<p.length;h++){const m=Qc(e,p[h]);if(m){const{transitionEnd:g,transition:y,...v}=m;for(const w in v){let x=v[w];if(Array.isArray(x)){const S=d?x.length-1:0;x=x[S]}x!==null&&(r[w]=x)}for(const w in g)r[w]=g[w]}}}return r}const Gg=e=>(t,n)=>{const o=A.useContext(ca),r=A.useContext(ia),i=()=>j2(e,t,o,r);return n?i():Ac(i)},$2=Gg({scrapeMotionValuesFromProps:iu,createRenderState:lu}),V2=Gg({scrapeMotionValuesFromProps:kg,createRenderState:qg}),F2=Symbol.for("motionComponentSymbol");function B2(e,t,n){const o=A.useRef(n);A.useInsertionEffect(()=>{o.current=n});const r=A.useRef(null);return A.useCallback(i=>{var l;i&&((l=e.onMount)==null||l.call(e,i)),t&&(i?t.mount(i):t.unmount());const a=o.current;if(typeof a=="function")if(i){const c=a(i);typeof c=="function"&&(r.current=c)}else r.current?(r.current(),r.current=null):a(i);else a&&(a.current=i)},[t])}const Kg=A.createContext({});function Gr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function z2(e,t,n,o,r,i){var x,S;const{visualElement:a}=A.useContext(ca),l=A.useContext(Wg),c=A.useContext(ia),u=A.useContext(au),d=u.reducedMotion,f=u.skipAnimations,p=A.useRef(null),h=A.useRef(!1);o=o||l.renderer,!p.current&&o&&(p.current=o(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d,skipAnimations:f,isSVG:i}),h.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));const m=p.current,g=A.useContext(Kg);m&&!m.projection&&r&&(m.type==="html"||m.type==="svg")&&W2(p.current,n,r,g);const y=A.useRef(!1);A.useInsertionEffect(()=>{m&&y.current&&m.update(n,c)});const v=n[og],w=A.useRef(!!v&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,v))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,v)));return xm(()=>{h.current=!0,m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),w.current&&m.animationState&&m.animationState.animateChanges())}),A.useEffect(()=>{m&&(!w.current&&m.animationState&&m.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)==null||T.call(window,v)}),w.current=!1),m.enteringChildren=void 0)}),m}function W2(e,t,n,o){const{layoutId:r,layout:i,drag:a,dragConstraints:l,layoutScroll:c,layoutRoot:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Zg(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!a||l&&Gr(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:o,crossfade:d,layoutScroll:c,layoutRoot:u})}function Zg(e){if(e)return e.options.allowProjection!==!1?e.projection:Zg(e.parent)}function rl(e,{forwardMotionProps:t=!1,type:n}={},o,r){o&&T2(o);const i=n?n==="svg":cu(e),a=i?V2:$2;function l(u,d){let f;const p={...A.useContext(au),...u,layoutId:U2(u)},{isStatic:h}=p,m=k2(u),g=a(u,h);if(!h&&vm){H2(p,o);const y=Y2(p);f=y.MeasureLayout,m.visualElement=z2(e,g,p,r,y.ProjectionNode,i)}return b.jsxs(ca.Provider,{value:m,children:[f&&m.visualElement?b.jsx(f,{visualElement:m.visualElement,...p}):null,_2(e,u,B2(g,m.visualElement,d),g,h,t,i)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=A.forwardRef(l);return c[F2]=e,c}function U2({layoutId:e}){const t=A.useContext(Ic).id;return t&&e!==void 0?t+"-"+e:e}function H2(e,t){const n=A.useContext(Wg).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const o="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?wr(!1,o,"lazy-strict-mode"):Ln(!1,o,"lazy-strict-mode")}}function Y2(e){const t=Ug(),{drag:n,layout:o}=t;if(!n&&!o)return{};const r={...n,...o};return{MeasureLayout:n!=null&&n.isEnabled(e)||o!=null&&o.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function q2(e,t){if(typeof Proxy>"u")return rl;const n=new Map,o=(i,a)=>rl(i,a,e,t),r=(i,a)=>(process.env.NODE_ENV!=="production"&&$c(!1,"motion() is deprecated. Use motion.create() instead."),o(i,a));return new Proxy(r,{get:(i,a)=>a==="create"?o:(n.has(a)||n.set(a,rl(a,void 0,e,t)),n.get(a))})}const G2=(e,t)=>t.isSVG??cu(e)?new ET(t):new xT(t,{allowProjection:e!==A.Fragment});class K2 extends io{constructor(t){super(t),t.animationState||(t.animationState=RT(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();aa(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let Z2=0;class X2 extends io{constructor(){super(...arguments),this.id=Z2++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Q2={animation:{Feature:K2},exit:{Feature:X2}};function As(e){return{point:{x:e.pageX,y:e.pageY}}}const J2=e=>t=>nu(t)&&e(t,As(t));function ss(e,t,n,o){return bs(e,t,J2(n),o)}const Xg=({current:e})=>e?e.ownerDocument.defaultView:null,dp=(e,t)=>Math.abs(e-t);function eP(e,t){const n=dp(e.x,t.x),o=dp(e.y,t.y);return Math.sqrt(n**2+o**2)}const fp=new Set(["auto","scroll"]);class Qg{constructor(t,n,{transformPagePoint:o,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=h=>{this.handleScroll(h.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=il(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=eP(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!g)return;const{point:y}=h,{timestamp:v}=Ot;this.history.push({...y,timestamp:v});const{onStart:w,onMove:x}=this.handlers;m||(w&&w(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=sl(m,this.transformPagePoint),et.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:g,onSessionEnd:y,resumeAnimation:v}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=il(h.type==="pointercancel"?this.lastMoveEventInfo:sl(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,w),y&&y(h,w)},!nu(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=o,this.distanceThreshold=a,this.contextWindow=r||window;const c=As(t),u=sl(c,this.transformPagePoint),{point:d}=u,{timestamp:f}=Ot;this.history=[{...d,timestamp:f}];const{onSessionStart:p}=n;p&&p(t,il(u,this.history)),this.removeListeners=Ds(ss(this.contextWindow,"pointermove",this.handlePointerMove),ss(this.contextWindow,"pointerup",this.handlePointerUp),ss(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(t){let n=t.parentElement;for(;n;){const o=getComputedStyle(n);(fp.has(o.overflowX)||fp.has(o.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const o=t===window,r=o?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:r.x-n.x,y:r.y-n.y};i.x===0&&i.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,r),et.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eo(this.updatePoint)}}function sl(e,t){return t?{point:t(e.point)}:e}function pp(e,t){return{x:e.x-t.x,y:e.y-t.y}}function il({point:e},t){return{point:e,delta:pp(e,Jg(t)),offset:pp(e,tP(t)),velocity:nP(t,.1)}}function tP(e){return e[0]}function Jg(e){return e[e.length-1]}function nP(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const r=Jg(e);for(;n>=0&&(o=e[n],!(r.timestamp-o.timestamp>Sn(t)));)n--;if(!o)return{x:0,y:0};const i=Jt(r.timestamp-o.timestamp);if(i===0)return{x:0,y:0};const a={x:(r.x-o.x)/i,y:(r.y-o.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function oP(e,{min:t,max:n},o){return t!==void 0&&e<t?e=o?ct(t,e,o.min):Math.max(e,t):n!==void 0&&e>n&&(e=o?ct(n,e,o.max):Math.min(e,n)),e}function hp(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function rP(e,{top:t,left:n,bottom:o,right:r}){return{x:hp(e.x,n,r),y:hp(e.y,t,o)}}function mp(e,t){let n=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,o]=[o,n]),{min:n,max:o}}function sP(e,t){return{x:mp(e.x,t.x),y:mp(e.y,t.y)}}function iP(e,t){let n=.5;const o=$t(e),r=$t(t);return r>o?n=hs(t.min,t.max-o,e.min):o>r&&(n=hs(e.min,e.max-r,t.min)),Pn(0,1,n)}function aP(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const nc=.35;function lP(e=nc){return e===!1?e=0:e===!0&&(e=nc),{x:gp(e,"left","right"),y:gp(e,"top","bottom")}}function gp(e,t,n){return{min:yp(e,t),max:yp(e,n)}}function yp(e,t){return typeof e=="number"?e:e[t]||0}const cP=new WeakMap;class uP{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ct(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:o}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{n?(this.stopAnimation(),this.snapToCursor(As(f).point)):this.pauseAnimation()},a=(f,p)=>{this.stopAnimation();const{drag:h,dragPropagation:m,onDragStart:g}=this.getProps();if(h&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Xw(h),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=p,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Zt(v=>{let w=this.getAxisMotionValue(v).get()||0;if(Cn.test(w)){const{projection:x}=this.visualElement;if(x&&x.layout){const S=x.layout.layoutBox[v];S&&(w=$t(S)*(parseFloat(w)/100))}}this.originPoint[v]=w}),g&&et.postRender(()=>g(f,p)),Gl(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},l=(f,p)=>{this.latestPointerEvent=f,this.latestPanInfo=p;const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:g,onDrag:y}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=p;if(m&&this.currentDirection===null){this.currentDirection=dP(v),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",p.point,v),this.updateAxis("y",p.point,v),this.visualElement.render(),y&&y(f,p)},c=(f,p)=>{this.latestPointerEvent=f,this.latestPanInfo=p,this.stop(f,p),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Zt(f=>{var p;return this.getAnimationState(f)==="paused"&&((p=this.getAxisMotionValue(f).animation)==null?void 0:p.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Qg(t,{onSessionStart:i,onStart:a,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:o,contextWindow:Xg(this.visualElement),element:this.visualElement.current})}stop(t,n){const o=t||this.latestPointerEvent,r=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!o)return;const{velocity:a}=r;this.startAnimation(a);const{onDragEnd:l}=this.getProps();l&&et.postRender(()=>l(o,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,o){const{drag:r}=this.getProps();if(!o||!ei(t,r,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(a=oP(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,r=this.constraints;t&&Gr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=rP(o.layoutBox,t):this.constraints=!1,this.elastic=lP(n),r!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Zt(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=aP(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Gr(t))return!1;const o=t.current;Ln(o!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=hT(o,r.root,this.visualElement.getTransformPagePoint());let a=sP(r.layout.layoutBox,i);if(n){const l=n(dT(a));this.hasMutatedConstraints=!!l,l&&(a=xg(l))}return a}startAnimation(t){const{drag:n,dragMomentum:o,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=Zt(d=>{if(!ei(d,n,this.currentDirection))return;let f=c&&c[d]||{};a&&(f={min:0,max:0});const p=r?200:1e6,h=r?40:1e7,m={type:"inertia",velocity:o?t[d]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,m)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const o=this.getAxisMotionValue(t);return Gl(this.visualElement,t),o.start(Xc(t,o,0,n,this.visualElement,!1))}stopAnimation(){Zt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Zt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps(),r=o[n];return r||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){Zt(n=>{const{drag:o}=this.getProps();if(!ei(n,o,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(n);if(r&&r.layout){const{min:a,max:l}=r.layout.layoutBox[n],c=i.get()||0;i.set(t[n]-ct(a,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!Gr(n)||!o||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Zt(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();r[a]=iP({min:c,max:c},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),Zt(a=>{if(!ei(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:u}=this.constraints[a];l.set(ct(c,u,r[a]))})}addListeners(){if(!this.visualElement.current)return;cP.set(this.visualElement,this);const t=this.visualElement.current,n=ss(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),f=c.target,p=f!==t&&hg(f);u&&d&&!p&&this.start(c)}),o=()=>{const{dragConstraints:c}=this.getProps();Gr(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",o);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),et.read(o);const a=bs(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Zt(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=c[d].translate,f.set(f.get()+c[d].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:o=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=nc,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:o,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:l}}}function ei(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function dP(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class fP extends io{constructor(t){super(t),this.removeGroupControls=en,this.removeListeners=en,this.controls=new uP(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||en}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const bp=e=>(t,n)=>{e&&et.postRender(()=>e(t,n))};class pP extends io{constructor(){super(...arguments),this.removePointerDownListener=en}onPointerDown(t){this.session=new Qg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Xg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:o,onPanEnd:r}=this.node.getProps();return{onSessionStart:bp(t),onStart:bp(n),onMove:o,onEnd:(i,a)=>{delete this.session,r&&et.postRender(()=>r(i,a))}}}mount(){this.removePointerDownListener=ss(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let al=!1;class hP extends A.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o,layoutId:r}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),o&&o.register&&r&&o.register(i),al&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),bi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:o,drag:r,isPresent:i}=this.props,{projection:a}=o;return a&&(a.isPresent=i,t.layoutDependency!==n&&a.setOptions({...a.options,layoutDependency:n}),al=!0,r||t.layoutDependency!==n||n===void 0||t.isPresent!==i?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||et.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tu.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:r}=t;al=!0,r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),o&&o.deregister&&o.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ey(e){const[t,n]=zg(),o=A.useContext(Ic);return b.jsx(hP,{...e,layoutGroup:o,switchLayoutGroup:A.useContext(Kg),isPresent:t,safeToRemove:n})}const mP={pan:{Feature:pP},drag:{Feature:fP,ProjectionNode:Bg,MeasureLayout:ey}};function vp(e,t,n){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,i=o[r];i&&et.postRender(()=>i(t,As(t)))}class gP extends io{mount(){const{current:t}=this.node;t&&(this.unmount=Qw(t,(n,o)=>(vp(this.node,o,"Start"),r=>vp(this.node,r,"End"))))}unmount(){}}class yP extends io{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ds(bs(this.node.current,"focus",()=>this.onFocus()),bs(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function xp(e,t,n){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),i=o[r];i&&et.postRender(()=>i(t,As(t)))}class bP extends io{mount(){const{current:t}=this.node;t&&(this.unmount=tT(t,(n,o)=>(xp(this.node,o,"Start"),(r,{success:i})=>xp(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const oc=new WeakMap,ll=new WeakMap,vP=e=>{const t=oc.get(e.target);t&&t(e)},xP=e=>{e.forEach(vP)};function SP({root:e,...t}){const n=e||document;ll.has(n)||ll.set(n,{});const o=ll.get(n),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(xP,{root:e,...t})),o[r]}function CP(e,t,n){const o=SP(t);return oc.set(e,n),o.observe(e),()=>{oc.delete(e),o.unobserve(e)}}const wP={some:0,all:1};class TP extends io{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:o,amount:r="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:o,threshold:typeof r=="number"?r:wP[r]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),p=u?d:f;p&&p(c)};return CP(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(PP(t,n))&&this.startObserver()}unmount(){}}function PP({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const EP={inView:{Feature:TP},tap:{Feature:bP},focus:{Feature:yP},hover:{Feature:gP}},MP={layout:{ProjectionNode:Bg,MeasureLayout:ey}},OP={...Q2,...EP,...mP,...MP},Zo=q2(OP,G2),Oo=15.5,cl=18,kP=Oo,uu=({fill:e="#FDFCFC",size:t=18,className:n})=>b.jsxs("svg",{width:t,height:t,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,style:{display:"block"},children:[b.jsx("path",{d:"M0.75 3.1875C0.75 1.84104 1.84104 0.75 3.1875 0.75L5.625 0.75V2.25H3.1875C2.66946 2.25 2.25 2.66946 2.25 3.1875V5.625H0.75L0.75 3.1875Z",fill:e}),b.jsx("path",{d:"M0.75 14.8125L0.75 12.375H2.25V14.8125C2.25 15.3305 2.66946 15.75 3.1875 15.75H5.625V17.25H3.1875C1.84104 17.25 0.75 16.159 0.75 14.8125Z",fill:e}),b.jsx("path",{d:"M15.75 14.8125V12.375H17.25V14.8125C17.25 16.159 16.159 17.25 14.8125 17.25H12.375V15.75H14.8125C15.3305 15.75 15.75 15.3305 15.75 14.8125Z",fill:e}),b.jsx("path",{d:"M15.75 3.1875C15.75 2.66946 15.3305 2.25 14.8125 2.25H12.375V0.75L14.8125 0.75C16.159 0.75 17.25 1.84104 17.25 3.1875V5.625H15.75V3.1875Z",fill:e}),b.jsx("path",{d:"M10.8889 10.5C11.6372 10.5 12.3895 10.6845 12.991 11.053L12.9902 11.0537C13.3468 11.2719 13.6565 11.5584 13.8684 11.9092L14.5298 13.0049L13.2451 13.7798L12.5845 12.6841C12.5191 12.576 12.3992 12.4499 12.2073 12.3325C11.8787 12.1312 11.4076 12 10.8889 12H7.11108C6.59216 12 6.1214 12.1305 5.79199 12.3318L5.79272 12.3325C5.64854 12.4207 5.54509 12.5138 5.47485 12.6006L5.41553 12.6841L4.75488 13.7798L3.47021 13.0049L4.13086 11.9092C4.34281 11.5583 4.6531 11.2712 5.00977 11.053C5.6104 10.6859 6.36112 10.5 7.11108 10.5H10.8889Z",fill:e}),b.jsx("path",{d:"M10.5 6.75C10.5 5.92157 9.82843 5.25 9 5.25C8.17157 5.25 7.5 5.92157 7.5 6.75C7.5 7.57843 8.17157 8.25 9 8.25C9.82843 8.25 10.5 7.57843 10.5 6.75ZM12 6.75C12 8.40685 10.6569 9.75 9 9.75C7.34315 9.75 6 8.40685 6 6.75C6 5.09315 7.34315 3.75 9 3.75C10.6569 3.75 12 5.09315 12 6.75Z",fill:e})]});uu.displayName="FacialIcon";const du=({fill:e="#FDFCFC",size:t=18,className:n})=>b.jsx("svg",{width:t,height:t,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,style:{display:"block"},children:b.jsx("path",{d:"M2.25 14.8125C2.25 15.3305 2.66946 15.75 3.1875 15.75H5.625V17.25H3.1875C1.84104 17.25 0.75 16.159 0.75 14.8125L0.75 12.375H2.25V14.8125ZM17.25 14.8125C17.25 16.159 16.159 17.25 14.8125 17.25H12.375L12.375 15.75H14.8125C15.3305 15.75 15.75 15.3305 15.75 14.8125V12.375L17.25 12.375V14.8125ZM14.135 6.35229C14.2958 6.19142 14.5379 6.14314 14.748 6.22998C14.9583 6.31702 15.0959 6.52245 15.0959 6.75V10.5015C15.0959 10.812 14.8439 11.0638 14.5334 11.064C14.2228 11.0639 13.9709 10.8121 13.9709 10.5015V8.10571C13.7502 8.30415 13.4107 8.29824 13.1982 8.08594C12.9785 7.86637 12.9787 7.51027 13.1982 7.29053L14.135 6.35229ZM11.3298 6.19336C11.5137 6.21969 11.6748 6.33566 11.7568 6.5061C11.8505 6.70099 11.8245 6.93272 11.6895 7.10156L9.42041 9.9375H11.25C11.5607 9.9375 11.8125 10.1893 11.8125 10.5C11.8125 10.8107 11.5607 11.0625 11.25 11.0625H8.25C8.03386 11.0625 7.83688 10.9386 7.74316 10.7439C7.6495 10.549 7.67547 10.3173 7.81055 10.1484L10.0796 7.3125L8.25 7.3125C7.93934 7.3125 7.6875 7.06066 7.6875 6.75C7.6875 6.43934 7.93934 6.1875 8.25 6.1875L11.25 6.1875L11.3298 6.19336ZM5.25 6.19482C5.45567 6.22809 5.62952 6.37352 5.69531 6.57642L6.9104 10.3264C7.00614 10.6219 6.84405 10.9396 6.54858 11.0354C6.25308 11.1311 5.93539 10.9691 5.8396 10.6736L5.72241 10.3125H3.65259L3.5354 10.6736C3.43961 10.9691 3.12192 11.1311 2.82642 11.0354C2.53095 10.9396 2.36886 10.6219 2.4646 10.3264L2.68579 9.6416C2.69424 9.59828 2.7083 9.55696 2.72607 9.51782L3.67969 6.57642L3.71411 6.49365C3.80908 6.30792 4.00155 6.1875 4.21509 6.1875H5.15991L5.25 6.19482ZM4.0166 9.1875H5.3584L4.75122 7.3125H4.62378L4.0166 9.1875ZM5.625 2.25H3.1875C2.66946 2.25 2.25 2.66946 2.25 3.1875V5.625H0.75L0.75 3.1875C0.75 1.84104 1.84104 0.75 3.1875 0.75L5.625 0.75V2.25ZM14.8125 0.75C16.159 0.75 17.25 1.84104 17.25 3.1875V5.625H15.75V3.1875C15.75 2.66946 15.3305 2.25 14.8125 2.25H12.375V0.75L14.8125 0.75Z",fill:e})});du.displayName="LPRIcon";const Ns="Facial",_s="LPR",DP=[Ns,_s];function RP(e,t){return e===Ns?b.jsx(uu,{fill:t,size:16}):e===_s?b.jsx(du,{fill:t,size:16}):null}function IP(e,t=18,n){return e===Ns?b.jsx(uu,{fill:n,size:t}):e===_s?b.jsx(du,{fill:n,size:t}):null}function AP(e,t){if(!e||!Array.isArray(e)||e.length===0)return;const n={};return e.forEach(o=>{const r=o.algorithm;r&&DP.includes(r)&&(n[r]=(n[r]||0)+1)}),Object.entries(n).map(([o,r])=>({count:r,icon:RP(o,t)}))}const NP="_spotWrapper_p7ng0_1",_P="_mapSpot_p7ng0_8",jP="_selected_p7ng0_24",LP="_rotationLines_p7ng0_36",$P="_rotationLine_p7ng0_36",VP="_rotationLineInner_p7ng0_56",FP="_rotationConeSvg_p7ng0_63",BP="_rotationLineSvg_p7ng0_77",zP="_cameraButtonAtTip_p7ng0_89",WP="_cameraButtonSelected_p7ng0_107",UP="_cameraButtonAtTipIcon_p7ng0_129",HP="_count_p7ng0_137",YP="_cameraTypesContainer_p7ng0_157",qP="_cameraTypeItem_p7ng0_164",GP="_cameraTypeCount_p7ng0_171",KP="_cameraTypeIcon_p7ng0_182",Rt={spotWrapper:NP,mapSpot:_P,selected:jP,rotationLines:LP,rotationLine:$P,rotationLineInner:VP,rotationConeSvg:FP,rotationLineSvg:BP,cameraButtonAtTip:zP,cameraButtonSelected:WP,cameraButtonAtTipIcon:UP,count:HP,cameraTypesContainer:YP,cameraTypeItem:qP,cameraTypeCount:GP,cameraTypeIcon:KP},ty=({fill:e="#FAF9F9",className:t})=>b.jsxs("svg",{width:"12",height:"104",viewBox:"0 0 12 104",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[b.jsx("path",{d:"M6.27344 0.75C6.27344 0.335786 5.93765 1.81059e-08 5.52344 0C5.10922 -1.81059e-08 4.77344 0.335786 4.77344 0.75L5.52344 0.75L6.27344 0.75ZM4.99311 50.7803C5.286 51.0732 5.76087 51.0732 6.05377 50.7803L10.8267 46.0074C11.1196 45.7145 11.1196 45.2396 10.8267 44.9467C10.5338 44.6538 10.059 44.6538 9.76608 44.9467L5.52344 49.1893L1.2808 44.9467C0.987902 44.6538 0.513028 44.6538 0.220135 44.9467C-0.0727587 45.2396 -0.0727587 45.7145 0.220135 46.0074L4.99311 50.7803ZM5.52344 0.75L4.77344 0.75L4.77344 50.25L5.52344 50.25L6.27344 50.25L6.27344 0.75L5.52344 0.75Z",fill:e}),b.jsx("path",{d:"M6.27344 53.25C6.27344 52.8358 5.93765 52.5 5.52344 52.5C5.10922 52.5 4.77344 52.8358 4.77344 53.25L5.52344 53.25L6.27344 53.25ZM4.99311 103.28C5.286 103.573 5.76087 103.573 6.05377 103.28L10.8267 98.5074C11.1196 98.2145 11.1196 97.7396 10.8267 97.4467C10.5338 97.1538 10.059 97.1538 9.76608 97.4467L5.52344 101.689L1.2808 97.4467C0.987902 97.1538 0.513028 97.1538 0.220135 97.4467C-0.0727587 97.7396 -0.0727587 98.2145 0.220135 98.5074L4.99311 103.28ZM5.52344 53.25L4.77344 53.25L4.77344 102.75L5.52344 102.75L6.27344 102.75L6.27344 53.25L5.52344 53.25Z",fill:e})]});ty.displayName="ArrowIcon";const ny=({fill:e="#CEE643",className:t})=>{const n=`coneGradient-${Math.random().toString(36).substr(2,9)}`;return b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"62",height:"122",viewBox:"0 0 62 122",fill:"none",className:t,children:[b.jsx("defs",{children:b.jsxs("linearGradient",{id:n,x1:"31",y1:"122",x2:"31",y2:"0",gradientUnits:"userSpaceOnUse",children:[b.jsx("stop",{offset:"0",stopColor:e,stopOpacity:"0.02"}),b.jsx("stop",{offset:"0.5",stopColor:e,stopOpacity:"0.35"}),b.jsx("stop",{offset:"1",stopColor:e,stopOpacity:"0.7"})]})}),b.jsx("path",{d:"M32 -1.31134e-06L62 103.5C62 103.5 52.0001 121 31 121.5C9.99993 122 -7.09431e-07 103.5 -7.09431e-07 103.5L30 -1.39876e-06L32 -1.31134e-06Z",fill:`url(#${n})`})]})};ny.displayName="ConeIcon";const ZP=Zo(q.Box),fu=({count:e,addressText:t,cameras:n,currentZoom:o=13,isSelected:r,selectedCameraId:i,isHighlighted:a,highlightedCameraId:l,disableClick:c=!1,className:u,onClick:d,onCameraClick:f,sx:p})=>{const m=q.useTheme().palette.mode==="dark",g=m?"#101111":"#FDFCFC",y=A.useMemo(()=>AP(n,g),[n,g]),v=y&&y.length>0,w=n&&n.length===1,x=!r&&v&&(w||o>=Oo),S=m?"var(--Surface-Inverse-Surface, #C7C6C6)":"var(--Surface-Inverse-Surface, #3B3B3C)",T=m?"var(--Tertiary-Tertiary, #CEE643)":"var(--Tertiary-Tertiary, #44808C)",E=r||a?T:S,M=m?"#101111":"#ffffff",_=m?"#CEE643":"#44808C",D=8,$=n??[],j=r&&$.length>0;return b.jsxs("div",{className:Rt.spotWrapper,"data-theme":m?"dark":"light",children:[b.jsx(ap,{children:j&&b.jsx(Zo.div,{className:Rt.rotationLines,"aria-hidden":!0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeOut"},children:$.map((C,L)=>{const k=i===C.id||l===C.id,I=m?"#101111":"#FDFCFC";return b.jsx("div",{className:Rt.rotationLine,style:{transform:`translate(-50%, -100%) rotate(${C.orientation??0}deg)`},children:b.jsxs(Zo.div,{className:Rt.rotationLineInner,style:{transformOrigin:"center bottom"},initial:{scaleY:0},animate:{scaleY:1},exit:{scaleY:0},transition:{duration:.5,ease:[.34,1.56,.64,1],delay:L*.08},children:[b.jsx(ny,{fill:_,className:Rt.rotationConeSvg}),b.jsx(ty,{fill:M,className:Rt.rotationLineSvg}),b.jsx("button",{type:"button",className:`${Rt.cameraButtonAtTip} ${k?Rt.cameraButtonSelected:""}`,onClick:O=>{O.stopPropagation(),f==null||f(C)},"aria-label":`Câmera ${C.algorithm??"câmera"}`,children:b.jsx("span",{className:Rt.cameraButtonAtTipIcon,style:{transform:`rotate(${0-(C.orientation??0)}deg)`},children:IP(C.algorithm,18,I)})})]})},C.id??L)})})}),b.jsx(ZP,{className:`${Rt.mapSpot} ${r?Rt.selected:""} ${u||""}`,onClick:c?void 0:d,sx:{...p,position:"relative",overflow:"visible","&::after":{content:'""',position:"absolute",bottom:0,left:"50%",transform:"translate(-50%, 100%)",width:0,height:0,borderLeft:`${D}px solid transparent`,borderRight:`${D}px solid transparent`,borderTop:`${D}px solid var(--arrow-color)`,filter:"drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.2))",opacity:"var(--arrow-opacity)",zIndex:1,pointerEvents:"none"}},initial:!1,style:{"--arrow-color":a?T:S,"--arrow-opacity":x?1:0,backgroundColor:E},animate:{width:x?"auto":r?34:30,height:x?"auto":r?28:30,borderRadius:"100px",backgroundColor:E,padding:x?"4px 8px":0,y:x?-D:0,"--arrow-opacity":x?1:0},transition:{duration:.2,ease:"easeInOut"},children:b.jsx(ap,{mode:"wait",children:x?b.jsx(Zo.div,{className:Rt.cameraTypesContainer,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2,ease:"easeInOut"},children:y.map((C,L)=>b.jsxs(Zo.div,{className:Rt.cameraTypeItem,initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{duration:.2,delay:L*.05},children:[b.jsx(q.Typography,{className:Rt.cameraTypeCount,children:C.count}),C.icon&&b.jsx(q.Box,{className:Rt.cameraTypeIcon,children:C.icon})]},L))},"expanded"):b.jsx(Zo.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2,ease:"easeInOut"},children:b.jsx(q.Typography,{className:Rt.count,children:e})},"collapsed")})})]})};fu.displayName="MapSpot";const XP="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.75%203.1875C0.75%201.84104%201.84104%200.75%203.1875%200.75L5.625%200.75V2.25H3.1875C2.66946%202.25%202.25%202.66946%202.25%203.1875V5.625H0.75L0.75%203.1875Z'%20fill='%23FDFCFC'/%3e%3cpath%20d='M0.75%2014.8125L0.75%2012.375H2.25V14.8125C2.25%2015.3305%202.66946%2015.75%203.1875%2015.75H5.625V17.25H3.1875C1.84104%2017.25%200.75%2016.159%200.75%2014.8125Z'%20fill='%23FDFCFC'/%3e%3cpath%20d='M15.75%2014.8125V12.375H17.25V14.8125C17.25%2016.159%2016.159%2017.25%2014.8125%2017.25H12.375V15.75H14.8125C15.3305%2015.75%2015.75%2015.3305%2015.75%2014.8125Z'%20fill='%23FDFCFC'/%3e%3cpath%20d='M15.75%203.1875C15.75%202.66946%2015.3305%202.25%2014.8125%202.25H12.375V0.75L14.8125%200.75C16.159%200.75%2017.25%201.84104%2017.25%203.1875V5.625H15.75V3.1875Z'%20fill='%23FDFCFC'/%3e%3cpath%20d='M10.8889%2010.5C11.6372%2010.5%2012.3895%2010.6845%2012.991%2011.053L12.9902%2011.0537C13.3468%2011.2719%2013.6565%2011.5584%2013.8684%2011.9092L14.5298%2013.0049L13.2451%2013.7798L12.5845%2012.6841C12.5191%2012.576%2012.3992%2012.4499%2012.2073%2012.3325C11.8787%2012.1312%2011.4076%2012%2010.8889%2012H7.11108C6.59216%2012%206.1214%2012.1305%205.79199%2012.3318L5.79272%2012.3325C5.64854%2012.4207%205.54509%2012.5138%205.47485%2012.6006L5.41553%2012.6841L4.75488%2013.7798L3.47021%2013.0049L4.13086%2011.9092C4.34281%2011.5583%204.6531%2011.2712%205.00977%2011.053C5.6104%2010.6859%206.36112%2010.5%207.11108%2010.5H10.8889Z'%20fill='%23FDFCFC'/%3e%3cpath%20d='M10.5%206.75C10.5%205.92157%209.82843%205.25%209%205.25C8.17157%205.25%207.5%205.92157%207.5%206.75C7.5%207.57843%208.17157%208.25%209%208.25C9.82843%208.25%2010.5%207.57843%2010.5%206.75ZM12%206.75C12%208.40685%2010.6569%209.75%209%209.75C7.34315%209.75%206%208.40685%206%206.75C6%205.09315%207.34315%203.75%209%203.75C10.6569%203.75%2012%205.09315%2012%206.75Z'%20fill='%23FDFCFC'/%3e%3c/svg%3e",QP="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2.25%2014.8125C2.25%2015.3305%202.66946%2015.75%203.1875%2015.75H5.625V17.25H3.1875C1.84104%2017.25%200.75%2016.159%200.75%2014.8125L0.75%2012.375H2.25V14.8125ZM17.25%2014.8125C17.25%2016.159%2016.159%2017.25%2014.8125%2017.25H12.375L12.375%2015.75H14.8125C15.3305%2015.75%2015.75%2015.3305%2015.75%2014.8125V12.375L17.25%2012.375V14.8125ZM14.135%206.35229C14.2958%206.19142%2014.5379%206.14314%2014.748%206.22998C14.9583%206.31702%2015.0959%206.52245%2015.0959%206.75V10.5015C15.0959%2010.812%2014.8439%2011.0638%2014.5334%2011.064C14.2228%2011.0639%2013.9709%2010.8121%2013.9709%2010.5015V8.10571C13.7502%208.30415%2013.4107%208.29824%2013.1982%208.08594C12.9785%207.86637%2012.9787%207.51027%2013.1982%207.29053L14.135%206.35229ZM11.3298%206.19336C11.5137%206.21969%2011.6748%206.33566%2011.7568%206.5061C11.8505%206.70099%2011.8245%206.93272%2011.6895%207.10156L9.42041%209.9375H11.25C11.5607%209.9375%2011.8125%2010.1893%2011.8125%2010.5C11.8125%2010.8107%2011.5607%2011.0625%2011.25%2011.0625H8.25C8.03386%2011.0625%207.83688%2010.9386%207.74316%2010.7439C7.6495%2010.549%207.67547%2010.3173%207.81055%2010.1484L10.0796%207.3125L8.25%207.3125C7.93934%207.3125%207.6875%207.06066%207.6875%206.75C7.6875%206.43934%207.93934%206.1875%208.25%206.1875L11.25%206.1875L11.3298%206.19336ZM5.25%206.19482C5.45567%206.22809%205.62952%206.37352%205.69531%206.57642L6.9104%2010.3264C7.00614%2010.6219%206.84405%2010.9396%206.54858%2011.0354C6.25308%2011.1311%205.93539%2010.9691%205.8396%2010.6736L5.72241%2010.3125H3.65259L3.5354%2010.6736C3.43961%2010.9691%203.12192%2011.1311%202.82642%2011.0354C2.53095%2010.9396%202.36886%2010.6219%202.4646%2010.3264L2.68579%209.6416C2.69424%209.59828%202.7083%209.55696%202.72607%209.51782L3.67969%206.57642L3.71411%206.49365C3.80908%206.30792%204.00155%206.1875%204.21509%206.1875H5.15991L5.25%206.19482ZM4.0166%209.1875H5.3584L4.75122%207.3125H4.62378L4.0166%209.1875ZM5.625%202.25H3.1875C2.66946%202.25%202.25%202.66946%202.25%203.1875V5.625H0.75L0.75%203.1875C0.75%201.84104%201.84104%200.75%203.1875%200.75L5.625%200.75V2.25ZM14.8125%200.75C16.159%200.75%2017.25%201.84104%2017.25%203.1875V5.625H15.75V3.1875C15.75%202.66946%2015.3305%202.25%2014.8125%202.25H12.375V0.75L14.8125%200.75Z'%20fill='%23FDFCFC'/%3e%3c/svg%3e",JP="_cameraCard_1scfk_2",eE="_selected_1scfk_14",tE="_topContainer_1scfk_62",nE="_mediaImage_1scfk_76",oE="_mediaPlaceholder_1scfk_83",rE="_menuButton_1scfk_89",sE="_menuButtonIcon_1scfk_108",iE="_closeButton_1scfk_114",aE="_closeButtonIcon_1scfk_133",lE="_bottomContainer_1scfk_139",cE="_infoRow_1scfk_151",uE="_iconWrapper_1scfk_158",dE="_cameraIcon_1scfk_166",fE="_cameraTypeImage_1scfk_173",pE="_textColumn_1scfk_181",hE="_headerText_1scfk_190",mE="_subheadText_1scfk_200",gE="_streetText_1scfk_210",yE="_supportText_1scfk_211",bE="_tagsContainer_1scfk_221",vE="_tag_1scfk_221",xE="_tagOverflow_1scfk_234",SE="_recordingButtonContainer_1scfk_255",CE="_menuButtonInline_1scfk_264",wE="_menuButtonInlineIcon_1scfk_283",TE="_recordingButton_1scfk_255",PE="_recordingButtonIcon_1scfk_314",EE="_recordingButtonText_1scfk_317",ME="_cameraCardMenuPaper_1scfk_348",OE="_cameraCardMenuList_1scfk_372",kE="_cameraCardMenuItem_1scfk_380",DE="_cameraCardMenuItemText_1scfk_419",_e={cameraCard:JP,selected:eE,topContainer:tE,mediaImage:nE,mediaPlaceholder:oE,menuButton:rE,menuButtonIcon:sE,closeButton:iE,closeButtonIcon:aE,bottomContainer:lE,infoRow:cE,iconWrapper:uE,cameraIcon:dE,cameraTypeImage:fE,textColumn:pE,headerText:hE,subheadText:mE,streetText:gE,supportText:yE,tagsContainer:bE,tag:vE,tagOverflow:xE,recordingButtonContainer:SE,menuButtonInline:CE,menuButtonInlineIcon:wE,recordingButton:TE,recordingButtonIcon:PE,recordingButtonText:EE,cameraCardMenuPaper:ME,cameraCardMenuList:OE,cameraCardMenuItem:kE,cameraCardMenuItemText:DE};function RE(e){return e===Ns?b.jsx("img",{src:XP,alt:"Facial",width:20,height:20,className:_e.cameraTypeImage}):e===_s?b.jsx("img",{src:QP,alt:"LPR",width:20,height:20,className:_e.cameraTypeImage}):b.jsx(kt.VideocamOutlined,{className:_e.cameraIcon})}const IE=({cameraName:e,streetName:t,pointName:n,neighborhoodAndCity:o,tags:r=[],imageUrl:i,algorithm:a,menuItems:l,onMenuClick:c,className:u,recordingButton:d,onClose:f,selected:p})=>{const m=ae.useTheme().palette.mode==="dark",g=o??"",y=n??"",v=A.useRef(null),w=A.useRef(null),[x,S]=A.useState(r.length),[T,E]=A.useState(!1),M=A.useRef(!1),_=((l==null?void 0:l.length)??0)>0||c,D=((l==null?void 0:l.length)??0)>0;A.useLayoutEffect(()=>{r.length!==0&&(S(r.length),M.current=!1)},[r.length]),A.useLayoutEffect(()=>{const k=v.current;if(!k||r.length===0)return;const I=()=>{if(!k)return;const{scrollWidth:N,clientWidth:F}=k;N>F?(M.current=!0,S(V=>Math.max(0,V-1))):!M.current&&x<r.length?S(V=>Math.min(r.length,V+1)):M.current=!1};I();const O=new ResizeObserver(I);return O.observe(k),()=>O.disconnect()},[r.length,x]);const $=x<r.length,j=$?r.slice(0,x):r,C=$?r.length-x:0,L=r.length>0?r.join(", "):"";return b.jsxs(q.Box,{className:`${_e.cameraCard} ${p?_e.selected:""} ${u||""}`.trim(),"data-theme":m?"dark":"light",children:[b.jsxs(q.Box,{className:_e.topContainer,children:[i?b.jsx("img",{src:i,alt:"",className:_e.mediaImage}):b.jsx(q.Box,{className:_e.mediaPlaceholder,"aria-hidden":!0}),d&&f&&b.jsx(q.IconButton,{onClick:f,className:_e.closeButton,"aria-label":"Fechar",size:"small",children:b.jsx(kt.Close,{className:_e.closeButtonIcon})}),_&&!d&&b.jsx(q.IconButton,{ref:w,onClick:()=>{D?E(!0):c==null||c()},className:_e.menuButton,"aria-label":"Opções","aria-haspopup":D?"menu":void 0,"aria-expanded":T,size:"small",children:b.jsx(kt.MoreHoriz,{className:_e.menuButtonIcon})})]}),D&&b.jsx(q.Popover,{open:T,anchorEl:w.current,onClose:()=>E(!1),anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{elevation:0,sx:{padding:0,background:"transparent",marginLeft:2}}},children:b.jsx(q.Box,{className:_e.cameraCardMenuPaper,"data-theme":m?"dark":"light",children:b.jsx(q.Box,{className:_e.cameraCardMenuList,role:"menu",children:l.map(k=>b.jsx("button",{type:"button",className:_e.cameraCardMenuItem,role:"menuitem",onClick:()=>{var I;(I=k.onClick)==null||I.call(k),E(!1)},children:b.jsx("span",{className:_e.cameraCardMenuItemText,children:k.label})},k.label))})})}),b.jsxs(q.Box,{className:_e.bottomContainer,children:[b.jsxs(q.Box,{className:_e.infoRow,children:[b.jsx(q.Box,{className:_e.iconWrapper,children:RE(a)}),b.jsxs(q.Box,{className:_e.textColumn,children:[b.jsx("span",{className:_e.headerText,children:e}),y&&b.jsx("span",{className:_e.subheadText,children:y}),b.jsx("span",{className:_e.streetText,children:t}),g&&b.jsx("span",{className:_e.supportText,children:g})]})]}),d?b.jsxs(q.Box,{className:_e.recordingButtonContainer,children:[_&&b.jsx(q.IconButton,{ref:w,onClick:()=>{D?E(!0):c==null||c()},className:_e.menuButtonInline,"aria-label":"Opções","aria-haspopup":D?"menu":void 0,"aria-expanded":T,size:"small",children:b.jsx(kt.MoreHoriz,{className:_e.menuButtonInlineIcon})}),b.jsxs("button",{type:"button",className:_e.recordingButton,onClick:k=>{k.stopPropagation(),d.onClick?d.onClick():window.location.href=`/camera/${d.cameraId}`},"aria-label":"Ver gravação",children:[b.jsx(kt.VideocamOutlined,{className:_e.recordingButtonIcon}),b.jsx("span",{className:_e.recordingButtonText,children:"Ver gravação"})]})]}):r.length>0&&b.jsx(q.Tooltip,{title:L,placement:"top",enterDelay:300,children:b.jsxs(q.Box,{ref:v,className:_e.tagsContainer,component:"span",tabIndex:0,role:"group","aria-label":"Tags da câmera",children:[j.map(k=>b.jsx("span",{className:_e.tag,children:k},k)),$&&b.jsxs("span",{className:_e.tagOverflow,children:["+",C]})]})})]})]})},AE=(e,t=1,n=13)=>()=>{if(!e)return;const o=e.getZoom()??n;e.setZoom(o+t)},NE=(e,t=1,n=1,o=13)=>()=>{if(!e)return;const r=e.getZoom()??o;e.setZoom(Math.max(n,r-t))},_E="_container_1whpg_2",jE="_zoomButton_1whpg_10",LE="_stateLayer_1whpg_43",$E="_icon_1whpg_59",yn={container:_E,zoomButton:jE,stateLayer:LE,icon:$E},VE=({map:e,className:t,sx:n,zoomIncrement:o=1,minZoom:r=1,fallbackZoom:i=13,onFullscreen:a})=>{const c=q.useTheme().palette.mode==="dark",u=AE(e,o,i),d=NE(e,o,r,i),f={backgroundColor:c?"#DEDDDD":"#101111","&:hover":{backgroundColor:c?"#DEDDDD":"#101111",opacity:.9}},p={fill:c?"#101111":"#FDFCFC",color:c?"#101111":"#FDFCFC"};return b.jsxs(q.Box,{className:`${yn.container} ${t||""}`,sx:n,children:[b.jsx(q.IconButton,{className:yn.zoomButton,onClick:u,"aria-label":"Zoom in",sx:f,children:b.jsx(q.Box,{className:yn.stateLayer,children:b.jsx(kt.Add,{className:yn.icon,sx:p})})}),b.jsx(q.IconButton,{className:yn.zoomButton,onClick:d,"aria-label":"Zoom out",sx:f,children:b.jsx(q.Box,{className:yn.stateLayer,children:b.jsx(kt.Remove,{className:yn.icon,sx:p})})}),b.jsx(q.IconButton,{className:yn.zoomButton,onClick:a,"aria-label":"Fullscreen",sx:f,children:b.jsx(q.Box,{className:yn.stateLayer,children:b.jsx(kt.ZoomOutMap,{className:yn.icon,sx:p})})})]})};var FE=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var o,r,i;if(Array.isArray(t)){if(o=t.length,o!=n.length)return!1;for(r=o;r--!==0;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),o=i.length,o!==Object.keys(n).length)return!1;for(r=o;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;r--!==0;){var a=i[r];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n};const BE=oo(FE),zE="1.7.1";function hr(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function rc(e,t,n,o){function r(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{u(o.next(d))}catch(f){a(f)}}function c(d){try{u(o.throw(d))}catch(f){a(f)}}function u(d){d.done?i(d.value):r(d.value).then(l,c)}u((o=o.apply(e,[])).next())})}const In={NOT_LOADED:"NOT_LOADED",LOADING:"LOADING",LOADED:"LOADED",FAILED:"FAILED",AUTH_FAILURE:"AUTH_FAILURE"},WE="https://maps.googleapis.com/maps/api/js";class Ai{static load(t,n){return rc(this,void 0,void 0,function*(){var o,r;const i=t.libraries?t.libraries.split(","):[],a=this.serializeParams(t);this.listeners.push(n),!((r=(o=window.google)===null||o===void 0?void 0:o.maps)===null||r===void 0)&&r.importLibrary?(this.serializedApiParams||(this.loadingStatus=In.LOADED),this.notifyLoadingStatusListeners()):(this.serializedApiParams=a,this.initImportLibrary(t)),this.serializedApiParams&&this.serializedApiParams!==a&&console.warn("[google-maps-api-loader] The maps API has already been loaded with different parameters and will not be loaded again. Refresh the page for new values to have effect.");const l=["maps",...i];yield Promise.all(l.map(c=>google.maps.importLibrary(c)))})}static serializeParams(t){return[t.v,t.key,t.language,t.region,t.authReferrerPolicy,t.solutionChannel].join("/")}static initImportLibrary(t){if(window.google||(window.google={}),window.google.maps||(window.google.maps={}),window.google.maps.importLibrary){console.error("[google-maps-api-loader-internal]: initImportLibrary must only be called once");return}let n=null;const o=()=>n||(n=new Promise((r,i)=>{var a;const l=document.createElement("script"),c=new URLSearchParams;for(const[u,d]of Object.entries(t)){const f=u.replace(/[A-Z]/g,p=>"_"+p[0].toLowerCase());c.set(f,String(d))}c.set("loading","async"),c.set("callback","__googleMapsCallback__"),l.async=!0,l.src=WE+"?"+c.toString(),l.nonce=((a=document.querySelector("script[nonce]"))===null||a===void 0?void 0:a.nonce)||"",l.onerror=()=>{this.loadingStatus=In.FAILED,this.notifyLoadingStatusListeners(),i(new Error("The Google Maps JavaScript API could not load."))},window.__googleMapsCallback__=()=>{this.loadingStatus=In.LOADED,this.notifyLoadingStatusListeners(),r()},window.gm_authFailure=()=>{this.loadingStatus=In.AUTH_FAILURE,this.notifyLoadingStatusListeners()},this.loadingStatus=In.LOADING,this.notifyLoadingStatusListeners(),document.head.append(l)}),n);google.maps.importLibrary=r=>o().then(()=>google.maps.importLibrary(r))}static notifyLoadingStatusListeners(){for(const t of this.listeners)t(this.loadingStatus)}}Ai.loadingStatus=In.NOT_LOADED;Ai.listeners=[];const UE="GMP_visgl_rgmlibrary_v1_default",HE=[`gmp_visgl_reactgooglemaps_v${zE}`],js=A.createContext(null);function YE(){const[e,t]=A.useState({});return{mapInstances:e,addMapInstance:(i,a="default")=>{t(l=>Object.assign(Object.assign({},l),{[a]:i}))},removeMapInstance:(i="default")=>{t(a=>{var l=i;a[l];var c=hr(a,[typeof l=="symbol"?l:l+""]);return c})},clearMapInstances:()=>{t({})}}}function qE(e){const{onLoad:t,onError:n,apiKey:o,version:r,libraries:i=[]}=e,a=hr(e,["onLoad","onError","apiKey","version","libraries"]),[l,c]=A.useState(Ai.loadingStatus),[u,d]=A.useReducer((m,g)=>m[g.name]?m:Object.assign(Object.assign({},m),{[g.name]:g.value}),{}),f=A.useMemo(()=>i==null?void 0:i.join(","),[i]),p=A.useMemo(()=>JSON.stringify(Object.assign({apiKey:o,version:r},a)),[o,r,a]),h=A.useCallback(m=>rc(this,void 0,void 0,function*(){var g;if(u[m])return u[m];if(!(!((g=google==null?void 0:google.maps)===null||g===void 0)&&g.importLibrary))throw new Error("[api-provider-internal] importLibrary was called before google.maps.importLibrary was defined.");const y=yield window.google.maps.importLibrary(m);return d({name:m,value:y}),y}),[u]);return A.useEffect(()=>{rc(this,void 0,void 0,function*(){try{const m=Object.assign({key:o},a);r&&(m.v=r),(f==null?void 0:f.length)>0&&(m.libraries=f),(m.channel===void 0||m.channel<0||m.channel>999)&&delete m.channel,m.solutionChannel===void 0?m.solutionChannel=UE:m.solutionChannel===""&&delete m.solutionChannel,yield Ai.load(m,g=>c(g));for(const g of["core","maps",...i])yield h(g);t&&t()}catch(m){n?n(m):console.error("<ApiProvider> failed to load the Google Maps JavaScript API",m)}})},[o,f,p]),{status:l,loadedLibraries:u,importLibrary:h}}function GE(e){return A.useMemo(()=>e.disableUsageAttribution?null:HE,[e.disableUsageAttribution])}const KE=e=>{const{children:t}=e,n=hr(e,["children"]),{mapInstances:o,addMapInstance:r,removeMapInstance:i,clearMapInstances:a}=YE(),{status:l,loadedLibraries:c,importLibrary:u}=qE(n),d=GE(n),f=A.useMemo(()=>({mapInstances:o,addMapInstance:r,removeMapInstance:i,clearMapInstances:a,status:l,loadedLibraries:c,importLibrary:u,internalUsageAttributionIds:d}),[o,r,i,a,l,c,u,d]);return A.createElement(js.Provider,{value:f},t)};function ZE(e,t){for(const n of eM){const o=t[n],r=oy[n];A.useEffect(()=>{if(!e||!o)return;const i=google.maps.event.addListener(e,r,a=>{o(XE(r,e,a))});return()=>i.remove()},[e,r,o])}}function XE(e,t,n){var o;const r={type:e,map:t,detail:{},stoppable:!1,stop:()=>{}};if(QE.includes(e)){const i=r,a=t.getCenter(),l=t.getZoom(),c=t.getHeading()||0,u=t.getTilt()||0,d=t.getBounds();return(!a||!d||!Number.isFinite(l))&&console.warn("[createEvent] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at https://github.com/visgl/react-google-maps/issues/new"),i.detail={center:(a==null?void 0:a.toJSON())||{lat:0,lng:0},zoom:l||0,heading:c,tilt:u,bounds:(d==null?void 0:d.toJSON())||{north:90,east:180,south:-90,west:-180}},i}else if(JE.includes(e)){if(!n)throw new Error("[createEvent] mouse events must provide a srcEvent");const i=r;return i.domEvent=n.domEvent,i.stoppable=!0,i.stop=()=>n.stop(),i.detail={latLng:((o=n.latLng)===null||o===void 0?void 0:o.toJSON())||null,placeId:n.placeId},i}return r}const oy={onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onContextmenu:"contextmenu",onDblclick:"dblclick",onDrag:"drag",onDragend:"dragend",onDragstart:"dragstart",onHeadingChanged:"heading_changed",onIdle:"idle",onIsFractionalZoomEnabledChanged:"isfractionalzoomenabled_changed",onMapCapabilitiesChanged:"mapcapabilities_changed",onMapTypeIdChanged:"maptypeid_changed",onMousemove:"mousemove",onMouseout:"mouseout",onMouseover:"mouseover",onProjectionChanged:"projection_changed",onRenderingTypeChanged:"renderingtype_changed",onTilesLoaded:"tilesloaded",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed",onCameraChanged:"bounds_changed"},QE=["bounds_changed","center_changed","heading_changed","tilt_changed","zoom_changed"],JE=["click","contextmenu","dblclick","mousemove","mouseout","mouseover"],eM=Object.keys(oy);function tM(e){const t=A.useRef(void 0);return A.useEffect(()=>{t.current=e}),t.current}function nM(e,t){const n=tM(e);return A.useMemo(()=>n&&t(n,e)?n:e,[e,n,t])}function oM(e,t,n){A.useEffect(e,[nM(t,n)])}function rM(e,t){oM(e,t,BE)}const sM=new Set(["backgroundColor","clickableIcons","controlSize","disableDefaultUI","disableDoubleClickZoom","draggable","draggableCursor","draggingCursor","fullscreenControl","fullscreenControlOptions","gestureHandling","headingInteractionEnabled","isFractionalZoomEnabled","keyboardShortcuts","mapTypeControl","mapTypeControlOptions","mapTypeId","maxZoom","minZoom","noClear","panControl","panControlOptions","restriction","rotateControl","rotateControlOptions","scaleControl","scaleControlOptions","scrollwheel","streetView","streetViewControl","streetViewControlOptions","styles","tiltInteractionEnabled","zoomControl","zoomControlOptions"]);function iM(e,t){const n={},o=Object.keys(t);for(const r of o)sM.has(r)&&(n[r]=t[r]);rM(()=>{e&&e.setOptions(n)},[n])}function ry(){var e;return((e=A.useContext(js))===null||e===void 0?void 0:e.status)||In.NOT_LOADED}function aM(e,t){const{viewport:n,viewState:o}=t,r=!!n;return A.useLayoutEffect(()=>{if(!e||!o)return;const{latitude:i,longitude:a,bearing:l,pitch:c,zoom:u}=o;e.moveCamera({center:{lat:i,lng:a},heading:l,tilt:c,zoom:u+1})},[e,o]),r}function lM(e){return!e||typeof e!="object"||!("lat"in e&&"lng"in e)?!1:Number.isFinite(e.lat)&&Number.isFinite(e.lng)}function sy(e){return lM(e)?e:e.toJSON()}function cM(e,t,n){const o=n.center?sy(n.center):null;let r=null,i=null;o&&Number.isFinite(o.lat)&&Number.isFinite(o.lng)&&(r=o.lat,i=o.lng);const a=Number.isFinite(n.zoom)?n.zoom:null,l=Number.isFinite(n.heading)?n.heading:null,c=Number.isFinite(n.tilt)?n.tilt:null;A.useLayoutEffect(()=>{if(!e)return;const u={};let d=!1;r!==null&&i!==null&&(t.current.center.lat!==r||t.current.center.lng!==i)&&(u.center={lat:r,lng:i},d=!0),a!==null&&t.current.zoom!==a&&(u.zoom=a,d=!0),l!==null&&t.current.heading!==l&&(u.heading=l,d=!0),c!==null&&t.current.tilt!==c&&(u.tilt=c,d=!0),d&&e.moveCamera(u)})}const uM=()=>{const e={position:"absolute",top:0,left:0,bottom:0,right:0,zIndex:999,display:"flex",flexFlow:"column nowrap",textAlign:"center",justifyContent:"center",fontSize:".8rem",color:"rgba(0,0,0,0.6)",background:"#dddddd",padding:"1rem 1.5rem"};return A.createElement("div",{style:e},A.createElement("h2",null,"Error: AuthFailure"),A.createElement("p",null,"A problem with your API key prevents the map from rendering correctly. Please make sure the value of the ",A.createElement("code",null,"APIProvider.apiKey")," prop is correct. Check the error-message in the console for further details."))};function dM(){const[e,t]=A.useState(null),n=A.useCallback(o=>t(o),[t]);return[e,n]}function iy(){return ry()===In.LOADED}function fM(){const[,e]=A.useReducer(t=>t+1,0);return e}function pM(e,t){const n=e.getCenter(),o=e.getZoom(),r=e.getHeading()||0,i=e.getTilt()||0,a=e.getBounds();(!n||!a||!Number.isFinite(o))&&console.warn("[useTrackedCameraState] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at https://github.com/visgl/react-google-maps/issues/new"),Object.assign(t.current,{center:(n==null?void 0:n.toJSON())||{lat:0,lng:0},zoom:o||0,heading:r,tilt:i})}function hM(e){const t=fM(),n=A.useRef({center:{lat:0,lng:0},heading:0,tilt:0,zoom:0});return A.useEffect(()=>{if(!e)return;const o=google.maps.event.addListener(e,"bounds_changed",()=>{pM(e,n),t()});return()=>o.remove()},[e,t]),n}class vi{static has(t){return this.entries[t]&&this.entries[t].length>0}static pop(t){return this.entries[t]&&this.entries[t].pop()||null}static push(t,n){this.entries[t]||(this.entries[t]=[]),this.entries[t].push(n)}}vi.entries={};function mM(e,t){const n=iy(),[o,r]=A.useState(null),[i,a]=dM(),l=hM(o),{id:c,defaultBounds:u,defaultCenter:d,defaultZoom:f,defaultHeading:p,defaultTilt:h,reuseMaps:m,renderingType:g,colorScheme:y}=e,v=hr(e,["id","defaultBounds","defaultCenter","defaultZoom","defaultHeading","defaultTilt","reuseMaps","renderingType","colorScheme"]),w=e.zoom!==void 0||e.defaultZoom!==void 0,x=e.center!==void 0||e.defaultCenter!==void 0;!u&&(!w||!x)&&console.warn("<Map> component is missing configuration. You have to provide zoom and center (via the `zoom`/`defaultZoom` and `center`/`defaultCenter` props) or specify the region to show using `defaultBounds`. See https://visgl.github.io/react-google-maps/docs/api-reference/components/map#required"),!v.center&&d&&(v.center=d),!v.zoom&&Number.isFinite(f)&&(v.zoom=f),!v.heading&&Number.isFinite(p)&&(v.heading=p),!v.tilt&&Number.isFinite(h)&&(v.tilt=h);const S=v.internalUsageAttributionIds;S==null?v.internalUsageAttributionIds=t.internalUsageAttributionIds:v.internalUsageAttributionIds=[...t.internalUsageAttributionIds||[],...S];for(const E of Object.keys(v))v[E]===void 0&&delete v[E];const T=A.useRef(void 0);return A.useEffect(()=>{if(!i||!n)return;const{addMapInstance:E,removeMapInstance:M}=t,{mapId:_}=e,D=`${_||"default"}:${g||"default"}:${y||"LIGHT"}`;let $,j;if(m&&vi.has(D)?(j=vi.pop(D),$=j.getDiv(),i.appendChild($),j.setOptions(v),setTimeout(()=>j.setCenter(j.getCenter()),0)):($=document.createElement("div"),$.style.height="100%",i.appendChild($),j=new google.maps.Map($,Object.assign(Object.assign(Object.assign({},v),g?{renderingType:g}:{}),y?{colorScheme:y}:{}))),r(j),E(j,c),u){const{padding:C}=u,L=hr(u,["padding"]);j.fitBounds(L,C)}else(!w||!x)&&j.fitBounds({east:180,west:-180,south:-90,north:90});if(T.current){const{mapId:C,cameraState:L}=T.current;C!==_&&j.setOptions(L)}return()=>{T.current={mapId:_,cameraState:l.current},$.remove(),m?vi.push(D,j):google.maps.event.clearInstanceListeners(j),r(null),M(c)}},[i,n,c,e.mapId,e.renderingType,e.colorScheme]),[o,a,l]}const ay=A.createContext(null),ly=e=>{const{children:t,id:n,className:o,style:r}=e,i=A.useContext(js),a=ry();if(!i)throw new Error("<Map> can only be used inside an <ApiProvider> component.");const[l,c,u]=mM(e,i);cM(l,u,e),ZE(l,e),iM(l,e);const d=aM(l,e),f=!!e.controlled;A.useEffect(()=>{if(l)return d&&l.setOptions({disableDefaultUI:!0}),(d||f)&&l.setOptions({gestureHandling:"none",keyboardShortcuts:!1}),()=>{l.setOptions({gestureHandling:e.gestureHandling,keyboardShortcuts:e.keyboardShortcuts})}},[l,d,f,e.gestureHandling,e.keyboardShortcuts]);const p=e.center?sy(e.center):null;let h=null,m=null;p&&Number.isFinite(p.lat)&&Number.isFinite(p.lng)&&(h=p.lat,m=p.lng);const g=A.useMemo(()=>{var w,x,S;return{center:{lat:h??0,lng:m??0},zoom:(w=e.zoom)!==null&&w!==void 0?w:0,heading:(x=e.heading)!==null&&x!==void 0?x:0,tilt:(S=e.tilt)!==null&&S!==void 0?S:0}},[h,m,e.zoom,e.heading,e.tilt]);A.useLayoutEffect(()=>{if(!l||!f)return;l.moveCamera(g);const w=l.addListener("bounds_changed",()=>{l.moveCamera(g)});return()=>w.remove()},[l,f,g]);const y=A.useMemo(()=>Object.assign({width:"100%",height:"100%",position:"relative",zIndex:d?-1:0},r),[r,d]),v=A.useMemo(()=>({map:l}),[l]);return a===In.AUTH_FAILURE?A.createElement("div",{style:Object.assign({position:"relative"},o?{}:y),className:o},A.createElement(uM,null)):A.createElement("div",Object.assign({ref:c,"data-testid":"map",style:o?void 0:y,className:o},n?{id:n}:{}),l?A.createElement(ay.Provider,{value:v},t):null)};ly.deckGLViewProps=!0;const Sp=new Set;function gM(...e){const t=JSON.stringify(e);Sp.has(t)||(Sp.add(t),console.error(...e))}const ua=(e=null)=>{const t=A.useContext(js),{map:n}=A.useContext(ay)||{};if(t===null)return gM("useMap(): failed to retrieve APIProviderContext. Make sure that the <APIProvider> component exists and that the component you are calling `useMap()` from is a sibling of the <APIProvider>."),null;const{mapInstances:o}=t;return e!==null?o[e]||null:n||o.default||null};function yM(e){const t=iy(),n=A.useContext(js);return A.useEffect(()=>{!t||!n||n.importLibrary(e)},[t,n,e]),(n==null?void 0:n.loadedLibraries[e])||null}function ti(e,t,n){A.useEffect(()=>{if(!e||!t||!n)return;const o=google.maps.event.addListener(e,t,n);return()=>o.remove()},[e,t,n])}function ni(e,t,n){A.useEffect(()=>{e&&(e[t]=n)},[e,t,n])}function Cp(e,t,n){A.useEffect(()=>{if(!(!e||!t||!n))return e.addEventListener(t,n),()=>e.removeEventListener(t,n)},[e,t,n])}class bM{constructor(){this.renderedStyles=new Set,this.styleElement=null}getStyleElement(){return this.styleElement||(this.styleElement=document.createElement("style"),this.styleElement.setAttribute("data-rgm-anchor-styles",""),document.head.appendChild(this.styleElement)),this.styleElement}addAdvancedMarkerPointerEventsOverwrite(){if(this.renderedStyles.has("marker-pointer-events"))return;const t=this.getStyleElement();t.textContent+=`
105
+ `),()=>{T.contains(S)&&T.removeChild(S)}},[t]),b.jsx(vP,{isPresent:t,childRef:a,sizeRef:l,children:P.cloneElement(e,{ref:d})})}const SP=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:r,presenceAffectsLayout:i,mode:a,anchorX:l,anchorY:c,root:u})=>{const d=_c(wP),f=_.useId();let p=!0,h=_.useMemo(()=>(p=!1,{id:f,initial:t,isPresent:n,custom:r,onExitComplete:m=>{d.set(m,!0);for(const g of d.values())if(!g)return;o&&o()},register:m=>(d.set(m,!1),()=>d.delete(m))}),[n,d,o]);return i&&p&&(h={...h}),_.useMemo(()=>{d.forEach((m,g)=>d.set(g,!1))},[n]),P.useEffect(()=>{!n&&!d.size&&o&&o()},[n]),a==="popLayout"&&(e=b.jsx(xP,{isPresent:n,anchorX:l,anchorY:c,root:u,children:e})),b.jsx(ia.Provider,{value:h,children:e})};function wP(){return new Map}function zg(e=!0){const t=_.useContext(ia);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:r}=t,i=_.useId();_.useEffect(()=>{if(e)return r(i)},[e]);const a=_.useCallback(()=>e&&o&&o(i),[i,o,e]);return!n&&o?[!1,a]:[!0]}const Js=e=>e.key||"";function ip(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const ap=({children:e,custom:t,initial:n=!0,onExitComplete:o,presenceAffectsLayout:r=!0,mode:i="sync",propagate:a=!1,anchorX:l="left",anchorY:c="top",root:u})=>{const[d,f]=zg(a),p=_.useMemo(()=>ip(e),[e]),h=a&&!d?[]:p.map(Js),m=_.useRef(!0),g=_.useRef(p),y=_c(()=>new Map),v=_.useRef(new Set),[C,x]=_.useState(p),[S,T]=_.useState(p);xm(()=>{m.current=!1,g.current=p;for(let A=0;A<S.length;A++){const k=Js(S[A]);h.includes(k)?(y.delete(k),v.current.delete(k)):y.get(k)!==!0&&y.set(k,!1)}},[S,h.length,h.join("-")]);const E=[];if(p!==C){let A=[...p];for(let k=0;k<S.length;k++){const $=S[k],j=Js($);h.includes(j)||(A.splice(k,0,$),E.push($))}return i==="wait"&&E.length&&(A=E),T(ip(A)),x(p),null}process.env.NODE_ENV!=="production"&&i==="wait"&&S.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:M}=_.useContext(Nc);return b.jsx(b.Fragment,{children:S.map(A=>{const k=Js(A),$=a&&!d?!1:p===S||h.includes(k),j=()=>{if(v.current.has(k))return;if(v.current.add(k),y.has(k))y.set(k,!0);else return;let w=!0;y.forEach(L=>{L||(w=!1)}),w&&(M==null||M(),T(g.current),a&&(f==null||f()),o&&o())};return b.jsx(SP,{isPresent:$,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:r,mode:i,root:u,onExitComplete:$?void 0:j,anchorX:l,anchorY:c,children:A},k)})})},Wg=_.createContext({strict:!1}),lp={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let cp=!1;function CP(){if(cp)return;const e={};for(const t in lp)e[t]={isEnabled:n=>lp[t].some(o=>!!n[o])};bg(e),cp=!0}function Ug(){return CP(),cT()}function TP(e){const t=Ug();for(const n in e)t[n]={...t[n],...e[n]};bg(t)}const PP=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ii(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||PP.has(e)}let Hg=e=>!Ii(e);function EP(e){typeof e=="function"&&(Hg=t=>t.startsWith("on")?!Ii(t):e(t))}try{EP(require("@emotion/is-prop-valid").default)}catch{}function MP(e,t,n){const o={};for(const r in e)r==="values"&&typeof e.values=="object"||(Hg(r)||n===!0&&Ii(r)||!t&&!Ii(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}const ca=_.createContext({});function OP(e,t){if(la(e)){const{initial:n,animate:o}=e;return{initial:n===!1||ys(n)?n:void 0,animate:ys(o)?o:void 0}}return e.inherit!==!1?t:{}}function kP(e){const{initial:t,animate:n}=OP(e,_.useContext(ca));return _.useMemo(()=>({initial:t,animate:n}),[up(t),up(n)])}function up(e){return Array.isArray(e)?e.join(" "):e}const uu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Yg(e,t,n){for(const o in t)!It(t[o])&&!Pg(o,n)&&(e[o]=t[o])}function DP({transformTemplate:e},t){return _.useMemo(()=>{const n=uu();return au(n,t,e),Object.assign({},n.vars,n.style)},[t])}function RP(e,t){const n=e.style||{},o={};return Yg(o,n,e),Object.assign(o,DP(e,t)),o}function IP(e,t){const n={},o=RP(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const qg=()=>({...uu(),attrs:{}});function AP(e,t,n,o){const r=_.useMemo(()=>{const i=qg();return Eg(i,t,Og(o),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Yg(i,e.style,e),r.style={...i,...r.style}}return r}const NP=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function du(e){return typeof e!="string"||e.includes("-")?!1:!!(NP.indexOf(e)>-1||/[A-Z]/u.test(e))}function _P(e,t,n,{latestValues:o},r,i=!1,a){const c=(a??du(e)?AP:IP)(t,o,r,e),u=MP(t,typeof e=="string",i),d=e!==_.Fragment?{...u,...c,ref:n}:{},{children:f}=t,p=_.useMemo(()=>It(f)?f.get():f,[f]);return _.createElement(e,{...d,children:p})}function jP({scrapeMotionValuesFromProps:e,createRenderState:t},n,o,r){return{latestValues:LP(n,o,r,e),renderState:t()}}function LP(e,t,n,o){const r={},i=o(e,{});for(const p in i)r[p]=yi(i[p]);let{initial:a,animate:l}=e;const c=la(e),u=yg(e);t&&u&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const f=d?l:a;if(f&&typeof f!="boolean"&&!aa(f)){const p=Array.isArray(f)?f:[f];for(let h=0;h<p.length;h++){const m=eu(e,p[h]);if(m){const{transitionEnd:g,transition:y,...v}=m;for(const C in v){let x=v[C];if(Array.isArray(x)){const S=d?x.length-1:0;x=x[S]}x!==null&&(r[C]=x)}for(const C in g)r[C]=g[C]}}}return r}const Gg=e=>(t,n)=>{const o=_.useContext(ca),r=_.useContext(ia),i=()=>jP(e,t,o,r);return n?i():_c(i)},$P=Gg({scrapeMotionValuesFromProps:lu,createRenderState:uu}),VP=Gg({scrapeMotionValuesFromProps:kg,createRenderState:qg}),FP=Symbol.for("motionComponentSymbol");function BP(e,t,n){const o=_.useRef(n);_.useInsertionEffect(()=>{o.current=n});const r=_.useRef(null);return _.useCallback(i=>{var l;i&&((l=e.onMount)==null||l.call(e,i)),t&&(i?t.mount(i):t.unmount());const a=o.current;if(typeof a=="function")if(i){const c=a(i);typeof c=="function"&&(r.current=c)}else r.current?(r.current(),r.current=null):a(i);else a&&(a.current=i)},[t])}const Kg=_.createContext({});function Gr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function zP(e,t,n,o,r,i){var x,S;const{visualElement:a}=_.useContext(ca),l=_.useContext(Wg),c=_.useContext(ia),u=_.useContext(cu),d=u.reducedMotion,f=u.skipAnimations,p=_.useRef(null),h=_.useRef(!1);o=o||l.renderer,!p.current&&o&&(p.current=o(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d,skipAnimations:f,isSVG:i}),h.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));const m=p.current,g=_.useContext(Kg);m&&!m.projection&&r&&(m.type==="html"||m.type==="svg")&&WP(p.current,n,r,g);const y=_.useRef(!1);_.useInsertionEffect(()=>{m&&y.current&&m.update(n,c)});const v=n[og],C=_.useRef(!!v&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,v))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,v)));return xm(()=>{h.current=!0,m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),C.current&&m.animationState&&m.animationState.animateChanges())}),_.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)==null||T.call(window,v)}),C.current=!1),m.enteringChildren=void 0)}),m}function WP(e,t,n,o){const{layoutId:r,layout:i,drag:a,dragConstraints:l,layoutScroll:c,layoutRoot:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Zg(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!a||l&&Gr(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:o,crossfade:d,layoutScroll:c,layoutRoot:u})}function Zg(e){if(e)return e.options.allowProjection!==!1?e.projection:Zg(e.parent)}function il(e,{forwardMotionProps:t=!1,type:n}={},o,r){o&&TP(o);const i=n?n==="svg":du(e),a=i?VP:$P;function l(u,d){let f;const p={..._.useContext(cu),...u,layoutId:UP(u)},{isStatic:h}=p,m=kP(u),g=a(u,h);if(!h&&vm){HP(p,o);const y=YP(p);f=y.MeasureLayout,m.visualElement=zP(e,g,p,r,y.ProjectionNode,i)}return b.jsxs(ca.Provider,{value:m,children:[f&&m.visualElement?b.jsx(f,{visualElement:m.visualElement,...p}):null,_P(e,u,BP(g,m.visualElement,d),g,h,t,i)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=_.forwardRef(l);return c[FP]=e,c}function UP({layoutId:e}){const t=_.useContext(Nc).id;return t&&e!==void 0?t+"-"+e:e}function HP(e,t){const n=_.useContext(Wg).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const o="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Cr(!1,o,"lazy-strict-mode"):Ln(!1,o,"lazy-strict-mode")}}function YP(e){const t=Ug(),{drag:n,layout:o}=t;if(!n&&!o)return{};const r={...n,...o};return{MeasureLayout:n!=null&&n.isEnabled(e)||o!=null&&o.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function qP(e,t){if(typeof Proxy>"u")return il;const n=new Map,o=(i,a)=>il(i,a,e,t),r=(i,a)=>(process.env.NODE_ENV!=="production"&&Fc(!1,"motion() is deprecated. Use motion.create() instead."),o(i,a));return new Proxy(r,{get:(i,a)=>a==="create"?o:(n.has(a)||n.set(a,il(a,void 0,e,t)),n.get(a))})}const GP=(e,t)=>t.isSVG??du(e)?new ET(t):new xT(t,{allowProjection:e!==_.Fragment});class KP extends io{constructor(t){super(t),t.animationState||(t.animationState=RT(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();aa(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let ZP=0;class XP extends io{constructor(){super(...arguments),this.id=ZP++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const QP={animation:{Feature:KP},exit:{Feature:XP}};function As(e){return{point:{x:e.pageX,y:e.pageY}}}const JP=e=>t=>ru(t)&&e(t,As(t));function ss(e,t,n,o){return bs(e,t,JP(n),o)}const Xg=({current:e})=>e?e.ownerDocument.defaultView:null,dp=(e,t)=>Math.abs(e-t);function eE(e,t){const n=dp(e.x,t.x),o=dp(e.y,t.y);return Math.sqrt(n**2+o**2)}const fp=new Set(["auto","scroll"]);class Qg{constructor(t,n,{transformPagePoint:o,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=h=>{this.handleScroll(h.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=ll(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=eE(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!g)return;const{point:y}=h,{timestamp:v}=Ot;this.history.push({...y,timestamp:v});const{onStart:C,onMove:x}=this.handlers;m||(C&&C(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=al(m,this.transformPagePoint),et.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:g,onSessionEnd:y,resumeAnimation:v}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=ll(h.type==="pointercancel"?this.lastMoveEventInfo:al(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,C),y&&y(h,C)},!ru(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=o,this.distanceThreshold=a,this.contextWindow=r||window;const c=As(t),u=al(c,this.transformPagePoint),{point:d}=u,{timestamp:f}=Ot;this.history=[{...d,timestamp:f}];const{onSessionStart:p}=n;p&&p(t,ll(u,this.history)),this.removeListeners=Ds(ss(this.contextWindow,"pointermove",this.handlePointerMove),ss(this.contextWindow,"pointerup",this.handlePointerUp),ss(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(t){let n=t.parentElement;for(;n;){const o=getComputedStyle(n);(fp.has(o.overflowX)||fp.has(o.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const o=t===window,r=o?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:r.x-n.x,y:r.y-n.y};i.x===0&&i.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,r),et.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eo(this.updatePoint)}}function al(e,t){return t?{point:t(e.point)}:e}function pp(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ll({point:e},t){return{point:e,delta:pp(e,Jg(t)),offset:pp(e,tE(t)),velocity:nE(t,.1)}}function tE(e){return e[0]}function Jg(e){return e[e.length-1]}function nE(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const r=Jg(e);for(;n>=0&&(o=e[n],!(r.timestamp-o.timestamp>Sn(t)));)n--;if(!o)return{x:0,y:0};const i=Jt(r.timestamp-o.timestamp);if(i===0)return{x:0,y:0};const a={x:(r.x-o.x)/i,y:(r.y-o.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function oE(e,{min:t,max:n},o){return t!==void 0&&e<t?e=o?ct(t,e,o.min):Math.max(e,t):n!==void 0&&e>n&&(e=o?ct(n,e,o.max):Math.min(e,n)),e}function hp(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function rE(e,{top:t,left:n,bottom:o,right:r}){return{x:hp(e.x,n,r),y:hp(e.y,t,o)}}function mp(e,t){let n=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,o]=[o,n]),{min:n,max:o}}function sE(e,t){return{x:mp(e.x,t.x),y:mp(e.y,t.y)}}function iE(e,t){let n=.5;const o=$t(e),r=$t(t);return r>o?n=hs(t.min,t.max-o,e.min):o>r&&(n=hs(e.min,e.max-r,t.min)),Pn(0,1,n)}function aE(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const rc=.35;function lE(e=rc){return e===!1?e=0:e===!0&&(e=rc),{x:gp(e,"left","right"),y:gp(e,"top","bottom")}}function gp(e,t,n){return{min:yp(e,t),max:yp(e,n)}}function yp(e,t){return typeof e=="number"?e:e[t]||0}const cE=new WeakMap;class uE{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=wt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:o}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{n?(this.stopAnimation(),this.snapToCursor(As(f).point)):this.pauseAnimation()},a=(f,p)=>{this.stopAnimation();const{drag:h,dragPropagation:m,onDragStart:g}=this.getProps();if(h&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=XC(h),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=p,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Zt(v=>{let C=this.getAxisMotionValue(v).get()||0;if(wn.test(C)){const{projection:x}=this.visualElement;if(x&&x.layout){const S=x.layout.layoutBox[v];S&&(C=$t(S)*(parseFloat(C)/100))}}this.originPoint[v]=C}),g&&et.postRender(()=>g(f,p)),Zl(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},l=(f,p)=>{this.latestPointerEvent=f,this.latestPanInfo=p;const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:g,onDrag:y}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=p;if(m&&this.currentDirection===null){this.currentDirection=dE(v),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",p.point,v),this.updateAxis("y",p.point,v),this.visualElement.render(),y&&y(f,p)},c=(f,p)=>{this.latestPointerEvent=f,this.latestPanInfo=p,this.stop(f,p),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Zt(f=>{var p;return this.getAnimationState(f)==="paused"&&((p=this.getAxisMotionValue(f).animation)==null?void 0:p.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Qg(t,{onSessionStart:i,onStart:a,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:o,contextWindow:Xg(this.visualElement),element:this.visualElement.current})}stop(t,n){const o=t||this.latestPointerEvent,r=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!o)return;const{velocity:a}=r;this.startAnimation(a);const{onDragEnd:l}=this.getProps();l&&et.postRender(()=>l(o,r))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,o){const{drag:r}=this.getProps();if(!o||!ei(t,r,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(a=oE(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,r=this.constraints;t&&Gr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=rE(o.layoutBox,t):this.constraints=!1,this.elastic=lE(n),r!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Zt(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=aE(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Gr(t))return!1;const o=t.current;Ln(o!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=hT(o,r.root,this.visualElement.getTransformPagePoint());let a=sE(r.layout.layoutBox,i);if(n){const l=n(dT(a));this.hasMutatedConstraints=!!l,l&&(a=xg(l))}return a}startAnimation(t){const{drag:n,dragMomentum:o,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=Zt(d=>{if(!ei(d,n,this.currentDirection))return;let f=c&&c[d]||{};a&&(f={min:0,max:0});const p=r?200:1e6,h=r?40:1e7,m={type:"inertia",velocity:o?t[d]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,m)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const o=this.getAxisMotionValue(t);return Zl(this.visualElement,t),o.start(Jc(t,o,0,n,this.visualElement,!1))}stopAnimation(){Zt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Zt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps(),r=o[n];return r||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){Zt(n=>{const{drag:o}=this.getProps();if(!ei(n,o,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(n);if(r&&r.layout){const{min:a,max:l}=r.layout.layoutBox[n],c=i.get()||0;i.set(t[n]-ct(a,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!Gr(n)||!o||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Zt(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();r[a]=iE({min:c,max:c},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),Zt(a=>{if(!ei(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:u}=this.constraints[a];l.set(ct(c,u,r[a]))})}addListeners(){if(!this.visualElement.current)return;cE.set(this.visualElement,this);const t=this.visualElement.current,n=ss(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),f=c.target,p=f!==t&&hg(f);u&&d&&!p&&this.start(c)}),o=()=>{const{dragConstraints:c}=this.getProps();Gr(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",o);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),et.read(o);const a=bs(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Zt(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=c[d].translate,f.set(f.get()+c[d].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:o=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=rc,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:o,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:l}}}function ei(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function dE(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class fE extends io{constructor(t){super(t),this.removeGroupControls=en,this.removeListeners=en,this.controls=new uE(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||en}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const bp=e=>(t,n)=>{e&&et.postRender(()=>e(t,n))};class pE extends io{constructor(){super(...arguments),this.removePointerDownListener=en}onPointerDown(t){this.session=new Qg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Xg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:o,onPanEnd:r}=this.node.getProps();return{onSessionStart:bp(t),onStart:bp(n),onMove:o,onEnd:(i,a)=>{delete this.session,r&&et.postRender(()=>r(i,a))}}}mount(){this.removePointerDownListener=ss(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let cl=!1;class hE extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o,layoutId:r}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),o&&o.register&&r&&o.register(i),cl&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),bi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:o,drag:r,isPresent:i}=this.props,{projection:a}=o;return a&&(a.isPresent=i,t.layoutDependency!==n&&a.setOptions({...a.options,layoutDependency:n}),cl=!0,r||t.layoutDependency!==n||n===void 0||t.isPresent!==i?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||et.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ou.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:r}=t;cl=!0,r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),o&&o.deregister&&o.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ey(e){const[t,n]=zg(),o=_.useContext(Nc);return b.jsx(hE,{...e,layoutGroup:o,switchLayoutGroup:_.useContext(Kg),isPresent:t,safeToRemove:n})}const mE={pan:{Feature:pE},drag:{Feature:fE,ProjectionNode:Bg,MeasureLayout:ey}};function vp(e,t,n){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,i=o[r];i&&et.postRender(()=>i(t,As(t)))}class gE extends io{mount(){const{current:t}=this.node;t&&(this.unmount=QC(t,(n,o)=>(vp(this.node,o,"Start"),r=>vp(this.node,r,"End"))))}unmount(){}}class yE extends io{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ds(bs(this.node.current,"focus",()=>this.onFocus()),bs(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function xp(e,t,n){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),i=o[r];i&&et.postRender(()=>i(t,As(t)))}class bE extends io{mount(){const{current:t}=this.node;t&&(this.unmount=tT(t,(n,o)=>(xp(this.node,o,"Start"),(r,{success:i})=>xp(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const sc=new WeakMap,ul=new WeakMap,vE=e=>{const t=sc.get(e.target);t&&t(e)},xE=e=>{e.forEach(vE)};function SE({root:e,...t}){const n=e||document;ul.has(n)||ul.set(n,{});const o=ul.get(n),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(xE,{root:e,...t})),o[r]}function wE(e,t,n){const o=SE(t);return sc.set(e,n),o.observe(e),()=>{sc.delete(e),o.unobserve(e)}}const CE={some:0,all:1};class TE extends io{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:o,amount:r="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:o,threshold:typeof r=="number"?r:CE[r]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),p=u?d:f;p&&p(c)};return wE(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(PE(t,n))&&this.startObserver()}unmount(){}}function PE({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const EE={inView:{Feature:TE},tap:{Feature:bE},focus:{Feature:yE},hover:{Feature:gE}},ME={layout:{ProjectionNode:Bg,MeasureLayout:ey}},OE={...QP,...EE,...mE,...ME},Zo=qP(OE,GP),Oo=15.5,dl=18,kE=Oo,ua=({fill:e="#FDFCFC",size:t=18,className:n})=>b.jsxs("svg",{width:t,height:t,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,style:{display:"block"},children:[b.jsx("path",{d:"M0.75 3.1875C0.75 1.84104 1.84104 0.75 3.1875 0.75L5.625 0.75V2.25H3.1875C2.66946 2.25 2.25 2.66946 2.25 3.1875V5.625H0.75L0.75 3.1875Z",fill:e}),b.jsx("path",{d:"M0.75 14.8125L0.75 12.375H2.25V14.8125C2.25 15.3305 2.66946 15.75 3.1875 15.75H5.625V17.25H3.1875C1.84104 17.25 0.75 16.159 0.75 14.8125Z",fill:e}),b.jsx("path",{d:"M15.75 14.8125V12.375H17.25V14.8125C17.25 16.159 16.159 17.25 14.8125 17.25H12.375V15.75H14.8125C15.3305 15.75 15.75 15.3305 15.75 14.8125Z",fill:e}),b.jsx("path",{d:"M15.75 3.1875C15.75 2.66946 15.3305 2.25 14.8125 2.25H12.375V0.75L14.8125 0.75C16.159 0.75 17.25 1.84104 17.25 3.1875V5.625H15.75V3.1875Z",fill:e}),b.jsx("path",{d:"M10.8889 10.5C11.6372 10.5 12.3895 10.6845 12.991 11.053L12.9902 11.0537C13.3468 11.2719 13.6565 11.5584 13.8684 11.9092L14.5298 13.0049L13.2451 13.7798L12.5845 12.6841C12.5191 12.576 12.3992 12.4499 12.2073 12.3325C11.8787 12.1312 11.4076 12 10.8889 12H7.11108C6.59216 12 6.1214 12.1305 5.79199 12.3318L5.79272 12.3325C5.64854 12.4207 5.54509 12.5138 5.47485 12.6006L5.41553 12.6841L4.75488 13.7798L3.47021 13.0049L4.13086 11.9092C4.34281 11.5583 4.6531 11.2712 5.00977 11.053C5.6104 10.6859 6.36112 10.5 7.11108 10.5H10.8889Z",fill:e}),b.jsx("path",{d:"M10.5 6.75C10.5 5.92157 9.82843 5.25 9 5.25C8.17157 5.25 7.5 5.92157 7.5 6.75C7.5 7.57843 8.17157 8.25 9 8.25C9.82843 8.25 10.5 7.57843 10.5 6.75ZM12 6.75C12 8.40685 10.6569 9.75 9 9.75C7.34315 9.75 6 8.40685 6 6.75C6 5.09315 7.34315 3.75 9 3.75C10.6569 3.75 12 5.09315 12 6.75Z",fill:e})]});ua.displayName="FacialIcon";const da=({fill:e="#FDFCFC",size:t=18,className:n})=>b.jsx("svg",{width:t,height:t,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,style:{display:"block"},children:b.jsx("path",{d:"M2.25 14.8125C2.25 15.3305 2.66946 15.75 3.1875 15.75H5.625V17.25H3.1875C1.84104 17.25 0.75 16.159 0.75 14.8125L0.75 12.375H2.25V14.8125ZM17.25 14.8125C17.25 16.159 16.159 17.25 14.8125 17.25H12.375L12.375 15.75H14.8125C15.3305 15.75 15.75 15.3305 15.75 14.8125V12.375L17.25 12.375V14.8125ZM14.135 6.35229C14.2958 6.19142 14.5379 6.14314 14.748 6.22998C14.9583 6.31702 15.0959 6.52245 15.0959 6.75V10.5015C15.0959 10.812 14.8439 11.0638 14.5334 11.064C14.2228 11.0639 13.9709 10.8121 13.9709 10.5015V8.10571C13.7502 8.30415 13.4107 8.29824 13.1982 8.08594C12.9785 7.86637 12.9787 7.51027 13.1982 7.29053L14.135 6.35229ZM11.3298 6.19336C11.5137 6.21969 11.6748 6.33566 11.7568 6.5061C11.8505 6.70099 11.8245 6.93272 11.6895 7.10156L9.42041 9.9375H11.25C11.5607 9.9375 11.8125 10.1893 11.8125 10.5C11.8125 10.8107 11.5607 11.0625 11.25 11.0625H8.25C8.03386 11.0625 7.83688 10.9386 7.74316 10.7439C7.6495 10.549 7.67547 10.3173 7.81055 10.1484L10.0796 7.3125L8.25 7.3125C7.93934 7.3125 7.6875 7.06066 7.6875 6.75C7.6875 6.43934 7.93934 6.1875 8.25 6.1875L11.25 6.1875L11.3298 6.19336ZM5.25 6.19482C5.45567 6.22809 5.62952 6.37352 5.69531 6.57642L6.9104 10.3264C7.00614 10.6219 6.84405 10.9396 6.54858 11.0354C6.25308 11.1311 5.93539 10.9691 5.8396 10.6736L5.72241 10.3125H3.65259L3.5354 10.6736C3.43961 10.9691 3.12192 11.1311 2.82642 11.0354C2.53095 10.9396 2.36886 10.6219 2.4646 10.3264L2.68579 9.6416C2.69424 9.59828 2.7083 9.55696 2.72607 9.51782L3.67969 6.57642L3.71411 6.49365C3.80908 6.30792 4.00155 6.1875 4.21509 6.1875H5.15991L5.25 6.19482ZM4.0166 9.1875H5.3584L4.75122 7.3125H4.62378L4.0166 9.1875ZM5.625 2.25H3.1875C2.66946 2.25 2.25 2.66946 2.25 3.1875V5.625H0.75L0.75 3.1875C0.75 1.84104 1.84104 0.75 3.1875 0.75L5.625 0.75V2.25ZM14.8125 0.75C16.159 0.75 17.25 1.84104 17.25 3.1875V5.625H15.75V3.1875C15.75 2.66946 15.3305 2.25 14.8125 2.25H12.375V0.75L14.8125 0.75Z",fill:e})});da.displayName="LPRIcon";const Ns="Facial",_s="LPR",DE=[Ns,_s];function RE(e,t){return e===Ns?b.jsx(ua,{fill:t,size:16}):e===_s?b.jsx(da,{fill:t,size:16}):null}function IE(e,t=18,n){return e===Ns?b.jsx(ua,{fill:n,size:t}):e===_s?b.jsx(da,{fill:n,size:t}):null}function AE(e,t){if(!e||!Array.isArray(e)||e.length===0)return;const n={};return e.forEach(o=>{const r=o.algorithm;r&&DE.includes(r)&&(n[r]=(n[r]||0)+1)}),Object.entries(n).map(([o,r])=>({count:r,icon:RE(o,t)}))}const NE="_spotWrapper_p7ng0_1",_E="_mapSpot_p7ng0_8",jE="_selected_p7ng0_24",LE="_rotationLines_p7ng0_36",$E="_rotationLine_p7ng0_36",VE="_rotationLineInner_p7ng0_56",FE="_rotationConeSvg_p7ng0_63",BE="_rotationLineSvg_p7ng0_77",zE="_cameraButtonAtTip_p7ng0_89",WE="_cameraButtonSelected_p7ng0_107",UE="_cameraButtonAtTipIcon_p7ng0_129",HE="_count_p7ng0_137",YE="_cameraTypesContainer_p7ng0_157",qE="_cameraTypeItem_p7ng0_164",GE="_cameraTypeCount_p7ng0_171",KE="_cameraTypeIcon_p7ng0_182",Rt={spotWrapper:NE,mapSpot:_E,selected:jE,rotationLines:LE,rotationLine:$E,rotationLineInner:VE,rotationConeSvg:FE,rotationLineSvg:BE,cameraButtonAtTip:zE,cameraButtonSelected:WE,cameraButtonAtTipIcon:UE,count:HE,cameraTypesContainer:YE,cameraTypeItem:qE,cameraTypeCount:GE,cameraTypeIcon:KE},ty=({fill:e="#FAF9F9",className:t})=>b.jsxs("svg",{width:"12",height:"104",viewBox:"0 0 12 104",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[b.jsx("path",{d:"M6.27344 0.75C6.27344 0.335786 5.93765 1.81059e-08 5.52344 0C5.10922 -1.81059e-08 4.77344 0.335786 4.77344 0.75L5.52344 0.75L6.27344 0.75ZM4.99311 50.7803C5.286 51.0732 5.76087 51.0732 6.05377 50.7803L10.8267 46.0074C11.1196 45.7145 11.1196 45.2396 10.8267 44.9467C10.5338 44.6538 10.059 44.6538 9.76608 44.9467L5.52344 49.1893L1.2808 44.9467C0.987902 44.6538 0.513028 44.6538 0.220135 44.9467C-0.0727587 45.2396 -0.0727587 45.7145 0.220135 46.0074L4.99311 50.7803ZM5.52344 0.75L4.77344 0.75L4.77344 50.25L5.52344 50.25L6.27344 50.25L6.27344 0.75L5.52344 0.75Z",fill:e}),b.jsx("path",{d:"M6.27344 53.25C6.27344 52.8358 5.93765 52.5 5.52344 52.5C5.10922 52.5 4.77344 52.8358 4.77344 53.25L5.52344 53.25L6.27344 53.25ZM4.99311 103.28C5.286 103.573 5.76087 103.573 6.05377 103.28L10.8267 98.5074C11.1196 98.2145 11.1196 97.7396 10.8267 97.4467C10.5338 97.1538 10.059 97.1538 9.76608 97.4467L5.52344 101.689L1.2808 97.4467C0.987902 97.1538 0.513028 97.1538 0.220135 97.4467C-0.0727587 97.7396 -0.0727587 98.2145 0.220135 98.5074L4.99311 103.28ZM5.52344 53.25L4.77344 53.25L4.77344 102.75L5.52344 102.75L6.27344 102.75L6.27344 53.25L5.52344 53.25Z",fill:e})]});ty.displayName="ArrowIcon";const ny=({fill:e="#CEE643",className:t})=>{const n=`coneGradient-${Math.random().toString(36).substr(2,9)}`;return b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"62",height:"122",viewBox:"0 0 62 122",fill:"none",className:t,children:[b.jsx("defs",{children:b.jsxs("linearGradient",{id:n,x1:"31",y1:"122",x2:"31",y2:"0",gradientUnits:"userSpaceOnUse",children:[b.jsx("stop",{offset:"0",stopColor:e,stopOpacity:"0.02"}),b.jsx("stop",{offset:"0.5",stopColor:e,stopOpacity:"0.35"}),b.jsx("stop",{offset:"1",stopColor:e,stopOpacity:"0.7"})]})}),b.jsx("path",{d:"M32 -1.31134e-06L62 103.5C62 103.5 52.0001 121 31 121.5C9.99993 122 -7.09431e-07 103.5 -7.09431e-07 103.5L30 -1.39876e-06L32 -1.31134e-06Z",fill:`url(#${n})`})]})};ny.displayName="ConeIcon";const ZE=Zo(q.Box),fu=({count:e,addressText:t,cameras:n,currentZoom:o=13,isSelected:r,selectedCameraId:i,isHighlighted:a,highlightedCameraId:l,disableClick:c=!1,className:u,onClick:d,onCameraClick:f,sx:p})=>{const m=q.useTheme().palette.mode==="dark",g=m?"#101111":"#FDFCFC",y=_.useMemo(()=>AE(n,g),[n,g]),v=y&&y.length>0,C=n&&n.length===1,x=!r&&v&&(C||o>=Oo),S=m?"var(--Surface-Inverse-Surface, #C7C6C6)":"var(--Surface-Inverse-Surface, #3B3B3C)",T=m?"var(--Tertiary-Tertiary, #CEE643)":"var(--Tertiary-Tertiary, #44808C)",E=r||a?T:S,M=m?"#101111":"#ffffff",A=m?"#CEE643":"#44808C",k=8,$=n??[],j=r&&$.length>0;return b.jsxs("div",{className:Rt.spotWrapper,"data-theme":m?"dark":"light",children:[b.jsx(ap,{children:j&&b.jsx(Zo.div,{className:Rt.rotationLines,"aria-hidden":!0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeOut"},children:$.map((w,L)=>{const D=i===w.id||l===w.id,I=m?"#101111":"#FDFCFC";return b.jsx("div",{className:Rt.rotationLine,style:{transform:`translate(-50%, -100%) rotate(${w.orientation??0}deg)`},children:b.jsxs(Zo.div,{className:Rt.rotationLineInner,style:{transformOrigin:"center bottom"},initial:{scaleY:0},animate:{scaleY:1},exit:{scaleY:0},transition:{duration:.5,ease:[.34,1.56,.64,1],delay:L*.08},children:[b.jsx(ny,{fill:A,className:Rt.rotationConeSvg}),b.jsx(ty,{fill:M,className:Rt.rotationLineSvg}),b.jsx("button",{type:"button",className:`${Rt.cameraButtonAtTip} ${D?Rt.cameraButtonSelected:""}`,onClick:O=>{O.stopPropagation(),f==null||f(w)},"aria-label":`Câmera ${w.algorithm??"câmera"}`,children:b.jsx("span",{className:Rt.cameraButtonAtTipIcon,style:{transform:`rotate(${0-(w.orientation??0)}deg)`},children:IE(w.algorithm,18,I)})})]})},w.id??L)})})}),b.jsx(ZE,{className:`${Rt.mapSpot} ${r?Rt.selected:""} ${u||""}`,onClick:c?void 0:d,sx:{...p,position:"relative",overflow:"visible","&::after":{content:'""',position:"absolute",bottom:0,left:"50%",transform:"translate(-50%, 100%)",width:0,height:0,borderLeft:`${k}px solid transparent`,borderRight:`${k}px solid transparent`,borderTop:`${k}px solid var(--arrow-color)`,filter:"drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.2))",opacity:"var(--arrow-opacity)",zIndex:1,pointerEvents:"none"}},initial:!1,style:{"--arrow-color":a?T:S,"--arrow-opacity":x?1:0,backgroundColor:E},animate:{width:x?"auto":r?34:30,height:x?"auto":r?28:30,borderRadius:"100px",backgroundColor:E,padding:x?"4px 8px":0,y:x?-k:0,"--arrow-opacity":x?1:0},transition:{duration:.2,ease:"easeInOut"},children:b.jsx(ap,{mode:"wait",children:x?b.jsx(Zo.div,{className:Rt.cameraTypesContainer,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2,ease:"easeInOut"},children:y.map((w,L)=>b.jsxs(Zo.div,{className:Rt.cameraTypeItem,initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{duration:.2,delay:L*.05},children:[b.jsx(q.Typography,{className:Rt.cameraTypeCount,children:w.count}),w.icon&&b.jsx(q.Box,{className:Rt.cameraTypeIcon,children:w.icon})]},L))},"expanded"):b.jsx(Zo.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2,ease:"easeInOut"},children:b.jsx(q.Typography,{className:Rt.count,children:e})},"collapsed")})})]})};fu.displayName="MapSpot";const XE="_cameraCard_t76lu_2",QE="_selected_t76lu_14",JE="_topContainer_t76lu_82",eM="_mediaImage_t76lu_96",tM="_mediaPlaceholder_t76lu_103",nM="_menuButton_t76lu_109",oM="_menuButtonIcon_t76lu_128",rM="_closeButton_t76lu_134",sM="_closeButtonIcon_t76lu_153",iM="_bottomContainer_t76lu_159",aM="_infoRow_t76lu_172",lM="_iconWrapper_t76lu_180",cM="_cameraIcon_t76lu_186",uM="_cameraTypeImage_t76lu_193",dM="_headerText_t76lu_201",fM="_subheadText_t76lu_211",pM="_streetText_t76lu_221",hM="_supportText_t76lu_222",mM="_tagsContainer_t76lu_232",gM="_tag_t76lu_232",yM="_tagOverflow_t76lu_248",bM="_recordingButtonContainer_t76lu_271",vM="_menuButtonInline_t76lu_280",xM="_menuButtonInlineIcon_t76lu_299",SM="_recordingButton_t76lu_271",wM="_recordingButtonIcon_t76lu_330",CM="_recordingButtonText_t76lu_333",TM="_cameraCardMenuPaper_t76lu_364",PM="_cameraCardMenuList_t76lu_388",EM="_cameraCardMenuItem_t76lu_396",MM="_cameraCardMenuItemText_t76lu_435",je={cameraCard:XE,selected:QE,topContainer:JE,mediaImage:eM,mediaPlaceholder:tM,menuButton:nM,menuButtonIcon:oM,closeButton:rM,closeButtonIcon:sM,bottomContainer:iM,infoRow:aM,iconWrapper:lM,cameraIcon:cM,cameraTypeImage:uM,headerText:dM,subheadText:fM,streetText:pM,supportText:hM,tagsContainer:mM,tag:gM,tagOverflow:yM,recordingButtonContainer:bM,menuButtonInline:vM,menuButtonInlineIcon:xM,recordingButton:SM,recordingButtonIcon:wM,recordingButtonText:CM,cameraCardMenuPaper:TM,cameraCardMenuList:PM,cameraCardMenuItem:EM,cameraCardMenuItemText:MM};function OM(e,t){const n=t?"#FAF9F9":"#000000";return e===Ns?b.jsx(ua,{fill:n,size:20,className:je.cameraTypeImage}):e===_s?b.jsx(da,{fill:n,size:20,className:je.cameraTypeImage}):b.jsx(kt.VideocamOutlined,{className:je.cameraIcon,style:{color:n}})}const kM=({cameraName:e,streetName:t,pointName:n,neighborhoodAndCity:o,tags:r=[],imageUrl:i,algorithm:a,menuItems:l,onMenuClick:c,className:u,recordingButton:d,onClose:f,selected:p})=>{const m=ae.useTheme().palette.mode==="dark",g=o??"",y=n??"",v=_.useRef(null),[C,x]=_.useState(!1),S=((l==null?void 0:l.length)??0)>0||c,T=((l==null?void 0:l.length)??0)>0,E=r.length>0?r[0]:null,M=r.length>1?r.length-1:0,A=r.length>1?r.join(", "):"";return b.jsxs(q.Box,{className:`${je.cameraCard} ${p?je.selected:""} ${u||""}`.trim(),"data-theme":m?"dark":"light",sx:{"&:hover":{borderColor:"var(--CameraCard-Hover-Border)"},"&:hover .bottom-container":{backgroundColor:"var(--CameraCard-Surface-Hover)"}},children:[b.jsxs(q.Box,{className:je.topContainer,children:[i?b.jsx("img",{src:i,alt:"",className:je.mediaImage}):b.jsx(q.Box,{className:je.mediaPlaceholder,"aria-hidden":!0}),!d&&E&&b.jsx(q.Tooltip,{title:A,placement:"top",enterDelay:300,disableHoverListener:r.length<=1,children:b.jsxs(q.Box,{className:je.tagsContainer,component:"span",tabIndex:0,role:"group","aria-label":"Tags da câmera",children:[b.jsx("span",{className:je.tag,children:E}),M>0&&b.jsxs("span",{className:je.tagOverflow,children:["+",M]})]})}),d&&f&&b.jsx(q.IconButton,{onClick:f,className:je.closeButton,"aria-label":"Fechar",size:"small",children:b.jsx(kt.Close,{className:je.closeButtonIcon})}),S&&!d&&b.jsx(q.IconButton,{ref:v,onClick:()=>{T?x(!0):c==null||c()},className:je.menuButton,"aria-label":"Opções","aria-haspopup":T?"menu":void 0,"aria-expanded":C,size:"small",children:b.jsx(kt.MoreHoriz,{className:je.menuButtonIcon})})]}),T&&b.jsx(q.Popover,{open:C,anchorEl:v.current,onClose:()=>x(!1),anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{elevation:0,sx:{padding:0,background:"transparent",marginLeft:2}}},children:b.jsx(q.Box,{className:je.cameraCardMenuPaper,"data-theme":m?"dark":"light",children:b.jsx(q.Box,{className:je.cameraCardMenuList,role:"menu",children:l.map(k=>b.jsx("button",{type:"button",className:je.cameraCardMenuItem,role:"menuitem",onClick:()=>{var $;($=k.onClick)==null||$.call(k),x(!1)},children:b.jsx("span",{className:je.cameraCardMenuItemText,children:k.label})},k.label))})})}),b.jsxs(q.Box,{className:`${je.bottomContainer} bottom-container`,children:[b.jsxs(q.Box,{className:je.infoRow,children:[b.jsx(q.Box,{className:je.iconWrapper,children:OM(a,m)}),b.jsx("span",{className:je.headerText,children:e})]}),y&&b.jsx("span",{className:je.subheadText,children:y}),b.jsx("span",{className:je.streetText,children:t}),g&&b.jsx("span",{className:je.supportText,children:g}),d&&b.jsxs(q.Box,{className:je.recordingButtonContainer,children:[S&&b.jsx(q.IconButton,{ref:v,onClick:()=>{T?x(!0):c==null||c()},className:je.menuButtonInline,"aria-label":"Opções","aria-haspopup":T?"menu":void 0,"aria-expanded":C,size:"small",children:b.jsx(kt.MoreHoriz,{className:je.menuButtonInlineIcon})}),b.jsxs("button",{type:"button",className:je.recordingButton,onClick:k=>{k.stopPropagation(),d.onClick?d.onClick():window.location.href=`/camera/${d.cameraId}`},"aria-label":"Ver gravação",children:[b.jsx(kt.VideocamOutlined,{className:je.recordingButtonIcon}),b.jsx("span",{className:je.recordingButtonText,children:"Ver gravação"})]})]})]})]})},DM=(e,t=1,n=13)=>()=>{if(!e)return;const o=e.getZoom()??n;e.setZoom(o+t)},RM=(e,t=1,n=1,o=13)=>()=>{if(!e)return;const r=e.getZoom()??o;e.setZoom(Math.max(n,r-t))},IM="_container_1whpg_2",AM="_zoomButton_1whpg_10",NM="_stateLayer_1whpg_43",_M="_icon_1whpg_59",yn={container:IM,zoomButton:AM,stateLayer:NM,icon:_M},jM=({map:e,className:t,sx:n,zoomIncrement:o=1,minZoom:r=1,fallbackZoom:i=13,onFullscreen:a})=>{const c=q.useTheme().palette.mode==="dark",u=DM(e,o,i),d=RM(e,o,r,i),f={backgroundColor:c?"#DEDDDD":"#101111","&:hover":{backgroundColor:c?"#DEDDDD":"#101111",opacity:.9}},p={fill:c?"#101111":"#FDFCFC",color:c?"#101111":"#FDFCFC"};return b.jsxs(q.Box,{className:`${yn.container} ${t||""}`,sx:n,children:[b.jsx(q.IconButton,{className:yn.zoomButton,onClick:u,"aria-label":"Zoom in",sx:f,children:b.jsx(q.Box,{className:yn.stateLayer,children:b.jsx(kt.Add,{className:yn.icon,sx:p})})}),b.jsx(q.IconButton,{className:yn.zoomButton,onClick:d,"aria-label":"Zoom out",sx:f,children:b.jsx(q.Box,{className:yn.stateLayer,children:b.jsx(kt.Remove,{className:yn.icon,sx:p})})}),b.jsx(q.IconButton,{className:yn.zoomButton,onClick:a,"aria-label":"Fullscreen",sx:f,children:b.jsx(q.Box,{className:yn.stateLayer,children:b.jsx(kt.ZoomOutMap,{className:yn.icon,sx:p})})})]})};var LM=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var o,r,i;if(Array.isArray(t)){if(o=t.length,o!=n.length)return!1;for(r=o;r--!==0;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),o=i.length,o!==Object.keys(n).length)return!1;for(r=o;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;r--!==0;){var a=i[r];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n};const $M=oo(LM),VM="1.7.1";function hr(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function ic(e,t,n,o){function r(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{u(o.next(d))}catch(f){a(f)}}function c(d){try{u(o.throw(d))}catch(f){a(f)}}function u(d){d.done?i(d.value):r(d.value).then(l,c)}u((o=o.apply(e,[])).next())})}const In={NOT_LOADED:"NOT_LOADED",LOADING:"LOADING",LOADED:"LOADED",FAILED:"FAILED",AUTH_FAILURE:"AUTH_FAILURE"},FM="https://maps.googleapis.com/maps/api/js";class Ai{static load(t,n){return ic(this,void 0,void 0,function*(){var o,r;const i=t.libraries?t.libraries.split(","):[],a=this.serializeParams(t);this.listeners.push(n),!((r=(o=window.google)===null||o===void 0?void 0:o.maps)===null||r===void 0)&&r.importLibrary?(this.serializedApiParams||(this.loadingStatus=In.LOADED),this.notifyLoadingStatusListeners()):(this.serializedApiParams=a,this.initImportLibrary(t)),this.serializedApiParams&&this.serializedApiParams!==a&&console.warn("[google-maps-api-loader] The maps API has already been loaded with different parameters and will not be loaded again. Refresh the page for new values to have effect.");const l=["maps",...i];yield Promise.all(l.map(c=>google.maps.importLibrary(c)))})}static serializeParams(t){return[t.v,t.key,t.language,t.region,t.authReferrerPolicy,t.solutionChannel].join("/")}static initImportLibrary(t){if(window.google||(window.google={}),window.google.maps||(window.google.maps={}),window.google.maps.importLibrary){console.error("[google-maps-api-loader-internal]: initImportLibrary must only be called once");return}let n=null;const o=()=>n||(n=new Promise((r,i)=>{var a;const l=document.createElement("script"),c=new URLSearchParams;for(const[u,d]of Object.entries(t)){const f=u.replace(/[A-Z]/g,p=>"_"+p[0].toLowerCase());c.set(f,String(d))}c.set("loading","async"),c.set("callback","__googleMapsCallback__"),l.async=!0,l.src=FM+"?"+c.toString(),l.nonce=((a=document.querySelector("script[nonce]"))===null||a===void 0?void 0:a.nonce)||"",l.onerror=()=>{this.loadingStatus=In.FAILED,this.notifyLoadingStatusListeners(),i(new Error("The Google Maps JavaScript API could not load."))},window.__googleMapsCallback__=()=>{this.loadingStatus=In.LOADED,this.notifyLoadingStatusListeners(),r()},window.gm_authFailure=()=>{this.loadingStatus=In.AUTH_FAILURE,this.notifyLoadingStatusListeners()},this.loadingStatus=In.LOADING,this.notifyLoadingStatusListeners(),document.head.append(l)}),n);google.maps.importLibrary=r=>o().then(()=>google.maps.importLibrary(r))}static notifyLoadingStatusListeners(){for(const t of this.listeners)t(this.loadingStatus)}}Ai.loadingStatus=In.NOT_LOADED;Ai.listeners=[];const BM="GMP_visgl_rgmlibrary_v1_default",zM=[`gmp_visgl_reactgooglemaps_v${VM}`],js=_.createContext(null);function WM(){const[e,t]=_.useState({});return{mapInstances:e,addMapInstance:(i,a="default")=>{t(l=>Object.assign(Object.assign({},l),{[a]:i}))},removeMapInstance:(i="default")=>{t(a=>{var l=i;a[l];var c=hr(a,[typeof l=="symbol"?l:l+""]);return c})},clearMapInstances:()=>{t({})}}}function UM(e){const{onLoad:t,onError:n,apiKey:o,version:r,libraries:i=[]}=e,a=hr(e,["onLoad","onError","apiKey","version","libraries"]),[l,c]=_.useState(Ai.loadingStatus),[u,d]=_.useReducer((m,g)=>m[g.name]?m:Object.assign(Object.assign({},m),{[g.name]:g.value}),{}),f=_.useMemo(()=>i==null?void 0:i.join(","),[i]),p=_.useMemo(()=>JSON.stringify(Object.assign({apiKey:o,version:r},a)),[o,r,a]),h=_.useCallback(m=>ic(this,void 0,void 0,function*(){var g;if(u[m])return u[m];if(!(!((g=google==null?void 0:google.maps)===null||g===void 0)&&g.importLibrary))throw new Error("[api-provider-internal] importLibrary was called before google.maps.importLibrary was defined.");const y=yield window.google.maps.importLibrary(m);return d({name:m,value:y}),y}),[u]);return _.useEffect(()=>{ic(this,void 0,void 0,function*(){try{const m=Object.assign({key:o},a);r&&(m.v=r),(f==null?void 0:f.length)>0&&(m.libraries=f),(m.channel===void 0||m.channel<0||m.channel>999)&&delete m.channel,m.solutionChannel===void 0?m.solutionChannel=BM:m.solutionChannel===""&&delete m.solutionChannel,yield Ai.load(m,g=>c(g));for(const g of["core","maps",...i])yield h(g);t&&t()}catch(m){n?n(m):console.error("<ApiProvider> failed to load the Google Maps JavaScript API",m)}})},[o,f,p]),{status:l,loadedLibraries:u,importLibrary:h}}function HM(e){return _.useMemo(()=>e.disableUsageAttribution?null:zM,[e.disableUsageAttribution])}const YM=e=>{const{children:t}=e,n=hr(e,["children"]),{mapInstances:o,addMapInstance:r,removeMapInstance:i,clearMapInstances:a}=WM(),{status:l,loadedLibraries:c,importLibrary:u}=UM(n),d=HM(n),f=_.useMemo(()=>({mapInstances:o,addMapInstance:r,removeMapInstance:i,clearMapInstances:a,status:l,loadedLibraries:c,importLibrary:u,internalUsageAttributionIds:d}),[o,r,i,a,l,c,u,d]);return _.createElement(js.Provider,{value:f},t)};function qM(e,t){for(const n of XM){const o=t[n],r=oy[n];_.useEffect(()=>{if(!e||!o)return;const i=google.maps.event.addListener(e,r,a=>{o(GM(r,e,a))});return()=>i.remove()},[e,r,o])}}function GM(e,t,n){var o;const r={type:e,map:t,detail:{},stoppable:!1,stop:()=>{}};if(KM.includes(e)){const i=r,a=t.getCenter(),l=t.getZoom(),c=t.getHeading()||0,u=t.getTilt()||0,d=t.getBounds();return(!a||!d||!Number.isFinite(l))&&console.warn("[createEvent] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at https://github.com/visgl/react-google-maps/issues/new"),i.detail={center:(a==null?void 0:a.toJSON())||{lat:0,lng:0},zoom:l||0,heading:c,tilt:u,bounds:(d==null?void 0:d.toJSON())||{north:90,east:180,south:-90,west:-180}},i}else if(ZM.includes(e)){if(!n)throw new Error("[createEvent] mouse events must provide a srcEvent");const i=r;return i.domEvent=n.domEvent,i.stoppable=!0,i.stop=()=>n.stop(),i.detail={latLng:((o=n.latLng)===null||o===void 0?void 0:o.toJSON())||null,placeId:n.placeId},i}return r}const oy={onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onContextmenu:"contextmenu",onDblclick:"dblclick",onDrag:"drag",onDragend:"dragend",onDragstart:"dragstart",onHeadingChanged:"heading_changed",onIdle:"idle",onIsFractionalZoomEnabledChanged:"isfractionalzoomenabled_changed",onMapCapabilitiesChanged:"mapcapabilities_changed",onMapTypeIdChanged:"maptypeid_changed",onMousemove:"mousemove",onMouseout:"mouseout",onMouseover:"mouseover",onProjectionChanged:"projection_changed",onRenderingTypeChanged:"renderingtype_changed",onTilesLoaded:"tilesloaded",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed",onCameraChanged:"bounds_changed"},KM=["bounds_changed","center_changed","heading_changed","tilt_changed","zoom_changed"],ZM=["click","contextmenu","dblclick","mousemove","mouseout","mouseover"],XM=Object.keys(oy);function QM(e){const t=_.useRef(void 0);return _.useEffect(()=>{t.current=e}),t.current}function JM(e,t){const n=QM(e);return _.useMemo(()=>n&&t(n,e)?n:e,[e,n,t])}function eO(e,t,n){_.useEffect(e,[JM(t,n)])}function tO(e,t){eO(e,t,$M)}const nO=new Set(["backgroundColor","clickableIcons","controlSize","disableDefaultUI","disableDoubleClickZoom","draggable","draggableCursor","draggingCursor","fullscreenControl","fullscreenControlOptions","gestureHandling","headingInteractionEnabled","isFractionalZoomEnabled","keyboardShortcuts","mapTypeControl","mapTypeControlOptions","mapTypeId","maxZoom","minZoom","noClear","panControl","panControlOptions","restriction","rotateControl","rotateControlOptions","scaleControl","scaleControlOptions","scrollwheel","streetView","streetViewControl","streetViewControlOptions","styles","tiltInteractionEnabled","zoomControl","zoomControlOptions"]);function oO(e,t){const n={},o=Object.keys(t);for(const r of o)nO.has(r)&&(n[r]=t[r]);tO(()=>{e&&e.setOptions(n)},[n])}function ry(){var e;return((e=_.useContext(js))===null||e===void 0?void 0:e.status)||In.NOT_LOADED}function rO(e,t){const{viewport:n,viewState:o}=t,r=!!n;return _.useLayoutEffect(()=>{if(!e||!o)return;const{latitude:i,longitude:a,bearing:l,pitch:c,zoom:u}=o;e.moveCamera({center:{lat:i,lng:a},heading:l,tilt:c,zoom:u+1})},[e,o]),r}function sO(e){return!e||typeof e!="object"||!("lat"in e&&"lng"in e)?!1:Number.isFinite(e.lat)&&Number.isFinite(e.lng)}function sy(e){return sO(e)?e:e.toJSON()}function iO(e,t,n){const o=n.center?sy(n.center):null;let r=null,i=null;o&&Number.isFinite(o.lat)&&Number.isFinite(o.lng)&&(r=o.lat,i=o.lng);const a=Number.isFinite(n.zoom)?n.zoom:null,l=Number.isFinite(n.heading)?n.heading:null,c=Number.isFinite(n.tilt)?n.tilt:null;_.useLayoutEffect(()=>{if(!e)return;const u={};let d=!1;r!==null&&i!==null&&(t.current.center.lat!==r||t.current.center.lng!==i)&&(u.center={lat:r,lng:i},d=!0),a!==null&&t.current.zoom!==a&&(u.zoom=a,d=!0),l!==null&&t.current.heading!==l&&(u.heading=l,d=!0),c!==null&&t.current.tilt!==c&&(u.tilt=c,d=!0),d&&e.moveCamera(u)})}const aO=()=>{const e={position:"absolute",top:0,left:0,bottom:0,right:0,zIndex:999,display:"flex",flexFlow:"column nowrap",textAlign:"center",justifyContent:"center",fontSize:".8rem",color:"rgba(0,0,0,0.6)",background:"#dddddd",padding:"1rem 1.5rem"};return _.createElement("div",{style:e},_.createElement("h2",null,"Error: AuthFailure"),_.createElement("p",null,"A problem with your API key prevents the map from rendering correctly. Please make sure the value of the ",_.createElement("code",null,"APIProvider.apiKey")," prop is correct. Check the error-message in the console for further details."))};function lO(){const[e,t]=_.useState(null),n=_.useCallback(o=>t(o),[t]);return[e,n]}function iy(){return ry()===In.LOADED}function cO(){const[,e]=_.useReducer(t=>t+1,0);return e}function uO(e,t){const n=e.getCenter(),o=e.getZoom(),r=e.getHeading()||0,i=e.getTilt()||0,a=e.getBounds();(!n||!a||!Number.isFinite(o))&&console.warn("[useTrackedCameraState] at least one of the values from the map returned undefined. This is not expected to happen. Please report an issue at https://github.com/visgl/react-google-maps/issues/new"),Object.assign(t.current,{center:(n==null?void 0:n.toJSON())||{lat:0,lng:0},zoom:o||0,heading:r,tilt:i})}function dO(e){const t=cO(),n=_.useRef({center:{lat:0,lng:0},heading:0,tilt:0,zoom:0});return _.useEffect(()=>{if(!e)return;const o=google.maps.event.addListener(e,"bounds_changed",()=>{uO(e,n),t()});return()=>o.remove()},[e,t]),n}class vi{static has(t){return this.entries[t]&&this.entries[t].length>0}static pop(t){return this.entries[t]&&this.entries[t].pop()||null}static push(t,n){this.entries[t]||(this.entries[t]=[]),this.entries[t].push(n)}}vi.entries={};function fO(e,t){const n=iy(),[o,r]=_.useState(null),[i,a]=lO(),l=dO(o),{id:c,defaultBounds:u,defaultCenter:d,defaultZoom:f,defaultHeading:p,defaultTilt:h,reuseMaps:m,renderingType:g,colorScheme:y}=e,v=hr(e,["id","defaultBounds","defaultCenter","defaultZoom","defaultHeading","defaultTilt","reuseMaps","renderingType","colorScheme"]),C=e.zoom!==void 0||e.defaultZoom!==void 0,x=e.center!==void 0||e.defaultCenter!==void 0;!u&&(!C||!x)&&console.warn("<Map> component is missing configuration. You have to provide zoom and center (via the `zoom`/`defaultZoom` and `center`/`defaultCenter` props) or specify the region to show using `defaultBounds`. See https://visgl.github.io/react-google-maps/docs/api-reference/components/map#required"),!v.center&&d&&(v.center=d),!v.zoom&&Number.isFinite(f)&&(v.zoom=f),!v.heading&&Number.isFinite(p)&&(v.heading=p),!v.tilt&&Number.isFinite(h)&&(v.tilt=h);const S=v.internalUsageAttributionIds;S==null?v.internalUsageAttributionIds=t.internalUsageAttributionIds:v.internalUsageAttributionIds=[...t.internalUsageAttributionIds||[],...S];for(const E of Object.keys(v))v[E]===void 0&&delete v[E];const T=_.useRef(void 0);return _.useEffect(()=>{if(!i||!n)return;const{addMapInstance:E,removeMapInstance:M}=t,{mapId:A}=e,k=`${A||"default"}:${g||"default"}:${y||"LIGHT"}`;let $,j;if(m&&vi.has(k)?(j=vi.pop(k),$=j.getDiv(),i.appendChild($),j.setOptions(v),setTimeout(()=>j.setCenter(j.getCenter()),0)):($=document.createElement("div"),$.style.height="100%",i.appendChild($),j=new google.maps.Map($,Object.assign(Object.assign(Object.assign({},v),g?{renderingType:g}:{}),y?{colorScheme:y}:{}))),r(j),E(j,c),u){const{padding:w}=u,L=hr(u,["padding"]);j.fitBounds(L,w)}else(!C||!x)&&j.fitBounds({east:180,west:-180,south:-90,north:90});if(T.current){const{mapId:w,cameraState:L}=T.current;w!==A&&j.setOptions(L)}return()=>{T.current={mapId:A,cameraState:l.current},$.remove(),m?vi.push(k,j):google.maps.event.clearInstanceListeners(j),r(null),M(c)}},[i,n,c,e.mapId,e.renderingType,e.colorScheme]),[o,a,l]}const ay=_.createContext(null),ly=e=>{const{children:t,id:n,className:o,style:r}=e,i=_.useContext(js),a=ry();if(!i)throw new Error("<Map> can only be used inside an <ApiProvider> component.");const[l,c,u]=fO(e,i);iO(l,u,e),qM(l,e),oO(l,e);const d=rO(l,e),f=!!e.controlled;_.useEffect(()=>{if(l)return d&&l.setOptions({disableDefaultUI:!0}),(d||f)&&l.setOptions({gestureHandling:"none",keyboardShortcuts:!1}),()=>{l.setOptions({gestureHandling:e.gestureHandling,keyboardShortcuts:e.keyboardShortcuts})}},[l,d,f,e.gestureHandling,e.keyboardShortcuts]);const p=e.center?sy(e.center):null;let h=null,m=null;p&&Number.isFinite(p.lat)&&Number.isFinite(p.lng)&&(h=p.lat,m=p.lng);const g=_.useMemo(()=>{var C,x,S;return{center:{lat:h??0,lng:m??0},zoom:(C=e.zoom)!==null&&C!==void 0?C:0,heading:(x=e.heading)!==null&&x!==void 0?x:0,tilt:(S=e.tilt)!==null&&S!==void 0?S:0}},[h,m,e.zoom,e.heading,e.tilt]);_.useLayoutEffect(()=>{if(!l||!f)return;l.moveCamera(g);const C=l.addListener("bounds_changed",()=>{l.moveCamera(g)});return()=>C.remove()},[l,f,g]);const y=_.useMemo(()=>Object.assign({width:"100%",height:"100%",position:"relative",zIndex:d?-1:0},r),[r,d]),v=_.useMemo(()=>({map:l}),[l]);return a===In.AUTH_FAILURE?_.createElement("div",{style:Object.assign({position:"relative"},o?{}:y),className:o},_.createElement(aO,null)):_.createElement("div",Object.assign({ref:c,"data-testid":"map",style:o?void 0:y,className:o},n?{id:n}:{}),l?_.createElement(ay.Provider,{value:v},t):null)};ly.deckGLViewProps=!0;const Sp=new Set;function pO(...e){const t=JSON.stringify(e);Sp.has(t)||(Sp.add(t),console.error(...e))}const fa=(e=null)=>{const t=_.useContext(js),{map:n}=_.useContext(ay)||{};if(t===null)return pO("useMap(): failed to retrieve APIProviderContext. Make sure that the <APIProvider> component exists and that the component you are calling `useMap()` from is a sibling of the <APIProvider>."),null;const{mapInstances:o}=t;return e!==null?o[e]||null:n||o.default||null};function hO(e){const t=iy(),n=_.useContext(js);return _.useEffect(()=>{!t||!n||n.importLibrary(e)},[t,n,e]),(n==null?void 0:n.loadedLibraries[e])||null}function ti(e,t,n){_.useEffect(()=>{if(!e||!t||!n)return;const o=google.maps.event.addListener(e,t,n);return()=>o.remove()},[e,t,n])}function ni(e,t,n){_.useEffect(()=>{e&&(e[t]=n)},[e,t,n])}function wp(e,t,n){_.useEffect(()=>{if(!(!e||!t||!n))return e.addEventListener(t,n),()=>e.removeEventListener(t,n)},[e,t,n])}class mO{constructor(){this.renderedStyles=new Set,this.styleElement=null}getStyleElement(){return this.styleElement||(this.styleElement=document.createElement("style"),this.styleElement.setAttribute("data-rgm-anchor-styles",""),document.head.appendChild(this.styleElement)),this.styleElement}addAdvancedMarkerPointerEventsOverwrite(){if(this.renderedStyles.has("marker-pointer-events"))return;const t=this.getStyleElement();t.textContent+=`
106
106
  gmp-advanced-marker[data-origin='rgm'] {
107
107
  pointer-events: none !important;
108
108
  }
109
- `,this.renderedStyles.add("marker-pointer-events")}cleanup(){this.styleElement&&(this.styleElement.remove(),this.styleElement=null,this.renderedStyles.clear())}}const vM=new bM;function xM(e,t){var n;if(!(!((n=google==null?void 0:google.maps)===null||n===void 0)&&n.version))return;const o=google.maps.version.split("."),r=parseInt(o[0],10),i=parseInt(o[1],10);return r>e||r===e&&i>=t}const SM=A.createContext(null),CM={BOTTOM:["50%","100%"]},cy=A.forwardRef((e,t)=>{const{children:n,style:o,className:r,anchorPoint:i}=e,[a,l]=TM(e),c=A.useMemo(()=>a?{marker:a}:null,[a]);return A.useImperativeHandle(t,()=>a,[a]),l?A.createElement(SM.Provider,{value:c},er.createPortal(A.createElement(wM,{anchorPoint:i,styles:o,className:r},n),l)):null});cy.displayName="AdvancedMarker";function sc(e){return e.nodeType===Node.ELEMENT_NODE}const wM=({children:e,styles:t,className:n})=>A.createElement("div",{className:n,style:t},e);function TM(e){const[t,n]=A.useState(null),[o,r]=A.useState(null),i=ua(),a=yM("marker"),{children:l,onClick:c,className:u,onMouseEnter:d,onMouseLeave:f,onDrag:p,onDragStart:h,onDragEnd:m,collisionBehavior:g,clickable:y,draggable:v,position:w,title:x,zIndex:S,anchorPoint:T,anchorLeft:E,anchorTop:M}=e,_=A.Children.count(l);return A.useEffect(()=>{if(!i||!a)return;const D=new a.AdvancedMarkerElement;D.map=i,n(D);let $=null;return _>0&&($=document.createElement("div"),D.content=$,r($)),()=>{D.map=null,$==null||$.remove(),n(null),r(null)}},[i,a,_]),A.useEffect(()=>{!(t!=null&&t.content)||!sc(t.content)||_>0||(t.content.className=u??"")},[t,u,_]),PM(t,T,E,M,_>0),ni(t,"position",w),ni(t,"title",x??""),ni(t,"zIndex",S),ni(t,"collisionBehavior",g),A.useEffect(()=>{t&&(v!==void 0?t.gmpDraggable=v:p||h||m?t.gmpDraggable=!0:t.gmpDraggable=!1)},[t,v,p,m,h]),A.useEffect(()=>{if(!t)return;const D=y!==void 0||!!c||!!d||!!f;t.gmpClickable=D,D&&(t!=null&&t.content)&&sc(t.content)&&(t.content.style.pointerEvents="all",c&&(t.content.style.cursor="pointer"))},[t,y,c,d,f]),ti(t,"click",c),ti(t,"drag",p),ti(t,"dragstart",h),ti(t,"dragend",m),Cp(t==null?void 0:t.element,"mouseenter",d),Cp(t==null?void 0:t.element,"mouseleave",f),[t,o]}function PM(e,t,n,o,r){A.useEffect(()=>{if(!e||!r)return;const i=xM(3,62),a=e.content;if(!(!a||!sc(a))){if(n!==void 0||o!==void 0){i||console.warn(`AdvancedMarker: The anchorLeft and anchorTop props are only supported in Google Maps API version 3.62 and above. The current version is ${google.maps.version}.`),e.anchorLeft=n,e.anchorTop=o,t!==void 0&&console.warn("AdvancedMarker: the anchorPoint prop is ignored when anchorLeft and/or anchorTop are set.");return}if(t!==void 0){const[l,c]=t??CM.BOTTOM,u=`calc(-1 * ${l})`,d=`calc(-1 * ${c})`;i?(e.anchorLeft=u,e.anchorTop=d,a.style.transform=""):(a.style.transform=`translate(50%, 100%) translate(${u}, ${d})`,e.dataset.origin="rgm",vM.addAdvancedMarkerPointerEventsOverwrite())}}},[e,t,n,o,r])}function EM(e){const[t,n]=A.useState(null),o=ua(),{onClick:r,onDrag:i,onDragStart:a,onDragEnd:l,onMouseOver:c,onMouseOut:u}=e,d=hr(e,["onClick","onDrag","onDragStart","onDragEnd","onMouseOver","onMouseOut"]),{position:f,draggable:p}=d;return A.useEffect(()=>{if(!o){o===void 0&&console.error("<Marker> has to be inside a Map component.");return}const h=new google.maps.Marker(d);return h.setMap(o),n(h),()=>{h.setMap(null),n(null)}},[o]),A.useEffect(()=>{if(!t)return;const h=t,m=google.maps.event;return r&&m.addListener(h,"click",r),i&&m.addListener(h,"drag",i),a&&m.addListener(h,"dragstart",a),l&&m.addListener(h,"dragend",l),c&&m.addListener(h,"mouseover",c),u&&m.addListener(h,"mouseout",u),t.setDraggable(!!p),()=>{m.clearInstanceListeners(h)}},[t,p,r,i,a,l,c,u]),A.useEffect(()=>{t&&d&&t.setOptions(d)},[t,d]),A.useEffect(()=>{p||!f||!t||t.setPosition(f)},[p,f,t]),t}const MM=A.forwardRef((e,t)=>{const n=EM(e);return A.useImperativeHandle(t,()=>n,[n]),A.createElement(A.Fragment,null)});MM.displayName="Marker";const uy=A.createContext(void 0),pu=()=>{const e=A.useContext(uy);if(!e)throw new Error("useGoogleMapContext must be used within GoogleMap component");return e},hu=({children:e})=>{const t=ua(),[n,o]=A.useState(13),[r,i]=A.useState(null);A.useEffect(()=>{if(!t)return;const c=t.getZoom();c!==void 0&&o(c);const u=t.getBounds();if(u){const p=u.getNorthEast(),h=u.getSouthWest(),m=[h.lng(),h.lat(),p.lng(),p.lat()];i(m)}const d=t.addListener("zoom_changed",()=>{const p=t.getZoom();p!==void 0&&o(p)}),f=t.addListener("bounds_changed",()=>{const p=t.getBounds();if(p){const h=p.getNorthEast(),m=p.getSouthWest(),g=[m.lng(),m.lat(),h.lng(),h.lat()];i(g)}});return()=>{d&&google.maps.event.removeListener(d),f&&google.maps.event.removeListener(f)}},[t]);const a=(c,u=16)=>{t&&(t.setCenter(c),t.setZoom(u))},l=(c,u)=>{t&&t.fitBounds(c,u)};return t?b.jsx(uy.Provider,{value:{isLoaded:!0,map:t,currentZoom:n,bounds:r,zoomToPosition:a,fitBounds:l},children:e}):null};hu.displayName="MapContent";const OM=180,dy=()=>{const{map:e}=pu(),t=A.useRef(null),n=A.useRef(null);return A.useEffect(()=>{if(!e||!t.current)return;const o=new ResizeObserver(()=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{try{google.maps.event.trigger(e,"resize")}finally{n.current=null}},OM)});return o.observe(t.current),()=>{n.current&&clearTimeout(n.current),o.disconnect()}},[e]),b.jsx("div",{ref:t,"aria-hidden":!0,style:{position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none",visibility:"hidden"}})};dy.displayName="MapResizeHandler";const kM="_googleMap_1gh3l_1",DM="_container_1gh3l_14",RM="_errorContainer_1gh3l_29",oi={googleMap:kM,container:DM,errorContainer:RM},IM={lat:-26.3044,lng:-48.8487},AM=13,NM={disableDefaultUI:!0,zoomControl:!1,streetViewControl:!1,mapTypeControl:!1,fullscreenControl:!1,rotateControl:!1,scaleControl:!1,panControl:!1,clickableIcons:!1,keyboardShortcuts:!1},_M=({options:e,onLoad:t,children:n})=>{const o=ua();return A.useEffect(()=>{o&&(o.setOptions(NM),e&&o.setOptions(e),t&&t(o))},[o,e,t]),b.jsx(b.Fragment,{children:n})},fy=({center:e=IM,zoom:t=AM,className:n,children:o,apiKey:r,mapId:i,themeMode:a="light",options:l,onLoad:c,onError:u})=>{if(!r||!i)return b.jsx("div",{className:`${oi.container} ${oi.errorContainer} ${n||""}`,children:b.jsxs("div",{children:[b.jsx("p",{children:"Google Maps não configurado"}),b.jsx("p",{style:{fontSize:"14px",marginTop:"8px",opacity:.7},children:"As props apiKey e mapId são obrigatórias"})]})});const d=a==="dark"?"DARK":"LIGHT",f={defaultCenter:e,defaultZoom:t,mapId:i,className:oi.googleMap,colorScheme:d},p=`${i}-${d}`;return b.jsx(KE,{apiKey:r,onLoad:()=>{console.log("Google Maps API carregada com sucesso")},onError:h=>{console.error("Erro ao carregar Google Maps API:",h),u&&h instanceof Error&&u(h)},children:b.jsx("div",{className:`${oi.container} ${n||""}`,style:{width:"100%",height:"400px",minHeight:"400px",position:"relative"},children:b.jsx(ly,{...f,style:{width:"100%",height:"100%"},children:b.jsx(_M,{options:l,onLoad:c,children:b.jsxs(hu,{children:[b.jsx(dy,{}),o]})})},p)})})};fy.displayName="GoogleMap";const wp=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],ul=1,Nr=8;class mu{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[n,o]=new Uint8Array(t,0,2);if(n!==219)throw new Error("Data does not appear to be in a KDBush format.");const r=o>>4;if(r!==ul)throw new Error(`Got v${r} data when expected v${ul}.`);const i=wp[o&15];if(!i)throw new Error("Unrecognized array type.");const[a]=new Uint16Array(t,2,1),[l]=new Uint32Array(t,4,1);return new mu(l,a,i,t)}constructor(t,n=64,o=Float64Array,r){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+n,2),65535),this.ArrayType=o,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const i=wp.indexOf(this.ArrayType),a=t*2*this.ArrayType.BYTES_PER_ELEMENT,l=t*this.IndexArrayType.BYTES_PER_ELEMENT,c=(8-l%8)%8;if(i<0)throw new Error(`Unexpected typed array class: ${o}.`);r&&r instanceof ArrayBuffer?(this.data=r,this.ids=new this.IndexArrayType(this.data,Nr,t),this.coords=new this.ArrayType(this.data,Nr+l+c,t*2),this._pos=t*2,this._finished=!0):(this.data=new ArrayBuffer(Nr+a+l+c),this.ids=new this.IndexArrayType(this.data,Nr,t),this.coords=new this.ArrayType(this.data,Nr+l+c,t*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(ul<<4)+i]),new Uint16Array(this.data,2,1)[0]=n,new Uint32Array(this.data,4,1)[0]=t)}add(t,n){const o=this._pos>>1;return this.ids[o]=o,this.coords[this._pos++]=t,this.coords[this._pos++]=n,o}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return ic(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,n,o,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:a,nodeSize:l}=this,c=[0,i.length-1,0],u=[];for(;c.length;){const d=c.pop()||0,f=c.pop()||0,p=c.pop()||0;if(f-p<=l){for(let y=p;y<=f;y++){const v=a[2*y],w=a[2*y+1];v>=t&&v<=o&&w>=n&&w<=r&&u.push(i[y])}continue}const h=p+f>>1,m=a[2*h],g=a[2*h+1];m>=t&&m<=o&&g>=n&&g<=r&&u.push(i[h]),(d===0?t<=m:n<=g)&&(c.push(p),c.push(h-1),c.push(1-d)),(d===0?o>=m:r>=g)&&(c.push(h+1),c.push(f),c.push(1-d))}return u}within(t,n,o){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:r,coords:i,nodeSize:a}=this,l=[0,r.length-1,0],c=[],u=o*o;for(;l.length;){const d=l.pop()||0,f=l.pop()||0,p=l.pop()||0;if(f-p<=a){for(let y=p;y<=f;y++)Tp(i[2*y],i[2*y+1],t,n)<=u&&c.push(r[y]);continue}const h=p+f>>1,m=i[2*h],g=i[2*h+1];Tp(m,g,t,n)<=u&&c.push(r[h]),(d===0?t-o<=m:n-o<=g)&&(l.push(p),l.push(h-1),l.push(1-d)),(d===0?t+o>=m:n+o>=g)&&(l.push(h+1),l.push(f),l.push(1-d))}return c}}function ic(e,t,n,o,r,i){if(r-o<=n)return;const a=o+r>>1;py(e,t,a,o,r,i),ic(e,t,n,o,a-1,1-i),ic(e,t,n,a+1,r,1-i)}function py(e,t,n,o,r,i){for(;r>o;){if(r-o>600){const u=r-o+1,d=n-o+1,f=Math.log(u),p=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*p*(u-p)/u)*(d-u/2<0?-1:1),m=Math.max(o,Math.floor(n-d*p/u+h)),g=Math.min(r,Math.floor(n+(u-d)*p/u+h));py(e,t,n,m,g,i)}const a=t[2*n+i];let l=o,c=r;for(_r(e,t,o,n),t[2*r+i]>a&&_r(e,t,o,r);l<c;){for(_r(e,t,l,c),l++,c--;t[2*l+i]<a;)l++;for(;t[2*c+i]>a;)c--}t[2*o+i]===a?_r(e,t,o,c):(c++,_r(e,t,c,r)),c<=n&&(o=c+1),n<=c&&(r=c-1)}}function _r(e,t,n,o){dl(e,n,o),dl(t,2*n,2*o),dl(t,2*n+1,2*o+1)}function dl(e,t,n){const o=e[t];e[t]=e[n],e[n]=o}function Tp(e,t,n,o){const r=e-n,i=t-o;return r*r+i*i}const jM={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},Pp=Math.fround||(e=>t=>(e[0]=+t,e[0]))(new Float32Array(1)),mo=2,Yn=3,fl=4,Un=5,hy=6;class LM{constructor(t){this.options=Object.assign(Object.create(jM),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){const{log:n,minZoom:o,maxZoom:r}=this.options;n&&console.time("total time");const i=`prepare ${t.length} points`;n&&console.time(i),this.points=t;const a=[];for(let c=0;c<t.length;c++){const u=t[c];if(!u.geometry)continue;const[d,f]=u.geometry.coordinates,p=Pp(ri(d)),h=Pp(si(f));a.push(p,h,1/0,c,-1,1),this.options.reduce&&a.push(0)}let l=this.trees[r+1]=this._createTree(a);n&&console.timeEnd(i);for(let c=r;c>=o;c--){const u=+Date.now();l=this.trees[c]=this._createTree(this._cluster(l,c)),n&&console.log("z%d: %d clusters in %dms",c,l.numItems,+Date.now()-u)}return n&&console.timeEnd("total time"),this}getClusters(t,n){let o=((t[0]+180)%360+360)%360-180;const r=Math.max(-90,Math.min(90,t[1]));let i=t[2]===180?180:((t[2]+180)%360+360)%360-180;const a=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)o=-180,i=180;else if(o>i){const f=this.getClusters([o,r,180,a],n),p=this.getClusters([-180,r,i,a],n);return f.concat(p)}const l=this.trees[this._limitZoom(n)],c=l.range(ri(o),si(a),ri(i),si(r)),u=l.data,d=[];for(const f of c){const p=this.stride*f;d.push(u[p+Un]>1?Ep(u,p,this.clusterProps):this.points[u[p+Yn]])}return d}getChildren(t){const n=this._getOriginId(t),o=this._getOriginZoom(t),r="No cluster with the specified id.",i=this.trees[o];if(!i)throw new Error(r);const a=i.data;if(n*this.stride>=a.length)throw new Error(r);const l=this.options.radius/(this.options.extent*Math.pow(2,o-1)),c=a[n*this.stride],u=a[n*this.stride+1],d=i.within(c,u,l),f=[];for(const p of d){const h=p*this.stride;a[h+fl]===t&&f.push(a[h+Un]>1?Ep(a,h,this.clusterProps):this.points[a[h+Yn]])}if(f.length===0)throw new Error(r);return f}getLeaves(t,n,o){n=n||10,o=o||0;const r=[];return this._appendLeaves(r,t,n,o,0),r}getTile(t,n,o){const r=this.trees[this._limitZoom(t)],i=Math.pow(2,t),{extent:a,radius:l}=this.options,c=l/a,u=(o-c)/i,d=(o+1+c)/i,f={features:[]};return this._addTileFeatures(r.range((n-c)/i,u,(n+1+c)/i,d),r.data,n,o,i,f),n===0&&this._addTileFeatures(r.range(1-c/i,u,1,d),r.data,i,o,i,f),n===i-1&&this._addTileFeatures(r.range(0,u,c/i,d),r.data,-1,o,i,f),f.features.length?f:null}getClusterExpansionZoom(t){let n=this._getOriginZoom(t)-1;for(;n<=this.options.maxZoom;){const o=this.getChildren(t);if(n++,o.length!==1)break;t=o[0].properties.cluster_id}return n}_appendLeaves(t,n,o,r,i){const a=this.getChildren(n);for(const l of a){const c=l.properties;if(c&&c.cluster?i+c.point_count<=r?i+=c.point_count:i=this._appendLeaves(t,c.cluster_id,o,r,i):i<r?i++:t.push(l),t.length===o)break}return i}_createTree(t){const n=new mu(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let o=0;o<t.length;o+=this.stride)n.add(t[o],t[o+1]);return n.finish(),n.data=t,n}_addTileFeatures(t,n,o,r,i,a){for(const l of t){const c=l*this.stride,u=n[c+Un]>1;let d,f,p;if(u)d=my(n,c,this.clusterProps),f=n[c],p=n[c+1];else{const g=this.points[n[c+Yn]];d=g.properties;const[y,v]=g.geometry.coordinates;f=ri(y),p=si(v)}const h={type:1,geometry:[[Math.round(this.options.extent*(f*i-o)),Math.round(this.options.extent*(p*i-r))]],tags:d};let m;u||this.options.generateId?m=n[c+Yn]:m=this.points[n[c+Yn]].id,m!==void 0&&(h.id=m),a.features.push(h)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,n){const{radius:o,extent:r,reduce:i,minPoints:a}=this.options,l=o/(r*Math.pow(2,n)),c=t.data,u=[],d=this.stride;for(let f=0;f<c.length;f+=d){if(c[f+mo]<=n)continue;c[f+mo]=n;const p=c[f],h=c[f+1],m=t.within(c[f],c[f+1],l),g=c[f+Un];let y=g;for(const v of m){const w=v*d;c[w+mo]>n&&(y+=c[w+Un])}if(y>g&&y>=a){let v=p*g,w=h*g,x,S=-1;const T=((f/d|0)<<5)+(n+1)+this.points.length;for(const E of m){const M=E*d;if(c[M+mo]<=n)continue;c[M+mo]=n;const _=c[M+Un];v+=c[M]*_,w+=c[M+1]*_,c[M+fl]=T,i&&(x||(x=this._map(c,f,!0),S=this.clusterProps.length,this.clusterProps.push(x)),i(x,this._map(c,M)))}c[f+fl]=T,u.push(v/y,w/y,1/0,T,-1,y),i&&u.push(S)}else{for(let v=0;v<d;v++)u.push(c[f+v]);if(y>1)for(const v of m){const w=v*d;if(!(c[w+mo]<=n)){c[w+mo]=n;for(let x=0;x<d;x++)u.push(c[w+x])}}}}return u}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,n,o){if(t[n+Un]>1){const a=this.clusterProps[t[n+hy]];return o?Object.assign({},a):a}const r=this.points[t[n+Yn]].properties,i=this.options.map(r);return o&&i===r?Object.assign({},i):i}}function Ep(e,t,n){return{type:"Feature",id:e[t+Yn],properties:my(e,t,n),geometry:{type:"Point",coordinates:[$M(e[t]),VM(e[t+1])]}}}function my(e,t,n){const o=e[t+Un],r=o>=1e4?`${Math.round(o/1e3)}k`:o>=1e3?`${Math.round(o/100)/10}k`:o,i=e[t+hy],a=i===-1?{}:Object.assign({},n[i]);return Object.assign(a,{cluster:!0,cluster_id:e[t+Yn],point_count:o,point_count_abbreviated:r})}function ri(e){return e/360+.5}function si(e){const t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function $M(e){return(e-.5)*360}function VM(e){const t=(180-e*360)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}const FM={radius:30,maxZoom:13,minZoom:0,minPoints:2};function Mp(e){return e.isCluster?`c_${e.lat.toFixed(6)}_${e.lng.toFixed(6)}_${e.pointCount}_${e.count}`:`s_${e.id}`}function BM(e,t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n].id!==t[n].id||e[n].algorithm!==t[n].algorithm||e[n].orientation!==t[n].orientation)return!1;return!0}function zM(e,t){return!(e.lat!==t.lat||e.lng!==t.lng||e.count!==t.count||e.isCluster!==t.isCluster||e.pointCount!==t.pointCount||e.addressText!==t.addressText||!BM(e.cameras,t.cameras))}function WM(e,t){if(e.length===0)return t;const n=new Map;for(const i of e)n.set(Mp(i),i);let o=!1;const r=t.map(i=>{const a=Mp(i),l=n.get(a);return l&&zM(l,i)?l:(o=!0,i)});return!o&&e.length===t.length?e:r}function UM(e){if(e.length===0)return"";const t=e.map(n=>String(n.id));return t.sort(),t.join(",")}function HM(e,t,n,o={}){const r=A.useRef(null),[i,a]=A.useState([]),l=A.useRef(""),c={...FM,...o};return A.useEffect(()=>{if(!e||e.length===0){l.current="",r.current=null,a([]);return}const u=UM(e);if(u===l.current&&r.current)return;l.current=u;const d=e.map(f=>({type:"Feature",properties:f,geometry:{type:"Point",coordinates:[f.lng,f.lat]}}));r.current||(r.current=new LM({radius:c.radius,maxZoom:c.maxZoom,minZoom:c.minZoom,minPoints:c.minPoints})),r.current.load(d)},[e,c.radius,c.maxZoom,c.minZoom,c.minPoints]),A.useEffect(()=>{if(!r.current||!n){a(e);return}const d=r.current.getClusters(n,Math.floor(t)).map(f=>{const[p,h]=f.geometry.coordinates,m=f.properties;if(m.cluster){const g=m.cluster_id,y=r.current.getLeaves(g,1/0),v=y.flatMap(x=>x.properties.cameras||[]),w=y.reduce((x,S)=>x+S.properties.count,0);return{id:`cluster-${g}`,lat:h,lng:p,count:w,cameras:v,isCluster:!0,pointCount:m.point_count,clusterId:g}}else{const g=m;return{id:g.id,lat:h,lng:p,count:g.count,addressText:g.addressText,cameras:g.cameras}}});a(f=>WM(f,d))},[e,t,n]),i}const Op=A.memo(function({spot:t,currentZoom:n,isSelected:o,selectedCameraId:r,isHighlighted:i,highlightedCameraId:a,animateOnClick:l,disableClick:c,onSpotClick:u,onCameraClick:d}){const f=A.useCallback(()=>u(t),[u,t]),p=A.useCallback(h=>d==null?void 0:d(h,t),[d,t]);return b.jsx(cy,{position:{lat:t.lat,lng:t.lng},onClick:f,children:b.jsx(fu,{count:t.count,addressText:t.addressText,cameras:t.cameras,currentZoom:n,isSelected:o,selectedCameraId:r,isHighlighted:i,highlightedCameraId:a,animateOnClick:l,disableClick:c,onCameraClick:d?p:void 0})})}),gy=({spots:e,onSpotClick:t,onCameraClick:n,zoomLevel:o=kP,selectedZoomLevel:r=cl,selectedSpotId:i,selectedSpot:a,selectedCameraId:l,hoveredSpotId:c,hoveredCameraId:u,animateOnClick:d,disableClick:f})=>{const{isLoaded:p,currentZoom:h,bounds:m,zoomToPosition:g}=pu(),y=(a==null?void 0:a.id)??i,{spotsForClustering:v,pinnedSpot:w}=A.useMemo(()=>{if(y==null)return{spotsForClustering:e,pinnedSpot:null};const E=e.find(_=>_.id===y)??null;return E?{spotsForClustering:e.filter(_=>_.id!==y),pinnedSpot:E}:{spotsForClustering:e,pinnedSpot:null}},[e,y]),x=HM(v,h,m),S=A.useCallback(E=>{if(E.isCluster)g({lat:E.lat,lng:E.lng},Oo);else if(f)g({lat:E.lat,lng:E.lng},h<Oo?Oo:r??o);else{const M=a?a.id===E.id:i===E.id;h<Oo?(g({lat:E.lat,lng:E.lng},Oo),t==null||t(E)):(h<(r??cl)&&!M&&g({lat:E.lat,lng:E.lng},r??cl),t==null||t(E))}},[g,f,a,i,h,r,o,t]),T=A.useCallback(E=>!c&&!u?!1:!E.isCluster&&E.id===c?!0:E.isCluster&&u&&E.cameras?E.cameras.some(M=>M.id===u):!1,[c,u]);return p?b.jsxs(b.Fragment,{children:[x.map((E,M)=>b.jsx(Op,{spot:E,currentZoom:h,isSelected:!1,selectedCameraId:l,isHighlighted:T(E),animateOnClick:d,disableClick:f,onSpotClick:S,onCameraClick:n},E.id??M)),w&&b.jsx(Op,{spot:w,currentZoom:h,isSelected:!0,selectedCameraId:l,isHighlighted:String(w.id)===String(c),highlightedCameraId:String(w.id)===String(c)?u:void 0,animateOnClick:d,disableClick:f,onSpotClick:S,onCameraClick:n},`pinned-${w.id}`)]}):null};gy.displayName="MapMarkers";const YM="_searchBar_15mix_1",qM="_startIconContainer_15mix_106",GM="_endIconContainer_15mix_117",KM="_endIconContainerClickable_15mix_153",ZM="_defaultIcon_15mix_157",Kr={searchBar:YM,startIconContainer:qM,endIconContainer:GM,endIconContainerClickable:KM,defaultIcon:ZM},XM=e=>()=>{e&&e()},QM=e=>t=>{e&&e(t)},JM=()=>b.jsx(kt.Search,{className:Kr.defaultIcon}),eO=e=>e||JM(),yy=A.forwardRef(({startIcon:e,endIcon:t,onEndIconClick:n,placeholder:o,value:r,onChange:i,className:a,...l},c)=>{const d=q.useTheme().palette.mode==="dark",f=eO(t),p=XM(n),h=QM(i);return b.jsx(q.TextField,{ref:c,value:r,onChange:h,placeholder:o,variant:"outlined",autoComplete:"off",className:`${Kr.searchBar} ${a||""}`,"data-theme":d?"dark":"light",InputProps:{startAdornment:e?b.jsx(q.InputAdornment,{position:"start",className:Kr.startIconContainer,children:e}):null,endAdornment:b.jsx(q.InputAdornment,{position:"end",className:`${Kr.endIconContainer} ${n?Kr.endIconContainerClickable:""}`,onClick:p,disablePointerEvents:!n,children:f})},inputProps:{autoComplete:"off","data-form-type":"other"},...l})});yy.displayName="SearchBar";const tO=gt(b.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),nO=gt([b.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 3 6.08 3 3.28 5.64 3.03 9h2.02C5.3 6.75 7.18 5 9.5 5 11.99 5 14 7.01 14 9.5S11.99 14 9.5 14c-.17 0-.33-.03-.5-.05v2.02c.17.02.33.03.5.03 1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19z"},"0"),b.jsx("path",{d:"M6.47 10.82 4 13.29l-2.47-2.47-.71.71L3.29 14 .82 16.47l.71.71L4 14.71l2.47 2.47.71-.71L4.71 14l2.47-2.47z"},"1")],"SearchOff"),oO="_container_1mb8b_1",rO="_iconWrapper_1mb8b_11",sO="_icon_1mb8b_11",iO="_title_1mb8b_21",aO="_subtitle_1mb8b_30",lO="_description_1mb8b_34",cO="_button_1mb8b_38",go={container:oO,iconWrapper:rO,icon:sO,title:iO,subtitle:aO,description:lO,button:cO},by=({onGoHome:e,buttonText:t="Voltar para o início",title:n="Página não encontrada",description:o="Desculpe, a página que você está procurando não existe ou foi movida para outro endereço.",errorCode:r="404",className:i})=>b.jsx(q.Container,{maxWidth:"sm",children:b.jsxs(q.Box,{className:`${go.container} ${i||""}`,children:[b.jsx(q.Box,{className:go.iconWrapper,children:b.jsx(nO,{className:go.icon,color:"primary"})}),b.jsx(q.Typography,{variant:"h1",className:go.title,sx:{fontSize:{xs:"6rem",md:"8rem"}},children:r}),b.jsx(q.Typography,{variant:"h4",component:"h2",className:go.subtitle,color:"text.primary",children:n}),b.jsx(q.Typography,{variant:"body1",className:go.description,color:"text.secondary",children:o}),e&&b.jsx(Pc,{variant:"contained",size:"large",startIcon:b.jsx(tO,{}),onClick:e,className:go.button,children:t})]})});by.displayName="NotFoundContent";const uO=e=>{const t=e.find(o=>o.active),n=e.flatMap(o=>{var r;return((r=o.submenu)==null?void 0:r.map(i=>({item:o,subItem:i})))??[]}).find(({subItem:o})=>o.active);return{itemId:(n==null?void 0:n.item.id)??(t==null?void 0:t.id)??null,subItemId:(n==null?void 0:n.subItem.id)??null,expandedItemId:(n==null?void 0:n.item.id)??null}},dO=({items:e,isExpanded:t=!0,onClick:n})=>{const o=A.useMemo(()=>uO(e),[e]),[r,i]=A.useState(o.itemId),[a,l]=A.useState(o.subItemId),[c,u]=A.useState(o.expandedItemId),[d,f]=A.useState(null),[p,h]=A.useState(null);A.useEffect(()=>{i(o.itemId),l(o.subItemId),u(o.expandedItemId)},[o.itemId,o.subItemId,o.expandedItemId]);const m=p?e.find(E=>E.id===p):void 0,g=(m==null?void 0:m.submenu)??[];return{selectedItemId:r,selectedSubItemId:a,expandedItemId:c,submenuAnchorEl:d,submenuItem:m,submenuItems:g,getIsItemActive:E=>{var _;const M=a?!!((_=E.submenu)!=null&&_.some(D=>D.id===a)):!1;return r?E.id===r:!!(E.active||M)},getIsSubItemActive:E=>a?E.id===a:!!E.active,shouldShowSubmenu:E=>{var M;return!!(t&&((M=E.submenu)!=null&&M.length)&&c===E.id)},handleItemClick:(E,M)=>{var _,D;i(E.id),l(null),(_=E.submenu)!=null&&_.length?t?u($=>$===E.id?null:E.id):(f(M.currentTarget),h(E.id)):(u(null),f(null),h(null)),(D=E.onClick)==null||D.call(E,M),n==null||n({item:E})},handleSubItemClick:(E,M,_,D)=>{var $;i(E.id),l(M.id),D!=null&&D.closeMenu&&(f(null),h(null)),($=M.onClick)==null||$.call(M,_),n==null||n({item:E,subItem:M})},closeSubmenu:()=>{f(null),h(null)}}},vy=e=>typeof e=="number"?`${e*4}px`:e,fO=({item:e,onClick:t,isActive:n})=>{const o=ae.useTheme();return b.jsx(q.ButtonBase,{onClick:t,"aria-label":e.label,"aria-pressed":n||void 0,sx:{width:"100%",borderRadius:vy(o.shape.borderRadius),px:2,py:1.25,justifyContent:"flex-start",textAlign:"left",color:o.palette.text.primary,backgroundColor:n?o.palette.action.selected:"transparent","&:hover":{backgroundColor:o.palette.action.hover}},children:b.jsx(q.Typography,{variant:"body2",sx:{fontWeight:500},children:e.label})})},xy=({items:e,isExpanded:t=!0,className:n,onClick:o})=>{const r=ae.useTheme(),i=vy(r.shape.borderRadius),{submenuAnchorEl:a,submenuItem:l,submenuItems:c,getIsItemActive:u,getIsSubItemActive:d,shouldShowSubmenu:f,handleItemClick:p,handleSubItemClick:h,closeSubmenu:m}=dO({items:e,isExpanded:t,onClick:o});return b.jsxs(q.Stack,{className:n,direction:"column",spacing:2,sx:{width:"100%"},children:[e.map(g=>{var E,M;const y=u(g),v=f(g),w=t?r.spacing(2):r.spacing(4),x=t?y?r.palette.primary.main:r.palette.action.hover:"transparent",S=t?"transparent":y?r.palette.primary.main:r.palette.action.hover,T=!t&&y?r.palette.primary.contrastText:r.palette.text.primary;return b.jsxs(q.Stack,{direction:"column",spacing:1,sx:{width:"100%"},children:[b.jsx(q.ButtonBase,{onClick:_=>p(g,_),"aria-label":g.label,"aria-pressed":y||void 0,"aria-haspopup":(E=g.submenu)!=null&&E.length?"menu":void 0,sx:{width:"100%",borderRadius:i,px:t?2:1,py:t?1.5:1,justifyContent:t?"flex-start":"center",textAlign:"left",color:r.palette.text.primary,backgroundColor:x,boxShadow:t&&y?r.shadows[1]:"none","&:hover":{backgroundColor:t?r.palette.action.hover:"transparent"}},children:b.jsxs(q.Stack,{direction:t?"row":"column",alignItems:"center",spacing:t?1.5:1,sx:{width:"100%"},children:[b.jsx(q.Box,{sx:{width:64,height:w,borderRadius:i,display:"inline-flex",alignItems:"center",justifyContent:"center",backgroundColor:S,color:T,transition:r.transitions.create(["background-color","box-shadow"],{duration:r.transitions.duration.shortest}),...t?{}:{boxShadow:y?r.shadows[1]:"none","&:hover":{backgroundColor:y?ae.alpha(r.palette.primary.main,.9):r.palette.action.selected}}},children:g.icon}),b.jsx(q.Typography,{variant:"body2",sx:{width:"100%",textAlign:t?"left":"center",fontWeight:y?600:500},children:g.label}),t&&g.trailingIcon?b.jsx(q.Box,{sx:{ml:"auto",display:"inline-flex",alignItems:"center"},children:g.trailingIcon}):null]})}),v?b.jsx(q.Collapse,{in:v,timeout:"auto",unmountOnExit:!0,children:b.jsx(q.Stack,{direction:"column",spacing:1,sx:{pl:4},children:(M=g.submenu)==null?void 0:M.map(_=>{const D=d(_);return b.jsx(fO,{item:_,isActive:D,onClick:$=>h(g,_,$)},_.id)})})}):null]},g.id)}),b.jsx(q.Menu,{anchorEl:a,open:!!(a&&c.length),onClose:m,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},MenuListProps:{dense:!0,"aria-label":(l==null?void 0:l.label)??"submenu"},PaperProps:{sx:{borderRadius:i,minWidth:r.spacing(22),px:1,py:.5,boxShadow:r.shadows[3]}},children:c.map(g=>{const y=d(g);return b.jsx(q.MenuItem,{selected:y,onClick:v=>{l&&h(l,g,v,{closeMenu:!0})},sx:{borderRadius:i,fontWeight:y?600:500},children:g.label},g.id)})})]})};xy.displayName="SidebarMenu";const pO=e=>{const t=e.find(n=>n.active);return(t==null?void 0:t.id)??null},hO=({items:e,onSelect:t,isExpanded:n=!0})=>{const o=A.useMemo(()=>pO(e),[e]),[r,i]=A.useState(o),[a,l]=A.useState(null);A.useEffect(()=>{i(o)},[o]);const c=r?e.find(h=>h.id===r):void 0;return{selectedItemId:r,selectedItem:c,menuAnchorEl:a,getIsItemActive:h=>r?h.id===r:!!h.active,openMenu:h=>{n||l(h.currentTarget)},closeMenu:()=>{n||l(null)},handleItemClick:(h,m)=>{var g;i(h.id),(g=h.onClick)==null||g.call(h,m),t==null||t(h),l(null)}}},mO=e=>typeof e=="number"?`${e*4}px`:e,Sy=({items:e,currentLabel:t,headerLabel:n,headerIcon:o,headerTrailingIcon:r,listTitle:i,action:a,isExpanded:l=!0,className:c,onSelect:u})=>{var O,N;const d=ae.useTheme(),f=A.useRef(null),p=mO(d.shape.borderRadius),[h,m]=A.useState(!1),g=A.useMemo(()=>Number.parseFloat(d.spacing(2).toString()),[d]),{selectedItem:y,menuAnchorEl:v,getIsItemActive:w,openMenu:x,closeMenu:S,handleItemClick:T}=hO({items:e,onSelect:u,isExpanded:l}),E=t??(y==null?void 0:y.label)??((O=e[0])==null?void 0:O.label)??"",M=o??(y==null?void 0:y.icon)??((N=e[0])==null?void 0:N.icon)??null,_=l||!M,D=F=>{if(l){m(V=>!V);return}x(F)},$=(F,V)=>{T(F,V),m(!1)},j=b.jsx(q.Stack,{direction:"column",spacing:.5,children:e.map(F=>{const V=w(F);return b.jsxs(q.MenuItem,{selected:V,onClick:B=>$(F,B),sx:{borderRadius:p,gap:1.5,px:2,py:1.25,color:d.palette.text.primary,"&:hover":{backgroundColor:d.palette.action.hover}},children:[F.icon?b.jsx(q.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:F.icon}):null,b.jsx(q.Typography,{variant:"body1",sx:{fontWeight:V?600:500},children:F.label})]},F.id)})}),C=b.jsxs(q.Box,{sx:{borderRadius:p,backgroundColor:d.palette.background.paper,boxShadow:d.shadows[3],display:"flex",flexDirection:"column",maxHeight:d.spacing(50)},children:[i?b.jsx(q.Box,{sx:{px:2,pt:2,pb:1},children:b.jsx(q.Typography,{variant:"subtitle2",sx:{color:d.palette.text.primary},children:i})}):null,b.jsx(q.Box,{sx:{px:2,pb:2,overflowY:"auto",flex:1,minHeight:0},children:j})]}),L=a?b.jsxs(q.MenuItem,{onClick:a.onClick,sx:{borderRadius:p,gap:1.5,px:2,py:1.25,color:d.palette.text.primary,"&:hover":{backgroundColor:d.palette.action.hover}},children:[a.icon?b.jsx(q.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:a.icon}):null,b.jsx(q.Typography,{variant:"body1",sx:{fontWeight:600},children:a.label})]}):null,k=L?b.jsx(q.Box,{sx:{borderRadius:p,backgroundColor:d.palette.background.paper,boxShadow:d.shadows[3]},children:L}):null,I=b.jsxs(q.Stack,{direction:"column",spacing:1,sx:{minWidth:d.spacing(32)},children:[C,k]});return b.jsxs(q.Stack,{className:c,direction:l?"row":"column",spacing:l?2:1,sx:{width:"100%",alignItems:l?"flex-start":"stretch"},children:[b.jsx(q.ButtonBase,{onClick:D,"aria-label":E,ref:f,sx:{width:l?d.spacing(28):"64px",height:l?"auto":"64px",borderRadius:p,px:l?2:0,py:l?1.25:0,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"left",backgroundColor:d.palette.action.hover,"&:hover":{backgroundColor:d.palette.action.selected}},children:b.jsxs(q.Stack,{direction:"row",alignItems:"center",spacing:l?1:0,sx:{width:l?"100%":"auto",justifyContent:l?"space-between":"center",px:0},children:[M?b.jsx(q.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:M}):null,_?b.jsxs(q.Box,{sx:{minWidth:0,flex:1},children:[n?b.jsx(q.Typography,{variant:"caption",sx:{color:d.palette.text.secondary},children:n}):null,b.jsx(q.Typography,{variant:"body2",sx:{fontWeight:600},noWrap:!0,children:E})]}):null,l&&r?b.jsx(q.Box,{sx:{ml:"auto",display:"inline-flex",alignItems:"center"},children:r}):null]})}),l?h?b.jsx(q.ClickAwayListener,{onClickAway:()=>m(!1),children:b.jsx(q.Popper,{open:h,anchorEl:f.current,placement:"right-start",modifiers:[{name:"offset",options:{offset:[0,g]}}],sx:{zIndex:d.zIndex.modal},children:I})}):null:b.jsx(q.Menu,{anchorEl:v,open:!!v,onClose:S,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},disableAutoFocusItem:!0,slotProps:{paper:{sx:{borderRadius:p,p:0,ml:2,backgroundColor:"transparent",boxShadow:"none",overflow:"visible"}}},MenuListProps:{"aria-label":E?`menu-${E}`:"menu",sx:{p:0}},children:I})]})};Sy.displayName="ModuleMenu";const gu=e=>e.seekable&&e.seekable.length>0?e.seekable.end(e.seekable.length-1):Number.isFinite(e.duration)&&e.duration>0?e.duration:e.currentTime,Zr=(e,t,n,o,r)=>{if(n<=1)return{panX:0,panY:0};const i=o*(1-1/n)/2,a=r*(1-1/n)/2;return{panX:Math.max(-i,Math.min(i,e)),panY:Math.max(-a,Math.min(a,t))}},gO=(e,t,n)=>({...e&&{"--player-width":typeof e=="number"?`${e}px`:e},...t&&{"--player-height":typeof t=="number"?`${t}px`:t},...n&&{"--player-aspect-ratio":n}}),An={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function Cy(e){return"init"in e}function ac(e){return!!e.write}function kp(e){return"v"in e||"e"in e}function Ni(e){if("e"in e)throw e.e;if((An?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}const _i=new WeakMap;function wy(e){var t;return ji(e)&&!!((t=_i.get(e))!=null&&t[0])}function yO(e){const t=_i.get(e);t!=null&&t[0]&&(t[0]=!1,t[1].forEach(n=>n()))}function lc(e,t){let n=_i.get(e);if(!n){n=[!0,new Set],_i.set(e,n);const o=()=>{n[0]=!1};e.then(o,o)}n[1].add(t)}function ji(e){return typeof(e==null?void 0:e.then)=="function"}function Ty(e,t,n){if(!n.p.has(e)){n.p.add(e);const o=()=>n.p.delete(e);t.then(o,o)}}function Py(e,t,n){var o;const r=new Set;for(const i of((o=n.get(e))==null?void 0:o.t)||[])r.add(i);for(const i of t.p)r.add(i);return r}const bO=(e,t,...n)=>t.read(...n),vO=(e,t,...n)=>t.write(...n),xO=(e,t)=>{if(t.INTERNAL_onInit)return t.INTERNAL_onInit(e);if(t.unstable_onInit)return console.warn("[DEPRECATED] atom.unstable_onInit is renamed to atom.INTERNAL_onInit."),t.unstable_onInit(e)},SO=(e,t,n)=>{var o;return(o=t.onMount)==null?void 0:o.call(t,n)},CO=(e,t)=>{var n;const o=Nt(e),r=o[0],i=o[6],a=o[9];if((An?"production":void 0)!=="production"&&!t)throw new Error("Atom is undefined or null");let l=r.get(t);return l||(l={d:new Map,p:new Set,n:0},r.set(t,l),(n=i.i)==null||n.call(i,t),a==null||a(e,t)),l},wO=e=>{const t=Nt(e),n=t[1],o=t[3],r=t[4],i=t[5],a=t[6],l=t[13],c=[],u=d=>{try{d()}catch(f){c.push(f)}};do{a.f&&u(a.f);const d=new Set,f=d.add.bind(d);o.forEach(p=>{var h;return(h=n.get(p))==null?void 0:h.l.forEach(f)}),o.clear(),i.forEach(f),i.clear(),r.forEach(f),r.clear(),d.forEach(u),o.size&&l(e)}while(o.size||i.size||r.size);if(c.length)throw new AggregateError(c)},TO=e=>{const t=Nt(e),n=t[1],o=t[2],r=t[3],i=t[11],a=t[14],l=t[17],c=[],u=new WeakSet,d=new WeakSet,f=Array.from(r);for(;f.length;){const p=f[f.length-1],h=i(e,p);if(d.has(p)){f.pop();continue}if(u.has(p)){if(o.get(p)===h.n)c.push([p,h]);else if((An?"production":void 0)!=="production"&&o.has(p))throw new Error("[Bug] invalidated atom exists");d.add(p),f.pop();continue}u.add(p);for(const m of Py(p,h,n))u.has(m)||f.push(m)}for(let p=c.length-1;p>=0;--p){const[h,m]=c[p];let g=!1;for(const y of m.d.keys())if(y!==h&&r.has(y)){g=!0;break}g&&(a(e,h),l(e,h)),o.delete(h)}},cc=new WeakSet,PO=(e,t)=>{var n,o;const r=Nt(e),i=r[1],a=r[2],l=r[3],c=r[6],u=r[7],d=r[11],f=r[12],p=r[13],h=r[14],m=r[16],g=r[17],y=r[20],v=d(e,t);if(kp(v)){if(i.has(t)&&a.get(t)!==v.n)return v;let D=!1;for(const[$,j]of v.d)if(h(e,$).n!==j){D=!0;break}if(!D)return v}v.d.clear();let w=!0;function x(){i.has(t)&&(g(e,t),p(e),f(e))}function S(D){var $;if(D===t){const C=d(e,D);if(!kp(C))if(Cy(D))y(e,D,D.init);else throw new Error("no atom init");return Ni(C)}const j=h(e,D);try{return Ni(j)}finally{v.d.set(D,j.n),wy(v.v)&&Ty(t,v.v,j),i.has(t)&&(($=i.get(D))==null||$.t.add(t)),w||x()}}let T,E;const M={get signal(){return T||(T=new AbortController),T.signal},get setSelf(){return(An?"production":void 0)!=="production"&&!ac(t)&&console.warn("setSelf function cannot be used with read-only atom"),!E&&ac(t)&&(E=(...D)=>{if((An?"production":void 0)!=="production"&&w&&console.warn("setSelf function cannot be called in sync"),!w)try{return m(e,t,...D)}finally{p(e),f(e)}}),E}},_=v.n;try{(An?"production":void 0)!=="production"&&cc.delete(e);const D=u(e,t,S,M);return(An?"production":void 0)!=="production"&&cc.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),y(e,t,D),ji(D)&&(lc(D,()=>T==null?void 0:T.abort()),D.then(x,x)),(n=c.r)==null||n.call(c,t),v}catch(D){return delete v.v,v.e=D,++v.n,v}finally{w=!1,_!==v.n&&a.get(t)===_&&(a.set(t,v.n),l.add(t),(o=c.c)==null||o.call(c,t))}},EO=(e,t)=>{const n=Nt(e),o=n[1],r=n[2],i=n[11],a=[t];for(;a.length;){const l=a.pop(),c=i(e,l);for(const u of Py(l,c,o)){const d=i(e,u);r.set(u,d.n),a.push(u)}}},MO=(e,t,...n)=>{const o=Nt(e),r=o[3],i=o[6],a=o[8],l=o[11],c=o[12],u=o[13],d=o[14],f=o[15],p=o[16],h=o[17],m=o[20];let g=!0;const y=w=>Ni(d(e,w)),v=(w,...x)=>{var S;const T=l(e,w);try{if(w===t){if(!Cy(w))throw new Error("atom not writable");(An?"production":void 0)!=="production"&&cc.add(e);const E=T.n,M=x[0];m(e,w,M),h(e,w),E!==T.n&&(r.add(w),f(e,w),(S=i.c)==null||S.call(i,w));return}else return p(e,w,...x)}finally{g||(u(e),c(e))}};try{return a(e,t,y,v,...n)}finally{g=!1}},OO=(e,t)=>{var n;const o=Nt(e),r=o[1],i=o[3],a=o[6],l=o[11],c=o[15],u=o[18],d=o[19],f=l(e,t),p=r.get(t);if(p&&!wy(f.v)){for(const[h,m]of f.d)if(!p.d.has(h)){const g=l(e,h);u(e,h).t.add(t),p.d.add(h),m!==g.n&&(i.add(h),c(e,h),(n=a.c)==null||n.call(a,h))}for(const h of p.d)if(!f.d.has(h)){p.d.delete(h);const m=d(e,h);m==null||m.t.delete(t)}}},kO=(e,t)=>{var n;const o=Nt(e),r=o[1],i=o[4],a=o[6],l=o[10],c=o[11],u=o[12],d=o[13],f=o[14],p=o[16],h=o[18],m=c(e,t);let g=r.get(t);if(!g){f(e,t);for(const y of m.d.keys())h(e,y).t.add(t);if(g={l:new Set,d:new Set(m.d.keys()),t:new Set},r.set(t,g),ac(t)){const y=()=>{let v=!0;const w=(...x)=>{try{return p(e,t,...x)}finally{v||(d(e),u(e))}};try{const x=l(e,t,w);x&&(g.u=()=>{v=!0;try{x()}finally{v=!1}})}finally{v=!1}};i.add(y)}(n=a.m)==null||n.call(a,t)}return g},DO=(e,t)=>{var n,o;const r=Nt(e),i=r[1],a=r[5],l=r[6],c=r[11],u=r[19],d=c(e,t);let f=i.get(t);if(!f||f.l.size)return f;let p=!1;for(const h of f.t)if((n=i.get(h))!=null&&n.d.has(t)){p=!0;break}if(!p){f.u&&a.add(f.u),f=void 0,i.delete(t);for(const h of d.d.keys()){const m=u(e,h);m==null||m.t.delete(t)}(o=l.u)==null||o.call(l,t);return}return f},RO=(e,t,n)=>{const o=Nt(e)[11],r=o(e,t),i="v"in r,a=r.v;if(ji(n))for(const l of r.d.keys())Ty(t,n,o(e,l));r.v=n,delete r.e,(!i||!Object.is(a,r.v))&&(++r.n,ji(a)&&yO(a))},IO=(e,t)=>{const n=Nt(e)[14];return Ni(n(e,t))},AO=(e,t,...n)=>{const o=Nt(e),r=o[12],i=o[13],a=o[16];try{return a(e,t,...n)}finally{i(e),r(e)}},NO=(e,t,n)=>{const o=Nt(e),r=o[12],i=o[18],a=o[19],c=i(e,t).l;return c.add(n),r(e),()=>{c.delete(n),a(e,t),r(e)}},Ey=new WeakMap,Nt=e=>{const t=Ey.get(e);if((An?"production":void 0)!=="production"&&!t)throw new Error("Store must be created by buildStore to read its building blocks");return t};function _O(...e){const t={get(o){const r=Nt(t)[21];return r(t,o)},set(o,...r){const i=Nt(t)[22];return i(t,o,...r)},sub(o,r){const i=Nt(t)[23];return i(t,o,r)}},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},bO,vO,xO,SO,CO,wO,TO,PO,EO,MO,OO,kO,DO,RO,IO,AO,NO,void 0].map((o,r)=>e[r]||o);return Ey.set(t,Object.freeze(n)),t}const My={};let jO=0;function yu(e,t){const n=`atom${++jO}`,o={toString(){return(My?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof e=="function"?o.read=e:(o.init=e,o.read=LO,o.write=$O),o}function LO(e){return e(this)}function $O(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}function VO(){return _O()}let jr;function FO(){return jr||(jr=VO(),(My?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=jr),globalThis.__JOTAI_DEFAULT_STORE__!==jr&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),jr}const BO={},zO=A.createContext(void 0);function Oy(e){return A.useContext(zO)||FO()}const uc=e=>typeof(e==null?void 0:e.then)=="function",dc=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},WO=A.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(dc(e),e)}),pl=new WeakMap,Dp=(e,t)=>{let n=pl.get(e);return n||(n=new Promise((o,r)=>{let i=e;const a=u=>d=>{i===u&&o(d)},l=u=>d=>{i===u&&r(d)},c=()=>{try{const u=t();uc(u)?(pl.set(u,n),i=u,u.then(a(u),l(u)),lc(u,c)):o(u)}catch(u){r(u)}};e.then(a(e),l(e)),lc(e,c)}),pl.set(e,n)),n};function ky(e,t){const{delay:n,unstable_promiseStatus:o=!A.use}={},r=Oy(),[[i,a,l],c]=A.useReducer(d=>{const f=r.get(e);return Object.is(d[0],f)&&d[1]===r&&d[2]===e?d:[f,r,e]},void 0,()=>[r.get(e),r,e]);let u=i;if((a!==r||l!==e)&&(c(),u=r.get(e)),A.useEffect(()=>{const d=r.sub(e,()=>{if(o)try{const f=r.get(e);uc(f)&&dc(Dp(f,()=>r.get(e)))}catch{}if(typeof n=="number"){setTimeout(c,n);return}c()});return c(),d},[r,e,n,o]),A.useDebugValue(u),uc(u)){const d=Dp(u,()=>r.get(e));return o&&dc(d),WO(d)}return u}function UO(e,t){const n=Oy();return A.useCallback((...r)=>{if((BO?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...r)},[n,e])}function Li(e,t){return[ky(e),UO(e)]}const Dy=yu(0),Ry=yu(!0),HO=yu(null),bu=A.createContext(null),Iy=({children:e})=>{const t=A.useRef(null),[n,o]=Li(Dy),[r,i]=Li(Ry),[a,l]=A.useState(!1),[c,u]=A.useState(0),[d,f]=A.useState(!1);A.useEffect(()=>{const x=t.current;if(!x)return;const S=()=>{if(o(x.currentTime),x.seekable&&x.seekable.length>0){const M=x.seekable.end(x.seekable.length-1);u(M),f(M>0)}else x.duration&&isFinite(x.duration)&&(u(x.duration),f(!0))},T=()=>l(!0),E=()=>l(!1);return x.addEventListener("timeupdate",S),x.addEventListener("durationchange",S),x.addEventListener("loadedmetadata",S),x.addEventListener("progress",S),x.addEventListener("play",T),x.addEventListener("pause",E),S(),()=>{x.removeEventListener("timeupdate",S),x.removeEventListener("durationchange",S),x.removeEventListener("loadedmetadata",S),x.removeEventListener("progress",S),x.removeEventListener("play",T),x.removeEventListener("pause",E)}},[o]);const p=A.useCallback(x=>{o(x)},[o]),h=A.useCallback(x=>{i(x)},[i]),m=A.useCallback(x=>{const S=t.current;!S||!d||(S.currentTime=x,o(x),i(!1))},[d,o,i]),g=A.useCallback(async()=>{const x=t.current;if(x)try{await x.play(),l(!0)}catch(S){console.error("Failed to play video:",S)}},[]),y=A.useCallback(()=>{const x=t.current;x&&(x.pause(),l(!1))},[]),v=A.useCallback(()=>{a?y():g()},[a,g,y]),w={videoRef:t,currentTime:n,setCurrentTime:p,isLive:r,setIsLive:h,seekTo:m,play:g,pause:y,togglePlay:v,isPlaying:a,duration:c,canSeek:d};return b.jsx(bu.Provider,{value:w,children:e})},vu=()=>A.useContext(bu),YO=()=>{const e=A.useContext(bu);if(!e)throw new Error("useVideoControlRequired must be used within a VideoControlProvider. Wrap your VideoPlayer and VideoTimeline with <VideoControlProvider>.");return e},qO=({stream:e,availableQualities:t,initialQuality:n,autoPlay:o,liveThresholdSeconds:r,allowPlaybackRateForStream:i})=>{const a=A.useRef(null),l=vu(),c=A.useRef(null),u=A.useCallback(K=>{c.current=K,l!=null&&l.videoRef&&(l.videoRef.current=K)},[l]),d=A.useMemo(()=>{if(!t||!t.length)return null;if(n){const K=t.find(te=>te.value===n);if(K)return K}return t[0]},[t,n]),[f,p]=A.useState(d),[h,m]=A.useState(!1),[g,y]=A.useState(!0),[v,w]=A.useState(!1),[x,S]=A.useState(0),[T,E]=A.useState(0),[M,_]=A.useState(1),[D,$]=A.useState(1),[j,C]=A.useState(0),[L,k]=A.useState(0),I=A.useRef(!1),O=A.useRef({x:0,y:0}),N=A.useRef({x:0,y:0}),F=A.useRef(!1),[V,B]=A.useState(!1),[R,Y]=A.useState(!0),G=(f==null?void 0:f.stream)??e??null,Z=(f==null?void 0:f.src)??null,X=!!!G||i;A.useEffect(()=>{p(d)},[d]);const Q=A.useCallback(()=>{const K=c.current;if(!K)return;if(!K.seekable||K.seekable.length===0){y(!0),w(!1),l&&l.setIsLive(!0);return}const te=gu(K),z=Math.max(0,te-K.currentTime);E(te),S(K.currentTime),w(te>0);const H=z<=(r??2);y(H),l&&(l.setCurrentTime(K.currentTime),l.setIsLive(H))},[r,l]);return A.useEffect(()=>{const K=c.current;if(!K)return;const te=()=>m(!0),z=()=>m(!1),H=()=>Y(!0),W=()=>Y(!0),ee=()=>Y(!1),J=()=>Y(!1);return K.addEventListener("play",te),K.addEventListener("pause",z),K.addEventListener("waiting",H),K.addEventListener("loadstart",W),K.addEventListener("canplay",ee),K.addEventListener("playing",J),K.addEventListener("timeupdate",Q),K.addEventListener("durationchange",Q),K.addEventListener("loadedmetadata",Q),K.addEventListener("progress",Q),()=>{K.removeEventListener("play",te),K.removeEventListener("pause",z),K.removeEventListener("waiting",H),K.removeEventListener("loadstart",W),K.removeEventListener("canplay",ee),K.removeEventListener("playing",J),K.removeEventListener("timeupdate",Q),K.removeEventListener("durationchange",Q),K.removeEventListener("loadedmetadata",Q),K.removeEventListener("progress",Q)}},[Q]),A.useEffect(()=>{const K=c.current;K&&(Y(!0),G?(K.srcObject!==G&&(K.srcObject=G),K.getAttribute("src")&&K.removeAttribute("src")):Z?(K.srcObject&&(K.srcObject=null),K.src!==Z&&(K.src=Z,K.load())):(K.srcObject&&(K.srcObject=null),K.getAttribute("src")&&K.removeAttribute("src")),o&&K.play().then(()=>{}).catch(()=>{}))},[G,Z,o]),A.useEffect(()=>{const K=c.current;K&&(X?K.playbackRate=M:(K.playbackRate=1,_(1)))},[M,X]),A.useEffect(()=>{D<=1&&(C(0),k(0))},[D]),A.useEffect(()=>{const K=()=>{B(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",K),()=>{document.removeEventListener("fullscreenchange",K)}},[]),A.useEffect(()=>{if(D<=1)return;const K=a.current;K&&requestAnimationFrame(()=>{const te=K.getBoundingClientRect(),z=Zr(j,L,D,te.width,te.height);C(z.panX),k(z.panY)})},[V]),{containerRef:a,videoRef:c,setVideoRef:u,selectedQuality:f,setSelectedQuality:p,isPlaying:h,isLive:g,canSeek:v,currentTime:x,setCurrentTime:S,seekableEnd:T,playbackRate:M,setPlaybackRate:_,zoom:D,setZoom:$,panX:j,setPanX:C,panY:L,setPanY:k,isDraggingRef:I,dragStartRef:O,panStartRef:N,didDragRef:F,isFullscreen:V,isLoading:R,canAdjustPlaybackRate:X,updateLiveStatus:Q}},GO="_container_9hh2y_1",KO="_loader_9hh2y_78",ZO="_spinner_9hh2y_88",XO="_video_9hh2y_111",QO="_videoZoomed_9hh2y_119",JO="_timestampOverlay_9hh2y_127",ek="_timestampText_9hh2y_140",tk="_controlsOverlay_9hh2y_152",nk="_timeline_9hh2y_173",ok="_controlsRow_9hh2y_180",rk="_controlGroup_9hh2y_198",sk="_iconButton_9hh2y_215",ik="_seekButton_9hh2y_233",ak="_menuButton_9hh2y_260",lk="_liveBadge_9hh2y_281",ck="_liveBadgeActive_9hh2y_298",uk="_liveBadgeInactive_9hh2y_303",dk="_recordingBadge_9hh2y_308",fk="_recordingDot_9hh2y_327",pk="_emptyState_9hh2y_356",hk="_emptyStateIcon_9hh2y_368",mk="_emptyStateText_9hh2y_373",gk="_controlMenuWrapper_9hh2y_379",je={container:GO,loader:KO,spinner:ZO,video:XO,videoZoomed:QO,timestampOverlay:JO,timestampText:ek,controlsOverlay:tk,timeline:nk,controlsRow:ok,controlGroup:rk,iconButton:sk,seekButton:ik,menuButton:ak,liveBadge:lk,liveBadgeActive:ck,liveBadgeInactive:uk,recordingBadge:dk,recordingDot:fk,emptyState:pk,emptyStateIcon:hk,emptyStateText:mk,controlMenuWrapper:gk},hl=({label:e,valueLabel:t,selectedValue:n,options:o,onChange:r,disabled:i,ariaLabel:a})=>{const[l,c]=A.useState(null),u=!!l;return b.jsxs(b.Fragment,{children:[b.jsx(q.ButtonBase,{disabled:i,className:`${je.menuButton} ${je.controlMenuWrapper}`,"aria-label":a,onClick:d=>c(d.currentTarget),children:e?`${e}: ${t}`:t}),b.jsx(q.Menu,{anchorEl:l,open:u,onClose:()=>c(null),children:o.map(d=>b.jsx(q.MenuItem,{selected:d.value===n,disabled:d.disabled,onClick:()=>{r(d.value),c(null)},children:d.label},`${e}-${String(d.value)}`))})]})},yk=e=>()=>{const t=e.current;t&&(t.paused?t.play().catch(()=>{}):t.pause())},bk=(e,t,n)=>o=>{const r=e.current;if(!r||!t)return;const i=gu(r),a=Math.min(Math.max(r.currentTime+o,0),i);r.currentTime=a,n()},vk=e=>()=>{e.current&&(document.fullscreenElement?document.exitFullscreen().catch(()=>{}):e.current.requestFullscreen().catch(()=>{}))},xk=(e,t,n)=>o=>{const r=e.find(i=>i.value===o)??null;t(r),n==null||n(r)},Sk=(e,t)=>(n,o)=>{if(!e)return;const r=Array.isArray(o)?o[0]:o;t(r)},Ck=(e,t,n)=>(o,r)=>{const i=e.current;if(!i||!t)return;const a=Array.isArray(r)?r[0]:r,l=gu(i);i.currentTime=Math.min(Math.max(a,0),l),n()},xu=({stream:e=null,availableQualities:t=[],initialQuality:n,onQualityChange:o,autoPlay:r=!0,playsInline:i=!0,muted:a=!0,poster:l,className:c,sx:u,liveThresholdSeconds:d=2,allowPlaybackRateForStream:f=!1,playbackRates:p=[.5,1,1.5,2],zoomLevels:h=[1,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2,2.1,2.2,2.3,2.4,2.5,2.6,2.7,2.8,2.9,3],width:m,height:g,aspectRatio:y="16 / 9",showTimestamp:v=!0,showTimeline:w=!0,isRecording:x=!1,recordingLabel:S="Gravação",borderRadius:T,loading:E,unavailable:M=!1,unavailableIcon:_,unavailableMessage:D="O vídeo não está disponível."})=>{const j=ae.useTheme().palette.mode==="dark",[C,L]=A.useState(""),[k,I]=A.useState(!0),O=A.useRef(null);A.useEffect(()=>{if(!v)return;const ve=()=>{const Ve=new Date,_t=String(Ve.getDate()).padStart(2,"0"),On=String(Ve.getMonth()+1).padStart(2,"0"),uo=Ve.getFullYear(),fo=["Dom","Seg","Ter","Qua","Qui","Sex","Sab"][Ve.getDay()],Gt=String(Ve.getHours()).padStart(2,"0"),Bo=String(Ve.getMinutes()).padStart(2,"0"),La=String(Ve.getSeconds()).padStart(2,"0");L(`${_t}-${On}-${uo}, ${fo} ${Gt}:${Bo}:${La}`)};ve();const Ne=setInterval(ve,1e3);return()=>clearInterval(Ne)},[v]),A.useEffect(()=>{const ve=N.current;if(!ve)return;const Ne=()=>{O.current&&(clearTimeout(O.current),O.current=null),I(!0)},Ve=()=>{O.current=setTimeout(()=>{I(!1)},1e4)},_t=()=>{k||I(!0),O.current&&clearTimeout(O.current),O.current=setTimeout(()=>{I(!1)},1e4)};return ve.addEventListener("mouseenter",Ne),ve.addEventListener("mouseleave",Ve),ve.addEventListener("mousemove",_t),()=>{ve.removeEventListener("mouseenter",Ne),ve.removeEventListener("mouseleave",Ve),ve.removeEventListener("mousemove",_t),O.current&&clearTimeout(O.current)}},[k]);const{containerRef:N,videoRef:F,setVideoRef:V,selectedQuality:B,setSelectedQuality:R,isPlaying:Y,isLive:G,canSeek:Z,currentTime:re,setCurrentTime:X,seekableEnd:Q,playbackRate:K,setPlaybackRate:te,zoom:z,setZoom:H,panX:W,setPanX:ee,panY:J,setPanY:ie,isDraggingRef:ne,dragStartRef:de,panStartRef:se,didDragRef:ue,isFullscreen:le,isLoading:fe,canAdjustPlaybackRate:me,updateLiveStatus:Ie}=qO({stream:e,availableQualities:t,initialQuality:n,autoPlay:r,liveThresholdSeconds:d,allowPlaybackRateForStream:f}),Oe=yk(F),qe=bk(F,Z,Ie),tt=vk(N),St=xk(t,R,o),Tt=Sk(Z,X),Ee=Ck(F,Z,Ie),Me=A.useCallback(ve=>{if(H(ve),ve<=1)ee(0),ie(0);else{const Ne=N.current;if(Ne){const Ve=Ne.getBoundingClientRect(),_t=Zr(W,J,ve,Ve.width,Ve.height);ee(_t.panX),ie(_t.panY)}}},[W,J,N,H,ee,ie]),Se=A.useCallback(ve=>{if(ue.current){ue.current=!1;return}const Ne=N.current;if(!Ne)return;const Ve=Ne.getBoundingClientRect(),_t=ve.clientX-Ve.left-Ve.width/2,On=ve.clientY-Ve.top-Ve.height/2,fo=(h.indexOf(z)+1)%h.length,Gt=h[fo];if(Gt<=1){H(1),ee(0),ie(0);return}const Bo=-_t*(1-1/Gt),La=-On*(1-1/Gt),vd=Zr(Bo,La,Gt,Ve.width,Ve.height);H(Gt),ee(vd.panX),ie(vd.panY)},[z,h,N,H,ee,ie,ue]),Be=A.useCallback(ve=>{z<=1||(ve.preventDefault(),ne.current=!0,ue.current=!1,de.current={x:ve.clientX,y:ve.clientY},se.current={x:W,y:J})},[z,W,J,ne,ue,de,se]),ze=A.useCallback(ve=>{if(!ne.current||z<=1)return;ve.preventDefault();const Ne=ve.clientX-de.current.x,Ve=ve.clientY-de.current.y;(Math.abs(Ne)>3||Math.abs(Ve)>3)&&(ue.current=!0);const _t=N.current;if(!_t)return;const On=_t.getBoundingClientRect(),uo=se.current.x+Ne/z,fo=se.current.y+Ve/z,Gt=Zr(uo,fo,z,On.width,On.height);ee(Gt.panX),ie(Gt.panY)},[z,N,ne,de,se,ue,ee,ie]),nt=A.useCallback(()=>{ne.current=!1},[ne]),Je=A.useCallback(ve=>{if(z<=1||ve.touches.length!==1)return;const Ne=ve.touches[0];ne.current=!0,ue.current=!1,de.current={x:Ne.clientX,y:Ne.clientY},se.current={x:W,y:J}},[z,W,J,ne,ue,de,se]),Vt=A.useCallback(ve=>{if(!ne.current||z<=1||ve.touches.length!==1)return;const Ne=ve.touches[0],Ve=Ne.clientX-de.current.x,_t=Ne.clientY-de.current.y;(Math.abs(Ve)>3||Math.abs(_t)>3)&&(ue.current=!0);const On=N.current;if(!On)return;const uo=On.getBoundingClientRect(),fo=se.current.x+Ve/z,Gt=se.current.y+_t/z,Bo=Zr(fo,Gt,z,uo.width,uo.height);ee(Bo.panX),ie(Bo.panY)},[z,N,ne,de,se,ue,ee,ie]),ke=A.useCallback(()=>{ne.current=!1},[ne]);A.useEffect(()=>{const ve=F.current;if(!ve)return;const Ne=Ve=>{z>1&&ne.current&&Ve.preventDefault()};return ve.addEventListener("touchmove",Ne,{passive:!1}),()=>{ve.removeEventListener("touchmove",Ne)}},[z,F,ne]);const ut=h.map(ve=>({value:ve,label:`${Math.round(ve*100)}%`})),yt=p.map(ve=>({value:ve,label:`${ve}x`})),Et=t.map(ve=>({value:ve.value,label:ve.label})),hn=(B==null?void 0:B.label)??"Auto",ge=`${Math.round(z*100)}%`,Ae=`${K}x`,at=Z&&Q>0,mn=gO(m,g,y),kr=T!=null?{...mn,"--vp-radius":typeof T=="number"?`${T}px`:T}:mn;return b.jsx(q.Box,{ref:N,className:`${je.container} ${c||""}`.trim(),"data-theme":j?"dark":"light",style:kr,sx:u,children:M?b.jsxs(q.Box,{className:je.emptyState,children:[_??b.jsx(kt.PlayArrow,{className:je.emptyStateIcon}),typeof D=="string"?b.jsx(q.Typography,{className:je.emptyStateText,children:D}):D]}):b.jsxs(b.Fragment,{children:[(E??fe)&&b.jsx(q.Box,{className:je.loader,children:b.jsx("span",{className:je.spinner})}),b.jsx("video",{ref:V,className:`${je.video} ${z>1?je.videoZoomed:""}`.trim(),autoPlay:r,playsInline:i,muted:a,poster:l,style:{transform:z>1?`scale(${z}) translate(${W}px, ${J}px)`:void 0},onMouseDown:Be,onMouseMove:ze,onMouseUp:nt,onMouseLeave:nt,onClick:Se,onTouchStart:Je,onTouchMove:Vt,onTouchEnd:ke}),v&&C&&b.jsx(q.Box,{className:je.timestampOverlay,children:b.jsx(q.Typography,{variant:"body2",className:je.timestampText,children:C})}),x&&!k&&b.jsx(q.Box,{sx:{position:"absolute",bottom:16,left:20,zIndex:10},children:b.jsxs("span",{className:je.recordingBadge,children:[b.jsx("span",{className:je.recordingDot}),S]})}),G&&!x&&!k&&b.jsx(q.Box,{sx:{position:"absolute",bottom:16,left:20,zIndex:10},children:b.jsx("span",{className:`${je.liveBadge} ${je.liveBadgeActive}`,children:"ao vivo"})}),b.jsxs(q.Box,{className:je.controlsOverlay,sx:{opacity:k?1:0,visibility:k?"visible":"hidden",transition:"opacity 0.3s ease, visibility 0.3s ease"},children:[w&&b.jsx(q.Box,{className:je.timeline,children:b.jsx(q.Slider,{size:"small",min:0,max:at?Q:1,step:1,value:at?re:0,disabled:!at,onChange:Tt,onChangeCommitted:Ee,"aria-label":"Linha do tempo do video",sx:{color:"var(--vp-slider-color)","& .MuiSlider-thumb":{width:12,height:12,backgroundColor:"var(--vp-slider-color)"},"& .MuiSlider-track":{border:"none",backgroundColor:"var(--vp-slider-color)"},"& .MuiSlider-rail":{backgroundColor:"var(--vp-slider-rail)",opacity:1}}})}),b.jsxs(q.Box,{className:je.controlsRow,children:[b.jsxs(q.Box,{className:je.controlGroup,children:[x?b.jsxs("span",{className:je.recordingBadge,children:[b.jsx("span",{className:je.recordingDot}),S]}):b.jsx("span",{className:`${je.liveBadge} ${G?je.liveBadgeActive:je.liveBadgeInactive}`,children:"ao vivo"}),b.jsx("button",{className:je.seekButton,onClick:()=>qe(-15),"aria-label":"Voltar 15 segundos",children:"15s"}),b.jsx(q.IconButton,{className:je.iconButton,onClick:()=>qe(-15),"aria-label":"Recuar 15 segundos",children:b.jsx(kt.FastRewind,{fontSize:"small"})}),b.jsx(q.IconButton,{className:je.iconButton,onClick:Oe,"aria-label":"Play/Pause",children:Y?b.jsx(kt.Pause,{fontSize:"small"}):b.jsx(kt.PlayArrow,{fontSize:"small"})}),b.jsx(q.IconButton,{className:je.iconButton,onClick:()=>qe(15),"aria-label":"Avançar 15 segundos",children:b.jsx(kt.FastForward,{fontSize:"small"})}),b.jsx("button",{className:je.seekButton,onClick:()=>qe(15),"aria-label":"Avançar 15 segundos",children:"15s"})]}),b.jsxs(q.Box,{className:je.controlGroup,children:[b.jsx(hl,{label:"",valueLabel:Ae,selectedValue:K,options:yt,ariaLabel:"Selecionar velocidade de reprodução",onChange:te,disabled:!me}),Et.length>0?b.jsx(hl,{label:"",valueLabel:hn,selectedValue:(B==null?void 0:B.value)??"auto",options:Et,ariaLabel:"Selecionar qualidade do vídeo",onChange:St}):null,b.jsx(hl,{label:"",valueLabel:ge,selectedValue:z,options:ut,ariaLabel:"Selecionar zoom do vídeo",onChange:Me}),b.jsx(q.IconButton,{className:je.iconButton,onClick:tt,"aria-label":"Fullscreen",children:le?b.jsx(kt.FullscreenExit,{fontSize:"small"}):b.jsx(kt.Fullscreen,{fontSize:"small"})})]})]})]})]})})};xu.displayName="VideoPlayer";const wk=gt(b.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),Tk=gt(b.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),Pk=gt(b.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5z"}),"FileDownloadOutlined"),Ek=gt(b.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V10h16zm0-13H4V5h16z"}),"CalendarTodayOutlined");function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},U.apply(null,arguments)}function Pe(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function Mk(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:ps(t.components[n].defaultProps,o)}function Ok(e,t,n,o,r){const[i,a]=P.useState(()=>r&&n?n(e).matches:o?o(e).matches:t);return wt(()=>{if(!n)return;const l=n(e),c=()=>{a(l.matches)};return c(),l.addEventListener("change",c),()=>{l.removeEventListener("change",c)}},[e,n]),i}const kk={...P},Ay=kk.useSyncExternalStore;function Dk(e,t,n,o,r){const i=P.useCallback(()=>t,[t]),a=P.useMemo(()=>{if(r&&n)return()=>n(e).matches;if(o!==null){const{matches:d}=o(e);return()=>d}return i},[i,e,o,r,n]),[l,c]=P.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const d=n(e);return[()=>d.matches,f=>(d.addEventListener("change",f),()=>{d.removeEventListener("change",f)})]},[i,n,e]);return Ay(c,l,a)}function Ny(e={}){const{themeId:t}=e;return function(o,r={}){let i=ex();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:c=a?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:d=!1}=Mk({name:"MuiUseMediaQuery",props:r,theme:i});process.env.NODE_ENV!=="production"&&typeof o=="function"&&i===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
109
+ `,this.renderedStyles.add("marker-pointer-events")}cleanup(){this.styleElement&&(this.styleElement.remove(),this.styleElement=null,this.renderedStyles.clear())}}const gO=new mO;function yO(e,t){var n;if(!(!((n=google==null?void 0:google.maps)===null||n===void 0)&&n.version))return;const o=google.maps.version.split("."),r=parseInt(o[0],10),i=parseInt(o[1],10);return r>e||r===e&&i>=t}const bO=_.createContext(null),vO={BOTTOM:["50%","100%"]},cy=_.forwardRef((e,t)=>{const{children:n,style:o,className:r,anchorPoint:i}=e,[a,l]=SO(e),c=_.useMemo(()=>a?{marker:a}:null,[a]);return _.useImperativeHandle(t,()=>a,[a]),l?_.createElement(bO.Provider,{value:c},er.createPortal(_.createElement(xO,{anchorPoint:i,styles:o,className:r},n),l)):null});cy.displayName="AdvancedMarker";function ac(e){return e.nodeType===Node.ELEMENT_NODE}const xO=({children:e,styles:t,className:n})=>_.createElement("div",{className:n,style:t},e);function SO(e){const[t,n]=_.useState(null),[o,r]=_.useState(null),i=fa(),a=hO("marker"),{children:l,onClick:c,className:u,onMouseEnter:d,onMouseLeave:f,onDrag:p,onDragStart:h,onDragEnd:m,collisionBehavior:g,clickable:y,draggable:v,position:C,title:x,zIndex:S,anchorPoint:T,anchorLeft:E,anchorTop:M}=e,A=_.Children.count(l);return _.useEffect(()=>{if(!i||!a)return;const k=new a.AdvancedMarkerElement;k.map=i,n(k);let $=null;return A>0&&($=document.createElement("div"),k.content=$,r($)),()=>{k.map=null,$==null||$.remove(),n(null),r(null)}},[i,a,A]),_.useEffect(()=>{!(t!=null&&t.content)||!ac(t.content)||A>0||(t.content.className=u??"")},[t,u,A]),wO(t,T,E,M,A>0),ni(t,"position",C),ni(t,"title",x??""),ni(t,"zIndex",S),ni(t,"collisionBehavior",g),_.useEffect(()=>{t&&(v!==void 0?t.gmpDraggable=v:p||h||m?t.gmpDraggable=!0:t.gmpDraggable=!1)},[t,v,p,m,h]),_.useEffect(()=>{if(!t)return;const k=y!==void 0||!!c||!!d||!!f;t.gmpClickable=k,k&&(t!=null&&t.content)&&ac(t.content)&&(t.content.style.pointerEvents="all",c&&(t.content.style.cursor="pointer"))},[t,y,c,d,f]),ti(t,"click",c),ti(t,"drag",p),ti(t,"dragstart",h),ti(t,"dragend",m),wp(t==null?void 0:t.element,"mouseenter",d),wp(t==null?void 0:t.element,"mouseleave",f),[t,o]}function wO(e,t,n,o,r){_.useEffect(()=>{if(!e||!r)return;const i=yO(3,62),a=e.content;if(!(!a||!ac(a))){if(n!==void 0||o!==void 0){i||console.warn(`AdvancedMarker: The anchorLeft and anchorTop props are only supported in Google Maps API version 3.62 and above. The current version is ${google.maps.version}.`),e.anchorLeft=n,e.anchorTop=o,t!==void 0&&console.warn("AdvancedMarker: the anchorPoint prop is ignored when anchorLeft and/or anchorTop are set.");return}if(t!==void 0){const[l,c]=t??vO.BOTTOM,u=`calc(-1 * ${l})`,d=`calc(-1 * ${c})`;i?(e.anchorLeft=u,e.anchorTop=d,a.style.transform=""):(a.style.transform=`translate(50%, 100%) translate(${u}, ${d})`,e.dataset.origin="rgm",gO.addAdvancedMarkerPointerEventsOverwrite())}}},[e,t,n,o,r])}function CO(e){const[t,n]=_.useState(null),o=fa(),{onClick:r,onDrag:i,onDragStart:a,onDragEnd:l,onMouseOver:c,onMouseOut:u}=e,d=hr(e,["onClick","onDrag","onDragStart","onDragEnd","onMouseOver","onMouseOut"]),{position:f,draggable:p}=d;return _.useEffect(()=>{if(!o){o===void 0&&console.error("<Marker> has to be inside a Map component.");return}const h=new google.maps.Marker(d);return h.setMap(o),n(h),()=>{h.setMap(null),n(null)}},[o]),_.useEffect(()=>{if(!t)return;const h=t,m=google.maps.event;return r&&m.addListener(h,"click",r),i&&m.addListener(h,"drag",i),a&&m.addListener(h,"dragstart",a),l&&m.addListener(h,"dragend",l),c&&m.addListener(h,"mouseover",c),u&&m.addListener(h,"mouseout",u),t.setDraggable(!!p),()=>{m.clearInstanceListeners(h)}},[t,p,r,i,a,l,c,u]),_.useEffect(()=>{t&&d&&t.setOptions(d)},[t,d]),_.useEffect(()=>{p||!f||!t||t.setPosition(f)},[p,f,t]),t}const TO=_.forwardRef((e,t)=>{const n=CO(e);return _.useImperativeHandle(t,()=>n,[n]),_.createElement(_.Fragment,null)});TO.displayName="Marker";const uy=_.createContext(void 0),pu=()=>{const e=_.useContext(uy);if(!e)throw new Error("useGoogleMapContext must be used within GoogleMap component");return e},hu=({children:e})=>{const t=fa(),[n,o]=_.useState(13),[r,i]=_.useState(null);_.useEffect(()=>{if(!t)return;const c=t.getZoom();c!==void 0&&o(c);const u=t.getBounds();if(u){const p=u.getNorthEast(),h=u.getSouthWest(),m=[h.lng(),h.lat(),p.lng(),p.lat()];i(m)}const d=t.addListener("zoom_changed",()=>{const p=t.getZoom();p!==void 0&&o(p)}),f=t.addListener("bounds_changed",()=>{const p=t.getBounds();if(p){const h=p.getNorthEast(),m=p.getSouthWest(),g=[m.lng(),m.lat(),h.lng(),h.lat()];i(g)}});return()=>{d&&google.maps.event.removeListener(d),f&&google.maps.event.removeListener(f)}},[t]);const a=(c,u=16)=>{t&&(t.setCenter(c),t.setZoom(u))},l=(c,u)=>{t&&t.fitBounds(c,u)};return t?b.jsx(uy.Provider,{value:{isLoaded:!0,map:t,currentZoom:n,bounds:r,zoomToPosition:a,fitBounds:l},children:e}):null};hu.displayName="MapContent";const PO=180,dy=()=>{const{map:e}=pu(),t=_.useRef(null),n=_.useRef(null);return _.useEffect(()=>{if(!e||!t.current)return;const o=new ResizeObserver(()=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{try{google.maps.event.trigger(e,"resize")}finally{n.current=null}},PO)});return o.observe(t.current),()=>{n.current&&clearTimeout(n.current),o.disconnect()}},[e]),b.jsx("div",{ref:t,"aria-hidden":!0,style:{position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none",visibility:"hidden"}})};dy.displayName="MapResizeHandler";const EO="_googleMap_1gh3l_1",MO="_container_1gh3l_14",OO="_errorContainer_1gh3l_29",oi={googleMap:EO,container:MO,errorContainer:OO},kO={lat:-26.3044,lng:-48.8487},DO=13,RO={disableDefaultUI:!0,zoomControl:!1,streetViewControl:!1,mapTypeControl:!1,fullscreenControl:!1,rotateControl:!1,scaleControl:!1,panControl:!1,clickableIcons:!1,keyboardShortcuts:!1},IO=({options:e,onLoad:t,children:n})=>{const o=fa();return _.useEffect(()=>{o&&(o.setOptions(RO),e&&o.setOptions(e),t&&t(o))},[o,e,t]),b.jsx(b.Fragment,{children:n})},fy=({center:e=kO,zoom:t=DO,className:n,children:o,apiKey:r,mapId:i,themeMode:a="light",options:l,onLoad:c,onError:u})=>{if(!r||!i)return b.jsx("div",{className:`${oi.container} ${oi.errorContainer} ${n||""}`,children:b.jsxs("div",{children:[b.jsx("p",{children:"Google Maps não configurado"}),b.jsx("p",{style:{fontSize:"14px",marginTop:"8px",opacity:.7},children:"As props apiKey e mapId são obrigatórias"})]})});const d=a==="dark"?"DARK":"LIGHT",f={defaultCenter:e,defaultZoom:t,mapId:i,className:oi.googleMap,colorScheme:d},p=`${i}-${d}`;return b.jsx(YM,{apiKey:r,onLoad:()=>{console.log("Google Maps API carregada com sucesso")},onError:h=>{console.error("Erro ao carregar Google Maps API:",h),u&&h instanceof Error&&u(h)},children:b.jsx("div",{className:`${oi.container} ${n||""}`,style:{width:"100%",height:"400px",minHeight:"400px",position:"relative"},children:b.jsx(ly,{...f,style:{width:"100%",height:"100%"},children:b.jsx(IO,{options:l,onLoad:c,children:b.jsxs(hu,{children:[b.jsx(dy,{}),o]})})},p)})})};fy.displayName="GoogleMap";const Cp=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],fl=1,Nr=8;class mu{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[n,o]=new Uint8Array(t,0,2);if(n!==219)throw new Error("Data does not appear to be in a KDBush format.");const r=o>>4;if(r!==fl)throw new Error(`Got v${r} data when expected v${fl}.`);const i=Cp[o&15];if(!i)throw new Error("Unrecognized array type.");const[a]=new Uint16Array(t,2,1),[l]=new Uint32Array(t,4,1);return new mu(l,a,i,t)}constructor(t,n=64,o=Float64Array,r){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+n,2),65535),this.ArrayType=o,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const i=Cp.indexOf(this.ArrayType),a=t*2*this.ArrayType.BYTES_PER_ELEMENT,l=t*this.IndexArrayType.BYTES_PER_ELEMENT,c=(8-l%8)%8;if(i<0)throw new Error(`Unexpected typed array class: ${o}.`);r&&r instanceof ArrayBuffer?(this.data=r,this.ids=new this.IndexArrayType(this.data,Nr,t),this.coords=new this.ArrayType(this.data,Nr+l+c,t*2),this._pos=t*2,this._finished=!0):(this.data=new ArrayBuffer(Nr+a+l+c),this.ids=new this.IndexArrayType(this.data,Nr,t),this.coords=new this.ArrayType(this.data,Nr+l+c,t*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(fl<<4)+i]),new Uint16Array(this.data,2,1)[0]=n,new Uint32Array(this.data,4,1)[0]=t)}add(t,n){const o=this._pos>>1;return this.ids[o]=o,this.coords[this._pos++]=t,this.coords[this._pos++]=n,o}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return lc(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,n,o,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:a,nodeSize:l}=this,c=[0,i.length-1,0],u=[];for(;c.length;){const d=c.pop()||0,f=c.pop()||0,p=c.pop()||0;if(f-p<=l){for(let y=p;y<=f;y++){const v=a[2*y],C=a[2*y+1];v>=t&&v<=o&&C>=n&&C<=r&&u.push(i[y])}continue}const h=p+f>>1,m=a[2*h],g=a[2*h+1];m>=t&&m<=o&&g>=n&&g<=r&&u.push(i[h]),(d===0?t<=m:n<=g)&&(c.push(p),c.push(h-1),c.push(1-d)),(d===0?o>=m:r>=g)&&(c.push(h+1),c.push(f),c.push(1-d))}return u}within(t,n,o){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:r,coords:i,nodeSize:a}=this,l=[0,r.length-1,0],c=[],u=o*o;for(;l.length;){const d=l.pop()||0,f=l.pop()||0,p=l.pop()||0;if(f-p<=a){for(let y=p;y<=f;y++)Tp(i[2*y],i[2*y+1],t,n)<=u&&c.push(r[y]);continue}const h=p+f>>1,m=i[2*h],g=i[2*h+1];Tp(m,g,t,n)<=u&&c.push(r[h]),(d===0?t-o<=m:n-o<=g)&&(l.push(p),l.push(h-1),l.push(1-d)),(d===0?t+o>=m:n+o>=g)&&(l.push(h+1),l.push(f),l.push(1-d))}return c}}function lc(e,t,n,o,r,i){if(r-o<=n)return;const a=o+r>>1;py(e,t,a,o,r,i),lc(e,t,n,o,a-1,1-i),lc(e,t,n,a+1,r,1-i)}function py(e,t,n,o,r,i){for(;r>o;){if(r-o>600){const u=r-o+1,d=n-o+1,f=Math.log(u),p=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*p*(u-p)/u)*(d-u/2<0?-1:1),m=Math.max(o,Math.floor(n-d*p/u+h)),g=Math.min(r,Math.floor(n+(u-d)*p/u+h));py(e,t,n,m,g,i)}const a=t[2*n+i];let l=o,c=r;for(_r(e,t,o,n),t[2*r+i]>a&&_r(e,t,o,r);l<c;){for(_r(e,t,l,c),l++,c--;t[2*l+i]<a;)l++;for(;t[2*c+i]>a;)c--}t[2*o+i]===a?_r(e,t,o,c):(c++,_r(e,t,c,r)),c<=n&&(o=c+1),n<=c&&(r=c-1)}}function _r(e,t,n,o){pl(e,n,o),pl(t,2*n,2*o),pl(t,2*n+1,2*o+1)}function pl(e,t,n){const o=e[t];e[t]=e[n],e[n]=o}function Tp(e,t,n,o){const r=e-n,i=t-o;return r*r+i*i}const AO={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},Pp=Math.fround||(e=>t=>(e[0]=+t,e[0]))(new Float32Array(1)),mo=2,Yn=3,hl=4,Un=5,hy=6;class NO{constructor(t){this.options=Object.assign(Object.create(AO),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){const{log:n,minZoom:o,maxZoom:r}=this.options;n&&console.time("total time");const i=`prepare ${t.length} points`;n&&console.time(i),this.points=t;const a=[];for(let c=0;c<t.length;c++){const u=t[c];if(!u.geometry)continue;const[d,f]=u.geometry.coordinates,p=Pp(ri(d)),h=Pp(si(f));a.push(p,h,1/0,c,-1,1),this.options.reduce&&a.push(0)}let l=this.trees[r+1]=this._createTree(a);n&&console.timeEnd(i);for(let c=r;c>=o;c--){const u=+Date.now();l=this.trees[c]=this._createTree(this._cluster(l,c)),n&&console.log("z%d: %d clusters in %dms",c,l.numItems,+Date.now()-u)}return n&&console.timeEnd("total time"),this}getClusters(t,n){let o=((t[0]+180)%360+360)%360-180;const r=Math.max(-90,Math.min(90,t[1]));let i=t[2]===180?180:((t[2]+180)%360+360)%360-180;const a=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)o=-180,i=180;else if(o>i){const f=this.getClusters([o,r,180,a],n),p=this.getClusters([-180,r,i,a],n);return f.concat(p)}const l=this.trees[this._limitZoom(n)],c=l.range(ri(o),si(a),ri(i),si(r)),u=l.data,d=[];for(const f of c){const p=this.stride*f;d.push(u[p+Un]>1?Ep(u,p,this.clusterProps):this.points[u[p+Yn]])}return d}getChildren(t){const n=this._getOriginId(t),o=this._getOriginZoom(t),r="No cluster with the specified id.",i=this.trees[o];if(!i)throw new Error(r);const a=i.data;if(n*this.stride>=a.length)throw new Error(r);const l=this.options.radius/(this.options.extent*Math.pow(2,o-1)),c=a[n*this.stride],u=a[n*this.stride+1],d=i.within(c,u,l),f=[];for(const p of d){const h=p*this.stride;a[h+hl]===t&&f.push(a[h+Un]>1?Ep(a,h,this.clusterProps):this.points[a[h+Yn]])}if(f.length===0)throw new Error(r);return f}getLeaves(t,n,o){n=n||10,o=o||0;const r=[];return this._appendLeaves(r,t,n,o,0),r}getTile(t,n,o){const r=this.trees[this._limitZoom(t)],i=Math.pow(2,t),{extent:a,radius:l}=this.options,c=l/a,u=(o-c)/i,d=(o+1+c)/i,f={features:[]};return this._addTileFeatures(r.range((n-c)/i,u,(n+1+c)/i,d),r.data,n,o,i,f),n===0&&this._addTileFeatures(r.range(1-c/i,u,1,d),r.data,i,o,i,f),n===i-1&&this._addTileFeatures(r.range(0,u,c/i,d),r.data,-1,o,i,f),f.features.length?f:null}getClusterExpansionZoom(t){let n=this._getOriginZoom(t)-1;for(;n<=this.options.maxZoom;){const o=this.getChildren(t);if(n++,o.length!==1)break;t=o[0].properties.cluster_id}return n}_appendLeaves(t,n,o,r,i){const a=this.getChildren(n);for(const l of a){const c=l.properties;if(c&&c.cluster?i+c.point_count<=r?i+=c.point_count:i=this._appendLeaves(t,c.cluster_id,o,r,i):i<r?i++:t.push(l),t.length===o)break}return i}_createTree(t){const n=new mu(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let o=0;o<t.length;o+=this.stride)n.add(t[o],t[o+1]);return n.finish(),n.data=t,n}_addTileFeatures(t,n,o,r,i,a){for(const l of t){const c=l*this.stride,u=n[c+Un]>1;let d,f,p;if(u)d=my(n,c,this.clusterProps),f=n[c],p=n[c+1];else{const g=this.points[n[c+Yn]];d=g.properties;const[y,v]=g.geometry.coordinates;f=ri(y),p=si(v)}const h={type:1,geometry:[[Math.round(this.options.extent*(f*i-o)),Math.round(this.options.extent*(p*i-r))]],tags:d};let m;u||this.options.generateId?m=n[c+Yn]:m=this.points[n[c+Yn]].id,m!==void 0&&(h.id=m),a.features.push(h)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,n){const{radius:o,extent:r,reduce:i,minPoints:a}=this.options,l=o/(r*Math.pow(2,n)),c=t.data,u=[],d=this.stride;for(let f=0;f<c.length;f+=d){if(c[f+mo]<=n)continue;c[f+mo]=n;const p=c[f],h=c[f+1],m=t.within(c[f],c[f+1],l),g=c[f+Un];let y=g;for(const v of m){const C=v*d;c[C+mo]>n&&(y+=c[C+Un])}if(y>g&&y>=a){let v=p*g,C=h*g,x,S=-1;const T=((f/d|0)<<5)+(n+1)+this.points.length;for(const E of m){const M=E*d;if(c[M+mo]<=n)continue;c[M+mo]=n;const A=c[M+Un];v+=c[M]*A,C+=c[M+1]*A,c[M+hl]=T,i&&(x||(x=this._map(c,f,!0),S=this.clusterProps.length,this.clusterProps.push(x)),i(x,this._map(c,M)))}c[f+hl]=T,u.push(v/y,C/y,1/0,T,-1,y),i&&u.push(S)}else{for(let v=0;v<d;v++)u.push(c[f+v]);if(y>1)for(const v of m){const C=v*d;if(!(c[C+mo]<=n)){c[C+mo]=n;for(let x=0;x<d;x++)u.push(c[C+x])}}}}return u}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,n,o){if(t[n+Un]>1){const a=this.clusterProps[t[n+hy]];return o?Object.assign({},a):a}const r=this.points[t[n+Yn]].properties,i=this.options.map(r);return o&&i===r?Object.assign({},i):i}}function Ep(e,t,n){return{type:"Feature",id:e[t+Yn],properties:my(e,t,n),geometry:{type:"Point",coordinates:[_O(e[t]),jO(e[t+1])]}}}function my(e,t,n){const o=e[t+Un],r=o>=1e4?`${Math.round(o/1e3)}k`:o>=1e3?`${Math.round(o/100)/10}k`:o,i=e[t+hy],a=i===-1?{}:Object.assign({},n[i]);return Object.assign(a,{cluster:!0,cluster_id:e[t+Yn],point_count:o,point_count_abbreviated:r})}function ri(e){return e/360+.5}function si(e){const t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function _O(e){return(e-.5)*360}function jO(e){const t=(180-e*360)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}const LO={radius:30,maxZoom:13,minZoom:0,minPoints:2};function Mp(e){return e.isCluster?`c_${e.lat.toFixed(6)}_${e.lng.toFixed(6)}_${e.pointCount}_${e.count}`:`s_${e.id}`}function $O(e,t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n].id!==t[n].id||e[n].algorithm!==t[n].algorithm||e[n].orientation!==t[n].orientation)return!1;return!0}function VO(e,t){return!(e.lat!==t.lat||e.lng!==t.lng||e.count!==t.count||e.isCluster!==t.isCluster||e.pointCount!==t.pointCount||e.addressText!==t.addressText||!$O(e.cameras,t.cameras))}function FO(e,t){if(e.length===0)return t;const n=new Map;for(const i of e)n.set(Mp(i),i);let o=!1;const r=t.map(i=>{const a=Mp(i),l=n.get(a);return l&&VO(l,i)?l:(o=!0,i)});return!o&&e.length===t.length?e:r}function BO(e){if(e.length===0)return"";const t=e.map(n=>String(n.id));return t.sort(),t.join(",")}function zO(e,t,n,o={}){const r=_.useRef(null),[i,a]=_.useState([]),l=_.useRef(""),c={...LO,...o};return _.useEffect(()=>{if(!e||e.length===0){l.current="",r.current=null,a([]);return}const u=BO(e);if(u===l.current&&r.current)return;l.current=u;const d=e.map(f=>({type:"Feature",properties:f,geometry:{type:"Point",coordinates:[f.lng,f.lat]}}));r.current||(r.current=new NO({radius:c.radius,maxZoom:c.maxZoom,minZoom:c.minZoom,minPoints:c.minPoints})),r.current.load(d)},[e,c.radius,c.maxZoom,c.minZoom,c.minPoints]),_.useEffect(()=>{if(!r.current||!n){a(e);return}const d=r.current.getClusters(n,Math.floor(t)).map(f=>{const[p,h]=f.geometry.coordinates,m=f.properties;if(m.cluster){const g=m.cluster_id,y=r.current.getLeaves(g,1/0),v=y.flatMap(x=>x.properties.cameras||[]),C=y.reduce((x,S)=>x+S.properties.count,0);return{id:`cluster-${g}`,lat:h,lng:p,count:C,cameras:v,isCluster:!0,pointCount:m.point_count,clusterId:g}}else{const g=m;return{id:g.id,lat:h,lng:p,count:g.count,addressText:g.addressText,cameras:g.cameras}}});a(f=>FO(f,d))},[e,t,n]),i}const Op=_.memo(function({spot:t,currentZoom:n,isSelected:o,selectedCameraId:r,isHighlighted:i,highlightedCameraId:a,animateOnClick:l,disableClick:c,onSpotClick:u,onCameraClick:d}){const f=_.useCallback(()=>u(t),[u,t]),p=_.useCallback(h=>d==null?void 0:d(h,t),[d,t]);return b.jsx(cy,{position:{lat:t.lat,lng:t.lng},onClick:f,children:b.jsx(fu,{count:t.count,addressText:t.addressText,cameras:t.cameras,currentZoom:n,isSelected:o,selectedCameraId:r,isHighlighted:i,highlightedCameraId:a,animateOnClick:l,disableClick:c,onCameraClick:d?p:void 0})})}),gy=({spots:e,onSpotClick:t,onCameraClick:n,zoomLevel:o=kE,selectedZoomLevel:r=dl,selectedSpotId:i,selectedSpot:a,selectedCameraId:l,hoveredSpotId:c,hoveredCameraId:u,animateOnClick:d,disableClick:f})=>{const{isLoaded:p,currentZoom:h,bounds:m,zoomToPosition:g}=pu(),y=(a==null?void 0:a.id)??i,{spotsForClustering:v,pinnedSpot:C}=_.useMemo(()=>{if(y==null)return{spotsForClustering:e,pinnedSpot:null};const E=e.find(A=>A.id===y)??null;return E?{spotsForClustering:e.filter(A=>A.id!==y),pinnedSpot:E}:{spotsForClustering:e,pinnedSpot:null}},[e,y]),x=zO(v,h,m),S=_.useCallback(E=>{if(E.isCluster)g({lat:E.lat,lng:E.lng},Oo);else if(f)g({lat:E.lat,lng:E.lng},h<Oo?Oo:r??o);else{const M=a?a.id===E.id:i===E.id;h<Oo?(g({lat:E.lat,lng:E.lng},Oo),t==null||t(E)):(h<(r??dl)&&!M&&g({lat:E.lat,lng:E.lng},r??dl),t==null||t(E))}},[g,f,a,i,h,r,o,t]),T=_.useCallback(E=>!c&&!u?!1:!E.isCluster&&E.id===c?!0:E.isCluster&&u&&E.cameras?E.cameras.some(M=>M.id===u):!1,[c,u]);return p?b.jsxs(b.Fragment,{children:[x.map((E,M)=>b.jsx(Op,{spot:E,currentZoom:h,isSelected:!1,selectedCameraId:l,isHighlighted:T(E),animateOnClick:d,disableClick:f,onSpotClick:S,onCameraClick:n},E.id??M)),C&&b.jsx(Op,{spot:C,currentZoom:h,isSelected:!0,selectedCameraId:l,isHighlighted:String(C.id)===String(c),highlightedCameraId:String(C.id)===String(c)?u:void 0,animateOnClick:d,disableClick:f,onSpotClick:S,onCameraClick:n},`pinned-${C.id}`)]}):null};gy.displayName="MapMarkers";const WO="_searchBar_15mix_1",UO="_startIconContainer_15mix_106",HO="_endIconContainer_15mix_117",YO="_endIconContainerClickable_15mix_153",qO="_defaultIcon_15mix_157",Kr={searchBar:WO,startIconContainer:UO,endIconContainer:HO,endIconContainerClickable:YO,defaultIcon:qO},GO=e=>()=>{e&&e()},KO=e=>t=>{e&&e(t)},ZO=()=>b.jsx(kt.Search,{className:Kr.defaultIcon}),XO=e=>e||ZO(),yy=_.forwardRef(({startIcon:e,endIcon:t,onEndIconClick:n,placeholder:o,value:r,onChange:i,className:a,...l},c)=>{const d=q.useTheme().palette.mode==="dark",f=XO(t),p=GO(n),h=KO(i);return b.jsx(q.TextField,{ref:c,value:r,onChange:h,placeholder:o,variant:"outlined",autoComplete:"off",className:`${Kr.searchBar} ${a||""}`,"data-theme":d?"dark":"light",InputProps:{startAdornment:e?b.jsx(q.InputAdornment,{position:"start",className:Kr.startIconContainer,children:e}):null,endAdornment:b.jsx(q.InputAdornment,{position:"end",className:`${Kr.endIconContainer} ${n?Kr.endIconContainerClickable:""}`,onClick:p,disablePointerEvents:!n,children:f})},inputProps:{autoComplete:"off","data-form-type":"other"},...l})});yy.displayName="SearchBar";const QO=gt(b.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),JO=gt([b.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 3 6.08 3 3.28 5.64 3.03 9h2.02C5.3 6.75 7.18 5 9.5 5 11.99 5 14 7.01 14 9.5S11.99 14 9.5 14c-.17 0-.33-.03-.5-.05v2.02c.17.02.33.03.5.03 1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19z"},"0"),b.jsx("path",{d:"M6.47 10.82 4 13.29l-2.47-2.47-.71.71L3.29 14 .82 16.47l.71.71L4 14.71l2.47 2.47.71-.71L4.71 14l2.47-2.47z"},"1")],"SearchOff"),ek="_container_1mb8b_1",tk="_iconWrapper_1mb8b_11",nk="_icon_1mb8b_11",ok="_title_1mb8b_21",rk="_subtitle_1mb8b_30",sk="_description_1mb8b_34",ik="_button_1mb8b_38",go={container:ek,iconWrapper:tk,icon:nk,title:ok,subtitle:rk,description:sk,button:ik},by=({onGoHome:e,buttonText:t="Voltar para o início",title:n="Página não encontrada",description:o="Desculpe, a página que você está procurando não existe ou foi movida para outro endereço.",errorCode:r="404",className:i})=>b.jsx(q.Container,{maxWidth:"sm",children:b.jsxs(q.Box,{className:`${go.container} ${i||""}`,children:[b.jsx(q.Box,{className:go.iconWrapper,children:b.jsx(JO,{className:go.icon,color:"primary"})}),b.jsx(q.Typography,{variant:"h1",className:go.title,sx:{fontSize:{xs:"6rem",md:"8rem"}},children:r}),b.jsx(q.Typography,{variant:"h4",component:"h2",className:go.subtitle,color:"text.primary",children:n}),b.jsx(q.Typography,{variant:"body1",className:go.description,color:"text.secondary",children:o}),e&&b.jsx(Mc,{variant:"contained",size:"large",startIcon:b.jsx(QO,{}),onClick:e,className:go.button,children:t})]})});by.displayName="NotFoundContent";const ak=e=>{const t=e.find(o=>o.active),n=e.flatMap(o=>{var r;return((r=o.submenu)==null?void 0:r.map(i=>({item:o,subItem:i})))??[]}).find(({subItem:o})=>o.active);return{itemId:(n==null?void 0:n.item.id)??(t==null?void 0:t.id)??null,subItemId:(n==null?void 0:n.subItem.id)??null,expandedItemId:(n==null?void 0:n.item.id)??null}},lk=({items:e,isExpanded:t=!0,onClick:n})=>{const o=_.useMemo(()=>ak(e),[e]),[r,i]=_.useState(o.itemId),[a,l]=_.useState(o.subItemId),[c,u]=_.useState(o.expandedItemId),[d,f]=_.useState(null),[p,h]=_.useState(null);_.useEffect(()=>{i(o.itemId),l(o.subItemId),u(o.expandedItemId)},[o.itemId,o.subItemId,o.expandedItemId]);const m=p?e.find(E=>E.id===p):void 0,g=(m==null?void 0:m.submenu)??[];return{selectedItemId:r,selectedSubItemId:a,expandedItemId:c,submenuAnchorEl:d,submenuItem:m,submenuItems:g,getIsItemActive:E=>{var A;const M=a?!!((A=E.submenu)!=null&&A.some(k=>k.id===a)):!1;return r?E.id===r:!!(E.active||M)},getIsSubItemActive:E=>a?E.id===a:!!E.active,shouldShowSubmenu:E=>{var M;return!!(t&&((M=E.submenu)!=null&&M.length)&&c===E.id)},handleItemClick:(E,M)=>{var A,k;i(E.id),l(null),(A=E.submenu)!=null&&A.length?t?u($=>$===E.id?null:E.id):(f(M.currentTarget),h(E.id)):(u(null),f(null),h(null)),(k=E.onClick)==null||k.call(E,M),n==null||n({item:E})},handleSubItemClick:(E,M,A,k)=>{var $;i(E.id),l(M.id),k!=null&&k.closeMenu&&(f(null),h(null)),($=M.onClick)==null||$.call(M,A),n==null||n({item:E,subItem:M})},closeSubmenu:()=>{f(null),h(null)}}},vy=e=>typeof e=="number"?`${e*4}px`:e,ck=({item:e,onClick:t,isActive:n})=>{const o=ae.useTheme();return b.jsx(q.ButtonBase,{onClick:t,"aria-label":e.label,"aria-pressed":n||void 0,sx:{width:"100%",borderRadius:vy(o.shape.borderRadius),px:2,py:1.25,justifyContent:"flex-start",textAlign:"left",color:o.palette.text.primary,backgroundColor:n?o.palette.action.selected:"transparent","&:hover":{backgroundColor:o.palette.action.hover}},children:b.jsx(q.Typography,{variant:"body2",sx:{fontWeight:500},children:e.label})})},xy=({items:e,isExpanded:t=!0,className:n,onClick:o})=>{const r=ae.useTheme(),i=vy(r.shape.borderRadius),{submenuAnchorEl:a,submenuItem:l,submenuItems:c,getIsItemActive:u,getIsSubItemActive:d,shouldShowSubmenu:f,handleItemClick:p,handleSubItemClick:h,closeSubmenu:m}=lk({items:e,isExpanded:t,onClick:o});return b.jsxs(q.Stack,{className:n,direction:"column",spacing:2,sx:{width:"100%"},children:[e.map(g=>{var E,M;const y=u(g),v=f(g),C=t?r.spacing(2):r.spacing(4),x=t?y?r.palette.primary.main:r.palette.action.hover:"transparent",S=t?"transparent":y?r.palette.primary.main:r.palette.action.hover,T=!t&&y?r.palette.primary.contrastText:r.palette.text.primary;return b.jsxs(q.Stack,{direction:"column",spacing:1,sx:{width:"100%"},children:[b.jsx(q.ButtonBase,{onClick:A=>p(g,A),"aria-label":g.label,"aria-pressed":y||void 0,"aria-haspopup":(E=g.submenu)!=null&&E.length?"menu":void 0,sx:{width:"100%",borderRadius:i,px:t?2:1,py:t?1.5:1,justifyContent:t?"flex-start":"center",textAlign:"left",color:r.palette.text.primary,backgroundColor:x,boxShadow:t&&y?r.shadows[1]:"none","&:hover":{backgroundColor:t?r.palette.action.hover:"transparent"}},children:b.jsxs(q.Stack,{direction:t?"row":"column",alignItems:"center",spacing:t?1.5:1,sx:{width:"100%"},children:[b.jsx(q.Box,{sx:{width:64,height:C,borderRadius:i,display:"inline-flex",alignItems:"center",justifyContent:"center",backgroundColor:S,color:T,transition:r.transitions.create(["background-color","box-shadow"],{duration:r.transitions.duration.shortest}),...t?{}:{boxShadow:y?r.shadows[1]:"none","&:hover":{backgroundColor:y?ae.alpha(r.palette.primary.main,.9):r.palette.action.selected}}},children:g.icon}),b.jsx(q.Typography,{variant:"body2",sx:{width:"100%",textAlign:t?"left":"center",fontWeight:y?600:500},children:g.label}),t&&g.trailingIcon?b.jsx(q.Box,{sx:{ml:"auto",display:"inline-flex",alignItems:"center"},children:g.trailingIcon}):null]})}),v?b.jsx(q.Collapse,{in:v,timeout:"auto",unmountOnExit:!0,children:b.jsx(q.Stack,{direction:"column",spacing:1,sx:{pl:4},children:(M=g.submenu)==null?void 0:M.map(A=>{const k=d(A);return b.jsx(ck,{item:A,isActive:k,onClick:$=>h(g,A,$)},A.id)})})}):null]},g.id)}),b.jsx(q.Menu,{anchorEl:a,open:!!(a&&c.length),onClose:m,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},MenuListProps:{dense:!0,"aria-label":(l==null?void 0:l.label)??"submenu"},PaperProps:{sx:{borderRadius:i,minWidth:r.spacing(22),px:1,py:.5,boxShadow:r.shadows[3]}},children:c.map(g=>{const y=d(g);return b.jsx(q.MenuItem,{selected:y,onClick:v=>{l&&h(l,g,v,{closeMenu:!0})},sx:{borderRadius:i,fontWeight:y?600:500},children:g.label},g.id)})})]})};xy.displayName="SidebarMenu";const uk=e=>{const t=e.find(n=>n.active);return(t==null?void 0:t.id)??null},dk=({items:e,onSelect:t,isExpanded:n=!0})=>{const o=_.useMemo(()=>uk(e),[e]),[r,i]=_.useState(o),[a,l]=_.useState(null);_.useEffect(()=>{i(o)},[o]);const c=r?e.find(h=>h.id===r):void 0;return{selectedItemId:r,selectedItem:c,menuAnchorEl:a,getIsItemActive:h=>r?h.id===r:!!h.active,openMenu:h=>{n||l(h.currentTarget)},closeMenu:()=>{n||l(null)},handleItemClick:(h,m)=>{var g;i(h.id),(g=h.onClick)==null||g.call(h,m),t==null||t(h),l(null)}}},fk=e=>typeof e=="number"?`${e*4}px`:e,Sy=({items:e,currentLabel:t,headerLabel:n,headerIcon:o,headerTrailingIcon:r,listTitle:i,action:a,isExpanded:l=!0,className:c,onSelect:u})=>{var O,N;const d=ae.useTheme(),f=_.useRef(null),p=fk(d.shape.borderRadius),[h,m]=_.useState(!1),g=_.useMemo(()=>Number.parseFloat(d.spacing(2).toString()),[d]),{selectedItem:y,menuAnchorEl:v,getIsItemActive:C,openMenu:x,closeMenu:S,handleItemClick:T}=dk({items:e,onSelect:u,isExpanded:l}),E=t??(y==null?void 0:y.label)??((O=e[0])==null?void 0:O.label)??"",M=o??(y==null?void 0:y.icon)??((N=e[0])==null?void 0:N.icon)??null,A=l||!M,k=F=>{if(l){m(V=>!V);return}x(F)},$=(F,V)=>{T(F,V),m(!1)},j=b.jsx(q.Stack,{direction:"column",spacing:.5,children:e.map(F=>{const V=C(F);return b.jsxs(q.MenuItem,{selected:V,onClick:B=>$(F,B),sx:{borderRadius:p,gap:1.5,px:2,py:1.25,color:d.palette.text.primary,"&:hover":{backgroundColor:d.palette.action.hover}},children:[F.icon?b.jsx(q.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:F.icon}):null,b.jsx(q.Typography,{variant:"body1",sx:{fontWeight:V?600:500},children:F.label})]},F.id)})}),w=b.jsxs(q.Box,{sx:{borderRadius:p,backgroundColor:d.palette.background.paper,boxShadow:d.shadows[3],display:"flex",flexDirection:"column",maxHeight:d.spacing(50)},children:[i?b.jsx(q.Box,{sx:{px:2,pt:2,pb:1},children:b.jsx(q.Typography,{variant:"subtitle2",sx:{color:d.palette.text.primary},children:i})}):null,b.jsx(q.Box,{sx:{px:2,pb:2,overflowY:"auto",flex:1,minHeight:0},children:j})]}),L=a?b.jsxs(q.MenuItem,{onClick:a.onClick,sx:{borderRadius:p,gap:1.5,px:2,py:1.25,color:d.palette.text.primary,"&:hover":{backgroundColor:d.palette.action.hover}},children:[a.icon?b.jsx(q.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:a.icon}):null,b.jsx(q.Typography,{variant:"body1",sx:{fontWeight:600},children:a.label})]}):null,D=L?b.jsx(q.Box,{sx:{borderRadius:p,backgroundColor:d.palette.background.paper,boxShadow:d.shadows[3]},children:L}):null,I=b.jsxs(q.Stack,{direction:"column",spacing:1,sx:{minWidth:d.spacing(32)},children:[w,D]});return b.jsxs(q.Stack,{className:c,direction:l?"row":"column",spacing:l?2:1,sx:{width:"100%",alignItems:l?"flex-start":"stretch"},children:[b.jsx(q.ButtonBase,{onClick:k,"aria-label":E,ref:f,sx:{width:l?d.spacing(28):"64px",height:l?"auto":"64px",borderRadius:p,px:l?2:0,py:l?1.25:0,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"left",backgroundColor:d.palette.action.hover,"&:hover":{backgroundColor:d.palette.action.selected}},children:b.jsxs(q.Stack,{direction:"row",alignItems:"center",spacing:l?1:0,sx:{width:l?"100%":"auto",justifyContent:l?"space-between":"center",px:0},children:[M?b.jsx(q.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:M}):null,A?b.jsxs(q.Box,{sx:{minWidth:0,flex:1},children:[n?b.jsx(q.Typography,{variant:"caption",sx:{color:d.palette.text.secondary},children:n}):null,b.jsx(q.Typography,{variant:"body2",sx:{fontWeight:600},noWrap:!0,children:E})]}):null,l&&r?b.jsx(q.Box,{sx:{ml:"auto",display:"inline-flex",alignItems:"center"},children:r}):null]})}),l?h?b.jsx(q.ClickAwayListener,{onClickAway:()=>m(!1),children:b.jsx(q.Popper,{open:h,anchorEl:f.current,placement:"right-start",modifiers:[{name:"offset",options:{offset:[0,g]}}],sx:{zIndex:d.zIndex.modal},children:I})}):null:b.jsx(q.Menu,{anchorEl:v,open:!!v,onClose:S,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},disableAutoFocusItem:!0,slotProps:{paper:{sx:{borderRadius:p,p:0,ml:2,backgroundColor:"transparent",boxShadow:"none",overflow:"visible"}}},MenuListProps:{"aria-label":E?`menu-${E}`:"menu",sx:{p:0}},children:I})]})};Sy.displayName="ModuleMenu";const gu=e=>e.seekable&&e.seekable.length>0?e.seekable.end(e.seekable.length-1):Number.isFinite(e.duration)&&e.duration>0?e.duration:e.currentTime,Zr=(e,t,n,o,r)=>{if(n<=1)return{panX:0,panY:0};const i=o*(1-1/n)/2,a=r*(1-1/n)/2;return{panX:Math.max(-i,Math.min(i,e)),panY:Math.max(-a,Math.min(a,t))}},pk=(e,t,n)=>({...e&&{"--player-width":typeof e=="number"?`${e}px`:e},...t&&{"--player-height":typeof t=="number"?`${t}px`:t},...n&&{"--player-aspect-ratio":n}}),An={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function wy(e){return"init"in e}function cc(e){return!!e.write}function kp(e){return"v"in e||"e"in e}function Ni(e){if("e"in e)throw e.e;if((An?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}const _i=new WeakMap;function Cy(e){var t;return ji(e)&&!!((t=_i.get(e))!=null&&t[0])}function hk(e){const t=_i.get(e);t!=null&&t[0]&&(t[0]=!1,t[1].forEach(n=>n()))}function uc(e,t){let n=_i.get(e);if(!n){n=[!0,new Set],_i.set(e,n);const o=()=>{n[0]=!1};e.then(o,o)}n[1].add(t)}function ji(e){return typeof(e==null?void 0:e.then)=="function"}function Ty(e,t,n){if(!n.p.has(e)){n.p.add(e);const o=()=>n.p.delete(e);t.then(o,o)}}function Py(e,t,n){var o;const r=new Set;for(const i of((o=n.get(e))==null?void 0:o.t)||[])r.add(i);for(const i of t.p)r.add(i);return r}const mk=(e,t,...n)=>t.read(...n),gk=(e,t,...n)=>t.write(...n),yk=(e,t)=>{if(t.INTERNAL_onInit)return t.INTERNAL_onInit(e);if(t.unstable_onInit)return console.warn("[DEPRECATED] atom.unstable_onInit is renamed to atom.INTERNAL_onInit."),t.unstable_onInit(e)},bk=(e,t,n)=>{var o;return(o=t.onMount)==null?void 0:o.call(t,n)},vk=(e,t)=>{var n;const o=Nt(e),r=o[0],i=o[6],a=o[9];if((An?"production":void 0)!=="production"&&!t)throw new Error("Atom is undefined or null");let l=r.get(t);return l||(l={d:new Map,p:new Set,n:0},r.set(t,l),(n=i.i)==null||n.call(i,t),a==null||a(e,t)),l},xk=e=>{const t=Nt(e),n=t[1],o=t[3],r=t[4],i=t[5],a=t[6],l=t[13],c=[],u=d=>{try{d()}catch(f){c.push(f)}};do{a.f&&u(a.f);const d=new Set,f=d.add.bind(d);o.forEach(p=>{var h;return(h=n.get(p))==null?void 0:h.l.forEach(f)}),o.clear(),i.forEach(f),i.clear(),r.forEach(f),r.clear(),d.forEach(u),o.size&&l(e)}while(o.size||i.size||r.size);if(c.length)throw new AggregateError(c)},Sk=e=>{const t=Nt(e),n=t[1],o=t[2],r=t[3],i=t[11],a=t[14],l=t[17],c=[],u=new WeakSet,d=new WeakSet,f=Array.from(r);for(;f.length;){const p=f[f.length-1],h=i(e,p);if(d.has(p)){f.pop();continue}if(u.has(p)){if(o.get(p)===h.n)c.push([p,h]);else if((An?"production":void 0)!=="production"&&o.has(p))throw new Error("[Bug] invalidated atom exists");d.add(p),f.pop();continue}u.add(p);for(const m of Py(p,h,n))u.has(m)||f.push(m)}for(let p=c.length-1;p>=0;--p){const[h,m]=c[p];let g=!1;for(const y of m.d.keys())if(y!==h&&r.has(y)){g=!0;break}g&&(a(e,h),l(e,h)),o.delete(h)}},dc=new WeakSet,wk=(e,t)=>{var n,o;const r=Nt(e),i=r[1],a=r[2],l=r[3],c=r[6],u=r[7],d=r[11],f=r[12],p=r[13],h=r[14],m=r[16],g=r[17],y=r[20],v=d(e,t);if(kp(v)){if(i.has(t)&&a.get(t)!==v.n)return v;let k=!1;for(const[$,j]of v.d)if(h(e,$).n!==j){k=!0;break}if(!k)return v}v.d.clear();let C=!0;function x(){i.has(t)&&(g(e,t),p(e),f(e))}function S(k){var $;if(k===t){const w=d(e,k);if(!kp(w))if(wy(k))y(e,k,k.init);else throw new Error("no atom init");return Ni(w)}const j=h(e,k);try{return Ni(j)}finally{v.d.set(k,j.n),Cy(v.v)&&Ty(t,v.v,j),i.has(t)&&(($=i.get(k))==null||$.t.add(t)),C||x()}}let T,E;const M={get signal(){return T||(T=new AbortController),T.signal},get setSelf(){return(An?"production":void 0)!=="production"&&!cc(t)&&console.warn("setSelf function cannot be used with read-only atom"),!E&&cc(t)&&(E=(...k)=>{if((An?"production":void 0)!=="production"&&C&&console.warn("setSelf function cannot be called in sync"),!C)try{return m(e,t,...k)}finally{p(e),f(e)}}),E}},A=v.n;try{(An?"production":void 0)!=="production"&&dc.delete(e);const k=u(e,t,S,M);return(An?"production":void 0)!=="production"&&dc.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),y(e,t,k),ji(k)&&(uc(k,()=>T==null?void 0:T.abort()),k.then(x,x)),(n=c.r)==null||n.call(c,t),v}catch(k){return delete v.v,v.e=k,++v.n,v}finally{C=!1,A!==v.n&&a.get(t)===A&&(a.set(t,v.n),l.add(t),(o=c.c)==null||o.call(c,t))}},Ck=(e,t)=>{const n=Nt(e),o=n[1],r=n[2],i=n[11],a=[t];for(;a.length;){const l=a.pop(),c=i(e,l);for(const u of Py(l,c,o)){const d=i(e,u);r.set(u,d.n),a.push(u)}}},Tk=(e,t,...n)=>{const o=Nt(e),r=o[3],i=o[6],a=o[8],l=o[11],c=o[12],u=o[13],d=o[14],f=o[15],p=o[16],h=o[17],m=o[20];let g=!0;const y=C=>Ni(d(e,C)),v=(C,...x)=>{var S;const T=l(e,C);try{if(C===t){if(!wy(C))throw new Error("atom not writable");(An?"production":void 0)!=="production"&&dc.add(e);const E=T.n,M=x[0];m(e,C,M),h(e,C),E!==T.n&&(r.add(C),f(e,C),(S=i.c)==null||S.call(i,C));return}else return p(e,C,...x)}finally{g||(u(e),c(e))}};try{return a(e,t,y,v,...n)}finally{g=!1}},Pk=(e,t)=>{var n;const o=Nt(e),r=o[1],i=o[3],a=o[6],l=o[11],c=o[15],u=o[18],d=o[19],f=l(e,t),p=r.get(t);if(p&&!Cy(f.v)){for(const[h,m]of f.d)if(!p.d.has(h)){const g=l(e,h);u(e,h).t.add(t),p.d.add(h),m!==g.n&&(i.add(h),c(e,h),(n=a.c)==null||n.call(a,h))}for(const h of p.d)if(!f.d.has(h)){p.d.delete(h);const m=d(e,h);m==null||m.t.delete(t)}}},Ek=(e,t)=>{var n;const o=Nt(e),r=o[1],i=o[4],a=o[6],l=o[10],c=o[11],u=o[12],d=o[13],f=o[14],p=o[16],h=o[18],m=c(e,t);let g=r.get(t);if(!g){f(e,t);for(const y of m.d.keys())h(e,y).t.add(t);if(g={l:new Set,d:new Set(m.d.keys()),t:new Set},r.set(t,g),cc(t)){const y=()=>{let v=!0;const C=(...x)=>{try{return p(e,t,...x)}finally{v||(d(e),u(e))}};try{const x=l(e,t,C);x&&(g.u=()=>{v=!0;try{x()}finally{v=!1}})}finally{v=!1}};i.add(y)}(n=a.m)==null||n.call(a,t)}return g},Mk=(e,t)=>{var n,o;const r=Nt(e),i=r[1],a=r[5],l=r[6],c=r[11],u=r[19],d=c(e,t);let f=i.get(t);if(!f||f.l.size)return f;let p=!1;for(const h of f.t)if((n=i.get(h))!=null&&n.d.has(t)){p=!0;break}if(!p){f.u&&a.add(f.u),f=void 0,i.delete(t);for(const h of d.d.keys()){const m=u(e,h);m==null||m.t.delete(t)}(o=l.u)==null||o.call(l,t);return}return f},Ok=(e,t,n)=>{const o=Nt(e)[11],r=o(e,t),i="v"in r,a=r.v;if(ji(n))for(const l of r.d.keys())Ty(t,n,o(e,l));r.v=n,delete r.e,(!i||!Object.is(a,r.v))&&(++r.n,ji(a)&&hk(a))},kk=(e,t)=>{const n=Nt(e)[14];return Ni(n(e,t))},Dk=(e,t,...n)=>{const o=Nt(e),r=o[12],i=o[13],a=o[16];try{return a(e,t,...n)}finally{i(e),r(e)}},Rk=(e,t,n)=>{const o=Nt(e),r=o[12],i=o[18],a=o[19],c=i(e,t).l;return c.add(n),r(e),()=>{c.delete(n),a(e,t),r(e)}},Ey=new WeakMap,Nt=e=>{const t=Ey.get(e);if((An?"production":void 0)!=="production"&&!t)throw new Error("Store must be created by buildStore to read its building blocks");return t};function Ik(...e){const t={get(o){const r=Nt(t)[21];return r(t,o)},set(o,...r){const i=Nt(t)[22];return i(t,o,...r)},sub(o,r){const i=Nt(t)[23];return i(t,o,r)}},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},mk,gk,yk,bk,vk,xk,Sk,wk,Ck,Tk,Pk,Ek,Mk,Ok,kk,Dk,Rk,void 0].map((o,r)=>e[r]||o);return Ey.set(t,Object.freeze(n)),t}const My={};let Ak=0;function yu(e,t){const n=`atom${++Ak}`,o={toString(){return(My?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof e=="function"?o.read=e:(o.init=e,o.read=Nk,o.write=_k),o}function Nk(e){return e(this)}function _k(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}function jk(){return Ik()}let jr;function Lk(){return jr||(jr=jk(),(My?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=jr),globalThis.__JOTAI_DEFAULT_STORE__!==jr&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),jr}const $k={},Vk=_.createContext(void 0);function Oy(e){return _.useContext(Vk)||Lk()}const fc=e=>typeof(e==null?void 0:e.then)=="function",pc=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},Fk=_.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(pc(e),e)}),ml=new WeakMap,Dp=(e,t)=>{let n=ml.get(e);return n||(n=new Promise((o,r)=>{let i=e;const a=u=>d=>{i===u&&o(d)},l=u=>d=>{i===u&&r(d)},c=()=>{try{const u=t();fc(u)?(ml.set(u,n),i=u,u.then(a(u),l(u)),uc(u,c)):o(u)}catch(u){r(u)}};e.then(a(e),l(e)),uc(e,c)}),ml.set(e,n)),n};function ky(e,t){const{delay:n,unstable_promiseStatus:o=!_.use}={},r=Oy(),[[i,a,l],c]=_.useReducer(d=>{const f=r.get(e);return Object.is(d[0],f)&&d[1]===r&&d[2]===e?d:[f,r,e]},void 0,()=>[r.get(e),r,e]);let u=i;if((a!==r||l!==e)&&(c(),u=r.get(e)),_.useEffect(()=>{const d=r.sub(e,()=>{if(o)try{const f=r.get(e);fc(f)&&pc(Dp(f,()=>r.get(e)))}catch{}if(typeof n=="number"){setTimeout(c,n);return}c()});return c(),d},[r,e,n,o]),_.useDebugValue(u),fc(u)){const d=Dp(u,()=>r.get(e));return o&&pc(d),Fk(d)}return u}function Bk(e,t){const n=Oy();return _.useCallback((...r)=>{if(($k?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...r)},[n,e])}function Li(e,t){return[ky(e),Bk(e)]}const Dy=yu(0),Ry=yu(!0),zk=yu(null),bu=_.createContext(null),Iy=({children:e})=>{const t=_.useRef(null),[n,o]=Li(Dy),[r,i]=Li(Ry),[a,l]=_.useState(!1),[c,u]=_.useState(0),[d,f]=_.useState(!1);_.useEffect(()=>{const x=t.current;if(!x)return;const S=()=>{if(o(x.currentTime),x.seekable&&x.seekable.length>0){const M=x.seekable.end(x.seekable.length-1);u(M),f(M>0)}else x.duration&&isFinite(x.duration)&&(u(x.duration),f(!0))},T=()=>l(!0),E=()=>l(!1);return x.addEventListener("timeupdate",S),x.addEventListener("durationchange",S),x.addEventListener("loadedmetadata",S),x.addEventListener("progress",S),x.addEventListener("play",T),x.addEventListener("pause",E),S(),()=>{x.removeEventListener("timeupdate",S),x.removeEventListener("durationchange",S),x.removeEventListener("loadedmetadata",S),x.removeEventListener("progress",S),x.removeEventListener("play",T),x.removeEventListener("pause",E)}},[o]);const p=_.useCallback(x=>{o(x)},[o]),h=_.useCallback(x=>{i(x)},[i]),m=_.useCallback(x=>{const S=t.current;!S||!d||(S.currentTime=x,o(x),i(!1))},[d,o,i]),g=_.useCallback(async()=>{const x=t.current;if(x)try{await x.play(),l(!0)}catch(S){console.error("Failed to play video:",S)}},[]),y=_.useCallback(()=>{const x=t.current;x&&(x.pause(),l(!1))},[]),v=_.useCallback(()=>{a?y():g()},[a,g,y]),C={videoRef:t,currentTime:n,setCurrentTime:p,isLive:r,setIsLive:h,seekTo:m,play:g,pause:y,togglePlay:v,isPlaying:a,duration:c,canSeek:d};return b.jsx(bu.Provider,{value:C,children:e})},vu=()=>_.useContext(bu),Wk=()=>{const e=_.useContext(bu);if(!e)throw new Error("useVideoControlRequired must be used within a VideoControlProvider. Wrap your VideoPlayer and VideoTimeline with <VideoControlProvider>.");return e},Uk=({stream:e,availableQualities:t,initialQuality:n,autoPlay:o,liveThresholdSeconds:r,allowPlaybackRateForStream:i})=>{const a=_.useRef(null),l=vu(),c=_.useRef(null),u=_.useCallback(K=>{c.current=K,l!=null&&l.videoRef&&(l.videoRef.current=K)},[l]),d=_.useMemo(()=>{if(!t||!t.length)return null;if(n){const K=t.find(te=>te.value===n);if(K)return K}return t[0]},[t,n]),[f,p]=_.useState(d),[h,m]=_.useState(!1),[g,y]=_.useState(!0),[v,C]=_.useState(!1),[x,S]=_.useState(0),[T,E]=_.useState(0),[M,A]=_.useState(1),[k,$]=_.useState(1),[j,w]=_.useState(0),[L,D]=_.useState(0),I=_.useRef(!1),O=_.useRef({x:0,y:0}),N=_.useRef({x:0,y:0}),F=_.useRef(!1),[V,B]=_.useState(!1),[R,Y]=_.useState(!0),G=(f==null?void 0:f.stream)??e??null,Z=(f==null?void 0:f.src)??null,X=!!!G||i;_.useEffect(()=>{p(d)},[d]);const Q=_.useCallback(()=>{const K=c.current;if(!K)return;if(!K.seekable||K.seekable.length===0){y(!0),C(!1),l&&l.setIsLive(!0);return}const te=gu(K),z=Math.max(0,te-K.currentTime);E(te),S(K.currentTime),C(te>0);const H=z<=(r??2);y(H),l&&(l.setCurrentTime(K.currentTime),l.setIsLive(H))},[r,l]);return _.useEffect(()=>{const K=c.current;if(!K)return;const te=()=>m(!0),z=()=>m(!1),H=()=>Y(!0),W=()=>Y(!0),ee=()=>Y(!1),J=()=>Y(!1);return K.addEventListener("play",te),K.addEventListener("pause",z),K.addEventListener("waiting",H),K.addEventListener("loadstart",W),K.addEventListener("canplay",ee),K.addEventListener("playing",J),K.addEventListener("timeupdate",Q),K.addEventListener("durationchange",Q),K.addEventListener("loadedmetadata",Q),K.addEventListener("progress",Q),()=>{K.removeEventListener("play",te),K.removeEventListener("pause",z),K.removeEventListener("waiting",H),K.removeEventListener("loadstart",W),K.removeEventListener("canplay",ee),K.removeEventListener("playing",J),K.removeEventListener("timeupdate",Q),K.removeEventListener("durationchange",Q),K.removeEventListener("loadedmetadata",Q),K.removeEventListener("progress",Q)}},[Q]),_.useEffect(()=>{const K=c.current;K&&(Y(!0),G?(K.srcObject!==G&&(K.srcObject=G),K.getAttribute("src")&&K.removeAttribute("src")):Z?(K.srcObject&&(K.srcObject=null),K.src!==Z&&(K.src=Z,K.load())):(K.srcObject&&(K.srcObject=null),K.getAttribute("src")&&K.removeAttribute("src")),o&&K.play().then(()=>{}).catch(()=>{}))},[G,Z,o]),_.useEffect(()=>{const K=c.current;K&&(X?K.playbackRate=M:(K.playbackRate=1,A(1)))},[M,X]),_.useEffect(()=>{k<=1&&(w(0),D(0))},[k]),_.useEffect(()=>{const K=()=>{B(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",K),()=>{document.removeEventListener("fullscreenchange",K)}},[]),_.useEffect(()=>{if(k<=1)return;const K=a.current;K&&requestAnimationFrame(()=>{const te=K.getBoundingClientRect(),z=Zr(j,L,k,te.width,te.height);w(z.panX),D(z.panY)})},[V]),{containerRef:a,videoRef:c,setVideoRef:u,selectedQuality:f,setSelectedQuality:p,isPlaying:h,isLive:g,canSeek:v,currentTime:x,setCurrentTime:S,seekableEnd:T,playbackRate:M,setPlaybackRate:A,zoom:k,setZoom:$,panX:j,setPanX:w,panY:L,setPanY:D,isDraggingRef:I,dragStartRef:O,panStartRef:N,didDragRef:F,isFullscreen:V,isLoading:R,canAdjustPlaybackRate:X,updateLiveStatus:Q}},Hk="_container_9hh2y_1",Yk="_loader_9hh2y_78",qk="_spinner_9hh2y_88",Gk="_video_9hh2y_111",Kk="_videoZoomed_9hh2y_119",Zk="_timestampOverlay_9hh2y_127",Xk="_timestampText_9hh2y_140",Qk="_controlsOverlay_9hh2y_152",Jk="_timeline_9hh2y_173",eD="_controlsRow_9hh2y_180",tD="_controlGroup_9hh2y_198",nD="_iconButton_9hh2y_215",oD="_seekButton_9hh2y_233",rD="_menuButton_9hh2y_260",sD="_liveBadge_9hh2y_281",iD="_liveBadgeActive_9hh2y_298",aD="_liveBadgeInactive_9hh2y_303",lD="_recordingBadge_9hh2y_308",cD="_recordingDot_9hh2y_327",uD="_emptyState_9hh2y_356",dD="_emptyStateIcon_9hh2y_368",fD="_emptyStateText_9hh2y_373",pD="_controlMenuWrapper_9hh2y_379",_e={container:Hk,loader:Yk,spinner:qk,video:Gk,videoZoomed:Kk,timestampOverlay:Zk,timestampText:Xk,controlsOverlay:Qk,timeline:Jk,controlsRow:eD,controlGroup:tD,iconButton:nD,seekButton:oD,menuButton:rD,liveBadge:sD,liveBadgeActive:iD,liveBadgeInactive:aD,recordingBadge:lD,recordingDot:cD,emptyState:uD,emptyStateIcon:dD,emptyStateText:fD,controlMenuWrapper:pD},gl=({label:e,valueLabel:t,selectedValue:n,options:o,onChange:r,disabled:i,ariaLabel:a})=>{const[l,c]=_.useState(null),u=!!l;return b.jsxs(b.Fragment,{children:[b.jsx(q.ButtonBase,{disabled:i,className:`${_e.menuButton} ${_e.controlMenuWrapper}`,"aria-label":a,onClick:d=>c(d.currentTarget),children:e?`${e}: ${t}`:t}),b.jsx(q.Menu,{anchorEl:l,open:u,onClose:()=>c(null),children:o.map(d=>b.jsx(q.MenuItem,{selected:d.value===n,disabled:d.disabled,onClick:()=>{r(d.value),c(null)},children:d.label},`${e}-${String(d.value)}`))})]})},hD=e=>()=>{const t=e.current;t&&(t.paused?t.play().catch(()=>{}):t.pause())},mD=(e,t,n)=>o=>{const r=e.current;if(!r||!t)return;const i=gu(r),a=Math.min(Math.max(r.currentTime+o,0),i);r.currentTime=a,n()},gD=e=>()=>{e.current&&(document.fullscreenElement?document.exitFullscreen().catch(()=>{}):e.current.requestFullscreen().catch(()=>{}))},yD=(e,t,n)=>o=>{const r=e.find(i=>i.value===o)??null;t(r),n==null||n(r)},bD=(e,t)=>(n,o)=>{if(!e)return;const r=Array.isArray(o)?o[0]:o;t(r)},vD=(e,t,n)=>(o,r)=>{const i=e.current;if(!i||!t)return;const a=Array.isArray(r)?r[0]:r,l=gu(i);i.currentTime=Math.min(Math.max(a,0),l),n()},xu=({stream:e=null,availableQualities:t=[],initialQuality:n,onQualityChange:o,autoPlay:r=!0,playsInline:i=!0,muted:a=!0,poster:l,className:c,sx:u,liveThresholdSeconds:d=2,allowPlaybackRateForStream:f=!1,playbackRates:p=[.5,1,1.5,2],zoomLevels:h=[1,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2,2.1,2.2,2.3,2.4,2.5,2.6,2.7,2.8,2.9,3],width:m,height:g,aspectRatio:y="16 / 9",showTimestamp:v=!0,showTimeline:C=!0,isRecording:x=!1,recordingLabel:S="Gravação",borderRadius:T,loading:E,unavailable:M=!1,unavailableIcon:A,unavailableMessage:k="O vídeo não está disponível."})=>{const j=ae.useTheme().palette.mode==="dark",[w,L]=_.useState(""),[D,I]=_.useState(!0),O=_.useRef(null);_.useEffect(()=>{if(!v)return;const ve=()=>{const Ve=new Date,_t=String(Ve.getDate()).padStart(2,"0"),On=String(Ve.getMonth()+1).padStart(2,"0"),uo=Ve.getFullYear(),fo=["Dom","Seg","Ter","Qua","Qui","Sex","Sab"][Ve.getDay()],Gt=String(Ve.getHours()).padStart(2,"0"),Bo=String(Ve.getMinutes()).padStart(2,"0"),Va=String(Ve.getSeconds()).padStart(2,"0");L(`${_t}-${On}-${uo}, ${fo} ${Gt}:${Bo}:${Va}`)};ve();const Ne=setInterval(ve,1e3);return()=>clearInterval(Ne)},[v]),_.useEffect(()=>{const ve=N.current;if(!ve)return;const Ne=()=>{O.current&&(clearTimeout(O.current),O.current=null),I(!0)},Ve=()=>{O.current=setTimeout(()=>{I(!1)},1e4)},_t=()=>{D||I(!0),O.current&&clearTimeout(O.current),O.current=setTimeout(()=>{I(!1)},1e4)};return ve.addEventListener("mouseenter",Ne),ve.addEventListener("mouseleave",Ve),ve.addEventListener("mousemove",_t),()=>{ve.removeEventListener("mouseenter",Ne),ve.removeEventListener("mouseleave",Ve),ve.removeEventListener("mousemove",_t),O.current&&clearTimeout(O.current)}},[D]);const{containerRef:N,videoRef:F,setVideoRef:V,selectedQuality:B,setSelectedQuality:R,isPlaying:Y,isLive:G,canSeek:Z,currentTime:re,setCurrentTime:X,seekableEnd:Q,playbackRate:K,setPlaybackRate:te,zoom:z,setZoom:H,panX:W,setPanX:ee,panY:J,setPanY:ie,isDraggingRef:ne,dragStartRef:de,panStartRef:se,didDragRef:ue,isFullscreen:le,isLoading:fe,canAdjustPlaybackRate:me,updateLiveStatus:Ie}=Uk({stream:e,availableQualities:t,initialQuality:n,autoPlay:r,liveThresholdSeconds:d,allowPlaybackRateForStream:f}),Oe=hD(F),qe=mD(F,Z,Ie),tt=gD(N),St=yD(t,R,o),Tt=bD(Z,X),Ee=vD(F,Z,Ie),Me=_.useCallback(ve=>{if(H(ve),ve<=1)ee(0),ie(0);else{const Ne=N.current;if(Ne){const Ve=Ne.getBoundingClientRect(),_t=Zr(W,J,ve,Ve.width,Ve.height);ee(_t.panX),ie(_t.panY)}}},[W,J,N,H,ee,ie]),Se=_.useCallback(ve=>{if(ue.current){ue.current=!1;return}const Ne=N.current;if(!Ne)return;const Ve=Ne.getBoundingClientRect(),_t=ve.clientX-Ve.left-Ve.width/2,On=ve.clientY-Ve.top-Ve.height/2,fo=(h.indexOf(z)+1)%h.length,Gt=h[fo];if(Gt<=1){H(1),ee(0),ie(0);return}const Bo=-_t*(1-1/Gt),Va=-On*(1-1/Gt),vd=Zr(Bo,Va,Gt,Ve.width,Ve.height);H(Gt),ee(vd.panX),ie(vd.panY)},[z,h,N,H,ee,ie,ue]),Be=_.useCallback(ve=>{z<=1||(ve.preventDefault(),ne.current=!0,ue.current=!1,de.current={x:ve.clientX,y:ve.clientY},se.current={x:W,y:J})},[z,W,J,ne,ue,de,se]),ze=_.useCallback(ve=>{if(!ne.current||z<=1)return;ve.preventDefault();const Ne=ve.clientX-de.current.x,Ve=ve.clientY-de.current.y;(Math.abs(Ne)>3||Math.abs(Ve)>3)&&(ue.current=!0);const _t=N.current;if(!_t)return;const On=_t.getBoundingClientRect(),uo=se.current.x+Ne/z,fo=se.current.y+Ve/z,Gt=Zr(uo,fo,z,On.width,On.height);ee(Gt.panX),ie(Gt.panY)},[z,N,ne,de,se,ue,ee,ie]),nt=_.useCallback(()=>{ne.current=!1},[ne]),Je=_.useCallback(ve=>{if(z<=1||ve.touches.length!==1)return;const Ne=ve.touches[0];ne.current=!0,ue.current=!1,de.current={x:Ne.clientX,y:Ne.clientY},se.current={x:W,y:J}},[z,W,J,ne,ue,de,se]),Vt=_.useCallback(ve=>{if(!ne.current||z<=1||ve.touches.length!==1)return;const Ne=ve.touches[0],Ve=Ne.clientX-de.current.x,_t=Ne.clientY-de.current.y;(Math.abs(Ve)>3||Math.abs(_t)>3)&&(ue.current=!0);const On=N.current;if(!On)return;const uo=On.getBoundingClientRect(),fo=se.current.x+Ve/z,Gt=se.current.y+_t/z,Bo=Zr(fo,Gt,z,uo.width,uo.height);ee(Bo.panX),ie(Bo.panY)},[z,N,ne,de,se,ue,ee,ie]),ke=_.useCallback(()=>{ne.current=!1},[ne]);_.useEffect(()=>{const ve=F.current;if(!ve)return;const Ne=Ve=>{z>1&&ne.current&&Ve.preventDefault()};return ve.addEventListener("touchmove",Ne,{passive:!1}),()=>{ve.removeEventListener("touchmove",Ne)}},[z,F,ne]);const ut=h.map(ve=>({value:ve,label:`${Math.round(ve*100)}%`})),yt=p.map(ve=>({value:ve,label:`${ve}x`})),Et=t.map(ve=>({value:ve.value,label:ve.label})),hn=(B==null?void 0:B.label)??"Auto",ge=`${Math.round(z*100)}%`,Ae=`${K}x`,at=Z&&Q>0,mn=pk(m,g,y),kr=T!=null?{...mn,"--vp-radius":typeof T=="number"?`${T}px`:T}:mn;return b.jsx(q.Box,{ref:N,className:`${_e.container} ${c||""}`.trim(),"data-theme":j?"dark":"light",style:kr,sx:u,children:M?b.jsxs(q.Box,{className:_e.emptyState,children:[A??b.jsx(kt.PlayArrow,{className:_e.emptyStateIcon}),typeof k=="string"?b.jsx(q.Typography,{className:_e.emptyStateText,children:k}):k]}):b.jsxs(b.Fragment,{children:[(E??fe)&&b.jsx(q.Box,{className:_e.loader,children:b.jsx("span",{className:_e.spinner})}),b.jsx("video",{ref:V,className:`${_e.video} ${z>1?_e.videoZoomed:""}`.trim(),autoPlay:r,playsInline:i,muted:a,poster:l,style:{transform:z>1?`scale(${z}) translate(${W}px, ${J}px)`:void 0},onMouseDown:Be,onMouseMove:ze,onMouseUp:nt,onMouseLeave:nt,onClick:Se,onTouchStart:Je,onTouchMove:Vt,onTouchEnd:ke}),v&&w&&b.jsx(q.Box,{className:_e.timestampOverlay,children:b.jsx(q.Typography,{variant:"body2",className:_e.timestampText,children:w})}),x&&!D&&b.jsx(q.Box,{sx:{position:"absolute",bottom:16,left:20,zIndex:10},children:b.jsxs("span",{className:_e.recordingBadge,children:[b.jsx("span",{className:_e.recordingDot}),S]})}),G&&!x&&!D&&b.jsx(q.Box,{sx:{position:"absolute",bottom:16,left:20,zIndex:10},children:b.jsx("span",{className:`${_e.liveBadge} ${_e.liveBadgeActive}`,children:"ao vivo"})}),b.jsxs(q.Box,{className:_e.controlsOverlay,sx:{opacity:D?1:0,visibility:D?"visible":"hidden",transition:"opacity 0.3s ease, visibility 0.3s ease"},children:[C&&b.jsx(q.Box,{className:_e.timeline,children:b.jsx(q.Slider,{size:"small",min:0,max:at?Q:1,step:1,value:at?re:0,disabled:!at,onChange:Tt,onChangeCommitted:Ee,"aria-label":"Linha do tempo do video",sx:{color:"var(--vp-slider-color)","& .MuiSlider-thumb":{width:12,height:12,backgroundColor:"var(--vp-slider-color)"},"& .MuiSlider-track":{border:"none",backgroundColor:"var(--vp-slider-color)"},"& .MuiSlider-rail":{backgroundColor:"var(--vp-slider-rail)",opacity:1}}})}),b.jsxs(q.Box,{className:_e.controlsRow,children:[b.jsxs(q.Box,{className:_e.controlGroup,children:[x?b.jsxs("span",{className:_e.recordingBadge,children:[b.jsx("span",{className:_e.recordingDot}),S]}):b.jsx("span",{className:`${_e.liveBadge} ${G?_e.liveBadgeActive:_e.liveBadgeInactive}`,children:"ao vivo"}),b.jsx("button",{className:_e.seekButton,onClick:()=>qe(-15),"aria-label":"Voltar 15 segundos",children:"15s"}),b.jsx(q.IconButton,{className:_e.iconButton,onClick:()=>qe(-15),"aria-label":"Recuar 15 segundos",children:b.jsx(kt.FastRewind,{fontSize:"small"})}),b.jsx(q.IconButton,{className:_e.iconButton,onClick:Oe,"aria-label":"Play/Pause",children:Y?b.jsx(kt.Pause,{fontSize:"small"}):b.jsx(kt.PlayArrow,{fontSize:"small"})}),b.jsx(q.IconButton,{className:_e.iconButton,onClick:()=>qe(15),"aria-label":"Avançar 15 segundos",children:b.jsx(kt.FastForward,{fontSize:"small"})}),b.jsx("button",{className:_e.seekButton,onClick:()=>qe(15),"aria-label":"Avançar 15 segundos",children:"15s"})]}),b.jsxs(q.Box,{className:_e.controlGroup,children:[b.jsx(gl,{label:"",valueLabel:Ae,selectedValue:K,options:yt,ariaLabel:"Selecionar velocidade de reprodução",onChange:te,disabled:!me}),Et.length>0?b.jsx(gl,{label:"",valueLabel:hn,selectedValue:(B==null?void 0:B.value)??"auto",options:Et,ariaLabel:"Selecionar qualidade do vídeo",onChange:St}):null,b.jsx(gl,{label:"",valueLabel:ge,selectedValue:z,options:ut,ariaLabel:"Selecionar zoom do vídeo",onChange:Me}),b.jsx(q.IconButton,{className:_e.iconButton,onClick:tt,"aria-label":"Fullscreen",children:le?b.jsx(kt.FullscreenExit,{fontSize:"small"}):b.jsx(kt.Fullscreen,{fontSize:"small"})})]})]})]})]})})};xu.displayName="VideoPlayer";const xD=gt(b.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),SD=gt(b.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),wD=gt(b.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5z"}),"FileDownloadOutlined"),CD=gt(b.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V10h16zm0-13H4V5h16z"}),"CalendarTodayOutlined");function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},U.apply(null,arguments)}function Pe(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function TD(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:ps(t.components[n].defaultProps,o)}function PD(e,t,n,o,r){const[i,a]=P.useState(()=>r&&n?n(e).matches:o?o(e).matches:t);return Ct(()=>{if(!n)return;const l=n(e),c=()=>{a(l.matches)};return c(),l.addEventListener("change",c),()=>{l.removeEventListener("change",c)}},[e,n]),i}const ED={...P},Ay=ED.useSyncExternalStore;function MD(e,t,n,o,r){const i=P.useCallback(()=>t,[t]),a=P.useMemo(()=>{if(r&&n)return()=>n(e).matches;if(o!==null){const{matches:d}=o(e);return()=>d}return i},[i,e,o,r,n]),[l,c]=P.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const d=n(e);return[()=>d.matches,f=>(d.addEventListener("change",f),()=>{d.removeEventListener("change",f)})]},[i,n,e]);return Ay(c,l,a)}function Ny(e={}){const{themeId:t}=e;return function(o,r={}){let i=e1();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:c=a?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:d=!1}=TD({name:"MuiUseMediaQuery",props:r,theme:i});process.env.NODE_ENV!=="production"&&typeof o=="function"&&i===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
110
110
  `));let f=typeof o=="function"?o(i):o;f=f.replace(/^@media( ?)/m,""),f.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
111
- `));const h=(Ay!==void 0?Dk:Ok)(f,l,c,u,d);return process.env.NODE_ENV!=="production"&&P.useDebugValue({query:f,match:h}),h}}Ny();const _y=Ny({themeId:ra}),xt=s.oneOfType([s.func,s.object]);function tn(e,t,n){return typeof e=="function"?e(t,n):e}const Lr=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),Rk=({openTo:e,defaultOpenTo:t,views:n,defaultViews:o})=>{const r=n??o;let i;if(e!=null)i=e;else if(r.includes(t))i=t;else if(r.length>0)i=r[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:r,openTo:i}},$i=(e,t,n)=>{let o=t;return o=e.setHours(o,e.getHours(n)),o=e.setMinutes(o,e.getMinutes(n)),o=e.setSeconds(o,e.getSeconds(n)),o=e.setMilliseconds(o,e.getMilliseconds(n)),o},vs=({date:e,disableFuture:t,disablePast:n,maxDate:o,minDate:r,isDateDisabled:i,adapter:a,timezone:l})=>{const c=$i(a,a.date(void 0,l),e);n&&a.isBefore(r,c)&&(r=c),t&&a.isAfter(o,c)&&(o=c);let u=e,d=e;for(a.isBefore(e,r)&&(u=r,d=null),a.isAfter(e,o)&&(d&&(d=o),u=null);u||d;){if(u&&a.isAfter(u,o)&&(u=null),d&&a.isBefore(d,r)&&(d=null),u){if(!i(u))return u;u=a.addDays(u,1)}if(d){if(!i(d))return d;d=a.addDays(d,-1)}}return null},Ik=(e,t)=>e.isValid(t)?t:null,Rp=(e,t,n)=>t==null||!e.isValid(t)?n:t,Ak=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Su=(e,t)=>{const o=[e.startOfYear(t)];for(;o.length<12;){const r=o[o.length-1];o.push(e.addMonths(r,1))}return o},jy=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),Nk=["year","month","day"],Ip=e=>Nk.includes(e),Cu=(e,{format:t,views:n},o)=>{if(t!=null)return t;const r=e.formats;return Lr(n,["year"])?r.year:Lr(n,["month"])?r.month:Lr(n,["day"])?r.dayOfMonth:Lr(n,["month","year"])?`${r.month} ${r.year}`:Lr(n,["day","month"])?`${r.month} ${r.dayOfMonth}`:o?/en/.test(e.getCurrentLocaleCode())?r.normalDateWithWeekday:r.normalDate:r.keyboardDate},_k=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(n,o))},jk=["hours","minutes","seconds"],Lk=e=>jk.includes(e),Ap=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),$k=(e,t)=>(n,o)=>e?t.isAfter(n,o):Ap(n,t)>Ap(o,t),vn={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Vk=e=>Math.max(...e.map(t=>vn[t.type]??1)),$r=(e,t,n)=>{if(t===vn.year)return e.startOfYear(n);if(t===vn.month)return e.startOfMonth(n);if(t===vn.day)return e.startOfDay(n);let o=n;return t<vn.minutes&&(o=e.setMinutes(o,0)),t<vn.seconds&&(o=e.setSeconds(o,0)),t<vn.milliseconds&&(o=e.setMilliseconds(o,0)),o},Fk=({props:e,adapter:t,granularity:n,timezone:o,getTodayDate:r})=>{let i=r?r():$r(t,n,jy(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=$r(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=$r(t,n,e.maxDate));const a=$k(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=$r(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:$i(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=$r(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:$i(t,i,e.maxTime))),i},wu=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
112
- `));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},da=(e,t)=>{const n=[],o=e.date(void 0,"default"),r=e.startOfWeek(o),i=e.endOfWeek(o);let a=r;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(l=>e.formatByString(l,t))},Ly=(e,t,n,o)=>{switch(n){case"month":return Su(e,e.date(void 0,t)).map(r=>e.formatByString(r,o));case"weekDay":return da(e,o);case"meridiem":{const r=e.date(void 0,t);return[e.startOfDay(r),e.endOfDay(r)].map(i=>e.formatByString(i,o))}default:return[]}},Np="s",Bk=["0","1","2","3","4","5","6","7","8","9"],zk=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),Np)==="0"?Bk:Array.from({length:10}).map((o,r)=>e.formatByString(e.setSeconds(t,r),Np))},$o=(e,t)=>{if(t[0]==="0")return e;const n=[];let o="";for(let r=0;r<e.length;r+=1){o+=e[r];const i=t.indexOf(o);i>-1&&(n.push(i.toString()),o="")}return n.join("")},Tu=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),_p=(e,t)=>{const n=$o(e,t);return n!==" "&&!Number.isNaN(Number(n))},Pu=(e,t)=>Number(e).toString().padStart(t,"0"),$y=(e,t,n,o,r)=>{if(process.env.NODE_ENV!=="production"&&r.type!=="day"&&r.contentType==="digit-with-letter")throw new Error([`MUI X: The token "${r.format}" is a digit format with letter in it.'
111
+ `));const h=(Ay!==void 0?MD:PD)(f,l,c,u,d);return process.env.NODE_ENV!=="production"&&P.useDebugValue({query:f,match:h}),h}}Ny();const _y=Ny({themeId:ra}),xt=s.oneOfType([s.func,s.object]);function tn(e,t,n){return typeof e=="function"?e(t,n):e}const Lr=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),OD=({openTo:e,defaultOpenTo:t,views:n,defaultViews:o})=>{const r=n??o;let i;if(e!=null)i=e;else if(r.includes(t))i=t;else if(r.length>0)i=r[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:r,openTo:i}},$i=(e,t,n)=>{let o=t;return o=e.setHours(o,e.getHours(n)),o=e.setMinutes(o,e.getMinutes(n)),o=e.setSeconds(o,e.getSeconds(n)),o=e.setMilliseconds(o,e.getMilliseconds(n)),o},vs=({date:e,disableFuture:t,disablePast:n,maxDate:o,minDate:r,isDateDisabled:i,adapter:a,timezone:l})=>{const c=$i(a,a.date(void 0,l),e);n&&a.isBefore(r,c)&&(r=c),t&&a.isAfter(o,c)&&(o=c);let u=e,d=e;for(a.isBefore(e,r)&&(u=r,d=null),a.isAfter(e,o)&&(d&&(d=o),u=null);u||d;){if(u&&a.isAfter(u,o)&&(u=null),d&&a.isBefore(d,r)&&(d=null),u){if(!i(u))return u;u=a.addDays(u,1)}if(d){if(!i(d))return d;d=a.addDays(d,-1)}}return null},kD=(e,t)=>e.isValid(t)?t:null,Rp=(e,t,n)=>t==null||!e.isValid(t)?n:t,DD=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Su=(e,t)=>{const o=[e.startOfYear(t)];for(;o.length<12;){const r=o[o.length-1];o.push(e.addMonths(r,1))}return o},jy=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),RD=["year","month","day"],Ip=e=>RD.includes(e),wu=(e,{format:t,views:n},o)=>{if(t!=null)return t;const r=e.formats;return Lr(n,["year"])?r.year:Lr(n,["month"])?r.month:Lr(n,["day"])?r.dayOfMonth:Lr(n,["month","year"])?`${r.month} ${r.year}`:Lr(n,["day","month"])?`${r.month} ${r.dayOfMonth}`:o?/en/.test(e.getCurrentLocaleCode())?r.normalDateWithWeekday:r.normalDate:r.keyboardDate},ID=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(n,o))},AD=["hours","minutes","seconds"],ND=e=>AD.includes(e),Ap=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),_D=(e,t)=>(n,o)=>e?t.isAfter(n,o):Ap(n,t)>Ap(o,t),vn={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},jD=e=>Math.max(...e.map(t=>vn[t.type]??1)),$r=(e,t,n)=>{if(t===vn.year)return e.startOfYear(n);if(t===vn.month)return e.startOfMonth(n);if(t===vn.day)return e.startOfDay(n);let o=n;return t<vn.minutes&&(o=e.setMinutes(o,0)),t<vn.seconds&&(o=e.setSeconds(o,0)),t<vn.milliseconds&&(o=e.setMilliseconds(o,0)),o},LD=({props:e,adapter:t,granularity:n,timezone:o,getTodayDate:r})=>{let i=r?r():$r(t,n,jy(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=$r(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=$r(t,n,e.maxDate));const a=_D(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=$r(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:$i(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=$r(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:$i(t,i,e.maxTime))),i},Cu=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
112
+ `));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},pa=(e,t)=>{const n=[],o=e.date(void 0,"default"),r=e.startOfWeek(o),i=e.endOfWeek(o);let a=r;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(l=>e.formatByString(l,t))},Ly=(e,t,n,o)=>{switch(n){case"month":return Su(e,e.date(void 0,t)).map(r=>e.formatByString(r,o));case"weekDay":return pa(e,o);case"meridiem":{const r=e.date(void 0,t);return[e.startOfDay(r),e.endOfDay(r)].map(i=>e.formatByString(i,o))}default:return[]}},Np="s",$D=["0","1","2","3","4","5","6","7","8","9"],VD=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),Np)==="0"?$D:Array.from({length:10}).map((o,r)=>e.formatByString(e.setSeconds(t,r),Np))},$o=(e,t)=>{if(t[0]==="0")return e;const n=[];let o="";for(let r=0;r<e.length;r+=1){o+=e[r];const i=t.indexOf(o);i>-1&&(n.push(i.toString()),o="")}return n.join("")},Tu=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),_p=(e,t)=>{const n=$o(e,t);return n!==" "&&!Number.isNaN(Number(n))},Pu=(e,t)=>Number(e).toString().padStart(t,"0"),$y=(e,t,n,o,r)=>{if(process.env.NODE_ENV!=="production"&&r.type!=="day"&&r.contentType==="digit-with-letter")throw new Error([`MUI X: The token "${r.format}" is a digit format with letter in it.'
113
113
  This type of format is only supported for 'day' sections`].join(`
114
- `));if(r.type==="day"&&r.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,r.format)}let i=t.toString();return r.hasLeadingZerosInInput&&(i=Pu(i,r.maxLength)),Tu(i,o)},Eu=(e,t,n)=>{let o=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(o=Number($o(o,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&o.length===1&&(o=`${o}‎`),t==="input-rtl"&&(o=`⁨${o}⁩`),o},jp=(e,t,n,o)=>{if(process.env.NODE_ENV!=="production"&&wu(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},Wk=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,Vy=(e,t,n,o)=>{if(t!=="digit")return!1;const r=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&o==="YY"?!0:e.formatByString(e.setYear(r,1),o).startsWith("0");case"month":return e.formatByString(e.startOfYear(r),o).length>1;case"day":return e.formatByString(e.startOfMonth(r),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(r),o).length>1;case"hours":return e.formatByString(e.setHours(r,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(r,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(r,1),o).length>1;default:throw new Error("Invalid section type")}},Uk=(e,t,n)=>{const o=t.some(c=>c.type==="day"),r=[],i=[];for(let c=0;c<t.length;c+=1){const u=t[c];o&&u.type==="weekDay"||(r.push(u.format),i.push(Eu(u,"non-input",n)))}const a=r.join(" "),l=i.join(" ");return e.parse(l,a)},Hk=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),Yk=(e,t,n)=>{const r=e.map(i=>{const a=Eu(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`⁦${r}⁩`:r},qk=(e,t,n)=>{const o=e.date(void 0,n),r=e.endOfYear(o),i=e.endOfDay(o),{maxDaysInMonth:a,longestMonth:l}=Su(e,o).reduce((c,u)=>{const d=e.getDaysInMonth(u);return d>c.maxDaysInMonth?{maxDaysInMonth:d,longestMonth:u}:c},{maxDaysInMonth:0,longestMonth:null});return{year:({format:c})=>({minimum:0,maximum:Wk(e,c)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:c})=>({minimum:1,maximum:e.isValid(c)?e.getDaysInMonth(c):a,longestMonth:l}),weekDay:({format:c,contentType:u})=>{if(u==="digit"){const d=da(e,c).map(Number);return{minimum:Math.min(...d),maximum:Math.max(...d)}}return{minimum:1,maximum:7}},hours:({format:c})=>{const u=e.getHours(i);return $o(e.formatByString(e.endOfDay(o),c),t)!==u.toString()?{minimum:1,maximum:Number($o(e.formatByString(e.startOfDay(o),c),t))}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let Lp=!1;const $p=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!Lp){const n=["empty"];["date","date-time"].includes(t)&&n.push("weekDay","day","month","year"),["time","date-time"].includes(t)&&n.push("hours","minutes","seconds","meridiem");const o=e.find(r=>!n.includes(r.type));o&&(console.warn(`MUI X: The field component you are using is not compatible with the "${o.type}" date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),Lp=!0)}},Gk=(e,t,n,o)=>{switch(t.type){case"year":return e.setYear(o,e.getYear(n));case"month":return e.setMonth(o,e.getMonth(n));case"weekDay":{let r=e.formatByString(n,t.format);t.hasLeadingZerosInInput&&(r=Pu(r,t.maxLength));const i=da(e,t.format),a=i.indexOf(r),c=i.indexOf(t.value)-a;return e.addDays(n,c)}case"day":return e.setDate(o,e.getDate(n));case"meridiem":{const r=e.getHours(n)<12,i=e.getHours(o);return r&&i>=12?e.addHours(o,-12):!r&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(n));case"minutes":return e.setMinutes(o,e.getMinutes(n));case"seconds":return e.setSeconds(o,e.getSeconds(n));default:return o}},Vp={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},Fp=(e,t,n,o,r)=>[...n].sort((i,a)=>Vp[i.type]-Vp[a.type]).reduce((i,a)=>!r||a.modified?Gk(e,a,t,i):i,o),Kk=()=>navigator.userAgent.toLowerCase().includes("android"),Zk=(e,t)=>{const n={};if(!t)return e.forEach((c,u)=>{const d=u===0?null:u-1,f=u===e.length-1?null:u+1;n[u]={leftIndex:d,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const o={},r={};let i=0,a=0,l=e.length-1;for(;l>=0;){a=e.findIndex((c,u)=>{var d;return u>=i&&((d=c.endSeparator)==null?void 0:d.includes(" "))&&c.endSeparator!==" / "}),a===-1&&(a=e.length-1);for(let c=a;c>=i;c-=1)r[c]=l,o[l]=c,l-=1;i=a+1}return e.forEach((c,u)=>{const d=r[u],f=d===0?null:o[d-1],p=d===e.length-1?null:o[d+1];n[u]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:o[0],endIndex:o[e.length-1]}},fc=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(o=>o.type===e);return n===-1?null:n}return e},Xk=["value","referenceDate"],En={emptyValue:null,getTodayValue:jy,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=Pe(e,Xk);return o.adapter.isValid(t)?t:n??Fk(o)},cleanValue:Ik,areValuesEqual:Ak,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},Qk={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:Hk,getV6InputValueFromSections:Yk,parseValueStr:(e,t,n)=>n(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,n)=>n,clearDateSections:e=>e.map(t=>U({},t,{value:""}))};function Jk(e){return typeof e.main=="string"}function eD(e,t=[]){if(!Jk(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Yt(e=[]){return([,t])=>t&&eD(t,e)}function tD(e){return Te("MuiTypography",e)}we("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const nD={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},oD=eS(),rD=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:r,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${ce(t)}`,n&&"gutterBottom",o&&"noWrap",r&&"paragraph"]};return Ce(l,tD,a)},sD=be("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${ce(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Xe(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,o])=>n!=="inherit"&&o&&typeof o=="object").map(([n,o])=>({props:{variant:n},style:o})),...Object.entries(e.palette).filter(Yt()).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${ce(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}}]}})),Bp={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ao=P.forwardRef(function(t,n){const{color:o,...r}=Fe({props:t,name:"MuiTypography"}),i=!nD[o],a=oD({...r,...i&&{color:o}}),{align:l="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:f=!1,paragraph:p=!1,variant:h="body1",variantMapping:m=Bp,...g}=a,y={...a,align:l,color:o,className:c,component:u,gutterBottom:d,noWrap:f,paragraph:p,variant:h,variantMapping:m},v=u||(p?"p":m[h]||Bp[h])||"span",w=rD(y);return b.jsx(sD,{as:v,ref:n,className:ye(w.root,c),...g,ownerState:y,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...g.style}})});process.env.NODE_ENV!=="production"&&(ao.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 iD(e){return Te("MuiPickersToolbar",e)}we("MuiPickersToolbar",["root","title","content"]);const aD=["localeText"],Vi=P.createContext(null);process.env.NODE_ENV!=="production"&&(Vi.displayName="PickerAdapterContext");const fa=function(t){const{localeText:n}=t,o=Pe(t,aD),{adapter:r,localeText:i}=P.useContext(Vi)??{adapter:void 0,localeText:void 0},a=ae.useThemeProps({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:f,localeText:p}=a,h=P.useMemo(()=>U({},p,i,n),[p,i,n]),m=P.useMemo(()=>{if(!c)return r||null;const v=new c({locale:f,formats:u,instance:d});if(!v.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/quickstart/#installation"].join(`
115
- `));return v},[c,f,u,d,r]),g=P.useMemo(()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null,[m]),y=P.useMemo(()=>({utils:m,adapter:m,defaultDates:g,localeText:h}),[g,m,h]);return b.jsx(Vi.Provider,{value:y,children:l})};process.env.NODE_ENV!=="production"&&(fa.displayName="LocalizationProvider");process.env.NODE_ENV!=="production"&&(fa.propTypes={adapterLocale:s.any,children:s.node,dateAdapter:s.func,dateFormats:s.shape({dayOfMonth:s.string,dayOfMonthFull:s.string,fullDate:s.string,fullTime12h:s.string,fullTime24h:s.string,hours12h:s.string,hours24h:s.string,keyboardDate:s.string,keyboardDateTime12h:s.string,keyboardDateTime24h:s.string,meridiem:s.string,minutes:s.string,month:s.string,monthShort:s.string,normalDate:s.string,normalDateWithWeekday:s.string,seconds:s.string,shortDate:s.string,weekday:s.string,weekdayShort:s.string,year:s.string}),dateLibInstance:s.any,localeText:s.object});const Mu=P.createContext(()=>!0);process.env.NODE_ENV!=="production"&&(Mu.displayName="IsValidValueContext");function lD(){return P.useContext(Mu)}const Ou=P.createContext(null);process.env.NODE_ENV!=="production"&&(Ou.displayName="PickerFieldPrivateContext");function Fy(){return P.useContext(Ou)}const pa=P.createContext(null);process.env.NODE_ENV!=="production"&&(pa.displayName="PickerContext");const Mr=()=>{const e=P.useContext(pa);if(e==null)throw new Error("MUI X: The `usePickerContext` hook can only be called inside the context of a Picker component");return e},ku=P.createContext(null);process.env.NODE_ENV!=="production"&&(ku.displayName="PickerActionsContext");const Du=P.createContext({ownerState:{isPickerDisabled:!1,isPickerReadOnly:!1,isPickerValueEmpty:!1,isPickerOpen:!1,pickerVariant:"desktop",pickerOrientation:"portrait"},rootRefObject:{current:null},labelId:void 0,dismissViews:()=>{},hasUIView:!0,getCurrentViewMode:()=>"UI",triggerElement:null,viewContainerRole:null,defaultActionBarActions:[],onPopperExited:void 0});process.env.NODE_ENV!=="production"&&(Du.displayName="PickerPrivateContext");function By(e){const{contextValue:t,actionsContextValue:n,privateContextValue:o,fieldPrivateContextValue:r,isValidContextValue:i,localeText:a,children:l}=e;return b.jsx(pa.Provider,{value:t,children:b.jsx(ku.Provider,{value:n,children:b.jsx(Du.Provider,{value:o,children:b.jsx(Ou.Provider,{value:r,children:b.jsx(Mu.Provider,{value:i,children:b.jsx(fa,{localeText:a,children:l})})})})})})}const Dt=()=>P.useContext(Du);function zy(){const{ownerState:e}=Dt(),t=fn();return P.useMemo(()=>U({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const cD=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],uD=e=>Ce({root:["root"],title:["title"],content:["content"]},iD,e),dD=ae.styled("div",{name:"MuiPickersToolbar",slot:"Root"})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{pickerOrientation:"landscape"},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),fD=ae.styled("div",{name:"MuiPickersToolbar",slot:"Content",shouldForwardProp:e=>Zn(e)&&e!=="landscapeDirection"})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{pickerOrientation:"landscape"},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{pickerOrientation:"landscape",landscapeDirection:"row"},style:{flexDirection:"row"}}]}),Wy=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersToolbar"}),{children:r,className:i,classes:a,toolbarTitle:l,hidden:c,titleId:u,landscapeDirection:d}=o,f=Pe(o,cD),p=zy(),h=uD(a);return c?null:b.jsxs(dD,U({ref:n,className:ye(h.root,i),ownerState:p},f,{children:[b.jsx(ao,{color:"text.secondary",variant:"overline",id:u,className:h.title,children:l}),b.jsx(fD,{className:h.content,ownerState:p,landscapeDirection:d,children:r})]}))});process.env.NODE_ENV!=="production"&&(Wy.displayName="PickersToolbar");const pD=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:U({},e)}}}}),Uy={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",nextStepButtonLabel:"Next",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",timeRangePickerToolbarTitle:"Select time range",clockLabelText:(e,t)=>`Select ${e}. ${t?`Selected time is ${t}`:"No time selected"}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:e=>e?`Choose date, selected date is ${e}`:"Choose date",openTimePickerDialogue:e=>e?`Choose time, selected time is ${e}`:"Choose time",openRangePickerDialogue:e=>e?`Choose range, selected range is ${e}`:"Choose range",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},hD=Uy;pD(Uy);const Ru=()=>{const e=P.useContext(Vi);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
114
+ `));if(r.type==="day"&&r.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,r.format)}let i=t.toString();return r.hasLeadingZerosInInput&&(i=Pu(i,r.maxLength)),Tu(i,o)},Eu=(e,t,n)=>{let o=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(o=Number($o(o,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&o.length===1&&(o=`${o}‎`),t==="input-rtl"&&(o=`⁨${o}⁩`),o},jp=(e,t,n,o)=>{if(process.env.NODE_ENV!=="production"&&Cu(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},FD=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,Vy=(e,t,n,o)=>{if(t!=="digit")return!1;const r=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&o==="YY"?!0:e.formatByString(e.setYear(r,1),o).startsWith("0");case"month":return e.formatByString(e.startOfYear(r),o).length>1;case"day":return e.formatByString(e.startOfMonth(r),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(r),o).length>1;case"hours":return e.formatByString(e.setHours(r,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(r,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(r,1),o).length>1;default:throw new Error("Invalid section type")}},BD=(e,t,n)=>{const o=t.some(c=>c.type==="day"),r=[],i=[];for(let c=0;c<t.length;c+=1){const u=t[c];o&&u.type==="weekDay"||(r.push(u.format),i.push(Eu(u,"non-input",n)))}const a=r.join(" "),l=i.join(" ");return e.parse(l,a)},zD=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),WD=(e,t,n)=>{const r=e.map(i=>{const a=Eu(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`⁦${r}⁩`:r},UD=(e,t,n)=>{const o=e.date(void 0,n),r=e.endOfYear(o),i=e.endOfDay(o),{maxDaysInMonth:a,longestMonth:l}=Su(e,o).reduce((c,u)=>{const d=e.getDaysInMonth(u);return d>c.maxDaysInMonth?{maxDaysInMonth:d,longestMonth:u}:c},{maxDaysInMonth:0,longestMonth:null});return{year:({format:c})=>({minimum:0,maximum:FD(e,c)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:c})=>({minimum:1,maximum:e.isValid(c)?e.getDaysInMonth(c):a,longestMonth:l}),weekDay:({format:c,contentType:u})=>{if(u==="digit"){const d=pa(e,c).map(Number);return{minimum:Math.min(...d),maximum:Math.max(...d)}}return{minimum:1,maximum:7}},hours:({format:c})=>{const u=e.getHours(i);return $o(e.formatByString(e.endOfDay(o),c),t)!==u.toString()?{minimum:1,maximum:Number($o(e.formatByString(e.startOfDay(o),c),t))}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let Lp=!1;const $p=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!Lp){const n=["empty"];["date","date-time"].includes(t)&&n.push("weekDay","day","month","year"),["time","date-time"].includes(t)&&n.push("hours","minutes","seconds","meridiem");const o=e.find(r=>!n.includes(r.type));o&&(console.warn(`MUI X: The field component you are using is not compatible with the "${o.type}" date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),Lp=!0)}},HD=(e,t,n,o)=>{switch(t.type){case"year":return e.setYear(o,e.getYear(n));case"month":return e.setMonth(o,e.getMonth(n));case"weekDay":{let r=e.formatByString(n,t.format);t.hasLeadingZerosInInput&&(r=Pu(r,t.maxLength));const i=pa(e,t.format),a=i.indexOf(r),c=i.indexOf(t.value)-a;return e.addDays(n,c)}case"day":return e.setDate(o,e.getDate(n));case"meridiem":{const r=e.getHours(n)<12,i=e.getHours(o);return r&&i>=12?e.addHours(o,-12):!r&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(n));case"minutes":return e.setMinutes(o,e.getMinutes(n));case"seconds":return e.setSeconds(o,e.getSeconds(n));default:return o}},Vp={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},Fp=(e,t,n,o,r)=>[...n].sort((i,a)=>Vp[i.type]-Vp[a.type]).reduce((i,a)=>!r||a.modified?HD(e,a,t,i):i,o),YD=()=>navigator.userAgent.toLowerCase().includes("android"),qD=(e,t)=>{const n={};if(!t)return e.forEach((c,u)=>{const d=u===0?null:u-1,f=u===e.length-1?null:u+1;n[u]={leftIndex:d,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const o={},r={};let i=0,a=0,l=e.length-1;for(;l>=0;){a=e.findIndex((c,u)=>{var d;return u>=i&&((d=c.endSeparator)==null?void 0:d.includes(" "))&&c.endSeparator!==" / "}),a===-1&&(a=e.length-1);for(let c=a;c>=i;c-=1)r[c]=l,o[l]=c,l-=1;i=a+1}return e.forEach((c,u)=>{const d=r[u],f=d===0?null:o[d-1],p=d===e.length-1?null:o[d+1];n[u]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:o[0],endIndex:o[e.length-1]}},hc=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(o=>o.type===e);return n===-1?null:n}return e},GD=["value","referenceDate"],En={emptyValue:null,getTodayValue:jy,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=Pe(e,GD);return o.adapter.isValid(t)?t:n??LD(o)},cleanValue:kD,areValuesEqual:DD,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},KD={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:zD,getV6InputValueFromSections:WD,parseValueStr:(e,t,n)=>n(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,n)=>n,clearDateSections:e=>e.map(t=>U({},t,{value:""}))};function ZD(e){return typeof e.main=="string"}function XD(e,t=[]){if(!ZD(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Yt(e=[]){return([,t])=>t&&XD(t,e)}function QD(e){return Te("MuiTypography",e)}Ce("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const JD={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},eR=eS(),tR=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:r,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${ce(t)}`,n&&"gutterBottom",o&&"noWrap",r&&"paragraph"]};return we(l,QD,a)},nR=be("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${ce(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Xe(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,o])=>n!=="inherit"&&o&&typeof o=="object").map(([n,o])=>({props:{variant:n},style:o})),...Object.entries(e.palette).filter(Yt()).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${ce(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}}]}})),Bp={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ao=P.forwardRef(function(t,n){const{color:o,...r}=Fe({props:t,name:"MuiTypography"}),i=!JD[o],a=eR({...r,...i&&{color:o}}),{align:l="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:f=!1,paragraph:p=!1,variant:h="body1",variantMapping:m=Bp,...g}=a,y={...a,align:l,color:o,className:c,component:u,gutterBottom:d,noWrap:f,paragraph:p,variant:h,variantMapping:m},v=u||(p?"p":m[h]||Bp[h])||"span",C=tR(y);return b.jsx(nR,{as:v,ref:n,className:ye(C.root,c),...g,ownerState:y,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...g.style}})});process.env.NODE_ENV!=="production"&&(ao.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 oR(e){return Te("MuiPickersToolbar",e)}Ce("MuiPickersToolbar",["root","title","content"]);const rR=["localeText"],Vi=P.createContext(null);process.env.NODE_ENV!=="production"&&(Vi.displayName="PickerAdapterContext");const ha=function(t){const{localeText:n}=t,o=Pe(t,rR),{adapter:r,localeText:i}=P.useContext(Vi)??{adapter:void 0,localeText:void 0},a=ae.useThemeProps({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:f,localeText:p}=a,h=P.useMemo(()=>U({},p,i,n),[p,i,n]),m=P.useMemo(()=>{if(!c)return r||null;const v=new c({locale:f,formats:u,instance:d});if(!v.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/quickstart/#installation"].join(`
115
+ `));return v},[c,f,u,d,r]),g=P.useMemo(()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null,[m]),y=P.useMemo(()=>({utils:m,adapter:m,defaultDates:g,localeText:h}),[g,m,h]);return b.jsx(Vi.Provider,{value:y,children:l})};process.env.NODE_ENV!=="production"&&(ha.displayName="LocalizationProvider");process.env.NODE_ENV!=="production"&&(ha.propTypes={adapterLocale:s.any,children:s.node,dateAdapter:s.func,dateFormats:s.shape({dayOfMonth:s.string,dayOfMonthFull:s.string,fullDate:s.string,fullTime12h:s.string,fullTime24h:s.string,hours12h:s.string,hours24h:s.string,keyboardDate:s.string,keyboardDateTime12h:s.string,keyboardDateTime24h:s.string,meridiem:s.string,minutes:s.string,month:s.string,monthShort:s.string,normalDate:s.string,normalDateWithWeekday:s.string,seconds:s.string,shortDate:s.string,weekday:s.string,weekdayShort:s.string,year:s.string}),dateLibInstance:s.any,localeText:s.object});const Mu=P.createContext(()=>!0);process.env.NODE_ENV!=="production"&&(Mu.displayName="IsValidValueContext");function sR(){return P.useContext(Mu)}const Ou=P.createContext(null);process.env.NODE_ENV!=="production"&&(Ou.displayName="PickerFieldPrivateContext");function Fy(){return P.useContext(Ou)}const ma=P.createContext(null);process.env.NODE_ENV!=="production"&&(ma.displayName="PickerContext");const Mr=()=>{const e=P.useContext(ma);if(e==null)throw new Error("MUI X: The `usePickerContext` hook can only be called inside the context of a Picker component");return e},ku=P.createContext(null);process.env.NODE_ENV!=="production"&&(ku.displayName="PickerActionsContext");const Du=P.createContext({ownerState:{isPickerDisabled:!1,isPickerReadOnly:!1,isPickerValueEmpty:!1,isPickerOpen:!1,pickerVariant:"desktop",pickerOrientation:"portrait"},rootRefObject:{current:null},labelId:void 0,dismissViews:()=>{},hasUIView:!0,getCurrentViewMode:()=>"UI",triggerElement:null,viewContainerRole:null,defaultActionBarActions:[],onPopperExited:void 0});process.env.NODE_ENV!=="production"&&(Du.displayName="PickerPrivateContext");function By(e){const{contextValue:t,actionsContextValue:n,privateContextValue:o,fieldPrivateContextValue:r,isValidContextValue:i,localeText:a,children:l}=e;return b.jsx(ma.Provider,{value:t,children:b.jsx(ku.Provider,{value:n,children:b.jsx(Du.Provider,{value:o,children:b.jsx(Ou.Provider,{value:r,children:b.jsx(Mu.Provider,{value:i,children:b.jsx(ha,{localeText:a,children:l})})})})})})}const Dt=()=>P.useContext(Du);function zy(){const{ownerState:e}=Dt(),t=fn();return P.useMemo(()=>U({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const iR=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],aR=e=>we({root:["root"],title:["title"],content:["content"]},oR,e),lR=ae.styled("div",{name:"MuiPickersToolbar",slot:"Root"})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{pickerOrientation:"landscape"},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),cR=ae.styled("div",{name:"MuiPickersToolbar",slot:"Content",shouldForwardProp:e=>Zn(e)&&e!=="landscapeDirection"})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{pickerOrientation:"landscape"},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{pickerOrientation:"landscape",landscapeDirection:"row"},style:{flexDirection:"row"}}]}),Wy=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersToolbar"}),{children:r,className:i,classes:a,toolbarTitle:l,hidden:c,titleId:u,landscapeDirection:d}=o,f=Pe(o,iR),p=zy(),h=aR(a);return c?null:b.jsxs(lR,U({ref:n,className:ye(h.root,i),ownerState:p},f,{children:[b.jsx(ao,{color:"text.secondary",variant:"overline",id:u,className:h.title,children:l}),b.jsx(cR,{className:h.content,ownerState:p,landscapeDirection:d,children:r})]}))});process.env.NODE_ENV!=="production"&&(Wy.displayName="PickersToolbar");const uR=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:U({},e)}}}}),Uy={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",nextStepButtonLabel:"Next",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",timeRangePickerToolbarTitle:"Select time range",clockLabelText:(e,t)=>`Select ${e}. ${t?`Selected time is ${t}`:"No time selected"}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:e=>e?`Choose date, selected date is ${e}`:"Choose date",openTimePickerDialogue:e=>e?`Choose time, selected time is ${e}`:"Choose time",openRangePickerDialogue:e=>e?`Choose range, selected range is ${e}`:"Choose range",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},dR=Uy;uR(Uy);const Ru=()=>{const e=P.useContext(Vi);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
116
116
  `));if(e.adapter===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
117
- `));const t=P.useMemo(()=>U({},hD,e.localeText),[e.localeText]);return P.useMemo(()=>U({},e,{localeText:t}),[e,t])},Qe=()=>Ru().adapter,lo=()=>Ru().localeText,pc=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],hc=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Hy=["minDateTime","maxDateTime"],mD=[...pc,...hc,...Hy],Yy=e=>mD.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),gD=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","unstableStartFieldRef","unstableEndFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator","autoFocus","focused"],qy=(e,t)=>P.useMemo(()=>{const n=U({},e),o={},r=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return gD.forEach(r),t==="date"?pc.forEach(r):t==="time"?hc.forEach(r):t==="date-time"&&(pc.forEach(r),hc.forEach(r),Hy.forEach(r)),{forwardedProps:n,internalProps:o}},[e,t]),yD=({adapter:e,format:t})=>{let n=10,o=t,r=e.expandFormat(t);for(;r!==o;)if(o=r,r=e.expandFormat(o),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the component.");return r},bD=({adapter:e,expandedFormat:t})=>{const n=[],{start:o,end:r}=e.escapedCharacters,i=new RegExp(`(\\${o}[^\\${r}]*\\${r})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},vD=(e,t,n,o)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),o).length,format:o});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:o});case"day":return t.fieldDayPlaceholder({format:o});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:o});case"hours":return t.fieldHoursPlaceholder({format:o});case"minutes":return t.fieldMinutesPlaceholder({format:o});case"seconds":return t.fieldSecondsPlaceholder({format:o});case"meridiem":return t.fieldMeridiemPlaceholder({format:o});default:return o}},xD=({adapter:e,date:t,shouldRespectLeadingZeros:n,localeText:o,localizedDigits:r,now:i,token:a,startSeparator:l})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const c=wu(e,a),u=Vy(e,c.contentType,c.type,a),d=n?u:c.contentType==="digit",f=e.isValid(t);let p=f?e.formatByString(t,a):"",h=null;if(d)if(u)h=p===""?e.formatByString(i,a).length:p.length;else{if(c.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxLength' property on it's adapter`);h=c.maxLength,f&&(p=Tu(Pu($o(p,r),h),r))}return U({},c,{format:a,maxLength:h,value:p,placeholder:vD(e,o,c,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:d,startSeparator:l,endSeparator:"",modified:!1})},SD=e=>{var h;const{adapter:t,expandedFormat:n,escapedParts:o}=e,r=t.date(void 0),i=[];let a="";const l=Object.keys(t.formatTokenMap).sort((m,g)=>g.length-m.length),c=/^([a-zA-Z]+)/,u=new RegExp(`^(${l.join("|")})*$`),d=new RegExp(`^(${l.join("|")})`),f=m=>o.find(g=>g.start<=m&&g.end>=m);let p=0;for(;p<n.length;){const m=f(p),g=m!=null,y=(h=c.exec(n.slice(p)))==null?void 0:h[1];if(!g&&y!=null&&u.test(y)){let v=y;for(;v.length>0;){const w=d.exec(v)[1];v=v.slice(w.length),i.push(xD(U({},e,{now:r,token:w,startSeparator:a}))),a=""}p+=y.length}else{const v=n[p];g&&(m==null?void 0:m.start)===p||(m==null?void 0:m.end)===p||(i.length===0?a+=v:(i[i.length-1].endSeparator+=v,i[i.length-1].isEndFormatSeparator=!0)),p+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},CD=({isRtl:e,formatDensity:t,sections:n})=>n.map(o=>{const r=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`⁩${a}⁦`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return o.startSeparator=r(o.startSeparator),o.endSeparator=r(o.endSeparator),o}),zp=e=>{let t=yD(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=bD(U({},e,{expandedFormat:t})),o=SD(U({},e,{expandedFormat:t,escapedParts:n}));return CD(U({},e,{sections:o}))},Iu=()=>P.useContext(pa),wD=()=>{const e=P.useContext(ku);if(e==null)throw new Error(["MUI X: The `usePickerActionsContext` can only be called in fields that are used as a slot of a Picker component"].join(`
118
- `));return e};function TD(e){return Te("MuiDatePickerToolbar",e)}we("MuiDatePickerToolbar",["root","title"]);const PD=["toolbarFormat","toolbarPlaceholder","className","classes"],ED=e=>Ce({root:["root"],title:["title"]},TD,e),MD=ae.styled(Wy,{name:"MuiDatePickerToolbar",slot:"Root"})({}),OD=ae.styled(ao,{name:"MuiDatePickerToolbar",slot:"Title"})({variants:[{props:{pickerOrientation:"landscape"},style:{margin:"auto 16px auto auto"}}]}),Au=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiDatePickerToolbar"}),{toolbarFormat:r,toolbarPlaceholder:i="––",className:a,classes:l}=o,c=Pe(o,PD),u=Qe(),{value:d,views:f,orientation:p}=Mr(),h=lo(),m=zy(),g=ED(l),y=P.useMemo(()=>{if(!u.isValid(d))return i;const v=Cu(u,{format:r,views:f},!0);return u.formatByString(d,v)},[d,r,i,u,f]);return b.jsx(MD,U({ref:n,toolbarTitle:h.datePickerToolbarTitle,className:ye(g.root,a)},c,{children:b.jsx(OD,{variant:"h4",align:p==="landscape"?"left":"center",ownerState:m,className:g.title,children:y})}))});process.env.NODE_ENV!=="production"&&(Au.displayName="DatePickerToolbar");process.env.NODE_ENV!=="production"&&(Au.propTypes={classes:s.object,className:s.string,hidden:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleId:s.string,toolbarFormat:s.string,toolbarPlaceholder:s.node});const Ls=({props:e,value:t,timezone:n,adapter:o})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:i,shouldDisableYear:a,disablePast:l,disableFuture:c,minDate:u,maxDate:d}=e,f=o.date(void 0,n);switch(!0){case!o.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(c&&o.isAfterDay(t,f)):return"disableFuture";case!!(l&&o.isBeforeDay(t,f)):return"disablePast";case!!(u&&o.isBeforeDay(t,u)):return"minDate";case!!(d&&o.isAfterDay(t,d)):return"maxDate";default:return null}};Ls.valueManager=En;function Gy(e){const{props:t,validator:n,value:o,timezone:r,onError:i}=e,a=Qe(),l=P.useRef(n.valueManager.defaultErrorState),c=n({adapter:a,value:o,timezone:r,props:t}),u=n.valueManager.hasError(c);P.useEffect(()=>{i&&!n.valueManager.isSameError(c,l.current)&&i(c,o),l.current=c},[n,i,c,o]);const d=he(f=>n({adapter:a,value:f,timezone:r,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}const kD=()=>Ru().defaultDates,ha=e=>{const t=Qe(),n=P.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function DD(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return P.useMemo(()=>({valueType:"date",validator:Ls,internal_valueManager:En,internal_fieldValueManager:Qk,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:ID,internal_useOpenPickerButtonAriaLabel:RD}),[t])}function RD(e){const t=Qe(),n=lo();return P.useMemo(()=>{const o=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(o)},[e,n,t])}function ID(e){const t=Qe(),n=$s(e);return P.useMemo(()=>U({},e,n,{format:e.format??t.formats.keyboardDate}),[e,n,t])}function $s(e){const t=Qe(),n=kD();return P.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,minDate:Rp(t,e.minDate,n.minDate),maxDate:Rp(t,e.maxDate,n.maxDate)}),[e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}function Ky(e,t){const n=ae.useThemeProps({props:e,name:t}),o=$s(n),r=P.useMemo(()=>{var i;return((i=n.localeText)==null?void 0:i.toolbarTitle)==null?n.localeText:U({},n.localeText,{datePickerToolbarTitle:n.localeText.toolbarTitle})},[n.localeText]);return U({},n,o,{localeText:r},Rk({views:n.views,openTo:n.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{slots:U({toolbar:Au},n.slots)})}function mr(e){return typeof e=="string"}function Zy(e,t,n){return e===void 0||mr(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Xy(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function Wp(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Qy(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:i}=e;if(!t){const h=ye(n==null?void 0:n.className,i,r==null?void 0:r.className,o==null?void 0:o.className),m={...n==null?void 0:n.style,...r==null?void 0:r.style,...o==null?void 0:o.style},g={...n,...r,...o};return h.length>0&&(g.className=h),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const a=Xy({...r,...o}),l=Wp(o),c=Wp(r),u=t(a),d=ye(u==null?void 0:u.className,n==null?void 0:n.className,i,r==null?void 0:r.className,o==null?void 0:o.className),f={...u==null?void 0:u.style,...n==null?void 0:n.style,...r==null?void 0:r.style,...o==null?void 0:o.style},p={...u,...n,...c,...l};return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}function Le(e){var f;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...i}=e,a=r?{}:tn(n,o),{props:l,internalRef:c}=Qy({...i,externalSlotProps:a}),u=$e(c,a==null?void 0:a.ref,(f=e.additionalProps)==null?void 0:f.ref);return Zy(t,{...l,ref:u},o)}const Up={};function Jy(e,t){const n=P.useRef(Up);return n.current===Up&&(n.current=e(t)),n}const AD=[];function ND(e){P.useEffect(e,AD)}class Nu{constructor(){pe(this,"currentId",null);pe(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});pe(this,"disposeEffect",()=>this.clear)}static create(){return new Nu}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Xn(){const e=Jy(Nu.create).current;return ND(e.disposeEffect),e}function Bn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function _D(e){const{prototype:t={}}=e;return!!t.isReactComponent}function eb(e,t,n,o,r){const i=e[t],a=r||t;if(i==null||typeof window>"u")return null;let l;const c=i.type;return typeof c=="function"&&!_D(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Vs=Bn(s.element,eb);Vs.isRequired=Bn(s.element.isRequired,eb);function Fs(e){var t;return parseInt(P.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function mc(e,t){return mc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},mc(e,t)}function _u(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,mc(e,t)}function jD(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function LD(e,t){e.classList?e.classList.add(t):jD(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Hp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function $D(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Hp(e.className,t):e.setAttribute("class",Hp(e.className&&e.className.baseVal||"",t))}const Yp={disabled:!1};var VD=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null,FD=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})]):null;const Fi=A.createContext(null);var tb=function(t){return t.scrollTop},Xr="unmounted",Eo="exited",Mo="entering",Xo="entered",gc="exiting",an=function(e){_u(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=r,l=a&&!a.isMounting?o.enter:o.appear,c;return i.appearStatus=null,o.in?l?(c=Eo,i.appearStatus=Mo):c=Xo:o.unmountOnExit||o.mountOnEnter?c=Xr:c=Eo,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===Xr?{status:Eo}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var i=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==Mo&&a!==Xo&&(i=Mo):(a===Mo||a===Xo)&&(i=gc)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,i,a,l;return i=a=l=r,r!=null&&typeof r!="number"&&(i=r.exit,a=r.enter,l=r.appear!==void 0?r.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(r,i){if(r===void 0&&(r=!1),i!==null)if(this.cancelNextCallback(),i===Mo){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:er.findDOMNode(this);a&&tb(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Eo&&this.setState({status:Xr})},n.performEnter=function(r){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:r,c=this.props.nodeRef?[l]:[er.findDOMNode(this),l],u=c[0],d=c[1],f=this.getTimeouts(),p=l?f.appear:f.enter;if(!r&&!a||Yp.disabled){this.safeSetState({status:Xo},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Mo},function(){i.props.onEntering(u,d),i.onTransitionEnd(p,function(){i.safeSetState({status:Xo},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var r=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:er.findDOMNode(this);if(!i||Yp.disabled){this.safeSetState({status:Eo},function(){r.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:gc},function(){r.props.onExiting(l),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:Eo},function(){r.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,i){i=this.setNextCallback(i),this.setState(r,i)},n.setNextCallback=function(r){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,r(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(r,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:er.findDOMNode(this),l=r==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===Xr)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=Pe(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return A.createElement(Fi.Provider,{value:null},typeof a=="function"?a(r,l):A.cloneElement(A.Children.only(a),l))},t}(A.Component);an.contextType=Fi;an.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:s.shape({current:typeof Element>"u"?s.any:function(e,t,n,o,r,i){var a=e[t];return s.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,o,r,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=VD;t.addEndListener||(n=n.isRequired);for(var o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];return n.apply(void 0,[t].concat(r))},addEndListener:s.func,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}:{};function Go(){}an.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Go,onEntering:Go,onEntered:Go,onExit:Go,onExiting:Go,onExited:Go};an.UNMOUNTED=Xr;an.EXITED=Eo;an.ENTERING=Mo;an.ENTERED=Xo;an.EXITING=gc;var BD=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return LD(t,o)})},ml=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return $D(t,o)})},ju=function(e){_u(t,e);function t(){for(var o,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return o=e.call.apply(e,[this].concat(i))||this,o.appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(l,c){var u=o.resolveArguments(l,c),d=u[0],f=u[1];o.removeClasses(d,"exit"),o.addClass(d,f?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(l,c)},o.onEntering=function(l,c){var u=o.resolveArguments(l,c),d=u[0],f=u[1],p=f?"appear":"enter";o.addClass(d,p,"active"),o.props.onEntering&&o.props.onEntering(l,c)},o.onEntered=function(l,c){var u=o.resolveArguments(l,c),d=u[0],f=u[1],p=f?"appear":"enter";o.removeClasses(d,p),o.addClass(d,p,"done"),o.props.onEntered&&o.props.onEntered(l,c)},o.onExit=function(l){var c=o.resolveArguments(l),u=c[0];o.removeClasses(u,"appear"),o.removeClasses(u,"enter"),o.addClass(u,"exit","base"),o.props.onExit&&o.props.onExit(l)},o.onExiting=function(l){var c=o.resolveArguments(l),u=c[0];o.addClass(u,"exit","active"),o.props.onExiting&&o.props.onExiting(l)},o.onExited=function(l){var c=o.resolveArguments(l),u=c[0];o.removeClasses(u,"exit"),o.addClass(u,"exit","done"),o.props.onExited&&o.props.onExited(l)},o.resolveArguments=function(l,c){return o.props.nodeRef?[o.props.nodeRef.current,l]:[l,c]},o.getClassNames=function(l){var c=o.props.classNames,u=typeof c=="string",d=u&&c?c+"-":"",f=u?""+d+l:c[l],p=u?f+"-active":c[l+"Active"],h=u?f+"-done":c[l+"Done"];return{baseClassName:f,activeClassName:p,doneClassName:h}},o}var n=t.prototype;return n.addClass=function(r,i,a){var l=this.getClassNames(i)[a+"ClassName"],c=this.getClassNames("enter"),u=c.doneClassName;i==="appear"&&a==="done"&&u&&(l+=" "+u),a==="active"&&r&&tb(r),l&&(this.appliedClasses[i][a]=l,BD(r,l))},n.removeClasses=function(r,i){var a=this.appliedClasses[i],l=a.base,c=a.active,u=a.done;this.appliedClasses[i]={},l&&ml(r,l),c&&ml(r,c),u&&ml(r,u)},n.render=function(){var r=this.props;r.classNames;var i=Pe(r,["classNames"]);return A.createElement(an,U({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(A.Component);ju.defaultProps={classNames:""};ju.propTypes=process.env.NODE_ENV!=="production"?U({},an.propTypes,{classNames:FD,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}):{};function zD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lu(e,t){var n=function(i){return t&&A.isValidElement(i)?t(i):i},o=Object.create(null);return e&&A.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function WD(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var o=Object.create(null),r=[];for(var i in e)i in t?r.length&&(o[i]=r,r=[]):r.push(i);var a,l={};for(var c in t){if(o[c])for(a=0;a<o[c].length;a++){var u=o[c][a];l[o[c][a]]=n(u)}l[c]=n(c)}for(a=0;a<r.length;a++)l[r[a]]=n(r[a]);return l}function Io(e,t,n){return n[t]!=null?n[t]:e.props[t]}function UD(e,t){return Lu(e.children,function(n){return A.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Io(n,"appear",e),enter:Io(n,"enter",e),exit:Io(n,"exit",e)})})}function HD(e,t,n){var o=Lu(e.children),r=WD(t,o);return Object.keys(r).forEach(function(i){var a=r[i];if(A.isValidElement(a)){var l=i in t,c=i in o,u=t[i],d=A.isValidElement(u)&&!u.props.in;c&&(!l||d)?r[i]=A.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Io(a,"exit",e),enter:Io(a,"enter",e)}):!c&&l&&!d?r[i]=A.cloneElement(a,{in:!1}):c&&l&&A.isValidElement(u)&&(r[i]=A.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:Io(a,"exit",e),enter:Io(a,"enter",e)}))}}),r}var YD=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},qD={component:"div",childFactory:function(t){return t}},Bs=function(e){_u(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=i.handleExited.bind(zD(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,i){var a=i.children,l=i.handleExited,c=i.firstRender;return{children:c?UD(r,l):HD(r,a,l),firstRender:!1}},n.handleExited=function(r,i){var a=Lu(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(i),this.mounted&&this.setState(function(l){var c=U({},l.children);return delete c[r.key],{children:c}}))},n.render=function(){var r=this.props,i=r.component,a=r.childFactory,l=Pe(r,["component","childFactory"]),c=this.state.contextValue,u=YD(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?A.createElement(Fi.Provider,{value:c},u):A.createElement(Fi.Provider,{value:c},A.createElement(i,l,u))},t}(A.Component);Bs.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};Bs.defaultProps=qD;const nb=e=>e.scrollTop;function Bi(e,t){const{timeout:n,easing:o,style:r={}}=e;return{duration:r.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:r.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:r.transitionDelay}}function yc(e){return`scale(${e}, ${e**2})`}const GD={entering:{opacity:1,transform:yc(1)},entered:{opacity:1,transform:"none"}},gl=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),xs=P.forwardRef(function(t,n){const{addEndListener:o,appear:r=!0,children:i,easing:a,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:h,style:m,timeout:g="auto",TransitionComponent:y=an,...v}=t,w=Xn(),x=P.useRef(),S=sa(),T=P.useRef(null),E=$e(T,Fs(i),n),M=I=>O=>{if(I){const N=T.current;O===void 0?I(N):I(N,O)}},_=M(d),D=M((I,O)=>{nb(I);const{duration:N,delay:F,easing:V}=Bi({style:m,timeout:g,easing:a},{mode:"enter"});let B;g==="auto"?(B=S.transitions.getAutoHeightDuration(I.clientHeight),x.current=B):B=N,I.style.transition=[S.transitions.create("opacity",{duration:B,delay:F}),S.transitions.create("transform",{duration:gl?B:B*.666,delay:F,easing:V})].join(","),c&&c(I,O)}),$=M(u),j=M(h),C=M(I=>{const{duration:O,delay:N,easing:F}=Bi({style:m,timeout:g,easing:a},{mode:"exit"});let V;g==="auto"?(V=S.transitions.getAutoHeightDuration(I.clientHeight),x.current=V):V=O,I.style.transition=[S.transitions.create("opacity",{duration:V,delay:N}),S.transitions.create("transform",{duration:gl?V:V*.666,delay:gl?N:N||V*.333,easing:F})].join(","),I.style.opacity=0,I.style.transform=yc(.75),f&&f(I)}),L=M(p),k=I=>{g==="auto"&&w.start(x.current||0,I),o&&o(T.current,I)};return b.jsx(y,{appear:r,in:l,nodeRef:T,onEnter:D,onEntered:$,onEntering:_,onExit:C,onExited:L,onExiting:j,addEndListener:k,timeout:g==="auto"?null:g,...v,children:(I,{ownerState:O,...N})=>P.cloneElement(i,{style:{opacity:0,transform:yc(.75),visibility:I==="exited"&&!l?"hidden":void 0,...GD[I],...m,...i.props.style},ref:E,...N})})});process.env.NODE_ENV!=="production"&&(xs.propTypes={addEndListener:s.func,appear:s.bool,children:Vs.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})])});xs&&(xs.muiSupportAuto=!0);const KD={entering:{opacity:1},entered:{opacity:1}},no=P.forwardRef(function(t,n){const o=sa(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:h,onExited:m,onExiting:g,style:y,timeout:v=r,TransitionComponent:w=an,...x}=t,S=P.useRef(null),T=$e(S,Fs(l),n),E=k=>I=>{if(k){const O=S.current;I===void 0?k(O):k(O,I)}},M=E(p),_=E((k,I)=>{nb(k);const O=Bi({style:y,timeout:v,easing:c},{mode:"enter"});k.style.webkitTransition=o.transitions.create("opacity",O),k.style.transition=o.transitions.create("opacity",O),d&&d(k,I)}),D=E(f),$=E(g),j=E(k=>{const I=Bi({style:y,timeout:v,easing:c},{mode:"exit"});k.style.webkitTransition=o.transitions.create("opacity",I),k.style.transition=o.transitions.create("opacity",I),h&&h(k)}),C=E(m),L=k=>{i&&i(S.current,k)};return b.jsx(w,{appear:a,in:u,nodeRef:S,onEnter:_,onEntered:D,onEntering:M,onExit:j,onExited:C,onExiting:$,addEndListener:L,timeout:v,...x,children:(k,{ownerState:I,...O})=>P.cloneElement(l,{style:{opacity:0,visibility:k==="exited"&&!u?"hidden":void 0,...KD[k],...y,...l.props.style},ref:T,...O})})});process.env.NODE_ENV!=="production"&&(no.propTypes={addEndListener:s.func,appear:s.bool,children:Vs.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 ZD(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 ob(e,t,n,o){const r=e[t];if(r==null||!Number.isInteger(r)){const i=ZD(r);return new RangeError(`Invalid ${o} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function rb(e,t,n,o){return e[t]===void 0?null:ob(e,t,n,o)}function bc(){return null}rb.isRequired=ob;bc.isRequired=bc;const sb=process.env.NODE_ENV==="production"?bc:rb;function XD(e){return Te("MuiPaper",e)}we("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 QD=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return Ce(i,XD,r)},JD=be("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}`]]}})(Xe(({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)"}}]}))),zs=P.forwardRef(function(t,n){var h;const o=Fe({props:t,name:"MuiPaper"}),r=sa(),{className:i,component:a="div",elevation:l=1,square:c=!1,variant:u="elevation",...d}=o,f={...o,component:a,elevation:l,square:c,variant:u},p=QD(f);return process.env.NODE_ENV!=="production"&&r.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
119
- `)),b.jsx(JD,{as:a,ownerState:f,className:ye(p.root,i),ref:n,...d,style:{...u==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[l],...r.vars&&{"--Paper-overlay":(h=r.vars.overlays)==null?void 0:h[l]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${wi("#fff",Al(l))}, ${wi("#fff",Al(l))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(zs.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:Bn(sb,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])});function Vn(e,t,n,o,r){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=r||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var Bt="top",on="bottom",rn="right",zt="left",$u="auto",Ws=[Bt,on,rn,zt],gr="start",Ss="end",eR="clippingParents",ib="viewport",Vr="popper",tR="reference",qp=Ws.reduce(function(e,t){return e.concat([t+"-"+gr,t+"-"+Ss])},[]),ab=[].concat(Ws,[$u]).reduce(function(e,t){return e.concat([t,t+"-"+gr,t+"-"+Ss])},[]),nR="beforeRead",oR="read",rR="afterRead",sR="beforeMain",iR="main",aR="afterMain",lR="beforeWrite",cR="write",uR="afterWrite",dR=[nR,oR,rR,sR,iR,aR,lR,cR,uR];function Mn(e){return e?(e.nodeName||"").toLowerCase():null}function qt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Vo(e){var t=qt(e).Element;return e instanceof t||e instanceof Element}function nn(e){var t=qt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Vu(e){if(typeof ShadowRoot>"u")return!1;var t=qt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function fR(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!nn(i)||!Mn(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(a){var l=r[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function pR(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],i=t.attributes[o]||{},a=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),l=a.reduce(function(c,u){return c[u]="",c},{});!nn(r)||!Mn(r)||(Object.assign(r.style,l),Object.keys(i).forEach(function(c){r.removeAttribute(c)}))})}}const hR={name:"applyStyles",enabled:!0,phase:"write",fn:fR,effect:pR,requires:["computeStyles"]};function wn(e){return e.split("-")[0]}var _o=Math.max,zi=Math.min,yr=Math.round;function vc(){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 lb(){return!/^((?!chrome|android).)*safari/i.test(vc())}function br(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&nn(e)&&(r=e.offsetWidth>0&&yr(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&yr(o.height)/e.offsetHeight||1);var a=Vo(e)?qt(e):window,l=a.visualViewport,c=!lb()&&n,u=(o.left+(c&&l?l.offsetLeft:0))/r,d=(o.top+(c&&l?l.offsetTop:0))/i,f=o.width/r,p=o.height/i;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function Fu(e){var t=br(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function cb(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Vu(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Fn(e){return qt(e).getComputedStyle(e)}function mR(e){return["table","td","th"].indexOf(Mn(e))>=0}function co(e){return((Vo(e)?e.ownerDocument:e.document)||window.document).documentElement}function ma(e){return Mn(e)==="html"?e:e.assignedSlot||e.parentNode||(Vu(e)?e.host:null)||co(e)}function Gp(e){return!nn(e)||Fn(e).position==="fixed"?null:e.offsetParent}function gR(e){var t=/firefox/i.test(vc()),n=/Trident/i.test(vc());if(n&&nn(e)){var o=Fn(e);if(o.position==="fixed")return null}var r=ma(e);for(Vu(r)&&(r=r.host);nn(r)&&["html","body"].indexOf(Mn(r))<0;){var i=Fn(r);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 r;r=r.parentNode}return null}function Us(e){for(var t=qt(e),n=Gp(e);n&&mR(n)&&Fn(n).position==="static";)n=Gp(n);return n&&(Mn(n)==="html"||Mn(n)==="body"&&Fn(n).position==="static")?t:n||gR(e)||t}function Bu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function is(e,t,n){return _o(e,zi(t,n))}function yR(e,t,n){var o=is(e,t,n);return o>n?n:o}function ub(){return{top:0,right:0,bottom:0,left:0}}function db(e){return Object.assign({},ub(),e)}function fb(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var bR=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,db(typeof t!="number"?t:fb(t,Ws))};function vR(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=wn(n.placement),c=Bu(l),u=[zt,rn].indexOf(l)>=0,d=u?"height":"width";if(!(!i||!a)){var f=bR(r.padding,n),p=Fu(i),h=c==="y"?Bt:zt,m=c==="y"?on:rn,g=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],y=a[c]-n.rects.reference[c],v=Us(i),w=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,x=g/2-y/2,S=f[h],T=w-p[d]-f[m],E=w/2-p[d]/2+x,M=is(S,E,T),_=c;n.modifiersData[o]=(t={},t[_]=M,t.centerOffset=M-E,t)}}function xR(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||cb(t.elements.popper,r)&&(t.elements.arrow=r))}const SR={name:"arrow",enabled:!0,phase:"main",fn:vR,effect:xR,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function vr(e){return e.split("-")[1]}var CR={top:"auto",right:"auto",bottom:"auto",left:"auto"};function wR(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:yr(n*r)/r||0,y:yr(o*r)/r||0}}function Kp(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=a.x,h=p===void 0?0:p,m=a.y,g=m===void 0?0:m,y=typeof d=="function"?d({x:h,y:g}):{x:h,y:g};h=y.x,g=y.y;var v=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),x=zt,S=Bt,T=window;if(u){var E=Us(n),M="clientHeight",_="clientWidth";if(E===qt(n)&&(E=co(n),Fn(E).position!=="static"&&l==="absolute"&&(M="scrollHeight",_="scrollWidth")),E=E,r===Bt||(r===zt||r===rn)&&i===Ss){S=on;var D=f&&E===T&&T.visualViewport?T.visualViewport.height:E[M];g-=D-o.height,g*=c?1:-1}if(r===zt||(r===Bt||r===on)&&i===Ss){x=rn;var $=f&&E===T&&T.visualViewport?T.visualViewport.width:E[_];h-=$-o.width,h*=c?1:-1}}var j=Object.assign({position:l},u&&CR),C=d===!0?wR({x:h,y:g},qt(n)):{x:h,y:g};if(h=C.x,g=C.y,c){var L;return Object.assign({},j,(L={},L[S]=w?"0":"",L[x]=v?"0":"",L.transform=(T.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",L))}return Object.assign({},j,(t={},t[S]=w?g+"px":"",t[x]=v?h+"px":"",t.transform="",t))}function TR(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,i=n.adaptive,a=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:wn(t.placement),variation:vr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Kp(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Kp(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 PR={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:TR,data:{}};var ii={passive:!0};function ER(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=r===void 0?!0:r,a=o.resize,l=a===void 0?!0:a,c=qt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,ii)}),l&&c.addEventListener("resize",n.update,ii),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,ii)}),l&&c.removeEventListener("resize",n.update,ii)}}const MR={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ER,data:{}};var OR={left:"right",right:"left",bottom:"top",top:"bottom"};function xi(e){return e.replace(/left|right|bottom|top/g,function(t){return OR[t]})}var kR={start:"end",end:"start"};function Zp(e){return e.replace(/start|end/g,function(t){return kR[t]})}function zu(e){var t=qt(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Wu(e){return br(co(e)).left+zu(e).scrollLeft}function DR(e,t){var n=qt(e),o=co(e),r=n.visualViewport,i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;var u=lb();(u||!u&&t==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l+Wu(e),y:c}}function RR(e){var t,n=co(e),o=zu(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=_o(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=_o(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+Wu(e),c=-o.scrollTop;return Fn(r||n).direction==="rtl"&&(l+=_o(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}function Uu(e){var t=Fn(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function pb(e){return["html","body","#document"].indexOf(Mn(e))>=0?e.ownerDocument.body:nn(e)&&Uu(e)?e:pb(ma(e))}function as(e,t){var n;t===void 0&&(t=[]);var o=pb(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=qt(o),a=r?[i].concat(i.visualViewport||[],Uu(o)?o:[]):o,l=t.concat(a);return r?l:l.concat(as(ma(a)))}function xc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function IR(e,t){var n=br(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 Xp(e,t,n){return t===ib?xc(DR(e,n)):Vo(t)?IR(t,n):xc(RR(co(e)))}function AR(e){var t=as(ma(e)),n=["absolute","fixed"].indexOf(Fn(e).position)>=0,o=n&&nn(e)?Us(e):e;return Vo(o)?t.filter(function(r){return Vo(r)&&cb(r,o)&&Mn(r)!=="body"}):[]}function NR(e,t,n,o){var r=t==="clippingParents"?AR(e):[].concat(t),i=[].concat(r,[n]),a=i[0],l=i.reduce(function(c,u){var d=Xp(e,u,o);return c.top=_o(d.top,c.top),c.right=zi(d.right,c.right),c.bottom=zi(d.bottom,c.bottom),c.left=_o(d.left,c.left),c},Xp(e,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function hb(e){var t=e.reference,n=e.element,o=e.placement,r=o?wn(o):null,i=o?vr(o):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(r){case Bt:c={x:a,y:t.y-n.height};break;case on:c={x:a,y:t.y+t.height};break;case rn:c={x:t.x+t.width,y:l};break;case zt:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=r?Bu(r):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case gr:c[u]=c[u]-(t[d]/2-n[d]/2);break;case Ss:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function Cs(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,i=n.strategy,a=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?eR:l,u=n.rootBoundary,d=u===void 0?ib:u,f=n.elementContext,p=f===void 0?Vr:f,h=n.altBoundary,m=h===void 0?!1:h,g=n.padding,y=g===void 0?0:g,v=db(typeof y!="number"?y:fb(y,Ws)),w=p===Vr?tR:Vr,x=e.rects.popper,S=e.elements[m?w:p],T=NR(Vo(S)?S:S.contextElement||co(e.elements.popper),c,d,a),E=br(e.elements.reference),M=hb({reference:E,element:x,placement:r}),_=xc(Object.assign({},x,M)),D=p===Vr?_:E,$={top:T.top-D.top+v.top,bottom:D.bottom-T.bottom+v.bottom,left:T.left-D.left+v.left,right:D.right-T.right+v.right},j=e.modifiersData.offset;if(p===Vr&&j){var C=j[r];Object.keys($).forEach(function(L){var k=[rn,on].indexOf(L)>=0?1:-1,I=[Bt,on].indexOf(L)>=0?"y":"x";$[L]+=C[I]*k})}return $}function _R(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?ab:c,d=vr(o),f=d?l?qp:qp.filter(function(m){return vr(m)===d}):Ws,p=f.filter(function(m){return u.indexOf(m)>=0});p.length===0&&(p=f);var h=p.reduce(function(m,g){return m[g]=Cs(e,{placement:g,boundary:r,rootBoundary:i,padding:a})[wn(g)],m},{});return Object.keys(h).sort(function(m,g){return h[m]-h[g]})}function jR(e){if(wn(e)===$u)return[];var t=xi(e);return[Zp(e),t,Zp(t)]}function LR(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,g=n.allowedAutoPlacements,y=t.options.placement,v=wn(y),w=v===y,x=c||(w||!m?[xi(y)]:jR(y)),S=[y].concat(x).reduce(function(Z,re){return Z.concat(wn(re)===$u?_R(t,{placement:re,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:g}):re)},[]),T=t.rects.reference,E=t.rects.popper,M=new Map,_=!0,D=S[0],$=0;$<S.length;$++){var j=S[$],C=wn(j),L=vr(j)===gr,k=[Bt,on].indexOf(C)>=0,I=k?"width":"height",O=Cs(t,{placement:j,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),N=k?L?rn:zt:L?on:Bt;T[I]>E[I]&&(N=xi(N));var F=xi(N),V=[];if(i&&V.push(O[C]<=0),l&&V.push(O[N]<=0,O[F]<=0),V.every(function(Z){return Z})){D=j,_=!1;break}M.set(j,V)}if(_)for(var B=m?3:1,R=function(re){var X=S.find(function(Q){var K=M.get(Q);if(K)return K.slice(0,re).every(function(te){return te})});if(X)return D=X,"break"},Y=B;Y>0;Y--){var G=R(Y);if(G==="break")break}t.placement!==D&&(t.modifiersData[o]._skip=!0,t.placement=D,t.reset=!0)}}const $R={name:"flip",enabled:!0,phase:"main",fn:LR,requiresIfExists:["offset"],data:{_skip:!1}};function Qp(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 Jp(e){return[Bt,rn,on,zt].some(function(t){return e[t]>=0})}function VR(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=Cs(t,{elementContext:"reference"}),l=Cs(t,{altBoundary:!0}),c=Qp(a,o),u=Qp(l,r,i),d=Jp(c),f=Jp(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const FR={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:VR};function BR(e,t,n){var o=wn(e),r=[zt,Bt].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*r,[zt,rn].indexOf(o)>=0?{x:l,y:a}:{x:a,y:l}}function zR(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,a=ab.reduce(function(d,f){return d[f]=BR(f,t.rects,i),d},{}),l=a[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=a}const WR={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:zR};function UR(e){var t=e.state,n=e.name;t.modifiersData[n]=hb({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const HR={name:"popperOffsets",enabled:!0,phase:"read",fn:UR,data:{}};function YR(e){return e==="x"?"y":"x"}function qR(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,m=n.tetherOffset,g=m===void 0?0:m,y=Cs(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),v=wn(t.placement),w=vr(t.placement),x=!w,S=Bu(v),T=YR(S),E=t.modifiersData.popperOffsets,M=t.rects.reference,_=t.rects.popper,D=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,$=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(E){if(i){var L,k=S==="y"?Bt:zt,I=S==="y"?on:rn,O=S==="y"?"height":"width",N=E[S],F=N+y[k],V=N-y[I],B=h?-_[O]/2:0,R=w===gr?M[O]:_[O],Y=w===gr?-_[O]:-M[O],G=t.elements.arrow,Z=h&&G?Fu(G):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ub(),X=re[k],Q=re[I],K=is(0,M[O],Z[O]),te=x?M[O]/2-B-K-X-$.mainAxis:R-K-X-$.mainAxis,z=x?-M[O]/2+B+K+Q+$.mainAxis:Y+K+Q+$.mainAxis,H=t.elements.arrow&&Us(t.elements.arrow),W=H?S==="y"?H.clientTop||0:H.clientLeft||0:0,ee=(L=j==null?void 0:j[S])!=null?L:0,J=N+te-ee-W,ie=N+z-ee,ne=is(h?zi(F,J):F,N,h?_o(V,ie):V);E[S]=ne,C[S]=ne-N}if(l){var de,se=S==="x"?Bt:zt,ue=S==="x"?on:rn,le=E[T],fe=T==="y"?"height":"width",me=le+y[se],Ie=le-y[ue],Oe=[Bt,zt].indexOf(v)!==-1,qe=(de=j==null?void 0:j[T])!=null?de:0,tt=Oe?me:le-M[fe]-_[fe]-qe+$.altAxis,St=Oe?le+M[fe]+_[fe]-qe-$.altAxis:Ie,Tt=h&&Oe?yR(tt,le,St):is(h?tt:me,le,h?St:Ie);E[T]=Tt,C[T]=Tt-le}t.modifiersData[o]=C}}const GR={name:"preventOverflow",enabled:!0,phase:"main",fn:qR,requiresIfExists:["offset"]};function KR(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ZR(e){return e===qt(e)||!nn(e)?zu(e):KR(e)}function XR(e){var t=e.getBoundingClientRect(),n=yr(t.width)/e.offsetWidth||1,o=yr(t.height)/e.offsetHeight||1;return n!==1||o!==1}function QR(e,t,n){n===void 0&&(n=!1);var o=nn(t),r=nn(t)&&XR(t),i=co(t),a=br(e,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((Mn(t)!=="body"||Uu(i))&&(l=ZR(t)),nn(t)?(c=br(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Wu(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function JR(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&r(c)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),o}function eI(e){var t=JR(e);return dR.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function tI(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function nI(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var eh={placement:"bottom",modifiers:[],strategy:"absolute"};function th(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function oI(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?eh:r;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},eh,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(v){var w=typeof v=="function"?v(d.options):v;g(),d.options=Object.assign({},i,d.options,w),d.scrollParents={reference:Vo(l)?as(l):l.contextElement?as(l.contextElement):[],popper:as(c)};var x=eI(nI([].concat(o,d.options.modifiers)));return d.orderedModifiers=x.filter(function(S){return S.enabled}),m(),h.update()},forceUpdate:function(){if(!p){var v=d.elements,w=v.reference,x=v.popper;if(th(w,x)){d.rects={reference:QR(w,Us(x),d.options.strategy==="fixed"),popper:Fu(x)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function($){return d.modifiersData[$.name]=Object.assign({},$.data)});for(var S=0;S<d.orderedModifiers.length;S++){if(d.reset===!0){d.reset=!1,S=-1;continue}var T=d.orderedModifiers[S],E=T.fn,M=T.options,_=M===void 0?{}:M,D=T.name;typeof E=="function"&&(d=E({state:d,options:_,name:D,instance:h})||d)}}}},update:tI(function(){return new Promise(function(y){h.forceUpdate(),y(d)})}),destroy:function(){g(),p=!0}};if(!th(l,c))return h;h.setOptions(u).then(function(y){!p&&u.onFirstUpdate&&u.onFirstUpdate(y)});function m(){d.orderedModifiers.forEach(function(y){var v=y.name,w=y.options,x=w===void 0?{}:w,S=y.effect;if(typeof S=="function"){var T=S({state:d,name:v,instance:h,options:x}),E=function(){};f.push(T||E)}})}function g(){f.forEach(function(y){return y()}),f=[]}return h}}var rI=[MR,HR,PR,hR,WR,$R,GR,SR,FR],sI=oI({defaultModifiers:rI});function iI(e){return typeof e=="function"?e():e}const ws=P.forwardRef(function(t,n){const{children:o,container:r,disablePortal:i=!1}=t,[a,l]=P.useState(null),c=$e(P.isValidElement(o)?Fs(o):null,n);if(wt(()=>{i||l(iI(r)||document.body)},[r,i]),wt(()=>{if(a&&!i)return tf(n,a),()=>{tf(n,null)}},[n,a,i]),i){if(P.isValidElement(o)){const u={ref:c};return P.cloneElement(o,u)}return o}return a&&e0.createPortal(o,a)});process.env.NODE_ENV!=="production"&&(ws.propTypes={children:s.node,container:s.oneOfType([Vn,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&(ws.propTypes=am(ws.propTypes));function aI(e){return Te("MuiPopper",e)}we("MuiPopper",["root"]);function lI(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 Wi(e){return typeof e=="function"?e():e}function ga(e){return e.nodeType!==void 0}function cI(e){return!ga(e)}const uI=e=>{const{classes:t}=e;return Ce({root:["root"]},aI,t)},dI={},fI=P.forwardRef(function(t,n){const{anchorEl:o,children:r,direction:i,disablePortal:a,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:f,slotProps:p={},slots:h={},TransitionProps:m,ownerState:g,...y}=t,v=P.useRef(null),w=$e(v,n),x=P.useRef(null),S=$e(x,f),T=P.useRef(S);wt(()=>{T.current=S},[S]),P.useImperativeHandle(f,()=>x.current,[]);const E=lI(u,i),[M,_]=P.useState(E),[D,$]=P.useState(Wi(o));P.useEffect(()=>{x.current&&x.current.forceUpdate()}),P.useEffect(()=>{o&&$(Wi(o))},[o]),wt(()=>{if(!D||!c)return;const I=F=>{_(F.placement)};if(process.env.NODE_ENV!=="production"&&D&&ga(D)&&D.nodeType===1){const F=D.getBoundingClientRect();process.env.NODE_ENV!=="test"&&F.top===0&&F.left===0&&F.right===0&&F.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(`
120
- `))}let O=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:F})=>{I(F)}}];l!=null&&(O=O.concat(l)),d&&d.modifiers!=null&&(O=O.concat(d.modifiers));const N=sI(D,v.current,{placement:E,...d,modifiers:O});return T.current(N),()=>{N.destroy(),T.current(null)}},[D,a,l,c,d,E]);const j={placement:M};m!==null&&(j.TransitionProps=m);const C=uI(t),L=h.root??"div",k=Le({elementType:L,externalSlotProps:p.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:C.root});return b.jsx(L,{...k,children:typeof r=="function"?r(j):r})}),mb=P.forwardRef(function(t,n){const{anchorEl:o,children:r,container:i,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:d,placement:f="bottom",popperOptions:p=dI,popperRef:h,style:m,transition:g=!1,slotProps:y={},slots:v={},...w}=t,[x,S]=P.useState(!0),T=()=>{S(!1)},E=()=>{S(!0)};if(!c&&!d&&(!g||x))return null;let M;if(i)M=i;else if(o){const $=Wi(o);M=$&&ga($)?Pt($).body:Pt(null).body}const _=!d&&c&&(!g||x)?"none":void 0,D=g?{in:d,onEnter:T,onExited:E}:void 0;return b.jsx(ws,{disablePortal:l,container:M,children:b.jsx(fI,{anchorEl:o,direction:a,disablePortal:l,modifiers:u,ref:n,open:g?!x:d,placement:f,popperOptions:p,popperRef:h,slotProps:y,slots:v,...w,style:{position:"fixed",top:0,left:0,display:_,...m},TransitionProps:D,children:r})})});process.env.NODE_ENV!=="production"&&(mb.propTypes={anchorEl:Bn(s.oneOfType([Vn,s.object,s.func]),e=>{if(e.open){const t=Wi(e.anchorEl);if(t&&ga(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&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(`
121
- `))}else if(!t||typeof t.getBoundingClientRect!="function"||cI(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(`
122
- `))}return null}),children:s.oneOfType([s.node,s.func]),container:s.oneOfType([Vn,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:xt,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),transition:s.bool});const pI=be(mb,{name:"MuiPopper",slot:"Root"})({}),gb=P.forwardRef(function(t,n){const o=fn(),r=Fe({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:f,modifiers:p,open:h,placement:m,popperOptions:g,popperRef:y,transition:v,slots:w,slotProps:x,...S}=r,T=(w==null?void 0:w.root)??(l==null?void 0:l.Root),E={anchorEl:i,container:u,disablePortal:d,keepMounted:f,modifiers:p,open:h,placement:m,popperOptions:g,popperRef:y,transition:v,...S};return b.jsx(pI,{as:a,direction:o?"rtl":"ltr",slots:{root:T},slotProps:x??c,...E,ref:n})});process.env.NODE_ENV!=="production"&&(gb.propTypes={anchorEl:s.oneOfType([Vn,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([Vn,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:xt,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 Qr(e){var n;let t=e.activeElement;for(;((n=t==null?void 0:t.shadowRoot)==null?void 0:n.activeElement)!=null;)t=t.shadowRoot.activeElement;return t}const hI=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function mI(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 gI(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function yI(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||gI(e))}function bI(e){const t=[],n=[];return Array.from(e.querySelectorAll(hI)).forEach((o,r)=>{const i=mI(o);i===-1||!yI(o)||(i===0?t.push(o):n.push({documentOrder:r,tabIndex:i,node:o}))}),n.sort((o,r)=>o.tabIndex===r.tabIndex?o.documentOrder-r.documentOrder:o.tabIndex-r.tabIndex).map(o=>o.node).concat(t)}function vI(){return!0}function Ts(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:i=bI,isEnabled:a=vI,open:l}=e,c=P.useRef(!1),u=P.useRef(null),d=P.useRef(null),f=P.useRef(null),p=P.useRef(null),h=P.useRef(!1),m=P.useRef(null),g=$e(Fs(t),m),y=P.useRef(null);P.useEffect(()=>{!l||!m.current||(h.current=!n)},[n,l]),P.useEffect(()=>{if(!l||!m.current)return;const x=Pt(m.current),S=Qr(x);return m.current.contains(S)||(m.current.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(`
123
- `)),m.current.setAttribute("tabIndex","-1")),h.current&&m.current.focus()),()=>{r||(f.current&&f.current.focus&&(c.current=!0,f.current.focus()),f.current=null)}},[l]),P.useEffect(()=>{if(!l||!m.current)return;const x=Pt(m.current),S=M=>{if(y.current=M,o||!a()||M.key!=="Tab")return;Qr(x)===m.current&&M.shiftKey&&(c.current=!0,d.current&&d.current.focus())},T=()=>{var $,j;const M=m.current;if(M===null)return;const _=Qr(x);if(!x.hasFocus()||!a()||c.current){c.current=!1;return}if(M.contains(_)||o&&_!==u.current&&_!==d.current)return;if(_!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let D=[];if((_===u.current||_===d.current)&&(D=i(m.current)),D.length>0){const C=!!(($=y.current)!=null&&$.shiftKey&&((j=y.current)==null?void 0:j.key)==="Tab"),L=D[0],k=D[D.length-1];typeof L!="string"&&typeof k!="string"&&(C?k.focus():L.focus())}else M.focus()};x.addEventListener("focusin",T),x.addEventListener("keydown",S,!0);const E=setInterval(()=>{const M=Qr(x);M&&M.tagName==="BODY"&&T()},50);return()=>{clearInterval(E),x.removeEventListener("focusin",T),x.removeEventListener("keydown",S,!0)}},[n,o,r,a,l,i]);const v=x=>{f.current===null&&(f.current=x.relatedTarget),h.current=!0,p.current=x.target;const S=t.props.onFocus;S&&S(x)},w=x=>{f.current===null&&(f.current=x.relatedTarget),h.current=!0};return b.jsxs(P.Fragment,{children:[b.jsx("div",{tabIndex:l?0:-1,onFocus:w,ref:u,"data-testid":"sentinelStart"}),P.cloneElement(t,{ref:g,onFocus:v}),b.jsx("div",{tabIndex:l?0:-1,onFocus:w,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Ts.propTypes={children:Vs,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired});process.env.NODE_ENV!=="production"&&(Ts.propTypes=am(Ts.propTypes));function xI(e){return Te("MuiPickerPopper",e)}we("MuiPickerPopper",["root","paper"]);function SI(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const CI=e=>{setTimeout(e,0)},yb=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?yb(t.shadowRoot):t:null},jt=e=>yb(Pt(e)),wI="@media (pointer: fine)",TI=["PaperComponent","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],PI=e=>Ce({root:["root"],paper:["paper"]},xI,e),EI=ae.styled(gb,{name:"MuiPickerPopper",slot:"Root"})(({theme:e})=>({zIndex:e.zIndex.modal})),MI=ae.styled(zs,{name:"MuiPickerPopper",slot:"Paper"})({outline:0,transformOrigin:"top center",variants:[{props:({popperPlacement:e})=>new Set(["top","top-start","top-end"]).has(e),style:{transformOrigin:"bottom center"}}]});function OI(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function kI(e,t){const n=P.useRef(!1),o=P.useRef(!1),r=P.useRef(null),i=P.useRef(!1);P.useEffect(()=>{if(!e)return;function c(){i.current=!0}return document.addEventListener("mousedown",c,!0),document.addEventListener("touchstart",c,!0),()=>{document.removeEventListener("mousedown",c,!0),document.removeEventListener("touchstart",c,!0),i.current=!1}},[e]);const a=he(c=>{if(!i.current)return;const u=o.current;o.current=!1;const d=Pt(r.current);if(!r.current||"clientX"in c&&OI(c,d))return;if(n.current){n.current=!1;return}let f;c.composedPath?f=c.composedPath().indexOf(r.current)>-1:f=!d.documentElement.contains(c.target)||r.current.contains(c.target),!f&&!u&&t(c)}),l=c=>{c.defaultMuiPrevented||(o.current=!0)};return P.useEffect(()=>{if(e){const c=Pt(r.current),u=()=>{n.current=!0};return c.addEventListener("touchstart",a),c.addEventListener("touchmove",u),()=>{c.removeEventListener("touchstart",a),c.removeEventListener("touchmove",u)}}},[e,a]),P.useEffect(()=>{if(e){const c=Pt(r.current);return c.addEventListener("click",a),()=>{c.removeEventListener("click",a),o.current=!1}}},[e,a]),[r,l,l]}const bb=P.forwardRef((e,t)=>{const{PaperComponent:n,ownerState:o,children:r,paperSlotProps:i,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=Pe(e,TI),d=Le({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:o});return b.jsx(n,U({},u,d,{onClick:f=>{var p;l(f),(p=d.onClick)==null||p.call(d,f)},onTouchStart:f=>{var p;c(f),(p=d.onTouchStart)==null||p.call(d,f)},ownerState:o,children:r}))});process.env.NODE_ENV!=="production"&&(bb.displayName="PickerPopperPaperWrapper");function DI(e){const t=ae.useThemeProps({props:e,name:"MuiPickerPopper"}),{children:n,placement:o="bottom-start",slots:r,slotProps:i,classes:a}=t,{open:l,popupRef:c,reduceAnimations:u}=Mr(),{ownerState:d,rootRefObject:f}=Dt(),{dismissViews:p,getCurrentViewMode:h,onPopperExited:m,triggerElement:g,viewContainerRole:y}=Dt();P.useEffect(()=>{function N(F){l&&F.key==="Escape"&&p()}return document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N)}},[p,l]);const v=P.useRef(null);P.useEffect(()=>{y==="tooltip"||h()==="field"||(l?v.current=jt(f.current):v.current&&v.current instanceof HTMLElement&&setTimeout(()=>{v.current instanceof HTMLElement&&v.current.focus()}))},[l,y,h,f]);const w=PI(a),x=he(()=>{y==="tooltip"?CI(()=>{var N,F;(N=f.current)!=null&&N.contains(jt(f.current))||(F=c.current)!=null&&F.contains(jt(c.current))||p()}):p()}),[S,T,E]=kI(l,x),M=P.useRef(null),_=$e(M,c),D=$e(_,S),$=N=>{N.key==="Escape"&&(N.stopPropagation(),p())},j=(r==null?void 0:r.desktopTransition)??u?no:xs,C=(r==null?void 0:r.desktopTrapFocus)??Ts,L=(r==null?void 0:r.desktopPaper)??MI,k=(r==null?void 0:r.popper)??EI,I=Le({elementType:k,externalSlotProps:i==null?void 0:i.popper,additionalProps:{transition:!0,role:y??void 0,open:l,placement:o,anchorEl:g,onKeyDown:$},className:w.root,ownerState:d}),O=P.useMemo(()=>U({},d,{popperPlacement:I.placement}),[d,I.placement]);return b.jsx(k,U({},I,{children:({TransitionProps:N})=>b.jsx(C,U({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:y==="tooltip",isEnabled:()=>!0},i==null?void 0:i.desktopTrapFocus,{children:b.jsx(j,U({},N,i==null?void 0:i.desktopTransition,{onExited:F=>{var V,B,R;m==null||m(),(B=(V=i==null?void 0:i.desktopTransition)==null?void 0:V.onExited)==null||B.call(V,F),(R=N==null?void 0:N.onExited)==null||R.call(N)},children:b.jsx(bb,{PaperComponent:L,ownerState:O,ref:D,onPaperClick:T,onPaperTouchStart:E,paperClasses:w.paper,paperSlotProps:i==null?void 0:i.desktopPaper,children:n})}))}))}))}const RI="@media (prefers-reduced-motion: reduce)",cr=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),nh=cr&&cr[1]?parseInt(cr[1],10):null,oh=cr&&cr[2]?parseInt(cr[2],10):null,II=nh&&nh<10||oh&&oh<13||!1;function vb(e){const t=_y(RI,{defaultMatches:!1});return e??(t||II)}const xb={hasNextStep:!1,hasSeveralSteps:!1,goToNextStep:()=>{},areViewsInSameStep:()=>!0};function AI(e){const{steps:t,isViewMatchingStep:n,onStepChange:o}=e;return r=>{if(t==null)return xb;const i=t.findIndex(l=>n(r.view,l)),a=i===-1||i===t.length-1?null:t[i+1];return{hasNextStep:a!=null,hasSeveralSteps:t.length>1,goToNextStep:()=>{a!=null&&o(U({},r,{step:a}))},areViewsInSameStep:(l,c)=>{const u=t.find(f=>n(l,f)),d=t.find(f=>n(c,f));return u===d}}}}let yl=!1;function Sb({onChange:e,onViewChange:t,openTo:n,view:o,views:r,autoFocus:i,focusedView:a,onFocusedViewChange:l,getStepNavigation:c}){process.env.NODE_ENV!=="production"&&(yl||(o!=null&&!r.includes(o)&&(console.warn(`MUI X: \`view="${o}"\` is not a valid prop.`,`It must be an element of \`views=["${r.join('", "')}"]\`.`),yl=!0),o==null&&n!=null&&!r.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${r.join('", "')}"]\`.`),yl=!0)));const u=P.useRef(n),d=P.useRef(r),f=P.useRef(r.includes(n)?n:r[0]),[p,h]=Jn({name:"useViews",state:"view",controlled:o,default:f.current}),m=P.useRef(i?p:null),[g,y]=Jn({name:"useViews",state:"focusedView",controlled:a,default:m.current}),v=c?c({setView:h,view:p,defaultView:f.current,views:r}):xb;P.useEffect(()=>{(u.current&&u.current!==n||d.current&&d.current.some(D=>!r.includes(D)))&&(h(r.includes(n)?n:r[0]),d.current=r,u.current=n)},[n,h,p,r]);const w=r.indexOf(p),x=r[w-1]??null,S=r[w+1]??null,T=he((D,$)=>{y($?D:j=>D===j?null:j),l==null||l(D,$)}),E=he(D=>{T(D,!0),D!==p&&(h(D),t&&t(D))}),M=he(()=>{S&&E(S)}),_=he((D,$,j)=>{const C=$==="finish",L=j?r.indexOf(j)<r.length-1:!!S;e(D,C&&L?"partial":$,j);let I=null;if(j!=null&&j!==p?I=j:C&&(I=p),I==null)return;const O=r[r.indexOf(I)+1];O==null||!v.areViewsInSameStep(I,O)||E(O)});return U({},v,{view:p,setView:E,focusedView:g,setFocusedView:T,nextView:S,previousView:x,defaultView:r.includes(n)?n:r[0],goToNextView:M,setValueAndGoToNextView:_})}function rh(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}function NI(e,t){const[n,o]=P.useState(rh);return wt(()=>{const r=()=>{o(rh())};return window.addEventListener("orientationchange",r),()=>{window.removeEventListener("orientationchange",r)}},[]),SI(e,["hours","minutes","seconds"])?"portrait":t??n}const sh=new Set;function Cb(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
124
- `):e;sh.has(n)||(sh.add(n),t==="error"?console.error(n):console.warn(n))}const Hs=({name:e,timezone:t,value:n,defaultValue:o,referenceDate:r,onChange:i,valueManager:a})=>{const l=Qe(),[c,u]=Jn({name:e,state:"value",controlled:n,default:o??a.emptyValue}),d=P.useMemo(()=>a.getTimezone(l,c),[l,a,c]),f=he(g=>d==null?g:a.setTimezone(l,d,g)),p=P.useMemo(()=>t||d||(r?l.getTimezone(Array.isArray(r)?r[0]:r):"default"),[t,d,r,l]),h=P.useMemo(()=>a.setTimezone(l,p,c),[a,l,p,c]),m=he((g,...y)=>{const v=f(g);u(v),i==null||i(v,...y)});return{value:h,handleValueChange:m,timezone:p}};function _I(e){const{props:t,valueManager:n,validator:o}=e,{value:r,defaultValue:i,onChange:a,referenceDate:l,timezone:c,onAccept:u,closeOnSelect:d,open:f,onOpen:p,onClose:h}=t,{current:m}=P.useRef(i),{current:g}=P.useRef(r!==void 0),{current:y}=P.useRef(f!==void 0),v=Qe();process.env.NODE_ENV!=="production"&&t.renderInput!=null&&Cb(["MUI X: The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]),process.env.NODE_ENV!=="production"&&(P.useEffect(()=>{g!==(r!==void 0)&&console.error([`MUI X: A component is changing the ${g?"":"un"}controlled value of a Picker to be ${g?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled valuefor the lifetime of the component.","The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
117
+ `));const t=P.useMemo(()=>U({},dR,e.localeText),[e.localeText]);return P.useMemo(()=>U({},e,{localeText:t}),[e,t])},Qe=()=>Ru().adapter,lo=()=>Ru().localeText,mc=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],gc=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Hy=["minDateTime","maxDateTime"],fR=[...mc,...gc,...Hy],Yy=e=>fR.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),pR=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","unstableStartFieldRef","unstableEndFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator","autoFocus","focused"],qy=(e,t)=>P.useMemo(()=>{const n=U({},e),o={},r=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return pR.forEach(r),t==="date"?mc.forEach(r):t==="time"?gc.forEach(r):t==="date-time"&&(mc.forEach(r),gc.forEach(r),Hy.forEach(r)),{forwardedProps:n,internalProps:o}},[e,t]),hR=({adapter:e,format:t})=>{let n=10,o=t,r=e.expandFormat(t);for(;r!==o;)if(o=r,r=e.expandFormat(o),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the component.");return r},mR=({adapter:e,expandedFormat:t})=>{const n=[],{start:o,end:r}=e.escapedCharacters,i=new RegExp(`(\\${o}[^\\${r}]*\\${r})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},gR=(e,t,n,o)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),o).length,format:o});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:o});case"day":return t.fieldDayPlaceholder({format:o});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:o});case"hours":return t.fieldHoursPlaceholder({format:o});case"minutes":return t.fieldMinutesPlaceholder({format:o});case"seconds":return t.fieldSecondsPlaceholder({format:o});case"meridiem":return t.fieldMeridiemPlaceholder({format:o});default:return o}},yR=({adapter:e,date:t,shouldRespectLeadingZeros:n,localeText:o,localizedDigits:r,now:i,token:a,startSeparator:l})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const c=Cu(e,a),u=Vy(e,c.contentType,c.type,a),d=n?u:c.contentType==="digit",f=e.isValid(t);let p=f?e.formatByString(t,a):"",h=null;if(d)if(u)h=p===""?e.formatByString(i,a).length:p.length;else{if(c.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxLength' property on it's adapter`);h=c.maxLength,f&&(p=Tu(Pu($o(p,r),h),r))}return U({},c,{format:a,maxLength:h,value:p,placeholder:gR(e,o,c,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:d,startSeparator:l,endSeparator:"",modified:!1})},bR=e=>{var h;const{adapter:t,expandedFormat:n,escapedParts:o}=e,r=t.date(void 0),i=[];let a="";const l=Object.keys(t.formatTokenMap).sort((m,g)=>g.length-m.length),c=/^([a-zA-Z]+)/,u=new RegExp(`^(${l.join("|")})*$`),d=new RegExp(`^(${l.join("|")})`),f=m=>o.find(g=>g.start<=m&&g.end>=m);let p=0;for(;p<n.length;){const m=f(p),g=m!=null,y=(h=c.exec(n.slice(p)))==null?void 0:h[1];if(!g&&y!=null&&u.test(y)){let v=y;for(;v.length>0;){const C=d.exec(v)[1];v=v.slice(C.length),i.push(yR(U({},e,{now:r,token:C,startSeparator:a}))),a=""}p+=y.length}else{const v=n[p];g&&(m==null?void 0:m.start)===p||(m==null?void 0:m.end)===p||(i.length===0?a+=v:(i[i.length-1].endSeparator+=v,i[i.length-1].isEndFormatSeparator=!0)),p+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},vR=({isRtl:e,formatDensity:t,sections:n})=>n.map(o=>{const r=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`⁩${a}⁦`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return o.startSeparator=r(o.startSeparator),o.endSeparator=r(o.endSeparator),o}),zp=e=>{let t=hR(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=mR(U({},e,{expandedFormat:t})),o=bR(U({},e,{expandedFormat:t,escapedParts:n}));return vR(U({},e,{sections:o}))},Iu=()=>P.useContext(ma),xR=()=>{const e=P.useContext(ku);if(e==null)throw new Error(["MUI X: The `usePickerActionsContext` can only be called in fields that are used as a slot of a Picker component"].join(`
118
+ `));return e};function SR(e){return Te("MuiDatePickerToolbar",e)}Ce("MuiDatePickerToolbar",["root","title"]);const wR=["toolbarFormat","toolbarPlaceholder","className","classes"],CR=e=>we({root:["root"],title:["title"]},SR,e),TR=ae.styled(Wy,{name:"MuiDatePickerToolbar",slot:"Root"})({}),PR=ae.styled(ao,{name:"MuiDatePickerToolbar",slot:"Title"})({variants:[{props:{pickerOrientation:"landscape"},style:{margin:"auto 16px auto auto"}}]}),Au=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiDatePickerToolbar"}),{toolbarFormat:r,toolbarPlaceholder:i="––",className:a,classes:l}=o,c=Pe(o,wR),u=Qe(),{value:d,views:f,orientation:p}=Mr(),h=lo(),m=zy(),g=CR(l),y=P.useMemo(()=>{if(!u.isValid(d))return i;const v=wu(u,{format:r,views:f},!0);return u.formatByString(d,v)},[d,r,i,u,f]);return b.jsx(TR,U({ref:n,toolbarTitle:h.datePickerToolbarTitle,className:ye(g.root,a)},c,{children:b.jsx(PR,{variant:"h4",align:p==="landscape"?"left":"center",ownerState:m,className:g.title,children:y})}))});process.env.NODE_ENV!=="production"&&(Au.displayName="DatePickerToolbar");process.env.NODE_ENV!=="production"&&(Au.propTypes={classes:s.object,className:s.string,hidden:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleId:s.string,toolbarFormat:s.string,toolbarPlaceholder:s.node});const Ls=({props:e,value:t,timezone:n,adapter:o})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:i,shouldDisableYear:a,disablePast:l,disableFuture:c,minDate:u,maxDate:d}=e,f=o.date(void 0,n);switch(!0){case!o.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(c&&o.isAfterDay(t,f)):return"disableFuture";case!!(l&&o.isBeforeDay(t,f)):return"disablePast";case!!(u&&o.isBeforeDay(t,u)):return"minDate";case!!(d&&o.isAfterDay(t,d)):return"maxDate";default:return null}};Ls.valueManager=En;function Gy(e){const{props:t,validator:n,value:o,timezone:r,onError:i}=e,a=Qe(),l=P.useRef(n.valueManager.defaultErrorState),c=n({adapter:a,value:o,timezone:r,props:t}),u=n.valueManager.hasError(c);P.useEffect(()=>{i&&!n.valueManager.isSameError(c,l.current)&&i(c,o),l.current=c},[n,i,c,o]);const d=he(f=>n({adapter:a,value:f,timezone:r,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}const ER=()=>Ru().defaultDates,ga=e=>{const t=Qe(),n=P.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function MR(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return P.useMemo(()=>({valueType:"date",validator:Ls,internal_valueManager:En,internal_fieldValueManager:KD,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:kR,internal_useOpenPickerButtonAriaLabel:OR}),[t])}function OR(e){const t=Qe(),n=lo();return P.useMemo(()=>{const o=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(o)},[e,n,t])}function kR(e){const t=Qe(),n=$s(e);return P.useMemo(()=>U({},e,n,{format:e.format??t.formats.keyboardDate}),[e,n,t])}function $s(e){const t=Qe(),n=ER();return P.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,minDate:Rp(t,e.minDate,n.minDate),maxDate:Rp(t,e.maxDate,n.maxDate)}),[e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}function Ky(e,t){const n=ae.useThemeProps({props:e,name:t}),o=$s(n),r=P.useMemo(()=>{var i;return((i=n.localeText)==null?void 0:i.toolbarTitle)==null?n.localeText:U({},n.localeText,{datePickerToolbarTitle:n.localeText.toolbarTitle})},[n.localeText]);return U({},n,o,{localeText:r},OD({views:n.views,openTo:n.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{slots:U({toolbar:Au},n.slots)})}function mr(e){return typeof e=="string"}function Zy(e,t,n){return e===void 0||mr(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Xy(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function Wp(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Qy(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:i}=e;if(!t){const h=ye(n==null?void 0:n.className,i,r==null?void 0:r.className,o==null?void 0:o.className),m={...n==null?void 0:n.style,...r==null?void 0:r.style,...o==null?void 0:o.style},g={...n,...r,...o};return h.length>0&&(g.className=h),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const a=Xy({...r,...o}),l=Wp(o),c=Wp(r),u=t(a),d=ye(u==null?void 0:u.className,n==null?void 0:n.className,i,r==null?void 0:r.className,o==null?void 0:o.className),f={...u==null?void 0:u.style,...n==null?void 0:n.style,...r==null?void 0:r.style,...o==null?void 0:o.style},p={...u,...n,...c,...l};return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}function Le(e){var f;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...i}=e,a=r?{}:tn(n,o),{props:l,internalRef:c}=Qy({...i,externalSlotProps:a}),u=$e(c,a==null?void 0:a.ref,(f=e.additionalProps)==null?void 0:f.ref);return Zy(t,{...l,ref:u},o)}const Up={};function Jy(e,t){const n=P.useRef(Up);return n.current===Up&&(n.current=e(t)),n}const DR=[];function RR(e){P.useEffect(e,DR)}class Nu{constructor(){pe(this,"currentId",null);pe(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});pe(this,"disposeEffect",()=>this.clear)}static create(){return new Nu}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Xn(){const e=Jy(Nu.create).current;return RR(e.disposeEffect),e}function Bn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function IR(e){const{prototype:t={}}=e;return!!t.isReactComponent}function eb(e,t,n,o,r){const i=e[t],a=r||t;if(i==null||typeof window>"u")return null;let l;const c=i.type;return typeof c=="function"&&!IR(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Vs=Bn(s.element,eb);Vs.isRequired=Bn(s.element.isRequired,eb);function Fs(e){var t;return parseInt(P.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function yc(e,t){return yc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},yc(e,t)}function _u(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yc(e,t)}function AR(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function NR(e,t){e.classList?e.classList.add(t):AR(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Hp(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function _R(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Hp(e.className,t):e.setAttribute("class",Hp(e.className&&e.className.baseVal||"",t))}const Yp={disabled:!1};var jR=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null,LR=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})]):null;const Fi=_.createContext(null);var tb=function(t){return t.scrollTop},Xr="unmounted",Eo="exited",Mo="entering",Xo="entered",bc="exiting",an=function(e){_u(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=r,l=a&&!a.isMounting?o.enter:o.appear,c;return i.appearStatus=null,o.in?l?(c=Eo,i.appearStatus=Mo):c=Xo:o.unmountOnExit||o.mountOnEnter?c=Xr:c=Eo,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===Xr?{status:Eo}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var i=null;if(r!==this.props){var a=this.state.status;this.props.in?a!==Mo&&a!==Xo&&(i=Mo):(a===Mo||a===Xo)&&(i=bc)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,i,a,l;return i=a=l=r,r!=null&&typeof r!="number"&&(i=r.exit,a=r.enter,l=r.appear!==void 0?r.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(r,i){if(r===void 0&&(r=!1),i!==null)if(this.cancelNextCallback(),i===Mo){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:er.findDOMNode(this);a&&tb(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Eo&&this.setState({status:Xr})},n.performEnter=function(r){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:r,c=this.props.nodeRef?[l]:[er.findDOMNode(this),l],u=c[0],d=c[1],f=this.getTimeouts(),p=l?f.appear:f.enter;if(!r&&!a||Yp.disabled){this.safeSetState({status:Xo},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Mo},function(){i.props.onEntering(u,d),i.onTransitionEnd(p,function(){i.safeSetState({status:Xo},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var r=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:er.findDOMNode(this);if(!i||Yp.disabled){this.safeSetState({status:Eo},function(){r.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:bc},function(){r.props.onExiting(l),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:Eo},function(){r.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,i){i=this.setNextCallback(i),this.setState(r,i)},n.setNextCallback=function(r){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,r(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(r,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:er.findDOMNode(this),l=r==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===Xr)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=Pe(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _.createElement(Fi.Provider,{value:null},typeof a=="function"?a(r,l):_.cloneElement(_.Children.only(a),l))},t}(_.Component);an.contextType=Fi;an.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:s.shape({current:typeof Element>"u"?s.any:function(e,t,n,o,r,i){var a=e[t];return s.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,o,r,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=jR;t.addEndListener||(n=n.isRequired);for(var o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];return n.apply(void 0,[t].concat(r))},addEndListener:s.func,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}:{};function Go(){}an.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Go,onEntering:Go,onEntered:Go,onExit:Go,onExiting:Go,onExited:Go};an.UNMOUNTED=Xr;an.EXITED=Eo;an.ENTERING=Mo;an.ENTERED=Xo;an.EXITING=bc;var $R=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return NR(t,o)})},yl=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return _R(t,o)})},ju=function(e){_u(t,e);function t(){for(var o,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return o=e.call.apply(e,[this].concat(i))||this,o.appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(l,c){var u=o.resolveArguments(l,c),d=u[0],f=u[1];o.removeClasses(d,"exit"),o.addClass(d,f?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(l,c)},o.onEntering=function(l,c){var u=o.resolveArguments(l,c),d=u[0],f=u[1],p=f?"appear":"enter";o.addClass(d,p,"active"),o.props.onEntering&&o.props.onEntering(l,c)},o.onEntered=function(l,c){var u=o.resolveArguments(l,c),d=u[0],f=u[1],p=f?"appear":"enter";o.removeClasses(d,p),o.addClass(d,p,"done"),o.props.onEntered&&o.props.onEntered(l,c)},o.onExit=function(l){var c=o.resolveArguments(l),u=c[0];o.removeClasses(u,"appear"),o.removeClasses(u,"enter"),o.addClass(u,"exit","base"),o.props.onExit&&o.props.onExit(l)},o.onExiting=function(l){var c=o.resolveArguments(l),u=c[0];o.addClass(u,"exit","active"),o.props.onExiting&&o.props.onExiting(l)},o.onExited=function(l){var c=o.resolveArguments(l),u=c[0];o.removeClasses(u,"exit"),o.addClass(u,"exit","done"),o.props.onExited&&o.props.onExited(l)},o.resolveArguments=function(l,c){return o.props.nodeRef?[o.props.nodeRef.current,l]:[l,c]},o.getClassNames=function(l){var c=o.props.classNames,u=typeof c=="string",d=u&&c?c+"-":"",f=u?""+d+l:c[l],p=u?f+"-active":c[l+"Active"],h=u?f+"-done":c[l+"Done"];return{baseClassName:f,activeClassName:p,doneClassName:h}},o}var n=t.prototype;return n.addClass=function(r,i,a){var l=this.getClassNames(i)[a+"ClassName"],c=this.getClassNames("enter"),u=c.doneClassName;i==="appear"&&a==="done"&&u&&(l+=" "+u),a==="active"&&r&&tb(r),l&&(this.appliedClasses[i][a]=l,$R(r,l))},n.removeClasses=function(r,i){var a=this.appliedClasses[i],l=a.base,c=a.active,u=a.done;this.appliedClasses[i]={},l&&yl(r,l),c&&yl(r,c),u&&yl(r,u)},n.render=function(){var r=this.props;r.classNames;var i=Pe(r,["classNames"]);return _.createElement(an,U({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(_.Component);ju.defaultProps={classNames:""};ju.propTypes=process.env.NODE_ENV!=="production"?U({},an.propTypes,{classNames:LR,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}):{};function VR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lu(e,t){var n=function(i){return t&&_.isValidElement(i)?t(i):i},o=Object.create(null);return e&&_.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function FR(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var o=Object.create(null),r=[];for(var i in e)i in t?r.length&&(o[i]=r,r=[]):r.push(i);var a,l={};for(var c in t){if(o[c])for(a=0;a<o[c].length;a++){var u=o[c][a];l[o[c][a]]=n(u)}l[c]=n(c)}for(a=0;a<r.length;a++)l[r[a]]=n(r[a]);return l}function Io(e,t,n){return n[t]!=null?n[t]:e.props[t]}function BR(e,t){return Lu(e.children,function(n){return _.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Io(n,"appear",e),enter:Io(n,"enter",e),exit:Io(n,"exit",e)})})}function zR(e,t,n){var o=Lu(e.children),r=FR(t,o);return Object.keys(r).forEach(function(i){var a=r[i];if(_.isValidElement(a)){var l=i in t,c=i in o,u=t[i],d=_.isValidElement(u)&&!u.props.in;c&&(!l||d)?r[i]=_.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Io(a,"exit",e),enter:Io(a,"enter",e)}):!c&&l&&!d?r[i]=_.cloneElement(a,{in:!1}):c&&l&&_.isValidElement(u)&&(r[i]=_.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:Io(a,"exit",e),enter:Io(a,"enter",e)}))}}),r}var WR=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},UR={component:"div",childFactory:function(t){return t}},Bs=function(e){_u(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=i.handleExited.bind(VR(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,i){var a=i.children,l=i.handleExited,c=i.firstRender;return{children:c?BR(r,l):zR(r,a,l),firstRender:!1}},n.handleExited=function(r,i){var a=Lu(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(i),this.mounted&&this.setState(function(l){var c=U({},l.children);return delete c[r.key],{children:c}}))},n.render=function(){var r=this.props,i=r.component,a=r.childFactory,l=Pe(r,["component","childFactory"]),c=this.state.contextValue,u=WR(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?_.createElement(Fi.Provider,{value:c},u):_.createElement(Fi.Provider,{value:c},_.createElement(i,l,u))},t}(_.Component);Bs.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};Bs.defaultProps=UR;const nb=e=>e.scrollTop;function Bi(e,t){const{timeout:n,easing:o,style:r={}}=e;return{duration:r.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:r.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:r.transitionDelay}}function vc(e){return`scale(${e}, ${e**2})`}const HR={entering:{opacity:1,transform:vc(1)},entered:{opacity:1,transform:"none"}},bl=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),xs=P.forwardRef(function(t,n){const{addEndListener:o,appear:r=!0,children:i,easing:a,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:h,style:m,timeout:g="auto",TransitionComponent:y=an,...v}=t,C=Xn(),x=P.useRef(),S=sa(),T=P.useRef(null),E=$e(T,Fs(i),n),M=I=>O=>{if(I){const N=T.current;O===void 0?I(N):I(N,O)}},A=M(d),k=M((I,O)=>{nb(I);const{duration:N,delay:F,easing:V}=Bi({style:m,timeout:g,easing:a},{mode:"enter"});let B;g==="auto"?(B=S.transitions.getAutoHeightDuration(I.clientHeight),x.current=B):B=N,I.style.transition=[S.transitions.create("opacity",{duration:B,delay:F}),S.transitions.create("transform",{duration:bl?B:B*.666,delay:F,easing:V})].join(","),c&&c(I,O)}),$=M(u),j=M(h),w=M(I=>{const{duration:O,delay:N,easing:F}=Bi({style:m,timeout:g,easing:a},{mode:"exit"});let V;g==="auto"?(V=S.transitions.getAutoHeightDuration(I.clientHeight),x.current=V):V=O,I.style.transition=[S.transitions.create("opacity",{duration:V,delay:N}),S.transitions.create("transform",{duration:bl?V:V*.666,delay:bl?N:N||V*.333,easing:F})].join(","),I.style.opacity=0,I.style.transform=vc(.75),f&&f(I)}),L=M(p),D=I=>{g==="auto"&&C.start(x.current||0,I),o&&o(T.current,I)};return b.jsx(y,{appear:r,in:l,nodeRef:T,onEnter:k,onEntered:$,onEntering:A,onExit:w,onExited:L,onExiting:j,addEndListener:D,timeout:g==="auto"?null:g,...v,children:(I,{ownerState:O,...N})=>P.cloneElement(i,{style:{opacity:0,transform:vc(.75),visibility:I==="exited"&&!l?"hidden":void 0,...HR[I],...m,...i.props.style},ref:E,...N})})});process.env.NODE_ENV!=="production"&&(xs.propTypes={addEndListener:s.func,appear:s.bool,children:Vs.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})])});xs&&(xs.muiSupportAuto=!0);const YR={entering:{opacity:1},entered:{opacity:1}},no=P.forwardRef(function(t,n){const o=sa(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:h,onExited:m,onExiting:g,style:y,timeout:v=r,TransitionComponent:C=an,...x}=t,S=P.useRef(null),T=$e(S,Fs(l),n),E=D=>I=>{if(D){const O=S.current;I===void 0?D(O):D(O,I)}},M=E(p),A=E((D,I)=>{nb(D);const O=Bi({style:y,timeout:v,easing:c},{mode:"enter"});D.style.webkitTransition=o.transitions.create("opacity",O),D.style.transition=o.transitions.create("opacity",O),d&&d(D,I)}),k=E(f),$=E(g),j=E(D=>{const I=Bi({style:y,timeout:v,easing:c},{mode:"exit"});D.style.webkitTransition=o.transitions.create("opacity",I),D.style.transition=o.transitions.create("opacity",I),h&&h(D)}),w=E(m),L=D=>{i&&i(S.current,D)};return b.jsx(C,{appear:a,in:u,nodeRef:S,onEnter:A,onEntered:k,onEntering:M,onExit:j,onExited:w,onExiting:$,addEndListener:L,timeout:v,...x,children:(D,{ownerState:I,...O})=>P.cloneElement(l,{style:{opacity:0,visibility:D==="exited"&&!u?"hidden":void 0,...YR[D],...y,...l.props.style},ref:T,...O})})});process.env.NODE_ENV!=="production"&&(no.propTypes={addEndListener:s.func,appear:s.bool,children:Vs.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 qR(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 ob(e,t,n,o){const r=e[t];if(r==null||!Number.isInteger(r)){const i=qR(r);return new RangeError(`Invalid ${o} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function rb(e,t,n,o){return e[t]===void 0?null:ob(e,t,n,o)}function xc(){return null}rb.isRequired=ob;xc.isRequired=xc;const sb=process.env.NODE_ENV==="production"?xc:rb;function GR(e){return Te("MuiPaper",e)}Ce("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 KR=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return we(i,GR,r)},ZR=be("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}`]]}})(Xe(({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)"}}]}))),zs=P.forwardRef(function(t,n){var h;const o=Fe({props:t,name:"MuiPaper"}),r=sa(),{className:i,component:a="div",elevation:l=1,square:c=!1,variant:u="elevation",...d}=o,f={...o,component:a,elevation:l,square:c,variant:u},p=KR(f);return process.env.NODE_ENV!=="production"&&r.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
119
+ `)),b.jsx(ZR,{as:a,ownerState:f,className:ye(p.root,i),ref:n,...d,style:{...u==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[l],...r.vars&&{"--Paper-overlay":(h=r.vars.overlays)==null?void 0:h[l]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Ci("#fff",_l(l))}, ${Ci("#fff",_l(l))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(zs.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:Bn(sb,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])});function Vn(e,t,n,o,r){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=r||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var Bt="top",on="bottom",rn="right",zt="left",$u="auto",Ws=[Bt,on,rn,zt],gr="start",Ss="end",XR="clippingParents",ib="viewport",Vr="popper",QR="reference",qp=Ws.reduce(function(e,t){return e.concat([t+"-"+gr,t+"-"+Ss])},[]),ab=[].concat(Ws,[$u]).reduce(function(e,t){return e.concat([t,t+"-"+gr,t+"-"+Ss])},[]),JR="beforeRead",eI="read",tI="afterRead",nI="beforeMain",oI="main",rI="afterMain",sI="beforeWrite",iI="write",aI="afterWrite",lI=[JR,eI,tI,nI,oI,rI,sI,iI,aI];function Mn(e){return e?(e.nodeName||"").toLowerCase():null}function qt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Vo(e){var t=qt(e).Element;return e instanceof t||e instanceof Element}function nn(e){var t=qt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Vu(e){if(typeof ShadowRoot>"u")return!1;var t=qt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function cI(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!nn(i)||!Mn(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(a){var l=r[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function uI(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],i=t.attributes[o]||{},a=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),l=a.reduce(function(c,u){return c[u]="",c},{});!nn(r)||!Mn(r)||(Object.assign(r.style,l),Object.keys(i).forEach(function(c){r.removeAttribute(c)}))})}}const dI={name:"applyStyles",enabled:!0,phase:"write",fn:cI,effect:uI,requires:["computeStyles"]};function Cn(e){return e.split("-")[0]}var _o=Math.max,zi=Math.min,yr=Math.round;function Sc(){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 lb(){return!/^((?!chrome|android).)*safari/i.test(Sc())}function br(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&nn(e)&&(r=e.offsetWidth>0&&yr(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&yr(o.height)/e.offsetHeight||1);var a=Vo(e)?qt(e):window,l=a.visualViewport,c=!lb()&&n,u=(o.left+(c&&l?l.offsetLeft:0))/r,d=(o.top+(c&&l?l.offsetTop:0))/i,f=o.width/r,p=o.height/i;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function Fu(e){var t=br(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function cb(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Vu(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Fn(e){return qt(e).getComputedStyle(e)}function fI(e){return["table","td","th"].indexOf(Mn(e))>=0}function co(e){return((Vo(e)?e.ownerDocument:e.document)||window.document).documentElement}function ya(e){return Mn(e)==="html"?e:e.assignedSlot||e.parentNode||(Vu(e)?e.host:null)||co(e)}function Gp(e){return!nn(e)||Fn(e).position==="fixed"?null:e.offsetParent}function pI(e){var t=/firefox/i.test(Sc()),n=/Trident/i.test(Sc());if(n&&nn(e)){var o=Fn(e);if(o.position==="fixed")return null}var r=ya(e);for(Vu(r)&&(r=r.host);nn(r)&&["html","body"].indexOf(Mn(r))<0;){var i=Fn(r);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 r;r=r.parentNode}return null}function Us(e){for(var t=qt(e),n=Gp(e);n&&fI(n)&&Fn(n).position==="static";)n=Gp(n);return n&&(Mn(n)==="html"||Mn(n)==="body"&&Fn(n).position==="static")?t:n||pI(e)||t}function Bu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function is(e,t,n){return _o(e,zi(t,n))}function hI(e,t,n){var o=is(e,t,n);return o>n?n:o}function ub(){return{top:0,right:0,bottom:0,left:0}}function db(e){return Object.assign({},ub(),e)}function fb(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var mI=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,db(typeof t!="number"?t:fb(t,Ws))};function gI(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Cn(n.placement),c=Bu(l),u=[zt,rn].indexOf(l)>=0,d=u?"height":"width";if(!(!i||!a)){var f=mI(r.padding,n),p=Fu(i),h=c==="y"?Bt:zt,m=c==="y"?on:rn,g=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],y=a[c]-n.rects.reference[c],v=Us(i),C=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,x=g/2-y/2,S=f[h],T=C-p[d]-f[m],E=C/2-p[d]/2+x,M=is(S,E,T),A=c;n.modifiersData[o]=(t={},t[A]=M,t.centerOffset=M-E,t)}}function yI(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||cb(t.elements.popper,r)&&(t.elements.arrow=r))}const bI={name:"arrow",enabled:!0,phase:"main",fn:gI,effect:yI,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function vr(e){return e.split("-")[1]}var vI={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xI(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:yr(n*r)/r||0,y:yr(o*r)/r||0}}function Kp(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=a.x,h=p===void 0?0:p,m=a.y,g=m===void 0?0:m,y=typeof d=="function"?d({x:h,y:g}):{x:h,y:g};h=y.x,g=y.y;var v=a.hasOwnProperty("x"),C=a.hasOwnProperty("y"),x=zt,S=Bt,T=window;if(u){var E=Us(n),M="clientHeight",A="clientWidth";if(E===qt(n)&&(E=co(n),Fn(E).position!=="static"&&l==="absolute"&&(M="scrollHeight",A="scrollWidth")),E=E,r===Bt||(r===zt||r===rn)&&i===Ss){S=on;var k=f&&E===T&&T.visualViewport?T.visualViewport.height:E[M];g-=k-o.height,g*=c?1:-1}if(r===zt||(r===Bt||r===on)&&i===Ss){x=rn;var $=f&&E===T&&T.visualViewport?T.visualViewport.width:E[A];h-=$-o.width,h*=c?1:-1}}var j=Object.assign({position:l},u&&vI),w=d===!0?xI({x:h,y:g},qt(n)):{x:h,y:g};if(h=w.x,g=w.y,c){var L;return Object.assign({},j,(L={},L[S]=C?"0":"",L[x]=v?"0":"",L.transform=(T.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",L))}return Object.assign({},j,(t={},t[S]=C?g+"px":"",t[x]=v?h+"px":"",t.transform="",t))}function SI(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,i=n.adaptive,a=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:Cn(t.placement),variation:vr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Kp(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Kp(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 wI={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:SI,data:{}};var ii={passive:!0};function CI(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=r===void 0?!0:r,a=o.resize,l=a===void 0?!0:a,c=qt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,ii)}),l&&c.addEventListener("resize",n.update,ii),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,ii)}),l&&c.removeEventListener("resize",n.update,ii)}}const TI={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:CI,data:{}};var PI={left:"right",right:"left",bottom:"top",top:"bottom"};function xi(e){return e.replace(/left|right|bottom|top/g,function(t){return PI[t]})}var EI={start:"end",end:"start"};function Zp(e){return e.replace(/start|end/g,function(t){return EI[t]})}function zu(e){var t=qt(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Wu(e){return br(co(e)).left+zu(e).scrollLeft}function MI(e,t){var n=qt(e),o=co(e),r=n.visualViewport,i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;var u=lb();(u||!u&&t==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l+Wu(e),y:c}}function OI(e){var t,n=co(e),o=zu(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=_o(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=_o(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+Wu(e),c=-o.scrollTop;return Fn(r||n).direction==="rtl"&&(l+=_o(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}function Uu(e){var t=Fn(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function pb(e){return["html","body","#document"].indexOf(Mn(e))>=0?e.ownerDocument.body:nn(e)&&Uu(e)?e:pb(ya(e))}function as(e,t){var n;t===void 0&&(t=[]);var o=pb(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=qt(o),a=r?[i].concat(i.visualViewport||[],Uu(o)?o:[]):o,l=t.concat(a);return r?l:l.concat(as(ya(a)))}function wc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kI(e,t){var n=br(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 Xp(e,t,n){return t===ib?wc(MI(e,n)):Vo(t)?kI(t,n):wc(OI(co(e)))}function DI(e){var t=as(ya(e)),n=["absolute","fixed"].indexOf(Fn(e).position)>=0,o=n&&nn(e)?Us(e):e;return Vo(o)?t.filter(function(r){return Vo(r)&&cb(r,o)&&Mn(r)!=="body"}):[]}function RI(e,t,n,o){var r=t==="clippingParents"?DI(e):[].concat(t),i=[].concat(r,[n]),a=i[0],l=i.reduce(function(c,u){var d=Xp(e,u,o);return c.top=_o(d.top,c.top),c.right=zi(d.right,c.right),c.bottom=zi(d.bottom,c.bottom),c.left=_o(d.left,c.left),c},Xp(e,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function hb(e){var t=e.reference,n=e.element,o=e.placement,r=o?Cn(o):null,i=o?vr(o):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(r){case Bt:c={x:a,y:t.y-n.height};break;case on:c={x:a,y:t.y+t.height};break;case rn:c={x:t.x+t.width,y:l};break;case zt:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=r?Bu(r):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case gr:c[u]=c[u]-(t[d]/2-n[d]/2);break;case Ss:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function ws(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,i=n.strategy,a=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?XR:l,u=n.rootBoundary,d=u===void 0?ib:u,f=n.elementContext,p=f===void 0?Vr:f,h=n.altBoundary,m=h===void 0?!1:h,g=n.padding,y=g===void 0?0:g,v=db(typeof y!="number"?y:fb(y,Ws)),C=p===Vr?QR:Vr,x=e.rects.popper,S=e.elements[m?C:p],T=RI(Vo(S)?S:S.contextElement||co(e.elements.popper),c,d,a),E=br(e.elements.reference),M=hb({reference:E,element:x,placement:r}),A=wc(Object.assign({},x,M)),k=p===Vr?A:E,$={top:T.top-k.top+v.top,bottom:k.bottom-T.bottom+v.bottom,left:T.left-k.left+v.left,right:k.right-T.right+v.right},j=e.modifiersData.offset;if(p===Vr&&j){var w=j[r];Object.keys($).forEach(function(L){var D=[rn,on].indexOf(L)>=0?1:-1,I=[Bt,on].indexOf(L)>=0?"y":"x";$[L]+=w[I]*D})}return $}function II(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?ab:c,d=vr(o),f=d?l?qp:qp.filter(function(m){return vr(m)===d}):Ws,p=f.filter(function(m){return u.indexOf(m)>=0});p.length===0&&(p=f);var h=p.reduce(function(m,g){return m[g]=ws(e,{placement:g,boundary:r,rootBoundary:i,padding:a})[Cn(g)],m},{});return Object.keys(h).sort(function(m,g){return h[m]-h[g]})}function AI(e){if(Cn(e)===$u)return[];var t=xi(e);return[Zp(e),t,Zp(t)]}function NI(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,m=h===void 0?!0:h,g=n.allowedAutoPlacements,y=t.options.placement,v=Cn(y),C=v===y,x=c||(C||!m?[xi(y)]:AI(y)),S=[y].concat(x).reduce(function(Z,re){return Z.concat(Cn(re)===$u?II(t,{placement:re,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:g}):re)},[]),T=t.rects.reference,E=t.rects.popper,M=new Map,A=!0,k=S[0],$=0;$<S.length;$++){var j=S[$],w=Cn(j),L=vr(j)===gr,D=[Bt,on].indexOf(w)>=0,I=D?"width":"height",O=ws(t,{placement:j,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),N=D?L?rn:zt:L?on:Bt;T[I]>E[I]&&(N=xi(N));var F=xi(N),V=[];if(i&&V.push(O[w]<=0),l&&V.push(O[N]<=0,O[F]<=0),V.every(function(Z){return Z})){k=j,A=!1;break}M.set(j,V)}if(A)for(var B=m?3:1,R=function(re){var X=S.find(function(Q){var K=M.get(Q);if(K)return K.slice(0,re).every(function(te){return te})});if(X)return k=X,"break"},Y=B;Y>0;Y--){var G=R(Y);if(G==="break")break}t.placement!==k&&(t.modifiersData[o]._skip=!0,t.placement=k,t.reset=!0)}}const _I={name:"flip",enabled:!0,phase:"main",fn:NI,requiresIfExists:["offset"],data:{_skip:!1}};function Qp(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 Jp(e){return[Bt,rn,on,zt].some(function(t){return e[t]>=0})}function jI(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=ws(t,{elementContext:"reference"}),l=ws(t,{altBoundary:!0}),c=Qp(a,o),u=Qp(l,r,i),d=Jp(c),f=Jp(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const LI={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:jI};function $I(e,t,n){var o=Cn(e),r=[zt,Bt].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*r,[zt,rn].indexOf(o)>=0?{x:l,y:a}:{x:a,y:l}}function VI(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,a=ab.reduce(function(d,f){return d[f]=$I(f,t.rects,i),d},{}),l=a[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=a}const FI={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:VI};function BI(e){var t=e.state,n=e.name;t.modifiersData[n]=hb({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const zI={name:"popperOffsets",enabled:!0,phase:"read",fn:BI,data:{}};function WI(e){return e==="x"?"y":"x"}function UI(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,m=n.tetherOffset,g=m===void 0?0:m,y=ws(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),v=Cn(t.placement),C=vr(t.placement),x=!C,S=Bu(v),T=WI(S),E=t.modifiersData.popperOffsets,M=t.rects.reference,A=t.rects.popper,k=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,$=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,w={x:0,y:0};if(E){if(i){var L,D=S==="y"?Bt:zt,I=S==="y"?on:rn,O=S==="y"?"height":"width",N=E[S],F=N+y[D],V=N-y[I],B=h?-A[O]/2:0,R=C===gr?M[O]:A[O],Y=C===gr?-A[O]:-M[O],G=t.elements.arrow,Z=h&&G?Fu(G):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ub(),X=re[D],Q=re[I],K=is(0,M[O],Z[O]),te=x?M[O]/2-B-K-X-$.mainAxis:R-K-X-$.mainAxis,z=x?-M[O]/2+B+K+Q+$.mainAxis:Y+K+Q+$.mainAxis,H=t.elements.arrow&&Us(t.elements.arrow),W=H?S==="y"?H.clientTop||0:H.clientLeft||0:0,ee=(L=j==null?void 0:j[S])!=null?L:0,J=N+te-ee-W,ie=N+z-ee,ne=is(h?zi(F,J):F,N,h?_o(V,ie):V);E[S]=ne,w[S]=ne-N}if(l){var de,se=S==="x"?Bt:zt,ue=S==="x"?on:rn,le=E[T],fe=T==="y"?"height":"width",me=le+y[se],Ie=le-y[ue],Oe=[Bt,zt].indexOf(v)!==-1,qe=(de=j==null?void 0:j[T])!=null?de:0,tt=Oe?me:le-M[fe]-A[fe]-qe+$.altAxis,St=Oe?le+M[fe]+A[fe]-qe-$.altAxis:Ie,Tt=h&&Oe?hI(tt,le,St):is(h?tt:me,le,h?St:Ie);E[T]=Tt,w[T]=Tt-le}t.modifiersData[o]=w}}const HI={name:"preventOverflow",enabled:!0,phase:"main",fn:UI,requiresIfExists:["offset"]};function YI(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function qI(e){return e===qt(e)||!nn(e)?zu(e):YI(e)}function GI(e){var t=e.getBoundingClientRect(),n=yr(t.width)/e.offsetWidth||1,o=yr(t.height)/e.offsetHeight||1;return n!==1||o!==1}function KI(e,t,n){n===void 0&&(n=!1);var o=nn(t),r=nn(t)&&GI(t),i=co(t),a=br(e,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((Mn(t)!=="body"||Uu(i))&&(l=qI(t)),nn(t)?(c=br(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Wu(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function ZI(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&r(c)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),o}function XI(e){var t=ZI(e);return lI.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function QI(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function JI(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var eh={placement:"bottom",modifiers:[],strategy:"absolute"};function th(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function e2(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?eh:r;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},eh,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(v){var C=typeof v=="function"?v(d.options):v;g(),d.options=Object.assign({},i,d.options,C),d.scrollParents={reference:Vo(l)?as(l):l.contextElement?as(l.contextElement):[],popper:as(c)};var x=XI(JI([].concat(o,d.options.modifiers)));return d.orderedModifiers=x.filter(function(S){return S.enabled}),m(),h.update()},forceUpdate:function(){if(!p){var v=d.elements,C=v.reference,x=v.popper;if(th(C,x)){d.rects={reference:KI(C,Us(x),d.options.strategy==="fixed"),popper:Fu(x)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function($){return d.modifiersData[$.name]=Object.assign({},$.data)});for(var S=0;S<d.orderedModifiers.length;S++){if(d.reset===!0){d.reset=!1,S=-1;continue}var T=d.orderedModifiers[S],E=T.fn,M=T.options,A=M===void 0?{}:M,k=T.name;typeof E=="function"&&(d=E({state:d,options:A,name:k,instance:h})||d)}}}},update:QI(function(){return new Promise(function(y){h.forceUpdate(),y(d)})}),destroy:function(){g(),p=!0}};if(!th(l,c))return h;h.setOptions(u).then(function(y){!p&&u.onFirstUpdate&&u.onFirstUpdate(y)});function m(){d.orderedModifiers.forEach(function(y){var v=y.name,C=y.options,x=C===void 0?{}:C,S=y.effect;if(typeof S=="function"){var T=S({state:d,name:v,instance:h,options:x}),E=function(){};f.push(T||E)}})}function g(){f.forEach(function(y){return y()}),f=[]}return h}}var t2=[TI,zI,wI,dI,FI,_I,HI,bI,LI],n2=e2({defaultModifiers:t2});function o2(e){return typeof e=="function"?e():e}const Cs=P.forwardRef(function(t,n){const{children:o,container:r,disablePortal:i=!1}=t,[a,l]=P.useState(null),c=$e(P.isValidElement(o)?Fs(o):null,n);if(Ct(()=>{i||l(o2(r)||document.body)},[r,i]),Ct(()=>{if(a&&!i)return tf(n,a),()=>{tf(n,null)}},[n,a,i]),i){if(P.isValidElement(o)){const u={ref:c};return P.cloneElement(o,u)}return o}return a&&e0.createPortal(o,a)});process.env.NODE_ENV!=="production"&&(Cs.propTypes={children:s.node,container:s.oneOfType([Vn,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&(Cs.propTypes=am(Cs.propTypes));function r2(e){return Te("MuiPopper",e)}Ce("MuiPopper",["root"]);function s2(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 Wi(e){return typeof e=="function"?e():e}function ba(e){return e.nodeType!==void 0}function i2(e){return!ba(e)}const a2=e=>{const{classes:t}=e;return we({root:["root"]},r2,t)},l2={},c2=P.forwardRef(function(t,n){const{anchorEl:o,children:r,direction:i,disablePortal:a,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:f,slotProps:p={},slots:h={},TransitionProps:m,ownerState:g,...y}=t,v=P.useRef(null),C=$e(v,n),x=P.useRef(null),S=$e(x,f),T=P.useRef(S);Ct(()=>{T.current=S},[S]),P.useImperativeHandle(f,()=>x.current,[]);const E=s2(u,i),[M,A]=P.useState(E),[k,$]=P.useState(Wi(o));P.useEffect(()=>{x.current&&x.current.forceUpdate()}),P.useEffect(()=>{o&&$(Wi(o))},[o]),Ct(()=>{if(!k||!c)return;const I=F=>{A(F.placement)};if(process.env.NODE_ENV!=="production"&&k&&ba(k)&&k.nodeType===1){const F=k.getBoundingClientRect();process.env.NODE_ENV!=="test"&&F.top===0&&F.left===0&&F.right===0&&F.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(`
120
+ `))}let O=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:F})=>{I(F)}}];l!=null&&(O=O.concat(l)),d&&d.modifiers!=null&&(O=O.concat(d.modifiers));const N=n2(k,v.current,{placement:E,...d,modifiers:O});return T.current(N),()=>{N.destroy(),T.current(null)}},[k,a,l,c,d,E]);const j={placement:M};m!==null&&(j.TransitionProps=m);const w=a2(t),L=h.root??"div",D=Le({elementType:L,externalSlotProps:p.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:w.root});return b.jsx(L,{...D,children:typeof r=="function"?r(j):r})}),mb=P.forwardRef(function(t,n){const{anchorEl:o,children:r,container:i,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:u,open:d,placement:f="bottom",popperOptions:p=l2,popperRef:h,style:m,transition:g=!1,slotProps:y={},slots:v={},...C}=t,[x,S]=P.useState(!0),T=()=>{S(!1)},E=()=>{S(!0)};if(!c&&!d&&(!g||x))return null;let M;if(i)M=i;else if(o){const $=Wi(o);M=$&&ba($)?Pt($).body:Pt(null).body}const A=!d&&c&&(!g||x)?"none":void 0,k=g?{in:d,onEnter:T,onExited:E}:void 0;return b.jsx(Cs,{disablePortal:l,container:M,children:b.jsx(c2,{anchorEl:o,direction:a,disablePortal:l,modifiers:u,ref:n,open:g?!x:d,placement:f,popperOptions:p,popperRef:h,slotProps:y,slots:v,...C,style:{position:"fixed",top:0,left:0,display:A,...m},TransitionProps:k,children:r})})});process.env.NODE_ENV!=="production"&&(mb.propTypes={anchorEl:Bn(s.oneOfType([Vn,s.object,s.func]),e=>{if(e.open){const t=Wi(e.anchorEl);if(t&&ba(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&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(`
121
+ `))}else if(!t||typeof t.getBoundingClientRect!="function"||i2(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(`
122
+ `))}return null}),children:s.oneOfType([s.node,s.func]),container:s.oneOfType([Vn,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:xt,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),transition:s.bool});const u2=be(mb,{name:"MuiPopper",slot:"Root"})({}),gb=P.forwardRef(function(t,n){const o=fn(),r=Fe({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:f,modifiers:p,open:h,placement:m,popperOptions:g,popperRef:y,transition:v,slots:C,slotProps:x,...S}=r,T=(C==null?void 0:C.root)??(l==null?void 0:l.Root),E={anchorEl:i,container:u,disablePortal:d,keepMounted:f,modifiers:p,open:h,placement:m,popperOptions:g,popperRef:y,transition:v,...S};return b.jsx(u2,{as:a,direction:o?"rtl":"ltr",slots:{root:T},slotProps:x??c,...E,ref:n})});process.env.NODE_ENV!=="production"&&(gb.propTypes={anchorEl:s.oneOfType([Vn,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([Vn,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:xt,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 Qr(e){var n;let t=e.activeElement;for(;((n=t==null?void 0:t.shadowRoot)==null?void 0:n.activeElement)!=null;)t=t.shadowRoot.activeElement;return t}const d2=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function f2(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 p2(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function h2(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||p2(e))}function m2(e){const t=[],n=[];return Array.from(e.querySelectorAll(d2)).forEach((o,r)=>{const i=f2(o);i===-1||!h2(o)||(i===0?t.push(o):n.push({documentOrder:r,tabIndex:i,node:o}))}),n.sort((o,r)=>o.tabIndex===r.tabIndex?o.documentOrder-r.documentOrder:o.tabIndex-r.tabIndex).map(o=>o.node).concat(t)}function g2(){return!0}function Ts(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:i=m2,isEnabled:a=g2,open:l}=e,c=P.useRef(!1),u=P.useRef(null),d=P.useRef(null),f=P.useRef(null),p=P.useRef(null),h=P.useRef(!1),m=P.useRef(null),g=$e(Fs(t),m),y=P.useRef(null);P.useEffect(()=>{!l||!m.current||(h.current=!n)},[n,l]),P.useEffect(()=>{if(!l||!m.current)return;const x=Pt(m.current),S=Qr(x);return m.current.contains(S)||(m.current.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(`
123
+ `)),m.current.setAttribute("tabIndex","-1")),h.current&&m.current.focus()),()=>{r||(f.current&&f.current.focus&&(c.current=!0,f.current.focus()),f.current=null)}},[l]),P.useEffect(()=>{if(!l||!m.current)return;const x=Pt(m.current),S=M=>{if(y.current=M,o||!a()||M.key!=="Tab")return;Qr(x)===m.current&&M.shiftKey&&(c.current=!0,d.current&&d.current.focus())},T=()=>{var $,j;const M=m.current;if(M===null)return;const A=Qr(x);if(!x.hasFocus()||!a()||c.current){c.current=!1;return}if(M.contains(A)||o&&A!==u.current&&A!==d.current)return;if(A!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let k=[];if((A===u.current||A===d.current)&&(k=i(m.current)),k.length>0){const w=!!(($=y.current)!=null&&$.shiftKey&&((j=y.current)==null?void 0:j.key)==="Tab"),L=k[0],D=k[k.length-1];typeof L!="string"&&typeof D!="string"&&(w?D.focus():L.focus())}else M.focus()};x.addEventListener("focusin",T),x.addEventListener("keydown",S,!0);const E=setInterval(()=>{const M=Qr(x);M&&M.tagName==="BODY"&&T()},50);return()=>{clearInterval(E),x.removeEventListener("focusin",T),x.removeEventListener("keydown",S,!0)}},[n,o,r,a,l,i]);const v=x=>{f.current===null&&(f.current=x.relatedTarget),h.current=!0,p.current=x.target;const S=t.props.onFocus;S&&S(x)},C=x=>{f.current===null&&(f.current=x.relatedTarget),h.current=!0};return b.jsxs(P.Fragment,{children:[b.jsx("div",{tabIndex:l?0:-1,onFocus:C,ref:u,"data-testid":"sentinelStart"}),P.cloneElement(t,{ref:g,onFocus:v}),b.jsx("div",{tabIndex:l?0:-1,onFocus:C,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Ts.propTypes={children:Vs,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired});process.env.NODE_ENV!=="production"&&(Ts.propTypes=am(Ts.propTypes));function y2(e){return Te("MuiPickerPopper",e)}Ce("MuiPickerPopper",["root","paper"]);function b2(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const v2=e=>{setTimeout(e,0)},yb=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?yb(t.shadowRoot):t:null},jt=e=>yb(Pt(e)),x2="@media (pointer: fine)",S2=["PaperComponent","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],w2=e=>we({root:["root"],paper:["paper"]},y2,e),C2=ae.styled(gb,{name:"MuiPickerPopper",slot:"Root"})(({theme:e})=>({zIndex:e.zIndex.modal})),T2=ae.styled(zs,{name:"MuiPickerPopper",slot:"Paper"})({outline:0,transformOrigin:"top center",variants:[{props:({popperPlacement:e})=>new Set(["top","top-start","top-end"]).has(e),style:{transformOrigin:"bottom center"}}]});function P2(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function E2(e,t){const n=P.useRef(!1),o=P.useRef(!1),r=P.useRef(null),i=P.useRef(!1);P.useEffect(()=>{if(!e)return;function c(){i.current=!0}return document.addEventListener("mousedown",c,!0),document.addEventListener("touchstart",c,!0),()=>{document.removeEventListener("mousedown",c,!0),document.removeEventListener("touchstart",c,!0),i.current=!1}},[e]);const a=he(c=>{if(!i.current)return;const u=o.current;o.current=!1;const d=Pt(r.current);if(!r.current||"clientX"in c&&P2(c,d))return;if(n.current){n.current=!1;return}let f;c.composedPath?f=c.composedPath().indexOf(r.current)>-1:f=!d.documentElement.contains(c.target)||r.current.contains(c.target),!f&&!u&&t(c)}),l=c=>{c.defaultMuiPrevented||(o.current=!0)};return P.useEffect(()=>{if(e){const c=Pt(r.current),u=()=>{n.current=!0};return c.addEventListener("touchstart",a),c.addEventListener("touchmove",u),()=>{c.removeEventListener("touchstart",a),c.removeEventListener("touchmove",u)}}},[e,a]),P.useEffect(()=>{if(e){const c=Pt(r.current);return c.addEventListener("click",a),()=>{c.removeEventListener("click",a),o.current=!1}}},[e,a]),[r,l,l]}const bb=P.forwardRef((e,t)=>{const{PaperComponent:n,ownerState:o,children:r,paperSlotProps:i,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=Pe(e,S2),d=Le({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:o});return b.jsx(n,U({},u,d,{onClick:f=>{var p;l(f),(p=d.onClick)==null||p.call(d,f)},onTouchStart:f=>{var p;c(f),(p=d.onTouchStart)==null||p.call(d,f)},ownerState:o,children:r}))});process.env.NODE_ENV!=="production"&&(bb.displayName="PickerPopperPaperWrapper");function M2(e){const t=ae.useThemeProps({props:e,name:"MuiPickerPopper"}),{children:n,placement:o="bottom-start",slots:r,slotProps:i,classes:a}=t,{open:l,popupRef:c,reduceAnimations:u}=Mr(),{ownerState:d,rootRefObject:f}=Dt(),{dismissViews:p,getCurrentViewMode:h,onPopperExited:m,triggerElement:g,viewContainerRole:y}=Dt();P.useEffect(()=>{function N(F){l&&F.key==="Escape"&&p()}return document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N)}},[p,l]);const v=P.useRef(null);P.useEffect(()=>{y==="tooltip"||h()==="field"||(l?v.current=jt(f.current):v.current&&v.current instanceof HTMLElement&&setTimeout(()=>{v.current instanceof HTMLElement&&v.current.focus()}))},[l,y,h,f]);const C=w2(a),x=he(()=>{y==="tooltip"?v2(()=>{var N,F;(N=f.current)!=null&&N.contains(jt(f.current))||(F=c.current)!=null&&F.contains(jt(c.current))||p()}):p()}),[S,T,E]=E2(l,x),M=P.useRef(null),A=$e(M,c),k=$e(A,S),$=N=>{N.key==="Escape"&&(N.stopPropagation(),p())},j=(r==null?void 0:r.desktopTransition)??u?no:xs,w=(r==null?void 0:r.desktopTrapFocus)??Ts,L=(r==null?void 0:r.desktopPaper)??T2,D=(r==null?void 0:r.popper)??C2,I=Le({elementType:D,externalSlotProps:i==null?void 0:i.popper,additionalProps:{transition:!0,role:y??void 0,open:l,placement:o,anchorEl:g,onKeyDown:$},className:C.root,ownerState:d}),O=P.useMemo(()=>U({},d,{popperPlacement:I.placement}),[d,I.placement]);return b.jsx(D,U({},I,{children:({TransitionProps:N})=>b.jsx(w,U({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:y==="tooltip",isEnabled:()=>!0},i==null?void 0:i.desktopTrapFocus,{children:b.jsx(j,U({},N,i==null?void 0:i.desktopTransition,{onExited:F=>{var V,B,R;m==null||m(),(B=(V=i==null?void 0:i.desktopTransition)==null?void 0:V.onExited)==null||B.call(V,F),(R=N==null?void 0:N.onExited)==null||R.call(N)},children:b.jsx(bb,{PaperComponent:L,ownerState:O,ref:k,onPaperClick:T,onPaperTouchStart:E,paperClasses:C.paper,paperSlotProps:i==null?void 0:i.desktopPaper,children:n})}))}))}))}const O2="@media (prefers-reduced-motion: reduce)",cr=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),nh=cr&&cr[1]?parseInt(cr[1],10):null,oh=cr&&cr[2]?parseInt(cr[2],10):null,k2=nh&&nh<10||oh&&oh<13||!1;function vb(e){const t=_y(O2,{defaultMatches:!1});return e??(t||k2)}const xb={hasNextStep:!1,hasSeveralSteps:!1,goToNextStep:()=>{},areViewsInSameStep:()=>!0};function D2(e){const{steps:t,isViewMatchingStep:n,onStepChange:o}=e;return r=>{if(t==null)return xb;const i=t.findIndex(l=>n(r.view,l)),a=i===-1||i===t.length-1?null:t[i+1];return{hasNextStep:a!=null,hasSeveralSteps:t.length>1,goToNextStep:()=>{a!=null&&o(U({},r,{step:a}))},areViewsInSameStep:(l,c)=>{const u=t.find(f=>n(l,f)),d=t.find(f=>n(c,f));return u===d}}}}let vl=!1;function Sb({onChange:e,onViewChange:t,openTo:n,view:o,views:r,autoFocus:i,focusedView:a,onFocusedViewChange:l,getStepNavigation:c}){process.env.NODE_ENV!=="production"&&(vl||(o!=null&&!r.includes(o)&&(console.warn(`MUI X: \`view="${o}"\` is not a valid prop.`,`It must be an element of \`views=["${r.join('", "')}"]\`.`),vl=!0),o==null&&n!=null&&!r.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${r.join('", "')}"]\`.`),vl=!0)));const u=P.useRef(n),d=P.useRef(r),f=P.useRef(r.includes(n)?n:r[0]),[p,h]=Jn({name:"useViews",state:"view",controlled:o,default:f.current}),m=P.useRef(i?p:null),[g,y]=Jn({name:"useViews",state:"focusedView",controlled:a,default:m.current}),v=c?c({setView:h,view:p,defaultView:f.current,views:r}):xb;P.useEffect(()=>{(u.current&&u.current!==n||d.current&&d.current.some(k=>!r.includes(k)))&&(h(r.includes(n)?n:r[0]),d.current=r,u.current=n)},[n,h,p,r]);const C=r.indexOf(p),x=r[C-1]??null,S=r[C+1]??null,T=he((k,$)=>{y($?k:j=>k===j?null:j),l==null||l(k,$)}),E=he(k=>{T(k,!0),k!==p&&(h(k),t&&t(k))}),M=he(()=>{S&&E(S)}),A=he((k,$,j)=>{const w=$==="finish",L=j?r.indexOf(j)<r.length-1:!!S;e(k,w&&L?"partial":$,j);let I=null;if(j!=null&&j!==p?I=j:w&&(I=p),I==null)return;const O=r[r.indexOf(I)+1];O==null||!v.areViewsInSameStep(I,O)||E(O)});return U({},v,{view:p,setView:E,focusedView:g,setFocusedView:T,nextView:S,previousView:x,defaultView:r.includes(n)?n:r[0],goToNextView:M,setValueAndGoToNextView:A})}function rh(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}function R2(e,t){const[n,o]=P.useState(rh);return Ct(()=>{const r=()=>{o(rh())};return window.addEventListener("orientationchange",r),()=>{window.removeEventListener("orientationchange",r)}},[]),b2(e,["hours","minutes","seconds"])?"portrait":t??n}const sh=new Set;function wb(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
124
+ `):e;sh.has(n)||(sh.add(n),t==="error"?console.error(n):console.warn(n))}const Hs=({name:e,timezone:t,value:n,defaultValue:o,referenceDate:r,onChange:i,valueManager:a})=>{const l=Qe(),[c,u]=Jn({name:e,state:"value",controlled:n,default:o??a.emptyValue}),d=P.useMemo(()=>a.getTimezone(l,c),[l,a,c]),f=he(g=>d==null?g:a.setTimezone(l,d,g)),p=P.useMemo(()=>t||d||(r?l.getTimezone(Array.isArray(r)?r[0]:r):"default"),[t,d,r,l]),h=P.useMemo(()=>a.setTimezone(l,p,c),[a,l,p,c]),m=he((g,...y)=>{const v=f(g);u(v),i==null||i(v,...y)});return{value:h,handleValueChange:m,timezone:p}};function I2(e){const{props:t,valueManager:n,validator:o}=e,{value:r,defaultValue:i,onChange:a,referenceDate:l,timezone:c,onAccept:u,closeOnSelect:d,open:f,onOpen:p,onClose:h}=t,{current:m}=P.useRef(i),{current:g}=P.useRef(r!==void 0),{current:y}=P.useRef(f!==void 0),v=Qe();process.env.NODE_ENV!=="production"&&t.renderInput!=null&&wb(["MUI X: The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]),process.env.NODE_ENV!=="production"&&(P.useEffect(()=>{g!==(r!==void 0)&&console.error([`MUI X: A component is changing the ${g?"":"un"}controlled value of a Picker to be ${g?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled valuefor the lifetime of the component.","The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
125
125
  `))},[r]),P.useEffect(()=>{!g&&m!==i&&console.error(["MUI X: A component is changing the defaultValue of an uncontrolled Picker after being initialized. To suppress this warning opt to use a controlled value."].join(`
126
- `))},[JSON.stringify(m)]));const{timezone:w,value:x,handleValueChange:S}=Hs({name:"a picker component",timezone:c,value:r,defaultValue:m,referenceDate:l,onChange:a,valueManager:n}),[T,E]=P.useState(()=>({open:!1,lastExternalValue:x,clockShallowValue:void 0,lastCommittedValue:x,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:M}=Gy({props:t,validator:o,timezone:w,value:x,onError:t.onError}),_=he(C=>{const L=typeof C=="function"?C(T.open):C;y||E(k=>U({},k,{open:L})),L&&p&&p(),L||h==null||h()}),D=he((C,L)=>{const{changeImportance:k="accept",skipPublicationIfPristine:I=!1,validationError:O,shortcut:N,source:F,shouldClose:V=k==="accept"}=L??{};let B,R;!I&&!g&&!T.hasBeenModifiedSinceMount?(B=!0,R=k==="accept"):(B=!n.areValuesEqual(v,C,x),R=k==="accept"&&!n.areValuesEqual(v,C,T.lastCommittedValue)),E(Z=>U({},Z,{clockShallowValue:B?void 0:Z.clockShallowValue,lastCommittedValue:R?C:Z.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let Y=null;const G=()=>{if(!Y){let Z;F?Z=F:N?Z="view":Z="unknown",Y={validationError:O??M(C),source:Z},N&&(Y.shortcut=N)}return Y};B&&S(C,G()),R&&u&&u(C,G()),V&&_(!1)});x!==T.lastExternalValue&&E(C=>U({},C,{lastExternalValue:x,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));const $=he((C,L="partial")=>{if(L==="shallow"){E(k=>U({},k,{clockShallowValue:C,hasBeenModifiedSinceMount:!0}));return}D(C,{changeImportance:L==="finish"&&d?"accept":"set",source:"view"})});P.useEffect(()=>{if(y){if(f===void 0)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");E(C=>U({},C,{open:f}))}},[y,f]);const j=P.useMemo(()=>n.cleanValue(v,T.clockShallowValue===void 0?x:T.clockShallowValue),[v,n,T.clockShallowValue,x]);return{timezone:w,state:T,setValue:D,setValueFromView:$,setOpen:_,value:x,viewValue:j}}const jI=["className","sx"],wb=({ref:e,props:t,valueManager:n,valueType:o,variant:r,validator:i,onPopperExited:a,autoFocusView:l,rendererInterceptor:c,localeText:u,viewContainerRole:d,getStepNavigation:f})=>{const{views:p,view:h,openTo:m,onViewChange:g,viewRenderers:y,reduceAnimations:v,orientation:w,disableOpenPicker:x,closeOnSelect:S,disabled:T,readOnly:E,formatDensity:M,enableAccessibleFieldDOMStructure:_,selectedSections:D,onSelectedSectionsChange:$,format:j,label:C,autoFocus:L,name:k}=t,{className:I,sx:O}=t,N=Pe(t,jI),F=so(),V=Qe(),B=vb(v),R=NI(p,w),{current:Y}=P.useRef(m??null),[G,Z]=P.useState(null),re=P.useRef(null),X=P.useRef(null),Q=P.useRef(null),K=$e(e,Q),{timezone:te,state:z,setOpen:H,setValue:W,setValueFromView:ee,value:J,viewValue:ie}=_I({props:t,valueManager:n,validator:i}),{view:ne,setView:de,defaultView:se,focusedView:ue,setFocusedView:le,setValueAndGoToNextView:fe,goToNextStep:me,hasNextStep:Ie,hasSeveralSteps:Oe}=Sb({view:h,views:p,openTo:m,onChange:ee,onViewChange:g,autoFocus:l,getStepNavigation:f}),qe=he(()=>W(n.emptyValue,{source:"view"})),tt=he(()=>W(n.getTodayValue(V,te,o),{source:"view"})),St=he(()=>W(J,{source:"view"})),Tt=he(()=>W(z.lastCommittedValue,{skipPublicationIfPristine:!0,source:"view"})),Ee=he(()=>{W(J,{skipPublicationIfPristine:!0,source:"view"})}),{hasUIView:Me,viewModeLookup:Se,timeViewsCount:Be}=P.useMemo(()=>p.reduce((ve,Ne)=>{const Ve=y[Ne]==null?"field":"UI";return ve.viewModeLookup[Ne]=Ve,Ve==="UI"&&(ve.hasUIView=!0,Lk(Ne)&&(ve.timeViewsCount+=1)),ve},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[y,p]),ze=Se[ne],nt=he(()=>ze),[Je,Vt]=P.useState(ze==="UI"?ne:null);Je!==ne&&Se[ne]==="UI"&&Vt(ne),wt(()=>{ze==="field"&&z.open&&(H(!1),setTimeout(()=>{var ve,Ne;(ve=X==null?void 0:X.current)==null||ve.setSelectedSections(ne),(Ne=X==null?void 0:X.current)==null||Ne.focusField(ne)}))},[ne]),wt(()=>{if(!z.open)return;let ve=ne;ze==="field"&&Je!=null&&(ve=Je),ve!==se&&Se[ve]==="UI"&&Se[se]==="UI"&&(ve=se),ve!==ne&&de(ve),le(ve,!0)},[z.open]);const ke=P.useMemo(()=>({isPickerValueEmpty:n.areValuesEqual(V,J,n.emptyValue),isPickerOpen:z.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:R,pickerVariant:r}),[V,n,J,z.open,R,r,t.disabled,t.readOnly]),ut=P.useMemo(()=>x||!Me?"hidden":T||E?"disabled":"enabled",[x,Me,T,E]),yt=he(me),Et=P.useMemo(()=>S&&!Oe?[]:["cancel","nextOrAccept"],[S,Oe]),hn=P.useMemo(()=>({setValue:W,setOpen:H,clearValue:qe,setValueToToday:tt,acceptValueChanges:St,cancelValueChanges:Tt,setView:de,goToNextStep:yt}),[W,H,qe,tt,St,Tt,de,yt]),ge=P.useMemo(()=>U({},hn,{value:J,timezone:te,open:z.open,views:p,view:Je,initialView:Y,disabled:T??!1,readOnly:E??!1,autoFocus:L??!1,variant:r,orientation:R,popupRef:re,reduceAnimations:B,triggerRef:Z,triggerStatus:ut,hasNextStep:Ie,fieldFormat:j??"",name:k,label:C,rootSx:O,rootRef:K,rootClassName:I}),[hn,J,K,r,R,B,T,E,j,I,k,C,O,ut,Ie,te,z.open,Je,p,Y,L]),Ae=P.useMemo(()=>({dismissViews:Ee,ownerState:ke,hasUIView:Me,getCurrentViewMode:nt,rootRefObject:Q,labelId:F,triggerElement:G,viewContainerRole:d,defaultActionBarActions:Et,onPopperExited:a}),[Ee,ke,Me,nt,F,G,d,Et,a]),at=P.useMemo(()=>({formatDensity:M,enableAccessibleFieldDOMStructure:_,selectedSections:D,onSelectedSectionsChange:$,fieldRef:X}),[M,_,D,$,X]);return{providerProps:{localeText:u,contextValue:ge,privateContextValue:Ae,actionsContextValue:hn,fieldPrivateContextValue:at,isValidContextValue:ve=>{const Ne=i({adapter:V,value:ve,timezone:te,props:t});return!n.hasError(Ne)}},renderCurrentView:()=>{if(Je==null)return null;const ve=y[Je];if(ve==null)return null;const Ne=U({},N,{views:p,timezone:te,value:ie,onChange:fe,view:Je,onViewChange:de,showViewSwitcher:Be>1,timeViewsCount:Be},d==="tooltip"?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:ue,onFocusedViewChange:le});return c?b.jsx(c,{viewRenderers:y,popperView:Je,rendererProps:Ne}):ve(Ne)},ownerState:ke}};function Tb(e){return Te("MuiPickersLayout",e)}const yo=we("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function LI(e){const{prototype:t={}}=e;return!!t.isReactComponent}function $I(e,t,n,o,r){const i=e[t],a=r||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!LI(i)&&(l="Did you accidentally provide a plain function component instead?"),i===P.Fragment&&(l="Did you accidentally provide a React.Fragment instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const ya=Bn(s.elementType,$I);function ih(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
127
- `))}return!1}class Ui{constructor(){pe(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 Ui}static use(){const t=Jy(Ui.create).current,[n,o]=P.useState(!1);return t.shouldMount=n,t.setShouldMount=o,P.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=FI(),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 VI(){return Ui.use()}function FI(){let e,t;const n=new Promise((o,r)=>{e=o,t=r});return n.resolve=e,n.reject=t,n}function Pb(e){const{className:t,classes:n,pulsate:o=!1,rippleX:r,rippleY:i,rippleSize:a,in:l,onExited:c,timeout:u}=e,[d,f]=P.useState(!1),p=ye(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),h={width:a,height:a,top:-(a/2)+i,left:-(a/2)+r},m=ye(n.child,d&&n.childLeaving,o&&n.childPulsate);return!l&&!d&&f(!0),P.useEffect(()=>{if(!l&&c!=null){const g=setTimeout(c,u);return()=>{clearTimeout(g)}}},[c,l,u]),b.jsx("span",{className:p,style:h,children:b.jsx("span",{className:m})})}process.env.NODE_ENV!=="production"&&(Pb.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 Xt=we("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Sc=550,BI=80,zI=Wt.keyframes`
126
+ `))},[JSON.stringify(m)]));const{timezone:C,value:x,handleValueChange:S}=Hs({name:"a picker component",timezone:c,value:r,defaultValue:m,referenceDate:l,onChange:a,valueManager:n}),[T,E]=P.useState(()=>({open:!1,lastExternalValue:x,clockShallowValue:void 0,lastCommittedValue:x,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:M}=Gy({props:t,validator:o,timezone:C,value:x,onError:t.onError}),A=he(w=>{const L=typeof w=="function"?w(T.open):w;y||E(D=>U({},D,{open:L})),L&&p&&p(),L||h==null||h()}),k=he((w,L)=>{const{changeImportance:D="accept",skipPublicationIfPristine:I=!1,validationError:O,shortcut:N,source:F,shouldClose:V=D==="accept"}=L??{};let B,R;!I&&!g&&!T.hasBeenModifiedSinceMount?(B=!0,R=D==="accept"):(B=!n.areValuesEqual(v,w,x),R=D==="accept"&&!n.areValuesEqual(v,w,T.lastCommittedValue)),E(Z=>U({},Z,{clockShallowValue:B?void 0:Z.clockShallowValue,lastCommittedValue:R?w:Z.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let Y=null;const G=()=>{if(!Y){let Z;F?Z=F:N?Z="view":Z="unknown",Y={validationError:O??M(w),source:Z},N&&(Y.shortcut=N)}return Y};B&&S(w,G()),R&&u&&u(w,G()),V&&A(!1)});x!==T.lastExternalValue&&E(w=>U({},w,{lastExternalValue:x,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));const $=he((w,L="partial")=>{if(L==="shallow"){E(D=>U({},D,{clockShallowValue:w,hasBeenModifiedSinceMount:!0}));return}k(w,{changeImportance:L==="finish"&&d?"accept":"set",source:"view"})});P.useEffect(()=>{if(y){if(f===void 0)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");E(w=>U({},w,{open:f}))}},[y,f]);const j=P.useMemo(()=>n.cleanValue(v,T.clockShallowValue===void 0?x:T.clockShallowValue),[v,n,T.clockShallowValue,x]);return{timezone:C,state:T,setValue:k,setValueFromView:$,setOpen:A,value:x,viewValue:j}}const A2=["className","sx"],Cb=({ref:e,props:t,valueManager:n,valueType:o,variant:r,validator:i,onPopperExited:a,autoFocusView:l,rendererInterceptor:c,localeText:u,viewContainerRole:d,getStepNavigation:f})=>{const{views:p,view:h,openTo:m,onViewChange:g,viewRenderers:y,reduceAnimations:v,orientation:C,disableOpenPicker:x,closeOnSelect:S,disabled:T,readOnly:E,formatDensity:M,enableAccessibleFieldDOMStructure:A,selectedSections:k,onSelectedSectionsChange:$,format:j,label:w,autoFocus:L,name:D}=t,{className:I,sx:O}=t,N=Pe(t,A2),F=so(),V=Qe(),B=vb(v),R=R2(p,C),{current:Y}=P.useRef(m??null),[G,Z]=P.useState(null),re=P.useRef(null),X=P.useRef(null),Q=P.useRef(null),K=$e(e,Q),{timezone:te,state:z,setOpen:H,setValue:W,setValueFromView:ee,value:J,viewValue:ie}=I2({props:t,valueManager:n,validator:i}),{view:ne,setView:de,defaultView:se,focusedView:ue,setFocusedView:le,setValueAndGoToNextView:fe,goToNextStep:me,hasNextStep:Ie,hasSeveralSteps:Oe}=Sb({view:h,views:p,openTo:m,onChange:ee,onViewChange:g,autoFocus:l,getStepNavigation:f}),qe=he(()=>W(n.emptyValue,{source:"view"})),tt=he(()=>W(n.getTodayValue(V,te,o),{source:"view"})),St=he(()=>W(J,{source:"view"})),Tt=he(()=>W(z.lastCommittedValue,{skipPublicationIfPristine:!0,source:"view"})),Ee=he(()=>{W(J,{skipPublicationIfPristine:!0,source:"view"})}),{hasUIView:Me,viewModeLookup:Se,timeViewsCount:Be}=P.useMemo(()=>p.reduce((ve,Ne)=>{const Ve=y[Ne]==null?"field":"UI";return ve.viewModeLookup[Ne]=Ve,Ve==="UI"&&(ve.hasUIView=!0,ND(Ne)&&(ve.timeViewsCount+=1)),ve},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[y,p]),ze=Se[ne],nt=he(()=>ze),[Je,Vt]=P.useState(ze==="UI"?ne:null);Je!==ne&&Se[ne]==="UI"&&Vt(ne),Ct(()=>{ze==="field"&&z.open&&(H(!1),setTimeout(()=>{var ve,Ne;(ve=X==null?void 0:X.current)==null||ve.setSelectedSections(ne),(Ne=X==null?void 0:X.current)==null||Ne.focusField(ne)}))},[ne]),Ct(()=>{if(!z.open)return;let ve=ne;ze==="field"&&Je!=null&&(ve=Je),ve!==se&&Se[ve]==="UI"&&Se[se]==="UI"&&(ve=se),ve!==ne&&de(ve),le(ve,!0)},[z.open]);const ke=P.useMemo(()=>({isPickerValueEmpty:n.areValuesEqual(V,J,n.emptyValue),isPickerOpen:z.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:R,pickerVariant:r}),[V,n,J,z.open,R,r,t.disabled,t.readOnly]),ut=P.useMemo(()=>x||!Me?"hidden":T||E?"disabled":"enabled",[x,Me,T,E]),yt=he(me),Et=P.useMemo(()=>S&&!Oe?[]:["cancel","nextOrAccept"],[S,Oe]),hn=P.useMemo(()=>({setValue:W,setOpen:H,clearValue:qe,setValueToToday:tt,acceptValueChanges:St,cancelValueChanges:Tt,setView:de,goToNextStep:yt}),[W,H,qe,tt,St,Tt,de,yt]),ge=P.useMemo(()=>U({},hn,{value:J,timezone:te,open:z.open,views:p,view:Je,initialView:Y,disabled:T??!1,readOnly:E??!1,autoFocus:L??!1,variant:r,orientation:R,popupRef:re,reduceAnimations:B,triggerRef:Z,triggerStatus:ut,hasNextStep:Ie,fieldFormat:j??"",name:D,label:w,rootSx:O,rootRef:K,rootClassName:I}),[hn,J,K,r,R,B,T,E,j,I,D,w,O,ut,Ie,te,z.open,Je,p,Y,L]),Ae=P.useMemo(()=>({dismissViews:Ee,ownerState:ke,hasUIView:Me,getCurrentViewMode:nt,rootRefObject:Q,labelId:F,triggerElement:G,viewContainerRole:d,defaultActionBarActions:Et,onPopperExited:a}),[Ee,ke,Me,nt,F,G,d,Et,a]),at=P.useMemo(()=>({formatDensity:M,enableAccessibleFieldDOMStructure:A,selectedSections:k,onSelectedSectionsChange:$,fieldRef:X}),[M,A,k,$,X]);return{providerProps:{localeText:u,contextValue:ge,privateContextValue:Ae,actionsContextValue:hn,fieldPrivateContextValue:at,isValidContextValue:ve=>{const Ne=i({adapter:V,value:ve,timezone:te,props:t});return!n.hasError(Ne)}},renderCurrentView:()=>{if(Je==null)return null;const ve=y[Je];if(ve==null)return null;const Ne=U({},N,{views:p,timezone:te,value:ie,onChange:fe,view:Je,onViewChange:de,showViewSwitcher:Be>1,timeViewsCount:Be},d==="tooltip"?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:ue,onFocusedViewChange:le});return c?b.jsx(c,{viewRenderers:y,popperView:Je,rendererProps:Ne}):ve(Ne)},ownerState:ke}};function Tb(e){return Te("MuiPickersLayout",e)}const yo=Ce("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function N2(e){const{prototype:t={}}=e;return!!t.isReactComponent}function _2(e,t,n,o,r){const i=e[t],a=r||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!N2(i)&&(l="Did you accidentally provide a plain function component instead?"),i===P.Fragment&&(l="Did you accidentally provide a React.Fragment instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const va=Bn(s.elementType,_2);function ih(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
127
+ `))}return!1}class Ui{constructor(){pe(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 Ui}static use(){const t=Jy(Ui.create).current,[n,o]=P.useState(!1);return t.shouldMount=n,t.setShouldMount=o,P.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=L2(),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 j2(){return Ui.use()}function L2(){let e,t;const n=new Promise((o,r)=>{e=o,t=r});return n.resolve=e,n.reject=t,n}function Pb(e){const{className:t,classes:n,pulsate:o=!1,rippleX:r,rippleY:i,rippleSize:a,in:l,onExited:c,timeout:u}=e,[d,f]=P.useState(!1),p=ye(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),h={width:a,height:a,top:-(a/2)+i,left:-(a/2)+r},m=ye(n.child,d&&n.childLeaving,o&&n.childPulsate);return!l&&!d&&f(!0),P.useEffect(()=>{if(!l&&c!=null){const g=setTimeout(c,u);return()=>{clearTimeout(g)}}},[c,l,u]),b.jsx("span",{className:p,style:h,children:b.jsx("span",{className:m})})}process.env.NODE_ENV!=="production"&&(Pb.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 Xt=Ce("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Cc=550,$2=80,V2=Wt.keyframes`
128
128
  0% {
129
129
  transform: scale(0);
130
130
  opacity: 0.1;
@@ -134,7 +134,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
134
134
  transform: scale(1);
135
135
  opacity: 0.3;
136
136
  }
137
- `,WI=Wt.keyframes`
137
+ `,F2=Wt.keyframes`
138
138
  0% {
139
139
  opacity: 1;
140
140
  }
@@ -142,7 +142,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
142
142
  100% {
143
143
  opacity: 0;
144
144
  }
145
- `,UI=Wt.keyframes`
145
+ `,B2=Wt.keyframes`
146
146
  0% {
147
147
  transform: scale(1);
148
148
  }
@@ -154,15 +154,15 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
154
154
  100% {
155
155
  transform: scale(1);
156
156
  }
157
- `,HI=be("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),YI=be(Pb,{name:"MuiTouchRipple",slot:"Ripple"})`
157
+ `,z2=be("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),W2=be(Pb,{name:"MuiTouchRipple",slot:"Ripple"})`
158
158
  opacity: 0;
159
159
  position: absolute;
160
160
 
161
161
  &.${Xt.rippleVisible} {
162
162
  opacity: 0.3;
163
163
  transform: scale(1);
164
- animation-name: ${zI};
165
- animation-duration: ${Sc}ms;
164
+ animation-name: ${V2};
165
+ animation-duration: ${Cc}ms;
166
166
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
167
167
  }
168
168
 
@@ -181,8 +181,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
181
181
 
182
182
  & .${Xt.childLeaving} {
183
183
  opacity: 0;
184
- animation-name: ${WI};
185
- animation-duration: ${Sc}ms;
184
+ animation-name: ${F2};
185
+ animation-duration: ${Cc}ms;
186
186
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
187
187
  }
188
188
 
@@ -191,13 +191,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
191
191
  /* @noflip */
192
192
  left: 0px;
193
193
  top: 0;
194
- animation-name: ${UI};
194
+ animation-name: ${B2};
195
195
  animation-duration: 2500ms;
196
196
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
197
197
  animation-iteration-count: infinite;
198
198
  animation-delay: 200ms;
199
199
  }
200
- `,Eb=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:a,...l}=o,[c,u]=P.useState([]),d=P.useRef(0),f=P.useRef(null);P.useEffect(()=>{f.current&&(f.current(),f.current=null)},[c]);const p=P.useRef(!1),h=Xn(),m=P.useRef(null),g=P.useRef(null),y=P.useCallback(S=>{const{pulsate:T,rippleX:E,rippleY:M,rippleSize:_,cb:D}=S;u($=>[...$,b.jsx(YI,{classes:{ripple:ye(i.ripple,Xt.ripple),rippleVisible:ye(i.rippleVisible,Xt.rippleVisible),ripplePulsate:ye(i.ripplePulsate,Xt.ripplePulsate),child:ye(i.child,Xt.child),childLeaving:ye(i.childLeaving,Xt.childLeaving),childPulsate:ye(i.childPulsate,Xt.childPulsate)},timeout:Sc,pulsate:T,rippleX:E,rippleY:M,rippleSize:_},d.current)]),d.current+=1,f.current=D},[i]),v=P.useCallback((S={},T={},E=()=>{})=>{const{pulsate:M=!1,center:_=r||T.pulsate,fakeElement:D=!1}=T;if((S==null?void 0:S.type)==="mousedown"&&p.current){p.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(p.current=!0);const $=D?null:g.current,j=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let C,L,k;if(_||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)C=Math.round(j.width/2),L=Math.round(j.height/2);else{const{clientX:I,clientY:O}=S.touches&&S.touches.length>0?S.touches[0]:S;C=Math.round(I-j.left),L=Math.round(O-j.top)}if(_)k=Math.sqrt((2*j.width**2+j.height**2)/3),k%2===0&&(k+=1);else{const I=Math.max(Math.abs(($?$.clientWidth:0)-C),C)*2+2,O=Math.max(Math.abs(($?$.clientHeight:0)-L),L)*2+2;k=Math.sqrt(I**2+O**2)}S!=null&&S.touches?m.current===null&&(m.current=()=>{y({pulsate:M,rippleX:C,rippleY:L,rippleSize:k,cb:E})},h.start(BI,()=>{m.current&&(m.current(),m.current=null)})):y({pulsate:M,rippleX:C,rippleY:L,rippleSize:k,cb:E})},[r,y,h]),w=P.useCallback(()=>{v({},{pulsate:!0})},[v]),x=P.useCallback((S,T)=>{if(h.clear(),(S==null?void 0:S.type)==="touchend"&&m.current){m.current(),m.current=null,h.start(0,()=>{x(S,T)});return}m.current=null,u(E=>E.length>0?E.slice(1):E),f.current=T},[h]);return P.useImperativeHandle(n,()=>({pulsate:w,start:v,stop:x}),[w,v,x]),b.jsx(HI,{className:ye(Xt.root,i.root,a),ref:g,...l,children:b.jsx(Bs,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(Eb.propTypes={center:s.bool,classes:s.object,className:s.string});function qI(e){return Te("MuiButtonBase",e)}const GI=we("MuiButtonBase",["root","disabled","focusVisible"]),KI=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,a=Ce({root:["root",t&&"disabled",n&&"focusVisible"]},qI,r);return n&&o&&(a.root+=` ${o}`),a},ZI=be("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"},[`&.${GI.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),xr=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:a,className:l,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:p=!1,focusVisibleClassName:h,LinkComponent:m="a",onBlur:g,onClick:y,onContextMenu:v,onDragLeave:w,onFocus:x,onFocusVisible:S,onKeyDown:T,onKeyUp:E,onMouseDown:M,onMouseLeave:_,onMouseUp:D,onTouchEnd:$,onTouchMove:j,onTouchStart:C,tabIndex:L=0,TouchRippleProps:k,touchRippleRef:I,type:O,...N}=o,F=P.useRef(null),V=VI(),B=$e(V.ref,I),[R,Y]=P.useState(!1);u&&R&&Y(!1),P.useImperativeHandle(r,()=>({focusVisible:()=>{Y(!0),F.current.focus()}}),[]);const G=V.shouldMount&&!d&&!u;P.useEffect(()=>{R&&p&&!d&&V.pulsate()},[d,p,R,V]);const Z=Dn(V,"start",M,f),re=Dn(V,"stop",v,f),X=Dn(V,"stop",w,f),Q=Dn(V,"stop",D,f),K=Dn(V,"stop",me=>{R&&me.preventDefault(),_&&_(me)},f),te=Dn(V,"start",C,f),z=Dn(V,"stop",$,f),H=Dn(V,"stop",j,f),W=Dn(V,"stop",me=>{ih(me.target)||Y(!1),g&&g(me)},!1),ee=he(me=>{F.current||(F.current=me.currentTarget),ih(me.target)&&(Y(!0),S&&S(me)),x&&x(me)}),J=()=>{const me=F.current;return c&&c!=="button"&&!(me.tagName==="A"&&me.href)},ie=he(me=>{p&&!me.repeat&&R&&me.key===" "&&V.stop(me,()=>{V.start(me)}),me.target===me.currentTarget&&J()&&me.key===" "&&me.preventDefault(),T&&T(me),me.target===me.currentTarget&&J()&&me.key==="Enter"&&!u&&(me.preventDefault(),y&&y(me))}),ne=he(me=>{p&&me.key===" "&&R&&!me.defaultPrevented&&V.stop(me,()=>{V.pulsate(me)}),E&&E(me),y&&me.target===me.currentTarget&&J()&&me.key===" "&&!me.defaultPrevented&&y(me)});let de=c;de==="button"&&(N.href||N.to)&&(de=m);const se={};if(de==="button"){const me=!!N.formAction;se.type=O===void 0&&!me?"button":O,se.disabled=u}else!N.href&&!N.to&&(se.role="button"),u&&(se["aria-disabled"]=u);const ue=$e(n,F),le={...o,centerRipple:i,component:c,disabled:u,disableRipple:d,disableTouchRipple:f,focusRipple:p,tabIndex:L,focusVisible:R},fe=KI(le);return b.jsxs(ZI,{as:de,className:ye(fe.root,l),ownerState:le,onBlur:W,onClick:y,onContextMenu:re,onFocus:ee,onKeyDown:ie,onKeyUp:ne,onMouseDown:Z,onMouseLeave:K,onMouseUp:Q,onDragLeave:X,onTouchEnd:z,onTouchMove:H,onTouchStart:te,ref:ue,tabIndex:u?-1:L,type:O,...se,...N,children:[a,G?b.jsx(Eb,{ref:B,center:i,...k}):null]})});function Dn(e,t,n,o=!1){return he(r=>(n&&n(r),o||e[t](r),!0))}process.env.NODE_ENV!=="production"&&(xr.propTypes={action:xt,centerRipple:s.bool,children:s.node,classes:s.object,className:s.string,component:ya,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 XI(e){return Te("MuiCircularProgress",e)}we("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const cn=44,Cc=Wt.keyframes`
200
+ `,Eb=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:a,...l}=o,[c,u]=P.useState([]),d=P.useRef(0),f=P.useRef(null);P.useEffect(()=>{f.current&&(f.current(),f.current=null)},[c]);const p=P.useRef(!1),h=Xn(),m=P.useRef(null),g=P.useRef(null),y=P.useCallback(S=>{const{pulsate:T,rippleX:E,rippleY:M,rippleSize:A,cb:k}=S;u($=>[...$,b.jsx(W2,{classes:{ripple:ye(i.ripple,Xt.ripple),rippleVisible:ye(i.rippleVisible,Xt.rippleVisible),ripplePulsate:ye(i.ripplePulsate,Xt.ripplePulsate),child:ye(i.child,Xt.child),childLeaving:ye(i.childLeaving,Xt.childLeaving),childPulsate:ye(i.childPulsate,Xt.childPulsate)},timeout:Cc,pulsate:T,rippleX:E,rippleY:M,rippleSize:A},d.current)]),d.current+=1,f.current=k},[i]),v=P.useCallback((S={},T={},E=()=>{})=>{const{pulsate:M=!1,center:A=r||T.pulsate,fakeElement:k=!1}=T;if((S==null?void 0:S.type)==="mousedown"&&p.current){p.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(p.current=!0);const $=k?null:g.current,j=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let w,L,D;if(A||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)w=Math.round(j.width/2),L=Math.round(j.height/2);else{const{clientX:I,clientY:O}=S.touches&&S.touches.length>0?S.touches[0]:S;w=Math.round(I-j.left),L=Math.round(O-j.top)}if(A)D=Math.sqrt((2*j.width**2+j.height**2)/3),D%2===0&&(D+=1);else{const I=Math.max(Math.abs(($?$.clientWidth:0)-w),w)*2+2,O=Math.max(Math.abs(($?$.clientHeight:0)-L),L)*2+2;D=Math.sqrt(I**2+O**2)}S!=null&&S.touches?m.current===null&&(m.current=()=>{y({pulsate:M,rippleX:w,rippleY:L,rippleSize:D,cb:E})},h.start($2,()=>{m.current&&(m.current(),m.current=null)})):y({pulsate:M,rippleX:w,rippleY:L,rippleSize:D,cb:E})},[r,y,h]),C=P.useCallback(()=>{v({},{pulsate:!0})},[v]),x=P.useCallback((S,T)=>{if(h.clear(),(S==null?void 0:S.type)==="touchend"&&m.current){m.current(),m.current=null,h.start(0,()=>{x(S,T)});return}m.current=null,u(E=>E.length>0?E.slice(1):E),f.current=T},[h]);return P.useImperativeHandle(n,()=>({pulsate:C,start:v,stop:x}),[C,v,x]),b.jsx(z2,{className:ye(Xt.root,i.root,a),ref:g,...l,children:b.jsx(Bs,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(Eb.propTypes={center:s.bool,classes:s.object,className:s.string});function U2(e){return Te("MuiButtonBase",e)}const H2=Ce("MuiButtonBase",["root","disabled","focusVisible"]),Y2=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,a=we({root:["root",t&&"disabled",n&&"focusVisible"]},U2,r);return n&&o&&(a.root+=` ${o}`),a},q2=be("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"},[`&.${H2.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),xr=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:a,className:l,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:p=!1,focusVisibleClassName:h,LinkComponent:m="a",onBlur:g,onClick:y,onContextMenu:v,onDragLeave:C,onFocus:x,onFocusVisible:S,onKeyDown:T,onKeyUp:E,onMouseDown:M,onMouseLeave:A,onMouseUp:k,onTouchEnd:$,onTouchMove:j,onTouchStart:w,tabIndex:L=0,TouchRippleProps:D,touchRippleRef:I,type:O,...N}=o,F=P.useRef(null),V=j2(),B=$e(V.ref,I),[R,Y]=P.useState(!1);u&&R&&Y(!1),P.useImperativeHandle(r,()=>({focusVisible:()=>{Y(!0),F.current.focus()}}),[]);const G=V.shouldMount&&!d&&!u;P.useEffect(()=>{R&&p&&!d&&V.pulsate()},[d,p,R,V]);const Z=Dn(V,"start",M,f),re=Dn(V,"stop",v,f),X=Dn(V,"stop",C,f),Q=Dn(V,"stop",k,f),K=Dn(V,"stop",me=>{R&&me.preventDefault(),A&&A(me)},f),te=Dn(V,"start",w,f),z=Dn(V,"stop",$,f),H=Dn(V,"stop",j,f),W=Dn(V,"stop",me=>{ih(me.target)||Y(!1),g&&g(me)},!1),ee=he(me=>{F.current||(F.current=me.currentTarget),ih(me.target)&&(Y(!0),S&&S(me)),x&&x(me)}),J=()=>{const me=F.current;return c&&c!=="button"&&!(me.tagName==="A"&&me.href)},ie=he(me=>{p&&!me.repeat&&R&&me.key===" "&&V.stop(me,()=>{V.start(me)}),me.target===me.currentTarget&&J()&&me.key===" "&&me.preventDefault(),T&&T(me),me.target===me.currentTarget&&J()&&me.key==="Enter"&&!u&&(me.preventDefault(),y&&y(me))}),ne=he(me=>{p&&me.key===" "&&R&&!me.defaultPrevented&&V.stop(me,()=>{V.pulsate(me)}),E&&E(me),y&&me.target===me.currentTarget&&J()&&me.key===" "&&!me.defaultPrevented&&y(me)});let de=c;de==="button"&&(N.href||N.to)&&(de=m);const se={};if(de==="button"){const me=!!N.formAction;se.type=O===void 0&&!me?"button":O,se.disabled=u}else!N.href&&!N.to&&(se.role="button"),u&&(se["aria-disabled"]=u);const ue=$e(n,F),le={...o,centerRipple:i,component:c,disabled:u,disableRipple:d,disableTouchRipple:f,focusRipple:p,tabIndex:L,focusVisible:R},fe=Y2(le);return b.jsxs(q2,{as:de,className:ye(fe.root,l),ownerState:le,onBlur:W,onClick:y,onContextMenu:re,onFocus:ee,onKeyDown:ie,onKeyUp:ne,onMouseDown:Z,onMouseLeave:K,onMouseUp:Q,onDragLeave:X,onTouchEnd:z,onTouchMove:H,onTouchStart:te,ref:ue,tabIndex:u?-1:L,type:O,...se,...N,children:[a,G?b.jsx(Eb,{ref:B,center:i,...D}):null]})});function Dn(e,t,n,o=!1){return he(r=>(n&&n(r),o||e[t](r),!0))}process.env.NODE_ENV!=="production"&&(xr.propTypes={action:xt,centerRipple:s.bool,children:s.node,classes:s.object,className:s.string,component:va,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 G2(e){return Te("MuiCircularProgress",e)}Ce("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const cn=44,Tc=Wt.keyframes`
201
201
  0% {
202
202
  transform: rotate(0deg);
203
203
  }
@@ -205,7 +205,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
205
205
  100% {
206
206
  transform: rotate(360deg);
207
207
  }
208
- `,wc=Wt.keyframes`
208
+ `,Pc=Wt.keyframes`
209
209
  0% {
210
210
  stroke-dasharray: 1px, 200px;
211
211
  stroke-dashoffset: 0;
@@ -220,26 +220,26 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
220
220
  stroke-dasharray: 1px, 200px;
221
221
  stroke-dashoffset: -126px;
222
222
  }
223
- `,QI=typeof Cc!="string"?Wt.css`
224
- animation: ${Cc} 1.4s linear infinite;
225
- `:null,JI=typeof wc!="string"?Wt.css`
226
- animation: ${wc} 1.4s ease-in-out infinite;
227
- `:null,e5=e=>{const{classes:t,variant:n,color:o,disableShrink:r}=e,i={root:["root",n,`color${ce(o)}`],svg:["svg"],track:["track"],circle:["circle",`circle${ce(n)}`,r&&"circleDisableShrink"]};return Ce(i,XI,t)},t5=be("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ce(n.color)}`]]}})(Xe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:QI||{animation:`${Cc} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Yt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),n5=be("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),o5=be("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ce(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Xe(({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:JI||{animation:`${wc} 1.4s ease-in-out infinite`}}]}))),r5=be("circle",{name:"MuiCircularProgress",slot:"Track"})(Xe(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Hu=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiCircularProgress"}),{className:r,color:i="primary",disableShrink:a=!1,enableTrackSlot:l=!1,size:c=40,style:u,thickness:d=3.6,value:f=0,variant:p="indeterminate",...h}=o,m={...o,color:i,disableShrink:a,size:c,thickness:d,value:f,variant:p,enableTrackSlot:l},g=e5(m),y={},v={},w={};if(p==="determinate"){const x=2*Math.PI*((cn-d)/2);y.strokeDasharray=x.toFixed(3),w["aria-valuenow"]=Math.round(f),y.strokeDashoffset=`${((100-f)/100*x).toFixed(3)}px`,v.transform="rotate(-90deg)"}return b.jsx(t5,{className:ye(g.root,r),style:{width:c,height:c,...v,...u},ownerState:m,ref:n,role:"progressbar",...w,...h,children:b.jsxs(n5,{className:g.svg,ownerState:m,viewBox:`${cn/2} ${cn/2} ${cn} ${cn}`,children:[l?b.jsx(r5,{className:g.track,ownerState:m,cx:cn,cy:cn,r:(cn-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,b.jsx(o5,{className:g.circle,style:y,ownerState:m,cx:cn,cy:cn,r:(cn-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(Hu.propTypes={classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","error","info","success","warning"]),s.string]),disableShrink:Bn(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 s5(e){return Te("MuiButton",e)}const bo=we("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"]),Mb=P.createContext({});process.env.NODE_ENV!=="production"&&(Mb.displayName="ButtonGroupContext");const Ob=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ob.displayName="ButtonGroupButtonContext");const i5=e=>{const{color:t,disableElevation:n,fullWidth:o,size:r,variant:i,loading:a,loadingPosition:l,classes:c}=e,u={root:["root",a&&"loading",i,`${i}${ce(t)}`,`size${ce(r)}`,`${i}Size${ce(r)}`,`color${ce(t)}`,n&&"disableElevation",o&&"fullWidth",a&&`loadingPosition${ce(l)}`],startIcon:["icon","startIcon",`iconSize${ce(r)}`],endIcon:["icon","endIcon",`iconSize${ce(r)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=Ce(u,s5,c);return{...c,...d}},kb=[{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}}}],a5=be(xr,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ce(n.color)}`],t[`size${ce(n.size)}`],t[`${n.variant}Size${ce(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Xe(({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"},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{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]},[`&.${bo.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${bo.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)",[`&.${bo.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(Yt()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${bo.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${bo.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}),[`&.${bo.loading}`]:{color:"transparent"}}}]}})),l5=be("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${ce(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}},...kb]})),c5=be("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${ce(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}},...kb]})),u5=be("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}}]})),ah=be("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Hn=P.forwardRef(function(t,n){const o=P.useContext(Mb),r=P.useContext(Ob),i=ps(o,t),a=Fe({props:i,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:m,focusVisibleClassName:g,fullWidth:y=!1,id:v,loading:w=null,loadingIndicator:x,loadingPosition:S="center",size:T="medium",startIcon:E,type:M,variant:_="text",...D}=a,$=so(v),j=x??b.jsx(Hu,{"aria-labelledby":$,color:"inherit",size:16}),C={...a,color:c,component:u,disabled:f,disableElevation:p,disableFocusRipple:h,fullWidth:y,loading:w,loadingIndicator:j,loadingPosition:S,size:T,type:M,variant:_},L=i5(C),k=(E||w&&S==="start")&&b.jsx(l5,{className:L.startIcon,ownerState:C,children:E||b.jsx(ah,{className:L.loadingIconPlaceholder,ownerState:C})}),I=(m||w&&S==="end")&&b.jsx(c5,{className:L.endIcon,ownerState:C,children:m||b.jsx(ah,{className:L.loadingIconPlaceholder,ownerState:C})}),O=r||"",N=typeof w=="boolean"?b.jsx("span",{className:L.loadingWrapper,style:{display:"contents"},children:w&&b.jsx(u5,{className:L.loadingIndicator,ownerState:C,children:j})}):null;return b.jsxs(a5,{ownerState:C,className:ye(o.className,L.root,d,O),component:u,disabled:f||w,focusRipple:!h,focusVisibleClassName:ye(L.focusVisible,g),ref:n,type:M,id:w?$:v,...D,classes:L,children:[k,S!=="end"&&N,l,S==="end"&&N,I]})});process.env.NODE_ENV!=="production"&&(Hn.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 d5(e){return Te("MuiDialogActions",e)}we("MuiDialogActions",["root","spacing"]);const f5=e=>{const{classes:t,disableSpacing:n}=e;return Ce({root:["root",!n&&"spacing"]},d5,t)},p5=be("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Db=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:i=!1,...a}=o,l={...o,disableSpacing:i},c=f5(l);return b.jsx(p5,{className:ye(c.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Db.propTypes={children:s.node,classes:s.object,className:s.string,disableSpacing:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const h5=["actions"],m5=ae.styled(Db,{name:"MuiPickersLayout",slot:"ActionBar"})({});function Rb(e){const{actions:t}=e,n=Pe(e,h5),o=lo(),{clearValue:r,setValueToToday:i,acceptValueChanges:a,cancelValueChanges:l,goToNextStep:c,hasNextStep:u}=Mr();if(t==null||t.length===0)return null;const d=t==null?void 0:t.map(f=>{switch(f){case"clear":return b.jsx(Hn,{onClick:r,children:o.clearButtonLabel},f);case"cancel":return b.jsx(Hn,{onClick:l,children:o.cancelButtonLabel},f);case"accept":return b.jsx(Hn,{onClick:a,children:o.okButtonLabel},f);case"today":return b.jsx(Hn,{onClick:i,children:o.todayButtonLabel},f);case"next":return b.jsx(Hn,{onClick:c,children:o.nextStepButtonLabel},f);case"nextOrAccept":return u?b.jsx(Hn,{onClick:c,children:o.nextStepButtonLabel},f):b.jsx(Hn,{onClick:a,children:o.okButtonLabel},f);default:return null}});return b.jsx(m5,U({},n,{children:d}))}process.env.NODE_ENV!=="production"&&(Rb.propTypes={actions:s.arrayOf(s.oneOf(["accept","cancel","clear","next","nextOrAccept","today"]).isRequired),disableSpacing:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const Ib=P.memo(Rb);process.env.NODE_ENV!=="production"&&(Ib.displayName="PickersActionBar");const ur=P.createContext({});process.env.NODE_ENV!=="production"&&(ur.displayName="ListContext");function g5(e){return Te("MuiList",e)}we("MuiList",["root","padding","dense","subheader"]);const y5=e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return Ce({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},g5,t)},b5=be("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}}]}),Yu=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiList"}),{children:r,className:i,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:u,...d}=o,f=P.useMemo(()=>({dense:l}),[l]),p={...o,component:a,dense:l,disablePadding:c},h=y5(p);return b.jsx(ur.Provider,{value:f,children:b.jsxs(b5,{as:a,className:ye(h.root,i),ref:n,ownerState:p,...d,children:[u,r]})})});process.env.NODE_ENV!=="production"&&(Yu.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 it(e,t){const{className:n,elementType:o,ownerState:r,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:f={[e]:void 0},...p}=i,h=d[e]||o,m=tn(f[e],r),{props:{component:g,...y},internalRef:v}=Qy({className:n,...c,externalForwardedProps:e==="root"?p:void 0,externalSlotProps:m}),w=$e(v,m==null?void 0:m.ref,t.ref),x=e==="root"?g||u:g,S=Zy(h,{...e==="root"&&!u&&!d[e]&&a,...e!=="root"&&!d[e]&&a,...y,...x&&!l&&{as:x},...x&&l&&{component:x},ref:w},r);return[h,S]}function v5(e){return Te("MuiListItem",e)}we("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const x5=we("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function S5(e){return Te("MuiListItemSecondaryAction",e)}we("MuiListItemSecondaryAction",["root","disableGutters"]);const C5=e=>{const{disableGutters:t,classes:n}=e;return Ce({root:["root",t&&"disableGutters"]},S5,n)},w5=be("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}}]}),qu=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiListItemSecondaryAction"}),{className:r,...i}=o,a=P.useContext(ur),l={...o,disableGutters:a.disableGutters},c=C5(l);return b.jsx(w5,{className:ye(c.root,r),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(qu.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])});qu.muiName="ListItemSecondaryAction";const T5=(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]},P5=e=>{const{alignItems:t,classes:n,dense:o,disableGutters:r,disablePadding:i,divider:a,hasSecondaryAction:l}=e;return Ce({root:["root",o&&"dense",!r&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},v5,n)},E5=be("div",{name:"MuiListItem",slot:"Root",overridesResolver:T5})(Xe(({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:{[`& > .${x5.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}}]}))),M5=be("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Ab=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiListItem"}),{alignItems:r="center",children:i,className:a,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:f,...p}={},dense:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:y=!1,secondaryAction:v,slotProps:w={},slots:x={},...S}=o,T=P.useContext(ur),E=P.useMemo(()=>({dense:h||T.dense||!1,alignItems:r,disableGutters:m}),[r,T.dense,h,m]),M=P.useRef(null),_=P.Children.toArray(i),D=_.length&&ns(_[_.length-1],["ListItemSecondaryAction"]),$={...o,alignItems:r,dense:E.dense,disableGutters:m,disablePadding:g,divider:y,hasSecondaryAction:D},j=P5($),C=$e(M,n),L={slots:x,slotProps:w},[k,I]=it("secondaryAction",{elementType:qu,externalForwardedProps:L,ownerState:$,className:j.secondaryAction}),O=x.root||c.Root||E5,N=w.root||u.root||{},F={className:ye(j.root,N.className,a),...S};let V=l||"li";return D?(V=!F.component&&!l?"div":V,d==="li"&&(V==="li"?V="div":F.component==="li"&&(F.component="div")),b.jsx(ur.Provider,{value:E,children:b.jsxs(M5,{as:d,className:ye(j.container,f),ref:C,ownerState:$,...p,children:[b.jsx(O,{...N,...!mr(O)&&{as:V,ownerState:{...$,...N.ownerState}},...F,children:_}),_.pop()]})})):b.jsx(ur.Provider,{value:E,children:b.jsxs(O,{...N,as:V,ref:C,...!mr(O)&&{ownerState:{...$,...N.ownerState}},...F,children:[_,v&&b.jsx(k,{...I,children:v})]})})});process.env.NODE_ENV!=="production"&&(Ab.propTypes={alignItems:s.oneOf(["center","flex-start"]),children:Bn(s.node,e=>{const t=P.Children.toArray(e.children);let n=-1;for(let o=t.length-1;o>=0;o-=1){const r=t[o];if(ns(r,["ListItemSecondaryAction"])){n=o;break}}return n!==-1&&n!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),ContainerComponent:ya,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])});const O5=gt(b.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function k5(e){return Te("MuiChip",e)}const De=we("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"]),D5=e=>{const{classes:t,disabled:n,size:o,color:r,iconColor:i,onDelete:a,clickable:l,variant:c}=e,u={root:["root",c,n&&"disabled",`size${ce(o)}`,`color${ce(r)}`,l&&"clickable",l&&`clickableColor${ce(r)}`,a&&"deletable",a&&`deletableColor${ce(r)}`,`${c}${ce(r)}`],label:["label",`label${ce(o)}`],avatar:["avatar",`avatar${ce(o)}`,`avatarColor${ce(r)}`],icon:["icon",`icon${ce(o)}`,`iconColor${ce(i)}`],deleteIcon:["deleteIcon",`deleteIcon${ce(o)}`,`deleteIconColor${ce(r)}`,`deleteIcon${ce(c)}Color${ce(r)}`]};return Ce(u,k5,t)},R5=be("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:o,iconColor:r,clickable:i,onDelete:a,size:l,variant:c}=n;return[{[`& .${De.avatar}`]:t.avatar},{[`& .${De.avatar}`]:t[`avatar${ce(l)}`]},{[`& .${De.avatar}`]:t[`avatarColor${ce(o)}`]},{[`& .${De.icon}`]:t.icon},{[`& .${De.icon}`]:t[`icon${ce(l)}`]},{[`& .${De.icon}`]:t[`iconColor${ce(r)}`]},{[`& .${De.deleteIcon}`]:t.deleteIcon},{[`& .${De.deleteIcon}`]:t[`deleteIcon${ce(l)}`]},{[`& .${De.deleteIcon}`]:t[`deleteIconColor${ce(o)}`]},{[`& .${De.deleteIcon}`]:t[`deleteIcon${ce(c)}Color${ce(o)}`]},t.root,t[`size${ce(l)}`],t[`color${ce(o)}`],i&&t.clickable,i&&o!=="default"&&t[`clickableColor${ce(o)}`],a&&t.deletable,a&&o!=="default"&&t[`deletableColor${ce(o)}`],t[c],t[`${c}${ce(o)}`]]}})(Xe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${De.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${De.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${De.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${De.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${De.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${De.icon}`]:{marginLeft:5,marginRight:-6},[`& .${De.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${De.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${De.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Yt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${De.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${De.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${De.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${De.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(Yt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${De.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${De.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Yt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${De.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${De.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${De.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${De.avatar}`]:{marginLeft:4},[`& .${De.avatarSmall}`]:{marginLeft:2},[`& .${De.icon}`]:{marginLeft:4},[`& .${De.iconSmall}`]:{marginLeft:2},[`& .${De.deleteIcon}`]:{marginRight:5},[`& .${De.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Yt()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${De.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${De.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${De.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),I5=be("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:o}=n;return[t.label,t[`label${ce(o)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function lh(e){return e.key==="Backspace"||e.key==="Delete"}const Nb=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiChip"}),{avatar:r,className:i,clickable:a,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:f,label:p,onClick:h,onDelete:m,onKeyDown:g,onKeyUp:y,size:v="medium",variant:w="filled",tabIndex:x,skipFocusWhenDisabled:S=!1,slots:T={},slotProps:E={},...M}=o,_=P.useRef(null),D=$e(_,n),$=X=>{X.stopPropagation(),m&&m(X)},j=X=>{X.currentTarget===X.target&&lh(X)&&X.preventDefault(),g&&g(X)},C=X=>{X.currentTarget===X.target&&m&&lh(X)&&m(X),y&&y(X)},L=a!==!1&&h?!0:a,k=L||m?xr:c||"div",I={...o,component:k,disabled:d,size:v,color:l,iconColor:P.isValidElement(f)&&f.props.color||l,onDelete:!!m,clickable:L,variant:w},O=D5(I),N=k===xr?{component:c||"div",focusVisibleClassName:O.focusVisible,...m&&{disableRipple:!0}}:{};let F=null;m&&(F=u&&P.isValidElement(u)?P.cloneElement(u,{className:ye(u.props.className,O.deleteIcon),onClick:$}):b.jsx(O5,{className:O.deleteIcon,onClick:$}));let V=null;r&&P.isValidElement(r)&&(V=P.cloneElement(r,{className:ye(O.avatar,r.props.className)}));let B=null;f&&P.isValidElement(f)&&(B=P.cloneElement(f,{className:ye(O.icon,f.props.className)})),process.env.NODE_ENV!=="production"&&V&&B&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const R={slots:T,slotProps:E},[Y,G]=it("root",{elementType:R5,externalForwardedProps:{...R,...M},ownerState:I,shouldForwardComponentProp:!0,ref:D,className:ye(O.root,i),additionalProps:{disabled:L&&d?!0:void 0,tabIndex:S&&d?-1:x,...N},getSlotProps:X=>({...X,onClick:Q=>{var K;(K=X.onClick)==null||K.call(X,Q),h==null||h(Q)},onKeyDown:Q=>{var K;(K=X.onKeyDown)==null||K.call(X,Q),j(Q)},onKeyUp:Q=>{var K;(K=X.onKeyUp)==null||K.call(X,Q),C(Q)}})}),[Z,re]=it("label",{elementType:I5,externalForwardedProps:R,ownerState:I,className:O.label});return b.jsxs(Y,{as:k,...G,children:[V||B,b.jsx(Z,{...re,children:p}),F]})});process.env.NODE_ENV!=="production"&&(Nb.propTypes={avatar:s.element,children:rS,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])});const Ps=36,ba=2,va=320,A5=280,Gu=336,N5=["items","changeImportance"],_5=["getValue"],j5=ae.styled(Yu,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function _b(e){const{items:t,changeImportance:n="accept"}=e,o=Pe(e,N5),{setValue:r}=wD(),i=lD();if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:c}=l,u=Pe(l,_5);const d=c({isValid:i});return U({},u,{label:u.label,onClick:()=>{r(d,{changeImportance:n,shortcut:u,source:"view"})},disabled:!i(d)})});return b.jsx(j5,U({dense:!0,sx:[{maxHeight:Gu,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(l=>b.jsx(Ab,{children:b.jsx(Nb,U({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(_b.propTypes={changeImportance:s.oneOf(["accept","set"]),className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,items:s.arrayOf(s.shape({getValue:s.func.isRequired,id:s.string,label:s.string.isRequired})),style:s.object,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const L5=["ownerState"];function $5(e){return e.view!==null}const V5=(e,t)=>{const{pickerOrientation:n}=t;return Ce({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Tb,e)},F5=e=>{const{ownerState:t,defaultActionBarActions:n}=Dt(),{view:o}=Mr(),r=fn(),{children:i,slots:a,slotProps:l,classes:c}=e,u=P.useMemo(()=>U({},t,{layoutDirection:r?"rtl":"ltr",hasShortcuts:!1}),[t,r]),d=V5(c,u),f=(a==null?void 0:a.actionBar)??Ib,p=Le({elementType:f,externalSlotProps:l==null?void 0:l.actionBar,additionalProps:{actions:n},className:d.actionBar,ownerState:u}),h=Pe(p,L5),m=b.jsx(f,U({},h)),g=a==null?void 0:a.toolbar,y=Le({elementType:g,externalSlotProps:l==null?void 0:l.toolbar,className:d.toolbar,ownerState:u}),v=$5(y)&&g?b.jsx(g,U({},y)):null,w=i,x=a==null?void 0:a.tabs,S=o&&x?b.jsx(x,U({className:d.tabs},l==null?void 0:l.tabs)):null,T=(a==null?void 0:a.shortcuts)??_b,E=Le({elementType:T,externalSlotProps:l==null?void 0:l.shortcuts,className:d.shortcuts,ownerState:u}),M=Array.isArray(E==null?void 0:E.items)&&E.items.length>0,_=o&&T?b.jsx(T,U({},E)):null;return{toolbar:v,content:w,tabs:S,actionBar:m,shortcuts:_,ownerState:U({},u,{hasShortcuts:M})}},B5=(e,t)=>{const{pickerOrientation:n}=t;return Ce({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},Tb,e)},z5=ae.styled("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${yo.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape",hasShortcuts:!1},style:{[`& .${yo.toolbar}`]:{gridColumn:1,gridRow:"1 / 3"}}},{props:{pickerOrientation:"landscape",hasShortcuts:!0},style:{[`& .${yo.toolbar}`]:{gridColumn:"2 / 4",gridRow:1,maxWidth:"max-content"},[`& .${yo.shortcuts}`]:{gridColumn:1,gridRow:2}}},{props:{pickerOrientation:"portrait"},style:{[`& .${yo.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${yo.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{hasShortcuts:!0,layoutDirection:"rtl"},style:{[`& .${yo.shortcuts}`]:{gridColumn:4}}}]}),W5=ae.styled("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),xa=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:a,actionBar:l,shortcuts:c,ownerState:u}=F5(o),{orientation:d,variant:f}=Mr(),{sx:p,className:h,classes:m}=o,g=B5(m,u);return b.jsxs(z5,{ref:n,sx:p,className:ye(g.root,h),ownerState:u,children:[d==="landscape"?c:r,d==="landscape"?r:c,b.jsx(W5,{className:g.contentWrapper,ownerState:u,children:f==="desktop"?b.jsxs(P.Fragment,{children:[i,a]}):b.jsxs(P.Fragment,{children:[a,i]})}),l]})});process.env.NODE_ENV!=="production"&&(xa.displayName="PickersLayout");process.env.NODE_ENV!=="production"&&(xa.propTypes={children:s.node,classes:s.object,className:s.string,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function jb(e){const{steps:t}=e;return AI({steps:t,isViewMatchingStep:(n,o)=>o.views==null||o.views.includes(n),onStepChange:({step:n,defaultView:o,setView:r,view:i,views:a})=>{const l=n.views==null?o:n.views.find(c=>a.includes(c));l!==i&&r(l)}})}const U5=["props","steps"],H5=["ownerState"],Y5=e=>{var E;let{props:t,steps:n}=e,o=Pe(e,U5);const{slots:r,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=jb({steps:n}),{providerProps:d,renderCurrentView:f,ownerState:p}=wb(U({},o,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"desktop",getStepNavigation:u})),h=d.privateContextValue.labelId,m=((E=i==null?void 0:i.toolbar)==null?void 0:E.hidden)??!1,g=r.field,y=Le({elementType:g,externalSlotProps:i==null?void 0:i.field,additionalProps:U({},m&&{id:h}),ownerState:p}),v=Pe(y,H5),w=r.layout??xa;let x=h;m&&(a?x=`${h}-label`:x=void 0);const S=U({},i,{toolbar:U({},i==null?void 0:i.toolbar,{titleId:h}),popper:U({"aria-labelledby":x},i==null?void 0:i.popper)}),T=()=>b.jsxs(By,U({},d,{children:[b.jsx(g,U({},v,{slots:U({},r,v.slots),slotProps:U({},S,v.slotProps),inputRef:l})),b.jsx(DI,{slots:r,slotProps:S,children:b.jsx(w,U({},S==null?void 0:S.layout,{slots:r,slotProps:S,children:f()}))})]}));return process.env.NODE_ENV!=="production"&&(T.displayName="renderPicker"),{renderPicker:T}},Ko=e=>e.saveQuery!=null,Lb=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:n,timezone:o,setCharacterQuery:r,setTempAndroidValueStr:i,updateSectionValue:a}})=>{const l=Qe(),c=({keyPressed:f,sectionIndex:p},h,m)=>{const g=f.toLowerCase(),y=n.sections[p];if(n.characterQuery!=null&&(!m||m(n.characterQuery.value))&&n.characterQuery.sectionIndex===p){const w=`${n.characterQuery.value}${g}`,x=h(w,y);if(!Ko(x))return r({sectionIndex:p,value:w,sectionType:y.type}),x}const v=h(g,y);return Ko(v)&&!v.saveQuery?(r(null),null):(r({sectionIndex:p,value:g,sectionType:y.type}),Ko(v)?null:v)},u=f=>{const p=(g,y,v)=>{const w=y.filter(x=>x.toLowerCase().startsWith(v));return w.length===0?{saveQuery:!1}:{sectionValue:w[0],shouldGoToNextSection:w.length===1}},h=(g,y,v,w)=>{const x=S=>Ly(l,o,y.type,S);if(y.contentType==="letter")return p(y.format,x(y.format),g);if(v&&w!=null&&wu(l,v).contentType==="letter"){const S=x(v),T=p(v,S,g);return Ko(T)?{saveQuery:!1}:U({},T,{sectionValue:w(T.sectionValue,S)})}return{saveQuery:!1}};return c(f,(g,y)=>{switch(y.type){case"month":{const v=w=>jp(l,w,l.formats.month,y.format);return h(g,y,l.formats.month,v)}case"weekDay":{const v=(w,x)=>x.indexOf(w).toString();return h(g,y,l.formats.weekday,v)}case"meridiem":return h(g,y);default:return{saveQuery:!1}}})},d=f=>{const p=({queryValue:m,skipIfBelowMinimum:g,section:y})=>{const v=$o(m,e),w=Number(v),x=t[y.type]({currentDate:null,format:y.format,contentType:y.contentType});if(w>x.maximum)return{saveQuery:!1};if(g&&w<x.minimum)return{saveQuery:!0};const S=w*10>x.maximum||v.length===x.maximum.toString().length;return{sectionValue:$y(l,w,x,e,y),shouldGoToNextSection:S}};return c(f,(m,g)=>{if(g.contentType==="digit"||g.contentType==="digit-with-letter")return p({queryValue:m,skipIfBelowMinimum:!1,section:g});if(g.type==="month"){Vy(l,"digit","month","MM");const y=p({queryValue:m,skipIfBelowMinimum:!0,section:{type:g.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2}});if(Ko(y))return y;const v=jp(l,y.sectionValue,"MM",g.format);return U({},y,{sectionValue:v})}if(g.type==="weekDay"){const y=p({queryValue:m,skipIfBelowMinimum:!0,section:g});if(Ko(y))return y;const v=da(l,g.format)[Number(y.sectionValue)-1];return U({},y,{sectionValue:v})}return{saveQuery:!1}},m=>_p(m,e))};return he(f=>{const p=n.sections[f.sectionIndex],m=_p(f.keyPressed,e)?d(U({},f,{keyPressed:Tu(f.keyPressed,e)})):u(f);if(m==null){i(null);return}a({section:p,newSectionValue:m.sectionValue,shouldGoToNextSection:m.shouldGoToNextSection})})},q5=5e3,$b=e=>{var de;const t=Qe(),n=lo(),o=fn(),{manager:{validator:r,valueType:i,internal_valueManager:a,internal_fieldValueManager:l},internalPropsWithDefaults:c,internalPropsWithDefaults:{value:u,defaultValue:d,referenceDate:f,onChange:p,format:h,formatDensity:m="dense",selectedSections:g,onSelectedSectionsChange:y,shouldRespectLeadingZeros:v=!1,timezone:w,enableAccessibleFieldDOMStructure:x=!0},forwardedProps:{error:S}}=e,{value:T,handleValueChange:E,timezone:M}=Hs({name:"a field component",timezone:w,value:u,defaultValue:d,referenceDate:f,onChange:p,valueManager:a}),_=P.useRef(T);P.useEffect(()=>{_.current=T},[T]);const{hasValidationError:D}=Gy({props:c,validator:r,timezone:M,value:T,onError:c.onError}),$=P.useMemo(()=>zk(t),[t]),j=P.useMemo(()=>qk(t,$,M),[t,$,M]),C=P.useCallback(se=>l.getSectionsFromValue(se,ue=>zp({adapter:t,localeText:n,localizedDigits:$,format:h,date:ue,formatDensity:m,shouldRespectLeadingZeros:v,enableAccessibleFieldDOMStructure:x,isRtl:o})),[l,h,n,$,o,v,t,m,x]),[L,k]=P.useState(()=>{const se=C(T);$p(se,i);const ue={sections:se,lastExternalValue:T,lastSectionsDependencies:{format:h,isRtl:o,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},le=Vk(se),fe=a.getInitialReferenceValue({referenceDate:f,value:T,adapter:t,props:c,granularity:le,timezone:M});return U({},ue,{referenceValue:fe})}),[I,O]=Jn({controlled:g,default:null,name:"useField",state:"selectedSections"}),N=se=>{O(se),y==null||y(se)},F=P.useMemo(()=>fc(I,L.sections),[I,L.sections]),V=F==="all"?0:F,B=P.useMemo(()=>Zk(L.sections,o&&!x),[L.sections,o,x]),R=P.useMemo(()=>L.sections.every(se=>se.value===""),[L.sections]),Y=P.useMemo(()=>{if(V!=null)return!1;const se=L.sections.filter(ue=>ue.value!=="");return se.length>0&&L.sections.length-se.length>0},[L.sections,V]),G=P.useMemo(()=>S!==void 0?S:D||Y,[D,Y,S]),Z=se=>{const ue={validationError:r({adapter:t,value:se,timezone:M,props:c})};E(se,ue)},re=(se,ue)=>{const le=[...L.sections];return le[se]=U({},le[se],{value:ue,modified:!0}),le},X=P.useRef(null),Q=Xn(),K=se=>{V!=null&&(X.current={sectionIndex:V,value:se},Q.start(0,()=>{X.current=null}))},te=()=>{a.areValuesEqual(t,T,a.emptyValue)?k(se=>U({},se,{sections:se.sections.map(ue=>U({},ue,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(k(se=>U({},se,{characterQuery:null})),Z(a.emptyValue))},z=()=>{if(V==null)return;const se=L.sections[V];se.value!==""&&(K(""),l.getDateFromSection(T,se)===null?k(ue=>U({},ue,{sections:re(V,""),tempValueStrAndroid:null,characterQuery:null})):(k(ue=>U({},ue,{characterQuery:null})),Z(l.updateDateInValue(T,se,null))))},H=se=>{const ue=(fe,me)=>{const Ie=t.parse(fe,h);if(!t.isValid(Ie))return null;const Oe=zp({adapter:t,localeText:n,localizedDigits:$,format:h,date:Ie,formatDensity:m,shouldRespectLeadingZeros:v,enableAccessibleFieldDOMStructure:x,isRtl:o});return Fp(t,Ie,Oe,me,!1)},le=l.parseValueStr(se,L.referenceValue,ue);Z(le)},W=Xn(),ee=({section:se,newSectionValue:ue,shouldGoToNextSection:le})=>{Q.clear(),W.clear();const fe=l.getDateFromSection(T,se);le&&V<L.sections.length-1&&N(V+1);const me=re(V,ue),Ie=l.getDateSectionsFromValue(me,se),Oe=Uk(t,Ie,$);if(t.isValid(Oe)){const qe=Fp(t,Oe,Ie,l.getDateFromSection(L.referenceValue,se),!0);return fe==null&&W.start(0,()=>{_.current===T&&k(tt=>U({},tt,{sections:l.clearDateSections(L.sections,se),tempValueStrAndroid:null}))}),Z(l.updateDateInValue(T,se,qe))}return Ie.every(qe=>qe.value!=="")&&(fe==null||t.isValid(fe))?(K(ue),Z(l.updateDateInValue(T,se,Oe))):(fe!=null&&(K(ue),Z(l.updateDateInValue(T,se,Oe))),k(qe=>U({},qe,{sections:me,tempValueStrAndroid:null})))},J=se=>k(ue=>U({},ue,{tempValueStrAndroid:se})),ie=he(se=>{k(ue=>U({},ue,{characterQuery:se}))});if(T!==L.lastExternalValue){const se=X.current!=null&&!t.isValid(l.getDateFromSection(T,L.sections[X.current.sectionIndex]));let ue;se?ue=re(X.current.sectionIndex,X.current.value):ue=C(T),k(le=>U({},le,{lastExternalValue:T,sections:ue,sectionsDependencies:{format:h,isRtl:o,locale:t.locale},referenceValue:se?le.referenceValue:l.updateReferenceValue(t,T,le.referenceValue),tempValueStrAndroid:null}))}if(o!==L.lastSectionsDependencies.isRtl||h!==L.lastSectionsDependencies.format||t.locale!==L.lastSectionsDependencies.locale){const se=C(T);$p(se,i),k(ue=>U({},ue,{lastSectionsDependencies:{format:h,isRtl:o,locale:t.locale},sections:se,tempValueStrAndroid:null,characterQuery:null}))}L.characterQuery!=null&&!G&&V==null&&ie(null),L.characterQuery!=null&&((de=L.sections[L.characterQuery.sectionIndex])==null?void 0:de.type)!==L.characterQuery.sectionType&&ie(null),P.useEffect(()=>{X.current!=null&&(X.current=null)});const ne=Xn();return P.useEffect(()=>(L.characterQuery!=null&&ne.start(q5,()=>ie(null)),()=>{}),[L.characterQuery,ie,ne]),P.useEffect(()=>{L.tempValueStrAndroid!=null&&V!=null&&z()},[L.sections]),{activeSectionIndex:V,areAllSectionsEmpty:R,error:G,localizedDigits:$,parsedSelectedSections:F,sectionOrder:B,sectionsValueBoundaries:j,state:L,timezone:M,value:T,clearValue:te,clearActiveSection:z,setCharacterQuery:ie,setSelectedSections:N,setTempAndroidValueStr:J,updateSectionValue:ee,updateValueFromValueStr:H,getSectionsFromValue:C}};function Vb(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:o}=e,r=Iu(),i=Fy(),a=$e(n.unstableFieldRef,o?null:i==null?void 0:i.fieldRef),l=r==null?void 0:r.setValue,c=P.useCallback((d,f)=>l==null?void 0:l(d,{validationError:f.validationError,shouldClose:!1}),[l]),u=P.useMemo(()=>i!=null&&r!=null?U({value:r.value,onChange:c,timezone:r.timezone,disabled:r.disabled,readOnly:r.readOnly,autoFocus:r.autoFocus&&!r.open,focused:r.open?!0:void 0,format:r.fieldFormat,formatDensity:i.formatDensity,enableAccessibleFieldDOMStructure:i.enableAccessibleFieldDOMStructure,selectedSections:i.selectedSections,onSelectedSectionsChange:i.onSelectedSectionsChange,unstableFieldRef:a},n):n,[r,i,n,c,a]);return t(u)}function Ku(e){const{focused:t,domGetters:n,stateResponse:{parsedSelectedSections:o,state:r}}=e;if(!n.isReady())return;const i=Pt(n.getRoot()).getSelection();if(!i)return;if(o==null){i.rangeCount>0&&i.getRangeAt(0).startContainer instanceof Node&&n.getRoot().contains(i.getRangeAt(0).startContainer)&&i.removeAllRanges(),t&&n.getRoot().blur();return}if(!n.getRoot().contains(jt(n.getRoot())))return;const a=new window.Range;let l;o==="all"?l=n.getRoot():r.sections[o].type==="empty"?l=n.getSectionContainer(o):l=n.getSectionContent(o),a.selectNodeContents(l),l.focus(),i.removeAllRanges(),i.addRange(a)}function Fb(e){const t=Qe(),{manager:{internal_fieldValueManager:n},internalPropsWithDefaults:{minutesStep:o,disabled:r,readOnly:i},stateResponse:{state:a,value:l,activeSectionIndex:c,parsedSelectedSections:u,sectionsValueBoundaries:d,localizedDigits:f,timezone:p,sectionOrder:h,clearValue:m,clearActiveSection:g,setSelectedSections:y,updateSectionValue:v}}=e;return he(w=>{if(!r)switch(!0){case((w.ctrlKey||w.metaKey)&&String.fromCharCode(w.keyCode)==="A"&&!w.shiftKey&&!w.altKey):{w.preventDefault(),y("all");break}case w.key==="ArrowRight":{if(w.preventDefault(),u==null)y(h.startIndex);else if(u==="all")y(h.endIndex);else{const x=h.neighbors[u].rightIndex;x!==null&&y(x)}break}case w.key==="ArrowLeft":{if(w.preventDefault(),u==null)y(h.endIndex);else if(u==="all")y(h.startIndex);else{const x=h.neighbors[u].leftIndex;x!==null&&y(x)}break}case w.key==="Delete":{if(w.preventDefault(),i)break;u==null||u==="all"?m():g();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(w.key):{if(w.preventDefault(),i||c==null)break;u==="all"&&y(c);const x=a.sections[c],S=K5(t,p,x,w.key,d,f,n.getDateFromSection(l,x),{minutesStep:o});v({section:x,newSectionValue:S,shouldGoToNextSection:!1});break}}})}function G5(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function K5(e,t,n,o,r,i,a,l){const c=G5(o),u=o==="Home",d=o==="End",f=n.value===""||u||d,p=()=>{const m=r[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),g=w=>$y(e,w,m,i,n),y=n.type==="minutes"&&(l!=null&&l.minutesStep)?l.minutesStep:1;let v;if(f){if(n.type==="year"&&!d&&!u)return e.formatByString(e.date(void 0,t),n.format);c>0||u?v=m.minimum:v=m.maximum}else v=parseInt($o(n.value,i),10)+c*y;return v%y!==0&&((c<0||u)&&(v+=y-(y+v)%y),(c>0||d)&&(v-=v%y)),v>m.maximum?g(m.minimum+(v-m.maximum-1)%(m.maximum-m.minimum+1)):v<m.minimum?g(m.maximum-(m.minimum-v-1)%(m.maximum-m.minimum+1)):g(v)},h=()=>{const m=Ly(e,t,n.type,n.format);if(m.length===0)return n.value;if(f)return c>0||u?m[0]:m[m.length-1];const v=((m.indexOf(n.value)+c)%m.length+m.length)%m.length;return m[v]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?p():h()}function Z5(e){const{manager:t,focused:n,setFocused:o,domGetters:r,stateResponse:i,applyCharacterEditing:a,internalPropsWithDefaults:l,stateResponse:{parsedSelectedSections:c,sectionOrder:u,state:d,clearValue:f,setCharacterQuery:p,setSelectedSections:h,updateValueFromValueStr:m},internalPropsWithDefaults:{disabled:g=!1,readOnly:y=!1}}=e,v=Fb({manager:t,internalPropsWithDefaults:l,stateResponse:i}),w=Xn(),x=he(_=>{g||!r.isReady()||(o(!0),c==="all"?w.start(0,()=>{const D=document.getSelection().getRangeAt(0).startOffset;if(D===0){h(u.startIndex);return}let $=0,j=0;for(;j<D&&$<d.sections.length;){const C=d.sections[$];$+=1,j+=`${C.startSeparator}${C.value||C.placeholder}${C.endSeparator}`.length}h($-1)}):n?r.getRoot().contains(_.target)||h(u.startIndex):(o(!0),h(u.startIndex)))}),S=he(_=>{if(!r.isReady()||c!=="all")return;const $=_.target.textContent??"";r.getRoot().innerHTML=d.sections.map(j=>`${j.startSeparator}${j.value||j.placeholder}${j.endSeparator}`).join(""),Ku({focused:n,domGetters:r,stateResponse:i}),$.length===0||$.charCodeAt(0)===10?(f(),h("all")):$.length>1?m($):(c==="all"&&h(0),a({keyPressed:$,sectionIndex:0}))}),T=he(_=>{if(y||c!=="all"){_.preventDefault();return}const D=_.clipboardData.getData("text");_.preventDefault(),p(null),m(D)}),E=he(()=>{if(n||g||!r.isReady())return;const _=jt(r.getRoot());o(!0),r.getSectionIndexFromDOMElement(_)!=null||h(u.startIndex)}),M=he(()=>{setTimeout(()=>{if(!r.isReady())return;const _=jt(r.getRoot());!r.getRoot().contains(_)&&(o(!1),h(null))})});return{onKeyDown:v,onBlur:M,onFocus:E,onClick:x,onPaste:T,onInput:S,contentEditable:c==="all",tabIndex:l.disabled||c===0?-1:0}}function X5(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:n,state:o,updateValueFromValueStr:r}}=e,i=he(l=>{r(l.target.value)});return{value:P.useMemo(()=>n?"":t.getV7HiddenInputValueFromSections(o.sections),[n,o.sections,t]),onChange:i}}function Q5(e){const{stateResponse:{setSelectedSections:t},internalPropsWithDefaults:{disabled:n=!1}}=e,o=P.useCallback(r=>i=>{n||i.isDefaultPrevented()||t(r)},[n,t]);return P.useCallback(r=>({"data-sectionindex":r,onClick:o(r)}),[o])}function J5(e){const t=Qe(),n=lo(),{focused:o,domGetters:r,stateResponse:i,applyCharacterEditing:a,manager:{internal_fieldValueManager:l},stateResponse:{parsedSelectedSections:c,sectionsValueBoundaries:u,state:d,value:f,clearActiveSection:p,setCharacterQuery:h,setSelectedSections:m,updateSectionValue:g,updateValueFromValueStr:y},internalPropsWithDefaults:{disabled:v=!1,readOnly:w=!1}}=e,x=c==="all",S=!x&&!v&&!w,T=he(j=>{if(!r.isReady())return;const C=d.sections[j];r.getSectionContent(j).innerHTML=C.value||C.placeholder,Ku({focused:o,domGetters:r,stateResponse:i})}),E=he(j=>{if(!r.isReady())return;const C=j.target,L=C.textContent??"",k=r.getSectionIndexFromDOMElement(C),I=d.sections[k];if(w){T(k);return}if(L.length===0){if(I.value===""){T(k);return}const O=j.nativeEvent.inputType;if(O==="insertParagraph"||O==="insertLineBreak"){T(k);return}T(k),p();return}a({keyPressed:L,sectionIndex:k}),T(k)}),M=he(j=>{j.preventDefault()}),_=he(j=>{if(j.preventDefault(),w||v||typeof c!="number")return;const C=d.sections[c],L=j.clipboardData.getData("text"),k=/^[a-zA-Z]+$/.test(L),I=/^[0-9]+$/.test(L),O=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(L);C.contentType==="letter"&&k||C.contentType==="digit"&&I||C.contentType==="digit-with-letter"&&O?(h(null),g({section:C,newSectionValue:L,shouldGoToNextSection:!0})):!k&&!I&&(h(null),y(L))}),D=he(j=>{j.preventDefault(),j.dataTransfer.dropEffect="none"}),$=P.useCallback(j=>()=>{v||m(j)},[v,m]);return P.useCallback((j,C)=>{const L=u[j.type]({currentDate:l.getDateFromSection(f,j),contentType:j.contentType,format:j.format});return{onInput:E,onPaste:_,onMouseUp:M,onDragOver:D,onFocus:$(C),"aria-readonly":w,"aria-valuenow":tA(j,t),"aria-valuemin":L.minimum,"aria-valuemax":L.maximum,"aria-valuetext":j.value?eA(j,t):n.empty,"aria-label":n[j.type],"aria-disabled":v,tabIndex:!S||x||C>0?-1:0,contentEditable:!x&&!v&&!w,role:"spinbutton","data-range-position":j.dateName||void 0,spellCheck:S?!1:void 0,autoCapitalize:S?"none":void 0,autoCorrect:S?"off":void 0,children:j.value||j.placeholder,inputMode:j.contentType==="letter"?"text":"numeric"}},[u,x,v,w,S,n,t,E,_,M,D,$,l,f])}function eA(e,t){if(e.value)switch(e.type){case"month":{if(e.contentType==="digit"){const o=t.setMonth(t.date(),Number(e.value)-1);return t.isValid(o)?t.format(o,"month"):""}const n=t.parse(e.value,e.format);return n&&t.isValid(n)?t.format(n,"month"):void 0}case"day":if(e.contentType==="digit"){const n=t.setDate(t.startOfYear(t.date()),Number(e.value));return t.isValid(n)?t.format(n,"dayOfMonthFull"):""}return e.value;case"weekDay":return;default:return}}function tA(e,t){if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}}const nA=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:o,manager:{valueType:r,internal_useOpenPickerButtonAriaLabel:i}}=e,{internalProps:a,forwardedProps:l}=qy(t,r),c=Vb({manager:n,internalProps:a,skipContextFieldRefAssignment:o}),{sectionListRef:u,onBlur:d,onClick:f,onFocus:p,onInput:h,onPaste:m,onKeyDown:g,onClear:y,clearable:v}=l,{disabled:w=!1,readOnly:x=!1,autoFocus:S=!1,focused:T,unstableFieldRef:E}=c,M=P.useRef(null),_=$e(u,M),D=P.useMemo(()=>({isReady:()=>M.current!=null,getRoot:()=>M.current.getRoot(),getSectionContainer:ne=>M.current.getSectionContainer(ne),getSectionContent:ne=>M.current.getSectionContent(ne),getSectionIndexFromDOMElement:ne=>M.current.getSectionIndexFromDOMElement(ne)}),[M]),$=$b({manager:n,internalPropsWithDefaults:c,forwardedProps:l}),{areAllSectionsEmpty:j,error:C,parsedSelectedSections:L,sectionOrder:k,state:I,value:O,clearValue:N,setSelectedSections:F}=$,V=Lb({stateResponse:$}),B=i(O),[R,Y]=P.useState(!1);function G(ne=0){if(w||!M.current||ch(M)!=null)return;const de=fc(ne,I.sections);Y(!0),M.current.getSectionContent(de).focus()}const Z=Z5({manager:n,internalPropsWithDefaults:c,stateResponse:$,applyCharacterEditing:V,focused:R,setFocused:Y,domGetters:D}),re=X5({manager:n,stateResponse:$}),X=Q5({stateResponse:$,internalPropsWithDefaults:c}),Q=J5({manager:n,stateResponse:$,applyCharacterEditing:V,internalPropsWithDefaults:c,domGetters:D,focused:R}),K=he(ne=>{g==null||g(ne),Z.onKeyDown(ne)}),te=he(ne=>{d==null||d(ne),Z.onBlur(ne)}),z=he(ne=>{p==null||p(ne),Z.onFocus(ne)}),H=he(ne=>{ne.isDefaultPrevented()||(f==null||f(ne),Z.onClick(ne))}),W=he(ne=>{m==null||m(ne),Z.onPaste(ne)}),ee=he(ne=>{h==null||h(ne),Z.onInput(ne)}),J=he((ne,...de)=>{ne.preventDefault(),y==null||y(ne,...de),N(),uh(M)?F(k.startIndex):G(0)}),ie=P.useMemo(()=>I.sections.map((ne,de)=>{const se=Q(ne,de);return{container:X(de),content:Q(ne,de),before:{children:ne.startSeparator},after:{children:ne.endSeparator,"data-range-position":ne.isEndFormatSeparator?se["data-range-position"]:void 0}}}),[I.sections,X,Q]);return P.useEffect(()=>{if(M.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please add the `enableAccessibleFieldDOMStructure={false}` prop to your Picker or Field component:","","<DatePicker enableAccessibleFieldDOMStructure={false} slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
228
- `));S&&!w&&M.current&&M.current.getSectionContent(k.startIndex).focus()},[]),wt(()=>{if(!(!R||!M.current)){if(L==="all")M.current.getRoot().focus();else if(typeof L=="number"){const ne=M.current.getSectionContent(L);ne&&ne.focus()}}},[L,R]),wt(()=>{Ku({focused:R,domGetters:D,stateResponse:$})}),P.useImperativeHandle(E,()=>({getSections:()=>I.sections,getActiveSectionIndex:()=>ch(M),setSelectedSections:ne=>{if(w||!M.current)return;const de=fc(ne,I.sections);Y((de==="all"?0:de)!==null),F(ne)},focusField:G,isFieldFocused:()=>uh(M)})),U({},l,Z,{onBlur:te,onClick:H,onFocus:z,onInput:ee,onPaste:W,onKeyDown:K,onClear:J},re,{error:C,clearable:!!(v&&!j&&!x&&!w),focused:T??R,sectionListRef:_,enableAccessibleFieldDOMStructure:!0,elements:ie,areAllSectionsEmpty:j,disabled:w,readOnly:x,autoFocus:S,openPickerAriaLabel:B})};function ch(e){var n;const t=jt((n=e.current)==null?void 0:n.getRoot());return!t||!e.current||!e.current.getRoot().contains(t)?null:e.current.getSectionIndexFromDOMElement(t)}function uh(e){var n;const t=jt((n=e.current)==null?void 0:n.getRoot());return!!e.current&&e.current.getRoot().contains(t)}const ir=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),oA=(e,t,n)=>{let o=0,r=n?1:0;const i=[];for(let a=0;a<e.length;a+=1){const l=e[a],c=Eu(l,n?"input-rtl":"input-ltr",t),u=`${l.startSeparator}${c}${l.endSeparator}`,d=ir(u).length,f=u.length,p=ir(c),h=r+(p===""?0:c.indexOf(p[0]))+l.startSeparator.length,m=h+p.length;i.push(U({},l,{start:o,end:o+d,startInInput:h,endInInput:m})),o+=d,r+=f}return i},rA=e=>{const t=fn(),n=Xn(),o=Xn(),{props:r,manager:i,skipContextFieldRefAssignment:a,manager:{valueType:l,internal_valueManager:c,internal_fieldValueManager:u,internal_useOpenPickerButtonAriaLabel:d}}=e,{internalProps:f,forwardedProps:p}=qy(r,l),h=Vb({manager:i,internalProps:f,skipContextFieldRefAssignment:a}),{onFocus:m,onClick:g,onPaste:y,onBlur:v,onKeyDown:w,onClear:x,clearable:S,inputRef:T,placeholder:E}=p,{readOnly:M=!1,disabled:_=!1,autoFocus:D=!1,focused:$,unstableFieldRef:j}=h,C=P.useRef(null),L=$e(T,C),k=$b({manager:i,internalPropsWithDefaults:h,forwardedProps:p}),{activeSectionIndex:I,areAllSectionsEmpty:O,error:N,localizedDigits:F,parsedSelectedSections:V,sectionOrder:B,state:R,value:Y,clearValue:G,clearActiveSection:Z,setCharacterQuery:re,setSelectedSections:X,setTempAndroidValueStr:Q,updateSectionValue:K,updateValueFromValueStr:te,getSectionsFromValue:z}=k,H=Lb({stateResponse:k}),W=d(Y),ee=P.useMemo(()=>oA(R.sections,F,t),[R.sections,F,t]);function J(){const Ee=C.current.selectionStart??0;let Me;Ee<=ee[0].startInInput||Ee>=ee[ee.length-1].endInInput?Me=1:Me=ee.findIndex(Be=>Be.startInInput-Be.startSeparator.length>Ee);const Se=Me===-1?ee.length-1:Me-1;X(Se)}function ie(Ee=0){var Me;jt(C.current)!==C.current&&((Me=C.current)==null||Me.focus(),X(Ee))}const ne=he(Ee=>{m==null||m(Ee);const Me=C.current;n.start(0,()=>{!Me||Me!==C.current||I==null&&(Me.value.length&&Number(Me.selectionEnd)-Number(Me.selectionStart)===Me.value.length?X("all"):J())})}),de=he((Ee,...Me)=>{Ee.isDefaultPrevented()||(g==null||g(Ee,...Me),J())}),se=he(Ee=>{if(y==null||y(Ee),Ee.preventDefault(),M||_)return;const Me=Ee.clipboardData.getData("text");if(typeof V=="number"){const Se=R.sections[V],Be=/^[a-zA-Z]+$/.test(Me),ze=/^[0-9]+$/.test(Me),nt=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Me);if(Se.contentType==="letter"&&Be||Se.contentType==="digit"&&ze||Se.contentType==="digit-with-letter"&&nt){re(null),K({section:Se,newSectionValue:Me,shouldGoToNextSection:!0});return}if(Be||ze)return}re(null),te(Me)}),ue=he(Ee=>{v==null||v(Ee),X(null)}),le=he(Ee=>{if(M)return;const Me=Ee.target.value;if(Me===""){G();return}const Se=Ee.nativeEvent.data,Be=Se&&Se.length>1,ze=Be?Se:Me,nt=ir(ze);if(V==="all"&&X(I),I==null||Be){te(Be?Se:nt);return}let Je;if(V==="all"&&nt.length===1)Je=nt;else{const Vt=ir(u.getV6InputValueFromSections(ee,F,t));let ke=-1,ut=-1;for(let ge=0;ge<Vt.length;ge+=1)ke===-1&&Vt[ge]!==nt[ge]&&(ke=ge),ut===-1&&Vt[Vt.length-ge-1]!==nt[nt.length-ge-1]&&(ut=ge);const yt=ee[I];if(ke<yt.start||Vt.length-ut-1>yt.end)return;const hn=nt.length-Vt.length+yt.end-ir(yt.endSeparator||"").length;Je=nt.slice(yt.start+ir(yt.startSeparator||"").length,hn)}if(Je.length===0){Kk()&&Q(ze),Z();return}H({keyPressed:Je,sectionIndex:I})}),fe=he((Ee,...Me)=>{Ee.preventDefault(),x==null||x(Ee,...Me),G(),dh(C)?X(B.startIndex):ie(0)}),me=Fb({manager:i,internalPropsWithDefaults:h,stateResponse:k}),Ie=he(Ee=>{w==null||w(Ee),me(Ee)}),Oe=P.useMemo(()=>E!==void 0?E:u.getV6InputValueFromSections(z(c.emptyValue),F,t),[E,u,z,c.emptyValue,F,t]),qe=P.useMemo(()=>R.tempValueStrAndroid??u.getV6InputValueFromSections(R.sections,F,t),[R.sections,u,R.tempValueStrAndroid,F,t]);P.useEffect(()=>{C.current&&C.current===jt(C.current)&&X("all")},[]),wt(()=>{function Ee(){if(!C.current)return;if(V==null){C.current.scrollLeft&&(C.current.scrollLeft=0);return}if(C.current!==jt(C.current))return;const Me=C.current.scrollTop;if(V==="all")C.current.select();else{const Se=ee[V],Be=Se.type==="empty"?Se.startInInput-Se.startSeparator.length:Se.startInInput,ze=Se.type==="empty"?Se.endInInput+Se.endSeparator.length:Se.endInInput;(Be!==C.current.selectionStart||ze!==C.current.selectionEnd)&&C.current===jt(C.current)&&C.current.setSelectionRange(Be,ze),o.start(0,()=>{C.current&&C.current===jt(C.current)&&C.current.selectionStart===C.current.selectionEnd&&(C.current.selectionStart!==Be||C.current.selectionEnd!==ze)&&Ee()})}C.current.scrollTop=Me}Ee()});const tt=P.useMemo(()=>I==null||R.sections[I].contentType==="letter"?"text":"numeric",[I,R.sections]),Tt=!(C.current&&C.current===jt(C.current))&&O;return P.useImperativeHandle(j,()=>({getSections:()=>R.sections,getActiveSectionIndex:()=>{const Ee=C.current.selectionStart??0,Me=C.current.selectionEnd??0;if(Ee===0&&Me===0)return null;const Se=Ee<=ee[0].startInInput?1:ee.findIndex(Be=>Be.startInInput-Be.startSeparator.length>Ee);return Se===-1?ee.length-1:Se-1},setSelectedSections:Ee=>X(Ee),focusField:ie,isFieldFocused:()=>dh(C)})),U({},p,{error:N,"aria-invalid":N,clearable:!!(S&&!O&&!M&&!_),onBlur:ue,onClick:de,onFocus:ne,onPaste:se,onKeyDown:Ie,onClear:fe,inputRef:L,enableAccessibleFieldDOMStructure:!1,placeholder:Oe,inputMode:tt,autoComplete:"off",value:Tt?"":qe,onChange:le,focused:$,disabled:_,readOnly:M,autoFocus:D,openPickerAriaLabel:W})};function dh(e){return e.current===jt(e.current)}const sA=e=>{const t=Fy();return(e.props.enableAccessibleFieldDOMStructure??(t==null?void 0:t.enableAccessibleFieldDOMStructure)??!0?nA:rA)(e)},iA=e=>{const t=DD(e);return sA({manager:t,props:e})};function ai(e){return parseInt(e,10)||0}const aA={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function lA(e){for(const t in e)return!1;return!0}function fh(e){return lA(e)||e.outerHeightStyle===0&&!e.overflowing}const Bb=P.forwardRef(function(t,n){const{onChange:o,maxRows:r,minRows:i=1,style:a,value:l,...c}=t,{current:u}=P.useRef(l!=null),d=P.useRef(null),f=$e(n,d),p=P.useRef(null),h=P.useRef(null),m=P.useCallback(()=>{const x=d.current,S=h.current;if(!x||!S)return;const E=jn(x).getComputedStyle(x);if(E.width==="0px")return{outerHeightStyle:0,overflowing:!1};S.style.width=E.width,S.value=x.value||t.placeholder||"x",S.value.slice(-1)===`
229
- `&&(S.value+=" ");const M=E.boxSizing,_=ai(E.paddingBottom)+ai(E.paddingTop),D=ai(E.borderBottomWidth)+ai(E.borderTopWidth),$=S.scrollHeight;S.value="x";const j=S.scrollHeight;let C=$;i&&(C=Math.max(Number(i)*j,C)),r&&(C=Math.min(Number(r)*j,C)),C=Math.max(C,j);const L=C+(M==="border-box"?_+D:0),k=Math.abs(C-$)<=1;return{outerHeightStyle:L,overflowing:k}},[r,i,t.placeholder]),g=he(()=>{const x=d.current,S=m();if(!x||!S||fh(S))return!1;const T=S.outerHeightStyle;return p.current!=null&&p.current!==T}),y=P.useCallback(()=>{const x=d.current,S=m();if(!x||!S||fh(S))return;const T=S.outerHeightStyle;p.current!==T&&(p.current=T,x.style.height=`${T}px`),x.style.overflow=S.overflowing?"hidden":""},[m]),v=P.useRef(-1);wt(()=>{const x=ym(y),S=d==null?void 0:d.current;if(!S)return;const T=jn(S);T.addEventListener("resize",x);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(()=>{g()&&(E.unobserve(S),cancelAnimationFrame(v.current),y(),v.current=requestAnimationFrame(()=>{E.observe(S)}))}),E.observe(S)),()=>{x.clear(),cancelAnimationFrame(v.current),T.removeEventListener("resize",x),E&&E.disconnect()}},[m,y,g]),wt(()=>{y()});const w=x=>{u||y();const S=x.target,T=S.value.length,E=S.value.endsWith(`
230
- `),M=S.selectionStart===T;E&&M&&S.setSelectionRange(T,T),o&&o(x)};return b.jsxs(P.Fragment,{children:[b.jsx("textarea",{value:l,onChange:w,ref:f,rows:i,style:a,...c}),b.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:{...aA.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(Bb.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 Or({props:e,states:t,muiFormControl:n}){return t.reduce((o,r)=>(o[r]=e[r],n&&typeof e[r]>"u"&&(o[r]=n[r]),o),{})}const Ys=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ys.displayName="FormControlContext");function zn(){return P.useContext(Ys)}function ph(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Hi(e,t=!1){return e&&(ph(e.value)&&e.value!==""||t&&ph(e.defaultValue)&&e.defaultValue!=="")}function cA(e){return e.startAdornment}function uA(e){return Te("MuiInputBase",e)}const Sr=we("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var hh;const Sa=(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${ce(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ca=(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]},dA=e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:i,focused:a,formControl:l,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:f,size:p,startAdornment:h,type:m}=e,g={root:["root",`color${ce(n)}`,o&&"disabled",r&&"error",c&&"fullWidth",a&&"focused",l&&"formControl",p&&p!=="medium"&&`size${ce(p)}`,d&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",o&&"disabled",m==="search"&&"inputTypeSearch",d&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return Ce(g,uA,t)},wa=be("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Sa})(Xe(({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",[`&.${Sr.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%"}}]}))),Ta=be("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ca})(Xe(({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})},o={opacity:"0 !important"},r=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] + .${Sr.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":r,"&:focus::-moz-placeholder":r,"&:focus::-ms-input-placeholder":r},[`&.${Sr.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{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"}}]}})),mh=Jx({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Pa=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:i,autoFocus:a,className:l,color:c,components:u={},componentsProps:d={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:h,endAdornment:m,error:g,fullWidth:y=!1,id:v,inputComponent:w="input",inputProps:x={},inputRef:S,margin:T,maxRows:E,minRows:M,multiline:_=!1,name:D,onBlur:$,onChange:j,onClick:C,onFocus:L,onKeyDown:k,onKeyUp:I,placeholder:O,readOnly:N,renderSuffix:F,rows:V,size:B,slotProps:R={},slots:Y={},startAdornment:G,type:Z="text",value:re,...X}=o,Q=x.value!=null?x.value:re,{current:K}=P.useRef(Q!=null),te=P.useRef(),z=P.useCallback(Se=>{process.env.NODE_ENV!=="production"&&Se&&Se.nodeName!=="INPUT"&&!Se.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(`
231
- `))},[]),H=$e(te,S,x.ref,z),[W,ee]=P.useState(!1),J=zn();process.env.NODE_ENV!=="production"&&P.useEffect(()=>{if(J)return J.registerEffect()},[J]);const ie=Or({props:o,muiFormControl:J,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ie.focused=J?J.focused:W,P.useEffect(()=>{!J&&p&&W&&(ee(!1),$&&$())},[J,p,W,$]);const ne=J&&J.onFilled,de=J&&J.onEmpty,se=P.useCallback(Se=>{Hi(Se)?ne&&ne():de&&de()},[ne,de]);wt(()=>{K&&se({value:Q})},[Q,se,K]);const ue=Se=>{L&&L(Se),x.onFocus&&x.onFocus(Se),J&&J.onFocus?J.onFocus(Se):ee(!0)},le=Se=>{$&&$(Se),x.onBlur&&x.onBlur(Se),J&&J.onBlur?J.onBlur(Se):ee(!1)},fe=(Se,...Be)=>{if(!K){const ze=Se.target||te.current;if(ze==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.":Tn(1));se({value:ze.value})}x.onChange&&x.onChange(Se,...Be),j&&j(Se,...Be)};P.useEffect(()=>{se(te.current)},[]);const me=Se=>{te.current&&Se.currentTarget===Se.target&&te.current.focus(),C&&C(Se)};let Ie=w,Oe=x;_&&Ie==="input"&&(V?(process.env.NODE_ENV!=="production"&&(M||E)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Oe={type:void 0,minRows:V,maxRows:V,...Oe}):Oe={type:void 0,maxRows:E,minRows:M,...Oe},Ie=Bb);const qe=Se=>{se(Se.animationName==="mui-auto-fill-cancel"?te.current:{value:"x"})};P.useEffect(()=>{J&&J.setAdornedStart(!!G)},[J,G]);const tt={...o,color:ie.color||"primary",disabled:ie.disabled,endAdornment:m,error:ie.error,focused:ie.focused,formControl:J,fullWidth:y,hiddenLabel:ie.hiddenLabel,multiline:_,size:ie.size,startAdornment:G,type:Z},St=dA(tt),Tt=Y.root||u.Root||wa,Ee=R.root||d.root||{},Me=Y.input||u.Input||Ta;return Oe={...Oe,...R.input??d.input},b.jsxs(P.Fragment,{children:[!h&&typeof mh=="function"&&(hh||(hh=b.jsx(mh,{}))),b.jsxs(Tt,{...Ee,ref:n,onClick:me,...X,...!mr(Tt)&&{ownerState:{...tt,...Ee.ownerState}},className:ye(St.root,Ee.className,l,N&&"MuiInputBase-readOnly"),children:[G,b.jsx(Ys.Provider,{value:null,children:b.jsx(Me,{"aria-invalid":ie.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:f,disabled:ie.disabled,id:v,onAnimationStart:qe,name:D,placeholder:O,readOnly:N,required:ie.required,rows:V,value:Q,onKeyDown:k,onKeyUp:I,type:Z,...Oe,...!mr(Me)&&{as:Ie,ownerState:{...tt,...Oe.ownerState}},ref:H,className:ye(St.input,Oe.className,N&&"MuiInputBase-readOnly"),onBlur:le,onChange:fe,onFocus:ue})}),m,F?F({...ie,startAdornment:G}):null]})]})});process.env.NODE_ENV!=="production"&&(Pa.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:ya,inputProps:s.object,inputRef:xt,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 fA(e){return Te("MuiInput",e)}const Fr={...Sr,...we("MuiInput",["root","underline","input"])},pA=e=>{const{classes:t,disableUnderline:n}=e,r=Ce({root:["root",!n&&"underline"],input:["input"]},fA,t);return{...t,...r}},hA=be(wa,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Sa(e,t),!n.disableUnderline&&t.underline]}})(Xe(({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:o})=>o.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:o})=>!o.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"},[`&.${Fr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Fr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Fr.disabled}, .${Fr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Fr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Yt()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),mA=be(Ta,{name:"MuiInput",slot:"Input",overridesResolver:Ca})({}),Ea=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiInput"}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:l=!1,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:f={},type:p="text",...h}=o,m=pA(o),y={root:{ownerState:{disableUnderline:r}}},v=d??a?At(d??a,y):y,w=f.root??i.Root??hA,x=f.input??i.Input??mA;return b.jsx(Pa,{slots:{root:w,input:x},slotProps:v,fullWidth:l,inputComponent:c,multiline:u,ref:n,type:p,...h,classes:m})});process.env.NODE_ENV!=="production"&&(Ea.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:xt,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});Ea.muiName="Input";function gA(e){return Te("MuiFilledInput",e)}const vo={...Sr,...we("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},yA=e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:r,size:i,hiddenLabel:a,multiline:l}=e,c={root:["root",!n&&"underline",o&&"adornedStart",r&&"adornedEnd",i==="small"&&`size${ce(i)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},u=Ce(c,gA,t);return{...t,...u}},bA=be(wa,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Sa(e,t),!n.disableUnderline&&t.underline]}})(Xe(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=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:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${vo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${vo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.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"},[`&.${vo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${vo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${vo.disabled}, .${vo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${vo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Yt()).map(([a])=>{var l;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(l=(e.vars||e).palette[a])==null?void 0:l.main}`}}}}),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:l})=>a.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),vA=be(Ta,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ca})(Xe(({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}}]}))),Ma=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:l=!1,hiddenLabel:c,inputComponent:u="input",multiline:d=!1,slotProps:f,slots:p={},type:h="text",...m}=o,g={...o,disableUnderline:r,fullWidth:l,inputComponent:u,multiline:d,type:h},y=yA(o),v={root:{ownerState:g},input:{ownerState:g}},w=f??a?At(v,f??a):v,x=p.root??i.Root??bA,S=p.input??i.Input??vA;return b.jsx(Pa,{slots:{root:x,input:S},slotProps:w,fullWidth:l,inputComponent:u,multiline:d,ref:n,type:h,...m,classes:y})});process.env.NODE_ENV!=="production"&&(Ma.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:xt,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});Ma.muiName="Input";var gh;const xA=be("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:pn})({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%"}),SA=be("legend",{name:"MuiNotchedOutlined",shouldForwardProp:pn})(Xe(({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 zb(e){const{children:t,classes:n,className:o,label:r,notched:i,...a}=e,l=r!=null&&r!=="",c={...e,notched:i,withLabel:l};return b.jsx(xA,{"aria-hidden":!0,className:o,ownerState:c,...a,children:b.jsx(SA,{ownerState:c,children:l?b.jsx("span",{children:r}):gh||(gh=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(zb.propTypes={children:s.node,classes:s.object,className:s.string,label:s.node,notched:s.bool.isRequired,style:s.object});function CA(e){return Te("MuiOutlinedInput",e)}const bn={...Sr,...we("MuiOutlinedInput",["root","notchedOutline","input"])},wA=e=>{const{classes:t}=e,o=Ce({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},CA,t);return{...t,...o}},TA=be(wa,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Sa})(Xe(({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 .${bn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${bn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${bn.focused} .${bn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Yt()).map(([n])=>({props:{color:n},style:{[`&.${bn.focused} .${bn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${bn.error} .${bn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${bn.disabled} .${bn.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:o})=>n.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),PA=be(zb,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Xe(({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}})),EA=be(Ta,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ca})(Xe(({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}}]}))),Oa=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiOutlinedInput"}),{components:r={},fullWidth:i=!1,inputComponent:a="input",label:l,multiline:c=!1,notched:u,slots:d={},slotProps:f={},type:p="text",...h}=o,m=wA(o),g=zn(),y=Or({props:o,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...o,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:g,fullWidth:i,hiddenLabel:y.hiddenLabel,multiline:c,size:y.size,type:p},w=d.root??r.Root??TA,x=d.input??r.Input??EA,[S,T]=it("notchedOutline",{elementType:PA,className:m.notchedOutline,shouldForwardComponentProp:!0,ownerState:v,externalForwardedProps:{slots:d,slotProps:f},additionalProps:{label:l!=null&&l!==""&&y.required?b.jsxs(P.Fragment,{children:[l," ","*"]}):l}});return b.jsx(Pa,{slots:{root:w,input:x},slotProps:f,renderSuffix:E=>b.jsx(S,{...T,notched:typeof u<"u"?u:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:i,inputComponent:a,multiline:c,ref:n,type:p,...h,classes:{...m,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Oa.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:xt,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});Oa.muiName="Input";function MA(e){return Te("MuiFormLabel",e)}const ls=we("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),OA=e=>{const{classes:t,color:n,focused:o,disabled:r,error:i,filled:a,required:l}=e,c={root:["root",`color${ce(n)}`,r&&"disabled",i&&"error",a&&"filled",o&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return Ce(c,MA,t)},kA=be("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Xe(({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(Yt()).map(([t])=>({props:{color:t},style:{[`&.${ls.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ls.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ls.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),DA=be("span",{name:"MuiFormLabel",slot:"Asterisk"})(Xe(({theme:e})=>({[`&.${ls.error}`]:{color:(e.vars||e).palette.error.main}}))),Wb=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiFormLabel"}),{children:r,className:i,color:a,component:l="label",disabled:c,error:u,filled:d,focused:f,required:p,...h}=o,m=zn(),g=Or({props:o,muiFormControl:m,states:["color","required","focused","disabled","error","filled"]}),y={...o,color:g.color||"primary",component:l,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required},v=OA(y);return b.jsxs(kA,{as:l,ownerState:y,className:ye(v.root,i),ref:n,...h,children:[r,g.required&&b.jsxs(DA,{ownerState:y,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Wb.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 RA(e){return Te("MuiInputLabel",e)}we("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const IA=e=>{const{classes:t,formControl:n,size:o,shrink:r,disableAnimation:i,variant:a,required:l}=e,c={root:["root",n&&"formControl",!i&&"animated",r&&"shrink",o&&o!=="medium"&&`size${ce(o)}`,a],asterisk:[l&&"asterisk"]},u=Ce(c,RA,t);return{...t,...u}},AA=be(Wb,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ls.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]]}})(Xe(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Zu=P.forwardRef(function(t,n){const o=Fe({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,margin:i,shrink:a,variant:l,className:c,...u}=o,d=zn();let f=a;typeof f>"u"&&d&&(f=d.filled||d.focused||d.adornedStart);const p=Or({props:o,muiFormControl:d,states:["size","variant","required","focused"]}),h={...o,disableAnimation:r,formControl:d,shrink:f,size:p.size,variant:p.variant,required:p.required,focused:p.focused},m=IA(h);return b.jsx(AA,{"data-shrink":f,ref:n,className:ye(m.root,c),...u,ownerState:h,classes:m})});process.env.NODE_ENV!=="production"&&(Zu.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 NA(e){return Te("MuiFormControl",e)}we("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const _A=e=>{const{classes:t,margin:n,fullWidth:o}=e,r={root:["root",n!=="none"&&`margin${ce(n)}`,o&&"fullWidth"]};return Ce(r,NA,t)},jA=be("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ce(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%"}}]}),Xu=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiFormControl"}),{children:r,className:i,color:a="primary",component:l="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:f=!1,hiddenLabel:p=!1,margin:h="none",required:m=!1,size:g="medium",variant:y="outlined",...v}=o,w={...o,color:a,component:l,disabled:c,error:u,fullWidth:f,hiddenLabel:p,margin:h,required:m,size:g,variant:y},x=_A(w),[S,T]=P.useState(()=>{let O=!1;return r&&P.Children.forEach(r,N=>{if(!ns(N,["Input","Select"]))return;const F=ns(N,["Select"])?N.props.input:N;F&&cA(F.props)&&(O=!0)}),O}),[E,M]=P.useState(()=>{let O=!1;return r&&P.Children.forEach(r,N=>{ns(N,["Input","Select"])&&(Hi(N.props,!0)||Hi(N.props.inputProps,!0))&&(O=!0)}),O}),[_,D]=P.useState(!1);c&&_&&D(!1);const $=d!==void 0&&!c?d:_;let j;const C=P.useRef(!1);process.env.NODE_ENV!=="production"&&(j=()=>(C.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
232
- `)),C.current=!0,()=>{C.current=!1}));const L=P.useCallback(()=>{M(!0)},[]),k=P.useCallback(()=>{M(!1)},[]),I=P.useMemo(()=>({adornedStart:S,setAdornedStart:T,color:a,disabled:c,error:u,filled:E,focused:$,fullWidth:f,hiddenLabel:p,size:g,onBlur:()=>{D(!1)},onFocus:()=>{D(!0)},onEmpty:k,onFilled:L,registerEffect:j,required:m,variant:y}),[S,a,c,u,E,$,f,p,j,k,L,m,g,y]);return b.jsx(Ys.Provider,{value:I,children:b.jsx(jA,{as:l,ownerState:w,className:ye(x.root,i),ref:n,...v,children:r})})});process.env.NODE_ENV!=="production"&&(Xu.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 LA(e){return Te("MuiFormHelperText",e)}const yh=we("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var bh;const $A=e=>{const{classes:t,contained:n,size:o,disabled:r,error:i,filled:a,focused:l,required:c}=e,u={root:["root",r&&"disabled",i&&"error",o&&`size${ce(o)}`,n&&"contained",l&&"focused",a&&"filled",c&&"required"]};return Ce(u,LA,t)},VA=be("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ce(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Xe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${yh.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${yh.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}}]}))),Qu=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiFormHelperText"}),{children:r,className:i,component:a="p",disabled:l,error:c,filled:u,focused:d,margin:f,required:p,variant:h,...m}=o,g=zn(),y=Or({props:o,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),v={...o,component:a,contained:y.variant==="filled"||y.variant==="outlined",variant:y.variant,size:y.size,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required};delete v.ownerState;const w=$A(v);return b.jsx(VA,{as:a,className:ye(w.root,i),ref:n,...m,ownerState:v,children:r===" "?bh||(bh=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):r})});process.env.NODE_ENV!=="production"&&(Qu.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 Ub(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function bl(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function vh(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Hb(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 Br(e,t,n,o,r,i){let a=!1,l=r(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const c=o?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Hb(l,i)||c)l=r(e,l,n);else return l.focus(),!0}return!1}const Yb=P.forwardRef(function(t,n){const{actions:o,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:f="selectedMenu",...p}=t,h=P.useRef(null),m=P.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});wt(()=>{r&&h.current.focus()},[r]),P.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(x,{direction:S})=>{const T=!h.current.style.width;if(x.clientHeight<h.current.clientHeight&&T){const E=`${Ub(jn(x))}px`;h.current.style[S==="rtl"?"paddingLeft":"paddingRight"]=E,h.current.style.width=`calc(100% + ${E})`}return h.current}}),[]);const g=x=>{const S=h.current,T=x.key;if(x.ctrlKey||x.metaKey||x.altKey){d&&d(x);return}const M=Qr(Pt(S));if(T==="ArrowDown")x.preventDefault(),Br(S,M,u,c,bl);else if(T==="ArrowUp")x.preventDefault(),Br(S,M,u,c,vh);else if(T==="Home")x.preventDefault(),Br(S,null,u,c,bl);else if(T==="End")x.preventDefault(),Br(S,null,u,c,vh);else if(T.length===1){const _=m.current,D=T.toLowerCase(),$=performance.now();_.keys.length>0&&($-_.lastTime>500?(_.keys=[],_.repeating=!0,_.previousKeyMatched=!0):_.repeating&&D!==_.keys[0]&&(_.repeating=!1)),_.lastTime=$,_.keys.push(D);const j=M&&!_.repeating&&Hb(M,_);_.previousKeyMatched&&(j||Br(S,M,!1,c,bl,_))?x.preventDefault():_.previousKeyMatched=!1}d&&d(x)},y=$e(h,n);let v=-1;P.Children.forEach(a,(x,S)=>{if(!P.isValidElement(x)){v===S&&(v+=1,v>=a.length&&(v=-1));return}process.env.NODE_ENV!=="production"&&Lo.isFragment(x)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
233
- `)),x.props.disabled||(f==="selectedMenu"&&x.props.selected||v===-1)&&(v=S),v===S&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(v+=1,v>=a.length&&(v=-1))});const w=P.Children.map(a,(x,S)=>{if(S===v){const T={};return i&&(T.autoFocus=!0),x.props.tabIndex===void 0&&f==="selectedMenu"&&(T.tabIndex=0),P.cloneElement(x,T)}return x});return b.jsx(Yu,{role:"menu",ref:y,className:l,onKeyDown:g,tabIndex:r?0:-1,...p,children:w})});process.env.NODE_ENV!=="production"&&(Yb.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 FA(e){const t=Pt(e);return t.body===e?jn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function cs(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function xh(e){return parseFloat(jn(e).getComputedStyle(e).paddingRight)||0}function BA(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function Sh(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,a=>{const l=!i.includes(a),c=!BA(a);l&&c&&cs(a,r)})}function vl(e,t){let n=-1;return e.some((o,r)=>t(o)?(n=r,!0):!1),n}function zA(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(FA(o)){const a=Ub(jn(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${xh(o)+a}px`;const l=Pt(o).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${xh(c)+a}px`})}let i;if(o.parentNode instanceof DocumentFragment)i=Pt(o).body;else{const a=o.parentElement,l=jn(o);i=(a==null?void 0:a.nodeName)==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:o}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function WA(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class UA{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&cs(t.modalRef,!1);const r=WA(n);Sh(n,t.mount,t.modalRef,r,!0);const i=vl(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),o)}mount(t,n){const o=vl(this.containers,i=>i.modals.includes(t)),r=this.containers[o];r.restore||(r.restore=zA(r,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const r=vl(this.containers,a=>a.modals.includes(t)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(o,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&cs(t.modalRef,n),Sh(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&cs(a.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function HA(e){return Te("MuiBackdrop",e)}we("MuiBackdrop",["root","invisible"]);const YA=e=>{const{classes:t,invisible:n}=e;return Ce({root:["root",n&&"invisible"]},HA,t)},qA=be("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"}}]}),Ju=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiBackdrop"}),{children:r,className:i,component:a="div",invisible:l=!1,open:c,components:u={},componentsProps:d={},slotProps:f={},slots:p={},TransitionComponent:h,transitionDuration:m,...g}=o,y={...o,component:a,invisible:l},v=YA(y),w={transition:h,root:u.Root,...p},x={...d,...f},S={component:a,slots:w,slotProps:x},[T,E]=it("root",{elementType:qA,externalForwardedProps:S,className:ye(v.root,i),ownerState:y}),[M,_]=it("transition",{elementType:no,externalForwardedProps:S,ownerState:y});return b.jsx(M,{in:c,timeout:m,...g,..._,children:b.jsx(T,{"aria-hidden":!0,...E,ref:n,children:r})})});process.env.NODE_ENV!=="production"&&(Ju.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 GA(e){return typeof e=="function"?e():e}function KA(e){return e?e.props.hasOwnProperty("in"):!1}const Ch=()=>{},li=new UA;function ZA(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:a,children:l,onClose:c,open:u,rootRef:d}=e,f=P.useRef({}),p=P.useRef(null),h=P.useRef(null),m=$e(h,d),[g,y]=P.useState(!u),v=KA(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const x=()=>Pt(p.current),S=()=>(f.current.modalRef=h.current,f.current.mount=p.current,f.current),T=()=>{li.mount(S(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},E=he(()=>{const I=GA(t)||x().body;li.add(S(),I),h.current&&T()}),M=()=>li.isTopModal(S()),_=he(I=>{p.current=I,I&&(u&&M()?T():h.current&&cs(h.current,w))}),D=P.useCallback(()=>{li.remove(S(),w)},[w]);P.useEffect(()=>()=>{D()},[D]),P.useEffect(()=>{u?E():(!v||!r)&&D()},[u,D,v,r,E]);const $=I=>O=>{var N;(N=I.onKeyDown)==null||N.call(I,O),!(O.key!=="Escape"||O.which===229||!M())&&(n||(O.stopPropagation(),c&&c(O,"escapeKeyDown")))},j=I=>O=>{var N;(N=I.onClick)==null||N.call(I,O),O.target===O.currentTarget&&c&&c(O,"backdropClick")};return{getRootProps:(I={})=>{const O=Xy(e);delete O.onTransitionEnter,delete O.onTransitionExited;const N={...O,...I};return{role:"presentation",...N,onKeyDown:$(N),ref:m}},getBackdropProps:(I={})=>{const O=I;return{"aria-hidden":!0,...O,onClick:j(O),open:u}},getTransitionProps:()=>{const I=()=>{y(!1),i&&i()},O=()=>{y(!0),a&&a(),r&&D()};return{onEnter:wd(I,(l==null?void 0:l.props.onEnter)??Ch),onExited:wd(O,(l==null?void 0:l.props.onExited)??Ch)}},rootRef:m,portalRef:_,isTopModal:M,exited:g,hasTransition:v}}function XA(e){return Te("MuiModal",e)}we("MuiModal",["root","hidden","backdrop"]);const QA=e=>{const{open:t,exited:n,classes:o}=e;return Ce({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},XA,o)},JA=be("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Xe(({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"}}]}))),eN=be(Ju,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),ed=P.forwardRef(function(t,n){const o=Fe({name:"MuiModal",props:t}),{BackdropComponent:r=eN,BackdropProps:i,classes:a,className:l,closeAfterTransition:c=!1,children:u,container:d,component:f,components:p={},componentsProps:h={},disableAutoFocus:m=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:y=!1,disablePortal:v=!1,disableRestoreFocus:w=!1,disableScrollLock:x=!1,hideBackdrop:S=!1,keepMounted:T=!1,onClose:E,onTransitionEnter:M,onTransitionExited:_,open:D,slotProps:$={},slots:j={},theme:C,...L}=o,k={...o,closeAfterTransition:c,disableAutoFocus:m,disableEnforceFocus:g,disableEscapeKeyDown:y,disablePortal:v,disableRestoreFocus:w,disableScrollLock:x,hideBackdrop:S,keepMounted:T},{getRootProps:I,getBackdropProps:O,getTransitionProps:N,portalRef:F,isTopModal:V,exited:B,hasTransition:R}=ZA({...k,rootRef:n}),Y={...k,exited:B},G=QA(Y),Z={};if(u.props.tabIndex===void 0&&(Z.tabIndex="-1"),R){const{onEnter:z,onExited:H}=N();Z.onEnter=z,Z.onExited=H}const re={slots:{root:p.Root,backdrop:p.Backdrop,...j},slotProps:{...h,...$}},[X,Q]=it("root",{ref:n,elementType:JA,externalForwardedProps:{...re,...L,component:f},getSlotProps:I,ownerState:Y,className:ye(l,G==null?void 0:G.root,!Y.open&&Y.exited&&(G==null?void 0:G.hidden))}),[K,te]=it("backdrop",{ref:i==null?void 0:i.ref,elementType:r,externalForwardedProps:re,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:z=>O({...z,onClick:H=>{z!=null&&z.onClick&&z.onClick(H)}}),className:ye(i==null?void 0:i.className,G==null?void 0:G.backdrop),ownerState:Y});return!T&&!D&&(!R||B)?null:b.jsx(ws,{ref:F,container:d,disablePortal:v,children:b.jsxs(X,{...Q,children:[!S&&r?b.jsx(K,{...te}):null,b.jsx(Ts,{disableEnforceFocus:g,disableAutoFocus:m,disableRestoreFocus:w,isEnabled:V,open:D,children:P.cloneElement(u,Z)})]})})});process.env.NODE_ENV!=="production"&&(ed.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:Vs.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([Vn,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 tN(e){return Te("MuiPopover",e)}we("MuiPopover",["root","paper"]);function wh(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Th(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Ph(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Jr(e){return typeof e=="function"?e():e}const nN=e=>{const{classes:t}=e;return Ce({root:["root"],paper:["paper"]},tN,t)},oN=be(ed,{name:"MuiPopover",slot:"Root"})({}),qb=be(zs,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Gb=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiPopover"}),{action:r,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:u,className:d,container:f,elevation:p=8,marginThreshold:h=16,open:m,PaperProps:g={},slots:y={},slotProps:v={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:x,transitionDuration:S="auto",TransitionProps:T={},disableScrollLock:E=!1,...M}=o,_=P.useRef(),D={...o,anchorOrigin:a,anchorReference:c,elevation:p,marginThreshold:h,transformOrigin:w,TransitionComponent:x,transitionDuration:S,TransitionProps:T},$=nN(D),j=P.useCallback(()=>{if(c==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const z=Jr(i),H=z&&z.nodeType===1?z:Pt(_.current).body,W=H.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const ee=H.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ee.top===0&&ee.left===0&&ee.right===0&&ee.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(`
234
- `))}return{top:W.top+wh(W,a.vertical),left:W.left+Th(W,a.horizontal)}},[i,a.horizontal,a.vertical,l,c]),C=P.useCallback(z=>({vertical:wh(z,w.vertical),horizontal:Th(z,w.horizontal)}),[w.horizontal,w.vertical]),L=P.useCallback(z=>{const H={width:z.offsetWidth,height:z.offsetHeight},W=C(H);if(c==="none")return{top:null,left:null,transformOrigin:Ph(W)};const ee=j();let J=ee.top-W.vertical,ie=ee.left-W.horizontal;const ne=J+H.height,de=ie+H.width,se=jn(Jr(i)),ue=se.innerHeight-h,le=se.innerWidth-h;if(h!==null&&J<h){const fe=J-h;J-=fe,W.vertical+=fe}else if(h!==null&&ne>ue){const fe=ne-ue;J-=fe,W.vertical+=fe}if(process.env.NODE_ENV!=="production"&&H.height>ue&&H.height&&ue&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${H.height-ue}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
235
- `)),h!==null&&ie<h){const fe=ie-h;ie-=fe,W.horizontal+=fe}else if(de>le){const fe=de-le;ie-=fe,W.horizontal+=fe}return{top:`${Math.round(J)}px`,left:`${Math.round(ie)}px`,transformOrigin:Ph(W)}},[i,c,j,C,h]),[k,I]=P.useState(m),O=P.useCallback(()=>{const z=_.current;if(!z)return;const H=L(z);H.top!==null&&z.style.setProperty("top",H.top),H.left!==null&&(z.style.left=H.left),z.style.transformOrigin=H.transformOrigin,I(!0)},[L]);P.useEffect(()=>(E&&window.addEventListener("scroll",O),()=>window.removeEventListener("scroll",O)),[i,E,O]);const N=()=>{O()},F=()=>{I(!1)};P.useEffect(()=>{m&&O()}),P.useImperativeHandle(r,()=>m?{updatePosition:()=>{O()}}:null,[m,O]),P.useEffect(()=>{if(!m)return;const z=ym(()=>{O()}),H=jn(Jr(i));return H.addEventListener("resize",z),()=>{z.clear(),H.removeEventListener("resize",z)}},[i,m,O]);let V=S;const B={slots:{transition:x,...y},slotProps:{transition:T,paper:g,...v}},[R,Y]=it("transition",{elementType:xs,externalForwardedProps:B,ownerState:D,getSlotProps:z=>({...z,onEntering:(H,W)=>{var ee;(ee=z.onEntering)==null||ee.call(z,H,W),N()},onExited:H=>{var W;(W=z.onExited)==null||W.call(z,H),F()}}),additionalProps:{appear:!0,in:m}});S==="auto"&&!R.muiSupportAuto&&(V=void 0);const G=f||(i?Pt(Jr(i)).body:void 0),[Z,{slots:re,slotProps:X,...Q}]=it("root",{ref:n,elementType:oN,externalForwardedProps:{...B,...M},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:y.backdrop},slotProps:{backdrop:iS(typeof v.backdrop=="function"?v.backdrop(D):v.backdrop,{invisible:!0})},container:G,open:m},ownerState:D,className:ye($.root,d)}),[K,te]=it("paper",{ref:_,className:$.paper,elementType:qb,externalForwardedProps:B,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:k?void 0:{opacity:0}},ownerState:D});return b.jsx(Z,{...Q,...!mr(Z)&&{slots:re,slotProps:X,disableScrollLock:E},children:b.jsx(R,{...Y,timeout:V,children:b.jsx(K,{...te,children:u})})})});process.env.NODE_ENV!=="production"&&(Gb.propTypes={action:xt,anchorEl:Bn(s.oneOfType([Vn,s.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Jr(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&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(`
223
+ `,K2=typeof Tc!="string"?Wt.css`
224
+ animation: ${Tc} 1.4s linear infinite;
225
+ `:null,Z2=typeof Pc!="string"?Wt.css`
226
+ animation: ${Pc} 1.4s ease-in-out infinite;
227
+ `:null,X2=e=>{const{classes:t,variant:n,color:o,disableShrink:r}=e,i={root:["root",n,`color${ce(o)}`],svg:["svg"],track:["track"],circle:["circle",`circle${ce(n)}`,r&&"circleDisableShrink"]};return we(i,G2,t)},Q2=be("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ce(n.color)}`]]}})(Xe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:K2||{animation:`${Tc} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Yt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),J2=be("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),eA=be("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ce(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Xe(({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:Z2||{animation:`${Pc} 1.4s ease-in-out infinite`}}]}))),tA=be("circle",{name:"MuiCircularProgress",slot:"Track"})(Xe(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Hu=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiCircularProgress"}),{className:r,color:i="primary",disableShrink:a=!1,enableTrackSlot:l=!1,size:c=40,style:u,thickness:d=3.6,value:f=0,variant:p="indeterminate",...h}=o,m={...o,color:i,disableShrink:a,size:c,thickness:d,value:f,variant:p,enableTrackSlot:l},g=X2(m),y={},v={},C={};if(p==="determinate"){const x=2*Math.PI*((cn-d)/2);y.strokeDasharray=x.toFixed(3),C["aria-valuenow"]=Math.round(f),y.strokeDashoffset=`${((100-f)/100*x).toFixed(3)}px`,v.transform="rotate(-90deg)"}return b.jsx(Q2,{className:ye(g.root,r),style:{width:c,height:c,...v,...u},ownerState:m,ref:n,role:"progressbar",...C,...h,children:b.jsxs(J2,{className:g.svg,ownerState:m,viewBox:`${cn/2} ${cn/2} ${cn} ${cn}`,children:[l?b.jsx(tA,{className:g.track,ownerState:m,cx:cn,cy:cn,r:(cn-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,b.jsx(eA,{className:g.circle,style:y,ownerState:m,cx:cn,cy:cn,r:(cn-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(Hu.propTypes={classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","error","info","success","warning"]),s.string]),disableShrink:Bn(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 nA(e){return Te("MuiButton",e)}const bo=Ce("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"]),Mb=P.createContext({});process.env.NODE_ENV!=="production"&&(Mb.displayName="ButtonGroupContext");const Ob=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ob.displayName="ButtonGroupButtonContext");const oA=e=>{const{color:t,disableElevation:n,fullWidth:o,size:r,variant:i,loading:a,loadingPosition:l,classes:c}=e,u={root:["root",a&&"loading",i,`${i}${ce(t)}`,`size${ce(r)}`,`${i}Size${ce(r)}`,`color${ce(t)}`,n&&"disableElevation",o&&"fullWidth",a&&`loadingPosition${ce(l)}`],startIcon:["icon","startIcon",`iconSize${ce(r)}`],endIcon:["icon","endIcon",`iconSize${ce(r)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=we(u,nA,c);return{...c,...d}},kb=[{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}}}],rA=be(xr,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ce(n.color)}`],t[`size${ce(n.size)}`],t[`${n.variant}Size${ce(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Xe(({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"},[`&.${bo.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{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]},[`&.${bo.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${bo.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)",[`&.${bo.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(Yt()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[o].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${bo.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${bo.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}),[`&.${bo.loading}`]:{color:"transparent"}}}]}})),sA=be("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${ce(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}},...kb]})),iA=be("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${ce(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}},...kb]})),aA=be("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}}]})),ah=be("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Hn=P.forwardRef(function(t,n){const o=P.useContext(Mb),r=P.useContext(Ob),i=ps(o,t),a=Fe({props:i,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:m,focusVisibleClassName:g,fullWidth:y=!1,id:v,loading:C=null,loadingIndicator:x,loadingPosition:S="center",size:T="medium",startIcon:E,type:M,variant:A="text",...k}=a,$=so(v),j=x??b.jsx(Hu,{"aria-labelledby":$,color:"inherit",size:16}),w={...a,color:c,component:u,disabled:f,disableElevation:p,disableFocusRipple:h,fullWidth:y,loading:C,loadingIndicator:j,loadingPosition:S,size:T,type:M,variant:A},L=oA(w),D=(E||C&&S==="start")&&b.jsx(sA,{className:L.startIcon,ownerState:w,children:E||b.jsx(ah,{className:L.loadingIconPlaceholder,ownerState:w})}),I=(m||C&&S==="end")&&b.jsx(iA,{className:L.endIcon,ownerState:w,children:m||b.jsx(ah,{className:L.loadingIconPlaceholder,ownerState:w})}),O=r||"",N=typeof C=="boolean"?b.jsx("span",{className:L.loadingWrapper,style:{display:"contents"},children:C&&b.jsx(aA,{className:L.loadingIndicator,ownerState:w,children:j})}):null;return b.jsxs(rA,{ownerState:w,className:ye(o.className,L.root,d,O),component:u,disabled:f||C,focusRipple:!h,focusVisibleClassName:ye(L.focusVisible,g),ref:n,type:M,id:C?$:v,...k,classes:L,children:[D,S!=="end"&&N,l,S==="end"&&N,I]})});process.env.NODE_ENV!=="production"&&(Hn.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 lA(e){return Te("MuiDialogActions",e)}Ce("MuiDialogActions",["root","spacing"]);const cA=e=>{const{classes:t,disableSpacing:n}=e;return we({root:["root",!n&&"spacing"]},lA,t)},uA=be("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Db=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:i=!1,...a}=o,l={...o,disableSpacing:i},c=cA(l);return b.jsx(uA,{className:ye(c.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Db.propTypes={children:s.node,classes:s.object,className:s.string,disableSpacing:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const dA=["actions"],fA=ae.styled(Db,{name:"MuiPickersLayout",slot:"ActionBar"})({});function Rb(e){const{actions:t}=e,n=Pe(e,dA),o=lo(),{clearValue:r,setValueToToday:i,acceptValueChanges:a,cancelValueChanges:l,goToNextStep:c,hasNextStep:u}=Mr();if(t==null||t.length===0)return null;const d=t==null?void 0:t.map(f=>{switch(f){case"clear":return b.jsx(Hn,{onClick:r,children:o.clearButtonLabel},f);case"cancel":return b.jsx(Hn,{onClick:l,children:o.cancelButtonLabel},f);case"accept":return b.jsx(Hn,{onClick:a,children:o.okButtonLabel},f);case"today":return b.jsx(Hn,{onClick:i,children:o.todayButtonLabel},f);case"next":return b.jsx(Hn,{onClick:c,children:o.nextStepButtonLabel},f);case"nextOrAccept":return u?b.jsx(Hn,{onClick:c,children:o.nextStepButtonLabel},f):b.jsx(Hn,{onClick:a,children:o.okButtonLabel},f);default:return null}});return b.jsx(fA,U({},n,{children:d}))}process.env.NODE_ENV!=="production"&&(Rb.propTypes={actions:s.arrayOf(s.oneOf(["accept","cancel","clear","next","nextOrAccept","today"]).isRequired),disableSpacing:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const Ib=P.memo(Rb);process.env.NODE_ENV!=="production"&&(Ib.displayName="PickersActionBar");const ur=P.createContext({});process.env.NODE_ENV!=="production"&&(ur.displayName="ListContext");function pA(e){return Te("MuiList",e)}Ce("MuiList",["root","padding","dense","subheader"]);const hA=e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return we({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},pA,t)},mA=be("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}}]}),Yu=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiList"}),{children:r,className:i,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:u,...d}=o,f=P.useMemo(()=>({dense:l}),[l]),p={...o,component:a,dense:l,disablePadding:c},h=hA(p);return b.jsx(ur.Provider,{value:f,children:b.jsxs(mA,{as:a,className:ye(h.root,i),ref:n,ownerState:p,...d,children:[u,r]})})});process.env.NODE_ENV!=="production"&&(Yu.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 it(e,t){const{className:n,elementType:o,ownerState:r,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:f={[e]:void 0},...p}=i,h=d[e]||o,m=tn(f[e],r),{props:{component:g,...y},internalRef:v}=Qy({className:n,...c,externalForwardedProps:e==="root"?p:void 0,externalSlotProps:m}),C=$e(v,m==null?void 0:m.ref,t.ref),x=e==="root"?g||u:g,S=Zy(h,{...e==="root"&&!u&&!d[e]&&a,...e!=="root"&&!d[e]&&a,...y,...x&&!l&&{as:x},...x&&l&&{component:x},ref:C},r);return[h,S]}function gA(e){return Te("MuiListItem",e)}Ce("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const yA=Ce("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function bA(e){return Te("MuiListItemSecondaryAction",e)}Ce("MuiListItemSecondaryAction",["root","disableGutters"]);const vA=e=>{const{disableGutters:t,classes:n}=e;return we({root:["root",t&&"disableGutters"]},bA,n)},xA=be("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}}]}),qu=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiListItemSecondaryAction"}),{className:r,...i}=o,a=P.useContext(ur),l={...o,disableGutters:a.disableGutters},c=vA(l);return b.jsx(xA,{className:ye(c.root,r),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(qu.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])});qu.muiName="ListItemSecondaryAction";const SA=(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]},wA=e=>{const{alignItems:t,classes:n,dense:o,disableGutters:r,disablePadding:i,divider:a,hasSecondaryAction:l}=e;return we({root:["root",o&&"dense",!r&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},gA,n)},CA=be("div",{name:"MuiListItem",slot:"Root",overridesResolver:SA})(Xe(({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:{[`& > .${yA.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}}]}))),TA=be("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Ab=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiListItem"}),{alignItems:r="center",children:i,className:a,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:f,...p}={},dense:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:y=!1,secondaryAction:v,slotProps:C={},slots:x={},...S}=o,T=P.useContext(ur),E=P.useMemo(()=>({dense:h||T.dense||!1,alignItems:r,disableGutters:m}),[r,T.dense,h,m]),M=P.useRef(null),A=P.Children.toArray(i),k=A.length&&ns(A[A.length-1],["ListItemSecondaryAction"]),$={...o,alignItems:r,dense:E.dense,disableGutters:m,disablePadding:g,divider:y,hasSecondaryAction:k},j=wA($),w=$e(M,n),L={slots:x,slotProps:C},[D,I]=it("secondaryAction",{elementType:qu,externalForwardedProps:L,ownerState:$,className:j.secondaryAction}),O=x.root||c.Root||CA,N=C.root||u.root||{},F={className:ye(j.root,N.className,a),...S};let V=l||"li";return k?(V=!F.component&&!l?"div":V,d==="li"&&(V==="li"?V="div":F.component==="li"&&(F.component="div")),b.jsx(ur.Provider,{value:E,children:b.jsxs(TA,{as:d,className:ye(j.container,f),ref:w,ownerState:$,...p,children:[b.jsx(O,{...N,...!mr(O)&&{as:V,ownerState:{...$,...N.ownerState}},...F,children:A}),A.pop()]})})):b.jsx(ur.Provider,{value:E,children:b.jsxs(O,{...N,as:V,ref:w,...!mr(O)&&{ownerState:{...$,...N.ownerState}},...F,children:[A,v&&b.jsx(D,{...I,children:v})]})})});process.env.NODE_ENV!=="production"&&(Ab.propTypes={alignItems:s.oneOf(["center","flex-start"]),children:Bn(s.node,e=>{const t=P.Children.toArray(e.children);let n=-1;for(let o=t.length-1;o>=0;o-=1){const r=t[o];if(ns(r,["ListItemSecondaryAction"])){n=o;break}}return n!==-1&&n!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),ContainerComponent:va,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])});const PA=gt(b.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function EA(e){return Te("MuiChip",e)}const De=Ce("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"]),MA=e=>{const{classes:t,disabled:n,size:o,color:r,iconColor:i,onDelete:a,clickable:l,variant:c}=e,u={root:["root",c,n&&"disabled",`size${ce(o)}`,`color${ce(r)}`,l&&"clickable",l&&`clickableColor${ce(r)}`,a&&"deletable",a&&`deletableColor${ce(r)}`,`${c}${ce(r)}`],label:["label",`label${ce(o)}`],avatar:["avatar",`avatar${ce(o)}`,`avatarColor${ce(r)}`],icon:["icon",`icon${ce(o)}`,`iconColor${ce(i)}`],deleteIcon:["deleteIcon",`deleteIcon${ce(o)}`,`deleteIconColor${ce(r)}`,`deleteIcon${ce(c)}Color${ce(r)}`]};return we(u,EA,t)},OA=be("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:o,iconColor:r,clickable:i,onDelete:a,size:l,variant:c}=n;return[{[`& .${De.avatar}`]:t.avatar},{[`& .${De.avatar}`]:t[`avatar${ce(l)}`]},{[`& .${De.avatar}`]:t[`avatarColor${ce(o)}`]},{[`& .${De.icon}`]:t.icon},{[`& .${De.icon}`]:t[`icon${ce(l)}`]},{[`& .${De.icon}`]:t[`iconColor${ce(r)}`]},{[`& .${De.deleteIcon}`]:t.deleteIcon},{[`& .${De.deleteIcon}`]:t[`deleteIcon${ce(l)}`]},{[`& .${De.deleteIcon}`]:t[`deleteIconColor${ce(o)}`]},{[`& .${De.deleteIcon}`]:t[`deleteIcon${ce(c)}Color${ce(o)}`]},t.root,t[`size${ce(l)}`],t[`color${ce(o)}`],i&&t.clickable,i&&o!=="default"&&t[`clickableColor${ce(o)}`],a&&t.deletable,a&&o!=="default"&&t[`deletableColor${ce(o)}`],t[c],t[`${c}${ce(o)}`]]}})(Xe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${De.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${De.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${De.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${De.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${De.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${De.icon}`]:{marginLeft:5,marginRight:-6},[`& .${De.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${De.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${De.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Yt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${De.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${De.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${De.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${De.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(Yt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${De.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${De.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Yt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${De.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${De.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${De.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${De.avatar}`]:{marginLeft:4},[`& .${De.avatarSmall}`]:{marginLeft:2},[`& .${De.icon}`]:{marginLeft:4},[`& .${De.iconSmall}`]:{marginLeft:2},[`& .${De.deleteIcon}`]:{marginRight:5},[`& .${De.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Yt()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${De.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${De.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${De.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),kA=be("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:o}=n;return[t.label,t[`label${ce(o)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function lh(e){return e.key==="Backspace"||e.key==="Delete"}const Nb=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiChip"}),{avatar:r,className:i,clickable:a,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:f,label:p,onClick:h,onDelete:m,onKeyDown:g,onKeyUp:y,size:v="medium",variant:C="filled",tabIndex:x,skipFocusWhenDisabled:S=!1,slots:T={},slotProps:E={},...M}=o,A=P.useRef(null),k=$e(A,n),$=X=>{X.stopPropagation(),m&&m(X)},j=X=>{X.currentTarget===X.target&&lh(X)&&X.preventDefault(),g&&g(X)},w=X=>{X.currentTarget===X.target&&m&&lh(X)&&m(X),y&&y(X)},L=a!==!1&&h?!0:a,D=L||m?xr:c||"div",I={...o,component:D,disabled:d,size:v,color:l,iconColor:P.isValidElement(f)&&f.props.color||l,onDelete:!!m,clickable:L,variant:C},O=MA(I),N=D===xr?{component:c||"div",focusVisibleClassName:O.focusVisible,...m&&{disableRipple:!0}}:{};let F=null;m&&(F=u&&P.isValidElement(u)?P.cloneElement(u,{className:ye(u.props.className,O.deleteIcon),onClick:$}):b.jsx(PA,{className:O.deleteIcon,onClick:$}));let V=null;r&&P.isValidElement(r)&&(V=P.cloneElement(r,{className:ye(O.avatar,r.props.className)}));let B=null;f&&P.isValidElement(f)&&(B=P.cloneElement(f,{className:ye(O.icon,f.props.className)})),process.env.NODE_ENV!=="production"&&V&&B&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const R={slots:T,slotProps:E},[Y,G]=it("root",{elementType:OA,externalForwardedProps:{...R,...M},ownerState:I,shouldForwardComponentProp:!0,ref:k,className:ye(O.root,i),additionalProps:{disabled:L&&d?!0:void 0,tabIndex:S&&d?-1:x,...N},getSlotProps:X=>({...X,onClick:Q=>{var K;(K=X.onClick)==null||K.call(X,Q),h==null||h(Q)},onKeyDown:Q=>{var K;(K=X.onKeyDown)==null||K.call(X,Q),j(Q)},onKeyUp:Q=>{var K;(K=X.onKeyUp)==null||K.call(X,Q),w(Q)}})}),[Z,re]=it("label",{elementType:kA,externalForwardedProps:R,ownerState:I,className:O.label});return b.jsxs(Y,{as:D,...G,children:[V||B,b.jsx(Z,{...re,children:p}),F]})});process.env.NODE_ENV!=="production"&&(Nb.propTypes={avatar:s.element,children:rS,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])});const Ps=36,xa=2,Sa=320,DA=280,Gu=336,RA=["items","changeImportance"],IA=["getValue"],AA=ae.styled(Yu,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function _b(e){const{items:t,changeImportance:n="accept"}=e,o=Pe(e,RA),{setValue:r}=xR(),i=sR();if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:c}=l,u=Pe(l,IA);const d=c({isValid:i});return U({},u,{label:u.label,onClick:()=>{r(d,{changeImportance:n,shortcut:u,source:"view"})},disabled:!i(d)})});return b.jsx(AA,U({dense:!0,sx:[{maxHeight:Gu,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(l=>b.jsx(Ab,{children:b.jsx(Nb,U({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(_b.propTypes={changeImportance:s.oneOf(["accept","set"]),className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,items:s.arrayOf(s.shape({getValue:s.func.isRequired,id:s.string,label:s.string.isRequired})),style:s.object,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const NA=["ownerState"];function _A(e){return e.view!==null}const jA=(e,t)=>{const{pickerOrientation:n}=t;return we({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Tb,e)},LA=e=>{const{ownerState:t,defaultActionBarActions:n}=Dt(),{view:o}=Mr(),r=fn(),{children:i,slots:a,slotProps:l,classes:c}=e,u=P.useMemo(()=>U({},t,{layoutDirection:r?"rtl":"ltr",hasShortcuts:!1}),[t,r]),d=jA(c,u),f=(a==null?void 0:a.actionBar)??Ib,p=Le({elementType:f,externalSlotProps:l==null?void 0:l.actionBar,additionalProps:{actions:n},className:d.actionBar,ownerState:u}),h=Pe(p,NA),m=b.jsx(f,U({},h)),g=a==null?void 0:a.toolbar,y=Le({elementType:g,externalSlotProps:l==null?void 0:l.toolbar,className:d.toolbar,ownerState:u}),v=_A(y)&&g?b.jsx(g,U({},y)):null,C=i,x=a==null?void 0:a.tabs,S=o&&x?b.jsx(x,U({className:d.tabs},l==null?void 0:l.tabs)):null,T=(a==null?void 0:a.shortcuts)??_b,E=Le({elementType:T,externalSlotProps:l==null?void 0:l.shortcuts,className:d.shortcuts,ownerState:u}),M=Array.isArray(E==null?void 0:E.items)&&E.items.length>0,A=o&&T?b.jsx(T,U({},E)):null;return{toolbar:v,content:C,tabs:S,actionBar:m,shortcuts:A,ownerState:U({},u,{hasShortcuts:M})}},$A=(e,t)=>{const{pickerOrientation:n}=t;return we({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},Tb,e)},VA=ae.styled("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${yo.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape",hasShortcuts:!1},style:{[`& .${yo.toolbar}`]:{gridColumn:1,gridRow:"1 / 3"}}},{props:{pickerOrientation:"landscape",hasShortcuts:!0},style:{[`& .${yo.toolbar}`]:{gridColumn:"2 / 4",gridRow:1,maxWidth:"max-content"},[`& .${yo.shortcuts}`]:{gridColumn:1,gridRow:2}}},{props:{pickerOrientation:"portrait"},style:{[`& .${yo.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${yo.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{hasShortcuts:!0,layoutDirection:"rtl"},style:{[`& .${yo.shortcuts}`]:{gridColumn:4}}}]}),FA=ae.styled("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),wa=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:a,actionBar:l,shortcuts:c,ownerState:u}=LA(o),{orientation:d,variant:f}=Mr(),{sx:p,className:h,classes:m}=o,g=$A(m,u);return b.jsxs(VA,{ref:n,sx:p,className:ye(g.root,h),ownerState:u,children:[d==="landscape"?c:r,d==="landscape"?r:c,b.jsx(FA,{className:g.contentWrapper,ownerState:u,children:f==="desktop"?b.jsxs(P.Fragment,{children:[i,a]}):b.jsxs(P.Fragment,{children:[a,i]})}),l]})});process.env.NODE_ENV!=="production"&&(wa.displayName="PickersLayout");process.env.NODE_ENV!=="production"&&(wa.propTypes={children:s.node,classes:s.object,className:s.string,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function jb(e){const{steps:t}=e;return D2({steps:t,isViewMatchingStep:(n,o)=>o.views==null||o.views.includes(n),onStepChange:({step:n,defaultView:o,setView:r,view:i,views:a})=>{const l=n.views==null?o:n.views.find(c=>a.includes(c));l!==i&&r(l)}})}const BA=["props","steps"],zA=["ownerState"],WA=e=>{var E;let{props:t,steps:n}=e,o=Pe(e,BA);const{slots:r,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=jb({steps:n}),{providerProps:d,renderCurrentView:f,ownerState:p}=Cb(U({},o,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"desktop",getStepNavigation:u})),h=d.privateContextValue.labelId,m=((E=i==null?void 0:i.toolbar)==null?void 0:E.hidden)??!1,g=r.field,y=Le({elementType:g,externalSlotProps:i==null?void 0:i.field,additionalProps:U({},m&&{id:h}),ownerState:p}),v=Pe(y,zA),C=r.layout??wa;let x=h;m&&(a?x=`${h}-label`:x=void 0);const S=U({},i,{toolbar:U({},i==null?void 0:i.toolbar,{titleId:h}),popper:U({"aria-labelledby":x},i==null?void 0:i.popper)}),T=()=>b.jsxs(By,U({},d,{children:[b.jsx(g,U({},v,{slots:U({},r,v.slots),slotProps:U({},S,v.slotProps),inputRef:l})),b.jsx(M2,{slots:r,slotProps:S,children:b.jsx(C,U({},S==null?void 0:S.layout,{slots:r,slotProps:S,children:f()}))})]}));return process.env.NODE_ENV!=="production"&&(T.displayName="renderPicker"),{renderPicker:T}},Ko=e=>e.saveQuery!=null,Lb=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:n,timezone:o,setCharacterQuery:r,setTempAndroidValueStr:i,updateSectionValue:a}})=>{const l=Qe(),c=({keyPressed:f,sectionIndex:p},h,m)=>{const g=f.toLowerCase(),y=n.sections[p];if(n.characterQuery!=null&&(!m||m(n.characterQuery.value))&&n.characterQuery.sectionIndex===p){const C=`${n.characterQuery.value}${g}`,x=h(C,y);if(!Ko(x))return r({sectionIndex:p,value:C,sectionType:y.type}),x}const v=h(g,y);return Ko(v)&&!v.saveQuery?(r(null),null):(r({sectionIndex:p,value:g,sectionType:y.type}),Ko(v)?null:v)},u=f=>{const p=(g,y,v)=>{const C=y.filter(x=>x.toLowerCase().startsWith(v));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},h=(g,y,v,C)=>{const x=S=>Ly(l,o,y.type,S);if(y.contentType==="letter")return p(y.format,x(y.format),g);if(v&&C!=null&&Cu(l,v).contentType==="letter"){const S=x(v),T=p(v,S,g);return Ko(T)?{saveQuery:!1}:U({},T,{sectionValue:C(T.sectionValue,S)})}return{saveQuery:!1}};return c(f,(g,y)=>{switch(y.type){case"month":{const v=C=>jp(l,C,l.formats.month,y.format);return h(g,y,l.formats.month,v)}case"weekDay":{const v=(C,x)=>x.indexOf(C).toString();return h(g,y,l.formats.weekday,v)}case"meridiem":return h(g,y);default:return{saveQuery:!1}}})},d=f=>{const p=({queryValue:m,skipIfBelowMinimum:g,section:y})=>{const v=$o(m,e),C=Number(v),x=t[y.type]({currentDate:null,format:y.format,contentType:y.contentType});if(C>x.maximum)return{saveQuery:!1};if(g&&C<x.minimum)return{saveQuery:!0};const S=C*10>x.maximum||v.length===x.maximum.toString().length;return{sectionValue:$y(l,C,x,e,y),shouldGoToNextSection:S}};return c(f,(m,g)=>{if(g.contentType==="digit"||g.contentType==="digit-with-letter")return p({queryValue:m,skipIfBelowMinimum:!1,section:g});if(g.type==="month"){Vy(l,"digit","month","MM");const y=p({queryValue:m,skipIfBelowMinimum:!0,section:{type:g.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2}});if(Ko(y))return y;const v=jp(l,y.sectionValue,"MM",g.format);return U({},y,{sectionValue:v})}if(g.type==="weekDay"){const y=p({queryValue:m,skipIfBelowMinimum:!0,section:g});if(Ko(y))return y;const v=pa(l,g.format)[Number(y.sectionValue)-1];return U({},y,{sectionValue:v})}return{saveQuery:!1}},m=>_p(m,e))};return he(f=>{const p=n.sections[f.sectionIndex],m=_p(f.keyPressed,e)?d(U({},f,{keyPressed:Tu(f.keyPressed,e)})):u(f);if(m==null){i(null);return}a({section:p,newSectionValue:m.sectionValue,shouldGoToNextSection:m.shouldGoToNextSection})})},UA=5e3,$b=e=>{var de;const t=Qe(),n=lo(),o=fn(),{manager:{validator:r,valueType:i,internal_valueManager:a,internal_fieldValueManager:l},internalPropsWithDefaults:c,internalPropsWithDefaults:{value:u,defaultValue:d,referenceDate:f,onChange:p,format:h,formatDensity:m="dense",selectedSections:g,onSelectedSectionsChange:y,shouldRespectLeadingZeros:v=!1,timezone:C,enableAccessibleFieldDOMStructure:x=!0},forwardedProps:{error:S}}=e,{value:T,handleValueChange:E,timezone:M}=Hs({name:"a field component",timezone:C,value:u,defaultValue:d,referenceDate:f,onChange:p,valueManager:a}),A=P.useRef(T);P.useEffect(()=>{A.current=T},[T]);const{hasValidationError:k}=Gy({props:c,validator:r,timezone:M,value:T,onError:c.onError}),$=P.useMemo(()=>VD(t),[t]),j=P.useMemo(()=>UD(t,$,M),[t,$,M]),w=P.useCallback(se=>l.getSectionsFromValue(se,ue=>zp({adapter:t,localeText:n,localizedDigits:$,format:h,date:ue,formatDensity:m,shouldRespectLeadingZeros:v,enableAccessibleFieldDOMStructure:x,isRtl:o})),[l,h,n,$,o,v,t,m,x]),[L,D]=P.useState(()=>{const se=w(T);$p(se,i);const ue={sections:se,lastExternalValue:T,lastSectionsDependencies:{format:h,isRtl:o,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},le=jD(se),fe=a.getInitialReferenceValue({referenceDate:f,value:T,adapter:t,props:c,granularity:le,timezone:M});return U({},ue,{referenceValue:fe})}),[I,O]=Jn({controlled:g,default:null,name:"useField",state:"selectedSections"}),N=se=>{O(se),y==null||y(se)},F=P.useMemo(()=>hc(I,L.sections),[I,L.sections]),V=F==="all"?0:F,B=P.useMemo(()=>qD(L.sections,o&&!x),[L.sections,o,x]),R=P.useMemo(()=>L.sections.every(se=>se.value===""),[L.sections]),Y=P.useMemo(()=>{if(V!=null)return!1;const se=L.sections.filter(ue=>ue.value!=="");return se.length>0&&L.sections.length-se.length>0},[L.sections,V]),G=P.useMemo(()=>S!==void 0?S:k||Y,[k,Y,S]),Z=se=>{const ue={validationError:r({adapter:t,value:se,timezone:M,props:c})};E(se,ue)},re=(se,ue)=>{const le=[...L.sections];return le[se]=U({},le[se],{value:ue,modified:!0}),le},X=P.useRef(null),Q=Xn(),K=se=>{V!=null&&(X.current={sectionIndex:V,value:se},Q.start(0,()=>{X.current=null}))},te=()=>{a.areValuesEqual(t,T,a.emptyValue)?D(se=>U({},se,{sections:se.sections.map(ue=>U({},ue,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(D(se=>U({},se,{characterQuery:null})),Z(a.emptyValue))},z=()=>{if(V==null)return;const se=L.sections[V];se.value!==""&&(K(""),l.getDateFromSection(T,se)===null?D(ue=>U({},ue,{sections:re(V,""),tempValueStrAndroid:null,characterQuery:null})):(D(ue=>U({},ue,{characterQuery:null})),Z(l.updateDateInValue(T,se,null))))},H=se=>{const ue=(fe,me)=>{const Ie=t.parse(fe,h);if(!t.isValid(Ie))return null;const Oe=zp({adapter:t,localeText:n,localizedDigits:$,format:h,date:Ie,formatDensity:m,shouldRespectLeadingZeros:v,enableAccessibleFieldDOMStructure:x,isRtl:o});return Fp(t,Ie,Oe,me,!1)},le=l.parseValueStr(se,L.referenceValue,ue);Z(le)},W=Xn(),ee=({section:se,newSectionValue:ue,shouldGoToNextSection:le})=>{Q.clear(),W.clear();const fe=l.getDateFromSection(T,se);le&&V<L.sections.length-1&&N(V+1);const me=re(V,ue),Ie=l.getDateSectionsFromValue(me,se),Oe=BD(t,Ie,$);if(t.isValid(Oe)){const qe=Fp(t,Oe,Ie,l.getDateFromSection(L.referenceValue,se),!0);return fe==null&&W.start(0,()=>{A.current===T&&D(tt=>U({},tt,{sections:l.clearDateSections(L.sections,se),tempValueStrAndroid:null}))}),Z(l.updateDateInValue(T,se,qe))}return Ie.every(qe=>qe.value!=="")&&(fe==null||t.isValid(fe))?(K(ue),Z(l.updateDateInValue(T,se,Oe))):(fe!=null&&(K(ue),Z(l.updateDateInValue(T,se,Oe))),D(qe=>U({},qe,{sections:me,tempValueStrAndroid:null})))},J=se=>D(ue=>U({},ue,{tempValueStrAndroid:se})),ie=he(se=>{D(ue=>U({},ue,{characterQuery:se}))});if(T!==L.lastExternalValue){const se=X.current!=null&&!t.isValid(l.getDateFromSection(T,L.sections[X.current.sectionIndex]));let ue;se?ue=re(X.current.sectionIndex,X.current.value):ue=w(T),D(le=>U({},le,{lastExternalValue:T,sections:ue,sectionsDependencies:{format:h,isRtl:o,locale:t.locale},referenceValue:se?le.referenceValue:l.updateReferenceValue(t,T,le.referenceValue),tempValueStrAndroid:null}))}if(o!==L.lastSectionsDependencies.isRtl||h!==L.lastSectionsDependencies.format||t.locale!==L.lastSectionsDependencies.locale){const se=w(T);$p(se,i),D(ue=>U({},ue,{lastSectionsDependencies:{format:h,isRtl:o,locale:t.locale},sections:se,tempValueStrAndroid:null,characterQuery:null}))}L.characterQuery!=null&&!G&&V==null&&ie(null),L.characterQuery!=null&&((de=L.sections[L.characterQuery.sectionIndex])==null?void 0:de.type)!==L.characterQuery.sectionType&&ie(null),P.useEffect(()=>{X.current!=null&&(X.current=null)});const ne=Xn();return P.useEffect(()=>(L.characterQuery!=null&&ne.start(UA,()=>ie(null)),()=>{}),[L.characterQuery,ie,ne]),P.useEffect(()=>{L.tempValueStrAndroid!=null&&V!=null&&z()},[L.sections]),{activeSectionIndex:V,areAllSectionsEmpty:R,error:G,localizedDigits:$,parsedSelectedSections:F,sectionOrder:B,sectionsValueBoundaries:j,state:L,timezone:M,value:T,clearValue:te,clearActiveSection:z,setCharacterQuery:ie,setSelectedSections:N,setTempAndroidValueStr:J,updateSectionValue:ee,updateValueFromValueStr:H,getSectionsFromValue:w}};function Vb(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:o}=e,r=Iu(),i=Fy(),a=$e(n.unstableFieldRef,o?null:i==null?void 0:i.fieldRef),l=r==null?void 0:r.setValue,c=P.useCallback((d,f)=>l==null?void 0:l(d,{validationError:f.validationError,shouldClose:!1}),[l]),u=P.useMemo(()=>i!=null&&r!=null?U({value:r.value,onChange:c,timezone:r.timezone,disabled:r.disabled,readOnly:r.readOnly,autoFocus:r.autoFocus&&!r.open,focused:r.open?!0:void 0,format:r.fieldFormat,formatDensity:i.formatDensity,enableAccessibleFieldDOMStructure:i.enableAccessibleFieldDOMStructure,selectedSections:i.selectedSections,onSelectedSectionsChange:i.onSelectedSectionsChange,unstableFieldRef:a},n):n,[r,i,n,c,a]);return t(u)}function Ku(e){const{focused:t,domGetters:n,stateResponse:{parsedSelectedSections:o,state:r}}=e;if(!n.isReady())return;const i=Pt(n.getRoot()).getSelection();if(!i)return;if(o==null){i.rangeCount>0&&i.getRangeAt(0).startContainer instanceof Node&&n.getRoot().contains(i.getRangeAt(0).startContainer)&&i.removeAllRanges(),t&&n.getRoot().blur();return}if(!n.getRoot().contains(jt(n.getRoot())))return;const a=new window.Range;let l;o==="all"?l=n.getRoot():r.sections[o].type==="empty"?l=n.getSectionContainer(o):l=n.getSectionContent(o),a.selectNodeContents(l),l.focus(),i.removeAllRanges(),i.addRange(a)}function Fb(e){const t=Qe(),{manager:{internal_fieldValueManager:n},internalPropsWithDefaults:{minutesStep:o,disabled:r,readOnly:i},stateResponse:{state:a,value:l,activeSectionIndex:c,parsedSelectedSections:u,sectionsValueBoundaries:d,localizedDigits:f,timezone:p,sectionOrder:h,clearValue:m,clearActiveSection:g,setSelectedSections:y,updateSectionValue:v}}=e;return he(C=>{if(!r)switch(!0){case((C.ctrlKey||C.metaKey)&&String.fromCharCode(C.keyCode)==="A"&&!C.shiftKey&&!C.altKey):{C.preventDefault(),y("all");break}case C.key==="ArrowRight":{if(C.preventDefault(),u==null)y(h.startIndex);else if(u==="all")y(h.endIndex);else{const x=h.neighbors[u].rightIndex;x!==null&&y(x)}break}case C.key==="ArrowLeft":{if(C.preventDefault(),u==null)y(h.endIndex);else if(u==="all")y(h.startIndex);else{const x=h.neighbors[u].leftIndex;x!==null&&y(x)}break}case C.key==="Delete":{if(C.preventDefault(),i)break;u==null||u==="all"?m():g();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(C.key):{if(C.preventDefault(),i||c==null)break;u==="all"&&y(c);const x=a.sections[c],S=YA(t,p,x,C.key,d,f,n.getDateFromSection(l,x),{minutesStep:o});v({section:x,newSectionValue:S,shouldGoToNextSection:!1});break}}})}function HA(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function YA(e,t,n,o,r,i,a,l){const c=HA(o),u=o==="Home",d=o==="End",f=n.value===""||u||d,p=()=>{const m=r[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),g=C=>$y(e,C,m,i,n),y=n.type==="minutes"&&(l!=null&&l.minutesStep)?l.minutesStep:1;let v;if(f){if(n.type==="year"&&!d&&!u)return e.formatByString(e.date(void 0,t),n.format);c>0||u?v=m.minimum:v=m.maximum}else v=parseInt($o(n.value,i),10)+c*y;return v%y!==0&&((c<0||u)&&(v+=y-(y+v)%y),(c>0||d)&&(v-=v%y)),v>m.maximum?g(m.minimum+(v-m.maximum-1)%(m.maximum-m.minimum+1)):v<m.minimum?g(m.maximum-(m.minimum-v-1)%(m.maximum-m.minimum+1)):g(v)},h=()=>{const m=Ly(e,t,n.type,n.format);if(m.length===0)return n.value;if(f)return c>0||u?m[0]:m[m.length-1];const v=((m.indexOf(n.value)+c)%m.length+m.length)%m.length;return m[v]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?p():h()}function qA(e){const{manager:t,focused:n,setFocused:o,domGetters:r,stateResponse:i,applyCharacterEditing:a,internalPropsWithDefaults:l,stateResponse:{parsedSelectedSections:c,sectionOrder:u,state:d,clearValue:f,setCharacterQuery:p,setSelectedSections:h,updateValueFromValueStr:m},internalPropsWithDefaults:{disabled:g=!1,readOnly:y=!1}}=e,v=Fb({manager:t,internalPropsWithDefaults:l,stateResponse:i}),C=Xn(),x=he(A=>{g||!r.isReady()||(o(!0),c==="all"?C.start(0,()=>{const k=document.getSelection().getRangeAt(0).startOffset;if(k===0){h(u.startIndex);return}let $=0,j=0;for(;j<k&&$<d.sections.length;){const w=d.sections[$];$+=1,j+=`${w.startSeparator}${w.value||w.placeholder}${w.endSeparator}`.length}h($-1)}):n?r.getRoot().contains(A.target)||h(u.startIndex):(o(!0),h(u.startIndex)))}),S=he(A=>{if(!r.isReady()||c!=="all")return;const $=A.target.textContent??"";r.getRoot().innerHTML=d.sections.map(j=>`${j.startSeparator}${j.value||j.placeholder}${j.endSeparator}`).join(""),Ku({focused:n,domGetters:r,stateResponse:i}),$.length===0||$.charCodeAt(0)===10?(f(),h("all")):$.length>1?m($):(c==="all"&&h(0),a({keyPressed:$,sectionIndex:0}))}),T=he(A=>{if(y||c!=="all"){A.preventDefault();return}const k=A.clipboardData.getData("text");A.preventDefault(),p(null),m(k)}),E=he(()=>{if(n||g||!r.isReady())return;const A=jt(r.getRoot());o(!0),r.getSectionIndexFromDOMElement(A)!=null||h(u.startIndex)}),M=he(()=>{setTimeout(()=>{if(!r.isReady())return;const A=jt(r.getRoot());!r.getRoot().contains(A)&&(o(!1),h(null))})});return{onKeyDown:v,onBlur:M,onFocus:E,onClick:x,onPaste:T,onInput:S,contentEditable:c==="all",tabIndex:l.disabled||c===0?-1:0}}function GA(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:n,state:o,updateValueFromValueStr:r}}=e,i=he(l=>{r(l.target.value)});return{value:P.useMemo(()=>n?"":t.getV7HiddenInputValueFromSections(o.sections),[n,o.sections,t]),onChange:i}}function KA(e){const{stateResponse:{setSelectedSections:t},internalPropsWithDefaults:{disabled:n=!1}}=e,o=P.useCallback(r=>i=>{n||i.isDefaultPrevented()||t(r)},[n,t]);return P.useCallback(r=>({"data-sectionindex":r,onClick:o(r)}),[o])}function ZA(e){const t=Qe(),n=lo(),{focused:o,domGetters:r,stateResponse:i,applyCharacterEditing:a,manager:{internal_fieldValueManager:l},stateResponse:{parsedSelectedSections:c,sectionsValueBoundaries:u,state:d,value:f,clearActiveSection:p,setCharacterQuery:h,setSelectedSections:m,updateSectionValue:g,updateValueFromValueStr:y},internalPropsWithDefaults:{disabled:v=!1,readOnly:C=!1}}=e,x=c==="all",S=!x&&!v&&!C,T=he(j=>{if(!r.isReady())return;const w=d.sections[j];r.getSectionContent(j).innerHTML=w.value||w.placeholder,Ku({focused:o,domGetters:r,stateResponse:i})}),E=he(j=>{if(!r.isReady())return;const w=j.target,L=w.textContent??"",D=r.getSectionIndexFromDOMElement(w),I=d.sections[D];if(C){T(D);return}if(L.length===0){if(I.value===""){T(D);return}const O=j.nativeEvent.inputType;if(O==="insertParagraph"||O==="insertLineBreak"){T(D);return}T(D),p();return}a({keyPressed:L,sectionIndex:D}),T(D)}),M=he(j=>{j.preventDefault()}),A=he(j=>{if(j.preventDefault(),C||v||typeof c!="number")return;const w=d.sections[c],L=j.clipboardData.getData("text"),D=/^[a-zA-Z]+$/.test(L),I=/^[0-9]+$/.test(L),O=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(L);w.contentType==="letter"&&D||w.contentType==="digit"&&I||w.contentType==="digit-with-letter"&&O?(h(null),g({section:w,newSectionValue:L,shouldGoToNextSection:!0})):!D&&!I&&(h(null),y(L))}),k=he(j=>{j.preventDefault(),j.dataTransfer.dropEffect="none"}),$=P.useCallback(j=>()=>{v||m(j)},[v,m]);return P.useCallback((j,w)=>{const L=u[j.type]({currentDate:l.getDateFromSection(f,j),contentType:j.contentType,format:j.format});return{onInput:E,onPaste:A,onMouseUp:M,onDragOver:k,onFocus:$(w),"aria-readonly":C,"aria-valuenow":QA(j,t),"aria-valuemin":L.minimum,"aria-valuemax":L.maximum,"aria-valuetext":j.value?XA(j,t):n.empty,"aria-label":n[j.type],"aria-disabled":v,tabIndex:!S||x||w>0?-1:0,contentEditable:!x&&!v&&!C,role:"spinbutton","data-range-position":j.dateName||void 0,spellCheck:S?!1:void 0,autoCapitalize:S?"none":void 0,autoCorrect:S?"off":void 0,children:j.value||j.placeholder,inputMode:j.contentType==="letter"?"text":"numeric"}},[u,x,v,C,S,n,t,E,A,M,k,$,l,f])}function XA(e,t){if(e.value)switch(e.type){case"month":{if(e.contentType==="digit"){const o=t.setMonth(t.date(),Number(e.value)-1);return t.isValid(o)?t.format(o,"month"):""}const n=t.parse(e.value,e.format);return n&&t.isValid(n)?t.format(n,"month"):void 0}case"day":if(e.contentType==="digit"){const n=t.setDate(t.startOfYear(t.date()),Number(e.value));return t.isValid(n)?t.format(n,"dayOfMonthFull"):""}return e.value;case"weekDay":return;default:return}}function QA(e,t){if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}}const JA=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:o,manager:{valueType:r,internal_useOpenPickerButtonAriaLabel:i}}=e,{internalProps:a,forwardedProps:l}=qy(t,r),c=Vb({manager:n,internalProps:a,skipContextFieldRefAssignment:o}),{sectionListRef:u,onBlur:d,onClick:f,onFocus:p,onInput:h,onPaste:m,onKeyDown:g,onClear:y,clearable:v}=l,{disabled:C=!1,readOnly:x=!1,autoFocus:S=!1,focused:T,unstableFieldRef:E}=c,M=P.useRef(null),A=$e(u,M),k=P.useMemo(()=>({isReady:()=>M.current!=null,getRoot:()=>M.current.getRoot(),getSectionContainer:ne=>M.current.getSectionContainer(ne),getSectionContent:ne=>M.current.getSectionContent(ne),getSectionIndexFromDOMElement:ne=>M.current.getSectionIndexFromDOMElement(ne)}),[M]),$=$b({manager:n,internalPropsWithDefaults:c,forwardedProps:l}),{areAllSectionsEmpty:j,error:w,parsedSelectedSections:L,sectionOrder:D,state:I,value:O,clearValue:N,setSelectedSections:F}=$,V=Lb({stateResponse:$}),B=i(O),[R,Y]=P.useState(!1);function G(ne=0){if(C||!M.current||ch(M)!=null)return;const de=hc(ne,I.sections);Y(!0),M.current.getSectionContent(de).focus()}const Z=qA({manager:n,internalPropsWithDefaults:c,stateResponse:$,applyCharacterEditing:V,focused:R,setFocused:Y,domGetters:k}),re=GA({manager:n,stateResponse:$}),X=KA({stateResponse:$,internalPropsWithDefaults:c}),Q=ZA({manager:n,stateResponse:$,applyCharacterEditing:V,internalPropsWithDefaults:c,domGetters:k,focused:R}),K=he(ne=>{g==null||g(ne),Z.onKeyDown(ne)}),te=he(ne=>{d==null||d(ne),Z.onBlur(ne)}),z=he(ne=>{p==null||p(ne),Z.onFocus(ne)}),H=he(ne=>{ne.isDefaultPrevented()||(f==null||f(ne),Z.onClick(ne))}),W=he(ne=>{m==null||m(ne),Z.onPaste(ne)}),ee=he(ne=>{h==null||h(ne),Z.onInput(ne)}),J=he((ne,...de)=>{ne.preventDefault(),y==null||y(ne,...de),N(),uh(M)?F(D.startIndex):G(0)}),ie=P.useMemo(()=>I.sections.map((ne,de)=>{const se=Q(ne,de);return{container:X(de),content:Q(ne,de),before:{children:ne.startSeparator},after:{children:ne.endSeparator,"data-range-position":ne.isEndFormatSeparator?se["data-range-position"]:void 0}}}),[I.sections,X,Q]);return P.useEffect(()=>{if(M.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please add the `enableAccessibleFieldDOMStructure={false}` prop to your Picker or Field component:","","<DatePicker enableAccessibleFieldDOMStructure={false} slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
228
+ `));S&&!C&&M.current&&M.current.getSectionContent(D.startIndex).focus()},[]),Ct(()=>{if(!(!R||!M.current)){if(L==="all")M.current.getRoot().focus();else if(typeof L=="number"){const ne=M.current.getSectionContent(L);ne&&ne.focus()}}},[L,R]),Ct(()=>{Ku({focused:R,domGetters:k,stateResponse:$})}),P.useImperativeHandle(E,()=>({getSections:()=>I.sections,getActiveSectionIndex:()=>ch(M),setSelectedSections:ne=>{if(C||!M.current)return;const de=hc(ne,I.sections);Y((de==="all"?0:de)!==null),F(ne)},focusField:G,isFieldFocused:()=>uh(M)})),U({},l,Z,{onBlur:te,onClick:H,onFocus:z,onInput:ee,onPaste:W,onKeyDown:K,onClear:J},re,{error:w,clearable:!!(v&&!j&&!x&&!C),focused:T??R,sectionListRef:A,enableAccessibleFieldDOMStructure:!0,elements:ie,areAllSectionsEmpty:j,disabled:C,readOnly:x,autoFocus:S,openPickerAriaLabel:B})};function ch(e){var n;const t=jt((n=e.current)==null?void 0:n.getRoot());return!t||!e.current||!e.current.getRoot().contains(t)?null:e.current.getSectionIndexFromDOMElement(t)}function uh(e){var n;const t=jt((n=e.current)==null?void 0:n.getRoot());return!!e.current&&e.current.getRoot().contains(t)}const ir=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),eN=(e,t,n)=>{let o=0,r=n?1:0;const i=[];for(let a=0;a<e.length;a+=1){const l=e[a],c=Eu(l,n?"input-rtl":"input-ltr",t),u=`${l.startSeparator}${c}${l.endSeparator}`,d=ir(u).length,f=u.length,p=ir(c),h=r+(p===""?0:c.indexOf(p[0]))+l.startSeparator.length,m=h+p.length;i.push(U({},l,{start:o,end:o+d,startInInput:h,endInInput:m})),o+=d,r+=f}return i},tN=e=>{const t=fn(),n=Xn(),o=Xn(),{props:r,manager:i,skipContextFieldRefAssignment:a,manager:{valueType:l,internal_valueManager:c,internal_fieldValueManager:u,internal_useOpenPickerButtonAriaLabel:d}}=e,{internalProps:f,forwardedProps:p}=qy(r,l),h=Vb({manager:i,internalProps:f,skipContextFieldRefAssignment:a}),{onFocus:m,onClick:g,onPaste:y,onBlur:v,onKeyDown:C,onClear:x,clearable:S,inputRef:T,placeholder:E}=p,{readOnly:M=!1,disabled:A=!1,autoFocus:k=!1,focused:$,unstableFieldRef:j}=h,w=P.useRef(null),L=$e(T,w),D=$b({manager:i,internalPropsWithDefaults:h,forwardedProps:p}),{activeSectionIndex:I,areAllSectionsEmpty:O,error:N,localizedDigits:F,parsedSelectedSections:V,sectionOrder:B,state:R,value:Y,clearValue:G,clearActiveSection:Z,setCharacterQuery:re,setSelectedSections:X,setTempAndroidValueStr:Q,updateSectionValue:K,updateValueFromValueStr:te,getSectionsFromValue:z}=D,H=Lb({stateResponse:D}),W=d(Y),ee=P.useMemo(()=>eN(R.sections,F,t),[R.sections,F,t]);function J(){const Ee=w.current.selectionStart??0;let Me;Ee<=ee[0].startInInput||Ee>=ee[ee.length-1].endInInput?Me=1:Me=ee.findIndex(Be=>Be.startInInput-Be.startSeparator.length>Ee);const Se=Me===-1?ee.length-1:Me-1;X(Se)}function ie(Ee=0){var Me;jt(w.current)!==w.current&&((Me=w.current)==null||Me.focus(),X(Ee))}const ne=he(Ee=>{m==null||m(Ee);const Me=w.current;n.start(0,()=>{!Me||Me!==w.current||I==null&&(Me.value.length&&Number(Me.selectionEnd)-Number(Me.selectionStart)===Me.value.length?X("all"):J())})}),de=he((Ee,...Me)=>{Ee.isDefaultPrevented()||(g==null||g(Ee,...Me),J())}),se=he(Ee=>{if(y==null||y(Ee),Ee.preventDefault(),M||A)return;const Me=Ee.clipboardData.getData("text");if(typeof V=="number"){const Se=R.sections[V],Be=/^[a-zA-Z]+$/.test(Me),ze=/^[0-9]+$/.test(Me),nt=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Me);if(Se.contentType==="letter"&&Be||Se.contentType==="digit"&&ze||Se.contentType==="digit-with-letter"&&nt){re(null),K({section:Se,newSectionValue:Me,shouldGoToNextSection:!0});return}if(Be||ze)return}re(null),te(Me)}),ue=he(Ee=>{v==null||v(Ee),X(null)}),le=he(Ee=>{if(M)return;const Me=Ee.target.value;if(Me===""){G();return}const Se=Ee.nativeEvent.data,Be=Se&&Se.length>1,ze=Be?Se:Me,nt=ir(ze);if(V==="all"&&X(I),I==null||Be){te(Be?Se:nt);return}let Je;if(V==="all"&&nt.length===1)Je=nt;else{const Vt=ir(u.getV6InputValueFromSections(ee,F,t));let ke=-1,ut=-1;for(let ge=0;ge<Vt.length;ge+=1)ke===-1&&Vt[ge]!==nt[ge]&&(ke=ge),ut===-1&&Vt[Vt.length-ge-1]!==nt[nt.length-ge-1]&&(ut=ge);const yt=ee[I];if(ke<yt.start||Vt.length-ut-1>yt.end)return;const hn=nt.length-Vt.length+yt.end-ir(yt.endSeparator||"").length;Je=nt.slice(yt.start+ir(yt.startSeparator||"").length,hn)}if(Je.length===0){YD()&&Q(ze),Z();return}H({keyPressed:Je,sectionIndex:I})}),fe=he((Ee,...Me)=>{Ee.preventDefault(),x==null||x(Ee,...Me),G(),dh(w)?X(B.startIndex):ie(0)}),me=Fb({manager:i,internalPropsWithDefaults:h,stateResponse:D}),Ie=he(Ee=>{C==null||C(Ee),me(Ee)}),Oe=P.useMemo(()=>E!==void 0?E:u.getV6InputValueFromSections(z(c.emptyValue),F,t),[E,u,z,c.emptyValue,F,t]),qe=P.useMemo(()=>R.tempValueStrAndroid??u.getV6InputValueFromSections(R.sections,F,t),[R.sections,u,R.tempValueStrAndroid,F,t]);P.useEffect(()=>{w.current&&w.current===jt(w.current)&&X("all")},[]),Ct(()=>{function Ee(){if(!w.current)return;if(V==null){w.current.scrollLeft&&(w.current.scrollLeft=0);return}if(w.current!==jt(w.current))return;const Me=w.current.scrollTop;if(V==="all")w.current.select();else{const Se=ee[V],Be=Se.type==="empty"?Se.startInInput-Se.startSeparator.length:Se.startInInput,ze=Se.type==="empty"?Se.endInInput+Se.endSeparator.length:Se.endInInput;(Be!==w.current.selectionStart||ze!==w.current.selectionEnd)&&w.current===jt(w.current)&&w.current.setSelectionRange(Be,ze),o.start(0,()=>{w.current&&w.current===jt(w.current)&&w.current.selectionStart===w.current.selectionEnd&&(w.current.selectionStart!==Be||w.current.selectionEnd!==ze)&&Ee()})}w.current.scrollTop=Me}Ee()});const tt=P.useMemo(()=>I==null||R.sections[I].contentType==="letter"?"text":"numeric",[I,R.sections]),Tt=!(w.current&&w.current===jt(w.current))&&O;return P.useImperativeHandle(j,()=>({getSections:()=>R.sections,getActiveSectionIndex:()=>{const Ee=w.current.selectionStart??0,Me=w.current.selectionEnd??0;if(Ee===0&&Me===0)return null;const Se=Ee<=ee[0].startInInput?1:ee.findIndex(Be=>Be.startInInput-Be.startSeparator.length>Ee);return Se===-1?ee.length-1:Se-1},setSelectedSections:Ee=>X(Ee),focusField:ie,isFieldFocused:()=>dh(w)})),U({},p,{error:N,"aria-invalid":N,clearable:!!(S&&!O&&!M&&!A),onBlur:ue,onClick:de,onFocus:ne,onPaste:se,onKeyDown:Ie,onClear:fe,inputRef:L,enableAccessibleFieldDOMStructure:!1,placeholder:Oe,inputMode:tt,autoComplete:"off",value:Tt?"":qe,onChange:le,focused:$,disabled:A,readOnly:M,autoFocus:k,openPickerAriaLabel:W})};function dh(e){return e.current===jt(e.current)}const nN=e=>{const t=Fy();return(e.props.enableAccessibleFieldDOMStructure??(t==null?void 0:t.enableAccessibleFieldDOMStructure)??!0?JA:tN)(e)},oN=e=>{const t=MR(e);return nN({manager:t,props:e})};function ai(e){return parseInt(e,10)||0}const rN={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function sN(e){for(const t in e)return!1;return!0}function fh(e){return sN(e)||e.outerHeightStyle===0&&!e.overflowing}const Bb=P.forwardRef(function(t,n){const{onChange:o,maxRows:r,minRows:i=1,style:a,value:l,...c}=t,{current:u}=P.useRef(l!=null),d=P.useRef(null),f=$e(n,d),p=P.useRef(null),h=P.useRef(null),m=P.useCallback(()=>{const x=d.current,S=h.current;if(!x||!S)return;const E=jn(x).getComputedStyle(x);if(E.width==="0px")return{outerHeightStyle:0,overflowing:!1};S.style.width=E.width,S.value=x.value||t.placeholder||"x",S.value.slice(-1)===`
229
+ `&&(S.value+=" ");const M=E.boxSizing,A=ai(E.paddingBottom)+ai(E.paddingTop),k=ai(E.borderBottomWidth)+ai(E.borderTopWidth),$=S.scrollHeight;S.value="x";const j=S.scrollHeight;let w=$;i&&(w=Math.max(Number(i)*j,w)),r&&(w=Math.min(Number(r)*j,w)),w=Math.max(w,j);const L=w+(M==="border-box"?A+k:0),D=Math.abs(w-$)<=1;return{outerHeightStyle:L,overflowing:D}},[r,i,t.placeholder]),g=he(()=>{const x=d.current,S=m();if(!x||!S||fh(S))return!1;const T=S.outerHeightStyle;return p.current!=null&&p.current!==T}),y=P.useCallback(()=>{const x=d.current,S=m();if(!x||!S||fh(S))return;const T=S.outerHeightStyle;p.current!==T&&(p.current=T,x.style.height=`${T}px`),x.style.overflow=S.overflowing?"hidden":""},[m]),v=P.useRef(-1);Ct(()=>{const x=ym(y),S=d==null?void 0:d.current;if(!S)return;const T=jn(S);T.addEventListener("resize",x);let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(()=>{g()&&(E.unobserve(S),cancelAnimationFrame(v.current),y(),v.current=requestAnimationFrame(()=>{E.observe(S)}))}),E.observe(S)),()=>{x.clear(),cancelAnimationFrame(v.current),T.removeEventListener("resize",x),E&&E.disconnect()}},[m,y,g]),Ct(()=>{y()});const C=x=>{u||y();const S=x.target,T=S.value.length,E=S.value.endsWith(`
230
+ `),M=S.selectionStart===T;E&&M&&S.setSelectionRange(T,T),o&&o(x)};return b.jsxs(P.Fragment,{children:[b.jsx("textarea",{value:l,onChange:C,ref:f,rows:i,style:a,...c}),b.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:{...rN.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(Bb.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 Or({props:e,states:t,muiFormControl:n}){return t.reduce((o,r)=>(o[r]=e[r],n&&typeof e[r]>"u"&&(o[r]=n[r]),o),{})}const Ys=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ys.displayName="FormControlContext");function zn(){return P.useContext(Ys)}function ph(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Hi(e,t=!1){return e&&(ph(e.value)&&e.value!==""||t&&ph(e.defaultValue)&&e.defaultValue!=="")}function iN(e){return e.startAdornment}function aN(e){return Te("MuiInputBase",e)}const Sr=Ce("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var hh;const Ca=(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${ce(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ta=(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]},lN=e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:i,focused:a,formControl:l,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:f,size:p,startAdornment:h,type:m}=e,g={root:["root",`color${ce(n)}`,o&&"disabled",r&&"error",c&&"fullWidth",a&&"focused",l&&"formControl",p&&p!=="medium"&&`size${ce(p)}`,d&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",o&&"disabled",m==="search"&&"inputTypeSearch",d&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return we(g,aN,t)},Pa=be("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ca})(Xe(({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",[`&.${Sr.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%"}}]}))),Ea=be("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ta})(Xe(({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})},o={opacity:"0 !important"},r=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] + .${Sr.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":r,"&:focus::-moz-placeholder":r,"&:focus::-ms-input-placeholder":r},[`&.${Sr.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{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"}}]}})),mh=J1({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Ma=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:i,autoFocus:a,className:l,color:c,components:u={},componentsProps:d={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:h,endAdornment:m,error:g,fullWidth:y=!1,id:v,inputComponent:C="input",inputProps:x={},inputRef:S,margin:T,maxRows:E,minRows:M,multiline:A=!1,name:k,onBlur:$,onChange:j,onClick:w,onFocus:L,onKeyDown:D,onKeyUp:I,placeholder:O,readOnly:N,renderSuffix:F,rows:V,size:B,slotProps:R={},slots:Y={},startAdornment:G,type:Z="text",value:re,...X}=o,Q=x.value!=null?x.value:re,{current:K}=P.useRef(Q!=null),te=P.useRef(),z=P.useCallback(Se=>{process.env.NODE_ENV!=="production"&&Se&&Se.nodeName!=="INPUT"&&!Se.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(`
231
+ `))},[]),H=$e(te,S,x.ref,z),[W,ee]=P.useState(!1),J=zn();process.env.NODE_ENV!=="production"&&P.useEffect(()=>{if(J)return J.registerEffect()},[J]);const ie=Or({props:o,muiFormControl:J,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ie.focused=J?J.focused:W,P.useEffect(()=>{!J&&p&&W&&(ee(!1),$&&$())},[J,p,W,$]);const ne=J&&J.onFilled,de=J&&J.onEmpty,se=P.useCallback(Se=>{Hi(Se)?ne&&ne():de&&de()},[ne,de]);Ct(()=>{K&&se({value:Q})},[Q,se,K]);const ue=Se=>{L&&L(Se),x.onFocus&&x.onFocus(Se),J&&J.onFocus?J.onFocus(Se):ee(!0)},le=Se=>{$&&$(Se),x.onBlur&&x.onBlur(Se),J&&J.onBlur?J.onBlur(Se):ee(!1)},fe=(Se,...Be)=>{if(!K){const ze=Se.target||te.current;if(ze==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.":Tn(1));se({value:ze.value})}x.onChange&&x.onChange(Se,...Be),j&&j(Se,...Be)};P.useEffect(()=>{se(te.current)},[]);const me=Se=>{te.current&&Se.currentTarget===Se.target&&te.current.focus(),w&&w(Se)};let Ie=C,Oe=x;A&&Ie==="input"&&(V?(process.env.NODE_ENV!=="production"&&(M||E)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Oe={type:void 0,minRows:V,maxRows:V,...Oe}):Oe={type:void 0,maxRows:E,minRows:M,...Oe},Ie=Bb);const qe=Se=>{se(Se.animationName==="mui-auto-fill-cancel"?te.current:{value:"x"})};P.useEffect(()=>{J&&J.setAdornedStart(!!G)},[J,G]);const tt={...o,color:ie.color||"primary",disabled:ie.disabled,endAdornment:m,error:ie.error,focused:ie.focused,formControl:J,fullWidth:y,hiddenLabel:ie.hiddenLabel,multiline:A,size:ie.size,startAdornment:G,type:Z},St=lN(tt),Tt=Y.root||u.Root||Pa,Ee=R.root||d.root||{},Me=Y.input||u.Input||Ea;return Oe={...Oe,...R.input??d.input},b.jsxs(P.Fragment,{children:[!h&&typeof mh=="function"&&(hh||(hh=b.jsx(mh,{}))),b.jsxs(Tt,{...Ee,ref:n,onClick:me,...X,...!mr(Tt)&&{ownerState:{...tt,...Ee.ownerState}},className:ye(St.root,Ee.className,l,N&&"MuiInputBase-readOnly"),children:[G,b.jsx(Ys.Provider,{value:null,children:b.jsx(Me,{"aria-invalid":ie.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:f,disabled:ie.disabled,id:v,onAnimationStart:qe,name:k,placeholder:O,readOnly:N,required:ie.required,rows:V,value:Q,onKeyDown:D,onKeyUp:I,type:Z,...Oe,...!mr(Me)&&{as:Ie,ownerState:{...tt,...Oe.ownerState}},ref:H,className:ye(St.input,Oe.className,N&&"MuiInputBase-readOnly"),onBlur:le,onChange:fe,onFocus:ue})}),m,F?F({...ie,startAdornment:G}):null]})]})});process.env.NODE_ENV!=="production"&&(Ma.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:va,inputProps:s.object,inputRef:xt,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 cN(e){return Te("MuiInput",e)}const Fr={...Sr,...Ce("MuiInput",["root","underline","input"])},uN=e=>{const{classes:t,disableUnderline:n}=e,r=we({root:["root",!n&&"underline"],input:["input"]},cN,t);return{...t,...r}},dN=be(Pa,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ca(e,t),!n.disableUnderline&&t.underline]}})(Xe(({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:o})=>o.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:o})=>!o.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"},[`&.${Fr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Fr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Fr.disabled}, .${Fr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Fr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Yt()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),fN=be(Ea,{name:"MuiInput",slot:"Input",overridesResolver:Ta})({}),Oa=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiInput"}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:l=!1,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:f={},type:p="text",...h}=o,m=uN(o),y={root:{ownerState:{disableUnderline:r}}},v=d??a?At(d??a,y):y,C=f.root??i.Root??dN,x=f.input??i.Input??fN;return b.jsx(Ma,{slots:{root:C,input:x},slotProps:v,fullWidth:l,inputComponent:c,multiline:u,ref:n,type:p,...h,classes:m})});process.env.NODE_ENV!=="production"&&(Oa.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:xt,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});Oa.muiName="Input";function pN(e){return Te("MuiFilledInput",e)}const vo={...Sr,...Ce("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},hN=e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:r,size:i,hiddenLabel:a,multiline:l}=e,c={root:["root",!n&&"underline",o&&"adornedStart",r&&"adornedEnd",i==="small"&&`size${ce(i)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},u=we(c,pN,t);return{...t,...u}},mN=be(Pa,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ca(e,t),!n.disableUnderline&&t.underline]}})(Xe(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=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:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${vo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${vo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.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"},[`&.${vo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${vo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${vo.disabled}, .${vo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${vo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Yt()).map(([a])=>{var l;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(l=(e.vars||e).palette[a])==null?void 0:l.main}`}}}}),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:l})=>a.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),gN=be(Ea,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ta})(Xe(({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}}]}))),ka=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:l=!1,hiddenLabel:c,inputComponent:u="input",multiline:d=!1,slotProps:f,slots:p={},type:h="text",...m}=o,g={...o,disableUnderline:r,fullWidth:l,inputComponent:u,multiline:d,type:h},y=hN(o),v={root:{ownerState:g},input:{ownerState:g}},C=f??a?At(v,f??a):v,x=p.root??i.Root??mN,S=p.input??i.Input??gN;return b.jsx(Ma,{slots:{root:x,input:S},slotProps:C,fullWidth:l,inputComponent:u,multiline:d,ref:n,type:h,...m,classes:y})});process.env.NODE_ENV!=="production"&&(ka.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:xt,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});ka.muiName="Input";var gh;const yN=be("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:pn})({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%"}),bN=be("legend",{name:"MuiNotchedOutlined",shouldForwardProp:pn})(Xe(({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 zb(e){const{children:t,classes:n,className:o,label:r,notched:i,...a}=e,l=r!=null&&r!=="",c={...e,notched:i,withLabel:l};return b.jsx(yN,{"aria-hidden":!0,className:o,ownerState:c,...a,children:b.jsx(bN,{ownerState:c,children:l?b.jsx("span",{children:r}):gh||(gh=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(zb.propTypes={children:s.node,classes:s.object,className:s.string,label:s.node,notched:s.bool.isRequired,style:s.object});function vN(e){return Te("MuiOutlinedInput",e)}const bn={...Sr,...Ce("MuiOutlinedInput",["root","notchedOutline","input"])},xN=e=>{const{classes:t}=e,o=we({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},vN,t);return{...t,...o}},SN=be(Pa,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ca})(Xe(({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 .${bn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${bn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${bn.focused} .${bn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Yt()).map(([n])=>({props:{color:n},style:{[`&.${bn.focused} .${bn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${bn.error} .${bn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${bn.disabled} .${bn.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:o})=>n.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),wN=be(zb,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Xe(({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}})),CN=be(Ea,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ta})(Xe(({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}}]}))),Da=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiOutlinedInput"}),{components:r={},fullWidth:i=!1,inputComponent:a="input",label:l,multiline:c=!1,notched:u,slots:d={},slotProps:f={},type:p="text",...h}=o,m=xN(o),g=zn(),y=Or({props:o,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...o,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:g,fullWidth:i,hiddenLabel:y.hiddenLabel,multiline:c,size:y.size,type:p},C=d.root??r.Root??SN,x=d.input??r.Input??CN,[S,T]=it("notchedOutline",{elementType:wN,className:m.notchedOutline,shouldForwardComponentProp:!0,ownerState:v,externalForwardedProps:{slots:d,slotProps:f},additionalProps:{label:l!=null&&l!==""&&y.required?b.jsxs(P.Fragment,{children:[l," ","*"]}):l}});return b.jsx(Ma,{slots:{root:C,input:x},slotProps:f,renderSuffix:E=>b.jsx(S,{...T,notched:typeof u<"u"?u:!!(E.startAdornment||E.filled||E.focused)}),fullWidth:i,inputComponent:a,multiline:c,ref:n,type:p,...h,classes:{...m,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Da.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:xt,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});Da.muiName="Input";function TN(e){return Te("MuiFormLabel",e)}const ls=Ce("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),PN=e=>{const{classes:t,color:n,focused:o,disabled:r,error:i,filled:a,required:l}=e,c={root:["root",`color${ce(n)}`,r&&"disabled",i&&"error",a&&"filled",o&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return we(c,TN,t)},EN=be("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Xe(({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(Yt()).map(([t])=>({props:{color:t},style:{[`&.${ls.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ls.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ls.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),MN=be("span",{name:"MuiFormLabel",slot:"Asterisk"})(Xe(({theme:e})=>({[`&.${ls.error}`]:{color:(e.vars||e).palette.error.main}}))),Wb=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiFormLabel"}),{children:r,className:i,color:a,component:l="label",disabled:c,error:u,filled:d,focused:f,required:p,...h}=o,m=zn(),g=Or({props:o,muiFormControl:m,states:["color","required","focused","disabled","error","filled"]}),y={...o,color:g.color||"primary",component:l,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required},v=PN(y);return b.jsxs(EN,{as:l,ownerState:y,className:ye(v.root,i),ref:n,...h,children:[r,g.required&&b.jsxs(MN,{ownerState:y,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Wb.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 ON(e){return Te("MuiInputLabel",e)}Ce("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const kN=e=>{const{classes:t,formControl:n,size:o,shrink:r,disableAnimation:i,variant:a,required:l}=e,c={root:["root",n&&"formControl",!i&&"animated",r&&"shrink",o&&o!=="medium"&&`size${ce(o)}`,a],asterisk:[l&&"asterisk"]},u=we(c,ON,t);return{...t,...u}},DN=be(Wb,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ls.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]]}})(Xe(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Zu=P.forwardRef(function(t,n){const o=Fe({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,margin:i,shrink:a,variant:l,className:c,...u}=o,d=zn();let f=a;typeof f>"u"&&d&&(f=d.filled||d.focused||d.adornedStart);const p=Or({props:o,muiFormControl:d,states:["size","variant","required","focused"]}),h={...o,disableAnimation:r,formControl:d,shrink:f,size:p.size,variant:p.variant,required:p.required,focused:p.focused},m=kN(h);return b.jsx(DN,{"data-shrink":f,ref:n,className:ye(m.root,c),...u,ownerState:h,classes:m})});process.env.NODE_ENV!=="production"&&(Zu.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 RN(e){return Te("MuiFormControl",e)}Ce("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const IN=e=>{const{classes:t,margin:n,fullWidth:o}=e,r={root:["root",n!=="none"&&`margin${ce(n)}`,o&&"fullWidth"]};return we(r,RN,t)},AN=be("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${ce(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%"}}]}),Xu=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiFormControl"}),{children:r,className:i,color:a="primary",component:l="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:f=!1,hiddenLabel:p=!1,margin:h="none",required:m=!1,size:g="medium",variant:y="outlined",...v}=o,C={...o,color:a,component:l,disabled:c,error:u,fullWidth:f,hiddenLabel:p,margin:h,required:m,size:g,variant:y},x=IN(C),[S,T]=P.useState(()=>{let O=!1;return r&&P.Children.forEach(r,N=>{if(!ns(N,["Input","Select"]))return;const F=ns(N,["Select"])?N.props.input:N;F&&iN(F.props)&&(O=!0)}),O}),[E,M]=P.useState(()=>{let O=!1;return r&&P.Children.forEach(r,N=>{ns(N,["Input","Select"])&&(Hi(N.props,!0)||Hi(N.props.inputProps,!0))&&(O=!0)}),O}),[A,k]=P.useState(!1);c&&A&&k(!1);const $=d!==void 0&&!c?d:A;let j;const w=P.useRef(!1);process.env.NODE_ENV!=="production"&&(j=()=>(w.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
232
+ `)),w.current=!0,()=>{w.current=!1}));const L=P.useCallback(()=>{M(!0)},[]),D=P.useCallback(()=>{M(!1)},[]),I=P.useMemo(()=>({adornedStart:S,setAdornedStart:T,color:a,disabled:c,error:u,filled:E,focused:$,fullWidth:f,hiddenLabel:p,size:g,onBlur:()=>{k(!1)},onFocus:()=>{k(!0)},onEmpty:D,onFilled:L,registerEffect:j,required:m,variant:y}),[S,a,c,u,E,$,f,p,j,D,L,m,g,y]);return b.jsx(Ys.Provider,{value:I,children:b.jsx(AN,{as:l,ownerState:C,className:ye(x.root,i),ref:n,...v,children:r})})});process.env.NODE_ENV!=="production"&&(Xu.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 NN(e){return Te("MuiFormHelperText",e)}const yh=Ce("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var bh;const _N=e=>{const{classes:t,contained:n,size:o,disabled:r,error:i,filled:a,focused:l,required:c}=e,u={root:["root",r&&"disabled",i&&"error",o&&`size${ce(o)}`,n&&"contained",l&&"focused",a&&"filled",c&&"required"]};return we(u,NN,t)},jN=be("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ce(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Xe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${yh.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${yh.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}}]}))),Qu=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiFormHelperText"}),{children:r,className:i,component:a="p",disabled:l,error:c,filled:u,focused:d,margin:f,required:p,variant:h,...m}=o,g=zn(),y=Or({props:o,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),v={...o,component:a,contained:y.variant==="filled"||y.variant==="outlined",variant:y.variant,size:y.size,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required};delete v.ownerState;const C=_N(v);return b.jsx(jN,{as:a,className:ye(C.root,i),ref:n,...m,ownerState:v,children:r===" "?bh||(bh=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):r})});process.env.NODE_ENV!=="production"&&(Qu.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 Ub(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function xl(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function vh(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Hb(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 Br(e,t,n,o,r,i){let a=!1,l=r(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const c=o?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Hb(l,i)||c)l=r(e,l,n);else return l.focus(),!0}return!1}const Yb=P.forwardRef(function(t,n){const{actions:o,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:f="selectedMenu",...p}=t,h=P.useRef(null),m=P.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ct(()=>{r&&h.current.focus()},[r]),P.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(x,{direction:S})=>{const T=!h.current.style.width;if(x.clientHeight<h.current.clientHeight&&T){const E=`${Ub(jn(x))}px`;h.current.style[S==="rtl"?"paddingLeft":"paddingRight"]=E,h.current.style.width=`calc(100% + ${E})`}return h.current}}),[]);const g=x=>{const S=h.current,T=x.key;if(x.ctrlKey||x.metaKey||x.altKey){d&&d(x);return}const M=Qr(Pt(S));if(T==="ArrowDown")x.preventDefault(),Br(S,M,u,c,xl);else if(T==="ArrowUp")x.preventDefault(),Br(S,M,u,c,vh);else if(T==="Home")x.preventDefault(),Br(S,null,u,c,xl);else if(T==="End")x.preventDefault(),Br(S,null,u,c,vh);else if(T.length===1){const A=m.current,k=T.toLowerCase(),$=performance.now();A.keys.length>0&&($-A.lastTime>500?(A.keys=[],A.repeating=!0,A.previousKeyMatched=!0):A.repeating&&k!==A.keys[0]&&(A.repeating=!1)),A.lastTime=$,A.keys.push(k);const j=M&&!A.repeating&&Hb(M,A);A.previousKeyMatched&&(j||Br(S,M,!1,c,xl,A))?x.preventDefault():A.previousKeyMatched=!1}d&&d(x)},y=$e(h,n);let v=-1;P.Children.forEach(a,(x,S)=>{if(!P.isValidElement(x)){v===S&&(v+=1,v>=a.length&&(v=-1));return}process.env.NODE_ENV!=="production"&&Lo.isFragment(x)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
233
+ `)),x.props.disabled||(f==="selectedMenu"&&x.props.selected||v===-1)&&(v=S),v===S&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(v+=1,v>=a.length&&(v=-1))});const C=P.Children.map(a,(x,S)=>{if(S===v){const T={};return i&&(T.autoFocus=!0),x.props.tabIndex===void 0&&f==="selectedMenu"&&(T.tabIndex=0),P.cloneElement(x,T)}return x});return b.jsx(Yu,{role:"menu",ref:y,className:l,onKeyDown:g,tabIndex:r?0:-1,...p,children:C})});process.env.NODE_ENV!=="production"&&(Yb.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 LN(e){const t=Pt(e);return t.body===e?jn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function cs(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function xh(e){return parseFloat(jn(e).getComputedStyle(e).paddingRight)||0}function $N(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function Sh(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,a=>{const l=!i.includes(a),c=!$N(a);l&&c&&cs(a,r)})}function Sl(e,t){let n=-1;return e.some((o,r)=>t(o)?(n=r,!0):!1),n}function VN(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(LN(o)){const a=Ub(jn(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${xh(o)+a}px`;const l=Pt(o).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${xh(c)+a}px`})}let i;if(o.parentNode instanceof DocumentFragment)i=Pt(o).body;else{const a=o.parentElement,l=jn(o);i=(a==null?void 0:a.nodeName)==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:o}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function FN(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class BN{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&cs(t.modalRef,!1);const r=FN(n);Sh(n,t.mount,t.modalRef,r,!0);const i=Sl(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),o)}mount(t,n){const o=Sl(this.containers,i=>i.modals.includes(t)),r=this.containers[o];r.restore||(r.restore=VN(r,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const r=Sl(this.containers,a=>a.modals.includes(t)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(o,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&cs(t.modalRef,n),Sh(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&cs(a.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function zN(e){return Te("MuiBackdrop",e)}Ce("MuiBackdrop",["root","invisible"]);const WN=e=>{const{classes:t,invisible:n}=e;return we({root:["root",n&&"invisible"]},zN,t)},UN=be("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"}}]}),Ju=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiBackdrop"}),{children:r,className:i,component:a="div",invisible:l=!1,open:c,components:u={},componentsProps:d={},slotProps:f={},slots:p={},TransitionComponent:h,transitionDuration:m,...g}=o,y={...o,component:a,invisible:l},v=WN(y),C={transition:h,root:u.Root,...p},x={...d,...f},S={component:a,slots:C,slotProps:x},[T,E]=it("root",{elementType:UN,externalForwardedProps:S,className:ye(v.root,i),ownerState:y}),[M,A]=it("transition",{elementType:no,externalForwardedProps:S,ownerState:y});return b.jsx(M,{in:c,timeout:m,...g,...A,children:b.jsx(T,{"aria-hidden":!0,...E,ref:n,children:r})})});process.env.NODE_ENV!=="production"&&(Ju.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 HN(e){return typeof e=="function"?e():e}function YN(e){return e?e.props.hasOwnProperty("in"):!1}const wh=()=>{},li=new BN;function qN(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:a,children:l,onClose:c,open:u,rootRef:d}=e,f=P.useRef({}),p=P.useRef(null),h=P.useRef(null),m=$e(h,d),[g,y]=P.useState(!u),v=YN(l);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const x=()=>Pt(p.current),S=()=>(f.current.modalRef=h.current,f.current.mount=p.current,f.current),T=()=>{li.mount(S(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},E=he(()=>{const I=HN(t)||x().body;li.add(S(),I),h.current&&T()}),M=()=>li.isTopModal(S()),A=he(I=>{p.current=I,I&&(u&&M()?T():h.current&&cs(h.current,C))}),k=P.useCallback(()=>{li.remove(S(),C)},[C]);P.useEffect(()=>()=>{k()},[k]),P.useEffect(()=>{u?E():(!v||!r)&&k()},[u,k,v,r,E]);const $=I=>O=>{var N;(N=I.onKeyDown)==null||N.call(I,O),!(O.key!=="Escape"||O.which===229||!M())&&(n||(O.stopPropagation(),c&&c(O,"escapeKeyDown")))},j=I=>O=>{var N;(N=I.onClick)==null||N.call(I,O),O.target===O.currentTarget&&c&&c(O,"backdropClick")};return{getRootProps:(I={})=>{const O=Xy(e);delete O.onTransitionEnter,delete O.onTransitionExited;const N={...O,...I};return{role:"presentation",...N,onKeyDown:$(N),ref:m}},getBackdropProps:(I={})=>{const O=I;return{"aria-hidden":!0,...O,onClick:j(O),open:u}},getTransitionProps:()=>{const I=()=>{y(!1),i&&i()},O=()=>{y(!0),a&&a(),r&&k()};return{onEnter:Cd(I,(l==null?void 0:l.props.onEnter)??wh),onExited:Cd(O,(l==null?void 0:l.props.onExited)??wh)}},rootRef:m,portalRef:A,isTopModal:M,exited:g,hasTransition:v}}function GN(e){return Te("MuiModal",e)}Ce("MuiModal",["root","hidden","backdrop"]);const KN=e=>{const{open:t,exited:n,classes:o}=e;return we({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},GN,o)},ZN=be("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Xe(({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"}}]}))),XN=be(Ju,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),ed=P.forwardRef(function(t,n){const o=Fe({name:"MuiModal",props:t}),{BackdropComponent:r=XN,BackdropProps:i,classes:a,className:l,closeAfterTransition:c=!1,children:u,container:d,component:f,components:p={},componentsProps:h={},disableAutoFocus:m=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:y=!1,disablePortal:v=!1,disableRestoreFocus:C=!1,disableScrollLock:x=!1,hideBackdrop:S=!1,keepMounted:T=!1,onClose:E,onTransitionEnter:M,onTransitionExited:A,open:k,slotProps:$={},slots:j={},theme:w,...L}=o,D={...o,closeAfterTransition:c,disableAutoFocus:m,disableEnforceFocus:g,disableEscapeKeyDown:y,disablePortal:v,disableRestoreFocus:C,disableScrollLock:x,hideBackdrop:S,keepMounted:T},{getRootProps:I,getBackdropProps:O,getTransitionProps:N,portalRef:F,isTopModal:V,exited:B,hasTransition:R}=qN({...D,rootRef:n}),Y={...D,exited:B},G=KN(Y),Z={};if(u.props.tabIndex===void 0&&(Z.tabIndex="-1"),R){const{onEnter:z,onExited:H}=N();Z.onEnter=z,Z.onExited=H}const re={slots:{root:p.Root,backdrop:p.Backdrop,...j},slotProps:{...h,...$}},[X,Q]=it("root",{ref:n,elementType:ZN,externalForwardedProps:{...re,...L,component:f},getSlotProps:I,ownerState:Y,className:ye(l,G==null?void 0:G.root,!Y.open&&Y.exited&&(G==null?void 0:G.hidden))}),[K,te]=it("backdrop",{ref:i==null?void 0:i.ref,elementType:r,externalForwardedProps:re,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:z=>O({...z,onClick:H=>{z!=null&&z.onClick&&z.onClick(H)}}),className:ye(i==null?void 0:i.className,G==null?void 0:G.backdrop),ownerState:Y});return!T&&!k&&(!R||B)?null:b.jsx(Cs,{ref:F,container:d,disablePortal:v,children:b.jsxs(X,{...Q,children:[!S&&r?b.jsx(K,{...te}):null,b.jsx(Ts,{disableEnforceFocus:g,disableAutoFocus:m,disableRestoreFocus:C,isEnabled:V,open:k,children:P.cloneElement(u,Z)})]})})});process.env.NODE_ENV!=="production"&&(ed.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:Vs.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([Vn,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 QN(e){return Te("MuiPopover",e)}Ce("MuiPopover",["root","paper"]);function Ch(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Th(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Ph(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Jr(e){return typeof e=="function"?e():e}const JN=e=>{const{classes:t}=e;return we({root:["root"],paper:["paper"]},QN,t)},e_=be(ed,{name:"MuiPopover",slot:"Root"})({}),qb=be(zs,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Gb=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiPopover"}),{action:r,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:u,className:d,container:f,elevation:p=8,marginThreshold:h=16,open:m,PaperProps:g={},slots:y={},slotProps:v={},transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:x,transitionDuration:S="auto",TransitionProps:T={},disableScrollLock:E=!1,...M}=o,A=P.useRef(),k={...o,anchorOrigin:a,anchorReference:c,elevation:p,marginThreshold:h,transformOrigin:C,TransitionComponent:x,transitionDuration:S,TransitionProps:T},$=JN(k),j=P.useCallback(()=>{if(c==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const z=Jr(i),H=z&&z.nodeType===1?z:Pt(A.current).body,W=H.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const ee=H.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ee.top===0&&ee.left===0&&ee.right===0&&ee.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(`
234
+ `))}return{top:W.top+Ch(W,a.vertical),left:W.left+Th(W,a.horizontal)}},[i,a.horizontal,a.vertical,l,c]),w=P.useCallback(z=>({vertical:Ch(z,C.vertical),horizontal:Th(z,C.horizontal)}),[C.horizontal,C.vertical]),L=P.useCallback(z=>{const H={width:z.offsetWidth,height:z.offsetHeight},W=w(H);if(c==="none")return{top:null,left:null,transformOrigin:Ph(W)};const ee=j();let J=ee.top-W.vertical,ie=ee.left-W.horizontal;const ne=J+H.height,de=ie+H.width,se=jn(Jr(i)),ue=se.innerHeight-h,le=se.innerWidth-h;if(h!==null&&J<h){const fe=J-h;J-=fe,W.vertical+=fe}else if(h!==null&&ne>ue){const fe=ne-ue;J-=fe,W.vertical+=fe}if(process.env.NODE_ENV!=="production"&&H.height>ue&&H.height&&ue&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${H.height-ue}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
235
+ `)),h!==null&&ie<h){const fe=ie-h;ie-=fe,W.horizontal+=fe}else if(de>le){const fe=de-le;ie-=fe,W.horizontal+=fe}return{top:`${Math.round(J)}px`,left:`${Math.round(ie)}px`,transformOrigin:Ph(W)}},[i,c,j,w,h]),[D,I]=P.useState(m),O=P.useCallback(()=>{const z=A.current;if(!z)return;const H=L(z);H.top!==null&&z.style.setProperty("top",H.top),H.left!==null&&(z.style.left=H.left),z.style.transformOrigin=H.transformOrigin,I(!0)},[L]);P.useEffect(()=>(E&&window.addEventListener("scroll",O),()=>window.removeEventListener("scroll",O)),[i,E,O]);const N=()=>{O()},F=()=>{I(!1)};P.useEffect(()=>{m&&O()}),P.useImperativeHandle(r,()=>m?{updatePosition:()=>{O()}}:null,[m,O]),P.useEffect(()=>{if(!m)return;const z=ym(()=>{O()}),H=jn(Jr(i));return H.addEventListener("resize",z),()=>{z.clear(),H.removeEventListener("resize",z)}},[i,m,O]);let V=S;const B={slots:{transition:x,...y},slotProps:{transition:T,paper:g,...v}},[R,Y]=it("transition",{elementType:xs,externalForwardedProps:B,ownerState:k,getSlotProps:z=>({...z,onEntering:(H,W)=>{var ee;(ee=z.onEntering)==null||ee.call(z,H,W),N()},onExited:H=>{var W;(W=z.onExited)==null||W.call(z,H),F()}}),additionalProps:{appear:!0,in:m}});S==="auto"&&!R.muiSupportAuto&&(V=void 0);const G=f||(i?Pt(Jr(i)).body:void 0),[Z,{slots:re,slotProps:X,...Q}]=it("root",{ref:n,elementType:e_,externalForwardedProps:{...B,...M},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:y.backdrop},slotProps:{backdrop:iS(typeof v.backdrop=="function"?v.backdrop(k):v.backdrop,{invisible:!0})},container:G,open:m},ownerState:k,className:ye($.root,d)}),[K,te]=it("paper",{ref:A,className:$.paper,elementType:qb,externalForwardedProps:B,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:D?void 0:{opacity:0}},ownerState:k});return b.jsx(Z,{...Q,...!mr(Z)&&{slots:re,slotProps:X,disableScrollLock:E},children:b.jsx(R,{...Y,timeout:V,children:b.jsx(K,{...te,children:u})})})});process.env.NODE_ENV!=="production"&&(Gb.propTypes={action:xt,anchorEl:Bn(s.oneOfType([Vn,s.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Jr(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&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(`
236
236
  `))}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(`
237
- `))}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([Vn,s.func]),disableScrollLock:s.bool,elevation:sb,marginThreshold:s.number,onClose:s.func,open:s.bool.isRequired,PaperProps:s.shape({component:ya}),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 rN(e){return Te("MuiMenu",e)}we("MuiMenu",["root","paper","list"]);const sN={vertical:"top",horizontal:"right"},iN={vertical:"top",horizontal:"left"},aN=e=>{const{classes:t}=e;return Ce({root:["root"],paper:["paper"],list:["list"]},rN,t)},lN=be(Gb,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),cN=be(qb,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),uN=be(Yb,{name:"MuiMenu",slot:"List"})({outline:0}),Kb=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiMenu"}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:f={},PopoverClasses:p,transitionDuration:h="auto",TransitionProps:{onEntering:m,...g}={},variant:y="selectedMenu",slots:v={},slotProps:w={},...x}=o,S=fn(),T={...o,autoFocus:r,disableAutoFocusItem:l,MenuListProps:c,onEntering:m,PaperProps:f,transitionDuration:h,TransitionProps:g,variant:y},E=aN(T),M=r&&!l&&d,_=P.useRef(null),D=(V,B)=>{_.current&&_.current.adjustStyleForScrollbar(V,{direction:S?"rtl":"ltr"}),m&&m(V,B)},$=V=>{V.key==="Tab"&&(V.preventDefault(),u&&u(V,"tabKeyDown"))};let j=-1;P.Children.map(i,(V,B)=>{P.isValidElement(V)&&(process.env.NODE_ENV!=="production"&&Lo.isFragment(V)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
238
- `)),V.props.disabled||(y==="selectedMenu"&&V.props.selected||j===-1)&&(j=B))});const C={slots:v,slotProps:{list:c,transition:g,paper:f,...w}},L=Le({elementType:v.root,externalSlotProps:w.root,ownerState:T,className:[E.root,a]}),[k,I]=it("paper",{className:E.paper,elementType:cN,externalForwardedProps:C,shouldForwardComponentProp:!0,ownerState:T}),[O,N]=it("list",{className:ye(E.list,c.className),elementType:uN,shouldForwardComponentProp:!0,externalForwardedProps:C,getSlotProps:V=>({...V,onKeyDown:B=>{var R;$(B),(R=V.onKeyDown)==null||R.call(V,B)}}),ownerState:T}),F=typeof C.slotProps.transition=="function"?C.slotProps.transition(T):C.slotProps.transition;return b.jsx(lN,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?sN:iN,slots:{root:v.root,paper:k,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:L,paper:I,backdrop:typeof w.backdrop=="function"?w.backdrop(T):w.backdrop,transition:{...F,onEntering:(...V)=>{var B;D(...V),(B=F==null?void 0:F.onEntering)==null||B.call(F,...V)}}},open:d,ref:n,transitionDuration:h,ownerState:T,...x,classes:p,children:b.jsx(O,{actions:_,autoFocus:r&&(j===-1||l),autoFocusItem:M,variant:y,...N,children:i})})});process.env.NODE_ENV!=="production"&&(Kb.propTypes={anchorEl:s.oneOfType([Vn,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 dN(e){return Te("MuiNativeSelect",e)}const td=we("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),fN=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:a}=e,l={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${ce(n)}`,i&&"iconOpen",o&&"disabled"]};return Ce(l,dN,t)},Zb=be("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${td.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}}}]})),pN=be(Zb,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:pn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${td.multiple}`]:t.multiple}]}})({}),Xb=be("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${td.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}}]})),hN=be(Xb,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ce(n.variant)}`],n.open&&t.iconOpen]}})({}),Qb=P.forwardRef(function(t,n){const{className:o,disabled:r,error:i,IconComponent:a,inputRef:l,variant:c="standard",...u}=t,d={...t,disabled:r,variant:c,error:i},f=fN(d);return b.jsxs(P.Fragment,{children:[b.jsx(pN,{ownerState:d,className:ye(f.select,o),disabled:r,ref:l||n,...u}),t.multiple?null:b.jsx(hN,{as:a,ownerState:d,className:f.icon})]})});process.env.NODE_ENV!=="production"&&(Qb.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:xt,multiple:s.bool,name:s.string,onChange:s.func,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});function Jb(e){return Te("MuiSelect",e)}const zr=we("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Eh;const mN=be(Zb,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${zr.select}`]:t.select},{[`&.${zr.select}`]:t[n.variant]},{[`&.${zr.error}`]:t.error},{[`&.${zr.multiple}`]:t.multiple}]}})({[`&.${zr.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),gN=be(Xb,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ce(n.variant)}`],n.open&&t.iconOpen]}})({}),yN=be("input",{shouldForwardProp:e=>gm(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Mh(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function bN(e){return e==null||typeof e=="string"&&!e.trim()}const vN=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:a}=e,l={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${ce(n)}`,i&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return Ce(l,Jb,t)},ev=P.forwardRef(function(t,n){var ut,yt,Et,hn;const{"aria-describedby":o,"aria-label":r,autoFocus:i,autoWidth:a,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:f,displayEmpty:p,error:h=!1,IconComponent:m,inputRef:g,labelId:y,MenuProps:v={},multiple:w,name:x,onBlur:S,onChange:T,onClose:E,onFocus:M,onKeyDown:_,onMouseDown:D,onOpen:$,open:j,readOnly:C,renderValue:L,required:k,SelectDisplayProps:I={},tabIndex:O,type:N,value:F,variant:V="standard",...B}=t,[R,Y]=Jn({controlled:F,default:d,name:"Select"}),[G,Z]=Jn({controlled:j,default:u,name:"Select"}),re=P.useRef(null),X=P.useRef(null),[Q,K]=P.useState(null),{current:te}=P.useRef(j!=null),[z,H]=P.useState(),W=$e(n,g),ee=P.useCallback(ge=>{X.current=ge,ge&&K(ge)},[]),J=Q==null?void 0:Q.parentNode;P.useImperativeHandle(W,()=>({focus:()=>{X.current.focus()},node:re.current,value:R}),[R]);const ie=Q!==null&&G;P.useEffect(()=>{if(!ie||!J||a||typeof ResizeObserver>"u")return;const ge=new ResizeObserver(()=>{H(J.clientWidth)});return ge.observe(J),()=>{ge.disconnect()}},[ie,J,a]),P.useEffect(()=>{u&&G&&Q&&!te&&(H(a?null:J.clientWidth),X.current.focus())},[Q,a]),P.useEffect(()=>{i&&X.current.focus()},[i]),P.useEffect(()=>{if(!y)return;const ge=Pt(X.current).getElementById(y);if(ge){const Ae=()=>{getSelection().isCollapsed&&X.current.focus()};return ge.addEventListener("click",Ae),()=>{ge.removeEventListener("click",Ae)}}},[y]);const ne=(ge,Ae)=>{ge?$&&$(Ae):E&&E(Ae),te||(H(a?null:J.clientWidth),Z(ge))},de=ge=>{D==null||D(ge),ge.button===0&&(ge.preventDefault(),X.current.focus(),ne(!0,ge))},se=ge=>{ne(!1,ge)},ue=P.Children.toArray(l),le=ge=>{const Ae=ue.find(at=>at.props.value===ge.target.value);Ae!==void 0&&(Y(Ae.props.value),T&&T(ge,Ae))},fe=ge=>Ae=>{let at;if(Ae.currentTarget.hasAttribute("tabindex")){if(w){at=Array.isArray(R)?R.slice():[];const mn=R.indexOf(ge.props.value);mn===-1?at.push(ge.props.value):at.splice(mn,1)}else at=ge.props.value;if(ge.props.onClick&&ge.props.onClick(Ae),R!==at&&(Y(at),T)){const mn=Ae.nativeEvent||Ae,kr=new mn.constructor(mn.type,mn);Object.defineProperty(kr,"target",{writable:!0,value:{value:at,name:x}}),T(kr,ge)}w||ne(!1,Ae)}},me=ge=>{C||([" ","ArrowUp","ArrowDown","Enter"].includes(ge.key)&&(ge.preventDefault(),ne(!0,ge)),_==null||_(ge))},Ie=ge=>{!ie&&S&&(Object.defineProperty(ge,"target",{writable:!0,value:{value:R,name:x}}),S(ge))};delete B["aria-invalid"];let Oe,qe;const tt=[];let St=!1,Tt=!1;(Hi({value:R})||p)&&(L?Oe=L(R):St=!0);const Ee=ue.map(ge=>{if(!P.isValidElement(ge))return null;process.env.NODE_ENV!=="production"&&Lo.isFragment(ge)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
239
- `));let Ae;if(w){if(!Array.isArray(R))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Tn(2));Ae=R.some(at=>Mh(at,ge.props.value)),Ae&&St&&tt.push(ge.props.children)}else Ae=Mh(R,ge.props.value),Ae&&St&&(qe=ge.props.children);return Ae&&(Tt=!0),P.cloneElement(ge,{"aria-selected":Ae?"true":"false",onClick:fe(ge),onKeyUp:at=>{at.key===" "&&at.preventDefault(),ge.props.onKeyUp&&ge.props.onKeyUp(at)},role:"option",selected:Ae,value:void 0,"data-value":ge.props.value})});process.env.NODE_ENV!=="production"&&P.useEffect(()=>{if(!Tt&&!w&&R!==""){const ge=ue.map(Ae=>Ae.props.value);console.warn([`MUI: You have provided an out-of-range value \`${R}\` for the select ${x?`(name="${x}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${ge.filter(Ae=>Ae!=null).map(Ae=>`\`${Ae}\``).join(", ")||'""'}.`].join(`
240
- `))}},[Tt,ue,w,x,R]),St&&(w?tt.length===0?Oe=null:Oe=tt.reduce((ge,Ae,at)=>(ge.push(Ae),at<tt.length-1&&ge.push(", "),ge),[]):Oe=qe);let Me=z;!a&&te&&Q&&(Me=J.clientWidth);let Se;typeof O<"u"?Se=O:Se=f?null:0;const Be=I.id||(x?`mui-component-select-${x}`:void 0),ze={...t,variant:V,value:R,open:ie,error:h},nt=vN(ze),Je={...v.PaperProps,...typeof((ut=v.slotProps)==null?void 0:ut.paper)=="function"?v.slotProps.paper(ze):(yt=v.slotProps)==null?void 0:yt.paper},Vt={...v.MenuListProps,...typeof((Et=v.slotProps)==null?void 0:Et.list)=="function"?v.slotProps.list(ze):(hn=v.slotProps)==null?void 0:hn.list},ke=so();return b.jsxs(P.Fragment,{children:[b.jsx(mN,{as:"div",ref:ee,tabIndex:Se,role:"combobox","aria-controls":ie?ke:void 0,"aria-disabled":f?"true":void 0,"aria-expanded":ie?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[y,Be].filter(Boolean).join(" ")||void 0,"aria-describedby":o,"aria-required":k?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:me,onMouseDown:f||C?null:de,onBlur:Ie,onFocus:M,...I,ownerState:ze,className:ye(I.className,nt.select,c),id:Be,children:bN(Oe)?Eh||(Eh=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Oe}),b.jsx(yN,{"aria-invalid":h,value:Array.isArray(R)?R.join(","):R,name:x,ref:re,"aria-hidden":!0,onChange:le,tabIndex:-1,disabled:f,className:nt.nativeInput,autoFocus:i,required:k,...B,ownerState:ze}),b.jsx(gN,{as:m,className:nt.icon,ownerState:ze}),b.jsx(Kb,{id:`menu-${x||""}`,anchorEl:J,open:ie,onClose:se,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,slotProps:{...v.slotProps,list:{"aria-labelledby":y,role:"listbox","aria-multiselectable":w?"true":void 0,disableListWrap:!0,id:ke,...Vt},paper:{...Je,style:{minWidth:Me,...Je!=null?Je.style:null}}},children:Ee})]})});process.env.NODE_ENV!=="production"&&(ev.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:xt,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"])});const xN=gt(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),SN=e=>{const{classes:t}=e,o=Ce({root:["root"]},Jb,t);return{...t,...o}},nd={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>pn(e)&&e!=="variant"},CN=be(Ea,nd)(""),wN=be(Oa,nd)(""),TN=be(Ma,nd)(""),od=P.forwardRef(function(t,n){const o=Fe({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:i,classes:a={},className:l,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=xN,id:f,input:p,inputProps:h,label:m,labelId:g,MenuProps:y,multiple:v=!1,native:w=!1,onClose:x,onOpen:S,open:T,renderValue:E,SelectDisplayProps:M,variant:_="outlined",...D}=o,$=w?Qb:ev,j=zn(),C=Or({props:o,muiFormControl:j,states:["variant","error"]}),L=C.variant||_,k={...o,variant:L,classes:a},I=SN(k),{root:O,...N}=I,F=p||{standard:b.jsx(CN,{ownerState:k}),outlined:b.jsx(wN,{label:m,ownerState:k}),filled:b.jsx(TN,{ownerState:k})}[L],V=$e(n,Fs(F));return b.jsx(P.Fragment,{children:P.cloneElement(F,{inputComponent:$,inputProps:{children:i,error:C.error,IconComponent:d,variant:L,type:void 0,multiple:v,...w?{id:f}:{autoWidth:r,defaultOpen:c,displayEmpty:u,labelId:g,MenuProps:y,onClose:x,onOpen:S,open:T,renderValue:E,SelectDisplayProps:{id:f,...M}},...h,classes:h?At(N,h.classes):N,...p?p.props.inputProps:{}},...(v&&w||u)&&L==="outlined"?{notched:!0}:{},ref:V,className:ye(F.props.className,l,I.root),...!p&&{variant:L},...D})})});process.env.NODE_ENV!=="production"&&(od.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"])});od.muiName="Select";function PN(e){return Te("MuiTextField",e)}we("MuiTextField",["root"]);const EN={standard:Ea,filled:Ma,outlined:Oa},MN=e=>{const{classes:t}=e;return Ce({root:["root"]},PN,t)},ON=be(Xu,{name:"MuiTextField",slot:"Root"})({}),tv=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:a,className:l,color:c="primary",defaultValue:u,disabled:d=!1,error:f=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:m,id:g,InputLabelProps:y,inputProps:v,InputProps:w,inputRef:x,label:S,maxRows:T,minRows:E,multiline:M=!1,name:_,onBlur:D,onChange:$,onFocus:j,placeholder:C,required:L=!1,rows:k,select:I=!1,SelectProps:O,slots:N={},slotProps:F={},type:V,value:B,variant:R="outlined",...Y}=o,G={...o,autoFocus:i,color:c,disabled:d,error:f,fullWidth:h,multiline:M,required:L,select:I,variant:R},Z=MN(G);process.env.NODE_ENV!=="production"&&I&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const re=so(g),X=m&&re?`${re}-helper-text`:void 0,Q=S&&re?`${re}-label`:void 0,K=EN[R],te={slots:N,slotProps:{input:w,inputLabel:y,htmlInput:v,formHelperText:p,select:O,...F}},z={},H=te.slotProps.inputLabel;R==="outlined"&&(H&&typeof H.shrink<"u"&&(z.notched=H.shrink),z.label=S),I&&((!O||!O.native)&&(z.id=void 0),z["aria-describedby"]=void 0);const[W,ee]=it("root",{elementType:ON,shouldForwardComponentProp:!0,externalForwardedProps:{...te,...Y},ownerState:G,className:ye(Z.root,l),ref:n,additionalProps:{disabled:d,error:f,fullWidth:h,required:L,color:c,variant:R}}),[J,ie]=it("input",{elementType:K,externalForwardedProps:te,additionalProps:z,ownerState:G}),[ne,de]=it("inputLabel",{elementType:Zu,externalForwardedProps:te,ownerState:G}),[se,ue]=it("htmlInput",{elementType:"input",externalForwardedProps:te,ownerState:G}),[le,fe]=it("formHelperText",{elementType:Qu,externalForwardedProps:te,ownerState:G}),[me,Ie]=it("select",{elementType:od,externalForwardedProps:te,ownerState:G}),Oe=b.jsx(J,{"aria-describedby":X,autoComplete:r,autoFocus:i,defaultValue:u,fullWidth:h,multiline:M,name:_,rows:k,maxRows:T,minRows:E,type:V,value:B,id:re,inputRef:x,onBlur:D,onChange:$,onFocus:j,placeholder:C,inputProps:ue,slots:{input:N.htmlInput?se:void 0},...ie});return b.jsxs(W,{...ee,children:[S!=null&&S!==""&&b.jsx(ne,{htmlFor:re,id:Q,...de,children:S}),I?b.jsx(me,{"aria-describedby":X,id:re,labelId:Q,value:B,input:Oe,...Ie,children:a}):Oe,m&&b.jsx(le,{id:X,...fe,children:m})]})});process.env.NODE_ENV!=="production"&&(tv.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:xt,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"])});function kN(e){return Te("MuiIconButton",e)}const Oh=we("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),DN=e=>{const{classes:t,disabled:n,color:o,edge:r,size:i,loading:a}=e,l={root:["root",a&&"loading",n&&"disabled",o!=="default"&&`color${ce(o)}`,r&&`edge${ce(r)}`,`size${ce(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Ce(l,kN,t)},RN=be(xr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${ce(n.color)}`],n.edge&&t[`edge${ce(n.edge)}`],t[`size${ce(n.size)}`]]}})(Xe(({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}}]})),Xe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Yt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Yt()).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)}}],[`&.${Oh.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Oh.loading}`]:{color:"transparent"}}))),IN=be("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"}}]})),Es=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiIconButton"}),{edge:r=!1,children:i,className:a,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:f,loading:p=null,loadingIndicator:h,...m}=o,g=so(f),y=h??b.jsx(Hu,{"aria-labelledby":g,color:"inherit",size:16}),v={...o,edge:r,color:l,disabled:c,disableFocusRipple:u,loading:p,loadingIndicator:y,size:d},w=DN(v);return b.jsxs(RN,{id:p?g:f,className:ye(w.root,a),centerRipple:!0,focusRipple:!u,disabled:c||p,ref:n,...m,ownerState:v,children:[typeof p=="boolean"&&b.jsx("span",{className:w.loadingWrapper,style:{display:"contents"},children:b.jsx(IN,{className:w.loadingIndicator,ownerState:v,children:p&&y})}),i]})});process.env.NODE_ENV!=="production"&&(Es.propTypes={children:Bn(s.node,e=>P.Children.toArray(e.children).some(n=>P.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(`
241
- `)):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])});function AN(e){return Te("MuiInputAdornment",e)}const kh=we("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Dh;const NN=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ce(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},_N=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:o,position:r,size:i,variant:a}=e,l={root:["root",n&&"disablePointerEvents",r&&`position${ce(r)}`,a,o&&"hiddenLabel",i&&`size${ce(i)}`]};return Ce(l,AN,t)},jN=be("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:NN})(Xe(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${kh.positionStart}&:not(.${kh.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),nv=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiInputAdornment"}),{children:r,className:i,component:a="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:u,variant:d,...f}=o,p=zn()||{};let h=d;d&&p.variant&&process.env.NODE_ENV!=="production"&&d===p.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),p&&!h&&(h=p.variant);const m={...o,hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:l,position:u,variant:h},g=_N(m);return b.jsx(Ys.Provider,{value:null,children:b.jsx(jN,{as:a,ownerState:m,className:ye(g.root,i),ref:n,...f,children:typeof r=="string"&&!c?b.jsx(ao,{color:"textSecondary",children:r}):b.jsxs(P.Fragment,{children:[u==="start"?Dh||(Dh=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,r]})})})});process.env.NODE_ENV!=="production"&&(nv.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"])});const qn=7;function rd(e){const{ownerState:t}=Dt(),n=fn();return P.useMemo(()=>U({},t,{isFieldDisabled:e.disabled??!1,isFieldReadOnly:e.readOnly??!1,isFieldRequired:e.required??!1,fieldDirection:n?"rtl":"ltr"}),[t,e.disabled,e.readOnly,e.required,n])}const LN=gt(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),$N=gt(b.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),VN=gt(b.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),FN=gt(b.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");gt(b.jsxs(P.Fragment,{children:[b.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),b.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");gt(b.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");gt(b.jsxs(P.Fragment,{children:[b.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),b.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const BN=gt(b.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function zN(e){return Te("MuiPickersTextField",e)}we("MuiPickersTextField",["root","focused","disabled","error","required"]);const WN={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function UN(e){return Te("MuiPickersInputBase",e)}const dr=we("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input","inputSizeSmall","activeBar"]);function HN(e){return Te("MuiPickersSectionList",e)}const Qo=we("MuiPickersSectionList",["root","section","sectionContent"]),YN=["slots","slotProps","elements","sectionListRef","classes"],ov=ae.styled("div",{name:"MuiPickersSectionList",slot:"Root"})({direction:"ltr /*! @noflip */",outline:"none"}),rv=ae.styled("span",{name:"MuiPickersSectionList",slot:"Section"})({}),sv=ae.styled("span",{name:"MuiPickersSectionList",slot:"SectionSeparator"})({whiteSpace:"pre"}),iv=ae.styled("span",{name:"MuiPickersSectionList",slot:"SectionContent"})({outline:"none"}),qN=e=>Ce({root:["root"],section:["section"],sectionContent:["sectionContent"]},HN,e);function av(e){const{slots:t,slotProps:n,element:o,classes:r}=e,{ownerState:i}=Dt(),a=(t==null?void 0:t.section)??rv,l=Le({elementType:a,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:o.container,className:r.section,ownerState:i}),c=(t==null?void 0:t.sectionContent)??iv,u=Le({elementType:c,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:o.content,additionalProps:{suppressContentEditableWarning:!0},className:r.sectionContent,ownerState:i}),d=(t==null?void 0:t.sectionSeparator)??sv,f=Le({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.before,ownerState:U({},i,{separatorPosition:"before"})}),p=Le({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.after,ownerState:U({},i,{separatorPosition:"after"})}),h=P.useRef(null),m=$e(u.ref,h),g=y=>{const v=y.relatedTarget,w=y.currentTarget.closest(`.${Qo.root}`);if(w&&v instanceof Node&&w.contains(v)){y.stopPropagation();return}};return b.jsxs(a,U({},l,{children:[b.jsx(d,U({},f)),b.jsx(c,U({},u,{ref:m,onBlur:g})),b.jsx(d,U({},p))]}))}process.env.NODE_ENV!=="production"&&(av.propTypes={classes:s.object.isRequired,element:s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired}).isRequired,slotProps:s.object,slots:s.object});const sd=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersSectionList"}),{slots:r,slotProps:i,elements:a,sectionListRef:l,classes:c}=o,u=Pe(o,YN),d=qN(c),{ownerState:f}=Dt(),p=P.useRef(null),h=$e(n,p),m=v=>{if(!p.current)throw new Error(`MUI X: Cannot call sectionListRef.${v} before the mount of the component.`);return p.current};P.useImperativeHandle(l,()=>({getRoot(){return m("getRoot")},getSectionContainer(v){return m("getSectionContainer").querySelector(`.${Qo.section}[data-sectionindex="${v}"]`)},getSectionContent(v){return m("getSectionContent").querySelector(`.${Qo.section}[data-sectionindex="${v}"] .${Qo.sectionContent}`)},getSectionIndexFromDOMElement(v){const w=m("getSectionIndexFromDOMElement");if(v==null||!w.contains(v))return null;let x=null;return v.classList.contains(Qo.section)?x=v:v.classList.contains(Qo.sectionContent)&&(x=v.parentElement),x==null?null:Number(x.dataset.sectionindex)}}));const g=(r==null?void 0:r.root)??ov,y=Le({elementType:g,externalSlotProps:i==null?void 0:i.root,externalForwardedProps:u,additionalProps:{ref:h,suppressContentEditableWarning:!0},className:d.root,ownerState:f});return b.jsx(g,U({},y,{children:y.contentEditable?a.map(({content:v,before:w,after:x})=>`${w.children}${v.children}${x.children}`).join(""):b.jsx(P.Fragment,{children:a.map((v,w)=>b.jsx(av,{slots:r,slotProps:i,element:v,classes:d},w))})}))});process.env.NODE_ENV!=="production"&&(sd.displayName="PickersSectionList");process.env.NODE_ENV!=="production"&&(sd.propTypes={classes:s.object,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object});const id=P.createContext(null);process.env.NODE_ENV!=="production"&&(id.displayName="PickerTextFieldOwnerStateContext");const ka=()=>{const e=P.useContext(id);if(e==null)throw new Error(["MUI X: The `usePickerTextFieldOwnerState` can only be called in components that are used inside a PickerTextField component"].join(`
242
- `));return e},GN=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef","onFocus","onBlur","classes","ownerState"],KN=e=>Math.round(e*1e5)/1e5,Da=ae.styled("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>U({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${KN(.15/16)}em`,variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),ad=ae.styled(ov,{name:"MuiPickersInputBase",slot:"SectionsContainer"})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{fieldDirection:"rtl"},style:{justifyContent:"end"}},{props:{inputSize:"small"},style:{paddingTop:1}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0},style:{color:"currentColor",opacity:0}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0,inputHasLabel:!1},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0,inputHasLabel:!0,isLabelShrunk:!0},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),ZN=ae.styled(rv,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),XN=ae.styled(iv,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),QN=ae.styled(sv,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),JN=ae.styled("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(U({},WN)),e_=ae.styled("div",{name:"MuiPickersInputBase",slot:"ActiveBar"})(({theme:e,ownerState:t})=>({display:"none",position:"absolute",height:2,bottom:2,borderTopLeftRadius:2,borderTopRightRadius:2,transition:e.transitions.create(["width","left"],{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.primary.main,'[data-active-range-position="start"] &, [data-active-range-position="end"] &':{display:"block"},'[data-active-range-position="start"] &':{left:t.sectionOffsets[0]},'[data-active-range-position="end"] &':{left:t.sectionOffsets[1]}})),t_=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldReadOnly:r,hasFieldError:i,inputSize:a,isInputInFullWidth:l,inputColor:c,hasStartAdornment:u,hasEndAdornment:d}=t,f={root:["root",n&&!o&&"focused",o&&"disabled",r&&"readOnly",i&&"error",l&&"fullWidth",`color${ce(c)}`,a==="small"&&"inputSizeSmall",u&&"adornedStart",d&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"],activeBar:["activeBar"]};return Ce(f,UN,e)};function Rh(e,t,n,o){var r;if(e.content.id){const i=(r=t.current)==null?void 0:r.querySelectorAll(`[data-sectionindex="${n}"] [data-range-position="${o}"]`);if(i)return Array.from(i).reduce((a,l)=>a+l.offsetWidth,0)}return 0}function n_(e,t){var r,i,a,l,c;let n=0;if(((r=t.current)==null?void 0:r.getAttribute("data-active-range-position"))==="end")for(let u=e.length-1;u>=e.length/2;u-=1)n+=Rh(e[u],t,u,"end");else for(let u=0;u<e.length/2;u+=1)n+=Rh(e[u],t,u,"start");return{activeBarWidth:n,sectionOffsets:[((a=(i=t.current)==null?void 0:i.querySelector('[data-sectionindex="0"]'))==null?void 0:a.offsetLeft)||0,((c=(l=t.current)==null?void 0:l.querySelector(`[data-sectionindex="${e.length/2}"]`))==null?void 0:c.offsetLeft)||0]}}const qs=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:i,value:a,onChange:l,id:c,endAdornment:u,startAdornment:d,renderSuffix:f,slots:p,slotProps:h,contentEditable:m,tabIndex:g,onInput:y,onPaste:v,onKeyDown:w,name:x,readOnly:S,inputProps:T,inputRef:E,sectionListRef:M,onFocus:_,onBlur:D,classes:$,ownerState:j}=o,C=Pe(o,GN),L=ka(),k=P.useRef(null),I=P.useRef(null),O=P.useRef([]),N=$e(n,k),F=$e(T==null?void 0:T.ref,E),V=zn();if(!V)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const B=j??L,R=z=>{var H;(H=V.onFocus)==null||H.call(V,z),_==null||_(z)},Y=z=>{R(z)},G=z=>{var H,W;if(w==null||w(z),z.key==="Enter"&&!z.defaultMuiPrevented){if((H=k.current)!=null&&H.dataset.multiInput)return;const ee=(W=k.current)==null?void 0:W.closest("form"),J=ee==null?void 0:ee.querySelector('[type="submit"]');if(!ee||!J)return;z.preventDefault(),ee.requestSubmit(J)}},Z=z=>{var H;(H=V.onBlur)==null||H.call(V,z),D==null||D(z)};P.useEffect(()=>{V&&V.setAdornedStart(!!d)},[V,d]),P.useEffect(()=>{V&&(i?V.onEmpty():V.onFilled())},[V,i]);const re=t_($,B),X=(p==null?void 0:p.root)||Da,Q=Le({elementType:X,externalSlotProps:h==null?void 0:h.root,externalForwardedProps:C,additionalProps:{"aria-invalid":V.error,ref:N},className:re.root,ownerState:B}),K=(p==null?void 0:p.input)||ad,te=r.some(z=>z.content["data-range-position"]!==void 0);return P.useEffect(()=>{if(!te||!B.isPickerOpen)return;const{activeBarWidth:z,sectionOffsets:H}=n_(r,k);O.current=[H[0],H[1]],I.current&&(I.current.style.width=`${z}px`)},[r,te,B.isPickerOpen]),b.jsxs(X,U({},Q,{children:[d,b.jsx(sd,{sectionListRef:M,elements:r,contentEditable:m,tabIndex:g,className:re.sectionsContainer,onFocus:R,onBlur:Z,onInput:y,onPaste:v,onKeyDown:G,slots:{root:K,section:ZN,sectionContent:XN,sectionSeparator:QN},slotProps:{root:U({},h==null?void 0:h.input,{ownerState:B}),sectionContent:{className:dr.sectionContent},sectionSeparator:({separatorPosition:z})=>({className:z==="before"?dr.sectionBefore:dr.sectionAfter})}}),u,f?f(U({},V)):null,b.jsx(JN,U({name:x,className:re.input,value:a,onChange:l,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:S,required:V.required,disabled:V.disabled,onFocus:Y},T,{ref:F})),te&&b.jsx(e_,{className:re.activeBar,ref:I,ownerState:{sectionOffsets:O.current}})]}))});process.env.NODE_ENV!=="production"&&(qs.displayName="PickersInputBase");process.env.NODE_ENV!=="production"&&(qs.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,"data-multi-input":s.string,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:xt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});function o_(e){return Te("MuiPickersOutlinedInput",e)}const un=U({},dr,we("MuiPickersOutlinedInput",["root","notchedOutline","input"])),r_=["children","className","label","notched","shrink"],s_=ae.styled("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Ih=ae.styled("span",{slot:"internal",shouldForwardProp:void 0})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),i_=ae.styled("legend",{slot:"internal",shouldForwardProp:e=>Zn(e)&&e!=="notched"})(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{inputHasLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{inputHasLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{inputHasLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function a_(e){const{className:t,label:n,notched:o}=e,r=Pe(e,r_),i=ka();return b.jsx(s_,U({"aria-hidden":!0,className:t},r,{ownerState:i,children:b.jsx(i_,{ownerState:i,notched:o,children:n?b.jsx(Ih,{children:n}):b.jsx(Ih,{className:"notranslate",children:"​"})})}))}const l_=["label","autoFocus","ownerState","classes","notched"],c_=ae.styled(Da,{name:"MuiPickersOutlinedInput",slot:"Root"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${un.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${un.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${un.focused} .${un.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${un.disabled}`]:{[`& .${un.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${un.error} .${un.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>{var o;return((o=(e.vars??e).palette[n])==null?void 0:o.main)??!1}).map(n=>({props:{inputColor:n},style:{[`&.${un.focused}:not(.${un.error}) .${un.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),u_=ae.styled(ad,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),d_=e=>{const n=Ce({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},o_,e);return U({},e,n)},Ra=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersOutlinedInput"}),{label:r,classes:i,notched:a}=o,l=Pe(o,l_),c=zn(),u=d_(i);return b.jsx(qs,U({slots:{root:c_,input:u_},renderSuffix:d=>b.jsx(a_,{shrink:!!(a||d.adornedStart||d.focused||d.filled),notched:!!(a||d.adornedStart||d.focused||d.filled),className:u.notchedOutline,label:r!=null&&r!==""&&(c!=null&&c.required)?b.jsxs(P.Fragment,{children:[r," ","*"]}):r})},l,{label:r,classes:u,ref:n}))});process.env.NODE_ENV!=="production"&&(Ra.displayName="PickersOutlinedInput");process.env.NODE_ENV!=="production"&&(Ra.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,"data-multi-input":s.string,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:xt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,notched:s.bool,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});Ra.muiName="Input";function f_(e){return Te("MuiPickersFilledInput",e)}const xo=U({},dr,we("MuiPickersFilledInput",["root","underline","input"])),p_=["label","autoFocus","disableUnderline","hiddenLabel","classes"],h_=ae.styled(Da,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>Wt.shouldForwardProp(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${xo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${xo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>{var l;return{props:{inputColor:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(l=(e.vars||e).palette[a])==null?void 0:l.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xo.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xo.disabled}, .${xo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${xo.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),m_=ae.styled(ad,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>Wt.shouldForwardProp(e)&&e!=="hiddenLabel"})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{inputSize:"small"},style:{paddingTop:21,paddingBottom:4}},{props:{hasStartAdornment:!0},style:{paddingLeft:0}},{props:{hasEndAdornment:!0},style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,inputSize:"small"},style:{paddingTop:8,paddingBottom:9}}]}),g_=(e,t)=>{const{inputHasUnderline:n}=t,r=Ce({root:["root",n&&"underline"],input:["input"]},f_,e);return U({},e,r)},Ia=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:i=!1,hiddenLabel:a=!1,classes:l}=o,c=Pe(o,p_),u=ka(),d=U({},u,{inputHasUnderline:!i}),f=g_(l,d);return b.jsx(qs,U({slots:{root:h_,input:m_},slotProps:{root:{disableUnderline:i},input:{hiddenLabel:a}}},c,{label:r,classes:f,ref:n,ownerState:d}))});process.env.NODE_ENV!=="production"&&(Ia.displayName="PickersFilledInput");process.env.NODE_ENV!=="production"&&(Ia.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,"data-multi-input":s.string,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,hiddenLabel:s.bool,id:s.string,inputProps:s.object,inputRef:xt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});Ia.muiName="Input";function y_(e){return Te("MuiPickersFilledInput",e)}const Wr=U({},dr,we("MuiPickersInput",["root","underline","input"])),b_=["label","autoFocus","disableUnderline","ownerState","classes"],v_=ae.styled(Da,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>Zn(e)&&e!=="disableUnderline"})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(o=>(e.vars??e).palette[o].main).map(o=>({props:{inputColor:o,inputHasUnderline:!0},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}})),{props:{inputHasUnderline:!0},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Wr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wr.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Wr.disabled}, .${Wr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Wr.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),x_=(e,t)=>{const{inputHasUnderline:n}=t,r=Ce({root:["root",!n&&"underline"],input:["input"]},y_,e);return U({},e,r)},Aa=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersInput"}),{label:r,disableUnderline:i=!1,classes:a}=o,l=Pe(o,b_),c=ka(),u=U({},c,{inputHasUnderline:!i}),d=x_(a,u);return b.jsx(qs,U({slots:{root:v_},slotProps:{root:{disableUnderline:i}}},l,{ownerState:u,label:r,classes:d,ref:n}))});process.env.NODE_ENV!=="production"&&(Aa.displayName="PickersInput");process.env.NODE_ENV!=="production"&&(Aa.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,"data-multi-input":s.string,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:xt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});Aa.muiName="Input";const S_=["onFocus","onBlur","className","classes","color","disabled","error","variant","required","hiddenLabel","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps","data-active-range-position"],C_={standard:Aa,filled:Ia,outlined:Ra},w_=ae.styled(Xu,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),T_=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldRequired:r}=t;return Ce({root:["root",n&&!o&&"focused",o&&"disabled",r&&"required"]},zN,e)},Na=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersTextField"}),{onFocus:r,onBlur:i,className:a,classes:l,color:c="primary",disabled:u=!1,error:d=!1,variant:f="outlined",required:p=!1,hiddenLabel:h=!1,InputProps:m,inputProps:g,inputRef:y,sectionListRef:v,elements:w,areAllSectionsEmpty:x,onClick:S,onKeyDown:T,onKeyUp:E,onPaste:M,onInput:_,endAdornment:D,startAdornment:$,tabIndex:j,contentEditable:C,focused:L,value:k,onChange:I,fullWidth:O,id:N,name:F,helperText:V,FormHelperTextProps:B,label:R,InputLabelProps:Y,"data-active-range-position":G}=o,Z=Pe(o,S_),re=P.useRef(null),X=$e(n,re),Q=so(N),K=V&&Q?`${Q}-helper-text`:void 0,te=R&&Q?`${Q}-label`:void 0,z=rd({disabled:o.disabled,required:o.required,readOnly:m==null?void 0:m.readOnly}),H=P.useMemo(()=>U({},z,{isFieldValueEmpty:x,isFieldFocused:L??!1,hasFieldError:d??!1,inputSize:o.size??"medium",inputColor:c??"primary",isInputInFullWidth:O??!1,hasStartAdornment:!!($??(m==null?void 0:m.startAdornment)),hasEndAdornment:!!(D??(m==null?void 0:m.endAdornment)),inputHasLabel:!!R,isLabelShrunk:!!(Y!=null&&Y.shrink)}),[z,x,L,d,o.size,c,O,$,D,m==null?void 0:m.startAdornment,m==null?void 0:m.endAdornment,R,Y==null?void 0:Y.shrink]),W=T_(l,H),ee=C_[f],J={};return f==="outlined"?(Y&&typeof Y.shrink<"u"&&(J.notched=Y.shrink),J.label=R):f==="filled"&&(J.hiddenLabel=h),b.jsx(id.Provider,{value:H,children:b.jsxs(w_,U({className:ye(W.root,a),ref:X,focused:L,disabled:u,variant:f,error:d,color:c,fullWidth:O,required:p,ownerState:H},Z,{children:[R!=null&&R!==""&&b.jsx(Zu,U({htmlFor:Q,id:te},Y,{children:R})),b.jsx(ee,U({elements:w,areAllSectionsEmpty:x,onClick:S,onKeyDown:T,onKeyUp:E,onInput:_,onPaste:M,onFocus:r,onBlur:i,endAdornment:D,startAdornment:$,tabIndex:j,contentEditable:C,value:k,onChange:I,id:Q,fullWidth:O,inputProps:g,inputRef:y,sectionListRef:v,label:R,name:F,role:"group","aria-labelledby":te,"aria-describedby":K,"aria-live":K?"polite":void 0,"data-active-range-position":G},J,m)),V&&b.jsx(Qu,U({id:K},B,{children:V}))]}))})});process.env.NODE_ENV!=="production"&&(Na.displayName="PickersTextField");process.env.NODE_ENV!=="production"&&(Na.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,contentEditable:s.bool.isRequired,disabled:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,error:s.bool.isRequired,focused:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:xt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onBlur:s.func.isRequired,onChange:s.func.isRequired,onClick:s.func.isRequired,onFocus:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,readOnly:s.bool,required:s.bool,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),size:s.oneOf(["medium","small"]),startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired,variant:s.oneOf(["filled","outlined","standard"])});const P_=["enableAccessibleFieldDOMStructure"],E_=["InputProps","readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],M_=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],O_=["ownerState"],k_=["ownerState"],D_=["ownerState"],R_=["ownerState"],I_=["InputProps","inputProps"],xl=()=>{},A_=e=>{var w,x,S,T,E,M,_,D,$;let{enableAccessibleFieldDOMStructure:t}=e,n=Pe(e,P_);if(t){const{InputProps:j,readOnly:C,onClear:L,clearable:k,clearButtonPosition:I,openPickerButtonPosition:O,openPickerAriaLabel:N}=n,F=Pe(n,E_),V=qn>=6&&((w=F==null?void 0:F.slotProps)!=null&&w.input)?us((x=F==null?void 0:F.slotProps)==null?void 0:x.input,j):xl;return{clearable:k,onClear:L,clearButtonPosition:I,openPickerButtonPosition:O,openPickerAriaLabel:N,textFieldProps:U({},F,qn>=6&&((S=F==null?void 0:F.slotProps)!=null&&S.input)?{slotProps:U({},F==null?void 0:F.slotProps,{input:B=>U({},tn(V,B),{readOnly:C})})}:{InputProps:U({},j??{},{readOnly:C})})}}const{onPaste:o,onKeyDown:r,inputMode:i,readOnly:a,InputProps:l,inputProps:c,inputRef:u,onClear:d,clearable:f,clearButtonPosition:p,openPickerButtonPosition:h,openPickerAriaLabel:m}=n,g=Pe(n,M_),y=qn>=6&&((T=g==null?void 0:g.slotProps)!=null&&T.input)?us((E=g==null?void 0:g.slotProps)==null?void 0:E.input,l):xl,v=qn>=6&&((M=g==null?void 0:g.slotProps)!=null&&M.htmlInput)?us((_=g==null?void 0:g.slotProps)==null?void 0:_.htmlInput,c):xl;return{clearable:f,onClear:d,clearButtonPosition:p,openPickerButtonPosition:h,openPickerAriaLabel:m,textFieldProps:U({},g,qn>=6&&((D=g==null?void 0:g.slotProps)!=null&&D.input||($=g==null?void 0:g.slotProps)!=null&&$.htmlInput)?{slotProps:U({},g==null?void 0:g.slotProps,{input:j=>U({},tn(y,j),{readOnly:a}),htmlInput:j=>U({},tn(v,j),{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})}:{InputProps:U({},l??{},{readOnly:a}),inputProps:U({},c??{},{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})}},_a=P.createContext({slots:{},slotProps:{},inputRef:void 0});process.env.NODE_ENV!=="production"&&(_a.displayName="PickerFieldUIContext");function N_(e){var B,R,Y,G;const{fieldResponse:t,defaultOpenPickerIcon:n}=e,o=lo(),r=Iu(),i=P.useContext(_a),{textFieldProps:a,onClear:l,clearable:c,openPickerAriaLabel:u,clearButtonPosition:d="end",openPickerButtonPosition:f="end"}=A_(t),p=rd(a),h=he(Z=>{Z.preventDefault(),r==null||r.setOpen(re=>!re)}),m=r?r.triggerStatus:"hidden",g=c?d:null,y=m!=="hidden"?f:null,v=i.slots.textField??(t.enableAccessibleFieldDOMStructure===!1?tv:Na),w=i.slots.inputAdornment??nv,x=Le({elementType:w,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"start"},ownerState:U({},p,{position:"start"})}),S=Pe(x,O_),T=Le({elementType:w,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"end"},ownerState:U({},p,{position:"end"})}),E=Pe(T,k_),M=i.slots.openPickerButton??Es,_=Le({elementType:M,externalSlotProps:i.slotProps.openPickerButton,additionalProps:{disabled:m==="disabled",onClick:h,"aria-label":u,edge:a.variant!=="standard"?y:!1},ownerState:p}),D=Pe(_,D_),$=i.slots.openPickerIcon??n,j=Le({elementType:$,externalSlotProps:i.slotProps.openPickerIcon,ownerState:p}),C=i.slots.clearButton??Es,L=Le({elementType:C,externalSlotProps:i.slotProps.clearButton,className:"clearButton",additionalProps:{title:o.fieldClearLabel,tabIndex:-1,onClick:l,disabled:t.disabled||t.readOnly,edge:a.variant!=="standard"&&g!==y?g:!1},ownerState:p}),k=Pe(L,R_),I=i.slots.clearIcon??BN,O=Le({elementType:I,externalSlotProps:i.slotProps.clearIcon,additionalProps:{fontSize:"small"},ownerState:p});a.ref=$e(a.ref,r==null?void 0:r.rootRef);const N={},F=tn((qn>=6&&((B=a==null?void 0:a.slotProps)==null?void 0:B.input))??a.InputProps,p);r&&(N.ref=r.triggerRef),!(F!=null&&F.startAdornment)&&(g==="start"||y==="start")&&(N.startAdornment=b.jsxs(w,U({},S,{children:[y==="start"&&b.jsx(M,U({},D,{children:b.jsx($,U({},j))})),g==="start"&&b.jsx(C,U({},k,{children:b.jsx(I,U({},O))}))]}))),!(F!=null&&F.endAdornment)&&(g==="end"||y==="end")&&(N.endAdornment=b.jsxs(w,U({},E,{children:[g==="end"&&b.jsx(C,U({},k,{children:b.jsx(I,U({},O))})),y==="end"&&b.jsx(M,U({},D,{children:b.jsx($,U({},j))}))]}))),!(N!=null&&N.endAdornment)&&!(N!=null&&N.startAdornment)&&i.slots.inputAdornment&&(N.endAdornment=b.jsx(w,U({},E))),g!=null&&(a.sx=[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(a.sx)?a.sx:[a.sx]]);const V=qn>=6&&((R=a==null?void 0:a.slotProps)!=null&&R.input)?tn(us(F,N),p):U({},F,N);return a.inputProps=qn>=6&&((Y=a==null?void 0:a.slotProps)!=null&&Y.htmlInput)?tn(a.slotProps.htmlInput,p):a.inputProps,(G=a==null?void 0:a.slotProps)==null||delete G.input,t.enableAccessibleFieldDOMStructure&&(a==null||delete a.slotProps),b.jsx(v,U({},a,{InputProps:V}))}function us(e,t){return e?t?n=>U({},tn(t,n),tn(e,n)):e:t}function __(e){const{ref:t,externalForwardedProps:n,slotProps:o}=e,r=P.useContext(_a),i=Iu(),a=rd(n),{InputProps:l,inputProps:c}=n,u=Pe(n,I_),d=Le({elementType:Na,externalSlotProps:us(r.slotProps.textField,o==null?void 0:o.textField),externalForwardedProps:u,additionalProps:{ref:t,sx:i==null?void 0:i.rootSx,label:i==null?void 0:i.label,name:i==null?void 0:i.name,className:i==null?void 0:i.rootClassName,inputRef:r.inputRef},ownerState:a});return d.inputProps=U({},c,d.inputProps),d.InputProps=U({},l,d.InputProps),d}function j_(e){const{slots:t={},slotProps:n={},inputRef:o,children:r}=e,i=P.useMemo(()=>({inputRef:o,slots:{openPickerButton:t.openPickerButton,openPickerIcon:t.openPickerIcon,textField:t.textField,inputAdornment:t.inputAdornment,clearIcon:t.clearIcon,clearButton:t.clearButton},slotProps:{openPickerButton:n.openPickerButton,openPickerIcon:n.openPickerIcon,textField:n.textField,inputAdornment:n.inputAdornment,clearIcon:n.clearIcon,clearButton:n.clearButton}}),[o,t.openPickerButton,t.openPickerIcon,t.textField,t.inputAdornment,t.clearIcon,t.clearButton,n.openPickerButton,n.openPickerIcon,n.textField,n.inputAdornment,n.clearIcon,n.clearButton]);return b.jsx(_a.Provider,{value:i,children:r})}const L_=["slots","slotProps"],ja=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiDateField"}),{slots:r,slotProps:i}=o,a=Pe(o,L_),l=__({slotProps:i,ref:n,externalForwardedProps:a}),c=iA(l);return b.jsx(j_,{slots:r,slotProps:i,inputRef:a.inputRef,children:b.jsx(N_,{fieldResponse:c,defaultOpenPickerIcon:FN})})});process.env.NODE_ENV!=="production"&&(ja.displayName="DateField");process.env.NODE_ENV!=="production"&&(ja.propTypes={autoFocus:s.bool,className:s.string,clearable:s.bool,clearButtonPosition:s.oneOf(["end","start"]),color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,enableAccessibleFieldDOMStructure:s.bool,focused:s.bool,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:xt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxDate:s.object,minDate:s.object,name:s.string,onBlur:s.func,onChange:s.func,onClear:s.func,onError:s.func,onFocus:s.func,onSelectedSectionsChange:s.func,openPickerButtonPosition:s.oneOf(["end","start"]),readOnly:s.bool,referenceDate:s.object,required:s.bool,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,shouldRespectLeadingZeros:s.bool,size:s.oneOf(["medium","small"]),slotProps:s.object,slots:s.object,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,unstableFieldRef:s.oneOfType([s.func,s.object]),value:s.object,variant:s.oneOf(["filled","outlined","standard"])});const lv=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a,timezone:l})=>{const c=Qe();return P.useCallback(u=>Ls({adapter:c,value:u,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a}})!==null,[c,e,t,n,o,r,i,a,l])},$_=(e,t)=>(n,o)=>{switch(o.type){case"setVisibleDate":return U({},n,{slideDirection:o.direction,currentMonth:o.month,isMonthSwitchingAnimating:!t.isSameMonth(o.month,n.currentMonth)&&!e&&!o.skipAnimation,focusedDay:o.focusedDay});case"changeMonthTimezone":{const r=o.newTimezone;if(t.getTimezone(n.currentMonth)===r)return n;let i=t.setTimezone(n.currentMonth,r);return t.getMonth(i)!==t.getMonth(n.currentMonth)&&(i=t.setMonth(i,t.getMonth(n.currentMonth))),U({},n,{currentMonth:i})}case"finishMonthSwitchingAnimation":return U({},n,{isMonthSwitchingAnimating:!1});default:throw new Error("missing support")}},V_=e=>{const{value:t,referenceDate:n,disableFuture:o,disablePast:r,maxDate:i,minDate:a,onMonthChange:l,onYearChange:c,reduceAnimations:u,shouldDisableDate:d,timezone:f,getCurrentMonthFromVisibleDate:p}=e,h=Qe(),m=P.useRef($_(!!u,h)).current,g=P.useMemo(()=>En.getInitialReferenceValue({value:t,adapter:h,timezone:f,props:e,referenceDate:n,granularity:vn.day}),[n,f]),[y,v]=P.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:g,currentMonth:h.setDate(g,1),slideDirection:"left"}),w=lv({shouldDisableDate:d,minDate:a,maxDate:i,disableFuture:o,disablePast:r,timezone:f});P.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:h.getTimezone(g)})},[g,h]);const x=he(({target:T,reason:E})=>{if(E==="cell-interaction"&&y.focusedDay!=null&&h.isSameDay(T,y.focusedDay))return;const M=E==="cell-interaction";let _,D;if(E==="cell-interaction")_=p(T,y.currentMonth),D=T;else if(_=h.isSameMonth(T,y.currentMonth)?y.currentMonth:h.startOfMonth(T),D=T,w(D)){const C=h.startOfMonth(T),L=h.endOfMonth(T);D=vs({adapter:h,date:D,minDate:h.isBefore(a,C)?C:a,maxDate:h.isAfter(i,L)?L:i,disablePast:r,disableFuture:o,isDateDisabled:w,timezone:f})}const $=!h.isSameMonth(y.currentMonth,_),j=!h.isSameYear(y.currentMonth,_);$&&(l==null||l(_)),j&&(c==null||c(h.startOfYear(_))),v({type:"setVisibleDate",month:_,direction:h.isAfterDay(_,y.currentMonth)?"left":"right",focusedDay:y.focusedDay!=null&&D!=null&&h.isSameDay(D,y.focusedDay)?y.focusedDay:D,skipAnimation:M})}),S=P.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]);return{referenceDate:g,calendarState:y,setVisibleDate:x,isDateDisabled:w,onMonthSwitchingAnimationEnd:S}},F_=e=>Te("MuiPickersFadeTransitionGroup",e);we("MuiPickersFadeTransitionGroup",["root"]);const B_=["children"],z_=e=>Ce({root:["root"]},F_,e),W_=ae.styled(Bs,{name:"MuiPickersFadeTransitionGroup",slot:"Root"})({display:"block",position:"relative"});function cv(e){const t=ae.useThemeProps({props:e,name:"MuiPickersFadeTransitionGroup"}),{className:n,reduceAnimations:o,transKey:r,classes:i}=t,{children:a}=t,l=Pe(t,B_),c=z_(i),u=ae.useTheme();return o?a:b.jsx(W_,{className:ye(c.root,n),ownerState:l,children:b.jsx(no,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:u.transitions.duration.enteringScreen,enter:u.transitions.duration.enteringScreen,exit:0},children:a},r)})}function U_(e){return Te("MuiPickersDay",e)}const So=we("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]);function uv(e){const{disabled:t,selected:n,today:o,outsideCurrentMonth:r,day:i,disableMargin:a,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=e,u=Qe(),{ownerState:d}=Dt();return P.useMemo(()=>U({},d,{day:i,isDaySelected:n??!1,isDayDisabled:t??!1,isDayCurrent:o??!1,isDayOutsideMonth:r??!1,isDayStartOfWeek:u.isSameDay(i,u.startOfWeek(i)),isDayEndOfWeek:u.isSameDay(i,u.endOfWeek(i)),disableMargin:a??!1,disableHighlightToday:l??!1,showDaysOutsideCurrentMonth:c??!1}),[u,d,i,n,t,o,r,a,l,c])}const H_=["autoFocus","className","classes","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","children","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],Y_=(e,t)=>{const{isDaySelected:n,isDayDisabled:o,isDayCurrent:r,isDayOutsideMonth:i,disableMargin:a,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=t,u=i&&!c;return Ce({root:["root",n&&!u&&"selected",o&&"disabled",!a&&"dayWithMargin",!l&&r&&"today",i&&c&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},U_,e)},dv=({theme:e})=>U({},e.typography.caption,{width:Ps,height:Ps,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ae.alpha(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:ae.alpha(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${So.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${So.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${So.disabled}:not(.${So.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${So.disabled}&.${So.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${ba}px`}},{props:{isDayOutsideMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,isDayCurrent:!0},style:{[`&:not(.${So.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),fv=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.isDayCurrent&&t.today,n.isDayOutsideMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.isDayOutsideMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},q_=ae.styled(xr,{name:"MuiPickersDay",slot:"Root",overridesResolver:fv})(dv),G_=ae.styled("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:fv})(({theme:e})=>U({},dv({theme:e}),{opacity:0,pointerEvents:"none"})),Ur=()=>{},ld=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersDay"}),{autoFocus:r=!1,className:i,classes:a,isAnimating:l,onClick:c,onDaySelect:u,onFocus:d=Ur,onBlur:f=Ur,onKeyDown:p=Ur,onMouseDown:h=Ur,onMouseEnter:m=Ur,children:g,day:y,selected:v,disabled:w,today:x,outsideCurrentMonth:S,disableMargin:T,disableHighlightToday:E,showDaysOutsideCurrentMonth:M}=o,_=Pe(o,H_),D=uv({day:y,selected:v,disabled:w,today:x,outsideCurrentMonth:S,disableMargin:T,disableHighlightToday:E,showDaysOutsideCurrentMonth:M}),$=Y_(a,D),j=Qe(),C=P.useRef(null),L=$e(C,n);wt(()=>{r&&!w&&!l&&!S&&C.current.focus()},[r,w,l,S]);const k=O=>{h(O),S&&O.preventDefault()},I=O=>{O.defaultMuiPrevented=!0,w||u(y),S&&O.currentTarget.focus(),c&&c(O)};return S&&!M?b.jsx(G_,{className:ye($.root,$.hiddenDaySpacingFiller,i),ownerState:D,role:_.role}):b.jsx(q_,U({className:ye($.root,i),ref:L,centerRipple:!0,disabled:w,tabIndex:v?0:-1,onKeyDown:O=>p(O,y),onFocus:O=>d(O,y),onBlur:O=>f(O,y),onMouseEnter:O=>m(O,y),onClick:I,onMouseDown:k},_,{ownerState:D,children:g??j.format(y,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(ld.displayName="PickersDayRaw");process.env.NODE_ENV!=="production"&&(ld.propTypes={action:s.oneOfType([s.func,s.shape({current:s.shape({focusVisible:s.func.isRequired})})]),centerRipple:s.bool,classes:s.object,className:s.string,component:s.elementType,day:s.object.isRequired,disabled:s.bool,disableHighlightToday:s.bool,disableMargin:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,isAnimating:s.bool,isFirstVisibleCell:s.bool.isRequired,isLastVisibleCell:s.bool.isRequired,onBlur:s.func,onDaySelect:s.func.isRequired,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onMouseEnter:s.func,outsideCurrentMonth:s.bool.isRequired,selected:s.bool,showDaysOutsideCurrentMonth:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,today:s.bool,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})})])});const pv=P.memo(ld);process.env.NODE_ENV!=="production"&&(pv.displayName="PickersDay");const K_=e=>Te("MuiPickersSlideTransition",e),Kt=we("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Z_=["children","className","reduceAnimations","slideDirection","transKey","classes"],X_=(e,t)=>{const{slideDirection:n}=t,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Ce(o,K_,e)},Q_=ae.styled(Bs,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Kt["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Kt["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Kt.slideEnterActive}`]:t.slideEnterActive},{[`.${Kt.slideExit}`]:t.slideExit},{[`.${Kt["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Kt["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Kt["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Kt["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Kt.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Kt.slideExit}`]:{transform:"translate(0%)"},[`& .${Kt["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Kt["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function J_(e){const t=ae.useThemeProps({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:r,slideDirection:i,transKey:a,classes:l}=t,c=Pe(t,Z_),{ownerState:u}=Dt(),d=U({},u,{slideDirection:i}),f=X_(l,d),p=ae.useTheme();if(r)return b.jsx("div",{className:ye(f.root,o),children:n});const h={exit:f.exit,enterActive:f.enterActive,enter:f.enter,exitActive:f.exitActive};return b.jsx(Q_,{className:ye(f.root,o),childFactory:m=>P.cloneElement(m,{classNames:h}),role:"presentation",ownerState:d,children:b.jsx(ju,U({mountOnEnter:!0,unmountOnExit:!0,timeout:p.transitions.duration.complex,classNames:h},c,{children:n}),a)})}const ej=e=>Te("MuiDayCalendar",e);we("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const tj=["parentProps","day","focusedDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],nj=["ownerState"],oj=e=>Ce({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},ej,e),hv=(Ps+ba*2)*6,rj=ae.styled("div",{name:"MuiDayCalendar",slot:"Root"})({}),sj=ae.styled("div",{name:"MuiDayCalendar",slot:"Header"})({display:"flex",justifyContent:"center",alignItems:"center"}),ij=ae.styled(ao,{name:"MuiDayCalendar",slot:"WeekDayLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),aj=ae.styled(ao,{name:"MuiDayCalendar",slot:"WeekNumberLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.disabled})),lj=ae.styled(ao,{name:"MuiDayCalendar",slot:"WeekNumber"})(({theme:e})=>U({},e.typography.caption,{width:Ps,height:Ps,padding:0,margin:`0 ${ba}px`,color:(e.vars||e).palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),cj=ae.styled("div",{name:"MuiDayCalendar",slot:"LoadingContainer"})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:hv}),uj=ae.styled(J_,{name:"MuiDayCalendar",slot:"SlideTransition"})({minHeight:hv}),dj=ae.styled("div",{name:"MuiDayCalendar",slot:"MonthContainer"})({overflow:"hidden"}),fj=ae.styled("div",{name:"MuiDayCalendar",slot:"WeekContainer"})({margin:`${ba}px 0`,display:"flex",justifyContent:"center"});function pj(e){let{parentProps:t,day:n,focusedDay:o,selectedDays:r,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,c=Pe(e,tj);const{disabled:u,disableHighlightToday:d,isMonthSwitchingAnimating:f,showDaysOutsideCurrentMonth:p,slots:h,slotProps:m,timezone:g}=t,y=Qe(),v=ha(g),w=o!=null&&y.isSameDay(n,o),x=l&&w,S=r.some(k=>y.isSameDay(k,n)),T=y.isSameDay(n,v),E=P.useMemo(()=>u||i(n),[u,i,n]),M=P.useMemo(()=>y.getMonth(n)!==a,[y,n,a]),_=uv({day:n,selected:S,disabled:E,today:T,outsideCurrentMonth:M,disableMargin:void 0,disableHighlightToday:d,showDaysOutsideCurrentMonth:p}),D=(h==null?void 0:h.day)??pv,$=Le({elementType:D,externalSlotProps:m==null?void 0:m.day,additionalProps:U({disableHighlightToday:d,showDaysOutsideCurrentMonth:p,role:"gridcell",isAnimating:f,"data-timestamp":y.toJsDate(n).valueOf()},c),ownerState:U({},_,{day:n,isDayDisabled:E,isDaySelected:S})}),j=Pe($,nj),C=P.useMemo(()=>{const k=y.startOfMonth(y.setMonth(n,a));return p?y.isSameDay(n,y.startOfWeek(k)):y.isSameDay(n,k)},[a,n,p,y]),L=P.useMemo(()=>{const k=y.endOfMonth(y.setMonth(n,a));return p?y.isSameDay(n,y.endOfWeek(k)):y.isSameDay(n,k)},[a,n,p,y]);return b.jsx(D,U({},j,{day:n,disabled:E,autoFocus:!M&&x,today:T,outsideCurrentMonth:M,isFirstVisibleCell:C,isLastVisibleCell:L,selected:S,tabIndex:w?0:-1,"aria-selected":S,"aria-current":T?"date":void 0}))}function hj(e){const t=ae.useThemeProps({props:e,name:"MuiDayCalendar"}),n=Qe(),{onFocusedDayChange:o,className:r,classes:i,currentMonth:a,selectedDays:l,focusedDay:c,loading:u,onSelectedDaysChange:d,onMonthSwitchingAnimationEnd:f,readOnly:p,reduceAnimations:h,renderLoading:m=()=>b.jsx("span",{children:"..."}),slideDirection:g,TransitionProps:y,disablePast:v,disableFuture:w,minDate:x,maxDate:S,shouldDisableDate:T,shouldDisableMonth:E,shouldDisableYear:M,dayOfWeekFormatter:_=H=>n.format(H,"weekdayShort").charAt(0).toUpperCase(),hasFocus:D,onFocusedViewChange:$,gridLabelId:j,displayWeekNumber:C,fixedWeekNumber:L,timezone:k}=t,I=ha(k),O=oj(i),N=fn(),F=lv({shouldDisableDate:T,shouldDisableMonth:E,shouldDisableYear:M,minDate:x,maxDate:S,disablePast:v,disableFuture:w,timezone:k}),V=lo(),B=he(H=>{p||d(H)}),R=H=>{F(H)||(o(H),$==null||$(!0))},Y=he((H,W)=>{switch(H.key){case"ArrowUp":R(n.addDays(W,-7)),H.preventDefault();break;case"ArrowDown":R(n.addDays(W,7)),H.preventDefault();break;case"ArrowLeft":{const ee=n.addDays(W,N?1:-1),J=n.addMonths(W,N?1:-1),ie=vs({adapter:n,date:ee,minDate:N?ee:n.startOfMonth(J),maxDate:N?n.endOfMonth(J):ee,isDateDisabled:F,timezone:k});R(ie||ee),H.preventDefault();break}case"ArrowRight":{const ee=n.addDays(W,N?-1:1),J=n.addMonths(W,N?-1:1),ie=vs({adapter:n,date:ee,minDate:N?n.startOfMonth(J):ee,maxDate:N?ee:n.endOfMonth(J),isDateDisabled:F,timezone:k});R(ie||ee),H.preventDefault();break}case"Home":R(n.startOfWeek(W)),H.preventDefault();break;case"End":R(n.endOfWeek(W)),H.preventDefault();break;case"PageUp":R(n.addMonths(W,1)),H.preventDefault();break;case"PageDown":R(n.addMonths(W,-1)),H.preventDefault();break}}),G=he((H,W)=>R(W)),Z=he((H,W)=>{c!=null&&n.isSameDay(c,W)&&($==null||$(!1))}),re=n.getMonth(a),X=n.getYear(a),Q=P.useMemo(()=>l.filter(H=>!!H).map(H=>n.startOfDay(H)),[n,l]),K=`${X}-${re}`,te=P.useMemo(()=>P.createRef(),[K]),z=P.useMemo(()=>{const H=n.getWeekArray(a);let W=n.addMonths(a,1);for(;L&&H.length<L;){const ee=n.getWeekArray(W),J=n.isSameDay(H[H.length-1][0],ee[0][0]);ee.slice(J?1:0).forEach(ie=>{H.length<L&&H.push(ie)}),W=n.addMonths(W,1)}return H},[a,L,n]);return b.jsxs(rj,{role:"grid","aria-labelledby":j,className:O.root,children:[b.jsxs(sj,{role:"row",className:O.header,children:[C&&b.jsx(aj,{variant:"caption",role:"columnheader","aria-label":V.calendarWeekNumberHeaderLabel,className:O.weekNumberLabel,children:V.calendarWeekNumberHeaderText}),_k(n,I).map((H,W)=>b.jsx(ij,{variant:"caption",role:"columnheader","aria-label":n.format(H,"weekday"),className:O.weekDayLabel,children:_(H)},W.toString()))]}),u?b.jsx(cj,{className:O.loadingContainer,children:m()}):b.jsx(uj,U({transKey:K,onExited:f,reduceAnimations:h,slideDirection:g,className:ye(r,O.slideTransition)},y,{nodeRef:te,children:b.jsx(dj,{ref:te,role:"rowgroup",className:O.monthContainer,children:z.map((H,W)=>b.jsxs(fj,{role:"row",className:O.weekContainer,"aria-rowindex":W+1,children:[C&&b.jsx(lj,{className:O.weekNumber,role:"rowheader","aria-label":V.calendarWeekNumberAriaLabelText(n.getWeekNumber(H[0])),children:V.calendarWeekNumberText(n.getWeekNumber(H[0]))}),H.map((ee,J)=>b.jsx(pj,{parentProps:t,day:ee,selectedDays:Q,isViewFocused:D,focusedDay:c,onKeyDown:Y,onFocus:G,onBlur:Z,onDaySelect:B,isDateDisabled:F,currentMonthNumber:re,"aria-colindex":J+1},ee.toString()))]},`week-${H[0]}`))})}))]})}function mv(e){return Te("MuiMonthCalendar",e)}const ci=we("MuiMonthCalendar",["root","button","disabled","selected"]),mj=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],gj=(e,t)=>{const n={button:["button",t.isMonthDisabled&&"disabled",t.isMonthSelected&&"selected"]};return Ce(n,mv,e)},yj=ae.styled("button",{name:"MuiMonthCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${ci.disabled}`]:t.disabled},{[`&.${ci.selected}`]:t.selected}]})(({theme:e})=>U({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ae.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ae.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ci.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ci.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),gv=P.memo(function(t){const{autoFocus:n,classes:o,disabled:r,selected:i,value:a,onClick:l,onKeyDown:c,onFocus:u,onBlur:d,slots:f,slotProps:p}=t,h=Pe(t,mj),m=P.useRef(null),{ownerState:g}=Dt(),y=U({},g,{isMonthDisabled:r,isMonthSelected:i}),v=gj(o,y);wt(()=>{var S;n&&((S=m.current)==null||S.focus())},[n]);const w=(f==null?void 0:f.monthButton)??yj,x=Le({elementType:w,externalSlotProps:p==null?void 0:p.monthButton,externalForwardedProps:h,additionalProps:{disabled:r,ref:m,type:"button",role:"radio","aria-checked":i,onClick:S=>l(S,a),onKeyDown:S=>c(S,a),onFocus:S=>u(S,a),onBlur:S=>d(S,a)},ownerState:y,className:v.button});return b.jsx(w,U({},x))});process.env.NODE_ENV!=="production"&&(gv.displayName="MonthCalendarButton");const bj=["autoFocus","className","currentMonth","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],vj=e=>Ce({root:["root"]},mv,e);function xj(e,t){const n=ae.useThemeProps({props:e,name:t}),o=$s(n);return U({},n,o,{monthsPerRow:n.monthsPerRow??3})}const Ah=(e,t,n,o,r)=>!!(e===t&&o&&r.isSameYear(n,o)),Sj=ae.styled("div",{name:"MuiMonthCalendar",slot:"Root",shouldForwardProp:e=>Zn(e)&&e!=="monthsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:16,padding:"8px 0",width:va,boxSizing:"border-box",variants:[{props:{monthsPerRow:3},style:{columnGap:24}},{props:{monthsPerRow:4},style:{columnGap:0}}]}),cd=P.forwardRef(function(t,n){const o=xj(t,"MuiMonthCalendar"),{autoFocus:r,className:i,currentMonth:a,classes:l,value:c,defaultValue:u,referenceDate:d,disabled:f,disableFuture:p,disablePast:h,maxDate:m,minDate:g,onChange:y,shouldDisableMonth:v,readOnly:w,onMonthFocus:x,hasFocus:S,onFocusedViewChange:T,monthsPerRow:E,timezone:M,gridLabelId:_,slots:D,slotProps:$}=o,j=Pe(o,bj),{value:C,handleValueChange:L,timezone:k}=Hs({name:"MonthCalendar",timezone:M,value:c,defaultValue:u,referenceDate:d,onChange:y,valueManager:En}),I=ha(k),O=fn(),N=Qe(),{ownerState:F}=Dt(),V=P.useMemo(()=>En.getInitialReferenceValue({value:C,adapter:N,props:o,timezone:k,referenceDate:d,granularity:vn.month}),[]),B=vj(l),R=P.useMemo(()=>N.getMonth(I),[N,I]),Y=P.useMemo(()=>C!=null?N.getMonth(C):null,[C,N]),[G,Z]=P.useState(()=>Y||N.getMonth(V)),[re,X]=Jn({name:"MonthCalendar",state:"hasFocus",controlled:S,default:r??!1}),Q=he(J=>{X(J),T&&T(J)}),K=P.useCallback(J=>{const ie=N.startOfMonth(h&&N.isAfter(I,g)?I:g),ne=N.startOfMonth(p&&N.isBefore(I,m)?I:m),de=N.startOfMonth(J);return N.isBefore(de,ie)||N.isAfter(de,ne)?!0:v?v(de):!1},[p,h,m,g,I,v,N]),te=he((J,ie)=>{if(w)return;const de=(C&&a&&!N.isSameYear(C,a)?N.setYear(C,N.getYear(a)):C)??a??V,se=N.setMonth(de,ie);L(se)}),z=he(J=>{K(N.setMonth(C??a??V,J))||(Z(J),Q(!0),x&&x(J))});P.useEffect(()=>{Z(J=>Y!==null&&J!==Y?Y:J)},[Y]);const H=he((J,ie)=>{switch(J.key){case"ArrowUp":z((12+ie-3)%12),J.preventDefault();break;case"ArrowDown":z((12+ie+3)%12),J.preventDefault();break;case"ArrowLeft":z((12+ie+(O?1:-1))%12),J.preventDefault();break;case"ArrowRight":z((12+ie+(O?-1:1))%12),J.preventDefault();break}}),W=he((J,ie)=>{z(ie)}),ee=he((J,ie)=>{G===ie&&Q(!1)});return b.jsx(Sj,U({ref:n,className:ye(B.root,i),ownerState:F,role:"radiogroup","aria-labelledby":_,monthsPerRow:E},j,{children:Su(N,a??C??V).map(J=>{const ie=N.getMonth(J),ne=N.format(J,"monthShort"),de=N.format(J,"month"),se=Ah(ie,Y,J,C,N),ue=f||K(J);return b.jsx(gv,{selected:se,value:ie,onClick:te,onKeyDown:H,autoFocus:re&&ie===G,disabled:ue,tabIndex:ie===G&&!ue?0:-1,onFocus:W,onBlur:ee,"aria-current":Ah(ie,R,J,I,N)?"date":void 0,"aria-label":de,slots:D,slotProps:$,classes:l,children:ne},ne)})}))});process.env.NODE_ENV!=="production"&&(cd.displayName="MonthCalendar");process.env.NODE_ENV!=="production"&&(cd.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,currentMonth:s.object,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onChange:s.func,onFocusedViewChange:s.func,onMonthFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableMonth:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object});function yv(e){return Te("MuiYearCalendar",e)}const ui=we("MuiYearCalendar",["root","button","disabled","selected"]),Cj=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],wj=(e,t)=>{const n={button:["button",t.isYearDisabled&&"disabled",t.isYearSelected&&"selected"]};return Ce(n,yv,e)},Tj=ae.styled("button",{name:"MuiYearCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${ui.disabled}`]:t.disabled},{[`&.${ui.selected}`]:t.selected}]})(({theme:e})=>U({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:ae.alpha(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ae.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ui.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ui.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),bv=P.memo(function(t){const{autoFocus:n,classes:o,disabled:r,selected:i,value:a,onClick:l,onKeyDown:c,onFocus:u,onBlur:d,slots:f,slotProps:p}=t,h=Pe(t,Cj),m=P.useRef(null),{ownerState:g}=Dt(),y=U({},g,{isYearDisabled:r,isYearSelected:i}),v=wj(o,y);wt(()=>{var S;n&&((S=m.current)==null||S.focus())},[n]);const w=(f==null?void 0:f.yearButton)??Tj,x=Le({elementType:w,externalSlotProps:p==null?void 0:p.yearButton,externalForwardedProps:h,additionalProps:{disabled:r,ref:m,type:"button",role:"radio","aria-checked":i,onClick:S=>l(S,a),onKeyDown:S=>c(S,a),onFocus:S=>u(S,a),onBlur:S=>d(S,a)},ownerState:y,className:v.button});return b.jsx(w,U({},x))});process.env.NODE_ENV!=="production"&&(bv.displayName="YearCalendarButton");const Pj=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],Ej=e=>Ce({root:["root"]},yv,e);function Mj(e,t){const n=ae.useThemeProps({props:e,name:t}),o=$s(n);return U({},n,o,{yearsPerRow:n.yearsPerRow??3,yearsOrder:n.yearsOrder??"asc"})}const Oj=ae.styled("div",{name:"MuiYearCalendar",slot:"Root",shouldForwardProp:e=>Zn(e)&&e!=="yearsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:12,padding:"6px 0",overflowY:"auto",height:"100%",width:va,maxHeight:A5,boxSizing:"border-box",position:"relative",variants:[{props:{yearsPerRow:3},style:{columnGap:24}},{props:{yearsPerRow:4},style:{columnGap:0,padding:"0 2px"}}]}),kj=ae.styled("div",{name:"MuiYearCalendar",slot:"ButtonFiller"})({height:36,width:72}),ud=P.forwardRef(function(t,n){const o=Mj(t,"MuiYearCalendar"),{autoFocus:r,className:i,classes:a,value:l,defaultValue:c,referenceDate:u,disabled:d,disableFuture:f,disablePast:p,maxDate:h,minDate:m,onChange:g,readOnly:y,shouldDisableYear:v,onYearFocus:w,hasFocus:x,onFocusedViewChange:S,yearsOrder:T,yearsPerRow:E,timezone:M,gridLabelId:_,slots:D,slotProps:$}=o,j=Pe(o,Pj),{value:C,handleValueChange:L,timezone:k}=Hs({name:"YearCalendar",timezone:M,value:l,defaultValue:c,referenceDate:u,onChange:g,valueManager:En}),I=ha(k),O=fn(),N=Qe(),{ownerState:F}=Dt(),V=P.useMemo(()=>En.getInitialReferenceValue({value:C,adapter:N,props:o,timezone:k,referenceDate:u,granularity:vn.year}),[]),B=Ej(a),R=P.useMemo(()=>N.getYear(I),[N,I]),Y=P.useMemo(()=>C!=null?N.getYear(C):null,[C,N]),[G,Z]=P.useState(()=>Y||N.getYear(V)),[re,X]=Jn({name:"YearCalendar",state:"hasFocus",controlled:x,default:r??!1}),Q=he(le=>{X(le),S&&S(le)}),K=P.useCallback(le=>{if(p&&N.isBeforeYear(le,I)||f&&N.isAfterYear(le,I)||m&&N.isBeforeYear(le,m)||h&&N.isAfterYear(le,h))return!0;if(!v)return!1;const fe=N.startOfYear(le);return v(fe)},[f,p,h,m,I,v,N]),te=he((le,fe)=>{if(y)return;const me=N.setYear(C??V,fe);L(me)}),z=he(le=>{K(N.setYear(C??V,le))||(Z(le),Q(!0),w==null||w(le))});P.useEffect(()=>{Z(le=>Y!==null&&le!==Y?Y:le)},[Y]);const H=T!=="desc"?E*1:E*-1,W=O&&T==="asc"||!O&&T==="desc"?-1:1,ee=he((le,fe)=>{switch(le.key){case"ArrowUp":z(fe-H),le.preventDefault();break;case"ArrowDown":z(fe+H),le.preventDefault();break;case"ArrowLeft":z(fe-W),le.preventDefault();break;case"ArrowRight":z(fe+W),le.preventDefault();break}}),J=he((le,fe)=>{z(fe)}),ie=he((le,fe)=>{G===fe&&Q(!1)}),ne=P.useRef(null),de=$e(n,ne);P.useEffect(()=>{if(r||ne.current===null)return;const le=ne.current.querySelector('[tabindex="0"]');if(!le)return;const fe=le.offsetHeight,me=le.offsetTop,Ie=ne.current.clientHeight,Oe=ne.current.scrollTop,qe=me+fe;fe>Ie||me<Oe||(ne.current.scrollTop=qe-Ie/2-fe/2)},[r]);const se=N.getYearRange([m,h]);T==="desc"&&se.reverse();let ue=E-se.length%E;return ue===E&&(ue=0),b.jsxs(Oj,U({ref:de,className:ye(B.root,i),ownerState:F,role:"radiogroup","aria-labelledby":_,yearsPerRow:E},j,{children:[se.map(le=>{const fe=N.getYear(le),me=fe===Y,Ie=d||K(le);return b.jsx(bv,{selected:me,value:fe,onClick:te,onKeyDown:ee,autoFocus:re&&fe===G,disabled:Ie,tabIndex:fe===G&&!Ie?0:-1,onFocus:J,onBlur:ie,"aria-current":R===fe?"date":void 0,slots:D,slotProps:$,classes:a,children:N.format(le,"year")},N.format(le,"year"))}),Array.from({length:ue},(le,fe)=>b.jsx(kj,{},fe))]}))});process.env.NODE_ENV!=="production"&&(ud.displayName="YearCalendar");process.env.NODE_ENV!=="production"&&(ud.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,onChange:s.func,onFocusedViewChange:s.func,onYearFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableYear:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const Dj=e=>Te("MuiPickersCalendarHeader",e),Rj=we("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function Ij(e){return Te("MuiPickersArrowSwitcher",e)}we("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const Aj=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],Nj=["ownerState"],_j=["ownerState"],jj=ae.styled("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),Lj=ae.styled("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),Nh=ae.styled(Es,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),$j=e=>Ce({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},Ij,e),vv=P.forwardRef(function(t,n){const o=fn(),r=ae.useThemeProps({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:l,slotProps:c,isNextDisabled:u,isNextHidden:d,onGoToNext:f,nextLabel:p,isPreviousDisabled:h,isPreviousHidden:m,onGoToPrevious:g,previousLabel:y,labelId:v,classes:w}=r,x=Pe(r,Aj),{ownerState:S}=Dt(),T=$j(w),E={isDisabled:u,isHidden:d,goTo:f,label:p},M={isDisabled:h,isHidden:m,goTo:g,label:y},_=(l==null?void 0:l.previousIconButton)??Nh,D=Le({elementType:_,externalSlotProps:c==null?void 0:c.previousIconButton,additionalProps:{size:"medium",title:M.label,"aria-label":M.label,disabled:M.isDisabled,edge:"end",onClick:M.goTo},ownerState:U({},S,{isButtonHidden:M.isHidden??!1}),className:ye(T.button,T.previousIconButton)}),$=(l==null?void 0:l.nextIconButton)??Nh,j=Le({elementType:$,externalSlotProps:c==null?void 0:c.nextIconButton,additionalProps:{size:"medium",title:E.label,"aria-label":E.label,disabled:E.isDisabled,edge:"start",onClick:E.goTo},ownerState:U({},S,{isButtonHidden:E.isHidden??!1}),className:ye(T.button,T.nextIconButton)}),C=(l==null?void 0:l.leftArrowIcon)??$N,L=Le({elementType:C,externalSlotProps:c==null?void 0:c.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:S,className:T.leftArrowIcon}),k=Pe(L,Nj),I=(l==null?void 0:l.rightArrowIcon)??VN,O=Le({elementType:I,externalSlotProps:c==null?void 0:c.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:S,className:T.rightArrowIcon}),N=Pe(O,_j);return b.jsxs(jj,U({ref:n,className:ye(T.root,a),ownerState:S},x,{children:[b.jsx(_,U({},D,{children:o?b.jsx(I,U({},N)):b.jsx(C,U({},k))})),i?b.jsx(ao,{variant:"subtitle1",component:"span",id:v,children:i}):b.jsx(Lj,{className:T.spacer,ownerState:S}),b.jsx($,U({},j,{children:o?b.jsx(C,U({},k)):b.jsx(I,U({},N))}))]}))});process.env.NODE_ENV!=="production"&&(vv.displayName="PickersArrowSwitcher");function Vj(e,{disableFuture:t,maxDate:n,timezone:o}){const r=Qe();return P.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isBefore(i,n)?i:n);return!r.isAfter(a,e)},[t,n,e,r,o])}function Fj(e,{disablePast:t,minDate:n,timezone:o}){const r=Qe();return P.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isAfter(i,n)?i:n);return!r.isBefore(a,e)},[t,n,e,r,o])}const Bj=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","classes","timezone","format"],zj=["ownerState"],Wj=e=>Ce({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Dj,e),Uj=ae.styled("div",{name:"MuiPickersCalendarHeader",slot:"Root"})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),Hj=ae.styled("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer"})(({theme:e})=>U({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Yj=ae.styled("div",{name:"MuiPickersCalendarHeader",slot:"Label"})({marginRight:6}),qj=ae.styled(Es,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton"})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${Rj.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),Gj=ae.styled(LN,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon"})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),dd=P.forwardRef(function(t,n){const o=lo(),r=Qe(),i=ae.useThemeProps({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:l,currentMonth:c,disabled:u,disableFuture:d,disablePast:f,maxDate:p,minDate:h,onMonthChange:m,onViewChange:g,view:y,reduceAnimations:v,views:w,labelId:x,className:S,classes:T,timezone:E,format:M=`${r.formats.month} ${r.formats.year}`}=i,_=Pe(i,Bj),{ownerState:D}=Dt(),$=Wj(T),j=(a==null?void 0:a.switchViewButton)??qj,C=Le({elementType:j,externalSlotProps:l==null?void 0:l.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(y)},ownerState:U({},D,{view:y}),className:$.switchViewButton}),L=(a==null?void 0:a.switchViewIcon)??Gj,k=Le({elementType:L,externalSlotProps:l==null?void 0:l.switchViewIcon,ownerState:D,className:$.switchViewIcon}),I=Pe(k,zj),O=()=>m(r.addMonths(c,1)),N=()=>m(r.addMonths(c,-1)),F=Vj(c,{disableFuture:d,maxDate:p,timezone:E}),V=Fj(c,{disablePast:f,minDate:h,timezone:E}),B=()=>{if(!(w.length===1||!g||u))if(w.length===2)g(w.find(Y=>Y!==y)||w[0]);else{const Y=w.indexOf(y)!==0?0:1;g(w[Y])}};if(w.length===1&&w[0]==="year")return null;const R=r.formatByString(c,M);return b.jsxs(Uj,U({},_,{ownerState:D,className:ye($.root,S),ref:n,children:[b.jsxs(Hj,{role:"presentation",onClick:B,ownerState:D,"aria-live":"polite",className:$.labelContainer,children:[b.jsx(cv,{reduceAnimations:v,transKey:R,children:b.jsx(Yj,{id:x,ownerState:D,className:$.label,children:R})}),w.length>1&&!u&&b.jsx(j,U({},C,{children:b.jsx(L,U({},I))}))]}),b.jsx(no,{in:y==="day",appear:!v,enter:!v,children:b.jsx(vv,{slots:a,slotProps:l,onGoToPrevious:N,isPreviousDisabled:V,previousLabel:o.previousMonth,onGoToNext:O,isNextDisabled:F,nextLabel:o.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(dd.displayName="PickersCalendarHeader");process.env.NODE_ENV!=="production"&&(dd.propTypes={classes:s.object,className:s.string,currentMonth:s.object.isRequired,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,format:s.string,labelId:s.string,maxDate:s.object.isRequired,minDate:s.object.isRequired,onMonthChange:s.func.isRequired,onViewChange:s.func,reduceAnimations:s.bool.isRequired,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string.isRequired,view:s.oneOf(["day","month","year"]).isRequired,views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired).isRequired});const Kj=ae.styled("div",{slot:"internal",shouldForwardProp:void 0})({overflow:"hidden",width:va,maxHeight:Gu,display:"flex",flexDirection:"column",margin:"0 auto"}),Zj=e=>Te("MuiDateCalendar",e);we("MuiDateCalendar",["root","viewTransitionContainer"]);const Xj=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","classes","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],Qj=e=>Ce({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},Zj,e);function Jj(e,t){const n=ae.useThemeProps({props:e,name:t}),o=vb(n.reduceAnimations),r=$s(n);return U({},n,r,{loading:n.loading??!1,openTo:n.openTo??"day",views:n.views??["year","day"],reduceAnimations:o,renderLoading:n.renderLoading??(()=>b.jsx("span",{children:"..."}))})}const eL=ae.styled(Kj,{name:"MuiDateCalendar",slot:"Root"})({display:"flex",flexDirection:"column",height:Gu}),tL=ae.styled(cv,{name:"MuiDateCalendar",slot:"ViewTransitionContainer"})({}),fd=P.forwardRef(function(t,n){const o=Qe(),{ownerState:r}=Dt(),i=so(),a=Jj(t,"MuiDateCalendar"),{autoFocus:l,onViewChange:c,value:u,defaultValue:d,referenceDate:f,disableFuture:p,disablePast:h,onChange:m,onMonthChange:g,reduceAnimations:y,shouldDisableDate:v,shouldDisableMonth:w,shouldDisableYear:x,view:S,views:T,openTo:E,className:M,classes:_,disabled:D,readOnly:$,minDate:j,maxDate:C,disableHighlightToday:L,focusedView:k,onFocusedViewChange:I,showDaysOutsideCurrentMonth:O,fixedWeekNumber:N,dayOfWeekFormatter:F,slots:V,slotProps:B,loading:R,renderLoading:Y,displayWeekNumber:G,yearsOrder:Z,yearsPerRow:re,monthsPerRow:X,timezone:Q}=a,K=Pe(a,Xj),{value:te,handleValueChange:z,timezone:H}=Hs({name:"DateCalendar",timezone:Q,value:u,defaultValue:d,referenceDate:f,onChange:m,valueManager:En}),{view:W,setView:ee,focusedView:J,setFocusedView:ie,goToNextView:ne,setValueAndGoToNextView:de}=Sb({view:S,views:T,openTo:E,onChange:z,onViewChange:c,autoFocus:l,focusedView:k,onFocusedViewChange:I}),{referenceDate:se,calendarState:ue,setVisibleDate:le,isDateDisabled:fe,onMonthSwitchingAnimationEnd:me}=V_({value:te,referenceDate:f,reduceAnimations:y,onMonthChange:g,minDate:j,maxDate:C,shouldDisableDate:v,disablePast:h,disableFuture:p,timezone:H,getCurrentMonthFromVisibleDate:(ke,ut)=>o.isSameMonth(ke,ut)?ut:o.startOfMonth(ke)}),Ie=D&&te||j,Oe=D&&te||C,qe=`${i}-grid-label`,tt=J!==null,St=(V==null?void 0:V.calendarHeader)??dd,Tt=Le({elementType:St,externalSlotProps:B==null?void 0:B.calendarHeader,additionalProps:{views:T,view:W,currentMonth:ue.currentMonth,onViewChange:ee,onMonthChange:ke=>le({target:ke,reason:"header-navigation"}),minDate:Ie,maxDate:Oe,disabled:D,disablePast:h,disableFuture:p,reduceAnimations:y,timezone:H,labelId:qe},ownerState:r}),Ee=he(ke=>{const ut=o.startOfMonth(ke),yt=o.endOfMonth(ke),Et=fe(ke)?vs({adapter:o,date:ke,minDate:o.isBefore(j,ut)?ut:j,maxDate:o.isAfter(C,yt)?yt:C,disablePast:h,disableFuture:p,isDateDisabled:fe,timezone:H}):ke;Et?(de(Et,"finish"),le({target:Et,reason:"cell-interaction"})):(ne(),le({target:ut,reason:"cell-interaction"}))}),Me=he(ke=>{const ut=o.startOfYear(ke),yt=o.endOfYear(ke),Et=fe(ke)?vs({adapter:o,date:ke,minDate:o.isBefore(j,ut)?ut:j,maxDate:o.isAfter(C,yt)?yt:C,disablePast:h,disableFuture:p,isDateDisabled:fe,timezone:H}):ke;Et?(de(Et,"finish"),le({target:Et,reason:"cell-interaction"})):(ne(),le({target:ut,reason:"cell-interaction"}))}),Se=he(ke=>z(ke&&$i(o,ke,te??se),"finish",W));P.useEffect(()=>{o.isValid(te)&&le({target:te,reason:"controlled-value-change"})},[te]);const Be=Qj(_),ze={disablePast:h,disableFuture:p,maxDate:C,minDate:j},nt={disableHighlightToday:L,readOnly:$,disabled:D,timezone:H,gridLabelId:qe,slots:V,slotProps:B},Je=P.useRef(W);P.useEffect(()=>{Je.current!==W&&(J===Je.current&&ie(W,!0),Je.current=W)},[J,ie,W]);const Vt=P.useMemo(()=>[te],[te]);return b.jsxs(eL,U({ref:n,className:ye(Be.root,M),ownerState:r},K,{children:[b.jsx(St,U({},Tt,{slots:V,slotProps:B})),b.jsx(tL,{reduceAnimations:y,className:Be.viewTransitionContainer,transKey:W,ownerState:r,children:b.jsxs("div",{children:[W==="year"&&b.jsx(ud,U({},ze,nt,{value:te,onChange:Me,shouldDisableYear:x,hasFocus:tt,onFocusedViewChange:ke=>ie("year",ke),yearsOrder:Z,yearsPerRow:re,referenceDate:se})),W==="month"&&b.jsx(cd,U({},ze,nt,{currentMonth:ue.currentMonth,hasFocus:tt,className:M,value:te,onChange:Ee,shouldDisableMonth:w,onFocusedViewChange:ke=>ie("month",ke),monthsPerRow:X,referenceDate:se})),W==="day"&&b.jsx(hj,U({},ue,ze,nt,{onMonthSwitchingAnimationEnd:me,hasFocus:tt,onFocusedDayChange:ke=>le({target:ke,reason:"cell-interaction"}),reduceAnimations:y,selectedDays:Vt,onSelectedDaysChange:Se,shouldDisableDate:v,shouldDisableMonth:w,shouldDisableYear:x,onFocusedViewChange:ke=>ie("day",ke),showDaysOutsideCurrentMonth:O,fixedWeekNumber:N,dayOfWeekFormatter:F,displayWeekNumber:G,loading:R,renderLoading:Y}))]})})]}))});process.env.NODE_ENV!=="production"&&(fd.displayName="DateCalendar");process.env.NODE_ENV!=="production"&&(fd.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,fixedWeekNumber:s.number,focusedView:s.oneOf(["day","month","year"]),loading:s.bool,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onChange:s.func,onFocusedViewChange:s.func,onMonthChange:s.func,onViewChange:s.func,onYearChange:s.func,openTo:s.oneOf(["day","month","year"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const jo=({view:e,onViewChange:t,views:n,focusedView:o,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:p,minDate:h,maxDate:m,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:v,reduceAnimations:w,onMonthChange:x,monthsPerRow:S,onYearChange:T,yearsOrder:E,yearsPerRow:M,slots:_,slotProps:D,loading:$,renderLoading:j,disableHighlightToday:C,readOnly:L,disabled:k,showDaysOutsideCurrentMonth:I,dayOfWeekFormatter:O,sx:N,autoFocus:F,fixedWeekNumber:V,displayWeekNumber:B,timezone:R})=>b.jsx(fd,{view:e,onViewChange:t,views:n.filter(Ip),focusedView:o&&Ip(o)?o:null,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:p,minDate:h,maxDate:m,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:v,reduceAnimations:w,onMonthChange:x,monthsPerRow:S,onYearChange:T,yearsOrder:E,yearsPerRow:M,slots:_,slotProps:D,loading:$,renderLoading:j,disableHighlightToday:C,readOnly:L,disabled:k,showDaysOutsideCurrentMonth:I,dayOfWeekFormatter:O,sx:N,autoFocus:F,fixedWeekNumber:V,displayWeekNumber:B,timezone:R});process.env.NODE_ENV!=="production"&&(jo.displayName="renderDateViewCalendar");const pd=P.forwardRef(function(t,n){var c;const o=Qe(),r=Ky(t,"MuiDesktopDatePicker"),i=U({day:jo,month:jo,year:jo},r.viewRenderers),a=U({},r,{closeOnSelect:r.closeOnSelect??!0,viewRenderers:i,format:Cu(o,r,!1),yearsPerRow:r.yearsPerRow??4,slots:U({field:ja},r.slots),slotProps:U({},r.slotProps,{field:u=>{var d;return U({},tn((d=r.slotProps)==null?void 0:d.field,u),Yy(r))},toolbar:U({hidden:!0},(c=r.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=Y5({ref:n,props:a,valueManager:En,valueType:"date",validator:Ls,steps:null});return l()});process.env.NODE_ENV!=="production"&&(pd.displayName="DesktopDatePicker");pd.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:xt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};function nL(e){return Te("MuiDialogContent",e)}we("MuiDialogContent",["root","dividers"]);const oL=we("MuiDialogTitle",["root"]),rL=e=>{const{classes:t,dividers:n}=e;return Ce({root:["root",n&&"dividers"]},nL,t)},sL=be("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Xe(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${oL.root} + &`]:{paddingTop:0}}}]}))),xv=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiDialogContent"}),{className:r,dividers:i=!1,...a}=o,l={...o,dividers:i},c=rL(l);return b.jsx(sL,{className:ye(c.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(xv.propTypes={children:s.node,classes:s.object,className:s.string,dividers:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function iL(e){return Te("MuiDialog",e)}const ds=we("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Sv=P.createContext({});process.env.NODE_ENV!=="production"&&(Sv.displayName="DialogContext");const aL=be(Ju,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),lL=e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:r,fullScreen:i}=e,a={root:["root"],backdrop:["backdrop"],container:["container",`scroll${ce(n)}`],paper:["paper",`paperScroll${ce(n)}`,`paperWidth${ce(String(o))}`,r&&"paperFullWidth",i&&"paperFullScreen"]};return Ce(a,iL,t)},cL=be(ed,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),uL=be("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ce(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),dL=be(zs,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ce(n.scroll)}`],t[`paperWidth${ce(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Xe(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${ds.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${ds.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${ds.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Cv=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiDialog"}),r=sa(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:u,BackdropProps:d,children:f,className:p,disableEscapeKeyDown:h=!1,fullScreen:m=!1,fullWidth:g=!1,maxWidth:y="sm",onClick:v,onClose:w,open:x,PaperComponent:S=zs,PaperProps:T={},scroll:E="paper",slots:M={},slotProps:_={},TransitionComponent:D=no,transitionDuration:$=i,TransitionProps:j,...C}=o,L={...o,disableEscapeKeyDown:h,fullScreen:m,fullWidth:g,maxWidth:y,scroll:E},k=lL(L),I=P.useRef(),O=ee=>{I.current=ee.target===ee.currentTarget},N=ee=>{v&&v(ee),I.current&&(I.current=null,w&&w(ee,"backdropClick"))},F=so(l),V=P.useMemo(()=>({titleId:F}),[F]),B={transition:D,...M},R={transition:j,paper:T,backdrop:d,..._},Y={slots:B,slotProps:R},[G,Z]=it("root",{elementType:cL,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:L,className:ye(k.root,p),ref:n}),[re,X]=it("backdrop",{elementType:aL,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:L,className:k.backdrop}),[Q,K]=it("paper",{elementType:dL,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:L,className:ye(k.paper,T.className)}),[te,z]=it("container",{elementType:uL,externalForwardedProps:Y,ownerState:L,className:k.container}),[H,W]=it("transition",{elementType:no,externalForwardedProps:Y,ownerState:L,additionalProps:{appear:!0,in:x,timeout:$,role:"presentation"}});return b.jsx(G,{closeAfterTransition:!0,slots:{backdrop:re},slotProps:{backdrop:{transitionDuration:$,as:u,...X}},disableEscapeKeyDown:h,onClose:w,open:x,onClick:N,...Z,...C,children:b.jsx(H,{...W,children:b.jsx(te,{onMouseDown:O,...z,children:b.jsx(Q,{as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":F,"aria-modal":c,...K,children:b.jsx(Sv.Provider,{value:V,children:f})})})})})});process.env.NODE_ENV!=="production"&&(Cv.propTypes={"aria-describedby":s.string,"aria-labelledby":s.string,"aria-modal":s.oneOfType([s.oneOf(["false","true"]),s.bool]),BackdropComponent:s.elementType,BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,disableEscapeKeyDown:s.bool,fullScreen:s.bool,fullWidth:s.bool,maxWidth:s.oneOfType([s.oneOf(["xs","sm","md","lg","xl",!1]),s.string]),onClick:s.func,onClose:s.func,open:s.bool.isRequired,PaperComponent:s.elementType,PaperProps:s.object,scroll:s.oneOf(["body","paper"]),slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),container: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,container: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]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});const fL=ae.styled(Cv,{slot:"internal"})({[`& .${ds.container}`]:{outline:0},[`& .${ds.paper}`]:{outline:0,minWidth:va}}),pL=ae.styled(xv,{slot:"internal"})({"&:first-of-type":{padding:0}});function hL(e){const{children:t,slots:n,slotProps:o}=e,{open:r}=Mr(),{dismissViews:i,onPopperExited:a}=Dt(),l=(n==null?void 0:n.dialog)??fL,c=(n==null?void 0:n.mobileTransition)??no;return b.jsx(l,U({open:r,onClose:()=>{i(),a==null||a()}},o==null?void 0:o.dialog,{TransitionComponent:c,TransitionProps:o==null?void 0:o.mobileTransition,PaperComponent:n==null?void 0:n.mobilePaper,PaperProps:o==null?void 0:o.mobilePaper,children:b.jsx(pL,{children:t})}))}const mL=["props","steps"],gL=["ownerState"],yL=e=>{var E;let{props:t,steps:n}=e,o=Pe(e,mL);const{slots:r,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=jb({steps:n}),{providerProps:d,renderCurrentView:f,ownerState:p}=wb(U({},o,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"mobile",getStepNavigation:u})),h=d.privateContextValue.labelId,m=((E=i==null?void 0:i.toolbar)==null?void 0:E.hidden)??!1,g=r.field,y=Le({elementType:g,externalSlotProps:i==null?void 0:i.field,additionalProps:U({},m&&{id:h}),ownerState:p}),v=Pe(y,gL),w=r.layout??xa;let x=h;m&&(a?x=`${h}-label`:x=void 0);const S=U({},i,{toolbar:U({},i==null?void 0:i.toolbar,{titleId:h}),mobilePaper:U({"aria-labelledby":x},i==null?void 0:i.mobilePaper)}),T=()=>b.jsxs(By,U({},d,{children:[b.jsx(g,U({},v,{slots:U({},r,v.slots),slotProps:U({},S,v.slotProps),inputRef:l})),b.jsx(hL,{slots:r,slotProps:S,children:b.jsx(w,U({},S==null?void 0:S.layout,{slots:r,slotProps:S,children:f()}))})]}));return process.env.NODE_ENV!=="production"&&(T.displayName="renderPicker"),{renderPicker:T}},hd=P.forwardRef(function(t,n){var c;const o=Qe(),r=Ky(t,"MuiMobileDatePicker"),i=U({day:jo,month:jo,year:jo},r.viewRenderers),a=U({},r,{viewRenderers:i,format:Cu(o,r,!1),slots:U({field:ja},r.slots),slotProps:U({},r.slotProps,{field:u=>{var d;return U({},tn((d=r.slotProps)==null?void 0:d.field,u),Yy(r))},toolbar:U({hidden:!1},(c=r.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=yL({ref:n,props:a,valueManager:En,valueType:"date",validator:Ls,steps:null});return l()});process.env.NODE_ENV!=="production"&&(hd.displayName="MobileDatePicker");hd.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:xt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};const bL=["desktopModeMediaQuery"],md=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=wI}=o,i=Pe(o,bL);return _y(r,{defaultMatches:!0})?b.jsx(pd,U({ref:n},i)):b.jsx(hd,U({ref:n},i))});process.env.NODE_ENV!=="production"&&(md.displayName="DatePicker");process.env.NODE_ENV!=="production"&&(md.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,desktopModeMediaQuery:s.string,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:xt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});var wv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Cr,function(){var n=1e3,o=6e4,r=36e5,i="millisecond",a="second",l="minute",c="hour",u="day",d="week",f="month",p="quarter",h="year",m="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(k){var I=["th","st","nd","rd"],O=k%100;return"["+k+(I[(O-20)%10]||I[O]||I[0])+"]"}},x=function(k,I,O){var N=String(k);return!N||N.length>=I?k:""+Array(I+1-N.length).join(O)+k},S={s:x,z:function(k){var I=-k.utcOffset(),O=Math.abs(I),N=Math.floor(O/60),F=O%60;return(I<=0?"+":"-")+x(N,2,"0")+":"+x(F,2,"0")},m:function k(I,O){if(I.date()<O.date())return-k(O,I);var N=12*(O.year()-I.year())+(O.month()-I.month()),F=I.clone().add(N,f),V=O-F<0,B=I.clone().add(N+(V?-1:1),f);return+(-(N+(O-F)/(V?F-B:B-F))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:f,y:h,w:d,d:u,D:m,h:c,m:l,s:a,ms:i,Q:p}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},T="en",E={};E[T]=w;var M="$isDayjsObject",_=function(k){return k instanceof C||!(!k||!k[M])},D=function k(I,O,N){var F;if(!I)return T;if(typeof I=="string"){var V=I.toLowerCase();E[V]&&(F=V),O&&(E[V]=O,F=V);var B=I.split("-");if(!F&&B.length>1)return k(B[0])}else{var R=I.name;E[R]=I,F=R}return!N&&F&&(T=F),F||!N&&T},$=function(k,I){if(_(k))return k.clone();var O=typeof I=="object"?I:{};return O.date=k,O.args=arguments,new C(O)},j=S;j.l=D,j.i=_,j.w=function(k,I){return $(k,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var C=function(){function k(O){this.$L=D(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[M]=!0}var I=k.prototype;return I.parse=function(O){this.$d=function(N){var F=N.date,V=N.utc;if(F===null)return new Date(NaN);if(j.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var B=F.match(y);if(B){var R=B[2]-1||0,Y=(B[7]||"0").substring(0,3);return V?new Date(Date.UTC(B[1],R,B[3]||1,B[4]||0,B[5]||0,B[6]||0,Y)):new Date(B[1],R,B[3]||1,B[4]||0,B[5]||0,B[6]||0,Y)}}return new Date(F)}(O),this.init()},I.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},I.$utils=function(){return j},I.isValid=function(){return this.$d.toString()!==g},I.isSame=function(O,N){var F=$(O);return this.startOf(N)<=F&&F<=this.endOf(N)},I.isAfter=function(O,N){return $(O)<this.startOf(N)},I.isBefore=function(O,N){return this.endOf(N)<$(O)},I.$g=function(O,N,F){return j.u(O)?this[N]:this.set(F,O)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(O,N){var F=this,V=!!j.u(N)||N,B=j.p(O),R=function(te,z){var H=j.w(F.$u?Date.UTC(F.$y,z,te):new Date(F.$y,z,te),F);return V?H:H.endOf(u)},Y=function(te,z){return j.w(F.toDate()[te].apply(F.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(z)),F)},G=this.$W,Z=this.$M,re=this.$D,X="set"+(this.$u?"UTC":"");switch(B){case h:return V?R(1,0):R(31,11);case f:return V?R(1,Z):R(0,Z+1);case d:var Q=this.$locale().weekStart||0,K=(G<Q?G+7:G)-Q;return R(V?re-K:re+(6-K),Z);case u:case m:return Y(X+"Hours",0);case c:return Y(X+"Minutes",1);case l:return Y(X+"Seconds",2);case a:return Y(X+"Milliseconds",3);default:return this.clone()}},I.endOf=function(O){return this.startOf(O,!1)},I.$set=function(O,N){var F,V=j.p(O),B="set"+(this.$u?"UTC":""),R=(F={},F[u]=B+"Date",F[m]=B+"Date",F[f]=B+"Month",F[h]=B+"FullYear",F[c]=B+"Hours",F[l]=B+"Minutes",F[a]=B+"Seconds",F[i]=B+"Milliseconds",F)[V],Y=V===u?this.$D+(N-this.$W):N;if(V===f||V===h){var G=this.clone().set(m,1);G.$d[R](Y),G.init(),this.$d=G.set(m,Math.min(this.$D,G.daysInMonth())).$d}else R&&this.$d[R](Y);return this.init(),this},I.set=function(O,N){return this.clone().$set(O,N)},I.get=function(O){return this[j.p(O)]()},I.add=function(O,N){var F,V=this;O=Number(O);var B=j.p(N),R=function(Z){var re=$(V);return j.w(re.date(re.date()+Math.round(Z*O)),V)};if(B===f)return this.set(f,this.$M+O);if(B===h)return this.set(h,this.$y+O);if(B===u)return R(1);if(B===d)return R(7);var Y=(F={},F[l]=o,F[c]=r,F[a]=n,F)[B]||1,G=this.$d.getTime()+O*Y;return j.w(G,this)},I.subtract=function(O,N){return this.add(-1*O,N)},I.format=function(O){var N=this,F=this.$locale();if(!this.isValid())return F.invalidDate||g;var V=O||"YYYY-MM-DDTHH:mm:ssZ",B=j.z(this),R=this.$H,Y=this.$m,G=this.$M,Z=F.weekdays,re=F.months,X=F.meridiem,Q=function(z,H,W,ee){return z&&(z[H]||z(N,V))||W[H].slice(0,ee)},K=function(z){return j.s(R%12||12,z,"0")},te=X||function(z,H,W){var ee=z<12?"AM":"PM";return W?ee.toLowerCase():ee};return V.replace(v,function(z,H){return H||function(W){switch(W){case"YY":return String(N.$y).slice(-2);case"YYYY":return j.s(N.$y,4,"0");case"M":return G+1;case"MM":return j.s(G+1,2,"0");case"MMM":return Q(F.monthsShort,G,re,3);case"MMMM":return Q(re,G);case"D":return N.$D;case"DD":return j.s(N.$D,2,"0");case"d":return String(N.$W);case"dd":return Q(F.weekdaysMin,N.$W,Z,2);case"ddd":return Q(F.weekdaysShort,N.$W,Z,3);case"dddd":return Z[N.$W];case"H":return String(R);case"HH":return j.s(R,2,"0");case"h":return K(1);case"hh":return K(2);case"a":return te(R,Y,!0);case"A":return te(R,Y,!1);case"m":return String(Y);case"mm":return j.s(Y,2,"0");case"s":return String(N.$s);case"ss":return j.s(N.$s,2,"0");case"SSS":return j.s(N.$ms,3,"0");case"Z":return B}return null}(z)||B.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(O,N,F){var V,B=this,R=j.p(N),Y=$(O),G=(Y.utcOffset()-this.utcOffset())*o,Z=this-Y,re=function(){return j.m(B,Y)};switch(R){case h:V=re()/12;break;case f:V=re();break;case p:V=re()/3;break;case d:V=(Z-G)/6048e5;break;case u:V=(Z-G)/864e5;break;case c:V=Z/r;break;case l:V=Z/o;break;case a:V=Z/n;break;default:V=Z}return F?V:j.a(V)},I.daysInMonth=function(){return this.endOf(f).$D},I.$locale=function(){return E[this.$L]},I.locale=function(O,N){if(!O)return this.$L;var F=this.clone(),V=D(O,N,!0);return V&&(F.$L=V),F},I.clone=function(){return j.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},k}(),L=C.prototype;return $.prototype=L,[["$ms",i],["$s",a],["$m",l],["$H",c],["$W",u],["$M",f],["$y",h],["$D",m]].forEach(function(k){L[k[1]]=function(I){return this.$g(I,k[0],k[1])}}),$.extend=function(k,I){return k.$i||(k(I,C,$),k.$i=!0),$},$.locale=D,$.isDayjs=_,$.unix=function(k){return $(1e3*k)},$.en=E[T],$.Ls=E,$.p={},$})})(wv);var vL=wv.exports;const bt=oo(vL);var Tv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Cr,function(){var n="week",o="year";return function(r,i,a){var l=i.prototype;l.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=a(this).startOf(o).add(1,o).date(u),f=a(this).endOf(n);if(d.isBefore(f))return 1}var p=a(this).startOf(o).date(u).startOf(n).subtract(1,"millisecond"),h=this.diff(p,n,!0);return h<0?a(this).startOf("week").week():Math.ceil(h)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(Tv);var xL=Tv.exports;const SL=oo(xL);var Pv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Cr,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,i=/\d\d/,a=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,c={},u=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(v){this[y]=+v}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(v){if(!v||v==="Z")return 0;var w=v.match(/([+-]|\d\d)/g),x=60*w[1]+(+w[2]||0);return x===0?0:w[0]==="+"?-x:x}(y)}],p=function(y){var v=c[y];return v&&(v.indexOf?v:v.s.concat(v.f))},h=function(y,v){var w,x=c.meridiem;if(x){for(var S=1;S<=24;S+=1)if(y.indexOf(x(S,0,v))>-1){w=S>12;break}}else w=y===(v?"pm":"PM");return w},m={A:[l,function(y){this.afternoon=h(y,!1)}],a:[l,function(y){this.afternoon=h(y,!0)}],Q:[r,function(y){this.month=3*(y-1)+1}],S:[r,function(y){this.milliseconds=100*+y}],SS:[i,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[i,d("day")],Do:[l,function(y){var v=c.ordinal,w=y.match(/\d+/);if(this.day=w[0],v)for(var x=1;x<=31;x+=1)v(x).replace(/\[|\]/g,"")===y&&(this.day=x)}],w:[a,d("week")],ww:[i,d("week")],M:[a,d("month")],MM:[i,d("month")],MMM:[l,function(y){var v=p("months"),w=(p("monthsShort")||v.map(function(x){return x.slice(0,3)})).indexOf(y)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[l,function(y){var v=p("months").indexOf(y)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(y){this.year=u(y)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function g(y){var v,w;v=y,w=c&&c.formats;for(var x=(y=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,j,C){var L=C&&C.toUpperCase();return j||w[C]||n[C]||w[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(k,I,O){return I||O.slice(1)})})).match(o),S=x.length,T=0;T<S;T+=1){var E=x[T],M=m[E],_=M&&M[0],D=M&&M[1];x[T]=D?{regex:_,parser:D}:E.replace(/^\[|\]$/g,"")}return function($){for(var j={},C=0,L=0;C<S;C+=1){var k=x[C];if(typeof k=="string")L+=k.length;else{var I=k.regex,O=k.parser,N=$.slice(L),F=I.exec(N)[0];O.call(j,F),$=$.replace(F,"")}}return function(V){var B=V.afternoon;if(B!==void 0){var R=V.hours;B?R<12&&(V.hours+=12):R===12&&(V.hours=0),delete V.afternoon}}(j),j}}return function(y,v,w){w.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(u=y.parseTwoDigitYear);var x=v.prototype,S=x.parse;x.parse=function(T){var E=T.date,M=T.utc,_=T.args;this.$u=M;var D=_[1];if(typeof D=="string"){var $=_[2]===!0,j=_[3]===!0,C=$||j,L=_[2];j&&(L=_[2]),c=this.$locale(),!$&&L&&(c=w.Ls[L]),this.$d=function(N,F,V,B){try{if(["x","X"].indexOf(F)>-1)return new Date((F==="X"?1e3:1)*N);var R=g(F)(N),Y=R.year,G=R.month,Z=R.day,re=R.hours,X=R.minutes,Q=R.seconds,K=R.milliseconds,te=R.zone,z=R.week,H=new Date,W=Z||(Y||G?1:H.getDate()),ee=Y||H.getFullYear(),J=0;Y&&!G||(J=G>0?G-1:H.getMonth());var ie,ne=re||0,de=X||0,se=Q||0,ue=K||0;return te?new Date(Date.UTC(ee,J,W,ne,de,se,ue+60*te.offset*1e3)):V?new Date(Date.UTC(ee,J,W,ne,de,se,ue)):(ie=new Date(ee,J,W,ne,de,se,ue),z&&(ie=B(ie).week(z).toDate()),ie)}catch{return new Date("")}}(E,D,M,w),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),C&&E!=this.format(D)&&(this.$d=new Date("")),c={}}else if(D instanceof Array)for(var k=D.length,I=1;I<=k;I+=1){_[1]=D[I-1];var O=w.apply(this,_);if(O.isValid()){this.$d=O.$d,this.$L=O.$L,this.init();break}I===k&&(this.$d=new Date(""))}else S.call(this,T)}}})})(Pv);var CL=Pv.exports;const wL=oo(CL);var Ev={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Cr,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(o,r,i){var a=r.prototype,l=a.format;i.en.formats=n,a.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=function(f,p){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(h,m,g){var y=g&&g.toUpperCase();return m||p[g]||n[g]||p[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,w,x){return w||x.slice(1)})})}(c,u===void 0?{}:u);return l.call(this,d)}}})})(Ev);var TL=Ev.exports;const PL=oo(TL);var Mv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Cr,function(){return function(n,o,r){o.prototype.isBetween=function(i,a,l,c){var u=r(i),d=r(a),f=(c=c||"()")[0]==="(",p=c[1]===")";return(f?this.isAfter(u,l):!this.isBefore(u,l))&&(p?this.isBefore(d,l):!this.isAfter(d,l))||(f?this.isBefore(u,l):!this.isAfter(u,l))&&(p?this.isAfter(d,l):!this.isBefore(d,l))}}})})(Mv);var EL=Mv.exports;const ML=oo(EL);var Ov={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Cr,function(){return function(n,o){var r=o.prototype,i=r.format;r.format=function(a){var l=this,c=this.$locale();if(!this.isValid())return i.bind(this)(a);var u=this.$utils(),d=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),f==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return f}});return i.bind(this)(d)}}})})(Ov);var OL=Ov.exports;const kL=oo(OL);bt.extend(PL);bt.extend(SL);bt.extend(ML);bt.extend(kL);const DL={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},RL={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Sl=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
237
+ `))}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([Vn,s.func]),disableScrollLock:s.bool,elevation:sb,marginThreshold:s.number,onClose:s.func,open:s.bool.isRequired,PaperProps:s.shape({component:va}),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 t_(e){return Te("MuiMenu",e)}Ce("MuiMenu",["root","paper","list"]);const n_={vertical:"top",horizontal:"right"},o_={vertical:"top",horizontal:"left"},r_=e=>{const{classes:t}=e;return we({root:["root"],paper:["paper"],list:["list"]},t_,t)},s_=be(Gb,{shouldForwardProp:e=>pn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),i_=be(qb,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),a_=be(Yb,{name:"MuiMenu",slot:"List"})({outline:0}),Kb=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiMenu"}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:f={},PopoverClasses:p,transitionDuration:h="auto",TransitionProps:{onEntering:m,...g}={},variant:y="selectedMenu",slots:v={},slotProps:C={},...x}=o,S=fn(),T={...o,autoFocus:r,disableAutoFocusItem:l,MenuListProps:c,onEntering:m,PaperProps:f,transitionDuration:h,TransitionProps:g,variant:y},E=r_(T),M=r&&!l&&d,A=P.useRef(null),k=(V,B)=>{A.current&&A.current.adjustStyleForScrollbar(V,{direction:S?"rtl":"ltr"}),m&&m(V,B)},$=V=>{V.key==="Tab"&&(V.preventDefault(),u&&u(V,"tabKeyDown"))};let j=-1;P.Children.map(i,(V,B)=>{P.isValidElement(V)&&(process.env.NODE_ENV!=="production"&&Lo.isFragment(V)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
238
+ `)),V.props.disabled||(y==="selectedMenu"&&V.props.selected||j===-1)&&(j=B))});const w={slots:v,slotProps:{list:c,transition:g,paper:f,...C}},L=Le({elementType:v.root,externalSlotProps:C.root,ownerState:T,className:[E.root,a]}),[D,I]=it("paper",{className:E.paper,elementType:i_,externalForwardedProps:w,shouldForwardComponentProp:!0,ownerState:T}),[O,N]=it("list",{className:ye(E.list,c.className),elementType:a_,shouldForwardComponentProp:!0,externalForwardedProps:w,getSlotProps:V=>({...V,onKeyDown:B=>{var R;$(B),(R=V.onKeyDown)==null||R.call(V,B)}}),ownerState:T}),F=typeof w.slotProps.transition=="function"?w.slotProps.transition(T):w.slotProps.transition;return b.jsx(s_,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?n_:o_,slots:{root:v.root,paper:D,backdrop:v.backdrop,...v.transition&&{transition:v.transition}},slotProps:{root:L,paper:I,backdrop:typeof C.backdrop=="function"?C.backdrop(T):C.backdrop,transition:{...F,onEntering:(...V)=>{var B;k(...V),(B=F==null?void 0:F.onEntering)==null||B.call(F,...V)}}},open:d,ref:n,transitionDuration:h,ownerState:T,...x,classes:p,children:b.jsx(O,{actions:A,autoFocus:r&&(j===-1||l),autoFocusItem:M,variant:y,...N,children:i})})});process.env.NODE_ENV!=="production"&&(Kb.propTypes={anchorEl:s.oneOfType([Vn,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 l_(e){return Te("MuiNativeSelect",e)}const td=Ce("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),c_=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:a}=e,l={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${ce(n)}`,i&&"iconOpen",o&&"disabled"]};return we(l,l_,t)},Zb=be("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${td.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}}}]})),u_=be(Zb,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:pn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${td.multiple}`]:t.multiple}]}})({}),Xb=be("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${td.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}}]})),d_=be(Xb,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ce(n.variant)}`],n.open&&t.iconOpen]}})({}),Qb=P.forwardRef(function(t,n){const{className:o,disabled:r,error:i,IconComponent:a,inputRef:l,variant:c="standard",...u}=t,d={...t,disabled:r,variant:c,error:i},f=c_(d);return b.jsxs(P.Fragment,{children:[b.jsx(u_,{ownerState:d,className:ye(f.select,o),disabled:r,ref:l||n,...u}),t.multiple?null:b.jsx(d_,{as:a,ownerState:d,className:f.icon})]})});process.env.NODE_ENV!=="production"&&(Qb.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:xt,multiple:s.bool,name:s.string,onChange:s.func,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});function Jb(e){return Te("MuiSelect",e)}const zr=Ce("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Eh;const f_=be(Zb,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${zr.select}`]:t.select},{[`&.${zr.select}`]:t[n.variant]},{[`&.${zr.error}`]:t.error},{[`&.${zr.multiple}`]:t.multiple}]}})({[`&.${zr.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),p_=be(Xb,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ce(n.variant)}`],n.open&&t.iconOpen]}})({}),h_=be("input",{shouldForwardProp:e=>gm(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Mh(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function m_(e){return e==null||typeof e=="string"&&!e.trim()}const g_=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:a}=e,l={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${ce(n)}`,i&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return we(l,Jb,t)},ev=P.forwardRef(function(t,n){var ut,yt,Et,hn;const{"aria-describedby":o,"aria-label":r,autoFocus:i,autoWidth:a,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:f,displayEmpty:p,error:h=!1,IconComponent:m,inputRef:g,labelId:y,MenuProps:v={},multiple:C,name:x,onBlur:S,onChange:T,onClose:E,onFocus:M,onKeyDown:A,onMouseDown:k,onOpen:$,open:j,readOnly:w,renderValue:L,required:D,SelectDisplayProps:I={},tabIndex:O,type:N,value:F,variant:V="standard",...B}=t,[R,Y]=Jn({controlled:F,default:d,name:"Select"}),[G,Z]=Jn({controlled:j,default:u,name:"Select"}),re=P.useRef(null),X=P.useRef(null),[Q,K]=P.useState(null),{current:te}=P.useRef(j!=null),[z,H]=P.useState(),W=$e(n,g),ee=P.useCallback(ge=>{X.current=ge,ge&&K(ge)},[]),J=Q==null?void 0:Q.parentNode;P.useImperativeHandle(W,()=>({focus:()=>{X.current.focus()},node:re.current,value:R}),[R]);const ie=Q!==null&&G;P.useEffect(()=>{if(!ie||!J||a||typeof ResizeObserver>"u")return;const ge=new ResizeObserver(()=>{H(J.clientWidth)});return ge.observe(J),()=>{ge.disconnect()}},[ie,J,a]),P.useEffect(()=>{u&&G&&Q&&!te&&(H(a?null:J.clientWidth),X.current.focus())},[Q,a]),P.useEffect(()=>{i&&X.current.focus()},[i]),P.useEffect(()=>{if(!y)return;const ge=Pt(X.current).getElementById(y);if(ge){const Ae=()=>{getSelection().isCollapsed&&X.current.focus()};return ge.addEventListener("click",Ae),()=>{ge.removeEventListener("click",Ae)}}},[y]);const ne=(ge,Ae)=>{ge?$&&$(Ae):E&&E(Ae),te||(H(a?null:J.clientWidth),Z(ge))},de=ge=>{k==null||k(ge),ge.button===0&&(ge.preventDefault(),X.current.focus(),ne(!0,ge))},se=ge=>{ne(!1,ge)},ue=P.Children.toArray(l),le=ge=>{const Ae=ue.find(at=>at.props.value===ge.target.value);Ae!==void 0&&(Y(Ae.props.value),T&&T(ge,Ae))},fe=ge=>Ae=>{let at;if(Ae.currentTarget.hasAttribute("tabindex")){if(C){at=Array.isArray(R)?R.slice():[];const mn=R.indexOf(ge.props.value);mn===-1?at.push(ge.props.value):at.splice(mn,1)}else at=ge.props.value;if(ge.props.onClick&&ge.props.onClick(Ae),R!==at&&(Y(at),T)){const mn=Ae.nativeEvent||Ae,kr=new mn.constructor(mn.type,mn);Object.defineProperty(kr,"target",{writable:!0,value:{value:at,name:x}}),T(kr,ge)}C||ne(!1,Ae)}},me=ge=>{w||([" ","ArrowUp","ArrowDown","Enter"].includes(ge.key)&&(ge.preventDefault(),ne(!0,ge)),A==null||A(ge))},Ie=ge=>{!ie&&S&&(Object.defineProperty(ge,"target",{writable:!0,value:{value:R,name:x}}),S(ge))};delete B["aria-invalid"];let Oe,qe;const tt=[];let St=!1,Tt=!1;(Hi({value:R})||p)&&(L?Oe=L(R):St=!0);const Ee=ue.map(ge=>{if(!P.isValidElement(ge))return null;process.env.NODE_ENV!=="production"&&Lo.isFragment(ge)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
239
+ `));let Ae;if(C){if(!Array.isArray(R))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Tn(2));Ae=R.some(at=>Mh(at,ge.props.value)),Ae&&St&&tt.push(ge.props.children)}else Ae=Mh(R,ge.props.value),Ae&&St&&(qe=ge.props.children);return Ae&&(Tt=!0),P.cloneElement(ge,{"aria-selected":Ae?"true":"false",onClick:fe(ge),onKeyUp:at=>{at.key===" "&&at.preventDefault(),ge.props.onKeyUp&&ge.props.onKeyUp(at)},role:"option",selected:Ae,value:void 0,"data-value":ge.props.value})});process.env.NODE_ENV!=="production"&&P.useEffect(()=>{if(!Tt&&!C&&R!==""){const ge=ue.map(Ae=>Ae.props.value);console.warn([`MUI: You have provided an out-of-range value \`${R}\` for the select ${x?`(name="${x}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${ge.filter(Ae=>Ae!=null).map(Ae=>`\`${Ae}\``).join(", ")||'""'}.`].join(`
240
+ `))}},[Tt,ue,C,x,R]),St&&(C?tt.length===0?Oe=null:Oe=tt.reduce((ge,Ae,at)=>(ge.push(Ae),at<tt.length-1&&ge.push(", "),ge),[]):Oe=qe);let Me=z;!a&&te&&Q&&(Me=J.clientWidth);let Se;typeof O<"u"?Se=O:Se=f?null:0;const Be=I.id||(x?`mui-component-select-${x}`:void 0),ze={...t,variant:V,value:R,open:ie,error:h},nt=g_(ze),Je={...v.PaperProps,...typeof((ut=v.slotProps)==null?void 0:ut.paper)=="function"?v.slotProps.paper(ze):(yt=v.slotProps)==null?void 0:yt.paper},Vt={...v.MenuListProps,...typeof((Et=v.slotProps)==null?void 0:Et.list)=="function"?v.slotProps.list(ze):(hn=v.slotProps)==null?void 0:hn.list},ke=so();return b.jsxs(P.Fragment,{children:[b.jsx(f_,{as:"div",ref:ee,tabIndex:Se,role:"combobox","aria-controls":ie?ke:void 0,"aria-disabled":f?"true":void 0,"aria-expanded":ie?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[y,Be].filter(Boolean).join(" ")||void 0,"aria-describedby":o,"aria-required":D?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:me,onMouseDown:f||w?null:de,onBlur:Ie,onFocus:M,...I,ownerState:ze,className:ye(I.className,nt.select,c),id:Be,children:m_(Oe)?Eh||(Eh=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Oe}),b.jsx(h_,{"aria-invalid":h,value:Array.isArray(R)?R.join(","):R,name:x,ref:re,"aria-hidden":!0,onChange:le,tabIndex:-1,disabled:f,className:nt.nativeInput,autoFocus:i,required:D,...B,ownerState:ze}),b.jsx(p_,{as:m,className:nt.icon,ownerState:ze}),b.jsx(Kb,{id:`menu-${x||""}`,anchorEl:J,open:ie,onClose:se,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...v,slotProps:{...v.slotProps,list:{"aria-labelledby":y,role:"listbox","aria-multiselectable":C?"true":void 0,disableListWrap:!0,id:ke,...Vt},paper:{...Je,style:{minWidth:Me,...Je!=null?Je.style:null}}},children:Ee})]})});process.env.NODE_ENV!=="production"&&(ev.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:xt,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"])});const y_=gt(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),b_=e=>{const{classes:t}=e,o=we({root:["root"]},Jb,t);return{...t,...o}},nd={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>pn(e)&&e!=="variant"},v_=be(Oa,nd)(""),x_=be(Da,nd)(""),S_=be(ka,nd)(""),od=P.forwardRef(function(t,n){const o=Fe({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:i,classes:a={},className:l,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=y_,id:f,input:p,inputProps:h,label:m,labelId:g,MenuProps:y,multiple:v=!1,native:C=!1,onClose:x,onOpen:S,open:T,renderValue:E,SelectDisplayProps:M,variant:A="outlined",...k}=o,$=C?Qb:ev,j=zn(),w=Or({props:o,muiFormControl:j,states:["variant","error"]}),L=w.variant||A,D={...o,variant:L,classes:a},I=b_(D),{root:O,...N}=I,F=p||{standard:b.jsx(v_,{ownerState:D}),outlined:b.jsx(x_,{label:m,ownerState:D}),filled:b.jsx(S_,{ownerState:D})}[L],V=$e(n,Fs(F));return b.jsx(P.Fragment,{children:P.cloneElement(F,{inputComponent:$,inputProps:{children:i,error:w.error,IconComponent:d,variant:L,type:void 0,multiple:v,...C?{id:f}:{autoWidth:r,defaultOpen:c,displayEmpty:u,labelId:g,MenuProps:y,onClose:x,onOpen:S,open:T,renderValue:E,SelectDisplayProps:{id:f,...M}},...h,classes:h?At(N,h.classes):N,...p?p.props.inputProps:{}},...(v&&C||u)&&L==="outlined"?{notched:!0}:{},ref:V,className:ye(F.props.className,l,I.root),...!p&&{variant:L},...k})})});process.env.NODE_ENV!=="production"&&(od.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"])});od.muiName="Select";function w_(e){return Te("MuiTextField",e)}Ce("MuiTextField",["root"]);const C_={standard:Oa,filled:ka,outlined:Da},T_=e=>{const{classes:t}=e;return we({root:["root"]},w_,t)},P_=be(Xu,{name:"MuiTextField",slot:"Root"})({}),tv=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:i=!1,children:a,className:l,color:c="primary",defaultValue:u,disabled:d=!1,error:f=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:m,id:g,InputLabelProps:y,inputProps:v,InputProps:C,inputRef:x,label:S,maxRows:T,minRows:E,multiline:M=!1,name:A,onBlur:k,onChange:$,onFocus:j,placeholder:w,required:L=!1,rows:D,select:I=!1,SelectProps:O,slots:N={},slotProps:F={},type:V,value:B,variant:R="outlined",...Y}=o,G={...o,autoFocus:i,color:c,disabled:d,error:f,fullWidth:h,multiline:M,required:L,select:I,variant:R},Z=T_(G);process.env.NODE_ENV!=="production"&&I&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const re=so(g),X=m&&re?`${re}-helper-text`:void 0,Q=S&&re?`${re}-label`:void 0,K=C_[R],te={slots:N,slotProps:{input:C,inputLabel:y,htmlInput:v,formHelperText:p,select:O,...F}},z={},H=te.slotProps.inputLabel;R==="outlined"&&(H&&typeof H.shrink<"u"&&(z.notched=H.shrink),z.label=S),I&&((!O||!O.native)&&(z.id=void 0),z["aria-describedby"]=void 0);const[W,ee]=it("root",{elementType:P_,shouldForwardComponentProp:!0,externalForwardedProps:{...te,...Y},ownerState:G,className:ye(Z.root,l),ref:n,additionalProps:{disabled:d,error:f,fullWidth:h,required:L,color:c,variant:R}}),[J,ie]=it("input",{elementType:K,externalForwardedProps:te,additionalProps:z,ownerState:G}),[ne,de]=it("inputLabel",{elementType:Zu,externalForwardedProps:te,ownerState:G}),[se,ue]=it("htmlInput",{elementType:"input",externalForwardedProps:te,ownerState:G}),[le,fe]=it("formHelperText",{elementType:Qu,externalForwardedProps:te,ownerState:G}),[me,Ie]=it("select",{elementType:od,externalForwardedProps:te,ownerState:G}),Oe=b.jsx(J,{"aria-describedby":X,autoComplete:r,autoFocus:i,defaultValue:u,fullWidth:h,multiline:M,name:A,rows:D,maxRows:T,minRows:E,type:V,value:B,id:re,inputRef:x,onBlur:k,onChange:$,onFocus:j,placeholder:w,inputProps:ue,slots:{input:N.htmlInput?se:void 0},...ie});return b.jsxs(W,{...ee,children:[S!=null&&S!==""&&b.jsx(ne,{htmlFor:re,id:Q,...de,children:S}),I?b.jsx(me,{"aria-describedby":X,id:re,labelId:Q,value:B,input:Oe,...Ie,children:a}):Oe,m&&b.jsx(le,{id:X,...fe,children:m})]})});process.env.NODE_ENV!=="production"&&(tv.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:xt,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"])});function E_(e){return Te("MuiIconButton",e)}const Oh=Ce("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),M_=e=>{const{classes:t,disabled:n,color:o,edge:r,size:i,loading:a}=e,l={root:["root",a&&"loading",n&&"disabled",o!=="default"&&`color${ce(o)}`,r&&`edge${ce(r)}`,`size${ce(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return we(l,E_,t)},O_=be(xr,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${ce(n.color)}`],n.edge&&t[`edge${ce(n.edge)}`],t[`size${ce(n.size)}`]]}})(Xe(({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}}]})),Xe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Yt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Yt()).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)}}],[`&.${Oh.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Oh.loading}`]:{color:"transparent"}}))),k_=be("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"}}]})),Es=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiIconButton"}),{edge:r=!1,children:i,className:a,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:f,loading:p=null,loadingIndicator:h,...m}=o,g=so(f),y=h??b.jsx(Hu,{"aria-labelledby":g,color:"inherit",size:16}),v={...o,edge:r,color:l,disabled:c,disableFocusRipple:u,loading:p,loadingIndicator:y,size:d},C=M_(v);return b.jsxs(O_,{id:p?g:f,className:ye(C.root,a),centerRipple:!0,focusRipple:!u,disabled:c||p,ref:n,...m,ownerState:v,children:[typeof p=="boolean"&&b.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:b.jsx(k_,{className:C.loadingIndicator,ownerState:v,children:p&&y})}),i]})});process.env.NODE_ENV!=="production"&&(Es.propTypes={children:Bn(s.node,e=>P.Children.toArray(e.children).some(n=>P.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(`
241
+ `)):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])});function D_(e){return Te("MuiInputAdornment",e)}const kh=Ce("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Dh;const R_=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ce(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},I_=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:o,position:r,size:i,variant:a}=e,l={root:["root",n&&"disablePointerEvents",r&&`position${ce(r)}`,a,o&&"hiddenLabel",i&&`size${ce(i)}`]};return we(l,D_,t)},A_=be("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:R_})(Xe(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${kh.positionStart}&:not(.${kh.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),nv=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiInputAdornment"}),{children:r,className:i,component:a="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:u,variant:d,...f}=o,p=zn()||{};let h=d;d&&p.variant&&process.env.NODE_ENV!=="production"&&d===p.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),p&&!h&&(h=p.variant);const m={...o,hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:l,position:u,variant:h},g=I_(m);return b.jsx(Ys.Provider,{value:null,children:b.jsx(A_,{as:a,ownerState:m,className:ye(g.root,i),ref:n,...f,children:typeof r=="string"&&!c?b.jsx(ao,{color:"textSecondary",children:r}):b.jsxs(P.Fragment,{children:[u==="start"?Dh||(Dh=b.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,r]})})})});process.env.NODE_ENV!=="production"&&(nv.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"])});const qn=7;function rd(e){const{ownerState:t}=Dt(),n=fn();return P.useMemo(()=>U({},t,{isFieldDisabled:e.disabled??!1,isFieldReadOnly:e.readOnly??!1,isFieldRequired:e.required??!1,fieldDirection:n?"rtl":"ltr"}),[t,e.disabled,e.readOnly,e.required,n])}const N_=gt(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),__=gt(b.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),j_=gt(b.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),L_=gt(b.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");gt(b.jsxs(P.Fragment,{children:[b.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),b.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");gt(b.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");gt(b.jsxs(P.Fragment,{children:[b.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),b.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const $_=gt(b.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function V_(e){return Te("MuiPickersTextField",e)}Ce("MuiPickersTextField",["root","focused","disabled","error","required"]);const F_={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function B_(e){return Te("MuiPickersInputBase",e)}const dr=Ce("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input","inputSizeSmall","activeBar"]);function z_(e){return Te("MuiPickersSectionList",e)}const Qo=Ce("MuiPickersSectionList",["root","section","sectionContent"]),W_=["slots","slotProps","elements","sectionListRef","classes"],ov=ae.styled("div",{name:"MuiPickersSectionList",slot:"Root"})({direction:"ltr /*! @noflip */",outline:"none"}),rv=ae.styled("span",{name:"MuiPickersSectionList",slot:"Section"})({}),sv=ae.styled("span",{name:"MuiPickersSectionList",slot:"SectionSeparator"})({whiteSpace:"pre"}),iv=ae.styled("span",{name:"MuiPickersSectionList",slot:"SectionContent"})({outline:"none"}),U_=e=>we({root:["root"],section:["section"],sectionContent:["sectionContent"]},z_,e);function av(e){const{slots:t,slotProps:n,element:o,classes:r}=e,{ownerState:i}=Dt(),a=(t==null?void 0:t.section)??rv,l=Le({elementType:a,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:o.container,className:r.section,ownerState:i}),c=(t==null?void 0:t.sectionContent)??iv,u=Le({elementType:c,externalSlotProps:n==null?void 0:n.sectionContent,externalForwardedProps:o.content,additionalProps:{suppressContentEditableWarning:!0},className:r.sectionContent,ownerState:i}),d=(t==null?void 0:t.sectionSeparator)??sv,f=Le({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.before,ownerState:U({},i,{separatorPosition:"before"})}),p=Le({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.after,ownerState:U({},i,{separatorPosition:"after"})}),h=P.useRef(null),m=$e(u.ref,h),g=y=>{const v=y.relatedTarget,C=y.currentTarget.closest(`.${Qo.root}`);if(C&&v instanceof Node&&C.contains(v)){y.stopPropagation();return}};return b.jsxs(a,U({},l,{children:[b.jsx(d,U({},f)),b.jsx(c,U({},u,{ref:m,onBlur:g})),b.jsx(d,U({},p))]}))}process.env.NODE_ENV!=="production"&&(av.propTypes={classes:s.object.isRequired,element:s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired}).isRequired,slotProps:s.object,slots:s.object});const sd=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersSectionList"}),{slots:r,slotProps:i,elements:a,sectionListRef:l,classes:c}=o,u=Pe(o,W_),d=U_(c),{ownerState:f}=Dt(),p=P.useRef(null),h=$e(n,p),m=v=>{if(!p.current)throw new Error(`MUI X: Cannot call sectionListRef.${v} before the mount of the component.`);return p.current};P.useImperativeHandle(l,()=>({getRoot(){return m("getRoot")},getSectionContainer(v){return m("getSectionContainer").querySelector(`.${Qo.section}[data-sectionindex="${v}"]`)},getSectionContent(v){return m("getSectionContent").querySelector(`.${Qo.section}[data-sectionindex="${v}"] .${Qo.sectionContent}`)},getSectionIndexFromDOMElement(v){const C=m("getSectionIndexFromDOMElement");if(v==null||!C.contains(v))return null;let x=null;return v.classList.contains(Qo.section)?x=v:v.classList.contains(Qo.sectionContent)&&(x=v.parentElement),x==null?null:Number(x.dataset.sectionindex)}}));const g=(r==null?void 0:r.root)??ov,y=Le({elementType:g,externalSlotProps:i==null?void 0:i.root,externalForwardedProps:u,additionalProps:{ref:h,suppressContentEditableWarning:!0},className:d.root,ownerState:f});return b.jsx(g,U({},y,{children:y.contentEditable?a.map(({content:v,before:C,after:x})=>`${C.children}${v.children}${x.children}`).join(""):b.jsx(P.Fragment,{children:a.map((v,C)=>b.jsx(av,{slots:r,slotProps:i,element:v,classes:d},C))})}))});process.env.NODE_ENV!=="production"&&(sd.displayName="PickersSectionList");process.env.NODE_ENV!=="production"&&(sd.propTypes={classes:s.object,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object});const id=P.createContext(null);process.env.NODE_ENV!=="production"&&(id.displayName="PickerTextFieldOwnerStateContext");const Ra=()=>{const e=P.useContext(id);if(e==null)throw new Error(["MUI X: The `usePickerTextFieldOwnerState` can only be called in components that are used inside a PickerTextField component"].join(`
242
+ `));return e},H_=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef","onFocus","onBlur","classes","ownerState"],Y_=e=>Math.round(e*1e5)/1e5,Ia=ae.styled("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>U({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${Y_(.15/16)}em`,variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),ad=ae.styled(ov,{name:"MuiPickersInputBase",slot:"SectionsContainer"})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{fieldDirection:"rtl"},style:{justifyContent:"end"}},{props:{inputSize:"small"},style:{paddingTop:1}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0},style:{color:"currentColor",opacity:0}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0,inputHasLabel:!1},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}},{props:{hasStartAdornment:!1,isFieldFocused:!1,isFieldValueEmpty:!0,inputHasLabel:!0,isLabelShrunk:!0},style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),q_=ae.styled(rv,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),G_=ae.styled(iv,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),K_=ae.styled(sv,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),Z_=ae.styled("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(U({},F_)),X_=ae.styled("div",{name:"MuiPickersInputBase",slot:"ActiveBar"})(({theme:e,ownerState:t})=>({display:"none",position:"absolute",height:2,bottom:2,borderTopLeftRadius:2,borderTopRightRadius:2,transition:e.transitions.create(["width","left"],{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.primary.main,'[data-active-range-position="start"] &, [data-active-range-position="end"] &':{display:"block"},'[data-active-range-position="start"] &':{left:t.sectionOffsets[0]},'[data-active-range-position="end"] &':{left:t.sectionOffsets[1]}})),Q_=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldReadOnly:r,hasFieldError:i,inputSize:a,isInputInFullWidth:l,inputColor:c,hasStartAdornment:u,hasEndAdornment:d}=t,f={root:["root",n&&!o&&"focused",o&&"disabled",r&&"readOnly",i&&"error",l&&"fullWidth",`color${ce(c)}`,a==="small"&&"inputSizeSmall",u&&"adornedStart",d&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"],activeBar:["activeBar"]};return we(f,B_,e)};function Rh(e,t,n,o){var r;if(e.content.id){const i=(r=t.current)==null?void 0:r.querySelectorAll(`[data-sectionindex="${n}"] [data-range-position="${o}"]`);if(i)return Array.from(i).reduce((a,l)=>a+l.offsetWidth,0)}return 0}function J_(e,t){var r,i,a,l,c;let n=0;if(((r=t.current)==null?void 0:r.getAttribute("data-active-range-position"))==="end")for(let u=e.length-1;u>=e.length/2;u-=1)n+=Rh(e[u],t,u,"end");else for(let u=0;u<e.length/2;u+=1)n+=Rh(e[u],t,u,"start");return{activeBarWidth:n,sectionOffsets:[((a=(i=t.current)==null?void 0:i.querySelector('[data-sectionindex="0"]'))==null?void 0:a.offsetLeft)||0,((c=(l=t.current)==null?void 0:l.querySelector(`[data-sectionindex="${e.length/2}"]`))==null?void 0:c.offsetLeft)||0]}}const qs=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:i,value:a,onChange:l,id:c,endAdornment:u,startAdornment:d,renderSuffix:f,slots:p,slotProps:h,contentEditable:m,tabIndex:g,onInput:y,onPaste:v,onKeyDown:C,name:x,readOnly:S,inputProps:T,inputRef:E,sectionListRef:M,onFocus:A,onBlur:k,classes:$,ownerState:j}=o,w=Pe(o,H_),L=Ra(),D=P.useRef(null),I=P.useRef(null),O=P.useRef([]),N=$e(n,D),F=$e(T==null?void 0:T.ref,E),V=zn();if(!V)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const B=j??L,R=z=>{var H;(H=V.onFocus)==null||H.call(V,z),A==null||A(z)},Y=z=>{R(z)},G=z=>{var H,W;if(C==null||C(z),z.key==="Enter"&&!z.defaultMuiPrevented){if((H=D.current)!=null&&H.dataset.multiInput)return;const ee=(W=D.current)==null?void 0:W.closest("form"),J=ee==null?void 0:ee.querySelector('[type="submit"]');if(!ee||!J)return;z.preventDefault(),ee.requestSubmit(J)}},Z=z=>{var H;(H=V.onBlur)==null||H.call(V,z),k==null||k(z)};P.useEffect(()=>{V&&V.setAdornedStart(!!d)},[V,d]),P.useEffect(()=>{V&&(i?V.onEmpty():V.onFilled())},[V,i]);const re=Q_($,B),X=(p==null?void 0:p.root)||Ia,Q=Le({elementType:X,externalSlotProps:h==null?void 0:h.root,externalForwardedProps:w,additionalProps:{"aria-invalid":V.error,ref:N},className:re.root,ownerState:B}),K=(p==null?void 0:p.input)||ad,te=r.some(z=>z.content["data-range-position"]!==void 0);return P.useEffect(()=>{if(!te||!B.isPickerOpen)return;const{activeBarWidth:z,sectionOffsets:H}=J_(r,D);O.current=[H[0],H[1]],I.current&&(I.current.style.width=`${z}px`)},[r,te,B.isPickerOpen]),b.jsxs(X,U({},Q,{children:[d,b.jsx(sd,{sectionListRef:M,elements:r,contentEditable:m,tabIndex:g,className:re.sectionsContainer,onFocus:R,onBlur:Z,onInput:y,onPaste:v,onKeyDown:G,slots:{root:K,section:q_,sectionContent:G_,sectionSeparator:K_},slotProps:{root:U({},h==null?void 0:h.input,{ownerState:B}),sectionContent:{className:dr.sectionContent},sectionSeparator:({separatorPosition:z})=>({className:z==="before"?dr.sectionBefore:dr.sectionAfter})}}),u,f?f(U({},V)):null,b.jsx(Z_,U({name:x,className:re.input,value:a,onChange:l,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:S,required:V.required,disabled:V.disabled,onFocus:Y},T,{ref:F})),te&&b.jsx(X_,{className:re.activeBar,ref:I,ownerState:{sectionOffsets:O.current}})]}))});process.env.NODE_ENV!=="production"&&(qs.displayName="PickersInputBase");process.env.NODE_ENV!=="production"&&(qs.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,"data-multi-input":s.string,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:xt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});function e5(e){return Te("MuiPickersOutlinedInput",e)}const un=U({},dr,Ce("MuiPickersOutlinedInput",["root","notchedOutline","input"])),t5=["children","className","label","notched","shrink"],n5=ae.styled("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Ih=ae.styled("span",{slot:"internal",shouldForwardProp:void 0})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),o5=ae.styled("legend",{slot:"internal",shouldForwardProp:e=>Zn(e)&&e!=="notched"})(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{inputHasLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{inputHasLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{inputHasLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function r5(e){const{className:t,label:n,notched:o}=e,r=Pe(e,t5),i=Ra();return b.jsx(n5,U({"aria-hidden":!0,className:t},r,{ownerState:i,children:b.jsx(o5,{ownerState:i,notched:o,children:n?b.jsx(Ih,{children:n}):b.jsx(Ih,{className:"notranslate",children:"​"})})}))}const s5=["label","autoFocus","ownerState","classes","notched"],i5=ae.styled(Ia,{name:"MuiPickersOutlinedInput",slot:"Root"})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${un.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${un.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${un.focused} .${un.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${un.disabled}`]:{[`& .${un.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${un.error} .${un.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>{var o;return((o=(e.vars??e).palette[n])==null?void 0:o.main)??!1}).map(n=>({props:{inputColor:n},style:{[`&.${un.focused}:not(.${un.error}) .${un.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),a5=ae.styled(ad,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),l5=e=>{const n=we({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},e5,e);return U({},e,n)},Aa=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersOutlinedInput"}),{label:r,classes:i,notched:a}=o,l=Pe(o,s5),c=zn(),u=l5(i);return b.jsx(qs,U({slots:{root:i5,input:a5},renderSuffix:d=>b.jsx(r5,{shrink:!!(a||d.adornedStart||d.focused||d.filled),notched:!!(a||d.adornedStart||d.focused||d.filled),className:u.notchedOutline,label:r!=null&&r!==""&&(c!=null&&c.required)?b.jsxs(P.Fragment,{children:[r," ","*"]}):r})},l,{label:r,classes:u,ref:n}))});process.env.NODE_ENV!=="production"&&(Aa.displayName="PickersOutlinedInput");process.env.NODE_ENV!=="production"&&(Aa.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,"data-multi-input":s.string,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:xt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,notched:s.bool,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});Aa.muiName="Input";function c5(e){return Te("MuiPickersFilledInput",e)}const xo=U({},dr,Ce("MuiPickersFilledInput",["root","underline","input"])),u5=["label","autoFocus","disableUnderline","hiddenLabel","classes"],d5=ae.styled(Ia,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>Wt.shouldForwardProp(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${xo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${xo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>{var l;return{props:{inputColor:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(l=(e.vars||e).palette[a])==null?void 0:l.main}`}}}}),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xo.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xo.disabled}, .${xo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${xo.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),f5=ae.styled(ad,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>Wt.shouldForwardProp(e)&&e!=="hiddenLabel"})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{inputSize:"small"},style:{paddingTop:21,paddingBottom:4}},{props:{hasStartAdornment:!0},style:{paddingLeft:0}},{props:{hasEndAdornment:!0},style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,inputSize:"small"},style:{paddingTop:8,paddingBottom:9}}]}),p5=(e,t)=>{const{inputHasUnderline:n}=t,r=we({root:["root",n&&"underline"],input:["input"]},c5,e);return U({},e,r)},Na=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:i=!1,hiddenLabel:a=!1,classes:l}=o,c=Pe(o,u5),u=Ra(),d=U({},u,{inputHasUnderline:!i}),f=p5(l,d);return b.jsx(qs,U({slots:{root:d5,input:f5},slotProps:{root:{disableUnderline:i},input:{hiddenLabel:a}}},c,{label:r,classes:f,ref:n,ownerState:d}))});process.env.NODE_ENV!=="production"&&(Na.displayName="PickersFilledInput");process.env.NODE_ENV!=="production"&&(Na.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,"data-multi-input":s.string,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,hiddenLabel:s.bool,id:s.string,inputProps:s.object,inputRef:xt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});Na.muiName="Input";function h5(e){return Te("MuiPickersFilledInput",e)}const Wr=U({},dr,Ce("MuiPickersInput",["root","underline","input"])),m5=["label","autoFocus","disableUnderline","ownerState","classes"],g5=ae.styled(Ia,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>Zn(e)&&e!=="disableUnderline"})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(o=>(e.vars??e).palette[o].main).map(o=>({props:{inputColor:o,inputHasUnderline:!0},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}})),{props:{inputHasUnderline:!0},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Wr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wr.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Wr.disabled}, .${Wr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Wr.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),y5=(e,t)=>{const{inputHasUnderline:n}=t,r=we({root:["root",!n&&"underline"],input:["input"]},h5,e);return U({},e,r)},_a=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersInput"}),{label:r,disableUnderline:i=!1,classes:a}=o,l=Pe(o,m5),c=Ra(),u=U({},c,{inputHasUnderline:!i}),d=y5(a,u);return b.jsx(qs,U({slots:{root:g5},slotProps:{root:{disableUnderline:i}}},l,{ownerState:u,label:r,classes:d,ref:n}))});process.env.NODE_ENV!=="production"&&(_a.displayName="PickersInput");process.env.NODE_ENV!=="production"&&(_a.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,"data-multi-input":s.string,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:xt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});_a.muiName="Input";const b5=["onFocus","onBlur","className","classes","color","disabled","error","variant","required","hiddenLabel","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps","data-active-range-position"],v5={standard:_a,filled:Na,outlined:Aa},x5=ae.styled(Xu,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),S5=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldRequired:r}=t;return we({root:["root",n&&!o&&"focused",o&&"disabled",r&&"required"]},V_,e)},ja=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersTextField"}),{onFocus:r,onBlur:i,className:a,classes:l,color:c="primary",disabled:u=!1,error:d=!1,variant:f="outlined",required:p=!1,hiddenLabel:h=!1,InputProps:m,inputProps:g,inputRef:y,sectionListRef:v,elements:C,areAllSectionsEmpty:x,onClick:S,onKeyDown:T,onKeyUp:E,onPaste:M,onInput:A,endAdornment:k,startAdornment:$,tabIndex:j,contentEditable:w,focused:L,value:D,onChange:I,fullWidth:O,id:N,name:F,helperText:V,FormHelperTextProps:B,label:R,InputLabelProps:Y,"data-active-range-position":G}=o,Z=Pe(o,b5),re=P.useRef(null),X=$e(n,re),Q=so(N),K=V&&Q?`${Q}-helper-text`:void 0,te=R&&Q?`${Q}-label`:void 0,z=rd({disabled:o.disabled,required:o.required,readOnly:m==null?void 0:m.readOnly}),H=P.useMemo(()=>U({},z,{isFieldValueEmpty:x,isFieldFocused:L??!1,hasFieldError:d??!1,inputSize:o.size??"medium",inputColor:c??"primary",isInputInFullWidth:O??!1,hasStartAdornment:!!($??(m==null?void 0:m.startAdornment)),hasEndAdornment:!!(k??(m==null?void 0:m.endAdornment)),inputHasLabel:!!R,isLabelShrunk:!!(Y!=null&&Y.shrink)}),[z,x,L,d,o.size,c,O,$,k,m==null?void 0:m.startAdornment,m==null?void 0:m.endAdornment,R,Y==null?void 0:Y.shrink]),W=S5(l,H),ee=v5[f],J={};return f==="outlined"?(Y&&typeof Y.shrink<"u"&&(J.notched=Y.shrink),J.label=R):f==="filled"&&(J.hiddenLabel=h),b.jsx(id.Provider,{value:H,children:b.jsxs(x5,U({className:ye(W.root,a),ref:X,focused:L,disabled:u,variant:f,error:d,color:c,fullWidth:O,required:p,ownerState:H},Z,{children:[R!=null&&R!==""&&b.jsx(Zu,U({htmlFor:Q,id:te},Y,{children:R})),b.jsx(ee,U({elements:C,areAllSectionsEmpty:x,onClick:S,onKeyDown:T,onKeyUp:E,onInput:A,onPaste:M,onFocus:r,onBlur:i,endAdornment:k,startAdornment:$,tabIndex:j,contentEditable:w,value:D,onChange:I,id:Q,fullWidth:O,inputProps:g,inputRef:y,sectionListRef:v,label:R,name:F,role:"group","aria-labelledby":te,"aria-describedby":K,"aria-live":K?"polite":void 0,"data-active-range-position":G},J,m)),V&&b.jsx(Qu,U({id:K},B,{children:V}))]}))})});process.env.NODE_ENV!=="production"&&(ja.displayName="PickersTextField");process.env.NODE_ENV!=="production"&&(ja.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,contentEditable:s.bool.isRequired,disabled:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,error:s.bool.isRequired,focused:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:xt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onBlur:s.func.isRequired,onChange:s.func.isRequired,onClick:s.func.isRequired,onFocus:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,readOnly:s.bool,required:s.bool,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),size:s.oneOf(["medium","small"]),startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired,variant:s.oneOf(["filled","outlined","standard"])});const w5=["enableAccessibleFieldDOMStructure"],C5=["InputProps","readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],T5=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],P5=["ownerState"],E5=["ownerState"],M5=["ownerState"],O5=["ownerState"],k5=["InputProps","inputProps"],wl=()=>{},D5=e=>{var C,x,S,T,E,M,A,k,$;let{enableAccessibleFieldDOMStructure:t}=e,n=Pe(e,w5);if(t){const{InputProps:j,readOnly:w,onClear:L,clearable:D,clearButtonPosition:I,openPickerButtonPosition:O,openPickerAriaLabel:N}=n,F=Pe(n,C5),V=qn>=6&&((C=F==null?void 0:F.slotProps)!=null&&C.input)?us((x=F==null?void 0:F.slotProps)==null?void 0:x.input,j):wl;return{clearable:D,onClear:L,clearButtonPosition:I,openPickerButtonPosition:O,openPickerAriaLabel:N,textFieldProps:U({},F,qn>=6&&((S=F==null?void 0:F.slotProps)!=null&&S.input)?{slotProps:U({},F==null?void 0:F.slotProps,{input:B=>U({},tn(V,B),{readOnly:w})})}:{InputProps:U({},j??{},{readOnly:w})})}}const{onPaste:o,onKeyDown:r,inputMode:i,readOnly:a,InputProps:l,inputProps:c,inputRef:u,onClear:d,clearable:f,clearButtonPosition:p,openPickerButtonPosition:h,openPickerAriaLabel:m}=n,g=Pe(n,T5),y=qn>=6&&((T=g==null?void 0:g.slotProps)!=null&&T.input)?us((E=g==null?void 0:g.slotProps)==null?void 0:E.input,l):wl,v=qn>=6&&((M=g==null?void 0:g.slotProps)!=null&&M.htmlInput)?us((A=g==null?void 0:g.slotProps)==null?void 0:A.htmlInput,c):wl;return{clearable:f,onClear:d,clearButtonPosition:p,openPickerButtonPosition:h,openPickerAriaLabel:m,textFieldProps:U({},g,qn>=6&&((k=g==null?void 0:g.slotProps)!=null&&k.input||($=g==null?void 0:g.slotProps)!=null&&$.htmlInput)?{slotProps:U({},g==null?void 0:g.slotProps,{input:j=>U({},tn(y,j),{readOnly:a}),htmlInput:j=>U({},tn(v,j),{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})}:{InputProps:U({},l??{},{readOnly:a}),inputProps:U({},c??{},{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})}},La=P.createContext({slots:{},slotProps:{},inputRef:void 0});process.env.NODE_ENV!=="production"&&(La.displayName="PickerFieldUIContext");function R5(e){var B,R,Y,G;const{fieldResponse:t,defaultOpenPickerIcon:n}=e,o=lo(),r=Iu(),i=P.useContext(La),{textFieldProps:a,onClear:l,clearable:c,openPickerAriaLabel:u,clearButtonPosition:d="end",openPickerButtonPosition:f="end"}=D5(t),p=rd(a),h=he(Z=>{Z.preventDefault(),r==null||r.setOpen(re=>!re)}),m=r?r.triggerStatus:"hidden",g=c?d:null,y=m!=="hidden"?f:null,v=i.slots.textField??(t.enableAccessibleFieldDOMStructure===!1?tv:ja),C=i.slots.inputAdornment??nv,x=Le({elementType:C,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"start"},ownerState:U({},p,{position:"start"})}),S=Pe(x,P5),T=Le({elementType:C,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"end"},ownerState:U({},p,{position:"end"})}),E=Pe(T,E5),M=i.slots.openPickerButton??Es,A=Le({elementType:M,externalSlotProps:i.slotProps.openPickerButton,additionalProps:{disabled:m==="disabled",onClick:h,"aria-label":u,edge:a.variant!=="standard"?y:!1},ownerState:p}),k=Pe(A,M5),$=i.slots.openPickerIcon??n,j=Le({elementType:$,externalSlotProps:i.slotProps.openPickerIcon,ownerState:p}),w=i.slots.clearButton??Es,L=Le({elementType:w,externalSlotProps:i.slotProps.clearButton,className:"clearButton",additionalProps:{title:o.fieldClearLabel,tabIndex:-1,onClick:l,disabled:t.disabled||t.readOnly,edge:a.variant!=="standard"&&g!==y?g:!1},ownerState:p}),D=Pe(L,O5),I=i.slots.clearIcon??$_,O=Le({elementType:I,externalSlotProps:i.slotProps.clearIcon,additionalProps:{fontSize:"small"},ownerState:p});a.ref=$e(a.ref,r==null?void 0:r.rootRef);const N={},F=tn((qn>=6&&((B=a==null?void 0:a.slotProps)==null?void 0:B.input))??a.InputProps,p);r&&(N.ref=r.triggerRef),!(F!=null&&F.startAdornment)&&(g==="start"||y==="start")&&(N.startAdornment=b.jsxs(C,U({},S,{children:[y==="start"&&b.jsx(M,U({},k,{children:b.jsx($,U({},j))})),g==="start"&&b.jsx(w,U({},D,{children:b.jsx(I,U({},O))}))]}))),!(F!=null&&F.endAdornment)&&(g==="end"||y==="end")&&(N.endAdornment=b.jsxs(C,U({},E,{children:[g==="end"&&b.jsx(w,U({},D,{children:b.jsx(I,U({},O))})),y==="end"&&b.jsx(M,U({},k,{children:b.jsx($,U({},j))}))]}))),!(N!=null&&N.endAdornment)&&!(N!=null&&N.startAdornment)&&i.slots.inputAdornment&&(N.endAdornment=b.jsx(C,U({},E))),g!=null&&(a.sx=[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(a.sx)?a.sx:[a.sx]]);const V=qn>=6&&((R=a==null?void 0:a.slotProps)!=null&&R.input)?tn(us(F,N),p):U({},F,N);return a.inputProps=qn>=6&&((Y=a==null?void 0:a.slotProps)!=null&&Y.htmlInput)?tn(a.slotProps.htmlInput,p):a.inputProps,(G=a==null?void 0:a.slotProps)==null||delete G.input,t.enableAccessibleFieldDOMStructure&&(a==null||delete a.slotProps),b.jsx(v,U({},a,{InputProps:V}))}function us(e,t){return e?t?n=>U({},tn(t,n),tn(e,n)):e:t}function I5(e){const{ref:t,externalForwardedProps:n,slotProps:o}=e,r=P.useContext(La),i=Iu(),a=rd(n),{InputProps:l,inputProps:c}=n,u=Pe(n,k5),d=Le({elementType:ja,externalSlotProps:us(r.slotProps.textField,o==null?void 0:o.textField),externalForwardedProps:u,additionalProps:{ref:t,sx:i==null?void 0:i.rootSx,label:i==null?void 0:i.label,name:i==null?void 0:i.name,className:i==null?void 0:i.rootClassName,inputRef:r.inputRef},ownerState:a});return d.inputProps=U({},c,d.inputProps),d.InputProps=U({},l,d.InputProps),d}function A5(e){const{slots:t={},slotProps:n={},inputRef:o,children:r}=e,i=P.useMemo(()=>({inputRef:o,slots:{openPickerButton:t.openPickerButton,openPickerIcon:t.openPickerIcon,textField:t.textField,inputAdornment:t.inputAdornment,clearIcon:t.clearIcon,clearButton:t.clearButton},slotProps:{openPickerButton:n.openPickerButton,openPickerIcon:n.openPickerIcon,textField:n.textField,inputAdornment:n.inputAdornment,clearIcon:n.clearIcon,clearButton:n.clearButton}}),[o,t.openPickerButton,t.openPickerIcon,t.textField,t.inputAdornment,t.clearIcon,t.clearButton,n.openPickerButton,n.openPickerIcon,n.textField,n.inputAdornment,n.clearIcon,n.clearButton]);return b.jsx(La.Provider,{value:i,children:r})}const N5=["slots","slotProps"],$a=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiDateField"}),{slots:r,slotProps:i}=o,a=Pe(o,N5),l=I5({slotProps:i,ref:n,externalForwardedProps:a}),c=oN(l);return b.jsx(A5,{slots:r,slotProps:i,inputRef:a.inputRef,children:b.jsx(R5,{fieldResponse:c,defaultOpenPickerIcon:L_})})});process.env.NODE_ENV!=="production"&&($a.displayName="DateField");process.env.NODE_ENV!=="production"&&($a.propTypes={autoFocus:s.bool,className:s.string,clearable:s.bool,clearButtonPosition:s.oneOf(["end","start"]),color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,enableAccessibleFieldDOMStructure:s.bool,focused:s.bool,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:xt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxDate:s.object,minDate:s.object,name:s.string,onBlur:s.func,onChange:s.func,onClear:s.func,onError:s.func,onFocus:s.func,onSelectedSectionsChange:s.func,openPickerButtonPosition:s.oneOf(["end","start"]),readOnly:s.bool,referenceDate:s.object,required:s.bool,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,shouldRespectLeadingZeros:s.bool,size:s.oneOf(["medium","small"]),slotProps:s.object,slots:s.object,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,unstableFieldRef:s.oneOfType([s.func,s.object]),value:s.object,variant:s.oneOf(["filled","outlined","standard"])});const lv=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a,timezone:l})=>{const c=Qe();return P.useCallback(u=>Ls({adapter:c,value:u,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a}})!==null,[c,e,t,n,o,r,i,a,l])},_5=(e,t)=>(n,o)=>{switch(o.type){case"setVisibleDate":return U({},n,{slideDirection:o.direction,currentMonth:o.month,isMonthSwitchingAnimating:!t.isSameMonth(o.month,n.currentMonth)&&!e&&!o.skipAnimation,focusedDay:o.focusedDay});case"changeMonthTimezone":{const r=o.newTimezone;if(t.getTimezone(n.currentMonth)===r)return n;let i=t.setTimezone(n.currentMonth,r);return t.getMonth(i)!==t.getMonth(n.currentMonth)&&(i=t.setMonth(i,t.getMonth(n.currentMonth))),U({},n,{currentMonth:i})}case"finishMonthSwitchingAnimation":return U({},n,{isMonthSwitchingAnimating:!1});default:throw new Error("missing support")}},j5=e=>{const{value:t,referenceDate:n,disableFuture:o,disablePast:r,maxDate:i,minDate:a,onMonthChange:l,onYearChange:c,reduceAnimations:u,shouldDisableDate:d,timezone:f,getCurrentMonthFromVisibleDate:p}=e,h=Qe(),m=P.useRef(_5(!!u,h)).current,g=P.useMemo(()=>En.getInitialReferenceValue({value:t,adapter:h,timezone:f,props:e,referenceDate:n,granularity:vn.day}),[n,f]),[y,v]=P.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:g,currentMonth:h.setDate(g,1),slideDirection:"left"}),C=lv({shouldDisableDate:d,minDate:a,maxDate:i,disableFuture:o,disablePast:r,timezone:f});P.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:h.getTimezone(g)})},[g,h]);const x=he(({target:T,reason:E})=>{if(E==="cell-interaction"&&y.focusedDay!=null&&h.isSameDay(T,y.focusedDay))return;const M=E==="cell-interaction";let A,k;if(E==="cell-interaction")A=p(T,y.currentMonth),k=T;else if(A=h.isSameMonth(T,y.currentMonth)?y.currentMonth:h.startOfMonth(T),k=T,C(k)){const w=h.startOfMonth(T),L=h.endOfMonth(T);k=vs({adapter:h,date:k,minDate:h.isBefore(a,w)?w:a,maxDate:h.isAfter(i,L)?L:i,disablePast:r,disableFuture:o,isDateDisabled:C,timezone:f})}const $=!h.isSameMonth(y.currentMonth,A),j=!h.isSameYear(y.currentMonth,A);$&&(l==null||l(A)),j&&(c==null||c(h.startOfYear(A))),v({type:"setVisibleDate",month:A,direction:h.isAfterDay(A,y.currentMonth)?"left":"right",focusedDay:y.focusedDay!=null&&k!=null&&h.isSameDay(k,y.focusedDay)?y.focusedDay:k,skipAnimation:M})}),S=P.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]);return{referenceDate:g,calendarState:y,setVisibleDate:x,isDateDisabled:C,onMonthSwitchingAnimationEnd:S}},L5=e=>Te("MuiPickersFadeTransitionGroup",e);Ce("MuiPickersFadeTransitionGroup",["root"]);const $5=["children"],V5=e=>we({root:["root"]},L5,e),F5=ae.styled(Bs,{name:"MuiPickersFadeTransitionGroup",slot:"Root"})({display:"block",position:"relative"});function cv(e){const t=ae.useThemeProps({props:e,name:"MuiPickersFadeTransitionGroup"}),{className:n,reduceAnimations:o,transKey:r,classes:i}=t,{children:a}=t,l=Pe(t,$5),c=V5(i),u=ae.useTheme();return o?a:b.jsx(F5,{className:ye(c.root,n),ownerState:l,children:b.jsx(no,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:u.transitions.duration.enteringScreen,enter:u.transitions.duration.enteringScreen,exit:0},children:a},r)})}function B5(e){return Te("MuiPickersDay",e)}const So=Ce("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]);function uv(e){const{disabled:t,selected:n,today:o,outsideCurrentMonth:r,day:i,disableMargin:a,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=e,u=Qe(),{ownerState:d}=Dt();return P.useMemo(()=>U({},d,{day:i,isDaySelected:n??!1,isDayDisabled:t??!1,isDayCurrent:o??!1,isDayOutsideMonth:r??!1,isDayStartOfWeek:u.isSameDay(i,u.startOfWeek(i)),isDayEndOfWeek:u.isSameDay(i,u.endOfWeek(i)),disableMargin:a??!1,disableHighlightToday:l??!1,showDaysOutsideCurrentMonth:c??!1}),[u,d,i,n,t,o,r,a,l,c])}const z5=["autoFocus","className","classes","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","children","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],W5=(e,t)=>{const{isDaySelected:n,isDayDisabled:o,isDayCurrent:r,isDayOutsideMonth:i,disableMargin:a,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=t,u=i&&!c;return we({root:["root",n&&!u&&"selected",o&&"disabled",!a&&"dayWithMargin",!l&&r&&"today",i&&c&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},B5,e)},dv=({theme:e})=>U({},e.typography.caption,{width:Ps,height:Ps,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ae.alpha(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:ae.alpha(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${So.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${So.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${So.disabled}:not(.${So.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${So.disabled}&.${So.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${xa}px`}},{props:{isDayOutsideMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,isDayCurrent:!0},style:{[`&:not(.${So.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),fv=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.isDayCurrent&&t.today,n.isDayOutsideMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.isDayOutsideMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},U5=ae.styled(xr,{name:"MuiPickersDay",slot:"Root",overridesResolver:fv})(dv),H5=ae.styled("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:fv})(({theme:e})=>U({},dv({theme:e}),{opacity:0,pointerEvents:"none"})),Ur=()=>{},ld=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiPickersDay"}),{autoFocus:r=!1,className:i,classes:a,isAnimating:l,onClick:c,onDaySelect:u,onFocus:d=Ur,onBlur:f=Ur,onKeyDown:p=Ur,onMouseDown:h=Ur,onMouseEnter:m=Ur,children:g,day:y,selected:v,disabled:C,today:x,outsideCurrentMonth:S,disableMargin:T,disableHighlightToday:E,showDaysOutsideCurrentMonth:M}=o,A=Pe(o,z5),k=uv({day:y,selected:v,disabled:C,today:x,outsideCurrentMonth:S,disableMargin:T,disableHighlightToday:E,showDaysOutsideCurrentMonth:M}),$=W5(a,k),j=Qe(),w=P.useRef(null),L=$e(w,n);Ct(()=>{r&&!C&&!l&&!S&&w.current.focus()},[r,C,l,S]);const D=O=>{h(O),S&&O.preventDefault()},I=O=>{O.defaultMuiPrevented=!0,C||u(y),S&&O.currentTarget.focus(),c&&c(O)};return S&&!M?b.jsx(H5,{className:ye($.root,$.hiddenDaySpacingFiller,i),ownerState:k,role:A.role}):b.jsx(U5,U({className:ye($.root,i),ref:L,centerRipple:!0,disabled:C,tabIndex:v?0:-1,onKeyDown:O=>p(O,y),onFocus:O=>d(O,y),onBlur:O=>f(O,y),onMouseEnter:O=>m(O,y),onClick:I,onMouseDown:D},A,{ownerState:k,children:g??j.format(y,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(ld.displayName="PickersDayRaw");process.env.NODE_ENV!=="production"&&(ld.propTypes={action:s.oneOfType([s.func,s.shape({current:s.shape({focusVisible:s.func.isRequired})})]),centerRipple:s.bool,classes:s.object,className:s.string,component:s.elementType,day:s.object.isRequired,disabled:s.bool,disableHighlightToday:s.bool,disableMargin:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,isAnimating:s.bool,isFirstVisibleCell:s.bool.isRequired,isLastVisibleCell:s.bool.isRequired,onBlur:s.func,onDaySelect:s.func.isRequired,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onMouseEnter:s.func,outsideCurrentMonth:s.bool.isRequired,selected:s.bool,showDaysOutsideCurrentMonth:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,today:s.bool,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})})])});const pv=P.memo(ld);process.env.NODE_ENV!=="production"&&(pv.displayName="PickersDay");const Y5=e=>Te("MuiPickersSlideTransition",e),Kt=Ce("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),q5=["children","className","reduceAnimations","slideDirection","transKey","classes"],G5=(e,t)=>{const{slideDirection:n}=t,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return we(o,Y5,e)},K5=ae.styled(Bs,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Kt["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Kt["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Kt.slideEnterActive}`]:t.slideEnterActive},{[`.${Kt.slideExit}`]:t.slideExit},{[`.${Kt["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Kt["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Kt["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Kt["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Kt.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Kt.slideExit}`]:{transform:"translate(0%)"},[`& .${Kt["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Kt["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function Z5(e){const t=ae.useThemeProps({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:r,slideDirection:i,transKey:a,classes:l}=t,c=Pe(t,q5),{ownerState:u}=Dt(),d=U({},u,{slideDirection:i}),f=G5(l,d),p=ae.useTheme();if(r)return b.jsx("div",{className:ye(f.root,o),children:n});const h={exit:f.exit,enterActive:f.enterActive,enter:f.enter,exitActive:f.exitActive};return b.jsx(K5,{className:ye(f.root,o),childFactory:m=>P.cloneElement(m,{classNames:h}),role:"presentation",ownerState:d,children:b.jsx(ju,U({mountOnEnter:!0,unmountOnExit:!0,timeout:p.transitions.duration.complex,classNames:h},c,{children:n}),a)})}const X5=e=>Te("MuiDayCalendar",e);Ce("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const Q5=["parentProps","day","focusedDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],J5=["ownerState"],ej=e=>we({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},X5,e),hv=(Ps+xa*2)*6,tj=ae.styled("div",{name:"MuiDayCalendar",slot:"Root"})({}),nj=ae.styled("div",{name:"MuiDayCalendar",slot:"Header"})({display:"flex",justifyContent:"center",alignItems:"center"}),oj=ae.styled(ao,{name:"MuiDayCalendar",slot:"WeekDayLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),rj=ae.styled(ao,{name:"MuiDayCalendar",slot:"WeekNumberLabel"})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.disabled})),sj=ae.styled(ao,{name:"MuiDayCalendar",slot:"WeekNumber"})(({theme:e})=>U({},e.typography.caption,{width:Ps,height:Ps,padding:0,margin:`0 ${xa}px`,color:(e.vars||e).palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),ij=ae.styled("div",{name:"MuiDayCalendar",slot:"LoadingContainer"})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:hv}),aj=ae.styled(Z5,{name:"MuiDayCalendar",slot:"SlideTransition"})({minHeight:hv}),lj=ae.styled("div",{name:"MuiDayCalendar",slot:"MonthContainer"})({overflow:"hidden"}),cj=ae.styled("div",{name:"MuiDayCalendar",slot:"WeekContainer"})({margin:`${xa}px 0`,display:"flex",justifyContent:"center"});function uj(e){let{parentProps:t,day:n,focusedDay:o,selectedDays:r,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,c=Pe(e,Q5);const{disabled:u,disableHighlightToday:d,isMonthSwitchingAnimating:f,showDaysOutsideCurrentMonth:p,slots:h,slotProps:m,timezone:g}=t,y=Qe(),v=ga(g),C=o!=null&&y.isSameDay(n,o),x=l&&C,S=r.some(D=>y.isSameDay(D,n)),T=y.isSameDay(n,v),E=P.useMemo(()=>u||i(n),[u,i,n]),M=P.useMemo(()=>y.getMonth(n)!==a,[y,n,a]),A=uv({day:n,selected:S,disabled:E,today:T,outsideCurrentMonth:M,disableMargin:void 0,disableHighlightToday:d,showDaysOutsideCurrentMonth:p}),k=(h==null?void 0:h.day)??pv,$=Le({elementType:k,externalSlotProps:m==null?void 0:m.day,additionalProps:U({disableHighlightToday:d,showDaysOutsideCurrentMonth:p,role:"gridcell",isAnimating:f,"data-timestamp":y.toJsDate(n).valueOf()},c),ownerState:U({},A,{day:n,isDayDisabled:E,isDaySelected:S})}),j=Pe($,J5),w=P.useMemo(()=>{const D=y.startOfMonth(y.setMonth(n,a));return p?y.isSameDay(n,y.startOfWeek(D)):y.isSameDay(n,D)},[a,n,p,y]),L=P.useMemo(()=>{const D=y.endOfMonth(y.setMonth(n,a));return p?y.isSameDay(n,y.endOfWeek(D)):y.isSameDay(n,D)},[a,n,p,y]);return b.jsx(k,U({},j,{day:n,disabled:E,autoFocus:!M&&x,today:T,outsideCurrentMonth:M,isFirstVisibleCell:w,isLastVisibleCell:L,selected:S,tabIndex:C?0:-1,"aria-selected":S,"aria-current":T?"date":void 0}))}function dj(e){const t=ae.useThemeProps({props:e,name:"MuiDayCalendar"}),n=Qe(),{onFocusedDayChange:o,className:r,classes:i,currentMonth:a,selectedDays:l,focusedDay:c,loading:u,onSelectedDaysChange:d,onMonthSwitchingAnimationEnd:f,readOnly:p,reduceAnimations:h,renderLoading:m=()=>b.jsx("span",{children:"..."}),slideDirection:g,TransitionProps:y,disablePast:v,disableFuture:C,minDate:x,maxDate:S,shouldDisableDate:T,shouldDisableMonth:E,shouldDisableYear:M,dayOfWeekFormatter:A=H=>n.format(H,"weekdayShort").charAt(0).toUpperCase(),hasFocus:k,onFocusedViewChange:$,gridLabelId:j,displayWeekNumber:w,fixedWeekNumber:L,timezone:D}=t,I=ga(D),O=ej(i),N=fn(),F=lv({shouldDisableDate:T,shouldDisableMonth:E,shouldDisableYear:M,minDate:x,maxDate:S,disablePast:v,disableFuture:C,timezone:D}),V=lo(),B=he(H=>{p||d(H)}),R=H=>{F(H)||(o(H),$==null||$(!0))},Y=he((H,W)=>{switch(H.key){case"ArrowUp":R(n.addDays(W,-7)),H.preventDefault();break;case"ArrowDown":R(n.addDays(W,7)),H.preventDefault();break;case"ArrowLeft":{const ee=n.addDays(W,N?1:-1),J=n.addMonths(W,N?1:-1),ie=vs({adapter:n,date:ee,minDate:N?ee:n.startOfMonth(J),maxDate:N?n.endOfMonth(J):ee,isDateDisabled:F,timezone:D});R(ie||ee),H.preventDefault();break}case"ArrowRight":{const ee=n.addDays(W,N?-1:1),J=n.addMonths(W,N?-1:1),ie=vs({adapter:n,date:ee,minDate:N?n.startOfMonth(J):ee,maxDate:N?ee:n.endOfMonth(J),isDateDisabled:F,timezone:D});R(ie||ee),H.preventDefault();break}case"Home":R(n.startOfWeek(W)),H.preventDefault();break;case"End":R(n.endOfWeek(W)),H.preventDefault();break;case"PageUp":R(n.addMonths(W,1)),H.preventDefault();break;case"PageDown":R(n.addMonths(W,-1)),H.preventDefault();break}}),G=he((H,W)=>R(W)),Z=he((H,W)=>{c!=null&&n.isSameDay(c,W)&&($==null||$(!1))}),re=n.getMonth(a),X=n.getYear(a),Q=P.useMemo(()=>l.filter(H=>!!H).map(H=>n.startOfDay(H)),[n,l]),K=`${X}-${re}`,te=P.useMemo(()=>P.createRef(),[K]),z=P.useMemo(()=>{const H=n.getWeekArray(a);let W=n.addMonths(a,1);for(;L&&H.length<L;){const ee=n.getWeekArray(W),J=n.isSameDay(H[H.length-1][0],ee[0][0]);ee.slice(J?1:0).forEach(ie=>{H.length<L&&H.push(ie)}),W=n.addMonths(W,1)}return H},[a,L,n]);return b.jsxs(tj,{role:"grid","aria-labelledby":j,className:O.root,children:[b.jsxs(nj,{role:"row",className:O.header,children:[w&&b.jsx(rj,{variant:"caption",role:"columnheader","aria-label":V.calendarWeekNumberHeaderLabel,className:O.weekNumberLabel,children:V.calendarWeekNumberHeaderText}),ID(n,I).map((H,W)=>b.jsx(oj,{variant:"caption",role:"columnheader","aria-label":n.format(H,"weekday"),className:O.weekDayLabel,children:A(H)},W.toString()))]}),u?b.jsx(ij,{className:O.loadingContainer,children:m()}):b.jsx(aj,U({transKey:K,onExited:f,reduceAnimations:h,slideDirection:g,className:ye(r,O.slideTransition)},y,{nodeRef:te,children:b.jsx(lj,{ref:te,role:"rowgroup",className:O.monthContainer,children:z.map((H,W)=>b.jsxs(cj,{role:"row",className:O.weekContainer,"aria-rowindex":W+1,children:[w&&b.jsx(sj,{className:O.weekNumber,role:"rowheader","aria-label":V.calendarWeekNumberAriaLabelText(n.getWeekNumber(H[0])),children:V.calendarWeekNumberText(n.getWeekNumber(H[0]))}),H.map((ee,J)=>b.jsx(uj,{parentProps:t,day:ee,selectedDays:Q,isViewFocused:k,focusedDay:c,onKeyDown:Y,onFocus:G,onBlur:Z,onDaySelect:B,isDateDisabled:F,currentMonthNumber:re,"aria-colindex":J+1},ee.toString()))]},`week-${H[0]}`))})}))]})}function mv(e){return Te("MuiMonthCalendar",e)}const ci=Ce("MuiMonthCalendar",["root","button","disabled","selected"]),fj=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],pj=(e,t)=>{const n={button:["button",t.isMonthDisabled&&"disabled",t.isMonthSelected&&"selected"]};return we(n,mv,e)},hj=ae.styled("button",{name:"MuiMonthCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${ci.disabled}`]:t.disabled},{[`&.${ci.selected}`]:t.selected}]})(({theme:e})=>U({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ae.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ae.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ci.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ci.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),gv=P.memo(function(t){const{autoFocus:n,classes:o,disabled:r,selected:i,value:a,onClick:l,onKeyDown:c,onFocus:u,onBlur:d,slots:f,slotProps:p}=t,h=Pe(t,fj),m=P.useRef(null),{ownerState:g}=Dt(),y=U({},g,{isMonthDisabled:r,isMonthSelected:i}),v=pj(o,y);Ct(()=>{var S;n&&((S=m.current)==null||S.focus())},[n]);const C=(f==null?void 0:f.monthButton)??hj,x=Le({elementType:C,externalSlotProps:p==null?void 0:p.monthButton,externalForwardedProps:h,additionalProps:{disabled:r,ref:m,type:"button",role:"radio","aria-checked":i,onClick:S=>l(S,a),onKeyDown:S=>c(S,a),onFocus:S=>u(S,a),onBlur:S=>d(S,a)},ownerState:y,className:v.button});return b.jsx(C,U({},x))});process.env.NODE_ENV!=="production"&&(gv.displayName="MonthCalendarButton");const mj=["autoFocus","className","currentMonth","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],gj=e=>we({root:["root"]},mv,e);function yj(e,t){const n=ae.useThemeProps({props:e,name:t}),o=$s(n);return U({},n,o,{monthsPerRow:n.monthsPerRow??3})}const Ah=(e,t,n,o,r)=>!!(e===t&&o&&r.isSameYear(n,o)),bj=ae.styled("div",{name:"MuiMonthCalendar",slot:"Root",shouldForwardProp:e=>Zn(e)&&e!=="monthsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:16,padding:"8px 0",width:Sa,boxSizing:"border-box",variants:[{props:{monthsPerRow:3},style:{columnGap:24}},{props:{monthsPerRow:4},style:{columnGap:0}}]}),cd=P.forwardRef(function(t,n){const o=yj(t,"MuiMonthCalendar"),{autoFocus:r,className:i,currentMonth:a,classes:l,value:c,defaultValue:u,referenceDate:d,disabled:f,disableFuture:p,disablePast:h,maxDate:m,minDate:g,onChange:y,shouldDisableMonth:v,readOnly:C,onMonthFocus:x,hasFocus:S,onFocusedViewChange:T,monthsPerRow:E,timezone:M,gridLabelId:A,slots:k,slotProps:$}=o,j=Pe(o,mj),{value:w,handleValueChange:L,timezone:D}=Hs({name:"MonthCalendar",timezone:M,value:c,defaultValue:u,referenceDate:d,onChange:y,valueManager:En}),I=ga(D),O=fn(),N=Qe(),{ownerState:F}=Dt(),V=P.useMemo(()=>En.getInitialReferenceValue({value:w,adapter:N,props:o,timezone:D,referenceDate:d,granularity:vn.month}),[]),B=gj(l),R=P.useMemo(()=>N.getMonth(I),[N,I]),Y=P.useMemo(()=>w!=null?N.getMonth(w):null,[w,N]),[G,Z]=P.useState(()=>Y||N.getMonth(V)),[re,X]=Jn({name:"MonthCalendar",state:"hasFocus",controlled:S,default:r??!1}),Q=he(J=>{X(J),T&&T(J)}),K=P.useCallback(J=>{const ie=N.startOfMonth(h&&N.isAfter(I,g)?I:g),ne=N.startOfMonth(p&&N.isBefore(I,m)?I:m),de=N.startOfMonth(J);return N.isBefore(de,ie)||N.isAfter(de,ne)?!0:v?v(de):!1},[p,h,m,g,I,v,N]),te=he((J,ie)=>{if(C)return;const de=(w&&a&&!N.isSameYear(w,a)?N.setYear(w,N.getYear(a)):w)??a??V,se=N.setMonth(de,ie);L(se)}),z=he(J=>{K(N.setMonth(w??a??V,J))||(Z(J),Q(!0),x&&x(J))});P.useEffect(()=>{Z(J=>Y!==null&&J!==Y?Y:J)},[Y]);const H=he((J,ie)=>{switch(J.key){case"ArrowUp":z((12+ie-3)%12),J.preventDefault();break;case"ArrowDown":z((12+ie+3)%12),J.preventDefault();break;case"ArrowLeft":z((12+ie+(O?1:-1))%12),J.preventDefault();break;case"ArrowRight":z((12+ie+(O?-1:1))%12),J.preventDefault();break}}),W=he((J,ie)=>{z(ie)}),ee=he((J,ie)=>{G===ie&&Q(!1)});return b.jsx(bj,U({ref:n,className:ye(B.root,i),ownerState:F,role:"radiogroup","aria-labelledby":A,monthsPerRow:E},j,{children:Su(N,a??w??V).map(J=>{const ie=N.getMonth(J),ne=N.format(J,"monthShort"),de=N.format(J,"month"),se=Ah(ie,Y,J,w,N),ue=f||K(J);return b.jsx(gv,{selected:se,value:ie,onClick:te,onKeyDown:H,autoFocus:re&&ie===G,disabled:ue,tabIndex:ie===G&&!ue?0:-1,onFocus:W,onBlur:ee,"aria-current":Ah(ie,R,J,I,N)?"date":void 0,"aria-label":de,slots:k,slotProps:$,classes:l,children:ne},ne)})}))});process.env.NODE_ENV!=="production"&&(cd.displayName="MonthCalendar");process.env.NODE_ENV!=="production"&&(cd.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,currentMonth:s.object,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onChange:s.func,onFocusedViewChange:s.func,onMonthFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableMonth:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object});function yv(e){return Te("MuiYearCalendar",e)}const ui=Ce("MuiYearCalendar",["root","button","disabled","selected"]),vj=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],xj=(e,t)=>{const n={button:["button",t.isYearDisabled&&"disabled",t.isYearSelected&&"selected"]};return we(n,yv,e)},Sj=ae.styled("button",{name:"MuiYearCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${ui.disabled}`]:t.disabled},{[`&.${ui.selected}`]:t.selected}]})(({theme:e})=>U({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:ae.alpha(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ae.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ui.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ui.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),bv=P.memo(function(t){const{autoFocus:n,classes:o,disabled:r,selected:i,value:a,onClick:l,onKeyDown:c,onFocus:u,onBlur:d,slots:f,slotProps:p}=t,h=Pe(t,vj),m=P.useRef(null),{ownerState:g}=Dt(),y=U({},g,{isYearDisabled:r,isYearSelected:i}),v=xj(o,y);Ct(()=>{var S;n&&((S=m.current)==null||S.focus())},[n]);const C=(f==null?void 0:f.yearButton)??Sj,x=Le({elementType:C,externalSlotProps:p==null?void 0:p.yearButton,externalForwardedProps:h,additionalProps:{disabled:r,ref:m,type:"button",role:"radio","aria-checked":i,onClick:S=>l(S,a),onKeyDown:S=>c(S,a),onFocus:S=>u(S,a),onBlur:S=>d(S,a)},ownerState:y,className:v.button});return b.jsx(C,U({},x))});process.env.NODE_ENV!=="production"&&(bv.displayName="YearCalendarButton");const wj=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],Cj=e=>we({root:["root"]},yv,e);function Tj(e,t){const n=ae.useThemeProps({props:e,name:t}),o=$s(n);return U({},n,o,{yearsPerRow:n.yearsPerRow??3,yearsOrder:n.yearsOrder??"asc"})}const Pj=ae.styled("div",{name:"MuiYearCalendar",slot:"Root",shouldForwardProp:e=>Zn(e)&&e!=="yearsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:12,padding:"6px 0",overflowY:"auto",height:"100%",width:Sa,maxHeight:DA,boxSizing:"border-box",position:"relative",variants:[{props:{yearsPerRow:3},style:{columnGap:24}},{props:{yearsPerRow:4},style:{columnGap:0,padding:"0 2px"}}]}),Ej=ae.styled("div",{name:"MuiYearCalendar",slot:"ButtonFiller"})({height:36,width:72}),ud=P.forwardRef(function(t,n){const o=Tj(t,"MuiYearCalendar"),{autoFocus:r,className:i,classes:a,value:l,defaultValue:c,referenceDate:u,disabled:d,disableFuture:f,disablePast:p,maxDate:h,minDate:m,onChange:g,readOnly:y,shouldDisableYear:v,onYearFocus:C,hasFocus:x,onFocusedViewChange:S,yearsOrder:T,yearsPerRow:E,timezone:M,gridLabelId:A,slots:k,slotProps:$}=o,j=Pe(o,wj),{value:w,handleValueChange:L,timezone:D}=Hs({name:"YearCalendar",timezone:M,value:l,defaultValue:c,referenceDate:u,onChange:g,valueManager:En}),I=ga(D),O=fn(),N=Qe(),{ownerState:F}=Dt(),V=P.useMemo(()=>En.getInitialReferenceValue({value:w,adapter:N,props:o,timezone:D,referenceDate:u,granularity:vn.year}),[]),B=Cj(a),R=P.useMemo(()=>N.getYear(I),[N,I]),Y=P.useMemo(()=>w!=null?N.getYear(w):null,[w,N]),[G,Z]=P.useState(()=>Y||N.getYear(V)),[re,X]=Jn({name:"YearCalendar",state:"hasFocus",controlled:x,default:r??!1}),Q=he(le=>{X(le),S&&S(le)}),K=P.useCallback(le=>{if(p&&N.isBeforeYear(le,I)||f&&N.isAfterYear(le,I)||m&&N.isBeforeYear(le,m)||h&&N.isAfterYear(le,h))return!0;if(!v)return!1;const fe=N.startOfYear(le);return v(fe)},[f,p,h,m,I,v,N]),te=he((le,fe)=>{if(y)return;const me=N.setYear(w??V,fe);L(me)}),z=he(le=>{K(N.setYear(w??V,le))||(Z(le),Q(!0),C==null||C(le))});P.useEffect(()=>{Z(le=>Y!==null&&le!==Y?Y:le)},[Y]);const H=T!=="desc"?E*1:E*-1,W=O&&T==="asc"||!O&&T==="desc"?-1:1,ee=he((le,fe)=>{switch(le.key){case"ArrowUp":z(fe-H),le.preventDefault();break;case"ArrowDown":z(fe+H),le.preventDefault();break;case"ArrowLeft":z(fe-W),le.preventDefault();break;case"ArrowRight":z(fe+W),le.preventDefault();break}}),J=he((le,fe)=>{z(fe)}),ie=he((le,fe)=>{G===fe&&Q(!1)}),ne=P.useRef(null),de=$e(n,ne);P.useEffect(()=>{if(r||ne.current===null)return;const le=ne.current.querySelector('[tabindex="0"]');if(!le)return;const fe=le.offsetHeight,me=le.offsetTop,Ie=ne.current.clientHeight,Oe=ne.current.scrollTop,qe=me+fe;fe>Ie||me<Oe||(ne.current.scrollTop=qe-Ie/2-fe/2)},[r]);const se=N.getYearRange([m,h]);T==="desc"&&se.reverse();let ue=E-se.length%E;return ue===E&&(ue=0),b.jsxs(Pj,U({ref:de,className:ye(B.root,i),ownerState:F,role:"radiogroup","aria-labelledby":A,yearsPerRow:E},j,{children:[se.map(le=>{const fe=N.getYear(le),me=fe===Y,Ie=d||K(le);return b.jsx(bv,{selected:me,value:fe,onClick:te,onKeyDown:ee,autoFocus:re&&fe===G,disabled:Ie,tabIndex:fe===G&&!Ie?0:-1,onFocus:J,onBlur:ie,"aria-current":R===fe?"date":void 0,slots:k,slotProps:$,classes:a,children:N.format(le,"year")},N.format(le,"year"))}),Array.from({length:ue},(le,fe)=>b.jsx(Ej,{},fe))]}))});process.env.NODE_ENV!=="production"&&(ud.displayName="YearCalendar");process.env.NODE_ENV!=="production"&&(ud.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,onChange:s.func,onFocusedViewChange:s.func,onYearFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableYear:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const Mj=e=>Te("MuiPickersCalendarHeader",e),Oj=Ce("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function kj(e){return Te("MuiPickersArrowSwitcher",e)}Ce("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const Dj=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],Rj=["ownerState"],Ij=["ownerState"],Aj=ae.styled("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),Nj=ae.styled("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),Nh=ae.styled(Es,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),_j=e=>we({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},kj,e),vv=P.forwardRef(function(t,n){const o=fn(),r=ae.useThemeProps({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:l,slotProps:c,isNextDisabled:u,isNextHidden:d,onGoToNext:f,nextLabel:p,isPreviousDisabled:h,isPreviousHidden:m,onGoToPrevious:g,previousLabel:y,labelId:v,classes:C}=r,x=Pe(r,Dj),{ownerState:S}=Dt(),T=_j(C),E={isDisabled:u,isHidden:d,goTo:f,label:p},M={isDisabled:h,isHidden:m,goTo:g,label:y},A=(l==null?void 0:l.previousIconButton)??Nh,k=Le({elementType:A,externalSlotProps:c==null?void 0:c.previousIconButton,additionalProps:{size:"medium",title:M.label,"aria-label":M.label,disabled:M.isDisabled,edge:"end",onClick:M.goTo},ownerState:U({},S,{isButtonHidden:M.isHidden??!1}),className:ye(T.button,T.previousIconButton)}),$=(l==null?void 0:l.nextIconButton)??Nh,j=Le({elementType:$,externalSlotProps:c==null?void 0:c.nextIconButton,additionalProps:{size:"medium",title:E.label,"aria-label":E.label,disabled:E.isDisabled,edge:"start",onClick:E.goTo},ownerState:U({},S,{isButtonHidden:E.isHidden??!1}),className:ye(T.button,T.nextIconButton)}),w=(l==null?void 0:l.leftArrowIcon)??__,L=Le({elementType:w,externalSlotProps:c==null?void 0:c.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:S,className:T.leftArrowIcon}),D=Pe(L,Rj),I=(l==null?void 0:l.rightArrowIcon)??j_,O=Le({elementType:I,externalSlotProps:c==null?void 0:c.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:S,className:T.rightArrowIcon}),N=Pe(O,Ij);return b.jsxs(Aj,U({ref:n,className:ye(T.root,a),ownerState:S},x,{children:[b.jsx(A,U({},k,{children:o?b.jsx(I,U({},N)):b.jsx(w,U({},D))})),i?b.jsx(ao,{variant:"subtitle1",component:"span",id:v,children:i}):b.jsx(Nj,{className:T.spacer,ownerState:S}),b.jsx($,U({},j,{children:o?b.jsx(w,U({},D)):b.jsx(I,U({},N))}))]}))});process.env.NODE_ENV!=="production"&&(vv.displayName="PickersArrowSwitcher");function jj(e,{disableFuture:t,maxDate:n,timezone:o}){const r=Qe();return P.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isBefore(i,n)?i:n);return!r.isAfter(a,e)},[t,n,e,r,o])}function Lj(e,{disablePast:t,minDate:n,timezone:o}){const r=Qe();return P.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isAfter(i,n)?i:n);return!r.isBefore(a,e)},[t,n,e,r,o])}const $j=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","classes","timezone","format"],Vj=["ownerState"],Fj=e=>we({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Mj,e),Bj=ae.styled("div",{name:"MuiPickersCalendarHeader",slot:"Root"})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),zj=ae.styled("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer"})(({theme:e})=>U({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Wj=ae.styled("div",{name:"MuiPickersCalendarHeader",slot:"Label"})({marginRight:6}),Uj=ae.styled(Es,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton"})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${Oj.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),Hj=ae.styled(N_,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon"})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),dd=P.forwardRef(function(t,n){const o=lo(),r=Qe(),i=ae.useThemeProps({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:l,currentMonth:c,disabled:u,disableFuture:d,disablePast:f,maxDate:p,minDate:h,onMonthChange:m,onViewChange:g,view:y,reduceAnimations:v,views:C,labelId:x,className:S,classes:T,timezone:E,format:M=`${r.formats.month} ${r.formats.year}`}=i,A=Pe(i,$j),{ownerState:k}=Dt(),$=Fj(T),j=(a==null?void 0:a.switchViewButton)??Uj,w=Le({elementType:j,externalSlotProps:l==null?void 0:l.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(y)},ownerState:U({},k,{view:y}),className:$.switchViewButton}),L=(a==null?void 0:a.switchViewIcon)??Hj,D=Le({elementType:L,externalSlotProps:l==null?void 0:l.switchViewIcon,ownerState:k,className:$.switchViewIcon}),I=Pe(D,Vj),O=()=>m(r.addMonths(c,1)),N=()=>m(r.addMonths(c,-1)),F=jj(c,{disableFuture:d,maxDate:p,timezone:E}),V=Lj(c,{disablePast:f,minDate:h,timezone:E}),B=()=>{if(!(C.length===1||!g||u))if(C.length===2)g(C.find(Y=>Y!==y)||C[0]);else{const Y=C.indexOf(y)!==0?0:1;g(C[Y])}};if(C.length===1&&C[0]==="year")return null;const R=r.formatByString(c,M);return b.jsxs(Bj,U({},A,{ownerState:k,className:ye($.root,S),ref:n,children:[b.jsxs(zj,{role:"presentation",onClick:B,ownerState:k,"aria-live":"polite",className:$.labelContainer,children:[b.jsx(cv,{reduceAnimations:v,transKey:R,children:b.jsx(Wj,{id:x,ownerState:k,className:$.label,children:R})}),C.length>1&&!u&&b.jsx(j,U({},w,{children:b.jsx(L,U({},I))}))]}),b.jsx(no,{in:y==="day",appear:!v,enter:!v,children:b.jsx(vv,{slots:a,slotProps:l,onGoToPrevious:N,isPreviousDisabled:V,previousLabel:o.previousMonth,onGoToNext:O,isNextDisabled:F,nextLabel:o.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(dd.displayName="PickersCalendarHeader");process.env.NODE_ENV!=="production"&&(dd.propTypes={classes:s.object,className:s.string,currentMonth:s.object.isRequired,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,format:s.string,labelId:s.string,maxDate:s.object.isRequired,minDate:s.object.isRequired,onMonthChange:s.func.isRequired,onViewChange:s.func,reduceAnimations:s.bool.isRequired,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string.isRequired,view:s.oneOf(["day","month","year"]).isRequired,views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired).isRequired});const Yj=ae.styled("div",{slot:"internal",shouldForwardProp:void 0})({overflow:"hidden",width:Sa,maxHeight:Gu,display:"flex",flexDirection:"column",margin:"0 auto"}),qj=e=>Te("MuiDateCalendar",e);Ce("MuiDateCalendar",["root","viewTransitionContainer"]);const Gj=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","classes","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],Kj=e=>we({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},qj,e);function Zj(e,t){const n=ae.useThemeProps({props:e,name:t}),o=vb(n.reduceAnimations),r=$s(n);return U({},n,r,{loading:n.loading??!1,openTo:n.openTo??"day",views:n.views??["year","day"],reduceAnimations:o,renderLoading:n.renderLoading??(()=>b.jsx("span",{children:"..."}))})}const Xj=ae.styled(Yj,{name:"MuiDateCalendar",slot:"Root"})({display:"flex",flexDirection:"column",height:Gu}),Qj=ae.styled(cv,{name:"MuiDateCalendar",slot:"ViewTransitionContainer"})({}),fd=P.forwardRef(function(t,n){const o=Qe(),{ownerState:r}=Dt(),i=so(),a=Zj(t,"MuiDateCalendar"),{autoFocus:l,onViewChange:c,value:u,defaultValue:d,referenceDate:f,disableFuture:p,disablePast:h,onChange:m,onMonthChange:g,reduceAnimations:y,shouldDisableDate:v,shouldDisableMonth:C,shouldDisableYear:x,view:S,views:T,openTo:E,className:M,classes:A,disabled:k,readOnly:$,minDate:j,maxDate:w,disableHighlightToday:L,focusedView:D,onFocusedViewChange:I,showDaysOutsideCurrentMonth:O,fixedWeekNumber:N,dayOfWeekFormatter:F,slots:V,slotProps:B,loading:R,renderLoading:Y,displayWeekNumber:G,yearsOrder:Z,yearsPerRow:re,monthsPerRow:X,timezone:Q}=a,K=Pe(a,Gj),{value:te,handleValueChange:z,timezone:H}=Hs({name:"DateCalendar",timezone:Q,value:u,defaultValue:d,referenceDate:f,onChange:m,valueManager:En}),{view:W,setView:ee,focusedView:J,setFocusedView:ie,goToNextView:ne,setValueAndGoToNextView:de}=Sb({view:S,views:T,openTo:E,onChange:z,onViewChange:c,autoFocus:l,focusedView:D,onFocusedViewChange:I}),{referenceDate:se,calendarState:ue,setVisibleDate:le,isDateDisabled:fe,onMonthSwitchingAnimationEnd:me}=j5({value:te,referenceDate:f,reduceAnimations:y,onMonthChange:g,minDate:j,maxDate:w,shouldDisableDate:v,disablePast:h,disableFuture:p,timezone:H,getCurrentMonthFromVisibleDate:(ke,ut)=>o.isSameMonth(ke,ut)?ut:o.startOfMonth(ke)}),Ie=k&&te||j,Oe=k&&te||w,qe=`${i}-grid-label`,tt=J!==null,St=(V==null?void 0:V.calendarHeader)??dd,Tt=Le({elementType:St,externalSlotProps:B==null?void 0:B.calendarHeader,additionalProps:{views:T,view:W,currentMonth:ue.currentMonth,onViewChange:ee,onMonthChange:ke=>le({target:ke,reason:"header-navigation"}),minDate:Ie,maxDate:Oe,disabled:k,disablePast:h,disableFuture:p,reduceAnimations:y,timezone:H,labelId:qe},ownerState:r}),Ee=he(ke=>{const ut=o.startOfMonth(ke),yt=o.endOfMonth(ke),Et=fe(ke)?vs({adapter:o,date:ke,minDate:o.isBefore(j,ut)?ut:j,maxDate:o.isAfter(w,yt)?yt:w,disablePast:h,disableFuture:p,isDateDisabled:fe,timezone:H}):ke;Et?(de(Et,"finish"),le({target:Et,reason:"cell-interaction"})):(ne(),le({target:ut,reason:"cell-interaction"}))}),Me=he(ke=>{const ut=o.startOfYear(ke),yt=o.endOfYear(ke),Et=fe(ke)?vs({adapter:o,date:ke,minDate:o.isBefore(j,ut)?ut:j,maxDate:o.isAfter(w,yt)?yt:w,disablePast:h,disableFuture:p,isDateDisabled:fe,timezone:H}):ke;Et?(de(Et,"finish"),le({target:Et,reason:"cell-interaction"})):(ne(),le({target:ut,reason:"cell-interaction"}))}),Se=he(ke=>z(ke&&$i(o,ke,te??se),"finish",W));P.useEffect(()=>{o.isValid(te)&&le({target:te,reason:"controlled-value-change"})},[te]);const Be=Kj(A),ze={disablePast:h,disableFuture:p,maxDate:w,minDate:j},nt={disableHighlightToday:L,readOnly:$,disabled:k,timezone:H,gridLabelId:qe,slots:V,slotProps:B},Je=P.useRef(W);P.useEffect(()=>{Je.current!==W&&(J===Je.current&&ie(W,!0),Je.current=W)},[J,ie,W]);const Vt=P.useMemo(()=>[te],[te]);return b.jsxs(Xj,U({ref:n,className:ye(Be.root,M),ownerState:r},K,{children:[b.jsx(St,U({},Tt,{slots:V,slotProps:B})),b.jsx(Qj,{reduceAnimations:y,className:Be.viewTransitionContainer,transKey:W,ownerState:r,children:b.jsxs("div",{children:[W==="year"&&b.jsx(ud,U({},ze,nt,{value:te,onChange:Me,shouldDisableYear:x,hasFocus:tt,onFocusedViewChange:ke=>ie("year",ke),yearsOrder:Z,yearsPerRow:re,referenceDate:se})),W==="month"&&b.jsx(cd,U({},ze,nt,{currentMonth:ue.currentMonth,hasFocus:tt,className:M,value:te,onChange:Ee,shouldDisableMonth:C,onFocusedViewChange:ke=>ie("month",ke),monthsPerRow:X,referenceDate:se})),W==="day"&&b.jsx(dj,U({},ue,ze,nt,{onMonthSwitchingAnimationEnd:me,hasFocus:tt,onFocusedDayChange:ke=>le({target:ke,reason:"cell-interaction"}),reduceAnimations:y,selectedDays:Vt,onSelectedDaysChange:Se,shouldDisableDate:v,shouldDisableMonth:C,shouldDisableYear:x,onFocusedViewChange:ke=>ie("day",ke),showDaysOutsideCurrentMonth:O,fixedWeekNumber:N,dayOfWeekFormatter:F,displayWeekNumber:G,loading:R,renderLoading:Y}))]})})]}))});process.env.NODE_ENV!=="production"&&(fd.displayName="DateCalendar");process.env.NODE_ENV!=="production"&&(fd.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,fixedWeekNumber:s.number,focusedView:s.oneOf(["day","month","year"]),loading:s.bool,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onChange:s.func,onFocusedViewChange:s.func,onMonthChange:s.func,onViewChange:s.func,onYearChange:s.func,openTo:s.oneOf(["day","month","year"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const jo=({view:e,onViewChange:t,views:n,focusedView:o,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:p,minDate:h,maxDate:m,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:v,reduceAnimations:C,onMonthChange:x,monthsPerRow:S,onYearChange:T,yearsOrder:E,yearsPerRow:M,slots:A,slotProps:k,loading:$,renderLoading:j,disableHighlightToday:w,readOnly:L,disabled:D,showDaysOutsideCurrentMonth:I,dayOfWeekFormatter:O,sx:N,autoFocus:F,fixedWeekNumber:V,displayWeekNumber:B,timezone:R})=>b.jsx(fd,{view:e,onViewChange:t,views:n.filter(Ip),focusedView:o&&Ip(o)?o:null,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:f,disablePast:p,minDate:h,maxDate:m,shouldDisableDate:g,shouldDisableMonth:y,shouldDisableYear:v,reduceAnimations:C,onMonthChange:x,monthsPerRow:S,onYearChange:T,yearsOrder:E,yearsPerRow:M,slots:A,slotProps:k,loading:$,renderLoading:j,disableHighlightToday:w,readOnly:L,disabled:D,showDaysOutsideCurrentMonth:I,dayOfWeekFormatter:O,sx:N,autoFocus:F,fixedWeekNumber:V,displayWeekNumber:B,timezone:R});process.env.NODE_ENV!=="production"&&(jo.displayName="renderDateViewCalendar");const pd=P.forwardRef(function(t,n){var c;const o=Qe(),r=Ky(t,"MuiDesktopDatePicker"),i=U({day:jo,month:jo,year:jo},r.viewRenderers),a=U({},r,{closeOnSelect:r.closeOnSelect??!0,viewRenderers:i,format:wu(o,r,!1),yearsPerRow:r.yearsPerRow??4,slots:U({field:$a},r.slots),slotProps:U({},r.slotProps,{field:u=>{var d;return U({},tn((d=r.slotProps)==null?void 0:d.field,u),Yy(r))},toolbar:U({hidden:!0},(c=r.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=WA({ref:n,props:a,valueManager:En,valueType:"date",validator:Ls,steps:null});return l()});process.env.NODE_ENV!=="production"&&(pd.displayName="DesktopDatePicker");pd.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:xt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};function Jj(e){return Te("MuiDialogContent",e)}Ce("MuiDialogContent",["root","dividers"]);const eL=Ce("MuiDialogTitle",["root"]),tL=e=>{const{classes:t,dividers:n}=e;return we({root:["root",n&&"dividers"]},Jj,t)},nL=be("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Xe(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${eL.root} + &`]:{paddingTop:0}}}]}))),xv=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiDialogContent"}),{className:r,dividers:i=!1,...a}=o,l={...o,dividers:i},c=tL(l);return b.jsx(nL,{className:ye(c.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(xv.propTypes={children:s.node,classes:s.object,className:s.string,dividers:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function oL(e){return Te("MuiDialog",e)}const ds=Ce("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Sv=P.createContext({});process.env.NODE_ENV!=="production"&&(Sv.displayName="DialogContext");const rL=be(Ju,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),sL=e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:r,fullScreen:i}=e,a={root:["root"],backdrop:["backdrop"],container:["container",`scroll${ce(n)}`],paper:["paper",`paperScroll${ce(n)}`,`paperWidth${ce(String(o))}`,r&&"paperFullWidth",i&&"paperFullScreen"]};return we(a,oL,t)},iL=be(ed,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),aL=be("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ce(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),lL=be(zs,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ce(n.scroll)}`],t[`paperWidth${ce(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Xe(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${ds.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${ds.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${ds.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),wv=P.forwardRef(function(t,n){const o=Fe({props:t,name:"MuiDialog"}),r=sa(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:u,BackdropProps:d,children:f,className:p,disableEscapeKeyDown:h=!1,fullScreen:m=!1,fullWidth:g=!1,maxWidth:y="sm",onClick:v,onClose:C,open:x,PaperComponent:S=zs,PaperProps:T={},scroll:E="paper",slots:M={},slotProps:A={},TransitionComponent:k=no,transitionDuration:$=i,TransitionProps:j,...w}=o,L={...o,disableEscapeKeyDown:h,fullScreen:m,fullWidth:g,maxWidth:y,scroll:E},D=sL(L),I=P.useRef(),O=ee=>{I.current=ee.target===ee.currentTarget},N=ee=>{v&&v(ee),I.current&&(I.current=null,C&&C(ee,"backdropClick"))},F=so(l),V=P.useMemo(()=>({titleId:F}),[F]),B={transition:k,...M},R={transition:j,paper:T,backdrop:d,...A},Y={slots:B,slotProps:R},[G,Z]=it("root",{elementType:iL,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:L,className:ye(D.root,p),ref:n}),[re,X]=it("backdrop",{elementType:rL,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:L,className:D.backdrop}),[Q,K]=it("paper",{elementType:lL,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:L,className:ye(D.paper,T.className)}),[te,z]=it("container",{elementType:aL,externalForwardedProps:Y,ownerState:L,className:D.container}),[H,W]=it("transition",{elementType:no,externalForwardedProps:Y,ownerState:L,additionalProps:{appear:!0,in:x,timeout:$,role:"presentation"}});return b.jsx(G,{closeAfterTransition:!0,slots:{backdrop:re},slotProps:{backdrop:{transitionDuration:$,as:u,...X}},disableEscapeKeyDown:h,onClose:C,open:x,onClick:N,...Z,...w,children:b.jsx(H,{...W,children:b.jsx(te,{onMouseDown:O,...z,children:b.jsx(Q,{as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":F,"aria-modal":c,...K,children:b.jsx(Sv.Provider,{value:V,children:f})})})})})});process.env.NODE_ENV!=="production"&&(wv.propTypes={"aria-describedby":s.string,"aria-labelledby":s.string,"aria-modal":s.oneOfType([s.oneOf(["false","true"]),s.bool]),BackdropComponent:s.elementType,BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,disableEscapeKeyDown:s.bool,fullScreen:s.bool,fullWidth:s.bool,maxWidth:s.oneOfType([s.oneOf(["xs","sm","md","lg","xl",!1]),s.string]),onClick:s.func,onClose:s.func,open:s.bool.isRequired,PaperComponent:s.elementType,PaperProps:s.object,scroll:s.oneOf(["body","paper"]),slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),container: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,container: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]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});const cL=ae.styled(wv,{slot:"internal"})({[`& .${ds.container}`]:{outline:0},[`& .${ds.paper}`]:{outline:0,minWidth:Sa}}),uL=ae.styled(xv,{slot:"internal"})({"&:first-of-type":{padding:0}});function dL(e){const{children:t,slots:n,slotProps:o}=e,{open:r}=Mr(),{dismissViews:i,onPopperExited:a}=Dt(),l=(n==null?void 0:n.dialog)??cL,c=(n==null?void 0:n.mobileTransition)??no;return b.jsx(l,U({open:r,onClose:()=>{i(),a==null||a()}},o==null?void 0:o.dialog,{TransitionComponent:c,TransitionProps:o==null?void 0:o.mobileTransition,PaperComponent:n==null?void 0:n.mobilePaper,PaperProps:o==null?void 0:o.mobilePaper,children:b.jsx(uL,{children:t})}))}const fL=["props","steps"],pL=["ownerState"],hL=e=>{var E;let{props:t,steps:n}=e,o=Pe(e,fL);const{slots:r,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=jb({steps:n}),{providerProps:d,renderCurrentView:f,ownerState:p}=Cb(U({},o,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"mobile",getStepNavigation:u})),h=d.privateContextValue.labelId,m=((E=i==null?void 0:i.toolbar)==null?void 0:E.hidden)??!1,g=r.field,y=Le({elementType:g,externalSlotProps:i==null?void 0:i.field,additionalProps:U({},m&&{id:h}),ownerState:p}),v=Pe(y,pL),C=r.layout??wa;let x=h;m&&(a?x=`${h}-label`:x=void 0);const S=U({},i,{toolbar:U({},i==null?void 0:i.toolbar,{titleId:h}),mobilePaper:U({"aria-labelledby":x},i==null?void 0:i.mobilePaper)}),T=()=>b.jsxs(By,U({},d,{children:[b.jsx(g,U({},v,{slots:U({},r,v.slots),slotProps:U({},S,v.slotProps),inputRef:l})),b.jsx(dL,{slots:r,slotProps:S,children:b.jsx(C,U({},S==null?void 0:S.layout,{slots:r,slotProps:S,children:f()}))})]}));return process.env.NODE_ENV!=="production"&&(T.displayName="renderPicker"),{renderPicker:T}},hd=P.forwardRef(function(t,n){var c;const o=Qe(),r=Ky(t,"MuiMobileDatePicker"),i=U({day:jo,month:jo,year:jo},r.viewRenderers),a=U({},r,{viewRenderers:i,format:wu(o,r,!1),slots:U({field:$a},r.slots),slotProps:U({},r.slotProps,{field:u=>{var d;return U({},tn((d=r.slotProps)==null?void 0:d.field,u),Yy(r))},toolbar:U({hidden:!1},(c=r.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=hL({ref:n,props:a,valueManager:En,valueType:"date",validator:Ls,steps:null});return l()});process.env.NODE_ENV!=="production"&&(hd.displayName="MobileDatePicker");hd.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:xt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};const mL=["desktopModeMediaQuery"],md=P.forwardRef(function(t,n){const o=ae.useThemeProps({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=x2}=o,i=Pe(o,mL);return _y(r,{defaultMatches:!0})?b.jsx(pd,U({ref:n},i)):b.jsx(hd,U({ref:n},i))});process.env.NODE_ENV!=="production"&&(md.displayName="DatePicker");process.env.NODE_ENV!=="production"&&(md.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,desktopModeMediaQuery:s.string,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:xt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});var Cv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(wr,function(){var n=1e3,o=6e4,r=36e5,i="millisecond",a="second",l="minute",c="hour",u="day",d="week",f="month",p="quarter",h="year",m="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var I=["th","st","nd","rd"],O=D%100;return"["+D+(I[(O-20)%10]||I[O]||I[0])+"]"}},x=function(D,I,O){var N=String(D);return!N||N.length>=I?D:""+Array(I+1-N.length).join(O)+D},S={s:x,z:function(D){var I=-D.utcOffset(),O=Math.abs(I),N=Math.floor(O/60),F=O%60;return(I<=0?"+":"-")+x(N,2,"0")+":"+x(F,2,"0")},m:function D(I,O){if(I.date()<O.date())return-D(O,I);var N=12*(O.year()-I.year())+(O.month()-I.month()),F=I.clone().add(N,f),V=O-F<0,B=I.clone().add(N+(V?-1:1),f);return+(-(N+(O-F)/(V?F-B:B-F))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:f,y:h,w:d,d:u,D:m,h:c,m:l,s:a,ms:i,Q:p}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},T="en",E={};E[T]=C;var M="$isDayjsObject",A=function(D){return D instanceof w||!(!D||!D[M])},k=function D(I,O,N){var F;if(!I)return T;if(typeof I=="string"){var V=I.toLowerCase();E[V]&&(F=V),O&&(E[V]=O,F=V);var B=I.split("-");if(!F&&B.length>1)return D(B[0])}else{var R=I.name;E[R]=I,F=R}return!N&&F&&(T=F),F||!N&&T},$=function(D,I){if(A(D))return D.clone();var O=typeof I=="object"?I:{};return O.date=D,O.args=arguments,new w(O)},j=S;j.l=k,j.i=A,j.w=function(D,I){return $(D,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var w=function(){function D(O){this.$L=k(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[M]=!0}var I=D.prototype;return I.parse=function(O){this.$d=function(N){var F=N.date,V=N.utc;if(F===null)return new Date(NaN);if(j.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var B=F.match(y);if(B){var R=B[2]-1||0,Y=(B[7]||"0").substring(0,3);return V?new Date(Date.UTC(B[1],R,B[3]||1,B[4]||0,B[5]||0,B[6]||0,Y)):new Date(B[1],R,B[3]||1,B[4]||0,B[5]||0,B[6]||0,Y)}}return new Date(F)}(O),this.init()},I.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},I.$utils=function(){return j},I.isValid=function(){return this.$d.toString()!==g},I.isSame=function(O,N){var F=$(O);return this.startOf(N)<=F&&F<=this.endOf(N)},I.isAfter=function(O,N){return $(O)<this.startOf(N)},I.isBefore=function(O,N){return this.endOf(N)<$(O)},I.$g=function(O,N,F){return j.u(O)?this[N]:this.set(F,O)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(O,N){var F=this,V=!!j.u(N)||N,B=j.p(O),R=function(te,z){var H=j.w(F.$u?Date.UTC(F.$y,z,te):new Date(F.$y,z,te),F);return V?H:H.endOf(u)},Y=function(te,z){return j.w(F.toDate()[te].apply(F.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(z)),F)},G=this.$W,Z=this.$M,re=this.$D,X="set"+(this.$u?"UTC":"");switch(B){case h:return V?R(1,0):R(31,11);case f:return V?R(1,Z):R(0,Z+1);case d:var Q=this.$locale().weekStart||0,K=(G<Q?G+7:G)-Q;return R(V?re-K:re+(6-K),Z);case u:case m:return Y(X+"Hours",0);case c:return Y(X+"Minutes",1);case l:return Y(X+"Seconds",2);case a:return Y(X+"Milliseconds",3);default:return this.clone()}},I.endOf=function(O){return this.startOf(O,!1)},I.$set=function(O,N){var F,V=j.p(O),B="set"+(this.$u?"UTC":""),R=(F={},F[u]=B+"Date",F[m]=B+"Date",F[f]=B+"Month",F[h]=B+"FullYear",F[c]=B+"Hours",F[l]=B+"Minutes",F[a]=B+"Seconds",F[i]=B+"Milliseconds",F)[V],Y=V===u?this.$D+(N-this.$W):N;if(V===f||V===h){var G=this.clone().set(m,1);G.$d[R](Y),G.init(),this.$d=G.set(m,Math.min(this.$D,G.daysInMonth())).$d}else R&&this.$d[R](Y);return this.init(),this},I.set=function(O,N){return this.clone().$set(O,N)},I.get=function(O){return this[j.p(O)]()},I.add=function(O,N){var F,V=this;O=Number(O);var B=j.p(N),R=function(Z){var re=$(V);return j.w(re.date(re.date()+Math.round(Z*O)),V)};if(B===f)return this.set(f,this.$M+O);if(B===h)return this.set(h,this.$y+O);if(B===u)return R(1);if(B===d)return R(7);var Y=(F={},F[l]=o,F[c]=r,F[a]=n,F)[B]||1,G=this.$d.getTime()+O*Y;return j.w(G,this)},I.subtract=function(O,N){return this.add(-1*O,N)},I.format=function(O){var N=this,F=this.$locale();if(!this.isValid())return F.invalidDate||g;var V=O||"YYYY-MM-DDTHH:mm:ssZ",B=j.z(this),R=this.$H,Y=this.$m,G=this.$M,Z=F.weekdays,re=F.months,X=F.meridiem,Q=function(z,H,W,ee){return z&&(z[H]||z(N,V))||W[H].slice(0,ee)},K=function(z){return j.s(R%12||12,z,"0")},te=X||function(z,H,W){var ee=z<12?"AM":"PM";return W?ee.toLowerCase():ee};return V.replace(v,function(z,H){return H||function(W){switch(W){case"YY":return String(N.$y).slice(-2);case"YYYY":return j.s(N.$y,4,"0");case"M":return G+1;case"MM":return j.s(G+1,2,"0");case"MMM":return Q(F.monthsShort,G,re,3);case"MMMM":return Q(re,G);case"D":return N.$D;case"DD":return j.s(N.$D,2,"0");case"d":return String(N.$W);case"dd":return Q(F.weekdaysMin,N.$W,Z,2);case"ddd":return Q(F.weekdaysShort,N.$W,Z,3);case"dddd":return Z[N.$W];case"H":return String(R);case"HH":return j.s(R,2,"0");case"h":return K(1);case"hh":return K(2);case"a":return te(R,Y,!0);case"A":return te(R,Y,!1);case"m":return String(Y);case"mm":return j.s(Y,2,"0");case"s":return String(N.$s);case"ss":return j.s(N.$s,2,"0");case"SSS":return j.s(N.$ms,3,"0");case"Z":return B}return null}(z)||B.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(O,N,F){var V,B=this,R=j.p(N),Y=$(O),G=(Y.utcOffset()-this.utcOffset())*o,Z=this-Y,re=function(){return j.m(B,Y)};switch(R){case h:V=re()/12;break;case f:V=re();break;case p:V=re()/3;break;case d:V=(Z-G)/6048e5;break;case u:V=(Z-G)/864e5;break;case c:V=Z/r;break;case l:V=Z/o;break;case a:V=Z/n;break;default:V=Z}return F?V:j.a(V)},I.daysInMonth=function(){return this.endOf(f).$D},I.$locale=function(){return E[this.$L]},I.locale=function(O,N){if(!O)return this.$L;var F=this.clone(),V=k(O,N,!0);return V&&(F.$L=V),F},I.clone=function(){return j.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},D}(),L=w.prototype;return $.prototype=L,[["$ms",i],["$s",a],["$m",l],["$H",c],["$W",u],["$M",f],["$y",h],["$D",m]].forEach(function(D){L[D[1]]=function(I){return this.$g(I,D[0],D[1])}}),$.extend=function(D,I){return D.$i||(D(I,w,$),D.$i=!0),$},$.locale=k,$.isDayjs=A,$.unix=function(D){return $(1e3*D)},$.en=E[T],$.Ls=E,$.p={},$})})(Cv);var gL=Cv.exports;const bt=oo(gL);var Tv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(wr,function(){var n="week",o="year";return function(r,i,a){var l=i.prototype;l.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=a(this).startOf(o).add(1,o).date(u),f=a(this).endOf(n);if(d.isBefore(f))return 1}var p=a(this).startOf(o).date(u).startOf(n).subtract(1,"millisecond"),h=this.diff(p,n,!0);return h<0?a(this).startOf("week").week():Math.ceil(h)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(Tv);var yL=Tv.exports;const bL=oo(yL);var Pv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(wr,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,i=/\d\d/,a=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,c={},u=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(v){this[y]=+v}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(v){if(!v||v==="Z")return 0;var C=v.match(/([+-]|\d\d)/g),x=60*C[1]+(+C[2]||0);return x===0?0:C[0]==="+"?-x:x}(y)}],p=function(y){var v=c[y];return v&&(v.indexOf?v:v.s.concat(v.f))},h=function(y,v){var C,x=c.meridiem;if(x){for(var S=1;S<=24;S+=1)if(y.indexOf(x(S,0,v))>-1){C=S>12;break}}else C=y===(v?"pm":"PM");return C},m={A:[l,function(y){this.afternoon=h(y,!1)}],a:[l,function(y){this.afternoon=h(y,!0)}],Q:[r,function(y){this.month=3*(y-1)+1}],S:[r,function(y){this.milliseconds=100*+y}],SS:[i,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[i,d("day")],Do:[l,function(y){var v=c.ordinal,C=y.match(/\d+/);if(this.day=C[0],v)for(var x=1;x<=31;x+=1)v(x).replace(/\[|\]/g,"")===y&&(this.day=x)}],w:[a,d("week")],ww:[i,d("week")],M:[a,d("month")],MM:[i,d("month")],MMM:[l,function(y){var v=p("months"),C=(p("monthsShort")||v.map(function(x){return x.slice(0,3)})).indexOf(y)+1;if(C<1)throw new Error;this.month=C%12||C}],MMMM:[l,function(y){var v=p("months").indexOf(y)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(y){this.year=u(y)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function g(y){var v,C;v=y,C=c&&c.formats;for(var x=(y=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,j,w){var L=w&&w.toUpperCase();return j||C[w]||n[w]||C[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(D,I,O){return I||O.slice(1)})})).match(o),S=x.length,T=0;T<S;T+=1){var E=x[T],M=m[E],A=M&&M[0],k=M&&M[1];x[T]=k?{regex:A,parser:k}:E.replace(/^\[|\]$/g,"")}return function($){for(var j={},w=0,L=0;w<S;w+=1){var D=x[w];if(typeof D=="string")L+=D.length;else{var I=D.regex,O=D.parser,N=$.slice(L),F=I.exec(N)[0];O.call(j,F),$=$.replace(F,"")}}return function(V){var B=V.afternoon;if(B!==void 0){var R=V.hours;B?R<12&&(V.hours+=12):R===12&&(V.hours=0),delete V.afternoon}}(j),j}}return function(y,v,C){C.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(u=y.parseTwoDigitYear);var x=v.prototype,S=x.parse;x.parse=function(T){var E=T.date,M=T.utc,A=T.args;this.$u=M;var k=A[1];if(typeof k=="string"){var $=A[2]===!0,j=A[3]===!0,w=$||j,L=A[2];j&&(L=A[2]),c=this.$locale(),!$&&L&&(c=C.Ls[L]),this.$d=function(N,F,V,B){try{if(["x","X"].indexOf(F)>-1)return new Date((F==="X"?1e3:1)*N);var R=g(F)(N),Y=R.year,G=R.month,Z=R.day,re=R.hours,X=R.minutes,Q=R.seconds,K=R.milliseconds,te=R.zone,z=R.week,H=new Date,W=Z||(Y||G?1:H.getDate()),ee=Y||H.getFullYear(),J=0;Y&&!G||(J=G>0?G-1:H.getMonth());var ie,ne=re||0,de=X||0,se=Q||0,ue=K||0;return te?new Date(Date.UTC(ee,J,W,ne,de,se,ue+60*te.offset*1e3)):V?new Date(Date.UTC(ee,J,W,ne,de,se,ue)):(ie=new Date(ee,J,W,ne,de,se,ue),z&&(ie=B(ie).week(z).toDate()),ie)}catch{return new Date("")}}(E,k,M,C),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),w&&E!=this.format(k)&&(this.$d=new Date("")),c={}}else if(k instanceof Array)for(var D=k.length,I=1;I<=D;I+=1){A[1]=k[I-1];var O=C.apply(this,A);if(O.isValid()){this.$d=O.$d,this.$L=O.$L,this.init();break}I===D&&(this.$d=new Date(""))}else S.call(this,T)}}})})(Pv);var vL=Pv.exports;const xL=oo(vL);var Ev={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(wr,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(o,r,i){var a=r.prototype,l=a.format;i.en.formats=n,a.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=function(f,p){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(h,m,g){var y=g&&g.toUpperCase();return m||p[g]||n[g]||p[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,C,x){return C||x.slice(1)})})}(c,u===void 0?{}:u);return l.call(this,d)}}})})(Ev);var SL=Ev.exports;const wL=oo(SL);var Mv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(wr,function(){return function(n,o,r){o.prototype.isBetween=function(i,a,l,c){var u=r(i),d=r(a),f=(c=c||"()")[0]==="(",p=c[1]===")";return(f?this.isAfter(u,l):!this.isBefore(u,l))&&(p?this.isBefore(d,l):!this.isAfter(d,l))||(f?this.isBefore(u,l):!this.isAfter(u,l))&&(p?this.isAfter(d,l):!this.isBefore(d,l))}}})})(Mv);var CL=Mv.exports;const TL=oo(CL);var Ov={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(wr,function(){return function(n,o){var r=o.prototype,i=r.format;r.format=function(a){var l=this,c=this.$locale();if(!this.isValid())return i.bind(this)(a);var u=this.$utils(),d=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),f==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return f}});return i.bind(this)(d)}}})})(Ov);var PL=Ov.exports;const EL=oo(PL);bt.extend(wL);bt.extend(bL);bt.extend(TL);bt.extend(EL);const ML={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},OL={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Cl=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
243
243
  `),_h=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
244
- `);class IL{constructor({locale:t,formats:n}={}){pe(this,"isMUIAdapter",!0);pe(this,"isTimezoneCompatible",!0);pe(this,"lib","dayjs");pe(this,"escapedCharacters",{start:"[",end:"]"});pe(this,"formatTokenMap",DL);pe(this,"setLocaleToValue",t=>{const n=this.getCurrentLocaleCode();return n===t.locale()?t:t.locale(n)});pe(this,"hasUTCPlugin",()=>typeof bt.utc<"u");pe(this,"hasTimezonePlugin",()=>typeof bt.tz<"u");pe(this,"isSame",(t,n,o)=>{const r=this.setTimezone(n,this.getTimezone(t));return t.format(o)===r.format(o)});pe(this,"cleanTimezone",t=>{switch(t){case"default":return;case"system":return bt.tz.guess();default:return t}});pe(this,"createSystemDate",t=>{let n;if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=bt.tz.guess();o==="UTC"?n=bt(t):n=bt.tz(t,o)}else n=bt(t);return this.setLocaleToValue(n)});pe(this,"createUTCDate",t=>{if(!this.hasUTCPlugin())throw new Error(Sl);return this.setLocaleToValue(bt.utc(t))});pe(this,"createTZDate",(t,n)=>{if(!this.hasUTCPlugin())throw new Error(Sl);if(!this.hasTimezonePlugin())throw new Error(_h);const o=t!==void 0&&!t.endsWith("Z");return this.setLocaleToValue(bt(t).tz(this.cleanTimezone(n),o))});pe(this,"getLocaleFormats",()=>{const t=bt.Ls,n=this.locale||"en";let o=t[n];return o===void 0&&(process.env.NODE_ENV!=="production"&&Cb(["MUI X: Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale."]),o=t.en),o.formats});pe(this,"adjustOffset",t=>{if(!this.hasTimezonePlugin())return t;const n=this.getTimezone(t);if(n!=="UTC"){const o=t.tz(this.cleanTimezone(n),!0);if(o.$offset===(t.$offset??0))return t;t.$offset=o.$offset}return t});pe(this,"date",(t,n="default")=>t===null?null:n==="UTC"?this.createUTCDate(t):n==="system"||n==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(t):this.createTZDate(t,n));pe(this,"getInvalidDate",()=>bt(new Date("Invalid date")));pe(this,"getTimezone",t=>{var n;if(this.hasTimezonePlugin()){const o=(n=t.$x)==null?void 0:n.$timezone;if(o)return o}return this.hasUTCPlugin()&&t.isUTC()?"UTC":"system"});pe(this,"setTimezone",(t,n)=>{if(this.getTimezone(t)===n)return t;if(n==="UTC"){if(!this.hasUTCPlugin())throw new Error(Sl);return t.utc()}if(n==="system")return t.local();if(!this.hasTimezonePlugin()){if(n==="default")return t;throw new Error(_h)}return this.setLocaleToValue(bt.tz(t,this.cleanTimezone(n)))});pe(this,"toJsDate",t=>t.toDate());pe(this,"parse",(t,n)=>t===""?null:bt(t,n,this.locale,!0));pe(this,"getCurrentLocaleCode",()=>this.locale||"en");pe(this,"is12HourCycleInCurrentLocale",()=>/A|a/.test(this.getLocaleFormats().LT||""));pe(this,"expandFormat",t=>{const n=this.getLocaleFormats(),o=r=>r.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(i,a,l)=>a||l.slice(1));return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(r,i,a)=>{const l=a&&a.toUpperCase();return i||n[a]||o(n[l])})});pe(this,"isValid",t=>t==null?!1:t.isValid());pe(this,"format",(t,n)=>this.formatByString(t,this.formats[n]));pe(this,"formatByString",(t,n)=>this.setLocaleToValue(t).format(n));pe(this,"formatNumber",t=>t);pe(this,"isEqual",(t,n)=>t===null&&n===null?!0:t===null||n===null?!1:t.toDate().getTime()===n.toDate().getTime());pe(this,"isSameYear",(t,n)=>this.isSame(t,n,"YYYY"));pe(this,"isSameMonth",(t,n)=>this.isSame(t,n,"YYYY-MM"));pe(this,"isSameDay",(t,n)=>this.isSame(t,n,"YYYY-MM-DD"));pe(this,"isSameHour",(t,n)=>t.isSame(n,"hour"));pe(this,"isAfter",(t,n)=>t>n);pe(this,"isAfterYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()>n.utc():t.isAfter(n,"year"));pe(this,"isAfterDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()>n.utc():t.isAfter(n,"day"));pe(this,"isBefore",(t,n)=>t<n);pe(this,"isBeforeYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()<n.utc():t.isBefore(n,"year"));pe(this,"isBeforeDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()<n.utc():t.isBefore(n,"day"));pe(this,"isWithinRange",(t,[n,o])=>t>=n&&t<=o);pe(this,"startOfYear",t=>this.adjustOffset(t.startOf("year")));pe(this,"startOfMonth",t=>this.adjustOffset(t.startOf("month")));pe(this,"startOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).startOf("week")));pe(this,"startOfDay",t=>this.adjustOffset(t.startOf("day")));pe(this,"endOfYear",t=>this.adjustOffset(t.endOf("year")));pe(this,"endOfMonth",t=>this.adjustOffset(t.endOf("month")));pe(this,"endOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).endOf("week")));pe(this,"endOfDay",t=>this.adjustOffset(t.endOf("day")));pe(this,"addYears",(t,n)=>this.adjustOffset(t.add(n,"year")));pe(this,"addMonths",(t,n)=>this.adjustOffset(t.add(n,"month")));pe(this,"addWeeks",(t,n)=>this.adjustOffset(t.add(n,"week")));pe(this,"addDays",(t,n)=>this.adjustOffset(t.add(n,"day")));pe(this,"addHours",(t,n)=>this.adjustOffset(t.add(n,"hour")));pe(this,"addMinutes",(t,n)=>this.adjustOffset(t.add(n,"minute")));pe(this,"addSeconds",(t,n)=>this.adjustOffset(t.add(n,"second")));pe(this,"getYear",t=>t.year());pe(this,"getMonth",t=>t.month());pe(this,"getDate",t=>t.date());pe(this,"getHours",t=>t.hour());pe(this,"getMinutes",t=>t.minute());pe(this,"getSeconds",t=>t.second());pe(this,"getMilliseconds",t=>t.millisecond());pe(this,"setYear",(t,n)=>this.adjustOffset(t.set("year",n)));pe(this,"setMonth",(t,n)=>this.adjustOffset(t.set("month",n)));pe(this,"setDate",(t,n)=>this.adjustOffset(t.set("date",n)));pe(this,"setHours",(t,n)=>this.adjustOffset(t.set("hour",n)));pe(this,"setMinutes",(t,n)=>this.adjustOffset(t.set("minute",n)));pe(this,"setSeconds",(t,n)=>this.adjustOffset(t.set("second",n)));pe(this,"setMilliseconds",(t,n)=>this.adjustOffset(t.set("millisecond",n)));pe(this,"getDaysInMonth",t=>t.daysInMonth());pe(this,"getWeekArray",t=>{const n=this.startOfWeek(this.startOfMonth(t)),o=this.endOfWeek(this.endOfMonth(t));let r=0,i=n;const a=[];for(;i<o;){const l=Math.floor(r/7);a[l]=a[l]||[],a[l].push(i),i=this.addDays(i,1),r+=1}return a});pe(this,"getWeekNumber",t=>t.week());pe(this,"getYearRange",([t,n])=>{const o=this.startOfYear(t),r=this.endOfYear(n),i=[];let a=o;for(;this.isBefore(a,r);)i.push(a),a=this.addYears(a,1);return i});this.locale=t,this.formats=U({},RL,n),bt.extend(wL)}getDayOfWeek(t){return t.day()+1}}const AL="_root_1dntq_1",NL="_container_1dntq_72",_L="_header_1dntq_83",jL="_headerText_1dntq_91",LL="_headerTitle_1dntq_97",$L="_headerSubtitle_1dntq_102",VL="_controls_1dntq_106",FL="_headerButton_1dntq_113",BL="_zoomGroup_1dntq_133",zL="_zoomLabel_1dntq_144",WL="_tracksWrapper_1dntq_153",UL="_tracksWithHeader_1dntq_158",HL="_layers_1dntq_162",YL="_timeScale_1dntq_168",qL="_videoTrack_1dntq_172",GL="_eventsTrack_1dntq_176",KL="_trackBox_1dntq_180",ZL="_trackLabelRow_1dntq_190",XL="_label_1dntq_198",QL="_trackArea_1dntq_209",JL="_tick_1dntq_215",e$="_tickMajor_1dntq_223",t$="_tickMinor_1dntq_227",n$="_tickLabel_1dntq_231",o$="_segment_1dntq_243",r$="_event_1dntq_176",s$="_eventDot_1dntq_276",i$="_selectionOverlay_1dntq_283",a$="_playhead_1dntq_292",l$="_playheadLine_1dntq_302",c$="_playheadHandle_1dntq_312",Re={root:AL,container:NL,header:_L,headerText:jL,headerTitle:LL,headerSubtitle:$L,controls:VL,headerButton:FL,zoomGroup:BL,zoomLabel:zL,tracksWrapper:WL,tracksWithHeader:UL,layers:HL,timeScale:YL,videoTrack:qL,eventsTrack:GL,trackBox:KL,trackLabelRow:ZL,label:XL,trackArea:QL,tick:JL,tickMajor:e$,tickMinor:t$,tickLabel:n$,segment:o$,event:r$,eventDot:s$,selectionOverlay:i$,playhead:a$,playheadLine:l$,playheadHandle:c$};function rt(e,t,n){return Math.min(n,Math.max(t,e))}function Nn(e){const{time:t,windowStart:n,windowSeconds:o,width:r}=e;return r<=0||o<=0?0:(t-n)/o*r}function Jo(e){const{px:t,windowStart:n,windowSeconds:o,width:r}=e;return r<=0||o<=0?n:n+t/r*o}function st(e){return String(Math.floor(e)).padStart(2,"0")}function u$(e){return String(Math.floor(e)).padStart(4,"0")}function jh(e,t){const n=Math.max(0,e),o=Math.floor(n/3600)%24,r=Math.floor(n%3600/60),i=Math.floor(n%60);return`${u$(t.getFullYear())}${st(t.getMonth()+1)}${st(t.getDate())}T${st(o)}${st(r)}${st(i)}Z`}function d$(e=Date.now()){const t=new Date(e);return t.getHours()*3600+t.getMinutes()*60+t.getSeconds()+t.getMilliseconds()/1e3}function Cl(e){const t=Math.max(0,e),n=Math.floor(t/3600)%24,o=Math.floor(t%3600/60),r=Math.floor(t%60);return`${st(n)}:${st(o)}:${st(r)}`}function f$(e,t){const n=Math.max(0,e),o=Math.floor(n/3600)%24,r=Math.floor(n%3600/60),i=Math.floor(n%60),a=n-Math.floor(n),l=Math.floor(a*t);return`${st(o)}:${st(r)}:${st(i)}:${st(l)}`}function wl(e){const t=Math.max(0,e),n=Math.floor(t/3600),o=Math.floor(t%3600/60),r=Math.floor(t%60);return n>0?`${st(n)}:${st(o)}:${st(r)}`:`${st(o)}:${st(r)}`}function p$(e,t){const n=Math.max(0,e),o=Math.floor(n/3600),r=Math.floor(n%3600/60),i=Math.floor(n%60),a=n-Math.floor(n),l=Math.floor(a*t);return o>0?`${st(o)}:${st(r)}:${st(i)}:${st(l)}`:`${st(r)}:${st(i)}:${st(l)}`}function h$(e){const{width:t,windowSeconds:n,fps:o}=e,r=t>0?t/n:0,i=1/Math.max(1,o),a=[i,2*i,5*i,.25,.5,1,2,5,10,15,30,60,2*60,5*60,10*60,15*60,30*60,60*60,2*60*60,3*60*60,6*60*60],l=90,c=45;let u=a[a.length-1];for(const p of a)if(p*r>=l){u=p;break}const d=[u/2,u/5,u/10].filter(p=>p>0);let f=d[0]??u;for(const p of d)if(p*r>=c){f=p;break}return{majorStep:u,minorStep:f}}const m$=(e,t,n)=>t>=3600?Cl(e).slice(0,2)+":00:00":t>=60?Cl(e).slice(0,5):t>=1?Cl(e):f$(e,n),g$=(e,t,n)=>t>=3600||t>=60||t>=1?wl(e):p$(e,n);function y$(){const e=A.useRef(null),[t,n]=A.useState(0);return A.useLayoutEffect(()=>{const o=e.current;if(!o)return;const r=new ResizeObserver(()=>{n(o.getBoundingClientRect().width)});return r.observe(o),n(o.getBoundingClientRect().width),()=>r.disconnect()},[]),{ref:e,width:t}}function b$(e){const{totalSeconds:t,enableWheelZoom:n,autoZoomOnSelection:o,tickLabelFormatter:r,clearSelectionOnEventClick:i,date:a,onChangePeriod:l,segments:c,events:u,fps:d=30}=e,[f,p]=A.useState(0),[h,m]=A.useState(!1),[g,y]=A.useState(null),[v,w]=A.useState({windowSeconds:t,fps:d}),{ref:x,width:S}=y$(),T=102,M=Math.max(0,S-T-10),[_,D]=A.useState(0),$=A.useMemo(()=>{const z=Math.max(1/Math.max(1,v.fps),.05);return rt(v.windowSeconds,z,t)},[v.windowSeconds,v.fps,t]);A.useEffect(()=>{if(!h||S<=0)return;const z=rt(f-$*.9,0,Math.max(0,t-$));D(z)},[f,h,S,$,t]);const j=A.useMemo(()=>{const z=rt(_,0,Math.max(0,t-$)),H=z+$;return{start:z,end:H,seconds:$}},[_,t,$]),C=A.useMemo(()=>{if(M<=0)return[];const{majorStep:z,minorStep:H}=h$({width:M,windowSeconds:j.seconds,fps:v.fps}),W=Math.floor(j.start/H)*H,ee=j.end,J=[],ie=H*1e-6;for(let ne=W;ne<=ee+ie;ne+=H){const de=Nn({time:ne,windowStart:j.start,windowSeconds:j.seconds,width:M});if(de<-1||de>M+1)continue;const se=Math.abs(ne/z-Math.round(ne/z))<1e-6;J.push({time:ne,px:de,kind:se?"major":"minor",label:se?r(ne,z,v.fps):void 0})}return J},[M,r,j.end,j.seconds,j.start,v.fps]),L=A.useRef(l);L.current=l;const k=A.useRef(a);k.current=a;const I=A.useCallback((z,H)=>{const W=L.current;if(!W)return;const ee=k.current;W({startDate:jh(z,ee),endDate:jh(H,ee)})},[]),O=A.useRef(null),N=A.useRef(null),F=z=>{N.current=z,O.current==null&&(O.current=requestAnimationFrame(()=>{O.current=null;const H=N.current;N.current=null,H==null||H()}))};A.useEffect(()=>()=>{O.current!=null&&cancelAnimationFrame(O.current)},[]);const V=A.useRef(null),B=z=>{const H=x.current;if(!H)return 0;const W=H.getBoundingClientRect();return rt(z-W.left-T,0,M)};return{viewportRef:x,width:S,axisLeft:T,axisWidth:M,totalSeconds:t,zoom:v,setZoom:w,isLive:h,setIsLive:m,currentTime:f,selectedRange:g,setSelectedRange:y,videoSegments:c,events:u,view:j,ticks:C,onWheel:z=>{if(!n||S<=0)return;z.preventDefault(),m(!1);const H=B(z.clientX),W=rt(Jo({px:H,windowStart:j.start,windowSeconds:j.seconds,width:M}),0,t),J=z.deltaY<0?.8:1.25,ie=rt(j.seconds*J,Math.max(1/Math.max(1,v.fps),.05),t),ne=rt(W-H/Math.max(1,M)*ie,0,Math.max(0,t-ie));w(de=>({...de,windowSeconds:ie})),D(ne)},onPointerDownScrub:z=>{if(z.button!==0)return;const H=x.current;if(!H)return;H.setPointerCapture(z.pointerId);const W=B(z.clientX),ee=rt(Jo({px:W,windowStart:j.start,windowSeconds:j.seconds,width:M}),0,t);m(!1),V.current={mode:"playhead",pointerId:z.pointerId,startPx:W,startTime:ee},p(ee)},onPointerDownSelect:z=>{if(z.button!==0)return;const H=x.current;if(!H)return;H.setPointerCapture(z.pointerId);const W=B(z.clientX),ee=rt(Jo({px:W,windowStart:j.start,windowSeconds:j.seconds,width:M}),0,t);m(!1),V.current={mode:"select",pointerId:z.pointerId,startPx:W,startTime:ee},y({start:ee,end:ee})},onPointerDownPlayhead:z=>{if(z.button!==0)return;const H=x.current;if(!H)return;H.setPointerCapture(z.pointerId);const W=B(z.clientX),ee=rt(Jo({px:W,windowStart:j.start,windowSeconds:j.seconds,width:M}),0,t);m(!1),V.current={mode:"playhead",pointerId:z.pointerId,startPx:W,startTime:ee},p(ee)},onPointerMove:z=>{const H=V.current;if(!H||H.pointerId!==z.pointerId)return;const W=B(z.clientX);F(()=>{const ee=rt(Jo({px:W,windowStart:j.start,windowSeconds:j.seconds,width:M}),0,t);if(H.mode==="playhead")p(ee);else{const J=Math.min(H.startTime,ee),ie=Math.max(H.startTime,ee);y({start:J,end:ie})}})},onPointerUp:z=>{const H=V.current;if(!(!H||H.pointerId!==z.pointerId)&&(V.current=null,H.mode==="select"&&g)){const W=Math.abs(g.end-g.start);if(W<Math.max(1/Math.max(1,v.fps),.1))y(null);else if(I(g.start,g.end),o){const ee=rt(W*1.05,Math.max(1/Math.max(1,v.fps),.05),t),J=rt(g.start,0,Math.max(0,t-ee));w(ie=>({...ie,windowSeconds:ee})),D(J)}}},onClickSegment:(z,H)=>{m(!1);const W=rt(z,0,t);p(W),I(H.start,H.end)},onClickEvent:z=>{i&&y(null),m(!1);const H=rt(z,0,t);p(H),I(H,H),D(rt(z-j.seconds/2,0,Math.max(0,t-j.seconds)))},resetView:()=>{m(!1),w(z=>({...z,windowSeconds:t})),D(0)}}}const kv=({ticks:e})=>b.jsx("div",{className:Re.trackArea,children:e.map(t=>b.jsxs("div",{children:[b.jsx("div",{className:`${Re.tick} ${t.kind==="minor"?Re.tickMinor:Re.tickMajor}`.trim(),style:{left:`${t.px}px`}}),t.kind==="major"&&t.label?b.jsx("div",{className:Re.tickLabel,style:{left:`${t.px}px`},children:t.label}):null]},`${t.time}-${t.kind}`))});kv.displayName="TimeScale";const Dv=({segments:e,viewStart:t,viewSeconds:n,width:o,totalSeconds:r,onClickSegment:i})=>{const a=e.map(c=>({original:c,start:rt(c.start,0,r),end:rt(c.end,0,r)})).filter(c=>c.end>c.start).map(c=>({original:c.original,start:Math.max(c.start,t),end:Math.min(c.end,t+n)})).filter(c=>c.end>c.start),l=(c,u)=>{if(!i)return;c.stopPropagation();const d=c.currentTarget.getBoundingClientRect(),f=c.clientX-d.left,h=Nn({time:u.start,windowStart:t,windowSeconds:n,width:o})+f,m=rt(Jo({px:h,windowStart:t,windowSeconds:n,width:o}),u.original.start,u.original.end);i(m,u.original)};return b.jsx("div",{className:Re.trackArea,children:a.map((c,u)=>{const d=Nn({time:c.start,windowStart:t,windowSeconds:n,width:o}),f=Nn({time:c.end,windowStart:t,windowSeconds:n,width:o}),p=Math.max(0,f-d);return b.jsx("div",{className:Re.segment,style:{left:`${d}px`,width:`${p}px`},onClick:i?h=>l(h,c):void 0,onPointerDown:i?h=>h.stopPropagation():void 0,role:i?"button":void 0,tabIndex:i?0:void 0,"aria-label":i?`Segmento ${c.original.start.toFixed(0)}s → ${c.original.end.toFixed(0)}s`:void 0,"aria-hidden":!i},`${c.start}-${c.end}-${u}`)})})};Dv.displayName="VideoTrack";const Rv=({events:e,viewStart:t,viewSeconds:n,width:o,totalSeconds:r,onClickEvent:i})=>{const a=e.map(l=>({...l,time:rt(l.time,0,r)})).filter(l=>l.time>=t&&l.time<=t+n);return b.jsx("div",{className:Re.trackArea,children:a.map(l=>{const c=Nn({time:l.time,windowStart:t,windowSeconds:n,width:o});return b.jsx("button",{type:"button",className:Re.event,onPointerDown:u=>{u.stopPropagation()},onClick:()=>i(l.time,l),style:{left:`${c}px`},"aria-label":`Evento em ${l.time.toFixed(2)}s`,children:l.icon?l.icon:b.jsx("span",{className:Re.eventDot})},l.id)})})};Rv.displayName="EventsTrack";const Iv=({className:e,sx:t,title:n="Timeline",subtitle:o="Arraste para aplicar zoom no período desejado",showHeader:r=!0,timeScaleMode:i="day24h",tickLabelFormatter:a,totalSeconds:l=24*60*60,enableWheelZoom:c=!1,height:u=190,autoZoomOnSelection:d=!0,showZoomControls:f=!0,enableScrubOnTracks:p=!1,clearSelectionOnEventClick:h=!0,onDownloadClick:m,date:g,onDateChange:y,videoLabel:v="Vídeo",eventsLabel:w="Eventos",downloadLabel:x="Baixar vídeo",onChangePeriod:S,onSegmentClick:T,onEventClick:E,segments:M,events:_,...D})=>{const j=ae.useTheme().palette.mode==="dark",[C,L]=A.useState(!1),k=a??(i==="duration"?g$:m$),{viewportRef:I,axisLeft:O,axisWidth:N,zoom:F,currentTime:V,selectedRange:B,videoSegments:R,events:Y,view:G,ticks:Z,onWheel:re,onPointerDownScrub:X,onPointerDownSelect:Q,onPointerDownPlayhead:K,onPointerMove:te,onPointerUp:z,onClickSegment:H,onClickEvent:W,setZoom:ee}=b$({totalSeconds:l,enableWheelZoom:c,autoZoomOnSelection:d,tickLabelFormatter:k,clearSelectionOnEventClick:h,date:g??new Date,onChangePeriod:S,segments:M??[],events:_??[]}),J=N?O+Nn({time:V,windowStart:G.start,windowSeconds:G.seconds,width:N}):O,ie=Math.max(1/Math.max(1,F.fps),.5),ne=ie/l,de=(()=>{const le=rt(G.seconds,ie,l);if(ne<=0||ne>=1)return 0;const fe=Math.log(le/l)/Math.log(ne)*100;return rt(fe,0,100)})(),se=le=>{const fe=rt(le,0,100),me=l*Math.pow(ne,fe/100);ee(Ie=>({...Ie,windowSeconds:rt(me,ie,l)}))},ue=`${Math.round(de)}%`;return b.jsxs(q.Box,{className:`${Re.root} ${Re.container} ${e??""}`.trim(),"data-theme":j?"dark":"light",sx:t,...D,children:[r?b.jsxs("div",{className:Re.header,children:[b.jsxs("div",{className:Re.headerText,children:[b.jsx(q.Typography,{variant:"subtitle1",className:Re.headerTitle,children:n}),b.jsx(q.Typography,{variant:"body2",className:Re.headerSubtitle,children:o})]}),b.jsxs("div",{className:Re.controls,children:[m?b.jsxs("button",{type:"button",className:Re.headerButton,onClick:m,"aria-label":x,children:[b.jsx(Pk,{fontSize:"small"}),x]}):null,g!==void 0?b.jsx(fa,{dateAdapter:IL,children:b.jsx(md,{open:C,onOpen:()=>L(!0),onClose:()=>L(!1),value:bt(g),onChange:le=>{le&&y&&y(le.toDate())},format:"DD/MM/YYYY",slots:{field:()=>b.jsxs("button",{type:"button",className:Re.headerButton,onClick:()=>L(!0),"aria-label":"Selecionar data",children:[b.jsx(Ek,{fontSize:"small"}),bt(g).format("DD/MM/YYYY")]})}})}):null,f?b.jsxs(q.Box,{className:Re.zoomGroup,"aria-label":"Zoom controls",children:[b.jsx(q.IconButton,{size:"small","aria-label":"Zoom out",onClick:()=>se(de-10),children:b.jsx(Tk,{fontSize:"small"})}),b.jsx("span",{className:Re.zoomLabel,children:ue}),b.jsx(q.IconButton,{size:"small","aria-label":"Zoom in",onClick:()=>se(de+10),children:b.jsx(wk,{fontSize:"small"})})]}):null]})]}):null,b.jsx(q.Box,{className:`${Re.tracksWrapper} ${r?Re.tracksWithHeader:""}`.trim(),style:{height:u},children:b.jsxs("div",{ref:I,className:Re.layers,onWheel:re,onPointerMove:te,onPointerUp:z,children:[b.jsxs("div",{className:Re.playhead,style:{left:`${J}px`},onPointerDown:K,role:"slider","aria-label":"Playhead","aria-valuemin":0,"aria-valuemax":l,"aria-valuenow":V,tabIndex:0,children:[b.jsx("div",{className:Re.playheadHandle}),b.jsx("div",{className:Re.playheadLine})]}),b.jsxs("div",{className:`${Re.trackLabelRow} ${Re.timeScale}`.trim(),children:[b.jsx("div",{}),b.jsx("div",{onPointerDown:X,style:{height:"100%",cursor:"ew-resize"},"aria-label":"Régua do tempo",children:b.jsx(kv,{ticks:Z})})]}),b.jsxs(q.Box,{className:Re.trackBox,onPointerDown:Q,children:[B?b.jsx("div",{className:Re.selectionOverlay,style:{left:`${O+Nn({time:B.start,windowStart:G.start,windowSeconds:G.seconds,width:N})}px`,width:`${Math.max(0,Nn({time:B.end,windowStart:G.start,windowSeconds:G.seconds,width:N})-Nn({time:B.start,windowStart:G.start,windowSeconds:G.seconds,width:N}))}px`}}):null,b.jsxs("div",{className:`${Re.trackLabelRow} ${Re.videoTrack}`.trim(),children:[b.jsx("div",{className:Re.label,children:v}),b.jsx("div",{onPointerDown:p?X:void 0,style:{height:"100%"},children:b.jsx(Dv,{segments:R,viewStart:G.start,viewSeconds:G.seconds,width:N,totalSeconds:l,onClickSegment:(le,fe)=>{H(le,fe),T==null||T(le,fe)}})})]}),b.jsxs("div",{className:`${Re.trackLabelRow} ${Re.eventsTrack}`.trim(),children:[b.jsx("div",{className:Re.label,children:w}),b.jsx("div",{onPointerDown:p?X:void 0,style:{height:"100%"},children:b.jsx(Rv,{events:Y,viewStart:G.start,viewSeconds:G.seconds,width:N,totalSeconds:l,onClickEvent:(le,fe)=>{W(le),E==null||E(le,fe)}})})]})]})]})})]})};Iv.displayName="VideoTimeline";const v$=({isStream:e,updateTimeForLiveStream:t,constrainToSelectedRange:n,loopSelection:o,liveThresholdSeconds:r})=>{const i=vu(),[a,l]=Li(Dy),[c,u]=Li(Ry),d=ky(HO),f=A.useRef(-1);return A.useEffect(()=>{if(!e||(u(!0),!t))return;let p=null,h=!0;const m=()=>{h&&(l(d$()),p=requestAnimationFrame(m))};return p=requestAnimationFrame(m),()=>{h=!1,p!=null&&cancelAnimationFrame(p)}},[e,l,u,t]),A.useEffect(()=>{if(!i||e)return;const p=i.videoRef.current;if(!p)return;const h=()=>{if(n&&d){const y=Math.max(0,d.start),v=Math.max(y,d.end);p.currentTime<y?p.currentTime=y:p.currentTime>v&&(o?p.currentTime=y:(p.pause(),p.currentTime=v))}if(l(p.currentTime),Number.isFinite(p.duration)&&p.duration>0){const y=p.duration-p.currentTime<=r;u(y)}},m=()=>{if(!n||!d)return;const y=Math.max(0,d.start),v=Math.max(y,d.end);(p.currentTime<y||p.currentTime>v)&&(p.currentTime=y)},g=()=>{c&&Number.isFinite(p.duration)&&p.duration>0&&(p.currentTime=p.duration)};return p.addEventListener("timeupdate",h),p.addEventListener("play",m),p.addEventListener("loadedmetadata",g),()=>{p.removeEventListener("timeupdate",h),p.removeEventListener("play",m),p.removeEventListener("loadedmetadata",g)}},[n,e,c,r,o,d,l,u,i]),A.useEffect(()=>{if(!i||e)return;const p=i.videoRef.current;if(!p)return;if(c){if(Number.isFinite(p.duration)&&p.duration>0){const m=p.duration;Math.abs(p.currentTime-m)>.25&&(p.currentTime=m,f.current=m)}return}if(Math.abs(f.current-a)<.05)return;let h=a;if(n&&d){const m=Math.max(0,d.start),g=Math.max(m,d.end);h=Math.min(g,Math.max(m,h))}Math.abs(p.currentTime-h)>.25&&(p.currentTime=h,f.current=a)},[n,a,c,e,d,i]),A.useEffect(()=>{if(!i||e)return;const p=i.videoRef.current;if(!p||!n||!d)return;const h=Math.max(0,d.start),m=!p.paused;p.currentTime=h,f.current=h,u(!1),l(h),m&&p.play().catch(()=>{})},[n,e,d,l,u,i]),null},Av=({stream:e=null,src:t,autoPlay:n=!0,muted:o=!0,playsInline:r=!0,className:i,updateTimeForLiveStream:a=!0,constrainToSelectedRange:l=!0,loopSelection:c=!1,availableQualities:u,initialQuality:d,onQualityChange:f,poster:p,sx:h,liveThresholdSeconds:m=2,allowPlaybackRateForStream:g,playbackRates:y,zoomLevels:v,width:w,height:x,aspectRatio:S,showTimestamp:T,showTimeline:E,isRecording:M,recordingLabel:_,borderRadius:D,loading:$,unavailable:j,unavailableIcon:C,unavailableMessage:L})=>{const k=!!e,I=u??(t?[{value:"default",label:"Auto",src:t}]:[]);return b.jsxs(Iy,{children:[b.jsx(xu,{stream:e,availableQualities:I,initialQuality:d??(t&&!u?"default":void 0),onQualityChange:f,autoPlay:n,muted:o,playsInline:r,poster:p,className:i,sx:h,liveThresholdSeconds:m,allowPlaybackRateForStream:g,playbackRates:y,zoomLevels:v,width:w,height:x,aspectRatio:S,showTimestamp:T,showTimeline:E,isRecording:M,recordingLabel:_,borderRadius:D,loading:$,unavailable:j,unavailableIcon:C,unavailableMessage:L}),b.jsx(v$,{isStream:k,updateTimeForLiveStream:a,constrainToSelectedRange:l,loopSelection:c,liveThresholdSeconds:m})]})};Av.displayName="VideoPlayerWebRTC";const x$=gt(b.jsx("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done"),S$="_container_1vjy6_1",C$="_segment_1vjy6_7",w$="_selected_1vjy6_20",T$="_label_1vjy6_28",P$="_icon_1vjy6_37",E$="_checkIcon_1vjy6_47",M$="_unselected_1vjy6_53",Co={container:S$,segment:C$,selected:w$,label:T$,icon:P$,checkIcon:E$,unselected:M$},Nv=({items:e,className:t,sx:n,...o})=>{const i=q.useTheme().palette.mode==="dark",a=(l,c)=>{l.onClick?l.onClick(c):console.log(`Item "${l.label}" clicado`)};return b.jsx(q.Box,{className:`${Co.container} ${t||""}`,sx:n,"data-theme":i?"dark":"light",...o,children:e.map((l,c)=>b.jsxs(q.Box,{className:`${Co.segment} ${l.selected?Co.selected:Co.unselected}`,onClick:u=>a(l,u),children:[l.selected&&b.jsx(q.Box,{className:Co.icon,children:b.jsx(x$,{className:Co.checkIcon})}),b.jsx(q.Box,{className:Co.label,children:l.label})]},c))})};Nv.displayName="DisplayTypes";const O$=600,Tl=[.32,.72,0,1],Pl=400,_v=({leftContent:e,rightContent:t,gap:n=2,leftRatio:o=.5,leftCollapsed:r=!1,mobileShowOnly:i="both",mobileBreakpointPx:a=O$,className:l,sx:c})=>{const u=q.useTheme(),d=q.useMediaQuery(`(max-width:${a}px)`),f=!d||i==="left"||i==="both",p=!d||i==="right"||i==="both",h=u.spacing(n),m=`flex ${Pl}ms cubic-bezier(${Tl.join(",")}), min-width ${Pl}ms cubic-bezier(${Tl.join(",")})`;if(d&&i!=="both")return b.jsxs(q.Box,{className:l,sx:{display:"grid",gridTemplateColumns:"1fr",width:"100%",height:"100%",minHeight:0,overflow:"hidden",...c},children:[b.jsx(q.Box,{sx:{minWidth:0,minHeight:0,overflow:"hidden",display:f?"flex":"none",flexDirection:"column"},children:e}),b.jsx(q.Box,{sx:{minWidth:0,minHeight:0,overflow:"hidden",display:p?"flex":"none",flexDirection:"column"},children:t})]});const g=r?0:o,y=r?0:void 0,v=r?"none":"auto";return b.jsxs(q.Box,{className:l,sx:{display:"flex",flexDirection:"row",gap:r?0:h,width:"100%",height:"100%",minHeight:0,overflow:"hidden",transition:`gap ${Pl}ms cubic-bezier(${Tl.join(",")})`,...c},children:[b.jsx(q.Box,{sx:{flex:g,minWidth:y,overflow:"hidden",display:"flex",flexDirection:"column",transition:m,pointerEvents:v},children:e}),b.jsx(q.Box,{sx:{flex:1,minWidth:0,minHeight:0,overflow:"hidden",display:"flex",flexDirection:"column"},children:t})]})};_v.displayName="SplitLayout";const k$=256,jv=({children:e,minColumns:t=1,maxColumns:n=3,minItemWidthPx:o=k$,gap:r=2,className:i,sx:a})=>{const c=q.useTheme().spacing(r),u=n-1;return b.jsx(q.Box,{className:i,sx:{"--responsive-grid-gap":c,display:"grid",gap:c,width:"100%",minHeight:0,gridTemplateColumns:`repeat(auto-fill, minmax(min(100%, max(${o}px, calc((100% - ${u} * var(--responsive-grid-gap)) / ${n}))), 1fr))`,alignContent:"start",...a},children:e})};jv.displayName="ResponsiveGrid";const Lv=gt(b.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var D$=e=>e.type==="checkbox",es=e=>e instanceof Date,gd=e=>e==null;const $v=e=>typeof e=="object";var Fo=e=>!gd(e)&&!Array.isArray(e)&&$v(e)&&!es(e),R$=e=>Fo(e)&&e.target?D$(e.target)?e.target.checked:e.target.value:e,I$=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,A$=(e,t)=>e.has(I$(t)),N$=e=>{const t=e.constructor&&e.constructor.prototype;return Fo(t)&&t.hasOwnProperty("isPrototypeOf")},_$=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Vv(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(_$&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(Fo(e)&&N$(e)))return e;const o=n?[]:Object.create(Object.getPrototypeOf(e));for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=Vv(e[r]));return o}var Fv=e=>/^\w*$/.test(e),Tc=e=>e===void 0,j$=e=>Array.isArray(e)?e.filter(Boolean):[],Bv=e=>j$(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ft=(e,t,n)=>{if(!t||!Fo(e))return n;const o=(Fv(t)?[t]:Bv(t)).reduce((r,i)=>gd(r)?r:r[i],e);return Tc(o)||o===e?Tc(e[t])?n:e[t]:o},El=e=>typeof e=="boolean",di=e=>typeof e=="function",Lh=(e,t,n)=>{let o=-1;const r=Fv(t)?[t]:Bv(t),i=r.length,a=i-1;for(;++o<i;){const l=r[o];let c=n;if(o!==a){const u=e[l];c=Fo(u)||Array.isArray(u)?u:isNaN(+r[o+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=c,e=e[l]}};const $h={BLUR:"blur",CHANGE:"change"},Vh={all:"all"},zv=A.createContext(null);zv.displayName="HookFormControlContext";const yd=()=>A.useContext(zv);var L$=(e,t,n,o=!0)=>{const r={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(r,i,{get:()=>{const a=i;return t._proxyFormState[a]!==Vh.all&&(t._proxyFormState[a]=!o||Vh.all),n&&(n[a]=!0),e[a]}});return r};const Wv=typeof window<"u"?A.useLayoutEffect:A.useEffect;function $$(e){const t=yd(),{control:n=t,disabled:o,name:r,exact:i}=e||{},[a,l]=A.useState(n._formState),c=A.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Wv(()=>n._subscribe({name:r,formState:c.current,exact:i,callback:u=>{!o&&l({...n._formState,...u})}}),[r,o,i]),A.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),A.useMemo(()=>L$(a,n,c.current,!1),[a,n])}var V$=e=>typeof e=="string",Fh=(e,t,n,o,r)=>V$(e)?Ft(n,e,r):Array.isArray(e)?e.map(i=>Ft(n,i)):n,Bh=e=>gd(e)||!$v(e);function Si(e,t,n=new WeakSet){if(Bh(e)||Bh(t))return Object.is(e,t);if(es(e)&&es(t))return Object.is(e.getTime(),t.getTime());const o=Object.keys(e),r=Object.keys(t);if(o.length!==r.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of o){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const l=t[i];if(es(a)&&es(l)||Fo(a)&&Fo(l)||Array.isArray(a)&&Array.isArray(l)?!Si(a,l,n):!Object.is(a,l))return!1}}return!0}function F$(e){const t=yd(),{control:n=t,name:o,defaultValue:r,disabled:i,exact:a,compute:l}=e||{},c=A.useRef(r),u=A.useRef(l),d=A.useRef(void 0),f=A.useRef(n),p=A.useRef(o);u.current=l;const[h,m]=A.useState(()=>{const S=n._getWatch(o,c.current);return u.current?u.current(S):S}),g=A.useCallback(S=>{const T=Fh(o,n._names,S||n._formValues,!1,c.current);return u.current?u.current(T):T},[n._formValues,n._names,o]),y=A.useCallback(S=>{if(!i){const T=Fh(o,n._names,S||n._formValues,!1,c.current);if(u.current){const E=u.current(T);Si(E,d.current)||(m(E),d.current=E)}else m(T)}},[n._formValues,n._names,i,o]);Wv(()=>((f.current!==n||!Si(p.current,o))&&(f.current=n,p.current=o,y()),n._subscribe({name:o,formState:{values:!0},exact:a,callback:S=>{y(S.values)}})),[n,a,o,y]),A.useEffect(()=>n._removeUnmounted());const v=f.current!==n,w=p.current,x=A.useMemo(()=>{if(i)return null;const S=!v&&!Si(w,o);return v||S?g():null},[i,v,o,w,g]);return x!==null?x:h}function B$(e){const t=yd(),{name:n,disabled:o,control:r=t,shouldUnregister:i,defaultValue:a,exact:l=!0}=e,c=A$(r._names.array,n),u=A.useMemo(()=>Ft(r._formValues,n,Ft(r._defaultValues,n,a)),[r,n,a]),d=F$({control:r,name:n,defaultValue:u,exact:l}),f=$$({control:r,name:n,exact:l}),p=A.useRef(e),h=A.useRef(void 0),m=A.useRef(r.register(n,{...e.rules,value:d,...El(e.disabled)?{disabled:e.disabled}:{}}));p.current=e;const g=A.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ft(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ft(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ft(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ft(f.validatingFields,n)},error:{enumerable:!0,get:()=>Ft(f.errors,n)}}),[f,n]),y=A.useCallback(S=>m.current.onChange({target:{value:R$(S),name:n},type:$h.CHANGE}),[n]),v=A.useCallback(()=>m.current.onBlur({target:{value:Ft(r._formValues,n),name:n},type:$h.BLUR}),[n,r._formValues]),w=A.useCallback(S=>{const T=Ft(r._fields,n);T&&T._f&&S&&(T._f.ref={focus:()=>di(S.focus)&&S.focus(),select:()=>di(S.select)&&S.select(),setCustomValidity:E=>di(S.setCustomValidity)&&S.setCustomValidity(E),reportValidity:()=>di(S.reportValidity)&&S.reportValidity()})},[r._fields,n]),x=A.useMemo(()=>({name:n,value:d,...El(o)||f.disabled?{disabled:f.disabled||o}:{},onChange:y,onBlur:v,ref:w}),[n,o,f.disabled,y,v,w,d]);return A.useEffect(()=>{const S=r._options.shouldUnregister||i,T=h.current;T&&T!==n&&!c&&r.unregister(T),r.register(n,{...p.current.rules,...El(p.current.disabled)?{disabled:p.current.disabled}:{}});const E=(M,_)=>{const D=Ft(r._fields,M);D&&D._f&&(D._f.mount=_)};if(E(n,!0),S){const M=Vv(Ft(r._options.defaultValues,n,p.current.defaultValue));Lh(r._defaultValues,n,M),Tc(Ft(r._formValues,n))&&Lh(r._formValues,n,M)}return!c&&r.register(n),h.current=n,()=>{(c?S&&!r._state.action:S)?r.unregister(n):E(n,!1)}},[n,r,c,i]),A.useEffect(()=>{r._setDisabledField({disabled:o,name:n})},[o,n,r]),A.useMemo(()=>({field:x,formState:f,fieldState:g}),[x,f,g])}const bd=e=>e.render(B$(e)),z$=A.createContext(null);z$.displayName="HookFormContext";const W$="_formSelect_s09hu_1",U$="_labelWrapper_s09hu_5",H$="_inputLabel_s09hu_9",Y$="_placeholder_s09hu_75",q$="_helperText_s09hu_121",wo={formSelect:W$,labelWrapper:U$,inputLabel:H$,placeholder:Y$,helperText:q$},Uv=({control:e,name:t,label:n,options:o,placeholder:r,helperText:i,required:a=!1,fullWidth:l=!0,disabled:c=!1,renderValue:u,className:d,...f})=>{const h=q.useTheme().palette.mode==="dark";return b.jsx(bd,{name:t,control:e,render:({field:m,fieldState:g})=>{var x;const y=!!g.error,v=y||!!i,w=y?(x=g.error)==null?void 0:x.message:i;return b.jsxs("div",{className:`${wo.formSelect} ${d||""}`,"data-theme":h?"dark":"light",children:[b.jsx("div",{className:wo.labelWrapper,children:b.jsxs("span",{className:wo.inputLabel,children:[n,a?" *":""]})}),b.jsxs(q.FormControl,{error:y,fullWidth:l,disabled:c,children:[b.jsxs(q.Select,{...m,...f,displayEmpty:!!r,SelectDisplayProps:{"aria-label":n},renderValue:u||(S=>{if(S===""||S===null||S===void 0)return b.jsx("span",{className:wo.placeholder,children:r||""});const T=o.find(E=>E.value===S);return(T==null?void 0:T.label)||String(S)}),className:wo.select,MenuProps:{autoFocus:!1,slotProps:{paper:{sx:{borderRadius:2,boxShadow:"0 4px 8px 3px rgba(0,0,0,0.15), 0 1px 3px 0 rgba(0,0,0,0.30)",...h?{bgcolor:"#1A1C1C"}:{bgcolor:"#F1F1F1"},marginTop:"2px"}}},sx:{"& .MuiMenuItem-root":{fontFamily:'"Suisse Intl", "Inter", "Helvetica", "Arial", sans-serif',fontSize:14,fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px",whiteSpace:"nowrap",height:"48px",...h?{color:"#FAF9F9"}:{color:"#101111"},marginBottom:"2px",backgroundColor:"transparent"},"& .MuiMenuItem-root.Mui-focusVisible":{backgroundColor:"transparent",...h?{color:"#FAF9F9"}:{color:"#101111"}},"& .MuiMenuItem-root:hover":{...h?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...h?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root.Mui-selected":{borderRadius:"12px",...h?{backgroundColor:"#E5FF4B",color:"#101111"}:{backgroundColor:"#286672",color:"#FAF9F9"},gap:"8px"},"& .MuiMenuItem-root.Mui-selected:hover":{...h?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...h?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root .MuiListItemIcon-root":{minWidth:20},"& .MuiMenuItem-root.Mui-selected .MuiSvgIcon-root":{fill:h?"#101111":"#FAF9F9",width:20,height:20}}},children:[r&&b.jsx(q.MenuItem,{value:"",disabled:!0,children:b.jsx("span",{className:wo.placeholder,children:r})}),o.map(S=>{const T=m.value===S.value;return b.jsxs(q.MenuItem,{value:S.value,disabled:S.disabled,children:[T&&b.jsx(q.ListItemIcon,{sx:{minWidth:20},children:b.jsx(Lv,{sx:{fontSize:20}})}),S.label]},String(S.value))})]}),v&&b.jsx(q.FormHelperText,{className:wo.helperText,children:w})]})]})}})};Uv.displayName="FormSelect";const G$="_formMultiSelect_1d6fa_1",K$="_labelWrapper_1d6fa_5",Z$="_inputLabel_1d6fa_9",X$="_placeholder_1d6fa_75",Q$="_helperText_1d6fa_124",J$="_chipsContainer_1d6fa_153",eV="_chip_1d6fa_153",Rn={formMultiSelect:G$,labelWrapper:K$,inputLabel:Z$,placeholder:X$,helperText:Q$,chipsContainer:J$,chip:eV},Hv=({control:e,name:t,label:n,options:o,placeholder:r,helperText:i,required:a=!1,fullWidth:l=!0,disabled:c=!1,chipVariant:u="filled",maxChipsDisplay:d,renderValue:f,className:p,open:h,onOpen:m,onClose:g,...y})=>{const w=q.useTheme().palette.mode==="dark";return b.jsx(bd,{name:t,control:e,render:({field:x,fieldState:S})=>{var j;const T=!!S.error,E=T||!!i,M=T?(j=S.error)==null?void 0:j.message:i,_=Array.isArray(x.value)?x.value:[];_.length>0;const $=f||(C=>{if(!Array.isArray(C)||C.length===0)return b.jsx("span",{className:Rn.placeholder,children:r||""});const L=d?C.slice(0,d):C,k=d&&C.length>d?C.length-d:0;return b.jsxs(q.Box,{className:Rn.chipsContainer,children:[L.map(I=>{const O=o.find(N=>N.value===I);return b.jsx(q.Chip,{label:(O==null?void 0:O.label)||String(I),size:"small",variant:u,className:Rn.chip},String(I))}),k>0&&b.jsx(q.Chip,{label:`+${k}`,size:"small",variant:u,className:Rn.chip})]})});return b.jsxs("div",{className:`${Rn.formMultiSelect} ${p||""}`,"data-theme":w?"dark":"light",children:[b.jsx("div",{className:Rn.labelWrapper,children:b.jsxs("span",{className:Rn.inputLabel,children:[n,a?" *":""]})}),b.jsxs(q.FormControl,{error:T,fullWidth:l,disabled:c,children:[b.jsx(q.Select,{...x,...y,variant:"outlined",multiple:!0,value:_,onChange:C=>{x.onChange(C.target.value)},displayEmpty:!!r,renderValue:$,className:Rn.select,SelectDisplayProps:{"aria-label":n},open:h,onOpen:m,onClose:g,MenuProps:{autoFocus:!1,slotProps:{paper:{sx:{borderRadius:2,boxShadow:"0 4px 8px 3px rgba(0,0,0,0.15), 0 1px 3px 0 rgba(0,0,0,0.30)",...w?{bgcolor:"#1A1C1C"}:{bgcolor:"#F1F1F1"},marginTop:"2px"}}},sx:{"& .MuiMenuItem-root":{fontFamily:'"Suisse Intl", "Inter", "Helvetica", "Arial", sans-serif',fontSize:14,fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px",whiteSpace:"nowrap",height:"48px",...w?{color:"#FAF9F9"}:{color:"#101111"},marginBottom:"2px",backgroundColor:"transparent"},"& .MuiMenuItem-root.Mui-focusVisible":{backgroundColor:"transparent",...w?{color:"#FAF9F9"}:{color:"#101111"}},"& .MuiMenuItem-root:hover":{...w?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...w?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root.Mui-selected":{borderRadius:"12px",...w?{backgroundColor:"#E5FF4B",color:"#101111"}:{backgroundColor:"#286672",color:"#FAF9F9"},gap:"8px"},"& .MuiMenuItem-root.Mui-selected:hover":{...w?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...w?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root .MuiListItemIcon-root":{minWidth:20},"& .MuiMenuItem-root.Mui-selected .MuiSvgIcon-root":{fill:w?"#101111":"#FAF9F9",width:20,height:20}}},children:o.map(C=>{const L=_.includes(C.value);return b.jsxs(q.MenuItem,{value:C.value,disabled:C.disabled,children:[L&&b.jsx(q.ListItemIcon,{sx:{minWidth:20},children:b.jsx(Lv,{sx:{fontSize:20}})}),C.label]},String(C.value))})}),E&&b.jsx(q.FormHelperText,{className:Rn.helperText,children:M})]})]})}})};Hv.displayName="FormMultiSelect";const Yv=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M8.4 17L12 13.4L15.6 17L17 15.6L13.4 12L17 8.4L15.6 7L12 10.6L8.4 7L7 8.4L10.6 12L7 15.6L8.4 17ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"currentColor"})),qv=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12 17C12.2833 17 12.5208 16.9042 12.7125 16.7125C12.9042 16.5208 13 16.2833 13 16C13 15.7167 12.9042 15.4792 12.7125 15.2875C12.5208 15.0958 12.2833 15 12 15C11.7167 15 11.4792 15.0958 11.2875 15.2875C11.0958 15.4792 11 15.7167 11 16C11 16.2833 11.0958 16.5208 11.2875 16.7125C11.4792 16.9042 11.7167 17 12 17ZM11 13H13V7H11V13ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22Z",fill:"currentColor"})),tV=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M19.6 21L13.3 14.7C12.8 15.1 12.225 15.4167 11.575 15.65C10.925 15.8833 10.2333 16 9.5 16C7.68333 16 6.14583 15.3708 4.8875 14.1125C3.62917 12.8542 3 11.3167 3 9.5C3 7.68333 3.62917 6.14583 4.8875 4.8875C6.14583 3.62917 7.68333 3 9.5 3C11.3167 3 12.8542 3.62917 14.1125 4.8875C15.3708 6.14583 16 7.68333 16 9.5C16 10.2333 15.8833 10.925 15.65 11.575C15.4167 12.225 15.1 12.8 14.7 13.3L21 19.6L19.6 21ZM9.5 14C10.75 14 11.8125 13.5625 12.6875 12.6875C13.5625 11.8125 14 10.75 14 9.5C14 8.25 13.5625 7.1875 12.6875 6.3125C11.8125 5.4375 10.75 5 9.5 5C8.25 5 7.1875 5.4375 6.3125 6.3125C5.4375 7.1875 5 8.25 5 9.5C5 10.75 5.4375 11.8125 6.3125 12.6875C7.1875 13.5625 8.25 14 9.5 14Z",fill:"currentColor"})),nV="_formInput_84pfi_1",oV="_labelWrapper_84pfi_5",rV="_inputLabel_84pfi_9",sV="_startAdornment_84pfi_163",iV="_endAdornment_84pfi_170",aV="_iconButton_84pfi_177",lV="_clearButton_84pfi_197",cV="_errorButton_84pfi_216",Ut={formInput:nV,labelWrapper:oV,inputLabel:rV,startAdornment:sV,endAdornment:iV,iconButton:aV,clearButton:lV,errorButton:cV},Gv=({control:e,name:t,label:n,type:o="text",placeholder:r,helperText:i,required:a=!1,fullWidth:l=!0,disabled:c=!1,className:u,startIcon:d,endIcon:f,onEndIconClick:p,clearable:h=!1,...m})=>{const y=q.useTheme().palette.mode==="dark";return b.jsx(bd,{name:t,control:e,render:({field:v,fieldState:w})=>{var D;const x=!!w.error,S=x?(D=w.error)==null?void 0:D.message:i,T=v.value!==void 0&&v.value!==null&&v.value!=="",E=()=>{v.onChange("")},M=d?b.jsx(q.InputAdornment,{position:"start",className:Ut.startAdornment,children:b.jsx("span",{className:Ut.iconButton,children:d})}):void 0;let _;return f?_=b.jsx(q.InputAdornment,{position:"end",className:Ut.endAdornment,children:b.jsx("span",{onClick:p,className:Ut.iconButton,role:p?"button":void 0,tabIndex:p?-1:void 0,children:f})}):h&&T&&!c&&(x?_=b.jsx(q.InputAdornment,{position:"end",className:Ut.endAdornment,children:b.jsx("span",{className:Ut.errorButton,children:b.jsx(qv,{})})}):_=b.jsx(q.InputAdornment,{position:"end",className:Ut.endAdornment,children:b.jsx("span",{onClick:E,className:Ut.clearButton,role:"button","aria-label":"Limpar campo",tabIndex:-1,children:b.jsx(Yv,{})})})),b.jsxs("div",{className:`${Ut.formInput} ${u||""}`,"data-theme":y?"dark":"light",children:[b.jsx("div",{className:Ut.labelWrapper,children:b.jsxs("span",{className:Ut.inputLabel,children:[n,a?" *":""]})}),b.jsx(q.TextField,{...v,...m,type:o,placeholder:r,required:!1,fullWidth:l,disabled:c,error:x,helperText:S,variant:"outlined",className:Ut.input,InputLabelProps:{shrink:!1},inputProps:{"aria-label":n},InputProps:{className:Ut.inputRoot,...M&&{startAdornment:M},..._&&{endAdornment:_}}})]})}})};Gv.displayName="FormInput";const uV="_viewChip_18qqe_1",dV="_active_18qqe_61",fV="_icon_18qqe_76",pV="_label_18qqe_81",fi={viewChip:uV,active:dV,icon:fV,label:pV},Kv=({label:e,icon:t,active:n=!1,className:o,onClick:r,ref:i,...a})=>{const c=q.useTheme().palette.mode==="dark";return b.jsxs(q.Box,{ref:i,className:`${fi.viewChip} ${n?fi.active:""} ${o||""}`.trim(),"data-theme":c?"dark":"light",onClick:r,role:"button",tabIndex:0,onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),r==null||r(u))},"aria-label":e,"aria-pressed":n,component:"div",...a,children:[t&&b.jsx(q.Box,{className:fi.icon,component:"div",children:t}),b.jsx(q.Box,{className:fi.label,component:"span",children:e})]})};Kv.displayName="ViewChip";exports.Button=Pc;exports.CAMERA_ALGORITHM_FACIAL=Ns;exports.CAMERA_ALGORITHM_LPR=_s;exports.CameraCard=IE;exports.CancelIcon=Yv;exports.CountCard=qS;exports.DisplayTypes=Nv;exports.ErrorIcon=qv;exports.FilterButton=Kh;exports.FilterChip=Zh;exports.FilterModal=bm;exports.FormInput=Gv;exports.FormMultiSelect=Hv;exports.FormSelect=Uv;exports.GoogleMap=fy;exports.MapContent=hu;exports.MapMarkers=gy;exports.MapSpot=fu;exports.ModuleMenu=Sy;exports.NotFoundContent=by;exports.ResponsiveGrid=jv;exports.SearchBar=yy;exports.SearchIcon=tV;exports.SidebarMenu=xy;exports.SplitLayout=_v;exports.VideoControlProvider=Iy;exports.VideoPlayer=xu;exports.VideoPlayerWebRTC=Av;exports.VideoTimeline=Iv;exports.ViewChip=Kv;exports.VisioThemeProvider=r0;exports.ZoomControls=VE;exports.darkColors=ft;exports.darkTheme=qh;exports.lightColors=dt;exports.lightTheme=Yh;exports.radiiTokens=pi;exports.spacingScale=t0;exports.spacingTokens=Uh;exports.typographyTokens=Mt;exports.useGoogleMapContext=pu;exports.useVideoControl=vu;exports.useVideoControlRequired=YO;exports.useVisioTheme=s0;
244
+ `);class kL{constructor({locale:t,formats:n}={}){pe(this,"isMUIAdapter",!0);pe(this,"isTimezoneCompatible",!0);pe(this,"lib","dayjs");pe(this,"escapedCharacters",{start:"[",end:"]"});pe(this,"formatTokenMap",ML);pe(this,"setLocaleToValue",t=>{const n=this.getCurrentLocaleCode();return n===t.locale()?t:t.locale(n)});pe(this,"hasUTCPlugin",()=>typeof bt.utc<"u");pe(this,"hasTimezonePlugin",()=>typeof bt.tz<"u");pe(this,"isSame",(t,n,o)=>{const r=this.setTimezone(n,this.getTimezone(t));return t.format(o)===r.format(o)});pe(this,"cleanTimezone",t=>{switch(t){case"default":return;case"system":return bt.tz.guess();default:return t}});pe(this,"createSystemDate",t=>{let n;if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=bt.tz.guess();o==="UTC"?n=bt(t):n=bt.tz(t,o)}else n=bt(t);return this.setLocaleToValue(n)});pe(this,"createUTCDate",t=>{if(!this.hasUTCPlugin())throw new Error(Cl);return this.setLocaleToValue(bt.utc(t))});pe(this,"createTZDate",(t,n)=>{if(!this.hasUTCPlugin())throw new Error(Cl);if(!this.hasTimezonePlugin())throw new Error(_h);const o=t!==void 0&&!t.endsWith("Z");return this.setLocaleToValue(bt(t).tz(this.cleanTimezone(n),o))});pe(this,"getLocaleFormats",()=>{const t=bt.Ls,n=this.locale||"en";let o=t[n];return o===void 0&&(process.env.NODE_ENV!=="production"&&wb(["MUI X: Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale."]),o=t.en),o.formats});pe(this,"adjustOffset",t=>{if(!this.hasTimezonePlugin())return t;const n=this.getTimezone(t);if(n!=="UTC"){const o=t.tz(this.cleanTimezone(n),!0);if(o.$offset===(t.$offset??0))return t;t.$offset=o.$offset}return t});pe(this,"date",(t,n="default")=>t===null?null:n==="UTC"?this.createUTCDate(t):n==="system"||n==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(t):this.createTZDate(t,n));pe(this,"getInvalidDate",()=>bt(new Date("Invalid date")));pe(this,"getTimezone",t=>{var n;if(this.hasTimezonePlugin()){const o=(n=t.$x)==null?void 0:n.$timezone;if(o)return o}return this.hasUTCPlugin()&&t.isUTC()?"UTC":"system"});pe(this,"setTimezone",(t,n)=>{if(this.getTimezone(t)===n)return t;if(n==="UTC"){if(!this.hasUTCPlugin())throw new Error(Cl);return t.utc()}if(n==="system")return t.local();if(!this.hasTimezonePlugin()){if(n==="default")return t;throw new Error(_h)}return this.setLocaleToValue(bt.tz(t,this.cleanTimezone(n)))});pe(this,"toJsDate",t=>t.toDate());pe(this,"parse",(t,n)=>t===""?null:bt(t,n,this.locale,!0));pe(this,"getCurrentLocaleCode",()=>this.locale||"en");pe(this,"is12HourCycleInCurrentLocale",()=>/A|a/.test(this.getLocaleFormats().LT||""));pe(this,"expandFormat",t=>{const n=this.getLocaleFormats(),o=r=>r.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(i,a,l)=>a||l.slice(1));return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(r,i,a)=>{const l=a&&a.toUpperCase();return i||n[a]||o(n[l])})});pe(this,"isValid",t=>t==null?!1:t.isValid());pe(this,"format",(t,n)=>this.formatByString(t,this.formats[n]));pe(this,"formatByString",(t,n)=>this.setLocaleToValue(t).format(n));pe(this,"formatNumber",t=>t);pe(this,"isEqual",(t,n)=>t===null&&n===null?!0:t===null||n===null?!1:t.toDate().getTime()===n.toDate().getTime());pe(this,"isSameYear",(t,n)=>this.isSame(t,n,"YYYY"));pe(this,"isSameMonth",(t,n)=>this.isSame(t,n,"YYYY-MM"));pe(this,"isSameDay",(t,n)=>this.isSame(t,n,"YYYY-MM-DD"));pe(this,"isSameHour",(t,n)=>t.isSame(n,"hour"));pe(this,"isAfter",(t,n)=>t>n);pe(this,"isAfterYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()>n.utc():t.isAfter(n,"year"));pe(this,"isAfterDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()>n.utc():t.isAfter(n,"day"));pe(this,"isBefore",(t,n)=>t<n);pe(this,"isBeforeYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()<n.utc():t.isBefore(n,"year"));pe(this,"isBeforeDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()<n.utc():t.isBefore(n,"day"));pe(this,"isWithinRange",(t,[n,o])=>t>=n&&t<=o);pe(this,"startOfYear",t=>this.adjustOffset(t.startOf("year")));pe(this,"startOfMonth",t=>this.adjustOffset(t.startOf("month")));pe(this,"startOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).startOf("week")));pe(this,"startOfDay",t=>this.adjustOffset(t.startOf("day")));pe(this,"endOfYear",t=>this.adjustOffset(t.endOf("year")));pe(this,"endOfMonth",t=>this.adjustOffset(t.endOf("month")));pe(this,"endOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).endOf("week")));pe(this,"endOfDay",t=>this.adjustOffset(t.endOf("day")));pe(this,"addYears",(t,n)=>this.adjustOffset(t.add(n,"year")));pe(this,"addMonths",(t,n)=>this.adjustOffset(t.add(n,"month")));pe(this,"addWeeks",(t,n)=>this.adjustOffset(t.add(n,"week")));pe(this,"addDays",(t,n)=>this.adjustOffset(t.add(n,"day")));pe(this,"addHours",(t,n)=>this.adjustOffset(t.add(n,"hour")));pe(this,"addMinutes",(t,n)=>this.adjustOffset(t.add(n,"minute")));pe(this,"addSeconds",(t,n)=>this.adjustOffset(t.add(n,"second")));pe(this,"getYear",t=>t.year());pe(this,"getMonth",t=>t.month());pe(this,"getDate",t=>t.date());pe(this,"getHours",t=>t.hour());pe(this,"getMinutes",t=>t.minute());pe(this,"getSeconds",t=>t.second());pe(this,"getMilliseconds",t=>t.millisecond());pe(this,"setYear",(t,n)=>this.adjustOffset(t.set("year",n)));pe(this,"setMonth",(t,n)=>this.adjustOffset(t.set("month",n)));pe(this,"setDate",(t,n)=>this.adjustOffset(t.set("date",n)));pe(this,"setHours",(t,n)=>this.adjustOffset(t.set("hour",n)));pe(this,"setMinutes",(t,n)=>this.adjustOffset(t.set("minute",n)));pe(this,"setSeconds",(t,n)=>this.adjustOffset(t.set("second",n)));pe(this,"setMilliseconds",(t,n)=>this.adjustOffset(t.set("millisecond",n)));pe(this,"getDaysInMonth",t=>t.daysInMonth());pe(this,"getWeekArray",t=>{const n=this.startOfWeek(this.startOfMonth(t)),o=this.endOfWeek(this.endOfMonth(t));let r=0,i=n;const a=[];for(;i<o;){const l=Math.floor(r/7);a[l]=a[l]||[],a[l].push(i),i=this.addDays(i,1),r+=1}return a});pe(this,"getWeekNumber",t=>t.week());pe(this,"getYearRange",([t,n])=>{const o=this.startOfYear(t),r=this.endOfYear(n),i=[];let a=o;for(;this.isBefore(a,r);)i.push(a),a=this.addYears(a,1);return i});this.locale=t,this.formats=U({},OL,n),bt.extend(xL)}getDayOfWeek(t){return t.day()+1}}const DL="_root_1dntq_1",RL="_container_1dntq_72",IL="_header_1dntq_83",AL="_headerText_1dntq_91",NL="_headerTitle_1dntq_97",_L="_headerSubtitle_1dntq_102",jL="_controls_1dntq_106",LL="_headerButton_1dntq_113",$L="_zoomGroup_1dntq_133",VL="_zoomLabel_1dntq_144",FL="_tracksWrapper_1dntq_153",BL="_tracksWithHeader_1dntq_158",zL="_layers_1dntq_162",WL="_timeScale_1dntq_168",UL="_videoTrack_1dntq_172",HL="_eventsTrack_1dntq_176",YL="_trackBox_1dntq_180",qL="_trackLabelRow_1dntq_190",GL="_label_1dntq_198",KL="_trackArea_1dntq_209",ZL="_tick_1dntq_215",XL="_tickMajor_1dntq_223",QL="_tickMinor_1dntq_227",JL="_tickLabel_1dntq_231",e$="_segment_1dntq_243",t$="_event_1dntq_176",n$="_eventDot_1dntq_276",o$="_selectionOverlay_1dntq_283",r$="_playhead_1dntq_292",s$="_playheadLine_1dntq_302",i$="_playheadHandle_1dntq_312",Re={root:DL,container:RL,header:IL,headerText:AL,headerTitle:NL,headerSubtitle:_L,controls:jL,headerButton:LL,zoomGroup:$L,zoomLabel:VL,tracksWrapper:FL,tracksWithHeader:BL,layers:zL,timeScale:WL,videoTrack:UL,eventsTrack:HL,trackBox:YL,trackLabelRow:qL,label:GL,trackArea:KL,tick:ZL,tickMajor:XL,tickMinor:QL,tickLabel:JL,segment:e$,event:t$,eventDot:n$,selectionOverlay:o$,playhead:r$,playheadLine:s$,playheadHandle:i$};function rt(e,t,n){return Math.min(n,Math.max(t,e))}function Nn(e){const{time:t,windowStart:n,windowSeconds:o,width:r}=e;return r<=0||o<=0?0:(t-n)/o*r}function Jo(e){const{px:t,windowStart:n,windowSeconds:o,width:r}=e;return r<=0||o<=0?n:n+t/r*o}function st(e){return String(Math.floor(e)).padStart(2,"0")}function a$(e){return String(Math.floor(e)).padStart(4,"0")}function jh(e,t){const n=Math.max(0,e),o=Math.floor(n/3600)%24,r=Math.floor(n%3600/60),i=Math.floor(n%60);return`${a$(t.getFullYear())}${st(t.getMonth()+1)}${st(t.getDate())}T${st(o)}${st(r)}${st(i)}Z`}function l$(e=Date.now()){const t=new Date(e);return t.getHours()*3600+t.getMinutes()*60+t.getSeconds()+t.getMilliseconds()/1e3}function Tl(e){const t=Math.max(0,e),n=Math.floor(t/3600)%24,o=Math.floor(t%3600/60),r=Math.floor(t%60);return`${st(n)}:${st(o)}:${st(r)}`}function c$(e,t){const n=Math.max(0,e),o=Math.floor(n/3600)%24,r=Math.floor(n%3600/60),i=Math.floor(n%60),a=n-Math.floor(n),l=Math.floor(a*t);return`${st(o)}:${st(r)}:${st(i)}:${st(l)}`}function Pl(e){const t=Math.max(0,e),n=Math.floor(t/3600),o=Math.floor(t%3600/60),r=Math.floor(t%60);return n>0?`${st(n)}:${st(o)}:${st(r)}`:`${st(o)}:${st(r)}`}function u$(e,t){const n=Math.max(0,e),o=Math.floor(n/3600),r=Math.floor(n%3600/60),i=Math.floor(n%60),a=n-Math.floor(n),l=Math.floor(a*t);return o>0?`${st(o)}:${st(r)}:${st(i)}:${st(l)}`:`${st(r)}:${st(i)}:${st(l)}`}function d$(e){const{width:t,windowSeconds:n,fps:o}=e,r=t>0?t/n:0,i=1/Math.max(1,o),a=[i,2*i,5*i,.25,.5,1,2,5,10,15,30,60,2*60,5*60,10*60,15*60,30*60,60*60,2*60*60,3*60*60,6*60*60],l=90,c=45;let u=a[a.length-1];for(const p of a)if(p*r>=l){u=p;break}const d=[u/2,u/5,u/10].filter(p=>p>0);let f=d[0]??u;for(const p of d)if(p*r>=c){f=p;break}return{majorStep:u,minorStep:f}}const f$=(e,t,n)=>t>=3600?Tl(e).slice(0,2)+":00:00":t>=60?Tl(e).slice(0,5):t>=1?Tl(e):c$(e,n),p$=(e,t,n)=>t>=3600||t>=60||t>=1?Pl(e):u$(e,n);function h$(){const e=_.useRef(null),[t,n]=_.useState(0);return _.useLayoutEffect(()=>{const o=e.current;if(!o)return;const r=new ResizeObserver(()=>{n(o.getBoundingClientRect().width)});return r.observe(o),n(o.getBoundingClientRect().width),()=>r.disconnect()},[]),{ref:e,width:t}}function m$(e){const{totalSeconds:t,enableWheelZoom:n,autoZoomOnSelection:o,tickLabelFormatter:r,clearSelectionOnEventClick:i,date:a,onChangePeriod:l,segments:c,events:u,fps:d=30}=e,[f,p]=_.useState(0),[h,m]=_.useState(!1),[g,y]=_.useState(null),[v,C]=_.useState({windowSeconds:t,fps:d}),{ref:x,width:S}=h$(),T=102,M=Math.max(0,S-T-10),[A,k]=_.useState(0),$=_.useMemo(()=>{const z=Math.max(1/Math.max(1,v.fps),.05);return rt(v.windowSeconds,z,t)},[v.windowSeconds,v.fps,t]);_.useEffect(()=>{if(!h||S<=0)return;const z=rt(f-$*.9,0,Math.max(0,t-$));k(z)},[f,h,S,$,t]);const j=_.useMemo(()=>{const z=rt(A,0,Math.max(0,t-$)),H=z+$;return{start:z,end:H,seconds:$}},[A,t,$]),w=_.useMemo(()=>{if(M<=0)return[];const{majorStep:z,minorStep:H}=d$({width:M,windowSeconds:j.seconds,fps:v.fps}),W=Math.floor(j.start/H)*H,ee=j.end,J=[],ie=H*1e-6;for(let ne=W;ne<=ee+ie;ne+=H){const de=Nn({time:ne,windowStart:j.start,windowSeconds:j.seconds,width:M});if(de<-1||de>M+1)continue;const se=Math.abs(ne/z-Math.round(ne/z))<1e-6;J.push({time:ne,px:de,kind:se?"major":"minor",label:se?r(ne,z,v.fps):void 0})}return J},[M,r,j.end,j.seconds,j.start,v.fps]),L=_.useRef(l);L.current=l;const D=_.useRef(a);D.current=a;const I=_.useCallback((z,H)=>{const W=L.current;if(!W)return;const ee=D.current;W({startDate:jh(z,ee),endDate:jh(H,ee)})},[]),O=_.useRef(null),N=_.useRef(null),F=z=>{N.current=z,O.current==null&&(O.current=requestAnimationFrame(()=>{O.current=null;const H=N.current;N.current=null,H==null||H()}))};_.useEffect(()=>()=>{O.current!=null&&cancelAnimationFrame(O.current)},[]);const V=_.useRef(null),B=z=>{const H=x.current;if(!H)return 0;const W=H.getBoundingClientRect();return rt(z-W.left-T,0,M)};return{viewportRef:x,width:S,axisLeft:T,axisWidth:M,totalSeconds:t,zoom:v,setZoom:C,isLive:h,setIsLive:m,currentTime:f,selectedRange:g,setSelectedRange:y,videoSegments:c,events:u,view:j,ticks:w,onWheel:z=>{if(!n||S<=0)return;z.preventDefault(),m(!1);const H=B(z.clientX),W=rt(Jo({px:H,windowStart:j.start,windowSeconds:j.seconds,width:M}),0,t),J=z.deltaY<0?.8:1.25,ie=rt(j.seconds*J,Math.max(1/Math.max(1,v.fps),.05),t),ne=rt(W-H/Math.max(1,M)*ie,0,Math.max(0,t-ie));C(de=>({...de,windowSeconds:ie})),k(ne)},onPointerDownScrub:z=>{if(z.button!==0)return;const H=x.current;if(!H)return;H.setPointerCapture(z.pointerId);const W=B(z.clientX),ee=rt(Jo({px:W,windowStart:j.start,windowSeconds:j.seconds,width:M}),0,t);m(!1),V.current={mode:"playhead",pointerId:z.pointerId,startPx:W,startTime:ee},p(ee)},onPointerDownSelect:z=>{if(z.button!==0)return;const H=x.current;if(!H)return;H.setPointerCapture(z.pointerId);const W=B(z.clientX),ee=rt(Jo({px:W,windowStart:j.start,windowSeconds:j.seconds,width:M}),0,t);m(!1),V.current={mode:"select",pointerId:z.pointerId,startPx:W,startTime:ee},y({start:ee,end:ee})},onPointerDownPlayhead:z=>{if(z.button!==0)return;const H=x.current;if(!H)return;H.setPointerCapture(z.pointerId);const W=B(z.clientX),ee=rt(Jo({px:W,windowStart:j.start,windowSeconds:j.seconds,width:M}),0,t);m(!1),V.current={mode:"playhead",pointerId:z.pointerId,startPx:W,startTime:ee},p(ee)},onPointerMove:z=>{const H=V.current;if(!H||H.pointerId!==z.pointerId)return;const W=B(z.clientX);F(()=>{const ee=rt(Jo({px:W,windowStart:j.start,windowSeconds:j.seconds,width:M}),0,t);if(H.mode==="playhead")p(ee);else{const J=Math.min(H.startTime,ee),ie=Math.max(H.startTime,ee);y({start:J,end:ie})}})},onPointerUp:z=>{const H=V.current;if(!(!H||H.pointerId!==z.pointerId)&&(V.current=null,H.mode==="select"&&g)){const W=Math.abs(g.end-g.start);if(W<Math.max(1/Math.max(1,v.fps),.1))y(null);else if(I(g.start,g.end),o){const ee=rt(W*1.05,Math.max(1/Math.max(1,v.fps),.05),t),J=rt(g.start,0,Math.max(0,t-ee));C(ie=>({...ie,windowSeconds:ee})),k(J)}}},onClickSegment:(z,H)=>{m(!1);const W=rt(z,0,t);p(W),I(H.start,H.end)},onClickEvent:z=>{i&&y(null),m(!1);const H=rt(z,0,t);p(H),I(H,H),k(rt(z-j.seconds/2,0,Math.max(0,t-j.seconds)))},resetView:()=>{m(!1),C(z=>({...z,windowSeconds:t})),k(0)}}}const kv=({ticks:e})=>b.jsx("div",{className:Re.trackArea,children:e.map(t=>b.jsxs("div",{children:[b.jsx("div",{className:`${Re.tick} ${t.kind==="minor"?Re.tickMinor:Re.tickMajor}`.trim(),style:{left:`${t.px}px`}}),t.kind==="major"&&t.label?b.jsx("div",{className:Re.tickLabel,style:{left:`${t.px}px`},children:t.label}):null]},`${t.time}-${t.kind}`))});kv.displayName="TimeScale";const Dv=({segments:e,viewStart:t,viewSeconds:n,width:o,totalSeconds:r,onClickSegment:i})=>{const a=e.map(c=>({original:c,start:rt(c.start,0,r),end:rt(c.end,0,r)})).filter(c=>c.end>c.start).map(c=>({original:c.original,start:Math.max(c.start,t),end:Math.min(c.end,t+n)})).filter(c=>c.end>c.start),l=(c,u)=>{if(!i)return;c.stopPropagation();const d=c.currentTarget.getBoundingClientRect(),f=c.clientX-d.left,h=Nn({time:u.start,windowStart:t,windowSeconds:n,width:o})+f,m=rt(Jo({px:h,windowStart:t,windowSeconds:n,width:o}),u.original.start,u.original.end);i(m,u.original)};return b.jsx("div",{className:Re.trackArea,children:a.map((c,u)=>{const d=Nn({time:c.start,windowStart:t,windowSeconds:n,width:o}),f=Nn({time:c.end,windowStart:t,windowSeconds:n,width:o}),p=Math.max(0,f-d);return b.jsx("div",{className:Re.segment,style:{left:`${d}px`,width:`${p}px`},onClick:i?h=>l(h,c):void 0,onPointerDown:i?h=>h.stopPropagation():void 0,role:i?"button":void 0,tabIndex:i?0:void 0,"aria-label":i?`Segmento ${c.original.start.toFixed(0)}s → ${c.original.end.toFixed(0)}s`:void 0,"aria-hidden":!i},`${c.start}-${c.end}-${u}`)})})};Dv.displayName="VideoTrack";const Rv=({events:e,viewStart:t,viewSeconds:n,width:o,totalSeconds:r,onClickEvent:i})=>{const a=e.map(l=>({...l,time:rt(l.time,0,r)})).filter(l=>l.time>=t&&l.time<=t+n);return b.jsx("div",{className:Re.trackArea,children:a.map(l=>{const c=Nn({time:l.time,windowStart:t,windowSeconds:n,width:o});return b.jsx("button",{type:"button",className:Re.event,onPointerDown:u=>{u.stopPropagation()},onClick:()=>i(l.time,l),style:{left:`${c}px`},"aria-label":`Evento em ${l.time.toFixed(2)}s`,children:l.icon?l.icon:b.jsx("span",{className:Re.eventDot})},l.id)})})};Rv.displayName="EventsTrack";const Iv=({className:e,sx:t,title:n="Timeline",subtitle:o="Arraste para aplicar zoom no período desejado",showHeader:r=!0,timeScaleMode:i="day24h",tickLabelFormatter:a,totalSeconds:l=24*60*60,enableWheelZoom:c=!1,height:u=190,autoZoomOnSelection:d=!0,showZoomControls:f=!0,enableScrubOnTracks:p=!1,clearSelectionOnEventClick:h=!0,onDownloadClick:m,date:g,onDateChange:y,videoLabel:v="Vídeo",eventsLabel:C="Eventos",downloadLabel:x="Baixar vídeo",onChangePeriod:S,onSegmentClick:T,onEventClick:E,segments:M,events:A,...k})=>{const j=ae.useTheme().palette.mode==="dark",[w,L]=_.useState(!1),D=a??(i==="duration"?p$:f$),{viewportRef:I,axisLeft:O,axisWidth:N,zoom:F,currentTime:V,selectedRange:B,videoSegments:R,events:Y,view:G,ticks:Z,onWheel:re,onPointerDownScrub:X,onPointerDownSelect:Q,onPointerDownPlayhead:K,onPointerMove:te,onPointerUp:z,onClickSegment:H,onClickEvent:W,setZoom:ee}=m$({totalSeconds:l,enableWheelZoom:c,autoZoomOnSelection:d,tickLabelFormatter:D,clearSelectionOnEventClick:h,date:g??new Date,onChangePeriod:S,segments:M??[],events:A??[]}),J=N?O+Nn({time:V,windowStart:G.start,windowSeconds:G.seconds,width:N}):O,ie=Math.max(1/Math.max(1,F.fps),.5),ne=ie/l,de=(()=>{const le=rt(G.seconds,ie,l);if(ne<=0||ne>=1)return 0;const fe=Math.log(le/l)/Math.log(ne)*100;return rt(fe,0,100)})(),se=le=>{const fe=rt(le,0,100),me=l*Math.pow(ne,fe/100);ee(Ie=>({...Ie,windowSeconds:rt(me,ie,l)}))},ue=`${Math.round(de)}%`;return b.jsxs(q.Box,{className:`${Re.root} ${Re.container} ${e??""}`.trim(),"data-theme":j?"dark":"light",sx:t,...k,children:[r?b.jsxs("div",{className:Re.header,children:[b.jsxs("div",{className:Re.headerText,children:[b.jsx(q.Typography,{variant:"subtitle1",className:Re.headerTitle,children:n}),b.jsx(q.Typography,{variant:"body2",className:Re.headerSubtitle,children:o})]}),b.jsxs("div",{className:Re.controls,children:[m?b.jsxs("button",{type:"button",className:Re.headerButton,onClick:m,"aria-label":x,children:[b.jsx(wD,{fontSize:"small"}),x]}):null,g!==void 0?b.jsx(ha,{dateAdapter:kL,children:b.jsx(md,{open:w,onOpen:()=>L(!0),onClose:()=>L(!1),value:bt(g),onChange:le=>{le&&y&&y(le.toDate())},format:"DD/MM/YYYY",slots:{field:()=>b.jsxs("button",{type:"button",className:Re.headerButton,onClick:()=>L(!0),"aria-label":"Selecionar data",children:[b.jsx(CD,{fontSize:"small"}),bt(g).format("DD/MM/YYYY")]})}})}):null,f?b.jsxs(q.Box,{className:Re.zoomGroup,"aria-label":"Zoom controls",children:[b.jsx(q.IconButton,{size:"small","aria-label":"Zoom out",onClick:()=>se(de-10),children:b.jsx(SD,{fontSize:"small"})}),b.jsx("span",{className:Re.zoomLabel,children:ue}),b.jsx(q.IconButton,{size:"small","aria-label":"Zoom in",onClick:()=>se(de+10),children:b.jsx(xD,{fontSize:"small"})})]}):null]})]}):null,b.jsx(q.Box,{className:`${Re.tracksWrapper} ${r?Re.tracksWithHeader:""}`.trim(),style:{height:u},children:b.jsxs("div",{ref:I,className:Re.layers,onWheel:re,onPointerMove:te,onPointerUp:z,children:[b.jsxs("div",{className:Re.playhead,style:{left:`${J}px`},onPointerDown:K,role:"slider","aria-label":"Playhead","aria-valuemin":0,"aria-valuemax":l,"aria-valuenow":V,tabIndex:0,children:[b.jsx("div",{className:Re.playheadHandle}),b.jsx("div",{className:Re.playheadLine})]}),b.jsxs("div",{className:`${Re.trackLabelRow} ${Re.timeScale}`.trim(),children:[b.jsx("div",{}),b.jsx("div",{onPointerDown:X,style:{height:"100%",cursor:"ew-resize"},"aria-label":"Régua do tempo",children:b.jsx(kv,{ticks:Z})})]}),b.jsxs(q.Box,{className:Re.trackBox,onPointerDown:Q,children:[B?b.jsx("div",{className:Re.selectionOverlay,style:{left:`${O+Nn({time:B.start,windowStart:G.start,windowSeconds:G.seconds,width:N})}px`,width:`${Math.max(0,Nn({time:B.end,windowStart:G.start,windowSeconds:G.seconds,width:N})-Nn({time:B.start,windowStart:G.start,windowSeconds:G.seconds,width:N}))}px`}}):null,b.jsxs("div",{className:`${Re.trackLabelRow} ${Re.videoTrack}`.trim(),children:[b.jsx("div",{className:Re.label,children:v}),b.jsx("div",{onPointerDown:p?X:void 0,style:{height:"100%"},children:b.jsx(Dv,{segments:R,viewStart:G.start,viewSeconds:G.seconds,width:N,totalSeconds:l,onClickSegment:(le,fe)=>{H(le,fe),T==null||T(le,fe)}})})]}),b.jsxs("div",{className:`${Re.trackLabelRow} ${Re.eventsTrack}`.trim(),children:[b.jsx("div",{className:Re.label,children:C}),b.jsx("div",{onPointerDown:p?X:void 0,style:{height:"100%"},children:b.jsx(Rv,{events:Y,viewStart:G.start,viewSeconds:G.seconds,width:N,totalSeconds:l,onClickEvent:(le,fe)=>{W(le),E==null||E(le,fe)}})})]})]})]})})]})};Iv.displayName="VideoTimeline";const g$=({isStream:e,updateTimeForLiveStream:t,constrainToSelectedRange:n,loopSelection:o,liveThresholdSeconds:r})=>{const i=vu(),[a,l]=Li(Dy),[c,u]=Li(Ry),d=ky(zk),f=_.useRef(-1);return _.useEffect(()=>{if(!e||(u(!0),!t))return;let p=null,h=!0;const m=()=>{h&&(l(l$()),p=requestAnimationFrame(m))};return p=requestAnimationFrame(m),()=>{h=!1,p!=null&&cancelAnimationFrame(p)}},[e,l,u,t]),_.useEffect(()=>{if(!i||e)return;const p=i.videoRef.current;if(!p)return;const h=()=>{if(n&&d){const y=Math.max(0,d.start),v=Math.max(y,d.end);p.currentTime<y?p.currentTime=y:p.currentTime>v&&(o?p.currentTime=y:(p.pause(),p.currentTime=v))}if(l(p.currentTime),Number.isFinite(p.duration)&&p.duration>0){const y=p.duration-p.currentTime<=r;u(y)}},m=()=>{if(!n||!d)return;const y=Math.max(0,d.start),v=Math.max(y,d.end);(p.currentTime<y||p.currentTime>v)&&(p.currentTime=y)},g=()=>{c&&Number.isFinite(p.duration)&&p.duration>0&&(p.currentTime=p.duration)};return p.addEventListener("timeupdate",h),p.addEventListener("play",m),p.addEventListener("loadedmetadata",g),()=>{p.removeEventListener("timeupdate",h),p.removeEventListener("play",m),p.removeEventListener("loadedmetadata",g)}},[n,e,c,r,o,d,l,u,i]),_.useEffect(()=>{if(!i||e)return;const p=i.videoRef.current;if(!p)return;if(c){if(Number.isFinite(p.duration)&&p.duration>0){const m=p.duration;Math.abs(p.currentTime-m)>.25&&(p.currentTime=m,f.current=m)}return}if(Math.abs(f.current-a)<.05)return;let h=a;if(n&&d){const m=Math.max(0,d.start),g=Math.max(m,d.end);h=Math.min(g,Math.max(m,h))}Math.abs(p.currentTime-h)>.25&&(p.currentTime=h,f.current=a)},[n,a,c,e,d,i]),_.useEffect(()=>{if(!i||e)return;const p=i.videoRef.current;if(!p||!n||!d)return;const h=Math.max(0,d.start),m=!p.paused;p.currentTime=h,f.current=h,u(!1),l(h),m&&p.play().catch(()=>{})},[n,e,d,l,u,i]),null},Av=({stream:e=null,src:t,autoPlay:n=!0,muted:o=!0,playsInline:r=!0,className:i,updateTimeForLiveStream:a=!0,constrainToSelectedRange:l=!0,loopSelection:c=!1,availableQualities:u,initialQuality:d,onQualityChange:f,poster:p,sx:h,liveThresholdSeconds:m=2,allowPlaybackRateForStream:g,playbackRates:y,zoomLevels:v,width:C,height:x,aspectRatio:S,showTimestamp:T,showTimeline:E,isRecording:M,recordingLabel:A,borderRadius:k,loading:$,unavailable:j,unavailableIcon:w,unavailableMessage:L})=>{const D=!!e,I=u??(t?[{value:"default",label:"Auto",src:t}]:[]);return b.jsxs(Iy,{children:[b.jsx(xu,{stream:e,availableQualities:I,initialQuality:d??(t&&!u?"default":void 0),onQualityChange:f,autoPlay:n,muted:o,playsInline:r,poster:p,className:i,sx:h,liveThresholdSeconds:m,allowPlaybackRateForStream:g,playbackRates:y,zoomLevels:v,width:C,height:x,aspectRatio:S,showTimestamp:T,showTimeline:E,isRecording:M,recordingLabel:A,borderRadius:k,loading:$,unavailable:j,unavailableIcon:w,unavailableMessage:L}),b.jsx(g$,{isStream:D,updateTimeForLiveStream:a,constrainToSelectedRange:l,loopSelection:c,liveThresholdSeconds:m})]})};Av.displayName="VideoPlayerWebRTC";const y$=gt(b.jsx("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done"),b$="_container_1vjy6_1",v$="_segment_1vjy6_7",x$="_selected_1vjy6_20",S$="_label_1vjy6_28",w$="_icon_1vjy6_37",C$="_checkIcon_1vjy6_47",T$="_unselected_1vjy6_53",wo={container:b$,segment:v$,selected:x$,label:S$,icon:w$,checkIcon:C$,unselected:T$},Nv=({items:e,className:t,sx:n,...o})=>{const i=q.useTheme().palette.mode==="dark",a=(l,c)=>{l.onClick?l.onClick(c):console.log(`Item "${l.label}" clicado`)};return b.jsx(q.Box,{className:`${wo.container} ${t||""}`,sx:n,"data-theme":i?"dark":"light",...o,children:e.map((l,c)=>b.jsxs(q.Box,{className:`${wo.segment} ${l.selected?wo.selected:wo.unselected}`,onClick:u=>a(l,u),children:[l.selected&&b.jsx(q.Box,{className:wo.icon,children:b.jsx(y$,{className:wo.checkIcon})}),b.jsx(q.Box,{className:wo.label,children:l.label})]},c))})};Nv.displayName="DisplayTypes";const P$=600,El=[.32,.72,0,1],Ml=400,_v=({leftContent:e,rightContent:t,gap:n=2,leftRatio:o=.5,leftCollapsed:r=!1,mobileShowOnly:i="both",mobileBreakpointPx:a=P$,className:l,sx:c})=>{const u=q.useTheme(),d=q.useMediaQuery(`(max-width:${a}px)`),f=!d||i==="left"||i==="both",p=!d||i==="right"||i==="both",h=u.spacing(n),m=`flex ${Ml}ms cubic-bezier(${El.join(",")}), min-width ${Ml}ms cubic-bezier(${El.join(",")})`;if(d&&i!=="both")return b.jsxs(q.Box,{className:l,sx:{display:"grid",gridTemplateColumns:"1fr",width:"100%",height:"100%",minHeight:0,overflow:"hidden",...c},children:[b.jsx(q.Box,{sx:{minWidth:0,minHeight:0,overflow:"hidden",display:f?"flex":"none",flexDirection:"column"},children:e}),b.jsx(q.Box,{sx:{minWidth:0,minHeight:0,overflow:"hidden",display:p?"flex":"none",flexDirection:"column"},children:t})]});const g=r?0:o,y=r?0:void 0,v=r?"none":"auto";return b.jsxs(q.Box,{className:l,sx:{display:"flex",flexDirection:"row",gap:r?0:h,width:"100%",height:"100%",minHeight:0,overflow:"hidden",transition:`gap ${Ml}ms cubic-bezier(${El.join(",")})`,...c},children:[b.jsx(q.Box,{sx:{flex:g,minWidth:y,overflow:"hidden",display:"flex",flexDirection:"column",transition:m,pointerEvents:v},children:e}),b.jsx(q.Box,{sx:{flex:1,minWidth:0,minHeight:0,overflow:"hidden",display:"flex",flexDirection:"column"},children:t})]})};_v.displayName="SplitLayout";const E$=256,jv=({children:e,minColumns:t=1,maxColumns:n=3,minItemWidthPx:o=E$,gap:r=2,className:i,sx:a})=>{const c=q.useTheme().spacing(r),u=n-1;return b.jsx(q.Box,{className:i,sx:{"--responsive-grid-gap":c,display:"grid",gap:c,width:"100%",minHeight:0,gridTemplateColumns:`repeat(auto-fill, minmax(min(100%, max(${o}px, calc((100% - ${u} * var(--responsive-grid-gap)) / ${n}))), 1fr))`,alignContent:"start",...a},children:e})};jv.displayName="ResponsiveGrid";const Lv=gt(b.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var M$=e=>e.type==="checkbox",es=e=>e instanceof Date,gd=e=>e==null;const $v=e=>typeof e=="object";var Fo=e=>!gd(e)&&!Array.isArray(e)&&$v(e)&&!es(e),O$=e=>Fo(e)&&e.target?M$(e.target)?e.target.checked:e.target.value:e,k$=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,D$=(e,t)=>e.has(k$(t)),R$=e=>{const t=e.constructor&&e.constructor.prototype;return Fo(t)&&t.hasOwnProperty("isPrototypeOf")},I$=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Vv(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(I$&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(Fo(e)&&R$(e)))return e;const o=n?[]:Object.create(Object.getPrototypeOf(e));for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=Vv(e[r]));return o}var Fv=e=>/^\w*$/.test(e),Ec=e=>e===void 0,A$=e=>Array.isArray(e)?e.filter(Boolean):[],Bv=e=>A$(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ft=(e,t,n)=>{if(!t||!Fo(e))return n;const o=(Fv(t)?[t]:Bv(t)).reduce((r,i)=>gd(r)?r:r[i],e);return Ec(o)||o===e?Ec(e[t])?n:e[t]:o},Ol=e=>typeof e=="boolean",di=e=>typeof e=="function",Lh=(e,t,n)=>{let o=-1;const r=Fv(t)?[t]:Bv(t),i=r.length,a=i-1;for(;++o<i;){const l=r[o];let c=n;if(o!==a){const u=e[l];c=Fo(u)||Array.isArray(u)?u:isNaN(+r[o+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=c,e=e[l]}};const $h={BLUR:"blur",CHANGE:"change"},Vh={all:"all"},zv=_.createContext(null);zv.displayName="HookFormControlContext";const yd=()=>_.useContext(zv);var N$=(e,t,n,o=!0)=>{const r={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(r,i,{get:()=>{const a=i;return t._proxyFormState[a]!==Vh.all&&(t._proxyFormState[a]=!o||Vh.all),n&&(n[a]=!0),e[a]}});return r};const Wv=typeof window<"u"?_.useLayoutEffect:_.useEffect;function _$(e){const t=yd(),{control:n=t,disabled:o,name:r,exact:i}=e||{},[a,l]=_.useState(n._formState),c=_.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Wv(()=>n._subscribe({name:r,formState:c.current,exact:i,callback:u=>{!o&&l({...n._formState,...u})}}),[r,o,i]),_.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),_.useMemo(()=>N$(a,n,c.current,!1),[a,n])}var j$=e=>typeof e=="string",Fh=(e,t,n,o,r)=>j$(e)?Ft(n,e,r):Array.isArray(e)?e.map(i=>Ft(n,i)):n,Bh=e=>gd(e)||!$v(e);function Si(e,t,n=new WeakSet){if(Bh(e)||Bh(t))return Object.is(e,t);if(es(e)&&es(t))return Object.is(e.getTime(),t.getTime());const o=Object.keys(e),r=Object.keys(t);if(o.length!==r.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of o){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const l=t[i];if(es(a)&&es(l)||Fo(a)&&Fo(l)||Array.isArray(a)&&Array.isArray(l)?!Si(a,l,n):!Object.is(a,l))return!1}}return!0}function L$(e){const t=yd(),{control:n=t,name:o,defaultValue:r,disabled:i,exact:a,compute:l}=e||{},c=_.useRef(r),u=_.useRef(l),d=_.useRef(void 0),f=_.useRef(n),p=_.useRef(o);u.current=l;const[h,m]=_.useState(()=>{const S=n._getWatch(o,c.current);return u.current?u.current(S):S}),g=_.useCallback(S=>{const T=Fh(o,n._names,S||n._formValues,!1,c.current);return u.current?u.current(T):T},[n._formValues,n._names,o]),y=_.useCallback(S=>{if(!i){const T=Fh(o,n._names,S||n._formValues,!1,c.current);if(u.current){const E=u.current(T);Si(E,d.current)||(m(E),d.current=E)}else m(T)}},[n._formValues,n._names,i,o]);Wv(()=>((f.current!==n||!Si(p.current,o))&&(f.current=n,p.current=o,y()),n._subscribe({name:o,formState:{values:!0},exact:a,callback:S=>{y(S.values)}})),[n,a,o,y]),_.useEffect(()=>n._removeUnmounted());const v=f.current!==n,C=p.current,x=_.useMemo(()=>{if(i)return null;const S=!v&&!Si(C,o);return v||S?g():null},[i,v,o,C,g]);return x!==null?x:h}function $$(e){const t=yd(),{name:n,disabled:o,control:r=t,shouldUnregister:i,defaultValue:a,exact:l=!0}=e,c=D$(r._names.array,n),u=_.useMemo(()=>Ft(r._formValues,n,Ft(r._defaultValues,n,a)),[r,n,a]),d=L$({control:r,name:n,defaultValue:u,exact:l}),f=_$({control:r,name:n,exact:l}),p=_.useRef(e),h=_.useRef(void 0),m=_.useRef(r.register(n,{...e.rules,value:d,...Ol(e.disabled)?{disabled:e.disabled}:{}}));p.current=e;const g=_.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ft(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ft(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ft(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ft(f.validatingFields,n)},error:{enumerable:!0,get:()=>Ft(f.errors,n)}}),[f,n]),y=_.useCallback(S=>m.current.onChange({target:{value:O$(S),name:n},type:$h.CHANGE}),[n]),v=_.useCallback(()=>m.current.onBlur({target:{value:Ft(r._formValues,n),name:n},type:$h.BLUR}),[n,r._formValues]),C=_.useCallback(S=>{const T=Ft(r._fields,n);T&&T._f&&S&&(T._f.ref={focus:()=>di(S.focus)&&S.focus(),select:()=>di(S.select)&&S.select(),setCustomValidity:E=>di(S.setCustomValidity)&&S.setCustomValidity(E),reportValidity:()=>di(S.reportValidity)&&S.reportValidity()})},[r._fields,n]),x=_.useMemo(()=>({name:n,value:d,...Ol(o)||f.disabled?{disabled:f.disabled||o}:{},onChange:y,onBlur:v,ref:C}),[n,o,f.disabled,y,v,C,d]);return _.useEffect(()=>{const S=r._options.shouldUnregister||i,T=h.current;T&&T!==n&&!c&&r.unregister(T),r.register(n,{...p.current.rules,...Ol(p.current.disabled)?{disabled:p.current.disabled}:{}});const E=(M,A)=>{const k=Ft(r._fields,M);k&&k._f&&(k._f.mount=A)};if(E(n,!0),S){const M=Vv(Ft(r._options.defaultValues,n,p.current.defaultValue));Lh(r._defaultValues,n,M),Ec(Ft(r._formValues,n))&&Lh(r._formValues,n,M)}return!c&&r.register(n),h.current=n,()=>{(c?S&&!r._state.action:S)?r.unregister(n):E(n,!1)}},[n,r,c,i]),_.useEffect(()=>{r._setDisabledField({disabled:o,name:n})},[o,n,r]),_.useMemo(()=>({field:x,formState:f,fieldState:g}),[x,f,g])}const bd=e=>e.render($$(e)),V$=_.createContext(null);V$.displayName="HookFormContext";const F$="_formSelect_s09hu_1",B$="_labelWrapper_s09hu_5",z$="_inputLabel_s09hu_9",W$="_placeholder_s09hu_75",U$="_helperText_s09hu_121",Co={formSelect:F$,labelWrapper:B$,inputLabel:z$,placeholder:W$,helperText:U$},Uv=({control:e,name:t,label:n,options:o,placeholder:r,helperText:i,required:a=!1,fullWidth:l=!0,disabled:c=!1,renderValue:u,className:d,...f})=>{const h=q.useTheme().palette.mode==="dark";return b.jsx(bd,{name:t,control:e,render:({field:m,fieldState:g})=>{var x;const y=!!g.error,v=y||!!i,C=y?(x=g.error)==null?void 0:x.message:i;return b.jsxs("div",{className:`${Co.formSelect} ${d||""}`,"data-theme":h?"dark":"light",children:[b.jsx("div",{className:Co.labelWrapper,children:b.jsxs("span",{className:Co.inputLabel,children:[n,a?" *":""]})}),b.jsxs(q.FormControl,{error:y,fullWidth:l,disabled:c,children:[b.jsxs(q.Select,{...m,...f,displayEmpty:!!r,SelectDisplayProps:{"aria-label":n},renderValue:u||(S=>{if(S===""||S===null||S===void 0)return b.jsx("span",{className:Co.placeholder,children:r||""});const T=o.find(E=>E.value===S);return(T==null?void 0:T.label)||String(S)}),className:Co.select,MenuProps:{autoFocus:!1,slotProps:{paper:{sx:{borderRadius:2,boxShadow:"0 4px 8px 3px rgba(0,0,0,0.15), 0 1px 3px 0 rgba(0,0,0,0.30)",...h?{bgcolor:"#1A1C1C"}:{bgcolor:"#F1F1F1"},marginTop:"2px"}}},sx:{"& .MuiMenuItem-root":{fontFamily:'"Suisse Intl", "Inter", "Helvetica", "Arial", sans-serif',fontSize:14,fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px",whiteSpace:"nowrap",height:"48px",...h?{color:"#FAF9F9"}:{color:"#101111"},marginBottom:"2px",backgroundColor:"transparent"},"& .MuiMenuItem-root.Mui-focusVisible":{backgroundColor:"transparent",...h?{color:"#FAF9F9"}:{color:"#101111"}},"& .MuiMenuItem-root:hover":{...h?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...h?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root.Mui-selected":{borderRadius:"12px",...h?{backgroundColor:"#E5FF4B",color:"#101111"}:{backgroundColor:"#286672",color:"#FAF9F9"},gap:"8px"},"& .MuiMenuItem-root.Mui-selected:hover":{...h?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...h?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root .MuiListItemIcon-root":{minWidth:20},"& .MuiMenuItem-root.Mui-selected .MuiSvgIcon-root":{fill:h?"#101111":"#FAF9F9",width:20,height:20}}},children:[r&&b.jsx(q.MenuItem,{value:"",disabled:!0,children:b.jsx("span",{className:Co.placeholder,children:r})}),o.map(S=>{const T=m.value===S.value;return b.jsxs(q.MenuItem,{value:S.value,disabled:S.disabled,children:[T&&b.jsx(q.ListItemIcon,{sx:{minWidth:20},children:b.jsx(Lv,{sx:{fontSize:20}})}),S.label]},String(S.value))})]}),v&&b.jsx(q.FormHelperText,{className:Co.helperText,children:C})]})]})}})};Uv.displayName="FormSelect";const H$="_formMultiSelect_1d6fa_1",Y$="_labelWrapper_1d6fa_5",q$="_inputLabel_1d6fa_9",G$="_placeholder_1d6fa_75",K$="_helperText_1d6fa_124",Z$="_chipsContainer_1d6fa_153",X$="_chip_1d6fa_153",Rn={formMultiSelect:H$,labelWrapper:Y$,inputLabel:q$,placeholder:G$,helperText:K$,chipsContainer:Z$,chip:X$},Hv=({control:e,name:t,label:n,options:o,placeholder:r,helperText:i,required:a=!1,fullWidth:l=!0,disabled:c=!1,chipVariant:u="filled",maxChipsDisplay:d,renderValue:f,className:p,open:h,onOpen:m,onClose:g,...y})=>{const C=q.useTheme().palette.mode==="dark";return b.jsx(bd,{name:t,control:e,render:({field:x,fieldState:S})=>{var j;const T=!!S.error,E=T||!!i,M=T?(j=S.error)==null?void 0:j.message:i,A=Array.isArray(x.value)?x.value:[];A.length>0;const $=f||(w=>{if(!Array.isArray(w)||w.length===0)return b.jsx("span",{className:Rn.placeholder,children:r||""});const L=d?w.slice(0,d):w,D=d&&w.length>d?w.length-d:0;return b.jsxs(q.Box,{className:Rn.chipsContainer,children:[L.map(I=>{const O=o.find(N=>N.value===I);return b.jsx(q.Chip,{label:(O==null?void 0:O.label)||String(I),size:"small",variant:u,className:Rn.chip},String(I))}),D>0&&b.jsx(q.Chip,{label:`+${D}`,size:"small",variant:u,className:Rn.chip})]})});return b.jsxs("div",{className:`${Rn.formMultiSelect} ${p||""}`,"data-theme":C?"dark":"light",children:[b.jsx("div",{className:Rn.labelWrapper,children:b.jsxs("span",{className:Rn.inputLabel,children:[n,a?" *":""]})}),b.jsxs(q.FormControl,{error:T,fullWidth:l,disabled:c,children:[b.jsx(q.Select,{...x,...y,variant:"outlined",multiple:!0,value:A,onChange:w=>{x.onChange(w.target.value)},displayEmpty:!!r,renderValue:$,className:Rn.select,SelectDisplayProps:{"aria-label":n},open:h,onOpen:m,onClose:g,MenuProps:{autoFocus:!1,slotProps:{paper:{sx:{borderRadius:2,boxShadow:"0 4px 8px 3px rgba(0,0,0,0.15), 0 1px 3px 0 rgba(0,0,0,0.30)",...C?{bgcolor:"#1A1C1C"}:{bgcolor:"#F1F1F1"},marginTop:"2px"}}},sx:{"& .MuiMenuItem-root":{fontFamily:'"Suisse Intl", "Inter", "Helvetica", "Arial", sans-serif',fontSize:14,fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px",whiteSpace:"nowrap",height:"48px",...C?{color:"#FAF9F9"}:{color:"#101111"},marginBottom:"2px",backgroundColor:"transparent"},"& .MuiMenuItem-root.Mui-focusVisible":{backgroundColor:"transparent",...C?{color:"#FAF9F9"}:{color:"#101111"}},"& .MuiMenuItem-root:hover":{...C?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...C?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root.Mui-selected":{borderRadius:"12px",...C?{backgroundColor:"#E5FF4B",color:"#101111"}:{backgroundColor:"#286672",color:"#FAF9F9"},gap:"8px"},"& .MuiMenuItem-root.Mui-selected:hover":{...C?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...C?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root .MuiListItemIcon-root":{minWidth:20},"& .MuiMenuItem-root.Mui-selected .MuiSvgIcon-root":{fill:C?"#101111":"#FAF9F9",width:20,height:20}}},children:o.map(w=>{const L=A.includes(w.value);return b.jsxs(q.MenuItem,{value:w.value,disabled:w.disabled,children:[L&&b.jsx(q.ListItemIcon,{sx:{minWidth:20},children:b.jsx(Lv,{sx:{fontSize:20}})}),w.label]},String(w.value))})}),E&&b.jsx(q.FormHelperText,{className:Rn.helperText,children:M})]})]})}})};Hv.displayName="FormMultiSelect";const Yv=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M8.4 17L12 13.4L15.6 17L17 15.6L13.4 12L17 8.4L15.6 7L12 10.6L8.4 7L7 8.4L10.6 12L7 15.6L8.4 17ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"currentColor"})),qv=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M12 17C12.2833 17 12.5208 16.9042 12.7125 16.7125C12.9042 16.5208 13 16.2833 13 16C13 15.7167 12.9042 15.4792 12.7125 15.2875C12.5208 15.0958 12.2833 15 12 15C11.7167 15 11.4792 15.0958 11.2875 15.2875C11.0958 15.4792 11 15.7167 11 16C11 16.2833 11.0958 16.5208 11.2875 16.7125C11.4792 16.9042 11.7167 17 12 17ZM11 13H13V7H11V13ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22Z",fill:"currentColor"})),Q$=e=>P.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M19.6 21L13.3 14.7C12.8 15.1 12.225 15.4167 11.575 15.65C10.925 15.8833 10.2333 16 9.5 16C7.68333 16 6.14583 15.3708 4.8875 14.1125C3.62917 12.8542 3 11.3167 3 9.5C3 7.68333 3.62917 6.14583 4.8875 4.8875C6.14583 3.62917 7.68333 3 9.5 3C11.3167 3 12.8542 3.62917 14.1125 4.8875C15.3708 6.14583 16 7.68333 16 9.5C16 10.2333 15.8833 10.925 15.65 11.575C15.4167 12.225 15.1 12.8 14.7 13.3L21 19.6L19.6 21ZM9.5 14C10.75 14 11.8125 13.5625 12.6875 12.6875C13.5625 11.8125 14 10.75 14 9.5C14 8.25 13.5625 7.1875 12.6875 6.3125C11.8125 5.4375 10.75 5 9.5 5C8.25 5 7.1875 5.4375 6.3125 6.3125C5.4375 7.1875 5 8.25 5 9.5C5 10.75 5.4375 11.8125 6.3125 12.6875C7.1875 13.5625 8.25 14 9.5 14Z",fill:"currentColor"})),J$="_formInput_84pfi_1",eV="_labelWrapper_84pfi_5",tV="_inputLabel_84pfi_9",nV="_startAdornment_84pfi_163",oV="_endAdornment_84pfi_170",rV="_iconButton_84pfi_177",sV="_clearButton_84pfi_197",iV="_errorButton_84pfi_216",Ut={formInput:J$,labelWrapper:eV,inputLabel:tV,startAdornment:nV,endAdornment:oV,iconButton:rV,clearButton:sV,errorButton:iV},Gv=({control:e,name:t,label:n,type:o="text",placeholder:r,helperText:i,required:a=!1,fullWidth:l=!0,disabled:c=!1,className:u,startIcon:d,endIcon:f,onEndIconClick:p,clearable:h=!1,...m})=>{const y=q.useTheme().palette.mode==="dark";return b.jsx(bd,{name:t,control:e,render:({field:v,fieldState:C})=>{var k;const x=!!C.error,S=x?(k=C.error)==null?void 0:k.message:i,T=v.value!==void 0&&v.value!==null&&v.value!=="",E=()=>{v.onChange("")},M=d?b.jsx(q.InputAdornment,{position:"start",className:Ut.startAdornment,children:b.jsx("span",{className:Ut.iconButton,children:d})}):void 0;let A;return f?A=b.jsx(q.InputAdornment,{position:"end",className:Ut.endAdornment,children:b.jsx("span",{onClick:p,className:Ut.iconButton,role:p?"button":void 0,tabIndex:p?-1:void 0,children:f})}):h&&T&&!c&&(x?A=b.jsx(q.InputAdornment,{position:"end",className:Ut.endAdornment,children:b.jsx("span",{className:Ut.errorButton,children:b.jsx(qv,{})})}):A=b.jsx(q.InputAdornment,{position:"end",className:Ut.endAdornment,children:b.jsx("span",{onClick:E,className:Ut.clearButton,role:"button","aria-label":"Limpar campo",tabIndex:-1,children:b.jsx(Yv,{})})})),b.jsxs("div",{className:`${Ut.formInput} ${u||""}`,"data-theme":y?"dark":"light",children:[b.jsx("div",{className:Ut.labelWrapper,children:b.jsxs("span",{className:Ut.inputLabel,children:[n,a?" *":""]})}),b.jsx(q.TextField,{...v,...m,type:o,placeholder:r,required:!1,fullWidth:l,disabled:c,error:x,helperText:S,variant:"outlined",className:Ut.input,InputLabelProps:{shrink:!1},inputProps:{"aria-label":n},InputProps:{className:Ut.inputRoot,...M&&{startAdornment:M},...A&&{endAdornment:A}}})]})}})};Gv.displayName="FormInput";const aV="_viewChip_18qqe_1",lV="_active_18qqe_61",cV="_icon_18qqe_76",uV="_label_18qqe_81",fi={viewChip:aV,active:lV,icon:cV,label:uV},Kv=({label:e,icon:t,active:n=!1,className:o,onClick:r,ref:i,...a})=>{const c=q.useTheme().palette.mode==="dark";return b.jsxs(q.Box,{ref:i,className:`${fi.viewChip} ${n?fi.active:""} ${o||""}`.trim(),"data-theme":c?"dark":"light",onClick:r,role:"button",tabIndex:0,onKeyDown:u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),r==null||r(u))},"aria-label":e,"aria-pressed":n,component:"div",...a,children:[t&&b.jsx(q.Box,{className:fi.icon,component:"div",children:t}),b.jsx(q.Box,{className:fi.label,component:"span",children:e})]})};Kv.displayName="ViewChip";exports.Button=Mc;exports.CAMERA_ALGORITHM_FACIAL=Ns;exports.CAMERA_ALGORITHM_LPR=_s;exports.CameraCard=kM;exports.CancelIcon=Yv;exports.CountCard=qS;exports.DisplayTypes=Nv;exports.ErrorIcon=qv;exports.FilterButton=Kh;exports.FilterChip=Zh;exports.FilterModal=bm;exports.FormInput=Gv;exports.FormMultiSelect=Hv;exports.FormSelect=Uv;exports.GoogleMap=fy;exports.MapContent=hu;exports.MapMarkers=gy;exports.MapSpot=fu;exports.ModuleMenu=Sy;exports.NotFoundContent=by;exports.ResponsiveGrid=jv;exports.SearchBar=yy;exports.SearchIcon=Q$;exports.SidebarMenu=xy;exports.SplitLayout=_v;exports.VideoControlProvider=Iy;exports.VideoPlayer=xu;exports.VideoPlayerWebRTC=Av;exports.VideoTimeline=Iv;exports.ViewChip=Kv;exports.VisioThemeProvider=r0;exports.ZoomControls=jM;exports.darkColors=ft;exports.darkTheme=qh;exports.lightColors=dt;exports.lightTheme=Yh;exports.radiiTokens=pi;exports.spacingScale=t0;exports.spacingTokens=Uh;exports.typographyTokens=Mt;exports.useGoogleMapContext=pu;exports.useVideoControl=vu;exports.useVideoControlRequired=Wk;exports.useVisioTheme=s0;
245
245
  //# sourceMappingURL=index.cjs.js.map