@visio-io/design-system 1.6.9 → 1.7.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.
Files changed (48) hide show
  1. package/dist/index.cjs.js +168 -31
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.es.js +32555 -8099
  4. package/dist/index.es.js.map +1 -1
  5. package/dist/style.css +1 -1
  6. package/dist/types/components/CameraCard/CameraCard.d.ts +10 -1
  7. package/dist/types/components/CameraCard/CameraCard.stories.d.ts +2 -0
  8. package/dist/types/components/FilterChip/FilterChip.d.ts +1 -1
  9. package/dist/types/components/FilterChip/types.d.ts +2 -0
  10. package/dist/types/components/GoogleMap/components/MapMarkers.d.ts +1 -1
  11. package/dist/types/components/GoogleMap/constants.d.ts +10 -0
  12. package/dist/types/components/GoogleMap/context/GoogleMapContext.d.ts +1 -0
  13. package/dist/types/components/GoogleMap/index.d.ts +1 -0
  14. package/dist/types/components/GoogleMap/types.d.ts +18 -0
  15. package/dist/types/components/MapSpot/ArrowIcon.d.ts +9 -0
  16. package/dist/types/components/MapSpot/ConeIcon.d.ts +9 -0
  17. package/dist/types/components/MapSpot/FacialIcon.d.ts +10 -0
  18. package/dist/types/components/MapSpot/LPRIcon.d.ts +10 -0
  19. package/dist/types/components/MapSpot/MapSpot.d.ts +1 -1
  20. package/dist/types/components/MapSpot/MapSpot.stories.d.ts +1 -0
  21. package/dist/types/components/MapSpot/utils.d.ts +4 -1
  22. package/dist/types/components/VideoControlContext.d.ts +104 -0
  23. package/dist/types/components/VideoControlContext.stories.d.ts +17 -0
  24. package/dist/types/components/VideoPlayer/VideoPlayer.d.ts +1 -1
  25. package/dist/types/components/VideoPlayer/VideoPlayer.stories.d.ts +4 -0
  26. package/dist/types/components/VideoPlayer/types.d.ts +8 -0
  27. package/dist/types/components/VideoPlayer/useVideoPlayer.d.ts +15 -0
  28. package/dist/types/components/VideoPlayer/utils.d.ts +4 -0
  29. package/dist/types/components/VideoPlayerWebRTC/VideoPlayerWebRTC.d.ts +5 -6
  30. package/dist/types/components/VideoPlayerWebRTC/VideoPlayerWebRTC.stories.d.ts +4 -0
  31. package/dist/types/components/VideoPlayerWebRTC/types.d.ts +25 -2
  32. package/dist/types/components/VideoTimeline/VideoTimeline.d.ts +1 -1
  33. package/dist/types/components/VideoTimeline/VideoTimeline.stories.d.ts +6 -0
  34. package/dist/types/components/VideoTimeline/atoms.d.ts +1 -20
  35. package/dist/types/components/VideoTimeline/components/EventsTrack.d.ts +2 -5
  36. package/dist/types/components/VideoTimeline/components/TimeScale.d.ts +1 -3
  37. package/dist/types/components/VideoTimeline/components/VideoTrack.d.ts +2 -3
  38. package/dist/types/components/VideoTimeline/index.d.ts +1 -2
  39. package/dist/types/components/VideoTimeline/types.d.ts +91 -8
  40. package/dist/types/components/VideoTimeline/useVideoTimeline.d.ts +14 -7
  41. package/dist/types/components/VideoTimeline/utils/timeFormat.d.ts +5 -0
  42. package/dist/types/components/ViewChip/ViewChip.d.ts +5 -0
  43. package/dist/types/components/ViewChip/ViewChip.stories.d.ts +15 -0
  44. package/dist/types/components/ViewChip/index.d.ts +2 -0
  45. package/dist/types/components/ViewChip/types.d.ts +8 -0
  46. package/dist/types/components/index.d.ts +8 -6
  47. package/package.json +85 -81
  48. package/src/styles/tokens/css-variables.scss +62 -0
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=require("@mui/material/styles"),x=require("react"),E=require("@mui/material"),De=require("@mui/icons-material"),ys=require("@mui/system"),Nd=require("@emotion/styled");require("@emotion/react");const $d=require("react-dom");function Vd(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const _e=Vd(x),pe={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"},ge={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"},Ae={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}},Tl={xxs:2,xs:4,sm:8,md:12,lg:16,xl:24,xxl:32,xxxl:64},tr={sm:4,md:8,lg:12,xl:16,pill:999},wl={shape:{borderRadius:tr.md,borderRadiusSm:tr.sm},spacing:8,components:{MuiButton:{styleOverrides:{root:{borderRadius:tr.md,fontWeight:Ae.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:Ae.fontFamily,fontWeightRegular:Ae.fontWeight.regular,fontWeightMedium:Ae.fontWeight.medium,fontWeightBold:Ae.fontWeight.bold,h1:{fontSize:Ae.fontSize.xxl,fontWeight:Ae.fontWeight.bold,lineHeight:Ae.lineHeight.tight},h2:{fontSize:Ae.fontSize.xl,fontWeight:Ae.fontWeight.bold,lineHeight:Ae.lineHeight.tight},body1:{fontSize:Ae.fontSize.md,lineHeight:Ae.lineHeight.normal},body2:{fontSize:Ae.fontSize.sm,lineHeight:Ae.lineHeight.normal},button:{fontWeight:Ae.fontWeight.semibold,textTransform:"none"}}},_l=X.createTheme({...wl,palette:{mode:"light",primary:{main:pe.primary,contrastText:pe.onPrimary},secondary:{main:pe.secondary,contrastText:pe.onSecondary},error:{main:pe.error,contrastText:pe.onError},background:{default:pe.surface,paper:pe.surface},text:{primary:pe.onSurface,secondary:pe.onSurfaceVariant},divider:pe.outline},visio:{surfaceVariant:pe.surfaceVariant,onSurfaceVariant:pe.onSurfaceVariant,inverseSurface:pe.inverseSurface,inverseOnSurface:pe.inverseOnSurface,inversePrimary:pe.inversePrimary,outline:pe.outline,tertiary:{main:pe.tertiary,contrastText:pe.onTertiary,container:pe.tertiaryContainer,onContainer:pe.onTertiaryContainer}}}),El=X.createTheme({...wl,palette:{mode:"dark",primary:{main:ge.primary,contrastText:ge.onPrimary},secondary:{main:ge.secondary,contrastText:ge.onSecondary},error:{main:ge.error,contrastText:ge.onError},background:{default:ge.surface,paper:ge.surface},text:{primary:ge.onSurface,secondary:ge.onSurfaceVariant},divider:ge.outline},visio:{surfaceVariant:ge.surfaceVariant,onSurfaceVariant:ge.onSurfaceVariant,inverseSurface:ge.inverseSurface,inverseOnSurface:ge.inverseOnSurface,inversePrimary:ge.inversePrimary,outline:ge.outline,tertiary:{main:ge.tertiary,contrastText:ge.onTertiary,container:ge.tertiaryContainer,onContainer:ge.onTertiaryContainer}}}),Fd=Tl;function Al(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Io={exports:{}},ln={};/**
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={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var mi;function zd(){if(mi)return ln;mi=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var i=null;if(s!==void 0&&(i=""+s),o.key!==void 0&&(i=""+o.key),"key"in o){s={};for(var a in o)a!=="key"&&(s[a]=o[a])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:i,ref:o!==void 0?o:null,props:s}}return ln.Fragment=t,ln.jsx=n,ln.jsxs=n,ln}var cn={};/**
9
+ */var xd;function n0(){if(xd)return Dr;xd=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(o,r,i){var a=null;if(i!==void 0&&(a=""+i),r.key!==void 0&&(a=""+r.key),"key"in r){i={};for(var l in r)l!=="key"&&(i[l]=r[l])}else i=r;return r=i.ref,{$$typeof:e,type:o,key:a,ref:r!==void 0?r:null,props:i}}return Dr.Fragment=t,Dr.jsx=n,Dr.jsxs=n,Dr}var Rr={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -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 pi;function Wd(){return pi||(pi=1,process.env.NODE_ENV!=="production"&&function(){function e(A){if(A==null)return null;if(typeof A=="function")return A.$$typeof===N?null:A.displayName||A.name||null;if(typeof A=="string")return A;switch(A){case v:return"Fragment";case _:return"Profiler";case S:return"StrictMode";case w:return"Suspense";case P:return"SuspenseList";case V:return"Activity"}if(typeof A=="object")switch(typeof A.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),A.$$typeof){case m:return"Portal";case C:return A.displayName||"Context";case b:return(A._context.displayName||"Context")+".Consumer";case T:var $=A.render;return A=A.displayName,A||(A=$.displayName||$.name||"",A=A!==""?"ForwardRef("+A+")":"ForwardRef"),A;case M:return $=A.displayName||null,$!==null?$:e(A.type)||"Memo";case k:$=A._payload,A=A._init;try{return e(A($))}catch{}}return null}function t(A){return""+A}function n(A){try{t(A);var $=!1}catch{$=!0}if($){$=console;var L=$.error,B=typeof Symbol=="function"&&Symbol.toStringTag&&A[Symbol.toStringTag]||A.constructor.name||"Object";return L.call($,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",B),t(A)}}function r(A){if(A===v)return"<>";if(typeof A=="object"&&A!==null&&A.$$typeof===k)return"<...>";try{var $=e(A);return $?"<"+$+">":"<...>"}catch{return"<...>"}}function o(){var A=y.A;return A===null?null:A.getOwner()}function s(){return Error("react-stack-top-frame")}function i(A){if(R.call(A,"key")){var $=Object.getOwnPropertyDescriptor(A,"key").get;if($&&$.isReactWarning)return!1}return A.key!==void 0}function a(A,$){function L(){U||(U=!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)",$))}L.isReactWarning=!0,Object.defineProperty(A,"key",{get:L,configurable:!0})}function l(){var A=e(this.type);return G[A]||(G[A]=!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.")),A=this.props.ref,A!==void 0?A:null}function u(A,$,L,B,Y,H){var W=L.ref;return A={$$typeof:p,type:A,key:$,props:L,_owner:B},(W!==void 0?W:null)!==null?Object.defineProperty(A,"ref",{enumerable:!1,get:l}):Object.defineProperty(A,"ref",{enumerable:!1,value:null}),A._store={},Object.defineProperty(A._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(A,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(A,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.defineProperty(A,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:H}),Object.freeze&&(Object.freeze(A.props),Object.freeze(A)),A}function c(A,$,L,B,Y,H){var W=$.children;if(W!==void 0)if(B)if(O(W)){for(B=0;B<W.length;B++)d(W[B]);Object.freeze&&Object.freeze(W)}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 d(W);if(R.call($,"key")){W=e(A);var Z=Object.keys($).filter(function(J){return J!=="key"});B=0<Z.length?"{key: someKey, "+Z.join(": ..., ")+": ...}":"{key: someKey}",j[W+B]||(Z=0<Z.length?"{"+Z.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 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:
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} />`,B,W,Z,W),j[W+B]=!0)}if(W=null,L!==void 0&&(n(L),W=""+L),i($)&&(n($.key),W=""+$.key),"key"in $){L={};for(var q in $)q!=="key"&&(L[q]=$[q])}else L=$;return W&&a(L,typeof A=="function"?A.displayName||A.name||"Unknown":A),u(A,W,L,o(),Y,H)}function d(A){f(A)?A._store&&(A._store.validated=1):typeof A=="object"&&A!==null&&A.$$typeof===k&&(A._payload.status==="fulfilled"?f(A._payload.value)&&A._payload.value._store&&(A._payload.value._store.validated=1):A._store&&(A._store.validated=1))}function f(A){return typeof A=="object"&&A!==null&&A.$$typeof===p}var h=x,p=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),C=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),N=Symbol.for("react.client.reference"),y=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R=Object.prototype.hasOwnProperty,O=Array.isArray,F=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(A){return A()}};var U,G={},D=h.react_stack_bottom_frame.bind(h,s)(),Q=F(r(s)),j={};cn.Fragment=v,cn.jsx=function(A,$,L){var B=1e4>y.recentlyCreatedOwnerStacks++;return c(A,$,L,!1,B?Error("react-stack-top-frame"):D,B?F(r(A)):Q)},cn.jsxs=function(A,$,L){var B=1e4>y.recentlyCreatedOwnerStacks++;return c(A,$,L,!0,B?Error("react-stack-top-frame"):D,B?F(r(A)):Q)}}()),cn}process.env.NODE_ENV==="production"?Io.exports=zd():Io.exports=Wd();var g=Io.exports;const Ml=x.createContext(null),Ud=({children:e,defaultMode:t="light",mode:n,onModeChange:r,enableCssBaseline:o=!0})=>{const[s,i]=x.useState(n??t),a=n??s;x.useEffect(()=>{n&&i(n)},[n]);const l=x.useCallback(f=>{n||i(f),r==null||r(f)},[n,r]),u=x.useCallback(()=>{l(a==="light"?"dark":"light")},[a,l]),c=x.useMemo(()=>a==="dark"?El:_l,[a]),d=x.useMemo(()=>({mode:a,setMode:l,toggleMode:u,theme:c}),[a,l,u,c]);return g.jsx(Ml.Provider,{value:d,children:g.jsxs(E.ThemeProvider,{theme:c,children:[o?g.jsx(E.CssBaseline,{}):null,e]})})},Hd=()=>{const e=x.useContext(Ml);if(!e)throw new Error("useVisioTheme must be used within VisioThemeProvider.");return e},Gd="_button_1x96v_1",Kd="_borderRadiusNone_1x96v_8",Yd="_borderRadiusSmall_1x96v_12",Zd="_borderRadiusMedium_1x96v_16",qd="_borderRadiusLarge_1x96v_20",Xd="_borderRadiusRound_1x96v_24",Mt={button:Gd,borderRadiusNone:Kd,borderRadiusSmall:Yd,borderRadiusMedium:Zd,borderRadiusLarge:qd,borderRadiusRound:Xd},Jd=(e,t="medium")=>{const n=e??t;if(typeof n=="number")return"";switch(n){case"none":return Mt.borderRadiusNone;case"small":return Mt.borderRadiusSmall;case"medium":return Mt.borderRadiusMedium;case"large":return Mt.borderRadiusLarge;case"round":return Mt.borderRadiusRound;default:return Mt.borderRadiusMedium}},Qd=e=>{if(typeof e=="number")return`${e}px`},ef=(e,t,n)=>{const r=n||t;if(r)return o=>{if(e){o.preventDefault();return}r(o)}},vs=x.forwardRef(({children:e,loading:t=!1,loadingText:n,startIcon:r,endIcon:o,variant:s="contained",size:i="medium",color:a="primary",borderRadius:l="medium",fullWidth:u=!1,disabled:c=!1,type:d="button",className:f,onClick:h,onAction:p,...m},v)=>{const S=c||t,_=Jd(l),b=Qd(l),C=ef(S,h,p),T=`${Mt.button} ${_} ${f||""}`.trim();return g.jsx(E.Button,{ref:v,variant:s,size:i,color:a,fullWidth:u,disabled:S,type:d,onClick:C,startIcon:t?g.jsx(E.CircularProgress,{size:i==="small"?16:i==="medium"?20:24,color:"inherit"}):r,endIcon:t?void 0:o,className:T,style:b?{borderRadius:b}:void 0,...m,children:t&&n?n:e})});vs.displayName="Button";const tf=e=>{if(e)return t=>{e(t)}},nf="_filterButton_8fgad_1",rf={filterButton:nf},Pl=x.forwardRef(({children:e="Filtros",onClick:t,className:n,...r},o)=>{const i=E.useTheme().palette.mode==="dark",a=tf(t);return g.jsx(E.Button,{ref:o,variant:"outlined",onClick:a,className:`${rf.filterButton} ${n||""}`,"data-theme":i?"dark":"light",...r,children:e})});Pl.displayName="FilterButton";const of=(e,t)=>n=>{n.stopPropagation(),t==null||t(n),e()},sf="_filterChip_1ty7d_1",af="_icon_1ty7d_60",lf="_label_1ty7d_76",cf="_overlay_1ty7d_88",uf="_deleteIcon_1ty7d_102",un={filterChip:sf,icon:af,label:lf,overlay:cf,deleteIcon:uf},kl=({label:e,icon:t,onRemove:n,className:r,onClick:o,ref:s,...i})=>{const l=E.useTheme().palette.mode==="dark",u=of(n,o);return g.jsxs(E.Box,{ref:s,className:`${un.filterChip} ${r||""}`.trim(),"data-theme":l?"dark":"light",onClick:u,role:"button",tabIndex:0,onKeyDown:c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),n())},"aria-label":`Remover filtro ${e}`,component:"div",...i,children:[t&&g.jsx(E.Box,{className:un.icon,component:"div",children:t}),g.jsx(E.Box,{className:un.label,component:"span",children:e}),g.jsx(E.Box,{className:un.overlay,component:"div",children:g.jsx(De.Delete,{className:un.deleteIcon})})]})};kl.displayName="FilterChip";const gi=e=>e,df=()=>{let e=gi;return{configure(t){e=t},generate(t){return e(t)},reset(){e=gi}}},ff=df();function gt(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function jt(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":gt(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ro={exports:{}},zn={exports:{}},ne={};/** @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===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
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 yi;function hf(){if(yi)return ne;yi=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function b(T){if(typeof T=="object"&&T!==null){var w=T.$$typeof;switch(w){case t:switch(T=T.type,T){case l:case u:case r:case s:case o:case d:return T;default:switch(T=T&&T.$$typeof,T){case a:case c:case p:case h:case i:return T;default:return w}}case n:return w}}}function C(T){return b(T)===u}return ne.AsyncMode=l,ne.ConcurrentMode=u,ne.ContextConsumer=a,ne.ContextProvider=i,ne.Element=t,ne.ForwardRef=c,ne.Fragment=r,ne.Lazy=p,ne.Memo=h,ne.Portal=n,ne.Profiler=s,ne.StrictMode=o,ne.Suspense=d,ne.isAsyncMode=function(T){return C(T)||b(T)===l},ne.isConcurrentMode=C,ne.isContextConsumer=function(T){return b(T)===a},ne.isContextProvider=function(T){return b(T)===i},ne.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},ne.isForwardRef=function(T){return b(T)===c},ne.isFragment=function(T){return b(T)===r},ne.isLazy=function(T){return b(T)===p},ne.isMemo=function(T){return b(T)===h},ne.isPortal=function(T){return b(T)===n},ne.isProfiler=function(T){return b(T)===s},ne.isStrictMode=function(T){return b(T)===o},ne.isSuspense=function(T){return b(T)===d},ne.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===r||T===u||T===s||T===o||T===d||T===f||typeof T=="object"&&T!==null&&(T.$$typeof===p||T.$$typeof===h||T.$$typeof===i||T.$$typeof===a||T.$$typeof===c||T.$$typeof===v||T.$$typeof===S||T.$$typeof===_||T.$$typeof===m)},ne.typeOf=b,ne}var re={};/** @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,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
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 vi;function mf(){return vi||(vi=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function b(z){return typeof z=="string"||typeof z=="function"||z===r||z===u||z===s||z===o||z===d||z===f||typeof z=="object"&&z!==null&&(z.$$typeof===p||z.$$typeof===h||z.$$typeof===i||z.$$typeof===a||z.$$typeof===c||z.$$typeof===v||z.$$typeof===S||z.$$typeof===_||z.$$typeof===m)}function C(z){if(typeof z=="object"&&z!==null){var Ee=z.$$typeof;switch(Ee){case t:var Ge=z.type;switch(Ge){case l:case u:case r:case s:case o:case d:return Ge;default:var ct=Ge&&Ge.$$typeof;switch(ct){case a:case c:case p:case h:case i:return ct;default:return Ee}}case n:return Ee}}}var T=l,w=u,P=a,M=i,k=t,V=c,N=r,y=p,R=h,O=n,F=s,U=o,G=d,D=!1;function Q(z){return D||(D=!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.")),j(z)||C(z)===l}function j(z){return C(z)===u}function A(z){return C(z)===a}function $(z){return C(z)===i}function L(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function B(z){return C(z)===c}function Y(z){return C(z)===r}function H(z){return C(z)===p}function W(z){return C(z)===h}function Z(z){return C(z)===n}function q(z){return C(z)===s}function J(z){return C(z)===o}function me(z){return C(z)===d}re.AsyncMode=T,re.ConcurrentMode=w,re.ContextConsumer=P,re.ContextProvider=M,re.Element=k,re.ForwardRef=V,re.Fragment=N,re.Lazy=y,re.Memo=R,re.Portal=O,re.Profiler=F,re.StrictMode=U,re.Suspense=G,re.isAsyncMode=Q,re.isConcurrentMode=j,re.isContextConsumer=A,re.isContextProvider=$,re.isElement=L,re.isForwardRef=B,re.isFragment=Y,re.isLazy=H,re.isMemo=W,re.isPortal=Z,re.isProfiler=q,re.isStrictMode=J,re.isSuspense=me,re.isValidElementType=b,re.typeOf=C}()),re}var bi;function Il(){return bi||(bi=1,process.env.NODE_ENV==="production"?zn.exports=hf():zn.exports=mf()),zn.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,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}/*
37
37
  object-assign
38
38
  (c) Sindre Sorhus
39
39
  @license MIT
40
- */var Yr,xi;function pf(){if(xi)return Yr;xi=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var i={},a=0;a<10;a++)i["_"+String.fromCharCode(a)]=a;var l=Object.getOwnPropertyNames(i).map(function(c){return i[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Yr=o()?Object.assign:function(s,i){for(var a,l=r(s),u,c=1;c<arguments.length;c++){a=Object(arguments[c]);for(var d in a)t.call(a,d)&&(l[d]=a[d]);if(e){u=e(a);for(var f=0;f<u.length;f++)n.call(a,u[f])&&(l[u[f]]=a[u[f]])}}return l},Yr}var Zr,Si;function bs(){if(Si)return Zr;Si=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Zr=e,Zr}var qr,Ci;function Rl(){return Ci||(Ci=1,qr=Function.call.bind(Object.prototype.hasOwnProperty)),qr}var Xr,Ti;function gf(){if(Ti)return Xr;Ti=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=bs(),n={},r=Rl();e=function(s){var i="Warning: "+s;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(s,i,a,l,u){if(process.env.NODE_ENV!=="production"){for(var c in s)if(r(s,c)){var d;try{if(typeof s[c]!="function"){var f=Error((l||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=s[c](i,c,l,a,null,t)}catch(p){d=p}if(d&&!(d instanceof Error)&&e((l||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var h=u?u():"";e("Failed "+a+" type: "+d.message+(h??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Xr=o,Xr}var Jr,wi;function yf(){if(wi)return Jr;wi=1;var e=Il(),t=pf(),n=bs(),r=Rl(),o=gf(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function i(){return null}return Jr=function(a,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function d(j){var A=j&&(u&&j[u]||j[c]);if(typeof A=="function")return A}var f="<<anonymous>>",h={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:_(),arrayOf:b,element:C(),elementType:T(),instanceOf:w,node:V(),objectOf:M,oneOf:P,oneOfType:k,shape:y,exact:R};function p(j,A){return j===A?j!==0||1/j===1/A:j!==j&&A!==A}function m(j,A){this.message=j,this.data=A&&typeof A=="object"?A:{},this.stack=""}m.prototype=Error.prototype;function v(j){if(process.env.NODE_ENV!=="production")var A={},$=0;function L(Y,H,W,Z,q,J,me){if(Z=Z||f,J=J||W,me!==n){if(l){var z=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 z.name="Invariant Violation",z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ee=Z+":"+W;!A[Ee]&&$<3&&(s("You are manually calling a React.PropTypes validation function for the `"+J+"` prop on `"+Z+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),A[Ee]=!0,$++)}}return H[W]==null?Y?H[W]===null?new m("The "+q+" `"+J+"` is marked as required "+("in `"+Z+"`, but its value is `null`.")):new m("The "+q+" `"+J+"` is marked as required in "+("`"+Z+"`, but its value is `undefined`.")):null:j(H,W,Z,q,J)}var B=L.bind(null,!1);return B.isRequired=L.bind(null,!0),B}function S(j){function A($,L,B,Y,H,W){var Z=$[L],q=U(Z);if(q!==j){var J=G(Z);return new m("Invalid "+Y+" `"+H+"` of type "+("`"+J+"` supplied to `"+B+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return v(A)}function _(){return v(i)}function b(j){function A($,L,B,Y,H){if(typeof j!="function")return new m("Property `"+H+"` of component `"+B+"` has invalid PropType notation inside arrayOf.");var W=$[L];if(!Array.isArray(W)){var Z=U(W);return new m("Invalid "+Y+" `"+H+"` of type "+("`"+Z+"` supplied to `"+B+"`, expected an array."))}for(var q=0;q<W.length;q++){var J=j(W,q,B,Y,H+"["+q+"]",n);if(J instanceof Error)return J}return null}return v(A)}function C(){function j(A,$,L,B,Y){var H=A[$];if(!a(H)){var W=U(H);return new m("Invalid "+B+" `"+Y+"` of type "+("`"+W+"` supplied to `"+L+"`, expected a single ReactElement."))}return null}return v(j)}function T(){function j(A,$,L,B,Y){var H=A[$];if(!e.isValidElementType(H)){var W=U(H);return new m("Invalid "+B+" `"+Y+"` of type "+("`"+W+"` supplied to `"+L+"`, expected a single ReactElement type."))}return null}return v(j)}function w(j){function A($,L,B,Y,H){if(!($[L]instanceof j)){var W=j.name||f,Z=Q($[L]);return new m("Invalid "+Y+" `"+H+"` of type "+("`"+Z+"` supplied to `"+B+"`, expected ")+("instance of `"+W+"`."))}return null}return v(A)}function P(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),i;function A($,L,B,Y,H){for(var W=$[L],Z=0;Z<j.length;Z++)if(p(W,j[Z]))return null;var q=JSON.stringify(j,function(me,z){var Ee=G(z);return Ee==="symbol"?String(z):z});return new m("Invalid "+Y+" `"+H+"` of value `"+String(W)+"` "+("supplied to `"+B+"`, expected one of "+q+"."))}return v(A)}function M(j){function A($,L,B,Y,H){if(typeof j!="function")return new m("Property `"+H+"` of component `"+B+"` has invalid PropType notation inside objectOf.");var W=$[L],Z=U(W);if(Z!=="object")return new m("Invalid "+Y+" `"+H+"` of type "+("`"+Z+"` supplied to `"+B+"`, expected an object."));for(var q in W)if(r(W,q)){var J=j(W,q,B,Y,H+"."+q,n);if(J instanceof Error)return J}return null}return v(A)}function k(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var A=0;A<j.length;A++){var $=j[A];if(typeof $!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+D($)+" at index "+A+"."),i}function L(B,Y,H,W,Z){for(var q=[],J=0;J<j.length;J++){var me=j[J],z=me(B,Y,H,W,Z,n);if(z==null)return null;z.data&&r(z.data,"expectedType")&&q.push(z.data.expectedType)}var Ee=q.length>0?", expected one of type ["+q.join(", ")+"]":"";return new m("Invalid "+W+" `"+Z+"` supplied to "+("`"+H+"`"+Ee+"."))}return v(L)}function V(){function j(A,$,L,B,Y){return O(A[$])?null:new m("Invalid "+B+" `"+Y+"` supplied to "+("`"+L+"`, expected a ReactNode."))}return v(j)}function N(j,A,$,L,B){return new m((j||"React class")+": "+A+" type `"+$+"."+L+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+B+"`.")}function y(j){function A($,L,B,Y,H){var W=$[L],Z=U(W);if(Z!=="object")return new m("Invalid "+Y+" `"+H+"` of type `"+Z+"` "+("supplied to `"+B+"`, expected `object`."));for(var q in j){var J=j[q];if(typeof J!="function")return N(B,Y,H,q,G(J));var me=J(W,q,B,Y,H+"."+q,n);if(me)return me}return null}return v(A)}function R(j){function A($,L,B,Y,H){var W=$[L],Z=U(W);if(Z!=="object")return new m("Invalid "+Y+" `"+H+"` of type `"+Z+"` "+("supplied to `"+B+"`, expected `object`."));var q=t({},$[L],j);for(var J in q){var me=j[J];if(r(j,J)&&typeof me!="function")return N(B,Y,H,J,G(me));if(!me)return new m("Invalid "+Y+" `"+H+"` key `"+J+"` supplied to `"+B+"`.\nBad object: "+JSON.stringify($[L],null," ")+`
41
- Valid keys: `+JSON.stringify(Object.keys(j),null," "));var z=me(W,J,B,Y,H+"."+J,n);if(z)return z}return null}return v(A)}function O(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every(O);if(j===null||a(j))return!0;var A=d(j);if(A){var $=A.call(j),L;if(A!==j.entries){for(;!(L=$.next()).done;)if(!O(L.value))return!1}else for(;!(L=$.next()).done;){var B=L.value;if(B&&!O(B[1]))return!1}}else return!1;return!0;default:return!1}}function F(j,A){return j==="symbol"?!0:A?A["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&A instanceof Symbol:!1}function U(j){var A=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":F(A,j)?"symbol":A}function G(j){if(typeof j>"u"||j===null)return""+j;var A=U(j);if(A==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return A}function D(j){var A=G(j);switch(A){case"array":case"object":return"an "+A;case"boolean":case"date":case"regexp":return"a "+A;default:return A}}function Q(j){return!j.constructor||!j.constructor.name?f:j.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},Jr}var Qr,_i;function vf(){if(_i)return Qr;_i=1;var e=bs();function t(){}function n(){}return n.resetWarningCache=t,Qr=function(){function r(i,a,l,u,c,d){if(d!==e){var f=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 f.name="Invariant Violation",f}}r.isRequired=r;function o(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Qr}if(process.env.NODE_ENV!=="production"){var bf=Il(),xf=!0;Ro.exports=yf()(bf.isElement,xf)}else Ro.exports=vf()();var Sf=Ro.exports;const te=Al(Sf);function Ol(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ol(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ll(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ol(e))&&(r&&(r+=" "),r+=t);return r}function Cf(e,t,n=void 0){const r={};for(const o in e){const s=e[o];let i="",a=!0;for(let l=0;l<s.length;l+=1){const u=s[l];u&&(i+=(a===!0?"":" ")+t(u),a=!1,n&&n[u]&&(i+=" "+n[u]))}r[o]=i}return r}var Oo={exports:{}},ie={};/**
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={};/**
42
42
  * @license React
43
43
  * react-is.production.js
44
44
  *
@@ -46,7 +46,7 @@ Valid keys: `+JSON.stringify(Object.keys(j),null," "));var z=me(W,J,B,Y,H+"."+J
46
46
  *
47
47
  * This source code is licensed under the MIT license found in the
48
48
  * LICENSE file in the root directory of this source tree.
49
- */var Ei;function Tf(){if(Ei)return ie;Ei=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function p(m){if(typeof m=="object"&&m!==null){var v=m.$$typeof;switch(v){case e:switch(m=m.type,m){case n:case o:case r:case l:case u:case f:return m;default:switch(m=m&&m.$$typeof,m){case i:case a:case d:case c:return m;case s:return m;default:return v}}case t:return v}}}return ie.ContextConsumer=s,ie.ContextProvider=i,ie.Element=e,ie.ForwardRef=a,ie.Fragment=n,ie.Lazy=d,ie.Memo=c,ie.Portal=t,ie.Profiler=o,ie.StrictMode=r,ie.Suspense=l,ie.SuspenseList=u,ie.isContextConsumer=function(m){return p(m)===s},ie.isContextProvider=function(m){return p(m)===i},ie.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},ie.isForwardRef=function(m){return p(m)===a},ie.isFragment=function(m){return p(m)===n},ie.isLazy=function(m){return p(m)===d},ie.isMemo=function(m){return p(m)===c},ie.isPortal=function(m){return p(m)===t},ie.isProfiler=function(m){return p(m)===o},ie.isStrictMode=function(m){return p(m)===r},ie.isSuspense=function(m){return p(m)===l},ie.isSuspenseList=function(m){return p(m)===u},ie.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===o||m===r||m===l||m===u||typeof m=="object"&&m!==null&&(m.$$typeof===d||m.$$typeof===c||m.$$typeof===i||m.$$typeof===s||m.$$typeof===a||m.$$typeof===h||m.getModuleId!==void 0)},ie.typeOf=p,ie}var ae={};/**
49
+ */var Ad;function j0(){if(Ad)return Ge;Ad=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function m(g){if(typeof g=="object"&&g!==null){var y=g.$$typeof;switch(y){case e:switch(g=g.type,g){case n:case r:case o:case c:case u:case p:return g;default:switch(g=g&&g.$$typeof,g){case a:case l:case f:case d:return g;case i:return g;default:return y}}case t:return y}}}return Ge.ContextConsumer=i,Ge.ContextProvider=a,Ge.Element=e,Ge.ForwardRef=l,Ge.Fragment=n,Ge.Lazy=f,Ge.Memo=d,Ge.Portal=t,Ge.Profiler=r,Ge.StrictMode=o,Ge.Suspense=c,Ge.SuspenseList=u,Ge.isContextConsumer=function(g){return m(g)===i},Ge.isContextProvider=function(g){return m(g)===a},Ge.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},Ge.isForwardRef=function(g){return m(g)===l},Ge.isFragment=function(g){return m(g)===n},Ge.isLazy=function(g){return m(g)===f},Ge.isMemo=function(g){return m(g)===d},Ge.isPortal=function(g){return m(g)===t},Ge.isProfiler=function(g){return m(g)===r},Ge.isStrictMode=function(g){return m(g)===o},Ge.isSuspense=function(g){return m(g)===c},Ge.isSuspenseList=function(g){return m(g)===u},Ge.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===r||g===o||g===c||g===u||typeof g=="object"&&g!==null&&(g.$$typeof===f||g.$$typeof===d||g.$$typeof===a||g.$$typeof===i||g.$$typeof===l||g.$$typeof===h||g.getModuleId!==void 0)},Ge.typeOf=m,Ge}var Ke={};/**
50
50
  * @license React
51
51
  * react-is.development.js
52
52
  *
@@ -54,16 +54,16 @@ Valid keys: `+JSON.stringify(Object.keys(j),null," "));var z=me(W,J,B,Y,H+"."+J
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 Ai;function wf(){return Ai||(Ai=1,process.env.NODE_ENV!=="production"&&function(){function e(m){if(typeof m=="object"&&m!==null){var v=m.$$typeof;switch(v){case t:switch(m=m.type,m){case r:case s:case o:case u:case c:case h:return m;default:switch(m=m&&m.$$typeof,m){case a:case l:case f:case d:return m;case i:return m;default:return v}}case n:return v}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");ae.ContextConsumer=i,ae.ContextProvider=a,ae.Element=t,ae.ForwardRef=l,ae.Fragment=r,ae.Lazy=f,ae.Memo=d,ae.Portal=n,ae.Profiler=s,ae.StrictMode=o,ae.Suspense=u,ae.SuspenseList=c,ae.isContextConsumer=function(m){return e(m)===i},ae.isContextProvider=function(m){return e(m)===a},ae.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},ae.isForwardRef=function(m){return e(m)===l},ae.isFragment=function(m){return e(m)===r},ae.isLazy=function(m){return e(m)===f},ae.isMemo=function(m){return e(m)===d},ae.isPortal=function(m){return e(m)===n},ae.isProfiler=function(m){return e(m)===s},ae.isStrictMode=function(m){return e(m)===o},ae.isSuspense=function(m){return e(m)===u},ae.isSuspenseList=function(m){return e(m)===c},ae.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===s||m===o||m===u||m===c||typeof m=="object"&&m!==null&&(m.$$typeof===f||m.$$typeof===d||m.$$typeof===a||m.$$typeof===i||m.$$typeof===l||m.$$typeof===p||m.getModuleId!==void 0)},ae.typeOf=e}()),ae}process.env.NODE_ENV==="production"?Oo.exports=Tf():Oo.exports=wf();var ur=Oo.exports;function rt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function jl(e){if(_e.isValidElement(e)||ur.isValidElementType(e)||!rt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=jl(e[n])}),t}function Ne(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return rt(e)&&rt(t)&&Object.keys(t).forEach(o=>{_e.isValidElement(t[o])||ur.isValidElementType(t[o])?r[o]=t[o]:rt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&rt(e[o])?r[o]=Ne(e[o],t[o],n):n.clone?r[o]=rt(t[o])?jl(t[o]):t[o]:r[o]=t[o]}),r}function Tn(e,t){return t?Ne(e,t,{clone:!1}):e}const xt=process.env.NODE_ENV!=="production"?te.oneOfType([te.number,te.string,te.object,te.array]):{};function Mi(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var i,a;const s=/min-width:\s*([0-9.]+)/;return+(((i=r.match(s))==null?void 0:i[1])||0)-+(((a=o.match(s))==null?void 0:a[1])||0)});return n.length?n.reduce((r,o)=>{const s=t[o];return delete r[o],r[o]=s,r},{...t}):t}function _f(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function Ef(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\`.`:gt(18,`(${t})`));return null}const[,r,o]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(s)}function Af(e){const t=(s,i)=>s.replace("@media",i?`@container ${i}`:"@container");function n(s,i){s.up=(...a)=>t(e.breakpoints.up(...a),i),s.down=(...a)=>t(e.breakpoints.down(...a),i),s.between=(...a)=>t(e.breakpoints.between(...a),i),s.only=(...a)=>t(e.breakpoints.only(...a),i),s.not=(...a)=>{const l=t(e.breakpoints.not(...a),i);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=s=>(n(r,s),r);return n(o),{...e,containerQueries:o}}const Er={xs:0,sm:600,md:900,lg:1200,xl:1536},Pi={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Er[e]}px)`},Mf={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Er[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function it(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||Pi;return t.reduce((i,a,l)=>(i[s.up(s.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const s=r.breakpoints||Pi;return Object.keys(t).reduce((i,a)=>{if(_f(s.keys,a)){const l=Ef(r.containerQueries?r:Mf,a);l&&(i[l]=n(t[a],a))}else if(Object.keys(s.values||Er).includes(a)){const l=s.up(a);i[l]=n(t[a],a)}else{const l=a;i[l]=t[l]}return i},{})}return n(t)}function Pf(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const s=e.up(o);return r[s]={},r},{}))||{}}function ki(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Ar(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function dr(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Ar(e,n)||r,t&&(o=t(o,r,e)),o}function xe(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=i=>{if(i[t]==null)return null;const a=i[t],l=i.theme,u=Ar(l,r)||{};return it(i,a,d=>{let f=dr(u,o,d);return d===f&&typeof d=="string"&&(f=dr(u,o,`${t}${d==="default"?"":jt(d)}`,d)),n===!1?f:{[n]:f}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:xt}:{},s.filterProps=[t],s}function kf(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const If={m:"margin",p:"padding"},Rf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ii={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Of=kf(e=>{if(e.length>2)if(Ii[e])e=Ii[e];else return[e];const[t,n]=e.split(""),r=If[t],o=Rf[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),Mr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Pr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Lf=[...Mr,...Pr];function On(e,t,n,r){const o=Ar(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${s}.`),typeof o=="string"?o.startsWith("var(")&&s===0?0:o.startsWith("var(")&&s===1?o:`calc(${s} * ${o})`:o*s):Array.isArray(o)?s=>{if(typeof s=="string")return s;const i=Math.abs(s);process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>o.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${i} > ${o.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"?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(`
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
- `)));const a=o[i];return s>=0?a:typeof a=="number"?-a:typeof a=="string"&&a.startsWith("var(")?`calc(-1 * ${a})`:`-${a}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
61
- `)),()=>{})}function xs(e){return On(e,"spacing",8,"spacing")}function Ln(e,t){return typeof t=="string"||t==null?t:e(t)}function jf(e,t){return n=>e.reduce((r,o)=>(r[o]=Ln(t,n),r),{})}function Df(e,t,n,r){if(!t.includes(n))return null;const o=Of(n),s=jf(o,r),i=e[n];return it(e,i,s)}function Dl(e,t){const n=xs(e.theme);return Object.keys(e).map(r=>Df(e,t,r,n)).reduce(Tn,{})}function ye(e){return Dl(e,Mr)}ye.propTypes=process.env.NODE_ENV!=="production"?Mr.reduce((e,t)=>(e[t]=xt,e),{}):{};ye.filterProps=Mr;function ve(e){return Dl(e,Pr)}ve.propTypes=process.env.NODE_ENV!=="production"?Pr.reduce((e,t)=>(e[t]=xt,e),{}):{};ve.filterProps=Pr;process.env.NODE_ENV!=="production"&&Lf.reduce((e,t)=>(e[t]=xt,e),{});function kr(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?Tn(o,t[s](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Ve(e){return typeof e!="number"?e:`${e}px solid`}function We(e,t){return xe({prop:e,themeKey:"borders",transform:t})}const Bf=We("border",Ve),Nf=We("borderTop",Ve),$f=We("borderRight",Ve),Vf=We("borderBottom",Ve),Ff=We("borderLeft",Ve),zf=We("borderColor"),Wf=We("borderTopColor"),Uf=We("borderRightColor"),Hf=We("borderBottomColor"),Gf=We("borderLeftColor"),Kf=We("outline",Ve),Yf=We("outlineColor"),Ir=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=On(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Ln(t,r)});return it(e,e.borderRadius,n)}return null};Ir.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:xt}:{};Ir.filterProps=["borderRadius"];kr(Bf,Nf,$f,Vf,Ff,zf,Wf,Uf,Hf,Gf,Ir,Kf,Yf);const Rr=e=>{if(e.gap!==void 0&&e.gap!==null){const t=On(e.theme,"spacing",8,"gap"),n=r=>({gap:Ln(t,r)});return it(e,e.gap,n)}return null};Rr.propTypes=process.env.NODE_ENV!=="production"?{gap:xt}:{};Rr.filterProps=["gap"];const Or=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=On(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Ln(t,r)});return it(e,e.columnGap,n)}return null};Or.propTypes=process.env.NODE_ENV!=="production"?{columnGap:xt}:{};Or.filterProps=["columnGap"];const Lr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=On(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Ln(t,r)});return it(e,e.rowGap,n)}return null};Lr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:xt}:{};Lr.filterProps=["rowGap"];const Zf=xe({prop:"gridColumn"}),qf=xe({prop:"gridRow"}),Xf=xe({prop:"gridAutoFlow"}),Jf=xe({prop:"gridAutoColumns"}),Qf=xe({prop:"gridAutoRows"}),eh=xe({prop:"gridTemplateColumns"}),th=xe({prop:"gridTemplateRows"}),nh=xe({prop:"gridTemplateAreas"}),rh=xe({prop:"gridArea"});kr(Rr,Or,Lr,Zf,qf,Xf,Jf,Qf,eh,th,nh,rh);function Yt(e,t){return t==="grey"?t:e}const oh=xe({prop:"color",themeKey:"palette",transform:Yt}),sh=xe({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Yt}),ih=xe({prop:"backgroundColor",themeKey:"palette",transform:Yt});kr(oh,sh,ih);function Be(e){return e<=1&&e!==0?`${e*100}%`:e}const ah=xe({prop:"width",transform:Be}),Ss=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,s,i,a,l;const r=((i=(s=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:s.values)==null?void 0:i[n])||Er[n];return r?((l=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Be(n)}};return it(e,e.maxWidth,t)}return null};Ss.filterProps=["maxWidth"];const lh=xe({prop:"minWidth",transform:Be}),ch=xe({prop:"height",transform:Be}),uh=xe({prop:"maxHeight",transform:Be}),dh=xe({prop:"minHeight",transform:Be});xe({prop:"size",cssProperty:"width",transform:Be});xe({prop:"size",cssProperty:"height",transform:Be});const fh=xe({prop:"boxSizing"});kr(ah,Ss,lh,ch,uh,dh,fh);const jr={border:{themeKey:"borders",transform:Ve},borderTop:{themeKey:"borders",transform:Ve},borderRight:{themeKey:"borders",transform:Ve},borderBottom:{themeKey:"borders",transform:Ve},borderLeft:{themeKey:"borders",transform:Ve},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ve},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ir},color:{themeKey:"palette",transform:Yt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Yt},backgroundColor:{themeKey:"palette",transform:Yt},p:{style:ve},pt:{style:ve},pr:{style:ve},pb:{style:ve},pl:{style:ve},px:{style:ve},py:{style:ve},padding:{style:ve},paddingTop:{style:ve},paddingRight:{style:ve},paddingBottom:{style:ve},paddingLeft:{style:ve},paddingX:{style:ve},paddingY:{style:ve},paddingInline:{style:ve},paddingInlineStart:{style:ve},paddingInlineEnd:{style:ve},paddingBlock:{style:ve},paddingBlockStart:{style:ve},paddingBlockEnd:{style:ve},m:{style:ye},mt:{style:ye},mr:{style:ye},mb:{style:ye},ml:{style:ye},mx:{style:ye},my:{style:ye},margin:{style:ye},marginTop:{style:ye},marginRight:{style:ye},marginBottom:{style:ye},marginLeft:{style:ye},marginX:{style:ye},marginY:{style:ye},marginInline:{style:ye},marginInlineStart:{style:ye},marginInlineEnd:{style:ye},marginBlock:{style:ye},marginBlockStart:{style:ye},marginBlockEnd:{style:ye},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Rr},rowGap:{style:Lr},columnGap:{style:Or},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Be},maxWidth:{style:Ss},minWidth:{transform:Be},height:{transform:Be},maxHeight:{transform:Be},minHeight:{transform:Be},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 hh(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function mh(e,t){return typeof e=="function"?e(t):e}function ph(){function e(n,r,o,s){const i={[n]:r,theme:o},a=s[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=Ar(o,u)||{};return d?d(i):it(i,r,p=>{let m=dr(f,c,p);return p===m&&typeof p=="string"&&(m=dr(f,c,`${n}${p==="default"?"":jt(p)}`,p)),l===!1?m:{[l]:m}})}function t(n){const{sx:r,theme:o={},nested:s}=n||{};if(!r)return null;const i=o.unstable_sxConfig??jr;function a(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const c=Pf(o.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(h=>{const p=mh(u[h],o);if(p!=null)if(typeof p=="object")if(i[h])f=Tn(f,e(h,p,o,i));else{const m=it({theme:o},p,v=>({[h]:v}));hh(m,p)?f[h]=t({sx:p,theme:o,nested:!0}):f=Tn(f,m)}else f=Tn(f,e(h,p,o,i))}),!s&&o.modularCssLayers?{"@layer sx":Mi(o,ki(d,f))}:Mi(o,ki(d,f))}return Array.isArray(r)?r.map(a):a(r)}return t}const qt=ph();qt.filterProps=["sx"];function gh(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Cs(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}].`),gh(e,t,n)}function yh(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function yt(e){if(e.type)return e;if(e.charAt(0)==="#")return yt(yh(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
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:gt(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
63
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:gt(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}const vh=e=>{const t=yt(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},yn=(e,t)=>{try{return vh(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Dr(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,s)=>s<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Bl(e){e=yt(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),i=(u,c=(u+n/30)%12)=>o-s*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),Dr({type:a,values:l})}function Lo(e){e=yt(e);let t=e.type==="hsl"||e.type==="hsla"?yt(Bl(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 Ri(e,t){const n=Lo(e),r=Lo(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Nl(e,t){return e=yt(e),t=Cs(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Dr(e)}function Ct(e,t,n){try{return Nl(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Br(e,t){if(e=yt(e),t=Cs(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 Dr(e)}function oe(e,t,n){try{return Br(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Nr(e,t){if(e=yt(e),t=Cs(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 Dr(e)}function se(e,t,n){try{return Nr(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function bh(e,t=.15){return Lo(e)>.5?Br(e,t):Nr(e,t)}function Wn(e,t,n){try{return bh(e,t)}catch{return e}}const An={black:"#000",white:"#fff"},xh={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"},Bt={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Nt={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},dn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},$t={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Vt={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Ft={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function $l(){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:An.white,default:An.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 Vl=$l();function Fl(){return{text:{primary:An.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:An.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 jo=Fl();function Oi(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Nr(e.main,o):t==="dark"&&(e.dark=Br(e.main,s)))}function Li(e,t,n,r,o){const s=o.light||o,i=o.dark||o*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(i*100).toFixed(0)}%)`))}function Sh(e="light"){return e==="dark"?{main:$t[200],light:$t[50],dark:$t[400]}:{main:$t[700],light:$t[400],dark:$t[800]}}function Ch(e="light"){return e==="dark"?{main:Bt[200],light:Bt[50],dark:Bt[400]}:{main:Bt[500],light:Bt[300],dark:Bt[700]}}function Th(e="light"){return e==="dark"?{main:Nt[500],light:Nt[300],dark:Nt[700]}:{main:Nt[700],light:Nt[400],dark:Nt[800]}}function wh(e="light"){return e==="dark"?{main:Vt[400],light:Vt[300],dark:Vt[700]}:{main:Vt[700],light:Vt[500],dark:Vt[900]}}function _h(e="light"){return e==="dark"?{main:Ft[400],light:Ft[300],dark:Ft[700]}:{main:Ft[800],light:Ft[500],dark:Ft[900]}}function Eh(e="light"){return e==="dark"?{main:dn[400],light:dn[300],dark:dn[700]}:{main:"#ed6c02",light:dn[500],dark:dn[900]}}function Ah(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Ts(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...s}=e,i=e.primary||Sh(t),a=e.secondary||Ch(t),l=e.error||Th(t),u=e.info||wh(t),c=e.success||_h(t),d=e.warning||Eh(t);function f(v){if(o)return Ah(v);const S=Ri(v,jo.text.primary)>=n?jo.text.primary:Vl.text.primary;if(process.env.NODE_ENV!=="production"){const _=Ri(v,S);_<3&&console.error([`MUI: The contrast ratio of ${_}:1 for ${S} on ${v}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
64
- `))}return S}const h=({color:v,name:S,mainShade:_=500,lightShade:b=300,darkShade:C=700})=>{if(v={...v},!v.main&&v[_]&&(v.main=v[_]),!v.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
65
- The color object needs to have a \`main\` property or a \`${_}\` property.`:gt(11,S?` (${S})`:"",_));if(typeof v.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
66
- \`color.main\` should be a string, but \`${JSON.stringify(v.main)}\` was provided instead.
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.
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.
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?
69
69
 
@@ -75,34 +75,171 @@ const theme1 = createTheme({ palette: {
75
75
 
76
76
  const theme2 = createTheme({ palette: {
77
77
  primary: { main: green[500] },
78
- } });`:gt(12,S?` (${S})`:"",JSON.stringify(v.main)));return o?(Li(o,v,"light",b,r),Li(o,v,"dark",C,r)):(Oi(v,"light",b,r),Oi(v,"dark",C,r)),v.contrastText||(v.contrastText=f(v.main)),v};let p;return t==="light"?p=$l():t==="dark"&&(p=Fl()),process.env.NODE_ENV!=="production"&&(p||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Ne({common:{...An},mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:l,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:u,name:"info"}),success:h({color:c,name:"success"}),grey:xh,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:r,...p},s)}function Mh(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Ph={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 kh(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ih=/[A-Z]|^ms/g,Rh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,zl=function(t){return t.charCodeAt(1)===45},ji=function(t){return t!=null&&typeof t!="boolean"},eo=kh(function(e){return zl(e)?e:e.replace(Ih,"-$&").toLowerCase()}),Di=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Rh,function(r,o,s){return ht={name:o,styles:s,next:ht},o})}return Ph[t]!==1&&!zl(t)&&typeof n=="number"&&n!==0?n+"px":n};function fr(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return ht={name:o.name,styles:o.styles,next:ht},o.name;var s=n;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)ht={name:i.name,styles:i.styles,next:ht},i=i.next;var a=s.styles+";";return a}return Oh(e,t,n)}}var l=n;return l}function Oh(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=fr(e,t,n[o])+";";else for(var s in n){var i=n[s];if(typeof i!="object"){var a=i;ji(a)&&(r+=eo(s)+":"+Di(s,a)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var l=0;l<i.length;l++)ji(i[l])&&(r+=eo(s)+":"+Di(s,i[l])+";");else{var u=fr(e,t,i);switch(s){case"animation":case"animationName":{r+=eo(s)+":"+u+";";break}default:r+=s+"{"+u+"}"}}}return r}var Bi=/label:\s*([^\s;{]+)\s*(;|$)/g,ht;function Lh(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";ht=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=fr(n,t,s);else{var i=s;o+=i[0]}for(var a=1;a<e.length;a++)if(o+=fr(n,t,e[a]),r){var l=s;o+=l[a]}Bi.lastIndex=0;for(var u="",c;(c=Bi.exec(o))!==null;)u+="-"+c[1];var d=Mh(o)+u;return{name:d,styles:o,next:ht}}/**
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}}/**
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 jh(e,t){const n=Nd(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
85
- `)):r.some(s=>s===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function Dh(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Ni=[];function Ot(e){return Ni[0]=e,Lh(Ni)}function Do(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=o;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const i=e[s],a=t[s];if(!a)r[s]=i||{};else if(!i)r[s]=a;else{r[s]={...a};for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const u=l;r[s][u]=Do(i[u],a[u],n)}}}else s==="className"&&n&&t.className?r.className=Ll(e==null?void 0:e.className,t==null?void 0:t.className):s==="style"&&n&&t.style?r.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:r[s]===void 0&&(r[s]=e[s])}return r}const Bh=_e.createContext(void 0);process.env.NODE_ENV!=="production"&&(te.node,te.object);function Nh(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Do(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Do(o,r,t.components.mergeClassNameAndStyle):r}function $h({props:e,name:t}){const n=_e.useContext(Bh);return Nh({props:e,name:t,theme:{components:n}})}const Vh=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Fh(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,s=Vh(t),i=Object.keys(s);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,h){const p=i.indexOf(h);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(p!==-1&&typeof t[i[p]]=="number"?t[i[p]]:h)-r/100}${n})`}function c(f){return i.indexOf(f)+1<i.length?u(f,i[i.indexOf(f)+1]):a(f)}function d(f){const h=i.indexOf(f);return h===0?a(i[1]):h===i.length-1?l(i[h]):u(f,i[i.indexOf(f)+1]).replace("@media","@media not all and")}return{keys:i,values:s,up:a,down:l,between:u,only:c,not:d,unit:n,...o}}const zh={borderRadius:4};function Wh(e=8,t=xs({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" "));return n.mui=!0,n}function Uh(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function Wl(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={},...i}=e,a=Fh(n),l=Wh(o);let u=Ne({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...zh,...s}},i);return u=Af(u),u.applyStyles=Uh,u=t.reduce((c,d)=>Ne(c,d),u),u.unstable_sxConfig={...jr,...i==null?void 0:i.unstable_sxConfig},u.unstable_sx=function(d){return qt({sx:d,theme:this})},u}const $i=(e,t,n,r=[])=>{let o=e;t.forEach((s,i)=>{i===t.length-1?Array.isArray(o)?o[Number(s)]=n:o&&typeof o=="object"&&(o[s]=n):o&&typeof o=="object"&&(o[s]||(o[s]=r.includes(s)?[]:{}),o=o[s])})},Hh=(e,t,n)=>{function r(o,s=[],i=[]){Object.entries(o).forEach(([a,l])=>{(!n||n&&!n([...s,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...s,a],Array.isArray(l)?[...i,a]:i):t([...s,a],l,i))})}r(e)},Gh=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function to(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},s={},i={};return Hh(e,(a,l,u)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const c=`--${n?`${n}-`:""}${a.join("-")}`,d=Gh(a,l);Object.assign(o,{[c]:d}),$i(s,a,`var(${c})`,u),$i(i,a,`var(${c}, ${d})`,u)}},a=>a[0]==="vars"),{css:o,vars:s,varsWithDefaults:i}}function Kh(e,t={}){const{getSelector:n=S,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:s}=t,{colorSchemes:i={},components:a,defaultColorScheme:l="light",...u}=e,{vars:c,css:d,varsWithDefaults:f}=to(u,t);let h=f;const p={},{[l]:m,...v}=i;if(Object.entries(v||{}).forEach(([C,T])=>{const{vars:w,css:P,varsWithDefaults:M}=to(T,t);h=Ne(h,M),p[C]={css:P,vars:w}}),m){const{css:C,vars:T,varsWithDefaults:w}=to(m,t);h=Ne(h,w),p[l]={css:C,vars:T}}function S(C,T){var P,M;let w=o;if(o==="class"&&(w=".%s"),o==="data"&&(w="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(w=`[${o}="%s"]`),C){if(w==="media")return e.defaultColorScheme===C?":root":{[`@media (prefers-color-scheme: ${((M=(P=i[C])==null?void 0:P.palette)==null?void 0:M.mode)||C})`]:{":root":T}};if(w)return e.defaultColorScheme===C?`:root, ${w.replace("%s",String(C))}`:w.replace("%s",String(C))}return":root"}return{vars:h,generateThemeVars:()=>{let C={...c};return Object.entries(p).forEach(([,{vars:T}])=>{C=Ne(C,T)}),C},generateStyleSheets:()=>{var k,V;const C=[],T=e.defaultColorScheme||"light";function w(N,y){Object.keys(y).length&&C.push(typeof N=="string"?{[N]:{...y}}:N)}w(n(void 0,{...d}),d);const{[T]:P,...M}=p;if(P){const{css:N}=P,y=(V=(k=i[T])==null?void 0:k.palette)==null?void 0:V.mode,R=!r&&y?{colorScheme:y,...N}:{...N};w(n(T,{...R}),R)}return Object.entries(M).forEach(([N,{css:y}])=>{var F,U;const R=(U=(F=i[N])==null?void 0:F.palette)==null?void 0:U.mode,O=!r&&R?{colorScheme:R,...y}:{...y};w(n(N,{...O}),O)}),s&&C.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),C}}}function Yh(e){const t={};return Object.entries(e).forEach(r=>{const[o,s]=r;typeof s=="object"&&(t[o]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function Zh(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 qh={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 ws(e,t,n="Mui"){const r=qh[t];return r?`${n}-${r}`:`${ff.generate(e)}-${t}`}function Xh(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Jh(e){return Math.round(e*1e5)/1e5}const Vi={textTransform:"uppercase"},Fi='"Roboto", "Helvetica", "Arial", sans-serif';function Qh(e,t){const{fontFamily:n=Fi,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:i=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:u,pxToRem:c,...d}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const f=r/14,h=c||(v=>`${v/l*f}rem`),p=(v,S,_,b,C)=>({fontFamily:n,fontWeight:v,fontSize:h(S),lineHeight:_,...n===Fi?{letterSpacing:`${Jh(b/S)}em`}:{},...C,...u}),m={h1:p(o,96,1.167,-1.5),h2:p(o,60,1.2,-.5),h3:p(s,48,1.167,0),h4:p(s,34,1.235,.25),h5:p(s,24,1.334,0),h6:p(i,20,1.6,.15),subtitle1:p(s,16,1.75,.15),subtitle2:p(i,14,1.57,.1),body1:p(s,16,1.5,.15),body2:p(s,14,1.43,.15),button:p(i,14,1.75,.4,Vi),caption:p(s,12,1.66,.4),overline:p(s,12,2.66,1,Vi),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ne({htmlFontSize:l,pxToRem:h,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:i,fontWeightBold:a,...m},d,{clone:!1})}const em=.2,tm=.14,nm=.12;function ue(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${em})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${tm})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${nm})`].join(",")}const rm=["none",ue(0,2,1,-1,0,1,1,0,0,1,3,0),ue(0,3,1,-2,0,2,2,0,0,1,5,0),ue(0,3,3,-2,0,3,4,0,0,1,8,0),ue(0,2,4,-1,0,4,5,0,0,1,10,0),ue(0,3,5,-1,0,5,8,0,0,1,14,0),ue(0,3,5,-1,0,6,10,0,0,1,18,0),ue(0,4,5,-2,0,7,10,1,0,2,16,1),ue(0,5,5,-3,0,8,10,1,0,3,14,2),ue(0,5,6,-3,0,9,12,1,0,3,16,2),ue(0,6,6,-3,0,10,14,1,0,4,18,3),ue(0,6,7,-4,0,11,15,1,0,4,20,3),ue(0,7,8,-4,0,12,17,2,0,5,22,4),ue(0,7,8,-4,0,13,19,2,0,5,24,4),ue(0,7,9,-4,0,14,21,2,0,5,26,4),ue(0,8,9,-5,0,15,22,2,0,6,28,5),ue(0,8,10,-5,0,16,24,2,0,6,30,5),ue(0,8,11,-5,0,17,26,2,0,6,32,5),ue(0,9,11,-5,0,18,28,2,0,7,34,6),ue(0,9,12,-6,0,19,29,2,0,7,36,6),ue(0,10,13,-6,0,20,31,3,0,8,38,7),ue(0,10,13,-6,0,21,33,3,0,8,40,7),ue(0,10,14,-6,0,22,35,3,0,8,42,7),ue(0,11,14,-7,0,23,36,3,0,9,44,8),ue(0,11,15,-7,0,24,38,3,0,9,46,8)],om={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)"},sm={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function zi(e){return`${Math.round(e)}ms`}function im(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function am(e){const t={...om,...e.easing},n={...sm,...e.duration};return{getAutoHeightDuration:im,create:(o=["all"],s={})=>{const{duration:i=n.standard,easing:a=t.easeInOut,delay:l=0,...u}=s;if(process.env.NODE_ENV!=="production"){const c=f=>typeof f=="string",d=f=>!Number.isNaN(parseFloat(f));!c(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(i)&&!c(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),c(a)||console.error('MUI: Argument "easing" must be a string.'),!d(l)&&!c(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
86
- `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof i=="string"?i:zi(i)} ${a} ${typeof l=="string"?l:zi(l)}`).join(",")},...e,easing:t,duration:n}}const lm={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function cm(e){return rt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Ul(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let s=0;s<o.length;s++){const[i,a]=o[s];!cm(a)||i.startsWith("unstable_")?delete r[i]:rt(a)&&(r[i]={...a},n(r[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
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';
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 Wi(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const um=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function dm(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:Nl(t,um(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Wi(n)})`:Nr(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Wi(n)})`:Br(t,n)}})}function Bo(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:s={},transitions:i={},typography:a={},shape:l,colorSpace:u,...c}=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.":gt(20));const d=Ts({...s,colorSpace:u}),f=Wl(e);let h=Ne(f,{mixins:Xh(f.breakpoints,r),palette:d,shadows:rm.slice(),typography:Qh(d,a),transitions:am(i),zIndex:{...lm}});if(h=Ne(h,c),h=t.reduce((p,m)=>Ne(p,m),h),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],m=(v,S)=>{let _;for(_ in v){const b=v[_];if(p.includes(_)&&Object.keys(b).length>0){if(process.env.NODE_ENV!=="production"){const C=ws("",_);console.error([`MUI: The \`${S}\` component increases the CSS specificity of the \`${_}\` internal state.`,"You can not override it like this: ",JSON.stringify(v,null,2),"",`Instead, you need to use the '&.${C}' syntax:`,JSON.stringify({root:{[`&.${C}`]:b}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
94
- `))}v[_]={}}}};Object.keys(h.components).forEach(v=>{const S=h.components[v].styleOverrides;S&&v.startsWith("Mui")&&m(S,v)})}return h.unstable_sxConfig={...jr,...c==null?void 0:c.unstable_sxConfig},h.unstable_sx=function(m){return qt({sx:m,theme:this})},h.toRuntimeSource=Ul,dm(h),h}function fm(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 hm=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=fm(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Hl(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Gl(e){return e==="dark"?hm:[]}function mm(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...s}=e,i=Ts({...t,colorSpace:o});return{palette:i,opacity:{...Hl(i.mode),...n},overlays:r||Gl(i.mode),...s}}function pm(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 gm=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],ym=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let s=o;if(o==="class"&&(s=".%s"),o==="data"&&(s="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(s=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return gm(e.cssVarPrefix).forEach(a=>{i[a]=n[a],delete n[a]}),s==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:s?{[s.replace("%s",t)]:i,[`${r}, ${s.replace("%s",t)}`]:n}:{[r]:{...n,...i}}}if(s&&s!=="media")return`${r}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(s)return s.replace("%s",String(t))}return r};function vm(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function I(e,t,n){!e[t]&&n&&(e[t]=n)}function vn(e){return typeof e!="string"||!e.startsWith("hsl")?e:Bl(e)}function et(e,t){`${t}Channel`in e||(e[`${t}Channel`]=yn(vn(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 bm(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ye=e=>{try{return e()}catch{}},xm=(e="mui")=>ys.unstable_createGetCssVar(e);function no(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const s=o==="dark"?"dark":"light";if(!r){t[o]=mm({...n,palette:{mode:s,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:i,...a}=Bo({...r,palette:{mode:s,...n==null?void 0:n.palette},colorSpace:e});return t[o]={...n,palette:i,opacity:{...Hl(s),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||Gl(s)},a}function Sm(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:i=!1,shouldSkipGeneratingVar:a=pm,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...c}=e,d=Object.keys(n)[0],f=r||(n.light&&d!=="light"?"light":d),h=xm(s),{[f]:p,light:m,dark:v,...S}=n,_={...S};let b=p;if((f==="dark"&&!("dark"in n)||f==="light"&&!("light"in n))&&(b=!0),!b)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:gt(21,f));let C;i&&(C="oklch");const T=no(C,_,b,c,f);m&&!_.light&&no(C,_,m,void 0,"light"),v&&!_.dark&&no(C,_,v,void 0,"dark");let w={defaultColorScheme:f,...T,cssVarPrefix:s,colorSchemeSelector:l,rootSelector:u,getCssVar:h,colorSchemes:_,font:{...Yh(T.typography),...T.font},spacing:bm(c.spacing)};Object.keys(w.colorSchemes).forEach(N=>{const y=w.colorSchemes[N].palette,R=F=>{const U=F.split("-"),G=U[1],D=U[2];return h(F,y[G][D])};y.mode==="light"&&(I(y.common,"background","#fff"),I(y.common,"onBackground","#000")),y.mode==="dark"&&(I(y.common,"background","#000"),I(y.common,"onBackground","#fff"));function O(F,U,G){if(C){let D;return F===Ct&&(D=`transparent ${((1-G)*100).toFixed(0)}%`),F===oe&&(D=`#000 ${(G*100).toFixed(0)}%`),F===se&&(D=`#fff ${(G*100).toFixed(0)}%`),`color-mix(in ${C}, ${U}, ${D})`}return F(U,G)}if(vm(y,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),y.mode==="light"){I(y.Alert,"errorColor",O(oe,y.error.light,.6)),I(y.Alert,"infoColor",O(oe,y.info.light,.6)),I(y.Alert,"successColor",O(oe,y.success.light,.6)),I(y.Alert,"warningColor",O(oe,y.warning.light,.6)),I(y.Alert,"errorFilledBg",R("palette-error-main")),I(y.Alert,"infoFilledBg",R("palette-info-main")),I(y.Alert,"successFilledBg",R("palette-success-main")),I(y.Alert,"warningFilledBg",R("palette-warning-main")),I(y.Alert,"errorFilledColor",Ye(()=>y.getContrastText(y.error.main))),I(y.Alert,"infoFilledColor",Ye(()=>y.getContrastText(y.info.main))),I(y.Alert,"successFilledColor",Ye(()=>y.getContrastText(y.success.main))),I(y.Alert,"warningFilledColor",Ye(()=>y.getContrastText(y.warning.main))),I(y.Alert,"errorStandardBg",O(se,y.error.light,.9)),I(y.Alert,"infoStandardBg",O(se,y.info.light,.9)),I(y.Alert,"successStandardBg",O(se,y.success.light,.9)),I(y.Alert,"warningStandardBg",O(se,y.warning.light,.9)),I(y.Alert,"errorIconColor",R("palette-error-main")),I(y.Alert,"infoIconColor",R("palette-info-main")),I(y.Alert,"successIconColor",R("palette-success-main")),I(y.Alert,"warningIconColor",R("palette-warning-main")),I(y.AppBar,"defaultBg",R("palette-grey-100")),I(y.Avatar,"defaultBg",R("palette-grey-400")),I(y.Button,"inheritContainedBg",R("palette-grey-300")),I(y.Button,"inheritContainedHoverBg",R("palette-grey-A100")),I(y.Chip,"defaultBorder",R("palette-grey-400")),I(y.Chip,"defaultAvatarColor",R("palette-grey-700")),I(y.Chip,"defaultIconColor",R("palette-grey-700")),I(y.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),I(y.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),I(y.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),I(y.LinearProgress,"primaryBg",O(se,y.primary.main,.62)),I(y.LinearProgress,"secondaryBg",O(se,y.secondary.main,.62)),I(y.LinearProgress,"errorBg",O(se,y.error.main,.62)),I(y.LinearProgress,"infoBg",O(se,y.info.main,.62)),I(y.LinearProgress,"successBg",O(se,y.success.main,.62)),I(y.LinearProgress,"warningBg",O(se,y.warning.main,.62)),I(y.Skeleton,"bg",C?O(Ct,y.text.primary,.11):`rgba(${R("palette-text-primaryChannel")} / 0.11)`),I(y.Slider,"primaryTrack",O(se,y.primary.main,.62)),I(y.Slider,"secondaryTrack",O(se,y.secondary.main,.62)),I(y.Slider,"errorTrack",O(se,y.error.main,.62)),I(y.Slider,"infoTrack",O(se,y.info.main,.62)),I(y.Slider,"successTrack",O(se,y.success.main,.62)),I(y.Slider,"warningTrack",O(se,y.warning.main,.62));const F=C?O(oe,y.background.default,.6825):Wn(y.background.default,.8);I(y.SnackbarContent,"bg",F),I(y.SnackbarContent,"color",Ye(()=>C?jo.text.primary:y.getContrastText(F))),I(y.SpeedDialAction,"fabHoverBg",Wn(y.background.paper,.15)),I(y.StepConnector,"border",R("palette-grey-400")),I(y.StepContent,"border",R("palette-grey-400")),I(y.Switch,"defaultColor",R("palette-common-white")),I(y.Switch,"defaultDisabledColor",R("palette-grey-100")),I(y.Switch,"primaryDisabledColor",O(se,y.primary.main,.62)),I(y.Switch,"secondaryDisabledColor",O(se,y.secondary.main,.62)),I(y.Switch,"errorDisabledColor",O(se,y.error.main,.62)),I(y.Switch,"infoDisabledColor",O(se,y.info.main,.62)),I(y.Switch,"successDisabledColor",O(se,y.success.main,.62)),I(y.Switch,"warningDisabledColor",O(se,y.warning.main,.62)),I(y.TableCell,"border",O(se,O(Ct,y.divider,1),.88)),I(y.Tooltip,"bg",O(Ct,y.grey[700],.92))}if(y.mode==="dark"){I(y.Alert,"errorColor",O(se,y.error.light,.6)),I(y.Alert,"infoColor",O(se,y.info.light,.6)),I(y.Alert,"successColor",O(se,y.success.light,.6)),I(y.Alert,"warningColor",O(se,y.warning.light,.6)),I(y.Alert,"errorFilledBg",R("palette-error-dark")),I(y.Alert,"infoFilledBg",R("palette-info-dark")),I(y.Alert,"successFilledBg",R("palette-success-dark")),I(y.Alert,"warningFilledBg",R("palette-warning-dark")),I(y.Alert,"errorFilledColor",Ye(()=>y.getContrastText(y.error.dark))),I(y.Alert,"infoFilledColor",Ye(()=>y.getContrastText(y.info.dark))),I(y.Alert,"successFilledColor",Ye(()=>y.getContrastText(y.success.dark))),I(y.Alert,"warningFilledColor",Ye(()=>y.getContrastText(y.warning.dark))),I(y.Alert,"errorStandardBg",O(oe,y.error.light,.9)),I(y.Alert,"infoStandardBg",O(oe,y.info.light,.9)),I(y.Alert,"successStandardBg",O(oe,y.success.light,.9)),I(y.Alert,"warningStandardBg",O(oe,y.warning.light,.9)),I(y.Alert,"errorIconColor",R("palette-error-main")),I(y.Alert,"infoIconColor",R("palette-info-main")),I(y.Alert,"successIconColor",R("palette-success-main")),I(y.Alert,"warningIconColor",R("palette-warning-main")),I(y.AppBar,"defaultBg",R("palette-grey-900")),I(y.AppBar,"darkBg",R("palette-background-paper")),I(y.AppBar,"darkColor",R("palette-text-primary")),I(y.Avatar,"defaultBg",R("palette-grey-600")),I(y.Button,"inheritContainedBg",R("palette-grey-800")),I(y.Button,"inheritContainedHoverBg",R("palette-grey-700")),I(y.Chip,"defaultBorder",R("palette-grey-700")),I(y.Chip,"defaultAvatarColor",R("palette-grey-300")),I(y.Chip,"defaultIconColor",R("palette-grey-300")),I(y.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),I(y.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),I(y.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),I(y.LinearProgress,"primaryBg",O(oe,y.primary.main,.5)),I(y.LinearProgress,"secondaryBg",O(oe,y.secondary.main,.5)),I(y.LinearProgress,"errorBg",O(oe,y.error.main,.5)),I(y.LinearProgress,"infoBg",O(oe,y.info.main,.5)),I(y.LinearProgress,"successBg",O(oe,y.success.main,.5)),I(y.LinearProgress,"warningBg",O(oe,y.warning.main,.5)),I(y.Skeleton,"bg",C?O(Ct,y.text.primary,.13):`rgba(${R("palette-text-primaryChannel")} / 0.13)`),I(y.Slider,"primaryTrack",O(oe,y.primary.main,.5)),I(y.Slider,"secondaryTrack",O(oe,y.secondary.main,.5)),I(y.Slider,"errorTrack",O(oe,y.error.main,.5)),I(y.Slider,"infoTrack",O(oe,y.info.main,.5)),I(y.Slider,"successTrack",O(oe,y.success.main,.5)),I(y.Slider,"warningTrack",O(oe,y.warning.main,.5));const F=C?O(se,y.background.default,.985):Wn(y.background.default,.98);I(y.SnackbarContent,"bg",F),I(y.SnackbarContent,"color",Ye(()=>C?Vl.text.primary:y.getContrastText(F))),I(y.SpeedDialAction,"fabHoverBg",Wn(y.background.paper,.15)),I(y.StepConnector,"border",R("palette-grey-600")),I(y.StepContent,"border",R("palette-grey-600")),I(y.Switch,"defaultColor",R("palette-grey-300")),I(y.Switch,"defaultDisabledColor",R("palette-grey-600")),I(y.Switch,"primaryDisabledColor",O(oe,y.primary.main,.55)),I(y.Switch,"secondaryDisabledColor",O(oe,y.secondary.main,.55)),I(y.Switch,"errorDisabledColor",O(oe,y.error.main,.55)),I(y.Switch,"infoDisabledColor",O(oe,y.info.main,.55)),I(y.Switch,"successDisabledColor",O(oe,y.success.main,.55)),I(y.Switch,"warningDisabledColor",O(oe,y.warning.main,.55)),I(y.TableCell,"border",O(oe,O(Ct,y.divider,1),.68)),I(y.Tooltip,"bg",O(Ct,y.grey[700],.92))}et(y.background,"default"),et(y.background,"paper"),et(y.common,"background"),et(y.common,"onBackground"),et(y,"divider"),Object.keys(y).forEach(F=>{const U=y[F];F!=="tonalOffset"&&U&&typeof U=="object"&&(U.main&&I(y[F],"mainChannel",yn(vn(U.main))),U.light&&I(y[F],"lightChannel",yn(vn(U.light))),U.dark&&I(y[F],"darkChannel",yn(vn(U.dark))),U.contrastText&&I(y[F],"contrastTextChannel",yn(vn(U.contrastText))),F==="text"&&(et(y[F],"primary"),et(y[F],"secondary")),F==="action"&&(U.active&&et(y[F],"active"),U.selected&&et(y[F],"selected")))})}),w=t.reduce((N,y)=>Ne(N,y),w);const P={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:ym(w),enableContrastVars:i},{vars:M,generateThemeVars:k,generateStyleSheets:V}=Kh(w,P);return w.vars=M,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([N,y])=>{w[N]=y}),w.generateThemeVars=k,w.generateStyleSheets=V,w.generateSpacing=function(){return ys.createSpacing(c.spacing,xs(this))},w.getColorSchemeSelector=Zh(l),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=a,w.unstable_sxConfig={...jr,...c==null?void 0:c.unstable_sxConfig},w.unstable_sx=function(y){return qt({sx:y,theme:this})},w.toRuntimeSource=Ul,w}function Ui(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ts({...n===!0?{}:n.palette,mode:t})})}function Cm(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:s=n==null?void 0:n.mode,...i}=e,a=s||"light",l=o==null?void 0:o[a],u={...o,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Bo(e,...t);let c=n;"palette"in e||u[a]&&(u[a]!==!0?c=u[a].palette:a==="dark"&&(c={mode:"dark"}));const d=Bo({...e,palette:c},...t);return d.defaultColorScheme=a,d.colorSchemes=u,d.palette.mode==="light"&&(d.colorSchemes.light={...u.light!==!0&&u.light,palette:d.palette},Ui(d,"dark",u.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:d.palette},Ui(d,"light",u.light)),d}return!n&&!("light"in u)&&a==="light"&&(u.light=!0),Sm({...i,colorSchemes:u,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const Tm=Cm(),wm="$$material";function Kl(e,t=""){return e.displayName||e.name||t}function Hi(e,t,n){const r=Kl(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function _m(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Kl(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ur.ForwardRef:return Hi(e,e.render,"ForwardRef");case ur.Memo:return Hi(e,e.type,"memo");default:return}}}function Em(e){const{variants:t,...n}=e,r={variants:t,style:Ot(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Ot(o.style))}),r}const Am=Wl();function ro(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function kt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Mm(e){return e?(t,n)=>n[e]:null}function Pm(e,t,n){e.theme=Om(e.theme)?n:e.theme[t]||e.theme}function nr(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>nr(e,o,n));if(Array.isArray(r==null?void 0:r.variants)){let o;if(r.isProcessed)o=n?kt(r.style,n):r.style;else{const{variants:s,...i}=r;o=n?kt(Ot(i),n):i}return Yl(e,r.variants,[o],n)}return r!=null&&r.isProcessed?n?kt(Ot(r.style),n):r.style:n?kt(Ot(r),n):r}function Yl(e,t,n=[],r=void 0){var s;let o;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!a.props(o))continue}else for(const l in a.props)if(e[l]!==a.props[l]&&((s=e.ownerState)==null?void 0:s[l])!==a.props[l])continue e;typeof a.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?kt(Ot(a.style(o)),r):a.style(o))):n.push(r?kt(Ot(a.style),r):a.style)}return n}function km(e={}){const{themeId:t,defaultTheme:n=Am,rootShouldForwardProp:r=ro,slotShouldForwardProp:o=ro}=e;function s(a){Pm(a,t,n)}return(a,l={})=>{Dh(a,w=>w.filter(P=>P!==qt));const{name:u,slot:c,skipVariantsResolver:d,skipSx:f,overridesResolver:h=Mm(Zl(c)),...p}=l,m=u&&u.startsWith("Mui")||c?"components":"custom",v=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,S=f||!1;let _=ro;c==="Root"||c==="root"?_=r:c?_=o:Lm(a)&&(_=void 0);const b=jh(a,{shouldForwardProp:_,label:Rm(u,c),...p}),C=w=>{if(w.__emotion_real===w)return w;if(typeof w=="function")return function(M){return nr(M,w,M.theme.modularCssLayers?m:void 0)};if(rt(w)){const P=Em(w);return function(k){return P.variants?nr(k,P,k.theme.modularCssLayers?m:void 0):k.theme.modularCssLayers?kt(P.style,m):P.style}}return w},T=(...w)=>{const P=[],M=w.map(C),k=[];if(P.push(s),u&&h&&k.push(function(R){var G,D;const F=(D=(G=R.theme.components)==null?void 0:G[u])==null?void 0:D.styleOverrides;if(!F)return null;const U={};for(const Q in F)U[Q]=nr(R,F[Q],R.theme.modularCssLayers?"theme":void 0);return h(R,U)}),u&&!v&&k.push(function(R){var U,G;const O=R.theme,F=(G=(U=O==null?void 0:O.components)==null?void 0:U[u])==null?void 0:G.variants;return F?Yl(R,F,[],R.theme.modularCssLayers?"theme":void 0):null}),S||k.push(qt),Array.isArray(M[0])){const y=M.shift(),R=new Array(P.length).fill(""),O=new Array(k.length).fill("");let F;F=[...R,...y,...O],F.raw=[...R,...y.raw,...O],P.unshift(F)}const V=[...P,...M,...k],N=b(...V);return a.muiName&&(N.muiName=a.muiName),process.env.NODE_ENV!=="production"&&(N.displayName=Im(u,c,a)),N};return b.withConfig&&(T.withConfig=b.withConfig),T}}function Im(e,t,n){return e?`${e}${jt(t||"")}`:`Styled(${_m(n)})`}function Rm(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Zl(t||"Root")}`),n}function Om(e){for(const t in e)return!1;return!0}function Lm(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Zl(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function jm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Dm=e=>jm(e)&&e!=="classes",Bm=km({themeId:wm,defaultTheme:Tm,rootShouldForwardProp:Dm}),Nm=ys.unstable_memoTheme;process.env.NODE_ENV!=="production"&&(te.node,te.object.isRequired);function $m(e){return $h(e)}function Vm(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ws(e,o,n)}),r}function Fm(e){return ws("MuiSvgIcon",e)}Vm("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const zm=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${jt(t)}`,`fontSize${jt(n)}`]};return Cf(o,Fm,r)},Wm=Bm("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${jt(n.color)}`],t[`fontSize${jt(n.fontSize)}`]]}})(Nm(({theme:e})=>{var t,n,r,o,s,i,a,l,u,c,d,f,h,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:m=>!m.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:i.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((c=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,m])=>m&&m.main).map(([m])=>{var v,S;return{props:{color:m},style:{color:(S=(v=(e.vars??e).palette)==null?void 0:v[m])==null?void 0:S.main}}}),{props:{color:"action"},style:{color:(f=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:f.active}},{props:{color:"disabled"},style:{color:(p=(h=(e.vars??e).palette)==null?void 0:h.action)==null?void 0:p.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),hr=_e.forwardRef(function(t,n){const r=$m({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24",...h}=r,p=_e.isValidElement(o)&&o.type==="svg",m={...r,color:i,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:p},v={};c||(v.viewBox=f);const S=zm(m);return g.jsxs(Wm,{as:a,className:Ll(S.root,s),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...v,...h,...p&&o.props,ownerState:m,children:[p?o.props.children:o,d?g.jsx("title",{children:d}):null]})});process.env.NODE_ENV!=="production"&&(hr.propTypes={children:te.node,classes:te.object,className:te.string,color:te.oneOfType([te.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),te.string]),component:te.elementType,fontSize:te.oneOfType([te.oneOf(["inherit","large","medium","small"]),te.string]),htmlColor:te.string,inheritViewBox:te.bool,shapeRendering:te.string,sx:te.oneOfType([te.arrayOf(te.oneOfType([te.func,te.object,te.bool])),te.func,te.object]),titleAccess:te.string,viewBox:te.string});hr.muiName="SvgIcon";function Qe(e,t){function n(r,o){return g.jsx(hr,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=hr.muiName,_e.memo(_e.forwardRef(n))}const Um=Qe(g.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Hm=Qe(g.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),Gm=Qe(g.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"),Km=(e,t)=>()=>{if(!t)return;const n={};e.forEach(r=>{r.items.forEach(o=>{o.value!==void 0&&o.value!==null&&o.value!==""&&(n[o.id]=o.value)})}),console.log("Filtros ativos:",n),t(n)},Ym=(e,t,n)=>()=>{const r=e.map(o=>({...o,items:o.items.map(s=>({...s,value:void 0}))}));n&&n(r),t&&t()},Zm=(e,t,n)=>()=>{const r=t.map(o=>o.id===e?{...o,expanded:!o.expanded}:o);n(r)},qm=(e,t,n,r)=>o=>{const s=n.map(i=>i.id===e?{...i,items:i.items.map(a=>a.id===t?{...a,value:o}:a)}:i);r(s)},Xm="_modal_1v49l_1",Jm="_content_1v49l_60",Qm="_contentWrapper_1v49l_67",ep="_closeButton_1v49l_74",tp="_header_1v49l_86",np="_title_1v49l_93",rp="_description_1v49l_102",op="_filtersContent_1v49l_111",sp="_filterGroup_1v49l_121",ip="_expandableHeader_1v49l_128",ap="_expandableLabel_1v49l_138",lp="_chevronIcon_1v49l_146",cp="_chevron_1v49l_146",up="_filterItems_1v49l_159",dp="_filterItem_1v49l_159",fp="_filterItemSize1_1v49l_171",hp="_filterItemSize2_1v49l_175",mp="_filterItemSize3_1v49l_179",pp="_filterItemSize4_1v49l_183",gp="_filterItemSize5_1v49l_187",yp="_filterItemSize6_1v49l_191",vp="_filterInput_1v49l_195",bp="_inputLabel_1v49l_199",xp="_select_1v49l_203",Sp="_placeholder_1v49l_220",Cp="_helperText_1v49l_224",Tp="_footer_1v49l_231",wp="_clearButton_1v49l_238",_p="_applyButton_1v49l_260",le={modal:Xm,content:Jm,contentWrapper:Qm,closeButton:ep,header:tp,title:np,description:rp,filtersContent:op,filterGroup:sp,expandableHeader:ip,expandableLabel:ap,chevronIcon:lp,chevron:cp,filterItems:up,filterItem:dp,filterItemSize1:fp,filterItemSize2:hp,filterItemSize3:mp,filterItemSize4:pp,filterItemSize5:gp,filterItemSize6:yp,filterInput:vp,inputLabel:bp,select:xp,"Mui-focused":"_Mui-focused_1v49l_212",placeholder:Sp,helperText:Cp,footer:Tp,clearButton:wp,applyButton:_p},ql=({open:e,onClose:t,title:n="Filtros",description:r="Use os filtros abaixo para encontrar câmeras e pontos de interesse.",children:o,formId:s,groups:i,onApply:a,onClear:l,onOpened:u,clearButtonText:c="Limpar filtros",applyButtonText:d="Filtrar",className:f,...h})=>{const m=E.useTheme().palette.mode==="dark",[v,S]=x.useState(i??[]),_=!!o;x.useEffect(()=>{S(i??[])},[i]);const b=Km(v,a),C=Ym(v,l,S),T=(w,P)=>{var N;const M=qm(P,w.id,v,S),k=w.size||6,V=le[`filterItemSize${k}`];if(w.render)return g.jsx(E.Box,{className:`${le.filterItem} ${V}`,children:w.render(w,M)},w.id);switch(w.type){case"select":case"multi-select":const y=w.type==="multi-select";let R;y?w.value!==void 0&&w.value!==null?R=Array.isArray(w.value)?w.value:[w.value]:R=[]:R=w.value!==void 0&&w.value!==null?w.value:"";const O=y?Array.isArray(R)&&R.length>0:R!==""&&R!==null&&R!==void 0;return g.jsx(E.Box,{className:`${le.filterItem} ${V}`,children:g.jsxs(E.FormControl,{fullWidth:!0,className:le.filterInput,children:[g.jsx(E.InputLabel,{id:`${w.id}-label`,className:le.inputLabel,shrink:O,children:w.label}),g.jsx(E.Select,{labelId:`${w.id}-label`,value:R,onChange:F=>M(F.target.value),multiple:y,label:w.label,className:le.select,displayEmpty:!0,renderValue:F=>{var G;if(y){const D=Array.isArray(F)?F:[];return D.length===0?g.jsx(E.Box,{component:"span",style:{opacity:0},children:w.label}):D.map(j=>{var A,$;return(($=(A=w.options)==null?void 0:A.find(L=>L.value===j))==null?void 0:$.label)||j}).join(", ")}if(!F||F==="")return g.jsx(E.Box,{component:"span",style:{opacity:0},children:w.label});const U=(G=w.options)==null?void 0:G.find(D=>D.value===F);return(U==null?void 0:U.label)||F},notched:O,children:(N=w.options)==null?void 0:N.map(F=>g.jsx(E.MenuItem,{value:F.value,children:F.label},F.value))}),w.helperText&&g.jsx(E.Box,{className:le.helperText,children:w.helperText})]})},w.id);case"text":return g.jsx(E.Box,{className:`${le.filterItem} ${V}`,children:g.jsx(E.TextField,{fullWidth:!0,label:w.label,placeholder:w.placeholder,value:w.value||"",onChange:F=>M(F.target.value),className:le.filterInput,helperText:w.helperText,FormHelperTextProps:{className:le.helperText}})},w.id);default:return null}};return g.jsx(E.Dialog,{open:e,onClose:t,maxWidth:"md",fullWidth:!0,TransitionProps:{onEntered:()=>u==null?void 0:u()},PaperProps:{className:`${le.modal} ${f||""}`,"data-theme":m?"dark":"light"},...h,children:g.jsx(E.DialogContent,{className:le.content,children:g.jsxs(E.Box,{className:le.contentWrapper,children:[g.jsx(E.IconButton,{className:le.closeButton,onClick:t,"aria-label":"Fechar",size:"small",children:g.jsx(Gm,{})}),g.jsxs(E.Box,{className:le.header,children:[g.jsx(E.Box,{className:le.title,children:n}),g.jsx(E.Box,{className:le.description,children:r})]}),g.jsx(E.Box,{className:le.filtersContent,children:_?o:v.map(w=>{const P=Zm(w.id,v,S),M=w.expanded!==!1;return g.jsxs(E.Box,{className:le.filterGroup,children:[g.jsxs(E.Box,{className:le.expandableHeader,onClick:P,children:[g.jsx(E.Box,{className:le.expandableLabel,children:w.label}),g.jsx(E.Box,{className:le.chevronIcon,children:M?g.jsx(Hm,{className:le.chevron}):g.jsx(Um,{className:le.chevron})})]}),M&&g.jsx(E.Box,{className:le.filterItems,children:w.items.map(k=>T(k,w.id))})]},w.id)})}),g.jsxs(E.Box,{className:le.footer,children:[g.jsx(E.Button,{onClick:C,className:le.clearButton,"data-theme":m?"dark":"light",children:c}),g.jsx(E.Button,{type:s?"submit":"button",form:s,onClick:s?void 0:b,className:le.applyButton,"data-theme":m?"dark":"light",children:d})]})]})})})};ql.displayName="FilterModal";const Ep="_container_1hyey_1",Ap="_card_1hyey_7",Mp="_icon_1hyey_18",Pp="_text_1hyey_32",Un={container:Ep,card:Ap,icon:Mp,text:Pp},kp=({items:e,className:t,sx:n})=>{const r=E.useTheme(),o={backgroundColor:r.palette.background.paper,borderColor:r.palette.divider},s={color:r.palette.text.primary,"& svg":{fill:r.palette.text.primary}},i={color:r.palette.text.secondary,fontFamily:r.typography.fontFamily,fontSize:r.typography.body2.fontSize,fontWeight:r.typography.fontWeightMedium,lineHeight:r.typography.body2.lineHeight};return g.jsx(E.Box,{className:`${Un.container} ${t||""}`,sx:n,children:e.map((a,l)=>g.jsxs(E.Box,{className:Un.card,sx:o,children:[a.icon&&g.jsx(E.Box,{className:Un.icon,sx:s,children:a.icon}),g.jsxs(E.Typography,{component:"span",className:Un.text,sx:i,children:[a.count," ",a.label]})]},l))})},_s=x.createContext({});function Es(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const Xl=typeof window<"u",Jl=Xl?x.useLayoutEffect:x.useEffect,$r=x.createContext(null);function As(e,t){e.indexOf(t)===-1&&e.push(t)}function Ms(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Je=(e,t,n)=>n>t?t:n<e?e:n;function No(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Qt=()=>{},at=()=>{};var Cl;typeof process<"u"&&((Cl=process.env)==null?void 0:Cl.NODE_ENV)!=="production"&&(Qt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(No(t,n))},at=(e,t,n)=>{if(!e)throw new Error(No(t,n))});const lt={},Ql=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function ec(e){return typeof e=="object"&&e!==null}const tc=e=>/^0[^.\s]+$/u.test(e);function Ps(e){let t;return()=>(t===void 0&&(t=e()),t)}const ze=e=>e,Ip=(e,t)=>n=>t(e(n)),jn=(...e)=>e.reduce(Ip),Mn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class ks{constructor(){this.subscriptions=[]}add(t){return As(this.subscriptions,t),()=>Ms(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let s=0;s<o;s++){const i=this.subscriptions[s];i&&i(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const qe=e=>e*1e3,Fe=e=>e/1e3;function nc(e,t){return t?e*(1e3/t):0}const Gi=new Set;function Is(e,t,n){e||Gi.has(t)||(console.warn(No(t,n)),Gi.add(t))}const rc=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Rp=1e-7,Op=12;function Lp(e,t,n,r,o){let s,i,a=0;do i=t+(n-t)/2,s=rc(i,r,o)-e,s>0?n=i:t=i;while(Math.abs(s)>Rp&&++a<Op);return i}function Dn(e,t,n,r){if(e===t&&n===r)return ze;const o=s=>Lp(s,0,1,e,n);return s=>s===0||s===1?s:rc(o(s),t,r)}const oc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,sc=e=>t=>1-e(1-t),ic=Dn(.33,1.53,.69,.99),Rs=sc(ic),ac=oc(Rs),lc=e=>(e*=2)<1?.5*Rs(e):.5*(2-Math.pow(2,-10*(e-1))),Os=e=>1-Math.sin(Math.acos(e)),cc=sc(Os),uc=oc(Os),jp=Dn(.42,0,1,1),Dp=Dn(0,0,.58,1),dc=Dn(.42,0,.58,1),Bp=e=>Array.isArray(e)&&typeof e[0]!="number",fc=e=>Array.isArray(e)&&typeof e[0]=="number",Ki={linear:ze,easeIn:jp,easeInOut:dc,easeOut:Dp,circIn:Os,circInOut:uc,circOut:cc,backIn:Rs,backInOut:ac,backOut:ic,anticipate:lc},Np=e=>typeof e=="string",Yi=e=>{if(fc(e)){at(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return Dn(t,n,r,o)}else if(Np(e))return at(Ki[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Ki[e];return e},Hn=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function $p(e,t){let n=new Set,r=new Set,o=!1,s=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){i.has(c)&&(u.schedule(c),e()),c(a)}const u={schedule:(c,d=!1,f=!1)=>{const p=f&&o?n:r;return d&&i.add(c),p.has(c)||p.add(c),c},cancel:c=>{r.delete(c),i.delete(c)},process:c=>{if(a=c,o){s=!0;return}o=!0,[n,r]=[r,n],n.forEach(l),n.clear(),o=!1,s&&(s=!1,u.process(c))}};return u}const Vp=40;function hc(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,i=Hn.reduce((b,C)=>(b[C]=$p(s),b),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:h,postRender:p}=i,m=()=>{const b=lt.useManualTiming?o.timestamp:performance.now();n=!1,lt.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(b-o.timestamp,Vp),1)),o.timestamp=b,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),f.process(o),h.process(o),p.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(m))},v=()=>{n=!0,r=!0,o.isProcessing||e(m)};return{schedule:Hn.reduce((b,C)=>{const T=i[C];return b[C]=(w,P=!1,M=!1)=>(n||v(),T.schedule(w,P,M)),b},{}),cancel:b=>{for(let C=0;C<Hn.length;C++)i[Hn[C]].cancel(b)},state:o,steps:i}}const{schedule:ce,cancel:vt,state:Pe,steps:oo}=hc(typeof requestAnimationFrame<"u"?requestAnimationFrame:ze,!0);let rr;function Fp(){rr=void 0}const Re={now:()=>(rr===void 0&&Re.set(Pe.isProcessing||lt.useManualTiming?Pe.timestamp:performance.now()),rr),set:e=>{rr=e,queueMicrotask(Fp)}},mc=e=>t=>typeof t=="string"&&t.startsWith(e),pc=mc("--"),zp=mc("var(--"),Ls=e=>zp(e)?Wp.test(e.split("/*")[0].trim()):!1,Wp=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Zi(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const en={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Pn={...en,transform:e=>Je(0,1,e)},Gn={...en,default:1},wn=e=>Math.round(e*1e5)/1e5,js=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Up(e){return e==null}const Hp=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ds=(e,t)=>n=>!!(typeof n=="string"&&Hp.test(n)&&n.startsWith(e)||t&&!Up(n)&&Object.prototype.hasOwnProperty.call(n,t)),gc=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,s,i,a]=r.match(js);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},Gp=e=>Je(0,255,e),so={...en,transform:e=>Math.round(Gp(e))},It={test:Ds("rgb","red"),parse:gc("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+so.transform(e)+", "+so.transform(t)+", "+so.transform(n)+", "+wn(Pn.transform(r))+")"};function Kp(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const $o={test:Ds("#"),parse:Kp,transform:It.transform},Bn=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ut=Bn("deg"),Xe=Bn("%"),K=Bn("px"),Yp=Bn("vh"),Zp=Bn("vw"),qi={...Xe,parse:e=>Xe.parse(e)/100,transform:e=>Xe.transform(e*100)},zt={test:Ds("hsl","hue"),parse:gc("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Xe.transform(wn(t))+", "+Xe.transform(wn(n))+", "+wn(Pn.transform(r))+")"},Se={test:e=>It.test(e)||$o.test(e)||zt.test(e),parse:e=>It.test(e)?It.parse(e):zt.test(e)?zt.parse(e):$o.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?It.transform(e):zt.transform(e),getAnimatableNone:e=>{const t=Se.parse(e);return t.alpha=0,Se.transform(t)}},qp=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Xp(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(js))==null?void 0:t.length)||0)+(((n=e.match(qp))==null?void 0:n.length)||0)>0}const yc="number",vc="color",Jp="var",Qp="var(",Xi="${}",eg=/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 kn(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let s=0;const a=t.replace(eg,l=>(Se.test(l)?(r.color.push(s),o.push(vc),n.push(Se.parse(l))):l.startsWith(Qp)?(r.var.push(s),o.push(Jp),n.push(l)):(r.number.push(s),o.push(yc),n.push(parseFloat(l))),++s,Xi)).split(Xi);return{values:n,split:a,indexes:r,types:o}}function bc(e){return kn(e).values}function xc(e){const{split:t,types:n}=kn(e),r=t.length;return o=>{let s="";for(let i=0;i<r;i++)if(s+=t[i],o[i]!==void 0){const a=n[i];a===yc?s+=wn(o[i]):a===vc?s+=Se.transform(o[i]):s+=o[i]}return s}}const tg=e=>typeof e=="number"?0:Se.test(e)?Se.getAnimatableNone(e):e;function ng(e){const t=bc(e);return xc(e)(t.map(tg))}const bt={test:Xp,parse:bc,createTransformer:xc,getAnimatableNone:ng};function io(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 rg({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,s=0,i=0;if(!t)o=s=i=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=io(l,a,e+1/3),s=io(l,a,e),i=io(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(i*255),alpha:r}}function mr(e,t){return n=>n>0?t:e}const he=(e,t,n)=>e+(t-e)*n,ao=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},og=[$o,It,zt],sg=e=>og.find(t=>t.test(e));function Ji(e){const t=sg(e);if(Qt(!!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===zt&&(n=rg(n)),n}const Qi=(e,t)=>{const n=Ji(e),r=Ji(t);if(!n||!r)return mr(e,t);const o={...n};return s=>(o.red=ao(n.red,r.red,s),o.green=ao(n.green,r.green,s),o.blue=ao(n.blue,r.blue,s),o.alpha=he(n.alpha,r.alpha,s),It.transform(o))},Vo=new Set(["none","hidden"]);function ig(e,t){return Vo.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function ag(e,t){return n=>he(e,t,n)}function Bs(e){return typeof e=="number"?ag:typeof e=="string"?Ls(e)?mr:Se.test(e)?Qi:ug:Array.isArray(e)?Sc:typeof e=="object"?Se.test(e)?Qi:lg:mr}function Sc(e,t){const n=[...e],r=n.length,o=e.map((s,i)=>Bs(s)(s,t[i]));return s=>{for(let i=0;i<r;i++)n[i]=o[i](s);return n}}function lg(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Bs(e[o])(e[o],t[o]));return o=>{for(const s in r)n[s]=r[s](o);return n}}function cg(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],i=e.indexes[s][r[s]],a=e.values[i]??0;n[o]=a,r[s]++}return n}const ug=(e,t)=>{const n=bt.createTransformer(t),r=kn(e),o=kn(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Vo.has(e)&&!o.values.length||Vo.has(t)&&!r.values.length?ig(e,t):jn(Sc(cg(r,o),o.values),n):(Qt(!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"),mr(e,t))};function Cc(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?he(e,t,n):Bs(e)(e,t)}const dg=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ce.update(t,n),stop:()=>vt(t),now:()=>Pe.isProcessing?Pe.timestamp:Re.now()}},Tc=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let s=0;s<o;s++)r+=Math.round(e(s/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},pr=2e4;function Ns(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<pr;)t+=n,r=e.next(t);return t>=pr?1/0:t}function fg(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(Ns(r),pr);return{type:"keyframes",ease:s=>r.next(o*s).value/t,duration:Fe(o)}}const hg=5;function wc(e,t,n){const r=Math.max(t-hg,0);return nc(n-e(r),t-r)}const fe={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},lo=.001;function mg({duration:e=fe.duration,bounce:t=fe.bounce,velocity:n=fe.velocity,mass:r=fe.mass}){let o,s;Qt(e<=qe(fe.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let i=1-t;i=Je(fe.minDamping,fe.maxDamping,i),e=Je(fe.minDuration,fe.maxDuration,Fe(e)),i<1?(o=u=>{const c=u*i,d=c*e,f=c-n,h=Fo(u,i),p=Math.exp(-d);return lo-f/h*p},s=u=>{const d=u*i*e,f=d*n+n,h=Math.pow(i,2)*Math.pow(u,2)*e,p=Math.exp(-d),m=Fo(Math.pow(u,2),i);return(-o(u)+lo>0?-1:1)*((f-h)*p)/m}):(o=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-lo+c*d},s=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=gg(o,s,a);if(e=qe(e),isNaN(l))return{stiffness:fe.stiffness,damping:fe.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:i*2*Math.sqrt(r*u),duration:e}}}const pg=12;function gg(e,t,n){let r=n;for(let o=1;o<pg;o++)r=r-e(r)/t(r);return r}function Fo(e,t){return e*Math.sqrt(1-t*t)}const yg=["duration","bounce"],vg=["stiffness","damping","mass"];function ea(e,t){return t.some(n=>e[n]!==void 0)}function bg(e){let t={velocity:fe.velocity,stiffness:fe.stiffness,damping:fe.damping,mass:fe.mass,isResolvedFromDuration:!1,...e};if(!ea(e,vg)&&ea(e,yg))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,s=2*Je(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:fe.mass,stiffness:o,damping:s}}else{const n=mg(e);t={...t,...n,mass:fe.mass},t.isResolvedFromDuration=!0}return t}function gr(e=fe.visualDuration,t=fe.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const s=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:h}=bg({...n,velocity:-Fe(n.velocity||0)}),p=f||0,m=u/(2*Math.sqrt(l*c)),v=i-s,S=Fe(Math.sqrt(l/c)),_=Math.abs(v)<5;r||(r=_?fe.restSpeed.granular:fe.restSpeed.default),o||(o=_?fe.restDelta.granular:fe.restDelta.default);let b;if(m<1){const T=Fo(S,m);b=w=>{const P=Math.exp(-m*S*w);return i-P*((p+m*S*v)/T*Math.sin(T*w)+v*Math.cos(T*w))}}else if(m===1)b=T=>i-Math.exp(-S*T)*(v+(p+S*v)*T);else{const T=S*Math.sqrt(m*m-1);b=w=>{const P=Math.exp(-m*S*w),M=Math.min(T*w,300);return i-P*((p+m*S*v)*Math.sinh(M)+T*v*Math.cosh(M))/T}}const C={calculatedDuration:h&&d||null,next:T=>{const w=b(T);if(h)a.done=T>=d;else{let P=T===0?p:0;m<1&&(P=T===0?qe(p):wc(b,T,w));const M=Math.abs(P)<=r,k=Math.abs(i-w)<=o;a.done=M&&k}return a.value=a.done?i:w,a},toString:()=>{const T=Math.min(Ns(C),pr),w=Tc(P=>C.next(T*P).value,T,30);return T+"ms "+w},toTransition:()=>{}};return C}gr.applyToOptions=e=>{const t=fg(e,100,gr);return e.ease=t.ease,e.duration=qe(t.duration),e.type="keyframes",e};function zo({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:i,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},h=M=>a!==void 0&&M<a||l!==void 0&&M>l,p=M=>a===void 0?l:l===void 0||Math.abs(a-M)<Math.abs(l-M)?a:l;let m=n*t;const v=d+m,S=i===void 0?v:i(v);S!==v&&(m=S-d);const _=M=>-m*Math.exp(-M/r),b=M=>S+_(M),C=M=>{const k=_(M),V=b(M);f.done=Math.abs(k)<=u,f.value=f.done?S:V};let T,w;const P=M=>{h(f.value)&&(T=M,w=gr({keyframes:[f.value,p(f.value)],velocity:wc(b,M,f.value),damping:o,stiffness:s,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:M=>{let k=!1;return!w&&T===void 0&&(k=!0,C(M),P(M)),T!==void 0&&M>=T?w.next(M-T):(!k&&C(M),f)}}}function xg(e,t,n){const r=[],o=n||lt.mix||Cc,s=e.length-1;for(let i=0;i<s;i++){let a=o(e[i],e[i+1]);if(t){const l=Array.isArray(t)?t[i]||ze:t;a=jn(l,a)}r.push(a)}return r}function Sg(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const s=e.length;if(at(s===t.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=xg(t,r,o),l=a.length,u=c=>{if(i&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const f=Mn(e[d],e[d+1],c);return a[d](f)};return n?c=>u(Je(e[0],e[s-1],c)):u}function Cg(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Mn(0,t,r);e.push(he(n,1,o))}}function Tg(e){const t=[0];return Cg(t,e.length-1),t}function wg(e,t){return e.map(n=>n*t)}function _g(e,t){return e.map(()=>t||dc).splice(0,e.length-1)}function Wt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Bp(r)?r.map(Yi):Yi(r),s={done:!1,value:t[0]},i=wg(n&&n.length===t.length?n:Tg(t),e),a=Sg(i,t,{ease:Array.isArray(o)?o:_g(t,o)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const Eg=e=>e!==null;function $s(e,{repeat:t,repeatType:n="loop"},r,o=1){const s=e.filter(Eg),a=o<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const Ag={decay:zo,inertia:zo,tween:Wt,keyframes:Wt,spring:gr};function _c(e){typeof e.type=="string"&&(e.type=Ag[e.type])}class Vs{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 Mg=e=>e/100;class Fs extends Vs{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,o;const{motionValue:n}=this.options;n&&n.updatedAt!==Re.now()&&this.tick(Re.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(r=this.options).onStop)==null||o.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;_c(t);const{type:n=Wt,repeat:r=0,repeatDelay:o=0,repeatType:s,velocity:i=0}=t;let{keyframes:a}=t;const l=n||Wt;process.env.NODE_ENV!=="production"&&l!==Wt&&at(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==Wt&&typeof a[0]!="number"&&(this.mixKeyframes=jn(Mg,Cc(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-i})),u.calculatedDuration===null&&(u.calculatedDuration=Ns(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+o,this.totalDuration=this.resolvedDuration*(r+1)-o,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:r,totalDuration:o,mixKeyframes:s,mirroredGenerator:i,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:c,repeat:d,repeatType:f,repeatDelay:h,type:p,onUpdate:m,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const S=this.currentTime-u*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?S<0:S>o;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let b=this.currentTime,C=r;if(d){const M=Math.min(this.currentTime,o)/a;let k=Math.floor(M),V=M%1;!V&&M>=1&&(V=1),V===1&&k--,k=Math.min(k,d+1),!!(k%2)&&(f==="reverse"?(V=1-V,h&&(V-=h/a)):f==="mirror"&&(C=i)),b=Je(0,1,V)*a}const T=_?{done:!1,value:c[0]}:C.next(b);s&&(T.value=s(T.value));let{done:w}=T;!_&&l!==null&&(w=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&w);return P&&p!==zo&&(T.value=$s(c,this.options,v,this.speed)),m&&m(T.value),P&&this.finish(),T}then(t,n){return this.finished.then(t,n)}get duration(){return Fe(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Fe(t)}get time(){return Fe(this.currentTime)}set time(t){var n;t=qe(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(Re.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Fe(this.currentTime))}play(){var o,s;if(this.isStopped)return;const{driver:t=dg,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),(s=(o=this.options).onPlay)==null||s.call(o);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),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(Re.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 Pg(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Rt=e=>e*180/Math.PI,Wo=e=>{const t=Rt(Math.atan2(e[1],e[0]));return Uo(t)},kg={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Wo,rotateZ:Wo,skewX:e=>Rt(Math.atan(e[1])),skewY:e=>Rt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Uo=e=>(e=e%360,e<0&&(e+=360),e),ta=Wo,na=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ra=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Ig={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:na,scaleY:ra,scale:e=>(na(e)+ra(e))/2,rotateX:e=>Uo(Rt(Math.atan2(e[6],e[5]))),rotateY:e=>Uo(Rt(Math.atan2(-e[2],e[0]))),rotateZ:ta,rotate:ta,skewX:e=>Rt(Math.atan(e[4])),skewY:e=>Rt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ho(e){return e.includes("scale")?1:0}function Go(e,t){if(!e||e==="none")return Ho(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=Ig,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=kg,o=a}if(!o)return Ho(t);const s=r[t],i=o[1].split(",").map(Og);return typeof s=="function"?s(i):i[s]}const Rg=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Go(n,t)};function Og(e){return parseFloat(e.trim())}const tn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],nn=new Set(tn),oa=e=>e===en||e===K,Lg=new Set(["x","y","z"]),jg=tn.filter(e=>!Lg.has(e));function Dg(e){const t=[];return jg.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const mt={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})=>Go(t,"x"),y:(e,{transform:t})=>Go(t,"y")};mt.translateX=mt.x;mt.translateY=mt.y;const Lt=new Set;let Ko=!1,Yo=!1,Zo=!1;function Ec(){if(Yo){const e=Array.from(Lt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=Dg(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([s,i])=>{var a;(a=r.getValue(s))==null||a.set(i)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Yo=!1,Ko=!1,Lt.forEach(e=>e.complete(Zo)),Lt.clear()}function Ac(){Lt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Yo=!0)})}function Bg(){Zo=!0,Ac(),Ec(),Zo=!1}class zs{constructor(t,n,r,o,s,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=s,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(Lt.add(this),Ko||(Ko=!0,ce.read(Ac),ce.resolveKeyframes(Ec))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const s=o==null?void 0:o.get(),i=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,i);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=i),o&&s===void 0&&o.set(t[0])}Pg(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Lt.delete(this)}cancel(){this.state==="scheduled"&&(Lt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Ng=e=>e.startsWith("--");function $g(e,t,n){Ng(t)?e.style.setProperty(t,n):e.style[t]=n}const Vg=Ps(()=>window.ScrollTimeline!==void 0),Fg={};function zg(e,t){const n=Ps(e);return()=>Fg[t]??n()}const Mc=zg(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),bn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,sa={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:bn([0,.65,.55,1]),circOut:bn([.55,0,1,.45]),backIn:bn([.31,.01,.66,-.59]),backOut:bn([.33,1.53,.69,.99])};function Pc(e,t){if(e)return typeof e=="function"?Mc()?Tc(e,t):"ease-out":fc(e)?bn(e):Array.isArray(e)?e.map(n=>Pc(n,t)||sa.easeOut):sa[e]}function Wg(e,t,n,{delay:r=0,duration:o=300,repeat:s=0,repeatType:i="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const d=Pc(a,o);Array.isArray(d)&&(c.easing=d);const f={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:i==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),e.animate(c,f)}function kc(e){return typeof e=="function"&&"applyToOptions"in e}function Ug({type:e,...t}){return kc(e)&&Mc()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Hg extends Vs{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:s,allowFlatten:i=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=i,this.options=t,at(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=Ug(t);this.animation=Wg(n,r,o,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const c=$s(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(c):$g(n,r,c),this.animation.cancel()}l==null||l(),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 t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Fe(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Fe(t)}get time(){return Fe(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=qe(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 r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Vg()?(this.animation.timeline=t,ze):n(this)}}const Ic={anticipate:lc,backInOut:ac,circInOut:uc};function Gg(e){return e in Ic}function Kg(e){typeof e.ease=="string"&&Gg(e.ease)&&(e.ease=Ic[e.ease])}const co=10;class Yg extends Hg{constructor(t){Kg(t),_c(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:s,...i}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Fs({...i,autoplay:!1}),l=Math.max(co,Re.now()-this.startTime),u=Je(0,co,l-co);n.setWithVelocity(a.sample(Math.max(0,l-u)).value,a.sample(l).value,u),a.stop()}}const ia=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(bt.test(e)||e==="0")&&!e.startsWith("url("));function Zg(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 qg(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],i=ia(o,t),a=ia(s,t);return Qt(i===a,`You are trying to animate ${t} from "${o}" to "${s}". "${i?s:o}" is not an animatable value.`,"value-not-animatable"),!i||!a?!1:Zg(e)||(n==="spring"||kc(n))&&r}function qo(e){e.duration=0,e.type="keyframes"}const Xg=new Set(["opacity","clipPath","filter","transform"]),Jg=Ps(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Qg(e){var c;const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:s,type:i}=e;if(!(((c=t==null?void 0:t.owner)==null?void 0:c.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Jg()&&n&&Xg.has(n)&&(n!=="transform"||!u)&&!l&&!r&&o!=="mirror"&&s!==0&&i!=="inertia"}const e0=40;class t0 extends Vs{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:i="loop",keyframes:a,name:l,motionValue:u,element:c,...d}){var p;super(),this.stop=()=>{var m,v;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(v=this.keyframeResolver)==null||v.cancel()},this.createdAt=Re.now();const f={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:s,repeatType:i,name:l,motionValue:u,element:c,...d},h=(c==null?void 0:c.KeyframeResolver)||zs;this.keyframeResolver=new h(a,(m,v,S)=>this.onKeyframesResolved(m,v,f,!S),l,u,c),(p=this.keyframeResolver)==null||p.scheduleResolve()}onKeyframesResolved(t,n,r,o){var v,S;this.keyframeResolver=void 0;const{name:s,type:i,velocity:a,delay:l,isHandoff:u,onUpdate:c}=r;this.resolvedAt=Re.now(),qg(t,s,i,a)||((lt.instantAnimations||!l)&&(c==null||c($s(t,r,n))),t[0]=t[t.length-1],qo(r),r.repeat=0);const f={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>e0?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},h=!u&&Qg(f),p=(S=(v=f.motionValue)==null?void 0:v.owner)==null?void 0:S.current,m=h?new Yg({...f,element:p}):new Fs(f);m.finished.then(()=>{this.notifyFinished()}).catch(ze),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}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(),Bg()),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 Rc(e,t,n,r=0,o=1){const s=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),i=e.size,a=(i-1)*r;return typeof n=="function"?n(s,i):o===1?s*r:a-s*r}const n0=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function r0(e){const t=n0.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const o0=4;function Oc(e,t,n=1){at(n<=o0,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=r0(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const i=s.trim();return Ql(i)?parseFloat(i):i}return Ls(o)?Oc(o,t,n+1):o}const s0={type:"spring",stiffness:500,damping:25,restSpeed:10},i0=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),a0={type:"keyframes",duration:.8},l0={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},c0=(e,{keyframes:t})=>t.length>2?a0:nn.has(e)?e.startsWith("scale")?i0(t[1]):s0:l0,u0=e=>e!==null;function d0(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(u0),s=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[s]}function Ws(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}function f0({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:i,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Us=(e,t,n,r={},o,s)=>i=>{const a=Ws(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-qe(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{i(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:o};f0(a)||Object.assign(c,c0(e,c)),c.duration&&(c.duration=qe(c.duration)),c.repeatDelay&&(c.repeatDelay=qe(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(qo(c),c.delay===0&&(d=!0)),(lt.instantAnimations||lt.skipAnimations)&&(d=!0,qo(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,d&&!s&&t.get()!==void 0){const f=d0(c.keyframes,a);if(f!==void 0){ce.update(()=>{c.onUpdate(f),c.onComplete()});return}}return a.isSync?new Fs(c):new t0(c)};function aa(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Hs(e,t,n,r){if(typeof t=="function"){const[o,s]=aa(r);t=t(n!==void 0?n:e.custom,o,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,s]=aa(r);t=t(n!==void 0?n:e.custom,o,s)}return t}function Zt(e,t,n){const r=e.getProps();return Hs(r,t,n!==void 0?n:r.custom,e)}const Lc=new Set(["width","height","top","left","right","bottom",...tn]),la=30,h0=e=>!isNaN(parseFloat(e));class m0{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const o=Re.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Re.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=h0(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Is(!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 ks);const r=this.events[t].add(n);return t==="change"?()=>{r(),ce.read(()=>{this.events.change.getSize()||this.stop()})}:r}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,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}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=Re.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>la)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,la);return nc(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 Xt(e,t){return new m0(e,t)}const Xo=e=>Array.isArray(e);function p0(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Xt(n))}function g0(e){return Xo(e)?e[e.length-1]||0:e}function y0(e,t){const n=Zt(e,t);let{transitionEnd:r={},transition:o={},...s}=n||{};s={...s,...r};for(const i in s){const a=g0(s[i]);p0(e,i,a)}}const ke=e=>!!(e&&e.getVelocity);function v0(e){return!!(ke(e)&&e.add)}function Jo(e,t){const n=e.getValue("willChange");if(v0(n))return n.add(t);if(!n&&lt.WillChange){const r=new lt.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Gs(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const b0="framerAppearId",jc="data-"+Gs(b0);function Dc(e){return e.props[jc]}function x0({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Bc(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:i,...a}=t;const l=s==null?void 0:s.reduceMotion;r&&(s=r);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const d in a){const f=e.getValue(d,e.latestValues[d]??null),h=a[d];if(h===void 0||c&&x0(c,d))continue;const p={delay:n,...Ws(s||{},d)},m=f.get();if(m!==void 0&&!f.isAnimating&&!Array.isArray(h)&&h===m&&!p.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const b=Dc(e);if(b){const C=window.MotionHandoffAnimation(b,d,ce);C!==null&&(p.startTime=C,v=!0)}}Jo(e,d);const S=l??e.shouldReduceMotion;f.start(Us(d,f,h,S&&Lc.has(d)?{type:!1}:p,e,v));const _=f.animation;_&&u.push(_)}return i&&Promise.all(u).then(()=>{ce.update(()=>{i&&y0(e,i)})}),u}function Qo(e,t,n={}){var l;const r=Zt(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(Bc(e,r,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=o;return S0(e,t,u,c,d,f,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[u,c]=a==="beforeChildren"?[s,i]:[i,s];return u().then(()=>c())}else return Promise.all([s(),i(n.delay)])}function S0(e,t,n=0,r=0,o=0,s=1,i){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Qo(l,t,{...i,delay:n+(typeof r=="function"?0:r)+Rc(e.variantChildren,l,r,o,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function C0(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(s=>Qo(e,s,n));r=Promise.all(o)}else if(typeof t=="string")r=Qo(e,t,n);else{const o=typeof t=="function"?Zt(e,t,n.custom):t;r=Promise.all(Bc(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const T0={test:e=>e==="auto",parse:e=>e},Nc=e=>t=>t.test(e),$c=[en,K,Xe,ut,Zp,Yp,T0],ca=e=>$c.find(Nc(e));function w0(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||tc(e):!0}const _0=new Set(["brightness","contrast","saturate","opacity"]);function E0(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(js)||[];if(!r)return e;const o=n.replace(r,"");let s=_0.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+o+")"}const A0=/\b([a-z-]*)\(.*?\)/gu,es={...bt,getAnimatableNone:e=>{const t=e.match(A0);return t?t.map(E0).join(" "):e}},ua={...en,transform:Math.round},M0={rotate:ut,rotateX:ut,rotateY:ut,rotateZ:ut,scale:Gn,scaleX:Gn,scaleY:Gn,scaleZ:Gn,skew:ut,skewX:ut,skewY:ut,distance:K,translateX:K,translateY:K,translateZ:K,x:K,y:K,z:K,perspective:K,transformPerspective:K,opacity:Pn,originX:qi,originY:qi,originZ:K},Ks={borderWidth:K,borderTopWidth:K,borderRightWidth:K,borderBottomWidth:K,borderLeftWidth:K,borderRadius:K,borderTopLeftRadius:K,borderTopRightRadius:K,borderBottomRightRadius:K,borderBottomLeftRadius:K,width:K,maxWidth:K,height:K,maxHeight:K,top:K,right:K,bottom:K,left:K,inset:K,insetBlock:K,insetBlockStart:K,insetBlockEnd:K,insetInline:K,insetInlineStart:K,insetInlineEnd:K,padding:K,paddingTop:K,paddingRight:K,paddingBottom:K,paddingLeft:K,paddingBlock:K,paddingBlockStart:K,paddingBlockEnd:K,paddingInline:K,paddingInlineStart:K,paddingInlineEnd:K,margin:K,marginTop:K,marginRight:K,marginBottom:K,marginLeft:K,marginBlock:K,marginBlockStart:K,marginBlockEnd:K,marginInline:K,marginInlineStart:K,marginInlineEnd:K,fontSize:K,backgroundPositionX:K,backgroundPositionY:K,...M0,zIndex:ua,fillOpacity:Pn,strokeOpacity:Pn,numOctaves:ua},P0={...Ks,color:Se,backgroundColor:Se,outlineColor:Se,fill:Se,stroke:Se,borderColor:Se,borderTopColor:Se,borderRightColor:Se,borderBottomColor:Se,borderLeftColor:Se,filter:es,WebkitFilter:es},Vc=e=>P0[e];function Fc(e,t){let n=Vc(e);return n!==es&&(n=bt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const k0=new Set(["auto","none","0"]);function I0(e,t,n){let r=0,o;for(;r<e.length&&!o;){const s=e[r];typeof s=="string"&&!k0.has(s)&&kn(s).values.length&&(o=e[r]),r++}if(o&&n)for(const s of t)e[s]=Fc(n,o)}class R0 extends zs{constructor(t,n,r,o,s){super(t,n,r,o,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),Ls(d))){const f=Oc(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Lc.has(r)||t.length!==2)return;const[o,s]=t,i=ca(o),a=ca(s),l=Zi(o),u=Zi(s);if(l!==u&&mt[r]){this.needsMeasurement=!0;return}if(i!==a)if(oa(i)&&oa(a))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else mt[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||w0(t[o]))&&r.push(o);r.length&&I0(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=mt[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const s=r.length-1,i=r[s];r[s]=mt[n](t.measureViewportBox(),window.getComputedStyle(t.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function O0(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=(n==null?void 0:n[e])??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(r=>r!=null)}const zc=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ts(e){return ec(e)&&"offsetHeight"in e}const{schedule:Ys}=hc(queueMicrotask,!1),He={x:!1,y:!1};function Wc(){return He.x||He.y}function L0(e){return e==="x"||e==="y"?He[e]?null:(He[e]=!0,()=>{He[e]=!1}):He.x||He.y?null:(He.x=He.y=!0,()=>{He.x=He.y=!1})}function Uc(e,t){const n=O0(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function da(e){return!(e.pointerType==="touch"||Wc())}function j0(e,t,n={}){const[r,o,s]=Uc(e,n),i=a=>{if(!da(a))return;const{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;const c=d=>{da(d)&&(u(d),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,o)};return r.forEach(a=>{a.addEventListener("pointerenter",i,o)}),s}const Hc=(e,t)=>t?e===t?!0:Hc(e,t.parentElement):!1,Zs=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,D0=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Gc(e){return D0.has(e.tagName)||e.isContentEditable===!0}const or=new WeakSet;function fa(e){return t=>{t.key==="Enter"&&e(t)}}function uo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const B0=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=fa(()=>{if(or.has(n))return;uo(n,"down");const o=fa(()=>{uo(n,"up")}),s=()=>uo(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function ha(e){return Zs(e)&&!Wc()}function N0(e,t,n={}){const[r,o,s]=Uc(e,n),i=a=>{const l=a.currentTarget;if(!ha(a))return;or.add(l);const u=t(l,a),c=(h,p)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),or.has(l)&&or.delete(l),ha(h)&&typeof u=="function"&&u(h,{success:p})},d=h=>{c(h,l===window||l===document||n.useGlobalTarget||Hc(l,h.target))},f=h=>{c(h,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",f,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",i,o),ts(a)&&(a.addEventListener("focus",u=>B0(u,o)),!Gc(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function Kc(e){return ec(e)&&"ownerSVGElement"in e}function $0(e){return Kc(e)&&e.tagName==="svg"}const V0=[...$c,Se,bt],F0=e=>V0.find(Nc(e)),ma=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ut=()=>({x:ma(),y:ma()}),pa=()=>({min:0,max:0}),Te=()=>({x:pa(),y:pa()}),ns={current:null},Yc={current:!1},z0=typeof window<"u";function W0(){if(Yc.current=!0,!!z0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ns.current=e.matches;e.addEventListener("change",t),t()}else ns.current=!1}const U0=new WeakMap;function Vr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function In(e){return typeof e=="string"||Array.isArray(e)}const qs=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Xs=["initial",...qs];function Fr(e){return Vr(e.animate)||Xs.some(t=>In(e[t]))}function Zc(e){return!!(Fr(e)||e.variants)}function H0(e,t,n){for(const r in t){const o=t[r],s=n[r];if(ke(o))e.addValue(r,o);else if(ke(s))e.addValue(r,Xt(o,{owner:e}));else if(s!==o)if(e.hasValue(r)){const i=e.getValue(r);i.liveStyle===!0?i.jump(o):i.hasAnimated||i.set(o)}else{const i=e.getStaticValue(r);e.addValue(r,Xt(i!==void 0?i:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ga=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let yr={};function qc(e){yr=e}function G0(){return yr}class K0{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:s,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=zs,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 f=Re.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,ce.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=i;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=Fr(n),this.isVariantNode=Zc(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const h=d[f];l[f]!==void 0&&ke(h)&&h.set(l[f])}}mount(t){var n;this.current=t,U0.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((r,o)=>this.bindToMotionValue(o,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Yc.current||W0(),this.shouldReduceMotion=ns.current),process.env.NODE_ENV!=="production"&&Is(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),vt(this.notifyUpdate),vt(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 r=this.features[n];r&&(r.unmount(),r.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 r=nn.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&ce.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),s&&s(),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 yr){const n=yr[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Te()}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 r=0;r<ga.length;r++){const o=ga[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s="on"+o,i=t[s];i&&(this.propEventSubscriptions[o]=this.on(o,i))}this.prevMotionValues=H0(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 r=this.values.get(t);n!==r&&(r&&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 r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Xt(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Ql(r)||tc(r))?r=parseFloat(r):!F0(r)&&bt.test(n)&&(r=Fc(t,n)),this.setBaseTarget(t,ke(r)?r.get():r)),ke(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const i=Hs(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);i&&(r=i[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ke(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ks),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Ys.render(this.render)}}class Xc extends K0{constructor(){super(...arguments),this.KeyframeResolver=R0}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ke(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class St{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Jc({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Y0({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Z0(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function fo(e){return e===void 0||e===1}function rs({scale:e,scaleX:t,scaleY:n}){return!fo(e)||!fo(t)||!fo(n)}function Pt(e){return rs(e)||Qc(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Qc(e){return ya(e.x)||ya(e.y)}function ya(e){return e&&e!=="0%"}function vr(e,t,n){const r=e-n,o=t*r;return n+o}function va(e,t,n,r,o){return o!==void 0&&(e=vr(e,o,r)),vr(e,n,r)+t}function os(e,t=0,n=1,r,o){e.min=va(e.min,t,n,r,o),e.max=va(e.max,t,n,r,o)}function eu(e,{x:t,y:n}){os(e.x,t.translate,t.scale,t.originPoint),os(e.y,n.translate,n.scale,n.originPoint)}const ba=.999999999999,xa=1.0000000000001;function q0(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let s,i;for(let a=0;a<o;a++){s=n[a],i=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Gt(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,eu(e,i)),r&&Pt(s.latestValues)&&Gt(e,s.latestValues))}t.x<xa&&t.x>ba&&(t.x=1),t.y<xa&&t.y>ba&&(t.y=1)}function Ht(e,t){e.min=e.min+t,e.max=e.max+t}function Sa(e,t,n,r,o=.5){const s=he(e.min,e.max,o);os(e,t,n,s,r)}function Gt(e,t){Sa(e.x,t.x,t.scaleX,t.scale,t.originX),Sa(e.y,t.y,t.scaleY,t.scale,t.originY)}function tu(e,t){return Jc(Z0(e.getBoundingClientRect(),t))}function X0(e,t,n){const r=tu(e,n),{scroll:o}=t;return o&&(Ht(r.x,o.offset.x),Ht(r.y,o.offset.y)),r}const J0={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Q0=tn.length;function ey(e,t,n){let r="",o=!0;for(let s=0;s<Q0;s++){const i=tn[s],a=e[i];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(i.startsWith("scale")?1:0);else{const u=parseFloat(a);l=i.startsWith("scale")?u===1:u===0}if(!l||n){const u=zc(a,Ks[i]);if(!l){o=!1;const c=J0[i]||i;r+=`${c}(${u}) `}n&&(t[i]=u)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Js(e,t,n){const{style:r,vars:o,transformOrigin:s}=e;let i=!1,a=!1;for(const l in t){const u=t[l];if(nn.has(l)){i=!0;continue}else if(pc(l)){o[l]=u;continue}else{const c=zc(u,Ks[l]);l.startsWith("origin")?(a=!0,s[l]=c):r[l]=c}}if(t.transform||(i||n?r.transform=ey(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=s;r.transformOrigin=`${l} ${u} ${c}`}}function nu(e,{style:t,vars:n},r,o){const s=e.style;let i;for(i in t)s[i]=t[i];o==null||o.applyProjectionStyles(s,r);for(i in n)s.setProperty(i,n[i])}function Ca(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const fn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(K.test(e))e=parseFloat(e);else return e;const n=Ca(e,t.target.x),r=Ca(e,t.target.y);return`${n}% ${r}%`}},ty={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=bt.parse(e);if(o.length>5)return r;const s=bt.createTransformer(e),i=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+i]/=a,o[1+i]/=l;const u=he(a,l,.5);return typeof o[2+i]=="number"&&(o[2+i]/=u),typeof o[3+i]=="number"&&(o[3+i]/=u),s(o)}},ss={borderRadius:{...fn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:fn,borderTopRightRadius:fn,borderBottomLeftRadius:fn,borderBottomRightRadius:fn,boxShadow:ty};function ru(e,{layout:t,layoutId:n}){return nn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ss[e]||e==="opacity")}function Qs(e,t,n){var i;const r=e.style,o=t==null?void 0:t.style,s={};if(!r)return s;for(const a in r)(ke(r[a])||o&&ke(o[a])||ru(a,e)||((i=n==null?void 0:n.getValue(a))==null?void 0:i.liveStyle)!==void 0)&&(s[a]=r[a]);return s}function ny(e){return window.getComputedStyle(e)}class ry extends Xc{constructor(){super(...arguments),this.type="html",this.renderInstance=nu}readValueFromInstance(t,n){var r;if(nn.has(n))return(r=this.projection)!=null&&r.isProjecting?Ho(n):Rg(t,n);{const o=ny(t),s=(pc(n)?o.getPropertyValue(n):o[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return tu(t,n)}build(t,n,r){Js(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Qs(t,n,r)}}const oy={offset:"stroke-dashoffset",array:"stroke-dasharray"},sy={offset:"strokeDashoffset",array:"strokeDasharray"};function iy(e,t,n=1,r=0,o=!0){e.pathLength=1;const s=o?oy:sy;e[s.offset]=`${-r}`,e[s.array]=`${t} ${n}`}const ay=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ou(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:s=1,pathOffset:i=0,...a},l,u,c){if(Js(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete d.transformBox);for(const h of ay)d[h]!==void 0&&(f[h]=d[h],delete d[h]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),o!==void 0&&iy(d,o,s,i,!1)}const su=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"]),iu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ly(e,t,n,r){nu(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(su.has(o)?o:Gs(o),t.attrs[o])}function au(e,t,n){const r=Qs(e,t,n);for(const o in e)if(ke(e[o])||ke(t[o])){const s=tn.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[s]=e[o]}return r}class cy extends Xc{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Te}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(nn.has(n)){const r=Vc(n);return r&&r.default||0}return n=su.has(n)?n:Gs(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return au(t,n,r)}build(t,n,r){ou(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){ly(t,n,r,o)}mount(t){this.isSVGTag=iu(t.tagName),super.mount(t)}}const uy=Xs.length;function lu(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?lu(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<uy;n++){const r=Xs[n],o=e.props[r];(In(o)||o===!1)&&(t[r]=o)}return t}function cu(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const dy=[...qs].reverse(),fy=qs.length;function hy(e){return t=>Promise.all(t.map(({animation:n,options:r})=>C0(e,n,r)))}function my(e){let t=hy(e),n=Ta(),r=!0;const o=l=>(u,c)=>{var f;const d=Zt(e,c,l==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(d){const{transition:h,transitionEnd:p,...m}=d;u={...u,...m,...p}}return u};function s(l){t=l(e)}function i(l){const{props:u}=e,c=lu(e.parent)||{},d=[],f=new Set;let h={},p=1/0;for(let v=0;v<fy;v++){const S=dy[v],_=n[S],b=u[S]!==void 0?u[S]:c[S],C=In(b),T=S===l?_.isActive:null;T===!1&&(p=v);let w=b===c[S]&&b!==u[S]&&C;if(w&&r&&e.manuallyAnimateOnMount&&(w=!1),_.protectedKeys={...h},!_.isActive&&T===null||!b&&!_.prevProp||Vr(b)||typeof b=="boolean")continue;const P=py(_.prevProp,b);let M=P||S===l&&_.isActive&&!w&&C||v>p&&C,k=!1;const V=Array.isArray(b)?b:[b];let N=V.reduce(o(S),{});T===!1&&(N={});const{prevResolvedValues:y={}}=_,R={...y,...N},O=G=>{M=!0,f.has(G)&&(k=!0,f.delete(G)),_.needsAnimating[G]=!0;const D=e.getValue(G);D&&(D.liveStyle=!1)};for(const G in R){const D=N[G],Q=y[G];if(h.hasOwnProperty(G))continue;let j=!1;Xo(D)&&Xo(Q)?j=!cu(D,Q):j=D!==Q,j?D!=null?O(G):f.add(G):D!==void 0&&f.has(G)?O(G):_.protectedKeys[G]=!0}_.prevProp=b,_.prevResolvedValues=N,_.isActive&&(h={...h,...N}),r&&e.blockInitialAnimation&&(M=!1);const F=w&&P;M&&(!F||k)&&d.push(...V.map(G=>{const D={type:S};if(typeof G=="string"&&r&&!F&&e.manuallyAnimateOnMount&&e.parent){const{parent:Q}=e,j=Zt(Q,G);if(Q.enteringChildren&&j){const{delayChildren:A}=j.transition||{};D.delay=Rc(Q.enteringChildren,e,A)}}return{animation:G,options:D}}))}if(f.size){const v={};if(typeof u.initial!="boolean"){const S=Zt(e,Array.isArray(u.initial)?u.initial[0]:u.initial);S&&S.transition&&(v.transition=S.transition)}f.forEach(S=>{const _=e.getBaseTarget(S),b=e.getValue(S);b&&(b.liveStyle=!0),v[S]=_??null}),d.push({animation:v})}let m=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(d):Promise.resolve()}function a(l,u){var d;if(n[l].isActive===u)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(f=>{var h;return(h=f.animationState)==null?void 0:h.setActive(l,u)}),n[l].isActive=u;const c=i(l);for(const f in n)n[f].protectedKeys={};return c}return{animateChanges:i,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Ta()}}}function py(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!cu(t,e):!1}function Tt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ta(){return{animate:Tt(!0),whileInView:Tt(),whileHover:Tt(),whileTap:Tt(),whileDrag:Tt(),whileFocus:Tt(),exit:Tt()}}function wa(e,t){e.min=t.min,e.max=t.max}function Ue(e,t){wa(e.x,t.x),wa(e.y,t.y)}function _a(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const uu=1e-4,gy=1-uu,yy=1+uu,du=.01,vy=0-du,by=0+du;function Oe(e){return e.max-e.min}function xy(e,t,n){return Math.abs(e-t)<=n}function Ea(e,t,n,r=.5){e.origin=r,e.originPoint=he(t.min,t.max,e.origin),e.scale=Oe(n)/Oe(t),e.translate=he(n.min,n.max,e.origin)-e.originPoint,(e.scale>=gy&&e.scale<=yy||isNaN(e.scale))&&(e.scale=1),(e.translate>=vy&&e.translate<=by||isNaN(e.translate))&&(e.translate=0)}function _n(e,t,n,r){Ea(e.x,t.x,n.x,r?r.originX:void 0),Ea(e.y,t.y,n.y,r?r.originY:void 0)}function Aa(e,t,n){e.min=n.min+t.min,e.max=e.min+Oe(t)}function Sy(e,t,n){Aa(e.x,t.x,n.x),Aa(e.y,t.y,n.y)}function Ma(e,t,n){e.min=t.min-n.min,e.max=e.min+Oe(t)}function br(e,t,n){Ma(e.x,t.x,n.x),Ma(e.y,t.y,n.y)}function Pa(e,t,n,r,o){return e-=t,e=vr(e,1/n,r),o!==void 0&&(e=vr(e,1/o,r)),e}function Cy(e,t=0,n=1,r=.5,o,s=e,i=e){if(Xe.test(t)&&(t=parseFloat(t),t=he(i.min,i.max,t/100)-i.min),typeof t!="number")return;let a=he(s.min,s.max,r);e===s&&(a-=t),e.min=Pa(e.min,t,n,a,o),e.max=Pa(e.max,t,n,a,o)}function ka(e,t,[n,r,o],s,i){Cy(e,t[n],t[r],t[o],t.scale,s,i)}const Ty=["x","scaleX","originX"],wy=["y","scaleY","originY"];function Ia(e,t,n,r){ka(e.x,t,Ty,n?n.x:void 0,r?r.x:void 0),ka(e.y,t,wy,n?n.y:void 0,r?r.y:void 0)}function Ra(e){return e.translate===0&&e.scale===1}function fu(e){return Ra(e.x)&&Ra(e.y)}function Oa(e,t){return e.min===t.min&&e.max===t.max}function _y(e,t){return Oa(e.x,t.x)&&Oa(e.y,t.y)}function La(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function hu(e,t){return La(e.x,t.x)&&La(e.y,t.y)}function ja(e){return Oe(e.x)/Oe(e.y)}function Da(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function $e(e){return[e("x"),e("y")]}function Ey(e,t,n){let r="";const o=e.x.translate/t.x,s=e.y.translate/t.y,i=(n==null?void 0:n.z)||0;if((o||s||i)&&(r=`translate3d(${o}px, ${s}px, ${i}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:h,skewY:p}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),h&&(r+=`skewX(${h}deg) `),p&&(r+=`skewY(${p}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const mu=["TopLeft","TopRight","BottomLeft","BottomRight"],Ay=mu.length,Ba=e=>typeof e=="string"?parseFloat(e):e,Na=e=>typeof e=="number"||K.test(e);function My(e,t,n,r,o,s){o?(e.opacity=he(0,n.opacity??1,Py(r)),e.opacityExit=he(t.opacity??1,0,ky(r))):s&&(e.opacity=he(t.opacity??1,n.opacity??1,r));for(let i=0;i<Ay;i++){const a=`border${mu[i]}Radius`;let l=$a(t,a),u=$a(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Na(l)===Na(u)?(e[a]=Math.max(he(Ba(l),Ba(u),r),0),(Xe.test(u)||Xe.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=he(t.rotate||0,n.rotate||0,r))}function $a(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Py=pu(0,.5,cc),ky=pu(.5,.95,ze);function pu(e,t,n){return r=>r<e?0:r>t?1:n(Mn(e,t,r))}function Iy(e,t,n){const r=ke(e)?e:Xt(e);return r.start(Us("",r,t,n)),r.animation}function Rn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Ry=(e,t)=>e.depth-t.depth;class Oy{constructor(){this.children=[],this.isDirty=!1}add(t){As(this.children,t),this.isDirty=!0}remove(t){Ms(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Ry),this.isDirty=!1,this.children.forEach(t)}}function Ly(e,t){const n=Re.now(),r=({timestamp:o})=>{const s=o-n;s>=t&&(vt(r),e(s-t))};return ce.setup(r,!0),()=>vt(r)}function sr(e){return ke(e)?e.get():e}class jy{constructor(){this.members=[]}add(t){As(this.members,t),t.scheduleRender()}remove(t){if(Ms(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(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const s=this.members[o];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender();const o=r.options.layoutDependency,s=t.options.layoutDependency;o!==void 0&&s!==void 0&&o===s||(t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0));const{crossfade:a}=t.options;a===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const ir={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ho=["","X","Y","Z"],Dy=1e3;let By=0;function mo(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function gu(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Dc(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ce,!(o||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&gu(r)}function yu({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(i={},a=t==null?void 0:t()){this.id=By++,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(Vy),this.nodes.forEach(Uy),this.nodes.forEach(Hy),this.nodes.forEach(Fy)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Oy)}addEventListener(i,a){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new ks),this.eventHandlers.get(i).add(a)}notifyListeners(i,...a){const l=this.eventHandlers.get(i);l&&l.notify(...a)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=Kc(i)&&!$0(i),this.instance=i;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let c,d=0;const f=()=>this.root.updateBlockedByResize=!1;ce.read(()=>{d=window.innerWidth}),e(i,()=>{const h=window.innerWidth;h!==d&&(d=h,this.root.updateBlockedByResize=!0,c&&c(),c=Ly(f,250),ir.hasAnimatedSinceResize&&(ir.hasAnimatedSinceResize=!1,this.nodes.forEach(za)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||qy,{onLayoutAnimationStart:m,onLayoutAnimationComplete:v}=u.getProps(),S=!this.targetLayout||!hu(this.targetLayout,h),_=!d&&f;if(this.options.layoutRoot||this.resumeFrom||_||d&&(S||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...Ws(p,"layout"),onPlay:m,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(c,_)}else d||za(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),vt(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(Gy),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&gu(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Va);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Fa);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Wy),this.nodes.forEach(Ny),this.nodes.forEach($y)):this.nodes.forEach(Fa),this.clearAllSnapshots();const a=Re.now();Pe.delta=Je(0,1e3/60,a-Pe.timestamp),Pe.timestamp=a,Pe.isProcessing=!0,oo.update.process(Pe),oo.preRender.process(Pe),oo.render.process(Pe),Pe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ys.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(zy),this.sharedNodes.forEach(Ky)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ce.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ce.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Oe(this.snapshot.measuredBox.x)&&!Oe(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Te(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(a=!1),a&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!fu(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;i&&this.instance&&(a||Pt(this.latestValues)||c)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return i&&(l=this.removeTransform(l)),Xy(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:i}=this.options;if(!i)return Te();const a=i.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(Jy))){const{scroll:c}=this.root;c&&(Ht(a.x,c.offset.x),Ht(a.y,c.offset.y))}return a}removeElementScroll(i){var l;const a=Te();if(Ue(a,i),(l=this.scroll)!=null&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&Ue(a,i),Ht(a.x,d.offset.x),Ht(a.y,d.offset.y))}return a}applyTransform(i,a=!1){const l=Te();Ue(l,i);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Gt(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Pt(c.latestValues)&&Gt(l,c.latestValues)}return Pt(this.latestValues)&&Gt(l,this.latestValues),l}removeTransform(i){const a=Te();Ue(a,i);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Pt(u.latestValues))continue;rs(u.latestValues)&&u.updateSnapshot();const c=Te(),d=u.measurePageBox();Ue(c,d),Ia(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Pt(this.latestValues)&&Ia(a,this.latestValues),a}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.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!==Pe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){var h;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(i||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(h=this.parent)!=null&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:d}=this.options;if(!this.layout||!(c||d))return;this.resolvedRelativeTargetAt=Pe.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Te(),this.targetWithTransforms=Te()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Sy(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ue(this.target,this.layout.layoutBox),eu(this.target,this.targetDelta)):Ue(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||rs(this.parent.latestValues)||Qc(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(i,a,l){this.relativeParent=i,this.linkedParentVersion=i.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Te(),this.relativeTargetOrigin=Te(),br(this.relativeTargetOrigin,a,l),Ue(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var p;const i=this.getLead(),a=!!this.resumingFrom||this!==i;let l=!0;if((this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Pe.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=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||c))return;Ue(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;q0(this.layoutCorrected,this.treeScale,this.path,a),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=Te());const{target:h}=i;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(_a(this.prevProjectionDelta.x,this.projectionDelta.x),_a(this.prevProjectionDelta.y,this.projectionDelta.y)),_n(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!Da(this.projectionDelta.x,this.prevProjectionDelta.x)||!Da(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),i){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ut(),this.projectionDelta=Ut(),this.projectionDeltaWithTransform=Ut()}setAnimationOrigin(i,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=Ut();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=Te(),h=l?l.source:void 0,p=this.layout?this.layout.source:void 0,m=h!==p,v=this.getStack(),S=!v||v.members.length<=1,_=!!(m&&!S&&this.options.crossfade===!0&&!this.path.some(Zy));this.animationProgress=0;let b;this.mixTargetDelta=C=>{const T=C/1e3;Wa(d.x,i.x,T),Wa(d.y,i.y,T),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(br(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Yy(this.relativeTarget,this.relativeTargetOrigin,f,T),b&&_y(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=Te()),Ue(b,this.relativeTarget)),m&&(this.animationValues=c,My(c,u,this.latestValues,T,_,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(vt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ce.update(()=>{ir.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Xt(0)),this.currentAnimation=Iy(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),i.onUpdate&&i.onUpdate(c)},onStop:()=>{},onComplete:()=>{i.onComplete&&i.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 i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Dy),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=i;if(!(!a||!l||!u)){if(this!==i&&this.layout&&u&&vu(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Te();const d=Oe(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+d;const f=Oe(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+f}Ue(a,l),Gt(a,c),_n(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(i,a){this.sharedNodes.has(i)||this.sharedNodes.set(i,new jy),this.sharedNodes.get(i).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){var a;const{layoutId:i}=this.options;return i?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:i}=this.options;return i?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let a=!1;const{latestValues:l}=i;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&mo("z",i,u,this.animationValues);for(let c=0;c<ho.length;c++)mo(`rotate${ho[c]}`,i,u,this.animationValues),mo(`skew${ho[c]}`,i,u,this.animationValues);i.render();for(const c in u)i.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);i.scheduleRender()}applyProjectionStyles(i,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=sr(a==null?void 0:a.pointerEvents)||"",i.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=sr(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Pt(this.latestValues)&&(i.transform=l?l({},""):"none",this.hasProjected=!1);return}i.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let d=Ey(this.projectionDeltaWithTransform,this.treeScale,c);l&&(d=l(c,d)),i.transform=d;const{x:f,y:h}=this.projectionDelta;i.transformOrigin=`${f.origin*100}% ${h.origin*100}% 0`,u.animationValues?i.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:i.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const p in ss){if(c[p]===void 0)continue;const{correct:m,applyTo:v,isCSSVariable:S}=ss[p],_=d==="none"?c[p]:m(c[p],u);if(v){const b=v.length;for(let C=0;C<b;C++)i[v[C]]=_}else S?this.options.visualElement.renderState.vars[p]=_:i[p]=_}this.options.layoutId&&(i.pointerEvents=u===this?sr(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>{var a;return(a=i.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(Va),this.root.sharedNodes.clear()}}}function Ny(e){e.updateLayout()}function $y(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:r,measuredBox:o}=e.layout,{animationType:s}=e.options,i=t.source!==e.layout.source;s==="size"?$e(d=>{const f=i?t.measuredBox[d]:t.layoutBox[d],h=Oe(f);f.min=r[d].min,f.max=f.min+h}):vu(s,t.layoutBox,r)&&$e(d=>{const f=i?t.measuredBox[d]:t.layoutBox[d],h=Oe(r[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const a=Ut();_n(a,r,t.layoutBox);const l=Ut();i?_n(l,e.applyTransform(o,!0),t.measuredBox):_n(l,r,t.layoutBox);const u=!fu(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const p=Te();br(p,t.layoutBox,f.layoutBox);const m=Te();br(m,r,h.layoutBox),hu(p,m)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=p,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Vy(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 Fy(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function zy(e){e.clearSnapshot()}function Va(e){e.clearMeasurements()}function Fa(e){e.isLayoutDirty=!1}function Wy(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function za(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Uy(e){e.resolveTargetDelta()}function Hy(e){e.calcProjection()}function Gy(e){e.resetSkewAndRotation()}function Ky(e){e.removeLeadSnapshot()}function Wa(e,t,n){e.translate=he(t.translate,0,n),e.scale=he(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ua(e,t,n,r){e.min=he(t.min,n.min,r),e.max=he(t.max,n.max,r)}function Yy(e,t,n,r){Ua(e.x,t.x,n.x,r),Ua(e.y,t.y,n.y,r)}function Zy(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const qy={duration:.45,ease:[.4,0,.1,1]},Ha=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ga=Ha("applewebkit/")&&!Ha("chrome/")?Math.round:ze;function Ka(e){e.min=Ga(e.min),e.max=Ga(e.max)}function Xy(e){Ka(e.x),Ka(e.y)}function vu(e,t,n){return e==="position"||e==="preserve-aspect"&&!xy(ja(t),ja(n),.2)}function Jy(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Qy=yu({attachResizeListener:(e,t)=>Rn(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}),po={current:void 0},bu=yu({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!po.current){const e=new Qy({});e.mount(window),e.setOptions({layoutScroll:!0}),po.current=e}return po.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ei=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Ya(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function e1(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Ya(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Ya(e[o],null)}}}}function t1(...e){return _e.useCallback(e1(...e),e)}class n1 extends _e.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=ts(r)&&r.offsetWidth||0,s=ts(r)&&r.offsetHeight||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=o-i.width-i.left,i.bottom=s-i.height-i.top}return null}componentDidUpdate(){}render(){return this.props.children}}function r1({children:e,isPresent:t,anchorX:n,anchorY:r,root:o}){var d;const s=x.useId(),i=x.useRef(null),a=x.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:l}=x.useContext(ei),u=((d=e.props)==null?void 0:d.ref)??(e==null?void 0:e.ref),c=t1(i,u);return x.useInsertionEffect(()=>{const{width:f,height:h,top:p,left:m,right:v,bottom:S}=a.current;if(t||!i.current||!f||!h)return;const _=n==="left"?`left: ${m}`:`right: ${v}`,b=r==="bottom"?`bottom: ${S}`:`top: ${p}`;i.current.dataset.motionPopId=s;const C=document.createElement("style");l&&(C.nonce=l);const T=o??document.head;return T.appendChild(C),C.sheet&&C.sheet.insertRule(`
96
- [data-motion-pop-id="${s}"] {
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(`
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(`
98
+ [data-motion-pop-id="${i}"] {
97
99
  position: absolute !important;
98
- width: ${f}px !important;
100
+ width: ${p}px !important;
99
101
  height: ${h}px !important;
100
- ${_}px !important;
101
- ${b}px !important;
102
+ ${w}px !important;
103
+ ${x}px !important;
102
104
  }
103
- `),()=>{T.contains(C)&&T.removeChild(C)}},[t]),g.jsx(n1,{isPresent:t,childRef:i,sizeRef:a,children:_e.cloneElement(e,{ref:c})})}const o1=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:s,mode:i,anchorX:a,anchorY:l,root:u})=>{const c=Es(s1),d=x.useId();let f=!0,h=x.useMemo(()=>(f=!1,{id:d,initial:t,isPresent:n,custom:o,onExitComplete:p=>{c.set(p,!0);for(const m of c.values())if(!m)return;r&&r()},register:p=>(c.set(p,!1),()=>c.delete(p))}),[n,c,r]);return s&&f&&(h={...h}),x.useMemo(()=>{c.forEach((p,m)=>c.set(m,!1))},[n]),_e.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),i==="popLayout"&&(e=g.jsx(r1,{isPresent:n,anchorX:a,anchorY:l,root:u,children:e})),g.jsx($r.Provider,{value:h,children:e})};function s1(){return new Map}function xu(e=!0){const t=x.useContext($r);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,s=x.useId();x.useEffect(()=>{if(e)return o(s)},[e]);const i=x.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,i]:[!0]}const Kn=e=>e.key||"";function Za(e){const t=[];return x.Children.forEach(e,n=>{x.isValidElement(n)&&t.push(n)}),t}const i1=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:s="sync",propagate:i=!1,anchorX:a="left",anchorY:l="top",root:u})=>{const[c,d]=xu(i),f=x.useMemo(()=>Za(e),[e]),h=i&&!c?[]:f.map(Kn),p=x.useRef(!0),m=x.useRef(f),v=Es(()=>new Map),S=x.useRef(new Set),[_,b]=x.useState(f),[C,T]=x.useState(f);Jl(()=>{p.current=!1,m.current=f;for(let M=0;M<C.length;M++){const k=Kn(C[M]);h.includes(k)?(v.delete(k),S.current.delete(k)):v.get(k)!==!0&&v.set(k,!1)}},[C,h.length,h.join("-")]);const w=[];if(f!==_){let M=[...f];for(let k=0;k<C.length;k++){const V=C[k],N=Kn(V);h.includes(N)||(M.splice(k,0,V),w.push(V))}return s==="wait"&&w.length&&(M=w),T(Za(M)),b(f),null}process.env.NODE_ENV!=="production"&&s==="wait"&&C.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:P}=x.useContext(_s);return g.jsx(g.Fragment,{children:C.map(M=>{const k=Kn(M),V=i&&!c?!1:f===C||h.includes(k),N=()=>{if(S.current.has(k))return;if(S.current.add(k),v.has(k))v.set(k,!0);else return;let y=!0;v.forEach(R=>{R||(y=!1)}),y&&(P==null||P(),T(m.current),i&&(d==null||d()),r&&r())};return g.jsx(o1,{isPresent:V,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:u,onExitComplete:V?void 0:N,anchorX:a,anchorY:l,children:M},k)})})},Su=x.createContext({strict:!1}),qa={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 Xa=!1;function a1(){if(Xa)return;const e={};for(const t in qa)e[t]={isEnabled:n=>qa[t].some(r=>!!n[r])};qc(e),Xa=!0}function Cu(){return a1(),G0()}function l1(e){const t=Cu();for(const n in e)t[n]={...t[n],...e[n]};qc(t)}const c1=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 xr(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||c1.has(e)}let Tu=e=>!xr(e);function u1(e){typeof e=="function"&&(Tu=t=>t.startsWith("on")?!xr(t):e(t))}try{u1(require("@emotion/is-prop-valid").default)}catch{}function d1(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Tu(o)||n===!0&&xr(o)||!t&&!xr(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const zr=x.createContext({});function f1(e,t){if(Fr(e)){const{initial:n,animate:r}=e;return{initial:n===!1||In(n)?n:void 0,animate:In(r)?r:void 0}}return e.inherit!==!1?t:{}}function h1(e){const{initial:t,animate:n}=f1(e,x.useContext(zr));return x.useMemo(()=>({initial:t,animate:n}),[Ja(t),Ja(n)])}function Ja(e){return Array.isArray(e)?e.join(" "):e}const ti=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function wu(e,t,n){for(const r in t)!ke(t[r])&&!ru(r,n)&&(e[r]=t[r])}function m1({transformTemplate:e},t){return x.useMemo(()=>{const n=ti();return Js(n,t,e),Object.assign({},n.vars,n.style)},[t])}function p1(e,t){const n=e.style||{},r={};return wu(r,n,e),Object.assign(r,m1(e,t)),r}function g1(e,t){const n={},r=p1(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.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=r,n}const _u=()=>({...ti(),attrs:{}});function y1(e,t,n,r){const o=x.useMemo(()=>{const s=_u();return ou(s,t,iu(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};wu(s,e.style,e),o.style={...s,...o.style}}return o}const v1=["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 ni(e){return typeof e!="string"||e.includes("-")?!1:!!(v1.indexOf(e)>-1||/[A-Z]/u.test(e))}function b1(e,t,n,{latestValues:r},o,s=!1,i){const l=(i??ni(e)?y1:g1)(t,r,o,e),u=d1(t,typeof e=="string",s),c=e!==x.Fragment?{...u,...l,ref:n}:{},{children:d}=t,f=x.useMemo(()=>ke(d)?d.get():d,[d]);return x.createElement(e,{...c,children:f})}function x1({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:S1(n,r,o,e),renderState:t()}}function S1(e,t,n,r){const o={},s=r(e,{});for(const f in s)o[f]=sr(s[f]);let{initial:i,animate:a}=e;const l=Fr(e),u=Zc(e);t&&u&&!l&&e.inherit!==!1&&(i===void 0&&(i=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||i===!1;const d=c?a:i;if(d&&typeof d!="boolean"&&!Vr(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const p=Hs(e,f[h]);if(p){const{transitionEnd:m,transition:v,...S}=p;for(const _ in S){let b=S[_];if(Array.isArray(b)){const C=c?b.length-1:0;b=b[C]}b!==null&&(o[_]=b)}for(const _ in m)o[_]=m[_]}}}return o}const Eu=e=>(t,n)=>{const r=x.useContext(zr),o=x.useContext($r),s=()=>x1(e,t,r,o);return n?s():Es(s)},C1=Eu({scrapeMotionValuesFromProps:Qs,createRenderState:ti}),T1=Eu({scrapeMotionValuesFromProps:au,createRenderState:_u}),w1=Symbol.for("motionComponentSymbol");function _1(e,t,n){const r=x.useRef(n);x.useInsertionEffect(()=>{r.current=n});const o=x.useRef(null);return x.useCallback(s=>{var a;s&&((a=e.onMount)==null||a.call(e,s)),t&&(s?t.mount(s):t.unmount());const i=r.current;if(typeof i=="function")if(s){const l=i(s);typeof l=="function"&&(o.current=l)}else o.current?(o.current(),o.current=null):i(s);else i&&(i.current=s)},[t])}const Au=x.createContext({});function xn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function E1(e,t,n,r,o,s){var S,_;const{visualElement:i}=x.useContext(zr),a=x.useContext(Su),l=x.useContext($r),u=x.useContext(ei).reducedMotion,c=x.useRef(null),d=x.useRef(!1);r=r||a.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:i,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,isSVG:s}),d.current&&c.current&&(c.current.manuallyAnimateOnMount=!0));const f=c.current,h=x.useContext(Au);f&&!f.projection&&o&&(f.type==="html"||f.type==="svg")&&A1(c.current,n,o,h);const p=x.useRef(!1);x.useInsertionEffect(()=>{f&&p.current&&f.update(n,l)});const m=n[jc],v=x.useRef(!!m&&!((S=window.MotionHandoffIsComplete)!=null&&S.call(window,m))&&((_=window.MotionHasOptimisedAnimation)==null?void 0:_.call(window,m)));return Jl(()=>{d.current=!0,f&&(p.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),f.scheduleRenderMicrotask(),v.current&&f.animationState&&f.animationState.animateChanges())}),x.useEffect(()=>{f&&(!v.current&&f.animationState&&f.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)==null||b.call(window,m)}),v.current=!1),f.enteringChildren=void 0)}),f}function A1(e,t,n,r){const{layoutId:o,layout:s,drag:i,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Mu(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!i||a&&xn(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}function Mu(e){if(e)return e.options.allowProjection!==!1?e.projection:Mu(e.parent)}function go(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&l1(r);const s=n?n==="svg":ni(e),i=s?T1:C1;function a(u,c){let d;const f={...x.useContext(ei),...u,layoutId:M1(u)},{isStatic:h}=f,p=h1(u),m=i(u,h);if(!h&&Xl){P1(f,r);const v=k1(f);d=v.MeasureLayout,p.visualElement=E1(e,m,f,o,v.ProjectionNode,s)}return g.jsxs(zr.Provider,{value:p,children:[d&&p.visualElement?g.jsx(d,{visualElement:p.visualElement,...f}):null,b1(e,u,_1(m,p.visualElement,c),m,h,t,s)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=x.forwardRef(a);return l[w1]=e,l}function M1({layoutId:e}){const t=x.useContext(_s).id;return t&&e!==void 0?t+"-"+e:e}function P1(e,t){const n=x.useContext(Su).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Qt(!1,r,"lazy-strict-mode"):at(!1,r,"lazy-strict-mode")}}function k1(e){const t=Cu(),{drag:n,layout:r}=t;if(!n&&!r)return{};const o={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function I1(e,t){if(typeof Proxy>"u")return go;const n=new Map,r=(s,i)=>go(s,i,e,t),o=(s,i)=>(process.env.NODE_ENV!=="production"&&Is(!1,"motion() is deprecated. Use motion.create() instead."),r(s,i));return new Proxy(o,{get:(s,i)=>i==="create"?r:(n.has(i)||n.set(i,go(i,void 0,e,t)),n.get(i))})}const R1=(e,t)=>t.isSVG??ni(e)?new cy(t):new ry(t,{allowProjection:e!==x.Fragment});class O1 extends St{constructor(t){super(t),t.animationState||(t.animationState=my(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Vr(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 L1=0;class j1 extends St{constructor(){super(...arguments),this.id=L1++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.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 D1={animation:{Feature:O1},exit:{Feature:j1}};function Nn(e){return{point:{x:e.pageX,y:e.pageY}}}const B1=e=>t=>Zs(t)&&e(t,Nn(t));function En(e,t,n,r){return Rn(e,t,B1(n),r)}const Pu=({current:e})=>e?e.ownerDocument.defaultView:null,Qa=(e,t)=>Math.abs(e-t);function N1(e,t){const n=Qa(e.x,t.x),r=Qa(e.y,t.y);return Math.sqrt(n**2+r**2)}const el=new Set(["auto","scroll"]);class ku{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:s=!1,distanceThreshold:i=3,element:a}={}){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=vo(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,m=N1(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!m)return;const{point:v}=h,{timestamp:S}=Pe;this.history.push({...v,timestamp:S});const{onStart:_,onMove:b}=this.handlers;p||(_&&_(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,h)},this.handlePointerMove=(h,p)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=yo(p,this.transformPagePoint),ce.update(this.updatePoint,!0)},this.handlePointerUp=(h,p)=>{this.end();const{onEnd:m,onSessionEnd:v,resumeAnimation:S}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=vo(h.type==="pointercancel"?this.lastMoveEventInfo:yo(p,this.transformPagePoint),this.history);this.startEvent&&m&&m(h,_),v&&v(h,_)},!Zs(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=i,this.contextWindow=o||window;const l=Nn(t),u=yo(l,this.transformPagePoint),{point:c}=u,{timestamp:d}=Pe;this.history=[{...c,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,vo(u,this.history)),this.removeListeners=jn(En(this.contextWindow,"pointermove",this.handlePointerMove),En(this.contextWindow,"pointerup",this.handlePointerUp),En(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(el.has(r.overflowX)||el.has(r.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 r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:o.x-n.x,y:o.y-n.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,o),ce.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),vt(this.updatePoint)}}function yo(e,t){return t?{point:t(e.point)}:e}function tl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vo({point:e},t){return{point:e,delta:tl(e,Iu(t)),offset:tl(e,$1(t)),velocity:V1(t,.1)}}function $1(e){return e[0]}function Iu(e){return e[e.length-1]}function V1(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Iu(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>qe(t)));)n--;if(!r)return{x:0,y:0};const s=Fe(o.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const i={x:(o.x-r.x)/s,y:(o.y-r.y)/s};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function F1(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?he(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?he(n,e,r.max):Math.min(e,n)),e}function nl(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 z1(e,{top:t,left:n,bottom:r,right:o}){return{x:nl(e.x,n,o),y:nl(e.y,t,r)}}function rl(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function W1(e,t){return{x:rl(e.x,t.x),y:rl(e.y,t.y)}}function U1(e,t){let n=.5;const r=Oe(e),o=Oe(t);return o>r?n=Mn(t.min,t.max-r,e.min):r>o&&(n=Mn(e.min,e.max-o,t.min)),Je(0,1,n)}function H1(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 is=.35;function G1(e=is){return e===!1?e=0:e===!0&&(e=is),{x:ol(e,"left","right"),y:ol(e,"top","bottom")}}function ol(e,t,n){return{min:sl(e,t),max:sl(e,n)}}function sl(e,t){return typeof e=="number"?e:e[t]||0}const K1=new WeakMap;class Y1{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=Te(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const s=d=>{n?(this.stopAnimation(),this.snapToCursor(Nn(d).point)):this.pauseAnimation()},i=(d,f)=>{this.stopAnimation();const{drag:h,dragPropagation:p,onDragStart:m}=this.getProps();if(h&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=L0(h),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$e(S=>{let _=this.getAxisMotionValue(S).get()||0;if(Xe.test(_)){const{projection:b}=this.visualElement;if(b&&b.layout){const C=b.layout.layoutBox[S];C&&(_=Oe(C)*(parseFloat(_)/100))}}this.originPoint[S]=_}),m&&ce.postRender(()=>m(d,f)),Jo(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:h,dragDirectionLock:p,onDirectionLock:m,onDrag:v}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:S}=f;if(p&&this.currentDirection===null){this.currentDirection=Z1(S),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,S),this.updateAxis("y",f.point,S),this.visualElement.render(),v&&v(d,f)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>$e(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)==null?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new ku(t,{onSessionStart:s,onStart:i,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:Pu(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!o||!r)return;const{velocity:i}=o;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&ce.postRender(()=>a(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&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,r){const{drag:o}=this.getProps();if(!r||!Yn(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let i=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(i=F1(i,this.constraints[t],this.elastic[t])),s.set(i)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,o=this.constraints;t&&xn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=z1(r.layoutBox,t):this.constraints=!1,this.elastic=G1(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&$e(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=H1(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!xn(t))return!1;const r=t.current;at(r!==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:o}=this.visualElement;if(!o||!o.layout)return!1;const s=X0(r,o.root,this.visualElement.getTransformPagePoint());let i=W1(o.layout.layoutBox,s);if(n){const a=n(Y0(i));this.hasMutatedConstraints=!!a,a&&(i=Jc(a))}return i}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:s,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=$e(c=>{if(!Yn(c,n,this.currentDirection))return;let d=l&&l[c]||{};i&&(d={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,p={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Jo(this.visualElement,t),r.start(Us(t,r,0,n,this.visualElement,!1))}stopAnimation(){$e(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){$e(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()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){$e(n=>{const{drag:r}=this.getProps();if(!Yn(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:i,max:a}=o.layout.layoutBox[n],l=s.get()||0;s.set(t[n]-he(i,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!xn(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};$e(i=>{const a=this.getAxisMotionValue(i);if(a&&this.constraints!==!1){const l=a.get();o[i]=U1({min:l,max:l},this.constraints[i])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),$e(i=>{if(!Yn(i,t,null))return;const a=this.getAxisMotionValue(i),{min:l,max:u}=this.constraints[i];a.set(he(l,u,o[i]))})}addListeners(){if(!this.visualElement.current)return;K1.set(this.visualElement,this);const t=this.visualElement.current,n=En(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps(),d=l.target,f=d!==t&&Gc(d);u&&c&&!f&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();xn(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),ce.read(r);const i=Rn(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&($e(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{i(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:i=is,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:s,dragElastic:i,dragMomentum:a}}}function Yn(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Z1(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class q1 extends St{constructor(t){super(t),this.removeGroupControls=ze,this.removeListeners=ze,this.controls=new Y1(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ze}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 il=e=>(t,n)=>{e&&ce.postRender(()=>e(t,n))};class X1 extends St{constructor(){super(...arguments),this.removePointerDownListener=ze}onPointerDown(t){this.session=new ku(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Pu(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:il(t),onStart:il(n),onMove:r,onEnd:(s,i)=>{delete this.session,o&&ce.postRender(()=>o(s,i))}}}mount(){this.removePointerDownListener=En(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 bo=!1;class J1 extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&o&&r.register(s),bo&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ir.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:s}=this.props,{projection:i}=r;return i&&(i.isPresent=s,t.layoutDependency!==n&&i.setOptions({...i.options,layoutDependency:n}),bo=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==s?i.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?i.promote():i.relegate()||ce.postRender(()=>{const a=i.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ys.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;bo=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ru(e){const[t,n]=xu(),r=x.useContext(_s);return g.jsx(J1,{...e,layoutGroup:r,switchLayoutGroup:x.useContext(Au),isPresent:t,safeToRemove:n})}const Q1={pan:{Feature:X1},drag:{Feature:q1,ProjectionNode:bu,MeasureLayout:Ru}};function al(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,s=r[o];s&&ce.postRender(()=>s(t,Nn(t)))}class ev extends St{mount(){const{current:t}=this.node;t&&(this.unmount=j0(t,(n,r)=>(al(this.node,r,"Start"),o=>al(this.node,o,"End"))))}unmount(){}}class tv extends St{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=jn(Rn(this.node.current,"focus",()=>this.onFocus()),Rn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ll(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),s=r[o];s&&ce.postRender(()=>s(t,Nn(t)))}class nv extends St{mount(){const{current:t}=this.node;t&&(this.unmount=N0(t,(n,r)=>(ll(this.node,r,"Start"),(o,{success:s})=>ll(this.node,o,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const as=new WeakMap,xo=new WeakMap,rv=e=>{const t=as.get(e.target);t&&t(e)},ov=e=>{e.forEach(rv)};function sv({root:e,...t}){const n=e||document;xo.has(n)||xo.set(n,{});const r=xo.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(ov,{root:e,...t})),r[o]}function iv(e,t,n){const r=sv(t);return as.set(e,n),r.observe(e),()=>{as.delete(e),r.unobserve(e)}}const av={some:0,all:1};class lv extends St{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:s}=t,i={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:av[o]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return iv(this.node.current,i,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(cv(t,n))&&this.startObserver()}unmount(){}}function cv({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const uv={inView:{Feature:lv},tap:{Feature:nv},focus:{Feature:tv},hover:{Feature:ev}},dv={layout:{ProjectionNode:bu,MeasureLayout:Ru}},fv={...D1,...uv,...Q1,...dv},ar=I1(fv,R1),Ou="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",Lu="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",Wr="Facial",Ur="LPR",hv=[Wr,Ur];function mv(e){return e===Wr?g.jsx("img",{src:Ou,alt:"Facial",width:16,height:16,style:{display:"block"}}):e===Ur?g.jsx("img",{src:Lu,alt:"LPR",width:16,height:16,style:{display:"block"}}):null}function pv(e){if(!e||!Array.isArray(e)||e.length===0)return;const t={};return e.forEach(n=>{const r=n.algorithm;r&&hv.includes(r)&&(t[r]=(t[r]||0)+1)}),Object.entries(t).map(([n,r])=>({count:r,icon:mv(n)}))}const gv="_spotWrapper_1cdqg_1",yv="_mapSpot_1cdqg_8",vv="_selected_1cdqg_27",bv="_count_1cdqg_31",xv="_countSelected_1cdqg_43",Sv="_cameraTypesContainer_1cdqg_47",Cv="_cameraTypeItem_1cdqg_54",Tv="_cameraTypeCount_1cdqg_61",wv="_cameraTypeIcon_1cdqg_72",tt={spotWrapper:gv,mapSpot:yv,selected:vv,count:bv,countSelected:xv,cameraTypesContainer:Sv,cameraTypeItem:Cv,cameraTypeCount:Tv,cameraTypeIcon:wv},_v=ar(E.Box),Ev=16,ri=({count:e,addressText:t,cameras:n,currentZoom:r=13,isSelected:o,disableClick:s=!1,className:i,onClick:a,sx:l})=>{const c=E.useTheme().palette.mode==="dark",d=x.useMemo(()=>pv(n),[n]),h=d&&d.length>0&&r>=Ev,m=o?"var(--Tertiary-Tertiary, #7FCFCF)":c?"var(--Surface-Inverse-Surface, #C7C6C6)":"var(--Surface-Inverse-Surface, #3B3B3C)",v=8;return g.jsx("div",{className:tt.spotWrapper,"data-theme":c?"dark":"light",children:g.jsx(_v,{className:`${tt.mapSpot} ${o?tt.selected:""} ${i||""}`,onClick:s?void 0:a,sx:{...l,position:"relative",overflow:"visible","&::after":{content:'""',position:"absolute",bottom:0,left:"50%",transform:"translate(-50%, 100%)",width:0,height:0,borderLeft:`${v}px solid transparent`,borderRight:`${v}px solid transparent`,borderTop:`${v}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"}},style:{"--arrow-color":m,"--arrow-opacity":h?1:0},animate:{width:h?"auto":30,height:h?"auto":30,borderRadius:"100px",backgroundColor:m,padding:h?"4px 8px":0,borderWidth:o?1:0,borderStyle:"solid",borderColor:o?"var(--Tertiary-On-Tertiary, #ffffff)":"transparent",y:h?-v:0,"--arrow-opacity":h?1:0},transition:{duration:.2,ease:"easeInOut"},children:g.jsx(i1,{mode:"wait",children:h?g.jsx(ar.div,{className:tt.cameraTypesContainer,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2,ease:"easeInOut"},children:d.map((S,_)=>g.jsxs(ar.div,{className:tt.cameraTypeItem,initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{duration:.2,delay:_*.05},children:[g.jsx(E.Typography,{className:tt.cameraTypeCount,children:S.count}),S.icon&&g.jsx(E.Box,{className:tt.cameraTypeIcon,children:S.icon})]},_))},"expanded"):g.jsx(ar.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2,ease:"easeInOut"},children:g.jsx(E.Typography,{className:`${tt.count} ${o?tt.countSelected:""}`,children:e})},"collapsed")})})})};ri.displayName="MapSpot";const Av="_cameraCard_1hvrf_2",Mv="_topContainer_1hvrf_52",Pv="_mediaImage_1hvrf_66",kv="_mediaPlaceholder_1hvrf_73",Iv="_menuButton_1hvrf_79",Rv="_menuButtonIcon_1hvrf_98",Ov="_bottomContainer_1hvrf_104",Lv="_infoRow_1hvrf_116",jv="_iconWrapper_1hvrf_123",Dv="_cameraIcon_1hvrf_131",Bv="_cameraTypeImage_1hvrf_138",Nv="_textColumn_1hvrf_146",$v="_headerText_1hvrf_155",Vv="_subheadText_1hvrf_165",Fv="_streetText_1hvrf_175",zv="_supportText_1hvrf_176",Wv="_tagsContainer_1hvrf_186",Uv="_tag_1hvrf_186",Hv="_tagOverflow_1hvrf_199",Gv="_cameraCardMenuPaper_1hvrf_220",Kv="_cameraCardMenuList_1hvrf_244",Yv="_cameraCardMenuItem_1hvrf_252",Zv="_cameraCardMenuItemText_1hvrf_291",de={cameraCard:Av,topContainer:Mv,mediaImage:Pv,mediaPlaceholder:kv,menuButton:Iv,menuButtonIcon:Rv,bottomContainer:Ov,infoRow:Lv,iconWrapper:jv,cameraIcon:Dv,cameraTypeImage:Bv,textColumn:Nv,headerText:$v,subheadText:Vv,streetText:Fv,supportText:zv,tagsContainer:Wv,tag:Uv,tagOverflow:Hv,cameraCardMenuPaper:Gv,cameraCardMenuList:Kv,cameraCardMenuItem:Yv,cameraCardMenuItemText:Zv};function qv(e){return e===Wr?g.jsx("img",{src:Ou,alt:"Facial",width:20,height:20,className:de.cameraTypeImage}):e===Ur?g.jsx("img",{src:Lu,alt:"LPR",width:20,height:20,className:de.cameraTypeImage}):g.jsx(De.VideocamOutlined,{className:de.cameraIcon})}const Xv=({cameraName:e,streetName:t,pointName:n,neighborhoodAndCity:r,tags:o=[],imageUrl:s,algorithm:i,menuItems:a,onMenuClick:l,className:u})=>{const d=X.useTheme().palette.mode==="dark",f=r??"",h=n??"",p=x.useRef(null),m=x.useRef(null),[v,S]=x.useState(o.length),[_,b]=x.useState(!1),C=x.useRef(!1),T=((a==null?void 0:a.length)??0)>0||l,w=((a==null?void 0:a.length)??0)>0;x.useLayoutEffect(()=>{o.length!==0&&(S(o.length),C.current=!1)},[o.length]),x.useLayoutEffect(()=>{const N=p.current;if(!N||o.length===0)return;const y=()=>{if(!N)return;const{scrollWidth:O,clientWidth:F}=N;O>F?(C.current=!0,S(U=>Math.max(0,U-1))):!C.current&&v<o.length?S(U=>Math.min(o.length,U+1)):C.current=!1};y();const R=new ResizeObserver(y);return R.observe(N),()=>R.disconnect()},[o.length,v]);const P=v<o.length,M=P?o.slice(0,v):o,k=P?o.length-v:0,V=o.length>0?o.join(", "):"";return g.jsxs(E.Box,{className:`${de.cameraCard} ${u||""}`.trim(),"data-theme":d?"dark":"light",children:[g.jsxs(E.Box,{className:de.topContainer,children:[s?g.jsx("img",{src:s,alt:"",className:de.mediaImage}):g.jsx(E.Box,{className:de.mediaPlaceholder,"aria-hidden":!0}),T&&g.jsx(E.IconButton,{ref:m,onClick:()=>{w?b(!0):l==null||l()},className:de.menuButton,"aria-label":"Opções","aria-haspopup":w?"menu":void 0,"aria-expanded":_,size:"small",children:g.jsx(De.MoreHoriz,{className:de.menuButtonIcon})})]}),w&&g.jsx(E.Popover,{open:_,anchorEl:m.current,onClose:()=>b(!1),anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{elevation:0,sx:{padding:0,background:"transparent",marginLeft:2}}},children:g.jsx(E.Box,{className:de.cameraCardMenuPaper,"data-theme":d?"dark":"light",children:g.jsx(E.Box,{className:de.cameraCardMenuList,role:"menu",children:a.map(N=>g.jsx("button",{type:"button",className:de.cameraCardMenuItem,role:"menuitem",onClick:()=>{var y;(y=N.onClick)==null||y.call(N),b(!1)},children:g.jsx("span",{className:de.cameraCardMenuItemText,children:N.label})},N.label))})})}),g.jsxs(E.Box,{className:de.bottomContainer,children:[g.jsxs(E.Box,{className:de.infoRow,children:[g.jsx(E.Box,{className:de.iconWrapper,children:qv(i)}),g.jsxs(E.Box,{className:de.textColumn,children:[g.jsx("span",{className:de.headerText,children:e}),h&&g.jsx("span",{className:de.subheadText,children:h}),g.jsx("span",{className:de.streetText,children:t}),f&&g.jsx("span",{className:de.supportText,children:f})]})]}),o.length>0&&g.jsx(E.Tooltip,{title:V,placement:"top",enterDelay:300,children:g.jsxs(E.Box,{ref:p,className:de.tagsContainer,component:"span",tabIndex:0,role:"group","aria-label":"Tags da câmera",children:[M.map(N=>g.jsx("span",{className:de.tag,children:N},N)),P&&g.jsxs("span",{className:de.tagOverflow,children:["+",k]})]})})]})]})},Jv=(e,t=1,n=13)=>()=>{if(!e)return;const r=e.getZoom()??n;e.setZoom(r+t)},Qv=(e,t=1,n=1,r=13)=>()=>{if(!e)return;const o=e.getZoom()??r;e.setZoom(Math.max(n,o-t))},eb="_container_1whpg_2",tb="_zoomButton_1whpg_10",nb="_stateLayer_1whpg_43",rb="_icon_1whpg_59",Ze={container:eb,zoomButton:tb,stateLayer:nb,icon:rb},ob=({map:e,className:t,sx:n,zoomIncrement:r=1,minZoom:o=1,fallbackZoom:s=13,onFullscreen:i})=>{const l=E.useTheme().palette.mode==="dark",u=Jv(e,r,s),c=Qv(e,r,o,s),d={backgroundColor:l?"#DEDDDD":"#101111","&:hover":{backgroundColor:l?"#DEDDDD":"#101111",opacity:.9}},f={fill:l?"#101111":"#FDFCFC",color:l?"#101111":"#FDFCFC"};return g.jsxs(E.Box,{className:`${Ze.container} ${t||""}`,sx:n,children:[g.jsx(E.IconButton,{className:Ze.zoomButton,onClick:u,"aria-label":"Zoom in",sx:d,children:g.jsx(E.Box,{className:Ze.stateLayer,children:g.jsx(De.Add,{className:Ze.icon,sx:f})})}),g.jsx(E.IconButton,{className:Ze.zoomButton,onClick:c,"aria-label":"Zoom out",sx:d,children:g.jsx(E.Box,{className:Ze.stateLayer,children:g.jsx(De.Remove,{className:Ze.icon,sx:f})})}),g.jsx(E.IconButton,{className:Ze.zoomButton,onClick:i,"aria-label":"Fullscreen",sx:d,children:g.jsx(E.Box,{className:Ze.stateLayer,children:g.jsx(De.ZoomOutMap,{className:Ze.icon,sx:f})})})]})};var sb=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 r,o,s;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))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(s=Object.keys(t),r=s.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[o]))return!1;for(o=r;o--!==0;){var i=s[o];if(!e(t[i],n[i]))return!1}return!0}return t!==t&&n!==n};const ib=Al(sb),ab="1.7.1";function Jt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function ls(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function a(c){try{u(r.next(c))}catch(d){i(d)}}function l(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?s(c.value):o(c.value).then(a,l)}u((r=r.apply(e,[])).next())})}const ot={NOT_LOADED:"NOT_LOADED",LOADING:"LOADING",LOADED:"LOADED",FAILED:"FAILED",AUTH_FAILURE:"AUTH_FAILURE"},lb="https://maps.googleapis.com/maps/api/js";class Sr{static load(t,n){return ls(this,void 0,void 0,function*(){var r,o;const s=t.libraries?t.libraries.split(","):[],i=this.serializeParams(t);this.listeners.push(n),!((o=(r=window.google)===null||r===void 0?void 0:r.maps)===null||o===void 0)&&o.importLibrary?(this.serializedApiParams||(this.loadingStatus=ot.LOADED),this.notifyLoadingStatusListeners()):(this.serializedApiParams=i,this.initImportLibrary(t)),this.serializedApiParams&&this.serializedApiParams!==i&&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 a=["maps",...s];yield Promise.all(a.map(l=>google.maps.importLibrary(l)))})}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 r=()=>n||(n=new Promise((o,s)=>{var i;const a=document.createElement("script"),l=new URLSearchParams;for(const[u,c]of Object.entries(t)){const d=u.replace(/[A-Z]/g,f=>"_"+f[0].toLowerCase());l.set(d,String(c))}l.set("loading","async"),l.set("callback","__googleMapsCallback__"),a.async=!0,a.src=lb+"?"+l.toString(),a.nonce=((i=document.querySelector("script[nonce]"))===null||i===void 0?void 0:i.nonce)||"",a.onerror=()=>{this.loadingStatus=ot.FAILED,this.notifyLoadingStatusListeners(),s(new Error("The Google Maps JavaScript API could not load."))},window.__googleMapsCallback__=()=>{this.loadingStatus=ot.LOADED,this.notifyLoadingStatusListeners(),o()},window.gm_authFailure=()=>{this.loadingStatus=ot.AUTH_FAILURE,this.notifyLoadingStatusListeners()},this.loadingStatus=ot.LOADING,this.notifyLoadingStatusListeners(),document.head.append(a)}),n);google.maps.importLibrary=o=>r().then(()=>google.maps.importLibrary(o))}static notifyLoadingStatusListeners(){for(const t of this.listeners)t(this.loadingStatus)}}Sr.loadingStatus=ot.NOT_LOADED;Sr.listeners=[];const cb="GMP_visgl_rgmlibrary_v1_default",ub=[`gmp_visgl_reactgooglemaps_v${ab}`],$n=x.createContext(null);function db(){const[e,t]=x.useState({});return{mapInstances:e,addMapInstance:(s,i="default")=>{t(a=>Object.assign(Object.assign({},a),{[i]:s}))},removeMapInstance:(s="default")=>{t(i=>{var a=s;i[a];var l=Jt(i,[typeof a=="symbol"?a:a+""]);return l})},clearMapInstances:()=>{t({})}}}function fb(e){const{onLoad:t,onError:n,apiKey:r,version:o,libraries:s=[]}=e,i=Jt(e,["onLoad","onError","apiKey","version","libraries"]),[a,l]=x.useState(Sr.loadingStatus),[u,c]=x.useReducer((p,m)=>p[m.name]?p:Object.assign(Object.assign({},p),{[m.name]:m.value}),{}),d=x.useMemo(()=>s==null?void 0:s.join(","),[s]),f=x.useMemo(()=>JSON.stringify(Object.assign({apiKey:r,version:o},i)),[r,o,i]),h=x.useCallback(p=>ls(this,void 0,void 0,function*(){var m;if(u[p])return u[p];if(!(!((m=google==null?void 0:google.maps)===null||m===void 0)&&m.importLibrary))throw new Error("[api-provider-internal] importLibrary was called before google.maps.importLibrary was defined.");const v=yield window.google.maps.importLibrary(p);return c({name:p,value:v}),v}),[u]);return x.useEffect(()=>{ls(this,void 0,void 0,function*(){try{const p=Object.assign({key:r},i);o&&(p.v=o),(d==null?void 0:d.length)>0&&(p.libraries=d),(p.channel===void 0||p.channel<0||p.channel>999)&&delete p.channel,p.solutionChannel===void 0?p.solutionChannel=cb:p.solutionChannel===""&&delete p.solutionChannel,yield Sr.load(p,m=>l(m));for(const m of["core","maps",...s])yield h(m);t&&t()}catch(p){n?n(p):console.error("<ApiProvider> failed to load the Google Maps JavaScript API",p)}})},[r,d,f]),{status:a,loadedLibraries:u,importLibrary:h}}function hb(e){return x.useMemo(()=>e.disableUsageAttribution?null:ub,[e.disableUsageAttribution])}const mb=e=>{const{children:t}=e,n=Jt(e,["children"]),{mapInstances:r,addMapInstance:o,removeMapInstance:s,clearMapInstances:i}=db(),{status:a,loadedLibraries:l,importLibrary:u}=fb(n),c=hb(n),d=x.useMemo(()=>({mapInstances:r,addMapInstance:o,removeMapInstance:s,clearMapInstances:i,status:a,loadedLibraries:l,importLibrary:u,internalUsageAttributionIds:c}),[r,o,s,i,a,l,u,c]);return x.createElement($n.Provider,{value:d},t)};function pb(e,t){for(const n of bb){const r=t[n],o=ju[n];x.useEffect(()=>{if(!e||!r)return;const s=google.maps.event.addListener(e,o,i=>{r(gb(o,e,i))});return()=>s.remove()},[e,o,r])}}function gb(e,t,n){var r;const o={type:e,map:t,detail:{},stoppable:!1,stop:()=>{}};if(yb.includes(e)){const s=o,i=t.getCenter(),a=t.getZoom(),l=t.getHeading()||0,u=t.getTilt()||0,c=t.getBounds();return(!i||!c||!Number.isFinite(a))&&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"),s.detail={center:(i==null?void 0:i.toJSON())||{lat:0,lng:0},zoom:a||0,heading:l,tilt:u,bounds:(c==null?void 0:c.toJSON())||{north:90,east:180,south:-90,west:-180}},s}else if(vb.includes(e)){if(!n)throw new Error("[createEvent] mouse events must provide a srcEvent");const s=o;return s.domEvent=n.domEvent,s.stoppable=!0,s.stop=()=>n.stop(),s.detail={latLng:((r=n.latLng)===null||r===void 0?void 0:r.toJSON())||null,placeId:n.placeId},s}return o}const ju={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"},yb=["bounds_changed","center_changed","heading_changed","tilt_changed","zoom_changed"],vb=["click","contextmenu","dblclick","mousemove","mouseout","mouseover"],bb=Object.keys(ju);function xb(e){const t=x.useRef(void 0);return x.useEffect(()=>{t.current=e}),t.current}function Sb(e,t){const n=xb(e);return x.useMemo(()=>n&&t(n,e)?n:e,[e,n,t])}function Cb(e,t,n){x.useEffect(e,[Sb(t,n)])}function Tb(e,t){Cb(e,t,ib)}const wb=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 _b(e,t){const n={},r=Object.keys(t);for(const o of r)wb.has(o)&&(n[o]=t[o]);Tb(()=>{e&&e.setOptions(n)},[n])}function Du(){var e;return((e=x.useContext($n))===null||e===void 0?void 0:e.status)||ot.NOT_LOADED}function Eb(e,t){const{viewport:n,viewState:r}=t,o=!!n;return x.useLayoutEffect(()=>{if(!e||!r)return;const{latitude:s,longitude:i,bearing:a,pitch:l,zoom:u}=r;e.moveCamera({center:{lat:s,lng:i},heading:a,tilt:l,zoom:u+1})},[e,r]),o}function Ab(e){return!e||typeof e!="object"||!("lat"in e&&"lng"in e)?!1:Number.isFinite(e.lat)&&Number.isFinite(e.lng)}function Bu(e){return Ab(e)?e:e.toJSON()}function Mb(e,t,n){const r=n.center?Bu(n.center):null;let o=null,s=null;r&&Number.isFinite(r.lat)&&Number.isFinite(r.lng)&&(o=r.lat,s=r.lng);const i=Number.isFinite(n.zoom)?n.zoom:null,a=Number.isFinite(n.heading)?n.heading:null,l=Number.isFinite(n.tilt)?n.tilt:null;x.useLayoutEffect(()=>{if(!e)return;const u={};let c=!1;o!==null&&s!==null&&(t.current.center.lat!==o||t.current.center.lng!==s)&&(u.center={lat:o,lng:s},c=!0),i!==null&&t.current.zoom!==i&&(u.zoom=i,c=!0),a!==null&&t.current.heading!==a&&(u.heading=a,c=!0),l!==null&&t.current.tilt!==l&&(u.tilt=l,c=!0),c&&e.moveCamera(u)})}const Pb=()=>{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 x.createElement("div",{style:e},x.createElement("h2",null,"Error: AuthFailure"),x.createElement("p",null,"A problem with your API key prevents the map from rendering correctly. Please make sure the value of the ",x.createElement("code",null,"APIProvider.apiKey")," prop is correct. Check the error-message in the console for further details."))};function kb(){const[e,t]=x.useState(null),n=x.useCallback(r=>t(r),[t]);return[e,n]}function Nu(){return Du()===ot.LOADED}function Ib(){const[,e]=x.useReducer(t=>t+1,0);return e}function Rb(e,t){const n=e.getCenter(),r=e.getZoom(),o=e.getHeading()||0,s=e.getTilt()||0,i=e.getBounds();(!n||!i||!Number.isFinite(r))&&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:r||0,heading:o,tilt:s})}function Ob(e){const t=Ib(),n=x.useRef({center:{lat:0,lng:0},heading:0,tilt:0,zoom:0});return x.useEffect(()=>{if(!e)return;const r=google.maps.event.addListener(e,"bounds_changed",()=>{Rb(e,n),t()});return()=>r.remove()},[e,t]),n}class lr{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)}}lr.entries={};function Lb(e,t){const n=Nu(),[r,o]=x.useState(null),[s,i]=kb(),a=Ob(r),{id:l,defaultBounds:u,defaultCenter:c,defaultZoom:d,defaultHeading:f,defaultTilt:h,reuseMaps:p,renderingType:m,colorScheme:v}=e,S=Jt(e,["id","defaultBounds","defaultCenter","defaultZoom","defaultHeading","defaultTilt","reuseMaps","renderingType","colorScheme"]),_=e.zoom!==void 0||e.defaultZoom!==void 0,b=e.center!==void 0||e.defaultCenter!==void 0;!u&&(!_||!b)&&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"),!S.center&&c&&(S.center=c),!S.zoom&&Number.isFinite(d)&&(S.zoom=d),!S.heading&&Number.isFinite(f)&&(S.heading=f),!S.tilt&&Number.isFinite(h)&&(S.tilt=h);const C=S.internalUsageAttributionIds;C==null?S.internalUsageAttributionIds=t.internalUsageAttributionIds:S.internalUsageAttributionIds=[...t.internalUsageAttributionIds||[],...C];for(const w of Object.keys(S))S[w]===void 0&&delete S[w];const T=x.useRef(void 0);return x.useEffect(()=>{if(!s||!n)return;const{addMapInstance:w,removeMapInstance:P}=t,{mapId:M}=e,k=`${M||"default"}:${m||"default"}:${v||"LIGHT"}`;let V,N;if(p&&lr.has(k)?(N=lr.pop(k),V=N.getDiv(),s.appendChild(V),N.setOptions(S),setTimeout(()=>N.setCenter(N.getCenter()),0)):(V=document.createElement("div"),V.style.height="100%",s.appendChild(V),N=new google.maps.Map(V,Object.assign(Object.assign(Object.assign({},S),m?{renderingType:m}:{}),v?{colorScheme:v}:{}))),o(N),w(N,l),u){const{padding:y}=u,R=Jt(u,["padding"]);N.fitBounds(R,y)}else(!_||!b)&&N.fitBounds({east:180,west:-180,south:-90,north:90});if(T.current){const{mapId:y,cameraState:R}=T.current;y!==M&&N.setOptions(R)}return()=>{T.current={mapId:M,cameraState:a.current},V.remove(),p?lr.push(k,N):google.maps.event.clearInstanceListeners(N),o(null),P(l)}},[s,n,l,e.mapId,e.renderingType,e.colorScheme]),[r,i,a]}const $u=x.createContext(null),Vu=e=>{const{children:t,id:n,className:r,style:o}=e,s=x.useContext($n),i=Du();if(!s)throw new Error("<Map> can only be used inside an <ApiProvider> component.");const[a,l,u]=Lb(e,s);Mb(a,u,e),pb(a,e),_b(a,e);const c=Eb(a,e),d=!!e.controlled;x.useEffect(()=>{if(a)return c&&a.setOptions({disableDefaultUI:!0}),(c||d)&&a.setOptions({gestureHandling:"none",keyboardShortcuts:!1}),()=>{a.setOptions({gestureHandling:e.gestureHandling,keyboardShortcuts:e.keyboardShortcuts})}},[a,c,d,e.gestureHandling,e.keyboardShortcuts]);const f=e.center?Bu(e.center):null;let h=null,p=null;f&&Number.isFinite(f.lat)&&Number.isFinite(f.lng)&&(h=f.lat,p=f.lng);const m=x.useMemo(()=>{var _,b,C;return{center:{lat:h??0,lng:p??0},zoom:(_=e.zoom)!==null&&_!==void 0?_:0,heading:(b=e.heading)!==null&&b!==void 0?b:0,tilt:(C=e.tilt)!==null&&C!==void 0?C:0}},[h,p,e.zoom,e.heading,e.tilt]);x.useLayoutEffect(()=>{if(!a||!d)return;a.moveCamera(m);const _=a.addListener("bounds_changed",()=>{a.moveCamera(m)});return()=>_.remove()},[a,d,m]);const v=x.useMemo(()=>Object.assign({width:"100%",height:"100%",position:"relative",zIndex:c?-1:0},o),[o,c]),S=x.useMemo(()=>({map:a}),[a]);return i===ot.AUTH_FAILURE?x.createElement("div",{style:Object.assign({position:"relative"},r?{}:v),className:r},x.createElement(Pb,null)):x.createElement("div",Object.assign({ref:l,"data-testid":"map",style:r?void 0:v,className:r},n?{id:n}:{}),a?x.createElement($u.Provider,{value:S},t):null)};Vu.deckGLViewProps=!0;const cl=new Set;function jb(...e){const t=JSON.stringify(e);cl.has(t)||(cl.add(t),console.error(...e))}const Hr=(e=null)=>{const t=x.useContext($n),{map:n}=x.useContext($u)||{};if(t===null)return jb("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:r}=t;return e!==null?r[e]||null:n||r.default||null};function Db(e){const t=Nu(),n=x.useContext($n);return x.useEffect(()=>{!t||!n||n.importLibrary(e)},[t,n,e]),(n==null?void 0:n.loadedLibraries[e])||null}function Zn(e,t,n){x.useEffect(()=>{if(!e||!t||!n)return;const r=google.maps.event.addListener(e,t,n);return()=>r.remove()},[e,t,n])}function qn(e,t,n){x.useEffect(()=>{e&&(e[t]=n)},[e,t,n])}function ul(e,t,n){x.useEffect(()=>{if(!(!e||!t||!n))return e.addEventListener(t,n),()=>e.removeEventListener(t,n)},[e,t,n])}class Bb{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(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+=`
104
106
  gmp-advanced-marker[data-origin='rgm'] {
105
107
  pointer-events: none !important;
106
108
  }
107
- `,this.renderedStyles.add("marker-pointer-events")}cleanup(){this.styleElement&&(this.styleElement.remove(),this.styleElement=null,this.renderedStyles.clear())}}const Nb=new Bb;function $b(e,t){var n;if(!(!((n=google==null?void 0:google.maps)===null||n===void 0)&&n.version))return;const r=google.maps.version.split("."),o=parseInt(r[0],10),s=parseInt(r[1],10);return o>e||o===e&&s>=t}const Vb=x.createContext(null),Fb={BOTTOM:["50%","100%"]},Fu=x.forwardRef((e,t)=>{const{children:n,style:r,className:o,anchorPoint:s}=e,[i,a]=Wb(e),l=x.useMemo(()=>i?{marker:i}:null,[i]);return x.useImperativeHandle(t,()=>i,[i]),a?x.createElement(Vb.Provider,{value:l},$d.createPortal(x.createElement(zb,{anchorPoint:s,styles:r,className:o},n),a)):null});Fu.displayName="AdvancedMarker";function cs(e){return e.nodeType===Node.ELEMENT_NODE}const zb=({children:e,styles:t,className:n})=>x.createElement("div",{className:n,style:t},e);function Wb(e){const[t,n]=x.useState(null),[r,o]=x.useState(null),s=Hr(),i=Db("marker"),{children:a,onClick:l,className:u,onMouseEnter:c,onMouseLeave:d,onDrag:f,onDragStart:h,onDragEnd:p,collisionBehavior:m,clickable:v,draggable:S,position:_,title:b,zIndex:C,anchorPoint:T,anchorLeft:w,anchorTop:P}=e,M=x.Children.count(a);return x.useEffect(()=>{if(!s||!i)return;const k=new i.AdvancedMarkerElement;k.map=s,n(k);let V=null;return M>0&&(V=document.createElement("div"),k.content=V,o(V)),()=>{k.map=null,V==null||V.remove(),n(null),o(null)}},[s,i,M]),x.useEffect(()=>{!(t!=null&&t.content)||!cs(t.content)||M>0||(t.content.className=u??"")},[t,u,M]),Ub(t,T,w,P,M>0),qn(t,"position",_),qn(t,"title",b??""),qn(t,"zIndex",C),qn(t,"collisionBehavior",m),x.useEffect(()=>{t&&(S!==void 0?t.gmpDraggable=S:f||h||p?t.gmpDraggable=!0:t.gmpDraggable=!1)},[t,S,f,p,h]),x.useEffect(()=>{if(!t)return;const k=v!==void 0||!!l||!!c||!!d;t.gmpClickable=k,k&&(t!=null&&t.content)&&cs(t.content)&&(t.content.style.pointerEvents="all",l&&(t.content.style.cursor="pointer"))},[t,v,l,c,d]),Zn(t,"click",l),Zn(t,"drag",f),Zn(t,"dragstart",h),Zn(t,"dragend",p),ul(t==null?void 0:t.element,"mouseenter",c),ul(t==null?void 0:t.element,"mouseleave",d),[t,r]}function Ub(e,t,n,r,o){x.useEffect(()=>{if(!e||!o)return;const s=$b(3,62),i=e.content;if(!(!i||!cs(i))){if(n!==void 0||r!==void 0){s||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=r,t!==void 0&&console.warn("AdvancedMarker: the anchorPoint prop is ignored when anchorLeft and/or anchorTop are set.");return}if(t!==void 0){const[a,l]=t??Fb.BOTTOM,u=`calc(-1 * ${a})`,c=`calc(-1 * ${l})`;s?(e.anchorLeft=u,e.anchorTop=c,i.style.transform=""):(i.style.transform=`translate(50%, 100%) translate(${u}, ${c})`,e.dataset.origin="rgm",Nb.addAdvancedMarkerPointerEventsOverwrite())}}},[e,t,n,r,o])}function Hb(e){const[t,n]=x.useState(null),r=Hr(),{onClick:o,onDrag:s,onDragStart:i,onDragEnd:a,onMouseOver:l,onMouseOut:u}=e,c=Jt(e,["onClick","onDrag","onDragStart","onDragEnd","onMouseOver","onMouseOut"]),{position:d,draggable:f}=c;return x.useEffect(()=>{if(!r){r===void 0&&console.error("<Marker> has to be inside a Map component.");return}const h=new google.maps.Marker(c);return h.setMap(r),n(h),()=>{h.setMap(null),n(null)}},[r]),x.useEffect(()=>{if(!t)return;const h=t,p=google.maps.event;return o&&p.addListener(h,"click",o),s&&p.addListener(h,"drag",s),i&&p.addListener(h,"dragstart",i),a&&p.addListener(h,"dragend",a),l&&p.addListener(h,"mouseover",l),u&&p.addListener(h,"mouseout",u),t.setDraggable(!!f),()=>{p.clearInstanceListeners(h)}},[t,f,o,s,i,a,l,u]),x.useEffect(()=>{t&&c&&t.setOptions(c)},[t,c]),x.useEffect(()=>{f||!d||!t||t.setPosition(d)},[f,d,t]),t}const Gb=x.forwardRef((e,t)=>{const n=Hb(e);return x.useImperativeHandle(t,()=>n,[n]),x.createElement(x.Fragment,null)});Gb.displayName="Marker";const zu=x.createContext(void 0),oi=()=>{const e=x.useContext(zu);if(!e)throw new Error("useGoogleMapContext must be used within GoogleMap component");return e},si=({children:e})=>{const t=Hr(),[n,r]=x.useState(13),[o,s]=x.useState(null);x.useEffect(()=>{if(!t)return;const a=t.getZoom();a!==void 0&&r(a);const l=t.getBounds();if(l){const d=l.getNorthEast(),f=l.getSouthWest();s([f.lng(),f.lat(),d.lng(),d.lat()])}const u=t.addListener("zoom_changed",()=>{const d=t.getZoom();d!==void 0&&(console.log("[MapContent] Zoom changed:",d),r(d))}),c=t.addListener("bounds_changed",()=>{const d=t.getBounds();if(d){const f=d.getNorthEast(),h=d.getSouthWest();s([h.lng(),h.lat(),f.lng(),f.lat()])}});return()=>{u&&google.maps.event.removeListener(u),c&&google.maps.event.removeListener(c)}},[t]);const i=(a,l=16)=>{t&&(t.setCenter(a),t.setZoom(l))};return t?g.jsx(zu.Provider,{value:{isLoaded:!0,map:t,currentZoom:n,bounds:o,zoomToPosition:i},children:e}):null};si.displayName="MapContent";const Kb=180,Wu=()=>{const{map:e}=oi(),t=x.useRef(null),n=x.useRef(null);return x.useEffect(()=>{if(!e||!t.current)return;const r=new ResizeObserver(()=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{try{google.maps.event.trigger(e,"resize")}finally{n.current=null}},Kb)});return r.observe(t.current),()=>{n.current&&clearTimeout(n.current),r.disconnect()}},[e]),g.jsx("div",{ref:t,"aria-hidden":!0,style:{position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none",visibility:"hidden"}})};Wu.displayName="MapResizeHandler";const Yb="_googleMap_j4y4m_1",Zb="_container_j4y4m_10",qb="_errorContainer_j4y4m_21",Xn={googleMap:Yb,container:Zb,errorContainer:qb},Xb={lat:-26.3044,lng:-48.8487},Jb=13,Qb={disableDefaultUI:!0,zoomControl:!1,streetViewControl:!1,mapTypeControl:!1,fullscreenControl:!1,rotateControl:!1,scaleControl:!1,panControl:!1,clickableIcons:!1,keyboardShortcuts:!1},ex=({colorScheme:e,options:t,onLoad:n,children:r})=>{const o=Hr();return x.useEffect(()=>{o&&(o.setOptions(Qb),t&&o.setOptions(t),n&&n(o))},[o,t,n]),g.jsx(g.Fragment,{children:r})},Uu=({center:e=Xb,zoom:t=Jb,className:n,children:r,apiKey:o,mapId:s,themeMode:i="light",options:a,onLoad:l,onError:u})=>{if(!o||!s)return g.jsx("div",{className:`${Xn.container} ${Xn.errorContainer} ${n||""}`,children:g.jsxs("div",{children:[g.jsx("p",{children:"Google Maps não configurado"}),g.jsx("p",{style:{fontSize:"14px",marginTop:"8px",opacity:.7},children:"As props apiKey e mapId são obrigatórias"})]})});const c=i==="dark"?"DARK":"LIGHT",d={defaultCenter:e,defaultZoom:t,mapId:s,className:Xn.googleMap,colorScheme:c},f=`${s}-${c}`;return g.jsx(mb,{apiKey:o,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:g.jsx("div",{className:`${Xn.container} ${n||""}`,style:{width:"100%",height:"400px",minHeight:"400px",position:"relative"},children:g.jsx(Vu,{...d,style:{width:"100%",height:"100%"},children:g.jsx(ex,{colorScheme:c,options:a,onLoad:l,children:g.jsxs(si,{children:[g.jsx(Wu,{}),r]})})},f)})})};Uu.displayName="GoogleMap";const dl=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],So=1,hn=8;class ii{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[n,r]=new Uint8Array(t,0,2);if(n!==219)throw new Error("Data does not appear to be in a KDBush format.");const o=r>>4;if(o!==So)throw new Error(`Got v${o} data when expected v${So}.`);const s=dl[r&15];if(!s)throw new Error("Unrecognized array type.");const[i]=new Uint16Array(t,2,1),[a]=new Uint32Array(t,4,1);return new ii(a,i,s,t)}constructor(t,n=64,r=Float64Array,o){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=r,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const s=dl.indexOf(this.ArrayType),i=t*2*this.ArrayType.BYTES_PER_ELEMENT,a=t*this.IndexArrayType.BYTES_PER_ELEMENT,l=(8-a%8)%8;if(s<0)throw new Error(`Unexpected typed array class: ${r}.`);o&&o instanceof ArrayBuffer?(this.data=o,this.ids=new this.IndexArrayType(this.data,hn,t),this.coords=new this.ArrayType(this.data,hn+a+l,t*2),this._pos=t*2,this._finished=!0):(this.data=new ArrayBuffer(hn+i+a+l),this.ids=new this.IndexArrayType(this.data,hn,t),this.coords=new this.ArrayType(this.data,hn+a+l,t*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(So<<4)+s]),new Uint16Array(this.data,2,1)[0]=n,new Uint32Array(this.data,4,1)[0]=t)}add(t,n){const r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=t,this.coords[this._pos++]=n,r}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return us(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,n,r,o){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:s,coords:i,nodeSize:a}=this,l=[0,s.length-1,0],u=[];for(;l.length;){const c=l.pop()||0,d=l.pop()||0,f=l.pop()||0;if(d-f<=a){for(let v=f;v<=d;v++){const S=i[2*v],_=i[2*v+1];S>=t&&S<=r&&_>=n&&_<=o&&u.push(s[v])}continue}const h=f+d>>1,p=i[2*h],m=i[2*h+1];p>=t&&p<=r&&m>=n&&m<=o&&u.push(s[h]),(c===0?t<=p:n<=m)&&(l.push(f),l.push(h-1),l.push(1-c)),(c===0?r>=p:o>=m)&&(l.push(h+1),l.push(d),l.push(1-c))}return u}within(t,n,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:o,coords:s,nodeSize:i}=this,a=[0,o.length-1,0],l=[],u=r*r;for(;a.length;){const c=a.pop()||0,d=a.pop()||0,f=a.pop()||0;if(d-f<=i){for(let v=f;v<=d;v++)fl(s[2*v],s[2*v+1],t,n)<=u&&l.push(o[v]);continue}const h=f+d>>1,p=s[2*h],m=s[2*h+1];fl(p,m,t,n)<=u&&l.push(o[h]),(c===0?t-r<=p:n-r<=m)&&(a.push(f),a.push(h-1),a.push(1-c)),(c===0?t+r>=p:n+r>=m)&&(a.push(h+1),a.push(d),a.push(1-c))}return l}}function us(e,t,n,r,o,s){if(o-r<=n)return;const i=r+o>>1;Hu(e,t,i,r,o,s),us(e,t,n,r,i-1,1-s),us(e,t,n,i+1,o,1-s)}function Hu(e,t,n,r,o,s){for(;o>r;){if(o-r>600){const u=o-r+1,c=n-r+1,d=Math.log(u),f=.5*Math.exp(2*d/3),h=.5*Math.sqrt(d*f*(u-f)/u)*(c-u/2<0?-1:1),p=Math.max(r,Math.floor(n-c*f/u+h)),m=Math.min(o,Math.floor(n+(u-c)*f/u+h));Hu(e,t,n,p,m,s)}const i=t[2*n+s];let a=r,l=o;for(mn(e,t,r,n),t[2*o+s]>i&&mn(e,t,r,o);a<l;){for(mn(e,t,a,l),a++,l--;t[2*a+s]<i;)a++;for(;t[2*l+s]>i;)l--}t[2*r+s]===i?mn(e,t,r,l):(l++,mn(e,t,l,o)),l<=n&&(r=l+1),n<=l&&(o=l-1)}}function mn(e,t,n,r){Co(e,n,r),Co(t,2*n,2*r),Co(t,2*n+1,2*r+1)}function Co(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function fl(e,t,n,r){const o=e-n,s=t-r;return o*o+s*s}const tx={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},hl=Math.fround||(e=>t=>(e[0]=+t,e[0]))(new Float32Array(1)),wt=2,ft=3,To=4,dt=5,Gu=6;class Ku{constructor(t){this.options=Object.assign(Object.create(tx),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){const{log:n,minZoom:r,maxZoom:o}=this.options;n&&console.time("total time");const s=`prepare ${t.length} points`;n&&console.time(s),this.points=t;const i=[];for(let l=0;l<t.length;l++){const u=t[l];if(!u.geometry)continue;const[c,d]=u.geometry.coordinates,f=hl(Jn(c)),h=hl(Qn(d));i.push(f,h,1/0,l,-1,1),this.options.reduce&&i.push(0)}let a=this.trees[o+1]=this._createTree(i);n&&console.timeEnd(s);for(let l=o;l>=r;l--){const u=+Date.now();a=this.trees[l]=this._createTree(this._cluster(a,l)),n&&console.log("z%d: %d clusters in %dms",l,a.numItems,+Date.now()-u)}return n&&console.timeEnd("total time"),this}getClusters(t,n){let r=((t[0]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,t[1]));let s=t[2]===180?180:((t[2]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,s=180;else if(r>s){const d=this.getClusters([r,o,180,i],n),f=this.getClusters([-180,o,s,i],n);return d.concat(f)}const a=this.trees[this._limitZoom(n)],l=a.range(Jn(r),Qn(i),Jn(s),Qn(o)),u=a.data,c=[];for(const d of l){const f=this.stride*d;c.push(u[f+dt]>1?ml(u,f,this.clusterProps):this.points[u[f+ft]])}return c}getChildren(t){const n=this._getOriginId(t),r=this._getOriginZoom(t),o="No cluster with the specified id.",s=this.trees[r];if(!s)throw new Error(o);const i=s.data;if(n*this.stride>=i.length)throw new Error(o);const a=this.options.radius/(this.options.extent*Math.pow(2,r-1)),l=i[n*this.stride],u=i[n*this.stride+1],c=s.within(l,u,a),d=[];for(const f of c){const h=f*this.stride;i[h+To]===t&&d.push(i[h+dt]>1?ml(i,h,this.clusterProps):this.points[i[h+ft]])}if(d.length===0)throw new Error(o);return d}getLeaves(t,n,r){n=n||10,r=r||0;const o=[];return this._appendLeaves(o,t,n,r,0),o}getTile(t,n,r){const o=this.trees[this._limitZoom(t)],s=Math.pow(2,t),{extent:i,radius:a}=this.options,l=a/i,u=(r-l)/s,c=(r+1+l)/s,d={features:[]};return this._addTileFeatures(o.range((n-l)/s,u,(n+1+l)/s,c),o.data,n,r,s,d),n===0&&this._addTileFeatures(o.range(1-l/s,u,1,c),o.data,s,r,s,d),n===s-1&&this._addTileFeatures(o.range(0,u,l/s,c),o.data,-1,r,s,d),d.features.length?d:null}getClusterExpansionZoom(t){let n=this._getOriginZoom(t)-1;for(;n<=this.options.maxZoom;){const r=this.getChildren(t);if(n++,r.length!==1)break;t=r[0].properties.cluster_id}return n}_appendLeaves(t,n,r,o,s){const i=this.getChildren(n);for(const a of i){const l=a.properties;if(l&&l.cluster?s+l.point_count<=o?s+=l.point_count:s=this._appendLeaves(t,l.cluster_id,r,o,s):s<o?s++:t.push(a),t.length===r)break}return s}_createTree(t){const n=new ii(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let r=0;r<t.length;r+=this.stride)n.add(t[r],t[r+1]);return n.finish(),n.data=t,n}_addTileFeatures(t,n,r,o,s,i){for(const a of t){const l=a*this.stride,u=n[l+dt]>1;let c,d,f;if(u)c=Yu(n,l,this.clusterProps),d=n[l],f=n[l+1];else{const m=this.points[n[l+ft]];c=m.properties;const[v,S]=m.geometry.coordinates;d=Jn(v),f=Qn(S)}const h={type:1,geometry:[[Math.round(this.options.extent*(d*s-r)),Math.round(this.options.extent*(f*s-o))]],tags:c};let p;u||this.options.generateId?p=n[l+ft]:p=this.points[n[l+ft]].id,p!==void 0&&(h.id=p),i.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:r,extent:o,reduce:s,minPoints:i}=this.options,a=r/(o*Math.pow(2,n)),l=t.data,u=[],c=this.stride;for(let d=0;d<l.length;d+=c){if(l[d+wt]<=n)continue;l[d+wt]=n;const f=l[d],h=l[d+1],p=t.within(l[d],l[d+1],a),m=l[d+dt];let v=m;for(const S of p){const _=S*c;l[_+wt]>n&&(v+=l[_+dt])}if(v>m&&v>=i){let S=f*m,_=h*m,b,C=-1;const T=((d/c|0)<<5)+(n+1)+this.points.length;for(const w of p){const P=w*c;if(l[P+wt]<=n)continue;l[P+wt]=n;const M=l[P+dt];S+=l[P]*M,_+=l[P+1]*M,l[P+To]=T,s&&(b||(b=this._map(l,d,!0),C=this.clusterProps.length,this.clusterProps.push(b)),s(b,this._map(l,P)))}l[d+To]=T,u.push(S/v,_/v,1/0,T,-1,v),s&&u.push(C)}else{for(let S=0;S<c;S++)u.push(l[d+S]);if(v>1)for(const S of p){const _=S*c;if(!(l[_+wt]<=n)){l[_+wt]=n;for(let b=0;b<c;b++)u.push(l[_+b])}}}}return u}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,n,r){if(t[n+dt]>1){const i=this.clusterProps[t[n+Gu]];return r?Object.assign({},i):i}const o=this.points[t[n+ft]].properties,s=this.options.map(o);return r&&s===o?Object.assign({},s):s}}function ml(e,t,n){return{type:"Feature",id:e[t+ft],properties:Yu(e,t,n),geometry:{type:"Point",coordinates:[nx(e[t]),rx(e[t+1])]}}}function Yu(e,t,n){const r=e[t+dt],o=r>=1e4?`${Math.round(r/1e3)}k`:r>=1e3?`${Math.round(r/100)/10}k`:r,s=e[t+Gu],i=s===-1?{}:Object.assign({},n[s]);return Object.assign(i,{cluster:!0,cluster_id:e[t+ft],point_count:r,point_count_abbreviated:o})}function Jn(e){return e/360+.5}function Qn(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 nx(e){return(e-.5)*360}function rx(e){const t=(180-e*360)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}const ox={radius:30,maxZoom:13,minZoom:0,minPoints:2};function sx(e,t,n,r={}){const o=x.useRef(null),[s,i]=x.useState([]),a={...ox,...r};return x.useEffect(()=>{if(!e||e.length===0){i([]);return}const l=e.map(u=>({type:"Feature",properties:u,geometry:{type:"Point",coordinates:[u.lng,u.lat]}}));o.current=new Ku({radius:a.radius,maxZoom:a.maxZoom,minZoom:a.minZoom,minPoints:a.minPoints}),o.current.load(l)},[e,a.radius,a.maxZoom,a.minZoom,a.minPoints]),x.useEffect(()=>{if(!o.current||!n){i(e);return}const u=o.current.getClusters(n,Math.floor(t)).map(c=>{const[d,f]=c.geometry.coordinates,h=c.properties;if(h.cluster){const p=h.cluster_id,m=o.current.getLeaves(p,1/0),v=m.flatMap(_=>_.properties.cameras||[]),S=m.reduce((_,b)=>_+b.properties.count,0);return{id:`cluster-${p}`,lat:f,lng:d,count:S,cameras:v,isCluster:!0,pointCount:h.point_count,clusterId:p}}else{const p=h;return{id:p.id,lat:f,lng:d,count:p.count,addressText:p.addressText,cameras:p.cameras}}});i(u)},[e,t,n]),s}const ix=16,Zu=({spots:e,onSpotClick:t,zoomLevel:n=ix,selectedSpotId:r,animateOnClick:o,disableClick:s})=>{const{isLoaded:i,currentZoom:a,bounds:l,zoomToPosition:u}=oi(),c=x.useRef(null),d=sx(e,a,l);if(d.length>0&&l){const h=e.map(p=>({type:"Feature",properties:p,geometry:{type:"Point",coordinates:[p.lng,p.lat]}}));c.current||(c.current=new Ku({radius:30,maxZoom:13,minZoom:0,minPoints:2})),c.current.load(h)}const f=h=>{if(h.isCluster&&h.clusterId&&c.current)try{const p=c.current.getClusterExpansionZoom(h.clusterId);u({lat:h.lat,lng:h.lng},p)}catch(p){console.error("Error getting cluster expansion zoom:",p),u({lat:h.lat,lng:h.lng},n)}else u({lat:h.lat,lng:h.lng},n),s||t==null||t(h)};return i?g.jsx(g.Fragment,{children:d.map((h,p)=>g.jsx(Fu,{position:{lat:h.lat,lng:h.lng},onClick:()=>f(h),children:g.jsx(ri,{count:h.count,addressText:h.addressText,cameras:h.cameras,currentZoom:a,isSelected:!s&&!h.isCluster&&r===h.id,animateOnClick:o,disableClick:s})},h.id??p))}):null};Zu.displayName="MapMarkers";const ax="_searchBar_15mix_1",lx="_startIconContainer_15mix_106",cx="_endIconContainer_15mix_117",ux="_endIconContainerClickable_15mix_153",dx="_defaultIcon_15mix_157",Sn={searchBar:ax,startIconContainer:lx,endIconContainer:cx,endIconContainerClickable:ux,defaultIcon:dx},fx=e=>()=>{e&&e()},hx=e=>t=>{e&&e(t)},mx=()=>g.jsx(De.Search,{className:Sn.defaultIcon}),px=e=>e||mx(),qu=x.forwardRef(({startIcon:e,endIcon:t,onEndIconClick:n,placeholder:r,value:o,onChange:s,className:i,...a},l)=>{const c=E.useTheme().palette.mode==="dark",d=px(t),f=fx(n),h=hx(s);return g.jsx(E.TextField,{ref:l,value:o,onChange:h,placeholder:r,variant:"outlined",autoComplete:"off",className:`${Sn.searchBar} ${i||""}`,"data-theme":c?"dark":"light",InputProps:{startAdornment:e?g.jsx(E.InputAdornment,{position:"start",className:Sn.startIconContainer,children:e}):null,endAdornment:g.jsx(E.InputAdornment,{position:"end",className:`${Sn.endIconContainer} ${n?Sn.endIconContainerClickable:""}`,onClick:f,disablePointerEvents:!n,children:d})},inputProps:{autoComplete:"off","data-form-type":"other"},...a})});qu.displayName="SearchBar";const gx=Qe(g.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),yx=Qe([g.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"),g.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"),vx="_container_1mb8b_1",bx="_iconWrapper_1mb8b_11",xx="_icon_1mb8b_11",Sx="_title_1mb8b_21",Cx="_subtitle_1mb8b_30",Tx="_description_1mb8b_34",wx="_button_1mb8b_38",_t={container:vx,iconWrapper:bx,icon:xx,title:Sx,subtitle:Cx,description:Tx,button:wx},Xu=({onGoHome:e,buttonText:t="Voltar para o início",title:n="Página não encontrada",description:r="Desculpe, a página que você está procurando não existe ou foi movida para outro endereço.",errorCode:o="404",className:s})=>g.jsx(E.Container,{maxWidth:"sm",children:g.jsxs(E.Box,{className:`${_t.container} ${s||""}`,children:[g.jsx(E.Box,{className:_t.iconWrapper,children:g.jsx(yx,{className:_t.icon,color:"primary"})}),g.jsx(E.Typography,{variant:"h1",className:_t.title,sx:{fontSize:{xs:"6rem",md:"8rem"}},children:o}),g.jsx(E.Typography,{variant:"h4",component:"h2",className:_t.subtitle,color:"text.primary",children:n}),g.jsx(E.Typography,{variant:"body1",className:_t.description,color:"text.secondary",children:r}),e&&g.jsx(vs,{variant:"contained",size:"large",startIcon:g.jsx(gx,{}),onClick:e,className:_t.button,children:t})]})});Xu.displayName="NotFoundContent";const _x=e=>{const t=e.find(r=>r.active),n=e.flatMap(r=>{var o;return((o=r.submenu)==null?void 0:o.map(s=>({item:r,subItem:s})))??[]}).find(({subItem:r})=>r.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}},Ex=({items:e,isExpanded:t=!0,onClick:n})=>{const r=x.useMemo(()=>_x(e),[e]),[o,s]=x.useState(r.itemId),[i,a]=x.useState(r.subItemId),[l,u]=x.useState(r.expandedItemId),[c,d]=x.useState(null),[f,h]=x.useState(null);x.useEffect(()=>{s(r.itemId),a(r.subItemId),u(r.expandedItemId)},[r.itemId,r.subItemId,r.expandedItemId]);const p=f?e.find(w=>w.id===f):void 0,m=(p==null?void 0:p.submenu)??[];return{selectedItemId:o,selectedSubItemId:i,expandedItemId:l,submenuAnchorEl:c,submenuItem:p,submenuItems:m,getIsItemActive:w=>{var M;const P=i?!!((M=w.submenu)!=null&&M.some(k=>k.id===i)):!1;return o?w.id===o:!!(w.active||P)},getIsSubItemActive:w=>i?w.id===i:!!w.active,shouldShowSubmenu:w=>{var P;return!!(t&&((P=w.submenu)!=null&&P.length)&&l===w.id)},handleItemClick:(w,P)=>{var M,k;s(w.id),a(null),(M=w.submenu)!=null&&M.length?t?u(V=>V===w.id?null:w.id):(d(P.currentTarget),h(w.id)):(u(null),d(null),h(null)),(k=w.onClick)==null||k.call(w,P),n==null||n({item:w})},handleSubItemClick:(w,P,M,k)=>{var V;s(w.id),a(P.id),k!=null&&k.closeMenu&&(d(null),h(null)),(V=P.onClick)==null||V.call(P,M),n==null||n({item:w,subItem:P})},closeSubmenu:()=>{d(null),h(null)}}},Ju=e=>typeof e=="number"?`${e*4}px`:e,Ax=({item:e,onClick:t,isActive:n})=>{const r=X.useTheme();return g.jsx(E.ButtonBase,{onClick:t,"aria-label":e.label,"aria-pressed":n||void 0,sx:{width:"100%",borderRadius:Ju(r.shape.borderRadius),px:2,py:1.25,justifyContent:"flex-start",textAlign:"left",color:r.palette.text.primary,backgroundColor:n?r.palette.action.selected:"transparent","&:hover":{backgroundColor:r.palette.action.hover}},children:g.jsx(E.Typography,{variant:"body2",sx:{fontWeight:500},children:e.label})})},Qu=({items:e,isExpanded:t=!0,className:n,onClick:r})=>{const o=X.useTheme(),s=Ju(o.shape.borderRadius),{submenuAnchorEl:i,submenuItem:a,submenuItems:l,getIsItemActive:u,getIsSubItemActive:c,shouldShowSubmenu:d,handleItemClick:f,handleSubItemClick:h,closeSubmenu:p}=Ex({items:e,isExpanded:t,onClick:r});return g.jsxs(E.Stack,{className:n,direction:"column",spacing:2,sx:{width:"100%"},children:[e.map(m=>{var w,P;const v=u(m),S=d(m),_=t?o.spacing(2):o.spacing(4),b=t?v?o.palette.primary.main:o.palette.action.hover:"transparent",C=t?"transparent":v?o.palette.primary.main:o.palette.action.hover,T=!t&&v?o.palette.primary.contrastText:o.palette.text.primary;return g.jsxs(E.Stack,{direction:"column",spacing:1,sx:{width:"100%"},children:[g.jsx(E.ButtonBase,{onClick:M=>f(m,M),"aria-label":m.label,"aria-pressed":v||void 0,"aria-haspopup":(w=m.submenu)!=null&&w.length?"menu":void 0,sx:{width:"100%",borderRadius:s,px:t?2:1,py:t?1.5:1,justifyContent:t?"flex-start":"center",textAlign:"left",color:o.palette.text.primary,backgroundColor:b,boxShadow:t&&v?o.shadows[1]:"none","&:hover":{backgroundColor:t?o.palette.action.hover:"transparent"}},children:g.jsxs(E.Stack,{direction:t?"row":"column",alignItems:"center",spacing:t?1.5:1,sx:{width:"100%"},children:[g.jsx(E.Box,{sx:{width:64,height:_,borderRadius:s,display:"inline-flex",alignItems:"center",justifyContent:"center",backgroundColor:C,color:T,transition:o.transitions.create(["background-color","box-shadow"],{duration:o.transitions.duration.shortest}),...t?{}:{boxShadow:v?o.shadows[1]:"none","&:hover":{backgroundColor:v?X.alpha(o.palette.primary.main,.9):o.palette.action.selected}}},children:m.icon}),g.jsx(E.Typography,{variant:"body2",sx:{width:"100%",textAlign:t?"left":"center",fontWeight:v?600:500},children:m.label}),t&&m.trailingIcon?g.jsx(E.Box,{sx:{ml:"auto",display:"inline-flex",alignItems:"center"},children:m.trailingIcon}):null]})}),S?g.jsx(E.Collapse,{in:S,timeout:"auto",unmountOnExit:!0,children:g.jsx(E.Stack,{direction:"column",spacing:1,sx:{pl:4},children:(P=m.submenu)==null?void 0:P.map(M=>{const k=c(M);return g.jsx(Ax,{item:M,isActive:k,onClick:V=>h(m,M,V)},M.id)})})}):null]},m.id)}),g.jsx(E.Menu,{anchorEl:i,open:!!(i&&l.length),onClose:p,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},MenuListProps:{dense:!0,"aria-label":(a==null?void 0:a.label)??"submenu"},PaperProps:{sx:{borderRadius:s,minWidth:o.spacing(22),px:1,py:.5,boxShadow:o.shadows[3]}},children:l.map(m=>{const v=c(m);return g.jsx(E.MenuItem,{selected:v,onClick:S=>{a&&h(a,m,S,{closeMenu:!0})},sx:{borderRadius:s,fontWeight:v?600:500},children:m.label},m.id)})})]})};Qu.displayName="SidebarMenu";const Mx=e=>{const t=e.find(n=>n.active);return(t==null?void 0:t.id)??null},Px=({items:e,onSelect:t,isExpanded:n=!0})=>{const r=x.useMemo(()=>Mx(e),[e]),[o,s]=x.useState(r),[i,a]=x.useState(null);x.useEffect(()=>{s(r)},[r]);const l=o?e.find(h=>h.id===o):void 0;return{selectedItemId:o,selectedItem:l,menuAnchorEl:i,getIsItemActive:h=>o?h.id===o:!!h.active,openMenu:h=>{n||a(h.currentTarget)},closeMenu:()=>{n||a(null)},handleItemClick:(h,p)=>{var m;s(h.id),(m=h.onClick)==null||m.call(h,p),t==null||t(h),a(null)}}},kx=e=>typeof e=="number"?`${e*4}px`:e,ed=({items:e,currentLabel:t,headerLabel:n,headerIcon:r,headerTrailingIcon:o,listTitle:s,action:i,isExpanded:a=!0,className:l,onSelect:u})=>{var U,G;const c=X.useTheme(),d=x.useRef(null),f=kx(c.shape.borderRadius),[h,p]=x.useState(!1),m=x.useMemo(()=>Number.parseFloat(c.spacing(2).toString()),[c]),{selectedItem:v,menuAnchorEl:S,getIsItemActive:_,openMenu:b,closeMenu:C,handleItemClick:T}=Px({items:e,onSelect:u,isExpanded:a}),w=t??(v==null?void 0:v.label)??((U=e[0])==null?void 0:U.label)??"",P=r??(v==null?void 0:v.icon)??((G=e[0])==null?void 0:G.icon)??null,M=a||!P,k=D=>{if(a){p(Q=>!Q);return}b(D)},V=(D,Q)=>{T(D,Q),p(!1)},N=g.jsx(E.Stack,{direction:"column",spacing:.5,children:e.map(D=>{const Q=_(D);return g.jsxs(E.MenuItem,{selected:Q,onClick:j=>V(D,j),sx:{borderRadius:f,gap:1.5,px:2,py:1.25,color:c.palette.text.primary,"&:hover":{backgroundColor:c.palette.action.hover}},children:[D.icon?g.jsx(E.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:D.icon}):null,g.jsx(E.Typography,{variant:"body1",sx:{fontWeight:Q?600:500},children:D.label})]},D.id)})}),y=g.jsxs(E.Box,{sx:{borderRadius:f,backgroundColor:c.palette.background.paper,boxShadow:c.shadows[3],display:"flex",flexDirection:"column",maxHeight:c.spacing(50)},children:[s?g.jsx(E.Box,{sx:{px:2,pt:2,pb:1},children:g.jsx(E.Typography,{variant:"subtitle2",sx:{color:c.palette.text.primary},children:s})}):null,g.jsx(E.Box,{sx:{px:2,pb:2,overflowY:"auto",flex:1,minHeight:0},children:N})]}),R=i?g.jsxs(E.MenuItem,{onClick:i.onClick,sx:{borderRadius:f,gap:1.5,px:2,py:1.25,color:c.palette.text.primary,"&:hover":{backgroundColor:c.palette.action.hover}},children:[i.icon?g.jsx(E.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:i.icon}):null,g.jsx(E.Typography,{variant:"body1",sx:{fontWeight:600},children:i.label})]}):null,O=R?g.jsx(E.Box,{sx:{borderRadius:f,backgroundColor:c.palette.background.paper,boxShadow:c.shadows[3]},children:R}):null,F=g.jsxs(E.Stack,{direction:"column",spacing:1,sx:{minWidth:c.spacing(32)},children:[y,O]});return g.jsxs(E.Stack,{className:l,direction:a?"row":"column",spacing:a?2:1,sx:{width:"100%",alignItems:a?"flex-start":"stretch"},children:[g.jsx(E.ButtonBase,{onClick:k,"aria-label":w,ref:d,sx:{width:a?c.spacing(28):"64px",height:a?"auto":"64px",borderRadius:f,px:a?2:0,py:a?1.25:0,display:"flex",alignItems:"center",justifyContent:"center",textAlign:"left",backgroundColor:c.palette.action.hover,"&:hover":{backgroundColor:c.palette.action.selected}},children:g.jsxs(E.Stack,{direction:"row",alignItems:"center",spacing:a?1:0,sx:{width:a?"100%":"auto",justifyContent:a?"space-between":"center",px:0},children:[P?g.jsx(E.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:P}):null,M?g.jsxs(E.Box,{sx:{minWidth:0,flex:1},children:[n?g.jsx(E.Typography,{variant:"caption",sx:{color:c.palette.text.secondary},children:n}):null,g.jsx(E.Typography,{variant:"body2",sx:{fontWeight:600},noWrap:!0,children:w})]}):null,a&&o?g.jsx(E.Box,{sx:{ml:"auto",display:"inline-flex",alignItems:"center"},children:o}):null]})}),a?h?g.jsx(E.ClickAwayListener,{onClickAway:()=>p(!1),children:g.jsx(E.Popper,{open:h,anchorEl:d.current,placement:"right-start",modifiers:[{name:"offset",options:{offset:[0,m]}}],sx:{zIndex:c.zIndex.modal},children:F})}):null:g.jsx(E.Menu,{anchorEl:S,open:!!S,onClose:C,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},disableAutoFocusItem:!0,slotProps:{paper:{sx:{borderRadius:f,p:0,ml:2,backgroundColor:"transparent",boxShadow:"none",overflow:"visible"}}},MenuListProps:{"aria-label":w?`menu-${w}`:"menu",sx:{p:0}},children:F})]})};ed.displayName="ModuleMenu";const ai=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,Ix=(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}}),Rx=({stream:e,availableQualities:t,initialQuality:n,autoPlay:r,liveThresholdSeconds:o,allowPlaybackRateForStream:s})=>{const i=x.useRef(null),a=x.useRef(null),l=x.useMemo(()=>{if(!t||!t.length)return null;if(n){const D=t.find(Q=>Q.value===n);if(D)return D}return t[0]},[t,n]),[u,c]=x.useState(l),[d,f]=x.useState(!1),[h,p]=x.useState(!0),[m,v]=x.useState(!1),[S,_]=x.useState(0),[b,C]=x.useState(0),[T,w]=x.useState(1),[P,M]=x.useState(1),[k,V]=x.useState(!1),[N,y]=x.useState(!0),R=(u==null?void 0:u.stream)??e??null,O=(u==null?void 0:u.src)??null,U=!!!R||s;x.useEffect(()=>{c(l)},[l]);const G=x.useCallback(()=>{const D=a.current;if(!D)return;if(!D.seekable||D.seekable.length===0){p(!0),v(!1);return}const Q=ai(D),j=Math.max(0,Q-D.currentTime);C(Q),_(D.currentTime),v(Q>0),p(j<=(o??2))},[o]);return x.useEffect(()=>{const D=a.current;if(!D)return;const Q=()=>f(!0),j=()=>f(!1),A=()=>y(!0),$=()=>y(!0),L=()=>y(!1),B=()=>y(!1);return D.addEventListener("play",Q),D.addEventListener("pause",j),D.addEventListener("waiting",A),D.addEventListener("loadstart",$),D.addEventListener("canplay",L),D.addEventListener("playing",B),D.addEventListener("timeupdate",G),D.addEventListener("durationchange",G),D.addEventListener("loadedmetadata",G),D.addEventListener("progress",G),()=>{D.removeEventListener("play",Q),D.removeEventListener("pause",j),D.removeEventListener("waiting",A),D.removeEventListener("loadstart",$),D.removeEventListener("canplay",L),D.removeEventListener("playing",B),D.removeEventListener("timeupdate",G),D.removeEventListener("durationchange",G),D.removeEventListener("loadedmetadata",G),D.removeEventListener("progress",G)}},[G]),x.useEffect(()=>{const D=a.current;D&&(y(!0),R?(D.srcObject!==R&&(D.srcObject=R),D.getAttribute("src")&&D.removeAttribute("src")):O?(D.srcObject&&(D.srcObject=null),D.src!==O&&(D.src=O,D.load())):(D.srcObject&&(D.srcObject=null),D.getAttribute("src")&&D.removeAttribute("src")),r&&D.play().then(()=>{}).catch(()=>{}))},[R,O,r]),x.useEffect(()=>{const D=a.current;D&&(U?D.playbackRate=T:(D.playbackRate=1,w(1)))},[T,U]),x.useEffect(()=>{const D=()=>{V(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",D),()=>{document.removeEventListener("fullscreenchange",D)}},[]),{containerRef:i,videoRef:a,selectedQuality:u,setSelectedQuality:c,isPlaying:d,isLive:h,canSeek:m,currentTime:S,setCurrentTime:_,seekableEnd:b,playbackRate:T,setPlaybackRate:w,zoom:P,setZoom:M,isFullscreen:k,isLoading:N,canAdjustPlaybackRate:U,updateLiveStatus:G}},Ox="_container_zv1tx_1",Lx="_loader_zv1tx_19",jx="_video_zv1tx_29",Dx="_controlsOverlay_zv1tx_37",Bx="_timeline_zv1tx_58",Nx="_controlsRow_zv1tx_65",$x="_controlGroup_zv1tx_83",Vx="_iconButton_zv1tx_100",Fx="_seekButton_zv1tx_113",zx="_menuButton_zv1tx_133",Wx="_liveBadge_zv1tx_149",Me={container:Ox,loader:Lx,video:jx,controlsOverlay:Dx,timeline:Bx,controlsRow:Nx,controlGroup:$x,iconButton:Vx,seekButton:Fx,menuButton:zx,liveBadge:Wx},wo=({label:e,valueLabel:t,selectedValue:n,options:r,onChange:o,disabled:s,ariaLabel:i})=>{const[a,l]=x.useState(null),u=!!a;return g.jsxs(g.Fragment,{children:[g.jsx(E.ButtonBase,{disabled:s,className:Me.menuButton,"aria-label":i,onClick:c=>l(c.currentTarget),children:e?`${e}: ${t}`:t}),g.jsx(E.Menu,{anchorEl:a,open:u,onClose:()=>l(null),children:r.map(c=>g.jsx(E.MenuItem,{selected:c.value===n,disabled:c.disabled,onClick:()=>{o(c.value),l(null)},children:c.label},`${e}-${String(c.value)}`))})]})},Ux=e=>()=>{const t=e.current;t&&(t.paused?t.play().catch(()=>{}):t.pause())},Hx=(e,t,n)=>r=>{const o=e.current;if(!o||!t)return;const s=ai(o),i=Math.min(Math.max(o.currentTime+r,0),s);o.currentTime=i,n()},Gx=e=>()=>{e.current&&(document.fullscreenElement?document.exitFullscreen().catch(()=>{}):e.current.requestFullscreen().catch(()=>{}))},Kx=(e,t,n)=>r=>{const o=e.find(s=>s.value===r)??null;t(o),n==null||n(o)},Yx=(e,t)=>(n,r)=>{if(!e)return;const o=Array.isArray(r)?r[0]:r;t(o)},Zx=(e,t,n)=>(r,o)=>{const s=e.current;if(!s||!t)return;const i=Array.isArray(o)?o[0]:o,a=ai(s);s.currentTime=Math.min(Math.max(i,0),a),n()},td=({stream:e=null,availableQualities:t=[],initialQuality:n,onQualityChange:r,autoPlay:o=!0,playsInline:s=!0,muted:i=!0,poster:a,className:l,sx:u,liveThresholdSeconds:c=2,allowPlaybackRateForStream:d=!1,playbackRates:f=[.5,1,1.5,2],zoomLevels:h=[1,1.2,1.5],width:p,height:m,aspectRatio:v="16 / 9",showTimestamp:S=!0,showTimeline:_=!0})=>{const b=X.useTheme(),[C,T]=x.useState(""),[w,P]=x.useState(!0),M=x.useRef(null);x.useEffect(()=>{if(!S)return;const Ce=()=>{const Ke=new Date,Fn=String(Ke.getDate()).padStart(2,"0"),Rd=String(Ke.getMonth()+1).padStart(2,"0"),Od=Ke.getFullYear(),Ld=["Dom","Seg","Ter","Qua","Qui","Sex","Sab"][Ke.getDay()],jd=String(Ke.getHours()).padStart(2,"0"),Dd=String(Ke.getMinutes()).padStart(2,"0"),Bd=String(Ke.getSeconds()).padStart(2,"0");T(`${Fn}-${Rd}-${Od}, ${Ld} ${jd}:${Dd}:${Bd}`)};Ce();const Vn=setInterval(Ce,1e3);return()=>clearInterval(Vn)},[S]),x.useEffect(()=>{const Ce=k.current;if(!Ce)return;const Vn=()=>{M.current&&(clearTimeout(M.current),M.current=null),P(!0)},Ke=()=>{M.current=setTimeout(()=>{P(!1)},1e4)},Fn=()=>{w||P(!0),M.current&&clearTimeout(M.current),M.current=setTimeout(()=>{P(!1)},1e4)};return Ce.addEventListener("mouseenter",Vn),Ce.addEventListener("mouseleave",Ke),Ce.addEventListener("mousemove",Fn),()=>{Ce.removeEventListener("mouseenter",Vn),Ce.removeEventListener("mouseleave",Ke),Ce.removeEventListener("mousemove",Fn),M.current&&clearTimeout(M.current)}},[w]);const{containerRef:k,videoRef:V,selectedQuality:N,setSelectedQuality:y,isPlaying:R,isLive:O,canSeek:F,currentTime:U,setCurrentTime:G,seekableEnd:D,playbackRate:Q,setPlaybackRate:j,zoom:A,setZoom:$,isFullscreen:L,isLoading:B,canAdjustPlaybackRate:Y,updateLiveStatus:H}=Rx({stream:e,availableQualities:t,initialQuality:n,autoPlay:o,liveThresholdSeconds:c,allowPlaybackRateForStream:d}),W=Ux(V),Z=Hx(V,F,H),q=Gx(k),J=Kx(t,y,r),me=Yx(F,G),z=Zx(V,F,H),Ee=h.map(Ce=>({value:Ce,label:`${Math.round(Ce*100)}%`})),Ge=f.map(Ce=>({value:Ce,label:`${Ce}x`})),ct=t.map(Ce=>({value:Ce.value,label:Ce.label})),Gr=(N==null?void 0:N.label)??"Auto",on=`${Math.round(A*100)}%`,sn=`${Q}x`,an=F&&D>0,Kr=Ix(p,m,v);return g.jsxs(E.Box,{ref:k,className:`${Me.container} ${l||""}`.trim(),style:Kr,sx:{borderRadius:0,backgroundColor:b.palette.common.black,...u},children:[B&&g.jsx(E.Box,{className:Me.loader,sx:{backgroundColor:b.palette.common.black},children:g.jsx(E.CircularProgress,{size:60,sx:{color:b.palette.primary.contrastText,width:{xs:"48px",sm:"60px"},height:{xs:"48px",sm:"60px"}}})}),g.jsx("video",{ref:V,className:Me.video,autoPlay:o,playsInline:s,muted:i,poster:a,style:{transform:`scale(${A})`}}),S&&C&&g.jsx(E.Box,{sx:{position:"absolute",top:0,left:0,right:0,padding:{xs:"10px 12px",sm:"12px 16px"}},children:g.jsx(E.Typography,{variant:"body2",sx:{color:b.palette.common.white,fontWeight:500,fontSize:{xs:"12px",sm:"14px"},textShadow:"0 2px 8px rgba(0,0,0,0.8)"},children:C})}),O&&!w&&g.jsx(E.Box,{sx:{position:"absolute",bottom:16,left:20,zIndex:10},children:g.jsx(E.Box,{className:Me.liveBadge,sx:{backgroundColor:X.alpha(b.palette.common.white,.9),color:b.palette.common.black},component:"span","aria-live":"polite",children:"ao vivo"})}),g.jsxs(E.Box,{className:Me.controlsOverlay,sx:{opacity:w?1:0,visibility:w?"visible":"hidden",transition:"opacity 0.3s ease, visibility 0.3s ease"},children:[_&&g.jsx(E.Box,{className:Me.timeline,children:g.jsx(E.Slider,{size:"small",min:0,max:an?D:1,step:1,value:an?U:0,disabled:!an,onChange:me,onChangeCommitted:z,"aria-label":"Linha do tempo do video",sx:{color:b.palette.common.white,"& .MuiSlider-thumb":{width:12,height:12,backgroundColor:b.palette.common.white},"& .MuiSlider-track":{border:"none",backgroundColor:b.palette.common.white},"& .MuiSlider-rail":{backgroundColor:X.alpha(b.palette.common.white,.3),opacity:1}}})}),g.jsxs(E.Box,{className:Me.controlsRow,children:[g.jsxs(E.Box,{className:Me.controlGroup,children:[g.jsx(E.Box,{className:Me.liveBadge,sx:{backgroundColor:O?X.alpha(b.palette.common.white,.9):X.alpha(b.palette.common.white,.15),color:O?b.palette.common.black:X.alpha(b.palette.common.white,.7)},component:"span","aria-live":"polite",children:"ao vivo"}),g.jsx(E.Box,{className:Me.seekButton,component:"button",onClick:()=>Z(-15),"aria-label":"Voltar 15 segundos",sx:{backgroundColor:X.alpha(b.palette.common.white,.15),color:b.palette.common.white,border:"none",cursor:"pointer","&:hover":{backgroundColor:X.alpha(b.palette.common.white,.25)}},children:"15s"}),g.jsx(E.IconButton,{className:Me.iconButton,onClick:()=>Z(-15),"aria-label":"Recuar 15 segundos",sx:{backgroundColor:X.alpha(b.palette.common.white,.15),color:b.palette.common.white,"&:hover":{backgroundColor:X.alpha(b.palette.common.white,.25)}},children:g.jsx(De.FastRewind,{fontSize:"small"})}),g.jsx(E.IconButton,{className:Me.iconButton,onClick:W,"aria-label":"Play/Pause",sx:{backgroundColor:X.alpha(b.palette.common.white,.15),color:b.palette.common.white,"&:hover":{backgroundColor:X.alpha(b.palette.common.white,.25)}},children:R?g.jsx(De.Pause,{fontSize:"small"}):g.jsx(De.PlayArrow,{fontSize:"small"})}),g.jsx(E.IconButton,{className:Me.iconButton,onClick:()=>Z(15),"aria-label":"Avançar 15 segundos",sx:{backgroundColor:X.alpha(b.palette.common.white,.15),color:b.palette.common.white,"&:hover":{backgroundColor:X.alpha(b.palette.common.white,.25)}},children:g.jsx(De.FastForward,{fontSize:"small"})}),g.jsx(E.Box,{className:Me.seekButton,component:"button",onClick:()=>Z(15),"aria-label":"Avançar 15 segundos",sx:{backgroundColor:X.alpha(b.palette.common.white,.15),color:b.palette.common.white,border:"none",cursor:"pointer","&:hover":{backgroundColor:X.alpha(b.palette.common.white,.25)}},children:"15s"})]}),g.jsxs(E.Box,{className:Me.controlGroup,children:[g.jsx(E.Box,{sx:{"& .MuiButtonBase-root":{backgroundColor:X.alpha(b.palette.common.white,.15),color:b.palette.common.white,"&:hover":{backgroundColor:X.alpha(b.palette.common.white,.25)}}},children:g.jsx(wo,{label:"",valueLabel:sn,selectedValue:Q,options:Ge,ariaLabel:"Selecionar velocidade de reprodução",onChange:j,disabled:!Y})}),ct.length>0?g.jsx(E.Box,{sx:{"& .MuiButtonBase-root":{backgroundColor:X.alpha(b.palette.common.white,.15),color:b.palette.common.white,"&:hover":{backgroundColor:X.alpha(b.palette.common.white,.25)}}},children:g.jsx(wo,{label:"",valueLabel:Gr,selectedValue:(N==null?void 0:N.value)??"auto",options:ct,ariaLabel:"Selecionar qualidade do vídeo",onChange:J})}):null,g.jsx(E.Box,{sx:{"& .MuiButtonBase-root":{backgroundColor:X.alpha(b.palette.common.white,.15),color:b.palette.common.white,"&:hover":{backgroundColor:X.alpha(b.palette.common.white,.25)}}},children:g.jsx(wo,{label:"",valueLabel:on,selectedValue:A,options:Ee,ariaLabel:"Selecionar zoom do vídeo",onChange:$})}),g.jsx(E.IconButton,{className:Me.iconButton,onClick:q,"aria-label":"Fullscreen",sx:{backgroundColor:X.alpha(b.palette.common.white,.15),color:b.palette.common.white,"&:hover":{backgroundColor:X.alpha(b.palette.common.white,.25)}},children:L?g.jsx(De.FullscreenExit,{fontSize:"small"}):g.jsx(De.Fullscreen,{fontSize:"small"})})]})]})]})]})};td.displayName="VideoPlayer";const qx=Qe(g.jsx("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"}),"UndoOutlined"),Xx=Qe(g.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),Jx=Qe(g.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),Qx="_root_1gj5n_1",e2="_container_1gj5n_6",t2="_header_1gj5n_13",n2="_headerText_1gj5n_21",r2="_controls_1gj5n_27",o2="_iconButton_1gj5n_34",s2="_zoomGroup_1gj5n_43",i2="_zoomTrack_1gj5n_52",a2="_zoomTrackFill_1gj5n_59",l2="_layers_1gj5n_67",c2="_timeScale_1gj5n_78",u2="_videoTrack_1gj5n_82",d2="_eventsTrack_1gj5n_86",f2="_trackBox_1gj5n_90",h2="_trackLabelRow_1gj5n_95",m2="_label_1gj5n_103",p2="_trackArea_1gj5n_112",g2="_tick_1gj5n_118",y2="_tickMajor_1gj5n_126",v2="_tickMinor_1gj5n_131",b2="_tickLabel_1gj5n_135",x2="_segment_1gj5n_146",S2="_event_1gj5n_86",C2="_eventDot_1gj5n_166",T2="_selectionOverlay_1gj5n_172",w2="_playhead_1gj5n_180",_2="_playheadLine_1gj5n_190",E2="_playheadHandle_1gj5n_199",ee={root:Qx,container:e2,header:t2,headerText:n2,controls:r2,iconButton:o2,zoomGroup:s2,zoomTrack:i2,zoomTrackFill:a2,layers:l2,timeScale:c2,videoTrack:u2,eventsTrack:d2,trackBox:f2,trackLabelRow:h2,label:m2,trackArea:p2,tick:g2,tickMajor:y2,tickMinor:v2,tickLabel:b2,segment:x2,event:S2,eventDot:C2,selectionOverlay:T2,playhead:w2,playheadLine:_2,playheadHandle:E2},st={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function nd(e){return"init"in e}function ds(e){return!!e.write}function pl(e){return"v"in e||"e"in e}function Cr(e){if("e"in e)throw e.e;if((st?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}const Tr=new WeakMap;function rd(e){var t;return wr(e)&&!!((t=Tr.get(e))!=null&&t[0])}function A2(e){const t=Tr.get(e);t!=null&&t[0]&&(t[0]=!1,t[1].forEach(n=>n()))}function fs(e,t){let n=Tr.get(e);if(!n){n=[!0,new Set],Tr.set(e,n);const r=()=>{n[0]=!1};e.then(r,r)}n[1].add(t)}function wr(e){return typeof(e==null?void 0:e.then)=="function"}function od(e,t,n){if(!n.p.has(e)){n.p.add(e);const r=()=>n.p.delete(e);t.then(r,r)}}function sd(e,t,n){var r;const o=new Set;for(const s of((r=n.get(e))==null?void 0:r.t)||[])o.add(s);for(const s of t.p)o.add(s);return o}const M2=(e,t,...n)=>t.read(...n),P2=(e,t,...n)=>t.write(...n),k2=(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)},I2=(e,t,n)=>{var r;return(r=t.onMount)==null?void 0:r.call(t,n)},R2=(e,t)=>{var n;const r=Ie(e),o=r[0],s=r[6],i=r[9];if((st?"production":void 0)!=="production"&&!t)throw new Error("Atom is undefined or null");let a=o.get(t);return a||(a={d:new Map,p:new Set,n:0},o.set(t,a),(n=s.i)==null||n.call(s,t),i==null||i(e,t)),a},O2=e=>{const t=Ie(e),n=t[1],r=t[3],o=t[4],s=t[5],i=t[6],a=t[13],l=[],u=c=>{try{c()}catch(d){l.push(d)}};do{i.f&&u(i.f);const c=new Set,d=c.add.bind(c);r.forEach(f=>{var h;return(h=n.get(f))==null?void 0:h.l.forEach(d)}),r.clear(),s.forEach(d),s.clear(),o.forEach(d),o.clear(),c.forEach(u),r.size&&a(e)}while(r.size||s.size||o.size);if(l.length)throw new AggregateError(l)},L2=e=>{const t=Ie(e),n=t[1],r=t[2],o=t[3],s=t[11],i=t[14],a=t[17],l=[],u=new WeakSet,c=new WeakSet,d=Array.from(o);for(;d.length;){const f=d[d.length-1],h=s(e,f);if(c.has(f)){d.pop();continue}if(u.has(f)){if(r.get(f)===h.n)l.push([f,h]);else if((st?"production":void 0)!=="production"&&r.has(f))throw new Error("[Bug] invalidated atom exists");c.add(f),d.pop();continue}u.add(f);for(const p of sd(f,h,n))u.has(p)||d.push(p)}for(let f=l.length-1;f>=0;--f){const[h,p]=l[f];let m=!1;for(const v of p.d.keys())if(v!==h&&o.has(v)){m=!0;break}m&&(i(e,h),a(e,h)),r.delete(h)}},hs=new WeakSet,j2=(e,t)=>{var n,r;const o=Ie(e),s=o[1],i=o[2],a=o[3],l=o[6],u=o[7],c=o[11],d=o[12],f=o[13],h=o[14],p=o[16],m=o[17],v=o[20],S=c(e,t);if(pl(S)){if(s.has(t)&&i.get(t)!==S.n)return S;let k=!1;for(const[V,N]of S.d)if(h(e,V).n!==N){k=!0;break}if(!k)return S}S.d.clear();let _=!0;function b(){s.has(t)&&(m(e,t),f(e),d(e))}function C(k){var V;if(k===t){const y=c(e,k);if(!pl(y))if(nd(k))v(e,k,k.init);else throw new Error("no atom init");return Cr(y)}const N=h(e,k);try{return Cr(N)}finally{S.d.set(k,N.n),rd(S.v)&&od(t,S.v,N),s.has(t)&&((V=s.get(k))==null||V.t.add(t)),_||b()}}let T,w;const P={get signal(){return T||(T=new AbortController),T.signal},get setSelf(){return(st?"production":void 0)!=="production"&&!ds(t)&&console.warn("setSelf function cannot be used with read-only atom"),!w&&ds(t)&&(w=(...k)=>{if((st?"production":void 0)!=="production"&&_&&console.warn("setSelf function cannot be called in sync"),!_)try{return p(e,t,...k)}finally{f(e),d(e)}}),w}},M=S.n;try{(st?"production":void 0)!=="production"&&hs.delete(e);const k=u(e,t,C,P);return(st?"production":void 0)!=="production"&&hs.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),v(e,t,k),wr(k)&&(fs(k,()=>T==null?void 0:T.abort()),k.then(b,b)),(n=l.r)==null||n.call(l,t),S}catch(k){return delete S.v,S.e=k,++S.n,S}finally{_=!1,M!==S.n&&i.get(t)===M&&(i.set(t,S.n),a.add(t),(r=l.c)==null||r.call(l,t))}},D2=(e,t)=>{const n=Ie(e),r=n[1],o=n[2],s=n[11],i=[t];for(;i.length;){const a=i.pop(),l=s(e,a);for(const u of sd(a,l,r)){const c=s(e,u);o.set(u,c.n),i.push(u)}}},B2=(e,t,...n)=>{const r=Ie(e),o=r[3],s=r[6],i=r[8],a=r[11],l=r[12],u=r[13],c=r[14],d=r[15],f=r[16],h=r[17],p=r[20];let m=!0;const v=_=>Cr(c(e,_)),S=(_,...b)=>{var C;const T=a(e,_);try{if(_===t){if(!nd(_))throw new Error("atom not writable");(st?"production":void 0)!=="production"&&hs.add(e);const w=T.n,P=b[0];p(e,_,P),h(e,_),w!==T.n&&(o.add(_),d(e,_),(C=s.c)==null||C.call(s,_));return}else return f(e,_,...b)}finally{m||(u(e),l(e))}};try{return i(e,t,v,S,...n)}finally{m=!1}},N2=(e,t)=>{var n;const r=Ie(e),o=r[1],s=r[3],i=r[6],a=r[11],l=r[15],u=r[18],c=r[19],d=a(e,t),f=o.get(t);if(f&&!rd(d.v)){for(const[h,p]of d.d)if(!f.d.has(h)){const m=a(e,h);u(e,h).t.add(t),f.d.add(h),p!==m.n&&(s.add(h),l(e,h),(n=i.c)==null||n.call(i,h))}for(const h of f.d)if(!d.d.has(h)){f.d.delete(h);const p=c(e,h);p==null||p.t.delete(t)}}},$2=(e,t)=>{var n;const r=Ie(e),o=r[1],s=r[4],i=r[6],a=r[10],l=r[11],u=r[12],c=r[13],d=r[14],f=r[16],h=r[18],p=l(e,t);let m=o.get(t);if(!m){d(e,t);for(const v of p.d.keys())h(e,v).t.add(t);if(m={l:new Set,d:new Set(p.d.keys()),t:new Set},o.set(t,m),ds(t)){const v=()=>{let S=!0;const _=(...b)=>{try{return f(e,t,...b)}finally{S||(c(e),u(e))}};try{const b=a(e,t,_);b&&(m.u=()=>{S=!0;try{b()}finally{S=!1}})}finally{S=!1}};s.add(v)}(n=i.m)==null||n.call(i,t)}return m},V2=(e,t)=>{var n,r;const o=Ie(e),s=o[1],i=o[5],a=o[6],l=o[11],u=o[19],c=l(e,t);let d=s.get(t);if(!d||d.l.size)return d;let f=!1;for(const h of d.t)if((n=s.get(h))!=null&&n.d.has(t)){f=!0;break}if(!f){d.u&&i.add(d.u),d=void 0,s.delete(t);for(const h of c.d.keys()){const p=u(e,h);p==null||p.t.delete(t)}(r=a.u)==null||r.call(a,t);return}return d},F2=(e,t,n)=>{const r=Ie(e)[11],o=r(e,t),s="v"in o,i=o.v;if(wr(n))for(const a of o.d.keys())od(t,n,r(e,a));o.v=n,delete o.e,(!s||!Object.is(i,o.v))&&(++o.n,wr(i)&&A2(i))},z2=(e,t)=>{const n=Ie(e)[14];return Cr(n(e,t))},W2=(e,t,...n)=>{const r=Ie(e),o=r[12],s=r[13],i=r[16];try{return i(e,t,...n)}finally{s(e),o(e)}},U2=(e,t,n)=>{const r=Ie(e),o=r[12],s=r[18],i=r[19],l=s(e,t).l;return l.add(n),o(e),()=>{l.delete(n),i(e,t),o(e)}},id=new WeakMap,Ie=e=>{const t=id.get(e);if((st?"production":void 0)!=="production"&&!t)throw new Error("Store must be created by buildStore to read its building blocks");return t};function H2(...e){const t={get(r){const o=Ie(t)[21];return o(t,r)},set(r,...o){const s=Ie(t)[22];return s(t,r,...o)},sub(r,o){const s=Ie(t)[23];return s(t,r,o)}},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},M2,P2,k2,I2,R2,O2,L2,j2,D2,B2,N2,$2,V2,F2,z2,W2,U2,void 0].map((r,o)=>e[o]||r);return id.set(t,Object.freeze(n)),t}const ad={};let G2=0;function rn(e,t){const n=`atom${++G2}`,r={toString(){return(ad?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof e=="function"?r.read=e:(r.init=e,r.read=K2,r.write=Y2),r}function K2(e){return e(this)}function Y2(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}function Z2(){return H2()}let pn;function q2(){return pn||(pn=Z2(),(ad?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=pn),globalThis.__JOTAI_DEFAULT_STORE__!==pn&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),pn}const X2={},J2=x.createContext(void 0);function ld(e){return x.useContext(J2)||q2()}const ms=e=>typeof(e==null?void 0:e.then)=="function",ps=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},Q2=x.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(ps(e),e)}),_o=new WeakMap,gl=(e,t)=>{let n=_o.get(e);return n||(n=new Promise((r,o)=>{let s=e;const i=u=>c=>{s===u&&r(c)},a=u=>c=>{s===u&&o(c)},l=()=>{try{const u=t();ms(u)?(_o.set(u,n),s=u,u.then(i(u),a(u)),fs(u,l)):r(u)}catch(u){o(u)}};e.then(i(e),a(e)),fs(e,l)}),_o.set(e,n)),n};function _r(e,t){const{delay:n,unstable_promiseStatus:r=!x.use}={},o=ld(),[[s,i,a],l]=x.useReducer(c=>{const d=o.get(e);return Object.is(c[0],d)&&c[1]===o&&c[2]===e?c:[d,o,e]},void 0,()=>[o.get(e),o,e]);let u=s;if((i!==o||a!==e)&&(l(),u=o.get(e)),x.useEffect(()=>{const c=o.sub(e,()=>{if(r)try{const d=o.get(e);ms(d)&&ps(gl(d,()=>o.get(e)))}catch{}if(typeof n=="number"){setTimeout(l,n);return}l()});return l(),c},[o,e,n,r]),x.useDebugValue(u),ms(u)){const c=gl(u,()=>o.get(e));return r&&ps(c),Q2(c)}return u}function eS(e,t){const n=ld();return x.useCallback((...o)=>{if((X2?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...o)},[n,e])}function Kt(e,t){return[_r(e),eS(e)]}const li=rn(0),ci=rn(!0),ui=rn(null),cd=rn({windowSeconds:24*60*60,fps:30}),ud=rn([]),dd=rn([]);function be(e,t,n){return Math.min(n,Math.max(t,e))}function pt(e){const{time:t,windowStart:n,windowSeconds:r,width:o}=e;return o<=0||r<=0?0:(t-n)/r*o}function gn(e){const{px:t,windowStart:n,windowSeconds:r,width:o}=e;return o<=0||r<=0?n:n+t/o*r}function we(e){return String(Math.floor(e)).padStart(2,"0")}function tS(e=Date.now()){const t=new Date(e);return t.getHours()*3600+t.getMinutes()*60+t.getSeconds()+t.getMilliseconds()/1e3}function Eo(e){const t=Math.max(0,e),n=Math.floor(t/3600)%24,r=Math.floor(t%3600/60),o=Math.floor(t%60);return`${we(n)}:${we(r)}:${we(o)}`}function nS(e,t){const n=Math.max(0,e),r=Math.floor(n/3600)%24,o=Math.floor(n%3600/60),s=Math.floor(n%60),i=n-Math.floor(n),a=Math.floor(i*t);return`${we(r)}:${we(o)}:${we(s)}:${we(a)}`}function Ao(e){const t=Math.max(0,e),n=Math.floor(t/3600),r=Math.floor(t%3600/60),o=Math.floor(t%60);return n>0?`${we(n)}:${we(r)}:${we(o)}`:`${we(r)}:${we(o)}`}function rS(e,t){const n=Math.max(0,e),r=Math.floor(n/3600),o=Math.floor(n%3600/60),s=Math.floor(n%60),i=n-Math.floor(n),a=Math.floor(i*t);return r>0?`${we(r)}:${we(o)}:${we(s)}:${we(a)}`:`${we(o)}:${we(s)}:${we(a)}`}function oS(e){const{width:t,windowSeconds:n,fps:r}=e,o=t>0?t/n:0,s=1/Math.max(1,r),i=[s,2*s,5*s,.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],a=90,l=45;let u=i[i.length-1];for(const f of i)if(f*o>=a){u=f;break}const c=[u/2,u/5,u/10].filter(f=>f>0);let d=c[0]??u;for(const f of c)if(f*o>=l){d=f;break}return{majorStep:u,minorStep:d}}const sS=(e,t,n)=>t>=3600?Eo(e).slice(0,2)+":00:00":t>=60?Eo(e).slice(0,5):t>=1?Eo(e):nS(e,n),iS=(e,t,n)=>t>=3600||t>=60||t>=1?Ao(e):rS(e,n);function aS(){const e=x.useRef(null),[t,n]=x.useState(0);return x.useLayoutEffect(()=>{const r=e.current;if(!r)return;const o=new ResizeObserver(()=>{n(r.getBoundingClientRect().width)});return o.observe(r),n(r.getBoundingClientRect().width),()=>o.disconnect()},[]),{ref:e,width:t}}function lS(e){const{totalSeconds:t,enableWheelZoom:n,autoZoomOnSelection:r,tickLabelFormatter:o,clearSelectionOnEventClick:s}=e,[i,a]=Kt(li),[l,u]=Kt(ci),[c,d]=Kt(ui),f=_r(ud),h=_r(dd),[p,m]=Kt(cd),{ref:v,width:S}=aS(),_=102,C=Math.max(0,S-_-10),[T,w]=x.useState(0),P=x.useMemo(()=>{const L=Math.max(1/Math.max(1,p.fps),.05);return be(p.windowSeconds,L,t)},[p.windowSeconds,p.fps,t]);x.useEffect(()=>{if(!l||S<=0)return;const L=be(i-P*.9,0,Math.max(0,t-P));w(L)},[i,l,S,P,t]);const M=x.useMemo(()=>{const L=be(T,0,Math.max(0,t-P)),B=L+P;return{start:L,end:B,seconds:P}},[T,t,P]),k=x.useMemo(()=>{if(C<=0)return[];const{majorStep:L,minorStep:B}=oS({width:C,windowSeconds:M.seconds,fps:p.fps}),Y=Math.floor(M.start/B)*B,H=M.end,W=[],Z=B*1e-6;for(let q=Y;q<=H+Z;q+=B){const J=pt({time:q,windowStart:M.start,windowSeconds:M.seconds,width:C});if(J<-1||J>C+1)continue;const me=Math.abs(q/L-Math.round(q/L))<1e-6;W.push({time:q,px:J,kind:me?"major":"minor",label:me?o(q,L,p.fps):void 0})}return W},[C,o,M.end,M.seconds,M.start,p.fps]),V=x.useRef(null),N=x.useRef(null),y=L=>{N.current=L,V.current==null&&(V.current=requestAnimationFrame(()=>{V.current=null;const B=N.current;N.current=null,B==null||B()}))};x.useEffect(()=>()=>{V.current!=null&&cancelAnimationFrame(V.current)},[]);const R=x.useRef(null),O=L=>{const B=v.current;if(!B)return 0;const Y=B.getBoundingClientRect();return be(L-Y.left-_,0,C)};return{viewportRef:v,width:S,axisLeft:_,axisWidth:C,totalSeconds:t,zoom:p,setZoom:m,isLive:l,setIsLive:u,currentTime:i,selectedRange:c,setSelectedRange:d,videoSegments:f,events:h,view:M,ticks:k,onWheel:L=>{if(!n||S<=0)return;L.preventDefault(),u(!1);const B=O(L.clientX),Y=be(gn({px:B,windowStart:M.start,windowSeconds:M.seconds,width:C}),0,t),W=L.deltaY<0?.8:1.25,Z=be(M.seconds*W,Math.max(1/Math.max(1,p.fps),.05),t),q=be(Y-B/Math.max(1,C)*Z,0,Math.max(0,t-Z));m(J=>({...J,windowSeconds:Z})),w(q)},onPointerDownScrub:L=>{if(L.button!==0)return;const B=v.current;if(!B)return;B.setPointerCapture(L.pointerId);const Y=O(L.clientX),H=be(gn({px:Y,windowStart:M.start,windowSeconds:M.seconds,width:C}),0,t);u(!1),R.current={mode:"playhead",pointerId:L.pointerId,startPx:Y,startTime:H},a(H)},onPointerDownSelect:L=>{if(L.button!==0)return;const B=v.current;if(!B)return;B.setPointerCapture(L.pointerId);const Y=O(L.clientX),H=be(gn({px:Y,windowStart:M.start,windowSeconds:M.seconds,width:C}),0,t);u(!1),R.current={mode:"select",pointerId:L.pointerId,startPx:Y,startTime:H},d({start:H,end:H})},onPointerDownPlayhead:L=>{if(L.button!==0)return;const B=v.current;if(!B)return;B.setPointerCapture(L.pointerId);const Y=O(L.clientX),H=be(gn({px:Y,windowStart:M.start,windowSeconds:M.seconds,width:C}),0,t);u(!1),R.current={mode:"playhead",pointerId:L.pointerId,startPx:Y,startTime:H},a(H)},onPointerMove:L=>{const B=R.current;if(!B||B.pointerId!==L.pointerId)return;const Y=O(L.clientX);y(()=>{const H=be(gn({px:Y,windowStart:M.start,windowSeconds:M.seconds,width:C}),0,t);if(B.mode==="playhead")a(H);else{const W=Math.min(B.startTime,H),Z=Math.max(B.startTime,H);d({start:W,end:Z})}})},onPointerUp:L=>{const B=R.current;if(!(!B||B.pointerId!==L.pointerId)&&(R.current=null,B.mode==="select"&&c)){const Y=Math.abs(c.end-c.start);if(Y<Math.max(1/Math.max(1,p.fps),.1))d(null);else if(r){const H=be(Y*1.05,Math.max(1/Math.max(1,p.fps),.05),t),W=be(c.start,0,Math.max(0,t-H));m(Z=>({...Z,windowSeconds:H})),w(W)}}},onClickEvent:L=>{s&&d(null),u(!1),a(be(L,0,t)),w(be(L-M.seconds/2,0,Math.max(0,t-M.seconds)))},resetView:()=>{u(!1),m(L=>({...L,windowSeconds:t})),w(0)}}}const fd=({ticks:e,tickColor:t,labelColor:n})=>g.jsx("div",{className:ee.trackArea,children:e.map(r=>g.jsxs("div",{children:[g.jsx("div",{className:`${ee.tick} ${r.kind==="minor"?ee.tickMinor:ee.tickMajor}`.trim(),style:{left:`${r.px}px`,backgroundColor:t}}),r.kind==="major"&&r.label?g.jsx("div",{className:ee.tickLabel,style:{left:`${r.px}px`,color:n},children:r.label}):null]},`${r.time}-${r.kind}`))});fd.displayName="TimeScale";const hd=({segments:e,viewStart:t,viewSeconds:n,width:r,totalSeconds:o,segmentColor:s,segmentColorHover:i})=>{const a=e.map(l=>({start:be(l.start,0,o),end:be(l.end,0,o)})).filter(l=>l.end>l.start).map(l=>{const u=Math.max(l.start,t),c=Math.min(l.end,t+n);return{start:u,end:c}}).filter(l=>l.end>l.start);return g.jsx("div",{className:ee.trackArea,children:a.map((l,u)=>{const c=pt({time:l.start,windowStart:t,windowSeconds:n,width:r}),d=pt({time:l.end,windowStart:t,windowSeconds:n,width:r}),f=Math.max(0,d-c);return g.jsx("div",{className:ee.segment,style:{left:`${c}px`,width:`${f}px`,background:s},onMouseEnter:h=>{h.currentTarget.style.background=i},onMouseLeave:h=>{h.currentTarget.style.background=s},"aria-hidden":!0},`${l.start}-${l.end}-${u}`)})})};hd.displayName="VideoTrack";const md=({events:e,viewStart:t,viewSeconds:n,width:r,totalSeconds:o,onClickEvent:s,eventBg:i,eventBgHover:a,eventDot:l})=>{const u=e.map(c=>({...c,time:be(c.time,0,o)})).filter(c=>c.time>=t&&c.time<=t+n);return g.jsx("div",{className:ee.trackArea,children:u.map(c=>{const d=pt({time:c.time,windowStart:t,windowSeconds:n,width:r});return g.jsx("button",{type:"button",className:ee.event,onPointerDown:f=>{f.stopPropagation()},onClick:()=>s(c.time),style:{left:`${d}px`,backgroundColor:i,border:"none",padding:0},onMouseEnter:f=>{f.currentTarget.style.backgroundColor=a},onMouseLeave:f=>{f.currentTarget.style.backgroundColor=i},"aria-label":`Evento em ${c.time.toFixed(2)}s`,children:c.icon?c.icon:g.jsx("span",{className:ee.eventDot,style:{backgroundColor:l}})},c.id)})})};md.displayName="EventsTrack";const pd=({className:e,title:t="Timeline",subtitle:n="Arraste para selecionar e aplicar zoom no período desejado",showHeader:r=!0,timeScaleMode:o="day24h",tickLabelFormatter:s,totalSeconds:i=24*60*60,enableWheelZoom:a=!0,height:l=190,autoZoomOnSelection:u=!0,showZoomControls:c=!0,enableScrubOnTracks:d=!1,clearSelectionOnEventClick:f=!0})=>{const h=X.useTheme(),p=s??(o==="duration"?iS:sS),{viewportRef:m,axisLeft:v,axisWidth:S,zoom:_,currentTime:b,selectedRange:C,videoSegments:T,events:w,view:P,ticks:M,onWheel:k,onPointerDownScrub:V,onPointerDownSelect:N,onPointerDownPlayhead:y,onPointerMove:R,onPointerUp:O,onClickEvent:F,resetView:U,setZoom:G}=lS({totalSeconds:i,enableWheelZoom:a,autoZoomOnSelection:u,tickLabelFormatter:p,clearSelectionOnEventClick:f}),D=S?v+pt({time:b,windowStart:P.start,windowSeconds:P.seconds,width:S}):v,Q=h.palette.common.white,j=X.alpha(h.palette.common.black,.16),A="0px 4px 5.3px 0px rgba(0,0,0,0.16)",$=h.palette.mode==="dark"?X.alpha(h.palette.common.white,.7):"#79747e",L=X.alpha(h.palette.common.black,.16),B="#2c2c2c",Y=X.alpha(h.palette.primary.main,.15),H=X.alpha(h.palette.primary.main,.22),W=X.alpha(h.palette.common.white,1),Z=X.alpha(h.palette.common.white,1),q=X.alpha(h.palette.common.black,.55),J=X.alpha(h.palette.primary.main,.12),me=h.palette.primary.main,z=Math.max(1/Math.max(1,_.fps),.5),Ee=z/i,Ge=(()=>{const on=be(P.seconds,z,i);if(Ee<=0||Ee>=1)return 0;const sn=Math.log(on/i)/Math.log(Ee)*100;return be(sn,0,100)})(),ct=on=>{const sn=be(on,0,100),an=i*Math.pow(Ee,sn/100);G(Kr=>({...Kr,windowSeconds:be(an,z,i)}))},Gr=`${Math.round(Ge)}%`;return g.jsxs(E.Box,{className:`${ee.root} ${ee.container} ${e??""}`.trim(),sx:{backgroundColor:Q,border:`1px solid ${j}`,boxShadow:A,px:1,py:2},children:[r?g.jsxs("div",{className:ee.header,children:[g.jsxs("div",{className:ee.headerText,children:[g.jsx(E.Typography,{variant:"subtitle1",sx:{color:$,fontWeight:500},children:t}),g.jsx(E.Typography,{variant:"body2",sx:{color:$},children:n})]}),c?g.jsxs("div",{className:ee.controls,children:[g.jsx(E.Box,{className:ee.iconButton,sx:{border:`1px solid ${X.alpha(h.palette.common.black,.22)}`},children:g.jsx(E.IconButton,{size:"small",onClick:U,"aria-label":"Reset zoom",sx:{width:32,height:32},children:g.jsx(qx,{fontSize:"small"})})}),g.jsxs(E.Box,{className:ee.zoomGroup,sx:{backgroundColor:h.palette.common.white,border:`1px solid ${X.alpha(h.palette.common.black,.22)}`},"aria-label":"Zoom controls",children:[g.jsx(E.IconButton,{size:"small","aria-label":"Zoom out",onClick:()=>ct(Ge-10),children:g.jsx(Jx,{fontSize:"small"})}),g.jsxs("div",{className:ee.zoomTrack,"aria-hidden":!0,children:[g.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:X.alpha("#f5f5f5",.3),borderRadius:1,boxShadow:"1px 1px 1px rgba(10,10,10,0.04)"}}),g.jsx("div",{className:ee.zoomTrackFill,style:{width:Gr,backgroundColor:"#f5f5f5",boxShadow:"1px 1px 1px rgba(10,10,10,0.04)"}})]}),g.jsx(E.IconButton,{size:"small","aria-label":"Zoom in",onClick:()=>ct(Ge+10),children:g.jsx(Xx,{fontSize:"small"})})]})]}):null]}):null,g.jsx(E.Box,{sx:{mt:r?2:0,height:l},children:g.jsxs("div",{ref:m,className:ee.layers,onWheel:k,onPointerMove:R,onPointerUp:O,children:[g.jsxs("div",{className:ee.playhead,style:{left:`${D}px`},onPointerDown:y,role:"slider","aria-label":"Playhead","aria-valuemin":0,"aria-valuemax":i,"aria-valuenow":b,tabIndex:0,children:[g.jsx("div",{className:ee.playheadHandle,style:{borderBottomColor:me}}),g.jsx("div",{className:ee.playheadLine,style:{backgroundColor:me}})]}),g.jsxs("div",{className:`${ee.trackLabelRow} ${ee.timeScale}`.trim(),children:[g.jsx("div",{}),g.jsx("div",{onPointerDown:V,style:{height:"100%",cursor:"ew-resize"},"aria-label":"Régua do tempo",children:g.jsx(fd,{ticks:M,tickColor:L,labelColor:B})})]}),g.jsxs(E.Box,{className:ee.trackBox,sx:{mt:1,border:`1px solid ${X.alpha(h.palette.common.black,.1)}`,borderRadius:"12px",height:106,position:"relative"},children:[C?g.jsx("div",{className:ee.selectionOverlay,style:{left:`${v+pt({time:C.start,windowStart:P.start,windowSeconds:P.seconds,width:S})}px`,width:`${Math.max(0,pt({time:C.end,windowStart:P.start,windowSeconds:P.seconds,width:S})-pt({time:C.start,windowStart:P.start,windowSeconds:P.seconds,width:S}))}px`,backgroundColor:J}}):null,g.jsxs("div",{className:`${ee.trackLabelRow} ${ee.videoTrack}`.trim(),children:[g.jsx("div",{className:ee.label,style:{color:$},children:"Video"}),g.jsx("div",{onPointerDown:d?V:void 0,style:{height:"100%"},children:g.jsx(hd,{segments:T,viewStart:P.start,viewSeconds:P.seconds,width:S,totalSeconds:i,segmentColor:Y,segmentColorHover:H})})]}),g.jsxs("div",{className:`${ee.trackLabelRow} ${ee.eventsTrack}`.trim(),children:[g.jsx("div",{className:ee.label,style:{color:$},children:"Eventos"}),g.jsx("div",{onPointerDown:d?V:void 0,style:{height:"100%"},children:g.jsx(md,{events:w,viewStart:P.start,viewSeconds:P.seconds,width:S,totalSeconds:i,onClickEvent:F,eventBg:W,eventBgHover:Z,eventDot:q})})]}),g.jsx("div",{onPointerDown:N,style:{position:"absolute",left:v,right:10,top:0,bottom:0,cursor:"crosshair"},"aria-label":"Arraste para selecionar"})]})]})})]})};pd.displayName="VideoTimeline";const gd=({stream:e=null,src:t,autoPlay:n=!0,muted:r=!0,playsInline:o=!0,className:s,liveEdgeThresholdSeconds:i=2,updateTimeForLiveStream:a=!0,constrainToSelectedRange:l=!0,loopSelection:u=!1})=>{const c=x.useRef(null),[d,f]=Kt(li),[h,p]=Kt(ci),m=_r(ui),v=!!e;x.useEffect(()=>{const b=c.current;if(b){if(e){b.srcObject=e;return}b.srcObject=null,t&&(b.src=t)}},[e,t]),x.useEffect(()=>{const b=c.current;if(!b||v)return;const C=()=>{if(l&&m){const P=Math.max(0,m.start),M=Math.max(P,m.end);b.currentTime<P?b.currentTime=P:b.currentTime>M&&(u?b.currentTime=P:(b.pause(),b.currentTime=M))}if(f(b.currentTime),Number.isFinite(b.duration)&&b.duration>0){const P=b.duration-b.currentTime<=i;p(P)}},T=()=>{if(!l||!m)return;const P=Math.max(0,m.start),M=Math.max(P,m.end);(b.currentTime<P||b.currentTime>M)&&(b.currentTime=P)},w=()=>{h&&Number.isFinite(b.duration)&&b.duration>0&&(b.currentTime=b.duration)};return b.addEventListener("timeupdate",C),b.addEventListener("play",T),b.addEventListener("loadedmetadata",w),()=>{b.removeEventListener("timeupdate",C),b.removeEventListener("play",T),b.removeEventListener("loadedmetadata",w)}},[l,v,h,i,u,m,f,p]);const S=x.useRef(-1);x.useEffect(()=>{const b=c.current;if(!b||v||!t)return;if(h){if(Number.isFinite(b.duration)&&b.duration>0){const T=b.duration;Math.abs(b.currentTime-T)>.25&&(b.currentTime=T,S.current=T)}return}if(Math.abs(S.current-d)<.05)return;let C=d;if(l&&m){const T=Math.max(0,m.start),w=Math.max(T,m.end);C=Math.min(w,Math.max(T,C))}Math.abs(b.currentTime-C)>.25&&(b.currentTime=C,S.current=d)},[l,d,h,v,m,t]),x.useEffect(()=>{const b=c.current;if(!b||v||!t||!l||!m)return;const C=Math.max(0,m.start),T=!b.paused;b.currentTime=C,S.current=C,p(!1),f(C),T&&b.play().catch(()=>{})},[l,v,m,f,p,t]),x.useEffect(()=>{if(!v||(p(!0),!a))return;let b=null,C=!0;const T=()=>{C&&(f(tS()),b=requestAnimationFrame(T))};return b=requestAnimationFrame(T),()=>{C=!1,b!=null&&cancelAnimationFrame(b)}},[v,f,p,a]);const _=x.useMemo(()=>({width:"100%",maxWidth:920,background:"black",aspectRatio:"16 / 9",display:"block"}),[]);return g.jsx("video",{ref:c,className:s,style:_,autoPlay:n,muted:r,playsInline:o,controls:!0})};gd.displayName="VideoPlayerWebRTC";const cS=Qe(g.jsx("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done"),uS="_container_1vjy6_1",dS="_segment_1vjy6_7",fS="_selected_1vjy6_20",hS="_label_1vjy6_28",mS="_icon_1vjy6_37",pS="_checkIcon_1vjy6_47",gS="_unselected_1vjy6_53",Et={container:uS,segment:dS,selected:fS,label:hS,icon:mS,checkIcon:pS,unselected:gS},yd=({items:e,className:t,sx:n,...r})=>{const s=E.useTheme().palette.mode==="dark",i=(a,l)=>{a.onClick?a.onClick(l):console.log(`Item "${a.label}" clicado`)};return g.jsx(E.Box,{className:`${Et.container} ${t||""}`,sx:n,"data-theme":s?"dark":"light",...r,children:e.map((a,l)=>g.jsxs(E.Box,{className:`${Et.segment} ${a.selected?Et.selected:Et.unselected}`,onClick:u=>i(a,u),children:[a.selected&&g.jsx(E.Box,{className:Et.icon,children:g.jsx(cS,{className:Et.checkIcon})}),g.jsx(E.Box,{className:Et.label,children:a.label})]},l))})};yd.displayName="DisplayTypes";const yS=600,Mo=[.32,.72,0,1],Po=400,vd=({leftContent:e,rightContent:t,gap:n=2,leftRatio:r=.5,leftCollapsed:o=!1,mobileShowOnly:s="both",mobileBreakpointPx:i=yS,className:a,sx:l})=>{const u=E.useTheme(),c=E.useMediaQuery(`(max-width:${i}px)`),d=!c||s==="left"||s==="both",f=!c||s==="right"||s==="both",h=u.spacing(n),p=`flex ${Po}ms cubic-bezier(${Mo.join(",")}), min-width ${Po}ms cubic-bezier(${Mo.join(",")})`;if(c&&s!=="both")return g.jsxs(E.Box,{className:a,sx:{display:"grid",gridTemplateColumns:"1fr",width:"100%",height:"100%",minHeight:0,overflow:"hidden",...l},children:[g.jsx(E.Box,{sx:{minWidth:0,minHeight:0,overflow:"hidden",display:d?"flex":"none",flexDirection:"column"},children:e}),g.jsx(E.Box,{sx:{minWidth:0,minHeight:0,overflow:"hidden",display:f?"flex":"none",flexDirection:"column"},children:t})]});const m=o?0:r,v=o?0:void 0,S=o?"none":"auto";return g.jsxs(E.Box,{className:a,sx:{display:"flex",flexDirection:"row",gap:o?0:h,width:"100%",height:"100%",minHeight:0,overflow:"hidden",transition:`gap ${Po}ms cubic-bezier(${Mo.join(",")})`,...l},children:[g.jsx(E.Box,{sx:{flex:m,minWidth:v,overflow:"hidden",display:"flex",flexDirection:"column",transition:p,pointerEvents:S},children:e}),g.jsx(E.Box,{sx:{flex:1,minWidth:0,minHeight:0,overflow:"hidden",display:"flex",flexDirection:"column"},children:t})]})};vd.displayName="SplitLayout";const vS=256,bd=({children:e,minColumns:t=1,maxColumns:n=3,minItemWidthPx:r=vS,gap:o=2,className:s,sx:i})=>{const l=E.useTheme().spacing(o),u=n-1;return g.jsx(E.Box,{className:s,sx:{"--responsive-grid-gap":l,display:"grid",gap:l,width:"100%",minHeight:0,gridTemplateColumns:`repeat(auto-fill, minmax(min(100%, max(${r}px, calc((100% - ${u} * var(--responsive-grid-gap)) / ${n}))), 1fr))`,alignContent:"start",...i},children:e})};bd.displayName="ResponsiveGrid";const xd=Qe(g.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var bS=e=>e.type==="checkbox",Cn=e=>e instanceof Date,di=e=>e==null;const Sd=e=>typeof e=="object";var Dt=e=>!di(e)&&!Array.isArray(e)&&Sd(e)&&!Cn(e),xS=e=>Dt(e)&&e.target?bS(e.target)?e.target.checked:e.target.value:e,SS=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,CS=(e,t)=>e.has(SS(t)),TS=e=>{const t=e.constructor&&e.constructor.prototype;return Dt(t)&&t.hasOwnProperty("isPrototypeOf")},wS=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Cd(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(wS&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(Dt(e)&&TS(e)))return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=Cd(e[o]));return r}var Td=e=>/^\w*$/.test(e),gs=e=>e===void 0,_S=e=>Array.isArray(e)?e.filter(Boolean):[],wd=e=>_S(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Le=(e,t,n)=>{if(!t||!Dt(e))return n;const r=(Td(t)?[t]:wd(t)).reduce((o,s)=>di(o)?o:o[s],e);return gs(r)||r===e?gs(e[t])?n:e[t]:r},ko=e=>typeof e=="boolean",er=e=>typeof e=="function",yl=(e,t,n)=>{let r=-1;const o=Td(t)?[t]:wd(t),s=o.length,i=s-1;for(;++r<s;){const a=o[r];let l=n;if(r!==i){const u=e[a];l=Dt(u)||Array.isArray(u)?u:isNaN(+o[r+1])?{}:[]}if(a==="__proto__"||a==="constructor"||a==="prototype")return;e[a]=l,e=e[a]}};const vl={BLUR:"blur",CHANGE:"change"},bl={all:"all"},_d=x.createContext(null);_d.displayName="HookFormControlContext";const fi=()=>x.useContext(_d);var ES=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(o,s,{get:()=>{const i=s;return t._proxyFormState[i]!==bl.all&&(t._proxyFormState[i]=!r||bl.all),n&&(n[i]=!0),e[i]}});return o};const Ed=typeof window<"u"?x.useLayoutEffect:x.useEffect;function AS(e){const t=fi(),{control:n=t,disabled:r,name:o,exact:s}=e||{},[i,a]=x.useState(n._formState),l=x.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Ed(()=>n._subscribe({name:o,formState:l.current,exact:s,callback:u=>{!r&&a({...n._formState,...u})}}),[o,r,s]),x.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),x.useMemo(()=>ES(i,n,l.current,!1),[i,n])}var MS=e=>typeof e=="string",xl=(e,t,n,r,o)=>MS(e)?Le(n,e,o):Array.isArray(e)?e.map(s=>Le(n,s)):n,Sl=e=>di(e)||!Sd(e);function cr(e,t,n=new WeakSet){if(Sl(e)||Sl(t))return Object.is(e,t);if(Cn(e)&&Cn(t))return Object.is(e.getTime(),t.getTime());const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const s of r){const i=e[s];if(!o.includes(s))return!1;if(s!=="ref"){const a=t[s];if(Cn(i)&&Cn(a)||Dt(i)&&Dt(a)||Array.isArray(i)&&Array.isArray(a)?!cr(i,a,n):!Object.is(i,a))return!1}}return!0}function PS(e){const t=fi(),{control:n=t,name:r,defaultValue:o,disabled:s,exact:i,compute:a}=e||{},l=x.useRef(o),u=x.useRef(a),c=x.useRef(void 0),d=x.useRef(n),f=x.useRef(r);u.current=a;const[h,p]=x.useState(()=>{const C=n._getWatch(r,l.current);return u.current?u.current(C):C}),m=x.useCallback(C=>{const T=xl(r,n._names,C||n._formValues,!1,l.current);return u.current?u.current(T):T},[n._formValues,n._names,r]),v=x.useCallback(C=>{if(!s){const T=xl(r,n._names,C||n._formValues,!1,l.current);if(u.current){const w=u.current(T);cr(w,c.current)||(p(w),c.current=w)}else p(T)}},[n._formValues,n._names,s,r]);Ed(()=>((d.current!==n||!cr(f.current,r))&&(d.current=n,f.current=r,v()),n._subscribe({name:r,formState:{values:!0},exact:i,callback:C=>{v(C.values)}})),[n,i,r,v]),x.useEffect(()=>n._removeUnmounted());const S=d.current!==n,_=f.current,b=x.useMemo(()=>{if(s)return null;const C=!S&&!cr(_,r);return S||C?m():null},[s,S,r,_,m]);return b!==null?b:h}function kS(e){const t=fi(),{name:n,disabled:r,control:o=t,shouldUnregister:s,defaultValue:i,exact:a=!0}=e,l=CS(o._names.array,n),u=x.useMemo(()=>Le(o._formValues,n,Le(o._defaultValues,n,i)),[o,n,i]),c=PS({control:o,name:n,defaultValue:u,exact:a}),d=AS({control:o,name:n,exact:a}),f=x.useRef(e),h=x.useRef(void 0),p=x.useRef(o.register(n,{...e.rules,value:c,...ko(e.disabled)?{disabled:e.disabled}:{}}));f.current=e;const m=x.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Le(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!Le(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Le(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Le(d.validatingFields,n)},error:{enumerable:!0,get:()=>Le(d.errors,n)}}),[d,n]),v=x.useCallback(C=>p.current.onChange({target:{value:xS(C),name:n},type:vl.CHANGE}),[n]),S=x.useCallback(()=>p.current.onBlur({target:{value:Le(o._formValues,n),name:n},type:vl.BLUR}),[n,o._formValues]),_=x.useCallback(C=>{const T=Le(o._fields,n);T&&T._f&&C&&(T._f.ref={focus:()=>er(C.focus)&&C.focus(),select:()=>er(C.select)&&C.select(),setCustomValidity:w=>er(C.setCustomValidity)&&C.setCustomValidity(w),reportValidity:()=>er(C.reportValidity)&&C.reportValidity()})},[o._fields,n]),b=x.useMemo(()=>({name:n,value:c,...ko(r)||d.disabled?{disabled:d.disabled||r}:{},onChange:v,onBlur:S,ref:_}),[n,r,d.disabled,v,S,_,c]);return x.useEffect(()=>{const C=o._options.shouldUnregister||s,T=h.current;T&&T!==n&&!l&&o.unregister(T),o.register(n,{...f.current.rules,...ko(f.current.disabled)?{disabled:f.current.disabled}:{}});const w=(P,M)=>{const k=Le(o._fields,P);k&&k._f&&(k._f.mount=M)};if(w(n,!0),C){const P=Cd(Le(o._options.defaultValues,n,f.current.defaultValue));yl(o._defaultValues,n,P),gs(Le(o._formValues,n))&&yl(o._formValues,n,P)}return!l&&o.register(n),h.current=n,()=>{(l?C&&!o._state.action:C)?o.unregister(n):w(n,!1)}},[n,o,l,s]),x.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),x.useMemo(()=>({field:b,formState:d,fieldState:m}),[b,d,m])}const hi=e=>e.render(kS(e)),IS=x.createContext(null);IS.displayName="HookFormContext";const RS="_formSelect_s09hu_1",OS="_labelWrapper_s09hu_5",LS="_inputLabel_s09hu_9",jS="_placeholder_s09hu_75",DS="_helperText_s09hu_121",At={formSelect:RS,labelWrapper:OS,inputLabel:LS,placeholder:jS,helperText:DS},Ad=({control:e,name:t,label:n,options:r,placeholder:o,helperText:s,required:i=!1,fullWidth:a=!0,disabled:l=!1,renderValue:u,className:c,...d})=>{const h=E.useTheme().palette.mode==="dark";return g.jsx(hi,{name:t,control:e,render:({field:p,fieldState:m})=>{var b;const v=!!m.error,S=v||!!s,_=v?(b=m.error)==null?void 0:b.message:s;return g.jsxs("div",{className:`${At.formSelect} ${c||""}`,"data-theme":h?"dark":"light",children:[g.jsx("div",{className:At.labelWrapper,children:g.jsxs("span",{className:At.inputLabel,children:[n,i?" *":""]})}),g.jsxs(E.FormControl,{error:v,fullWidth:a,disabled:l,children:[g.jsxs(E.Select,{...p,...d,displayEmpty:!!o,SelectDisplayProps:{"aria-label":n},renderValue:u||(C=>{if(C===""||C===null||C===void 0)return g.jsx("span",{className:At.placeholder,children:o||""});const T=r.find(w=>w.value===C);return(T==null?void 0:T.label)||String(C)}),className:At.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:[o&&g.jsx(E.MenuItem,{value:"",disabled:!0,children:g.jsx("span",{className:At.placeholder,children:o})}),r.map(C=>{const T=p.value===C.value;return g.jsxs(E.MenuItem,{value:C.value,disabled:C.disabled,children:[T&&g.jsx(E.ListItemIcon,{sx:{minWidth:20},children:g.jsx(xd,{sx:{fontSize:20}})}),C.label]},String(C.value))})]}),S&&g.jsx(E.FormHelperText,{className:At.helperText,children:_})]})]})}})};Ad.displayName="FormSelect";const BS="_formMultiSelect_1d6fa_1",NS="_labelWrapper_1d6fa_5",$S="_inputLabel_1d6fa_9",VS="_placeholder_1d6fa_75",FS="_helperText_1d6fa_124",zS="_chipsContainer_1d6fa_153",WS="_chip_1d6fa_153",nt={formMultiSelect:BS,labelWrapper:NS,inputLabel:$S,placeholder:VS,helperText:FS,chipsContainer:zS,chip:WS},Md=({control:e,name:t,label:n,options:r,placeholder:o,helperText:s,required:i=!1,fullWidth:a=!0,disabled:l=!1,chipVariant:u="filled",maxChipsDisplay:c,renderValue:d,className:f,open:h,onOpen:p,onClose:m,...v})=>{const _=E.useTheme().palette.mode==="dark";return g.jsx(hi,{name:t,control:e,render:({field:b,fieldState:C})=>{var N;const T=!!C.error,w=T||!!s,P=T?(N=C.error)==null?void 0:N.message:s,M=Array.isArray(b.value)?b.value:[];M.length>0;const V=d||(y=>{if(!Array.isArray(y)||y.length===0)return g.jsx("span",{className:nt.placeholder,children:o||""});const R=c?y.slice(0,c):y,O=c&&y.length>c?y.length-c:0;return g.jsxs(E.Box,{className:nt.chipsContainer,children:[R.map(F=>{const U=r.find(G=>G.value===F);return g.jsx(E.Chip,{label:(U==null?void 0:U.label)||String(F),size:"small",variant:u,className:nt.chip},String(F))}),O>0&&g.jsx(E.Chip,{label:`+${O}`,size:"small",variant:u,className:nt.chip})]})});return g.jsxs("div",{className:`${nt.formMultiSelect} ${f||""}`,"data-theme":_?"dark":"light",children:[g.jsx("div",{className:nt.labelWrapper,children:g.jsxs("span",{className:nt.inputLabel,children:[n,i?" *":""]})}),g.jsxs(E.FormControl,{error:T,fullWidth:a,disabled:l,children:[g.jsx(E.Select,{...b,...v,variant:"outlined",multiple:!0,value:M,onChange:y=>{b.onChange(y.target.value)},displayEmpty:!!o,renderValue:V,className:nt.select,SelectDisplayProps:{"aria-label":n},open:h,onOpen:p,onClose:m,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)",..._?{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",..._?{color:"#FAF9F9"}:{color:"#101111"},marginBottom:"2px",backgroundColor:"transparent"},"& .MuiMenuItem-root.Mui-focusVisible":{backgroundColor:"transparent",..._?{color:"#FAF9F9"}:{color:"#101111"}},"& .MuiMenuItem-root:hover":{..._?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",..._?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root.Mui-selected":{borderRadius:"12px",..._?{backgroundColor:"#E5FF4B",color:"#101111"}:{backgroundColor:"#286672",color:"#FAF9F9"},gap:"8px"},"& .MuiMenuItem-root.Mui-selected:hover":{..._?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",..._?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root .MuiListItemIcon-root":{minWidth:20},"& .MuiMenuItem-root.Mui-selected .MuiSvgIcon-root":{fill:_?"#101111":"#FAF9F9",width:20,height:20}}},children:r.map(y=>{const R=M.includes(y.value);return g.jsxs(E.MenuItem,{value:y.value,disabled:y.disabled,children:[R&&g.jsx(E.ListItemIcon,{sx:{minWidth:20},children:g.jsx(xd,{sx:{fontSize:20}})}),y.label]},String(y.value))})}),w&&g.jsx(E.FormHelperText,{className:nt.helperText,children:P})]})]})}})};Md.displayName="FormMultiSelect";const Pd=e=>_e.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_e.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"})),kd=e=>_e.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_e.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"})),US=e=>_e.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},_e.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"})),HS="_formInput_84pfi_1",GS="_labelWrapper_84pfi_5",KS="_inputLabel_84pfi_9",YS="_startAdornment_84pfi_163",ZS="_endAdornment_84pfi_170",qS="_iconButton_84pfi_177",XS="_clearButton_84pfi_197",JS="_errorButton_84pfi_216",je={formInput:HS,labelWrapper:GS,inputLabel:KS,startAdornment:YS,endAdornment:ZS,iconButton:qS,clearButton:XS,errorButton:JS},Id=({control:e,name:t,label:n,type:r="text",placeholder:o,helperText:s,required:i=!1,fullWidth:a=!0,disabled:l=!1,className:u,startIcon:c,endIcon:d,onEndIconClick:f,clearable:h=!1,...p})=>{const v=E.useTheme().palette.mode==="dark";return g.jsx(hi,{name:t,control:e,render:({field:S,fieldState:_})=>{var k;const b=!!_.error,C=b?(k=_.error)==null?void 0:k.message:s,T=S.value!==void 0&&S.value!==null&&S.value!=="",w=()=>{S.onChange("")},P=c?g.jsx(E.InputAdornment,{position:"start",className:je.startAdornment,children:g.jsx("span",{className:je.iconButton,children:c})}):void 0;let M;return d?M=g.jsx(E.InputAdornment,{position:"end",className:je.endAdornment,children:g.jsx("span",{onClick:f,className:je.iconButton,role:f?"button":void 0,tabIndex:f?-1:void 0,children:d})}):h&&T&&!l&&(b?M=g.jsx(E.InputAdornment,{position:"end",className:je.endAdornment,children:g.jsx("span",{className:je.errorButton,children:g.jsx(kd,{})})}):M=g.jsx(E.InputAdornment,{position:"end",className:je.endAdornment,children:g.jsx("span",{onClick:w,className:je.clearButton,role:"button","aria-label":"Limpar campo",tabIndex:-1,children:g.jsx(Pd,{})})})),g.jsxs("div",{className:`${je.formInput} ${u||""}`,"data-theme":v?"dark":"light",children:[g.jsx("div",{className:je.labelWrapper,children:g.jsxs("span",{className:je.inputLabel,children:[n,i?" *":""]})}),g.jsx(E.TextField,{...S,...p,type:r,placeholder:o,required:!1,fullWidth:a,disabled:l,error:b,helperText:C,variant:"outlined",className:je.input,InputLabelProps:{shrink:!1},inputProps:{"aria-label":n},InputProps:{className:je.inputRoot,...P&&{startAdornment:P},...M&&{endAdornment:M}}})]})}})};Id.displayName="FormInput";exports.Button=vs;exports.CAMERA_ALGORITHM_FACIAL=Wr;exports.CAMERA_ALGORITHM_LPR=Ur;exports.CameraCard=Xv;exports.CancelIcon=Pd;exports.CountCard=kp;exports.DisplayTypes=yd;exports.ErrorIcon=kd;exports.FilterButton=Pl;exports.FilterChip=kl;exports.FilterModal=ql;exports.FormInput=Id;exports.FormMultiSelect=Md;exports.FormSelect=Ad;exports.GoogleMap=Uu;exports.MapContent=si;exports.MapMarkers=Zu;exports.MapSpot=ri;exports.ModuleMenu=ed;exports.NotFoundContent=Xu;exports.ResponsiveGrid=bd;exports.SearchBar=qu;exports.SearchIcon=US;exports.SidebarMenu=Qu;exports.SplitLayout=vd;exports.VideoPlayer=td;exports.VideoPlayerWebRTC=gd;exports.VideoTimeline=pd;exports.VisioThemeProvider=Ud;exports.ZoomControls=ob;exports.currentTimeAtom=li;exports.darkColors=ge;exports.darkTheme=El;exports.eventsAtom=dd;exports.isLiveAtom=ci;exports.lightColors=pe;exports.lightTheme=_l;exports.radiiTokens=tr;exports.selectedRangeAtom=ui;exports.spacingScale=Fd;exports.spacingTokens=Tl;exports.typographyTokens=Ae;exports.useGoogleMapContext=oi;exports.useVisioTheme=Hd;exports.videoSegmentsAtom=ud;exports.zoomAtom=cd;
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(`
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.'
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(`
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(`
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`
128
+ 0% {
129
+ transform: scale(0);
130
+ opacity: 0.1;
131
+ }
132
+
133
+ 100% {
134
+ transform: scale(1);
135
+ opacity: 0.3;
136
+ }
137
+ `,WI=Wt.keyframes`
138
+ 0% {
139
+ opacity: 1;
140
+ }
141
+
142
+ 100% {
143
+ opacity: 0;
144
+ }
145
+ `,UI=Wt.keyframes`
146
+ 0% {
147
+ transform: scale(1);
148
+ }
149
+
150
+ 50% {
151
+ transform: scale(0.92);
152
+ }
153
+
154
+ 100% {
155
+ transform: scale(1);
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"})`
158
+ opacity: 0;
159
+ position: absolute;
160
+
161
+ &.${Xt.rippleVisible} {
162
+ opacity: 0.3;
163
+ transform: scale(1);
164
+ animation-name: ${zI};
165
+ animation-duration: ${Sc}ms;
166
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
167
+ }
168
+
169
+ &.${Xt.ripplePulsate} {
170
+ animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
171
+ }
172
+
173
+ & .${Xt.child} {
174
+ opacity: 1;
175
+ display: block;
176
+ width: 100%;
177
+ height: 100%;
178
+ border-radius: 50%;
179
+ background-color: currentColor;
180
+ }
181
+
182
+ & .${Xt.childLeaving} {
183
+ opacity: 0;
184
+ animation-name: ${WI};
185
+ animation-duration: ${Sc}ms;
186
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
187
+ }
188
+
189
+ & .${Xt.childPulsate} {
190
+ position: absolute;
191
+ /* @noflip */
192
+ left: 0px;
193
+ top: 0;
194
+ animation-name: ${UI};
195
+ animation-duration: 2500ms;
196
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
197
+ animation-iteration-count: infinite;
198
+ animation-delay: 200ms;
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`
201
+ 0% {
202
+ transform: rotate(0deg);
203
+ }
204
+
205
+ 100% {
206
+ transform: rotate(360deg);
207
+ }
208
+ `,wc=Wt.keyframes`
209
+ 0% {
210
+ stroke-dasharray: 1px, 200px;
211
+ stroke-dashoffset: 0;
212
+ }
213
+
214
+ 50% {
215
+ stroke-dasharray: 100px, 200px;
216
+ stroke-dashoffset: -15px;
217
+ }
218
+
219
+ 100% {
220
+ stroke-dasharray: 1px, 200px;
221
+ stroke-dashoffset: -126px;
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(`
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(`
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;
108
245
  //# sourceMappingURL=index.cjs.js.map