@visio-io/design-system 1.6.0 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +124 -80
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +24080 -15811
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/CameraCard/CameraCard.d.ts +17 -0
- package/dist/types/components/CameraCard/CameraCard.stories.d.ts +11 -0
- package/dist/types/components/CameraCard/index.d.ts +2 -0
- package/dist/types/components/FilterModal/FilterModal.d.ts +1 -1
- package/dist/types/components/FilterModal/types.d.ts +8 -1
- package/dist/types/components/FormInput/FormInput.d.ts +6 -0
- package/dist/types/components/FormInput/FormInput.stories.d.ts +14 -0
- package/dist/types/components/FormInput/index.d.ts +2 -0
- package/dist/types/components/FormInput/types.d.ts +43 -0
- package/dist/types/components/FormMultiSelect/FormMultiSelect.d.ts +6 -0
- package/dist/types/components/FormMultiSelect/FormMultiSelect.stories.d.ts +15 -0
- package/dist/types/components/FormMultiSelect/index.d.ts +2 -0
- package/dist/types/components/FormMultiSelect/types.d.ts +82 -0
- package/dist/types/components/FormSelect/FormSelect.d.ts +6 -0
- package/dist/types/components/FormSelect/FormSelect.stories.d.ts +14 -0
- package/dist/types/components/FormSelect/index.d.ts +2 -0
- package/dist/types/components/FormSelect/types.d.ts +19 -0
- package/dist/types/components/GoogleMap/components/MapMarkers.d.ts +1 -1
- package/dist/types/components/GoogleMap/components/MapResizeHandler.d.ts +4 -0
- package/dist/types/components/GoogleMap/context/GoogleMapContext.d.ts +2 -0
- package/dist/types/components/GoogleMap/hooks/useSupercluster.d.ts +11 -0
- package/dist/types/components/GoogleMap/index.d.ts +2 -1
- package/dist/types/components/GoogleMap/types.d.ts +41 -2
- package/dist/types/components/MapSpot/MapSpot.d.ts +1 -1
- package/dist/types/components/MapSpot/MapSpot.stories.d.ts +5 -2
- package/dist/types/components/MapSpot/index.d.ts +1 -0
- package/dist/types/components/MapSpot/utils.d.ts +4 -0
- package/dist/types/components/ResponsiveGrid/ResponsiveGrid.d.ts +5 -0
- package/dist/types/components/ResponsiveGrid/index.d.ts +2 -0
- package/dist/types/components/ResponsiveGrid/types.d.ts +10 -0
- package/dist/types/components/SplitLayout/SplitLayout.d.ts +5 -0
- package/dist/types/components/SplitLayout/index.d.ts +2 -0
- package/dist/types/components/SplitLayout/types.d.ts +13 -0
- package/dist/types/components/VideoPlayer/VideoPlayer.stories.d.ts +1 -0
- package/dist/types/components/VideoPlayerWebRTC/VideoPlayerWebRTC.d.ts +5 -6
- package/dist/types/components/VideoPlayerWebRTC/VideoPlayerWebRTC.stories.d.ts +1 -0
- package/dist/types/components/VideoPlayerWebRTC/types.d.ts +20 -2
- package/dist/types/components/index.d.ts +14 -2
- package/package.json +21 -14
- package/src/styles/tokens/css-variables.scss +18 -0
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var _v=Object.defineProperty;var jv=(e,t,n)=>t in e?_v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var fe=(e,t,n)=>jv(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ie=require("@mui/material/styles"),L=require("react"),Y=require("@mui/material"),Vt=require("@mui/icons-material"),Lt=require("@mui/system"),$v=require("@emotion/styled"),Lv=require("@emotion/react"),Uo=require("react-dom");function Ih(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 E=Ih(L),Vv=Ih(Uo),it={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"},at={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"},Tt={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}},Ah={xxs:2,xs:4,sm:8,md:12,lg:16,xl:24,xxl:32,xxxl:64},ti={sm:4,md:8,lg:12,xl:16,pill:999},Nh={shape:{borderRadius:ti.md,borderRadiusSm:ti.sm},spacing:8,components:{MuiButton:{styleOverrides:{root:{borderRadius:ti.md,fontWeight:Tt.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:Tt.fontFamily,fontWeightRegular:Tt.fontWeight.regular,fontWeightMedium:Tt.fontWeight.medium,fontWeightBold:Tt.fontWeight.bold,h1:{fontSize:Tt.fontSize.xxl,fontWeight:Tt.fontWeight.bold,lineHeight:Tt.lineHeight.tight},h2:{fontSize:Tt.fontSize.xl,fontWeight:Tt.fontWeight.bold,lineHeight:Tt.lineHeight.tight},body1:{fontSize:Tt.fontSize.md,lineHeight:Tt.lineHeight.normal},body2:{fontSize:Tt.fontSize.sm,lineHeight:Tt.lineHeight.normal},button:{fontWeight:Tt.fontWeight.semibold,textTransform:"none"}}},_h=ie.createTheme({...Nh,palette:{mode:"light",primary:{main:it.primary,contrastText:it.onPrimary},secondary:{main:it.secondary,contrastText:it.onSecondary},error:{main:it.error,contrastText:it.onError},background:{default:it.surface,paper:it.surface},text:{primary:it.onSurface,secondary:it.onSurfaceVariant},divider:it.outline},visio:{surfaceVariant:it.surfaceVariant,onSurfaceVariant:it.onSurfaceVariant,inverseSurface:it.inverseSurface,inverseOnSurface:it.inverseOnSurface,inversePrimary:it.inversePrimary,outline:it.outline,tertiary:{main:it.tertiary,contrastText:it.onTertiary,container:it.tertiaryContainer,onContainer:it.onTertiaryContainer}}}),jh=ie.createTheme({...Nh,palette:{mode:"dark",primary:{main:at.primary,contrastText:at.onPrimary},secondary:{main:at.secondary,contrastText:at.onSecondary},error:{main:at.error,contrastText:at.onError},background:{default:at.surface,paper:at.surface},text:{primary:at.onSurface,secondary:at.onSurfaceVariant},divider:at.outline},visio:{surfaceVariant:at.surfaceVariant,onSurfaceVariant:at.onSurfaceVariant,inverseSurface:at.inverseSurface,inverseOnSurface:at.inverseOnSurface,inversePrimary:at.inversePrimary,outline:at.outline,tertiary:{main:at.tertiary,contrastText:at.onTertiary,container:at.tertiaryContainer,onContainer:at.onTertiaryContainer}}}),Fv=Ah;var fr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xl={exports:{}},xr={};/**
|
|
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
|
|
9
|
+
*/var pd;function Bv(){if(pd)return xr;pd=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 xr.Fragment=t,xr.jsx=n,xr.jsxs=n,xr}var Sr={};/**
|
|
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
|
|
17
|
+
*/var hd;function zv(){return hd||(hd=1,process.env.NODE_ENV!=="production"&&function(){function e(M){if(M==null)return null;if(typeof M=="function")return M.$$typeof===N?null:M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case y:return"Fragment";case C:return"Profiler";case b:return"StrictMode";case P:return"Suspense";case A:return"SuspenseList";case V:return"Activity"}if(typeof M=="object")switch(typeof M.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),M.$$typeof){case g:return"Portal";case S:return M.displayName||"Context";case w:return(M._context.displayName||"Context")+".Consumer";case T:var W=M.render;return M=M.displayName,M||(M=W.displayName||W.name||"",M=M!==""?"ForwardRef("+M+")":"ForwardRef"),M;case I:return W=M.displayName||null,W!==null?W:e(M.type)||"Memo";case k:W=M._payload,M=M._init;try{return e(M(W))}catch{}}return null}function t(M){return""+M}function n(M){try{t(M);var W=!1}catch{W=!0}if(W){W=console;var K=W.error,G=typeof Symbol=="function"&&Symbol.toStringTag&&M[Symbol.toStringTag]||M.constructor.name||"Object";return K.call(W,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",G),t(M)}}function o(M){if(M===y)return"<>";if(typeof M=="object"&&M!==null&&M.$$typeof===k)return"<...>";try{var W=e(M);return W?"<"+W+">":"<...>"}catch{return"<...>"}}function r(){var M=x.A;return M===null?null:M.getOwner()}function i(){return Error("react-stack-top-frame")}function a(M){if(j.call(M,"key")){var W=Object.getOwnPropertyDescriptor(M,"key").get;if(W&&W.isReactWarning)return!1}return M.key!==void 0}function l(M,W){function K(){D||(D=!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)",W))}K.isReactWarning=!0,Object.defineProperty(M,"key",{get:K,configurable:!0})}function c(){var M=e(this.type);return _[M]||(_[M]=!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.")),M=this.props.ref,M!==void 0?M:null}function u(M,W,K,G,Z,U){var Q=K.ref;return M={$$typeof:m,type:M,key:W,props:K,_owner:G},(Q!==void 0?Q:null)!==null?Object.defineProperty(M,"ref",{enumerable:!1,get:c}):Object.defineProperty(M,"ref",{enumerable:!1,value:null}),M._store={},Object.defineProperty(M._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(M,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(M,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Z}),Object.defineProperty(M,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:U}),Object.freeze&&(Object.freeze(M.props),Object.freeze(M)),M}function d(M,W,K,G,Z,U){var Q=W.children;if(Q!==void 0)if(G)if(R(Q)){for(G=0;G<Q.length;G++)f(Q[G]);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(j.call(W,"key")){Q=e(M);var J=Object.keys(W).filter(function(q){return q!=="key"});G=0<J.length?"{key: someKey, "+J.join(": ..., ")+": ...}":"{key: someKey}",$[Q+G]||(J=0<J.length?"{"+J.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} />`,
|
|
22
|
+
<%s key={someKey} {...props} />`,G,Q,J,Q),$[Q+G]=!0)}if(Q=null,K!==void 0&&(n(K),Q=""+K),a(W)&&(n(W.key),Q=""+W.key),"key"in W){K={};for(var ee in W)ee!=="key"&&(K[ee]=W[ee])}else K=W;return Q&&l(K,typeof M=="function"?M.displayName||M.name||"Unknown":M),u(M,Q,K,r(),Z,U)}function f(M){p(M)?M._store&&(M._store.validated=1):typeof M=="object"&&M!==null&&M.$$typeof===k&&(M._payload.status==="fulfilled"?p(M._payload.value)&&M._payload.value._store&&(M._payload.value._store.validated=1):M._store&&(M._store.validated=1))}function p(M){return typeof M=="object"&&M!==null&&M.$$typeof===m}var h=L,m=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),S=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),N=Symbol.for("react.client.reference"),x=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=Object.prototype.hasOwnProperty,R=Array.isArray,O=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(M){return M()}};var D,_={},F=h.react_stack_bottom_frame.bind(h,i)(),B=O(o(i)),$={};Sr.Fragment=y,Sr.jsx=function(M,W,K){var G=1e4>x.recentlyCreatedOwnerStacks++;return d(M,W,K,!1,G?Error("react-stack-top-frame"):F,G?O(o(M)):B)},Sr.jsxs=function(M,W,K){var G=1e4>x.recentlyCreatedOwnerStacks++;return d(M,W,K,!0,G?Error("react-stack-top-frame"):F,G?O(o(M)):B)}}()),Sr}process.env.NODE_ENV==="production"?xl.exports=Bv():xl.exports=zv();var v=xl.exports;const $h=L.createContext(null),Wv=({children:e,defaultMode:t="light",mode:n,onModeChange:o,enableCssBaseline:r=!0})=>{const[i,a]=L.useState(n??t),l=n??i;L.useEffect(()=>{n&&a(n)},[n]);const c=L.useCallback(p=>{n||a(p),o==null||o(p)},[n,o]),u=L.useCallback(()=>{c(l==="light"?"dark":"light")},[l,c]),d=L.useMemo(()=>l==="dark"?jh:_h,[l]),f=L.useMemo(()=>({mode:l,setMode:c,toggleMode:u,theme:d}),[l,c,u,d]);return v.jsx($h.Provider,{value:f,children:v.jsxs(Y.ThemeProvider,{theme:d,children:[r?v.jsx(Y.CssBaseline,{}):null,e]})})},Uv=()=>{const e=L.useContext($h);if(!e)throw new Error("useVisioTheme must be used within VisioThemeProvider.");return e},Hv="_button_1x96v_1",Yv="_borderRadiusNone_1x96v_8",qv="_borderRadiusSmall_1x96v_12",Gv="_borderRadiusMedium_1x96v_16",Kv="_borderRadiusLarge_1x96v_20",Zv="_borderRadiusRound_1x96v_24",bo={button:Hv,borderRadiusNone:Yv,borderRadiusSmall:qv,borderRadiusMedium:Gv,borderRadiusLarge:Kv,borderRadiusRound:Zv},Xv=(e,t="medium")=>{const n=e??t;if(typeof n=="number")return"";switch(n){case"none":return bo.borderRadiusNone;case"small":return bo.borderRadiusSmall;case"medium":return bo.borderRadiusMedium;case"large":return bo.borderRadiusLarge;case"round":return bo.borderRadiusRound;default:return bo.borderRadiusMedium}},Qv=e=>{if(typeof e=="number")return`${e}px`},Jv=(e,t,n)=>{const o=n||t;if(o)return r=>{if(e){r.preventDefault();return}o(r)}},vc=L.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 b=d||t,C=Xv(c),w=Qv(c),S=Jv(b,h,m),T=`${bo.button} ${C} ${p||""}`.trim();return v.jsx(Y.Button,{ref:y,variant:i,size:a,color:l,fullWidth:u,disabled:b,type:f,onClick:S,startIcon:t?v.jsx(Y.CircularProgress,{size:a==="small"?16:a==="medium"?20:24,color:"inherit"}):o,endIcon:t?void 0:r,className:T,style:w?{borderRadius:w}:void 0,...g,children:t&&n?n:e})});vc.displayName="Button";const e0=e=>{if(e)return t=>{e(t)}},t0="_filterButton_8fgad_1",n0={filterButton:t0},Lh=L.forwardRef(({children:e="Filtros",onClick:t,className:n,...o},r)=>{const a=Y.useTheme().palette.mode==="dark",l=e0(t);return v.jsx(Y.Button,{ref:r,variant:"outlined",onClick:l,className:`${n0.filterButton} ${n||""}`,"data-theme":a?"dark":"light",...o,children:e})});Lh.displayName="FilterButton";const o0=(e,t)=>n=>{n.stopPropagation(),t==null||t(n),e()},r0="_filterChip_1ty7d_1",s0="_icon_1ty7d_60",i0="_label_1ty7d_76",a0="_overlay_1ty7d_88",l0="_deleteIcon_1ty7d_102",wr={filterChip:r0,icon:s0,label:i0,overlay:a0,deleteIcon:l0},Vh=({label:e,icon:t,onRemove:n,className:o,onClick:r,ref:i,...a})=>{const c=Y.useTheme().palette.mode==="dark",u=o0(n,r);return v.jsxs(Y.Box,{ref:i,className:`${wr.filterChip} ${o||""}`.trim(),"data-theme":c?"dark":"light",onClick:u,role:"button",tabIndex:0,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),n())},"aria-label":`Remover filtro ${e}`,component:"div",...a,children:[t&&v.jsx(Y.Box,{className:wr.icon,component:"div",children:t}),v.jsx(Y.Box,{className:wr.label,component:"span",children:e}),v.jsx(Y.Box,{className:wr.overlay,component:"div",children:v.jsx(Vt.Delete,{className:wr.deleteIcon})})]})};Vh.displayName="FilterChip";const md=e=>e,c0=()=>{let e=md;return{configure(t){e=t},generate(t){return e(t)},reset(){e=md}}},u0=c0();function yn(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.":yn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function gd(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}var Sl={exports:{}},$s={exports:{}},Ve={};/** @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
|
|
29
|
+
*/var yd;function d0(){if(yd)return Ve;yd=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,b=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function w(T){if(typeof T=="object"&&T!==null){var P=T.$$typeof;switch(P){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 P}}case n:return P}}}function S(T){return w(T)===u}return Ve.AsyncMode=c,Ve.ConcurrentMode=u,Ve.ContextConsumer=l,Ve.ContextProvider=a,Ve.Element=t,Ve.ForwardRef=d,Ve.Fragment=o,Ve.Lazy=m,Ve.Memo=h,Ve.Portal=n,Ve.Profiler=i,Ve.StrictMode=r,Ve.Suspense=f,Ve.isAsyncMode=function(T){return S(T)||w(T)===c},Ve.isConcurrentMode=S,Ve.isContextConsumer=function(T){return w(T)===l},Ve.isContextProvider=function(T){return w(T)===a},Ve.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},Ve.isForwardRef=function(T){return w(T)===d},Ve.isFragment=function(T){return w(T)===o},Ve.isLazy=function(T){return w(T)===m},Ve.isMemo=function(T){return w(T)===h},Ve.isPortal=function(T){return w(T)===n},Ve.isProfiler=function(T){return w(T)===i},Ve.isStrictMode=function(T){return w(T)===r},Ve.isSuspense=function(T){return w(T)===f},Ve.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===b||T.$$typeof===C||T.$$typeof===g)},Ve.typeOf=w,Ve}var Fe={};/** @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
|
|
36
|
+
*/var bd;function f0(){return bd||(bd=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,b=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function w(H){return typeof H=="string"||typeof H=="function"||H===o||H===u||H===i||H===r||H===f||H===p||typeof H=="object"&&H!==null&&(H.$$typeof===m||H.$$typeof===h||H.$$typeof===a||H.$$typeof===l||H.$$typeof===d||H.$$typeof===y||H.$$typeof===b||H.$$typeof===C||H.$$typeof===g)}function S(H){if(typeof H=="object"&&H!==null){var oe=H.$$typeof;switch(oe){case t:var te=H.type;switch(te){case c:case u:case o:case i:case r:case f:return te;default:var ae=te&&te.$$typeof;switch(ae){case l:case d:case m:case h:case a:return ae;default:return oe}}case n:return oe}}}var T=c,P=u,A=l,I=a,k=t,V=d,N=o,x=m,j=h,R=n,O=i,D=r,_=f,F=!1;function B(H){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.")),$(H)||S(H)===c}function $(H){return S(H)===u}function M(H){return S(H)===l}function W(H){return S(H)===a}function K(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function G(H){return S(H)===d}function Z(H){return S(H)===o}function U(H){return S(H)===m}function Q(H){return S(H)===h}function J(H){return S(H)===n}function ee(H){return S(H)===i}function q(H){return S(H)===r}function X(H){return S(H)===f}Fe.AsyncMode=T,Fe.ConcurrentMode=P,Fe.ContextConsumer=A,Fe.ContextProvider=I,Fe.Element=k,Fe.ForwardRef=V,Fe.Fragment=N,Fe.Lazy=x,Fe.Memo=j,Fe.Portal=R,Fe.Profiler=O,Fe.StrictMode=D,Fe.Suspense=_,Fe.isAsyncMode=B,Fe.isConcurrentMode=$,Fe.isContextConsumer=M,Fe.isContextProvider=W,Fe.isElement=K,Fe.isForwardRef=G,Fe.isFragment=Z,Fe.isLazy=U,Fe.isMemo=Q,Fe.isPortal=J,Fe.isProfiler=ee,Fe.isStrictMode=q,Fe.isSuspense=X,Fe.isValidElementType=w,Fe.typeOf=S}()),Fe}var vd;function Fh(){return vd||(vd=1,process.env.NODE_ENV==="production"?$s.exports=d0():$s.exports=f0()),$s.exports}/*
|
|
37
37
|
object-assign
|
|
38
38
|
(c) Sindre Sorhus
|
|
39
39
|
@license MIT
|
|
40
|
-
*/var
|
|
41
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
40
|
+
*/var Ia,xd;function p0(){if(xd)return Ia;xd=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 Ia=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},Ia}var Aa,Sd;function xc(){if(Sd)return Aa;Sd=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Aa=e,Aa}var Na,wd;function Bh(){return wd||(wd=1,Na=Function.call.bind(Object.prototype.hasOwnProperty)),Na}var _a,Cd;function h0(){if(Cd)return _a;Cd=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=xc(),n={},o=Bh();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={})},_a=r,_a}var ja,Td;function m0(){if(Td)return ja;Td=1;var e=Fh(),t=p0(),n=xc(),o=Bh(),r=h0(),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 ja=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f($){var M=$&&(u&&$[u]||$[d]);if(typeof M=="function")return M}var p="<<anonymous>>",h={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:C(),arrayOf:w,element:S(),elementType:T(),instanceOf:P,node:V(),objectOf:I,oneOf:A,oneOfType:k,shape:x,exact:j};function m($,M){return $===M?$!==0||1/$===1/M:$!==$&&M!==M}function g($,M){this.message=$,this.data=M&&typeof M=="object"?M:{},this.stack=""}g.prototype=Error.prototype;function y($){if(process.env.NODE_ENV!=="production")var M={},W=0;function K(Z,U,Q,J,ee,q,X){if(J=J||p,q=q||Q,X!==n){if(c){var H=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw H.name="Invariant Violation",H}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var oe=J+":"+Q;!M[oe]&&W<3&&(i("You are manually calling a React.PropTypes validation function for the `"+q+"` prop on `"+J+"`. 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."),M[oe]=!0,W++)}}return U[Q]==null?Z?U[Q]===null?new g("The "+ee+" `"+q+"` is marked as required "+("in `"+J+"`, but its value is `null`.")):new g("The "+ee+" `"+q+"` is marked as required in "+("`"+J+"`, but its value is `undefined`.")):null:$(U,Q,J,ee,q)}var G=K.bind(null,!1);return G.isRequired=K.bind(null,!0),G}function b($){function M(W,K,G,Z,U,Q){var J=W[K],ee=D(J);if(ee!==$){var q=_(J);return new g("Invalid "+Z+" `"+U+"` of type "+("`"+q+"` supplied to `"+G+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return y(M)}function C(){return y(a)}function w($){function M(W,K,G,Z,U){if(typeof $!="function")return new g("Property `"+U+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var Q=W[K];if(!Array.isArray(Q)){var J=D(Q);return new g("Invalid "+Z+" `"+U+"` of type "+("`"+J+"` supplied to `"+G+"`, expected an array."))}for(var ee=0;ee<Q.length;ee++){var q=$(Q,ee,G,Z,U+"["+ee+"]",n);if(q instanceof Error)return q}return null}return y(M)}function S(){function $(M,W,K,G,Z){var U=M[W];if(!l(U)){var Q=D(U);return new g("Invalid "+G+" `"+Z+"` of type "+("`"+Q+"` supplied to `"+K+"`, expected a single ReactElement."))}return null}return y($)}function T(){function $(M,W,K,G,Z){var U=M[W];if(!e.isValidElementType(U)){var Q=D(U);return new g("Invalid "+G+" `"+Z+"` of type "+("`"+Q+"` supplied to `"+K+"`, expected a single ReactElement type."))}return null}return y($)}function P($){function M(W,K,G,Z,U){if(!(W[K]instanceof $)){var Q=$.name||p,J=B(W[K]);return new g("Invalid "+Z+" `"+U+"` of type "+("`"+J+"` supplied to `"+G+"`, expected ")+("instance of `"+Q+"`."))}return null}return y(M)}function A($){if(!Array.isArray($))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 M(W,K,G,Z,U){for(var Q=W[K],J=0;J<$.length;J++)if(m(Q,$[J]))return null;var ee=JSON.stringify($,function(X,H){var oe=_(H);return oe==="symbol"?String(H):H});return new g("Invalid "+Z+" `"+U+"` of value `"+String(Q)+"` "+("supplied to `"+G+"`, expected one of "+ee+"."))}return y(M)}function I($){function M(W,K,G,Z,U){if(typeof $!="function")return new g("Property `"+U+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var Q=W[K],J=D(Q);if(J!=="object")return new g("Invalid "+Z+" `"+U+"` of type "+("`"+J+"` supplied to `"+G+"`, expected an object."));for(var ee in Q)if(o(Q,ee)){var q=$(Q,ee,G,Z,U+"."+ee,n);if(q instanceof Error)return q}return null}return y(M)}function k($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var M=0;M<$.length;M++){var W=$[M];if(typeof W!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+F(W)+" at index "+M+"."),a}function K(G,Z,U,Q,J){for(var ee=[],q=0;q<$.length;q++){var X=$[q],H=X(G,Z,U,Q,J,n);if(H==null)return null;H.data&&o(H.data,"expectedType")&&ee.push(H.data.expectedType)}var oe=ee.length>0?", expected one of type ["+ee.join(", ")+"]":"";return new g("Invalid "+Q+" `"+J+"` supplied to "+("`"+U+"`"+oe+"."))}return y(K)}function V(){function $(M,W,K,G,Z){return R(M[W])?null:new g("Invalid "+G+" `"+Z+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return y($)}function N($,M,W,K,G){return new g(($||"React class")+": "+M+" type `"+W+"."+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function x($){function M(W,K,G,Z,U){var Q=W[K],J=D(Q);if(J!=="object")return new g("Invalid "+Z+" `"+U+"` of type `"+J+"` "+("supplied to `"+G+"`, expected `object`."));for(var ee in $){var q=$[ee];if(typeof q!="function")return N(G,Z,U,ee,_(q));var X=q(Q,ee,G,Z,U+"."+ee,n);if(X)return X}return null}return y(M)}function j($){function M(W,K,G,Z,U){var Q=W[K],J=D(Q);if(J!=="object")return new g("Invalid "+Z+" `"+U+"` of type `"+J+"` "+("supplied to `"+G+"`, expected `object`."));var ee=t({},W[K],$);for(var q in ee){var X=$[q];if(o($,q)&&typeof X!="function")return N(G,Z,U,q,_(X));if(!X)return new g("Invalid "+Z+" `"+U+"` key `"+q+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(W[K],null," ")+`
|
|
41
|
+
Valid keys: `+JSON.stringify(Object.keys($),null," "));var H=X(Q,q,G,Z,U+"."+q,n);if(H)return H}return null}return y(M)}function R($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(R);if($===null||l($))return!0;var M=f($);if(M){var W=M.call($),K;if(M!==$.entries){for(;!(K=W.next()).done;)if(!R(K.value))return!1}else for(;!(K=W.next()).done;){var G=K.value;if(G&&!R(G[1]))return!1}}else return!1;return!0;default:return!1}}function O($,M){return $==="symbol"?!0:M?M["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&M instanceof Symbol:!1}function D($){var M=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":O(M,$)?"symbol":M}function _($){if(typeof $>"u"||$===null)return""+$;var M=D($);if(M==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return M}function F($){var M=_($);switch(M){case"array":case"object":return"an "+M;case"boolean":case"date":case"regexp":return"a "+M;default:return M}}function B($){return!$.constructor||!$.constructor.name?p:$.constructor.name}return h.checkPropTypes=r,h.resetWarningCache=r.resetWarningCache,h.PropTypes=h,h},ja}var $a,Pd;function g0(){if(Pd)return $a;Pd=1;var e=xc();function t(){}function n(){}return n.resetWarningCache=t,$a=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},$a}if(process.env.NODE_ENV!=="production"){var y0=Fh(),b0=!0;Sl.exports=m0()(y0.isElement,b0)}else Sl.exports=g0()();var v0=Sl.exports;const s=Qn(v0);function zh(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=zh(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function ge(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=zh(e))&&(o&&(o+=" "),o+=t);return o}function we(e,t,n=void 0){const o={};for(const r in e){const i=e[r];let a="",l=!0;for(let c=0;c<i.length;c+=1){const u=i[c];u&&(a+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(a+=" "+n[u]))}o[r]=a}return o}var wl={exports:{}},We={};/**
|
|
42
42
|
* @license React
|
|
43
43
|
* react-is.production.js
|
|
44
44
|
*
|
|
@@ -46,7 +46,7 @@ Valid keys: `+JSON.stringify(Object.keys(R),null," "));var q=K(Z,X,U,Y,H+"."+X,
|
|
|
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
|
|
49
|
+
*/var Ed;function x0(){if(Ed)return We;Ed=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 We.ContextConsumer=i,We.ContextProvider=a,We.Element=e,We.ForwardRef=l,We.Fragment=n,We.Lazy=f,We.Memo=d,We.Portal=t,We.Profiler=r,We.StrictMode=o,We.Suspense=c,We.SuspenseList=u,We.isContextConsumer=function(g){return m(g)===i},We.isContextProvider=function(g){return m(g)===a},We.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},We.isForwardRef=function(g){return m(g)===l},We.isFragment=function(g){return m(g)===n},We.isLazy=function(g){return m(g)===f},We.isMemo=function(g){return m(g)===d},We.isPortal=function(g){return m(g)===t},We.isProfiler=function(g){return m(g)===r},We.isStrictMode=function(g){return m(g)===o},We.isSuspense=function(g){return m(g)===c},We.isSuspenseList=function(g){return m(g)===u},We.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)},We.typeOf=m,We}var Ue={};/**
|
|
50
50
|
* @license React
|
|
51
51
|
* react-is.development.js
|
|
52
52
|
*
|
|
@@ -54,24 +54,16 @@ Valid keys: `+JSON.stringify(Object.keys(R),null," "));var q=K(Z,X,U,Y,H+"."+X,
|
|
|
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
|
|
58
|
-
`))},
|
|
59
|
-
`))},[JSON.stringify(t)])}const c=S.useCallback(u=>{s||a(u)},[]);return[l,c]}function $n(e){const t=S.useRef(e);return Ht(()=>{t.current=e}),S.useRef((...n)=>(0,t.current)(...n)).current}function pt(...e){return S.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Ni(n,t)})},e)}const Fl={};function Fm(e,t){const n=S.useRef(Fl);return n.current===Fl&&(n.current=e(t)),n}const Vm=[];function Bm(e){S.useEffect(e,Vm)}let ju=class Lu{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Lu}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}};function Fu(){const e=Fm(ju.create).current;return Bm(e.disposeEffect),e}let ys=!0,$i=!1;const zm=new ju,Wm={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Um(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Wm[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Hm(e){e.metaKey||e.altKey||e.ctrlKey||(ys=!0)}function mi(){ys=!1}function qm(){this.visibilityState==="hidden"&&$i&&(ys=!0)}function Ym(e){e.addEventListener("keydown",Hm,!0),e.addEventListener("mousedown",mi,!0),e.addEventListener("pointerdown",mi,!0),e.addEventListener("touchstart",mi,!0),e.addEventListener("visibilitychange",qm,!0)}function Gm(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ys||Um(t)}function Km(){const e=S.useCallback(s=>{s!=null&&Ym(s.ownerDocument)},[]),t=S.useRef(!1);function n(){return t.current?($i=!0,zm.start(100,()=>{$i=!1}),t.current=!1,!0):!1}function r(s){return Gm(s)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Vu(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Zm(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 Xm(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const Qm=Number.isInteger||Xm;function Bu(e,t,n,r){const s=e[t];if(s==null||!Qm(s)){const i=Zm(s);return new RangeError(`Invalid ${r} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function zu(e,t,...n){return e[t]===void 0?null:Bu(e,t,...n)}function Ai(){return null}zu.isRequired=Bu;Ai.isRequired=Ai;const Wu=process.env.NODE_ENV==="production"?Ai:zu;function or(e,t){const n=C({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=C({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const s=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=s:!s||!Object.keys(s)?n[r]=i:(n[r]=C({},i),Object.keys(s).forEach(a=>{n[r][a]=or(s[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Ve(e,t,n=void 0){const r={};return Object.keys(e).forEach(s=>{r[s]=e[s].reduce((i,a)=>{if(a){const l=t(a);l!==""&&i.push(l),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}const Vl=e=>e,Jm=()=>{let e=Vl;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Vl}}},eh=Jm(),th={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 Ie(e,t,n="Mui"){const r=th[t];return r?`${n}-${r}`:`${eh.generate(e)}-${t}`}function Re(e,t,n="Mui"){const r={};return t.forEach(s=>{r[s]=Ie(e,s,n)}),r}function nh(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const oh=Object.freeze(Object.defineProperty({__proto__:null,default:nh},Symbol.toStringTag,{value:"Module"}));function re(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function mo(e){return typeof e=="string"}function rh(e,t,n){return e===void 0||mo(e)?t:C({},t,{ownerState:C({},t.ownerState,n)})}function Uu(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Uu(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function me(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Uu(e))&&(r&&(r+=" "),r+=t);return r}function Hu(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Bl(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 sh(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:s,className:i}=e;if(!t){const g=me(n==null?void 0:n.className,i,s==null?void 0:s.className,r==null?void 0:r.className),h=C({},n==null?void 0:n.style,s==null?void 0:s.style,r==null?void 0:r.style),f=C({},n,s,r);return g.length>0&&(f.className=g),Object.keys(h).length>0&&(f.style=h),{props:f,internalRef:void 0}}const a=Hu(C({},s,r)),l=Bl(r),c=Bl(s),u=t(a),d=me(u==null?void 0:u.className,n==null?void 0:n.className,i,s==null?void 0:s.className,r==null?void 0:r.className),p=C({},u==null?void 0:u.style,n==null?void 0:n.style,s==null?void 0:s.style,r==null?void 0:r.style),m=C({},u,n,c,l);return d.length>0&&(m.className=d),Object.keys(p).length>0&&(m.style=p),{props:m,internalRef:u.ref}}function ih(e,t,n){return typeof e=="function"?e(t,n):e}const ah=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Bn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:s,skipResolvingSlotProps:i=!1}=e,a=re(e,ah),l=i?{}:ih(r,s),{props:c,internalRef:u}=sh(C({},a,{externalSlotProps:l})),d=pt(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return rh(n,C({},c,{ref:d}),s)}function hr(e){if(parseInt(S.version,10)>=19){var t;return(e==null||(t=e.props)==null?void 0:t.ref)||null}return(e==null?void 0:e.ref)||null}const lh=S.createContext(void 0);process.env.NODE_ENV!=="production"&&(o.node,o.object);function ch(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const s=t.components[n];return s.defaultProps?or(s.defaultProps,r):!s.styleOverrides&&!s.variants?or(s,r):r}function uh({props:e,name:t}){const n=S.useContext(lh);return ch({props:e,name:t,theme:{components:n}})}process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function Be(e){return uh(e)}var gr={},qu={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(qu);var Yu=qu.exports,hi={exports:{}},zl;function dh(){return zl||(zl=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var s=arguments[r];for(var i in s)({}).hasOwnProperty.call(s,i)&&(n[i]=s[i])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(hi)),hi.exports}var gi={exports:{}},Wl;function fh(){return Wl||(Wl=1,function(e){function t(n,r){if(n==null)return{};var s={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)!==-1)continue;s[i]=n[i]}return s}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(gi)),gi.exports}function ph(e){for(var t=0,n,r=0,s=e.length;s>=4;++r,s-=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(s){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 mh={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 hh(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var gh=/[A-Z]|^ms/g,bh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Gu=function(t){return t.charCodeAt(1)===45},Ul=function(t){return t!=null&&typeof t!="boolean"},bi=hh(function(e){return Gu(e)?e:e.replace(gh,"-$&").toLowerCase()}),Hl=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(bh,function(r,s,i){return bn={name:s,styles:i,next:bn},s})}return mh[t]!==1&&!Gu(t)&&typeof n=="number"&&n!==0?n+"px":n};function Jr(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 s=n;if(s.anim===1)return bn={name:s.name,styles:s.styles,next:bn},s.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)bn={name:a.name,styles:a.styles,next:bn},a=a.next;var l=i.styles+";";return l}return yh(e,t,n)}}var c=n;return c}function yh(e,t,n){var r="";if(Array.isArray(n))for(var s=0;s<n.length;s++)r+=Jr(e,t,n[s])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;Ul(l)&&(r+=bi(i)+":"+Hl(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var c=0;c<a.length;c++)Ul(a[c])&&(r+=bi(i)+":"+Hl(i,a[c])+";");else{var u=Jr(e,t,a);switch(i){case"animation":case"animationName":{r+=bi(i)+":"+u+";";break}default:r+=i+"{"+u+"}"}}}return r}var ql=/label:\s*([^\s;{]+)\s*(;|$)/g,bn;function vh(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,s="";bn=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,s+=Jr(n,t,i);else{var a=i;s+=a[0]}for(var l=1;l<e.length;l++)if(s+=Jr(n,t,e[l]),r){var c=i;s+=c[l]}ql.lastIndex=0;for(var u="",d;(d=ql.exec(s))!==null;)u+="-"+d[1];var p=ph(s)+u;return{name:p,styles:s,next:bn}}function xh(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Sh(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Ch=function(){function e(n){var r=this;this._insertTag=function(s){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(s,i),r.tags.push(s)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Sh(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var i=xh(s);try{i.insertRule(r,i.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var s;return(s=r.parentNode)==null?void 0:s.removeChild(r)}),this.tags=[],this.ctr=0},e}(),bt="-ms-",es="-moz-",Ne="-webkit-",Ku="comm",ia="rule",aa="decl",wh="@import",Zu="@keyframes",Eh="@layer",Oh=Math.abs,vs=String.fromCharCode,Th=Object.assign;function Ph(e,t){return ht(e,0)^45?(((t<<2^ht(e,0))<<2^ht(e,1))<<2^ht(e,2))<<2^ht(e,3):0}function Xu(e){return e.trim()}function kh(e,t){return(e=t.exec(e))?e[0]:e}function $e(e,t,n){return e.replace(t,n)}function ji(e,t){return e.indexOf(t)}function ht(e,t){return e.charCodeAt(t)|0}function rr(e,t,n){return e.slice(t,n)}function Zt(e){return e.length}function la(e){return e.length}function _r(e,t){return t.push(e),e}function Mh(e,t){return e.map(t).join("")}var xs=1,ho=1,Qu=0,Ot=0,lt=0,Eo="";function Ss(e,t,n,r,s,i,a){return{value:e,root:t,parent:n,type:r,props:s,children:i,line:xs,column:ho,length:a,return:""}}function No(e,t){return Th(Ss("",null,null,"",null,null,0),e,{length:-e.length},t)}function Rh(){return lt}function Dh(){return lt=Ot>0?ht(Eo,--Ot):0,ho--,lt===10&&(ho=1,xs--),lt}function kt(){return lt=Ot<Qu?ht(Eo,Ot++):0,ho++,lt===10&&(ho=1,xs++),lt}function Qt(){return ht(Eo,Ot)}function Hr(){return Ot}function br(e,t){return rr(Eo,e,t)}function sr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ju(e){return xs=ho=1,Qu=Zt(Eo=e),Ot=0,[]}function ed(e){return Eo="",e}function qr(e){return Xu(br(Ot-1,Li(e===91?e+2:e===40?e+1:e)))}function Ih(e){for(;(lt=Qt())&<<33;)kt();return sr(e)>2||sr(lt)>3?"":" "}function _h(e,t){for(;--t&&kt()&&!(lt<48||lt>102||lt>57&<<65||lt>70&<<97););return br(e,Hr()+(t<6&&Qt()==32&&kt()==32))}function Li(e){for(;kt();)switch(lt){case e:return Ot;case 34:case 39:e!==34&&e!==39&&Li(lt);break;case 40:e===41&&Li(e);break;case 92:kt();break}return Ot}function Nh(e,t){for(;kt()&&e+lt!==57;)if(e+lt===84&&Qt()===47)break;return"/*"+br(t,Ot-1)+"*"+vs(e===47?e:kt())}function $h(e){for(;!sr(Qt());)kt();return br(e,Ot)}function Ah(e){return ed(Yr("",null,null,null,[""],e=Ju(e),0,[0],e))}function Yr(e,t,n,r,s,i,a,l,c){for(var u=0,d=0,p=a,m=0,g=0,h=0,f=1,b=1,x=1,O=0,v="",w=s,E=i,T=r,P=v;b;)switch(h=O,O=kt()){case 40:if(h!=108&&ht(P,p-1)==58){ji(P+=$e(qr(O),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:P+=qr(O);break;case 9:case 10:case 13:case 32:P+=Ih(h);break;case 92:P+=_h(Hr()-1,7);continue;case 47:switch(Qt()){case 42:case 47:_r(jh(Nh(kt(),Hr()),t,n),c);break;default:P+="/"}break;case 123*f:l[u++]=Zt(P)*x;case 125*f:case 59:case 0:switch(O){case 0:case 125:b=0;case 59+d:x==-1&&(P=$e(P,/\f/g,"")),g>0&&Zt(P)-p&&_r(g>32?Gl(P+";",r,n,p-1):Gl($e(P," ","")+";",r,n,p-2),c);break;case 59:P+=";";default:if(_r(T=Yl(P,t,n,u,d,s,l,v,w=[],E=[],p),i),O===123)if(d===0)Yr(P,t,T,T,w,i,p,l,E);else switch(m===99&&ht(P,3)===110?100:m){case 100:case 108:case 109:case 115:Yr(e,T,T,r&&_r(Yl(e,T,T,0,0,s,l,v,s,w=[],p),E),s,E,p,l,r?w:E);break;default:Yr(P,T,T,T,[""],E,0,l,E)}}u=d=g=0,f=x=1,v=P="",p=a;break;case 58:p=1+Zt(P),g=h;default:if(f<1){if(O==123)--f;else if(O==125&&f++==0&&Dh()==125)continue}switch(P+=vs(O),O*f){case 38:x=d>0?1:(P+="\f",-1);break;case 44:l[u++]=(Zt(P)-1)*x,x=1;break;case 64:Qt()===45&&(P+=qr(kt())),m=Qt(),d=p=Zt(v=P+=$h(Hr())),O++;break;case 45:h===45&&Zt(P)==2&&(f=0)}}return i}function Yl(e,t,n,r,s,i,a,l,c,u,d){for(var p=s-1,m=s===0?i:[""],g=la(m),h=0,f=0,b=0;h<r;++h)for(var x=0,O=rr(e,p+1,p=Oh(f=a[h])),v=e;x<g;++x)(v=Xu(f>0?m[x]+" "+O:$e(O,/&\f/g,m[x])))&&(c[b++]=v);return Ss(e,t,n,s===0?ia:l,c,u,d)}function jh(e,t,n){return Ss(e,t,n,Ku,vs(Rh()),rr(e,2,-2),0)}function Gl(e,t,n,r){return Ss(e,t,n,aa,rr(e,0,r),rr(e,r+1,-1),r)}function ao(e,t){for(var n="",r=la(e),s=0;s<r;s++)n+=t(e[s],s,e,t)||"";return n}function Lh(e,t,n,r){switch(e.type){case Eh:if(e.children.length)break;case wh:case aa:return e.return=e.return||e.value;case Ku:return"";case Zu:return e.return=e.value+"{"+ao(e.children,r)+"}";case ia:e.value=e.props.join(",")}return Zt(n=ao(e.children,r))?e.return=e.value+"{"+n+"}":""}function Fh(e){var t=la(e);return function(n,r,s,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,s,i)||"";return a}}function Vh(e){return function(t){t.root||(t=t.return)&&e(t)}}var Bh=function(t,n,r){for(var s=0,i=0;s=i,i=Qt(),s===38&&i===12&&(n[r]=1),!sr(i);)kt();return br(t,Ot)},zh=function(t,n){var r=-1,s=44;do switch(sr(s)){case 0:s===38&&Qt()===12&&(n[r]=1),t[r]+=Bh(Ot-1,n,r);break;case 2:t[r]+=qr(s);break;case 4:if(s===44){t[++r]=Qt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=vs(s)}while(s=kt());return t},Wh=function(t,n){return ed(zh(Ju(t),n))},Kl=new WeakMap,Uh=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,s=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Kl.get(r))&&!s){Kl.set(t,!0);for(var i=[],a=Wh(n,i),l=r.props,c=0,u=0;c<a.length;c++)for(var d=0;d<l.length;d++,u++)t.props[u]=i[c]?a[c].replace(/&\f/g,l[d]):l[d]+" "+a[c]}}},Hh=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function td(e,t){switch(Ph(e,t)){case 5103:return Ne+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ne+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ne+e+es+e+bt+e+e;case 6828:case 4268:return Ne+e+bt+e+e;case 6165:return Ne+e+bt+"flex-"+e+e;case 5187:return Ne+e+$e(e,/(\w+).+(:[^]+)/,Ne+"box-$1$2"+bt+"flex-$1$2")+e;case 5443:return Ne+e+bt+"flex-item-"+$e(e,/flex-|-self/,"")+e;case 4675:return Ne+e+bt+"flex-line-pack"+$e(e,/align-content|flex-|-self/,"")+e;case 5548:return Ne+e+bt+$e(e,"shrink","negative")+e;case 5292:return Ne+e+bt+$e(e,"basis","preferred-size")+e;case 6060:return Ne+"box-"+$e(e,"-grow","")+Ne+e+bt+$e(e,"grow","positive")+e;case 4554:return Ne+$e(e,/([^-])(transform)/g,"$1"+Ne+"$2")+e;case 6187:return $e($e($e(e,/(zoom-|grab)/,Ne+"$1"),/(image-set)/,Ne+"$1"),e,"")+e;case 5495:case 3959:return $e(e,/(image-set\([^]*)/,Ne+"$1$`$1");case 4968:return $e($e(e,/(.+:)(flex-)?(.*)/,Ne+"box-pack:$3"+bt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ne+e+e;case 4095:case 3583:case 4068:case 2532:return $e(e,/(.+)-inline(.+)/,Ne+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Zt(e)-1-t>6)switch(ht(e,t+1)){case 109:if(ht(e,t+4)!==45)break;case 102:return $e(e,/(.+:)(.+)-([^]+)/,"$1"+Ne+"$2-$3$1"+es+(ht(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ji(e,"stretch")?td($e(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ht(e,t+1)!==115)break;case 6444:switch(ht(e,Zt(e)-3-(~ji(e,"!important")&&10))){case 107:return $e(e,":",":"+Ne)+e;case 101:return $e(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ne+(ht(e,14)===45?"inline-":"")+"box$3$1"+Ne+"$2$3$1"+bt+"$2box$3")+e}break;case 5936:switch(ht(e,t+11)){case 114:return Ne+e+bt+$e(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ne+e+bt+$e(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ne+e+bt+$e(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ne+e+bt+e+e}return e}var qh=function(t,n,r,s){if(t.length>-1&&!t.return)switch(t.type){case aa:t.return=td(t.value,t.length);break;case Zu:return ao([No(t,{value:$e(t.value,"@","@"+Ne)})],s);case ia:if(t.length)return Mh(t.props,function(i){switch(kh(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ao([No(t,{props:[$e(i,/:(read-\w+)/,":"+es+"$1")]})],s);case"::placeholder":return ao([No(t,{props:[$e(i,/:(plac\w+)/,":"+Ne+"input-$1")]}),No(t,{props:[$e(i,/:(plac\w+)/,":"+es+"$1")]}),No(t,{props:[$e(i,/:(plac\w+)/,bt+"input-$1")]})],s)}return""})}},Yh=[qh],Gh=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(f){var b=f.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var s=t.stylisPlugins||Yh,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(f){for(var b=f.getAttribute("data-emotion").split(" "),x=1;x<b.length;x++)i[b[x]]=!0;l.push(f)});var c,u=[Uh,Hh];{var d,p=[Lh,Vh(function(f){d.insert(f)})],m=Fh(u.concat(s,p)),g=function(b){return ao(Ah(b),m)};c=function(b,x,O,v){d=O,g(b?b+"{"+x.styles+"}":x.styles),v&&(h.inserted[x.name]=!0)}}var h={key:n,sheet:new Ch({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return h.sheet.hydrate(l),h};function Kh(e,t){const n=Gh({key:"css",prepend:e});if(t){const r=n.insert;n.insert=(...s)=>(s[1].styles.match(/^@layer\s+[^{]*$/)||(s[1].styles=`@layer mui {${s[1].styles}}`),r(...s))}return n}const yi=new Map;function nd(e){const{injectFirst:t,enableCssLayer:n,children:r}=e,s=S.useMemo(()=>{const i=`${t}-${n}`;if(typeof document=="object"&&yi.has(i))return yi.get(i);const a=Kh(t,n);return yi.set(i,a),a},[t,n]);return t||n?y.jsx(io.CacheProvider,{value:s,children:r}):r}process.env.NODE_ENV!=="production"&&(nd.propTypes={children:o.node,enableCssLayer:o.bool,injectFirst:o.bool});function Zh(e){return e==null||Object.keys(e).length===0}function od(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?s=>t(Zh(s)?n:s):t;return y.jsx(io.Global,{styles:r})}process.env.NODE_ENV!=="production"&&(od.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.string,o.object,o.func])});/**
|
|
60
|
-
* @mui/styled-engine v5.18.0
|
|
61
|
-
*
|
|
62
|
-
* @license MIT
|
|
63
|
-
* This source code is licensed under the MIT license found in the
|
|
64
|
-
* LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/function Xh(e,t){const n=Hp(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const s=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${s})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
66
|
-
`)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${s})(...args) API requires all its args to be defined.`),n(...r)}:n}const Qh=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Zl=[];function Jh(e){return Zl[0]=e,vh(Zl)}const eg=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:od,StyledEngineProvider:nd,ThemeContext:io.ThemeContext,css:io.css,default:Xh,internal_processStyles:Qh,internal_serializeStyles:Jh,keyframes:io.keyframes},Symbol.toStringTag,{value:"Module"})),rd=xn(eg),tg=xn(gm),ng=xn(Am),og=xn($m),rg=["values","unit","step"],sg=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)=>C({},n,{[r.key]:r.val}),{})};function sd(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,s=re(e,rg),i=sg(t),a=Object.keys(i);function l(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function c(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function u(m,g){const h=a.indexOf(g);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(h!==-1&&typeof t[a[h]]=="number"?t[a[h]]:g)-r/100}${n})`}function d(m){return a.indexOf(m)+1<a.length?u(m,a[a.indexOf(m)+1]):l(m)}function p(m){const g=a.indexOf(m);return g===0?l(a[1]):g===a.length-1?c(a[g]):u(m,a[a.indexOf(m)+1]).replace("@media","@media not all and")}return C({keys:a,values:i,up:l,down:c,between:u,only:d,not:p,unit:n},s)}const ig={borderRadius:4},Cn=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.string,o.object,o.array]):{};function Go(e,t){return t?Pt(e,t,{clone:!1}):e}const ca={xs:0,sm:600,md:900,lg:1200,xl:1536},Xl={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ca[e]}px)`};function cn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Xl;return t.reduce((a,l,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=r.breakpoints||Xl;return Object.keys(t).reduce((a,l)=>{if(Object.keys(i.values||ca).indexOf(l)!==-1){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 ag(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,s)=>{const i=e.up(s);return r[i]={},r},{}))||{}}function Ql(e,t){return e.reduce((n,r)=>{const s=n[r];return(!s||Object.keys(s).length===0)&&delete n[r],n},t)}function Cs(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((s,i)=>s&&s[i]?s[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,s)=>r&&r[s]!=null?r[s]:null,e)}function ts(e,t,n,r=n){let s;return typeof e=="function"?s=e(n):Array.isArray(e)?s=e[n]||r:s=Cs(e,n)||r,t&&(s=t(s,r,e)),s}function ot(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:s}=e,i=a=>{if(a[t]==null)return null;const l=a[t],c=a.theme,u=Cs(c,r)||{};return cn(a,l,p=>{let m=ts(u,s,p);return p===m&&typeof p=="string"&&(m=ts(u,s,`${t}${p==="default"?"":fe(p)}`,p)),n===!1?m:{[n]:m}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Cn}:{},i.filterProps=[t],i}function lg(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const cg={m:"margin",p:"padding"},ug={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Jl={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},dg=lg(e=>{if(e.length>2)if(Jl[e])e=Jl[e];else return[e];const[t,n]=e.split(""),r=cg[t],s=ug[n]||"";return Array.isArray(s)?s.map(i=>r+i):[r+s]}),ws=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Es=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],fg=[...ws,...Es];function yr(e,t,n,r){var s;const i=(s=Cs(e,t,!1))!=null?s:n;return typeof i=="number"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${a}.`),i*a):Array.isArray(i)?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>i.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${a} > ${i.length-1}, you need to add the missing values.`].join(`
|
|
57
|
+
*/var Md;function S0(){return Md||(Md=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");Ue.ContextConsumer=a,Ue.ContextProvider=l,Ue.Element=t,Ue.ForwardRef=c,Ue.Fragment=o,Ue.Lazy=p,Ue.Memo=f,Ue.Portal=n,Ue.Profiler=i,Ue.StrictMode=r,Ue.Suspense=u,Ue.SuspenseList=d,Ue.isContextConsumer=function(g){return e(g)===a},Ue.isContextProvider=function(g){return e(g)===l},Ue.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},Ue.isForwardRef=function(g){return e(g)===c},Ue.isFragment=function(g){return e(g)===o},Ue.isLazy=function(g){return e(g)===p},Ue.isMemo=function(g){return e(g)===f},Ue.isPortal=function(g){return e(g)===n},Ue.isProfiler=function(g){return e(g)===i},Ue.isStrictMode=function(g){return e(g)===r},Ue.isSuspense=function(g){return e(g)===u},Ue.isSuspenseList=function(g){return e(g)===d},Ue.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)},Ue.typeOf=e}()),Ue}process.env.NODE_ENV==="production"?wl.exports=x0():wl.exports=S0();var Do=wl.exports;function pn(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 Wh(e){if(E.isValidElement(e)||Do.isValidElementType(e)||!pn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Wh(e[n])}),t}function Ot(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return pn(e)&&pn(t)&&Object.keys(t).forEach(r=>{E.isValidElement(t[r])||Do.isValidElementType(t[r])?o[r]=t[r]:pn(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&pn(e[r])?o[r]=Ot(e[r],t[r],n):n.clone?o[r]=pn(t[r])?Wh(t[r]):t[r]:o[r]=t[r]}),o}function Yr(e,t){return t?Ot(e,t,{clone:!1}):e}const Jn=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Od(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 w0(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function C0(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\`.`:yn(18,`(${t})`));return null}const[,o,r]=n,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(i)}function T0(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 _i={xs:0,sm:600,md:900,lg:1200,xl:1536},kd={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${_i[e]}px)`},P0={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:_i[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function On(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const i=o.breakpoints||kd;return t.reduce((a,l,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=o.breakpoints||kd;return Object.keys(t).reduce((a,l)=>{if(w0(i.keys,l)){const c=C0(o.containerQueries?o:P0,l);c&&(a[c]=n(t[l],l))}else if(Object.keys(i.values||_i).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 E0(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((o,r)=>{const i=e.up(r);return o[i]={},o},{}))||{}}function Dd(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function ji(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 di(e,t,n,o=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||o:r=ji(e,n)||o,t&&(r=t(r,o,e)),r}function dt(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=ji(c,o)||{};return On(a,l,f=>{let p=di(u,r,f);return f===p&&typeof f=="string"&&(p=di(u,r,`${t}${f==="default"?"":ce(f)}`,f)),n===!1?p:{[n]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Jn}:{},i.filterProps=[t],i}function M0(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const O0={m:"margin",p:"padding"},k0={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Rd={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},D0=M0(e=>{if(e.length>2)if(Rd[e])e=Rd[e];else return[e];const[t,n]=e.split(""),o=O0[t],r=k0[n]||"";return Array.isArray(r)?r.map(i=>o+i):[o+r]}),$i=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Li=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],R0=[...$i,...Li];function bs(e,t,n,o){const r=ji(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(`
|
|
67
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(`
|
|
68
|
-
`)))
|
|
69
|
-
`)),()=>{})}function id(e){return yr(e,"spacing",8,"spacing")}function vr(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function pg(e,t){return n=>e.reduce((r,s)=>(r[s]=vr(t,n),r),{})}function mg(e,t,n,r){if(t.indexOf(n)===-1)return null;const s=dg(n),i=pg(s,r),a=e[n];return cn(e,a,i)}function ad(e,t){const n=id(e.theme);return Object.keys(e).map(r=>mg(e,t,r,n)).reduce(Go,{})}function Je(e){return ad(e,ws)}Je.propTypes=process.env.NODE_ENV!=="production"?ws.reduce((e,t)=>(e[t]=Cn,e),{}):{};Je.filterProps=ws;function et(e){return ad(e,Es)}et.propTypes=process.env.NODE_ENV!=="production"?Es.reduce((e,t)=>(e[t]=Cn,e),{}):{};et.filterProps=Es;process.env.NODE_ENV!=="production"&&fg.reduce((e,t)=>(e[t]=Cn,e),{});function hg(e=8){if(e.mui)return e;const t=id({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function Os(...e){const t=e.reduce((r,s)=>(s.filterProps.forEach(i=>{r[i]=s}),r),{}),n=r=>Object.keys(r).reduce((s,i)=>t[i]?Go(s,t[i](r)):s,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,s)=>Object.assign(r,s.propTypes),{}):{},n.filterProps=e.reduce((r,s)=>r.concat(s.filterProps),[]),n}function _t(e){return typeof e!="number"?e:`${e}px solid`}function Lt(e,t){return ot({prop:e,themeKey:"borders",transform:t})}const gg=Lt("border",_t),bg=Lt("borderTop",_t),yg=Lt("borderRight",_t),vg=Lt("borderBottom",_t),xg=Lt("borderLeft",_t),Sg=Lt("borderColor"),Cg=Lt("borderTopColor"),wg=Lt("borderRightColor"),Eg=Lt("borderBottomColor"),Og=Lt("borderLeftColor"),Tg=Lt("outline",_t),Pg=Lt("outlineColor"),Ts=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=yr(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:vr(t,r)});return cn(e,e.borderRadius,n)}return null};Ts.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Cn}:{};Ts.filterProps=["borderRadius"];Os(gg,bg,yg,vg,xg,Sg,Cg,wg,Eg,Og,Ts,Tg,Pg);const Ps=e=>{if(e.gap!==void 0&&e.gap!==null){const t=yr(e.theme,"spacing",8,"gap"),n=r=>({gap:vr(t,r)});return cn(e,e.gap,n)}return null};Ps.propTypes=process.env.NODE_ENV!=="production"?{gap:Cn}:{};Ps.filterProps=["gap"];const ks=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=yr(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:vr(t,r)});return cn(e,e.columnGap,n)}return null};ks.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Cn}:{};ks.filterProps=["columnGap"];const Ms=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=yr(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:vr(t,r)});return cn(e,e.rowGap,n)}return null};Ms.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Cn}:{};Ms.filterProps=["rowGap"];const kg=ot({prop:"gridColumn"}),Mg=ot({prop:"gridRow"}),Rg=ot({prop:"gridAutoFlow"}),Dg=ot({prop:"gridAutoColumns"}),Ig=ot({prop:"gridAutoRows"}),_g=ot({prop:"gridTemplateColumns"}),Ng=ot({prop:"gridTemplateRows"}),$g=ot({prop:"gridTemplateAreas"}),Ag=ot({prop:"gridArea"});Os(Ps,ks,Ms,kg,Mg,Rg,Dg,Ig,_g,Ng,$g,Ag);function lo(e,t){return t==="grey"?t:e}const jg=ot({prop:"color",themeKey:"palette",transform:lo}),Lg=ot({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:lo}),Fg=ot({prop:"backgroundColor",themeKey:"palette",transform:lo});Os(jg,Lg,Fg);function Tt(e){return e<=1&&e!==0?`${e*100}%`:e}const Vg=ot({prop:"width",transform:Tt}),ua=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,s;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||ca[n];return i?((s=e.theme)==null||(s=s.breakpoints)==null?void 0:s.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Tt(n)}};return cn(e,e.maxWidth,t)}return null};ua.filterProps=["maxWidth"];const Bg=ot({prop:"minWidth",transform:Tt}),zg=ot({prop:"height",transform:Tt}),Wg=ot({prop:"maxHeight",transform:Tt}),Ug=ot({prop:"minHeight",transform:Tt});ot({prop:"size",cssProperty:"width",transform:Tt});ot({prop:"size",cssProperty:"height",transform:Tt});const Hg=ot({prop:"boxSizing"});Os(Vg,ua,Bg,zg,Wg,Ug,Hg);const xr={border:{themeKey:"borders",transform:_t},borderTop:{themeKey:"borders",transform:_t},borderRight:{themeKey:"borders",transform:_t},borderBottom:{themeKey:"borders",transform:_t},borderLeft:{themeKey:"borders",transform:_t},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:_t},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ts},color:{themeKey:"palette",transform:lo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:lo},backgroundColor:{themeKey:"palette",transform:lo},p:{style:et},pt:{style:et},pr:{style:et},pb:{style:et},pl:{style:et},px:{style:et},py:{style:et},padding:{style:et},paddingTop:{style:et},paddingRight:{style:et},paddingBottom:{style:et},paddingLeft:{style:et},paddingX:{style:et},paddingY:{style:et},paddingInline:{style:et},paddingInlineStart:{style:et},paddingInlineEnd:{style:et},paddingBlock:{style:et},paddingBlockStart:{style:et},paddingBlockEnd:{style:et},m:{style:Je},mt:{style:Je},mr:{style:Je},mb:{style:Je},ml:{style:Je},mx:{style:Je},my:{style:Je},margin:{style:Je},marginTop:{style:Je},marginRight:{style:Je},marginBottom:{style:Je},marginLeft:{style:Je},marginX:{style:Je},marginY:{style:Je},marginInline:{style:Je},marginInlineStart:{style:Je},marginInlineEnd:{style:Je},marginBlock:{style:Je},marginBlockStart:{style:Je},marginBlockEnd:{style:Je},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:Ps},rowGap:{style:Ms},columnGap:{style:ks},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Tt},maxWidth:{style:ua},minWidth:{transform:Tt},height:{transform:Tt},maxHeight:{transform:Tt},minHeight:{transform:Tt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function qg(...e){const t=e.reduce((r,s)=>r.concat(Object.keys(s)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Yg(e,t){return typeof e=="function"?e(t):e}function ld(){function e(n,r,s,i){const a={[n]:r,theme:s},l=i[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:d,style:p}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const m=Cs(s,u)||{};return p?p(a):cn(a,r,h=>{let f=ts(m,d,h);return h===f&&typeof h=="string"&&(f=ts(m,d,`${n}${h==="default"?"":fe(h)}`,h)),c===!1?f:{[c]:f}})}function t(n){var r;const{sx:s,theme:i={},nested:a}=n||{};if(!s)return null;const l=(r=i.unstable_sxConfig)!=null?r:xr;function c(u){let d=u;if(typeof u=="function")d=u(i);else if(typeof u!="object")return u;if(!d)return null;const p=ag(i.breakpoints),m=Object.keys(p);let g=p;return Object.keys(d).forEach(h=>{const f=Yg(d[h],i);if(f!=null)if(typeof f=="object")if(l[h])g=Go(g,e(h,f,i,l));else{const b=cn({theme:i},f,x=>({[h]:x}));qg(b,f)?g[h]=t({sx:f,theme:i,nested:!0}):g=Go(g,b)}else g=Go(g,e(h,f,i,l))}),!a&&i.modularCssLayers?{"@layer sx":Ql(m,g)}:Ql(m,g)}return Array.isArray(s)?s.map(c):c(s)}return t}const Rs=ld();Rs.filterProps=["sx"];function cd(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const Gg=["breakpoints","palette","spacing","shape"];function ud(e={},...t){const{breakpoints:n={},palette:r={},spacing:s,shape:i={}}=e,a=re(e,Gg),l=sd(n),c=hg(s);let u=Pt({breakpoints:l,direction:"ltr",components:{},palette:C({mode:"light"},r),spacing:c,shape:C({},ig,i)},a);return u.applyStyles=cd,u=t.reduce((d,p)=>Pt(d,p),u),u.unstable_sxConfig=C({},xr,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(p){return Rs({sx:p,theme:this})},u}const Kg=Object.freeze(Object.defineProperty({__proto__:null,default:ud,private_createBreakpoints:sd,unstable_applyStyles:cd},Symbol.toStringTag,{value:"Module"})),Zg=xn(Kg),Xg=["sx"],Qg=e=>{var t,n;const r={systemProps:{},otherProps:{}},s=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:xr;return Object.keys(e).forEach(i=>{s[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function dd(e){const{sx:t}=e,n=re(e,Xg),{systemProps:r,otherProps:s}=Qg(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return hn(l)?C({},r,l):r}:i=C({},r,t),C({},s,{sx:i})}const Jg=Object.freeze(Object.defineProperty({__proto__:null,default:Rs,extendSxProp:dd,unstable_createStyleFunctionSx:ld,unstable_defaultSxConfig:xr},Symbol.toStringTag,{value:"Module"})),eb=xn(Jg);var Oo=Yu;Object.defineProperty(gr,"__esModule",{value:!0});var tb=gr.default=hb,Sr=gr.shouldForwardProp=Gr;gr.systemDefaultTheme=void 0;var Dt=Oo(dh()),Fi=Oo(fh()),ns=ub(rd),nb=tg,ob=Oo(ng),rb=Oo(og),sb=Oo(Zg),ib=Oo(eb);const ab=["ownerState"],lb=["variants"],cb=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function fd(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(fd=function(r){return r?n:t})(e)}function ub(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=fd(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=s?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function db(e){return Object.keys(e).length===0}function fb(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Gr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function ec(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const pb=gr.systemDefaultTheme=(0,sb.default)(),tc=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Nr({defaultTheme:e,theme:t,themeId:n}){return db(t)?e:t[n]||t}function mb(e){return e?(t,n)=>n[e]:null}function Kr(e,t,n){let{ownerState:r}=t,s=(0,Fi.default)(t,ab);const i=typeof e=="function"?e((0,Dt.default)({ownerState:r},s)):e;if(Array.isArray(i))return i.flatMap(a=>Kr(a,(0,Dt.default)({ownerState:r},s),n));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:a=[]}=i;let c=(0,Fi.default)(i,lb);return a.forEach(u=>{let d=!0;if(typeof u.props=="function"?d=u.props((0,Dt.default)({ownerState:r},s,r)):Object.keys(u.props).forEach(p=>{(r==null?void 0:r[p])!==u.props[p]&&s[p]!==u.props[p]&&(d=!1)}),d){Array.isArray(c)||(c=[c]);const p=typeof u.style=="function"?u.style((0,Dt.default)({ownerState:r},s,r)):u.style;c.push(n?ec((0,ns.internal_serializeStyles)(p),n):p)}}),c}return n?ec((0,ns.internal_serializeStyles)(i),n):i}function hb(e={}){const{themeId:t,defaultTheme:n=pb,rootShouldForwardProp:r=Gr,slotShouldForwardProp:s=Gr}=e,i=a=>(0,ib.default)((0,Dt.default)({},a,{theme:Nr((0,Dt.default)({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,l={})=>{(0,ns.internal_processStyles)(a,T=>T.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:d,skipSx:p,overridesResolver:m=mb(tc(u))}=l,g=(0,Fi.default)(l,cb),h=c&&c.startsWith("Mui")||u?"components":"custom",f=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,b=p||!1;let x;process.env.NODE_ENV!=="production"&&c&&(x=`${c}-${tc(u||"Root")}`);let O=Gr;u==="Root"||u==="root"?O=r:u?O=s:fb(a)&&(O=void 0);const v=(0,ns.default)(a,(0,Dt.default)({shouldForwardProp:O,label:x},g)),w=T=>typeof T=="function"&&T.__emotion_real!==T||(0,nb.isPlainObject)(T)?P=>{const V=Nr({theme:P.theme,defaultTheme:n,themeId:t});return Kr(T,(0,Dt.default)({},P,{theme:V}),V.modularCssLayers?h:void 0)}:T,E=(T,...P)=>{let V=w(T);const D=P?P.map(w):[];c&&m&&D.push(M=>{const F=Nr((0,Dt.default)({},M,{defaultTheme:n,themeId:t}));if(!F.components||!F.components[c]||!F.components[c].styleOverrides)return null;const j=F.components[c].styleOverrides,A={};return Object.entries(j).forEach(([I,N])=>{A[I]=Kr(N,(0,Dt.default)({},M,{theme:F}),F.modularCssLayers?"theme":void 0)}),m(M,A)}),c&&!f&&D.push(M=>{var F;const j=Nr((0,Dt.default)({},M,{defaultTheme:n,themeId:t})),A=j==null||(F=j.components)==null||(F=F[c])==null?void 0:F.variants;return Kr({variants:A},(0,Dt.default)({},M,{theme:j}),j.modularCssLayers?"theme":void 0)}),b||D.push(i);const L=D.length-P.length;if(Array.isArray(T)&&L>0){const M=new Array(L).fill("");V=[...T,...M],V.raw=[...T.raw,...M]}const $=v(V,...D);if(process.env.NODE_ENV!=="production"){let M;c&&(M=`${c}${(0,ob.default)(u||"")}`),M===void 0&&(M=`Styled(${(0,rb.default)(a)})`),$.displayName=M}return a.muiName&&($.muiName=a.muiName),$};return v.withConfig&&(E.withConfig=v.withConfig),E}}function gb(e,t){return C({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var rt={};const bb=xn(Rm),yb=xn(oh);var pd=Yu;Object.defineProperty(rt,"__esModule",{value:!0});var tt=rt.alpha=bd;rt.blend=Rb;rt.colorChannel=void 0;var vb=rt.darken=fa;rt.decomposeColor=$t;rt.emphasize=yd;var nc=rt.getContrastRatio=Ob;rt.getLuminance=os;rt.hexToRgb=md;rt.hslToRgb=gd;var xb=rt.lighten=pa;rt.private_safeAlpha=Tb;rt.private_safeColorChannel=void 0;rt.private_safeDarken=Pb;rt.private_safeEmphasize=Mb;rt.private_safeLighten=kb;rt.recomposeColor=To;rt.rgbToHex=Eb;var oc=pd(bb),Sb=pd(yb);function da(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}].`),(0,Sb.default)(e,t,n)}function md(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)),n?`rgb${n.length===4?"a":""}(${n.map((r,s)=>s<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Cb(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function $t(e){if(e.type)return e;if(e.charAt(0)==="#")return $t(md(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
70
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(
|
|
71
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(
|
|
72
|
-
`))}return b}const
|
|
73
|
-
The color object needs to have a \`main\` property or a \`${
|
|
74
|
-
\`color.main\` should be a string, but \`${JSON.stringify(
|
|
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 Sc(e){return bs(e,"spacing",8,"spacing")}function vs(e,t){return typeof t=="string"||t==null?t:e(t)}function I0(e,t){return n=>e.reduce((o,r)=>(o[r]=vs(t,n),o),{})}function A0(e,t,n,o){if(!t.includes(n))return null;const r=D0(n),i=I0(r,o),a=e[n];return On(e,a,i)}function Uh(e,t){const n=Sc(e.theme);return Object.keys(e).map(o=>A0(e,t,o,n)).reduce(Yr,{})}function lt(e){return Uh(e,$i)}lt.propTypes=process.env.NODE_ENV!=="production"?$i.reduce((e,t)=>(e[t]=Jn,e),{}):{};lt.filterProps=$i;function ct(e){return Uh(e,Li)}ct.propTypes=process.env.NODE_ENV!=="production"?Li.reduce((e,t)=>(e[t]=Jn,e),{}):{};ct.filterProps=Li;process.env.NODE_ENV!=="production"&&R0.reduce((e,t)=>(e[t]=Jn,e),{});function Vi(...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]?Yr(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 Yt(e){return typeof e!="number"?e:`${e}px solid`}function Jt(e,t){return dt({prop:e,themeKey:"borders",transform:t})}const N0=Jt("border",Yt),_0=Jt("borderTop",Yt),j0=Jt("borderRight",Yt),$0=Jt("borderBottom",Yt),L0=Jt("borderLeft",Yt),V0=Jt("borderColor"),F0=Jt("borderTopColor"),B0=Jt("borderRightColor"),z0=Jt("borderBottomColor"),W0=Jt("borderLeftColor"),U0=Jt("outline",Yt),H0=Jt("outlineColor"),Fi=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=bs(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:vs(t,o)});return On(e,e.borderRadius,n)}return null};Fi.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Jn}:{};Fi.filterProps=["borderRadius"];Vi(N0,_0,j0,$0,L0,V0,F0,B0,z0,W0,Fi,U0,H0);const Bi=e=>{if(e.gap!==void 0&&e.gap!==null){const t=bs(e.theme,"spacing",8,"gap"),n=o=>({gap:vs(t,o)});return On(e,e.gap,n)}return null};Bi.propTypes=process.env.NODE_ENV!=="production"?{gap:Jn}:{};Bi.filterProps=["gap"];const zi=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=bs(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:vs(t,o)});return On(e,e.columnGap,n)}return null};zi.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Jn}:{};zi.filterProps=["columnGap"];const Wi=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=bs(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:vs(t,o)});return On(e,e.rowGap,n)}return null};Wi.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Jn}:{};Wi.filterProps=["rowGap"];const Y0=dt({prop:"gridColumn"}),q0=dt({prop:"gridRow"}),G0=dt({prop:"gridAutoFlow"}),K0=dt({prop:"gridAutoColumns"}),Z0=dt({prop:"gridAutoRows"}),X0=dt({prop:"gridTemplateColumns"}),Q0=dt({prop:"gridTemplateRows"}),J0=dt({prop:"gridTemplateAreas"}),ex=dt({prop:"gridArea"});Vi(Bi,zi,Wi,Y0,q0,G0,K0,Z0,X0,Q0,J0,ex);function Xo(e,t){return t==="grey"?t:e}const tx=dt({prop:"color",themeKey:"palette",transform:Xo}),nx=dt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Xo}),ox=dt({prop:"backgroundColor",themeKey:"palette",transform:Xo});Vi(tx,nx,ox);function Ft(e){return e<=1&&e!==0?`${e*100}%`:e}const rx=dt({prop:"width",transform:Ft}),wc=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])||_i[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:Ft(n)}};return On(e,e.maxWidth,t)}return null};wc.filterProps=["maxWidth"];const sx=dt({prop:"minWidth",transform:Ft}),ix=dt({prop:"height",transform:Ft}),ax=dt({prop:"maxHeight",transform:Ft}),lx=dt({prop:"minHeight",transform:Ft});dt({prop:"size",cssProperty:"width",transform:Ft});dt({prop:"size",cssProperty:"height",transform:Ft});const cx=dt({prop:"boxSizing"});Vi(rx,wc,sx,ix,ax,lx,cx);const xs={border:{themeKey:"borders",transform:Yt},borderTop:{themeKey:"borders",transform:Yt},borderRight:{themeKey:"borders",transform:Yt},borderBottom:{themeKey:"borders",transform:Yt},borderLeft:{themeKey:"borders",transform:Yt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Yt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Fi},color:{themeKey:"palette",transform:Xo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Xo},backgroundColor:{themeKey:"palette",transform:Xo},p:{style:ct},pt:{style:ct},pr:{style:ct},pb:{style:ct},pl:{style:ct},px:{style:ct},py:{style:ct},padding:{style:ct},paddingTop:{style:ct},paddingRight:{style:ct},paddingBottom:{style:ct},paddingLeft:{style:ct},paddingX:{style:ct},paddingY:{style:ct},paddingInline:{style:ct},paddingInlineStart:{style:ct},paddingInlineEnd:{style:ct},paddingBlock:{style:ct},paddingBlockStart:{style:ct},paddingBlockEnd:{style:ct},m:{style:lt},mt:{style:lt},mr:{style:lt},mb:{style:lt},ml:{style:lt},mx:{style:lt},my:{style:lt},margin:{style:lt},marginTop:{style:lt},marginRight:{style:lt},marginBottom:{style:lt},marginLeft:{style:lt},marginX:{style:lt},marginY:{style:lt},marginInline:{style:lt},marginInlineStart:{style:lt},marginInlineEnd:{style:lt},marginBlock:{style:lt},marginBlockStart:{style:lt},marginBlockEnd:{style:lt},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:Bi},rowGap:{style:Wi},columnGap:{style:zi},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ft},maxWidth:{style:wc},minWidth:{transform:Ft},height:{transform:Ft},maxHeight:{transform:Ft},minHeight:{transform:Ft},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 ux(...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 dx(e,t){return typeof e=="function"?e(t):e}function fx(){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=ji(r,u)||{};return f?f(a):On(a,o,m=>{let g=di(p,d,m);return m===g&&typeof m=="string"&&(g=di(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??xs;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=E0(r.breakpoints),f=Object.keys(d);let p=d;return Object.keys(u).forEach(h=>{const m=dx(u[h],r);if(m!=null)if(typeof m=="object")if(a[h])p=Yr(p,e(h,m,r,a));else{const g=On({theme:r},m,y=>({[h]:y}));ux(g,m)?p[h]=t({sx:m,theme:r,nested:!0}):p=Yr(p,g)}else p=Yr(p,e(h,m,r,a))}),!i&&r.modularCssLayers?{"@layer sx":Od(r,Dd(f,p))}:Od(r,Dd(f,p))}return Array.isArray(o)?o.map(l):l(o)}return t}const nr=fx();nr.filterProps=["sx"];const px=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??xs;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function hx(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=px(n);let i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return pn(l)?{...o,...l}:o}:i={...o,...t},{...r,sx:i}}function mx(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Cc(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}].`),mx(e,t,n)}function gx(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(gx(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().`:yn(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.`:yn(10,r))}else o=o.split(",");return o=o.map(i=>parseFloat(i)),{type:n,values:o,colorSpace:r}}const yx=e=>{const t=qn(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},$r=(e,t)=>{try{return yx(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Ui(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 Hh(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])),Ui({type:l,values:c})}function Cl(e){e=qn(e);let t=e.type==="hsl"||e.type==="hsla"?qn(Hh(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 Id(e,t){const n=Cl(e),o=Cl(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function fi(e,t){return e=qn(e),t=Cc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ui(e)}function io(e,t,n){try{return fi(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Hi(e,t){if(e=qn(e),t=Cc(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 Ui(e)}function Be(e,t,n){try{return Hi(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Yi(e,t){if(e=qn(e),t=Cc(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 Ui(e)}function ze(e,t,n){try{return Yi(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function bx(e,t=.15){return Cl(e)>.5?Hi(e,t):Yi(e,t)}function Ls(e,t,n){try{return bx(e,t)}catch{return e}}const os={black:"#000",white:"#fff"},vx={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"},No={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},_o={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Cr={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},jo={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},$o={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Lo={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Yh(){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:os.white,default:os.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 qh=Yh();function Gh(){return{text:{primary:os.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:os.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 Tl=Gh();function Ad(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=Yi(e.main,r):t==="dark"&&(e.dark=Hi(e.main,i)))}function Nd(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 xx(e="light"){return e==="dark"?{main:jo[200],light:jo[50],dark:jo[400]}:{main:jo[700],light:jo[400],dark:jo[800]}}function Sx(e="light"){return e==="dark"?{main:No[200],light:No[50],dark:No[400]}:{main:No[500],light:No[300],dark:No[700]}}function wx(e="light"){return e==="dark"?{main:_o[500],light:_o[300],dark:_o[700]}:{main:_o[700],light:_o[400],dark:_o[800]}}function Cx(e="light"){return e==="dark"?{main:$o[400],light:$o[300],dark:$o[700]}:{main:$o[700],light:$o[500],dark:$o[900]}}function Tx(e="light"){return e==="dark"?{main:Lo[400],light:Lo[300],dark:Lo[700]}:{main:Lo[800],light:Lo[500],dark:Lo[900]}}function Px(e="light"){return e==="dark"?{main:Cr[400],light:Cr[300],dark:Cr[700]}:{main:"#ed6c02",light:Cr[500],dark:Cr[900]}}function Ex(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Tc(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,colorSpace:r,...i}=e,a=e.primary||xx(t),l=e.secondary||Sx(t),c=e.error||wx(t),u=e.info||Cx(t),d=e.success||Tx(t),f=e.warning||Px(t);function p(y){if(r)return Ex(y);const b=Id(y,Tl.text.primary)>=n?Tl.text.primary:qh.text.primary;if(process.env.NODE_ENV!=="production"){const C=Id(y,b);C<3&&console.error([`MUI: The contrast ratio of ${C}:1 for ${b} 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 b}const h=({color:y,name:b,mainShade:C=500,lightShade:w=300,darkShade:S=700})=>{if(y={...y},!y.main&&y[C]&&(y.main=y[C]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
|
|
65
|
+
The color object needs to have a \`main\` property or a \`${C}\` property.`:yn(11,b?` (${b})`:"",C));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
|
|
66
|
+
\`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
|
|
75
67
|
|
|
76
68
|
Did you intend to use one of the following approaches?
|
|
77
69
|
|
|
@@ -83,31 +75,56 @@ const theme1 = createTheme({ palette: {
|
|
|
83
75
|
|
|
84
76
|
const theme2 = createTheme({ palette: {
|
|
85
77
|
primary: { main: green[500] },
|
|
86
|
-
} });`:
|
|
87
|
-
|
|
88
|
-
`))}m[h]={}}}};Object.keys(u.components).forEach(m=>{const g=u.components[m].styleOverrides;g&&m.indexOf("Mui")===0&&p(g,m)})}return u.unstable_sxConfig=C({},xr,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(p){return Rs({sx:p,theme:this})},u}const ma=ey(),ha="$$material";function vd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Yt=e=>vd(e)&&e!=="classes",ye=tb({themeId:ha,defaultTheme:ma,rootShouldForwardProp:Yt});function ty(e){return Ie("MuiSvgIcon",e)}Re("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ny=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],oy=e=>{const{color:t,fontSize:n,classes:r}=e,s={root:["root",t!=="inherit"&&`color${fe(t)}`,`fontSize${fe(n)}`]};return Ve(s,ty,r)},ry=ye("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${fe(n.color)}`],t[`fontSize${fe(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,s,i,a,l,c,u,d,p,m,g,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(s=e.transitions)==null||(s=s.duration)==null?void 0:s.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(p=(m=(e.vars||e).palette)==null||(m=m[t.color])==null?void 0:m.main)!=null?p:{action:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.disabled,inherit:void 0}[t.color]}}),rs=S.forwardRef(function(t,n){const r=Be({props:t,name:"MuiSvgIcon"}),{children:s,className:i,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:m="0 0 24 24"}=r,g=re(r,ny),h=S.isValidElement(s)&&s.type==="svg",f=C({},r,{color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:m,hasSvgAsChild:h}),b={};d||(b.viewBox=m);const x=oy(f);return y.jsxs(ry,C({as:l,className:me(x.root,i),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n},b,g,h&&s.props,{ownerState:f,children:[h?s.props.children:s,p?y.jsx("title",{children:p}):null]}))});process.env.NODE_ENV!=="production"&&(rs.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,fontSize:o.oneOfType([o.oneOf(["inherit","large","medium","small"]),o.string]),htmlColor:o.string,inheritViewBox:o.bool,shapeRendering:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleAccess:o.string,viewBox:o.string});rs.muiName="SvgIcon";function dt(e,t){function n(r,s){return y.jsx(rs,C({"data-testid":`${t}Icon`,ref:s},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=rs.muiName,S.memo(S.forwardRef(n))}const sy=dt(y.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),iy=dt(y.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),ay=(e,t)=>()=>{if(!t)return;const n={};e.forEach(r=>{r.items.forEach(s=>{s.value!==void 0&&s.value!==null&&s.value!==""&&(n[s.id]=s.value)})}),console.log("Filtros ativos:",n),t(n)},ly=(e,t,n)=>()=>{const r=e.map(s=>({...s,items:s.items.map(i=>({...i,value:void 0}))}));n&&n(r),t&&t()},cy=(e,t,n)=>()=>{const r=t.map(s=>s.id===e?{...s,expanded:!s.expanded}:s);n(r)},uy=(e,t,n,r)=>s=>{const i=n.map(a=>a.id===e?{...a,items:a.items.map(l=>l.id===t?{...l,value:s}:l)}:a);r(i)},dy="_modal_11tr7_1",fy="_content_11tr7_60",py="_header_11tr7_67",my="_title_11tr7_74",hy="_description_11tr7_83",gy="_filtersContent_11tr7_92",by="_filterGroup_11tr7_102",yy="_expandableHeader_11tr7_109",vy="_expandableLabel_11tr7_119",xy="_chevronIcon_11tr7_127",Sy="_chevron_11tr7_127",Cy="_filterItems_11tr7_140",wy="_filterItem_11tr7_140",Ey="_filterItemSize1_11tr7_152",Oy="_filterItemSize2_11tr7_156",Ty="_filterItemSize3_11tr7_160",Py="_filterItemSize4_11tr7_164",ky="_filterItemSize5_11tr7_168",My="_filterItemSize6_11tr7_172",Ry="_filterInput_11tr7_176",Dy="_inputLabel_11tr7_180",Iy="_select_11tr7_184",_y="_placeholder_11tr7_201",Ny="_helperText_11tr7_205",$y="_footer_11tr7_212",Ay="_clearButton_11tr7_219",jy="_applyButton_11tr7_241",qe={modal:dy,content:fy,header:py,title:my,description:hy,filtersContent:gy,filterGroup:by,expandableHeader:yy,expandableLabel:vy,chevronIcon:xy,chevron:Sy,filterItems:Cy,filterItem:wy,filterItemSize1:Ey,filterItemSize2:Oy,filterItemSize3:Ty,filterItemSize4:Py,filterItemSize5:ky,filterItemSize6:My,filterInput:Ry,inputLabel:Dy,select:Iy,"Mui-focused":"_Mui-focused_11tr7_193",placeholder:_y,helperText:Ny,footer:$y,clearButton:Ay,applyButton:jy},xd=({open:e,onClose:t,title:n="Filtros",description:r="Use os filtros abaixo para encontrar câmeras e pontos de interesse.",groups:s,onApply:i,onClear:a,clearButtonText:l="Limpar filtros",applyButtonText:c="Filtrar",className:u,...d})=>{const m=Q.useTheme().palette.mode==="dark",[g,h]=z.useState(s);z.useEffect(()=>{h(s)},[s]);const f=ay(g,i),b=ly(g,a,h),x=(O,v)=>{var P;const w=uy(v,O.id,g,h),E=O.size||6,T=qe[`filterItemSize${E}`];if(O.render)return y.jsx(Q.Box,{className:`${qe.filterItem} ${T}`,children:O.render(O,w)},O.id);switch(O.type){case"select":case"multi-select":const V=O.type==="multi-select";let D;V?O.value!==void 0&&O.value!==null?D=Array.isArray(O.value)?O.value:[O.value]:D=[]:D=O.value!==void 0&&O.value!==null?O.value:"";const L=V?Array.isArray(D)&&D.length>0:D!==""&&D!==null&&D!==void 0;return y.jsx(Q.Box,{className:`${qe.filterItem} ${T}`,children:y.jsxs(Q.FormControl,{fullWidth:!0,className:qe.filterInput,children:[y.jsx(Q.InputLabel,{id:`${O.id}-label`,className:qe.inputLabel,shrink:L,children:O.label}),y.jsx(Q.Select,{labelId:`${O.id}-label`,value:D,onChange:$=>w($.target.value),multiple:V,label:O.label,className:qe.select,displayEmpty:!0,renderValue:$=>{var F;if(V){const j=Array.isArray($)?$:[];return j.length===0?y.jsx(Q.Box,{component:"span",style:{opacity:0},children:O.label}):j.map(I=>{var N,_;return((_=(N=O.options)==null?void 0:N.find(B=>B.value===I))==null?void 0:_.label)||I}).join(", ")}if(!$||$==="")return y.jsx(Q.Box,{component:"span",style:{opacity:0},children:O.label});const M=(F=O.options)==null?void 0:F.find(j=>j.value===$);return(M==null?void 0:M.label)||$},notched:L,children:(P=O.options)==null?void 0:P.map($=>y.jsx(Q.MenuItem,{value:$.value,children:$.label},$.value))}),O.helperText&&y.jsx(Q.Box,{className:qe.helperText,children:O.helperText})]})},O.id);case"text":return y.jsx(Q.Box,{className:`${qe.filterItem} ${T}`,children:y.jsx(Q.TextField,{fullWidth:!0,label:O.label,placeholder:O.placeholder,value:O.value||"",onChange:$=>w($.target.value),className:qe.filterInput,helperText:O.helperText,FormHelperTextProps:{className:qe.helperText}})},O.id);default:return null}};return y.jsx(Q.Dialog,{open:e,onClose:t,maxWidth:"md",fullWidth:!0,PaperProps:{className:`${qe.modal} ${u||""}`,"data-theme":m?"dark":"light"},...d,children:y.jsxs(Q.DialogContent,{className:qe.content,children:[y.jsxs(Q.Box,{className:qe.header,children:[y.jsx(Q.Box,{className:qe.title,children:n}),y.jsx(Q.Box,{className:qe.description,children:r})]}),y.jsx(Q.Box,{className:qe.filtersContent,children:g.map(O=>{const v=cy(O.id,g,h),w=O.expanded!==!1;return y.jsxs(Q.Box,{className:qe.filterGroup,children:[y.jsxs(Q.Box,{className:qe.expandableHeader,onClick:v,children:[y.jsx(Q.Box,{className:qe.expandableLabel,children:O.label}),y.jsx(Q.Box,{className:qe.chevronIcon,children:w?y.jsx(iy,{className:qe.chevron}):y.jsx(sy,{className:qe.chevron})})]}),w&&y.jsx(Q.Box,{className:qe.filterItems,children:O.items.map(E=>x(E,O.id))})]},O.id)})}),y.jsxs(Q.Box,{className:qe.footer,children:[y.jsx(Q.Button,{onClick:b,className:qe.clearButton,"data-theme":m?"dark":"light",children:l}),y.jsx(Q.Button,{onClick:f,className:qe.applyButton,"data-theme":m?"dark":"light",children:c})]})]})})};xd.displayName="FilterModal";const Ly="_container_1hyey_1",Fy="_card_1hyey_7",Vy="_icon_1hyey_18",By="_text_1hyey_32",$r={container:Ly,card:Fy,icon:Vy,text:By},zy=({items:e,className:t,sx:n})=>{const r=Q.useTheme(),s={backgroundColor:r.palette.background.paper,borderColor:r.palette.divider},i={color:r.palette.text.primary,"& svg":{fill:r.palette.text.primary}},a={color:r.palette.text.secondary,fontFamily:r.typography.fontFamily,fontSize:r.typography.body2.fontSize,fontWeight:r.typography.fontWeightMedium,lineHeight:r.typography.body2.lineHeight};return y.jsx(Q.Box,{className:`${$r.container} ${t||""}`,sx:n,children:e.map((l,c)=>y.jsxs(Q.Box,{className:$r.card,sx:s,children:[l.icon&&y.jsx(Q.Box,{className:$r.icon,sx:i,children:l.icon}),y.jsxs(Q.Typography,{component:"span",className:$r.text,sx:a,children:[l.count," ",l.label]})]},c))})},Wy=(e,t=1,n=13)=>()=>{if(!e)return;const r=e.getZoom()??n;e.setZoom(r+t)},Uy=(e,t=1,n=1,r=13)=>()=>{if(!e)return;const s=e.getZoom()??r;e.setZoom(Math.max(n,s-t))},Hy="_container_1whpg_2",qy="_zoomButton_1whpg_10",Yy="_stateLayer_1whpg_43",Gy="_icon_1whpg_59",Kt={container:Hy,zoomButton:qy,stateLayer:Yy,icon:Gy},Ky=({map:e,className:t,sx:n,zoomIncrement:r=1,minZoom:s=1,fallbackZoom:i=13,onFullscreen:a})=>{const c=Q.useTheme().palette.mode==="dark",u=Wy(e,r,i),d=Uy(e,r,s,i),p={backgroundColor:c?"#DEDDDD":"#101111","&:hover":{backgroundColor:c?"#DEDDDD":"#101111",opacity:.9}},m={fill:c?"#101111":"#FDFCFC",color:c?"#101111":"#FDFCFC"};return y.jsxs(Q.Box,{className:`${Kt.container} ${t||""}`,sx:n,children:[y.jsx(Q.IconButton,{className:Kt.zoomButton,onClick:u,"aria-label":"Zoom in",sx:p,children:y.jsx(Q.Box,{className:Kt.stateLayer,children:y.jsx(Wt.Add,{className:Kt.icon,sx:m})})}),y.jsx(Q.IconButton,{className:Kt.zoomButton,onClick:d,"aria-label":"Zoom out",sx:p,children:y.jsx(Q.Box,{className:Kt.stateLayer,children:y.jsx(Wt.Remove,{className:Kt.icon,sx:m})})}),y.jsx(Q.IconButton,{className:Kt.zoomButton,onClick:a,"aria-label":"Fullscreen",sx:p,children:y.jsx(Q.Box,{className:Kt.stateLayer,children:y.jsx(Wt.ZoomOutMap,{className:Kt.icon,sx:m})})})]})};var Zy=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,s,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(s=r;s--!==0;)if(!e(t[s],n[s]))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),r=i.length,r!==Object.keys(n).length)return!1;for(s=r;s--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[s]))return!1;for(s=r;s--!==0;){var a=i[s];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n};const Xy=vn(Zy),Qy="1.7.1";function go(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 s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function Vi(e,t,n,r){function s(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(r.next(d))}catch(p){a(p)}}function c(d){try{u(r.throw(d))}catch(p){a(p)}}function u(d){d.done?i(d.value):s(d.value).then(l,c)}u((r=r.apply(e,[])).next())})}const rn={NOT_LOADED:"NOT_LOADED",LOADING:"LOADING",LOADED:"LOADED",FAILED:"FAILED",AUTH_FAILURE:"AUTH_FAILURE"},Jy="https://maps.googleapis.com/maps/api/js";class ss{static load(t,n){return Vi(this,void 0,void 0,function*(){var r,s;const i=t.libraries?t.libraries.split(","):[],a=this.serializeParams(t);this.listeners.push(n),!((s=(r=window.google)===null||r===void 0?void 0:r.maps)===null||s===void 0)&&s.importLibrary?(this.serializedApiParams||(this.loadingStatus=rn.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 r=()=>n||(n=new Promise((s,i)=>{var a;const l=document.createElement("script"),c=new URLSearchParams;for(const[u,d]of Object.entries(t)){const p=u.replace(/[A-Z]/g,m=>"_"+m[0].toLowerCase());c.set(p,String(d))}c.set("loading","async"),c.set("callback","__googleMapsCallback__"),l.async=!0,l.src=Jy+"?"+c.toString(),l.nonce=((a=document.querySelector("script[nonce]"))===null||a===void 0?void 0:a.nonce)||"",l.onerror=()=>{this.loadingStatus=rn.FAILED,this.notifyLoadingStatusListeners(),i(new Error("The Google Maps JavaScript API could not load."))},window.__googleMapsCallback__=()=>{this.loadingStatus=rn.LOADED,this.notifyLoadingStatusListeners(),s()},window.gm_authFailure=()=>{this.loadingStatus=rn.AUTH_FAILURE,this.notifyLoadingStatusListeners()},this.loadingStatus=rn.LOADING,this.notifyLoadingStatusListeners(),document.head.append(l)}),n);google.maps.importLibrary=s=>r().then(()=>google.maps.importLibrary(s))}static notifyLoadingStatusListeners(){for(const t of this.listeners)t(this.loadingStatus)}}ss.loadingStatus=rn.NOT_LOADED;ss.listeners=[];const ev="GMP_visgl_rgmlibrary_v1_default",tv=[`gmp_visgl_reactgooglemaps_v${Qy}`],Cr=z.createContext(null);function nv(){const[e,t]=z.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=go(a,[typeof l=="symbol"?l:l+""]);return c})},clearMapInstances:()=>{t({})}}}function ov(e){const{onLoad:t,onError:n,apiKey:r,version:s,libraries:i=[]}=e,a=go(e,["onLoad","onError","apiKey","version","libraries"]),[l,c]=z.useState(ss.loadingStatus),[u,d]=z.useReducer((h,f)=>h[f.name]?h:Object.assign(Object.assign({},h),{[f.name]:f.value}),{}),p=z.useMemo(()=>i==null?void 0:i.join(","),[i]),m=z.useMemo(()=>JSON.stringify(Object.assign({apiKey:r,version:s},a)),[r,s,a]),g=z.useCallback(h=>Vi(this,void 0,void 0,function*(){var f;if(u[h])return u[h];if(!(!((f=google==null?void 0:google.maps)===null||f===void 0)&&f.importLibrary))throw new Error("[api-provider-internal] importLibrary was called before google.maps.importLibrary was defined.");const b=yield window.google.maps.importLibrary(h);return d({name:h,value:b}),b}),[u]);return z.useEffect(()=>{Vi(this,void 0,void 0,function*(){try{const h=Object.assign({key:r},a);s&&(h.v=s),(p==null?void 0:p.length)>0&&(h.libraries=p),(h.channel===void 0||h.channel<0||h.channel>999)&&delete h.channel,h.solutionChannel===void 0?h.solutionChannel=ev:h.solutionChannel===""&&delete h.solutionChannel,yield ss.load(h,f=>c(f));for(const f of["core","maps",...i])yield g(f);t&&t()}catch(h){n?n(h):console.error("<ApiProvider> failed to load the Google Maps JavaScript API",h)}})},[r,p,m]),{status:l,loadedLibraries:u,importLibrary:g}}function rv(e){return z.useMemo(()=>e.disableUsageAttribution?null:tv,[e.disableUsageAttribution])}const sv=e=>{const{children:t}=e,n=go(e,["children"]),{mapInstances:r,addMapInstance:s,removeMapInstance:i,clearMapInstances:a}=nv(),{status:l,loadedLibraries:c,importLibrary:u}=ov(n),d=rv(n),p=z.useMemo(()=>({mapInstances:r,addMapInstance:s,removeMapInstance:i,clearMapInstances:a,status:l,loadedLibraries:c,importLibrary:u,internalUsageAttributionIds:d}),[r,s,i,a,l,c,u,d]);return z.createElement(Cr.Provider,{value:p},t)};function iv(e,t){for(const n of uv){const r=t[n],s=Sd[n];z.useEffect(()=>{if(!e||!r)return;const i=google.maps.event.addListener(e,s,a=>{r(av(s,e,a))});return()=>i.remove()},[e,s,r])}}function av(e,t,n){var r;const s={type:e,map:t,detail:{},stoppable:!1,stop:()=>{}};if(lv.includes(e)){const i=s,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(cv.includes(e)){if(!n)throw new Error("[createEvent] mouse events must provide a srcEvent");const i=s;return i.domEvent=n.domEvent,i.stoppable=!0,i.stop=()=>n.stop(),i.detail={latLng:((r=n.latLng)===null||r===void 0?void 0:r.toJSON())||null,placeId:n.placeId},i}return s}const Sd={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"},lv=["bounds_changed","center_changed","heading_changed","tilt_changed","zoom_changed"],cv=["click","contextmenu","dblclick","mousemove","mouseout","mouseover"],uv=Object.keys(Sd);function dv(e){const t=z.useRef(void 0);return z.useEffect(()=>{t.current=e}),t.current}function fv(e,t){const n=dv(e);return z.useMemo(()=>n&&t(n,e)?n:e,[e,n,t])}function pv(e,t,n){z.useEffect(e,[fv(t,n)])}function mv(e,t){pv(e,t,Xy)}const hv=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 gv(e,t){const n={},r=Object.keys(t);for(const s of r)hv.has(s)&&(n[s]=t[s]);mv(()=>{e&&e.setOptions(n)},[n])}function Cd(){var e;return((e=z.useContext(Cr))===null||e===void 0?void 0:e.status)||rn.NOT_LOADED}function bv(e,t){const{viewport:n,viewState:r}=t,s=!!n;return z.useLayoutEffect(()=>{if(!e||!r)return;const{latitude:i,longitude:a,bearing:l,pitch:c,zoom:u}=r;e.moveCamera({center:{lat:i,lng:a},heading:l,tilt:c,zoom:u+1})},[e,r]),s}function yv(e){return!e||typeof e!="object"||!("lat"in e&&"lng"in e)?!1:Number.isFinite(e.lat)&&Number.isFinite(e.lng)}function wd(e){return yv(e)?e:e.toJSON()}function vv(e,t,n){const r=n.center?wd(n.center):null;let s=null,i=null;r&&Number.isFinite(r.lat)&&Number.isFinite(r.lng)&&(s=r.lat,i=r.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;z.useLayoutEffect(()=>{if(!e)return;const u={};let d=!1;s!==null&&i!==null&&(t.current.center.lat!==s||t.current.center.lng!==i)&&(u.center={lat:s,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 xv=()=>{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 z.createElement("div",{style:e},z.createElement("h2",null,"Error: AuthFailure"),z.createElement("p",null,"A problem with your API key prevents the map from rendering correctly. Please make sure the value of the ",z.createElement("code",null,"APIProvider.apiKey")," prop is correct. Check the error-message in the console for further details."))};function Sv(){const[e,t]=z.useState(null),n=z.useCallback(r=>t(r),[t]);return[e,n]}function Ed(){return Cd()===rn.LOADED}function Cv(){const[,e]=z.useReducer(t=>t+1,0);return e}function wv(e,t){const n=e.getCenter(),r=e.getZoom(),s=e.getHeading()||0,i=e.getTilt()||0,a=e.getBounds();(!n||!a||!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:s,tilt:i})}function Ev(e){const t=Cv(),n=z.useRef({center:{lat:0,lng:0},heading:0,tilt:0,zoom:0});return z.useEffect(()=>{if(!e)return;const r=google.maps.event.addListener(e,"bounds_changed",()=>{wv(e,n),t()});return()=>r.remove()},[e,t]),n}class Zr{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)}}Zr.entries={};function Ov(e,t){const n=Ed(),[r,s]=z.useState(null),[i,a]=Sv(),l=Ev(r),{id:c,defaultBounds:u,defaultCenter:d,defaultZoom:p,defaultHeading:m,defaultTilt:g,reuseMaps:h,renderingType:f,colorScheme:b}=e,x=go(e,["id","defaultBounds","defaultCenter","defaultZoom","defaultHeading","defaultTilt","reuseMaps","renderingType","colorScheme"]),O=e.zoom!==void 0||e.defaultZoom!==void 0,v=e.center!==void 0||e.defaultCenter!==void 0;!u&&(!O||!v)&&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"),!x.center&&d&&(x.center=d),!x.zoom&&Number.isFinite(p)&&(x.zoom=p),!x.heading&&Number.isFinite(m)&&(x.heading=m),!x.tilt&&Number.isFinite(g)&&(x.tilt=g);const w=x.internalUsageAttributionIds;w==null?x.internalUsageAttributionIds=t.internalUsageAttributionIds:x.internalUsageAttributionIds=[...t.internalUsageAttributionIds||[],...w];for(const T of Object.keys(x))x[T]===void 0&&delete x[T];const E=z.useRef(void 0);return z.useEffect(()=>{if(!i||!n)return;const{addMapInstance:T,removeMapInstance:P}=t,{mapId:V}=e,D=`${V||"default"}:${f||"default"}:${b||"LIGHT"}`;let L,$;if(h&&Zr.has(D)?($=Zr.pop(D),L=$.getDiv(),i.appendChild(L),$.setOptions(x),setTimeout(()=>$.setCenter($.getCenter()),0)):(L=document.createElement("div"),L.style.height="100%",i.appendChild(L),$=new google.maps.Map(L,Object.assign(Object.assign(Object.assign({},x),f?{renderingType:f}:{}),b?{colorScheme:b}:{}))),s($),T($,c),u){const{padding:M}=u,F=go(u,["padding"]);$.fitBounds(F,M)}else(!O||!v)&&$.fitBounds({east:180,west:-180,south:-90,north:90});if(E.current){const{mapId:M,cameraState:F}=E.current;M!==V&&$.setOptions(F)}return()=>{E.current={mapId:V,cameraState:l.current},L.remove(),h?Zr.push(D,$):google.maps.event.clearInstanceListeners($),s(null),P(c)}},[i,n,c,e.mapId,e.renderingType,e.colorScheme]),[r,a,l]}const Od=z.createContext(null),Td=e=>{const{children:t,id:n,className:r,style:s}=e,i=z.useContext(Cr),a=Cd();if(!i)throw new Error("<Map> can only be used inside an <ApiProvider> component.");const[l,c,u]=Ov(e,i);vv(l,u,e),iv(l,e),gv(l,e);const d=bv(l,e),p=!!e.controlled;z.useEffect(()=>{if(l)return d&&l.setOptions({disableDefaultUI:!0}),(d||p)&&l.setOptions({gestureHandling:"none",keyboardShortcuts:!1}),()=>{l.setOptions({gestureHandling:e.gestureHandling,keyboardShortcuts:e.keyboardShortcuts})}},[l,d,p,e.gestureHandling,e.keyboardShortcuts]);const m=e.center?wd(e.center):null;let g=null,h=null;m&&Number.isFinite(m.lat)&&Number.isFinite(m.lng)&&(g=m.lat,h=m.lng);const f=z.useMemo(()=>{var O,v,w;return{center:{lat:g??0,lng:h??0},zoom:(O=e.zoom)!==null&&O!==void 0?O:0,heading:(v=e.heading)!==null&&v!==void 0?v:0,tilt:(w=e.tilt)!==null&&w!==void 0?w:0}},[g,h,e.zoom,e.heading,e.tilt]);z.useLayoutEffect(()=>{if(!l||!p)return;l.moveCamera(f);const O=l.addListener("bounds_changed",()=>{l.moveCamera(f)});return()=>O.remove()},[l,p,f]);const b=z.useMemo(()=>Object.assign({width:"100%",height:"100%",position:"relative",zIndex:d?-1:0},s),[s,d]),x=z.useMemo(()=>({map:l}),[l]);return a===rn.AUTH_FAILURE?z.createElement("div",{style:Object.assign({position:"relative"},r?{}:b),className:r},z.createElement(xv,null)):z.createElement("div",Object.assign({ref:c,"data-testid":"map",style:r?void 0:b,className:r},n?{id:n}:{}),l?z.createElement(Od.Provider,{value:x},t):null)};Td.deckGLViewProps=!0;const cc=new Set;function Tv(...e){const t=JSON.stringify(e);cc.has(t)||(cc.add(t),console.error(...e))}const Ds=(e=null)=>{const t=z.useContext(Cr),{map:n}=z.useContext(Od)||{};if(t===null)return Tv("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 Pv(e){const t=Ed(),n=z.useContext(Cr);return z.useEffect(()=>{!t||!n||n.importLibrary(e)},[t,n,e]),(n==null?void 0:n.loadedLibraries[e])||null}function Ar(e,t,n){z.useEffect(()=>{if(!e||!t||!n)return;const r=google.maps.event.addListener(e,t,n);return()=>r.remove()},[e,t,n])}function jr(e,t,n){z.useEffect(()=>{e&&(e[t]=n)},[e,t,n])}function uc(e,t,n){z.useEffect(()=>{if(!(!e||!t||!n))return e.addEventListener(t,n),()=>e.removeEventListener(t,n)},[e,t,n])}class kv{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+=`
|
|
78
|
+
} });`:yn(12,b?` (${b})`:"",JSON.stringify(y.main)));return r?(Nd(r,y,"light",w,o),Nd(r,y,"dark",S,o)):(Ad(y,"light",w,o),Ad(y,"dark",S,o)),y.contrastText||(y.contrastText=p(y.main)),y};let m;return t==="light"?m=Yh():t==="dark"&&(m=Gh()),process.env.NODE_ENV!=="production"&&(m||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Ot({common:{...os},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:vx,contrastThreshold:n,getContrastText:p,augmentColor:h,tonalOffset:o,...m},i)}function Mx(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 Ox={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 kx(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Dx=/[A-Z]|^ms/g,Rx=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Kh=function(t){return t.charCodeAt(1)===45},_d=function(t){return t!=null&&typeof t!="boolean"},La=kx(function(e){return Kh(e)?e:e.replace(Dx,"-$&").toLowerCase()}),jd=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Rx,function(o,r,i){return zn={name:r,styles:i,next:zn},r})}return Ox[t]!==1&&!Kh(t)&&typeof n=="number"&&n!==0?n+"px":n};function pi(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 zn={name:r.name,styles:r.styles,next:zn},r.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)zn={name:a.name,styles:a.styles,next:zn},a=a.next;var l=i.styles+";";return l}return Ix(e,t,n)}}var c=n;return c}function Ix(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=pi(e,t,n[r])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;_d(l)&&(o+=La(i)+":"+jd(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var c=0;c<a.length;c++)_d(a[c])&&(o+=La(i)+":"+jd(i,a[c])+";");else{var u=pi(e,t,a);switch(i){case"animation":case"animationName":{o+=La(i)+":"+u+";";break}default:o+=i+"{"+u+"}"}}}return o}var $d=/label:\s*([^\s;{]+)\s*(;|$)/g,zn;function Ax(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="";zn=void 0;var i=e[0];if(i==null||i.raw===void 0)o=!1,r+=pi(n,t,i);else{var a=i;r+=a[0]}for(var l=1;l<e.length;l++)if(r+=pi(n,t,e[l]),o){var c=i;r+=c[l]}$d.lastIndex=0;for(var u="",d;(d=$d.exec(r))!==null;)u+="-"+d[1];var f=Mx(r)+u;return{name:f,styles:r,next:zn}}/**
|
|
79
|
+
* @mui/styled-engine v7.3.7
|
|
80
|
+
*
|
|
81
|
+
* @license MIT
|
|
82
|
+
* This source code is licensed under the MIT license found in the
|
|
83
|
+
* LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/function Nx(e,t){const n=$v(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 _x(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Ld=[];function Eo(e){return Ld[0]=e,Ax(Ld)}const jx="exact-prop: ";function Zh(e){return process.env.NODE_ENV==="production"?e:{...e,[jx]: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 St=typeof window<"u"?E.useLayoutEffect:E.useEffect;function $x(e){return Object.keys(e).length===0}function Lx(e=null){const t=E.useContext(Lv.ThemeContext);return!t||$x(t)?e:t}const Vx=E.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const an=()=>E.useContext(Vx)??!1;function rs(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]=rs(a[u],l[u],n)}}}else i==="className"&&n&&t.className?o.className=ge(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 Fx=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function Bx(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?rs(r.defaultProps,o,t.components.mergeClassNameAndStyle):!r.styleOverrides&&!r.variants?rs(r,o,t.components.mergeClassNameAndStyle):o}function zx({props:e,name:t}){const n=E.useContext(Fx);return Bx({props:e,name:t,theme:{components:n}})}let Vd=0;function Wx(e){const[t,n]=E.useState(e),o=e||t;return E.useEffect(()=>{t==null&&(Vd+=1,n(`mui-${Vd}`))},[t]),o}const Ux={...E},Fd=Ux.useId;function eo(e){if(Fd!==void 0){const t=Fd();return e??t}return Wx(e)}const Hx=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 Yx(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,i=Hx(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 qx={borderRadius:4};function Gx(e=8,t=Sc({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 Kx(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 Xh(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...a}=e,l=Yx(n),c=Gx(r);let u=Ot({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:c,shape:{...qx,...i}},a);return u=T0(u),u.applyStyles=Kx,u=t.reduce((d,f)=>Ot(d,f),u),u.unstable_sxConfig={...xs,...a==null?void 0:a.unstable_sxConfig},u.unstable_sx=function(f){return nr({sx:f,theme:this})},u}const Bd=(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])})},Zx=(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)},Xx=(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 Va(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},a={};return Zx(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!o||!o(l,c))){const d=`--${n?`${n}-`:""}${l.join("-")}`,f=Xx(l,c);Object.assign(r,{[d]:f}),Bd(i,l,`var(${d})`,u),Bd(a,l,`var(${d}, ${f})`,u)}},l=>l[0]==="vars"),{css:r,vars:i,varsWithDefaults:a}}function Qx(e,t={}){const{getSelector:n=b,disableCssColorScheme:o,colorSchemeSelector:r,enableContrastVars:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...u}=e,{vars:d,css:f,varsWithDefaults:p}=Va(u,t);let h=p;const m={},{[c]:g,...y}=a;if(Object.entries(y||{}).forEach(([S,T])=>{const{vars:P,css:A,varsWithDefaults:I}=Va(T,t);h=Ot(h,I),m[S]={css:A,vars:P}}),g){const{css:S,vars:T,varsWithDefaults:P}=Va(g,t);h=Ot(h,P),m[c]={css:S,vars:T}}function b(S,T){var A,I;let P=r;if(r==="class"&&(P=".%s"),r==="data"&&(P="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(P=`[${r}="%s"]`),S){if(P==="media")return e.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${((I=(A=a[S])==null?void 0:A.palette)==null?void 0:I.mode)||S})`]:{":root":T}};if(P)return e.defaultColorScheme===S?`:root, ${P.replace("%s",String(S))}`:P.replace("%s",String(S))}return":root"}return{vars:h,generateThemeVars:()=>{let S={...d};return Object.entries(m).forEach(([,{vars:T}])=>{S=Ot(S,T)}),S},generateStyleSheets:()=>{var k,V;const S=[],T=e.defaultColorScheme||"light";function P(N,x){Object.keys(x).length&&S.push(typeof N=="string"?{[N]:{...x}}:N)}P(n(void 0,{...f}),f);const{[T]:A,...I}=m;if(A){const{css:N}=A,x=(V=(k=a[T])==null?void 0:k.palette)==null?void 0:V.mode,j=!o&&x?{colorScheme:x,...N}:{...N};P(n(T,{...j}),j)}return Object.entries(I).forEach(([N,{css:x}])=>{var O,D;const j=(D=(O=a[N])==null?void 0:O.palette)==null?void 0:D.mode,R=!o&&j?{colorScheme:j,...x}:{...x};P(n(N,{...R}),R)}),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 Jx(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 eS(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 tS={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=tS[t];return o?`${n}-${o}`:`${u0.generate(e)}-${t}`}function nS(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function oS(e){return Math.round(e*1e5)/1e5}const zd={textTransform:"uppercase"},Wd='"Roboto", "Helvetica", "Arial", sans-serif';function rS(e,t){const{fontFamily:n=Wd,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,b,C,w,S)=>({fontFamily:n,fontWeight:y,fontSize:h(b),lineHeight:C,...n===Wd?{letterSpacing:`${oS(w/b)}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,zd),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,zd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ot({htmlFontSize:c,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...g},f,{clone:!1})}const sS=.2,iS=.14,aS=.12;function Je(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${sS})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${iS})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${aS})`].join(",")}const lS=["none",Je(0,2,1,-1,0,1,1,0,0,1,3,0),Je(0,3,1,-2,0,2,2,0,0,1,5,0),Je(0,3,3,-2,0,3,4,0,0,1,8,0),Je(0,2,4,-1,0,4,5,0,0,1,10,0),Je(0,3,5,-1,0,5,8,0,0,1,14,0),Je(0,3,5,-1,0,6,10,0,0,1,18,0),Je(0,4,5,-2,0,7,10,1,0,2,16,1),Je(0,5,5,-3,0,8,10,1,0,3,14,2),Je(0,5,6,-3,0,9,12,1,0,3,16,2),Je(0,6,6,-3,0,10,14,1,0,4,18,3),Je(0,6,7,-4,0,11,15,1,0,4,20,3),Je(0,7,8,-4,0,12,17,2,0,5,22,4),Je(0,7,8,-4,0,13,19,2,0,5,24,4),Je(0,7,9,-4,0,14,21,2,0,5,26,4),Je(0,8,9,-5,0,15,22,2,0,6,28,5),Je(0,8,10,-5,0,16,24,2,0,6,30,5),Je(0,8,11,-5,0,17,26,2,0,6,32,5),Je(0,9,11,-5,0,18,28,2,0,7,34,6),Je(0,9,12,-6,0,19,29,2,0,7,36,6),Je(0,10,13,-6,0,20,31,3,0,8,38,7),Je(0,10,13,-6,0,21,33,3,0,8,40,7),Je(0,10,14,-6,0,22,35,3,0,8,42,7),Je(0,11,14,-7,0,23,36,3,0,9,44,8),Je(0,11,15,-7,0,24,38,3,0,9,46,8)],cS={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)"},uS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ud(e){return`${Math.round(e)}ms`}function dS(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function fS(e){const t={...cS,...e.easing},n={...uS,...e.duration};return{getAutoHeightDuration:dS,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:Ud(a)} ${l} ${typeof c=="string"?c:Ud(c)}`).join(",")},...e,easing:t,duration:n}}const pS={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function hS(e){return pn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Qh(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];!hS(l)||a.startsWith("unstable_")?delete o[a]:pn(l)&&(o[a]={...l},n(o[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
87
|
+
|
|
88
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
89
|
+
|
|
90
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
91
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
92
|
+
|
|
93
|
+
export default theme;`}function Hd(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const mS=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 gS(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})`:fi(t,mS(n))},lighten(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #fff ${Hd(n)})`:Yi(t,n)},darken(t,n){const o=this||e;return o.colorSpace?`color-mix(in ${o.colorSpace}, ${t}, #000 ${Hd(n)})`:Hi(t,n)}})}function Pl(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.":yn(20));const f=Tc({...i,colorSpace:u}),p=Xh(e);let h=Ot(p,{mixins:nS(p.breakpoints,o),palette:f,shadows:lS.slice(),typography:rS(f,l),transitions:fS(a),zIndex:{...pS}});if(h=Ot(h,d),h=t.reduce((m,g)=>Ot(m,g),h),process.env.NODE_ENV!=="production"){const m=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(y,b)=>{let C;for(C in y){const w=y[C];if(m.includes(C)&&Object.keys(w).length>0){if(process.env.NODE_ENV!=="production"){const S=Te("",C);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${C}\` internal state.`,"You can not override it like this: ",JSON.stringify(y,null,2),"",`Instead, you need to use the '&.${S}' syntax:`,JSON.stringify({root:{[`&.${S}`]:w}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
94
|
+
`))}y[C]={}}}};Object.keys(h.components).forEach(y=>{const b=h.components[y].styleOverrides;b&&y.startsWith("Mui")&&g(b,y)})}return h.unstable_sxConfig={...xs,...d==null?void 0:d.unstable_sxConfig},h.unstable_sx=function(g){return nr({sx:g,theme:this})},h.toRuntimeSource=Qh,gS(h),h}function El(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 yS=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=El(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Jh(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function em(e){return e==="dark"?yS:[]}function bS(e){const{palette:t={mode:"light"},opacity:n,overlays:o,colorSpace:r,...i}=e,a=Tc({...t,colorSpace:r});return{palette:a,opacity:{...Jh(a.mode),...n},overlays:o||em(a.mode),...i}}function vS(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 xS=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],SS=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 xS(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 wS(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ne(e,t,n){!e[t]&&n&&(e[t]=n)}function Lr(e){return typeof e!="string"||!e.startsWith("hsl")?e:Hh(e)}function Sn(e,t){`${t}Channel`in e||(e[`${t}Channel`]=$r(Lr(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 CS(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const cn=e=>{try{return e()}catch{}},TS=(e="mui")=>Lt.unstable_createGetCssVar(e);function Fa(e,t,n,o,r){if(!n)return;n=n===!0?{}:n;const i=r==="dark"?"dark":"light";if(!o){t[r]=bS({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:a,...l}=Pl({...o,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[r]={...n,palette:a,opacity:{...Jh(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||em(i)},l}function PS(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=vS,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=TS(i),{[p]:m,light:g,dark:y,...b}=n,C={...b};let w=m;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(w=!0),!w)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:yn(21,p));let S;a&&(S="oklch");const T=Fa(S,C,w,d,p);g&&!C.light&&Fa(S,C,g,void 0,"light"),y&&!C.dark&&Fa(S,C,y,void 0,"dark");let P={defaultColorScheme:p,...T,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:h,colorSchemes:C,font:{...Jx(T.typography),...T.font},spacing:CS(d.spacing)};Object.keys(P.colorSchemes).forEach(N=>{const x=P.colorSchemes[N].palette,j=O=>{const D=O.split("-"),_=D[1],F=D[2];return h(O,x[_][F])};x.mode==="light"&&(ne(x.common,"background","#fff"),ne(x.common,"onBackground","#000")),x.mode==="dark"&&(ne(x.common,"background","#000"),ne(x.common,"onBackground","#fff"));function R(O,D,_){if(S){let F;return O===io&&(F=`transparent ${((1-_)*100).toFixed(0)}%`),O===Be&&(F=`#000 ${(_*100).toFixed(0)}%`),O===ze&&(F=`#fff ${(_*100).toFixed(0)}%`),`color-mix(in ${S}, ${D}, ${F})`}return O(D,_)}if(wS(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){ne(x.Alert,"errorColor",R(Be,x.error.light,.6)),ne(x.Alert,"infoColor",R(Be,x.info.light,.6)),ne(x.Alert,"successColor",R(Be,x.success.light,.6)),ne(x.Alert,"warningColor",R(Be,x.warning.light,.6)),ne(x.Alert,"errorFilledBg",j("palette-error-main")),ne(x.Alert,"infoFilledBg",j("palette-info-main")),ne(x.Alert,"successFilledBg",j("palette-success-main")),ne(x.Alert,"warningFilledBg",j("palette-warning-main")),ne(x.Alert,"errorFilledColor",cn(()=>x.getContrastText(x.error.main))),ne(x.Alert,"infoFilledColor",cn(()=>x.getContrastText(x.info.main))),ne(x.Alert,"successFilledColor",cn(()=>x.getContrastText(x.success.main))),ne(x.Alert,"warningFilledColor",cn(()=>x.getContrastText(x.warning.main))),ne(x.Alert,"errorStandardBg",R(ze,x.error.light,.9)),ne(x.Alert,"infoStandardBg",R(ze,x.info.light,.9)),ne(x.Alert,"successStandardBg",R(ze,x.success.light,.9)),ne(x.Alert,"warningStandardBg",R(ze,x.warning.light,.9)),ne(x.Alert,"errorIconColor",j("palette-error-main")),ne(x.Alert,"infoIconColor",j("palette-info-main")),ne(x.Alert,"successIconColor",j("palette-success-main")),ne(x.Alert,"warningIconColor",j("palette-warning-main")),ne(x.AppBar,"defaultBg",j("palette-grey-100")),ne(x.Avatar,"defaultBg",j("palette-grey-400")),ne(x.Button,"inheritContainedBg",j("palette-grey-300")),ne(x.Button,"inheritContainedHoverBg",j("palette-grey-A100")),ne(x.Chip,"defaultBorder",j("palette-grey-400")),ne(x.Chip,"defaultAvatarColor",j("palette-grey-700")),ne(x.Chip,"defaultIconColor",j("palette-grey-700")),ne(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ne(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ne(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ne(x.LinearProgress,"primaryBg",R(ze,x.primary.main,.62)),ne(x.LinearProgress,"secondaryBg",R(ze,x.secondary.main,.62)),ne(x.LinearProgress,"errorBg",R(ze,x.error.main,.62)),ne(x.LinearProgress,"infoBg",R(ze,x.info.main,.62)),ne(x.LinearProgress,"successBg",R(ze,x.success.main,.62)),ne(x.LinearProgress,"warningBg",R(ze,x.warning.main,.62)),ne(x.Skeleton,"bg",S?R(io,x.text.primary,.11):`rgba(${j("palette-text-primaryChannel")} / 0.11)`),ne(x.Slider,"primaryTrack",R(ze,x.primary.main,.62)),ne(x.Slider,"secondaryTrack",R(ze,x.secondary.main,.62)),ne(x.Slider,"errorTrack",R(ze,x.error.main,.62)),ne(x.Slider,"infoTrack",R(ze,x.info.main,.62)),ne(x.Slider,"successTrack",R(ze,x.success.main,.62)),ne(x.Slider,"warningTrack",R(ze,x.warning.main,.62));const O=S?R(Be,x.background.default,.6825):Ls(x.background.default,.8);ne(x.SnackbarContent,"bg",O),ne(x.SnackbarContent,"color",cn(()=>S?Tl.text.primary:x.getContrastText(O))),ne(x.SpeedDialAction,"fabHoverBg",Ls(x.background.paper,.15)),ne(x.StepConnector,"border",j("palette-grey-400")),ne(x.StepContent,"border",j("palette-grey-400")),ne(x.Switch,"defaultColor",j("palette-common-white")),ne(x.Switch,"defaultDisabledColor",j("palette-grey-100")),ne(x.Switch,"primaryDisabledColor",R(ze,x.primary.main,.62)),ne(x.Switch,"secondaryDisabledColor",R(ze,x.secondary.main,.62)),ne(x.Switch,"errorDisabledColor",R(ze,x.error.main,.62)),ne(x.Switch,"infoDisabledColor",R(ze,x.info.main,.62)),ne(x.Switch,"successDisabledColor",R(ze,x.success.main,.62)),ne(x.Switch,"warningDisabledColor",R(ze,x.warning.main,.62)),ne(x.TableCell,"border",R(ze,R(io,x.divider,1),.88)),ne(x.Tooltip,"bg",R(io,x.grey[700],.92))}if(x.mode==="dark"){ne(x.Alert,"errorColor",R(ze,x.error.light,.6)),ne(x.Alert,"infoColor",R(ze,x.info.light,.6)),ne(x.Alert,"successColor",R(ze,x.success.light,.6)),ne(x.Alert,"warningColor",R(ze,x.warning.light,.6)),ne(x.Alert,"errorFilledBg",j("palette-error-dark")),ne(x.Alert,"infoFilledBg",j("palette-info-dark")),ne(x.Alert,"successFilledBg",j("palette-success-dark")),ne(x.Alert,"warningFilledBg",j("palette-warning-dark")),ne(x.Alert,"errorFilledColor",cn(()=>x.getContrastText(x.error.dark))),ne(x.Alert,"infoFilledColor",cn(()=>x.getContrastText(x.info.dark))),ne(x.Alert,"successFilledColor",cn(()=>x.getContrastText(x.success.dark))),ne(x.Alert,"warningFilledColor",cn(()=>x.getContrastText(x.warning.dark))),ne(x.Alert,"errorStandardBg",R(Be,x.error.light,.9)),ne(x.Alert,"infoStandardBg",R(Be,x.info.light,.9)),ne(x.Alert,"successStandardBg",R(Be,x.success.light,.9)),ne(x.Alert,"warningStandardBg",R(Be,x.warning.light,.9)),ne(x.Alert,"errorIconColor",j("palette-error-main")),ne(x.Alert,"infoIconColor",j("palette-info-main")),ne(x.Alert,"successIconColor",j("palette-success-main")),ne(x.Alert,"warningIconColor",j("palette-warning-main")),ne(x.AppBar,"defaultBg",j("palette-grey-900")),ne(x.AppBar,"darkBg",j("palette-background-paper")),ne(x.AppBar,"darkColor",j("palette-text-primary")),ne(x.Avatar,"defaultBg",j("palette-grey-600")),ne(x.Button,"inheritContainedBg",j("palette-grey-800")),ne(x.Button,"inheritContainedHoverBg",j("palette-grey-700")),ne(x.Chip,"defaultBorder",j("palette-grey-700")),ne(x.Chip,"defaultAvatarColor",j("palette-grey-300")),ne(x.Chip,"defaultIconColor",j("palette-grey-300")),ne(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ne(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ne(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ne(x.LinearProgress,"primaryBg",R(Be,x.primary.main,.5)),ne(x.LinearProgress,"secondaryBg",R(Be,x.secondary.main,.5)),ne(x.LinearProgress,"errorBg",R(Be,x.error.main,.5)),ne(x.LinearProgress,"infoBg",R(Be,x.info.main,.5)),ne(x.LinearProgress,"successBg",R(Be,x.success.main,.5)),ne(x.LinearProgress,"warningBg",R(Be,x.warning.main,.5)),ne(x.Skeleton,"bg",S?R(io,x.text.primary,.13):`rgba(${j("palette-text-primaryChannel")} / 0.13)`),ne(x.Slider,"primaryTrack",R(Be,x.primary.main,.5)),ne(x.Slider,"secondaryTrack",R(Be,x.secondary.main,.5)),ne(x.Slider,"errorTrack",R(Be,x.error.main,.5)),ne(x.Slider,"infoTrack",R(Be,x.info.main,.5)),ne(x.Slider,"successTrack",R(Be,x.success.main,.5)),ne(x.Slider,"warningTrack",R(Be,x.warning.main,.5));const O=S?R(ze,x.background.default,.985):Ls(x.background.default,.98);ne(x.SnackbarContent,"bg",O),ne(x.SnackbarContent,"color",cn(()=>S?qh.text.primary:x.getContrastText(O))),ne(x.SpeedDialAction,"fabHoverBg",Ls(x.background.paper,.15)),ne(x.StepConnector,"border",j("palette-grey-600")),ne(x.StepContent,"border",j("palette-grey-600")),ne(x.Switch,"defaultColor",j("palette-grey-300")),ne(x.Switch,"defaultDisabledColor",j("palette-grey-600")),ne(x.Switch,"primaryDisabledColor",R(Be,x.primary.main,.55)),ne(x.Switch,"secondaryDisabledColor",R(Be,x.secondary.main,.55)),ne(x.Switch,"errorDisabledColor",R(Be,x.error.main,.55)),ne(x.Switch,"infoDisabledColor",R(Be,x.info.main,.55)),ne(x.Switch,"successDisabledColor",R(Be,x.success.main,.55)),ne(x.Switch,"warningDisabledColor",R(Be,x.warning.main,.55)),ne(x.TableCell,"border",R(Be,R(io,x.divider,1),.68)),ne(x.Tooltip,"bg",R(io,x.grey[700],.92))}Sn(x.background,"default"),Sn(x.background,"paper"),Sn(x.common,"background"),Sn(x.common,"onBackground"),Sn(x,"divider"),Object.keys(x).forEach(O=>{const D=x[O];O!=="tonalOffset"&&D&&typeof D=="object"&&(D.main&&ne(x[O],"mainChannel",$r(Lr(D.main))),D.light&&ne(x[O],"lightChannel",$r(Lr(D.light))),D.dark&&ne(x[O],"darkChannel",$r(Lr(D.dark))),D.contrastText&&ne(x[O],"contrastTextChannel",$r(Lr(D.contrastText))),O==="text"&&(Sn(x[O],"primary"),Sn(x[O],"secondary")),O==="action"&&(D.active&&Sn(x[O],"active"),D.selected&&Sn(x[O],"selected")))})}),P=t.reduce((N,x)=>Ot(N,x),P);const A={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:l,getSelector:SS(P),enableContrastVars:a},{vars:I,generateThemeVars:k,generateStyleSheets:V}=Qx(P,A);return P.vars=I,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([N,x])=>{P[N]=x}),P.generateThemeVars=k,P.generateStyleSheets=V,P.generateSpacing=function(){return Lt.createSpacing(d.spacing,Sc(this))},P.getColorSchemeSelector=eS(c),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=l,P.unstable_sxConfig={...xs,...d==null?void 0:d.unstable_sxConfig},P.unstable_sx=function(x){return nr({sx:x,theme:this})},P.toRuntimeSource=Qh,P}function Yd(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Tc({...n===!0?{}:n.palette,mode:t})})}function ES(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 Pl(e,...t);let d=n;"palette"in e||u[l]&&(u[l]!==!0?d=u[l].palette:l==="dark"&&(d={mode:"dark"}));const f=Pl({...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},Yd(f,"dark",u.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:f.palette},Yd(f,"light",u.light)),f}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),PS({...a,colorSchemes:u,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const Pc=ES(),qi="$$material";function Gi(){const e=Lt.useTheme(Pc);return process.env.NODE_ENV!=="production"&&E.useDebugValue(e),e[qi]||e}function tm(e){return v.jsx(Lt.GlobalStyles,{...e,defaultTheme:Pc,themeId:qi})}process.env.NODE_ENV!=="production"&&(tm.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function nm(e,t=""){return e.displayName||e.name||t}function qd(e,t,n){const o=nm(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function MS(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return nm(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Do.ForwardRef:return qd(e,e.render,"ForwardRef");case Do.Memo:return qd(e,e.type,"memo");default:return}}}function OS(e){const{variants:t,...n}=e,o={variants:t,style:Eo(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=Eo(r.style))}),o}const kS=Xh();function Hn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function wo(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function DS(e){return e?(t,n)=>n[e]:null}function RS(e,t,n){e.theme=_S(e.theme)?n:e.theme[t]||e.theme}function ni(e,t,n){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(r=>ni(e,r,n));if(Array.isArray(o==null?void 0:o.variants)){let r;if(o.isProcessed)r=n?wo(o.style,n):o.style;else{const{variants:i,...a}=o;r=n?wo(Eo(a),n):a}return om(e,o.variants,[r],n)}return o!=null&&o.isProcessed?n?wo(Eo(o.style),n):o.style:n?wo(Eo(o),n):o}function om(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?wo(Eo(l.style(r)),o):l.style(r))):n.push(o?wo(Eo(l.style),o):l.style)}return n}function IS(e={}){const{themeId:t,defaultTheme:n=kS,rootShouldForwardProp:o=Hn,slotShouldForwardProp:r=Hn}=e;function i(l){RS(l,t,n)}return(l,c={})=>{_x(l,P=>P.filter(A=>A!==nr));const{name:u,slot:d,skipVariantsResolver:f,skipSx:p,overridesResolver:h=DS(rm(d)),...m}=c,g=u&&u.startsWith("Mui")||d?"components":"custom",y=f!==void 0?f:d&&d!=="Root"&&d!=="root"||!1,b=p||!1;let C=Hn;d==="Root"||d==="root"?C=o:d?C=r:jS(l)&&(C=void 0);const w=Nx(l,{shouldForwardProp:C,label:NS(u,d),...m}),S=P=>{if(P.__emotion_real===P)return P;if(typeof P=="function")return function(I){return ni(I,P,I.theme.modularCssLayers?g:void 0)};if(pn(P)){const A=OS(P);return function(k){return A.variants?ni(k,A,k.theme.modularCssLayers?g:void 0):k.theme.modularCssLayers?wo(A.style,g):A.style}}return P},T=(...P)=>{const A=[],I=P.map(S),k=[];if(A.push(i),u&&h&&k.push(function(j){var _,F;const O=(F=(_=j.theme.components)==null?void 0:_[u])==null?void 0:F.styleOverrides;if(!O)return null;const D={};for(const B in O)D[B]=ni(j,O[B],j.theme.modularCssLayers?"theme":void 0);return h(j,D)}),u&&!y&&k.push(function(j){var D,_;const R=j.theme,O=(_=(D=R==null?void 0:R.components)==null?void 0:D[u])==null?void 0:_.variants;return O?om(j,O,[],j.theme.modularCssLayers?"theme":void 0):null}),b||k.push(nr),Array.isArray(I[0])){const x=I.shift(),j=new Array(A.length).fill(""),R=new Array(k.length).fill("");let O;O=[...j,...x,...R],O.raw=[...j,...x.raw,...R],A.unshift(O)}const V=[...A,...I,...k],N=w(...V);return l.muiName&&(N.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(N.displayName=AS(u,d,l)),N};return w.withConfig&&(T.withConfig=w.withConfig),T}}function AS(e,t,n){return e?`${e}${ce(t||"")}`:`Styled(${MS(n)})`}function NS(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${rm(t||"Root")}`),n}function _S(e){for(const t in e)return!1;return!0}function jS(e){return typeof e=="string"&&e.charCodeAt(0)>96}function rm(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function sm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ln=e=>sm(e)&&e!=="classes",ye=IS({themeId:qi,defaultTheme:Pc,rootShouldForwardProp:ln});function $S(e){return function(n){return v.jsx(tm,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function LS(){return hx}const Ye=Lt.unstable_memoTheme;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function je(e){return zx(e)}function Ce(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=Te(e,r,n)}),o}function VS(e){return Te("MuiSvgIcon",e)}Ce("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const FS=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${ce(t)}`,`fontSize${ce(n)}`]};return we(r,VS,o)},BS=ye("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)}`]]}})(Ye(({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,b;return{props:{color:g},style:{color:(b=(y=(e.vars??e).palette)==null?void 0:y[g])==null?void 0:b.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}}]}})),hi=E.forwardRef(function(t,n){const o=je({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=E.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 b=FS(g);return v.jsxs(BS,{as:l,className:ge(b.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?v.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(hi.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});hi.muiName="SvgIcon";function ft(e,t){function n(o,r){return v.jsx(hi,{"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=hi.muiName,E.memo(E.forwardRef(n))}function im(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 qr(e,t){var n,o,r;return E.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 Ct(e){return e&&e.ownerDocument||document}function kn(e){return Ct(e).defaultView||window}function Gd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function zS(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 Gn(e){const{controlled:t,default:n,name:o,state:r="value"}=e,{current:i}=E.useRef(t!==void 0),[a,l]=E.useState(n),c=i?t:a;if(process.env.NODE_ENV!=="production"){E.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}=E.useRef(n);E.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=E.useCallback(d=>{i||l(d)},[]);return[c,u]}function pe(e){const t=E.useRef(e);return St(()=>{t.current=e}),E.useRef((...n)=>(0,t.current)(...n)).current}function _e(...e){const t=E.useRef(void 0),n=E.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 E.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}function WS(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function US(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(u=>{WS(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=ge(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=ge(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 HS=ft(v.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),YS=ft(v.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),qS=ft(v.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"),GS=(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)},KS=(e,t,n)=>()=>{const o=e.map(r=>({...r,items:r.items.map(i=>({...i,value:void 0}))}));n&&n(o),t&&t()},ZS=(e,t,n)=>()=>{const o=t.map(r=>r.id===e?{...r,expanded:!r.expanded}:r);n(o)},XS=(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)},QS="_modal_1v49l_1",JS="_content_1v49l_60",e1="_contentWrapper_1v49l_67",t1="_closeButton_1v49l_74",n1="_header_1v49l_86",o1="_title_1v49l_93",r1="_description_1v49l_102",s1="_filtersContent_1v49l_111",i1="_filterGroup_1v49l_121",a1="_expandableHeader_1v49l_128",l1="_expandableLabel_1v49l_138",c1="_chevronIcon_1v49l_146",u1="_chevron_1v49l_146",d1="_filterItems_1v49l_159",f1="_filterItem_1v49l_159",p1="_filterItemSize1_1v49l_171",h1="_filterItemSize2_1v49l_175",m1="_filterItemSize3_1v49l_179",g1="_filterItemSize4_1v49l_183",y1="_filterItemSize5_1v49l_187",b1="_filterItemSize6_1v49l_191",v1="_filterInput_1v49l_195",x1="_inputLabel_1v49l_199",S1="_select_1v49l_203",w1="_placeholder_1v49l_220",C1="_helperText_1v49l_224",T1="_footer_1v49l_231",P1="_clearButton_1v49l_238",E1="_applyButton_1v49l_260",He={modal:QS,content:JS,contentWrapper:e1,closeButton:t1,header:n1,title:o1,description:r1,filtersContent:s1,filterGroup:i1,expandableHeader:a1,expandableLabel:l1,chevronIcon:c1,chevron:u1,filterItems:d1,filterItem:f1,filterItemSize1:p1,filterItemSize2:h1,filterItemSize3:m1,filterItemSize4:g1,filterItemSize5:y1,filterItemSize6:b1,filterInput:v1,inputLabel:x1,select:S1,"Mui-focused":"_Mui-focused_1v49l_212",placeholder:w1,helperText:C1,footer:T1,clearButton:P1,applyButton:E1},am=({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 g=Y.useTheme().palette.mode==="dark",[y,b]=L.useState(a??[]),C=!!r;L.useEffect(()=>{b(a??[])},[a]);const w=GS(y,l),S=KS(y,c,b),T=(P,A)=>{var N;const I=XS(A,P.id,y,b),k=P.size||6,V=He[`filterItemSize${k}`];if(P.render)return v.jsx(Y.Box,{className:`${He.filterItem} ${V}`,children:P.render(P,I)},P.id);switch(P.type){case"select":case"multi-select":const x=P.type==="multi-select";let j;x?P.value!==void 0&&P.value!==null?j=Array.isArray(P.value)?P.value:[P.value]:j=[]:j=P.value!==void 0&&P.value!==null?P.value:"";const R=x?Array.isArray(j)&&j.length>0:j!==""&&j!==null&&j!==void 0;return v.jsx(Y.Box,{className:`${He.filterItem} ${V}`,children:v.jsxs(Y.FormControl,{fullWidth:!0,className:He.filterInput,children:[v.jsx(Y.InputLabel,{id:`${P.id}-label`,className:He.inputLabel,shrink:R,children:P.label}),v.jsx(Y.Select,{labelId:`${P.id}-label`,value:j,onChange:O=>I(O.target.value),multiple:x,label:P.label,className:He.select,displayEmpty:!0,renderValue:O=>{var _;if(x){const F=Array.isArray(O)?O:[];return F.length===0?v.jsx(Y.Box,{component:"span",style:{opacity:0},children:P.label}):F.map($=>{var M,W;return((W=(M=P.options)==null?void 0:M.find(K=>K.value===$))==null?void 0:W.label)||$}).join(", ")}if(!O||O==="")return v.jsx(Y.Box,{component:"span",style:{opacity:0},children:P.label});const D=(_=P.options)==null?void 0:_.find(F=>F.value===O);return(D==null?void 0:D.label)||O},notched:R,children:(N=P.options)==null?void 0:N.map(O=>v.jsx(Y.MenuItem,{value:O.value,children:O.label},O.value))}),P.helperText&&v.jsx(Y.Box,{className:He.helperText,children:P.helperText})]})},P.id);case"text":return v.jsx(Y.Box,{className:`${He.filterItem} ${V}`,children:v.jsx(Y.TextField,{fullWidth:!0,label:P.label,placeholder:P.placeholder,value:P.value||"",onChange:O=>I(O.target.value),className:He.filterInput,helperText:P.helperText,FormHelperTextProps:{className:He.helperText}})},P.id);default:return null}};return v.jsx(Y.Dialog,{open:e,onClose:t,maxWidth:"md",fullWidth:!0,TransitionProps:{onEntered:()=>u==null?void 0:u()},PaperProps:{className:`${He.modal} ${p||""}`,"data-theme":g?"dark":"light"},...h,children:v.jsx(Y.DialogContent,{className:He.content,children:v.jsxs(Y.Box,{className:He.contentWrapper,children:[v.jsx(Y.IconButton,{className:He.closeButton,onClick:t,"aria-label":"Fechar",size:"small",children:v.jsx(qS,{})}),v.jsxs(Y.Box,{className:He.header,children:[v.jsx(Y.Box,{className:He.title,children:n}),v.jsx(Y.Box,{className:He.description,children:o})]}),v.jsx(Y.Box,{className:He.filtersContent,children:C?r:y.map(P=>{const A=ZS(P.id,y,b),I=P.expanded!==!1;return v.jsxs(Y.Box,{className:He.filterGroup,children:[v.jsxs(Y.Box,{className:He.expandableHeader,onClick:A,children:[v.jsx(Y.Box,{className:He.expandableLabel,children:P.label}),v.jsx(Y.Box,{className:He.chevronIcon,children:I?v.jsx(YS,{className:He.chevron}):v.jsx(HS,{className:He.chevron})})]}),I&&v.jsx(Y.Box,{className:He.filterItems,children:P.items.map(k=>T(k,P.id))})]},P.id)})}),v.jsxs(Y.Box,{className:He.footer,children:[v.jsx(Y.Button,{onClick:S,className:He.clearButton,"data-theme":g?"dark":"light",children:d}),v.jsx(Y.Button,{type:i?"submit":"button",form:i,onClick:i?void 0:w,className:He.applyButton,"data-theme":g?"dark":"light",children:f})]})]})})})};am.displayName="FilterModal";const M1="_container_1hyey_1",O1="_card_1hyey_7",k1="_icon_1hyey_18",D1="_text_1hyey_32",Vs={container:M1,card:O1,icon:k1,text:D1},R1=({items:e,className:t,sx:n})=>{const o=Y.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 v.jsx(Y.Box,{className:`${Vs.container} ${t||""}`,sx:n,children:e.map((l,c)=>v.jsxs(Y.Box,{className:Vs.card,sx:r,children:[l.icon&&v.jsx(Y.Box,{className:Vs.icon,sx:i,children:l.icon}),v.jsxs(Y.Typography,{component:"span",className:Vs.text,sx:a,children:[l.count," ",l.label]})]},c))})},Ec=L.createContext({});function Mc(e){const t=L.useRef(null);return t.current===null&&(t.current=e()),t.current}const lm=typeof window<"u",cm=lm?L.useLayoutEffect:L.useEffect,Ki=L.createContext(null);function Oc(e,t){e.indexOf(t)===-1&&e.push(t)}function kc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const bn=(e,t,n)=>n>t?t:n<e?e:n;function Ml(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let pr=()=>{},Dn=()=>{};var Rh;typeof process<"u"&&((Rh=process.env)==null?void 0:Rh.NODE_ENV)!=="production"&&(pr=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Ml(t,n))},Dn=(e,t,n)=>{if(!e)throw new Error(Ml(t,n))});const Rn={},um=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function dm(e){return typeof e=="object"&&e!==null}const fm=e=>/^0[^.\s]+$/u.test(e);function Dc(e){let t;return()=>(t===void 0&&(t=e()),t)}const Gt=e=>e,I1=(e,t)=>n=>t(e(n)),Ss=(...e)=>e.reduce(I1),ss=(e,t,n)=>{const o=t-e;return o===0?1:(n-e)/o};class Rc{constructor(){this.subscriptions=[]}add(t){return Oc(this.subscriptions,t),()=>kc(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 hn=e=>e*1e3,qt=e=>e/1e3;function pm(e,t){return t?e*(1e3/t):0}const Kd=new Set;function Ic(e,t,n){e||Kd.has(t)||(console.warn(Ml(t,n)),Kd.add(t))}const hm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,A1=1e-7,N1=12;function _1(e,t,n,o,r){let i,a,l=0;do a=t+(n-t)/2,i=hm(a,o,r)-e,i>0?n=a:t=a;while(Math.abs(i)>A1&&++l<N1);return a}function ws(e,t,n,o){if(e===t&&n===o)return Gt;const r=i=>_1(i,0,1,e,n);return i=>i===0||i===1?i:hm(r(i),t,o)}const mm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,gm=e=>t=>1-e(1-t),ym=ws(.33,1.53,.69,.99),Ac=gm(ym),bm=mm(Ac),vm=e=>(e*=2)<1?.5*Ac(e):.5*(2-Math.pow(2,-10*(e-1))),Nc=e=>1-Math.sin(Math.acos(e)),xm=gm(Nc),Sm=mm(Nc),j1=ws(.42,0,1,1),$1=ws(0,0,.58,1),wm=ws(.42,0,.58,1),L1=e=>Array.isArray(e)&&typeof e[0]!="number",Cm=e=>Array.isArray(e)&&typeof e[0]=="number",Zd={linear:Gt,easeIn:j1,easeInOut:wm,easeOut:$1,circIn:Nc,circInOut:Sm,circOut:xm,backIn:Ac,backInOut:bm,backOut:ym,anticipate:vm},V1=e=>typeof e=="string",Xd=e=>{if(Cm(e)){Dn(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,o,r]=e;return ws(t,n,o,r)}else if(V1(e))return Dn(Zd[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Zd[e];return e},Fs=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function F1(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 B1=40;function Tm(e,t){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=Fs.reduce((w,S)=>(w[S]=F1(i),w),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:d,update:f,preRender:p,render:h,postRender:m}=a,g=()=>{const w=Rn.useManualTiming?r.timestamp:performance.now();n=!1,Rn.useManualTiming||(r.delta=o?1e3/60:Math.max(Math.min(w-r.timestamp,B1),1)),r.timestamp=w,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:Fs.reduce((w,S)=>{const T=a[S];return w[S]=(P,A=!1,I=!1)=>(n||y(),T.schedule(P,A,I)),w},{}),cancel:w=>{for(let S=0;S<Fs.length;S++)a[Fs[S]].cancel(w)},state:r,steps:a}}const{schedule:Xe,cancel:Kn,state:Pt,steps:Ba}=Tm(typeof requestAnimationFrame<"u"?requestAnimationFrame:Gt,!0);let oi;function z1(){oi=void 0}const Rt={now:()=>(oi===void 0&&Rt.set(Pt.isProcessing||Rn.useManualTiming?Pt.timestamp:performance.now()),oi),set:e=>{oi=e,queueMicrotask(z1)}},Pm=e=>t=>typeof t=="string"&&t.startsWith(e),Em=Pm("--"),W1=Pm("var(--"),_c=e=>W1(e)?U1.test(e.split("/*")[0].trim()):!1,U1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Qd(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const hr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},is={...hr,transform:e=>bn(0,1,e)},Bs={...hr,default:1},Gr=e=>Math.round(e*1e5)/1e5,jc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function H1(e){return e==null}const Y1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,$c=(e,t)=>n=>!!(typeof n=="string"&&Y1.test(n)&&n.startsWith(e)||t&&!H1(n)&&Object.prototype.hasOwnProperty.call(n,t)),Mm=(e,t,n)=>o=>{if(typeof o!="string")return o;const[r,i,a,l]=o.match(jc);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},q1=e=>bn(0,255,e),za={...hr,transform:e=>Math.round(q1(e))},Co={test:$c("rgb","red"),parse:Mm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+za.transform(e)+", "+za.transform(t)+", "+za.transform(n)+", "+Gr(is.transform(o))+")"};function G1(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 Ol={test:$c("#"),parse:G1,transform:Co.transform},Cs=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),$n=Cs("deg"),mn=Cs("%"),ve=Cs("px"),K1=Cs("vh"),Z1=Cs("vw"),Jd={...mn,parse:e=>mn.parse(e)/100,transform:e=>mn.transform(e*100)},Ho={test:$c("hsl","hue"),parse:Mm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+mn.transform(Gr(t))+", "+mn.transform(Gr(n))+", "+Gr(is.transform(o))+")"},gt={test:e=>Co.test(e)||Ol.test(e)||Ho.test(e),parse:e=>Co.test(e)?Co.parse(e):Ho.test(e)?Ho.parse(e):Ol.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Co.transform(e):Ho.transform(e),getAnimatableNone:e=>{const t=gt.parse(e);return t.alpha=0,gt.transform(t)}},X1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Q1(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(jc))==null?void 0:t.length)||0)+(((n=e.match(X1))==null?void 0:n.length)||0)>0}const Om="number",km="color",J1="var",ew="var(",ef="${}",tw=/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 as(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},r=[];let i=0;const l=t.replace(tw,c=>(gt.test(c)?(o.color.push(i),r.push(km),n.push(gt.parse(c))):c.startsWith(ew)?(o.var.push(i),r.push(J1),n.push(c)):(o.number.push(i),r.push(Om),n.push(parseFloat(c))),++i,ef)).split(ef);return{values:n,split:l,indexes:o,types:r}}function Dm(e){return as(e).values}function Rm(e){const{split:t,types:n}=as(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===Om?i+=Gr(r[a]):l===km?i+=gt.transform(r[a]):i+=r[a]}return i}}const nw=e=>typeof e=="number"?0:gt.test(e)?gt.getAnimatableNone(e):e;function ow(e){const t=Dm(e);return Rm(e)(t.map(nw))}const Zn={test:Q1,parse:Dm,createTransformer:Rm,getAnimatableNone:ow};function Wa(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 rw({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=Wa(c,l,e+1/3),i=Wa(c,l,e),a=Wa(c,l,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:o}}function mi(e,t){return n=>n>0?t:e}const st=(e,t,n)=>e+(t-e)*n,Ua=(e,t,n)=>{const o=e*e,r=n*(t*t-o)+o;return r<0?0:Math.sqrt(r)},sw=[Ol,Co,Ho],iw=e=>sw.find(t=>t.test(e));function tf(e){const t=iw(e);if(pr(!!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===Ho&&(n=rw(n)),n}const nf=(e,t)=>{const n=tf(e),o=tf(t);if(!n||!o)return mi(e,t);const r={...n};return i=>(r.red=Ua(n.red,o.red,i),r.green=Ua(n.green,o.green,i),r.blue=Ua(n.blue,o.blue,i),r.alpha=st(n.alpha,o.alpha,i),Co.transform(r))},kl=new Set(["none","hidden"]);function aw(e,t){return kl.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function lw(e,t){return n=>st(e,t,n)}function Lc(e){return typeof e=="number"?lw:typeof e=="string"?_c(e)?mi:gt.test(e)?nf:dw:Array.isArray(e)?Im:typeof e=="object"?gt.test(e)?nf:cw:mi}function Im(e,t){const n=[...e],o=n.length,r=e.map((i,a)=>Lc(i)(i,t[a]));return i=>{for(let a=0;a<o;a++)n[a]=r[a](i);return n}}function cw(e,t){const n={...e,...t},o={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(o[r]=Lc(e[r])(e[r],t[r]));return r=>{for(const i in o)n[i]=o[i](r);return n}}function uw(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 dw=(e,t)=>{const n=Zn.createTransformer(t),o=as(e),r=as(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?kl.has(e)&&!r.values.length||kl.has(t)&&!o.values.length?aw(e,t):Ss(Im(uw(o,r),r.values),n):(pr(!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"),mi(e,t))};function Am(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?st(e,t,n):Lc(e)(e,t)}const fw=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Xe.update(t,n),stop:()=>Kn(t),now:()=>Pt.isProcessing?Pt.timestamp:Rt.now()}},Nm=(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)})`},gi=2e4;function Vc(e){let t=0;const n=50;let o=e.next(t);for(;!o.done&&t<gi;)t+=n,o=e.next(t);return t>=gi?1/0:t}function pw(e,t=100,n){const o=n({...e,keyframes:[0,t]}),r=Math.min(Vc(o),gi);return{type:"keyframes",ease:i=>o.next(r*i).value/t,duration:qt(r)}}const hw=5;function _m(e,t,n){const o=Math.max(t-hw,0);return pm(n-e(o),t-o)}const rt={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},Ha=.001;function mw({duration:e=rt.duration,bounce:t=rt.bounce,velocity:n=rt.velocity,mass:o=rt.mass}){let r,i;pr(e<=hn(rt.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=bn(rt.minDamping,rt.maxDamping,a),e=bn(rt.minDuration,rt.maxDuration,qt(e)),a<1?(r=u=>{const d=u*a,f=d*e,p=d-n,h=Dl(u,a),m=Math.exp(-f);return Ha-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=Dl(Math.pow(u,2),a);return(-r(u)+Ha>0?-1:1)*((p-h)*m)/g}):(r=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-Ha+d*f},i=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const l=5/e,c=yw(r,i,l);if(e=hn(e),isNaN(c))return{stiffness:rt.stiffness,damping:rt.damping,duration:e};{const u=Math.pow(c,2)*o;return{stiffness:u,damping:a*2*Math.sqrt(o*u),duration:e}}}const gw=12;function yw(e,t,n){let o=n;for(let r=1;r<gw;r++)o=o-e(o)/t(o);return o}function Dl(e,t){return e*Math.sqrt(1-t*t)}const bw=["duration","bounce"],vw=["stiffness","damping","mass"];function of(e,t){return t.some(n=>e[n]!==void 0)}function xw(e){let t={velocity:rt.velocity,stiffness:rt.stiffness,damping:rt.damping,mass:rt.mass,isResolvedFromDuration:!1,...e};if(!of(e,vw)&&of(e,bw))if(e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),r=o*o,i=2*bn(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:rt.mass,stiffness:r,damping:i}}else{const n=mw(e);t={...t,...n,mass:rt.mass},t.isResolvedFromDuration=!0}return t}function yi(e=rt.visualDuration,t=rt.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}=xw({...n,velocity:-qt(n.velocity||0)}),m=p||0,g=u/(2*Math.sqrt(c*d)),y=a-i,b=qt(Math.sqrt(c/d)),C=Math.abs(y)<5;o||(o=C?rt.restSpeed.granular:rt.restSpeed.default),r||(r=C?rt.restDelta.granular:rt.restDelta.default);let w;if(g<1){const T=Dl(b,g);w=P=>{const A=Math.exp(-g*b*P);return a-A*((m+g*b*y)/T*Math.sin(T*P)+y*Math.cos(T*P))}}else if(g===1)w=T=>a-Math.exp(-b*T)*(y+(m+b*y)*T);else{const T=b*Math.sqrt(g*g-1);w=P=>{const A=Math.exp(-g*b*P),I=Math.min(T*P,300);return a-A*((m+g*b*y)*Math.sinh(I)+T*y*Math.cosh(I))/T}}const S={calculatedDuration:h&&f||null,next:T=>{const P=w(T);if(h)l.done=T>=f;else{let A=T===0?m:0;g<1&&(A=T===0?hn(m):_m(w,T,P));const I=Math.abs(A)<=o,k=Math.abs(a-P)<=r;l.done=I&&k}return l.value=l.done?a:P,l},toString:()=>{const T=Math.min(Vc(S),gi),P=Nm(A=>S.next(T*A).value,T,30);return T+"ms "+P},toTransition:()=>{}};return S}yi.applyToOptions=e=>{const t=pw(e,100,yi);return e.ease=t.ease,e.duration=hn(t.duration),e.type="keyframes",e};function Rl({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=I=>l!==void 0&&I<l||c!==void 0&&I>c,m=I=>l===void 0?c:c===void 0||Math.abs(l-I)<Math.abs(c-I)?l:c;let g=n*t;const y=f+g,b=a===void 0?y:a(y);b!==y&&(g=b-f);const C=I=>-g*Math.exp(-I/o),w=I=>b+C(I),S=I=>{const k=C(I),V=w(I);p.done=Math.abs(k)<=u,p.value=p.done?b:V};let T,P;const A=I=>{h(p.value)&&(T=I,P=yi({keyframes:[p.value,m(p.value)],velocity:_m(w,I,p.value),damping:r,stiffness:i,restDelta:u,restSpeed:d}))};return A(0),{calculatedDuration:null,next:I=>{let k=!1;return!P&&T===void 0&&(k=!0,S(I),A(I)),T!==void 0&&I>=T?P.next(I-T):(!k&&S(I),p)}}}function Sw(e,t,n){const o=[],r=n||Rn.mix||Am,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]||Gt:t;l=Ss(c,l)}o.push(l)}return o}function ww(e,t,{clamp:n=!0,ease:o,mixer:r}={}){const i=e.length;if(Dn(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=Sw(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=ss(e[f],e[f+1],d);return l[f](p)};return n?d=>u(bn(e[0],e[i-1],d)):u}function Cw(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const r=ss(0,t,o);e.push(st(n,1,r))}}function Tw(e){const t=[0];return Cw(t,e.length-1),t}function Pw(e,t){return e.map(n=>n*t)}function Ew(e,t){return e.map(()=>t||wm).splice(0,e.length-1)}function Yo({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const r=L1(o)?o.map(Xd):Xd(o),i={done:!1,value:t[0]},a=Pw(n&&n.length===t.length?n:Tw(t),e),l=ww(a,t,{ease:Array.isArray(r)?r:Ew(t,r)});return{calculatedDuration:e,next:c=>(i.value=l(c),i.done=c>=e,i)}}const Mw=e=>e!==null;function Fc(e,{repeat:t,repeatType:n="loop"},o,r=1){const i=e.filter(Mw),l=r<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!l||o===void 0?i[l]:o}const Ow={decay:Rl,inertia:Rl,tween:Yo,keyframes:Yo,spring:yi};function jm(e){typeof e.type=="string"&&(e.type=Ow[e.type])}class Bc{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 kw=e=>e/100;class zc extends Bc{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!==Rt.now()&&this.tick(Rt.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;jm(t);const{type:n=Yo,repeat:o=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=t;let{keyframes:l}=t;const c=n||Yo;process.env.NODE_ENV!=="production"&&c!==Yo&&Dn(l.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${l}`,"spring-two-frames"),c!==Yo&&typeof l[0]!="number"&&(this.mixKeyframes=Ss(kw,Am(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=Vc(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 b=this.currentTime-u*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?b<0:b>r;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let w=this.currentTime,S=o;if(f){const I=Math.min(this.currentTime,r)/l;let k=Math.floor(I),V=I%1;!V&&I>=1&&(V=1),V===1&&k--,k=Math.min(k,f+1),!!(k%2)&&(p==="reverse"?(V=1-V,h&&(V-=h/l)):p==="mirror"&&(S=a)),w=bn(0,1,V)*l}const T=C?{done:!1,value:d[0]}:S.next(w);i&&(T.value=i(T.value));let{done:P}=T;!C&&c!==null&&(P=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return A&&m!==Rl&&(T.value=Fc(d,this.options,y,this.speed)),g&&g(T.value),A&&this.finish(),T}then(t,n){return this.finished.then(t,n)}get duration(){return qt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+qt(t)}get time(){return qt(this.currentTime)}set time(t){var n;t=hn(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(Rt.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=qt(this.currentTime))}play(){var r,i;if(this.isStopped)return;const{driver:t=fw,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(Rt.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 Dw(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const To=e=>e*180/Math.PI,Il=e=>{const t=To(Math.atan2(e[1],e[0]));return Al(t)},Rw={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Il,rotateZ:Il,skewX:e=>To(Math.atan(e[1])),skewY:e=>To(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Al=e=>(e=e%360,e<0&&(e+=360),e),rf=Il,sf=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),af=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Iw={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:sf,scaleY:af,scale:e=>(sf(e)+af(e))/2,rotateX:e=>Al(To(Math.atan2(e[6],e[5]))),rotateY:e=>Al(To(Math.atan2(-e[2],e[0]))),rotateZ:rf,rotate:rf,skewX:e=>To(Math.atan(e[4])),skewY:e=>To(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Nl(e){return e.includes("scale")?1:0}function _l(e,t){if(!e||e==="none")return Nl(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,r;if(n)o=Iw,r=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=Rw,r=l}if(!r)return Nl(t);const i=o[t],a=r[1].split(",").map(Nw);return typeof i=="function"?i(a):a[i]}const Aw=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return _l(n,t)};function Nw(e){return parseFloat(e.trim())}const mr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],gr=new Set(mr),lf=e=>e===hr||e===ve,_w=new Set(["x","y","z"]),jw=mr.filter(e=>!_w.has(e));function $w(e){const t=[];return jw.forEach(n=>{const o=e.getValue(n);o!==void 0&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),t}const Wn={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})=>_l(t,"x"),y:(e,{transform:t})=>_l(t,"y")};Wn.translateX=Wn.x;Wn.translateY=Wn.y;const Mo=new Set;let jl=!1,$l=!1,Ll=!1;function $m(){if($l){const e=Array.from(Mo).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),n=new Map;t.forEach(o=>{const r=$w(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)})}$l=!1,jl=!1,Mo.forEach(e=>e.complete(Ll)),Mo.clear()}function Lm(){Mo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&($l=!0)})}function Lw(){Ll=!0,Lm(),$m(),Ll=!1}class Wc{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?(Mo.add(this),jl||(jl=!0,Xe.read(Lm),Xe.resolveKeyframes($m))):(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])}Dw(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Mo.delete(this)}cancel(){this.state==="scheduled"&&(Mo.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Vw=e=>e.startsWith("--");function Fw(e,t,n){Vw(t)?e.style.setProperty(t,n):e.style[t]=n}const Bw=Dc(()=>window.ScrollTimeline!==void 0),zw={};function Ww(e,t){const n=Dc(e);return()=>zw[t]??n()}const Vm=Ww(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Vr=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,cf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Vr([0,.65,.55,1]),circOut:Vr([.55,0,1,.45]),backIn:Vr([.31,.01,.66,-.59]),backOut:Vr([.33,1.53,.69,.99])};function Fm(e,t){if(e)return typeof e=="function"?Vm()?Nm(e,t):"ease-out":Cm(e)?Vr(e):Array.isArray(e)?e.map(n=>Fm(n,t)||cf.easeOut):cf[e]}function Uw(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=Fm(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 Bm(e){return typeof e=="function"&&"applyToOptions"in e}function Hw({type:e,...t}){return Bm(e)&&Vm()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Yw extends Bc{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,Dn(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const u=Hw(t);this.animation=Uw(n,o,r,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=Fc(r,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(d):Fw(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 qt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+qt(t)}get time(){return qt(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=hn(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&&Bw()?(this.animation.timeline=t,Gt):n(this)}}const zm={anticipate:vm,backInOut:bm,circInOut:Sm};function qw(e){return e in zm}function Gw(e){typeof e.ease=="string"&&qw(e.ease)&&(e.ease=zm[e.ease])}const Ya=10;class Kw extends Yw{constructor(t){Gw(t),jm(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:o,onComplete:r,element:i,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new zc({...a,autoplay:!1}),c=Math.max(Ya,Rt.now()-this.startTime),u=bn(0,Ya,c-Ya);n.setWithVelocity(l.sample(Math.max(0,c-u)).value,l.sample(c).value,u),l.stop()}}const uf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Zn.test(e)||e==="0")&&!e.startsWith("url("));function Zw(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 Xw(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=uf(r,t),l=uf(i,t);return pr(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:Zw(e)||(n==="spring"||Bm(n))&&o}function Vl(e){e.duration=0,e.type="keyframes"}const Qw=new Set(["opacity","clipPath","filter","transform"]),Jw=Dc(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function eC(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 Jw()&&n&&Qw.has(n)&&(n!=="transform"||!u)&&!c&&!o&&r!=="mirror"&&i!==0&&a!=="inertia"}const tC=40;class nC extends Bc{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=Rt.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)||Wc;this.keyframeResolver=new h(l,(g,y,b)=>this.onKeyframesResolved(g,y,p,!b),c,u,d),(m=this.keyframeResolver)==null||m.scheduleResolve()}onKeyframesResolved(t,n,o,r){var y,b;this.keyframeResolver=void 0;const{name:i,type:a,velocity:l,delay:c,isHandoff:u,onUpdate:d}=o;this.resolvedAt=Rt.now(),Xw(t,i,a,l)||((Rn.instantAnimations||!c)&&(d==null||d(Fc(t,o,n))),t[0]=t[t.length-1],Vl(o),o.repeat=0);const p={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>tC?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...o,keyframes:t},h=!u&&eC(p),m=(b=(y=p.motionValue)==null?void 0:y.owner)==null?void 0:b.current,g=h?new Kw({...p,element:m}):new zc(p);g.finished.then(()=>{this.notifyFinished()}).catch(Gt),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(),Lw()),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 Wm(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 oC=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function rC(e){const t=oC.exec(e);if(!t)return[,];const[,n,o,r]=t;return[`--${n??o}`,r]}const sC=4;function Um(e,t,n=1){Dn(n<=sC,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[o,r]=rC(e);if(!o)return;const i=window.getComputedStyle(t).getPropertyValue(o);if(i){const a=i.trim();return um(a)?parseFloat(a):a}return _c(r)?Um(r,t,n+1):r}const iC={type:"spring",stiffness:500,damping:25,restSpeed:10},aC=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),lC={type:"keyframes",duration:.8},cC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},uC=(e,{keyframes:t})=>t.length>2?lC:gr.has(e)?e.startsWith("scale")?aC(t[1]):iC:cC,dC=e=>e!==null;function fC(e,{repeat:t,repeatType:n="loop"},o){const r=e.filter(dC),i=t&&n!=="loop"&&t%2===1?0:r.length-1;return r[i]}function Uc(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}function pC({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 Hc=(e,t,n,o={},r,i)=>a=>{const l=Uc(o,e)||{},c=l.delay||o.delay||0;let{elapsed:u=0}=o;u=u-hn(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};pC(l)||Object.assign(d,uC(e,d)),d.duration&&(d.duration=hn(d.duration)),d.repeatDelay&&(d.repeatDelay=hn(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Vl(d),d.delay===0&&(f=!0)),(Rn.instantAnimations||Rn.skipAnimations||r!=null&&r.shouldSkipAnimations)&&(f=!0,Vl(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,f&&!i&&t.get()!==void 0){const p=fC(d.keyframes,l);if(p!==void 0){Xe.update(()=>{d.onUpdate(p),d.onComplete()});return}}return l.isSync?new zc(d):new nC(d)};function df(e){const t=[{},{}];return e==null||e.values.forEach((n,o)=>{t[0][o]=n.get(),t[1][o]=n.getVelocity()}),t}function Yc(e,t,n,o){if(typeof t=="function"){const[r,i]=df(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]=df(o);t=t(n!==void 0?n:e.custom,r,i)}return t}function Qo(e,t,n){const o=e.getProps();return Yc(o,t,n!==void 0?n:o.custom,e)}const Hm=new Set(["width","height","top","left","right","bottom",...mr]),ff=30,hC=e=>!isNaN(parseFloat(e));class mC{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{var i;const r=Rt.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=Rt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=hC(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Ic(!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 Rc);const o=this.events[t].add(n);return t==="change"?()=>{o(),Xe.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=Rt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ff)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ff);return pm(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 or(e,t){return new mC(e,t)}const Fl=e=>Array.isArray(e);function gC(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,or(n))}function yC(e){return Fl(e)?e[e.length-1]||0:e}function bC(e,t){const n=Qo(e,t);let{transitionEnd:o={},transition:r={},...i}=n||{};i={...i,...o};for(const a in i){const l=yC(i[a]);gC(e,a,l)}}const Mt=e=>!!(e&&e.getVelocity);function vC(e){return!!(Mt(e)&&e.add)}function Bl(e,t){const n=e.getValue("willChange");if(vC(n))return n.add(t);if(!n&&Rn.WillChange){const o=new Rn.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function qc(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const xC="framerAppearId",Ym="data-"+qc(xC);function qm(e){return e.props[Ym]}function SC({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,o}function Gm(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&&SC(d,f))continue;const m={delay:n,...Uc(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 w=qm(e);if(w){const S=window.MotionHandoffAnimation(w,f,Xe);S!==null&&(m.startTime=S,y=!0)}}Bl(e,f);const b=c??e.shouldReduceMotion;p.start(Hc(f,p,h,b&&Hm.has(f)?{type:!1}:m,e,y));const C=p.animation;C&&u.push(C)}return a&&Promise.all(u).then(()=>{Xe.update(()=>{a&&bC(e,a)})}),u}function zl(e,t,n={}){var c;const o=Qo(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(Gm(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:p}=r;return wC(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 wC(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(zl(c,t,{...a,delay:n+(typeof o=="function"?0:o)+Wm(e.variantChildren,c,o,r,i)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function CC(e,t,n={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){const r=t.map(i=>zl(e,i,n));o=Promise.all(r)}else if(typeof t=="string")o=zl(e,t,n);else{const r=typeof t=="function"?Qo(e,t,n.custom):t;o=Promise.all(Gm(e,r,n))}return o.then(()=>{e.notify("AnimationComplete",t)})}const TC={test:e=>e==="auto",parse:e=>e},Km=e=>t=>t.test(e),Zm=[hr,ve,mn,$n,Z1,K1,TC],pf=e=>Zm.find(Km(e));function PC(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||fm(e):!0}const EC=new Set(["brightness","contrast","saturate","opacity"]);function MC(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=n.match(jc)||[];if(!o)return e;const r=n.replace(o,"");let i=EC.has(t)?1:0;return o!==n&&(i*=100),t+"("+i+r+")"}const OC=/\b([a-z-]*)\(.*?\)/gu,Wl={...Zn,getAnimatableNone:e=>{const t=e.match(OC);return t?t.map(MC).join(" "):e}},hf={...hr,transform:Math.round},kC={rotate:$n,rotateX:$n,rotateY:$n,rotateZ:$n,scale:Bs,scaleX:Bs,scaleY:Bs,scaleZ:Bs,skew:$n,skewX:$n,skewY:$n,distance:ve,translateX:ve,translateY:ve,translateZ:ve,x:ve,y:ve,z:ve,perspective:ve,transformPerspective:ve,opacity:is,originX:Jd,originY:Jd,originZ:ve},Gc={borderWidth:ve,borderTopWidth:ve,borderRightWidth:ve,borderBottomWidth:ve,borderLeftWidth:ve,borderRadius:ve,borderTopLeftRadius:ve,borderTopRightRadius:ve,borderBottomRightRadius:ve,borderBottomLeftRadius:ve,width:ve,maxWidth:ve,height:ve,maxHeight:ve,top:ve,right:ve,bottom:ve,left:ve,inset:ve,insetBlock:ve,insetBlockStart:ve,insetBlockEnd:ve,insetInline:ve,insetInlineStart:ve,insetInlineEnd:ve,padding:ve,paddingTop:ve,paddingRight:ve,paddingBottom:ve,paddingLeft:ve,paddingBlock:ve,paddingBlockStart:ve,paddingBlockEnd:ve,paddingInline:ve,paddingInlineStart:ve,paddingInlineEnd:ve,margin:ve,marginTop:ve,marginRight:ve,marginBottom:ve,marginLeft:ve,marginBlock:ve,marginBlockStart:ve,marginBlockEnd:ve,marginInline:ve,marginInlineStart:ve,marginInlineEnd:ve,fontSize:ve,backgroundPositionX:ve,backgroundPositionY:ve,...kC,zIndex:hf,fillOpacity:is,strokeOpacity:is,numOctaves:hf},DC={...Gc,color:gt,backgroundColor:gt,outlineColor:gt,fill:gt,stroke:gt,borderColor:gt,borderTopColor:gt,borderRightColor:gt,borderBottomColor:gt,borderLeftColor:gt,filter:Wl,WebkitFilter:Wl},Xm=e=>DC[e];function Qm(e,t){let n=Xm(e);return n!==Wl&&(n=Zn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const RC=new Set(["auto","none","0"]);function IC(e,t,n){let o=0,r;for(;o<e.length&&!r;){const i=e[o];typeof i=="string"&&!RC.has(i)&&as(i).values.length&&(r=e[o]),o++}if(r&&n)for(const i of t)e[i]=Qm(n,r)}class AC extends Wc{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(),_c(f))){const p=Um(f,n.current);p!==void 0&&(t[d]=p),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!Hm.has(o)||t.length!==2)return;const[r,i]=t,a=pf(r),l=pf(i),c=Qd(r),u=Qd(i);if(c!==u&&Wn[o]){this.needsMeasurement=!0;return}if(a!==l)if(lf(a)&&lf(l))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else Wn[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,o=[];for(let r=0;r<t.length;r++)(t[r]===null||PC(t[r]))&&o.push(r);o.length&&IC(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=Wn[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]=Wn[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 NC(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 Jm=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Ul(e){return dm(e)&&"offsetHeight"in e}const{schedule:Kc}=Tm(queueMicrotask,!1),sn={x:!1,y:!1};function eg(){return sn.x||sn.y}function _C(e){return e==="x"||e==="y"?sn[e]?null:(sn[e]=!0,()=>{sn[e]=!1}):sn.x||sn.y?null:(sn.x=sn.y=!0,()=>{sn.x=sn.y=!1})}function tg(e,t){const n=NC(e),o=new AbortController,r={passive:!0,...t,signal:o.signal};return[n,r,()=>o.abort()]}function mf(e){return!(e.pointerType==="touch"||eg())}function jC(e,t,n={}){const[o,r,i]=tg(e,n),a=l=>{if(!mf(l))return;const{target:c}=l,u=t(c,l);if(typeof u!="function"||!c)return;const d=f=>{mf(f)&&(u(f),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,r)};return o.forEach(l=>{l.addEventListener("pointerenter",a,r)}),i}const ng=(e,t)=>t?e===t?!0:ng(e,t.parentElement):!1,Zc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,$C=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function og(e){return $C.has(e.tagName)||e.isContentEditable===!0}const ri=new WeakSet;function gf(e){return t=>{t.key==="Enter"&&e(t)}}function qa(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const LC=(e,t)=>{const n=e.currentTarget;if(!n)return;const o=gf(()=>{if(ri.has(n))return;qa(n,"down");const r=gf(()=>{qa(n,"up")}),i=()=>qa(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 yf(e){return Zc(e)&&!eg()}function VC(e,t,n={}){const[o,r,i]=tg(e,n),a=l=>{const c=l.currentTarget;if(!yf(l))return;ri.add(c);const u=t(c,l),d=(h,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),ri.has(c)&&ri.delete(c),yf(h)&&typeof u=="function"&&u(h,{success:m})},f=h=>{d(h,c===window||c===document||n.useGlobalTarget||ng(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),Ul(l)&&(l.addEventListener("focus",u=>LC(u,r)),!og(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function rg(e){return dm(e)&&"ownerSVGElement"in e}function FC(e){return rg(e)&&e.tagName==="svg"}const BC=[...Zm,gt,Zn],zC=e=>BC.find(Km(e)),bf=()=>({translate:0,scale:1,origin:0,originPoint:0}),qo=()=>({x:bf(),y:bf()}),vf=()=>({min:0,max:0}),vt=()=>({x:vf(),y:vf()}),Hl={current:null},sg={current:!1},WC=typeof window<"u";function UC(){if(sg.current=!0,!!WC)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Hl.current=e.matches;e.addEventListener("change",t),t()}else Hl.current=!1}const HC=new WeakMap;function Zi(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ls(e){return typeof e=="string"||Array.isArray(e)}const Xc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Qc=["initial",...Xc];function Xi(e){return Zi(e.animate)||Qc.some(t=>ls(e[t]))}function ig(e){return!!(Xi(e)||e.variants)}function YC(e,t,n){for(const o in t){const r=t[o],i=n[o];if(Mt(r))e.addValue(o,r);else if(Mt(i))e.addValue(o,or(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,or(a!==void 0?a:r,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const xf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let bi={};function ag(e){bi=e}function qC(){return bi}class GC{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=Wc,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=Rt.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,Xe.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=Xi(n),this.isVariantNode=ig(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&&Mt(m)&&m.set(u[h])}}mount(t){var n;this.current=t,HC.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:(sg.current||UC(),this.shouldReduceMotion=Hl.current),process.env.NODE_ENV!=="production"&&Ic(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(),Kn(this.notifyUpdate),Kn(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=gr.has(t);o&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Xe.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 bi){const n=bi[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):vt()}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<xf.length;o++){const r=xf[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=YC(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=or(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"&&(um(o)||fm(o))?o=parseFloat(o):!zC(o)&&Zn.test(n)&&(o=Qm(t,n)),this.setBaseTarget(t,Mt(o)?o.get():o)),Mt(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=Yc(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&&!Mt(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 Rc),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Kc.render(this.render)}}class lg extends GC{constructor(){super(...arguments),this.KeyframeResolver=AC}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;Mt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class to{constructor(t){this.isMounted=!1,this.node=t}update(){}}function cg({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function KC({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ZC(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 Ga(e){return e===void 0||e===1}function Yl({scale:e,scaleX:t,scaleY:n}){return!Ga(e)||!Ga(t)||!Ga(n)}function vo(e){return Yl(e)||ug(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ug(e){return Sf(e.x)||Sf(e.y)}function Sf(e){return e&&e!=="0%"}function vi(e,t,n){const o=e-n,r=t*o;return n+r}function wf(e,t,n,o,r){return r!==void 0&&(e=vi(e,r,o)),vi(e,n,o)+t}function ql(e,t=0,n=1,o,r){e.min=wf(e.min,t,n,o,r),e.max=wf(e.max,t,n,o,r)}function dg(e,{x:t,y:n}){ql(e.x,t.translate,t.scale,t.originPoint),ql(e.y,n.translate,n.scale,n.originPoint)}const Cf=.999999999999,Tf=1.0000000000001;function XC(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&&Ko(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,dg(e,a)),o&&vo(i.latestValues)&&Ko(e,i.latestValues))}t.x<Tf&&t.x>Cf&&(t.x=1),t.y<Tf&&t.y>Cf&&(t.y=1)}function Go(e,t){e.min=e.min+t,e.max=e.max+t}function Pf(e,t,n,o,r=.5){const i=st(e.min,e.max,r);ql(e,t,n,i,o)}function Ko(e,t){Pf(e.x,t.x,t.scaleX,t.scale,t.originX),Pf(e.y,t.y,t.scaleY,t.scale,t.originY)}function fg(e,t){return cg(ZC(e.getBoundingClientRect(),t))}function QC(e,t,n){const o=fg(e,n),{scroll:r}=t;return r&&(Go(o.x,r.offset.x),Go(o.y,r.offset.y)),o}const JC={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eT=mr.length;function tT(e,t,n){let o="",r=!0;for(let i=0;i<eT;i++){const a=mr[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=Jm(l,Gc[a]);if(!c){r=!1;const d=JC[a]||a;o+=`${d}(${u}) `}n&&(t[a]=u)}}return o=o.trim(),n?o=n(t,r?"":o):r&&(o="none"),o}function Jc(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(gr.has(c)){a=!0;continue}else if(Em(c)){r[c]=u;continue}else{const d=Jm(u,Gc[c]);c.startsWith("origin")?(l=!0,i[c]=d):o[c]=d}}if(t.transform||(a||n?o.transform=tT(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 pg(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 Ef(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Tr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ve.test(e))e=parseFloat(e);else return e;const n=Ef(e,t.target.x),o=Ef(e,t.target.y);return`${n}% ${o}%`}},nT={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,r=Zn.parse(e);if(r.length>5)return o;const i=Zn.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=st(l,c,.5);return typeof r[2+a]=="number"&&(r[2+a]/=u),typeof r[3+a]=="number"&&(r[3+a]/=u),i(r)}},Gl={borderRadius:{...Tr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Tr,borderTopRightRadius:Tr,borderBottomLeftRadius:Tr,borderBottomRightRadius:Tr,boxShadow:nT};function hg(e,{layout:t,layoutId:n}){return gr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Gl[e]||e==="opacity")}function eu(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)(Mt(o[l])||r&&Mt(r[l])||hg(l,e)||((a=n==null?void 0:n.getValue(l))==null?void 0:a.liveStyle)!==void 0)&&(i[l]=o[l]);return i}function oT(e){return window.getComputedStyle(e)}class rT extends lg{constructor(){super(...arguments),this.type="html",this.renderInstance=pg}readValueFromInstance(t,n){var o;if(gr.has(n))return(o=this.projection)!=null&&o.isProjecting?Nl(n):Aw(t,n);{const r=oT(t),i=(Em(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return fg(t,n)}build(t,n,o){Jc(t,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,o){return eu(t,n,o)}}const sT={offset:"stroke-dashoffset",array:"stroke-dasharray"},iT={offset:"strokeDashoffset",array:"strokeDasharray"};function aT(e,t,n=1,o=0,r=!0){e.pathLength=1;const i=r?sT:iT;e[i.offset]=`${-o}`,e[i.array]=`${t} ${n}`}const lT=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function mg(e,{attrX:t,attrY:n,attrScale:o,pathLength:r,pathSpacing:i=1,pathOffset:a=0,...l},c,u,d){if(Jc(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 lT)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&&aT(f,r,i,a,!1)}const gg=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"]),yg=e=>typeof e=="string"&&e.toLowerCase()==="svg";function cT(e,t,n,o){pg(e,t,void 0,o);for(const r in t.attrs)e.setAttribute(gg.has(r)?r:qc(r),t.attrs[r])}function bg(e,t,n){const o=eu(e,t,n);for(const r in e)if(Mt(e[r])||Mt(t[r])){const i=mr.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;o[i]=e[r]}return o}class uT extends lg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=vt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(gr.has(n)){const o=Xm(n);return o&&o.default||0}return n=gg.has(n)?n:qc(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,o){return bg(t,n,o)}build(t,n,o){mg(t,n,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,n,o,r){cT(t,n,o,r)}mount(t){this.isSVGTag=yg(t.tagName),super.mount(t)}}const dT=Qc.length;function vg(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?vg(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<dT;n++){const o=Qc[n],r=e.props[o];(ls(r)||r===!1)&&(t[o]=r)}return t}function xg(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 fT=[...Xc].reverse(),pT=Xc.length;function hT(e){return t=>Promise.all(t.map(({animation:n,options:o})=>CC(e,n,o)))}function mT(e){let t=hT(e),n=Mf(),o=!0;const r=c=>(u,d)=>{var p;const f=Qo(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=vg(e.parent)||{},f=[],p=new Set;let h={},m=1/0;for(let y=0;y<pT;y++){const b=fT[y],C=n[b],w=u[b]!==void 0?u[b]:d[b],S=ls(w),T=b===c?C.isActive:null;T===!1&&(m=y);let P=w===d[b]&&w!==u[b]&&S;if(P&&o&&e.manuallyAnimateOnMount&&(P=!1),C.protectedKeys={...h},!C.isActive&&T===null||!w&&!C.prevProp||Zi(w)||typeof w=="boolean")continue;const A=gT(C.prevProp,w);let I=A||b===c&&C.isActive&&!P&&S||y>m&&S,k=!1;const V=Array.isArray(w)?w:[w];let N=V.reduce(r(b),{});T===!1&&(N={});const{prevResolvedValues:x={}}=C,j={...x,...N},R=_=>{I=!0,p.has(_)&&(k=!0,p.delete(_)),C.needsAnimating[_]=!0;const F=e.getValue(_);F&&(F.liveStyle=!1)};for(const _ in j){const F=N[_],B=x[_];if(h.hasOwnProperty(_))continue;let $=!1;Fl(F)&&Fl(B)?$=!xg(F,B):$=F!==B,$?F!=null?R(_):p.add(_):F!==void 0&&p.has(_)?R(_):C.protectedKeys[_]=!0}C.prevProp=w,C.prevResolvedValues=N,C.isActive&&(h={...h,...N}),o&&e.blockInitialAnimation&&(I=!1);const O=P&&A;I&&(!O||k)&&f.push(...V.map(_=>{const F={type:b};if(typeof _=="string"&&o&&!O&&e.manuallyAnimateOnMount&&e.parent){const{parent:B}=e,$=Qo(B,_);if(B.enteringChildren&&$){const{delayChildren:M}=$.transition||{};F.delay=Wm(B.enteringChildren,e,M)}}return{animation:_,options:F}}))}if(p.size){const y={};if(typeof u.initial!="boolean"){const b=Qo(e,Array.isArray(u.initial)?u.initial[0]:u.initial);b&&b.transition&&(y.transition=b.transition)}p.forEach(b=>{const C=e.getBaseTarget(b),w=e.getValue(b);w&&(w.liveStyle=!0),y[b]=C??null}),f.push({animation:y})}let g=!!f.length;return o&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(g=!1),o=!1,g?t(f):Promise.resolve()}function l(c,u){var f;if(n[c].isActive===u)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(p=>{var h;return(h=p.animationState)==null?void 0:h.setActive(c,u)}),n[c].isActive=u;const d=a(c);for(const p in n)n[p].protectedKeys={};return d}return{animateChanges:a,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=Mf()}}}function gT(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!xg(t,e):!1}function ao(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Mf(){return{animate:ao(!0),whileInView:ao(),whileHover:ao(),whileTap:ao(),whileDrag:ao(),whileFocus:ao(),exit:ao()}}function Of(e,t){e.min=t.min,e.max=t.max}function nn(e,t){Of(e.x,t.x),Of(e.y,t.y)}function kf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Sg=1e-4,yT=1-Sg,bT=1+Sg,wg=.01,vT=0-wg,xT=0+wg;function It(e){return e.max-e.min}function ST(e,t,n){return Math.abs(e-t)<=n}function Df(e,t,n,o=.5){e.origin=o,e.originPoint=st(t.min,t.max,e.origin),e.scale=It(n)/It(t),e.translate=st(n.min,n.max,e.origin)-e.originPoint,(e.scale>=yT&&e.scale<=bT||isNaN(e.scale))&&(e.scale=1),(e.translate>=vT&&e.translate<=xT||isNaN(e.translate))&&(e.translate=0)}function Kr(e,t,n,o){Df(e.x,t.x,n.x,o?o.originX:void 0),Df(e.y,t.y,n.y,o?o.originY:void 0)}function Rf(e,t,n){e.min=n.min+t.min,e.max=e.min+It(t)}function wT(e,t,n){Rf(e.x,t.x,n.x),Rf(e.y,t.y,n.y)}function If(e,t,n){e.min=t.min-n.min,e.max=e.min+It(t)}function xi(e,t,n){If(e.x,t.x,n.x),If(e.y,t.y,n.y)}function Af(e,t,n,o,r){return e-=t,e=vi(e,1/n,o),r!==void 0&&(e=vi(e,1/r,o)),e}function CT(e,t=0,n=1,o=.5,r,i=e,a=e){if(mn.test(t)&&(t=parseFloat(t),t=st(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=st(i.min,i.max,o);e===i&&(l-=t),e.min=Af(e.min,t,n,l,r),e.max=Af(e.max,t,n,l,r)}function Nf(e,t,[n,o,r],i,a){CT(e,t[n],t[o],t[r],t.scale,i,a)}const TT=["x","scaleX","originX"],PT=["y","scaleY","originY"];function _f(e,t,n,o){Nf(e.x,t,TT,n?n.x:void 0,o?o.x:void 0),Nf(e.y,t,PT,n?n.y:void 0,o?o.y:void 0)}function jf(e){return e.translate===0&&e.scale===1}function Cg(e){return jf(e.x)&&jf(e.y)}function $f(e,t){return e.min===t.min&&e.max===t.max}function ET(e,t){return $f(e.x,t.x)&&$f(e.y,t.y)}function Lf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Tg(e,t){return Lf(e.x,t.x)&&Lf(e.y,t.y)}function Vf(e){return It(e.x)/It(e.y)}function Ff(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Ut(e){return[e("x"),e("y")]}function MT(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 Pg=["TopLeft","TopRight","BottomLeft","BottomRight"],OT=Pg.length,Bf=e=>typeof e=="string"?parseFloat(e):e,zf=e=>typeof e=="number"||ve.test(e);function kT(e,t,n,o,r,i){r?(e.opacity=st(0,n.opacity??1,DT(o)),e.opacityExit=st(t.opacity??1,0,RT(o))):i&&(e.opacity=st(t.opacity??1,n.opacity??1,o));for(let a=0;a<OT;a++){const l=`border${Pg[a]}Radius`;let c=Wf(t,l),u=Wf(n,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||zf(c)===zf(u)?(e[l]=Math.max(st(Bf(c),Bf(u),o),0),(mn.test(u)||mn.test(c))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=st(t.rotate||0,n.rotate||0,o))}function Wf(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const DT=Eg(0,.5,xm),RT=Eg(.5,.95,Gt);function Eg(e,t,n){return o=>o<e?0:o>t?1:n(ss(e,t,o))}function IT(e,t,n){const o=Mt(e)?e:or(e);return o.start(Hc("",o,t,n)),o.animation}function cs(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}const AT=(e,t)=>e.depth-t.depth;class NT{constructor(){this.children=[],this.isDirty=!1}add(t){Oc(this.children,t),this.isDirty=!0}remove(t){kc(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(AT),this.isDirty=!1,this.children.forEach(t)}}function _T(e,t){const n=Rt.now(),o=({timestamp:r})=>{const i=r-n;i>=t&&(Kn(o),e(i-t))};return Xe.setup(o,!0),()=>Kn(o)}function si(e){return Mt(e)?e.get():e}class jT{constructor(){this.members=[]}add(t){Oc(this.members,t),t.scheduleRender()}remove(t){if(kc(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 ii={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ka=["","X","Y","Z"],$T=1e3;let LT=0;function Za(e,t,n,o){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function Mg(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=qm(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Xe,!(r||i))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&Mg(o)}function Og({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(a={},l=t==null?void 0:t()){this.id=LT++,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(BT),this.nodes.forEach(HT),this.nodes.forEach(YT),this.nodes.forEach(zT)},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 NT)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Rc),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=rg(a)&&!FC(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;Xe.read(()=>{f=window.innerWidth}),e(a,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,d&&d(),d=_T(p,250),ii.hasAnimatedSinceResize&&(ii.hasAnimatedSinceResize=!1,this.nodes.forEach(Yf)))})}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()||XT,{onLayoutAnimationStart:g,onLayoutAnimationComplete:y}=u.getProps(),b=!this.targetLayout||!Tg(this.targetLayout,h),C=!f&&p;if(this.options.layoutRoot||this.resumeFrom||C||f&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...Uc(m,"layout"),onPlay:g,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(d,C)}else f||Yf(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(),Kn(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(qT),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&&Mg(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(Uf);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Hf);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(UT),this.nodes.forEach(VT),this.nodes.forEach(FT)):this.nodes.forEach(Hf),this.clearAllSnapshots();const l=Rt.now();Pt.delta=bn(0,1e3/60,l-Pt.timestamp),Pt.timestamp=l,Pt.isProcessing=!0,Ba.update.process(Pt),Ba.preRender.process(Pt),Ba.render.process(Pt),Pt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Kc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(WT),this.sharedNodes.forEach(GT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Xe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Xe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!It(this.snapshot.measuredBox.x)&&!It(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=vt(),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&&!Cg(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&this.instance&&(l||vo(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)),QT(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:a}=this.options;if(!a)return vt();const l=a.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(JT))){const{scroll:d}=this.root;d&&(Go(l.x,d.offset.x),Go(l.y,d.offset.y))}return l}removeElementScroll(a){var c;const l=vt();if(nn(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&&nn(l,a),Go(l.x,f.offset.x),Go(l.y,f.offset.y))}return l}applyTransform(a,l=!1){const c=vt();nn(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&&Ko(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),vo(d.latestValues)&&Ko(c,d.latestValues)}return vo(this.latestValues)&&Ko(c,this.latestValues),c}removeTransform(a){const l=vt();nn(l,a);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!vo(u.latestValues))continue;Yl(u.latestValues)&&u.updateSnapshot();const d=vt(),f=u.measurePageBox();nn(d,f),_f(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return vo(this.latestValues)&&_f(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!==Pt.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=Pt.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=vt(),this.targetWithTransforms=vt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),wT(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nn(this.target,this.layout.layoutBox),dg(this.target,this.targetDelta)):nn(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||Yl(this.parent.latestValues)||ug(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=vt(),this.relativeTargetOrigin=vt(),xi(this.relativeTargetOrigin,l,c),nn(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===Pt.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;nn(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,p=this.treeScale.y;XC(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=vt());const{target:h}=a;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(kf(this.prevProjectionDelta.x,this.projectionDelta.x),kf(this.prevProjectionDelta.y,this.projectionDelta.y)),Kr(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!Ff(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ff(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=qo(),this.projectionDelta=qo(),this.projectionDeltaWithTransform=qo()}setAnimationOrigin(a,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},f=qo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const p=vt(),h=c?c.source:void 0,m=this.layout?this.layout.source:void 0,g=h!==m,y=this.getStack(),b=!y||y.members.length<=1,C=!!(g&&!b&&this.options.crossfade===!0&&!this.path.some(ZT));this.animationProgress=0;let w;this.mixTargetDelta=S=>{const T=S/1e3;qf(f.x,a.x,T),qf(f.y,a.y,T),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(xi(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),KT(this.relativeTarget,this.relativeTargetOrigin,p,T),w&&ET(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=vt()),nn(w,this.relativeTarget)),g&&(this.animationValues=d,kT(d,u,this.latestValues,T,C,b)),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&&(Kn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Xe.update(()=>{ii.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=or(0)),this.currentAnimation=IT(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($T),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&&kg(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||vt();const f=It(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+f;const p=It(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+p}nn(l,c),Ko(l,d),Kr(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new jT),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&&Za("z",a,u,this.animationValues);for(let d=0;d<Ka.length;d++)Za(`rotate${Ka[d]}`,a,u,this.animationValues),Za(`skew${Ka[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=si(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=si(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!vo(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=MT(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 Gl){if(d[m]===void 0)continue;const{correct:g,applyTo:y,isCSSVariable:b}=Gl[m],C=f==="none"?d[m]:g(d[m],u);if(y){const w=y.length;for(let S=0;S<w;S++)a[y[S]]=C}else b?this.options.visualElement.renderState.vars[m]=C:a[m]=C}this.options.layoutId&&(a.pointerEvents=u===this?si(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(Uf),this.root.sharedNodes.clear()}}}function VT(e){e.updateLayout()}function FT(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"?Ut(f=>{const p=a?t.measuredBox[f]:t.layoutBox[f],h=It(p);p.min=o[f].min,p.max=p.min+h}):kg(i,t.layoutBox,o)&&Ut(f=>{const p=a?t.measuredBox[f]:t.layoutBox[f],h=It(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=qo();Kr(l,o,t.layoutBox);const c=qo();a?Kr(c,e.applyTransform(r,!0),t.measuredBox):Kr(c,o,t.layoutBox);const u=!Cg(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=vt();xi(m,t.layoutBox,p.layoutBox);const g=vt();xi(g,o,h.layoutBox),Tg(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 BT(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 zT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function WT(e){e.clearSnapshot()}function Uf(e){e.clearMeasurements()}function Hf(e){e.isLayoutDirty=!1}function UT(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Yf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function HT(e){e.resolveTargetDelta()}function YT(e){e.calcProjection()}function qT(e){e.resetSkewAndRotation()}function GT(e){e.removeLeadSnapshot()}function qf(e,t,n){e.translate=st(t.translate,0,n),e.scale=st(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Gf(e,t,n,o){e.min=st(t.min,n.min,o),e.max=st(t.max,n.max,o)}function KT(e,t,n,o){Gf(e.x,t.x,n.x,o),Gf(e.y,t.y,n.y,o)}function ZT(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const XT={duration:.45,ease:[.4,0,.1,1]},Kf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Zf=Kf("applewebkit/")&&!Kf("chrome/")?Math.round:Gt;function Xf(e){e.min=Zf(e.min),e.max=Zf(e.max)}function QT(e){Xf(e.x),Xf(e.y)}function kg(e,t,n){return e==="position"||e==="preserve-aspect"&&!ST(Vf(t),Vf(n),.2)}function JT(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const eP=Og({attachResizeListener:(e,t)=>cs(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}),Xa={current:void 0},Dg=Og({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Xa.current){const e=new eP({});e.mount(window),e.setOptions({layoutScroll:!0}),Xa.current=e}return Xa.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),tu=L.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Qf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function tP(...e){return t=>{let n=!1;const o=e.map(r=>{const i=Qf(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():Qf(e[r],null)}}}}function nP(...e){return E.useCallback(tP(...e),e)}class oP extends E.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const o=n.offsetParent,r=Ul(o)&&o.offsetWidth||0,i=Ul(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 rP({children:e,isPresent:t,anchorX:n,anchorY:o,root:r}){var f;const i=L.useId(),a=L.useRef(null),l=L.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=L.useContext(tu),u=((f=e.props)==null?void 0:f.ref)??(e==null?void 0:e.ref),d=nP(a,u);return L.useInsertionEffect(()=>{const{width:p,height:h,top:m,left:g,right:y,bottom:b}=l.current;if(t||!a.current||!p||!h)return;const C=n==="left"?`left: ${g}`:`right: ${y}`,w=o==="bottom"?`bottom: ${b}`:`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}"] {
|
|
99
|
+
position: absolute !important;
|
|
100
|
+
width: ${p}px !important;
|
|
101
|
+
height: ${h}px !important;
|
|
102
|
+
${C}px !important;
|
|
103
|
+
${w}px !important;
|
|
104
|
+
}
|
|
105
|
+
`),()=>{T.contains(S)&&T.removeChild(S)}},[t]),v.jsx(oP,{isPresent:t,childRef:a,sizeRef:l,children:E.cloneElement(e,{ref:d})})}const sP=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:r,presenceAffectsLayout:i,mode:a,anchorX:l,anchorY:c,root:u})=>{const d=Mc(iP),f=L.useId();let p=!0,h=L.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}),L.useMemo(()=>{d.forEach((m,g)=>d.set(g,!1))},[n]),E.useEffect(()=>{!n&&!d.size&&o&&o()},[n]),a==="popLayout"&&(e=v.jsx(rP,{isPresent:n,anchorX:l,anchorY:c,root:u,children:e})),v.jsx(Ki.Provider,{value:h,children:e})};function iP(){return new Map}function Rg(e=!0){const t=L.useContext(Ki);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:r}=t,i=L.useId();L.useEffect(()=>{if(e)return r(i)},[e]);const a=L.useCallback(()=>e&&o&&o(i),[i,o,e]);return!n&&o?[!1,a]:[!0]}const zs=e=>e.key||"";function Jf(e){const t=[];return L.Children.forEach(e,n=>{L.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]=Rg(a),p=L.useMemo(()=>Jf(e),[e]),h=a&&!d?[]:p.map(zs),m=L.useRef(!0),g=L.useRef(p),y=Mc(()=>new Map),b=L.useRef(new Set),[C,w]=L.useState(p),[S,T]=L.useState(p);cm(()=>{m.current=!1,g.current=p;for(let I=0;I<S.length;I++){const k=zs(S[I]);h.includes(k)?(y.delete(k),b.current.delete(k)):y.get(k)!==!0&&y.set(k,!1)}},[S,h.length,h.join("-")]);const P=[];if(p!==C){let I=[...p];for(let k=0;k<S.length;k++){const V=S[k],N=zs(V);h.includes(N)||(I.splice(k,0,V),P.push(V))}return i==="wait"&&P.length&&(I=P),T(Jf(I)),w(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:A}=L.useContext(Ec);return v.jsx(v.Fragment,{children:S.map(I=>{const k=zs(I),V=a&&!d?!1:p===S||h.includes(k),N=()=>{if(b.current.has(k))return;if(b.current.add(k),y.has(k))y.set(k,!0);else return;let x=!0;y.forEach(j=>{j||(x=!1)}),x&&(A==null||A(),T(g.current),a&&(f==null||f()),o&&o())};return v.jsx(sP,{isPresent:V,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:r,mode:i,root:u,onExitComplete:V?void 0:N,anchorX:l,anchorY:c,children:I},k)})})},Ig=L.createContext({strict:!1}),ep={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 tp=!1;function lP(){if(tp)return;const e={};for(const t in ep)e[t]={isEnabled:n=>ep[t].some(o=>!!n[o])};ag(e),tp=!0}function Ag(){return lP(),qC()}function cP(e){const t=Ag();for(const n in e)t[n]={...t[n],...e[n]};ag(t)}const uP=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 Si(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||uP.has(e)}let Ng=e=>!Si(e);function dP(e){typeof e=="function"&&(Ng=t=>t.startsWith("on")?!Si(t):e(t))}try{dP(require("@emotion/is-prop-valid").default)}catch{}function fP(e,t,n){const o={};for(const r in e)r==="values"&&typeof e.values=="object"||(Ng(r)||n===!0&&Si(r)||!t&&!Si(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}const Qi=L.createContext({});function pP(e,t){if(Xi(e)){const{initial:n,animate:o}=e;return{initial:n===!1||ls(n)?n:void 0,animate:ls(o)?o:void 0}}return e.inherit!==!1?t:{}}function hP(e){const{initial:t,animate:n}=pP(e,L.useContext(Qi));return L.useMemo(()=>({initial:t,animate:n}),[np(t),np(n)])}function np(e){return Array.isArray(e)?e.join(" "):e}const nu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function _g(e,t,n){for(const o in t)!Mt(t[o])&&!hg(o,n)&&(e[o]=t[o])}function mP({transformTemplate:e},t){return L.useMemo(()=>{const n=nu();return Jc(n,t,e),Object.assign({},n.vars,n.style)},[t])}function gP(e,t){const n=e.style||{},o={};return _g(o,n,e),Object.assign(o,mP(e,t)),o}function yP(e,t){const n={},o=gP(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 jg=()=>({...nu(),attrs:{}});function bP(e,t,n,o){const r=L.useMemo(()=>{const i=jg();return mg(i,t,yg(o),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};_g(i,e.style,e),r.style={...i,...r.style}}return r}const vP=["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 ou(e){return typeof e!="string"||e.includes("-")?!1:!!(vP.indexOf(e)>-1||/[A-Z]/u.test(e))}function xP(e,t,n,{latestValues:o},r,i=!1,a){const c=(a??ou(e)?bP:yP)(t,o,r,e),u=fP(t,typeof e=="string",i),d=e!==L.Fragment?{...u,...c,ref:n}:{},{children:f}=t,p=L.useMemo(()=>Mt(f)?f.get():f,[f]);return L.createElement(e,{...d,children:p})}function SP({scrapeMotionValuesFromProps:e,createRenderState:t},n,o,r){return{latestValues:wP(n,o,r,e),renderState:t()}}function wP(e,t,n,o){const r={},i=o(e,{});for(const p in i)r[p]=si(i[p]);let{initial:a,animate:l}=e;const c=Xi(e),u=ig(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"&&!Zi(f)){const p=Array.isArray(f)?f:[f];for(let h=0;h<p.length;h++){const m=Yc(e,p[h]);if(m){const{transitionEnd:g,transition:y,...b}=m;for(const C in b){let w=b[C];if(Array.isArray(w)){const S=d?w.length-1:0;w=w[S]}w!==null&&(r[C]=w)}for(const C in g)r[C]=g[C]}}}return r}const $g=e=>(t,n)=>{const o=L.useContext(Qi),r=L.useContext(Ki),i=()=>SP(e,t,o,r);return n?i():Mc(i)},CP=$g({scrapeMotionValuesFromProps:eu,createRenderState:nu}),TP=$g({scrapeMotionValuesFromProps:bg,createRenderState:jg}),PP=Symbol.for("motionComponentSymbol");function EP(e,t,n){const o=L.useRef(n);L.useInsertionEffect(()=>{o.current=n});const r=L.useRef(null);return L.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 Lg=L.createContext({});function Fr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function MP(e,t,n,o,r,i){var w,S;const{visualElement:a}=L.useContext(Qi),l=L.useContext(Ig),c=L.useContext(Ki),u=L.useContext(tu),d=u.reducedMotion,f=u.skipAnimations,p=L.useRef(null),h=L.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=L.useContext(Lg);m&&!m.projection&&r&&(m.type==="html"||m.type==="svg")&&OP(p.current,n,r,g);const y=L.useRef(!1);L.useInsertionEffect(()=>{m&&y.current&&m.update(n,c)});const b=n[Ym],C=L.useRef(!!b&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,b))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,b)));return cm(()=>{h.current=!0,m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),C.current&&m.animationState&&m.animationState.animateChanges())}),L.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)==null||T.call(window,b)}),C.current=!1),m.enteringChildren=void 0)}),m}function OP(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:Vg(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!a||l&&Fr(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:o,crossfade:d,layoutScroll:c,layoutRoot:u})}function Vg(e){if(e)return e.options.allowProjection!==!1?e.projection:Vg(e.parent)}function Qa(e,{forwardMotionProps:t=!1,type:n}={},o,r){o&&cP(o);const i=n?n==="svg":ou(e),a=i?TP:CP;function l(u,d){let f;const p={...L.useContext(tu),...u,layoutId:kP(u)},{isStatic:h}=p,m=hP(u),g=a(u,h);if(!h&&lm){DP(p,o);const y=RP(p);f=y.MeasureLayout,m.visualElement=MP(e,g,p,r,y.ProjectionNode,i)}return v.jsxs(Qi.Provider,{value:m,children:[f&&m.visualElement?v.jsx(f,{visualElement:m.visualElement,...p}):null,xP(e,u,EP(g,m.visualElement,d),g,h,t,i)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=L.forwardRef(l);return c[PP]=e,c}function kP({layoutId:e}){const t=L.useContext(Ec).id;return t&&e!==void 0?t+"-"+e:e}function DP(e,t){const n=L.useContext(Ig).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?pr(!1,o,"lazy-strict-mode"):Dn(!1,o,"lazy-strict-mode")}}function RP(e){const t=Ag(),{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 IP(e,t){if(typeof Proxy>"u")return Qa;const n=new Map,o=(i,a)=>Qa(i,a,e,t),r=(i,a)=>(process.env.NODE_ENV!=="production"&&Ic(!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,Qa(a,void 0,e,t)),n.get(a))})}const AP=(e,t)=>t.isSVG??ou(e)?new uT(t):new rT(t,{allowProjection:e!==L.Fragment});class NP extends to{constructor(t){super(t),t.animationState||(t.animationState=mT(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Zi(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 _P=0;class jP extends to{constructor(){super(...arguments),this.id=_P++}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 $P={animation:{Feature:NP},exit:{Feature:jP}};function Ts(e){return{point:{x:e.pageX,y:e.pageY}}}const LP=e=>t=>Zc(t)&&e(t,Ts(t));function Zr(e,t,n,o){return cs(e,t,LP(n),o)}const Fg=({current:e})=>e?e.ownerDocument.defaultView:null,op=(e,t)=>Math.abs(e-t);function VP(e,t){const n=op(e.x,t.x),o=op(e.y,t.y);return Math.sqrt(n**2+o**2)}const rp=new Set(["auto","scroll"]);class Bg{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=el(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=VP(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!g)return;const{point:y}=h,{timestamp:b}=Pt;this.history.push({...y,timestamp:b});const{onStart:C,onMove:w}=this.handlers;m||(C&&C(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Ja(m,this.transformPagePoint),Xe.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:g,onSessionEnd:y,resumeAnimation:b}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=el(h.type==="pointercancel"?this.lastMoveEventInfo:Ja(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,C),y&&y(h,C)},!Zc(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=o,this.distanceThreshold=a,this.contextWindow=r||window;const c=Ts(t),u=Ja(c,this.transformPagePoint),{point:d}=u,{timestamp:f}=Pt;this.history=[{...d,timestamp:f}];const{onSessionStart:p}=n;p&&p(t,el(u,this.history)),this.removeListeners=Ss(Zr(this.contextWindow,"pointermove",this.handlePointerMove),Zr(this.contextWindow,"pointerup",this.handlePointerUp),Zr(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(t){let n=t.parentElement;for(;n;){const o=getComputedStyle(n);(rp.has(o.overflowX)||rp.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),Xe.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Kn(this.updatePoint)}}function Ja(e,t){return t?{point:t(e.point)}:e}function sp(e,t){return{x:e.x-t.x,y:e.y-t.y}}function el({point:e},t){return{point:e,delta:sp(e,zg(t)),offset:sp(e,FP(t)),velocity:BP(t,.1)}}function FP(e){return e[0]}function zg(e){return e[e.length-1]}function BP(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const r=zg(e);for(;n>=0&&(o=e[n],!(r.timestamp-o.timestamp>hn(t)));)n--;if(!o)return{x:0,y:0};const i=qt(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 zP(e,{min:t,max:n},o){return t!==void 0&&e<t?e=o?st(t,e,o.min):Math.max(e,t):n!==void 0&&e>n&&(e=o?st(n,e,o.max):Math.min(e,n)),e}function ip(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 WP(e,{top:t,left:n,bottom:o,right:r}){return{x:ip(e.x,n,r),y:ip(e.y,t,o)}}function ap(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 UP(e,t){return{x:ap(e.x,t.x),y:ap(e.y,t.y)}}function HP(e,t){let n=.5;const o=It(e),r=It(t);return r>o?n=ss(t.min,t.max-o,e.min):o>r&&(n=ss(e.min,e.max-r,t.min)),bn(0,1,n)}function YP(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 Kl=.35;function qP(e=Kl){return e===!1?e=0:e===!0&&(e=Kl),{x:lp(e,"left","right"),y:lp(e,"top","bottom")}}function lp(e,t,n){return{min:cp(e,t),max:cp(e,n)}}function cp(e,t){return typeof e=="number"?e:e[t]||0}const GP=new WeakMap;class KP{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=vt(),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(Ts(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=_C(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),Ut(b=>{let C=this.getAxisMotionValue(b).get()||0;if(mn.test(C)){const{projection:w}=this.visualElement;if(w&&w.layout){const S=w.layout.layoutBox[b];S&&(C=It(S)*(parseFloat(C)/100))}}this.originPoint[b]=C}),g&&Xe.postRender(()=>g(f,p)),Bl(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:b}=p;if(m&&this.currentDirection===null){this.currentDirection=ZP(b),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",p.point,b),this.updateAxis("y",p.point,b),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=()=>Ut(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 Bg(t,{onSessionStart:i,onStart:a,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:o,contextWindow:Fg(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&&Xe.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||!Ws(t,r,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(a=zP(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&&Fr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=WP(o.layoutBox,t):this.constraints=!1,this.elastic=qP(n),r!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ut(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=YP(o.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Fr(t))return!1;const o=t.current;Dn(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=QC(o,r.root,this.visualElement.getTransformPagePoint());let a=UP(r.layout.layoutBox,i);if(n){const l=n(KC(a));this.hasMutatedConstraints=!!l,l&&(a=cg(l))}return a}startAnimation(t){const{drag:n,dragMomentum:o,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=Ut(d=>{if(!Ws(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 Bl(this.visualElement,t),o.start(Hc(t,o,0,n,this.visualElement,!1))}stopAnimation(){Ut(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ut(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){Ut(n=>{const{drag:o}=this.getProps();if(!Ws(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]-st(a,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!Fr(n)||!o||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Ut(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const c=l.get();r[a]=HP({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(),Ut(a=>{if(!Ws(a,t,null))return;const l=this.getAxisMotionValue(a),{min:c,max:u}=this.constraints[a];l.set(st(c,u,r[a]))})}addListeners(){if(!this.visualElement.current)return;GP.set(this.visualElement,this);const t=this.visualElement.current,n=Zr(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),f=c.target,p=f!==t&&og(f);u&&d&&!p&&this.start(c)}),o=()=>{const{dragConstraints:c}=this.getProps();Fr(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()),Xe.read(o);const a=cs(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ut(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=Kl,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:o,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:l}}}function Ws(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function ZP(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class XP extends to{constructor(t){super(t),this.removeGroupControls=Gt,this.removeListeners=Gt,this.controls=new KP(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Gt}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 up=e=>(t,n)=>{e&&Xe.postRender(()=>e(t,n))};class QP extends to{constructor(){super(...arguments),this.removePointerDownListener=Gt}onPointerDown(t){this.session=new Bg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Fg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:o,onPanEnd:r}=this.node.getProps();return{onSessionStart:up(t),onStart:up(n),onMove:o,onEnd:(i,a)=>{delete this.session,r&&Xe.postRender(()=>r(i,a))}}}mount(){this.removePointerDownListener=Zr(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 tl=!1;class JP extends L.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),tl&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ii.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}),tl=!0,r||t.layoutDependency!==n||n===void 0||t.isPresent!==i?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Xe.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Kc.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:r}=t;tl=!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 Wg(e){const[t,n]=Rg(),o=L.useContext(Ec);return v.jsx(JP,{...e,layoutGroup:o,switchLayoutGroup:L.useContext(Lg),isPresent:t,safeToRemove:n})}const eE={pan:{Feature:QP},drag:{Feature:XP,ProjectionNode:Dg,MeasureLayout:Wg}};function dp(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&&Xe.postRender(()=>i(t,Ts(t)))}class tE extends to{mount(){const{current:t}=this.node;t&&(this.unmount=jC(t,(n,o)=>(dp(this.node,o,"Start"),r=>dp(this.node,r,"End"))))}unmount(){}}class nE extends to{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=Ss(cs(this.node.current,"focus",()=>this.onFocus()),cs(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function fp(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&&Xe.postRender(()=>i(t,Ts(t)))}class oE extends to{mount(){const{current:t}=this.node;t&&(this.unmount=VC(t,(n,o)=>(fp(this.node,o,"Start"),(r,{success:i})=>fp(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Zl=new WeakMap,nl=new WeakMap,rE=e=>{const t=Zl.get(e.target);t&&t(e)},sE=e=>{e.forEach(rE)};function iE({root:e,...t}){const n=e||document;nl.has(n)||nl.set(n,{});const o=nl.get(n),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(sE,{root:e,...t})),o[r]}function aE(e,t,n){const o=iE(t);return Zl.set(e,n),o.observe(e),()=>{Zl.delete(e),o.unobserve(e)}}const lE={some:0,all:1};class cE extends to{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:lE[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 aE(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(uE(t,n))&&this.startObserver()}unmount(){}}function uE({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const dE={inView:{Feature:cE},tap:{Feature:oE},focus:{Feature:nE},hover:{Feature:tE}},fE={layout:{ProjectionNode:Dg,MeasureLayout:Wg}},pE={...$P,...dE,...eE,...fE},ai=IP(pE,AP),Ug="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",Hg="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",Ji="Facial",ea="LPR",hE=[Ji,ea];function mE(e){return e===Ji?v.jsx("img",{src:Ug,alt:"Facial",width:16,height:16,style:{display:"block"}}):e===ea?v.jsx("img",{src:Hg,alt:"LPR",width:16,height:16,style:{display:"block"}}):null}function gE(e){if(!e||!Array.isArray(e)||e.length===0)return;const t={};return e.forEach(n=>{const o=n.algorithm;o&&hE.includes(o)&&(t[o]=(t[o]||0)+1)}),Object.entries(t).map(([n,o])=>({count:o,icon:mE(n)}))}const yE="_spotWrapper_1cdqg_1",bE="_mapSpot_1cdqg_8",vE="_selected_1cdqg_27",xE="_count_1cdqg_31",SE="_countSelected_1cdqg_43",wE="_cameraTypesContainer_1cdqg_47",CE="_cameraTypeItem_1cdqg_54",TE="_cameraTypeCount_1cdqg_61",PE="_cameraTypeIcon_1cdqg_72",wn={spotWrapper:yE,mapSpot:bE,selected:vE,count:xE,countSelected:SE,cameraTypesContainer:wE,cameraTypeItem:CE,cameraTypeCount:TE,cameraTypeIcon:PE},EE=ai(Y.Box),ME=16,ru=({count:e,addressText:t,cameras:n,currentZoom:o=13,isSelected:r,disableClick:i=!1,className:a,onClick:l,sx:c})=>{const d=Y.useTheme().palette.mode==="dark",f=L.useMemo(()=>gE(n),[n]),h=f&&f.length>0&&o>=ME,g=r?"var(--Tertiary-Tertiary, #7FCFCF)":d?"var(--Surface-Inverse-Surface, #C7C6C6)":"var(--Surface-Inverse-Surface, #3B3B3C)",y=8;return v.jsx("div",{className:wn.spotWrapper,"data-theme":d?"dark":"light",children:v.jsx(EE,{className:`${wn.mapSpot} ${r?wn.selected:""} ${a||""}`,onClick:i?void 0:l,sx:{...c,position:"relative",overflow:"visible","&::after":{content:'""',position:"absolute",bottom:0,left:"50%",transform:"translate(-50%, 100%)",width:0,height:0,borderLeft:`${y}px solid transparent`,borderRight:`${y}px solid transparent`,borderTop:`${y}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":g,"--arrow-opacity":h?1:0},animate:{width:h?"auto":30,height:h?"auto":30,borderRadius:"100px",backgroundColor:g,padding:h?"4px 8px":0,borderWidth:r?1:0,borderStyle:"solid",borderColor:r?"var(--Tertiary-On-Tertiary, #ffffff)":"transparent",y:h?-y:0,"--arrow-opacity":h?1:0},transition:{duration:.2,ease:"easeInOut"},children:v.jsx(aP,{mode:"wait",children:h?v.jsx(ai.div,{className:wn.cameraTypesContainer,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2,ease:"easeInOut"},children:f.map((b,C)=>v.jsxs(ai.div,{className:wn.cameraTypeItem,initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{duration:.2,delay:C*.05},children:[v.jsx(Y.Typography,{className:wn.cameraTypeCount,children:b.count}),b.icon&&v.jsx(Y.Box,{className:wn.cameraTypeIcon,children:b.icon})]},C))},"expanded"):v.jsx(ai.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2,ease:"easeInOut"},children:v.jsx(Y.Typography,{className:`${wn.count} ${r?wn.countSelected:""}`,children:e})},"collapsed")})})})};ru.displayName="MapSpot";const OE="_cameraCard_1hvrf_2",kE="_topContainer_1hvrf_52",DE="_mediaImage_1hvrf_66",RE="_mediaPlaceholder_1hvrf_73",IE="_menuButton_1hvrf_79",AE="_menuButtonIcon_1hvrf_98",NE="_bottomContainer_1hvrf_104",_E="_infoRow_1hvrf_116",jE="_iconWrapper_1hvrf_123",$E="_cameraIcon_1hvrf_131",LE="_cameraTypeImage_1hvrf_138",VE="_textColumn_1hvrf_146",FE="_headerText_1hvrf_155",BE="_subheadText_1hvrf_165",zE="_streetText_1hvrf_175",WE="_supportText_1hvrf_176",UE="_tagsContainer_1hvrf_186",HE="_tag_1hvrf_186",YE="_tagOverflow_1hvrf_199",qE="_cameraCardMenuPaper_1hvrf_220",GE="_cameraCardMenuList_1hvrf_244",KE="_cameraCardMenuItem_1hvrf_252",ZE="_cameraCardMenuItemText_1hvrf_291",et={cameraCard:OE,topContainer:kE,mediaImage:DE,mediaPlaceholder:RE,menuButton:IE,menuButtonIcon:AE,bottomContainer:NE,infoRow:_E,iconWrapper:jE,cameraIcon:$E,cameraTypeImage:LE,textColumn:VE,headerText:FE,subheadText:BE,streetText:zE,supportText:WE,tagsContainer:UE,tag:HE,tagOverflow:YE,cameraCardMenuPaper:qE,cameraCardMenuList:GE,cameraCardMenuItem:KE,cameraCardMenuItemText:ZE};function XE(e){return e===Ji?v.jsx("img",{src:Ug,alt:"Facial",width:20,height:20,className:et.cameraTypeImage}):e===ea?v.jsx("img",{src:Hg,alt:"LPR",width:20,height:20,className:et.cameraTypeImage}):v.jsx(Vt.VideocamOutlined,{className:et.cameraIcon})}const QE=({cameraName:e,streetName:t,pointName:n,neighborhoodAndCity:o,tags:r=[],imageUrl:i,algorithm:a,menuItems:l,onMenuClick:c,className:u})=>{const f=ie.useTheme().palette.mode==="dark",p=o??"",h=n??"",m=L.useRef(null),g=L.useRef(null),[y,b]=L.useState(r.length),[C,w]=L.useState(!1),S=L.useRef(!1),T=((l==null?void 0:l.length)??0)>0||c,P=((l==null?void 0:l.length)??0)>0;L.useLayoutEffect(()=>{r.length!==0&&(b(r.length),S.current=!1)},[r.length]),L.useLayoutEffect(()=>{const N=m.current;if(!N||r.length===0)return;const x=()=>{if(!N)return;const{scrollWidth:R,clientWidth:O}=N;R>O?(S.current=!0,b(D=>Math.max(0,D-1))):!S.current&&y<r.length?b(D=>Math.min(r.length,D+1)):S.current=!1};x();const j=new ResizeObserver(x);return j.observe(N),()=>j.disconnect()},[r.length,y]);const A=y<r.length,I=A?r.slice(0,y):r,k=A?r.length-y:0,V=r.length>0?r.join(", "):"";return v.jsxs(Y.Box,{className:`${et.cameraCard} ${u||""}`.trim(),"data-theme":f?"dark":"light",children:[v.jsxs(Y.Box,{className:et.topContainer,children:[i?v.jsx("img",{src:i,alt:"",className:et.mediaImage}):v.jsx(Y.Box,{className:et.mediaPlaceholder,"aria-hidden":!0}),T&&v.jsx(Y.IconButton,{ref:g,onClick:()=>{P?w(!0):c==null||c()},className:et.menuButton,"aria-label":"Opções","aria-haspopup":P?"menu":void 0,"aria-expanded":C,size:"small",children:v.jsx(Vt.MoreHoriz,{className:et.menuButtonIcon})})]}),P&&v.jsx(Y.Popover,{open:C,anchorEl:g.current,onClose:()=>w(!1),anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{elevation:0,sx:{padding:0,background:"transparent",marginLeft:2}}},children:v.jsx(Y.Box,{className:et.cameraCardMenuPaper,"data-theme":f?"dark":"light",children:v.jsx(Y.Box,{className:et.cameraCardMenuList,role:"menu",children:l.map(N=>v.jsx("button",{type:"button",className:et.cameraCardMenuItem,role:"menuitem",onClick:()=>{var x;(x=N.onClick)==null||x.call(N),w(!1)},children:v.jsx("span",{className:et.cameraCardMenuItemText,children:N.label})},N.label))})})}),v.jsxs(Y.Box,{className:et.bottomContainer,children:[v.jsxs(Y.Box,{className:et.infoRow,children:[v.jsx(Y.Box,{className:et.iconWrapper,children:XE(a)}),v.jsxs(Y.Box,{className:et.textColumn,children:[v.jsx("span",{className:et.headerText,children:e}),h&&v.jsx("span",{className:et.subheadText,children:h}),v.jsx("span",{className:et.streetText,children:t}),p&&v.jsx("span",{className:et.supportText,children:p})]})]}),r.length>0&&v.jsx(Y.Tooltip,{title:V,placement:"top",enterDelay:300,children:v.jsxs(Y.Box,{ref:m,className:et.tagsContainer,component:"span",tabIndex:0,role:"group","aria-label":"Tags da câmera",children:[I.map(N=>v.jsx("span",{className:et.tag,children:N},N)),A&&v.jsxs("span",{className:et.tagOverflow,children:["+",k]})]})})]})]})},JE=(e,t=1,n=13)=>()=>{if(!e)return;const o=e.getZoom()??n;e.setZoom(o+t)},eM=(e,t=1,n=1,o=13)=>()=>{if(!e)return;const r=e.getZoom()??o;e.setZoom(Math.max(n,r-t))},tM="_container_1whpg_2",nM="_zoomButton_1whpg_10",oM="_stateLayer_1whpg_43",rM="_icon_1whpg_59",un={container:tM,zoomButton:nM,stateLayer:oM,icon:rM},sM=({map:e,className:t,sx:n,zoomIncrement:o=1,minZoom:r=1,fallbackZoom:i=13,onFullscreen:a})=>{const c=Y.useTheme().palette.mode==="dark",u=JE(e,o,i),d=eM(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 v.jsxs(Y.Box,{className:`${un.container} ${t||""}`,sx:n,children:[v.jsx(Y.IconButton,{className:un.zoomButton,onClick:u,"aria-label":"Zoom in",sx:f,children:v.jsx(Y.Box,{className:un.stateLayer,children:v.jsx(Vt.Add,{className:un.icon,sx:p})})}),v.jsx(Y.IconButton,{className:un.zoomButton,onClick:d,"aria-label":"Zoom out",sx:f,children:v.jsx(Y.Box,{className:un.stateLayer,children:v.jsx(Vt.Remove,{className:un.icon,sx:p})})}),v.jsx(Y.IconButton,{className:un.zoomButton,onClick:a,"aria-label":"Fullscreen",sx:f,children:v.jsx(Y.Box,{className:un.stateLayer,children:v.jsx(Vt.ZoomOutMap,{className:un.icon,sx:p})})})]})};var iM=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 aM=Qn(iM),lM="1.7.1";function rr(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 Xl(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 Pn={NOT_LOADED:"NOT_LOADED",LOADING:"LOADING",LOADED:"LOADED",FAILED:"FAILED",AUTH_FAILURE:"AUTH_FAILURE"},cM="https://maps.googleapis.com/maps/api/js";class wi{static load(t,n){return Xl(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=Pn.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=cM+"?"+c.toString(),l.nonce=((a=document.querySelector("script[nonce]"))===null||a===void 0?void 0:a.nonce)||"",l.onerror=()=>{this.loadingStatus=Pn.FAILED,this.notifyLoadingStatusListeners(),i(new Error("The Google Maps JavaScript API could not load."))},window.__googleMapsCallback__=()=>{this.loadingStatus=Pn.LOADED,this.notifyLoadingStatusListeners(),r()},window.gm_authFailure=()=>{this.loadingStatus=Pn.AUTH_FAILURE,this.notifyLoadingStatusListeners()},this.loadingStatus=Pn.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)}}wi.loadingStatus=Pn.NOT_LOADED;wi.listeners=[];const uM="GMP_visgl_rgmlibrary_v1_default",dM=[`gmp_visgl_reactgooglemaps_v${lM}`],Ps=L.createContext(null);function fM(){const[e,t]=L.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=rr(a,[typeof l=="symbol"?l:l+""]);return c})},clearMapInstances:()=>{t({})}}}function pM(e){const{onLoad:t,onError:n,apiKey:o,version:r,libraries:i=[]}=e,a=rr(e,["onLoad","onError","apiKey","version","libraries"]),[l,c]=L.useState(wi.loadingStatus),[u,d]=L.useReducer((m,g)=>m[g.name]?m:Object.assign(Object.assign({},m),{[g.name]:g.value}),{}),f=L.useMemo(()=>i==null?void 0:i.join(","),[i]),p=L.useMemo(()=>JSON.stringify(Object.assign({apiKey:o,version:r},a)),[o,r,a]),h=L.useCallback(m=>Xl(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 L.useEffect(()=>{Xl(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=uM:m.solutionChannel===""&&delete m.solutionChannel,yield wi.load(m,g=>c(g));for(const g of["core","maps",...i])yield h(g);t&&t()}catch(m){n?n(m):console.error("<ApiProvider> failed to load the Google Maps JavaScript API",m)}})},[o,f,p]),{status:l,loadedLibraries:u,importLibrary:h}}function hM(e){return L.useMemo(()=>e.disableUsageAttribution?null:dM,[e.disableUsageAttribution])}const mM=e=>{const{children:t}=e,n=rr(e,["children"]),{mapInstances:o,addMapInstance:r,removeMapInstance:i,clearMapInstances:a}=fM(),{status:l,loadedLibraries:c,importLibrary:u}=pM(n),d=hM(n),f=L.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 L.createElement(Ps.Provider,{value:f},t)};function gM(e,t){for(const n of xM){const o=t[n],r=Yg[n];L.useEffect(()=>{if(!e||!o)return;const i=google.maps.event.addListener(e,r,a=>{o(yM(r,e,a))});return()=>i.remove()},[e,r,o])}}function yM(e,t,n){var o;const r={type:e,map:t,detail:{},stoppable:!1,stop:()=>{}};if(bM.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(vM.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 Yg={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"},bM=["bounds_changed","center_changed","heading_changed","tilt_changed","zoom_changed"],vM=["click","contextmenu","dblclick","mousemove","mouseout","mouseover"],xM=Object.keys(Yg);function SM(e){const t=L.useRef(void 0);return L.useEffect(()=>{t.current=e}),t.current}function wM(e,t){const n=SM(e);return L.useMemo(()=>n&&t(n,e)?n:e,[e,n,t])}function CM(e,t,n){L.useEffect(e,[wM(t,n)])}function TM(e,t){CM(e,t,aM)}const PM=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 EM(e,t){const n={},o=Object.keys(t);for(const r of o)PM.has(r)&&(n[r]=t[r]);TM(()=>{e&&e.setOptions(n)},[n])}function qg(){var e;return((e=L.useContext(Ps))===null||e===void 0?void 0:e.status)||Pn.NOT_LOADED}function MM(e,t){const{viewport:n,viewState:o}=t,r=!!n;return L.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 OM(e){return!e||typeof e!="object"||!("lat"in e&&"lng"in e)?!1:Number.isFinite(e.lat)&&Number.isFinite(e.lng)}function Gg(e){return OM(e)?e:e.toJSON()}function kM(e,t,n){const o=n.center?Gg(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;L.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 DM=()=>{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 L.createElement("div",{style:e},L.createElement("h2",null,"Error: AuthFailure"),L.createElement("p",null,"A problem with your API key prevents the map from rendering correctly. Please make sure the value of the ",L.createElement("code",null,"APIProvider.apiKey")," prop is correct. Check the error-message in the console for further details."))};function RM(){const[e,t]=L.useState(null),n=L.useCallback(o=>t(o),[t]);return[e,n]}function Kg(){return qg()===Pn.LOADED}function IM(){const[,e]=L.useReducer(t=>t+1,0);return e}function AM(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 NM(e){const t=IM(),n=L.useRef({center:{lat:0,lng:0},heading:0,tilt:0,zoom:0});return L.useEffect(()=>{if(!e)return;const o=google.maps.event.addListener(e,"bounds_changed",()=>{AM(e,n),t()});return()=>o.remove()},[e,t]),n}class li{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)}}li.entries={};function _M(e,t){const n=Kg(),[o,r]=L.useState(null),[i,a]=RM(),l=NM(o),{id:c,defaultBounds:u,defaultCenter:d,defaultZoom:f,defaultHeading:p,defaultTilt:h,reuseMaps:m,renderingType:g,colorScheme:y}=e,b=rr(e,["id","defaultBounds","defaultCenter","defaultZoom","defaultHeading","defaultTilt","reuseMaps","renderingType","colorScheme"]),C=e.zoom!==void 0||e.defaultZoom!==void 0,w=e.center!==void 0||e.defaultCenter!==void 0;!u&&(!C||!w)&&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"),!b.center&&d&&(b.center=d),!b.zoom&&Number.isFinite(f)&&(b.zoom=f),!b.heading&&Number.isFinite(p)&&(b.heading=p),!b.tilt&&Number.isFinite(h)&&(b.tilt=h);const S=b.internalUsageAttributionIds;S==null?b.internalUsageAttributionIds=t.internalUsageAttributionIds:b.internalUsageAttributionIds=[...t.internalUsageAttributionIds||[],...S];for(const P of Object.keys(b))b[P]===void 0&&delete b[P];const T=L.useRef(void 0);return L.useEffect(()=>{if(!i||!n)return;const{addMapInstance:P,removeMapInstance:A}=t,{mapId:I}=e,k=`${I||"default"}:${g||"default"}:${y||"LIGHT"}`;let V,N;if(m&&li.has(k)?(N=li.pop(k),V=N.getDiv(),i.appendChild(V),N.setOptions(b),setTimeout(()=>N.setCenter(N.getCenter()),0)):(V=document.createElement("div"),V.style.height="100%",i.appendChild(V),N=new google.maps.Map(V,Object.assign(Object.assign(Object.assign({},b),g?{renderingType:g}:{}),y?{colorScheme:y}:{}))),r(N),P(N,c),u){const{padding:x}=u,j=rr(u,["padding"]);N.fitBounds(j,x)}else(!C||!w)&&N.fitBounds({east:180,west:-180,south:-90,north:90});if(T.current){const{mapId:x,cameraState:j}=T.current;x!==I&&N.setOptions(j)}return()=>{T.current={mapId:I,cameraState:l.current},V.remove(),m?li.push(k,N):google.maps.event.clearInstanceListeners(N),r(null),A(c)}},[i,n,c,e.mapId,e.renderingType,e.colorScheme]),[o,a,l]}const Zg=L.createContext(null),Xg=e=>{const{children:t,id:n,className:o,style:r}=e,i=L.useContext(Ps),a=qg();if(!i)throw new Error("<Map> can only be used inside an <ApiProvider> component.");const[l,c,u]=_M(e,i);kM(l,u,e),gM(l,e),EM(l,e);const d=MM(l,e),f=!!e.controlled;L.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?Gg(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=L.useMemo(()=>{var C,w,S;return{center:{lat:h??0,lng:m??0},zoom:(C=e.zoom)!==null&&C!==void 0?C:0,heading:(w=e.heading)!==null&&w!==void 0?w:0,tilt:(S=e.tilt)!==null&&S!==void 0?S:0}},[h,m,e.zoom,e.heading,e.tilt]);L.useLayoutEffect(()=>{if(!l||!f)return;l.moveCamera(g);const C=l.addListener("bounds_changed",()=>{l.moveCamera(g)});return()=>C.remove()},[l,f,g]);const y=L.useMemo(()=>Object.assign({width:"100%",height:"100%",position:"relative",zIndex:d?-1:0},r),[r,d]),b=L.useMemo(()=>({map:l}),[l]);return a===Pn.AUTH_FAILURE?L.createElement("div",{style:Object.assign({position:"relative"},o?{}:y),className:o},L.createElement(DM,null)):L.createElement("div",Object.assign({ref:c,"data-testid":"map",style:o?void 0:y,className:o},n?{id:n}:{}),l?L.createElement(Zg.Provider,{value:b},t):null)};Xg.deckGLViewProps=!0;const pp=new Set;function jM(...e){const t=JSON.stringify(e);pp.has(t)||(pp.add(t),console.error(...e))}const ta=(e=null)=>{const t=L.useContext(Ps),{map:n}=L.useContext(Zg)||{};if(t===null)return jM("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 $M(e){const t=Kg(),n=L.useContext(Ps);return L.useEffect(()=>{!t||!n||n.importLibrary(e)},[t,n,e]),(n==null?void 0:n.loadedLibraries[e])||null}function Us(e,t,n){L.useEffect(()=>{if(!e||!t||!n)return;const o=google.maps.event.addListener(e,t,n);return()=>o.remove()},[e,t,n])}function Hs(e,t,n){L.useEffect(()=>{e&&(e[t]=n)},[e,t,n])}function hp(e,t,n){L.useEffect(()=>{if(!(!e||!t||!n))return e.addEventListener(t,n),()=>e.removeEventListener(t,n)},[e,t,n])}class LM{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+=`
|
|
89
106
|
gmp-advanced-marker[data-origin='rgm'] {
|
|
90
107
|
pointer-events: none !important;
|
|
91
108
|
}
|
|
92
|
-
`,this.renderedStyles.add("marker-pointer-events")}cleanup(){this.styleElement&&(this.styleElement.remove(),this.styleElement=null,this.renderedStyles.clear())}}const Mv=new kv;function Rv(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("."),s=parseInt(r[0],10),i=parseInt(r[1],10);return s>e||s===e&&i>=t}const Dv=z.createContext(null),Iv={BOTTOM:["50%","100%"]},Pd=z.forwardRef((e,t)=>{const{children:n,style:r,className:s,anchorPoint:i}=e,[a,l]=Nv(e),c=z.useMemo(()=>a?{marker:a}:null,[a]);return z.useImperativeHandle(t,()=>a,[a]),l?z.createElement(Dv.Provider,{value:c},ro.createPortal(z.createElement(_v,{anchorPoint:i,styles:r,className:s},n),l)):null});Pd.displayName="AdvancedMarker";function Bi(e){return e.nodeType===Node.ELEMENT_NODE}const _v=({children:e,styles:t,className:n})=>z.createElement("div",{className:n,style:t},e);function Nv(e){const[t,n]=z.useState(null),[r,s]=z.useState(null),i=Ds(),a=Pv("marker"),{children:l,onClick:c,className:u,onMouseEnter:d,onMouseLeave:p,onDrag:m,onDragStart:g,onDragEnd:h,collisionBehavior:f,clickable:b,draggable:x,position:O,title:v,zIndex:w,anchorPoint:E,anchorLeft:T,anchorTop:P}=e,V=z.Children.count(l);return z.useEffect(()=>{if(!i||!a)return;const D=new a.AdvancedMarkerElement;D.map=i,n(D);let L=null;return V>0&&(L=document.createElement("div"),D.content=L,s(L)),()=>{D.map=null,L==null||L.remove(),n(null),s(null)}},[i,a,V]),z.useEffect(()=>{!(t!=null&&t.content)||!Bi(t.content)||V>0||(t.content.className=u??"")},[t,u,V]),$v(t,E,T,P,V>0),jr(t,"position",O),jr(t,"title",v??""),jr(t,"zIndex",w),jr(t,"collisionBehavior",f),z.useEffect(()=>{t&&(x!==void 0?t.gmpDraggable=x:m||g||h?t.gmpDraggable=!0:t.gmpDraggable=!1)},[t,x,m,h,g]),z.useEffect(()=>{if(!t)return;const D=b!==void 0||!!c||!!d||!!p;t.gmpClickable=D,D&&(t!=null&&t.content)&&Bi(t.content)&&(t.content.style.pointerEvents="all",c&&(t.content.style.cursor="pointer"))},[t,b,c,d,p]),Ar(t,"click",c),Ar(t,"drag",m),Ar(t,"dragstart",g),Ar(t,"dragend",h),uc(t==null?void 0:t.element,"mouseenter",d),uc(t==null?void 0:t.element,"mouseleave",p),[t,r]}function $v(e,t,n,r,s){z.useEffect(()=>{if(!e||!s)return;const i=Rv(3,62),a=e.content;if(!(!a||!Bi(a))){if(n!==void 0||r!==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=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[l,c]=t??Iv.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",Mv.addAdvancedMarkerPointerEventsOverwrite())}}},[e,t,n,r,s])}function Av(e){const[t,n]=z.useState(null),r=Ds(),{onClick:s,onDrag:i,onDragStart:a,onDragEnd:l,onMouseOver:c,onMouseOut:u}=e,d=go(e,["onClick","onDrag","onDragStart","onDragEnd","onMouseOver","onMouseOut"]),{position:p,draggable:m}=d;return z.useEffect(()=>{if(!r){r===void 0&&console.error("<Marker> has to be inside a Map component.");return}const g=new google.maps.Marker(d);return g.setMap(r),n(g),()=>{g.setMap(null),n(null)}},[r]),z.useEffect(()=>{if(!t)return;const g=t,h=google.maps.event;return s&&h.addListener(g,"click",s),i&&h.addListener(g,"drag",i),a&&h.addListener(g,"dragstart",a),l&&h.addListener(g,"dragend",l),c&&h.addListener(g,"mouseover",c),u&&h.addListener(g,"mouseout",u),t.setDraggable(!!m),()=>{h.clearInstanceListeners(g)}},[t,m,s,i,a,l,c,u]),z.useEffect(()=>{t&&d&&t.setOptions(d)},[t,d]),z.useEffect(()=>{m||!p||!t||t.setPosition(p)},[m,p,t]),t}const jv=z.forwardRef((e,t)=>{const n=Av(e);return z.useImperativeHandle(t,()=>n,[n]),z.createElement(z.Fragment,null)});jv.displayName="Marker";const kd=z.createContext(void 0),Md=()=>{const e=z.useContext(kd);if(!e)throw new Error("useGoogleMapContext must be used within GoogleMap component");return e},ga=({children:e})=>{const t=Ds(),n=(r,s=16)=>{t&&(t.setCenter(r),t.setZoom(s))};return t?y.jsx(kd.Provider,{value:{isLoaded:!0,map:t,zoomToPosition:n},children:e}):null};ga.displayName="MapContent";const Lv="_googleMap_j4y4m_1",Fv="_container_j4y4m_10",Vv="_errorContainer_j4y4m_21",Lr={googleMap:Lv,container:Fv,errorContainer:Vv},Bv={lat:-26.3044,lng:-48.8487},zv=13,Wv={disableDefaultUI:!0,zoomControl:!1,streetViewControl:!1,mapTypeControl:!1,fullscreenControl:!1,rotateControl:!1,scaleControl:!1,panControl:!1,clickableIcons:!1,keyboardShortcuts:!1},Uv=({colorScheme:e,options:t,onLoad:n,children:r})=>{const s=Ds();return z.useEffect(()=>{s&&(s.setOptions(Wv),t&&s.setOptions(t),n&&n(s))},[s,t,n]),y.jsx(y.Fragment,{children:r})},Rd=({center:e=Bv,zoom:t=zv,className:n,children:r,apiKey:s,mapId:i,themeMode:a="light",options:l,onLoad:c,onError:u})=>{if(!s||!i)return y.jsx("div",{className:`${Lr.container} ${Lr.errorContainer} ${n||""}`,children:y.jsxs("div",{children:[y.jsx("p",{children:"Google Maps não configurado"}),y.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",p={defaultCenter:e,defaultZoom:t,mapId:i,className:Lr.googleMap,colorScheme:d},m=`${i}-${d}`;return y.jsx(sv,{apiKey:s,onLoad:()=>{console.log("Google Maps API carregada com sucesso")},onError:g=>{console.error("Erro ao carregar Google Maps API:",g),u&&g instanceof Error&&u(g)},children:y.jsx("div",{className:`${Lr.container} ${n||""}`,style:{width:"100%",height:"400px",minHeight:"400px",position:"relative"},children:y.jsx(Td,{...p,style:{width:"100%",height:"100%"},children:y.jsx(Uv,{colorScheme:d,options:l,onLoad:c,children:y.jsx(ga,{children:r})})},m)})})};Rd.displayName="GoogleMap";const Hv="_mapSpot_m5paz_1",qv="_count_m5paz_26",dc={mapSpot:Hv,count:qv},ba=({count:e,addressText:t,className:n,onClick:r,sx:s})=>{const i=y.jsx(Q.Box,{className:`${dc.mapSpot} ${n||""}`,onClick:r,sx:s,children:y.jsx(Q.Typography,{className:dc.count,children:e})});return t?y.jsx(Q.Tooltip,{title:t,arrow:!0,placement:"top",children:i}):i};ba.displayName="MapSpot";const Yv=16,Dd=({spots:e,onSpotClick:t,zoomLevel:n=Yv})=>{const{isLoaded:r,zoomToPosition:s}=Md(),i=a=>{s({lat:a.lat,lng:a.lng},n),t==null||t(a)};return r?y.jsx(y.Fragment,{children:e.map((a,l)=>y.jsx(Pd,{position:{lat:a.lat,lng:a.lng},onClick:()=>i(a),children:y.jsx(ba,{count:a.count,addressText:a.addressText})},a.id??l))}):null};Dd.displayName="MapMarkers";const Gv="_searchBar_15mix_1",Kv="_startIconContainer_15mix_106",Zv="_endIconContainer_15mix_117",Xv="_endIconContainerClickable_15mix_153",Qv="_defaultIcon_15mix_157",Ho={searchBar:Gv,startIconContainer:Kv,endIconContainer:Zv,endIconContainerClickable:Xv,defaultIcon:Qv},Jv=e=>()=>{e&&e()},ex=e=>t=>{e&&e(t)},tx=()=>y.jsx(Wt.Search,{className:Ho.defaultIcon}),nx=e=>e||tx(),Id=z.forwardRef(({startIcon:e,endIcon:t,onEndIconClick:n,placeholder:r,value:s,onChange:i,className:a,...l},c)=>{const d=Q.useTheme().palette.mode==="dark",p=nx(t),m=Jv(n),g=ex(i);return y.jsx(Q.TextField,{ref:c,value:s,onChange:g,placeholder:r,variant:"outlined",autoComplete:"off",className:`${Ho.searchBar} ${a||""}`,"data-theme":d?"dark":"light",InputProps:{startAdornment:e?y.jsx(Q.InputAdornment,{position:"start",className:Ho.startIconContainer,children:e}):null,endAdornment:y.jsx(Q.InputAdornment,{position:"end",className:`${Ho.endIconContainer} ${n?Ho.endIconContainerClickable:""}`,onClick:m,disablePointerEvents:!n,children:p})},inputProps:{autoComplete:"off","data-form-type":"other"},...l})});Id.displayName="SearchBar";const ox=dt(y.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),rx=dt([y.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"),y.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"),sx="_container_1mb8b_1",ix="_iconWrapper_1mb8b_11",ax="_icon_1mb8b_11",lx="_title_1mb8b_21",cx="_subtitle_1mb8b_30",ux="_description_1mb8b_34",dx="_button_1mb8b_38",Tn={container:sx,iconWrapper:ix,icon:ax,title:lx,subtitle:cx,description:ux,button:dx},_d=({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:s="404",className:i})=>y.jsx(Q.Container,{maxWidth:"sm",children:y.jsxs(Q.Box,{className:`${Tn.container} ${i||""}`,children:[y.jsx(Q.Box,{className:Tn.iconWrapper,children:y.jsx(rx,{className:Tn.icon,color:"primary"})}),y.jsx(Q.Typography,{variant:"h1",className:Tn.title,sx:{fontSize:{xs:"6rem",md:"8rem"}},children:s}),y.jsx(Q.Typography,{variant:"h4",component:"h2",className:Tn.subtitle,color:"text.primary",children:n}),y.jsx(Q.Typography,{variant:"body1",className:Tn.description,color:"text.secondary",children:r}),e&&y.jsx(oa,{variant:"contained",size:"large",startIcon:y.jsx(ox,{}),onClick:e,className:Tn.button,children:t})]})});_d.displayName="NotFoundContent";const fx=e=>{const t=e.find(r=>r.active),n=e.flatMap(r=>{var s;return((s=r.submenu)==null?void 0:s.map(i=>({item:r,subItem:i})))??[]}).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}},px=({items:e,isExpanded:t=!0,onClick:n})=>{const r=z.useMemo(()=>fx(e),[e]),[s,i]=z.useState(r.itemId),[a,l]=z.useState(r.subItemId),[c,u]=z.useState(r.expandedItemId),[d,p]=z.useState(null),[m,g]=z.useState(null);z.useEffect(()=>{i(r.itemId),l(r.subItemId),u(r.expandedItemId)},[r.itemId,r.subItemId,r.expandedItemId]);const h=m?e.find(T=>T.id===m):void 0,f=(h==null?void 0:h.submenu)??[];return{selectedItemId:s,selectedSubItemId:a,expandedItemId:c,submenuAnchorEl:d,submenuItem:h,submenuItems:f,getIsItemActive:T=>{var V;const P=a?!!((V=T.submenu)!=null&&V.some(D=>D.id===a)):!1;return s?T.id===s:!!(T.active||P)},getIsSubItemActive:T=>a?T.id===a:!!T.active,shouldShowSubmenu:T=>{var P;return!!(t&&((P=T.submenu)!=null&&P.length)&&c===T.id)},handleItemClick:(T,P)=>{var V,D;i(T.id),l(null),(V=T.submenu)!=null&&V.length?t?u(L=>L===T.id?null:T.id):(p(P.currentTarget),g(T.id)):(u(null),p(null),g(null)),(D=T.onClick)==null||D.call(T,P),n==null||n({item:T})},handleSubItemClick:(T,P,V,D)=>{var L;i(T.id),l(P.id),D!=null&&D.closeMenu&&(p(null),g(null)),(L=P.onClick)==null||L.call(P,V),n==null||n({item:T,subItem:P})},closeSubmenu:()=>{p(null),g(null)}}},Nd=e=>typeof e=="number"?`${e*4}px`:e,mx=({item:e,onClick:t,isActive:n})=>{const r=se.useTheme();return y.jsx(Q.ButtonBase,{onClick:t,"aria-label":e.label,"aria-pressed":n||void 0,sx:{width:"100%",borderRadius:Nd(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:y.jsx(Q.Typography,{variant:"body2",sx:{fontWeight:500},children:e.label})})},$d=({items:e,isExpanded:t=!0,className:n,onClick:r})=>{const s=se.useTheme(),i=Nd(s.shape.borderRadius),{submenuAnchorEl:a,submenuItem:l,submenuItems:c,getIsItemActive:u,getIsSubItemActive:d,shouldShowSubmenu:p,handleItemClick:m,handleSubItemClick:g,closeSubmenu:h}=px({items:e,isExpanded:t,onClick:r});return y.jsxs(Q.Stack,{className:n,direction:"column",spacing:2,sx:{width:"100%"},children:[e.map(f=>{var T,P;const b=u(f),x=p(f),O=t?s.spacing(2):s.spacing(4),v=t?b?s.palette.primary.main:s.palette.action.hover:"transparent",w=t?"transparent":b?s.palette.primary.main:s.palette.action.hover,E=!t&&b?s.palette.primary.contrastText:s.palette.text.primary;return y.jsxs(Q.Stack,{direction:"column",spacing:1,sx:{width:"100%"},children:[y.jsx(Q.ButtonBase,{onClick:V=>m(f,V),"aria-label":f.label,"aria-pressed":b||void 0,"aria-haspopup":(T=f.submenu)!=null&&T.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:s.palette.text.primary,backgroundColor:v,boxShadow:t&&b?s.shadows[1]:"none","&:hover":{backgroundColor:t?s.palette.action.hover:"transparent"}},children:y.jsxs(Q.Stack,{direction:t?"row":"column",alignItems:"center",spacing:t?1.5:1,sx:{width:"100%"},children:[y.jsx(Q.Box,{sx:{width:64,height:O,borderRadius:i,display:"inline-flex",alignItems:"center",justifyContent:"center",backgroundColor:w,color:E,transition:s.transitions.create(["background-color","box-shadow"],{duration:s.transitions.duration.shortest}),...t?{}:{boxShadow:b?s.shadows[1]:"none","&:hover":{backgroundColor:b?se.alpha(s.palette.primary.main,.9):s.palette.action.selected}}},children:f.icon}),y.jsx(Q.Typography,{variant:"body2",sx:{width:"100%",textAlign:t?"left":"center",fontWeight:b?600:500},children:f.label}),t&&f.trailingIcon?y.jsx(Q.Box,{sx:{ml:"auto",display:"inline-flex",alignItems:"center"},children:f.trailingIcon}):null]})}),x?y.jsx(Q.Collapse,{in:x,timeout:"auto",unmountOnExit:!0,children:y.jsx(Q.Stack,{direction:"column",spacing:1,sx:{pl:4},children:(P=f.submenu)==null?void 0:P.map(V=>{const D=d(V);return y.jsx(mx,{item:V,isActive:D,onClick:L=>g(f,V,L)},V.id)})})}):null]},f.id)}),y.jsx(Q.Menu,{anchorEl:a,open:!!(a&&c.length),onClose:h,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:s.spacing(22),px:1,py:.5,boxShadow:s.shadows[3]}},children:c.map(f=>{const b=d(f);return y.jsx(Q.MenuItem,{selected:b,onClick:x=>{l&&g(l,f,x,{closeMenu:!0})},sx:{borderRadius:i,fontWeight:b?600:500},children:f.label},f.id)})})]})};$d.displayName="SidebarMenu";const hx=e=>{const t=e.find(n=>n.active);return(t==null?void 0:t.id)??null},gx=({items:e,onSelect:t,isExpanded:n=!0})=>{const r=z.useMemo(()=>hx(e),[e]),[s,i]=z.useState(r),[a,l]=z.useState(null);z.useEffect(()=>{i(r)},[r]);const c=s?e.find(g=>g.id===s):void 0;return{selectedItemId:s,selectedItem:c,menuAnchorEl:a,getIsItemActive:g=>s?g.id===s:!!g.active,openMenu:g=>{n||l(g.currentTarget)},closeMenu:()=>{n||l(null)},handleItemClick:(g,h)=>{var f;i(g.id),(f=g.onClick)==null||f.call(g,h),t==null||t(g),l(null)}}},bx=e=>typeof e=="number"?`${e*4}px`:e,Ad=({items:e,currentLabel:t,headerLabel:n,headerIcon:r,headerTrailingIcon:s,listTitle:i,action:a,isExpanded:l=!0,className:c,onSelect:u})=>{var I,N;const d=se.useTheme(),p=z.useRef(null),m=bx(d.shape.borderRadius),[g,h]=z.useState(!1),f=z.useMemo(()=>Number.parseFloat(d.spacing(2).toString()),[d]),{selectedItem:b,menuAnchorEl:x,getIsItemActive:O,openMenu:v,closeMenu:w,handleItemClick:E}=gx({items:e,onSelect:u,isExpanded:l}),T=t??(b==null?void 0:b.label)??((I=e[0])==null?void 0:I.label)??"",P=r??(b==null?void 0:b.icon)??((N=e[0])==null?void 0:N.icon)??null,V=l||!P,D=_=>{if(l){h(B=>!B);return}v(_)},L=(_,B)=>{E(_,B),h(!1)},$=y.jsx(Q.Stack,{direction:"column",spacing:.5,children:e.map(_=>{const B=O(_);return y.jsxs(Q.MenuItem,{selected:B,onClick:R=>L(_,R),sx:{borderRadius:m,gap:1.5,px:2,py:1.25,color:d.palette.text.primary,"&:hover":{backgroundColor:d.palette.action.hover}},children:[_.icon?y.jsx(Q.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:_.icon}):null,y.jsx(Q.Typography,{variant:"body1",sx:{fontWeight:B?600:500},children:_.label})]},_.id)})}),M=y.jsxs(Q.Box,{sx:{borderRadius:m,backgroundColor:d.palette.background.paper,boxShadow:d.shadows[3],display:"flex",flexDirection:"column",maxHeight:d.spacing(50)},children:[i?y.jsx(Q.Box,{sx:{px:2,pt:2,pb:1},children:y.jsx(Q.Typography,{variant:"subtitle2",sx:{color:d.palette.text.primary},children:i})}):null,y.jsx(Q.Box,{sx:{px:2,pb:2,overflowY:"auto",flex:1,minHeight:0},children:$})]}),F=a?y.jsxs(Q.MenuItem,{onClick:a.onClick,sx:{borderRadius:m,gap:1.5,px:2,py:1.25,color:d.palette.text.primary,"&:hover":{backgroundColor:d.palette.action.hover}},children:[a.icon?y.jsx(Q.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:a.icon}):null,y.jsx(Q.Typography,{variant:"body1",sx:{fontWeight:600},children:a.label})]}):null,j=F?y.jsx(Q.Box,{sx:{borderRadius:m,backgroundColor:d.palette.background.paper,boxShadow:d.shadows[3]},children:F}):null,A=y.jsxs(Q.Stack,{direction:"column",spacing:1,sx:{minWidth:d.spacing(32)},children:[M,j]});return y.jsxs(Q.Stack,{className:c,direction:l?"row":"column",spacing:l?2:1,sx:{width:"100%",alignItems:l?"flex-start":"stretch"},children:[y.jsx(Q.ButtonBase,{onClick:D,"aria-label":T,ref:p,sx:{width:l?d.spacing(28):"64px",height:l?"auto":"64px",borderRadius:m,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:y.jsxs(Q.Stack,{direction:"row",alignItems:"center",spacing:l?1:0,sx:{width:l?"100%":"auto",justifyContent:l?"space-between":"center",px:0},children:[P?y.jsx(Q.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:P}):null,V?y.jsxs(Q.Box,{sx:{minWidth:0,flex:1},children:[n?y.jsx(Q.Typography,{variant:"caption",sx:{color:d.palette.text.secondary},children:n}):null,y.jsx(Q.Typography,{variant:"body2",sx:{fontWeight:600},noWrap:!0,children:T})]}):null,l&&s?y.jsx(Q.Box,{sx:{ml:"auto",display:"inline-flex",alignItems:"center"},children:s}):null]})}),l?g?y.jsx(Q.ClickAwayListener,{onClickAway:()=>h(!1),children:y.jsx(Q.Popper,{open:g,anchorEl:p.current,placement:"right-start",modifiers:[{name:"offset",options:{offset:[0,f]}}],sx:{zIndex:d.zIndex.modal},children:A})}):null:y.jsx(Q.Menu,{anchorEl:x,open:!!x,onClose:w,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},disableAutoFocusItem:!0,slotProps:{paper:{sx:{borderRadius:m,p:0,ml:2,backgroundColor:"transparent",boxShadow:"none",overflow:"visible"}}},MenuListProps:{"aria-label":T?`menu-${T}`:"menu",sx:{p:0}},children:A})]})};Ad.displayName="ModuleMenu";const ya=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,yx=(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}}),sn={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function jd(e){return"init"in e}function zi(e){return!!e.write}function fc(e){return"v"in e||"e"in e}function is(e){if("e"in e)throw e.e;if((sn?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}const as=new WeakMap;function Ld(e){var t;return ls(e)&&!!((t=as.get(e))!=null&&t[0])}function vx(e){const t=as.get(e);t!=null&&t[0]&&(t[0]=!1,t[1].forEach(n=>n()))}function Wi(e,t){let n=as.get(e);if(!n){n=[!0,new Set],as.set(e,n);const r=()=>{n[0]=!1};e.then(r,r)}n[1].add(t)}function ls(e){return typeof(e==null?void 0:e.then)=="function"}function Fd(e,t,n){if(!n.p.has(e)){n.p.add(e);const r=()=>n.p.delete(e);t.then(r,r)}}function Vd(e,t,n){var r;const s=new Set;for(const i of((r=n.get(e))==null?void 0:r.t)||[])s.add(i);for(const i of t.p)s.add(i);return s}const xx=(e,t,...n)=>t.read(...n),Sx=(e,t,...n)=>t.write(...n),Cx=(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)},wx=(e,t,n)=>{var r;return(r=t.onMount)==null?void 0:r.call(t,n)},Ex=(e,t)=>{var n;const r=yt(e),s=r[0],i=r[6],a=r[9];if((sn?"production":void 0)!=="production"&&!t)throw new Error("Atom is undefined or null");let l=s.get(t);return l||(l={d:new Map,p:new Set,n:0},s.set(t,l),(n=i.i)==null||n.call(i,t),a==null||a(e,t)),l},Ox=e=>{const t=yt(e),n=t[1],r=t[3],s=t[4],i=t[5],a=t[6],l=t[13],c=[],u=d=>{try{d()}catch(p){c.push(p)}};do{a.f&&u(a.f);const d=new Set,p=d.add.bind(d);r.forEach(m=>{var g;return(g=n.get(m))==null?void 0:g.l.forEach(p)}),r.clear(),i.forEach(p),i.clear(),s.forEach(p),s.clear(),d.forEach(u),r.size&&l(e)}while(r.size||i.size||s.size);if(c.length)throw new AggregateError(c)},Tx=e=>{const t=yt(e),n=t[1],r=t[2],s=t[3],i=t[11],a=t[14],l=t[17],c=[],u=new WeakSet,d=new WeakSet,p=Array.from(s);for(;p.length;){const m=p[p.length-1],g=i(e,m);if(d.has(m)){p.pop();continue}if(u.has(m)){if(r.get(m)===g.n)c.push([m,g]);else if((sn?"production":void 0)!=="production"&&r.has(m))throw new Error("[Bug] invalidated atom exists");d.add(m),p.pop();continue}u.add(m);for(const h of Vd(m,g,n))u.has(h)||p.push(h)}for(let m=c.length-1;m>=0;--m){const[g,h]=c[m];let f=!1;for(const b of h.d.keys())if(b!==g&&s.has(b)){f=!0;break}f&&(a(e,g),l(e,g)),r.delete(g)}},Ui=new WeakSet,Px=(e,t)=>{var n,r;const s=yt(e),i=s[1],a=s[2],l=s[3],c=s[6],u=s[7],d=s[11],p=s[12],m=s[13],g=s[14],h=s[16],f=s[17],b=s[20],x=d(e,t);if(fc(x)){if(i.has(t)&&a.get(t)!==x.n)return x;let D=!1;for(const[L,$]of x.d)if(g(e,L).n!==$){D=!0;break}if(!D)return x}x.d.clear();let O=!0;function v(){i.has(t)&&(f(e,t),m(e),p(e))}function w(D){var L;if(D===t){const M=d(e,D);if(!fc(M))if(jd(D))b(e,D,D.init);else throw new Error("no atom init");return is(M)}const $=g(e,D);try{return is($)}finally{x.d.set(D,$.n),Ld(x.v)&&Fd(t,x.v,$),i.has(t)&&((L=i.get(D))==null||L.t.add(t)),O||v()}}let E,T;const P={get signal(){return E||(E=new AbortController),E.signal},get setSelf(){return(sn?"production":void 0)!=="production"&&!zi(t)&&console.warn("setSelf function cannot be used with read-only atom"),!T&&zi(t)&&(T=(...D)=>{if((sn?"production":void 0)!=="production"&&O&&console.warn("setSelf function cannot be called in sync"),!O)try{return h(e,t,...D)}finally{m(e),p(e)}}),T}},V=x.n;try{(sn?"production":void 0)!=="production"&&Ui.delete(e);const D=u(e,t,w,P);return(sn?"production":void 0)!=="production"&&Ui.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),b(e,t,D),ls(D)&&(Wi(D,()=>E==null?void 0:E.abort()),D.then(v,v)),(n=c.r)==null||n.call(c,t),x}catch(D){return delete x.v,x.e=D,++x.n,x}finally{O=!1,V!==x.n&&a.get(t)===V&&(a.set(t,x.n),l.add(t),(r=c.c)==null||r.call(c,t))}},kx=(e,t)=>{const n=yt(e),r=n[1],s=n[2],i=n[11],a=[t];for(;a.length;){const l=a.pop(),c=i(e,l);for(const u of Vd(l,c,r)){const d=i(e,u);s.set(u,d.n),a.push(u)}}},Mx=(e,t,...n)=>{const r=yt(e),s=r[3],i=r[6],a=r[8],l=r[11],c=r[12],u=r[13],d=r[14],p=r[15],m=r[16],g=r[17],h=r[20];let f=!0;const b=O=>is(d(e,O)),x=(O,...v)=>{var w;const E=l(e,O);try{if(O===t){if(!jd(O))throw new Error("atom not writable");(sn?"production":void 0)!=="production"&&Ui.add(e);const T=E.n,P=v[0];h(e,O,P),g(e,O),T!==E.n&&(s.add(O),p(e,O),(w=i.c)==null||w.call(i,O));return}else return m(e,O,...v)}finally{f||(u(e),c(e))}};try{return a(e,t,b,x,...n)}finally{f=!1}},Rx=(e,t)=>{var n;const r=yt(e),s=r[1],i=r[3],a=r[6],l=r[11],c=r[15],u=r[18],d=r[19],p=l(e,t),m=s.get(t);if(m&&!Ld(p.v)){for(const[g,h]of p.d)if(!m.d.has(g)){const f=l(e,g);u(e,g).t.add(t),m.d.add(g),h!==f.n&&(i.add(g),c(e,g),(n=a.c)==null||n.call(a,g))}for(const g of m.d)if(!p.d.has(g)){m.d.delete(g);const h=d(e,g);h==null||h.t.delete(t)}}},Dx=(e,t)=>{var n;const r=yt(e),s=r[1],i=r[4],a=r[6],l=r[10],c=r[11],u=r[12],d=r[13],p=r[14],m=r[16],g=r[18],h=c(e,t);let f=s.get(t);if(!f){p(e,t);for(const b of h.d.keys())g(e,b).t.add(t);if(f={l:new Set,d:new Set(h.d.keys()),t:new Set},s.set(t,f),zi(t)){const b=()=>{let x=!0;const O=(...v)=>{try{return m(e,t,...v)}finally{x||(d(e),u(e))}};try{const v=l(e,t,O);v&&(f.u=()=>{x=!0;try{v()}finally{x=!1}})}finally{x=!1}};i.add(b)}(n=a.m)==null||n.call(a,t)}return f},Ix=(e,t)=>{var n,r;const s=yt(e),i=s[1],a=s[5],l=s[6],c=s[11],u=s[19],d=c(e,t);let p=i.get(t);if(!p||p.l.size)return p;let m=!1;for(const g of p.t)if((n=i.get(g))!=null&&n.d.has(t)){m=!0;break}if(!m){p.u&&a.add(p.u),p=void 0,i.delete(t);for(const g of d.d.keys()){const h=u(e,g);h==null||h.t.delete(t)}(r=l.u)==null||r.call(l,t);return}return p},_x=(e,t,n)=>{const r=yt(e)[11],s=r(e,t),i="v"in s,a=s.v;if(ls(n))for(const l of s.d.keys())Fd(t,n,r(e,l));s.v=n,delete s.e,(!i||!Object.is(a,s.v))&&(++s.n,ls(a)&&vx(a))},Nx=(e,t)=>{const n=yt(e)[14];return is(n(e,t))},$x=(e,t,...n)=>{const r=yt(e),s=r[12],i=r[13],a=r[16];try{return a(e,t,...n)}finally{i(e),s(e)}},Ax=(e,t,n)=>{const r=yt(e),s=r[12],i=r[18],a=r[19],c=i(e,t).l;return c.add(n),s(e),()=>{c.delete(n),a(e,t),s(e)}},Bd=new WeakMap,yt=e=>{const t=Bd.get(e);if((sn?"production":void 0)!=="production"&&!t)throw new Error("Store must be created by buildStore to read its building blocks");return t};function jx(...e){const t={get(r){const s=yt(t)[21];return s(t,r)},set(r,...s){const i=yt(t)[22];return i(t,r,...s)},sub(r,s){const i=yt(t)[23];return i(t,r,s)}},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},xx,Sx,Cx,wx,Ex,Ox,Tx,Px,kx,Mx,Rx,Dx,Ix,_x,Nx,$x,Ax,void 0].map((r,s)=>e[s]||r);return Bd.set(t,Object.freeze(n)),t}const zd={};let Lx=0;function Po(e,t){const n=`atom${++Lx}`,r={toString(){return(zd?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof e=="function"?r.read=e:(r.init=e,r.read=Fx,r.write=Vx),r}function Fx(e){return e(this)}function Vx(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}function Bx(){return jx()}let Ao;function zx(){return Ao||(Ao=Bx(),(zd?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=Ao),globalThis.__JOTAI_DEFAULT_STORE__!==Ao&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),Ao}const Wx={},Ux=z.createContext(void 0);function Wd(e){return z.useContext(Ux)||zx()}const Hi=e=>typeof(e==null?void 0:e.then)=="function",qi=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},Hx=z.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(qi(e),e)}),xi=new WeakMap,pc=(e,t)=>{let n=xi.get(e);return n||(n=new Promise((r,s)=>{let i=e;const a=u=>d=>{i===u&&r(d)},l=u=>d=>{i===u&&s(d)},c=()=>{try{const u=t();Hi(u)?(xi.set(u,n),i=u,u.then(a(u),l(u)),Wi(u,c)):r(u)}catch(u){s(u)}};e.then(a(e),l(e)),Wi(e,c)}),xi.set(e,n)),n};function cs(e,t){const{delay:n,unstable_promiseStatus:r=!z.use}={},s=Wd(),[[i,a,l],c]=z.useReducer(d=>{const p=s.get(e);return Object.is(d[0],p)&&d[1]===s&&d[2]===e?d:[p,s,e]},void 0,()=>[s.get(e),s,e]);let u=i;if((a!==s||l!==e)&&(c(),u=s.get(e)),z.useEffect(()=>{const d=s.sub(e,()=>{if(r)try{const p=s.get(e);Hi(p)&&qi(pc(p,()=>s.get(e)))}catch{}if(typeof n=="number"){setTimeout(c,n);return}c()});return c(),d},[s,e,n,r]),z.useDebugValue(u),Hi(u)){const d=pc(u,()=>s.get(e));return r&&qi(d),Hx(d)}return u}function Yi(e,t){const n=Wd();return z.useCallback((...s)=>{if((Wx?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...s)},[n,e])}function yn(e,t){return[cs(e),Yi(e)]}const Is=Po(0),_s=Po(!0),va=Po(null),Ud=Po({windowSeconds:24*60*60,fps:30}),xa=Po([]),Sa=Po([]),Ca=z.createContext(null),qx=({children:e})=>{const t=z.useRef(null),[n,r]=yn(Is),[s,i]=yn(_s),[a,l]=z.useState(!1),[c,u]=z.useState(0),[d,p]=z.useState(!1);z.useEffect(()=>{const v=t.current;if(!v)return;const w=()=>{if(r(v.currentTime),v.seekable&&v.seekable.length>0){const P=v.seekable.end(v.seekable.length-1);u(P),p(P>0)}else v.duration&&isFinite(v.duration)&&(u(v.duration),p(!0))},E=()=>l(!0),T=()=>l(!1);return v.addEventListener("timeupdate",w),v.addEventListener("durationchange",w),v.addEventListener("loadedmetadata",w),v.addEventListener("progress",w),v.addEventListener("play",E),v.addEventListener("pause",T),w(),()=>{v.removeEventListener("timeupdate",w),v.removeEventListener("durationchange",w),v.removeEventListener("loadedmetadata",w),v.removeEventListener("progress",w),v.removeEventListener("play",E),v.removeEventListener("pause",T)}},[r]);const m=z.useCallback(v=>{r(v)},[r]),g=z.useCallback(v=>{i(v)},[i]),h=z.useCallback(v=>{const w=t.current;!w||!d||(w.currentTime=v,r(v),i(!1))},[d,r,i]),f=z.useCallback(async()=>{const v=t.current;if(v)try{await v.play(),l(!0)}catch(w){console.error("Failed to play video:",w)}},[]),b=z.useCallback(()=>{const v=t.current;v&&(v.pause(),l(!1))},[]),x=z.useCallback(()=>{a?b():f()},[a,f,b]),O={videoRef:t,currentTime:n,setCurrentTime:m,isLive:s,setIsLive:g,seekTo:h,play:f,pause:b,togglePlay:x,isPlaying:a,duration:c,canSeek:d};return y.jsx(Ca.Provider,{value:O,children:e})},wa=()=>z.useContext(Ca),Yx=()=>{const e=z.useContext(Ca);if(!e)throw new Error("useVideoControlRequired must be used within a VideoControlProvider. Wrap your VideoPlayer and VideoTimeline with <VideoControlProvider>.");return e},Gx=({stream:e,availableQualities:t,initialQuality:n,autoPlay:r,liveThresholdSeconds:s,allowPlaybackRateForStream:i})=>{const a=z.useRef(null),l=wa(),c=z.useRef(null),u=z.useCallback(R=>{c.current=R,l!=null&&l.videoRef&&(l.videoRef.current=R)},[l]),d=z.useMemo(()=>{if(!t||!t.length)return null;if(n){const R=t.find(k=>k.value===n);if(R)return R}return t[0]},[t,n]),[p,m]=z.useState(d),[g,h]=z.useState(!1),[f,b]=z.useState(!0),[x,O]=z.useState(!1),[v,w]=z.useState(0),[E,T]=z.useState(0),[P,V]=z.useState(1),[D,L]=z.useState(1),[$,M]=z.useState(!1),[F,j]=z.useState(!0),A=(p==null?void 0:p.stream)??e??null,I=(p==null?void 0:p.src)??null,_=!!!A||i;z.useEffect(()=>{m(d)},[d]);const B=z.useCallback(()=>{const R=c.current;if(!R)return;if(!R.seekable||R.seekable.length===0){b(!0),O(!1),l&&l.setIsLive(!0);return}const k=ya(R),W=Math.max(0,k-R.currentTime);T(k),w(R.currentTime),O(k>0);const G=W<=(s??2);b(G),l&&(l.setCurrentTime(R.currentTime),l.setIsLive(G))},[s,l]);return z.useEffect(()=>{const R=c.current;if(!R)return;const k=()=>h(!0),W=()=>h(!1),G=()=>j(!0),U=()=>j(!0),Y=()=>j(!1),H=()=>j(!1);return R.addEventListener("play",k),R.addEventListener("pause",W),R.addEventListener("waiting",G),R.addEventListener("loadstart",U),R.addEventListener("canplay",Y),R.addEventListener("playing",H),R.addEventListener("timeupdate",B),R.addEventListener("durationchange",B),R.addEventListener("loadedmetadata",B),R.addEventListener("progress",B),()=>{R.removeEventListener("play",k),R.removeEventListener("pause",W),R.removeEventListener("waiting",G),R.removeEventListener("loadstart",U),R.removeEventListener("canplay",Y),R.removeEventListener("playing",H),R.removeEventListener("timeupdate",B),R.removeEventListener("durationchange",B),R.removeEventListener("loadedmetadata",B),R.removeEventListener("progress",B)}},[B]),z.useEffect(()=>{const R=c.current;R&&(j(!0),A?(R.srcObject!==A&&(R.srcObject=A),R.getAttribute("src")&&R.removeAttribute("src")):I?(R.srcObject&&(R.srcObject=null),R.src!==I&&(R.src=I,R.load())):(R.srcObject&&(R.srcObject=null),R.getAttribute("src")&&R.removeAttribute("src")),r&&R.play().then(()=>{}).catch(()=>{}))},[A,I,r]),z.useEffect(()=>{const R=c.current;R&&(_?R.playbackRate=P:(R.playbackRate=1,V(1)))},[P,_]),z.useEffect(()=>{const R=()=>{M(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",R),()=>{document.removeEventListener("fullscreenchange",R)}},[]),{containerRef:a,videoRef:c,setVideoRef:u,selectedQuality:p,setSelectedQuality:m,isPlaying:g,isLive:f,canSeek:x,currentTime:v,setCurrentTime:w,seekableEnd:E,playbackRate:P,setPlaybackRate:V,zoom:D,setZoom:L,isFullscreen:$,isLoading:F,canAdjustPlaybackRate:_,updateLiveStatus:B}},Kx="_container_12m9a_1",Zx="_loader_12m9a_78",Xx="_video_12m9a_88",Qx="_timestampOverlay_12m9a_96",Jx="_timestampText_12m9a_109",e0="_controlsOverlay_12m9a_121",t0="_timeline_12m9a_142",n0="_controlsRow_12m9a_149",o0="_controlGroup_12m9a_167",r0="_iconButton_12m9a_184",s0="_seekButton_12m9a_202",i0="_menuButton_12m9a_229",a0="_liveBadge_12m9a_250",l0="_liveBadgeActive_12m9a_267",c0="_liveBadgeInactive_12m9a_272",u0="_recordingBadge_12m9a_277",d0="_recordingDot_12m9a_296",f0="_controlMenuWrapper_12m9a_325",Ue={container:Kx,loader:Zx,video:Xx,timestampOverlay:Qx,timestampText:Jx,controlsOverlay:e0,timeline:t0,controlsRow:n0,controlGroup:o0,iconButton:r0,seekButton:s0,menuButton:i0,liveBadge:a0,liveBadgeActive:l0,liveBadgeInactive:c0,recordingBadge:u0,recordingDot:d0,controlMenuWrapper:f0},Si=({label:e,valueLabel:t,selectedValue:n,options:r,onChange:s,disabled:i,ariaLabel:a})=>{const[l,c]=z.useState(null),u=!!l;return y.jsxs(y.Fragment,{children:[y.jsx(Q.ButtonBase,{disabled:i,className:`${Ue.menuButton} ${Ue.controlMenuWrapper}`,"aria-label":a,onClick:d=>c(d.currentTarget),children:e?`${e}: ${t}`:t}),y.jsx(Q.Menu,{anchorEl:l,open:u,onClose:()=>c(null),children:r.map(d=>y.jsx(Q.MenuItem,{selected:d.value===n,disabled:d.disabled,onClick:()=>{s(d.value),c(null)},children:d.label},`${e}-${String(d.value)}`))})]})},p0=e=>()=>{const t=e.current;t&&(t.paused?t.play().catch(()=>{}):t.pause())},m0=(e,t,n)=>r=>{const s=e.current;if(!s||!t)return;const i=ya(s),a=Math.min(Math.max(s.currentTime+r,0),i);s.currentTime=a,n()},h0=e=>()=>{e.current&&(document.fullscreenElement?document.exitFullscreen().catch(()=>{}):e.current.requestFullscreen().catch(()=>{}))},g0=(e,t,n)=>r=>{const s=e.find(i=>i.value===r)??null;t(s),n==null||n(s)},b0=(e,t)=>(n,r)=>{if(!e)return;const s=Array.isArray(r)?r[0]:r;t(s)},y0=(e,t,n)=>(r,s)=>{const i=e.current;if(!i||!t)return;const a=Array.isArray(s)?s[0]:s,l=ya(i);i.currentTime=Math.min(Math.max(a,0),l),n()},Hd=({stream:e=null,availableQualities:t=[],initialQuality:n,onQualityChange:r,autoPlay:s=!0,playsInline:i=!0,muted:a=!0,poster:l,className:c,sx:u,liveThresholdSeconds:d=2,allowPlaybackRateForStream:p=!1,playbackRates:m=[.5,1,1.5,2],zoomLevels:g=[1,1.2,1.5],width:h,height:f,aspectRatio:b="16 / 9",showTimestamp:x=!0,showTimeline:O=!0,isRecording:v=!1,recordingLabel:w="Gravação",borderRadius:E})=>{const P=se.useTheme().palette.mode==="dark",[V,D]=z.useState(""),[L,$]=z.useState(!0),M=z.useRef(null);z.useEffect(()=>{if(!x)return;const Te=()=>{const ie=new Date,ve=String(ie.getDate()).padStart(2,"0"),Pe=String(ie.getMonth()+1).padStart(2,"0"),_e=ie.getFullYear(),Ye=["Dom","Seg","Ter","Qua","Qui","Sex","Sab"][ie.getDay()],pe=String(ie.getHours()).padStart(2,"0"),xe=String(ie.getMinutes()).padStart(2,"0"),Ae=String(ie.getSeconds()).padStart(2,"0");D(`${ve}-${Pe}-${_e}, ${Ye} ${pe}:${xe}:${Ae}`)};Te();const Ce=setInterval(Te,1e3);return()=>clearInterval(Ce)},[x]),z.useEffect(()=>{const Te=F.current;if(!Te)return;const Ce=()=>{M.current&&(clearTimeout(M.current),M.current=null),$(!0)},ie=()=>{M.current=setTimeout(()=>{$(!1)},1e4)},ve=()=>{L||$(!0),M.current&&clearTimeout(M.current),M.current=setTimeout(()=>{$(!1)},1e4)};return Te.addEventListener("mouseenter",Ce),Te.addEventListener("mouseleave",ie),Te.addEventListener("mousemove",ve),()=>{Te.removeEventListener("mouseenter",Ce),Te.removeEventListener("mouseleave",ie),Te.removeEventListener("mousemove",ve),M.current&&clearTimeout(M.current)}},[L]);const{containerRef:F,videoRef:j,setVideoRef:A,selectedQuality:I,setSelectedQuality:N,isPlaying:_,isLive:B,canSeek:R,currentTime:k,setCurrentTime:W,seekableEnd:G,playbackRate:U,setPlaybackRate:Y,zoom:H,setZoom:Z,isFullscreen:J,isLoading:ee,canAdjustPlaybackRate:X,updateLiveStatus:K}=Gx({stream:e,availableQualities:t,initialQuality:n,autoPlay:s,liveThresholdSeconds:d,allowPlaybackRateForStream:p}),q=p0(j),te=m0(j,R,K),ne=h0(F),ce=g0(t,N,r),oe=b0(R,W),be=y0(j,R,K),ae=g.map(Te=>({value:Te,label:`${Math.round(Te*100)}%`})),he=m.map(Te=>({value:Te,label:`${Te}x`})),le=t.map(Te=>({value:Te.value,label:Te.label})),ue=(I==null?void 0:I.label)??"Auto",we=`${Math.round(H*100)}%`,Oe=`${U}x`,Se=R&&G>0,Me=yx(h,f,b),Ze=E!=null?{...Me,"--vp-radius":typeof E=="number"?`${E}px`:E}:Me;return y.jsxs(Q.Box,{ref:F,className:`${Ue.container} ${c||""}`.trim(),"data-theme":P?"dark":"light",style:Ze,sx:u,children:[ee&&y.jsx(Q.Box,{className:Ue.loader,children:y.jsx(Q.CircularProgress,{size:60,sx:{color:"var(--vp-control-color)",width:{xs:"48px",sm:"60px"},height:{xs:"48px",sm:"60px"}}})}),y.jsx("video",{ref:A,className:Ue.video,autoPlay:s,playsInline:i,muted:a,poster:l,style:{transform:`scale(${H})`}}),x&&V&&y.jsx(Q.Box,{className:Ue.timestampOverlay,children:y.jsx(Q.Typography,{variant:"body2",className:Ue.timestampText,children:V})}),v&&!L&&y.jsx(Q.Box,{sx:{position:"absolute",bottom:16,left:20,zIndex:10},children:y.jsxs("span",{className:Ue.recordingBadge,children:[y.jsx("span",{className:Ue.recordingDot}),w]})}),B&&!v&&!L&&y.jsx(Q.Box,{sx:{position:"absolute",bottom:16,left:20,zIndex:10},children:y.jsx("span",{className:`${Ue.liveBadge} ${Ue.liveBadgeActive}`,children:"ao vivo"})}),y.jsxs(Q.Box,{className:Ue.controlsOverlay,sx:{opacity:L?1:0,visibility:L?"visible":"hidden",transition:"opacity 0.3s ease, visibility 0.3s ease"},children:[O&&y.jsx(Q.Box,{className:Ue.timeline,children:y.jsx(Q.Slider,{size:"small",min:0,max:Se?G:1,step:1,value:Se?k:0,disabled:!Se,onChange:oe,onChangeCommitted:be,"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}}})}),y.jsxs(Q.Box,{className:Ue.controlsRow,children:[y.jsxs(Q.Box,{className:Ue.controlGroup,children:[v?y.jsxs("span",{className:Ue.recordingBadge,children:[y.jsx("span",{className:Ue.recordingDot}),w]}):y.jsx("span",{className:`${Ue.liveBadge} ${B?Ue.liveBadgeActive:Ue.liveBadgeInactive}`,children:"ao vivo"}),y.jsx("button",{className:Ue.seekButton,onClick:()=>te(-15),"aria-label":"Voltar 15 segundos",children:"15s"}),y.jsx(Q.IconButton,{className:Ue.iconButton,onClick:()=>te(-15),"aria-label":"Recuar 15 segundos",children:y.jsx(Wt.FastRewind,{fontSize:"small"})}),y.jsx(Q.IconButton,{className:Ue.iconButton,onClick:q,"aria-label":"Play/Pause",children:_?y.jsx(Wt.Pause,{fontSize:"small"}):y.jsx(Wt.PlayArrow,{fontSize:"small"})}),y.jsx(Q.IconButton,{className:Ue.iconButton,onClick:()=>te(15),"aria-label":"Avançar 15 segundos",children:y.jsx(Wt.FastForward,{fontSize:"small"})}),y.jsx("button",{className:Ue.seekButton,onClick:()=>te(15),"aria-label":"Avançar 15 segundos",children:"15s"})]}),y.jsxs(Q.Box,{className:Ue.controlGroup,children:[y.jsx(Si,{label:"",valueLabel:Oe,selectedValue:U,options:he,ariaLabel:"Selecionar velocidade de reprodução",onChange:Y,disabled:!X}),le.length>0?y.jsx(Si,{label:"",valueLabel:ue,selectedValue:(I==null?void 0:I.value)??"auto",options:le,ariaLabel:"Selecionar qualidade do vídeo",onChange:ce}):null,y.jsx(Si,{label:"",valueLabel:we,selectedValue:H,options:ae,ariaLabel:"Selecionar zoom do vídeo",onChange:Z}),y.jsx(Q.IconButton,{className:Ue.iconButton,onClick:ne,"aria-label":"Fullscreen",children:J?y.jsx(Wt.FullscreenExit,{fontSize:"small"}):y.jsx(Wt.Fullscreen,{fontSize:"small"})})]})]})]})]})};Hd.displayName="VideoPlayer";const v0=dt(y.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),x0=dt(y.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),S0=dt(y.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"),C0=dt(y.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 w0(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:or(t.components[n].defaultProps,r)}function E0(e){return Object.keys(e).length===0}function O0(e=null){const t=S.useContext(io.ThemeContext);return!t||E0(t)?e:t}function T0(e,t,n,r,s){const[i,a]=S.useState(()=>s&&n?n(e).matches:r?r(e).matches:t);return Ht(()=>{let l=!0;if(!n)return;const c=n(e),u=()=>{l&&a(c.matches)};return u(),c.addListener(u),()=>{l=!1,c.removeListener(u)}},[e,n]),i}const qd=S.useSyncExternalStore;function P0(e,t,n,r,s){const i=S.useCallback(()=>t,[t]),a=S.useMemo(()=>{if(s&&n)return()=>n(e).matches;if(r!==null){const{matches:d}=r(e);return()=>d}return i},[i,e,r,s,n]),[l,c]=S.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const d=n(e);return[()=>d.matches,p=>(d.addListener(p),()=>{d.removeListener(p)})]},[i,n,e]);return qd(c,l,a)}function Yd(e,t={}){const n=O0(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:s=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:l=!1}=w0({name:"MuiUseMediaQuery",props:t,theme:n});process.env.NODE_ENV!=="production"&&typeof e=="function"&&n===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(`
|
|
93
|
-
`));let
|
|
94
|
-
`));return typeof
|
|
109
|
+
`,this.renderedStyles.add("marker-pointer-events")}cleanup(){this.styleElement&&(this.styleElement.remove(),this.styleElement=null,this.renderedStyles.clear())}}const VM=new LM;function FM(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 BM=L.createContext(null),zM={BOTTOM:["50%","100%"]},Qg=L.forwardRef((e,t)=>{const{children:n,style:o,className:r,anchorPoint:i}=e,[a,l]=UM(e),c=L.useMemo(()=>a?{marker:a}:null,[a]);return L.useImperativeHandle(t,()=>a,[a]),l?L.createElement(BM.Provider,{value:c},Uo.createPortal(L.createElement(WM,{anchorPoint:i,styles:o,className:r},n),l)):null});Qg.displayName="AdvancedMarker";function Ql(e){return e.nodeType===Node.ELEMENT_NODE}const WM=({children:e,styles:t,className:n})=>L.createElement("div",{className:n,style:t},e);function UM(e){const[t,n]=L.useState(null),[o,r]=L.useState(null),i=ta(),a=$M("marker"),{children:l,onClick:c,className:u,onMouseEnter:d,onMouseLeave:f,onDrag:p,onDragStart:h,onDragEnd:m,collisionBehavior:g,clickable:y,draggable:b,position:C,title:w,zIndex:S,anchorPoint:T,anchorLeft:P,anchorTop:A}=e,I=L.Children.count(l);return L.useEffect(()=>{if(!i||!a)return;const k=new a.AdvancedMarkerElement;k.map=i,n(k);let V=null;return I>0&&(V=document.createElement("div"),k.content=V,r(V)),()=>{k.map=null,V==null||V.remove(),n(null),r(null)}},[i,a,I]),L.useEffect(()=>{!(t!=null&&t.content)||!Ql(t.content)||I>0||(t.content.className=u??"")},[t,u,I]),HM(t,T,P,A,I>0),Hs(t,"position",C),Hs(t,"title",w??""),Hs(t,"zIndex",S),Hs(t,"collisionBehavior",g),L.useEffect(()=>{t&&(b!==void 0?t.gmpDraggable=b:p||h||m?t.gmpDraggable=!0:t.gmpDraggable=!1)},[t,b,p,m,h]),L.useEffect(()=>{if(!t)return;const k=y!==void 0||!!c||!!d||!!f;t.gmpClickable=k,k&&(t!=null&&t.content)&&Ql(t.content)&&(t.content.style.pointerEvents="all",c&&(t.content.style.cursor="pointer"))},[t,y,c,d,f]),Us(t,"click",c),Us(t,"drag",p),Us(t,"dragstart",h),Us(t,"dragend",m),hp(t==null?void 0:t.element,"mouseenter",d),hp(t==null?void 0:t.element,"mouseleave",f),[t,o]}function HM(e,t,n,o,r){L.useEffect(()=>{if(!e||!r)return;const i=FM(3,62),a=e.content;if(!(!a||!Ql(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??zM.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 YM(e){const[t,n]=L.useState(null),o=ta(),{onClick:r,onDrag:i,onDragStart:a,onDragEnd:l,onMouseOver:c,onMouseOut:u}=e,d=rr(e,["onClick","onDrag","onDragStart","onDragEnd","onMouseOver","onMouseOut"]),{position:f,draggable:p}=d;return L.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]),L.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]),L.useEffect(()=>{t&&d&&t.setOptions(d)},[t,d]),L.useEffect(()=>{p||!f||!t||t.setPosition(f)},[p,f,t]),t}const qM=L.forwardRef((e,t)=>{const n=YM(e);return L.useImperativeHandle(t,()=>n,[n]),L.createElement(L.Fragment,null)});qM.displayName="Marker";const Jg=L.createContext(void 0),su=()=>{const e=L.useContext(Jg);if(!e)throw new Error("useGoogleMapContext must be used within GoogleMap component");return e},iu=({children:e})=>{const t=ta(),[n,o]=L.useState(13),[r,i]=L.useState(null);L.useEffect(()=>{if(!t)return;const l=t.getZoom();l!==void 0&&o(l);const c=t.getBounds();if(c){const f=c.getNorthEast(),p=c.getSouthWest();i([p.lng(),p.lat(),f.lng(),f.lat()])}const u=t.addListener("zoom_changed",()=>{const f=t.getZoom();f!==void 0&&(console.log("[MapContent] Zoom changed:",f),o(f))}),d=t.addListener("bounds_changed",()=>{const f=t.getBounds();if(f){const p=f.getNorthEast(),h=f.getSouthWest();i([h.lng(),h.lat(),p.lng(),p.lat()])}});return()=>{u&&google.maps.event.removeListener(u),d&&google.maps.event.removeListener(d)}},[t]);const a=(l,c=16)=>{t&&(t.setCenter(l),t.setZoom(c))};return t?v.jsx(Jg.Provider,{value:{isLoaded:!0,map:t,currentZoom:n,bounds:r,zoomToPosition:a},children:e}):null};iu.displayName="MapContent";const GM=180,ey=()=>{const{map:e}=su(),t=L.useRef(null),n=L.useRef(null);return L.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}},GM)});return o.observe(t.current),()=>{n.current&&clearTimeout(n.current),o.disconnect()}},[e]),v.jsx("div",{ref:t,"aria-hidden":!0,style:{position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none",visibility:"hidden"}})};ey.displayName="MapResizeHandler";const KM="_googleMap_j4y4m_1",ZM="_container_j4y4m_10",XM="_errorContainer_j4y4m_21",Ys={googleMap:KM,container:ZM,errorContainer:XM},QM={lat:-26.3044,lng:-48.8487},JM=13,eO={disableDefaultUI:!0,zoomControl:!1,streetViewControl:!1,mapTypeControl:!1,fullscreenControl:!1,rotateControl:!1,scaleControl:!1,panControl:!1,clickableIcons:!1,keyboardShortcuts:!1},tO=({colorScheme:e,options:t,onLoad:n,children:o})=>{const r=ta();return L.useEffect(()=>{r&&(r.setOptions(eO),t&&r.setOptions(t),n&&n(r))},[r,t,n]),v.jsx(v.Fragment,{children:o})},ty=({center:e=QM,zoom:t=JM,className:n,children:o,apiKey:r,mapId:i,themeMode:a="light",options:l,onLoad:c,onError:u})=>{if(!r||!i)return v.jsx("div",{className:`${Ys.container} ${Ys.errorContainer} ${n||""}`,children:v.jsxs("div",{children:[v.jsx("p",{children:"Google Maps não configurado"}),v.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:Ys.googleMap,colorScheme:d},p=`${i}-${d}`;return v.jsx(mM,{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:v.jsx("div",{className:`${Ys.container} ${n||""}`,style:{width:"100%",height:"400px",minHeight:"400px",position:"relative"},children:v.jsx(Xg,{...f,style:{width:"100%",height:"100%"},children:v.jsx(tO,{colorScheme:d,options:l,onLoad:c,children:v.jsxs(iu,{children:[v.jsx(ey,{}),o]})})},p)})})};ty.displayName="GoogleMap";const mp=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],ol=1,Pr=8;class au{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!==ol)throw new Error(`Got v${r} data when expected v${ol}.`);const i=mp[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 au(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=mp.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,Pr,t),this.coords=new this.ArrayType(this.data,Pr+l+c,t*2),this._pos=t*2,this._finished=!0):(this.data=new ArrayBuffer(Pr+a+l+c),this.ids=new this.IndexArrayType(this.data,Pr,t),this.coords=new this.ArrayType(this.data,Pr+l+c,t*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(ol<<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 Jl(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 b=a[2*y],C=a[2*y+1];b>=t&&b<=o&&C>=n&&C<=r&&u.push(i[y])}continue}const h=p+f>>1,m=a[2*h],g=a[2*h+1];m>=t&&m<=o&&g>=n&&g<=r&&u.push(i[h]),(d===0?t<=m:n<=g)&&(c.push(p),c.push(h-1),c.push(1-d)),(d===0?o>=m:r>=g)&&(c.push(h+1),c.push(f),c.push(1-d))}return u}within(t,n,o){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:r,coords:i,nodeSize:a}=this,l=[0,r.length-1,0],c=[],u=o*o;for(;l.length;){const d=l.pop()||0,f=l.pop()||0,p=l.pop()||0;if(f-p<=a){for(let y=p;y<=f;y++)gp(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];gp(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 Jl(e,t,n,o,r,i){if(r-o<=n)return;const a=o+r>>1;ny(e,t,a,o,r,i),Jl(e,t,n,o,a-1,1-i),Jl(e,t,n,a+1,r,1-i)}function ny(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));ny(e,t,n,m,g,i)}const a=t[2*n+i];let l=o,c=r;for(Er(e,t,o,n),t[2*r+i]>a&&Er(e,t,o,r);l<c;){for(Er(e,t,l,c),l++,c--;t[2*l+i]<a;)l++;for(;t[2*c+i]>a;)c--}t[2*o+i]===a?Er(e,t,o,c):(c++,Er(e,t,c,r)),c<=n&&(o=c+1),n<=c&&(r=c-1)}}function Er(e,t,n,o){rl(e,n,o),rl(t,2*n,2*o),rl(t,2*n+1,2*o+1)}function rl(e,t,n){const o=e[t];e[t]=e[n],e[n]=o}function gp(e,t,n,o){const r=e-n,i=t-o;return r*r+i*i}const nO={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},yp=Math.fround||(e=>t=>(e[0]=+t,e[0]))(new Float32Array(1)),lo=2,Fn=3,sl=4,Ln=5,oy=6;class ry{constructor(t){this.options=Object.assign(Object.create(nO),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=yp(qs(d)),h=yp(Gs(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(qs(o),Gs(a),qs(i),Gs(r)),u=l.data,d=[];for(const f of c){const p=this.stride*f;d.push(u[p+Ln]>1?bp(u,p,this.clusterProps):this.points[u[p+Fn]])}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+sl]===t&&f.push(a[h+Ln]>1?bp(a,h,this.clusterProps):this.points[a[h+Fn]])}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 au(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+Ln]>1;let d,f,p;if(u)d=sy(n,c,this.clusterProps),f=n[c],p=n[c+1];else{const g=this.points[n[c+Fn]];d=g.properties;const[y,b]=g.geometry.coordinates;f=qs(y),p=Gs(b)}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+Fn]:m=this.points[n[c+Fn]].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+lo]<=n)continue;c[f+lo]=n;const p=c[f],h=c[f+1],m=t.within(c[f],c[f+1],l),g=c[f+Ln];let y=g;for(const b of m){const C=b*d;c[C+lo]>n&&(y+=c[C+Ln])}if(y>g&&y>=a){let b=p*g,C=h*g,w,S=-1;const T=((f/d|0)<<5)+(n+1)+this.points.length;for(const P of m){const A=P*d;if(c[A+lo]<=n)continue;c[A+lo]=n;const I=c[A+Ln];b+=c[A]*I,C+=c[A+1]*I,c[A+sl]=T,i&&(w||(w=this._map(c,f,!0),S=this.clusterProps.length,this.clusterProps.push(w)),i(w,this._map(c,A)))}c[f+sl]=T,u.push(b/y,C/y,1/0,T,-1,y),i&&u.push(S)}else{for(let b=0;b<d;b++)u.push(c[f+b]);if(y>1)for(const b of m){const C=b*d;if(!(c[C+lo]<=n)){c[C+lo]=n;for(let w=0;w<d;w++)u.push(c[C+w])}}}}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+Ln]>1){const a=this.clusterProps[t[n+oy]];return o?Object.assign({},a):a}const r=this.points[t[n+Fn]].properties,i=this.options.map(r);return o&&i===r?Object.assign({},i):i}}function bp(e,t,n){return{type:"Feature",id:e[t+Fn],properties:sy(e,t,n),geometry:{type:"Point",coordinates:[oO(e[t]),rO(e[t+1])]}}}function sy(e,t,n){const o=e[t+Ln],r=o>=1e4?`${Math.round(o/1e3)}k`:o>=1e3?`${Math.round(o/100)/10}k`:o,i=e[t+oy],a=i===-1?{}:Object.assign({},n[i]);return Object.assign(a,{cluster:!0,cluster_id:e[t+Fn],point_count:o,point_count_abbreviated:r})}function qs(e){return e/360+.5}function Gs(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 oO(e){return(e-.5)*360}function rO(e){const t=(180-e*360)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}const sO={radius:30,maxZoom:13,minZoom:0,minPoints:2};function iO(e,t,n,o={}){const r=L.useRef(null),[i,a]=L.useState([]),l={...sO,...o};return L.useEffect(()=>{if(!e||e.length===0){a([]);return}const c=e.map(u=>({type:"Feature",properties:u,geometry:{type:"Point",coordinates:[u.lng,u.lat]}}));r.current=new ry({radius:l.radius,maxZoom:l.maxZoom,minZoom:l.minZoom,minPoints:l.minPoints}),r.current.load(c)},[e,l.radius,l.maxZoom,l.minZoom,l.minPoints]),L.useEffect(()=>{if(!r.current||!n){a(e);return}const u=r.current.getClusters(n,Math.floor(t)).map(d=>{const[f,p]=d.geometry.coordinates,h=d.properties;if(h.cluster){const m=h.cluster_id,g=r.current.getLeaves(m,1/0),y=g.flatMap(C=>C.properties.cameras||[]),b=g.reduce((C,w)=>C+w.properties.count,0);return{id:`cluster-${m}`,lat:p,lng:f,count:b,cameras:y,isCluster:!0,pointCount:h.point_count,clusterId:m}}else{const m=h;return{id:m.id,lat:p,lng:f,count:m.count,addressText:m.addressText,cameras:m.cameras}}});a(u)},[e,t,n]),i}const aO=16,iy=({spots:e,onSpotClick:t,zoomLevel:n=aO,selectedSpotId:o,animateOnClick:r,disableClick:i})=>{const{isLoaded:a,currentZoom:l,bounds:c,zoomToPosition:u}=su(),d=L.useRef(null),f=iO(e,l,c);if(f.length>0&&c){const h=e.map(m=>({type:"Feature",properties:m,geometry:{type:"Point",coordinates:[m.lng,m.lat]}}));d.current||(d.current=new ry({radius:30,maxZoom:13,minZoom:0,minPoints:2})),d.current.load(h)}const p=h=>{if(h.isCluster&&h.clusterId&&d.current)try{const m=d.current.getClusterExpansionZoom(h.clusterId);u({lat:h.lat,lng:h.lng},m)}catch(m){console.error("Error getting cluster expansion zoom:",m),u({lat:h.lat,lng:h.lng},n)}else u({lat:h.lat,lng:h.lng},n),i||t==null||t(h)};return a?v.jsx(v.Fragment,{children:f.map((h,m)=>v.jsx(Qg,{position:{lat:h.lat,lng:h.lng},onClick:()=>p(h),children:v.jsx(ru,{count:h.count,addressText:h.addressText,cameras:h.cameras,currentZoom:l,isSelected:!i&&!h.isCluster&&o===h.id,animateOnClick:r,disableClick:i})},h.id??m))}):null};iy.displayName="MapMarkers";const lO="_searchBar_15mix_1",cO="_startIconContainer_15mix_106",uO="_endIconContainer_15mix_117",dO="_endIconContainerClickable_15mix_153",fO="_defaultIcon_15mix_157",Br={searchBar:lO,startIconContainer:cO,endIconContainer:uO,endIconContainerClickable:dO,defaultIcon:fO},pO=e=>()=>{e&&e()},hO=e=>t=>{e&&e(t)},mO=()=>v.jsx(Vt.Search,{className:Br.defaultIcon}),gO=e=>e||mO(),ay=L.forwardRef(({startIcon:e,endIcon:t,onEndIconClick:n,placeholder:o,value:r,onChange:i,className:a,...l},c)=>{const d=Y.useTheme().palette.mode==="dark",f=gO(t),p=pO(n),h=hO(i);return v.jsx(Y.TextField,{ref:c,value:r,onChange:h,placeholder:o,variant:"outlined",autoComplete:"off",className:`${Br.searchBar} ${a||""}`,"data-theme":d?"dark":"light",InputProps:{startAdornment:e?v.jsx(Y.InputAdornment,{position:"start",className:Br.startIconContainer,children:e}):null,endAdornment:v.jsx(Y.InputAdornment,{position:"end",className:`${Br.endIconContainer} ${n?Br.endIconContainerClickable:""}`,onClick:p,disablePointerEvents:!n,children:f})},inputProps:{autoComplete:"off","data-form-type":"other"},...l})});ay.displayName="SearchBar";const yO=ft(v.jsx("path",{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"}),"Home"),bO=ft([v.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"),v.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"),vO="_container_1mb8b_1",xO="_iconWrapper_1mb8b_11",SO="_icon_1mb8b_11",wO="_title_1mb8b_21",CO="_subtitle_1mb8b_30",TO="_description_1mb8b_34",PO="_button_1mb8b_38",co={container:vO,iconWrapper:xO,icon:SO,title:wO,subtitle:CO,description:TO,button:PO},ly=({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})=>v.jsx(Y.Container,{maxWidth:"sm",children:v.jsxs(Y.Box,{className:`${co.container} ${i||""}`,children:[v.jsx(Y.Box,{className:co.iconWrapper,children:v.jsx(bO,{className:co.icon,color:"primary"})}),v.jsx(Y.Typography,{variant:"h1",className:co.title,sx:{fontSize:{xs:"6rem",md:"8rem"}},children:r}),v.jsx(Y.Typography,{variant:"h4",component:"h2",className:co.subtitle,color:"text.primary",children:n}),v.jsx(Y.Typography,{variant:"body1",className:co.description,color:"text.secondary",children:o}),e&&v.jsx(vc,{variant:"contained",size:"large",startIcon:v.jsx(yO,{}),onClick:e,className:co.button,children:t})]})});ly.displayName="NotFoundContent";const EO=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}},MO=({items:e,isExpanded:t=!0,onClick:n})=>{const o=L.useMemo(()=>EO(e),[e]),[r,i]=L.useState(o.itemId),[a,l]=L.useState(o.subItemId),[c,u]=L.useState(o.expandedItemId),[d,f]=L.useState(null),[p,h]=L.useState(null);L.useEffect(()=>{i(o.itemId),l(o.subItemId),u(o.expandedItemId)},[o.itemId,o.subItemId,o.expandedItemId]);const m=p?e.find(P=>P.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:P=>{var I;const A=a?!!((I=P.submenu)!=null&&I.some(k=>k.id===a)):!1;return r?P.id===r:!!(P.active||A)},getIsSubItemActive:P=>a?P.id===a:!!P.active,shouldShowSubmenu:P=>{var A;return!!(t&&((A=P.submenu)!=null&&A.length)&&c===P.id)},handleItemClick:(P,A)=>{var I,k;i(P.id),l(null),(I=P.submenu)!=null&&I.length?t?u(V=>V===P.id?null:P.id):(f(A.currentTarget),h(P.id)):(u(null),f(null),h(null)),(k=P.onClick)==null||k.call(P,A),n==null||n({item:P})},handleSubItemClick:(P,A,I,k)=>{var V;i(P.id),l(A.id),k!=null&&k.closeMenu&&(f(null),h(null)),(V=A.onClick)==null||V.call(A,I),n==null||n({item:P,subItem:A})},closeSubmenu:()=>{f(null),h(null)}}},cy=e=>typeof e=="number"?`${e*4}px`:e,OO=({item:e,onClick:t,isActive:n})=>{const o=ie.useTheme();return v.jsx(Y.ButtonBase,{onClick:t,"aria-label":e.label,"aria-pressed":n||void 0,sx:{width:"100%",borderRadius:cy(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:v.jsx(Y.Typography,{variant:"body2",sx:{fontWeight:500},children:e.label})})},uy=({items:e,isExpanded:t=!0,className:n,onClick:o})=>{const r=ie.useTheme(),i=cy(r.shape.borderRadius),{submenuAnchorEl:a,submenuItem:l,submenuItems:c,getIsItemActive:u,getIsSubItemActive:d,shouldShowSubmenu:f,handleItemClick:p,handleSubItemClick:h,closeSubmenu:m}=MO({items:e,isExpanded:t,onClick:o});return v.jsxs(Y.Stack,{className:n,direction:"column",spacing:2,sx:{width:"100%"},children:[e.map(g=>{var P,A;const y=u(g),b=f(g),C=t?r.spacing(2):r.spacing(4),w=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 v.jsxs(Y.Stack,{direction:"column",spacing:1,sx:{width:"100%"},children:[v.jsx(Y.ButtonBase,{onClick:I=>p(g,I),"aria-label":g.label,"aria-pressed":y||void 0,"aria-haspopup":(P=g.submenu)!=null&&P.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:w,boxShadow:t&&y?r.shadows[1]:"none","&:hover":{backgroundColor:t?r.palette.action.hover:"transparent"}},children:v.jsxs(Y.Stack,{direction:t?"row":"column",alignItems:"center",spacing:t?1.5:1,sx:{width:"100%"},children:[v.jsx(Y.Box,{sx:{width:64,height:C,borderRadius:i,display:"inline-flex",alignItems:"center",justifyContent:"center",backgroundColor:S,color:T,transition:r.transitions.create(["background-color","box-shadow"],{duration:r.transitions.duration.shortest}),...t?{}:{boxShadow:y?r.shadows[1]:"none","&:hover":{backgroundColor:y?ie.alpha(r.palette.primary.main,.9):r.palette.action.selected}}},children:g.icon}),v.jsx(Y.Typography,{variant:"body2",sx:{width:"100%",textAlign:t?"left":"center",fontWeight:y?600:500},children:g.label}),t&&g.trailingIcon?v.jsx(Y.Box,{sx:{ml:"auto",display:"inline-flex",alignItems:"center"},children:g.trailingIcon}):null]})}),b?v.jsx(Y.Collapse,{in:b,timeout:"auto",unmountOnExit:!0,children:v.jsx(Y.Stack,{direction:"column",spacing:1,sx:{pl:4},children:(A=g.submenu)==null?void 0:A.map(I=>{const k=d(I);return v.jsx(OO,{item:I,isActive:k,onClick:V=>h(g,I,V)},I.id)})})}):null]},g.id)}),v.jsx(Y.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 v.jsx(Y.MenuItem,{selected:y,onClick:b=>{l&&h(l,g,b,{closeMenu:!0})},sx:{borderRadius:i,fontWeight:y?600:500},children:g.label},g.id)})})]})};uy.displayName="SidebarMenu";const kO=e=>{const t=e.find(n=>n.active);return(t==null?void 0:t.id)??null},DO=({items:e,onSelect:t,isExpanded:n=!0})=>{const o=L.useMemo(()=>kO(e),[e]),[r,i]=L.useState(o),[a,l]=L.useState(null);L.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)}}},RO=e=>typeof e=="number"?`${e*4}px`:e,dy=({items:e,currentLabel:t,headerLabel:n,headerIcon:o,headerTrailingIcon:r,listTitle:i,action:a,isExpanded:l=!0,className:c,onSelect:u})=>{var D,_;const d=ie.useTheme(),f=L.useRef(null),p=RO(d.shape.borderRadius),[h,m]=L.useState(!1),g=L.useMemo(()=>Number.parseFloat(d.spacing(2).toString()),[d]),{selectedItem:y,menuAnchorEl:b,getIsItemActive:C,openMenu:w,closeMenu:S,handleItemClick:T}=DO({items:e,onSelect:u,isExpanded:l}),P=t??(y==null?void 0:y.label)??((D=e[0])==null?void 0:D.label)??"",A=o??(y==null?void 0:y.icon)??((_=e[0])==null?void 0:_.icon)??null,I=l||!A,k=F=>{if(l){m(B=>!B);return}w(F)},V=(F,B)=>{T(F,B),m(!1)},N=v.jsx(Y.Stack,{direction:"column",spacing:.5,children:e.map(F=>{const B=C(F);return v.jsxs(Y.MenuItem,{selected:B,onClick:$=>V(F,$),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?v.jsx(Y.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:F.icon}):null,v.jsx(Y.Typography,{variant:"body1",sx:{fontWeight:B?600:500},children:F.label})]},F.id)})}),x=v.jsxs(Y.Box,{sx:{borderRadius:p,backgroundColor:d.palette.background.paper,boxShadow:d.shadows[3],display:"flex",flexDirection:"column",maxHeight:d.spacing(50)},children:[i?v.jsx(Y.Box,{sx:{px:2,pt:2,pb:1},children:v.jsx(Y.Typography,{variant:"subtitle2",sx:{color:d.palette.text.primary},children:i})}):null,v.jsx(Y.Box,{sx:{px:2,pb:2,overflowY:"auto",flex:1,minHeight:0},children:N})]}),j=a?v.jsxs(Y.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?v.jsx(Y.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:a.icon}):null,v.jsx(Y.Typography,{variant:"body1",sx:{fontWeight:600},children:a.label})]}):null,R=j?v.jsx(Y.Box,{sx:{borderRadius:p,backgroundColor:d.palette.background.paper,boxShadow:d.shadows[3]},children:j}):null,O=v.jsxs(Y.Stack,{direction:"column",spacing:1,sx:{minWidth:d.spacing(32)},children:[x,R]});return v.jsxs(Y.Stack,{className:c,direction:l?"row":"column",spacing:l?2:1,sx:{width:"100%",alignItems:l?"flex-start":"stretch"},children:[v.jsx(Y.ButtonBase,{onClick:k,"aria-label":P,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:v.jsxs(Y.Stack,{direction:"row",alignItems:"center",spacing:l?1:0,sx:{width:l?"100%":"auto",justifyContent:l?"space-between":"center",px:0},children:[A?v.jsx(Y.Box,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center"},children:A}):null,I?v.jsxs(Y.Box,{sx:{minWidth:0,flex:1},children:[n?v.jsx(Y.Typography,{variant:"caption",sx:{color:d.palette.text.secondary},children:n}):null,v.jsx(Y.Typography,{variant:"body2",sx:{fontWeight:600},noWrap:!0,children:P})]}):null,l&&r?v.jsx(Y.Box,{sx:{ml:"auto",display:"inline-flex",alignItems:"center"},children:r}):null]})}),l?h?v.jsx(Y.ClickAwayListener,{onClickAway:()=>m(!1),children:v.jsx(Y.Popper,{open:h,anchorEl:f.current,placement:"right-start",modifiers:[{name:"offset",options:{offset:[0,g]}}],sx:{zIndex:d.zIndex.modal},children:O})}):null:v.jsx(Y.Menu,{anchorEl:b,open:!!b,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":P?`menu-${P}`:"menu",sx:{p:0}},children:O})]})};dy.displayName="ModuleMenu";const lu=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,IO=(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}}),En={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function fy(e){return"init"in e}function ec(e){return!!e.write}function vp(e){return"v"in e||"e"in e}function Ci(e){if("e"in e)throw e.e;if((En?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}const Ti=new WeakMap;function py(e){var t;return Pi(e)&&!!((t=Ti.get(e))!=null&&t[0])}function AO(e){const t=Ti.get(e);t!=null&&t[0]&&(t[0]=!1,t[1].forEach(n=>n()))}function tc(e,t){let n=Ti.get(e);if(!n){n=[!0,new Set],Ti.set(e,n);const o=()=>{n[0]=!1};e.then(o,o)}n[1].add(t)}function Pi(e){return typeof(e==null?void 0:e.then)=="function"}function hy(e,t,n){if(!n.p.has(e)){n.p.add(e);const o=()=>n.p.delete(e);t.then(o,o)}}function my(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 NO=(e,t,...n)=>t.read(...n),_O=(e,t,...n)=>t.write(...n),jO=(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)},$O=(e,t,n)=>{var o;return(o=t.onMount)==null?void 0:o.call(t,n)},LO=(e,t)=>{var n;const o=kt(e),r=o[0],i=o[6],a=o[9];if((En?"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},VO=e=>{const t=kt(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)},FO=e=>{const t=kt(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((En?"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 my(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)}},nc=new WeakSet,BO=(e,t)=>{var n,o;const r=kt(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],b=d(e,t);if(vp(b)){if(i.has(t)&&a.get(t)!==b.n)return b;let k=!1;for(const[V,N]of b.d)if(h(e,V).n!==N){k=!0;break}if(!k)return b}b.d.clear();let C=!0;function w(){i.has(t)&&(g(e,t),p(e),f(e))}function S(k){var V;if(k===t){const x=d(e,k);if(!vp(x))if(fy(k))y(e,k,k.init);else throw new Error("no atom init");return Ci(x)}const N=h(e,k);try{return Ci(N)}finally{b.d.set(k,N.n),py(b.v)&&hy(t,b.v,N),i.has(t)&&((V=i.get(k))==null||V.t.add(t)),C||w()}}let T,P;const A={get signal(){return T||(T=new AbortController),T.signal},get setSelf(){return(En?"production":void 0)!=="production"&&!ec(t)&&console.warn("setSelf function cannot be used with read-only atom"),!P&&ec(t)&&(P=(...k)=>{if((En?"production":void 0)!=="production"&&C&&console.warn("setSelf function cannot be called in sync"),!C)try{return m(e,t,...k)}finally{p(e),f(e)}}),P}},I=b.n;try{(En?"production":void 0)!=="production"&&nc.delete(e);const k=u(e,t,S,A);return(En?"production":void 0)!=="production"&&nc.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),y(e,t,k),Pi(k)&&(tc(k,()=>T==null?void 0:T.abort()),k.then(w,w)),(n=c.r)==null||n.call(c,t),b}catch(k){return delete b.v,b.e=k,++b.n,b}finally{C=!1,I!==b.n&&a.get(t)===I&&(a.set(t,b.n),l.add(t),(o=c.c)==null||o.call(c,t))}},zO=(e,t)=>{const n=kt(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 my(l,c,o)){const d=i(e,u);r.set(u,d.n),a.push(u)}}},WO=(e,t,...n)=>{const o=kt(e),r=o[3],i=o[6],a=o[8],l=o[11],c=o[12],u=o[13],d=o[14],f=o[15],p=o[16],h=o[17],m=o[20];let g=!0;const y=C=>Ci(d(e,C)),b=(C,...w)=>{var S;const T=l(e,C);try{if(C===t){if(!fy(C))throw new Error("atom not writable");(En?"production":void 0)!=="production"&&nc.add(e);const P=T.n,A=w[0];m(e,C,A),h(e,C),P!==T.n&&(r.add(C),f(e,C),(S=i.c)==null||S.call(i,C));return}else return p(e,C,...w)}finally{g||(u(e),c(e))}};try{return a(e,t,y,b,...n)}finally{g=!1}},UO=(e,t)=>{var n;const o=kt(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&&!py(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)}}},HO=(e,t)=>{var n;const o=kt(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),ec(t)){const y=()=>{let b=!0;const C=(...w)=>{try{return p(e,t,...w)}finally{b||(d(e),u(e))}};try{const w=l(e,t,C);w&&(g.u=()=>{b=!0;try{w()}finally{b=!1}})}finally{b=!1}};i.add(y)}(n=a.m)==null||n.call(a,t)}return g},YO=(e,t)=>{var n,o;const r=kt(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},qO=(e,t,n)=>{const o=kt(e)[11],r=o(e,t),i="v"in r,a=r.v;if(Pi(n))for(const l of r.d.keys())hy(t,n,o(e,l));r.v=n,delete r.e,(!i||!Object.is(a,r.v))&&(++r.n,Pi(a)&&AO(a))},GO=(e,t)=>{const n=kt(e)[14];return Ci(n(e,t))},KO=(e,t,...n)=>{const o=kt(e),r=o[12],i=o[13],a=o[16];try{return a(e,t,...n)}finally{i(e),r(e)}},ZO=(e,t,n)=>{const o=kt(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)}},gy=new WeakMap,kt=e=>{const t=gy.get(e);if((En?"production":void 0)!=="production"&&!t)throw new Error("Store must be created by buildStore to read its building blocks");return t};function XO(...e){const t={get(o){const r=kt(t)[21];return r(t,o)},set(o,...r){const i=kt(t)[22];return i(t,o,...r)},sub(o,r){const i=kt(t)[23];return i(t,o,r)}},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},NO,_O,jO,$O,LO,VO,FO,BO,zO,WO,UO,HO,YO,qO,GO,KO,ZO,void 0].map((o,r)=>e[r]||o);return gy.set(t,Object.freeze(n)),t}const yy={};let QO=0;function yr(e,t){const n=`atom${++QO}`,o={toString(){return(yy?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof e=="function"?o.read=e:(o.init=e,o.read=JO,o.write=ek),o}function JO(e){return e(this)}function ek(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}function tk(){return XO()}let Mr;function nk(){return Mr||(Mr=tk(),(yy?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=Mr),globalThis.__JOTAI_DEFAULT_STORE__!==Mr&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),Mr}const ok={},rk=L.createContext(void 0);function by(e){return L.useContext(rk)||nk()}const oc=e=>typeof(e==null?void 0:e.then)=="function",rc=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},sk=L.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(rc(e),e)}),il=new WeakMap,xp=(e,t)=>{let n=il.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();oc(u)?(il.set(u,n),i=u,u.then(a(u),l(u)),tc(u,c)):o(u)}catch(u){r(u)}};e.then(a(e),l(e)),tc(e,c)}),il.set(e,n)),n};function Ei(e,t){const{delay:n,unstable_promiseStatus:o=!L.use}={},r=by(),[[i,a,l],c]=L.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)),L.useEffect(()=>{const d=r.sub(e,()=>{if(o)try{const f=r.get(e);oc(f)&&rc(xp(f,()=>r.get(e)))}catch{}if(typeof n=="number"){setTimeout(c,n);return}c()});return c(),d},[r,e,n,o]),L.useDebugValue(u),oc(u)){const d=xp(u,()=>r.get(e));return o&&rc(d),sk(d)}return u}function sc(e,t){const n=by();return L.useCallback((...r)=>{if((ok?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...r)},[n,e])}function Un(e,t){return[Ei(e),sc(e)]}const na=yr(0),oa=yr(!0),cu=yr(null),vy=yr({windowSeconds:24*60*60,fps:30}),uu=yr([]),du=yr([]),fu=L.createContext(null),xy=({children:e})=>{const t=L.useRef(null),[n,o]=Un(na),[r,i]=Un(oa),[a,l]=L.useState(!1),[c,u]=L.useState(0),[d,f]=L.useState(!1);L.useEffect(()=>{const w=t.current;if(!w)return;const S=()=>{if(o(w.currentTime),w.seekable&&w.seekable.length>0){const A=w.seekable.end(w.seekable.length-1);u(A),f(A>0)}else w.duration&&isFinite(w.duration)&&(u(w.duration),f(!0))},T=()=>l(!0),P=()=>l(!1);return w.addEventListener("timeupdate",S),w.addEventListener("durationchange",S),w.addEventListener("loadedmetadata",S),w.addEventListener("progress",S),w.addEventListener("play",T),w.addEventListener("pause",P),S(),()=>{w.removeEventListener("timeupdate",S),w.removeEventListener("durationchange",S),w.removeEventListener("loadedmetadata",S),w.removeEventListener("progress",S),w.removeEventListener("play",T),w.removeEventListener("pause",P)}},[o]);const p=L.useCallback(w=>{o(w)},[o]),h=L.useCallback(w=>{i(w)},[i]),m=L.useCallback(w=>{const S=t.current;!S||!d||(S.currentTime=w,o(w),i(!1))},[d,o,i]),g=L.useCallback(async()=>{const w=t.current;if(w)try{await w.play(),l(!0)}catch(S){console.error("Failed to play video:",S)}},[]),y=L.useCallback(()=>{const w=t.current;w&&(w.pause(),l(!1))},[]),b=L.useCallback(()=>{a?y():g()},[a,g,y]),C={videoRef:t,currentTime:n,setCurrentTime:p,isLive:r,setIsLive:h,seekTo:m,play:g,pause:y,togglePlay:b,isPlaying:a,duration:c,canSeek:d};return v.jsx(fu.Provider,{value:C,children:e})},ra=()=>L.useContext(fu),ik=()=>{const e=L.useContext(fu);if(!e)throw new Error("useVideoControlRequired must be used within a VideoControlProvider. Wrap your VideoPlayer and VideoTimeline with <VideoControlProvider>.");return e},ak=({stream:e,availableQualities:t,initialQuality:n,autoPlay:o,liveThresholdSeconds:r,allowPlaybackRateForStream:i})=>{const a=L.useRef(null),l=ra(),c=L.useRef(null),u=L.useCallback($=>{c.current=$,l!=null&&l.videoRef&&(l.videoRef.current=$)},[l]),d=L.useMemo(()=>{if(!t||!t.length)return null;if(n){const $=t.find(M=>M.value===n);if($)return $}return t[0]},[t,n]),[f,p]=L.useState(d),[h,m]=L.useState(!1),[g,y]=L.useState(!0),[b,C]=L.useState(!1),[w,S]=L.useState(0),[T,P]=L.useState(0),[A,I]=L.useState(1),[k,V]=L.useState(1),[N,x]=L.useState(!1),[j,R]=L.useState(!0),O=(f==null?void 0:f.stream)??e??null,D=(f==null?void 0:f.src)??null,F=!!!O||i;L.useEffect(()=>{p(d)},[d]);const B=L.useCallback(()=>{const $=c.current;if(!$)return;if(!$.seekable||$.seekable.length===0){y(!0),C(!1),l&&l.setIsLive(!0);return}const M=lu($),W=Math.max(0,M-$.currentTime);P(M),S($.currentTime),C(M>0);const K=W<=(r??2);y(K),l&&(l.setCurrentTime($.currentTime),l.setIsLive(K))},[r,l]);return L.useEffect(()=>{const $=c.current;if(!$)return;const M=()=>m(!0),W=()=>m(!1),K=()=>R(!0),G=()=>R(!0),Z=()=>R(!1),U=()=>R(!1);return $.addEventListener("play",M),$.addEventListener("pause",W),$.addEventListener("waiting",K),$.addEventListener("loadstart",G),$.addEventListener("canplay",Z),$.addEventListener("playing",U),$.addEventListener("timeupdate",B),$.addEventListener("durationchange",B),$.addEventListener("loadedmetadata",B),$.addEventListener("progress",B),()=>{$.removeEventListener("play",M),$.removeEventListener("pause",W),$.removeEventListener("waiting",K),$.removeEventListener("loadstart",G),$.removeEventListener("canplay",Z),$.removeEventListener("playing",U),$.removeEventListener("timeupdate",B),$.removeEventListener("durationchange",B),$.removeEventListener("loadedmetadata",B),$.removeEventListener("progress",B)}},[B]),L.useEffect(()=>{const $=c.current;$&&(R(!0),O?($.srcObject!==O&&($.srcObject=O),$.getAttribute("src")&&$.removeAttribute("src")):D?($.srcObject&&($.srcObject=null),$.src!==D&&($.src=D,$.load())):($.srcObject&&($.srcObject=null),$.getAttribute("src")&&$.removeAttribute("src")),o&&$.play().then(()=>{}).catch(()=>{}))},[O,D,o]),L.useEffect(()=>{const $=c.current;$&&(F?$.playbackRate=A:($.playbackRate=1,I(1)))},[A,F]),L.useEffect(()=>{const $=()=>{x(!!document.fullscreenElement)};return document.addEventListener("fullscreenchange",$),()=>{document.removeEventListener("fullscreenchange",$)}},[]),{containerRef:a,videoRef:c,setVideoRef:u,selectedQuality:f,setSelectedQuality:p,isPlaying:h,isLive:g,canSeek:b,currentTime:w,setCurrentTime:S,seekableEnd:T,playbackRate:A,setPlaybackRate:I,zoom:k,setZoom:V,isFullscreen:N,isLoading:j,canAdjustPlaybackRate:F,updateLiveStatus:B}},lk="_container_12m9a_1",ck="_loader_12m9a_78",uk="_video_12m9a_88",dk="_timestampOverlay_12m9a_96",fk="_timestampText_12m9a_109",pk="_controlsOverlay_12m9a_121",hk="_timeline_12m9a_142",mk="_controlsRow_12m9a_149",gk="_controlGroup_12m9a_167",yk="_iconButton_12m9a_184",bk="_seekButton_12m9a_202",vk="_menuButton_12m9a_229",xk="_liveBadge_12m9a_250",Sk="_liveBadgeActive_12m9a_267",wk="_liveBadgeInactive_12m9a_272",Ck="_recordingBadge_12m9a_277",Tk="_recordingDot_12m9a_296",Pk="_controlMenuWrapper_12m9a_325",qe={container:lk,loader:ck,video:uk,timestampOverlay:dk,timestampText:fk,controlsOverlay:pk,timeline:hk,controlsRow:mk,controlGroup:gk,iconButton:yk,seekButton:bk,menuButton:vk,liveBadge:xk,liveBadgeActive:Sk,liveBadgeInactive:wk,recordingBadge:Ck,recordingDot:Tk,controlMenuWrapper:Pk},al=({label:e,valueLabel:t,selectedValue:n,options:o,onChange:r,disabled:i,ariaLabel:a})=>{const[l,c]=L.useState(null),u=!!l;return v.jsxs(v.Fragment,{children:[v.jsx(Y.ButtonBase,{disabled:i,className:`${qe.menuButton} ${qe.controlMenuWrapper}`,"aria-label":a,onClick:d=>c(d.currentTarget),children:e?`${e}: ${t}`:t}),v.jsx(Y.Menu,{anchorEl:l,open:u,onClose:()=>c(null),children:o.map(d=>v.jsx(Y.MenuItem,{selected:d.value===n,disabled:d.disabled,onClick:()=>{r(d.value),c(null)},children:d.label},`${e}-${String(d.value)}`))})]})},Ek=e=>()=>{const t=e.current;t&&(t.paused?t.play().catch(()=>{}):t.pause())},Mk=(e,t,n)=>o=>{const r=e.current;if(!r||!t)return;const i=lu(r),a=Math.min(Math.max(r.currentTime+o,0),i);r.currentTime=a,n()},Ok=e=>()=>{e.current&&(document.fullscreenElement?document.exitFullscreen().catch(()=>{}):e.current.requestFullscreen().catch(()=>{}))},kk=(e,t,n)=>o=>{const r=e.find(i=>i.value===o)??null;t(r),n==null||n(r)},Dk=(e,t)=>(n,o)=>{if(!e)return;const r=Array.isArray(o)?o[0]:o;t(r)},Rk=(e,t,n)=>(o,r)=>{const i=e.current;if(!i||!t)return;const a=Array.isArray(r)?r[0]:r,l=lu(i);i.currentTime=Math.min(Math.max(a,0),l),n()},pu=({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.2,1.5],width:m,height:g,aspectRatio:y="16 / 9",showTimestamp:b=!0,showTimeline:C=!0,isRecording:w=!1,recordingLabel:S="Gravação",borderRadius:T})=>{const A=ie.useTheme().palette.mode==="dark",[I,k]=L.useState(""),[V,N]=L.useState(!0),x=L.useRef(null);L.useEffect(()=>{if(!b)return;const ke=()=>{const Se=new Date,Pe=String(Se.getDate()).padStart(2,"0"),xe=String(Se.getMonth()+1).padStart(2,"0"),$e=Se.getFullYear(),Le=["Dom","Seg","Ter","Qua","Qui","Sex","Sab"][Se.getDay()],ot=String(Se.getHours()).padStart(2,"0"),Ze=String(Se.getMinutes()).padStart(2,"0"),At=String(Se.getSeconds()).padStart(2,"0");k(`${Pe}-${xe}-${$e}, ${Le} ${ot}:${Ze}:${At}`)};ke();const ut=setInterval(ke,1e3);return()=>clearInterval(ut)},[b]),L.useEffect(()=>{const ke=j.current;if(!ke)return;const ut=()=>{x.current&&(clearTimeout(x.current),x.current=null),N(!0)},Se=()=>{x.current=setTimeout(()=>{N(!1)},1e4)},Pe=()=>{V||N(!0),x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{N(!1)},1e4)};return ke.addEventListener("mouseenter",ut),ke.addEventListener("mouseleave",Se),ke.addEventListener("mousemove",Pe),()=>{ke.removeEventListener("mouseenter",ut),ke.removeEventListener("mouseleave",Se),ke.removeEventListener("mousemove",Pe),x.current&&clearTimeout(x.current)}},[V]);const{containerRef:j,videoRef:R,setVideoRef:O,selectedQuality:D,setSelectedQuality:_,isPlaying:F,isLive:B,canSeek:$,currentTime:M,setCurrentTime:W,seekableEnd:K,playbackRate:G,setPlaybackRate:Z,zoom:U,setZoom:Q,isFullscreen:J,isLoading:ee,canAdjustPlaybackRate:q,updateLiveStatus:X}=ak({stream:e,availableQualities:t,initialQuality:n,autoPlay:r,liveThresholdSeconds:d,allowPlaybackRateForStream:f}),H=Ek(R),oe=Mk(R,$,X),te=Ok(j),ae=kk(t,_,o),re=Dk($,W),be=Rk(R,$,X),se=h.map(ke=>({value:ke,label:`${Math.round(ke*100)}%`})),he=p.map(ke=>({value:ke,label:`${ke}x`})),le=t.map(ke=>({value:ke.value,label:ke.label})),ue=(D==null?void 0:D.label)??"Auto",de=`${Math.round(U*100)}%`,Ie=`${G}x`,Me=$&&K>0,Ke=IO(m,g,y),Qe=T!=null?{...Ke,"--vp-radius":typeof T=="number"?`${T}px`:T}:Ke;return v.jsxs(Y.Box,{ref:j,className:`${qe.container} ${c||""}`.trim(),"data-theme":A?"dark":"light",style:Qe,sx:u,children:[ee&&v.jsx(Y.Box,{className:qe.loader,children:v.jsx(Y.CircularProgress,{size:60,sx:{color:"var(--vp-control-color)",width:{xs:"48px",sm:"60px"},height:{xs:"48px",sm:"60px"}}})}),v.jsx("video",{ref:O,className:qe.video,autoPlay:r,playsInline:i,muted:a,poster:l,style:{transform:`scale(${U})`}}),b&&I&&v.jsx(Y.Box,{className:qe.timestampOverlay,children:v.jsx(Y.Typography,{variant:"body2",className:qe.timestampText,children:I})}),w&&!V&&v.jsx(Y.Box,{sx:{position:"absolute",bottom:16,left:20,zIndex:10},children:v.jsxs("span",{className:qe.recordingBadge,children:[v.jsx("span",{className:qe.recordingDot}),S]})}),B&&!w&&!V&&v.jsx(Y.Box,{sx:{position:"absolute",bottom:16,left:20,zIndex:10},children:v.jsx("span",{className:`${qe.liveBadge} ${qe.liveBadgeActive}`,children:"ao vivo"})}),v.jsxs(Y.Box,{className:qe.controlsOverlay,sx:{opacity:V?1:0,visibility:V?"visible":"hidden",transition:"opacity 0.3s ease, visibility 0.3s ease"},children:[C&&v.jsx(Y.Box,{className:qe.timeline,children:v.jsx(Y.Slider,{size:"small",min:0,max:Me?K:1,step:1,value:Me?M:0,disabled:!Me,onChange:re,onChangeCommitted:be,"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}}})}),v.jsxs(Y.Box,{className:qe.controlsRow,children:[v.jsxs(Y.Box,{className:qe.controlGroup,children:[w?v.jsxs("span",{className:qe.recordingBadge,children:[v.jsx("span",{className:qe.recordingDot}),S]}):v.jsx("span",{className:`${qe.liveBadge} ${B?qe.liveBadgeActive:qe.liveBadgeInactive}`,children:"ao vivo"}),v.jsx("button",{className:qe.seekButton,onClick:()=>oe(-15),"aria-label":"Voltar 15 segundos",children:"15s"}),v.jsx(Y.IconButton,{className:qe.iconButton,onClick:()=>oe(-15),"aria-label":"Recuar 15 segundos",children:v.jsx(Vt.FastRewind,{fontSize:"small"})}),v.jsx(Y.IconButton,{className:qe.iconButton,onClick:H,"aria-label":"Play/Pause",children:F?v.jsx(Vt.Pause,{fontSize:"small"}):v.jsx(Vt.PlayArrow,{fontSize:"small"})}),v.jsx(Y.IconButton,{className:qe.iconButton,onClick:()=>oe(15),"aria-label":"Avançar 15 segundos",children:v.jsx(Vt.FastForward,{fontSize:"small"})}),v.jsx("button",{className:qe.seekButton,onClick:()=>oe(15),"aria-label":"Avançar 15 segundos",children:"15s"})]}),v.jsxs(Y.Box,{className:qe.controlGroup,children:[v.jsx(al,{label:"",valueLabel:Ie,selectedValue:G,options:he,ariaLabel:"Selecionar velocidade de reprodução",onChange:Z,disabled:!q}),le.length>0?v.jsx(al,{label:"",valueLabel:ue,selectedValue:(D==null?void 0:D.value)??"auto",options:le,ariaLabel:"Selecionar qualidade do vídeo",onChange:ae}):null,v.jsx(al,{label:"",valueLabel:de,selectedValue:U,options:se,ariaLabel:"Selecionar zoom do vídeo",onChange:Q}),v.jsx(Y.IconButton,{className:qe.iconButton,onClick:te,"aria-label":"Fullscreen",children:J?v.jsx(Vt.FullscreenExit,{fontSize:"small"}):v.jsx(Vt.Fullscreen,{fontSize:"small"})})]})]})]})]})};pu.displayName="VideoPlayer";const Ik=ft(v.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),Ak=ft(v.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),Nk=ft(v.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"),_k=ft(v.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 z(){return z=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},z.apply(null,arguments)}function Ee(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 jk(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:rs(t.components[n].defaultProps,o)}function $k(e,t,n,o,r){const[i,a]=E.useState(()=>r&&n?n(e).matches:o?o(e).matches:t);return St(()=>{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 Lk={...E},Sy=Lk.useSyncExternalStore;function Vk(e,t,n,o,r){const i=E.useCallback(()=>t,[t]),a=E.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]=E.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 Sy(c,l,a)}function wy(e={}){const{themeId:t}=e;return function(o,r={}){let i=Lx();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}=jk({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=(Sy!==void 0?Vk:$k)(f,l,c,u,d);return process.env.NODE_ENV!=="production"&&E.useDebugValue({query:f,match:h}),h}}wy();const Cy=wy({themeId:qi}),yt=s.oneOfType([s.func,s.object]);function Kt(e,t,n){return typeof e=="function"?e(t,n):e}const Or=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),Fk=({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}},Mi=(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},us=({date:e,disableFuture:t,disablePast:n,maxDate:o,minDate:r,isDateDisabled:i,adapter:a,timezone:l})=>{const c=Mi(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},Bk=(e,t)=>e.isValid(t)?t:null,Sp=(e,t,n)=>t==null||!e.isValid(t)?n:t,zk=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),hu=(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},Ty=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),Wk=["year","month","day"],wp=e=>Wk.includes(e),mu=(e,{format:t,views:n},o)=>{if(t!=null)return t;const r=e.formats;return Or(n,["year"])?r.year:Or(n,["month"])?r.month:Or(n,["day"])?r.dayOfMonth:Or(n,["month","year"])?`${r.month} ${r.year}`:Or(n,["day","month"])?`${r.month} ${r.dayOfMonth}`:o?/en/.test(e.getCurrentLocaleCode())?r.normalDateWithWeekday:r.normalDate:r.keyboardDate},Uk=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(n,o))},Hk=["hours","minutes","seconds"],Yk=e=>Hk.includes(e),Cp=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),qk=(e,t)=>(n,o)=>e?t.isAfter(n,o):Cp(n,t)>Cp(o,t),fn={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Gk=e=>Math.max(...e.map(t=>fn[t.type]??1)),kr=(e,t,n)=>{if(t===fn.year)return e.startOfYear(n);if(t===fn.month)return e.startOfMonth(n);if(t===fn.day)return e.startOfDay(n);let o=n;return t<fn.minutes&&(o=e.setMinutes(o,0)),t<fn.seconds&&(o=e.setSeconds(o,0)),t<fn.milliseconds&&(o=e.setMilliseconds(o,0)),o},Kk=({props:e,adapter:t,granularity:n,timezone:o,getTodayDate:r})=>{let i=r?r():kr(t,n,Ty(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=kr(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=kr(t,n,e.maxDate));const a=qk(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=kr(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Mi(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=kr(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Mi(t,i,e.maxTime))),i},gu=(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}},sa=(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))},Py=(e,t,n,o)=>{switch(n){case"month":return hu(e,e.date(void 0,t)).map(r=>e.formatByString(r,o));case"weekDay":return sa(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[]}},Tp="s",Zk=["0","1","2","3","4","5","6","7","8","9"],Xk=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),Tp)==="0"?Zk:Array.from({length:10}).map((o,r)=>e.formatByString(e.setSeconds(t,r),Tp))},Ro=(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("")},yu=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),Pp=(e,t)=>{const n=Ro(e,t);return n!==" "&&!Number.isNaN(Number(n))},bu=(e,t)=>Number(e).toString().padStart(t,"0"),Ey=(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.'
|
|
95
113
|
This type of format is only supported for 'day' sections`].join(`
|
|
96
|
-
`));if(s.type==="day"&&s.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,s.format)}let i=t.toString();return s.hasLeadingZerosInInput&&(i=ka(i,s.maxLength)),Pa(i,r)},Ma=(e,t,n)=>{let r=e.value||e.placeholder;const s=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(zn(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!s&&r.length===1&&(r=`${r}`),t==="input-rtl"&&(r=`${r}`),r},vc=(e,t,n,r)=>{if(process.env.NODE_ENV!=="production"&&Ta(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),r)},V0=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,Xd=(e,t,n,r)=>{if(t!=="digit")return!1;const s=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&r==="YY"?!0:e.formatByString(e.setYear(s,1),r).startsWith("0");case"month":return e.formatByString(e.startOfYear(s),r).length>1;case"day":return e.formatByString(e.startOfMonth(s),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(s),r).length>1;case"hours":return e.formatByString(e.setHours(s,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(s,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(s,1),r).length>1;default:throw new Error("Invalid section type")}},B0=(e,t,n)=>{const r=t.some(c=>c.type==="day"),s=[],i=[];for(let c=0;c<t.length;c+=1){const u=t[c];r&&u.type==="weekDay"||(s.push(u.format),i.push(Ma(u,"non-input",n)))}const a=s.join(" "),l=i.join(" ");return e.parse(l,a)},z0=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),W0=(e,t,n)=>{const s=e.map(i=>{const a=Ma(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`${s}`:s},U0=(e,t,n)=>{const r=e.date(void 0,n),s=e.endOfYear(r),i=e.endOfDay(r),{maxDaysInMonth:a,longestMonth:l}=Ea(e,r).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:V0(e,c)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(s)+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=Ns(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 zn(e.formatByString(e.endOfDay(r),c),t)!==u.toString()?{minimum:1,maximum:Number(zn(e.formatByString(e.startOfDay(r),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 xc=!1;const Sc=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!xc){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 r=e.find(s=>!n.includes(s.type));r&&(console.warn(`MUI X: The field component you are using is not compatible with the "${r.type}" date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),xc=!0)}},H0=(e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{let s=e.formatByString(n,t.format);t.hasLeadingZerosInInput&&(s=ka(s,t.maxLength));const i=Ns(e,t.format),a=i.indexOf(s),c=i.indexOf(t.value)-a;return e.addDays(n,c)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const s=e.getHours(n)<12,i=e.getHours(r);return s&&i>=12?e.addHours(r,-12):!s&&i<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}},Cc={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},wc=(e,t,n,r,s)=>[...n].sort((i,a)=>Cc[i.type]-Cc[a.type]).reduce((i,a)=>!s||a.modified?H0(e,a,t,i):i,r),q0=()=>navigator.userAgent.toLowerCase().includes("android"),Y0=(e,t)=>{const n={};if(!t)return e.forEach((c,u)=>{const d=u===0?null:u-1,p=u===e.length-1?null:u+1;n[u]={leftIndex:d,rightIndex:p}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},s={};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)s[c]=l,r[l]=c,l-=1;i=a+1}return e.forEach((c,u)=>{const d=s[u],p=d===0?null:r[d-1],m=d===e.length-1?null:r[d+1];n[u]={leftIndex:p,rightIndex:m}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},Gi=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(r=>r.type===e);return n===-1?null:n}return e},G0=["value","referenceDate"],en={emptyValue:null,getTodayValue:Gd,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=re(e,G0);return r.adapter.isValid(t)?t:n??j0(r)},cleanValue:M0,areValuesEqual:R0,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)},K0={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:z0,getV6InputValueFromSections:W0,parseValueStr:(e,t,n)=>n(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,n)=>n,clearDateSections:e=>e.map(t=>C({},t,{value:""}))};function Z0(e){return Ie("MuiTypography",e)}Re("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const X0=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Q0=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:s,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${fe(t)}`,n&&"gutterBottom",r&&"noWrap",s&&"paragraph"]};return Ve(l,Z0,a)},J0=ye("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${fe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>C({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Ec={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},eS={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},tS=e=>eS[e]||e,wn=S.forwardRef(function(t,n){const r=Be({props:t,name:"MuiTypography"}),s=tS(r.color),i=dd(C({},r,{color:s})),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:p=!1,variant:m="body1",variantMapping:g=Ec}=i,h=re(i,X0),f=C({},i,{align:a,color:s,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:p,variant:m,variantMapping:g}),b=c||(p?"p":g[m]||Ec[m])||"span",x=Q0(f);return y.jsx(J0,C({as:b,ref:n,ownerState:f,className:me(x.root,l)},h))});process.env.NODE_ENV!=="production"&&(wn.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,component:o.elementType,gutterBottom:o.bool,noWrap:o.bool,paragraph:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),o.string]),variantMapping:o.object});function nt(e,t,n=void 0){const r={};for(const s in e){const i=e[s];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]))}r[s]=a}return r}const Oc=e=>e,nS=()=>{let e=Oc;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Oc}}},oS=nS(),rS={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 ct(e,t,n="Mui"){const r=rS[t];return r?`${n}-${r}`:`${oS.generate(e)}-${t}`}function ft(e,t,n="Mui"){const r={};return t.forEach(s=>{r[s]=ct(e,s,n)}),r}function sS(e){return ct("MuiPickersToolbar",e)}ft("MuiPickersToolbar",["root","title","content"]);const iS=S.createContext();process.env.NODE_ENV!=="production"&&(o.node,o.bool);const on=()=>{const e=S.useContext(iS);return e??!1},aS=["localeText"],ds=S.createContext(null);process.env.NODE_ENV!=="production"&&(ds.displayName="PickerAdapterContext");const $s=function(t){const{localeText:n}=t,r=re(t,aS),{adapter:s,localeText:i}=S.useContext(ds)??{adapter:void 0,localeText:void 0},a=se.useThemeProps({props:r,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:p,localeText:m}=a,g=S.useMemo(()=>C({},m,i,n),[m,i,n]),h=S.useMemo(()=>{if(!c)return s||null;const x=new c({locale:p,formats:u,instance:d});if(!x.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(`
|
|
97
|
-
`));return
|
|
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=bu(i,r.maxLength)),yu(i,o)},vu=(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(Ro(o,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&o.length===1&&(o=`${o}`),t==="input-rtl"&&(o=`${o}`),o},Ep=(e,t,n,o)=>{if(process.env.NODE_ENV!=="production"&&gu(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},Qk=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,My=(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")}},Jk=(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(vu(u,"non-input",n)))}const a=r.join(" "),l=i.join(" ");return e.parse(l,a)},eD=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),tD=(e,t,n)=>{const r=e.map(i=>{const a=vu(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`${r}`:r},nD=(e,t,n)=>{const o=e.date(void 0,n),r=e.endOfYear(o),i=e.endOfDay(o),{maxDaysInMonth:a,longestMonth:l}=hu(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:Qk(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=sa(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 Ro(e.formatByString(e.endOfDay(o),c),t)!==u.toString()?{minimum:1,maximum:Number(Ro(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 Mp=!1;const Op=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!Mp){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('", "')}"]\`.`),Mp=!0)}},oD=(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=bu(r,t.maxLength));const i=sa(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}},kp={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},Dp=(e,t,n,o,r)=>[...n].sort((i,a)=>kp[i.type]-kp[a.type]).reduce((i,a)=>!r||a.modified?oD(e,a,t,i):i,o),rD=()=>navigator.userAgent.toLowerCase().includes("android"),sD=(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]}},ic=(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},iD=["value","referenceDate"],vn={emptyValue:null,getTodayValue:Ty,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=Ee(e,iD);return o.adapter.isValid(t)?t:n??Kk(o)},cleanValue:Bk,areValuesEqual:zk,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)},aD={updateReferenceValue:(e,t,n)=>e.isValid(t)?t:n,getSectionsFromValue:(e,t)=>t(e),getV7HiddenInputValueFromSections:eD,getV6InputValueFromSections:tD,parseValueStr:(e,t,n)=>n(e.trim(),t),getDateFromSection:e=>e,getDateSectionsFromValue:e=>e,updateDateInValue:(e,t,n)=>n,clearDateSections:e=>e.map(t=>z({},t,{value:""}))};function lD(e){return typeof e.main=="string"}function cD(e,t=[]){if(!lD(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Bt(e=[]){return([,t])=>t&&cD(t,e)}function uD(e){return Te("MuiTypography",e)}Ce("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const dD={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},fD=LS(),pD=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:r,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${ce(t)}`,n&&"gutterBottom",o&&"noWrap",r&&"paragraph"]};return we(l,uD,a)},hD=ye("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]}})(Ye(({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(Bt()).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}}]}})),Rp={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},no=E.forwardRef(function(t,n){const{color:o,...r}=je({props:t,name:"MuiTypography"}),i=!dD[o],a=fD({...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=Rp,...g}=a,y={...a,align:l,color:o,className:c,component:u,gutterBottom:d,noWrap:f,paragraph:p,variant:h,variantMapping:m},b=u||(p?"p":m[h]||Rp[h])||"span",C=pD(y);return v.jsx(hD,{as:b,ref:n,className:ge(C.root,c),...g,ownerState:y,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...g.style}})});process.env.NODE_ENV!=="production"&&(no.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 mD(e){return Te("MuiPickersToolbar",e)}Ce("MuiPickersToolbar",["root","title","content"]);const gD=["localeText"],Oi=E.createContext(null);process.env.NODE_ENV!=="production"&&(Oi.displayName="PickerAdapterContext");const ia=function(t){const{localeText:n}=t,o=Ee(t,gD),{adapter:r,localeText:i}=E.useContext(Oi)??{adapter:void 0,localeText:void 0},a=ie.useThemeProps({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:c,dateFormats:u,dateLibInstance:d,adapterLocale:f,localeText:p}=a,h=E.useMemo(()=>z({},p,i,n),[p,i,n]),m=E.useMemo(()=>{if(!c)return r||null;const b=new c({locale:f,formats:u,instance:d});if(!b.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 b},[c,f,u,d,r]),g=E.useMemo(()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null,[m]),y=E.useMemo(()=>({utils:m,adapter:m,defaultDates:g,localeText:h}),[g,m,h]);return v.jsx(Oi.Provider,{value:y,children:l})};process.env.NODE_ENV!=="production"&&(ia.displayName="LocalizationProvider");process.env.NODE_ENV!=="production"&&(ia.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 xu=E.createContext(()=>!0);process.env.NODE_ENV!=="production"&&(xu.displayName="IsValidValueContext");function yD(){return E.useContext(xu)}const Su=E.createContext(null);process.env.NODE_ENV!=="production"&&(Su.displayName="PickerFieldPrivateContext");function Oy(){return E.useContext(Su)}const aa=E.createContext(null);process.env.NODE_ENV!=="production"&&(aa.displayName="PickerContext");const br=()=>{const e=E.useContext(aa);if(e==null)throw new Error("MUI X: The `usePickerContext` hook can only be called inside the context of a Picker component");return e},wu=E.createContext(null);process.env.NODE_ENV!=="production"&&(wu.displayName="PickerActionsContext");const Cu=E.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"&&(Cu.displayName="PickerPrivateContext");function ky(e){const{contextValue:t,actionsContextValue:n,privateContextValue:o,fieldPrivateContextValue:r,isValidContextValue:i,localeText:a,children:l}=e;return v.jsx(aa.Provider,{value:t,children:v.jsx(wu.Provider,{value:n,children:v.jsx(Cu.Provider,{value:o,children:v.jsx(Su.Provider,{value:r,children:v.jsx(xu.Provider,{value:i,children:v.jsx(ia,{localeText:a,children:l})})})})})})}const Et=()=>E.useContext(Cu);function Dy(){const{ownerState:e}=Et(),t=an();return E.useMemo(()=>z({},e,{toolbarDirection:t?"rtl":"ltr"}),[e,t])}const bD=["children","className","classes","toolbarTitle","hidden","titleId","classes","landscapeDirection"],vD=e=>we({root:["root"],title:["title"],content:["content"]},mD,e),xD=ie.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"}}]})),SD=ie.styled("div",{name:"MuiPickersToolbar",slot:"Content",shouldForwardProp:e=>Hn(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"}}]}),Ry=E.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiPickersToolbar"}),{children:r,className:i,classes:a,toolbarTitle:l,hidden:c,titleId:u,landscapeDirection:d}=o,f=Ee(o,bD),p=Dy(),h=vD(a);return c?null:v.jsxs(xD,z({ref:n,className:ge(h.root,i),ownerState:p},f,{children:[v.jsx(no,{color:"text.secondary",variant:"overline",id:u,className:h.title,children:l}),v.jsx(SD,{className:h.content,ownerState:p,landscapeDirection:d,children:r})]}))});process.env.NODE_ENV!=="production"&&(Ry.displayName="PickersToolbar");const wD=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:z({},e)}}}}),Iy={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"},CD=Iy;wD(Iy);const Tu=()=>{const e=E.useContext(Oi);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(`
|
|
98
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(`
|
|
99
|
-
`));const t=
|
|
100
|
-
`));return e};function ES(e){return ct("MuiDatePickerToolbar",e)}ft("MuiDatePickerToolbar",["root","title"]);const OS=["toolbarFormat","toolbarPlaceholder","className","classes"],TS=e=>nt({root:["root"],title:["title"]},ES,e),PS=se.styled(tf,{name:"MuiDatePickerToolbar",slot:"Root"})({}),kS=se.styled(wn,{name:"MuiDatePickerToolbar",slot:"Title"})({variants:[{props:{pickerOrientation:"landscape"},style:{margin:"auto 16px auto auto"}}]}),Aa=S.forwardRef(function(t,n){const r=se.useThemeProps({props:t,name:"MuiDatePickerToolbar"}),{toolbarFormat:s,toolbarPlaceholder:i="––",className:a,classes:l}=r,c=re(r,OS),u=He(),{value:d,views:p,orientation:m}=ko(),g=En(),h=ef(),f=TS(l),b=S.useMemo(()=>{if(!u.isValid(d))return i;const x=Oa(u,{format:s,views:p},!0);return u.formatByString(d,x)},[d,s,i,u,p]);return y.jsx(PS,C({ref:n,toolbarTitle:g.datePickerToolbarTitle,className:me(f.root,a)},c,{children:y.jsx(kS,{variant:"h4",align:m==="landscape"?"left":"center",ownerState:h,className:f.title,children:b})}))});process.env.NODE_ENV!=="production"&&(Aa.displayName="DatePickerToolbar");process.env.NODE_ENV!=="production"&&(Aa.propTypes={classes:o.object,className:o.string,hidden:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleId:o.string,toolbarFormat:o.string,toolbarPlaceholder:o.node});const wr=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:s,shouldDisableMonth:i,shouldDisableYear:a,disablePast:l,disableFuture:c,minDate:u,maxDate:d}=e,p=r.date(void 0,n);switch(!0){case!r.isValid(t):return"invalidDate";case!!(s&&s(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(c&&r.isAfterDay(t,p)):return"disableFuture";case!!(l&&r.isBeforeDay(t,p)):return"disablePast";case!!(u&&r.isBeforeDay(t,u)):return"minDate";case!!(d&&r.isAfterDay(t,d)):return"maxDate";default:return null}};wr.valueManager=en;const tn=typeof window<"u"?S.useLayoutEffect:S.useEffect;function ge(e){const t=S.useRef(e);return tn(()=>{t.current=e}),S.useRef((...n)=>(0,t.current)(...n)).current}function af(e){const{props:t,validator:n,value:r,timezone:s,onError:i}=e,a=He(),l=S.useRef(n.valueManager.defaultErrorState),c=n({adapter:a,value:r,timezone:s,props:t}),u=n.valueManager.hasError(c);S.useEffect(()=>{i&&!n.valueManager.isSameError(c,l.current)&&i(c,r),l.current=c},[n,i,c,r]);const d=ge(p=>n({adapter:a,value:p,timezone:s,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}const MS=()=>Na().defaultDates,js=e=>{const t=He(),n=S.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function RS(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return S.useMemo(()=>({valueType:"date",validator:wr,internal_valueManager:en,internal_fieldValueManager:K0,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:IS,internal_useOpenPickerButtonAriaLabel:DS}),[t])}function DS(e){const t=He(),n=En();return S.useMemo(()=>{const r=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(r)},[e,n,t])}function IS(e){const t=He(),n=Er(e);return S.useMemo(()=>C({},e,n,{format:e.format??t.formats.keyboardDate}),[e,n,t])}function Er(e){const t=He(),n=MS();return S.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,minDate:mc(t,e.minDate,n.minDate),maxDate:mc(t,e.maxDate,n.maxDate)}),[e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}function lf(e,t){const n=se.useThemeProps({props:e,name:t}),r=Er(n),s=S.useMemo(()=>{var i;return((i=n.localeText)==null?void 0:i.toolbarTitle)==null?n.localeText:C({},n.localeText,{datePickerToolbarTitle:n.localeText.toolbarTitle})},[n.localeText]);return C({},n,r,{localeText:s},k0({views:n.views,openTo:n.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{slots:C({toolbar:Aa},n.slots)})}function Ct(...e){const t=S.useRef(void 0),n=S.useCallback(r=>{const s=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(r);return typeof l=="function"?l:()=>{a(null)}}return i.current=r,()=>{i.current=null}});return()=>{s.forEach(i=>i==null?void 0:i())}},e);return S.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function _S(e){return typeof e=="string"}function NS(e,t,n){return e===void 0||_S(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function $S(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Pc(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 AS(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:s,className:i}=e;if(!t){const g=me(n==null?void 0:n.className,i,s==null?void 0:s.className,r==null?void 0:r.className),h={...n==null?void 0:n.style,...s==null?void 0:s.style,...r==null?void 0:r.style},f={...n,...s,...r};return g.length>0&&(f.className=g),Object.keys(h).length>0&&(f.style=h),{props:f,internalRef:void 0}}const a=$S({...s,...r}),l=Pc(r),c=Pc(s),u=t(a),d=me(u==null?void 0:u.className,n==null?void 0:n.className,i,s==null?void 0:s.className,r==null?void 0:r.className),p={...u==null?void 0:u.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...r==null?void 0:r.style},m={...u,...n,...c,...l};return d.length>0&&(m.className=d),Object.keys(p).length>0&&(m.style=p),{props:m,internalRef:u.ref}}function Fe(e){var p;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:s=!1,...i}=e,a=s?{}:Ut(n,r),{props:l,internalRef:c}=AS({...i,externalSlotProps:a}),u=Ct(c,a==null?void 0:a.ref,(p=e.additionalProps)==null?void 0:p.ref);return NS(t,{...l,ref:u},r)}function Xi(e,t){return Xi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Xi(e,t)}function ja(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xi(e,t)}function jS(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function LS(e,t){e.classList?e.classList.add(t):jS(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function kc(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function FS(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=kc(e.className,t):e.setAttribute("class",kc(e.className&&e.className.baseVal||"",t))}const Mc={disabled:!1};var VS=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.shape({enter:o.number,exit:o.number,appear:o.number}).isRequired]):null,BS=process.env.NODE_ENV!=="production"?o.oneOfType([o.string,o.shape({enter:o.string,exit:o.string,active:o.string}),o.shape({enter:o.string,enterDone:o.string,enterActive:o.string,exit:o.string,exitDone:o.string,exitActive:o.string})]):null;const fs=z.createContext(null);var cf=function(t){return t.scrollTop},qo="unmounted",_n="exited",Nn="entering",eo="entered",Qi="exiting",Ft=function(e){ja(t,e);function t(r,s){var i;i=e.call(this,r,s)||this;var a=s,l=a&&!a.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?l?(c=_n,i.appearStatus=Nn):c=eo:r.unmountOnExit||r.mountOnEnter?c=qo:c=_n,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(s,i){var a=s.in;return a&&i.status===qo?{status:_n}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var i=null;if(s!==this.props){var a=this.state.status;this.props.in?a!==Nn&&a!==eo&&(i=Nn):(a===Nn||a===eo)&&(i=Qi)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,i,a,l;return i=a=l=s,s!=null&&typeof s!="number"&&(i=s.exit,a=s.enter,l=s.appear!==void 0?s.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(s,i){if(s===void 0&&(s=!1),i!==null)if(this.cancelNextCallback(),i===Nn){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:ro.findDOMNode(this);a&&cf(a)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===_n&&this.setState({status:qo})},n.performEnter=function(s){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:s,c=this.props.nodeRef?[l]:[ro.findDOMNode(this),l],u=c[0],d=c[1],p=this.getTimeouts(),m=l?p.appear:p.enter;if(!s&&!a||Mc.disabled){this.safeSetState({status:eo},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:Nn},function(){i.props.onEntering(u,d),i.onTransitionEnd(m,function(){i.safeSetState({status:eo},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var s=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:ro.findDOMNode(this);if(!i||Mc.disabled){this.safeSetState({status:_n},function(){s.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Qi},function(){s.props.onExiting(l),s.onTransitionEnd(a.exit,function(){s.safeSetState({status:_n},function(){s.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,i){i=this.setNextCallback(i),this.setState(s,i)},n.setNextCallback=function(s){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,s(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(s,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:ro.findDOMNode(this),l=s==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)}s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===qo)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=re(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return z.createElement(fs.Provider,{value:null},typeof a=="function"?a(s,l):z.cloneElement(z.Children.only(a),l))},t}(z.Component);Ft.contextType=fs;Ft.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:o.shape({current:typeof Element>"u"?o.any:function(e,t,n,r,s,i){var a=e[t];return o.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,s,i)}}),children:o.oneOfType([o.func.isRequired,o.element.isRequired]).isRequired,in:o.bool,mountOnEnter:o.bool,unmountOnExit:o.bool,appear:o.bool,enter:o.bool,exit:o.bool,timeout:function(t){var n=VS;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,s=new Array(r>1?r-1:0),i=1;i<r;i++)s[i-1]=arguments[i];return n.apply(void 0,[t].concat(s))},addEndListener:o.func,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}:{};function Qn(){}Ft.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Qn,onEntering:Qn,onEntered:Qn,onExit:Qn,onExiting:Qn,onExited:Qn};Ft.UNMOUNTED=qo;Ft.EXITED=_n;Ft.ENTERING=Nn;Ft.ENTERED=eo;Ft.EXITING=Qi;var zS=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return LS(t,r)})},Ci=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return FS(t,r)})},La=function(e){ja(t,e);function t(){for(var r,s=arguments.length,i=new Array(s),a=0;a<s;a++)i[a]=arguments[a];return r=e.call.apply(e,[this].concat(i))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(l,c){var u=r.resolveArguments(l,c),d=u[0],p=u[1];r.removeClasses(d,"exit"),r.addClass(d,p?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(l,c)},r.onEntering=function(l,c){var u=r.resolveArguments(l,c),d=u[0],p=u[1],m=p?"appear":"enter";r.addClass(d,m,"active"),r.props.onEntering&&r.props.onEntering(l,c)},r.onEntered=function(l,c){var u=r.resolveArguments(l,c),d=u[0],p=u[1],m=p?"appear":"enter";r.removeClasses(d,m),r.addClass(d,m,"done"),r.props.onEntered&&r.props.onEntered(l,c)},r.onExit=function(l){var c=r.resolveArguments(l),u=c[0];r.removeClasses(u,"appear"),r.removeClasses(u,"enter"),r.addClass(u,"exit","base"),r.props.onExit&&r.props.onExit(l)},r.onExiting=function(l){var c=r.resolveArguments(l),u=c[0];r.addClass(u,"exit","active"),r.props.onExiting&&r.props.onExiting(l)},r.onExited=function(l){var c=r.resolveArguments(l),u=c[0];r.removeClasses(u,"exit"),r.addClass(u,"exit","done"),r.props.onExited&&r.props.onExited(l)},r.resolveArguments=function(l,c){return r.props.nodeRef?[r.props.nodeRef.current,l]:[l,c]},r.getClassNames=function(l){var c=r.props.classNames,u=typeof c=="string",d=u&&c?c+"-":"",p=u?""+d+l:c[l],m=u?p+"-active":c[l+"Active"],g=u?p+"-done":c[l+"Done"];return{baseClassName:p,activeClassName:m,doneClassName:g}},r}var n=t.prototype;return n.addClass=function(s,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"&&s&&cf(s),l&&(this.appliedClasses[i][a]=l,zS(s,l))},n.removeClasses=function(s,i){var a=this.appliedClasses[i],l=a.base,c=a.active,u=a.done;this.appliedClasses[i]={},l&&Ci(s,l),c&&Ci(s,c),u&&Ci(s,u)},n.render=function(){var s=this.props;s.classNames;var i=re(s,["classNames"]);return z.createElement(Ft,C({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(z.Component);La.defaultProps={classNames:""};La.propTypes=process.env.NODE_ENV!=="production"?C({},Ft.propTypes,{classNames:BS,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}):{};function WS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fa(e,t){var n=function(i){return t&&z.isValidElement(i)?t(i):i},r=Object.create(null);return e&&z.Children.map(e,function(s){return s}).forEach(function(s){r[s.key]=n(s)}),r}function US(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),s=[];for(var i in e)i in t?s.length&&(r[i]=s,s=[]):s.push(i);var a,l={};for(var c in t){if(r[c])for(a=0;a<r[c].length;a++){var u=r[c][a];l[r[c][a]]=n(u)}l[c]=n(c)}for(a=0;a<s.length;a++)l[s[a]]=n(s[a]);return l}function An(e,t,n){return n[t]!=null?n[t]:e.props[t]}function HS(e,t){return Fa(e.children,function(n){return z.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:An(n,"appear",e),enter:An(n,"enter",e),exit:An(n,"exit",e)})})}function qS(e,t,n){var r=Fa(e.children),s=US(t,r);return Object.keys(s).forEach(function(i){var a=s[i];if(z.isValidElement(a)){var l=i in t,c=i in r,u=t[i],d=z.isValidElement(u)&&!u.props.in;c&&(!l||d)?s[i]=z.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:An(a,"exit",e),enter:An(a,"enter",e)}):!c&&l&&!d?s[i]=z.cloneElement(a,{in:!1}):c&&l&&z.isValidElement(u)&&(s[i]=z.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:An(a,"exit",e),enter:An(a,"enter",e)}))}}),s}var YS=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},GS={component:"div",childFactory:function(t){return t}},Or=function(e){ja(t,e);function t(r,s){var i;i=e.call(this,r,s)||this;var a=i.handleExited.bind(WS(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(s,i){var a=i.children,l=i.handleExited,c=i.firstRender;return{children:c?HS(s,l):qS(s,a,l),firstRender:!1}},n.handleExited=function(s,i){var a=Fa(this.props.children);s.key in a||(s.props.onExited&&s.props.onExited(i),this.mounted&&this.setState(function(l){var c=C({},l.children);return delete c[s.key],{children:c}}))},n.render=function(){var s=this.props,i=s.component,a=s.childFactory,l=re(s,["component","childFactory"]),c=this.state.contextValue,u=YS(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?z.createElement(fs.Provider,{value:c},u):z.createElement(fs.Provider,{value:c},z.createElement(i,l,u))},t}(z.Component);Or.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{};Or.defaultProps=GS;function Ls(){const e=Hn.useTheme(ma);return process.env.NODE_ENV!=="production"&&S.useDebugValue(e),e[ha]||e}const uf=e=>e.scrollTop;function ps(e,t){var n,r;const{timeout:s,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof s=="number"?s:s[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}const KS=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ji(e){return`scale(${e}, ${e**2})`}const ZS={entering:{opacity:1,transform:Ji(1)},entered:{opacity:1,transform:"none"}},wi=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Fs=S.forwardRef(function(t,n){const{addEndListener:r,appear:s=!0,children:i,easing:a,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:m,onExiting:g,style:h,timeout:f="auto",TransitionComponent:b=Ft}=t,x=re(t,KS),O=Fu(),v=S.useRef(),w=Ls(),E=S.useRef(null),T=pt(E,hr(i),n),P=A=>I=>{if(A){const N=E.current;I===void 0?A(N):A(N,I)}},V=P(d),D=P((A,I)=>{uf(A);const{duration:N,delay:_,easing:B}=ps({style:h,timeout:f,easing:a},{mode:"enter"});let R;f==="auto"?(R=w.transitions.getAutoHeightDuration(A.clientHeight),v.current=R):R=N,A.style.transition=[w.transitions.create("opacity",{duration:R,delay:_}),w.transitions.create("transform",{duration:wi?R:R*.666,delay:_,easing:B})].join(","),c&&c(A,I)}),L=P(u),$=P(g),M=P(A=>{const{duration:I,delay:N,easing:_}=ps({style:h,timeout:f,easing:a},{mode:"exit"});let B;f==="auto"?(B=w.transitions.getAutoHeightDuration(A.clientHeight),v.current=B):B=I,A.style.transition=[w.transitions.create("opacity",{duration:B,delay:N}),w.transitions.create("transform",{duration:wi?B:B*.666,delay:wi?N:N||B*.333,easing:_})].join(","),A.style.opacity=0,A.style.transform=Ji(.75),p&&p(A)}),F=P(m),j=A=>{f==="auto"&&O.start(v.current||0,A),r&&r(E.current,A)};return y.jsx(b,C({appear:s,in:l,nodeRef:E,onEnter:D,onEntered:L,onEntering:V,onExit:M,onExited:F,onExiting:$,addEndListener:j,timeout:f==="auto"?null:f},x,{children:(A,I)=>S.cloneElement(i,C({style:C({opacity:0,transform:Ji(.75),visibility:A==="exited"&&!l?"hidden":void 0},ZS[A],h,i.props.style),ref:T},I))}))});process.env.NODE_ENV!=="production"&&(Fs.propTypes={addEndListener:o.func,appear:o.bool,children:mr.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});Fs.muiSupportAuto=!0;const XS=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],QS={entering:{opacity:1},entered:{opacity:1}},qn=S.forwardRef(function(t,n){const r=Ls(),s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:c,in:u,onEnter:d,onEntered:p,onEntering:m,onExit:g,onExited:h,onExiting:f,style:b,timeout:x=s,TransitionComponent:O=Ft}=t,v=re(t,XS),w=S.useRef(null),E=pt(w,hr(l),n),T=j=>A=>{if(j){const I=w.current;A===void 0?j(I):j(I,A)}},P=T(m),V=T((j,A)=>{uf(j);const I=ps({style:b,timeout:x,easing:c},{mode:"enter"});j.style.webkitTransition=r.transitions.create("opacity",I),j.style.transition=r.transitions.create("opacity",I),d&&d(j,A)}),D=T(p),L=T(f),$=T(j=>{const A=ps({style:b,timeout:x,easing:c},{mode:"exit"});j.style.webkitTransition=r.transitions.create("opacity",A),j.style.transition=r.transitions.create("opacity",A),g&&g(j)}),M=T(h),F=j=>{i&&i(w.current,j)};return y.jsx(O,C({appear:a,in:u,nodeRef:w,onEnter:V,onEntered:D,onEntering:P,onExit:$,onExited:M,onExiting:L,addEndListener:F,timeout:x},v,{children:(j,A)=>S.cloneElement(l,C({style:C({opacity:0,visibility:j==="exited"&&!u?"hidden":void 0},QS[j],b,l.props.style),ref:E},A))}))});process.env.NODE_ENV!=="production"&&(qn.propTypes={addEndListener:o.func,appear:o.bool,children:mr.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});const Rc=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function JS(e){return Ie("MuiPaper",e)}Re("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 eC=["className","component","elevation","square","variant"],tC=e=>{const{square:t,elevation:n,variant:r,classes:s}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ve(i,JS,s)},nC=ye("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}`]]}})(({theme:e,ownerState:t})=>{var n;return C({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&C({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${tt("#fff",Rc(t.elevation))}, ${tt("#fff",Rc(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Tr=S.forwardRef(function(t,n){const r=Be({props:t,name:"MuiPaper"}),{className:s,component:i="div",elevation:a=1,square:l=!1,variant:c="elevation"}=r,u=re(r,eC),d=C({},r,{component:i,elevation:a,square:l,variant:c}),p=tC(d);return process.env.NODE_ENV!=="production"&&Ls().shadows[a]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
|
|
101
|
-
`)),y.jsx(nC,C({as:i,ownerState:d,className:me(p.root,s),ref:n},u))});process.env.NODE_ENV!=="production"&&(Tr.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,elevation:Sn(Wu,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:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["elevation","outlined"]),o.string])});var Va={};Object.defineProperty(Va,"__esModule",{value:!0});var df=Va.default=void 0,oC=sC(z),rC=rd;function ff(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(ff=function(r){return r?n:t})(e)}function sC(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=ff(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=s?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function iC(e){return Object.keys(e).length===0}function aC(e=null){const t=oC.useContext(rC.ThemeContext);return!t||iC(t)?e:t}df=Va.default=aC;var wt="top",At="bottom",jt="right",Et="left",Ba="auto",Pr=[wt,At,jt,Et],bo="start",lr="end",lC="clippingParents",pf="viewport",Fo="popper",cC="reference",Dc=Pr.reduce(function(e,t){return e.concat([t+"-"+bo,t+"-"+lr])},[]),mf=[].concat(Pr,[Ba]).reduce(function(e,t){return e.concat([t,t+"-"+bo,t+"-"+lr])},[]),uC="beforeRead",dC="read",fC="afterRead",pC="beforeMain",mC="main",hC="afterMain",gC="beforeWrite",bC="write",yC="afterWrite",vC=[uC,dC,fC,pC,mC,hC,gC,bC,yC];function nn(e){return e?(e.nodeName||"").toLowerCase():null}function Mt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wn(e){var t=Mt(e).Element;return e instanceof t||e instanceof Element}function Nt(e){var t=Mt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function za(e){if(typeof ShadowRoot>"u")return!1;var t=Mt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function xC(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},s=t.attributes[n]||{},i=t.elements[n];!Nt(i)||!nn(i)||(Object.assign(i.style,r),Object.keys(s).forEach(function(a){var l=s[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function SC(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var s=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(c,u){return c[u]="",c},{});!Nt(s)||!nn(s)||(Object.assign(s.style,l),Object.keys(i).forEach(function(c){s.removeAttribute(c)}))})}}const CC={name:"applyStyles",enabled:!0,phase:"write",fn:xC,effect:SC,requires:["computeStyles"]};function Jt(e){return e.split("-")[0]}var jn=Math.max,ms=Math.min,yo=Math.round;function ea(){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 hf(){return!/^((?!chrome|android).)*safari/i.test(ea())}function vo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),s=1,i=1;t&&Nt(e)&&(s=e.offsetWidth>0&&yo(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&yo(r.height)/e.offsetHeight||1);var a=Wn(e)?Mt(e):window,l=a.visualViewport,c=!hf()&&n,u=(r.left+(c&&l?l.offsetLeft:0))/s,d=(r.top+(c&&l?l.offsetTop:0))/i,p=r.width/s,m=r.height/i;return{width:p,height:m,top:d,right:u+p,bottom:d+m,left:u,x:u,y:d}}function Wa(e){var t=vo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function gf(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&za(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function un(e){return Mt(e).getComputedStyle(e)}function wC(e){return["table","td","th"].indexOf(nn(e))>=0}function On(e){return((Wn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Vs(e){return nn(e)==="html"?e:e.assignedSlot||e.parentNode||(za(e)?e.host:null)||On(e)}function Ic(e){return!Nt(e)||un(e).position==="fixed"?null:e.offsetParent}function EC(e){var t=/firefox/i.test(ea()),n=/Trident/i.test(ea());if(n&&Nt(e)){var r=un(e);if(r.position==="fixed")return null}var s=Vs(e);for(za(s)&&(s=s.host);Nt(s)&&["html","body"].indexOf(nn(s))<0;){var i=un(s);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 s;s=s.parentNode}return null}function kr(e){for(var t=Mt(e),n=Ic(e);n&&wC(n)&&un(n).position==="static";)n=Ic(n);return n&&(nn(n)==="html"||nn(n)==="body"&&un(n).position==="static")?t:n||EC(e)||t}function Ua(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ko(e,t,n){return jn(e,ms(t,n))}function OC(e,t,n){var r=Ko(e,t,n);return r>n?n:r}function bf(){return{top:0,right:0,bottom:0,left:0}}function yf(e){return Object.assign({},bf(),e)}function vf(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var TC=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,yf(typeof t!="number"?t:vf(t,Pr))};function PC(e){var t,n=e.state,r=e.name,s=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Jt(n.placement),c=Ua(l),u=[Et,jt].indexOf(l)>=0,d=u?"height":"width";if(!(!i||!a)){var p=TC(s.padding,n),m=Wa(i),g=c==="y"?wt:Et,h=c==="y"?At:jt,f=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],b=a[c]-n.rects.reference[c],x=kr(i),O=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,v=f/2-b/2,w=p[g],E=O-m[d]-p[h],T=O/2-m[d]/2+v,P=Ko(w,T,E),V=c;n.modifiersData[r]=(t={},t[V]=P,t.centerOffset=P-T,t)}}function kC(e){var t=e.state,n=e.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||gf(t.elements.popper,s)&&(t.elements.arrow=s))}const MC={name:"arrow",enabled:!0,phase:"main",fn:PC,effect:kC,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xo(e){return e.split("-")[1]}var RC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function DC(e,t){var n=e.x,r=e.y,s=t.devicePixelRatio||1;return{x:yo(n*s)/s||0,y:yo(r*s)/s||0}}function _c(e){var t,n=e.popper,r=e.popperRect,s=e.placement,i=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,p=e.isFixed,m=a.x,g=m===void 0?0:m,h=a.y,f=h===void 0?0:h,b=typeof d=="function"?d({x:g,y:f}):{x:g,y:f};g=b.x,f=b.y;var x=a.hasOwnProperty("x"),O=a.hasOwnProperty("y"),v=Et,w=wt,E=window;if(u){var T=kr(n),P="clientHeight",V="clientWidth";if(T===Mt(n)&&(T=On(n),un(T).position!=="static"&&l==="absolute"&&(P="scrollHeight",V="scrollWidth")),T=T,s===wt||(s===Et||s===jt)&&i===lr){w=At;var D=p&&T===E&&E.visualViewport?E.visualViewport.height:T[P];f-=D-r.height,f*=c?1:-1}if(s===Et||(s===wt||s===At)&&i===lr){v=jt;var L=p&&T===E&&E.visualViewport?E.visualViewport.width:T[V];g-=L-r.width,g*=c?1:-1}}var $=Object.assign({position:l},u&&RC),M=d===!0?DC({x:g,y:f},Mt(n)):{x:g,y:f};if(g=M.x,f=M.y,c){var F;return Object.assign({},$,(F={},F[w]=O?"0":"",F[v]=x?"0":"",F.transform=(E.devicePixelRatio||1)<=1?"translate("+g+"px, "+f+"px)":"translate3d("+g+"px, "+f+"px, 0)",F))}return Object.assign({},$,(t={},t[w]=O?f+"px":"",t[v]=x?g+"px":"",t.transform="",t))}function IC(e){var t=e.state,n=e.options,r=n.gpuAcceleration,s=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:Jt(t.placement),variation:xo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,_c(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,_c(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 _C={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:IC,data:{}};var Fr={passive:!0};function NC(e){var t=e.state,n=e.instance,r=e.options,s=r.scroll,i=s===void 0?!0:s,a=r.resize,l=a===void 0?!0:a,c=Mt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,Fr)}),l&&c.addEventListener("resize",n.update,Fr),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Fr)}),l&&c.removeEventListener("resize",n.update,Fr)}}const $C={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:NC,data:{}};var AC={left:"right",right:"left",bottom:"top",top:"bottom"};function Xr(e){return e.replace(/left|right|bottom|top/g,function(t){return AC[t]})}var jC={start:"end",end:"start"};function Nc(e){return e.replace(/start|end/g,function(t){return jC[t]})}function Ha(e){var t=Mt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function qa(e){return vo(On(e)).left+Ha(e).scrollLeft}function LC(e,t){var n=Mt(e),r=On(e),s=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(s){i=s.width,a=s.height;var u=hf();(u||!u&&t==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}return{width:i,height:a,x:l+qa(e),y:c}}function FC(e){var t,n=On(e),r=Ha(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=jn(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=jn(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),l=-r.scrollLeft+qa(e),c=-r.scrollTop;return un(s||n).direction==="rtl"&&(l+=jn(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}function Ya(e){var t=un(e),n=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function xf(e){return["html","body","#document"].indexOf(nn(e))>=0?e.ownerDocument.body:Nt(e)&&Ya(e)?e:xf(Vs(e))}function Zo(e,t){var n;t===void 0&&(t=[]);var r=xf(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),i=Mt(r),a=s?[i].concat(i.visualViewport||[],Ya(r)?r:[]):r,l=t.concat(a);return s?l:l.concat(Zo(Vs(a)))}function ta(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function VC(e,t){var n=vo(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 $c(e,t,n){return t===pf?ta(LC(e,n)):Wn(t)?VC(t,n):ta(FC(On(e)))}function BC(e){var t=Zo(Vs(e)),n=["absolute","fixed"].indexOf(un(e).position)>=0,r=n&&Nt(e)?kr(e):e;return Wn(r)?t.filter(function(s){return Wn(s)&&gf(s,r)&&nn(s)!=="body"}):[]}function zC(e,t,n,r){var s=t==="clippingParents"?BC(e):[].concat(t),i=[].concat(s,[n]),a=i[0],l=i.reduce(function(c,u){var d=$c(e,u,r);return c.top=jn(d.top,c.top),c.right=ms(d.right,c.right),c.bottom=ms(d.bottom,c.bottom),c.left=jn(d.left,c.left),c},$c(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Sf(e){var t=e.reference,n=e.element,r=e.placement,s=r?Jt(r):null,i=r?xo(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(s){case wt:c={x:a,y:t.y-n.height};break;case At:c={x:a,y:t.y+t.height};break;case jt:c={x:t.x+t.width,y:l};break;case Et:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=s?Ua(s):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case bo:c[u]=c[u]-(t[d]/2-n[d]/2);break;case lr:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function cr(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?lC:l,u=n.rootBoundary,d=u===void 0?pf:u,p=n.elementContext,m=p===void 0?Fo:p,g=n.altBoundary,h=g===void 0?!1:g,f=n.padding,b=f===void 0?0:f,x=yf(typeof b!="number"?b:vf(b,Pr)),O=m===Fo?cC:Fo,v=e.rects.popper,w=e.elements[h?O:m],E=zC(Wn(w)?w:w.contextElement||On(e.elements.popper),c,d,a),T=vo(e.elements.reference),P=Sf({reference:T,element:v,placement:s}),V=ta(Object.assign({},v,P)),D=m===Fo?V:T,L={top:E.top-D.top+x.top,bottom:D.bottom-E.bottom+x.bottom,left:E.left-D.left+x.left,right:D.right-E.right+x.right},$=e.modifiersData.offset;if(m===Fo&&$){var M=$[s];Object.keys(L).forEach(function(F){var j=[jt,At].indexOf(F)>=0?1:-1,A=[wt,At].indexOf(F)>=0?"y":"x";L[F]+=M[A]*j})}return L}function WC(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?mf:c,d=xo(r),p=d?l?Dc:Dc.filter(function(h){return xo(h)===d}):Pr,m=p.filter(function(h){return u.indexOf(h)>=0});m.length===0&&(m=p);var g=m.reduce(function(h,f){return h[f]=cr(e,{placement:f,boundary:s,rootBoundary:i,padding:a})[Jt(f)],h},{});return Object.keys(g).sort(function(h,f){return g[h]-g[f]})}function UC(e){if(Jt(e)===Ba)return[];var t=Xr(e);return[Nc(e),t,Nc(t)]}function HC(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var s=n.mainAxis,i=s===void 0?!0:s,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,p=n.rootBoundary,m=n.altBoundary,g=n.flipVariations,h=g===void 0?!0:g,f=n.allowedAutoPlacements,b=t.options.placement,x=Jt(b),O=x===b,v=c||(O||!h?[Xr(b)]:UC(b)),w=[b].concat(v).reduce(function(U,Y){return U.concat(Jt(Y)===Ba?WC(t,{placement:Y,boundary:d,rootBoundary:p,padding:u,flipVariations:h,allowedAutoPlacements:f}):Y)},[]),E=t.rects.reference,T=t.rects.popper,P=new Map,V=!0,D=w[0],L=0;L<w.length;L++){var $=w[L],M=Jt($),F=xo($)===bo,j=[wt,At].indexOf(M)>=0,A=j?"width":"height",I=cr(t,{placement:$,boundary:d,rootBoundary:p,altBoundary:m,padding:u}),N=j?F?jt:Et:F?At:wt;E[A]>T[A]&&(N=Xr(N));var _=Xr(N),B=[];if(i&&B.push(I[M]<=0),l&&B.push(I[N]<=0,I[_]<=0),B.every(function(U){return U})){D=$,V=!1;break}P.set($,B)}if(V)for(var R=h?3:1,k=function(Y){var H=w.find(function(Z){var J=P.get(Z);if(J)return J.slice(0,Y).every(function(ee){return ee})});if(H)return D=H,"break"},W=R;W>0;W--){var G=k(W);if(G==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}const qC={name:"flip",enabled:!0,phase:"main",fn:HC,requiresIfExists:["offset"],data:{_skip:!1}};function Ac(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 jc(e){return[wt,jt,At,Et].some(function(t){return e[t]>=0})}function YC(e){var t=e.state,n=e.name,r=t.rects.reference,s=t.rects.popper,i=t.modifiersData.preventOverflow,a=cr(t,{elementContext:"reference"}),l=cr(t,{altBoundary:!0}),c=Ac(a,r),u=Ac(l,s,i),d=jc(c),p=jc(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}const GC={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:YC};function KC(e,t,n){var r=Jt(e),s=[Et,wt].indexOf(r)>=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)*s,[Et,jt].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function ZC(e){var t=e.state,n=e.options,r=e.name,s=n.offset,i=s===void 0?[0,0]:s,a=mf.reduce(function(d,p){return d[p]=KC(p,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[r]=a}const XC={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ZC};function QC(e){var t=e.state,n=e.name;t.modifiersData[n]=Sf({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const JC={name:"popperOffsets",enabled:!0,phase:"read",fn:QC,data:{}};function e1(e){return e==="x"?"y":"x"}function t1(e){var t=e.state,n=e.options,r=e.name,s=n.mainAxis,i=s===void 0?!0:s,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,p=n.padding,m=n.tether,g=m===void 0?!0:m,h=n.tetherOffset,f=h===void 0?0:h,b=cr(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:d}),x=Jt(t.placement),O=xo(t.placement),v=!O,w=Ua(x),E=e1(w),T=t.modifiersData.popperOffsets,P=t.rects.reference,V=t.rects.popper,D=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,L=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(T){if(i){var F,j=w==="y"?wt:Et,A=w==="y"?At:jt,I=w==="y"?"height":"width",N=T[w],_=N+b[j],B=N-b[A],R=g?-V[I]/2:0,k=O===bo?P[I]:V[I],W=O===bo?-V[I]:-P[I],G=t.elements.arrow,U=g&&G?Wa(G):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:bf(),H=Y[j],Z=Y[A],J=Ko(0,P[I],U[I]),ee=v?P[I]/2-R-J-H-L.mainAxis:k-J-H-L.mainAxis,X=v?-P[I]/2+R+J+Z+L.mainAxis:W+J+Z+L.mainAxis,K=t.elements.arrow&&kr(t.elements.arrow),q=K?w==="y"?K.clientTop||0:K.clientLeft||0:0,te=(F=$==null?void 0:$[w])!=null?F:0,ne=N+ee-te-q,ce=N+X-te,oe=Ko(g?ms(_,ne):_,N,g?jn(B,ce):B);T[w]=oe,M[w]=oe-N}if(l){var be,ae=w==="x"?wt:Et,he=w==="x"?At:jt,le=T[E],ue=E==="y"?"height":"width",we=le+b[ae],Oe=le-b[he],Se=[wt,Et].indexOf(x)!==-1,Me=(be=$==null?void 0:$[E])!=null?be:0,Ze=Se?we:le-P[ue]-V[ue]-Me+L.altAxis,Te=Se?le+P[ue]+V[ue]-Me-L.altAxis:Oe,Ce=g&&Se?OC(Ze,le,Te):Ko(g?Ze:we,le,g?Te:Oe);T[E]=Ce,M[E]=Ce-le}t.modifiersData[r]=M}}const n1={name:"preventOverflow",enabled:!0,phase:"main",fn:t1,requiresIfExists:["offset"]};function o1(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function r1(e){return e===Mt(e)||!Nt(e)?Ha(e):o1(e)}function s1(e){var t=e.getBoundingClientRect(),n=yo(t.width)/e.offsetWidth||1,r=yo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function i1(e,t,n){n===void 0&&(n=!1);var r=Nt(t),s=Nt(t)&&s1(t),i=On(t),a=vo(e,s,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((nn(t)!=="body"||Ya(i))&&(l=r1(t)),Nt(t)?(c=vo(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=qa(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function a1(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function s(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&&s(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||s(i)}),r}function l1(e){var t=a1(e);return vC.reduce(function(n,r){return n.concat(t.filter(function(s){return s.phase===r}))},[])}function c1(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function u1(e){var t=e.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Lc={placement:"bottom",modifiers:[],strategy:"absolute"};function Fc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function d1(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,s=t.defaultOptions,i=s===void 0?Lc:s;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Lc,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},p=[],m=!1,g={state:d,setOptions:function(x){var O=typeof x=="function"?x(d.options):x;f(),d.options=Object.assign({},i,d.options,O),d.scrollParents={reference:Wn(l)?Zo(l):l.contextElement?Zo(l.contextElement):[],popper:Zo(c)};var v=l1(u1([].concat(r,d.options.modifiers)));return d.orderedModifiers=v.filter(function(w){return w.enabled}),h(),g.update()},forceUpdate:function(){if(!m){var x=d.elements,O=x.reference,v=x.popper;if(Fc(O,v)){d.rects={reference:i1(O,kr(v),d.options.strategy==="fixed"),popper:Wa(v)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(L){return d.modifiersData[L.name]=Object.assign({},L.data)});for(var w=0;w<d.orderedModifiers.length;w++){if(d.reset===!0){d.reset=!1,w=-1;continue}var E=d.orderedModifiers[w],T=E.fn,P=E.options,V=P===void 0?{}:P,D=E.name;typeof T=="function"&&(d=T({state:d,options:V,name:D,instance:g})||d)}}}},update:c1(function(){return new Promise(function(b){g.forceUpdate(),b(d)})}),destroy:function(){f(),m=!0}};if(!Fc(l,c))return g;g.setOptions(u).then(function(b){!m&&u.onFirstUpdate&&u.onFirstUpdate(b)});function h(){d.orderedModifiers.forEach(function(b){var x=b.name,O=b.options,v=O===void 0?{}:O,w=b.effect;if(typeof w=="function"){var E=w({state:d,name:x,instance:g,options:v}),T=function(){};p.push(E||T)}})}function f(){p.forEach(function(b){return b()}),p=[]}return g}}var f1=[$C,JC,_C,CC,XC,qC,n1,MC,GC],p1=d1({defaultModifiers:f1});function m1(e){return typeof e=="function"?e():e}const ur=S.forwardRef(function(t,n){const{children:r,container:s,disablePortal:i=!1}=t,[a,l]=S.useState(null),c=pt(S.isValidElement(r)?hr(r):null,n);if(Ht(()=>{i||l(m1(s)||document.body)},[s,i]),Ht(()=>{if(a&&!i)return Ni(n,a),()=>{Ni(n,null)}},[n,a,i]),i){if(S.isValidElement(r)){const u={ref:c};return S.cloneElement(r,u)}return y.jsx(S.Fragment,{children:r})}return y.jsx(S.Fragment,{children:a&&qp.createPortal(r,a)})});process.env.NODE_ENV!=="production"&&(ur.propTypes={children:o.node,container:o.oneOfType([ln,o.func]),disablePortal:o.bool});process.env.NODE_ENV!=="production"&&(ur.propTypes=_u(ur.propTypes));function h1(e){return Ie("MuiPopper",e)}Re("MuiPopper",["root"]);const g1=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],b1=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function y1(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 hs(e){return typeof e=="function"?e():e}function Bs(e){return e.nodeType!==void 0}function v1(e){return!Bs(e)}const x1=e=>{const{classes:t}=e;return Ve({root:["root"]},h1,t)},S1={},C1=S.forwardRef(function(t,n){var r;const{anchorEl:s,children:i,direction:a,disablePortal:l,modifiers:c,open:u,placement:d,popperOptions:p,popperRef:m,slotProps:g={},slots:h={},TransitionProps:f}=t,b=re(t,g1),x=S.useRef(null),O=pt(x,n),v=S.useRef(null),w=pt(v,m),E=S.useRef(w);Ht(()=>{E.current=w},[w]),S.useImperativeHandle(m,()=>v.current,[]);const T=y1(d,a),[P,V]=S.useState(T),[D,L]=S.useState(hs(s));S.useEffect(()=>{v.current&&v.current.forceUpdate()}),S.useEffect(()=>{s&&L(hs(s))},[s]),Ht(()=>{if(!D||!u)return;const A=_=>{V(_.placement)};if(process.env.NODE_ENV!=="production"&&D&&Bs(D)&&D.nodeType===1){const _=D.getBoundingClientRect();process.env.NODE_ENV!=="test"&&_.top===0&&_.left===0&&_.right===0&&_.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(`
|
|
102
|
-
`))}let
|
|
103
|
-
`))}else if(!t||typeof t.getBoundingClientRect!="function"||
|
|
104
|
-
`))}return null}),children:
|
|
105
|
-
`)),
|
|
106
|
-
`))},[
|
|
107
|
-
`))},[
|
|
108
|
-
`)
|
|
109
|
-
`))}
|
|
110
|
-
`))},[JSON.stringify(h)]));const{timezone:O,value:v,handleValueChange:w}=Mr({name:"a picker component",timezone:c,value:s,defaultValue:h,referenceDate:l,onChange:a,valueManager:n}),[E,T]=S.useState(()=>({open:!1,lastExternalValue:v,clockShallowValue:void 0,lastCommittedValue:v,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:P}=af({props:t,validator:r,timezone:O,value:v,onError:t.onError}),V=ge(M=>{const F=typeof M=="function"?M(E.open):M;b||T(j=>C({},j,{open:F})),F&&m&&m(),F||g==null||g()}),D=ge((M,F)=>{const{changeImportance:j="accept",skipPublicationIfPristine:A=!1,validationError:I,shortcut:N,source:_,shouldClose:B=j==="accept"}=F??{};let R,k;!A&&!f&&!E.hasBeenModifiedSinceMount?(R=!0,k=j==="accept"):(R=!n.areValuesEqual(x,M,v),k=j==="accept"&&!n.areValuesEqual(x,M,E.lastCommittedValue)),T(U=>C({},U,{clockShallowValue:R?void 0:U.clockShallowValue,lastCommittedValue:k?M:U.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let W=null;const G=()=>{if(!W){let U;_?U=_:N?U="view":U="unknown",W={validationError:I??P(M),source:U},N&&(W.shortcut=N)}return W};R&&w(M,G()),k&&u&&u(M,G()),B&&V(!1)});v!==E.lastExternalValue&&T(M=>C({},M,{lastExternalValue:v,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));const L=ge((M,F="partial")=>{if(F==="shallow"){T(j=>C({},j,{clockShallowValue:M,hasBeenModifiedSinceMount:!0}));return}D(M,{changeImportance:F==="finish"&&d?"accept":"set",source:"view"})});S.useEffect(()=>{if(b){if(p===void 0)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");T(M=>C({},M,{open:p}))}},[b,p]);const $=S.useMemo(()=>n.cleanValue(x,E.clockShallowValue===void 0?v:E.clockShallowValue),[x,n,E.clockShallowValue,v]);return{timezone:O,state:E,setValue:D,setValueFromView:L,setOpen:V,value:v,viewValue:$}}const K1=["className","sx"],Rf=({ref:e,props:t,valueManager:n,valueType:r,variant:s,validator:i,onPopperExited:a,autoFocusView:l,rendererInterceptor:c,localeText:u,viewContainerRole:d,getStepNavigation:p})=>{const{views:m,view:g,openTo:h,onViewChange:f,viewRenderers:b,reduceAnimations:x,orientation:O,disableOpenPicker:v,closeOnSelect:w,disabled:E,readOnly:T,formatDensity:P,enableAccessibleFieldDOMStructure:V,selectedSections:D,onSelectedSectionsChange:L,format:$,label:M,autoFocus:F,name:j}=t,{className:A,sx:I}=t,N=re(t,K1),_=Ga(),B=He(),R=Tf(x),k=Y1(m,O),{current:W}=S.useRef(h??null),[G,U]=S.useState(null),Y=S.useRef(null),H=S.useRef(null),Z=S.useRef(null),J=Ct(e,Z),{timezone:ee,state:X,setOpen:K,setValue:q,setValueFromView:te,value:ne,viewValue:ce}=G1({props:t,valueManager:n,validator:i}),{view:oe,setView:be,defaultView:ae,focusedView:he,setFocusedView:le,setValueAndGoToNextView:ue,goToNextStep:we,hasNextStep:Oe,hasSeveralSteps:Se}=kf({view:g,views:m,openTo:h,onChange:te,onViewChange:f,autoFocus:l,getStepNavigation:p}),Me=ge(()=>q(n.emptyValue,{source:"view"})),Ze=ge(()=>q(n.getTodayValue(B,ee,r),{source:"view"})),Te=ge(()=>q(ne,{source:"view"})),Ce=ge(()=>q(X.lastCommittedValue,{skipPublicationIfPristine:!0,source:"view"})),ie=ge(()=>{q(ne,{skipPublicationIfPristine:!0,source:"view"})}),{hasUIView:ve,viewModeLookup:Pe,timeViewsCount:_e}=S.useMemo(()=>m.reduce((it,Bt)=>{const xl=b[Bt]==null?"field":"UI";return it.viewModeLookup[Bt]=xl,xl==="UI"&&(it.hasUIView=!0,N0(Bt)&&(it.timeViewsCount+=1)),it},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[b,m]),Ye=Pe[oe],pe=ge(()=>Ye),[xe,Ae]=S.useState(Ye==="UI"?oe:null);xe!==oe&&Pe[oe]==="UI"&&Ae(oe),tn(()=>{Ye==="field"&&X.open&&(K(!1),setTimeout(()=>{var it,Bt;(it=H==null?void 0:H.current)==null||it.setSelectedSections(oe),(Bt=H==null?void 0:H.current)==null||Bt.focusField(oe)}))},[oe]),tn(()=>{if(!X.open)return;let it=oe;Ye==="field"&&xe!=null&&(it=xe),it!==ae&&Pe[it]==="UI"&&Pe[ae]==="UI"&&(it=ae),it!==oe&&be(it),le(it,!0)},[X.open]);const Ee=S.useMemo(()=>({isPickerValueEmpty:n.areValuesEqual(B,ne,n.emptyValue),isPickerOpen:X.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:k,pickerVariant:s}),[B,n,ne,X.open,k,s,t.disabled,t.readOnly]),st=S.useMemo(()=>v||!ve?"hidden":E||T?"disabled":"enabled",[v,ve,E,T]),vt=ge(we),Vt=S.useMemo(()=>w&&!Se?[]:["cancel","nextOrAccept"],[w,Se]),Ro=S.useMemo(()=>({setValue:q,setOpen:K,clearValue:Me,setValueToToday:Ze,acceptValueChanges:Te,cancelValueChanges:Ce,setView:be,goToNextStep:vt}),[q,K,Me,Ze,Te,Ce,be,vt]),Gt=S.useMemo(()=>C({},Ro,{value:ne,timezone:ee,open:X.open,views:m,view:xe,initialView:W,disabled:E??!1,readOnly:T??!1,autoFocus:F??!1,variant:s,orientation:k,popupRef:Y,reduceAnimations:R,triggerRef:U,triggerStatus:st,hasNextStep:Oe,fieldFormat:$??"",name:j,label:M,rootSx:I,rootRef:J,rootClassName:A}),[Ro,ne,J,s,k,R,E,T,$,A,j,M,I,st,Oe,ee,X.open,xe,m,W,F]),Bp=S.useMemo(()=>({dismissViews:ie,ownerState:Ee,hasUIView:ve,getCurrentViewMode:pe,rootRefObject:Z,labelId:_,triggerElement:G,viewContainerRole:d,defaultActionBarActions:Vt,onPopperExited:a}),[ie,Ee,ve,pe,_,G,d,Vt,a]),zp=S.useMemo(()=>({formatDensity:P,enableAccessibleFieldDOMStructure:V,selectedSections:D,onSelectedSectionsChange:L,fieldRef:H}),[P,V,D,L,H]);return{providerProps:{localeText:u,contextValue:Gt,privateContextValue:Bp,actionsContextValue:Ro,fieldPrivateContextValue:zp,isValidContextValue:it=>{const Bt=i({adapter:B,value:it,timezone:ee,props:t});return!n.hasError(Bt)}},renderCurrentView:()=>{if(xe==null)return null;const it=b[xe];if(it==null)return null;const Bt=C({},N,{views:m,timezone:ee,value:ce,onChange:ue,view:xe,onViewChange:be,showViewSwitcher:_e>1,timeViewsCount:_e},d==="tooltip"?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:he,onFocusedViewChange:le});return c?y.jsx(c,{viewRenderers:b,popperView:xe,rendererProps:Bt}):it(Bt)},ownerState:Ee}};function Df(e){return ct("MuiPickersLayout",e)}const Pn=ft("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function If(e){const{className:t,classes:n,pulsate:r=!1,rippleX:s,rippleY:i,rippleSize:a,in:l,onExited:c,timeout:u}=e,[d,p]=S.useState(!1),m=me(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:a,height:a,top:-(a/2)+i,left:-(a/2)+s},h=me(n.child,d&&n.childLeaving,r&&n.childPulsate);return!l&&!d&&p(!0),S.useEffect(()=>{if(!l&&c!=null){const f=setTimeout(c,u);return()=>{clearTimeout(f)}}},[c,l,u]),y.jsx("span",{className:m,style:g,children:y.jsx("span",{className:h})})}process.env.NODE_ENV!=="production"&&(If.propTypes={classes:o.object.isRequired,className:o.string,in:o.bool,onExited:o.func,pulsate:o.bool,rippleSize:o.number,rippleX:o.number,rippleY:o.number,timeout:o.number.isRequired});const It=Re("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Z1=["center","classes","className"];let zs=e=>e,qc,Yc,Gc,Kc;const na=550,X1=80,Q1=Hn.keyframes(qc||(qc=zs`
|
|
117
|
+
`));const t=E.useMemo(()=>z({},CD,e.localeText),[e.localeText]);return E.useMemo(()=>z({},e,{localeText:t}),[e,t])},Ge=()=>Tu().adapter,oo=()=>Tu().localeText,ac=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],lc=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Ay=["minDateTime","maxDateTime"],TD=[...ac,...lc,...Ay],Ny=e=>TD.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),PD=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","unstableStartFieldRef","unstableEndFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator","autoFocus","focused"],_y=(e,t)=>E.useMemo(()=>{const n=z({},e),o={},r=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return PD.forEach(r),t==="date"?ac.forEach(r):t==="time"?lc.forEach(r):t==="date-time"&&(ac.forEach(r),lc.forEach(r),Ay.forEach(r)),{forwardedProps:n,internalProps:o}},[e,t]),ED=({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},MD=({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},OD=(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}},kD=({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=gu(e,a),u=My(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=yu(bu(Ro(p,r),h),r))}return z({},c,{format:a,maxLength:h,value:p,placeholder:OD(e,o,c,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:d,startSeparator:l,endSeparator:"",modified:!1})},DD=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 b=y;for(;b.length>0;){const C=d.exec(b)[1];b=b.slice(C.length),i.push(kD(z({},e,{now:r,token:C,startSeparator:a}))),a=""}p+=y.length}else{const b=n[p];g&&(m==null?void 0:m.start)===p||(m==null?void 0:m.end)===p||(i.length===0?a+=b:(i[i.length-1].endSeparator+=b,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},RD=({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}),Ip=e=>{let t=ED(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=MD(z({},e,{expandedFormat:t})),o=DD(z({},e,{expandedFormat:t,escapedParts:n}));return RD(z({},e,{sections:o}))},Pu=()=>E.useContext(aa),ID=()=>{const e=E.useContext(wu);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 AD(e){return Te("MuiDatePickerToolbar",e)}Ce("MuiDatePickerToolbar",["root","title"]);const ND=["toolbarFormat","toolbarPlaceholder","className","classes"],_D=e=>we({root:["root"],title:["title"]},AD,e),jD=ie.styled(Ry,{name:"MuiDatePickerToolbar",slot:"Root"})({}),$D=ie.styled(no,{name:"MuiDatePickerToolbar",slot:"Title"})({variants:[{props:{pickerOrientation:"landscape"},style:{margin:"auto 16px auto auto"}}]}),Eu=E.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiDatePickerToolbar"}),{toolbarFormat:r,toolbarPlaceholder:i="––",className:a,classes:l}=o,c=Ee(o,ND),u=Ge(),{value:d,views:f,orientation:p}=br(),h=oo(),m=Dy(),g=_D(l),y=E.useMemo(()=>{if(!u.isValid(d))return i;const b=mu(u,{format:r,views:f},!0);return u.formatByString(d,b)},[d,r,i,u,f]);return v.jsx(jD,z({ref:n,toolbarTitle:h.datePickerToolbarTitle,className:ge(g.root,a)},c,{children:v.jsx($D,{variant:"h4",align:p==="landscape"?"left":"center",ownerState:m,className:g.title,children:y})}))});process.env.NODE_ENV!=="production"&&(Eu.displayName="DatePickerToolbar");process.env.NODE_ENV!=="production"&&(Eu.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 Es=({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}};Es.valueManager=vn;function jy(e){const{props:t,validator:n,value:o,timezone:r,onError:i}=e,a=Ge(),l=E.useRef(n.valueManager.defaultErrorState),c=n({adapter:a,value:o,timezone:r,props:t}),u=n.valueManager.hasError(c);E.useEffect(()=>{i&&!n.valueManager.isSameError(c,l.current)&&i(c,o),l.current=c},[n,i,c,o]);const d=pe(f=>n({adapter:a,value:f,timezone:r,props:t}));return{validationError:c,hasValidationError:u,getValidationErrorForNewValue:d}}const LD=()=>Tu().defaultDates,la=e=>{const t=Ge(),n=E.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function VD(e={}){const{enableAccessibleFieldDOMStructure:t=!0}=e;return E.useMemo(()=>({valueType:"date",validator:Es,internal_valueManager:vn,internal_fieldValueManager:aD,internal_enableAccessibleFieldDOMStructure:t,internal_useApplyDefaultValuesToFieldInternalProps:BD,internal_useOpenPickerButtonAriaLabel:FD}),[t])}function FD(e){const t=Ge(),n=oo();return E.useMemo(()=>{const o=t.isValid(e)?t.format(e,"fullDate"):null;return n.openDatePickerDialogue(o)},[e,n,t])}function BD(e){const t=Ge(),n=Ms(e);return E.useMemo(()=>z({},e,n,{format:e.format??t.formats.keyboardDate}),[e,n,t])}function Ms(e){const t=Ge(),n=LD();return E.useMemo(()=>({disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,minDate:Sp(t,e.minDate,n.minDate),maxDate:Sp(t,e.maxDate,n.maxDate)}),[e.minDate,e.maxDate,e.disableFuture,e.disablePast,t,n])}function $y(e,t){const n=ie.useThemeProps({props:e,name:t}),o=Ms(n),r=E.useMemo(()=>{var i;return((i=n.localeText)==null?void 0:i.toolbarTitle)==null?n.localeText:z({},n.localeText,{datePickerToolbarTitle:n.localeText.toolbarTitle})},[n.localeText]);return z({},n,o,{localeText:r},Fk({views:n.views,openTo:n.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{slots:z({toolbar:Eu},n.slots)})}function sr(e){return typeof e=="string"}function Ly(e,t,n){return e===void 0||sr(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Vy(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 Ap(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 Fy(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:i}=e;if(!t){const h=ge(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=Vy({...r,...o}),l=Ap(o),c=Ap(r),u=t(a),d=ge(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 Ne(e){var f;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...i}=e,a=r?{}:Kt(n,o),{props:l,internalRef:c}=Fy({...i,externalSlotProps:a}),u=_e(c,a==null?void 0:a.ref,(f=e.additionalProps)==null?void 0:f.ref);return Ly(t,{...l,ref:u},o)}const Np={};function By(e,t){const n=E.useRef(Np);return n.current===Np&&(n.current=e(t)),n}const zD=[];function WD(e){E.useEffect(e,zD)}class Mu{constructor(){fe(this,"currentId",null);fe(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});fe(this,"disposeEffect",()=>this.clear)}static create(){return new Mu}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Yn(){const e=By(Mu.create).current;return WD(e.disposeEffect),e}function Nn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function UD(e){const{prototype:t={}}=e;return!!t.isReactComponent}function zy(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"&&!UD(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 Os=Nn(s.element,zy);Os.isRequired=Nn(s.element.isRequired,zy);function ks(e){var t;return parseInt(E.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function cc(e,t){return cc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},cc(e,t)}function Ou(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cc(e,t)}function HD(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function YD(e,t){e.classList?e.classList.add(t):HD(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function _p(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function qD(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=_p(e.className,t):e.setAttribute("class",_p(e.className&&e.className.baseVal||"",t))}const jp={disabled:!1};var GD=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.shape({enter:s.number,exit:s.number,appear:s.number}).isRequired]):null,KD=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 ki=L.createContext(null);var Wy=function(t){return t.scrollTop},zr="unmounted",xo="exited",So="entering",Bo="entered",uc="exiting",en=function(e){Ou(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=xo,i.appearStatus=So):c=Bo:o.unmountOnExit||o.mountOnEnter?c=zr:c=xo,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(r,i){var a=r.in;return a&&i.status===zr?{status:xo}: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!==So&&a!==Bo&&(i=So):(a===So||a===Bo)&&(i=uc)}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===So){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Uo.findDOMNode(this);a&&Wy(a)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xo&&this.setState({status:zr})},n.performEnter=function(r){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:r,c=this.props.nodeRef?[l]:[Uo.findDOMNode(this),l],u=c[0],d=c[1],f=this.getTimeouts(),p=l?f.appear:f.enter;if(!r&&!a||jp.disabled){this.safeSetState({status:Bo},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:So},function(){i.props.onEntering(u,d),i.onTransitionEnd(p,function(){i.safeSetState({status:Bo},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:Uo.findDOMNode(this);if(!i||jp.disabled){this.safeSetState({status:xo},function(){r.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:uc},function(){r.props.onExiting(l),r.onTransitionEnd(a.exit,function(){r.safeSetState({status:xo},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:Uo.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===zr)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=Ee(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return L.createElement(ki.Provider,{value:null},typeof a=="function"?a(r,l):L.cloneElement(L.Children.only(a),l))},t}(L.Component);en.contextType=ki;en.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=GD;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 Vo(){}en.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vo,onEntering:Vo,onEntered:Vo,onExit:Vo,onExiting:Vo,onExited:Vo};en.UNMOUNTED=zr;en.EXITED=xo;en.ENTERING=So;en.ENTERED=Bo;en.EXITING=uc;var ZD=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return YD(t,o)})},ll=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return qD(t,o)})},ku=function(e){Ou(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&&Wy(r),l&&(this.appliedClasses[i][a]=l,ZD(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&&ll(r,l),c&&ll(r,c),u&&ll(r,u)},n.render=function(){var r=this.props;r.classNames;var i=Ee(r,["classNames"]);return L.createElement(en,z({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(L.Component);ku.defaultProps={classNames:""};ku.propTypes=process.env.NODE_ENV!=="production"?z({},en.propTypes,{classNames:KD,onEnter:s.func,onEntering:s.func,onEntered:s.func,onExit:s.func,onExiting:s.func,onExited:s.func}):{};function XD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Du(e,t){var n=function(i){return t&&L.isValidElement(i)?t(i):i},o=Object.create(null);return e&&L.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function QD(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 Po(e,t,n){return n[t]!=null?n[t]:e.props[t]}function JD(e,t){return Du(e.children,function(n){return L.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Po(n,"appear",e),enter:Po(n,"enter",e),exit:Po(n,"exit",e)})})}function eR(e,t,n){var o=Du(e.children),r=QD(t,o);return Object.keys(r).forEach(function(i){var a=r[i];if(L.isValidElement(a)){var l=i in t,c=i in o,u=t[i],d=L.isValidElement(u)&&!u.props.in;c&&(!l||d)?r[i]=L.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Po(a,"exit",e),enter:Po(a,"enter",e)}):!c&&l&&!d?r[i]=L.cloneElement(a,{in:!1}):c&&l&&L.isValidElement(u)&&(r[i]=L.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:Po(a,"exit",e),enter:Po(a,"enter",e)}))}}),r}var tR=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},nR={component:"div",childFactory:function(t){return t}},Ds=function(e){Ou(t,e);function t(o,r){var i;i=e.call(this,o,r)||this;var a=i.handleExited.bind(XD(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?JD(r,l):eR(r,a,l),firstRender:!1}},n.handleExited=function(r,i){var a=Du(this.props.children);r.key in a||(r.props.onExited&&r.props.onExited(i),this.mounted&&this.setState(function(l){var c=z({},l.children);return delete c[r.key],{children:c}}))},n.render=function(){var r=this.props,i=r.component,a=r.childFactory,l=Ee(r,["component","childFactory"]),c=this.state.contextValue,u=tR(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?L.createElement(ki.Provider,{value:c},u):L.createElement(ki.Provider,{value:c},L.createElement(i,l,u))},t}(L.Component);Ds.propTypes=process.env.NODE_ENV!=="production"?{component:s.any,children:s.node,appear:s.bool,enter:s.bool,exit:s.bool,childFactory:s.func}:{};Ds.defaultProps=nR;const Uy=e=>e.scrollTop;function Di(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 dc(e){return`scale(${e}, ${e**2})`}const oR={entering:{opacity:1,transform:dc(1)},entered:{opacity:1,transform:"none"}},cl=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ds=E.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=en,...b}=t,C=Yn(),w=E.useRef(),S=Gi(),T=E.useRef(null),P=_e(T,ks(i),n),A=O=>D=>{if(O){const _=T.current;D===void 0?O(_):O(_,D)}},I=A(d),k=A((O,D)=>{Uy(O);const{duration:_,delay:F,easing:B}=Di({style:m,timeout:g,easing:a},{mode:"enter"});let $;g==="auto"?($=S.transitions.getAutoHeightDuration(O.clientHeight),w.current=$):$=_,O.style.transition=[S.transitions.create("opacity",{duration:$,delay:F}),S.transitions.create("transform",{duration:cl?$:$*.666,delay:F,easing:B})].join(","),c&&c(O,D)}),V=A(u),N=A(h),x=A(O=>{const{duration:D,delay:_,easing:F}=Di({style:m,timeout:g,easing:a},{mode:"exit"});let B;g==="auto"?(B=S.transitions.getAutoHeightDuration(O.clientHeight),w.current=B):B=D,O.style.transition=[S.transitions.create("opacity",{duration:B,delay:_}),S.transitions.create("transform",{duration:cl?B:B*.666,delay:cl?_:_||B*.333,easing:F})].join(","),O.style.opacity=0,O.style.transform=dc(.75),f&&f(O)}),j=A(p),R=O=>{g==="auto"&&C.start(w.current||0,O),o&&o(T.current,O)};return v.jsx(y,{appear:r,in:l,nodeRef:T,onEnter:k,onEntered:V,onEntering:I,onExit:x,onExited:j,onExiting:N,addEndListener:R,timeout:g==="auto"?null:g,...b,children:(O,{ownerState:D,..._})=>E.cloneElement(i,{style:{opacity:0,transform:dc(.75),visibility:O==="exited"&&!l?"hidden":void 0,...oR[O],...m,...i.props.style},ref:P,..._})})});process.env.NODE_ENV!=="production"&&(ds.propTypes={addEndListener:s.func,appear:s.bool,children:Os.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});ds&&(ds.muiSupportAuto=!0);const rR={entering:{opacity:1},entered:{opacity:1}},Xn=E.forwardRef(function(t,n){const o=Gi(),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:b=r,TransitionComponent:C=en,...w}=t,S=E.useRef(null),T=_e(S,ks(l),n),P=R=>O=>{if(R){const D=S.current;O===void 0?R(D):R(D,O)}},A=P(p),I=P((R,O)=>{Uy(R);const D=Di({style:y,timeout:b,easing:c},{mode:"enter"});R.style.webkitTransition=o.transitions.create("opacity",D),R.style.transition=o.transitions.create("opacity",D),d&&d(R,O)}),k=P(f),V=P(g),N=P(R=>{const O=Di({style:y,timeout:b,easing:c},{mode:"exit"});R.style.webkitTransition=o.transitions.create("opacity",O),R.style.transition=o.transitions.create("opacity",O),h&&h(R)}),x=P(m),j=R=>{i&&i(S.current,R)};return v.jsx(C,{appear:a,in:u,nodeRef:S,onEnter:I,onEntered:k,onEntering:A,onExit:N,onExited:x,onExiting:V,addEndListener:j,timeout:b,...w,children:(R,{ownerState:O,...D})=>E.cloneElement(l,{style:{opacity:0,visibility:R==="exited"&&!u?"hidden":void 0,...rR[R],...y,...l.props.style},ref:T,...D})})});process.env.NODE_ENV!=="production"&&(Xn.propTypes={addEndListener:s.func,appear:s.bool,children:Os.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});function sR(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 Hy(e,t,n,o){const r=e[t];if(r==null||!Number.isInteger(r)){const i=sR(r);return new RangeError(`Invalid ${o} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Yy(e,t,n,o){return e[t]===void 0?null:Hy(e,t,n,o)}function fc(){return null}Yy.isRequired=Hy;fc.isRequired=fc;const qy=process.env.NODE_ENV==="production"?fc:Yy;function iR(e){return Te("MuiPaper",e)}Ce("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const aR=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,i={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return we(i,iR,r)},lR=ye("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}`]]}})(Ye(({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)"}}]}))),Rs=E.forwardRef(function(t,n){var h;const o=je({props:t,name:"MuiPaper"}),r=Gi(),{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=aR(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
|
+
`)),v.jsx(lR,{as:a,ownerState:f,className:ge(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(${fi("#fff",El(l))}, ${fi("#fff",El(l))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(Rs.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,elevation:Nn(qy,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 In(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 jt="top",Xt="bottom",Qt="right",$t="left",Ru="auto",Is=[jt,Xt,Qt,$t],ir="start",fs="end",cR="clippingParents",Gy="viewport",Dr="popper",uR="reference",$p=Is.reduce(function(e,t){return e.concat([t+"-"+ir,t+"-"+fs])},[]),Ky=[].concat(Is,[Ru]).reduce(function(e,t){return e.concat([t,t+"-"+ir,t+"-"+fs])},[]),dR="beforeRead",fR="read",pR="afterRead",hR="beforeMain",mR="main",gR="afterMain",yR="beforeWrite",bR="write",vR="afterWrite",xR=[dR,fR,pR,hR,mR,gR,yR,bR,vR];function xn(e){return e?(e.nodeName||"").toLowerCase():null}function zt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Io(e){var t=zt(e).Element;return e instanceof t||e instanceof Element}function Zt(e){var t=zt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Iu(e){if(typeof ShadowRoot>"u")return!1;var t=zt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function SR(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];!Zt(i)||!xn(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 wR(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},{});!Zt(r)||!xn(r)||(Object.assign(r.style,l),Object.keys(i).forEach(function(c){r.removeAttribute(c)}))})}}const CR={name:"applyStyles",enabled:!0,phase:"write",fn:SR,effect:wR,requires:["computeStyles"]};function gn(e){return e.split("-")[0]}var Oo=Math.max,Ri=Math.min,ar=Math.round;function pc(){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 Zy(){return!/^((?!chrome|android).)*safari/i.test(pc())}function lr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&Zt(e)&&(r=e.offsetWidth>0&&ar(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ar(o.height)/e.offsetHeight||1);var a=Io(e)?zt(e):window,l=a.visualViewport,c=!Zy()&&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 Au(e){var t=lr(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 Xy(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Iu(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function An(e){return zt(e).getComputedStyle(e)}function TR(e){return["table","td","th"].indexOf(xn(e))>=0}function ro(e){return((Io(e)?e.ownerDocument:e.document)||window.document).documentElement}function ca(e){return xn(e)==="html"?e:e.assignedSlot||e.parentNode||(Iu(e)?e.host:null)||ro(e)}function Lp(e){return!Zt(e)||An(e).position==="fixed"?null:e.offsetParent}function PR(e){var t=/firefox/i.test(pc()),n=/Trident/i.test(pc());if(n&&Zt(e)){var o=An(e);if(o.position==="fixed")return null}var r=ca(e);for(Iu(r)&&(r=r.host);Zt(r)&&["html","body"].indexOf(xn(r))<0;){var i=An(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 As(e){for(var t=zt(e),n=Lp(e);n&&TR(n)&&An(n).position==="static";)n=Lp(n);return n&&(xn(n)==="html"||xn(n)==="body"&&An(n).position==="static")?t:n||PR(e)||t}function Nu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Xr(e,t,n){return Oo(e,Ri(t,n))}function ER(e,t,n){var o=Xr(e,t,n);return o>n?n:o}function Qy(){return{top:0,right:0,bottom:0,left:0}}function Jy(e){return Object.assign({},Qy(),e)}function eb(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var MR=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Jy(typeof t!="number"?t:eb(t,Is))};function OR(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=gn(n.placement),c=Nu(l),u=[$t,Qt].indexOf(l)>=0,d=u?"height":"width";if(!(!i||!a)){var f=MR(r.padding,n),p=Au(i),h=c==="y"?jt:$t,m=c==="y"?Xt:Qt,g=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],y=a[c]-n.rects.reference[c],b=As(i),C=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,w=g/2-y/2,S=f[h],T=C-p[d]-f[m],P=C/2-p[d]/2+w,A=Xr(S,P,T),I=c;n.modifiersData[o]=(t={},t[I]=A,t.centerOffset=A-P,t)}}function kR(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)||Xy(t.elements.popper,r)&&(t.elements.arrow=r))}const DR={name:"arrow",enabled:!0,phase:"main",fn:OR,effect:kR,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function cr(e){return e.split("-")[1]}var RR={top:"auto",right:"auto",bottom:"auto",left:"auto"};function IR(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:ar(n*r)/r||0,y:ar(o*r)/r||0}}function Vp(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 b=a.hasOwnProperty("x"),C=a.hasOwnProperty("y"),w=$t,S=jt,T=window;if(u){var P=As(n),A="clientHeight",I="clientWidth";if(P===zt(n)&&(P=ro(n),An(P).position!=="static"&&l==="absolute"&&(A="scrollHeight",I="scrollWidth")),P=P,r===jt||(r===$t||r===Qt)&&i===fs){S=Xt;var k=f&&P===T&&T.visualViewport?T.visualViewport.height:P[A];g-=k-o.height,g*=c?1:-1}if(r===$t||(r===jt||r===Xt)&&i===fs){w=Qt;var V=f&&P===T&&T.visualViewport?T.visualViewport.width:P[I];h-=V-o.width,h*=c?1:-1}}var N=Object.assign({position:l},u&&RR),x=d===!0?IR({x:h,y:g},zt(n)):{x:h,y:g};if(h=x.x,g=x.y,c){var j;return Object.assign({},N,(j={},j[S]=C?"0":"",j[w]=b?"0":"",j.transform=(T.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",j))}return Object.assign({},N,(t={},t[S]=C?g+"px":"",t[w]=b?h+"px":"",t.transform="",t))}function AR(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:gn(t.placement),variation:cr(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,Vp(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,Vp(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 NR={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:AR,data:{}};var Ks={passive:!0};function _R(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=zt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,Ks)}),l&&c.addEventListener("resize",n.update,Ks),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Ks)}),l&&c.removeEventListener("resize",n.update,Ks)}}const jR={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:_R,data:{}};var $R={left:"right",right:"left",bottom:"top",top:"bottom"};function ci(e){return e.replace(/left|right|bottom|top/g,function(t){return $R[t]})}var LR={start:"end",end:"start"};function Fp(e){return e.replace(/start|end/g,function(t){return LR[t]})}function _u(e){var t=zt(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function ju(e){return lr(ro(e)).left+_u(e).scrollLeft}function VR(e,t){var n=zt(e),o=ro(e),r=n.visualViewport,i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;var u=Zy();(u||!u&&t==="fixed")&&(l=r.offsetLeft,c=r.offsetTop)}return{width:i,height:a,x:l+ju(e),y:c}}function FR(e){var t,n=ro(e),o=_u(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=Oo(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Oo(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+ju(e),c=-o.scrollTop;return An(r||n).direction==="rtl"&&(l+=Oo(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}function $u(e){var t=An(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function tb(e){return["html","body","#document"].indexOf(xn(e))>=0?e.ownerDocument.body:Zt(e)&&$u(e)?e:tb(ca(e))}function Qr(e,t){var n;t===void 0&&(t=[]);var o=tb(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=zt(o),a=r?[i].concat(i.visualViewport||[],$u(o)?o:[]):o,l=t.concat(a);return r?l:l.concat(Qr(ca(a)))}function hc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function BR(e,t){var n=lr(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 Bp(e,t,n){return t===Gy?hc(VR(e,n)):Io(t)?BR(t,n):hc(FR(ro(e)))}function zR(e){var t=Qr(ca(e)),n=["absolute","fixed"].indexOf(An(e).position)>=0,o=n&&Zt(e)?As(e):e;return Io(o)?t.filter(function(r){return Io(r)&&Xy(r,o)&&xn(r)!=="body"}):[]}function WR(e,t,n,o){var r=t==="clippingParents"?zR(e):[].concat(t),i=[].concat(r,[n]),a=i[0],l=i.reduce(function(c,u){var d=Bp(e,u,o);return c.top=Oo(d.top,c.top),c.right=Ri(d.right,c.right),c.bottom=Ri(d.bottom,c.bottom),c.left=Oo(d.left,c.left),c},Bp(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 nb(e){var t=e.reference,n=e.element,o=e.placement,r=o?gn(o):null,i=o?cr(o):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(r){case jt:c={x:a,y:t.y-n.height};break;case Xt:c={x:a,y:t.y+t.height};break;case Qt:c={x:t.x+t.width,y:l};break;case $t:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=r?Nu(r):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case ir:c[u]=c[u]-(t[d]/2-n[d]/2);break;case fs:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function ps(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?cR:l,u=n.rootBoundary,d=u===void 0?Gy:u,f=n.elementContext,p=f===void 0?Dr:f,h=n.altBoundary,m=h===void 0?!1:h,g=n.padding,y=g===void 0?0:g,b=Jy(typeof y!="number"?y:eb(y,Is)),C=p===Dr?uR:Dr,w=e.rects.popper,S=e.elements[m?C:p],T=WR(Io(S)?S:S.contextElement||ro(e.elements.popper),c,d,a),P=lr(e.elements.reference),A=nb({reference:P,element:w,placement:r}),I=hc(Object.assign({},w,A)),k=p===Dr?I:P,V={top:T.top-k.top+b.top,bottom:k.bottom-T.bottom+b.bottom,left:T.left-k.left+b.left,right:k.right-T.right+b.right},N=e.modifiersData.offset;if(p===Dr&&N){var x=N[r];Object.keys(V).forEach(function(j){var R=[Qt,Xt].indexOf(j)>=0?1:-1,O=[jt,Xt].indexOf(j)>=0?"y":"x";V[j]+=x[O]*R})}return V}function UR(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?Ky:c,d=cr(o),f=d?l?$p:$p.filter(function(m){return cr(m)===d}):Is,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]=ps(e,{placement:g,boundary:r,rootBoundary:i,padding:a})[gn(g)],m},{});return Object.keys(h).sort(function(m,g){return h[m]-h[g]})}function HR(e){if(gn(e)===Ru)return[];var t=ci(e);return[Fp(e),t,Fp(t)]}function YR(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,b=gn(y),C=b===y,w=c||(C||!m?[ci(y)]:HR(y)),S=[y].concat(w).reduce(function(G,Z){return G.concat(gn(Z)===Ru?UR(t,{placement:Z,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:g}):Z)},[]),T=t.rects.reference,P=t.rects.popper,A=new Map,I=!0,k=S[0],V=0;V<S.length;V++){var N=S[V],x=gn(N),j=cr(N)===ir,R=[jt,Xt].indexOf(x)>=0,O=R?"width":"height",D=ps(t,{placement:N,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),_=R?j?Qt:$t:j?Xt:jt;T[O]>P[O]&&(_=ci(_));var F=ci(_),B=[];if(i&&B.push(D[x]<=0),l&&B.push(D[_]<=0,D[F]<=0),B.every(function(G){return G})){k=N,I=!1;break}A.set(N,B)}if(I)for(var $=m?3:1,M=function(Z){var U=S.find(function(Q){var J=A.get(Q);if(J)return J.slice(0,Z).every(function(ee){return ee})});if(U)return k=U,"break"},W=$;W>0;W--){var K=M(W);if(K==="break")break}t.placement!==k&&(t.modifiersData[o]._skip=!0,t.placement=k,t.reset=!0)}}const qR={name:"flip",enabled:!0,phase:"main",fn:YR,requiresIfExists:["offset"],data:{_skip:!1}};function zp(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 Wp(e){return[jt,Qt,Xt,$t].some(function(t){return e[t]>=0})}function GR(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=ps(t,{elementContext:"reference"}),l=ps(t,{altBoundary:!0}),c=zp(a,o),u=zp(l,r,i),d=Wp(c),f=Wp(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 KR={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:GR};function ZR(e,t,n){var o=gn(e),r=[$t,jt].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,[$t,Qt].indexOf(o)>=0?{x:l,y:a}:{x:a,y:l}}function XR(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,a=Ky.reduce(function(d,f){return d[f]=ZR(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 QR={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:XR};function JR(e){var t=e.state,n=e.name;t.modifiersData[n]=nb({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const eI={name:"popperOffsets",enabled:!0,phase:"read",fn:JR,data:{}};function tI(e){return e==="x"?"y":"x"}function nI(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=ps(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),b=gn(t.placement),C=cr(t.placement),w=!C,S=Nu(b),T=tI(S),P=t.modifiersData.popperOffsets,A=t.rects.reference,I=t.rects.popper,k=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,V=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,x={x:0,y:0};if(P){if(i){var j,R=S==="y"?jt:$t,O=S==="y"?Xt:Qt,D=S==="y"?"height":"width",_=P[S],F=_+y[R],B=_-y[O],$=h?-I[D]/2:0,M=C===ir?A[D]:I[D],W=C===ir?-I[D]:-A[D],K=t.elements.arrow,G=h&&K?Au(K):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Qy(),U=Z[R],Q=Z[O],J=Xr(0,A[D],G[D]),ee=w?A[D]/2-$-J-U-V.mainAxis:M-J-U-V.mainAxis,q=w?-A[D]/2+$+J+Q+V.mainAxis:W+J+Q+V.mainAxis,X=t.elements.arrow&&As(t.elements.arrow),H=X?S==="y"?X.clientTop||0:X.clientLeft||0:0,oe=(j=N==null?void 0:N[S])!=null?j:0,te=_+ee-oe-H,ae=_+q-oe,re=Xr(h?Ri(F,te):F,_,h?Oo(B,ae):B);P[S]=re,x[S]=re-_}if(l){var be,se=S==="x"?jt:$t,he=S==="x"?Xt:Qt,le=P[T],ue=T==="y"?"height":"width",de=le+y[se],Ie=le-y[he],Me=[jt,$t].indexOf(b)!==-1,Ke=(be=N==null?void 0:N[T])!=null?be:0,Qe=Me?de:le-A[ue]-I[ue]-Ke+V.altAxis,ke=Me?le+A[ue]+I[ue]-Ke-V.altAxis:Ie,ut=h&&Me?ER(Qe,le,ke):Xr(h?Qe:de,le,h?ke:Ie);P[T]=ut,x[T]=ut-le}t.modifiersData[o]=x}}const oI={name:"preventOverflow",enabled:!0,phase:"main",fn:nI,requiresIfExists:["offset"]};function rI(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function sI(e){return e===zt(e)||!Zt(e)?_u(e):rI(e)}function iI(e){var t=e.getBoundingClientRect(),n=ar(t.width)/e.offsetWidth||1,o=ar(t.height)/e.offsetHeight||1;return n!==1||o!==1}function aI(e,t,n){n===void 0&&(n=!1);var o=Zt(t),r=Zt(t)&&iI(t),i=ro(t),a=lr(e,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((xn(t)!=="body"||$u(i))&&(l=sI(t)),Zt(t)?(c=lr(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=ju(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function lI(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 cI(e){var t=lI(e);return xR.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function uI(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function dI(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 Up={placement:"bottom",modifiers:[],strategy:"absolute"};function Hp(){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 fI(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?Up:r;return function(l,c,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Up,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],p=!1,h={state:d,setOptions:function(b){var C=typeof b=="function"?b(d.options):b;g(),d.options=Object.assign({},i,d.options,C),d.scrollParents={reference:Io(l)?Qr(l):l.contextElement?Qr(l.contextElement):[],popper:Qr(c)};var w=cI(dI([].concat(o,d.options.modifiers)));return d.orderedModifiers=w.filter(function(S){return S.enabled}),m(),h.update()},forceUpdate:function(){if(!p){var b=d.elements,C=b.reference,w=b.popper;if(Hp(C,w)){d.rects={reference:aI(C,As(w),d.options.strategy==="fixed"),popper:Au(w)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(V){return d.modifiersData[V.name]=Object.assign({},V.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],P=T.fn,A=T.options,I=A===void 0?{}:A,k=T.name;typeof P=="function"&&(d=P({state:d,options:I,name:k,instance:h})||d)}}}},update:uI(function(){return new Promise(function(y){h.forceUpdate(),y(d)})}),destroy:function(){g(),p=!0}};if(!Hp(l,c))return h;h.setOptions(u).then(function(y){!p&&u.onFirstUpdate&&u.onFirstUpdate(y)});function m(){d.orderedModifiers.forEach(function(y){var b=y.name,C=y.options,w=C===void 0?{}:C,S=y.effect;if(typeof S=="function"){var T=S({state:d,name:b,instance:h,options:w}),P=function(){};f.push(T||P)}})}function g(){f.forEach(function(y){return y()}),f=[]}return h}}var pI=[jR,eI,NR,CR,QR,qR,oI,DR,KR],hI=fI({defaultModifiers:pI});function mI(e){return typeof e=="function"?e():e}const hs=E.forwardRef(function(t,n){const{children:o,container:r,disablePortal:i=!1}=t,[a,l]=E.useState(null),c=_e(E.isValidElement(o)?ks(o):null,n);if(St(()=>{i||l(mI(r)||document.body)},[r,i]),St(()=>{if(a&&!i)return Gd(n,a),()=>{Gd(n,null)}},[n,a,i]),i){if(E.isValidElement(o)){const u={ref:c};return E.cloneElement(o,u)}return o}return a&&Vv.createPortal(o,a)});process.env.NODE_ENV!=="production"&&(hs.propTypes={children:s.node,container:s.oneOfType([In,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&(hs.propTypes=Zh(hs.propTypes));function gI(e){return Te("MuiPopper",e)}Ce("MuiPopper",["root"]);function yI(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 Ii(e){return typeof e=="function"?e():e}function ua(e){return e.nodeType!==void 0}function bI(e){return!ua(e)}const vI=e=>{const{classes:t}=e;return we({root:["root"]},gI,t)},xI={},SI=E.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,b=E.useRef(null),C=_e(b,n),w=E.useRef(null),S=_e(w,f),T=E.useRef(S);St(()=>{T.current=S},[S]),E.useImperativeHandle(f,()=>w.current,[]);const P=yI(u,i),[A,I]=E.useState(P),[k,V]=E.useState(Ii(o));E.useEffect(()=>{w.current&&w.current.forceUpdate()}),E.useEffect(()=>{o&&V(Ii(o))},[o]),St(()=>{if(!k||!c)return;const O=F=>{I(F.placement)};if(process.env.NODE_ENV!=="production"&&k&&ua(k)&&k.nodeType===1){const F=k.getBoundingClientRect();process.env.NODE_ENV!=="test"&&F.top===0&&F.left===0&&F.right===0&&F.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
120
|
+
`))}let D=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:F})=>{O(F)}}];l!=null&&(D=D.concat(l)),d&&d.modifiers!=null&&(D=D.concat(d.modifiers));const _=hI(k,b.current,{placement:P,...d,modifiers:D});return T.current(_),()=>{_.destroy(),T.current(null)}},[k,a,l,c,d,P]);const N={placement:A};m!==null&&(N.TransitionProps=m);const x=vI(t),j=h.root??"div",R=Ne({elementType:j,externalSlotProps:p.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:x.root});return v.jsx(j,{...R,children:typeof r=="function"?r(N):r})}),ob=E.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=xI,popperRef:h,style:m,transition:g=!1,slotProps:y={},slots:b={},...C}=t,[w,S]=E.useState(!0),T=()=>{S(!1)},P=()=>{S(!0)};if(!c&&!d&&(!g||w))return null;let A;if(i)A=i;else if(o){const V=Ii(o);A=V&&ua(V)?Ct(V).body:Ct(null).body}const I=!d&&c&&(!g||w)?"none":void 0,k=g?{in:d,onEnter:T,onExited:P}:void 0;return v.jsx(hs,{disablePortal:l,container:A,children:v.jsx(SI,{anchorEl:o,direction:a,disablePortal:l,modifiers:u,ref:n,open:g?!w:d,placement:f,popperOptions:p,popperRef:h,slotProps:y,slots:b,...C,style:{position:"fixed",top:0,left:0,display:I,...m},TransitionProps:k,children:r})})});process.env.NODE_ENV!=="production"&&(ob.propTypes={anchorEl:Nn(s.oneOfType([In,s.object,s.func]),e=>{if(e.open){const t=Ii(e.anchorEl);if(t&&ua(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"||bI(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([In,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:yt,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),transition:s.bool});const wI=ye(ob,{name:"MuiPopper",slot:"Root"})({}),rb=E.forwardRef(function(t,n){const o=an(),r=je({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:b,slots:C,slotProps:w,...S}=r,T=(C==null?void 0:C.root)??(l==null?void 0:l.Root),P={anchorEl:i,container:u,disablePortal:d,keepMounted:f,modifiers:p,open:h,placement:m,popperOptions:g,popperRef:y,transition:b,...S};return v.jsx(wI,{as:a,direction:o?"rtl":"ltr",slots:{root:T},slotProps:w??c,...P,ref:n})});process.env.NODE_ENV!=="production"&&(rb.propTypes={anchorEl:s.oneOfType([In,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([In,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:yt,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 Wr(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 CI=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function TI(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 PI(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 EI(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||PI(e))}function MI(e){const t=[],n=[];return Array.from(e.querySelectorAll(CI)).forEach((o,r)=>{const i=TI(o);i===-1||!EI(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 OI(){return!0}function ms(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:i=MI,isEnabled:a=OI,open:l}=e,c=E.useRef(!1),u=E.useRef(null),d=E.useRef(null),f=E.useRef(null),p=E.useRef(null),h=E.useRef(!1),m=E.useRef(null),g=_e(ks(t),m),y=E.useRef(null);E.useEffect(()=>{!l||!m.current||(h.current=!n)},[n,l]),E.useEffect(()=>{if(!l||!m.current)return;const w=Ct(m.current),S=Wr(w);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]),E.useEffect(()=>{if(!l||!m.current)return;const w=Ct(m.current),S=A=>{if(y.current=A,o||!a()||A.key!=="Tab")return;Wr(w)===m.current&&A.shiftKey&&(c.current=!0,d.current&&d.current.focus())},T=()=>{var V,N;const A=m.current;if(A===null)return;const I=Wr(w);if(!w.hasFocus()||!a()||c.current){c.current=!1;return}if(A.contains(I)||o&&I!==u.current&&I!==d.current)return;if(I!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let k=[];if((I===u.current||I===d.current)&&(k=i(m.current)),k.length>0){const x=!!((V=y.current)!=null&&V.shiftKey&&((N=y.current)==null?void 0:N.key)==="Tab"),j=k[0],R=k[k.length-1];typeof j!="string"&&typeof R!="string"&&(x?R.focus():j.focus())}else A.focus()};w.addEventListener("focusin",T),w.addEventListener("keydown",S,!0);const P=setInterval(()=>{const A=Wr(w);A&&A.tagName==="BODY"&&T()},50);return()=>{clearInterval(P),w.removeEventListener("focusin",T),w.removeEventListener("keydown",S,!0)}},[n,o,r,a,l,i]);const b=w=>{f.current===null&&(f.current=w.relatedTarget),h.current=!0,p.current=w.target;const S=t.props.onFocus;S&&S(w)},C=w=>{f.current===null&&(f.current=w.relatedTarget),h.current=!0};return v.jsxs(E.Fragment,{children:[v.jsx("div",{tabIndex:l?0:-1,onFocus:C,ref:u,"data-testid":"sentinelStart"}),E.cloneElement(t,{ref:g,onFocus:b}),v.jsx("div",{tabIndex:l?0:-1,onFocus:C,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(ms.propTypes={children:Os,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired});process.env.NODE_ENV!=="production"&&(ms.propTypes=Zh(ms.propTypes));function kI(e){return Te("MuiPickerPopper",e)}Ce("MuiPickerPopper",["root","paper"]);function DI(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const RI=e=>{setTimeout(e,0)},sb=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?sb(t.shadowRoot):t:null},Dt=e=>sb(Ct(e)),II="@media (pointer: fine)",AI=["PaperComponent","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],NI=e=>we({root:["root"],paper:["paper"]},kI,e),_I=ie.styled(rb,{name:"MuiPickerPopper",slot:"Root"})(({theme:e})=>({zIndex:e.zIndex.modal})),jI=ie.styled(Rs,{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 $I(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function LI(e,t){const n=E.useRef(!1),o=E.useRef(!1),r=E.useRef(null),i=E.useRef(!1);E.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=pe(c=>{if(!i.current)return;const u=o.current;o.current=!1;const d=Ct(r.current);if(!r.current||"clientX"in c&&$I(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 E.useEffect(()=>{if(e){const c=Ct(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]),E.useEffect(()=>{if(e){const c=Ct(r.current);return c.addEventListener("click",a),()=>{c.removeEventListener("click",a),o.current=!1}}},[e,a]),[r,l,l]}const ib=E.forwardRef((e,t)=>{const{PaperComponent:n,ownerState:o,children:r,paperSlotProps:i,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=Ee(e,AI),d=Ne({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:o});return v.jsx(n,z({},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"&&(ib.displayName="PickerPopperPaperWrapper");function VI(e){const t=ie.useThemeProps({props:e,name:"MuiPickerPopper"}),{children:n,placement:o="bottom-start",slots:r,slotProps:i,classes:a}=t,{open:l,popupRef:c,reduceAnimations:u}=br(),{ownerState:d,rootRefObject:f}=Et(),{dismissViews:p,getCurrentViewMode:h,onPopperExited:m,triggerElement:g,viewContainerRole:y}=Et();E.useEffect(()=>{function _(F){l&&F.key==="Escape"&&p()}return document.addEventListener("keydown",_),()=>{document.removeEventListener("keydown",_)}},[p,l]);const b=E.useRef(null);E.useEffect(()=>{y==="tooltip"||h()==="field"||(l?b.current=Dt(f.current):b.current&&b.current instanceof HTMLElement&&setTimeout(()=>{b.current instanceof HTMLElement&&b.current.focus()}))},[l,y,h,f]);const C=NI(a),w=pe(()=>{y==="tooltip"?RI(()=>{var _,F;(_=f.current)!=null&&_.contains(Dt(f.current))||(F=c.current)!=null&&F.contains(Dt(c.current))||p()}):p()}),[S,T,P]=LI(l,w),A=E.useRef(null),I=_e(A,c),k=_e(I,S),V=_=>{_.key==="Escape"&&(_.stopPropagation(),p())},N=(r==null?void 0:r.desktopTransition)??u?Xn:ds,x=(r==null?void 0:r.desktopTrapFocus)??ms,j=(r==null?void 0:r.desktopPaper)??jI,R=(r==null?void 0:r.popper)??_I,O=Ne({elementType:R,externalSlotProps:i==null?void 0:i.popper,additionalProps:{transition:!0,role:y??void 0,open:l,placement:o,anchorEl:g,onKeyDown:V},className:C.root,ownerState:d}),D=E.useMemo(()=>z({},d,{popperPlacement:O.placement}),[d,O.placement]);return v.jsx(R,z({},O,{children:({TransitionProps:_})=>v.jsx(x,z({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:y==="tooltip",isEnabled:()=>!0},i==null?void 0:i.desktopTrapFocus,{children:v.jsx(N,z({},_,i==null?void 0:i.desktopTransition,{onExited:F=>{var B,$,M;m==null||m(),($=(B=i==null?void 0:i.desktopTransition)==null?void 0:B.onExited)==null||$.call(B,F),(M=_==null?void 0:_.onExited)==null||M.call(_)},children:v.jsx(ib,{PaperComponent:j,ownerState:D,ref:k,onPaperClick:T,onPaperTouchStart:P,paperClasses:C.paper,paperSlotProps:i==null?void 0:i.desktopPaper,children:n})}))}))}))}const FI="@media (prefers-reduced-motion: reduce)",Jo=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),Yp=Jo&&Jo[1]?parseInt(Jo[1],10):null,qp=Jo&&Jo[2]?parseInt(Jo[2],10):null,BI=Yp&&Yp<10||qp&&qp<13||!1;function ab(e){const t=Cy(FI,{defaultMatches:!1});return e??(t||BI)}const lb={hasNextStep:!1,hasSeveralSteps:!1,goToNextStep:()=>{},areViewsInSameStep:()=>!0};function zI(e){const{steps:t,isViewMatchingStep:n,onStepChange:o}=e;return r=>{if(t==null)return lb;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(z({},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 ul=!1;function cb({onChange:e,onViewChange:t,openTo:n,view:o,views:r,autoFocus:i,focusedView:a,onFocusedViewChange:l,getStepNavigation:c}){process.env.NODE_ENV!=="production"&&(ul||(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('", "')}"]\`.`),ul=!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('", "')}"]\`.`),ul=!0)));const u=E.useRef(n),d=E.useRef(r),f=E.useRef(r.includes(n)?n:r[0]),[p,h]=Gn({name:"useViews",state:"view",controlled:o,default:f.current}),m=E.useRef(i?p:null),[g,y]=Gn({name:"useViews",state:"focusedView",controlled:a,default:m.current}),b=c?c({setView:h,view:p,defaultView:f.current,views:r}):lb;E.useEffect(()=>{(u.current&&u.current!==n||d.current&&d.current.some(k=>!r.includes(k)))&&(h(r.includes(n)?n:r[0]),d.current=r,u.current=n)},[n,h,p,r]);const C=r.indexOf(p),w=r[C-1]??null,S=r[C+1]??null,T=pe((k,V)=>{y(V?k:N=>k===N?null:N),l==null||l(k,V)}),P=pe(k=>{T(k,!0),k!==p&&(h(k),t&&t(k))}),A=pe(()=>{S&&P(S)}),I=pe((k,V,N)=>{const x=V==="finish",j=N?r.indexOf(N)<r.length-1:!!S;e(k,x&&j?"partial":V,N);let O=null;if(N!=null&&N!==p?O=N:x&&(O=p),O==null)return;const D=r[r.indexOf(O)+1];D==null||!b.areViewsInSameStep(O,D)||P(D)});return z({},b,{view:p,setView:P,focusedView:g,setFocusedView:T,nextView:S,previousView:w,defaultView:r.includes(n)?n:r[0],goToNextView:A,setValueAndGoToNextView:I})}function Gp(){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 WI(e,t){const[n,o]=E.useState(Gp);return St(()=>{const r=()=>{o(Gp())};return window.addEventListener("orientationchange",r),()=>{window.removeEventListener("orientationchange",r)}},[]),DI(e,["hours","minutes","seconds"])?"portrait":t??n}const Kp=new Set;function ub(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
|
|
124
|
+
`):e;Kp.has(n)||(Kp.add(n),t==="error"?console.error(n):console.warn(n))}const Ns=({name:e,timezone:t,value:n,defaultValue:o,referenceDate:r,onChange:i,valueManager:a})=>{const l=Ge(),[c,u]=Gn({name:e,state:"value",controlled:n,default:o??a.emptyValue}),d=E.useMemo(()=>a.getTimezone(l,c),[l,a,c]),f=pe(g=>d==null?g:a.setTimezone(l,d,g)),p=E.useMemo(()=>t||d||(r?l.getTimezone(Array.isArray(r)?r[0]:r):"default"),[t,d,r,l]),h=E.useMemo(()=>a.setTimezone(l,p,c),[a,l,p,c]),m=pe((g,...y)=>{const b=f(g);u(b),i==null||i(b,...y)});return{value:h,handleValueChange:m,timezone:p}};function UI(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}=E.useRef(i),{current:g}=E.useRef(r!==void 0),{current:y}=E.useRef(f!==void 0),b=Ge();process.env.NODE_ENV!=="production"&&t.renderInput!=null&&ub(["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"&&(E.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]),E.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:C,value:w,handleValueChange:S}=Ns({name:"a picker component",timezone:c,value:r,defaultValue:m,referenceDate:l,onChange:a,valueManager:n}),[T,P]=E.useState(()=>({open:!1,lastExternalValue:w,clockShallowValue:void 0,lastCommittedValue:w,hasBeenModifiedSinceMount:!1})),{getValidationErrorForNewValue:A}=jy({props:t,validator:o,timezone:C,value:w,onError:t.onError}),I=pe(x=>{const j=typeof x=="function"?x(T.open):x;y||P(R=>z({},R,{open:j})),j&&p&&p(),j||h==null||h()}),k=pe((x,j)=>{const{changeImportance:R="accept",skipPublicationIfPristine:O=!1,validationError:D,shortcut:_,source:F,shouldClose:B=R==="accept"}=j??{};let $,M;!O&&!g&&!T.hasBeenModifiedSinceMount?($=!0,M=R==="accept"):($=!n.areValuesEqual(b,x,w),M=R==="accept"&&!n.areValuesEqual(b,x,T.lastCommittedValue)),P(G=>z({},G,{clockShallowValue:$?void 0:G.clockShallowValue,lastCommittedValue:M?x:G.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let W=null;const K=()=>{if(!W){let G;F?G=F:_?G="view":G="unknown",W={validationError:D??A(x),source:G},_&&(W.shortcut=_)}return W};$&&S(x,K()),M&&u&&u(x,K()),B&&I(!1)});w!==T.lastExternalValue&&P(x=>z({},x,{lastExternalValue:w,clockShallowValue:void 0,hasBeenModifiedSinceMount:!0}));const V=pe((x,j="partial")=>{if(j==="shallow"){P(R=>z({},R,{clockShallowValue:x,hasBeenModifiedSinceMount:!0}));return}k(x,{changeImportance:j==="finish"&&d?"accept":"set",source:"view"})});E.useEffect(()=>{if(y){if(f===void 0)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");P(x=>z({},x,{open:f}))}},[y,f]);const N=E.useMemo(()=>n.cleanValue(b,T.clockShallowValue===void 0?w:T.clockShallowValue),[b,n,T.clockShallowValue,w]);return{timezone:C,state:T,setValue:k,setValueFromView:V,setOpen:I,value:w,viewValue:N}}const HI=["className","sx"],db=({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:b,orientation:C,disableOpenPicker:w,closeOnSelect:S,disabled:T,readOnly:P,formatDensity:A,enableAccessibleFieldDOMStructure:I,selectedSections:k,onSelectedSectionsChange:V,format:N,label:x,autoFocus:j,name:R}=t,{className:O,sx:D}=t,_=Ee(t,HI),F=eo(),B=Ge(),$=ab(b),M=WI(p,C),{current:W}=E.useRef(m??null),[K,G]=E.useState(null),Z=E.useRef(null),U=E.useRef(null),Q=E.useRef(null),J=_e(e,Q),{timezone:ee,state:q,setOpen:X,setValue:H,setValueFromView:oe,value:te,viewValue:ae}=UI({props:t,valueManager:n,validator:i}),{view:re,setView:be,defaultView:se,focusedView:he,setFocusedView:le,setValueAndGoToNextView:ue,goToNextStep:de,hasNextStep:Ie,hasSeveralSteps:Me}=cb({view:h,views:p,openTo:m,onChange:oe,onViewChange:g,autoFocus:l,getStepNavigation:f}),Ke=pe(()=>H(n.emptyValue,{source:"view"})),Qe=pe(()=>H(n.getTodayValue(B,ee,o),{source:"view"})),ke=pe(()=>H(te,{source:"view"})),ut=pe(()=>H(q.lastCommittedValue,{skipPublicationIfPristine:!0,source:"view"})),Se=pe(()=>{H(te,{skipPublicationIfPristine:!0,source:"view"})}),{hasUIView:Pe,viewModeLookup:xe,timeViewsCount:$e}=E.useMemo(()=>p.reduce((ht,tn)=>{const fd=y[tn]==null?"field":"UI";return ht.viewModeLookup[tn]=fd,fd==="UI"&&(ht.hasUIView=!0,Yk(tn)&&(ht.timeViewsCount+=1)),ht},{hasUIView:!1,viewModeLookup:{},timeViewsCount:0}),[y,p]),Le=xe[re],ot=pe(()=>Le),[Ze,At]=E.useState(Le==="UI"?re:null);Ze!==re&&xe[re]==="UI"&&At(re),St(()=>{Le==="field"&&q.open&&(X(!1),setTimeout(()=>{var ht,tn;(ht=U==null?void 0:U.current)==null||ht.setSelectedSections(re),(tn=U==null?void 0:U.current)==null||tn.focusField(re)}))},[re]),St(()=>{if(!q.open)return;let ht=re;Le==="field"&&Ze!=null&&(ht=Ze),ht!==se&&xe[ht]==="UI"&&xe[se]==="UI"&&(ht=se),ht!==re&&be(ht),le(ht,!0)},[q.open]);const Oe=E.useMemo(()=>({isPickerValueEmpty:n.areValuesEqual(B,te,n.emptyValue),isPickerOpen:q.open,isPickerDisabled:t.disabled??!1,isPickerReadOnly:t.readOnly??!1,pickerOrientation:M,pickerVariant:r}),[B,n,te,q.open,M,r,t.disabled,t.readOnly]),pt=E.useMemo(()=>w||!Pe?"hidden":T||P?"disabled":"enabled",[w,Pe,T,P]),wt=pe(de),Nt=E.useMemo(()=>S&&!Me?[]:["cancel","nextOrAccept"],[S,Me]),jn=E.useMemo(()=>({setValue:H,setOpen:X,clearValue:Ke,setValueToToday:Qe,acceptValueChanges:ke,cancelValueChanges:ut,setView:be,goToNextStep:wt}),[H,X,Ke,Qe,ke,ut,be,wt]),me=E.useMemo(()=>z({},jn,{value:te,timezone:ee,open:q.open,views:p,view:Ze,initialView:W,disabled:T??!1,readOnly:P??!1,autoFocus:j??!1,variant:r,orientation:M,popupRef:Z,reduceAnimations:$,triggerRef:G,triggerStatus:pt,hasNextStep:Ie,fieldFormat:N??"",name:R,label:x,rootSx:D,rootRef:J,rootClassName:O}),[jn,te,J,r,M,$,T,P,N,O,R,x,D,pt,Ie,ee,q.open,Ze,p,W,j]),Ae=E.useMemo(()=>({dismissViews:Se,ownerState:Oe,hasUIView:Pe,getCurrentViewMode:ot,rootRefObject:Q,labelId:F,triggerElement:K,viewContainerRole:d,defaultActionBarActions:Nt,onPopperExited:a}),[Se,Oe,Pe,ot,F,K,d,Nt,a]),bt=E.useMemo(()=>({formatDensity:A,enableAccessibleFieldDOMStructure:I,selectedSections:k,onSelectedSectionsChange:V,fieldRef:U}),[A,I,k,V,U]);return{providerProps:{localeText:u,contextValue:me,privateContextValue:Ae,actionsContextValue:jn,fieldPrivateContextValue:bt,isValidContextValue:ht=>{const tn=i({adapter:B,value:ht,timezone:ee,props:t});return!n.hasError(tn)}},renderCurrentView:()=>{if(Ze==null)return null;const ht=y[Ze];if(ht==null)return null;const tn=z({},_,{views:p,timezone:ee,value:ae,onChange:ue,view:Ze,onViewChange:be,showViewSwitcher:$e>1,timeViewsCount:$e},d==="tooltip"?{focusedView:null,onFocusedViewChange:()=>{}}:{focusedView:he,onFocusedViewChange:le});return c?v.jsx(c,{viewRenderers:y,popperView:Ze,rendererProps:tn}):ht(tn)},ownerState:Oe}};function fb(e){return Te("MuiPickersLayout",e)}const uo=Ce("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function YI(e){const{prototype:t={}}=e;return!!t.isReactComponent}function qI(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"&&!YI(i)&&(l="Did you accidentally provide a plain function component instead?"),i===E.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 da=Nn(s.elementType,qI);function Zp(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 Ai{constructor(){fe(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 Ai}static use(){const t=By(Ai.create).current,[n,o]=E.useState(!1);return t.shouldMount=n,t.setShouldMount=o,E.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=KI(),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 GI(){return Ai.use()}function KI(){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]=E.useState(!1),p=ge(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),h={width:a,height:a,top:-(a/2)+i,left:-(a/2)+r},m=ge(n.child,d&&n.childLeaving,o&&n.childPulsate);return!l&&!d&&f(!0),E.useEffect(()=>{if(!l&&c!=null){const g=setTimeout(c,u);return()=>{clearTimeout(g)}}},[c,l,u]),v.jsx("span",{className:p,style:h,children:v.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 Ht=Ce("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),mc=550,ZI=80,XI=Lt.keyframes`
|
|
111
128
|
0% {
|
|
112
129
|
transform: scale(0);
|
|
113
130
|
opacity: 0.1;
|
|
@@ -117,7 +134,7 @@ const theme2 = createTheme({ palette: {
|
|
|
117
134
|
transform: scale(1);
|
|
118
135
|
opacity: 0.3;
|
|
119
136
|
}
|
|
120
|
-
|
|
137
|
+
`,QI=Lt.keyframes`
|
|
121
138
|
0% {
|
|
122
139
|
opacity: 1;
|
|
123
140
|
}
|
|
@@ -125,7 +142,7 @@ const theme2 = createTheme({ palette: {
|
|
|
125
142
|
100% {
|
|
126
143
|
opacity: 0;
|
|
127
144
|
}
|
|
128
|
-
|
|
145
|
+
`,JI=Lt.keyframes`
|
|
129
146
|
0% {
|
|
130
147
|
transform: scale(1);
|
|
131
148
|
}
|
|
@@ -137,23 +154,23 @@ const theme2 = createTheme({ palette: {
|
|
|
137
154
|
100% {
|
|
138
155
|
transform: scale(1);
|
|
139
156
|
}
|
|
140
|
-
|
|
157
|
+
`,eA=ye("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),tA=ye(pb,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
141
158
|
opacity: 0;
|
|
142
159
|
position: absolute;
|
|
143
160
|
|
|
144
|
-
&.${
|
|
161
|
+
&.${Ht.rippleVisible} {
|
|
145
162
|
opacity: 0.3;
|
|
146
163
|
transform: scale(1);
|
|
147
|
-
animation-name: ${
|
|
148
|
-
animation-duration: ${
|
|
149
|
-
animation-timing-function: ${
|
|
164
|
+
animation-name: ${XI};
|
|
165
|
+
animation-duration: ${mc}ms;
|
|
166
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
150
167
|
}
|
|
151
168
|
|
|
152
|
-
&.${
|
|
153
|
-
animation-duration: ${
|
|
169
|
+
&.${Ht.ripplePulsate} {
|
|
170
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
154
171
|
}
|
|
155
172
|
|
|
156
|
-
& .${
|
|
173
|
+
& .${Ht.child} {
|
|
157
174
|
opacity: 1;
|
|
158
175
|
display: block;
|
|
159
176
|
width: 100%;
|
|
@@ -162,40 +179,67 @@ const theme2 = createTheme({ palette: {
|
|
|
162
179
|
background-color: currentColor;
|
|
163
180
|
}
|
|
164
181
|
|
|
165
|
-
& .${
|
|
182
|
+
& .${Ht.childLeaving} {
|
|
166
183
|
opacity: 0;
|
|
167
|
-
animation-name: ${
|
|
168
|
-
animation-duration: ${
|
|
169
|
-
animation-timing-function: ${
|
|
184
|
+
animation-name: ${QI};
|
|
185
|
+
animation-duration: ${mc}ms;
|
|
186
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
170
187
|
}
|
|
171
188
|
|
|
172
|
-
& .${
|
|
189
|
+
& .${Ht.childPulsate} {
|
|
173
190
|
position: absolute;
|
|
174
191
|
/* @noflip */
|
|
175
192
|
left: 0px;
|
|
176
193
|
top: 0;
|
|
177
|
-
animation-name: ${
|
|
194
|
+
animation-name: ${JI};
|
|
178
195
|
animation-duration: 2500ms;
|
|
179
|
-
animation-timing-function: ${
|
|
196
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
180
197
|
animation-iteration-count: infinite;
|
|
181
198
|
animation-delay: 200ms;
|
|
182
199
|
}
|
|
183
|
-
|
|
184
|
-
`))},[J]);const Te=C({},r,{centerRipple:i,component:c,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:m,tabIndex:M,focusVisible:U}),Ce=iw(Te);return y.jsxs(aw,C({as:Se,className:me(Ce.root,l),ownerState:Te,onBlur:ae,onClick:f,onContextMenu:K,onFocus:he,onKeyDown:we,onKeyUp:Oe,onMouseDown:X,onMouseLeave:ne,onMouseUp:te,onDragLeave:q,onTouchEnd:oe,onTouchMove:be,onTouchStart:ce,ref:Ze,tabIndex:u?-1:M,type:A},Me,I,{children:[a,J?y.jsx(_f,C({ref:B,center:i},F)):null]}))});process.env.NODE_ENV!=="production"&&(Un.propTypes={action:qt,centerRipple:o.bool,children:o.node,classes:o.object,className:o.string,component:bs,disabled:o.bool,disableRipple:o.bool,disableTouchRipple:o.bool,focusRipple:o.bool,focusVisibleClassName:o.string,href:o.any,LinkComponent:o.elementType,onBlur:o.func,onClick:o.func,onContextMenu:o.func,onDragLeave:o.func,onFocus:o.func,onFocusVisible:o.func,onKeyDown:o.func,onKeyUp:o.func,onMouseDown:o.func,onMouseLeave:o.func,onMouseUp:o.func,onTouchEnd:o.func,onTouchMove:o.func,onTouchStart:o.func,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,TouchRippleProps:o.object,touchRippleRef:o.oneOfType([o.func,o.shape({current:o.shape({pulsate:o.func.isRequired,start:o.func.isRequired,stop:o.func.isRequired})})]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string])});function lw(e){return Ie("MuiButton",e)}const Vr=Re("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"]),Nf=S.createContext({});process.env.NODE_ENV!=="production"&&(Nf.displayName="ButtonGroupContext");const $f=S.createContext(void 0);process.env.NODE_ENV!=="production"&&($f.displayName="ButtonGroupButtonContext");const cw=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],uw=e=>{const{color:t,disableElevation:n,fullWidth:r,size:s,variant:i,classes:a}=e,l={root:["root",i,`${i}${fe(t)}`,`size${fe(s)}`,`${i}Size${fe(s)}`,`color${fe(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${fe(s)}`],endIcon:["icon","endIcon",`iconSize${fe(s)}`]},c=Ve(l,lw,a);return C({},a,c)},Af=e=>C({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),dw=ye(Un,{shouldForwardProp:e=>Yt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${fe(n.color)}`],t[`size${fe(n.size)}`],t[`${n.variant}Size${fe(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const s=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return C({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":C({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":C({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Vr.focusVisible}`]:C({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Vr.disabled}`]:C({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${tt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:s,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Vr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Vr.disabled}`]:{boxShadow:"none"}}),fw=ye("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${fe(n.size)}`]]}})(({ownerState:e})=>C({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Af(e))),pw=ye("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${fe(n.size)}`]]}})(({ownerState:e})=>C({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Af(e))),mn=S.forwardRef(function(t,n){const r=S.useContext(Nf),s=S.useContext($f),i=or(r,t),a=Be({props:i,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:p=!1,disableElevation:m=!1,disableFocusRipple:g=!1,endIcon:h,focusVisibleClassName:f,fullWidth:b=!1,size:x="medium",startIcon:O,type:v,variant:w="text"}=a,E=re(a,cw),T=C({},a,{color:c,component:u,disabled:p,disableElevation:m,disableFocusRipple:g,fullWidth:b,size:x,type:v,variant:w}),P=uw(T),V=O&&y.jsx(fw,{className:P.startIcon,ownerState:T,children:O}),D=h&&y.jsx(pw,{className:P.endIcon,ownerState:T,children:h}),L=s||"";return y.jsxs(dw,C({ownerState:T,className:me(r.className,P.root,d,L),component:u,disabled:p,focusRipple:!g,focusVisibleClassName:me(P.focusVisible,f),ref:n,type:v},E,{classes:P,children:[V,l,D]}))});process.env.NODE_ENV!=="production"&&(mn.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","success","error","info","warning"]),o.string]),component:o.elementType,disabled:o.bool,disableElevation:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,endIcon:o.node,focusVisibleClassName:o.string,fullWidth:o.bool,href:o.string,size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),startIcon:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string]),variant:o.oneOfType([o.oneOf(["contained","outlined","text"]),o.string])});function mw(e){return Ie("MuiDialogActions",e)}Re("MuiDialogActions",["root","spacing"]);const hw=["className","disableSpacing"],gw=e=>{const{classes:t,disableSpacing:n}=e;return Ve({root:["root",!n&&"spacing"]},mw,t)},bw=ye("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>C({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),jf=S.forwardRef(function(t,n){const r=Be({props:t,name:"MuiDialogActions"}),{className:s,disableSpacing:i=!1}=r,a=re(r,hw),l=C({},r,{disableSpacing:i}),c=gw(l);return y.jsx(bw,C({className:me(c.root,s),ownerState:l,ref:n},a))});process.env.NODE_ENV!=="production"&&(jf.propTypes={children:o.node,classes:o.object,className:o.string,disableSpacing:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const yw=["actions"],vw=se.styled(jf,{name:"MuiPickersLayout",slot:"ActionBar"})({});function Lf(e){const{actions:t}=e,n=re(e,yw),r=En(),{clearValue:s,setValueToToday:i,acceptValueChanges:a,cancelValueChanges:l,goToNextStep:c,hasNextStep:u}=ko();if(t==null||t.length===0)return null;const d=t==null?void 0:t.map(p=>{switch(p){case"clear":return y.jsx(mn,{onClick:s,children:r.clearButtonLabel},p);case"cancel":return y.jsx(mn,{onClick:l,children:r.cancelButtonLabel},p);case"accept":return y.jsx(mn,{onClick:a,children:r.okButtonLabel},p);case"today":return y.jsx(mn,{onClick:i,children:r.todayButtonLabel},p);case"next":return y.jsx(mn,{onClick:c,children:r.nextStepButtonLabel},p);case"nextOrAccept":return u?y.jsx(mn,{onClick:c,children:r.nextStepButtonLabel},p):y.jsx(mn,{onClick:a,children:r.okButtonLabel},p);default:return null}});return y.jsx(vw,C({},n,{children:d}))}process.env.NODE_ENV!=="production"&&(Lf.propTypes={actions:o.arrayOf(o.oneOf(["accept","cancel","clear","next","nextOrAccept","today"]).isRequired),disableSpacing:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Ff=S.memo(Lf);process.env.NODE_ENV!=="production"&&(Ff.displayName="PickersActionBar");const uo=S.createContext({});process.env.NODE_ENV!=="production"&&(uo.displayName="ListContext");function xw(e){return Ie("MuiList",e)}Re("MuiList",["root","padding","dense","subheader"]);const Sw=["children","className","component","dense","disablePadding","subheader"],Cw=e=>{const{classes:t,disablePadding:n,dense:r,subheader:s}=e;return Ve({root:["root",!n&&"padding",r&&"dense",s&&"subheader"]},xw,t)},ww=ye("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]}})(({ownerState:e})=>C({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Ka=S.forwardRef(function(t,n){const r=Be({props:t,name:"MuiList"}),{children:s,className:i,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:u}=r,d=re(r,Sw),p=S.useMemo(()=>({dense:l}),[l]),m=C({},r,{component:a,dense:l,disablePadding:c}),g=Cw(m);return y.jsx(uo.Provider,{value:p,children:y.jsxs(ww,C({as:a,className:me(g.root,i),ref:n,ownerState:m},d,{children:[u,s]}))})});process.env.NODE_ENV!=="production"&&(Ka.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disablePadding:o.bool,subheader:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Ew(e){return Ie("MuiListItem",e)}const to=Re("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Ow=Re("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Tw(e){return Ie("MuiListItemSecondaryAction",e)}Re("MuiListItemSecondaryAction",["root","disableGutters"]);const Pw=["className"],kw=e=>{const{disableGutters:t,classes:n}=e;return Ve({root:["root",t&&"disableGutters"]},Tw,n)},Mw=ye("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>C({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Za=S.forwardRef(function(t,n){const r=Be({props:t,name:"MuiListItemSecondaryAction"}),{className:s}=r,i=re(r,Pw),a=S.useContext(uo),l=C({},r,{disableGutters:a.disableGutters}),c=kw(l);return y.jsx(Mw,C({className:me(c.root,s),ownerState:l,ref:n},i))});process.env.NODE_ENV!=="production"&&(Za.propTypes={children:o.node,classes:o.object,className:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});Za.muiName="ListItemSecondaryAction";const Rw=["className"],Dw=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Iw=(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.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},_w=e=>{const{alignItems:t,button:n,classes:r,dense:s,disabled:i,disableGutters:a,disablePadding:l,divider:c,hasSecondaryAction:u,selected:d}=e;return Ve({root:["root",s&&"dense",!a&&"gutters",!l&&"padding",c&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",d&&"selected"],container:["container"]},Ew,r)},Nw=ye("div",{name:"MuiListItem",slot:"Root",overridesResolver:Iw})(({theme:e,ownerState:t})=>C({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&C({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Ow.root}`]:{paddingRight:48}},{[`&.${to.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${to.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${to.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${to.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{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"}},[`&.${to.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:tt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),$w=ye("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Vf=S.forwardRef(function(t,n){const r=Be({props:t,name:"MuiListItem"}),{alignItems:s="center",autoFocus:i=!1,button:a=!1,children:l,className:c,component:u,components:d={},componentsProps:p={},ContainerComponent:m="li",ContainerProps:{className:g}={},dense:h=!1,disabled:f=!1,disableGutters:b=!1,disablePadding:x=!1,divider:O=!1,focusVisibleClassName:v,secondaryAction:w,selected:E=!1,slotProps:T={},slots:P={}}=r,V=re(r.ContainerProps,Rw),D=re(r,Dw),L=S.useContext(uo),$=S.useMemo(()=>({dense:h||L.dense||!1,alignItems:s,disableGutters:b}),[s,L.dense,h,b]),M=S.useRef(null);Ht(()=>{i&&(M.current?M.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a ListItem whose component has not been rendered."))},[i]);const F=S.Children.toArray(l),j=F.length&&Yo(F[F.length-1],["ListItemSecondaryAction"]),A=C({},r,{alignItems:s,autoFocus:i,button:a,dense:$.dense,disabled:f,disableGutters:b,disablePadding:x,divider:O,hasSecondaryAction:j,selected:E}),I=_w(A),N=pt(M,n),_=P.root||d.Root||Nw,B=T.root||p.root||{},R=C({className:me(I.root,B.className,c),disabled:f},D);let k=u||"li";return a&&(R.component=u||"div",R.focusVisibleClassName=me(to.focusVisible,v),k=Un),j?(k=!R.component&&!u?"div":k,m==="li"&&(k==="li"?k="div":R.component==="li"&&(R.component="div")),y.jsx(uo.Provider,{value:$,children:y.jsxs($w,C({as:m,className:me(I.container,g),ref:N,ownerState:A},V,{children:[y.jsx(_,C({},B,!mo(_)&&{as:k,ownerState:C({},A,B.ownerState)},R,{children:F})),F.pop()]}))})):y.jsx(uo.Provider,{value:$,children:y.jsxs(_,C({},B,{as:k,ref:N},!mo(_)&&{ownerState:C({},A,B.ownerState)},R,{children:[F,w&&y.jsx(Za,{children:w})]}))})});process.env.NODE_ENV!=="production"&&(Vf.propTypes={alignItems:o.oneOf(["center","flex-start"]),autoFocus:o.bool,button:o.bool,children:Sn(o.node,e=>{const t=S.Children.toArray(e.children);let n=-1;for(let r=t.length-1;r>=0;r-=1){const s=t[r];if(Yo(s,["ListItemSecondaryAction"])){n=r;break}}return n!==-1&&n!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:o.object,className:o.string,component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.object}),ContainerComponent:bs,ContainerProps:o.object,dense:o.bool,disabled:o.bool,disableGutters:o.bool,disablePadding:o.bool,divider:o.bool,focusVisibleClassName:o.string,secondaryAction:o.node,selected:o.bool,slotProps:o.shape({root:o.object}),slots:o.shape({root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Aw=dt(y.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 jw(e){return Ie("MuiChip",e)}const De=Re("MuiChip",["root","sizeSmall","sizeMedium","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"]),Lw=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Fw=e=>{const{classes:t,disabled:n,size:r,color:s,iconColor:i,onDelete:a,clickable:l,variant:c}=e,u={root:["root",c,n&&"disabled",`size${fe(r)}`,`color${fe(s)}`,l&&"clickable",l&&`clickableColor${fe(s)}`,a&&"deletable",a&&`deletableColor${fe(s)}`,`${c}${fe(s)}`],label:["label",`label${fe(r)}`],avatar:["avatar",`avatar${fe(r)}`,`avatarColor${fe(s)}`],icon:["icon",`icon${fe(r)}`,`iconColor${fe(i)}`],deleteIcon:["deleteIcon",`deleteIcon${fe(r)}`,`deleteIconColor${fe(s)}`,`deleteIcon${fe(c)}Color${fe(s)}`]};return Ve(u,jw,t)},Vw=ye("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:s,clickable:i,onDelete:a,size:l,variant:c}=n;return[{[`& .${De.avatar}`]:t.avatar},{[`& .${De.avatar}`]:t[`avatar${fe(l)}`]},{[`& .${De.avatar}`]:t[`avatarColor${fe(r)}`]},{[`& .${De.icon}`]:t.icon},{[`& .${De.icon}`]:t[`icon${fe(l)}`]},{[`& .${De.icon}`]:t[`iconColor${fe(s)}`]},{[`& .${De.deleteIcon}`]:t.deleteIcon},{[`& .${De.deleteIcon}`]:t[`deleteIcon${fe(l)}`]},{[`& .${De.deleteIcon}`]:t[`deleteIconColor${fe(r)}`]},{[`& .${De.deleteIcon}`]:t[`deleteIcon${fe(c)}Color${fe(r)}`]},t.root,t[`size${fe(l)}`],t[`color${fe(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${fe(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${fe(r)}`],t[c],t[`${c}${fe(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return C({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,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:n,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}`]:C({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&C({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${De.deleteIcon}`]:C({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:tt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:tt(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:tt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${De.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${De.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>C({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${De.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${De.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>C({},t.variant==="outlined"&&{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}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:tt(e.palette[t.color].main,.7)}`,[`&.${De.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${De.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:tt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${De.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:tt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Bw=ye("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${fe(r)}`]]}})(({ownerState:e})=>C({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function Zc(e){return e.key==="Backspace"||e.key==="Delete"}const Bf=S.forwardRef(function(t,n){const r=Be({props:t,name:"MuiChip"}),{avatar:s,className:i,clickable:a,color:l="default",component:c,deleteIcon:u,disabled:d=!1,icon:p,label:m,onClick:g,onDelete:h,onKeyDown:f,onKeyUp:b,size:x="medium",variant:O="filled",tabIndex:v,skipFocusWhenDisabled:w=!1}=r,E=re(r,Lw),T=S.useRef(null),P=pt(T,n),V=B=>{B.stopPropagation(),h&&h(B)},D=B=>{B.currentTarget===B.target&&Zc(B)&&B.preventDefault(),f&&f(B)},L=B=>{B.currentTarget===B.target&&(h&&Zc(B)?h(B):B.key==="Escape"&&T.current&&T.current.blur()),b&&b(B)},$=a!==!1&&g?!0:a,M=$||h?Un:c||"div",F=C({},r,{component:M,disabled:d,size:x,color:l,iconColor:S.isValidElement(p)&&p.props.color||l,onDelete:!!h,clickable:$,variant:O}),j=Fw(F),A=M===Un?C({component:c||"div",focusVisibleClassName:j.focusVisible},h&&{disableRipple:!0}):{};let I=null;h&&(I=u&&S.isValidElement(u)?S.cloneElement(u,{className:me(u.props.className,j.deleteIcon),onClick:V}):y.jsx(Aw,{className:me(j.deleteIcon),onClick:V}));let N=null;s&&S.isValidElement(s)&&(N=S.cloneElement(s,{className:me(j.avatar,s.props.className)}));let _=null;return p&&S.isValidElement(p)&&(_=S.cloneElement(p,{className:me(j.icon,p.props.className)})),process.env.NODE_ENV!=="production"&&N&&_&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."),y.jsxs(Vw,C({as:M,className:me(j.root,i),disabled:$&&d?!0:void 0,onClick:g,onKeyDown:D,onKeyUp:L,ref:P,tabIndex:w&&d?-1:v,ownerState:F},A,E,{children:[N||_,y.jsx(Bw,{className:me(j.label),ownerState:F,children:m}),I]}))});process.env.NODE_ENV!=="production"&&(Bf.propTypes={avatar:o.element,children:Lm,classes:o.object,className:o.string,clickable:o.bool,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,deleteIcon:o.element,disabled:o.bool,icon:o.element,label:o.node,onClick:o.func,onDelete:o.func,onKeyDown:o.func,onKeyUp:o.func,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),skipFocusWhenDisabled:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,variant:o.oneOfType([o.oneOf(["filled","outlined"]),o.string])});const fr=36,Ws=2,Us=320,zw=280,Xa=336,Ww=["items","changeImportance"],Uw=["getValue"],Hw=se.styled(Ka,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function zf(e){const{items:t,changeImportance:n="accept"}=e,r=re(e,Ww),{setValue:s}=wS(),i=lS();if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:c}=l,u=re(l,Uw);const d=c({isValid:i});return C({},u,{label:u.label,onClick:()=>{s(d,{changeImportance:n,shortcut:u,source:"view"})},disabled:!i(d)})});return y.jsx(Hw,C({dense:!0,sx:[{maxHeight:Xa,maxWidth:200,overflow:"auto"},...Array.isArray(r.sx)?r.sx:[r.sx]]},r,{children:a.map(l=>y.jsx(Vf,{children:y.jsx(Bf,C({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(zf.propTypes={changeImportance:o.oneOf(["accept","set"]),className:o.string,component:o.elementType,dense:o.bool,disablePadding:o.bool,items:o.arrayOf(o.shape({getValue:o.func.isRequired,id:o.string,label:o.string.isRequired})),style:o.object,subheader:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const qw=["ownerState"];function Yw(e){return e.view!==null}const Gw=(e,t)=>{const{pickerOrientation:n}=t;return nt({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Df,e)},Kw=e=>{const{ownerState:t,defaultActionBarActions:n}=gt(),{view:r}=ko(),s=on(),{children:i,slots:a,slotProps:l,classes:c}=e,u=S.useMemo(()=>C({},t,{layoutDirection:s?"rtl":"ltr",hasShortcuts:!1}),[t,s]),d=Gw(c,u),p=(a==null?void 0:a.actionBar)??Ff,m=Fe({elementType:p,externalSlotProps:l==null?void 0:l.actionBar,additionalProps:{actions:n},className:d.actionBar,ownerState:u}),g=re(m,qw),h=y.jsx(p,C({},g)),f=a==null?void 0:a.toolbar,b=Fe({elementType:f,externalSlotProps:l==null?void 0:l.toolbar,className:d.toolbar,ownerState:u}),x=Yw(b)&&f?y.jsx(f,C({},b)):null,O=i,v=a==null?void 0:a.tabs,w=r&&v?y.jsx(v,C({className:d.tabs},l==null?void 0:l.tabs)):null,E=(a==null?void 0:a.shortcuts)??zf,T=Fe({elementType:E,externalSlotProps:l==null?void 0:l.shortcuts,className:d.shortcuts,ownerState:u}),P=Array.isArray(T==null?void 0:T.items)&&T.items.length>0,V=r&&E?y.jsx(E,C({},T)):null;return{toolbar:x,content:O,tabs:w,actionBar:h,shortcuts:V,ownerState:C({},u,{hasShortcuts:P})}},Zw=(e,t)=>{const{pickerOrientation:n}=t;return nt({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},Df,e)},Xw=se.styled("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Pn.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape",hasShortcuts:!1},style:{[`& .${Pn.toolbar}`]:{gridColumn:1,gridRow:"1 / 3"}}},{props:{pickerOrientation:"landscape",hasShortcuts:!0},style:{[`& .${Pn.toolbar}`]:{gridColumn:"2 / 4",gridRow:1,maxWidth:"max-content"},[`& .${Pn.shortcuts}`]:{gridColumn:1,gridRow:2}}},{props:{pickerOrientation:"portrait"},style:{[`& .${Pn.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Pn.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{hasShortcuts:!0,layoutDirection:"rtl"},style:{[`& .${Pn.shortcuts}`]:{gridColumn:4}}}]}),Qw=se.styled("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),Hs=S.forwardRef(function(t,n){const r=se.useThemeProps({props:t,name:"MuiPickersLayout"}),{toolbar:s,content:i,tabs:a,actionBar:l,shortcuts:c,ownerState:u}=Kw(r),{orientation:d,variant:p}=ko(),{sx:m,className:g,classes:h}=r,f=Zw(h,u);return y.jsxs(Xw,{ref:n,sx:m,className:me(f.root,g),ownerState:u,children:[d==="landscape"?c:s,d==="landscape"?s:c,y.jsx(Qw,{className:f.contentWrapper,ownerState:u,children:p==="desktop"?y.jsxs(S.Fragment,{children:[i,a]}):y.jsxs(S.Fragment,{children:[a,i]})}),l]})});process.env.NODE_ENV!=="production"&&(Hs.displayName="PickersLayout");process.env.NODE_ENV!=="production"&&(Hs.propTypes={children:o.node,classes:o.object,className:o.string,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Wf(e){const{steps:t}=e;return q1({steps:t,isViewMatchingStep:(n,r)=>r.views==null||r.views.includes(n),onStepChange:({step:n,defaultView:r,setView:s,view:i,views:a})=>{const l=n.views==null?r:n.views.find(c=>a.includes(c));l!==i&&s(l)}})}const Jw=["props","steps"],eE=["ownerState"],tE=e=>{var T;let{props:t,steps:n}=e,r=re(e,Jw);const{slots:s,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=Wf({steps:n}),{providerProps:d,renderCurrentView:p,ownerState:m}=Rf(C({},r,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"desktop",getStepNavigation:u})),g=d.privateContextValue.labelId,h=((T=i==null?void 0:i.toolbar)==null?void 0:T.hidden)??!1,f=s.field,b=Fe({elementType:f,externalSlotProps:i==null?void 0:i.field,additionalProps:C({},h&&{id:g}),ownerState:m}),x=re(b,eE),O=s.layout??Hs;let v=g;h&&(a?v=`${g}-label`:v=void 0);const w=C({},i,{toolbar:C({},i==null?void 0:i.toolbar,{titleId:g}),popper:C({"aria-labelledby":v},i==null?void 0:i.popper)}),E=()=>y.jsxs(Jd,C({},d,{children:[y.jsx(f,C({},x,{slots:C({},s,x.slots),slotProps:C({},w,x.slotProps),inputRef:l})),y.jsx(B1,{slots:s,slotProps:w,children:y.jsx(O,C({},w==null?void 0:w.layout,{slots:s,slotProps:w,children:p()}))})]}));return process.env.NODE_ENV!=="production"&&(E.displayName="renderPicker"),{renderPicker:E}},Jn=e=>e.saveQuery!=null,Uf=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:n,timezone:r,setCharacterQuery:s,setTempAndroidValueStr:i,updateSectionValue:a}})=>{const l=He(),c=({keyPressed:p,sectionIndex:m},g,h)=>{const f=p.toLowerCase(),b=n.sections[m];if(n.characterQuery!=null&&(!h||h(n.characterQuery.value))&&n.characterQuery.sectionIndex===m){const O=`${n.characterQuery.value}${f}`,v=g(O,b);if(!Jn(v))return s({sectionIndex:m,value:O,sectionType:b.type}),v}const x=g(f,b);return Jn(x)&&!x.saveQuery?(s(null),null):(s({sectionIndex:m,value:f,sectionType:b.type}),Jn(x)?null:x)},u=p=>{const m=(f,b,x)=>{const O=b.filter(v=>v.toLowerCase().startsWith(x));return O.length===0?{saveQuery:!1}:{sectionValue:O[0],shouldGoToNextSection:O.length===1}},g=(f,b,x,O)=>{const v=w=>Kd(l,r,b.type,w);if(b.contentType==="letter")return m(b.format,v(b.format),f);if(x&&O!=null&&Ta(l,x).contentType==="letter"){const w=v(x),E=m(x,w,f);return Jn(E)?{saveQuery:!1}:C({},E,{sectionValue:O(E.sectionValue,w)})}return{saveQuery:!1}};return c(p,(f,b)=>{switch(b.type){case"month":{const x=O=>vc(l,O,l.formats.month,b.format);return g(f,b,l.formats.month,x)}case"weekDay":{const x=(O,v)=>v.indexOf(O).toString();return g(f,b,l.formats.weekday,x)}case"meridiem":return g(f,b);default:return{saveQuery:!1}}})},d=p=>{const m=({queryValue:h,skipIfBelowMinimum:f,section:b})=>{const x=zn(h,e),O=Number(x),v=t[b.type]({currentDate:null,format:b.format,contentType:b.contentType});if(O>v.maximum)return{saveQuery:!1};if(f&&O<v.minimum)return{saveQuery:!0};const w=O*10>v.maximum||x.length===v.maximum.toString().length;return{sectionValue:Zd(l,O,v,e,b),shouldGoToNextSection:w}};return c(p,(h,f)=>{if(f.contentType==="digit"||f.contentType==="digit-with-letter")return m({queryValue:h,skipIfBelowMinimum:!1,section:f});if(f.type==="month"){Xd(l,"digit","month","MM");const b=m({queryValue:h,skipIfBelowMinimum:!0,section:{type:f.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2}});if(Jn(b))return b;const x=vc(l,b.sectionValue,"MM",f.format);return C({},b,{sectionValue:x})}if(f.type==="weekDay"){const b=m({queryValue:h,skipIfBelowMinimum:!0,section:f});if(Jn(b))return b;const x=Ns(l,f.format)[Number(b.sectionValue)-1];return C({},b,{sectionValue:x})}return{saveQuery:!1}},h=>yc(h,e))};return ge(p=>{const m=n.sections[p.sectionIndex],h=yc(p.keyPressed,e)?d(C({},p,{keyPressed:Pa(p.keyPressed,e)})):u(p);if(h==null){i(null);return}a({section:m,newSectionValue:h.sectionValue,shouldGoToNextSection:h.shouldGoToNextSection})})},Xc={};function nE(e,t){const n=S.useRef(Xc);return n.current===Xc&&(n.current=e(t)),n}const oE=[];function rE(e){S.useEffect(e,oE)}class Qa{constructor(){de(this,"currentId",null);de(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});de(this,"disposeEffect",()=>this.clear)}static create(){return new Qa}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function fo(){const e=nE(Qa.create).current;return rE(e.disposeEffect),e}const sE=5e3,Hf=e=>{var be;const t=He(),n=En(),r=on(),{manager:{validator:s,valueType:i,internal_valueManager:a,internal_fieldValueManager:l},internalPropsWithDefaults:c,internalPropsWithDefaults:{value:u,defaultValue:d,referenceDate:p,onChange:m,format:g,formatDensity:h="dense",selectedSections:f,onSelectedSectionsChange:b,shouldRespectLeadingZeros:x=!1,timezone:O,enableAccessibleFieldDOMStructure:v=!0},forwardedProps:{error:w}}=e,{value:E,handleValueChange:T,timezone:P}=Mr({name:"a field component",timezone:O,value:u,defaultValue:d,referenceDate:p,onChange:m,valueManager:a}),V=S.useRef(E);S.useEffect(()=>{V.current=E},[E]);const{hasValidationError:D}=af({props:c,validator:s,timezone:P,value:E,onError:c.onError}),L=S.useMemo(()=>F0(t),[t]),$=S.useMemo(()=>U0(t,L,P),[t,L,P]),M=S.useCallback(ae=>l.getSectionsFromValue(ae,he=>Tc({adapter:t,localeText:n,localizedDigits:L,format:g,date:he,formatDensity:h,shouldRespectLeadingZeros:x,enableAccessibleFieldDOMStructure:v,isRtl:r})),[l,g,n,L,r,x,t,h,v]),[F,j]=S.useState(()=>{const ae=M(E);Sc(ae,i);const he={sections:ae,lastExternalValue:E,lastSectionsDependencies:{format:g,isRtl:r,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},le=A0(ae),ue=a.getInitialReferenceValue({referenceDate:p,value:E,adapter:t,props:c,granularity:le,timezone:P});return C({},he,{referenceValue:ue})}),[A,I]=So({controlled:f,default:null,name:"useField",state:"selectedSections"}),N=ae=>{I(ae),b==null||b(ae)},_=S.useMemo(()=>Gi(A,F.sections),[A,F.sections]),B=_==="all"?0:_,R=S.useMemo(()=>Y0(F.sections,r&&!v),[F.sections,r,v]),k=S.useMemo(()=>F.sections.every(ae=>ae.value===""),[F.sections]),W=S.useMemo(()=>{if(B!=null)return!1;const ae=F.sections.filter(he=>he.value!=="");return ae.length>0&&F.sections.length-ae.length>0},[F.sections,B]),G=S.useMemo(()=>w!==void 0?w:D||W,[D,W,w]),U=ae=>{const he={validationError:s({adapter:t,value:ae,timezone:P,props:c})};T(ae,he)},Y=(ae,he)=>{const le=[...F.sections];return le[ae]=C({},le[ae],{value:he,modified:!0}),le},H=S.useRef(null),Z=fo(),J=ae=>{B!=null&&(H.current={sectionIndex:B,value:ae},Z.start(0,()=>{H.current=null}))},ee=()=>{a.areValuesEqual(t,E,a.emptyValue)?j(ae=>C({},ae,{sections:ae.sections.map(he=>C({},he,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(j(ae=>C({},ae,{characterQuery:null})),U(a.emptyValue))},X=()=>{if(B==null)return;const ae=F.sections[B];ae.value!==""&&(J(""),l.getDateFromSection(E,ae)===null?j(he=>C({},he,{sections:Y(B,""),tempValueStrAndroid:null,characterQuery:null})):(j(he=>C({},he,{characterQuery:null})),U(l.updateDateInValue(E,ae,null))))},K=ae=>{const he=(ue,we)=>{const Oe=t.parse(ue,g);if(!t.isValid(Oe))return null;const Se=Tc({adapter:t,localeText:n,localizedDigits:L,format:g,date:Oe,formatDensity:h,shouldRespectLeadingZeros:x,enableAccessibleFieldDOMStructure:v,isRtl:r});return wc(t,Oe,Se,we,!1)},le=l.parseValueStr(ae,F.referenceValue,he);U(le)},q=fo(),te=({section:ae,newSectionValue:he,shouldGoToNextSection:le})=>{Z.clear(),q.clear();const ue=l.getDateFromSection(E,ae);le&&B<F.sections.length-1&&N(B+1);const we=Y(B,he),Oe=l.getDateSectionsFromValue(we,ae),Se=B0(t,Oe,L);if(t.isValid(Se)){const Me=wc(t,Se,Oe,l.getDateFromSection(F.referenceValue,ae),!0);return ue==null&&q.start(0,()=>{V.current===E&&j(Ze=>C({},Ze,{sections:l.clearDateSections(F.sections,ae),tempValueStrAndroid:null}))}),U(l.updateDateInValue(E,ae,Me))}return Oe.every(Me=>Me.value!=="")&&(ue==null||t.isValid(ue))?(J(he),U(l.updateDateInValue(E,ae,Se))):(ue!=null&&(J(he),U(l.updateDateInValue(E,ae,Se))),j(Me=>C({},Me,{sections:we,tempValueStrAndroid:null})))},ne=ae=>j(he=>C({},he,{tempValueStrAndroid:ae})),ce=ge(ae=>{j(he=>C({},he,{characterQuery:ae}))});if(E!==F.lastExternalValue){const ae=H.current!=null&&!t.isValid(l.getDateFromSection(E,F.sections[H.current.sectionIndex]));let he;ae?he=Y(H.current.sectionIndex,H.current.value):he=M(E),j(le=>C({},le,{lastExternalValue:E,sections:he,sectionsDependencies:{format:g,isRtl:r,locale:t.locale},referenceValue:ae?le.referenceValue:l.updateReferenceValue(t,E,le.referenceValue),tempValueStrAndroid:null}))}if(r!==F.lastSectionsDependencies.isRtl||g!==F.lastSectionsDependencies.format||t.locale!==F.lastSectionsDependencies.locale){const ae=M(E);Sc(ae,i),j(he=>C({},he,{lastSectionsDependencies:{format:g,isRtl:r,locale:t.locale},sections:ae,tempValueStrAndroid:null,characterQuery:null}))}F.characterQuery!=null&&!G&&B==null&&ce(null),F.characterQuery!=null&&((be=F.sections[F.characterQuery.sectionIndex])==null?void 0:be.type)!==F.characterQuery.sectionType&&ce(null),S.useEffect(()=>{H.current!=null&&(H.current=null)});const oe=fo();return S.useEffect(()=>(F.characterQuery!=null&&oe.start(sE,()=>ce(null)),()=>{}),[F.characterQuery,ce,oe]),S.useEffect(()=>{F.tempValueStrAndroid!=null&&B!=null&&X()},[F.sections]),{activeSectionIndex:B,areAllSectionsEmpty:k,error:G,localizedDigits:L,parsedSelectedSections:_,sectionOrder:R,sectionsValueBoundaries:$,state:F,timezone:P,value:E,clearValue:ee,clearActiveSection:X,setCharacterQuery:ce,setSelectedSections:N,setTempAndroidValueStr:ne,updateSectionValue:te,updateValueFromValueStr:K,getSectionsFromValue:M}};function qf(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:r}=e,s=$a(),i=Qd(),a=Ct(n.unstableFieldRef,r?null:i==null?void 0:i.fieldRef),l=s==null?void 0:s.setValue,c=S.useCallback((d,p)=>l==null?void 0:l(d,{validationError:p.validationError,shouldClose:!1}),[l]),u=S.useMemo(()=>i!=null&&s!=null?C({value:s.value,onChange:c,timezone:s.timezone,disabled:s.disabled,readOnly:s.readOnly,autoFocus:s.autoFocus&&!s.open,focused:s.open?!0:void 0,format:s.fieldFormat,formatDensity:i.formatDensity,enableAccessibleFieldDOMStructure:i.enableAccessibleFieldDOMStructure,selectedSections:i.selectedSections,onSelectedSectionsChange:i.onSelectedSectionsChange,unstableFieldRef:a},n):n,[s,i,n,c,a]);return t(u)}function Ja(e){const{focused:t,domGetters:n,stateResponse:{parsedSelectedSections:r,state:s}}=e;if(!n.isReady())return;const i=Xo(n.getRoot()).getSelection();if(!i)return;if(r==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(xt(n.getRoot())))return;const a=new window.Range;let l;r==="all"?l=n.getRoot():s.sections[r].type==="empty"?l=n.getSectionContainer(r):l=n.getSectionContent(r),a.selectNodeContents(l),l.focus(),i.removeAllRanges(),i.addRange(a)}function Yf(e){const t=He(),{manager:{internal_fieldValueManager:n},internalPropsWithDefaults:{minutesStep:r,disabled:s,readOnly:i},stateResponse:{state:a,value:l,activeSectionIndex:c,parsedSelectedSections:u,sectionsValueBoundaries:d,localizedDigits:p,timezone:m,sectionOrder:g,clearValue:h,clearActiveSection:f,setSelectedSections:b,updateSectionValue:x}}=e;return ge(O=>{if(!s)switch(!0){case((O.ctrlKey||O.metaKey)&&String.fromCharCode(O.keyCode)==="A"&&!O.shiftKey&&!O.altKey):{O.preventDefault(),b("all");break}case O.key==="ArrowRight":{if(O.preventDefault(),u==null)b(g.startIndex);else if(u==="all")b(g.endIndex);else{const v=g.neighbors[u].rightIndex;v!==null&&b(v)}break}case O.key==="ArrowLeft":{if(O.preventDefault(),u==null)b(g.endIndex);else if(u==="all")b(g.startIndex);else{const v=g.neighbors[u].leftIndex;v!==null&&b(v)}break}case O.key==="Delete":{if(O.preventDefault(),i)break;u==null||u==="all"?h():f();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(O.key):{if(O.preventDefault(),i||c==null)break;u==="all"&&b(c);const v=a.sections[c],w=aE(t,m,v,O.key,d,p,n.getDateFromSection(l,v),{minutesStep:r});x({section:v,newSectionValue:w,shouldGoToNextSection:!1});break}}})}function iE(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function aE(e,t,n,r,s,i,a,l){const c=iE(r),u=r==="Home",d=r==="End",p=n.value===""||u||d,m=()=>{const h=s[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),f=O=>Zd(e,O,h,i,n),b=n.type==="minutes"&&(l!=null&&l.minutesStep)?l.minutesStep:1;let x;if(p){if(n.type==="year"&&!d&&!u)return e.formatByString(e.date(void 0,t),n.format);c>0||u?x=h.minimum:x=h.maximum}else x=parseInt(zn(n.value,i),10)+c*b;return x%b!==0&&((c<0||u)&&(x+=b-(b+x)%b),(c>0||d)&&(x-=x%b)),x>h.maximum?f(h.minimum+(x-h.maximum-1)%(h.maximum-h.minimum+1)):x<h.minimum?f(h.maximum-(h.minimum-x-1)%(h.maximum-h.minimum+1)):f(x)},g=()=>{const h=Kd(e,t,n.type,n.format);if(h.length===0)return n.value;if(p)return c>0||u?h[0]:h[h.length-1];const x=((h.indexOf(n.value)+c)%h.length+h.length)%h.length;return h[x]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?m():g()}function lE(e){const{manager:t,focused:n,setFocused:r,domGetters:s,stateResponse:i,applyCharacterEditing:a,internalPropsWithDefaults:l,stateResponse:{parsedSelectedSections:c,sectionOrder:u,state:d,clearValue:p,setCharacterQuery:m,setSelectedSections:g,updateValueFromValueStr:h},internalPropsWithDefaults:{disabled:f=!1,readOnly:b=!1}}=e,x=Yf({manager:t,internalPropsWithDefaults:l,stateResponse:i}),O=fo(),v=ge(V=>{f||!s.isReady()||(r(!0),c==="all"?O.start(0,()=>{const D=document.getSelection().getRangeAt(0).startOffset;if(D===0){g(u.startIndex);return}let L=0,$=0;for(;$<D&&L<d.sections.length;){const M=d.sections[L];L+=1,$+=`${M.startSeparator}${M.value||M.placeholder}${M.endSeparator}`.length}g(L-1)}):n?s.getRoot().contains(V.target)||g(u.startIndex):(r(!0),g(u.startIndex)))}),w=ge(V=>{if(!s.isReady()||c!=="all")return;const L=V.target.textContent??"";s.getRoot().innerHTML=d.sections.map($=>`${$.startSeparator}${$.value||$.placeholder}${$.endSeparator}`).join(""),Ja({focused:n,domGetters:s,stateResponse:i}),L.length===0||L.charCodeAt(0)===10?(p(),g("all")):L.length>1?h(L):(c==="all"&&g(0),a({keyPressed:L,sectionIndex:0}))}),E=ge(V=>{if(b||c!=="all"){V.preventDefault();return}const D=V.clipboardData.getData("text");V.preventDefault(),m(null),h(D)}),T=ge(()=>{if(n||f||!s.isReady())return;const V=xt(s.getRoot());r(!0),s.getSectionIndexFromDOMElement(V)!=null||g(u.startIndex)}),P=ge(()=>{setTimeout(()=>{if(!s.isReady())return;const V=xt(s.getRoot());!s.getRoot().contains(V)&&(r(!1),g(null))})});return{onKeyDown:x,onBlur:P,onFocus:T,onClick:v,onPaste:E,onInput:w,contentEditable:c==="all",tabIndex:l.disabled||c===0?-1:0}}function cE(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:n,state:r,updateValueFromValueStr:s}}=e,i=ge(l=>{s(l.target.value)});return{value:S.useMemo(()=>n?"":t.getV7HiddenInputValueFromSections(r.sections),[n,r.sections,t]),onChange:i}}function uE(e){const{stateResponse:{setSelectedSections:t},internalPropsWithDefaults:{disabled:n=!1}}=e,r=S.useCallback(s=>i=>{n||i.isDefaultPrevented()||t(s)},[n,t]);return S.useCallback(s=>({"data-sectionindex":s,onClick:r(s)}),[r])}function dE(e){const t=He(),n=En(),{focused:r,domGetters:s,stateResponse:i,applyCharacterEditing:a,manager:{internal_fieldValueManager:l},stateResponse:{parsedSelectedSections:c,sectionsValueBoundaries:u,state:d,value:p,clearActiveSection:m,setCharacterQuery:g,setSelectedSections:h,updateSectionValue:f,updateValueFromValueStr:b},internalPropsWithDefaults:{disabled:x=!1,readOnly:O=!1}}=e,v=c==="all",w=!v&&!x&&!O,E=ge($=>{if(!s.isReady())return;const M=d.sections[$];s.getSectionContent($).innerHTML=M.value||M.placeholder,Ja({focused:r,domGetters:s,stateResponse:i})}),T=ge($=>{if(!s.isReady())return;const M=$.target,F=M.textContent??"",j=s.getSectionIndexFromDOMElement(M),A=d.sections[j];if(O){E(j);return}if(F.length===0){if(A.value===""){E(j);return}const I=$.nativeEvent.inputType;if(I==="insertParagraph"||I==="insertLineBreak"){E(j);return}E(j),m();return}a({keyPressed:F,sectionIndex:j}),E(j)}),P=ge($=>{$.preventDefault()}),V=ge($=>{if($.preventDefault(),O||x||typeof c!="number")return;const M=d.sections[c],F=$.clipboardData.getData("text"),j=/^[a-zA-Z]+$/.test(F),A=/^[0-9]+$/.test(F),I=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(F);M.contentType==="letter"&&j||M.contentType==="digit"&&A||M.contentType==="digit-with-letter"&&I?(g(null),f({section:M,newSectionValue:F,shouldGoToNextSection:!0})):!j&&!A&&(g(null),b(F))}),D=ge($=>{$.preventDefault(),$.dataTransfer.dropEffect="none"}),L=S.useCallback($=>()=>{x||h($)},[x,h]);return S.useCallback(($,M)=>{const F=u[$.type]({currentDate:l.getDateFromSection(p,$),contentType:$.contentType,format:$.format});return{onInput:T,onPaste:V,onMouseUp:P,onDragOver:D,onFocus:L(M),"aria-readonly":O,"aria-valuenow":pE($,t),"aria-valuemin":F.minimum,"aria-valuemax":F.maximum,"aria-valuetext":$.value?fE($,t):n.empty,"aria-label":n[$.type],"aria-disabled":x,tabIndex:!w||v||M>0?-1:0,contentEditable:!v&&!x&&!O,role:"spinbutton","data-range-position":$.dateName||void 0,spellCheck:w?!1:void 0,autoCapitalize:w?"none":void 0,autoCorrect:w?"off":void 0,children:$.value||$.placeholder,inputMode:$.contentType==="letter"?"text":"numeric"}},[u,v,x,O,w,n,t,T,V,P,D,L,l,p])}function fE(e,t){if(e.value)switch(e.type){case"month":{if(e.contentType==="digit"){const r=t.setMonth(t.date(),Number(e.value)-1);return t.isValid(r)?t.format(r,"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 pE(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 mE=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:r,manager:{valueType:s,internal_useOpenPickerButtonAriaLabel:i}}=e,{internalProps:a,forwardedProps:l}=sf(t,s),c=qf({manager:n,internalProps:a,skipContextFieldRefAssignment:r}),{sectionListRef:u,onBlur:d,onClick:p,onFocus:m,onInput:g,onPaste:h,onKeyDown:f,onClear:b,clearable:x}=l,{disabled:O=!1,readOnly:v=!1,autoFocus:w=!1,focused:E,unstableFieldRef:T}=c,P=S.useRef(null),V=Ct(u,P),D=S.useMemo(()=>({isReady:()=>P.current!=null,getRoot:()=>P.current.getRoot(),getSectionContainer:oe=>P.current.getSectionContainer(oe),getSectionContent:oe=>P.current.getSectionContent(oe),getSectionIndexFromDOMElement:oe=>P.current.getSectionIndexFromDOMElement(oe)}),[P]),L=Hf({manager:n,internalPropsWithDefaults:c,forwardedProps:l}),{areAllSectionsEmpty:$,error:M,parsedSelectedSections:F,sectionOrder:j,state:A,value:I,clearValue:N,setSelectedSections:_}=L,B=Uf({stateResponse:L}),R=i(I),[k,W]=S.useState(!1);function G(oe=0){if(O||!P.current||Qc(P)!=null)return;const be=Gi(oe,A.sections);W(!0),P.current.getSectionContent(be).focus()}const U=lE({manager:n,internalPropsWithDefaults:c,stateResponse:L,applyCharacterEditing:B,focused:k,setFocused:W,domGetters:D}),Y=cE({manager:n,stateResponse:L}),H=uE({stateResponse:L,internalPropsWithDefaults:c}),Z=dE({manager:n,stateResponse:L,applyCharacterEditing:B,internalPropsWithDefaults:c,domGetters:D,focused:k}),J=ge(oe=>{f==null||f(oe),U.onKeyDown(oe)}),ee=ge(oe=>{d==null||d(oe),U.onBlur(oe)}),X=ge(oe=>{m==null||m(oe),U.onFocus(oe)}),K=ge(oe=>{oe.isDefaultPrevented()||(p==null||p(oe),U.onClick(oe))}),q=ge(oe=>{h==null||h(oe),U.onPaste(oe)}),te=ge(oe=>{g==null||g(oe),U.onInput(oe)}),ne=ge((oe,...be)=>{oe.preventDefault(),b==null||b(oe,...be),N(),Jc(P)?_(j.startIndex):G(0)}),ce=S.useMemo(()=>A.sections.map((oe,be)=>{const ae=Z(oe,be);return{container:H(be),content:Z(oe,be),before:{children:oe.startSeparator},after:{children:oe.endSeparator,"data-range-position":oe.isEndFormatSeparator?ae["data-range-position"]:void 0}}}),[A.sections,H,Z]);return S.useEffect(()=>{if(P.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(`
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
`))},[]),J=pt(H,v,O.ref,Z),[ee,X]=S.useState(!1),K=fn();process.env.NODE_ENV!=="production"&&S.useEffect(()=>{if(K)return K.registerEffect()},[K]);const q=Mo({props:s,muiFormControl:K,states:["color","disabled","error","hiddenLabel","size","required","filled"]});q.focused=K?K.focused:ee,S.useEffect(()=>{!K&&m&&ee&&(X(!1),V&&V())},[K,m,ee,V]);const te=K&&K.onFilled,ne=K&&K.onEmpty,ce=S.useCallback(Ce=>{gs(Ce)?te&&te():ne&&ne()},[te,ne]);Ht(()=>{Y&&ce({value:U})},[U,ce,Y]);const oe=Ce=>{if(q.disabled){Ce.stopPropagation();return}$&&$(Ce),O.onFocus&&O.onFocus(Ce),K&&K.onFocus?K.onFocus(Ce):X(!0)},be=Ce=>{V&&V(Ce),O.onBlur&&O.onBlur(Ce),K&&K.onBlur?K.onBlur(Ce):X(!1)},ae=(Ce,...ie)=>{if(!Y){const ve=Ce.target||H.current;if(ve==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.":Fn(1));ce({value:ve.value})}O.onChange&&O.onChange(Ce,...ie),D&&D(Ce,...ie)};S.useEffect(()=>{ce(H.current)},[]);const he=Ce=>{H.current&&Ce.currentTarget===Ce.target&&H.current.focus(),L&&L(Ce)};let le=x,ue=O;T&&le==="input"&&(N?(process.env.NODE_ENV!=="production"&&(E||w)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),ue=C({type:void 0,minRows:N,maxRows:N},ue)):ue=C({type:void 0,maxRows:w,minRows:E},ue),le=Gf);const we=Ce=>{ce(Ce.animationName==="mui-auto-fill-cancel"?H.current:{value:"x"})};S.useEffect(()=>{K&&K.setAdornedStart(!!R)},[K,R]);const Oe=C({},s,{color:q.color||"primary",disabled:q.disabled,endAdornment:h,error:q.error,focused:q.focused,formControl:K,fullWidth:f,hiddenLabel:q.hiddenLabel,multiline:T,size:q.size,startAdornment:R,type:k}),Se=OE(Oe),Me=B.root||u.Root||Gs,Ze=_.root||d.root||{},Te=B.input||u.Input||Ks;return ue=C({},ue,(r=_.input)!=null?r:d.input),y.jsxs(S.Fragment,{children:[!g&&TE,y.jsxs(Me,C({},Ze,!mo(Me)&&{ownerState:C({},Oe,Ze.ownerState)},{ref:n,onClick:he},G,{className:me(Se.root,Ze.className,c,A&&"MuiInputBase-readOnly"),children:[R,y.jsx(Rr.Provider,{value:null,children:y.jsx(Te,C({ownerState:Oe,"aria-invalid":q.error,"aria-describedby":i,autoComplete:a,autoFocus:l,defaultValue:p,disabled:q.disabled,id:b,onAnimationStart:we,name:P,placeholder:j,readOnly:A,required:q.required,rows:N,value:U,onKeyDown:M,onKeyUp:F,type:k},ue,!mo(Te)&&{as:le,ownerState:C({},Oe,ue.ownerState)},{ref:J,className:me(Se.input,ue.className,A&&"MuiInputBase-readOnly"),onBlur:be,onChange:ae,onFocus:oe}))}),h,I?I(C({},q,{startAdornment:R})):null]}))]})});process.env.NODE_ENV!=="production"&&(Zs.propTypes={"aria-describedby":o.string,autoComplete:o.string,autoFocus:o.bool,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableInjectingGlobalStyles:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:bs,inputProps:o.object,inputRef:qt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClick:o.func,onFocus:o.func,onInvalid:o.func,onKeyDown:o.func,onKeyUp:o.func,placeholder:o.string,readOnly:o.bool,renderSuffix:o.func,required:o.bool,rows:o.oneOfType([o.number,o.string]),size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});function PE(e){return Ie("MuiInput",e)}const Vo=C({},Co,Re("MuiInput",["root","underline","input"])),kE=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],ME=e=>{const{classes:t,disableUnderline:n}=e,s=Ve({root:["root",!n&&"underline"],input:["input"]},PE,t);return C({},t,s)},RE=ye(Gs,{shouldForwardProp:e=>Yt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...qs(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),C({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,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 ${r}`,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:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Vo.disabled}:before`]:{borderBottomStyle:"dotted"}})}),DE=ye(Ks,{name:"MuiInput",slot:"Input",overridesResolver:Ys})({}),Xs=S.forwardRef(function(t,n){var r,s,i,a;const l=Be({props:t,name:"MuiInput"}),{disableUnderline:c,components:u={},componentsProps:d,fullWidth:p=!1,inputComponent:m="input",multiline:g=!1,slotProps:h,slots:f={},type:b="text"}=l,x=re(l,kE),O=ME(l),w={root:{ownerState:{disableUnderline:c}}},E=h??d?Pt(h??d,w):w,T=(r=(s=f.root)!=null?s:u.Root)!=null?r:RE,P=(i=(a=f.input)!=null?a:u.Input)!=null?i:DE;return y.jsx(Zs,C({slots:{root:T,input:P},slotProps:E,fullWidth:p,inputComponent:m,multiline:g,ref:n,type:b},x,{classes:O}))});process.env.NODE_ENV!=="production"&&(Xs.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:qt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});Xs.muiName="Input";function IE(e){return Ie("MuiFilledInput",e)}const kn=C({},Co,Re("MuiFilledInput",["root","underline","input"])),_E=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],NE=e=>{const{classes:t,disableUnderline:n}=e,s=Ve({root:["root",!n&&"underline"],input:["input"]},IE,t);return C({},t,s)},$E=ye(Gs,{shouldForwardProp:e=>Yt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...qs(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",s=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return C({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,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:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${kn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${kn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,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"},[`&.${kn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${kn.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})`:s}`,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(.${kn.disabled}, .${kn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${kn.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&C({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),AE=ye(Ks,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ys})(({theme:e,ownerState:t})=>C({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"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Qs=S.forwardRef(function(t,n){var r,s,i,a;const l=Be({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:u,fullWidth:d=!1,inputComponent:p="input",multiline:m=!1,slotProps:g,slots:h={},type:f="text"}=l,b=re(l,_E),x=C({},l,{fullWidth:d,inputComponent:p,multiline:m,type:f}),O=NE(l),v={root:{ownerState:x},input:{ownerState:x}},w=g??u?Pt(v,g??u):v,E=(r=(s=h.root)!=null?s:c.Root)!=null?r:$E,T=(i=(a=h.input)!=null?a:c.Input)!=null?i:AE;return y.jsx(Zs,C({slots:{root:E,input:T},componentsProps:w,fullWidth:d,inputComponent:p,multiline:m,ref:n,type:f},b,{classes:O}))});process.env.NODE_ENV!=="production"&&(Qs.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:qt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});Qs.muiName="Input";var ou;const jE=["children","classes","className","label","notched"],LE=ye("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Yt})({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%"}),FE=ye("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Yt})(({ownerState:e,theme:t})=>C({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&C({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function Zf(e){const{className:t,label:n,notched:r}=e,s=re(e,jE),i=n!=null&&n!=="",a=C({},e,{notched:r,withLabel:i});return y.jsx(LE,C({"aria-hidden":!0,className:t,ownerState:a},s,{children:y.jsx(FE,{ownerState:a,children:i?y.jsx("span",{children:n}):ou||(ou=y.jsx("span",{className:"notranslate",children:""}))})}))}process.env.NODE_ENV!=="production"&&(Zf.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});function VE(e){return Ie("MuiOutlinedInput",e)}const pn=C({},Co,Re("MuiOutlinedInput",["root","notchedOutline","input"])),BE=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],zE=e=>{const{classes:t}=e,r=Ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},VE,t);return C({},t,r)},WE=ye(Gs,{shouldForwardProp:e=>Yt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:qs})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return C({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${pn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${pn.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${pn.focused} .${pn.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${pn.error} .${pn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${pn.disabled} .${pn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&C({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),UE=ye(Zf,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),HE=ye(Ks,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ys})(({theme:e,ownerState:t})=>C({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"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Js=S.forwardRef(function(t,n){var r,s,i,a,l;const c=Be({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:d=!1,inputComponent:p="input",label:m,multiline:g=!1,notched:h,slots:f={},type:b="text"}=c,x=re(c,BE),O=zE(c),v=fn(),w=Mo({props:c,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),E=C({},c,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:v,fullWidth:d,hiddenLabel:w.hiddenLabel,multiline:g,size:w.size,type:b}),T=(r=(s=f.root)!=null?s:u.Root)!=null?r:WE,P=(i=(a=f.input)!=null?a:u.Input)!=null?i:HE;return y.jsx(Zs,C({slots:{root:T,input:P},renderSuffix:V=>y.jsx(UE,{ownerState:E,className:O.notchedOutline,label:m!=null&&m!==""&&w.required?l||(l=y.jsxs(S.Fragment,{children:[m," ","*"]})):m,notched:typeof h<"u"?h:!!(V.startAdornment||V.filled||V.focused)}),fullWidth:d,inputComponent:p,multiline:g,ref:n,type:b},x,{classes:C({},O,{notchedOutline:null})}))});process.env.NODE_ENV!=="production"&&(Js.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),defaultValue:o.any,disabled:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:qt,label:o.node,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,notched:o.bool,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});Js.muiName="Input";function qE(e){return Ie("MuiFormLabel",e)}const Qo=Re("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),YE=["children","className","color","component","disabled","error","filled","focused","required"],GE=e=>{const{classes:t,color:n,focused:r,disabled:s,error:i,filled:a,required:l}=e,c={root:["root",`color${fe(n)}`,s&&"disabled",i&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return Ve(c,qE,t)},KE=ye("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>C({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>C({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Qo.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Qo.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Qo.error}`]:{color:(e.vars||e).palette.error.main}})),ZE=ye("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Qo.error}`]:{color:(e.vars||e).palette.error.main}})),Xf=S.forwardRef(function(t,n){const r=Be({props:t,name:"MuiFormLabel"}),{children:s,className:i,component:a="label"}=r,l=re(r,YE),c=fn(),u=Mo({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),d=C({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),p=GE(d);return y.jsxs(KE,C({as:a,ownerState:d,className:me(p.root,i),ref:n},l,{children:[s,u.required&&y.jsxs(ZE,{ownerState:d,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}))});process.env.NODE_ENV!=="production"&&(Xf.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function XE(e){return Ie("MuiInputLabel",e)}Re("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const QE=["disableAnimation","margin","shrink","variant","className"],JE=e=>{const{classes:t,formControl:n,size:r,shrink:s,disableAnimation:i,variant:a,required:l}=e,c={root:["root",n&&"formControl",!i&&"animated",s&&"shrink",r&&r!=="normal"&&`size${fe(r)}`,a],asterisk:[l&&"asterisk"]},u=Ve(c,XE,t);return C({},t,u)},eO=ye(Xf,{shouldForwardProp:e=>Yt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Qo.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]]}})(({theme:e,ownerState:t})=>C({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&C({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&C({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&C({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),el=S.forwardRef(function(t,n){const r=Be({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,shrink:i,className:a}=r,l=re(r,QE),c=fn();let u=i;typeof u>"u"&&c&&(u=c.filled||c.focused||c.adornedStart);const d=Mo({props:r,muiFormControl:c,states:["size","variant","required","focused"]}),p=C({},r,{disableAnimation:s,formControl:c,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused}),m=JE(p);return y.jsx(eO,C({"data-shrink":u,ownerState:p,ref:n,className:me(m.root,a)},l,{classes:m}))});process.env.NODE_ENV!=="production"&&(el.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),disableAnimation:o.bool,disabled:o.bool,error:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,shrink:o.bool,size:o.oneOfType([o.oneOf(["normal","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function tO(e){return Ie("MuiFormControl",e)}Re("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const nO=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],oO=e=>{const{classes:t,margin:n,fullWidth:r}=e,s={root:["root",n!=="none"&&`margin${fe(n)}`,r&&"fullWidth"]};return Ve(s,tO,t)},rO=ye("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>C({},t.root,t[`margin${fe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>C({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),tl=S.forwardRef(function(t,n){const r=Be({props:t,name:"MuiFormControl"}),{children:s,className:i,color:a="primary",component:l="div",disabled:c=!1,error:u=!1,focused:d,fullWidth:p=!1,hiddenLabel:m=!1,margin:g="none",required:h=!1,size:f="medium",variant:b="outlined"}=r,x=re(r,nO),O=C({},r,{color:a,component:l,disabled:c,error:u,fullWidth:p,hiddenLabel:m,margin:g,required:h,size:f,variant:b}),v=oO(O),[w,E]=S.useState(()=>{let F=!1;return s&&S.Children.forEach(s,j=>{if(!Yo(j,["Input","Select"]))return;const A=Yo(j,["Select"])?j.props.input:j;A&&CE(A.props)&&(F=!0)}),F}),[T,P]=S.useState(()=>{let F=!1;return s&&S.Children.forEach(s,j=>{Yo(j,["Input","Select"])&&(gs(j.props,!0)||gs(j.props.inputProps,!0))&&(F=!0)}),F}),[V,D]=S.useState(!1);c&&V&&D(!1);const L=d!==void 0&&!c?d:V;let $;if(process.env.NODE_ENV!=="production"){const F=S.useRef(!1);$=()=>(F.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
188
|
-
|
|
189
|
-
`)),v.props.disabled||(p==="selectedMenu"&&v.props.selected||x===-1)&&(x=w),x===w&&(v.props.disabled||v.props.muiSkipListHighlight||v.type.muiSkipListHighlight)&&(x+=1,x>=a.length&&(x=-1))});const O=S.Children.map(a,(v,w)=>{if(w===x){const E={};return i&&(E.autoFocus=!0),v.props.tabIndex===void 0&&p==="selectedMenu"&&(E.tabIndex=0),S.cloneElement(v,E)}return v});return y.jsx(Ka,C({role:"menu",ref:b,className:l,onKeyDown:f,tabIndex:s?0:-1},m,{children:O}))});process.env.NODE_ENV!=="production"&&(Jf.propTypes={autoFocus:o.bool,autoFocusItem:o.bool,children:o.node,className:o.string,disabledItemsFocusable:o.bool,disableListWrap:o.bool,onKeyDown:o.func,variant:o.oneOf(["menu","selectedMenu"])});function uO(e){const t=St(e);return t.body===e?Vn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Jo(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function au(e){return parseInt(Vn(e).getComputedStyle(e).paddingRight,10)||0}function dO(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function lu(e,t,n,r,s){const i=[t,n,...r];[].forEach.call(e.children,a=>{const l=i.indexOf(a)===-1,c=!dO(a);l&&c&&Jo(a,s)})}function Ti(e,t){let n=-1;return e.some((r,s)=>t(r)?(n=s,!0):!1),n}function fO(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(uO(r)){const a=Vu(St(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${au(r)+a}px`;const l=St(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${au(c)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=St(r).body;else{const a=r.parentElement,l=Vn(r);i=(a==null?void 0:a.nodeName)==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function pO(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class mO{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Jo(t.modalRef,!1);const s=pO(n);lu(n,t.mount,t.modalRef,s,!0);const i=Ti(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:s}),r)}mount(t,n){const r=Ti(this.containers,i=>i.modals.indexOf(t)!==-1),s=this.containers[r];s.restore||(s.restore=fO(s,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const s=Ti(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[s];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Jo(t.modalRef,n),lu(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(s,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Jo(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function hO(e){return Ie("MuiBackdrop",e)}Re("MuiBackdrop",["root","invisible"]);const gO=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],bO=e=>{const{classes:t,invisible:n}=e;return Ve({root:["root",n&&"invisible"]},hO,t)},yO=ye("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>C({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"},e.invisible&&{backgroundColor:"transparent"})),ol=S.forwardRef(function(t,n){var r,s,i;const a=Be({props:t,name:"MuiBackdrop"}),{children:l,className:c,component:u="div",components:d={},componentsProps:p={},invisible:m=!1,open:g,slotProps:h={},slots:f={},TransitionComponent:b=qn,transitionDuration:x}=a,O=re(a,gO),v=C({},a,{component:u,invisible:m}),w=bO(v),E=(r=h.root)!=null?r:p.root;return y.jsx(b,C({in:g,timeout:x},O,{children:y.jsx(yO,C({"aria-hidden":!0},E,{as:(s=(i=f.root)!=null?i:d.Root)!=null?s:u,className:me(w.root,c,E==null?void 0:E.className),ownerState:C({},v,E==null?void 0:E.ownerState),classes:w,ref:n,children:l}))}))});process.env.NODE_ENV!=="production"&&(ol.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.object}),invisible:o.bool,open:o.bool.isRequired,slotProps:o.shape({root:o.object}),slots:o.shape({root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});function vO(e){return typeof e=="function"?e():e}function xO(e){return e?e.props.hasOwnProperty("in"):!1}const SO=new mO;function CO(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:s=SO,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:c,onClose:u,open:d,rootRef:p}=e,m=S.useRef({}),g=S.useRef(null),h=S.useRef(null),f=pt(h,p),[b,x]=S.useState(!d),O=xO(c);let v=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(v=!1);const w=()=>St(g.current),E=()=>(m.current.modalRef=h.current,m.current.mount=g.current,m.current),T=()=>{s.mount(E(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},P=$n(()=>{const I=vO(t)||w().body;s.add(E(),I),h.current&&T()}),V=S.useCallback(()=>s.isTopModal(E()),[s]),D=$n(I=>{g.current=I,I&&(d&&V()?T():h.current&&Jo(h.current,v))}),L=S.useCallback(()=>{s.remove(E(),v)},[v,s]);S.useEffect(()=>()=>{L()},[L]),S.useEffect(()=>{d?P():(!O||!i)&&L()},[d,L,O,i,P]);const $=I=>N=>{var _;(_=I.onKeyDown)==null||_.call(I,N),!(N.key!=="Escape"||N.which===229||!V())&&(n||(N.stopPropagation(),u&&u(N,"escapeKeyDown")))},M=I=>N=>{var _;(_=I.onClick)==null||_.call(I,N),N.target===N.currentTarget&&u&&u(N,"backdropClick")};return{getRootProps:(I={})=>{const N=Hu(e);delete N.onTransitionEnter,delete N.onTransitionExited;const _=C({},N,I);return C({role:"presentation"},_,{onKeyDown:$(_),ref:f})},getBackdropProps:(I={})=>{const N=I;return C({"aria-hidden":!0},N,{onClick:M(N),open:d})},getTransitionProps:()=>{const I=()=>{x(!1),a&&a()},N=()=>{x(!0),l&&l(),i&&L()};return{onEnter:$l(I,c==null?void 0:c.props.onEnter),onExited:$l(N,c==null?void 0:c.props.onExited)}},rootRef:f,portalRef:D,isTopModal:V,exited:b,hasTransition:O}}function wO(e){return Ie("MuiModal",e)}Re("MuiModal",["root","hidden","backdrop"]);const EO=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],OO=e=>{const{open:t,exited:n,classes:r}=e;return Ve({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},wO,r)},TO=ye("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>C({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),PO=ye(ol,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),rl=S.forwardRef(function(t,n){var r,s,i,a,l,c;const u=Be({name:"MuiModal",props:t}),{BackdropComponent:d=PO,BackdropProps:p,className:m,closeAfterTransition:g=!1,children:h,container:f,component:b,components:x={},componentsProps:O={},disableAutoFocus:v=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:E=!1,disablePortal:T=!1,disableRestoreFocus:P=!1,disableScrollLock:V=!1,hideBackdrop:D=!1,keepMounted:L=!1,onBackdropClick:$,open:M,slotProps:F,slots:j}=u,A=re(u,EO),I=C({},u,{closeAfterTransition:g,disableAutoFocus:v,disableEnforceFocus:w,disableEscapeKeyDown:E,disablePortal:T,disableRestoreFocus:P,disableScrollLock:V,hideBackdrop:D,keepMounted:L}),{getRootProps:N,getBackdropProps:_,getTransitionProps:B,portalRef:R,isTopModal:k,exited:W,hasTransition:G}=CO(C({},I,{rootRef:n})),U=C({},I,{exited:W}),Y=OO(U),H={};if(h.props.tabIndex===void 0&&(H.tabIndex="-1"),G){const{onEnter:te,onExited:ne}=B();H.onEnter=te,H.onExited=ne}const Z=(r=(s=j==null?void 0:j.root)!=null?s:x.Root)!=null?r:TO,J=(i=(a=j==null?void 0:j.backdrop)!=null?a:x.Backdrop)!=null?i:d,ee=(l=F==null?void 0:F.root)!=null?l:O.root,X=(c=F==null?void 0:F.backdrop)!=null?c:O.backdrop,K=Bn({elementType:Z,externalSlotProps:ee,externalForwardedProps:A,getSlotProps:N,additionalProps:{ref:n,as:b},ownerState:U,className:me(m,ee==null?void 0:ee.className,Y==null?void 0:Y.root,!U.open&&U.exited&&(Y==null?void 0:Y.hidden))}),q=Bn({elementType:J,externalSlotProps:X,additionalProps:p,getSlotProps:te=>_(C({},te,{onClick:ne=>{$&&$(ne),te!=null&&te.onClick&&te.onClick(ne)}})),className:me(X==null?void 0:X.className,p==null?void 0:p.className,Y==null?void 0:Y.backdrop),ownerState:U});return!L&&!M&&(!G||W)?null:y.jsx(ur,{ref:R,container:f,disablePortal:T,children:y.jsxs(Z,C({},K,{children:[!D&&d?y.jsx(J,C({},q)):null,y.jsx(dr,{disableEnforceFocus:w,disableAutoFocus:v,disableRestoreFocus:P,isEnabled:k,open:M,children:S.cloneElement(h,H)})]}))})});process.env.NODE_ENV!=="production"&&(rl.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:mr.isRequired,classes:o.object,className:o.string,closeAfterTransition:o.bool,component:o.elementType,components:o.shape({Backdrop:o.elementType,Root:o.elementType}),componentsProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([ln,o.func]),disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableEscapeKeyDown:o.bool,disablePortal:o.bool,disableRestoreFocus:o.bool,disableScrollLock:o.bool,hideBackdrop:o.bool,keepMounted:o.bool,onBackdropClick:o.func,onClose:o.func,onTransitionEnter:o.func,onTransitionExited:o.func,open:o.bool.isRequired,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function kO(e){return Ie("MuiPopover",e)}Re("MuiPopover",["root","paper"]);const MO=["onEntering"],RO=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],DO=["slotProps"];function cu(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function uu(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function du(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Qr(e){return typeof e=="function"?e():e}const IO=e=>{const{classes:t}=e;return Ve({root:["root"],paper:["paper"]},kO,t)},_O=ye(rl,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ep=ye(Tr,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),tp=S.forwardRef(function(t,n){var r,s,i;const a=Be({props:t,name:"MuiPopover"}),{action:l,anchorEl:c,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:p="anchorEl",children:m,className:g,container:h,elevation:f=8,marginThreshold:b=16,open:x,PaperProps:O={},slots:v,slotProps:w,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:T=Fs,transitionDuration:P="auto",TransitionProps:{onEntering:V}={},disableScrollLock:D=!1}=a,L=re(a.TransitionProps,MO),$=re(a,RO),M=(r=w==null?void 0:w.paper)!=null?r:O,F=S.useRef(),j=pt(F,M.ref),A=C({},a,{anchorOrigin:u,anchorReference:p,elevation:f,marginThreshold:b,externalPaperSlotProps:M,transformOrigin:E,TransitionComponent:T,transitionDuration:P,TransitionProps:L}),I=IO(A),N=S.useCallback(()=>{if(p==="anchorPosition")return process.env.NODE_ENV!=="production"&&(d||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),d;const te=Qr(c),ne=te&&te.nodeType===1?te:St(F.current).body,ce=ne.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const oe=ne.getBoundingClientRect();process.env.NODE_ENV!=="test"&&oe.top===0&&oe.left===0&&oe.right===0&&oe.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
190
|
-
|
|
191
|
-
|
|
200
|
+
`,hb=E.forwardRef(function(t,n){const o=je({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:a,...l}=o,[c,u]=E.useState([]),d=E.useRef(0),f=E.useRef(null);E.useEffect(()=>{f.current&&(f.current(),f.current=null)},[c]);const p=E.useRef(!1),h=Yn(),m=E.useRef(null),g=E.useRef(null),y=E.useCallback(S=>{const{pulsate:T,rippleX:P,rippleY:A,rippleSize:I,cb:k}=S;u(V=>[...V,v.jsx(tA,{classes:{ripple:ge(i.ripple,Ht.ripple),rippleVisible:ge(i.rippleVisible,Ht.rippleVisible),ripplePulsate:ge(i.ripplePulsate,Ht.ripplePulsate),child:ge(i.child,Ht.child),childLeaving:ge(i.childLeaving,Ht.childLeaving),childPulsate:ge(i.childPulsate,Ht.childPulsate)},timeout:mc,pulsate:T,rippleX:P,rippleY:A,rippleSize:I},d.current)]),d.current+=1,f.current=k},[i]),b=E.useCallback((S={},T={},P=()=>{})=>{const{pulsate:A=!1,center:I=r||T.pulsate,fakeElement:k=!1}=T;if((S==null?void 0:S.type)==="mousedown"&&p.current){p.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(p.current=!0);const V=k?null:g.current,N=V?V.getBoundingClientRect():{width:0,height:0,left:0,top:0};let x,j,R;if(I||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)x=Math.round(N.width/2),j=Math.round(N.height/2);else{const{clientX:O,clientY:D}=S.touches&&S.touches.length>0?S.touches[0]:S;x=Math.round(O-N.left),j=Math.round(D-N.top)}if(I)R=Math.sqrt((2*N.width**2+N.height**2)/3),R%2===0&&(R+=1);else{const O=Math.max(Math.abs((V?V.clientWidth:0)-x),x)*2+2,D=Math.max(Math.abs((V?V.clientHeight:0)-j),j)*2+2;R=Math.sqrt(O**2+D**2)}S!=null&&S.touches?m.current===null&&(m.current=()=>{y({pulsate:A,rippleX:x,rippleY:j,rippleSize:R,cb:P})},h.start(ZI,()=>{m.current&&(m.current(),m.current=null)})):y({pulsate:A,rippleX:x,rippleY:j,rippleSize:R,cb:P})},[r,y,h]),C=E.useCallback(()=>{b({},{pulsate:!0})},[b]),w=E.useCallback((S,T)=>{if(h.clear(),(S==null?void 0:S.type)==="touchend"&&m.current){m.current(),m.current=null,h.start(0,()=>{w(S,T)});return}m.current=null,u(P=>P.length>0?P.slice(1):P),f.current=T},[h]);return E.useImperativeHandle(n,()=>({pulsate:C,start:b,stop:w}),[C,b,w]),v.jsx(eA,{className:ge(Ht.root,i.root,a),ref:g,...l,children:v.jsx(Ds,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(hb.propTypes={center:s.bool,classes:s.object,className:s.string});function nA(e){return Te("MuiButtonBase",e)}const oA=Ce("MuiButtonBase",["root","disabled","focusVisible"]),rA=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,a=we({root:["root",t&&"disabled",n&&"focusVisible"]},nA,r);return n&&o&&(a.root+=` ${o}`),a},sA=ye("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"},[`&.${oA.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ur=E.forwardRef(function(t,n){const o=je({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:b,onDragLeave:C,onFocus:w,onFocusVisible:S,onKeyDown:T,onKeyUp:P,onMouseDown:A,onMouseLeave:I,onMouseUp:k,onTouchEnd:V,onTouchMove:N,onTouchStart:x,tabIndex:j=0,TouchRippleProps:R,touchRippleRef:O,type:D,..._}=o,F=E.useRef(null),B=GI(),$=_e(B.ref,O),[M,W]=E.useState(!1);u&&M&&W(!1),E.useImperativeHandle(r,()=>({focusVisible:()=>{W(!0),F.current.focus()}}),[]);const K=B.shouldMount&&!d&&!u;E.useEffect(()=>{M&&p&&!d&&B.pulsate()},[d,p,M,B]);const G=Cn(B,"start",A,f),Z=Cn(B,"stop",b,f),U=Cn(B,"stop",C,f),Q=Cn(B,"stop",k,f),J=Cn(B,"stop",de=>{M&&de.preventDefault(),I&&I(de)},f),ee=Cn(B,"start",x,f),q=Cn(B,"stop",V,f),X=Cn(B,"stop",N,f),H=Cn(B,"stop",de=>{Zp(de.target)||W(!1),g&&g(de)},!1),oe=pe(de=>{F.current||(F.current=de.currentTarget),Zp(de.target)&&(W(!0),S&&S(de)),w&&w(de)}),te=()=>{const de=F.current;return c&&c!=="button"&&!(de.tagName==="A"&&de.href)},ae=pe(de=>{p&&!de.repeat&&M&&de.key===" "&&B.stop(de,()=>{B.start(de)}),de.target===de.currentTarget&&te()&&de.key===" "&&de.preventDefault(),T&&T(de),de.target===de.currentTarget&&te()&&de.key==="Enter"&&!u&&(de.preventDefault(),y&&y(de))}),re=pe(de=>{p&&de.key===" "&&M&&!de.defaultPrevented&&B.stop(de,()=>{B.pulsate(de)}),P&&P(de),y&&de.target===de.currentTarget&&te()&&de.key===" "&&!de.defaultPrevented&&y(de)});let be=c;be==="button"&&(_.href||_.to)&&(be=m);const se={};if(be==="button"){const de=!!_.formAction;se.type=D===void 0&&!de?"button":D,se.disabled=u}else!_.href&&!_.to&&(se.role="button"),u&&(se["aria-disabled"]=u);const he=_e(n,F),le={...o,centerRipple:i,component:c,disabled:u,disableRipple:d,disableTouchRipple:f,focusRipple:p,tabIndex:j,focusVisible:M},ue=rA(le);return v.jsxs(sA,{as:be,className:ge(ue.root,l),ownerState:le,onBlur:H,onClick:y,onContextMenu:Z,onFocus:oe,onKeyDown:ae,onKeyUp:re,onMouseDown:G,onMouseLeave:J,onMouseUp:Q,onDragLeave:U,onTouchEnd:q,onTouchMove:X,onTouchStart:ee,ref:he,tabIndex:u?-1:j,type:D,...se,..._,children:[a,K?v.jsx(hb,{ref:$,center:i,...R}):null]})});function Cn(e,t,n,o=!1){return pe(r=>(n&&n(r),o||e[t](r),!0))}process.env.NODE_ENV!=="production"&&(ur.propTypes={action:yt,centerRipple:s.bool,children:s.node,classes:s.object,className:s.string,component:da,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 iA(e){return Te("MuiCircularProgress",e)}Ce("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const on=44,gc=Lt.keyframes`
|
|
201
|
+
0% {
|
|
202
|
+
transform: rotate(0deg);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
100% {
|
|
206
|
+
transform: rotate(360deg);
|
|
207
|
+
}
|
|
208
|
+
`,yc=Lt.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
|
+
`,aA=typeof gc!="string"?Lt.css`
|
|
224
|
+
animation: ${gc} 1.4s linear infinite;
|
|
225
|
+
`:null,lA=typeof yc!="string"?Lt.css`
|
|
226
|
+
animation: ${yc} 1.4s ease-in-out infinite;
|
|
227
|
+
`:null,cA=e=>{const{classes:t,variant:n,color:o,disableShrink:r}=e,i={root:["root",n,`color${ce(o)}`],svg:["svg"],track:["track"],circle:["circle",`circle${ce(n)}`,r&&"circleDisableShrink"]};return we(i,iA,t)},uA=ye("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ce(n.color)}`]]}})(Ye(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:aA||{animation:`${gc} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Bt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),dA=ye("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),fA=ye("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ce(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Ye(({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:lA||{animation:`${yc} 1.4s ease-in-out infinite`}}]}))),pA=ye("circle",{name:"MuiCircularProgress",slot:"Track"})(Ye(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Lu=E.forwardRef(function(t,n){const o=je({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=cA(m),y={},b={},C={};if(p==="determinate"){const w=2*Math.PI*((on-d)/2);y.strokeDasharray=w.toFixed(3),C["aria-valuenow"]=Math.round(f),y.strokeDashoffset=`${((100-f)/100*w).toFixed(3)}px`,b.transform="rotate(-90deg)"}return v.jsx(uA,{className:ge(g.root,r),style:{width:c,height:c,...b,...u},ownerState:m,ref:n,role:"progressbar",...C,...h,children:v.jsxs(dA,{className:g.svg,ownerState:m,viewBox:`${on/2} ${on/2} ${on} ${on}`,children:[l?v.jsx(pA,{className:g.track,ownerState:m,cx:on,cy:on,r:(on-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,v.jsx(fA,{className:g.circle,style:y,ownerState:m,cx:on,cy:on,r:(on-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(Lu.propTypes={classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","error","info","success","warning"]),s.string]),disableShrink:Nn(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 hA(e){return Te("MuiButton",e)}const fo=Ce("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),mb=E.createContext({});process.env.NODE_ENV!=="production"&&(mb.displayName="ButtonGroupContext");const gb=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(gb.displayName="ButtonGroupButtonContext");const mA=e=>{const{color:t,disableElevation:n,fullWidth:o,size:r,variant:i,loading:a,loadingPosition:l,classes:c}=e,u={root:["root",a&&"loading",i,`${i}${ce(t)}`,`size${ce(r)}`,`${i}Size${ce(r)}`,`color${ce(t)}`,n&&"disableElevation",o&&"fullWidth",a&&`loadingPosition${ce(l)}`],startIcon:["icon","startIcon",`iconSize${ce(r)}`],endIcon:["icon","endIcon",`iconSize${ce(r)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=we(u,hA,c);return{...c,...d}},yb=[{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}}}],gA=ye(ur,{shouldForwardProp:e=>ln(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]}})(Ye(({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"},[`&.${fo.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]},[`&.${fo.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${fo.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)",[`&.${fo.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(Bt()).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"},[`&.${fo.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${fo.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}),[`&.${fo.loading}`]:{color:"transparent"}}}]}})),yA=ye("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}},...yb]})),bA=ye("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}},...yb]})),vA=ye("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}}]})),Xp=ye("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Vn=E.forwardRef(function(t,n){const o=E.useContext(mb),r=E.useContext(gb),i=rs(o,t),a=je({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:b,loading:C=null,loadingIndicator:w,loadingPosition:S="center",size:T="medium",startIcon:P,type:A,variant:I="text",...k}=a,V=eo(b),N=w??v.jsx(Lu,{"aria-labelledby":V,color:"inherit",size:16}),x={...a,color:c,component:u,disabled:f,disableElevation:p,disableFocusRipple:h,fullWidth:y,loading:C,loadingIndicator:N,loadingPosition:S,size:T,type:A,variant:I},j=mA(x),R=(P||C&&S==="start")&&v.jsx(yA,{className:j.startIcon,ownerState:x,children:P||v.jsx(Xp,{className:j.loadingIconPlaceholder,ownerState:x})}),O=(m||C&&S==="end")&&v.jsx(bA,{className:j.endIcon,ownerState:x,children:m||v.jsx(Xp,{className:j.loadingIconPlaceholder,ownerState:x})}),D=r||"",_=typeof C=="boolean"?v.jsx("span",{className:j.loadingWrapper,style:{display:"contents"},children:C&&v.jsx(vA,{className:j.loadingIndicator,ownerState:x,children:N})}):null;return v.jsxs(gA,{ownerState:x,className:ge(o.className,j.root,d,D),component:u,disabled:f||C,focusRipple:!h,focusVisibleClassName:ge(j.focusVisible,g),ref:n,type:A,id:C?V:b,...k,classes:j,children:[R,S!=="end"&&_,l,S==="end"&&_,O]})});process.env.NODE_ENV!=="production"&&(Vn.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 xA(e){return Te("MuiDialogActions",e)}Ce("MuiDialogActions",["root","spacing"]);const SA=e=>{const{classes:t,disableSpacing:n}=e;return we({root:["root",!n&&"spacing"]},xA,t)},wA=ye("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}}}]}),bb=E.forwardRef(function(t,n){const o=je({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:i=!1,...a}=o,l={...o,disableSpacing:i},c=SA(l);return v.jsx(wA,{className:ge(c.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(bb.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 CA=["actions"],TA=ie.styled(bb,{name:"MuiPickersLayout",slot:"ActionBar"})({});function vb(e){const{actions:t}=e,n=Ee(e,CA),o=oo(),{clearValue:r,setValueToToday:i,acceptValueChanges:a,cancelValueChanges:l,goToNextStep:c,hasNextStep:u}=br();if(t==null||t.length===0)return null;const d=t==null?void 0:t.map(f=>{switch(f){case"clear":return v.jsx(Vn,{onClick:r,children:o.clearButtonLabel},f);case"cancel":return v.jsx(Vn,{onClick:l,children:o.cancelButtonLabel},f);case"accept":return v.jsx(Vn,{onClick:a,children:o.okButtonLabel},f);case"today":return v.jsx(Vn,{onClick:i,children:o.todayButtonLabel},f);case"next":return v.jsx(Vn,{onClick:c,children:o.nextStepButtonLabel},f);case"nextOrAccept":return u?v.jsx(Vn,{onClick:c,children:o.nextStepButtonLabel},f):v.jsx(Vn,{onClick:a,children:o.okButtonLabel},f);default:return null}});return v.jsx(TA,z({},n,{children:d}))}process.env.NODE_ENV!=="production"&&(vb.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 xb=E.memo(vb);process.env.NODE_ENV!=="production"&&(xb.displayName="PickersActionBar");const er=E.createContext({});process.env.NODE_ENV!=="production"&&(er.displayName="ListContext");function PA(e){return Te("MuiList",e)}Ce("MuiList",["root","padding","dense","subheader"]);const EA=e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return we({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},PA,t)},MA=ye("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}}]}),Vu=E.forwardRef(function(t,n){const o=je({props:t,name:"MuiList"}),{children:r,className:i,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:u,...d}=o,f=E.useMemo(()=>({dense:l}),[l]),p={...o,component:a,dense:l,disablePadding:c},h=EA(p);return v.jsx(er.Provider,{value:f,children:v.jsxs(MA,{as:a,className:ge(h.root,i),ref:n,ownerState:p,...d,children:[u,r]})})});process.env.NODE_ENV!=="production"&&(Vu.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 nt(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=Kt(f[e],r),{props:{component:g,...y},internalRef:b}=Fy({className:n,...c,externalForwardedProps:e==="root"?p:void 0,externalSlotProps:m}),C=_e(b,m==null?void 0:m.ref,t.ref),w=e==="root"?g||u:g,S=Ly(h,{...e==="root"&&!u&&!d[e]&&a,...e!=="root"&&!d[e]&&a,...y,...w&&!l&&{as:w},...w&&l&&{component:w},ref:C},r);return[h,S]}function OA(e){return Te("MuiListItem",e)}Ce("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const kA=Ce("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function DA(e){return Te("MuiListItemSecondaryAction",e)}Ce("MuiListItemSecondaryAction",["root","disableGutters"]);const RA=e=>{const{disableGutters:t,classes:n}=e;return we({root:["root",t&&"disableGutters"]},DA,n)},IA=ye("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}}]}),Fu=E.forwardRef(function(t,n){const o=je({props:t,name:"MuiListItemSecondaryAction"}),{className:r,...i}=o,a=E.useContext(er),l={...o,disableGutters:a.disableGutters},c=RA(l);return v.jsx(IA,{className:ge(c.root,r),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Fu.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])});Fu.muiName="ListItemSecondaryAction";const AA=(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]},NA=e=>{const{alignItems:t,classes:n,dense:o,disableGutters:r,disablePadding:i,divider:a,hasSecondaryAction:l}=e;return we({root:["root",o&&"dense",!r&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},OA,n)},_A=ye("div",{name:"MuiListItem",slot:"Root",overridesResolver:AA})(Ye(({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:{[`& > .${kA.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}}]}))),jA=ye("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Sb=E.forwardRef(function(t,n){const o=je({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:b,slotProps:C={},slots:w={},...S}=o,T=E.useContext(er),P=E.useMemo(()=>({dense:h||T.dense||!1,alignItems:r,disableGutters:m}),[r,T.dense,h,m]),A=E.useRef(null),I=E.Children.toArray(i),k=I.length&&qr(I[I.length-1],["ListItemSecondaryAction"]),V={...o,alignItems:r,dense:P.dense,disableGutters:m,disablePadding:g,divider:y,hasSecondaryAction:k},N=NA(V),x=_e(A,n),j={slots:w,slotProps:C},[R,O]=nt("secondaryAction",{elementType:Fu,externalForwardedProps:j,ownerState:V,className:N.secondaryAction}),D=w.root||c.Root||_A,_=C.root||u.root||{},F={className:ge(N.root,_.className,a),...S};let B=l||"li";return k?(B=!F.component&&!l?"div":B,d==="li"&&(B==="li"?B="div":F.component==="li"&&(F.component="div")),v.jsx(er.Provider,{value:P,children:v.jsxs(jA,{as:d,className:ge(N.container,f),ref:x,ownerState:V,...p,children:[v.jsx(D,{..._,...!sr(D)&&{as:B,ownerState:{...V,..._.ownerState}},...F,children:I}),I.pop()]})})):v.jsx(er.Provider,{value:P,children:v.jsxs(D,{..._,as:B,ref:x,...!sr(D)&&{ownerState:{...V,..._.ownerState}},...F,children:[I,b&&v.jsx(R,{...O,children:b})]})})});process.env.NODE_ENV!=="production"&&(Sb.propTypes={alignItems:s.oneOf(["center","flex-start"]),children:Nn(s.node,e=>{const t=E.Children.toArray(e.children);let n=-1;for(let o=t.length-1;o>=0;o-=1){const r=t[o];if(qr(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:da,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 $A=ft(v.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 LA(e){return Te("MuiChip",e)}const De=Ce("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),VA=e=>{const{classes:t,disabled:n,size:o,color:r,iconColor:i,onDelete:a,clickable:l,variant:c}=e,u={root:["root",c,n&&"disabled",`size${ce(o)}`,`color${ce(r)}`,l&&"clickable",l&&`clickableColor${ce(r)}`,a&&"deletable",a&&`deletableColor${ce(r)}`,`${c}${ce(r)}`],label:["label",`label${ce(o)}`],avatar:["avatar",`avatar${ce(o)}`,`avatarColor${ce(r)}`],icon:["icon",`icon${ce(o)}`,`iconColor${ce(i)}`],deleteIcon:["deleteIcon",`deleteIcon${ce(o)}`,`deleteIconColor${ce(r)}`,`deleteIcon${ce(c)}Color${ce(r)}`]};return we(u,LA,t)},FA=ye("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)}`]]}})(Ye(({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(Bt(["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(Bt(["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(Bt(["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(Bt()).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}}}}))]}})),BA=ye("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 Qp(e){return e.key==="Backspace"||e.key==="Delete"}const wb=E.forwardRef(function(t,n){const o=je({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:b="medium",variant:C="filled",tabIndex:w,skipFocusWhenDisabled:S=!1,slots:T={},slotProps:P={},...A}=o,I=E.useRef(null),k=_e(I,n),V=U=>{U.stopPropagation(),m&&m(U)},N=U=>{U.currentTarget===U.target&&Qp(U)&&U.preventDefault(),g&&g(U)},x=U=>{U.currentTarget===U.target&&m&&Qp(U)&&m(U),y&&y(U)},j=a!==!1&&h?!0:a,R=j||m?ur:c||"div",O={...o,component:R,disabled:d,size:b,color:l,iconColor:E.isValidElement(f)&&f.props.color||l,onDelete:!!m,clickable:j,variant:C},D=VA(O),_=R===ur?{component:c||"div",focusVisibleClassName:D.focusVisible,...m&&{disableRipple:!0}}:{};let F=null;m&&(F=u&&E.isValidElement(u)?E.cloneElement(u,{className:ge(u.props.className,D.deleteIcon),onClick:V}):v.jsx($A,{className:D.deleteIcon,onClick:V}));let B=null;r&&E.isValidElement(r)&&(B=E.cloneElement(r,{className:ge(D.avatar,r.props.className)}));let $=null;f&&E.isValidElement(f)&&($=E.cloneElement(f,{className:ge(D.icon,f.props.className)})),process.env.NODE_ENV!=="production"&&B&&$&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const M={slots:T,slotProps:P},[W,K]=nt("root",{elementType:FA,externalForwardedProps:{...M,...A},ownerState:O,shouldForwardComponentProp:!0,ref:k,className:ge(D.root,i),additionalProps:{disabled:j&&d?!0:void 0,tabIndex:S&&d?-1:w,..._},getSlotProps:U=>({...U,onClick:Q=>{var J;(J=U.onClick)==null||J.call(U,Q),h==null||h(Q)},onKeyDown:Q=>{var J;(J=U.onKeyDown)==null||J.call(U,Q),N(Q)},onKeyUp:Q=>{var J;(J=U.onKeyUp)==null||J.call(U,Q),x(Q)}})}),[G,Z]=nt("label",{elementType:BA,externalForwardedProps:M,ownerState:O,className:D.label});return v.jsxs(W,{as:R,...K,children:[B||$,v.jsx(G,{...Z,children:p}),F]})});process.env.NODE_ENV!=="production"&&(wb.propTypes={avatar:s.element,children:zS,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 gs=36,fa=2,pa=320,zA=280,Bu=336,WA=["items","changeImportance"],UA=["getValue"],HA=ie.styled(Vu,{name:"MuiPickersLayout",slot:"Shortcuts"})({});function Cb(e){const{items:t,changeImportance:n="accept"}=e,o=Ee(e,WA),{setValue:r}=ID(),i=yD();if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:c}=l,u=Ee(l,UA);const d=c({isValid:i});return z({},u,{label:u.label,onClick:()=>{r(d,{changeImportance:n,shortcut:u,source:"view"})},disabled:!i(d)})});return v.jsx(HA,z({dense:!0,sx:[{maxHeight:Bu,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:a.map(l=>v.jsx(Sb,{children:v.jsx(wb,z({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(Cb.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 YA=["ownerState"];function qA(e){return e.view!==null}const GA=(e,t)=>{const{pickerOrientation:n}=t;return we({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},fb,e)},KA=e=>{const{ownerState:t,defaultActionBarActions:n}=Et(),{view:o}=br(),r=an(),{children:i,slots:a,slotProps:l,classes:c}=e,u=E.useMemo(()=>z({},t,{layoutDirection:r?"rtl":"ltr",hasShortcuts:!1}),[t,r]),d=GA(c,u),f=(a==null?void 0:a.actionBar)??xb,p=Ne({elementType:f,externalSlotProps:l==null?void 0:l.actionBar,additionalProps:{actions:n},className:d.actionBar,ownerState:u}),h=Ee(p,YA),m=v.jsx(f,z({},h)),g=a==null?void 0:a.toolbar,y=Ne({elementType:g,externalSlotProps:l==null?void 0:l.toolbar,className:d.toolbar,ownerState:u}),b=qA(y)&&g?v.jsx(g,z({},y)):null,C=i,w=a==null?void 0:a.tabs,S=o&&w?v.jsx(w,z({className:d.tabs},l==null?void 0:l.tabs)):null,T=(a==null?void 0:a.shortcuts)??Cb,P=Ne({elementType:T,externalSlotProps:l==null?void 0:l.shortcuts,className:d.shortcuts,ownerState:u}),A=Array.isArray(P==null?void 0:P.items)&&P.items.length>0,I=o&&T?v.jsx(T,z({},P)):null;return{toolbar:b,content:C,tabs:S,actionBar:m,shortcuts:I,ownerState:z({},u,{hasShortcuts:A})}},ZA=(e,t)=>{const{pickerOrientation:n}=t;return we({root:["root",n==="landscape"&&"landscape"],contentWrapper:["contentWrapper"]},fb,e)},XA=ie.styled("div",{name:"MuiPickersLayout",slot:"Root"})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${uo.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{pickerOrientation:"landscape",hasShortcuts:!1},style:{[`& .${uo.toolbar}`]:{gridColumn:1,gridRow:"1 / 3"}}},{props:{pickerOrientation:"landscape",hasShortcuts:!0},style:{[`& .${uo.toolbar}`]:{gridColumn:"2 / 4",gridRow:1,maxWidth:"max-content"},[`& .${uo.shortcuts}`]:{gridColumn:1,gridRow:2}}},{props:{pickerOrientation:"portrait"},style:{[`& .${uo.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${uo.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{hasShortcuts:!0,layoutDirection:"rtl"},style:{[`& .${uo.shortcuts}`]:{gridColumn:4}}}]}),QA=ie.styled("div",{name:"MuiPickersLayout",slot:"ContentWrapper"})({gridColumn:"2 / 4",gridRow:2,display:"flex",flexDirection:"column"}),ha=E.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:a,actionBar:l,shortcuts:c,ownerState:u}=KA(o),{orientation:d,variant:f}=br(),{sx:p,className:h,classes:m}=o,g=ZA(m,u);return v.jsxs(XA,{ref:n,sx:p,className:ge(g.root,h),ownerState:u,children:[d==="landscape"?c:r,d==="landscape"?r:c,v.jsx(QA,{className:g.contentWrapper,ownerState:u,children:f==="desktop"?v.jsxs(E.Fragment,{children:[i,a]}):v.jsxs(E.Fragment,{children:[a,i]})}),l]})});process.env.NODE_ENV!=="production"&&(ha.displayName="PickersLayout");process.env.NODE_ENV!=="production"&&(ha.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 Tb(e){const{steps:t}=e;return zI({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 JA=["props","steps"],e2=["ownerState"],t2=e=>{var P;let{props:t,steps:n}=e,o=Ee(e,JA);const{slots:r,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=Tb({steps:n}),{providerProps:d,renderCurrentView:f,ownerState:p}=db(z({},o,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"desktop",getStepNavigation:u})),h=d.privateContextValue.labelId,m=((P=i==null?void 0:i.toolbar)==null?void 0:P.hidden)??!1,g=r.field,y=Ne({elementType:g,externalSlotProps:i==null?void 0:i.field,additionalProps:z({},m&&{id:h}),ownerState:p}),b=Ee(y,e2),C=r.layout??ha;let w=h;m&&(a?w=`${h}-label`:w=void 0);const S=z({},i,{toolbar:z({},i==null?void 0:i.toolbar,{titleId:h}),popper:z({"aria-labelledby":w},i==null?void 0:i.popper)}),T=()=>v.jsxs(ky,z({},d,{children:[v.jsx(g,z({},b,{slots:z({},r,b.slots),slotProps:z({},S,b.slotProps),inputRef:l})),v.jsx(VI,{slots:r,slotProps:S,children:v.jsx(C,z({},S==null?void 0:S.layout,{slots:r,slotProps:S,children:f()}))})]}));return process.env.NODE_ENV!=="production"&&(T.displayName="renderPicker"),{renderPicker:T}},Fo=e=>e.saveQuery!=null,Pb=({stateResponse:{localizedDigits:e,sectionsValueBoundaries:t,state:n,timezone:o,setCharacterQuery:r,setTempAndroidValueStr:i,updateSectionValue:a}})=>{const l=Ge(),c=({keyPressed:f,sectionIndex:p},h,m)=>{const g=f.toLowerCase(),y=n.sections[p];if(n.characterQuery!=null&&(!m||m(n.characterQuery.value))&&n.characterQuery.sectionIndex===p){const C=`${n.characterQuery.value}${g}`,w=h(C,y);if(!Fo(w))return r({sectionIndex:p,value:C,sectionType:y.type}),w}const b=h(g,y);return Fo(b)&&!b.saveQuery?(r(null),null):(r({sectionIndex:p,value:g,sectionType:y.type}),Fo(b)?null:b)},u=f=>{const p=(g,y,b)=>{const C=y.filter(w=>w.toLowerCase().startsWith(b));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},h=(g,y,b,C)=>{const w=S=>Py(l,o,y.type,S);if(y.contentType==="letter")return p(y.format,w(y.format),g);if(b&&C!=null&&gu(l,b).contentType==="letter"){const S=w(b),T=p(b,S,g);return Fo(T)?{saveQuery:!1}:z({},T,{sectionValue:C(T.sectionValue,S)})}return{saveQuery:!1}};return c(f,(g,y)=>{switch(y.type){case"month":{const b=C=>Ep(l,C,l.formats.month,y.format);return h(g,y,l.formats.month,b)}case"weekDay":{const b=(C,w)=>w.indexOf(C).toString();return h(g,y,l.formats.weekday,b)}case"meridiem":return h(g,y);default:return{saveQuery:!1}}})},d=f=>{const p=({queryValue:m,skipIfBelowMinimum:g,section:y})=>{const b=Ro(m,e),C=Number(b),w=t[y.type]({currentDate:null,format:y.format,contentType:y.contentType});if(C>w.maximum)return{saveQuery:!1};if(g&&C<w.minimum)return{saveQuery:!0};const S=C*10>w.maximum||b.length===w.maximum.toString().length;return{sectionValue:Ey(l,C,w,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"){My(l,"digit","month","MM");const y=p({queryValue:m,skipIfBelowMinimum:!0,section:{type:g.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2}});if(Fo(y))return y;const b=Ep(l,y.sectionValue,"MM",g.format);return z({},y,{sectionValue:b})}if(g.type==="weekDay"){const y=p({queryValue:m,skipIfBelowMinimum:!0,section:g});if(Fo(y))return y;const b=sa(l,g.format)[Number(y.sectionValue)-1];return z({},y,{sectionValue:b})}return{saveQuery:!1}},m=>Pp(m,e))};return pe(f=>{const p=n.sections[f.sectionIndex],m=Pp(f.keyPressed,e)?d(z({},f,{keyPressed:yu(f.keyPressed,e)})):u(f);if(m==null){i(null);return}a({section:p,newSectionValue:m.sectionValue,shouldGoToNextSection:m.shouldGoToNextSection})})},n2=5e3,Eb=e=>{var be;const t=Ge(),n=oo(),o=an(),{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:b=!1,timezone:C,enableAccessibleFieldDOMStructure:w=!0},forwardedProps:{error:S}}=e,{value:T,handleValueChange:P,timezone:A}=Ns({name:"a field component",timezone:C,value:u,defaultValue:d,referenceDate:f,onChange:p,valueManager:a}),I=E.useRef(T);E.useEffect(()=>{I.current=T},[T]);const{hasValidationError:k}=jy({props:c,validator:r,timezone:A,value:T,onError:c.onError}),V=E.useMemo(()=>Xk(t),[t]),N=E.useMemo(()=>nD(t,V,A),[t,V,A]),x=E.useCallback(se=>l.getSectionsFromValue(se,he=>Ip({adapter:t,localeText:n,localizedDigits:V,format:h,date:he,formatDensity:m,shouldRespectLeadingZeros:b,enableAccessibleFieldDOMStructure:w,isRtl:o})),[l,h,n,V,o,b,t,m,w]),[j,R]=E.useState(()=>{const se=x(T);Op(se,i);const he={sections:se,lastExternalValue:T,lastSectionsDependencies:{format:h,isRtl:o,locale:t.locale},tempValueStrAndroid:null,characterQuery:null},le=Gk(se),ue=a.getInitialReferenceValue({referenceDate:f,value:T,adapter:t,props:c,granularity:le,timezone:A});return z({},he,{referenceValue:ue})}),[O,D]=Gn({controlled:g,default:null,name:"useField",state:"selectedSections"}),_=se=>{D(se),y==null||y(se)},F=E.useMemo(()=>ic(O,j.sections),[O,j.sections]),B=F==="all"?0:F,$=E.useMemo(()=>sD(j.sections,o&&!w),[j.sections,o,w]),M=E.useMemo(()=>j.sections.every(se=>se.value===""),[j.sections]),W=E.useMemo(()=>{if(B!=null)return!1;const se=j.sections.filter(he=>he.value!=="");return se.length>0&&j.sections.length-se.length>0},[j.sections,B]),K=E.useMemo(()=>S!==void 0?S:k||W,[k,W,S]),G=se=>{const he={validationError:r({adapter:t,value:se,timezone:A,props:c})};P(se,he)},Z=(se,he)=>{const le=[...j.sections];return le[se]=z({},le[se],{value:he,modified:!0}),le},U=E.useRef(null),Q=Yn(),J=se=>{B!=null&&(U.current={sectionIndex:B,value:se},Q.start(0,()=>{U.current=null}))},ee=()=>{a.areValuesEqual(t,T,a.emptyValue)?R(se=>z({},se,{sections:se.sections.map(he=>z({},he,{value:""})),tempValueStrAndroid:null,characterQuery:null})):(R(se=>z({},se,{characterQuery:null})),G(a.emptyValue))},q=()=>{if(B==null)return;const se=j.sections[B];se.value!==""&&(J(""),l.getDateFromSection(T,se)===null?R(he=>z({},he,{sections:Z(B,""),tempValueStrAndroid:null,characterQuery:null})):(R(he=>z({},he,{characterQuery:null})),G(l.updateDateInValue(T,se,null))))},X=se=>{const he=(ue,de)=>{const Ie=t.parse(ue,h);if(!t.isValid(Ie))return null;const Me=Ip({adapter:t,localeText:n,localizedDigits:V,format:h,date:Ie,formatDensity:m,shouldRespectLeadingZeros:b,enableAccessibleFieldDOMStructure:w,isRtl:o});return Dp(t,Ie,Me,de,!1)},le=l.parseValueStr(se,j.referenceValue,he);G(le)},H=Yn(),oe=({section:se,newSectionValue:he,shouldGoToNextSection:le})=>{Q.clear(),H.clear();const ue=l.getDateFromSection(T,se);le&&B<j.sections.length-1&&_(B+1);const de=Z(B,he),Ie=l.getDateSectionsFromValue(de,se),Me=Jk(t,Ie,V);if(t.isValid(Me)){const Ke=Dp(t,Me,Ie,l.getDateFromSection(j.referenceValue,se),!0);return ue==null&&H.start(0,()=>{I.current===T&&R(Qe=>z({},Qe,{sections:l.clearDateSections(j.sections,se),tempValueStrAndroid:null}))}),G(l.updateDateInValue(T,se,Ke))}return Ie.every(Ke=>Ke.value!=="")&&(ue==null||t.isValid(ue))?(J(he),G(l.updateDateInValue(T,se,Me))):(ue!=null&&(J(he),G(l.updateDateInValue(T,se,Me))),R(Ke=>z({},Ke,{sections:de,tempValueStrAndroid:null})))},te=se=>R(he=>z({},he,{tempValueStrAndroid:se})),ae=pe(se=>{R(he=>z({},he,{characterQuery:se}))});if(T!==j.lastExternalValue){const se=U.current!=null&&!t.isValid(l.getDateFromSection(T,j.sections[U.current.sectionIndex]));let he;se?he=Z(U.current.sectionIndex,U.current.value):he=x(T),R(le=>z({},le,{lastExternalValue:T,sections:he,sectionsDependencies:{format:h,isRtl:o,locale:t.locale},referenceValue:se?le.referenceValue:l.updateReferenceValue(t,T,le.referenceValue),tempValueStrAndroid:null}))}if(o!==j.lastSectionsDependencies.isRtl||h!==j.lastSectionsDependencies.format||t.locale!==j.lastSectionsDependencies.locale){const se=x(T);Op(se,i),R(he=>z({},he,{lastSectionsDependencies:{format:h,isRtl:o,locale:t.locale},sections:se,tempValueStrAndroid:null,characterQuery:null}))}j.characterQuery!=null&&!K&&B==null&&ae(null),j.characterQuery!=null&&((be=j.sections[j.characterQuery.sectionIndex])==null?void 0:be.type)!==j.characterQuery.sectionType&&ae(null),E.useEffect(()=>{U.current!=null&&(U.current=null)});const re=Yn();return E.useEffect(()=>(j.characterQuery!=null&&re.start(n2,()=>ae(null)),()=>{}),[j.characterQuery,ae,re]),E.useEffect(()=>{j.tempValueStrAndroid!=null&&B!=null&&q()},[j.sections]),{activeSectionIndex:B,areAllSectionsEmpty:M,error:K,localizedDigits:V,parsedSelectedSections:F,sectionOrder:$,sectionsValueBoundaries:N,state:j,timezone:A,value:T,clearValue:ee,clearActiveSection:q,setCharacterQuery:ae,setSelectedSections:_,setTempAndroidValueStr:te,updateSectionValue:oe,updateValueFromValueStr:X,getSectionsFromValue:x}};function Mb(e){const{manager:{internal_useApplyDefaultValuesToFieldInternalProps:t},internalProps:n,skipContextFieldRefAssignment:o}=e,r=Pu(),i=Oy(),a=_e(n.unstableFieldRef,o?null:i==null?void 0:i.fieldRef),l=r==null?void 0:r.setValue,c=E.useCallback((d,f)=>l==null?void 0:l(d,{validationError:f.validationError,shouldClose:!1}),[l]),u=E.useMemo(()=>i!=null&&r!=null?z({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 zu(e){const{focused:t,domGetters:n,stateResponse:{parsedSelectedSections:o,state:r}}=e;if(!n.isReady())return;const i=Ct(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(Dt(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 Ob(e){const t=Ge(),{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:b}}=e;return pe(C=>{if(!r)switch(!0){case((C.ctrlKey||C.metaKey)&&String.fromCharCode(C.keyCode)==="A"&&!C.shiftKey&&!C.altKey):{C.preventDefault(),y("all");break}case C.key==="ArrowRight":{if(C.preventDefault(),u==null)y(h.startIndex);else if(u==="all")y(h.endIndex);else{const w=h.neighbors[u].rightIndex;w!==null&&y(w)}break}case C.key==="ArrowLeft":{if(C.preventDefault(),u==null)y(h.endIndex);else if(u==="all")y(h.startIndex);else{const w=h.neighbors[u].leftIndex;w!==null&&y(w)}break}case C.key==="Delete":{if(C.preventDefault(),i)break;u==null||u==="all"?m():g();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(C.key):{if(C.preventDefault(),i||c==null)break;u==="all"&&y(c);const w=a.sections[c],S=r2(t,p,w,C.key,d,f,n.getDateFromSection(l,w),{minutesStep:o});b({section:w,newSectionValue:S,shouldGoToNextSection:!1});break}}})}function o2(e){switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}}function r2(e,t,n,o,r,i,a,l){const c=o2(o),u=o==="Home",d=o==="End",f=n.value===""||u||d,p=()=>{const m=r[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),g=C=>Ey(e,C,m,i,n),y=n.type==="minutes"&&(l!=null&&l.minutesStep)?l.minutesStep:1;let b;if(f){if(n.type==="year"&&!d&&!u)return e.formatByString(e.date(void 0,t),n.format);c>0||u?b=m.minimum:b=m.maximum}else b=parseInt(Ro(n.value,i),10)+c*y;return b%y!==0&&((c<0||u)&&(b+=y-(y+b)%y),(c>0||d)&&(b-=b%y)),b>m.maximum?g(m.minimum+(b-m.maximum-1)%(m.maximum-m.minimum+1)):b<m.minimum?g(m.maximum-(m.minimum-b-1)%(m.maximum-m.minimum+1)):g(b)},h=()=>{const m=Py(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 b=((m.indexOf(n.value)+c)%m.length+m.length)%m.length;return m[b]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?p():h()}function s2(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,b=Ob({manager:t,internalPropsWithDefaults:l,stateResponse:i}),C=Yn(),w=pe(I=>{g||!r.isReady()||(o(!0),c==="all"?C.start(0,()=>{const k=document.getSelection().getRangeAt(0).startOffset;if(k===0){h(u.startIndex);return}let V=0,N=0;for(;N<k&&V<d.sections.length;){const x=d.sections[V];V+=1,N+=`${x.startSeparator}${x.value||x.placeholder}${x.endSeparator}`.length}h(V-1)}):n?r.getRoot().contains(I.target)||h(u.startIndex):(o(!0),h(u.startIndex)))}),S=pe(I=>{if(!r.isReady()||c!=="all")return;const V=I.target.textContent??"";r.getRoot().innerHTML=d.sections.map(N=>`${N.startSeparator}${N.value||N.placeholder}${N.endSeparator}`).join(""),zu({focused:n,domGetters:r,stateResponse:i}),V.length===0||V.charCodeAt(0)===10?(f(),h("all")):V.length>1?m(V):(c==="all"&&h(0),a({keyPressed:V,sectionIndex:0}))}),T=pe(I=>{if(y||c!=="all"){I.preventDefault();return}const k=I.clipboardData.getData("text");I.preventDefault(),p(null),m(k)}),P=pe(()=>{if(n||g||!r.isReady())return;const I=Dt(r.getRoot());o(!0),r.getSectionIndexFromDOMElement(I)!=null||h(u.startIndex)}),A=pe(()=>{setTimeout(()=>{if(!r.isReady())return;const I=Dt(r.getRoot());!r.getRoot().contains(I)&&(o(!1),h(null))})});return{onKeyDown:b,onBlur:A,onFocus:P,onClick:w,onPaste:T,onInput:S,contentEditable:c==="all",tabIndex:l.disabled||c===0?-1:0}}function i2(e){const{manager:{internal_fieldValueManager:t},stateResponse:{areAllSectionsEmpty:n,state:o,updateValueFromValueStr:r}}=e,i=pe(l=>{r(l.target.value)});return{value:E.useMemo(()=>n?"":t.getV7HiddenInputValueFromSections(o.sections),[n,o.sections,t]),onChange:i}}function a2(e){const{stateResponse:{setSelectedSections:t},internalPropsWithDefaults:{disabled:n=!1}}=e,o=E.useCallback(r=>i=>{n||i.isDefaultPrevented()||t(r)},[n,t]);return E.useCallback(r=>({"data-sectionindex":r,onClick:o(r)}),[o])}function l2(e){const t=Ge(),n=oo(),{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:b=!1,readOnly:C=!1}}=e,w=c==="all",S=!w&&!b&&!C,T=pe(N=>{if(!r.isReady())return;const x=d.sections[N];r.getSectionContent(N).innerHTML=x.value||x.placeholder,zu({focused:o,domGetters:r,stateResponse:i})}),P=pe(N=>{if(!r.isReady())return;const x=N.target,j=x.textContent??"",R=r.getSectionIndexFromDOMElement(x),O=d.sections[R];if(C){T(R);return}if(j.length===0){if(O.value===""){T(R);return}const D=N.nativeEvent.inputType;if(D==="insertParagraph"||D==="insertLineBreak"){T(R);return}T(R),p();return}a({keyPressed:j,sectionIndex:R}),T(R)}),A=pe(N=>{N.preventDefault()}),I=pe(N=>{if(N.preventDefault(),C||b||typeof c!="number")return;const x=d.sections[c],j=N.clipboardData.getData("text"),R=/^[a-zA-Z]+$/.test(j),O=/^[0-9]+$/.test(j),D=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(j);x.contentType==="letter"&&R||x.contentType==="digit"&&O||x.contentType==="digit-with-letter"&&D?(h(null),g({section:x,newSectionValue:j,shouldGoToNextSection:!0})):!R&&!O&&(h(null),y(j))}),k=pe(N=>{N.preventDefault(),N.dataTransfer.dropEffect="none"}),V=E.useCallback(N=>()=>{b||m(N)},[b,m]);return E.useCallback((N,x)=>{const j=u[N.type]({currentDate:l.getDateFromSection(f,N),contentType:N.contentType,format:N.format});return{onInput:P,onPaste:I,onMouseUp:A,onDragOver:k,onFocus:V(x),"aria-readonly":C,"aria-valuenow":u2(N,t),"aria-valuemin":j.minimum,"aria-valuemax":j.maximum,"aria-valuetext":N.value?c2(N,t):n.empty,"aria-label":n[N.type],"aria-disabled":b,tabIndex:!S||w||x>0?-1:0,contentEditable:!w&&!b&&!C,role:"spinbutton","data-range-position":N.dateName||void 0,spellCheck:S?!1:void 0,autoCapitalize:S?"none":void 0,autoCorrect:S?"off":void 0,children:N.value||N.placeholder,inputMode:N.contentType==="letter"?"text":"numeric"}},[u,w,b,C,S,n,t,P,I,A,k,V,l,f])}function c2(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 u2(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 d2=e=>{const{props:t,manager:n,skipContextFieldRefAssignment:o,manager:{valueType:r,internal_useOpenPickerButtonAriaLabel:i}}=e,{internalProps:a,forwardedProps:l}=_y(t,r),c=Mb({manager:n,internalProps:a,skipContextFieldRefAssignment:o}),{sectionListRef:u,onBlur:d,onClick:f,onFocus:p,onInput:h,onPaste:m,onKeyDown:g,onClear:y,clearable:b}=l,{disabled:C=!1,readOnly:w=!1,autoFocus:S=!1,focused:T,unstableFieldRef:P}=c,A=E.useRef(null),I=_e(u,A),k=E.useMemo(()=>({isReady:()=>A.current!=null,getRoot:()=>A.current.getRoot(),getSectionContainer:re=>A.current.getSectionContainer(re),getSectionContent:re=>A.current.getSectionContent(re),getSectionIndexFromDOMElement:re=>A.current.getSectionIndexFromDOMElement(re)}),[A]),V=Eb({manager:n,internalPropsWithDefaults:c,forwardedProps:l}),{areAllSectionsEmpty:N,error:x,parsedSelectedSections:j,sectionOrder:R,state:O,value:D,clearValue:_,setSelectedSections:F}=V,B=Pb({stateResponse:V}),$=i(D),[M,W]=E.useState(!1);function K(re=0){if(C||!A.current||Jp(A)!=null)return;const be=ic(re,O.sections);W(!0),A.current.getSectionContent(be).focus()}const G=s2({manager:n,internalPropsWithDefaults:c,stateResponse:V,applyCharacterEditing:B,focused:M,setFocused:W,domGetters:k}),Z=i2({manager:n,stateResponse:V}),U=a2({stateResponse:V,internalPropsWithDefaults:c}),Q=l2({manager:n,stateResponse:V,applyCharacterEditing:B,internalPropsWithDefaults:c,domGetters:k,focused:M}),J=pe(re=>{g==null||g(re),G.onKeyDown(re)}),ee=pe(re=>{d==null||d(re),G.onBlur(re)}),q=pe(re=>{p==null||p(re),G.onFocus(re)}),X=pe(re=>{re.isDefaultPrevented()||(f==null||f(re),G.onClick(re))}),H=pe(re=>{m==null||m(re),G.onPaste(re)}),oe=pe(re=>{h==null||h(re),G.onInput(re)}),te=pe((re,...be)=>{re.preventDefault(),y==null||y(re,...be),_(),eh(A)?F(R.startIndex):K(0)}),ae=E.useMemo(()=>O.sections.map((re,be)=>{const se=Q(re,be);return{container:U(be),content:Q(re,be),before:{children:re.startSeparator},after:{children:re.endSeparator,"data-range-position":re.isEndFormatSeparator?se["data-range-position"]:void 0}}}),[O.sections,U,Q]);return E.useEffect(()=>{if(A.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please add the `enableAccessibleFieldDOMStructure={false}` prop to your Picker or Field component:","","<DatePicker enableAccessibleFieldDOMStructure={false} slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
|
|
228
|
+
`));S&&!C&&A.current&&A.current.getSectionContent(R.startIndex).focus()},[]),St(()=>{if(!(!M||!A.current)){if(j==="all")A.current.getRoot().focus();else if(typeof j=="number"){const re=A.current.getSectionContent(j);re&&re.focus()}}},[j,M]),St(()=>{zu({focused:M,domGetters:k,stateResponse:V})}),E.useImperativeHandle(P,()=>({getSections:()=>O.sections,getActiveSectionIndex:()=>Jp(A),setSelectedSections:re=>{if(C||!A.current)return;const be=ic(re,O.sections);W((be==="all"?0:be)!==null),F(re)},focusField:K,isFieldFocused:()=>eh(A)})),z({},l,G,{onBlur:ee,onClick:X,onFocus:q,onInput:oe,onPaste:H,onKeyDown:J,onClear:te},Z,{error:x,clearable:!!(b&&!N&&!w&&!C),focused:T??M,sectionListRef:I,enableAccessibleFieldDOMStructure:!0,elements:ae,areAllSectionsEmpty:N,disabled:C,readOnly:w,autoFocus:S,openPickerAriaLabel:$})};function Jp(e){var n;const t=Dt((n=e.current)==null?void 0:n.getRoot());return!t||!e.current||!e.current.getRoot().contains(t)?null:e.current.getSectionIndexFromDOMElement(t)}function eh(e){var n;const t=Dt((n=e.current)==null?void 0:n.getRoot());return!!e.current&&e.current.getRoot().contains(t)}const Zo=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),f2=(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=vu(l,n?"input-rtl":"input-ltr",t),u=`${l.startSeparator}${c}${l.endSeparator}`,d=Zo(u).length,f=u.length,p=Zo(c),h=r+(p===""?0:c.indexOf(p[0]))+l.startSeparator.length,m=h+p.length;i.push(z({},l,{start:o,end:o+d,startInInput:h,endInInput:m})),o+=d,r+=f}return i},p2=e=>{const t=an(),n=Yn(),o=Yn(),{props:r,manager:i,skipContextFieldRefAssignment:a,manager:{valueType:l,internal_valueManager:c,internal_fieldValueManager:u,internal_useOpenPickerButtonAriaLabel:d}}=e,{internalProps:f,forwardedProps:p}=_y(r,l),h=Mb({manager:i,internalProps:f,skipContextFieldRefAssignment:a}),{onFocus:m,onClick:g,onPaste:y,onBlur:b,onKeyDown:C,onClear:w,clearable:S,inputRef:T,placeholder:P}=p,{readOnly:A=!1,disabled:I=!1,autoFocus:k=!1,focused:V,unstableFieldRef:N}=h,x=E.useRef(null),j=_e(T,x),R=Eb({manager:i,internalPropsWithDefaults:h,forwardedProps:p}),{activeSectionIndex:O,areAllSectionsEmpty:D,error:_,localizedDigits:F,parsedSelectedSections:B,sectionOrder:$,state:M,value:W,clearValue:K,clearActiveSection:G,setCharacterQuery:Z,setSelectedSections:U,setTempAndroidValueStr:Q,updateSectionValue:J,updateValueFromValueStr:ee,getSectionsFromValue:q}=R,X=Pb({stateResponse:R}),H=d(W),oe=E.useMemo(()=>f2(M.sections,F,t),[M.sections,F,t]);function te(){const Se=x.current.selectionStart??0;let Pe;Se<=oe[0].startInInput||Se>=oe[oe.length-1].endInInput?Pe=1:Pe=oe.findIndex($e=>$e.startInInput-$e.startSeparator.length>Se);const xe=Pe===-1?oe.length-1:Pe-1;U(xe)}function ae(Se=0){var Pe;Dt(x.current)!==x.current&&((Pe=x.current)==null||Pe.focus(),U(Se))}const re=pe(Se=>{m==null||m(Se);const Pe=x.current;n.start(0,()=>{!Pe||Pe!==x.current||O==null&&(Pe.value.length&&Number(Pe.selectionEnd)-Number(Pe.selectionStart)===Pe.value.length?U("all"):te())})}),be=pe((Se,...Pe)=>{Se.isDefaultPrevented()||(g==null||g(Se,...Pe),te())}),se=pe(Se=>{if(y==null||y(Se),Se.preventDefault(),A||I)return;const Pe=Se.clipboardData.getData("text");if(typeof B=="number"){const xe=M.sections[B],$e=/^[a-zA-Z]+$/.test(Pe),Le=/^[0-9]+$/.test(Pe),ot=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(Pe);if(xe.contentType==="letter"&&$e||xe.contentType==="digit"&&Le||xe.contentType==="digit-with-letter"&&ot){Z(null),J({section:xe,newSectionValue:Pe,shouldGoToNextSection:!0});return}if($e||Le)return}Z(null),ee(Pe)}),he=pe(Se=>{b==null||b(Se),U(null)}),le=pe(Se=>{if(A)return;const Pe=Se.target.value;if(Pe===""){K();return}const xe=Se.nativeEvent.data,$e=xe&&xe.length>1,Le=$e?xe:Pe,ot=Zo(Le);if(B==="all"&&U(O),O==null||$e){ee($e?xe:ot);return}let Ze;if(B==="all"&&ot.length===1)Ze=ot;else{const At=Zo(u.getV6InputValueFromSections(oe,F,t));let Oe=-1,pt=-1;for(let me=0;me<At.length;me+=1)Oe===-1&&At[me]!==ot[me]&&(Oe=me),pt===-1&&At[At.length-me-1]!==ot[ot.length-me-1]&&(pt=me);const wt=oe[O];if(Oe<wt.start||At.length-pt-1>wt.end)return;const jn=ot.length-At.length+wt.end-Zo(wt.endSeparator||"").length;Ze=ot.slice(wt.start+Zo(wt.startSeparator||"").length,jn)}if(Ze.length===0){rD()&&Q(Le),G();return}X({keyPressed:Ze,sectionIndex:O})}),ue=pe((Se,...Pe)=>{Se.preventDefault(),w==null||w(Se,...Pe),K(),th(x)?U($.startIndex):ae(0)}),de=Ob({manager:i,internalPropsWithDefaults:h,stateResponse:R}),Ie=pe(Se=>{C==null||C(Se),de(Se)}),Me=E.useMemo(()=>P!==void 0?P:u.getV6InputValueFromSections(q(c.emptyValue),F,t),[P,u,q,c.emptyValue,F,t]),Ke=E.useMemo(()=>M.tempValueStrAndroid??u.getV6InputValueFromSections(M.sections,F,t),[M.sections,u,M.tempValueStrAndroid,F,t]);E.useEffect(()=>{x.current&&x.current===Dt(x.current)&&U("all")},[]),St(()=>{function Se(){if(!x.current)return;if(B==null){x.current.scrollLeft&&(x.current.scrollLeft=0);return}if(x.current!==Dt(x.current))return;const Pe=x.current.scrollTop;if(B==="all")x.current.select();else{const xe=oe[B],$e=xe.type==="empty"?xe.startInInput-xe.startSeparator.length:xe.startInInput,Le=xe.type==="empty"?xe.endInInput+xe.endSeparator.length:xe.endInInput;($e!==x.current.selectionStart||Le!==x.current.selectionEnd)&&x.current===Dt(x.current)&&x.current.setSelectionRange($e,Le),o.start(0,()=>{x.current&&x.current===Dt(x.current)&&x.current.selectionStart===x.current.selectionEnd&&(x.current.selectionStart!==$e||x.current.selectionEnd!==Le)&&Se()})}x.current.scrollTop=Pe}Se()});const Qe=E.useMemo(()=>O==null||M.sections[O].contentType==="letter"?"text":"numeric",[O,M.sections]),ut=!(x.current&&x.current===Dt(x.current))&&D;return E.useImperativeHandle(N,()=>({getSections:()=>M.sections,getActiveSectionIndex:()=>{const Se=x.current.selectionStart??0,Pe=x.current.selectionEnd??0;if(Se===0&&Pe===0)return null;const xe=Se<=oe[0].startInInput?1:oe.findIndex($e=>$e.startInInput-$e.startSeparator.length>Se);return xe===-1?oe.length-1:xe-1},setSelectedSections:Se=>U(Se),focusField:ae,isFieldFocused:()=>th(x)})),z({},p,{error:_,"aria-invalid":_,clearable:!!(S&&!D&&!A&&!I),onBlur:he,onClick:be,onFocus:re,onPaste:se,onKeyDown:Ie,onClear:ue,inputRef:j,enableAccessibleFieldDOMStructure:!1,placeholder:Me,inputMode:Qe,autoComplete:"off",value:ut?"":Ke,onChange:le,focused:V,disabled:I,readOnly:A,autoFocus:k,openPickerAriaLabel:H})};function th(e){return e.current===Dt(e.current)}const h2=e=>{const t=Oy();return(e.props.enableAccessibleFieldDOMStructure??(t==null?void 0:t.enableAccessibleFieldDOMStructure)??!0?d2:p2)(e)},m2=e=>{const t=VD(e);return h2({manager:t,props:e})};function Zs(e){return parseInt(e,10)||0}const g2={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function y2(e){for(const t in e)return!1;return!0}function nh(e){return y2(e)||e.outerHeightStyle===0&&!e.overflowing}const kb=E.forwardRef(function(t,n){const{onChange:o,maxRows:r,minRows:i=1,style:a,value:l,...c}=t,{current:u}=E.useRef(l!=null),d=E.useRef(null),f=_e(n,d),p=E.useRef(null),h=E.useRef(null),m=E.useCallback(()=>{const w=d.current,S=h.current;if(!w||!S)return;const P=kn(w).getComputedStyle(w);if(P.width==="0px")return{outerHeightStyle:0,overflowing:!1};S.style.width=P.width,S.value=w.value||t.placeholder||"x",S.value.slice(-1)===`
|
|
229
|
+
`&&(S.value+=" ");const A=P.boxSizing,I=Zs(P.paddingBottom)+Zs(P.paddingTop),k=Zs(P.borderBottomWidth)+Zs(P.borderTopWidth),V=S.scrollHeight;S.value="x";const N=S.scrollHeight;let x=V;i&&(x=Math.max(Number(i)*N,x)),r&&(x=Math.min(Number(r)*N,x)),x=Math.max(x,N);const j=x+(A==="border-box"?I+k:0),R=Math.abs(x-V)<=1;return{outerHeightStyle:j,overflowing:R}},[r,i,t.placeholder]),g=pe(()=>{const w=d.current,S=m();if(!w||!S||nh(S))return!1;const T=S.outerHeightStyle;return p.current!=null&&p.current!==T}),y=E.useCallback(()=>{const w=d.current,S=m();if(!w||!S||nh(S))return;const T=S.outerHeightStyle;p.current!==T&&(p.current=T,w.style.height=`${T}px`),w.style.overflow=S.overflowing?"hidden":""},[m]),b=E.useRef(-1);St(()=>{const w=im(y),S=d==null?void 0:d.current;if(!S)return;const T=kn(S);T.addEventListener("resize",w);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(()=>{g()&&(P.unobserve(S),cancelAnimationFrame(b.current),y(),b.current=requestAnimationFrame(()=>{P.observe(S)}))}),P.observe(S)),()=>{w.clear(),cancelAnimationFrame(b.current),T.removeEventListener("resize",w),P&&P.disconnect()}},[m,y,g]),St(()=>{y()});const C=w=>{u||y();const S=w.target,T=S.value.length,P=S.value.endsWith(`
|
|
230
|
+
`),A=S.selectionStart===T;P&&A&&S.setSelectionRange(T,T),o&&o(w)};return v.jsxs(E.Fragment,{children:[v.jsx("textarea",{value:l,onChange:C,ref:f,rows:i,style:a,...c}),v.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:{...g2.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(kb.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 vr({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 _s=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(_s.displayName="FormControlContext");function _n(){return E.useContext(_s)}function oh(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ni(e,t=!1){return e&&(oh(e.value)&&e.value!==""||t&&oh(e.defaultValue)&&e.defaultValue!=="")}function b2(e){return e.startAdornment}function v2(e){return Te("MuiInputBase",e)}const dr=Ce("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var rh;const ma=(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]},ga=(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]},x2=e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:i,focused:a,formControl:l,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:f,size:p,startAdornment:h,type:m}=e,g={root:["root",`color${ce(n)}`,o&&"disabled",r&&"error",c&&"fullWidth",a&&"focused",l&&"formControl",p&&p!=="medium"&&`size${ce(p)}`,d&&"multiline",h&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",o&&"disabled",m==="search"&&"inputTypeSearch",d&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return we(g,v2,t)},ya=ye("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ma})(Ye(({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",[`&.${dr.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%"}}]}))),ba=ye("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ga})(Ye(({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] + .${dr.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},[`&.${dr.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"}}]}})),sh=$S({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),va=E.forwardRef(function(t,n){const o=je({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:b,inputComponent:C="input",inputProps:w={},inputRef:S,margin:T,maxRows:P,minRows:A,multiline:I=!1,name:k,onBlur:V,onChange:N,onClick:x,onFocus:j,onKeyDown:R,onKeyUp:O,placeholder:D,readOnly:_,renderSuffix:F,rows:B,size:$,slotProps:M={},slots:W={},startAdornment:K,type:G="text",value:Z,...U}=o,Q=w.value!=null?w.value:Z,{current:J}=E.useRef(Q!=null),ee=E.useRef(),q=E.useCallback(xe=>{process.env.NODE_ENV!=="production"&&xe&&xe.nodeName!=="INPUT"&&!xe.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
|
+
`))},[]),X=_e(ee,S,w.ref,q),[H,oe]=E.useState(!1),te=_n();process.env.NODE_ENV!=="production"&&E.useEffect(()=>{if(te)return te.registerEffect()},[te]);const ae=vr({props:o,muiFormControl:te,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ae.focused=te?te.focused:H,E.useEffect(()=>{!te&&p&&H&&(oe(!1),V&&V())},[te,p,H,V]);const re=te&&te.onFilled,be=te&&te.onEmpty,se=E.useCallback(xe=>{Ni(xe)?re&&re():be&&be()},[re,be]);St(()=>{J&&se({value:Q})},[Q,se,J]);const he=xe=>{j&&j(xe),w.onFocus&&w.onFocus(xe),te&&te.onFocus?te.onFocus(xe):oe(!0)},le=xe=>{V&&V(xe),w.onBlur&&w.onBlur(xe),te&&te.onBlur?te.onBlur(xe):oe(!1)},ue=(xe,...$e)=>{if(!J){const Le=xe.target||ee.current;if(Le==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.":yn(1));se({value:Le.value})}w.onChange&&w.onChange(xe,...$e),N&&N(xe,...$e)};E.useEffect(()=>{se(ee.current)},[]);const de=xe=>{ee.current&&xe.currentTarget===xe.target&&ee.current.focus(),x&&x(xe)};let Ie=C,Me=w;I&&Ie==="input"&&(B?(process.env.NODE_ENV!=="production"&&(A||P)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Me={type:void 0,minRows:B,maxRows:B,...Me}):Me={type:void 0,maxRows:P,minRows:A,...Me},Ie=kb);const Ke=xe=>{se(xe.animationName==="mui-auto-fill-cancel"?ee.current:{value:"x"})};E.useEffect(()=>{te&&te.setAdornedStart(!!K)},[te,K]);const Qe={...o,color:ae.color||"primary",disabled:ae.disabled,endAdornment:m,error:ae.error,focused:ae.focused,formControl:te,fullWidth:y,hiddenLabel:ae.hiddenLabel,multiline:I,size:ae.size,startAdornment:K,type:G},ke=x2(Qe),ut=W.root||u.Root||ya,Se=M.root||d.root||{},Pe=W.input||u.Input||ba;return Me={...Me,...M.input??d.input},v.jsxs(E.Fragment,{children:[!h&&typeof sh=="function"&&(rh||(rh=v.jsx(sh,{}))),v.jsxs(ut,{...Se,ref:n,onClick:de,...U,...!sr(ut)&&{ownerState:{...Qe,...Se.ownerState}},className:ge(ke.root,Se.className,l,_&&"MuiInputBase-readOnly"),children:[K,v.jsx(_s.Provider,{value:null,children:v.jsx(Pe,{"aria-invalid":ae.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:f,disabled:ae.disabled,id:b,onAnimationStart:Ke,name:k,placeholder:D,readOnly:_,required:ae.required,rows:B,value:Q,onKeyDown:R,onKeyUp:O,type:G,...Me,...!sr(Pe)&&{as:Ie,ownerState:{...Qe,...Me.ownerState}},ref:X,className:ge(ke.input,Me.className,_&&"MuiInputBase-readOnly"),onBlur:le,onChange:ue,onFocus:he})}),m,F?F({...ae,startAdornment:K}):null]})]})});process.env.NODE_ENV!=="production"&&(va.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:da,inputProps:s.object,inputRef:yt,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 S2(e){return Te("MuiInput",e)}const Rr={...dr,...Ce("MuiInput",["root","underline","input"])},w2=e=>{const{classes:t,disableUnderline:n}=e,r=we({root:["root",!n&&"underline"],input:["input"]},S2,t);return{...t,...r}},C2=ye(ya,{shouldForwardProp:e=>ln(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ma(e,t),!n.disableUnderline&&t.underline]}})(Ye(({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"},[`&.${Rr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Rr.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(.${Rr.disabled}, .${Rr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Rr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Bt()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),T2=ye(ba,{name:"MuiInput",slot:"Input",overridesResolver:ga})({}),xa=E.forwardRef(function(t,n){const o=je({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=w2(o),y={root:{ownerState:{disableUnderline:r}}},b=d??a?Ot(d??a,y):y,C=f.root??i.Root??C2,w=f.input??i.Input??T2;return v.jsx(va,{slots:{root:C,input:w},slotProps:b,fullWidth:l,inputComponent:c,multiline:u,ref:n,type:p,...h,classes:m})});process.env.NODE_ENV!=="production"&&(xa.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:yt,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});xa.muiName="Input";function P2(e){return Te("MuiFilledInput",e)}const po={...dr,...Ce("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},E2=e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:r,size:i,hiddenLabel:a,multiline:l}=e,c={root:["root",!n&&"underline",o&&"adornedStart",r&&"adornedEnd",i==="small"&&`size${ce(i)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},u=we(c,P2,t);return{...t,...u}},M2=ye(ya,{shouldForwardProp:e=>ln(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ma(e,t),!n.disableUnderline&&t.underline]}})(Ye(({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}},[`&.${po.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${po.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"},[`&.${po.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${po.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(.${po.disabled}, .${po.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${po.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Bt()).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}}]}})),O2=ye(ba,{name:"MuiFilledInput",slot:"Input",overridesResolver:ga})(Ye(({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}}]}))),Sa=E.forwardRef(function(t,n){const o=je({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=E2(o),b={root:{ownerState:g},input:{ownerState:g}},C=f??a?Ot(b,f??a):b,w=p.root??i.Root??M2,S=p.input??i.Input??O2;return v.jsx(va,{slots:{root:w,input:S},slotProps:C,fullWidth:l,inputComponent:u,multiline:d,ref:n,type:h,...m,classes:y})});process.env.NODE_ENV!=="production"&&(Sa.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:yt,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});Sa.muiName="Input";var ih;const k2=ye("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:ln})({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%"}),D2=ye("legend",{name:"MuiNotchedOutlined",shouldForwardProp:ln})(Ye(({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 Db(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 v.jsx(k2,{"aria-hidden":!0,className:o,ownerState:c,...a,children:v.jsx(D2,{ownerState:c,children:l?v.jsx("span",{children:r}):ih||(ih=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(Db.propTypes={children:s.node,classes:s.object,className:s.string,label:s.node,notched:s.bool.isRequired,style:s.object});function R2(e){return Te("MuiOutlinedInput",e)}const dn={...dr,...Ce("MuiOutlinedInput",["root","notchedOutline","input"])},I2=e=>{const{classes:t}=e,o=we({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},R2,t);return{...t,...o}},A2=ye(ya,{shouldForwardProp:e=>ln(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ma})(Ye(({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 .${dn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${dn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${dn.focused} .${dn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Bt()).map(([n])=>({props:{color:n},style:{[`&.${dn.focused} .${dn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${dn.error} .${dn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${dn.disabled} .${dn.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"}}]}})),N2=ye(Db,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Ye(({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}})),_2=ye(ba,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ga})(Ye(({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}}]}))),wa=E.forwardRef(function(t,n){const o=je({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=I2(o),g=_n(),y=vr({props:o,muiFormControl:g,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),b={...o,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:g,fullWidth:i,hiddenLabel:y.hiddenLabel,multiline:c,size:y.size,type:p},C=d.root??r.Root??A2,w=d.input??r.Input??_2,[S,T]=nt("notchedOutline",{elementType:N2,className:m.notchedOutline,shouldForwardComponentProp:!0,ownerState:b,externalForwardedProps:{slots:d,slotProps:f},additionalProps:{label:l!=null&&l!==""&&y.required?v.jsxs(E.Fragment,{children:[l," ","*"]}):l}});return v.jsx(va,{slots:{root:C,input:w},slotProps:f,renderSuffix:P=>v.jsx(S,{...T,notched:typeof u<"u"?u:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:i,inputComponent:a,multiline:c,ref:n,type:p,...h,classes:{...m,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(wa.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:yt,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});wa.muiName="Input";function j2(e){return Te("MuiFormLabel",e)}const Jr=Ce("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),$2=e=>{const{classes:t,color:n,focused:o,disabled:r,error:i,filled:a,required:l}=e,c={root:["root",`color${ce(n)}`,r&&"disabled",i&&"error",a&&"filled",o&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return we(c,j2,t)},L2=ye("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Ye(({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(Bt()).map(([t])=>({props:{color:t},style:{[`&.${Jr.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Jr.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Jr.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),V2=ye("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ye(({theme:e})=>({[`&.${Jr.error}`]:{color:(e.vars||e).palette.error.main}}))),Rb=E.forwardRef(function(t,n){const o=je({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=_n(),g=vr({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},b=$2(y);return v.jsxs(L2,{as:l,ownerState:y,className:ge(b.root,i),ref:n,...h,children:[r,g.required&&v.jsxs(V2,{ownerState:y,"aria-hidden":!0,className:b.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Rb.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 F2(e){return Te("MuiInputLabel",e)}Ce("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const B2=e=>{const{classes:t,formControl:n,size:o,shrink:r,disableAnimation:i,variant:a,required:l}=e,c={root:["root",n&&"formControl",!i&&"animated",r&&"shrink",o&&o!=="medium"&&`size${ce(o)}`,a],asterisk:[l&&"asterisk"]},u=we(c,F2,t);return{...t,...u}},z2=ye(Rb,{shouldForwardProp:e=>ln(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Jr.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]]}})(Ye(({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)"}}]}))),Wu=E.forwardRef(function(t,n){const o=je({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,margin:i,shrink:a,variant:l,className:c,...u}=o,d=_n();let f=a;typeof f>"u"&&d&&(f=d.filled||d.focused||d.adornedStart);const p=vr({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=B2(h);return v.jsx(z2,{"data-shrink":f,ref:n,className:ge(m.root,c),...u,ownerState:h,classes:m})});process.env.NODE_ENV!=="production"&&(Wu.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 W2(e){return Te("MuiFormControl",e)}Ce("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const U2=e=>{const{classes:t,margin:n,fullWidth:o}=e,r={root:["root",n!=="none"&&`margin${ce(n)}`,o&&"fullWidth"]};return we(r,W2,t)},H2=ye("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%"}}]}),Uu=E.forwardRef(function(t,n){const o=je({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",...b}=o,C={...o,color:a,component:l,disabled:c,error:u,fullWidth:f,hiddenLabel:p,margin:h,required:m,size:g,variant:y},w=U2(C),[S,T]=E.useState(()=>{let D=!1;return r&&E.Children.forEach(r,_=>{if(!qr(_,["Input","Select"]))return;const F=qr(_,["Select"])?_.props.input:_;F&&b2(F.props)&&(D=!0)}),D}),[P,A]=E.useState(()=>{let D=!1;return r&&E.Children.forEach(r,_=>{qr(_,["Input","Select"])&&(Ni(_.props,!0)||Ni(_.props.inputProps,!0))&&(D=!0)}),D}),[I,k]=E.useState(!1);c&&I&&k(!1);const V=d!==void 0&&!c?d:I;let N;const x=E.useRef(!1);process.env.NODE_ENV!=="production"&&(N=()=>(x.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
232
|
+
`)),x.current=!0,()=>{x.current=!1}));const j=E.useCallback(()=>{A(!0)},[]),R=E.useCallback(()=>{A(!1)},[]),O=E.useMemo(()=>({adornedStart:S,setAdornedStart:T,color:a,disabled:c,error:u,filled:P,focused:V,fullWidth:f,hiddenLabel:p,size:g,onBlur:()=>{k(!1)},onFocus:()=>{k(!0)},onEmpty:R,onFilled:j,registerEffect:N,required:m,variant:y}),[S,a,c,u,P,V,f,p,N,R,j,m,g,y]);return v.jsx(_s.Provider,{value:O,children:v.jsx(H2,{as:l,ownerState:C,className:ge(w.root,i),ref:n,...b,children:r})})});process.env.NODE_ENV!=="production"&&(Uu.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 Y2(e){return Te("MuiFormHelperText",e)}const ah=Ce("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var lh;const q2=e=>{const{classes:t,contained:n,size:o,disabled:r,error:i,filled:a,focused:l,required:c}=e,u={root:["root",r&&"disabled",i&&"error",o&&`size${ce(o)}`,n&&"contained",l&&"focused",a&&"filled",c&&"required"]};return we(u,Y2,t)},G2=ye("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]}})(Ye(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ah.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ah.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}}]}))),Hu=E.forwardRef(function(t,n){const o=je({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=_n(),y=vr({props:o,muiFormControl:g,states:["variant","size","disabled","error","filled","focused","required"]}),b={...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 b.ownerState;const C=q2(b);return v.jsx(G2,{as:a,className:ge(C.root,i),ref:n,...m,ownerState:b,children:r===" "?lh||(lh=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):r})});process.env.NODE_ENV!=="production"&&(Hu.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 Ib(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function dl(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function ch(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Ab(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 Ir(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")||!Ab(l,i)||c)l=r(e,l,n);else return l.focus(),!0}return!1}const Nb=E.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=E.useRef(null),m=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});St(()=>{r&&h.current.focus()},[r]),E.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(w,{direction:S})=>{const T=!h.current.style.width;if(w.clientHeight<h.current.clientHeight&&T){const P=`${Ib(kn(w))}px`;h.current.style[S==="rtl"?"paddingLeft":"paddingRight"]=P,h.current.style.width=`calc(100% + ${P})`}return h.current}}),[]);const g=w=>{const S=h.current,T=w.key;if(w.ctrlKey||w.metaKey||w.altKey){d&&d(w);return}const A=Wr(Ct(S));if(T==="ArrowDown")w.preventDefault(),Ir(S,A,u,c,dl);else if(T==="ArrowUp")w.preventDefault(),Ir(S,A,u,c,ch);else if(T==="Home")w.preventDefault(),Ir(S,null,u,c,dl);else if(T==="End")w.preventDefault(),Ir(S,null,u,c,ch);else if(T.length===1){const I=m.current,k=T.toLowerCase(),V=performance.now();I.keys.length>0&&(V-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&k!==I.keys[0]&&(I.repeating=!1)),I.lastTime=V,I.keys.push(k);const N=A&&!I.repeating&&Ab(A,I);I.previousKeyMatched&&(N||Ir(S,A,!1,c,dl,I))?w.preventDefault():I.previousKeyMatched=!1}d&&d(w)},y=_e(h,n);let b=-1;E.Children.forEach(a,(w,S)=>{if(!E.isValidElement(w)){b===S&&(b+=1,b>=a.length&&(b=-1));return}process.env.NODE_ENV!=="production"&&Do.isFragment(w)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
233
|
+
`)),w.props.disabled||(f==="selectedMenu"&&w.props.selected||b===-1)&&(b=S),b===S&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(b+=1,b>=a.length&&(b=-1))});const C=E.Children.map(a,(w,S)=>{if(S===b){const T={};return i&&(T.autoFocus=!0),w.props.tabIndex===void 0&&f==="selectedMenu"&&(T.tabIndex=0),E.cloneElement(w,T)}return w});return v.jsx(Vu,{role:"menu",ref:y,className:l,onKeyDown:g,tabIndex:r?0:-1,...p,children:C})});process.env.NODE_ENV!=="production"&&(Nb.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 K2(e){const t=Ct(e);return t.body===e?kn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function es(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function uh(e){return parseFloat(kn(e).getComputedStyle(e).paddingRight)||0}function Z2(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 dh(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,a=>{const l=!i.includes(a),c=!Z2(a);l&&c&&es(a,r)})}function fl(e,t){let n=-1;return e.some((o,r)=>t(o)?(n=r,!0):!1),n}function X2(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(K2(o)){const a=Ib(kn(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${uh(o)+a}px`;const l=Ct(o).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${uh(c)+a}px`})}let i;if(o.parentNode instanceof DocumentFragment)i=Ct(o).body;else{const a=o.parentElement,l=kn(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 Q2(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class J2{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&&es(t.modalRef,!1);const r=Q2(n);dh(n,t.mount,t.modalRef,r,!0);const i=fl(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=fl(this.containers,i=>i.modals.includes(t)),r=this.containers[o];r.restore||(r.restore=X2(r,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const r=fl(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&&es(t.modalRef,n),dh(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&&es(a.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function eN(e){return Te("MuiBackdrop",e)}Ce("MuiBackdrop",["root","invisible"]);const tN=e=>{const{classes:t,invisible:n}=e;return we({root:["root",n&&"invisible"]},eN,t)},nN=ye("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"}}]}),Yu=E.forwardRef(function(t,n){const o=je({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},b=tN(y),C={transition:h,root:u.Root,...p},w={...d,...f},S={component:a,slots:C,slotProps:w},[T,P]=nt("root",{elementType:nN,externalForwardedProps:S,className:ge(b.root,i),ownerState:y}),[A,I]=nt("transition",{elementType:Xn,externalForwardedProps:S,ownerState:y});return v.jsx(A,{in:c,timeout:m,...g,...I,children:v.jsx(T,{"aria-hidden":!0,...P,ref:n,children:r})})});process.env.NODE_ENV!=="production"&&(Yu.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 oN(e){return typeof e=="function"?e():e}function rN(e){return e?e.props.hasOwnProperty("in"):!1}const fh=()=>{},Xs=new J2;function sN(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=E.useRef({}),p=E.useRef(null),h=E.useRef(null),m=_e(h,d),[g,y]=E.useState(!u),b=rN(l);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const w=()=>Ct(p.current),S=()=>(f.current.modalRef=h.current,f.current.mount=p.current,f.current),T=()=>{Xs.mount(S(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},P=pe(()=>{const O=oN(t)||w().body;Xs.add(S(),O),h.current&&T()}),A=()=>Xs.isTopModal(S()),I=pe(O=>{p.current=O,O&&(u&&A()?T():h.current&&es(h.current,C))}),k=E.useCallback(()=>{Xs.remove(S(),C)},[C]);E.useEffect(()=>()=>{k()},[k]),E.useEffect(()=>{u?P():(!b||!r)&&k()},[u,k,b,r,P]);const V=O=>D=>{var _;(_=O.onKeyDown)==null||_.call(O,D),!(D.key!=="Escape"||D.which===229||!A())&&(n||(D.stopPropagation(),c&&c(D,"escapeKeyDown")))},N=O=>D=>{var _;(_=O.onClick)==null||_.call(O,D),D.target===D.currentTarget&&c&&c(D,"backdropClick")};return{getRootProps:(O={})=>{const D=Vy(e);delete D.onTransitionEnter,delete D.onTransitionExited;const _={...D,...O};return{role:"presentation",..._,onKeyDown:V(_),ref:m}},getBackdropProps:(O={})=>{const D=O;return{"aria-hidden":!0,...D,onClick:N(D),open:u}},getTransitionProps:()=>{const O=()=>{y(!1),i&&i()},D=()=>{y(!0),a&&a(),r&&k()};return{onEnter:gd(O,(l==null?void 0:l.props.onEnter)??fh),onExited:gd(D,(l==null?void 0:l.props.onExited)??fh)}},rootRef:m,portalRef:I,isTopModal:A,exited:g,hasTransition:b}}function iN(e){return Te("MuiModal",e)}Ce("MuiModal",["root","hidden","backdrop"]);const aN=e=>{const{open:t,exited:n,classes:o}=e;return we({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},iN,o)},lN=ye("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ye(({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"}}]}))),cN=ye(Yu,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),qu=E.forwardRef(function(t,n){const o=je({name:"MuiModal",props:t}),{BackdropComponent:r=cN,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:b=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:S=!1,keepMounted:T=!1,onClose:P,onTransitionEnter:A,onTransitionExited:I,open:k,slotProps:V={},slots:N={},theme:x,...j}=o,R={...o,closeAfterTransition:c,disableAutoFocus:m,disableEnforceFocus:g,disableEscapeKeyDown:y,disablePortal:b,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:S,keepMounted:T},{getRootProps:O,getBackdropProps:D,getTransitionProps:_,portalRef:F,isTopModal:B,exited:$,hasTransition:M}=sN({...R,rootRef:n}),W={...R,exited:$},K=aN(W),G={};if(u.props.tabIndex===void 0&&(G.tabIndex="-1"),M){const{onEnter:q,onExited:X}=_();G.onEnter=q,G.onExited=X}const Z={slots:{root:p.Root,backdrop:p.Backdrop,...N},slotProps:{...h,...V}},[U,Q]=nt("root",{ref:n,elementType:lN,externalForwardedProps:{...Z,...j,component:f},getSlotProps:O,ownerState:W,className:ge(l,K==null?void 0:K.root,!W.open&&W.exited&&(K==null?void 0:K.hidden))}),[J,ee]=nt("backdrop",{ref:i==null?void 0:i.ref,elementType:r,externalForwardedProps:Z,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:q=>D({...q,onClick:X=>{q!=null&&q.onClick&&q.onClick(X)}}),className:ge(i==null?void 0:i.className,K==null?void 0:K.backdrop),ownerState:W});return!T&&!k&&(!M||$)?null:v.jsx(hs,{ref:F,container:d,disablePortal:b,children:v.jsxs(U,{...Q,children:[!S&&r?v.jsx(J,{...ee}):null,v.jsx(ms,{disableEnforceFocus:g,disableAutoFocus:m,disableRestoreFocus:C,isEnabled:B,open:k,children:E.cloneElement(u,G)})]})})});process.env.NODE_ENV!=="production"&&(qu.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:Os.isRequired,classes:s.object,className:s.string,closeAfterTransition:s.bool,component:s.elementType,components:s.shape({Backdrop:s.elementType,Root:s.elementType}),componentsProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([In,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 uN(e){return Te("MuiPopover",e)}Ce("MuiPopover",["root","paper"]);function ph(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function hh(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function mh(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ur(e){return typeof e=="function"?e():e}const dN=e=>{const{classes:t}=e;return we({root:["root"],paper:["paper"]},uN,t)},fN=ye(qu,{name:"MuiPopover",slot:"Root"})({}),_b=ye(Rs,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),jb=E.forwardRef(function(t,n){const o=je({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:b={},transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:w,transitionDuration:S="auto",TransitionProps:T={},disableScrollLock:P=!1,...A}=o,I=E.useRef(),k={...o,anchorOrigin:a,anchorReference:c,elevation:p,marginThreshold:h,transformOrigin:C,TransitionComponent:w,transitionDuration:S,TransitionProps:T},V=dN(k),N=E.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 q=Ur(i),X=q&&q.nodeType===1?q:Ct(I.current).body,H=X.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const oe=X.getBoundingClientRect();process.env.NODE_ENV!=="test"&&oe.top===0&&oe.left===0&&oe.right===0&&oe.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
234
|
+
`))}return{top:H.top+ph(H,a.vertical),left:H.left+hh(H,a.horizontal)}},[i,a.horizontal,a.vertical,l,c]),x=E.useCallback(q=>({vertical:ph(q,C.vertical),horizontal:hh(q,C.horizontal)}),[C.horizontal,C.vertical]),j=E.useCallback(q=>{const X={width:q.offsetWidth,height:q.offsetHeight},H=x(X);if(c==="none")return{top:null,left:null,transformOrigin:mh(H)};const oe=N();let te=oe.top-H.vertical,ae=oe.left-H.horizontal;const re=te+X.height,be=ae+X.width,se=kn(Ur(i)),he=se.innerHeight-h,le=se.innerWidth-h;if(h!==null&&te<h){const ue=te-h;te-=ue,H.vertical+=ue}else if(h!==null&&re>he){const ue=re-he;te-=ue,H.vertical+=ue}if(process.env.NODE_ENV!=="production"&&X.height>he&&X.height&&he&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${X.height-he}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
235
|
+
`)),h!==null&&ae<h){const ue=ae-h;ae-=ue,H.horizontal+=ue}else if(be>le){const ue=be-le;ae-=ue,H.horizontal+=ue}return{top:`${Math.round(te)}px`,left:`${Math.round(ae)}px`,transformOrigin:mh(H)}},[i,c,N,x,h]),[R,O]=E.useState(m),D=E.useCallback(()=>{const q=I.current;if(!q)return;const X=j(q);X.top!==null&&q.style.setProperty("top",X.top),X.left!==null&&(q.style.left=X.left),q.style.transformOrigin=X.transformOrigin,O(!0)},[j]);E.useEffect(()=>(P&&window.addEventListener("scroll",D),()=>window.removeEventListener("scroll",D)),[i,P,D]);const _=()=>{D()},F=()=>{O(!1)};E.useEffect(()=>{m&&D()}),E.useImperativeHandle(r,()=>m?{updatePosition:()=>{D()}}:null,[m,D]),E.useEffect(()=>{if(!m)return;const q=im(()=>{D()}),X=kn(Ur(i));return X.addEventListener("resize",q),()=>{q.clear(),X.removeEventListener("resize",q)}},[i,m,D]);let B=S;const $={slots:{transition:w,...y},slotProps:{transition:T,paper:g,...b}},[M,W]=nt("transition",{elementType:ds,externalForwardedProps:$,ownerState:k,getSlotProps:q=>({...q,onEntering:(X,H)=>{var oe;(oe=q.onEntering)==null||oe.call(q,X,H),_()},onExited:X=>{var H;(H=q.onExited)==null||H.call(q,X),F()}}),additionalProps:{appear:!0,in:m}});S==="auto"&&!M.muiSupportAuto&&(B=void 0);const K=f||(i?Ct(Ur(i)).body:void 0),[G,{slots:Z,slotProps:U,...Q}]=nt("root",{ref:n,elementType:fN,externalForwardedProps:{...$,...A},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:y.backdrop},slotProps:{backdrop:US(typeof b.backdrop=="function"?b.backdrop(k):b.backdrop,{invisible:!0})},container:K,open:m},ownerState:k,className:ge(V.root,d)}),[J,ee]=nt("paper",{ref:I,className:V.paper,elementType:_b,externalForwardedProps:$,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:R?void 0:{opacity:0}},ownerState:k});return v.jsx(G,{...Q,...!sr(G)&&{slots:Z,slotProps:U,disableScrollLock:P},children:v.jsx(M,{...W,timeout:B,children:v.jsx(J,{...ee,children:u})})})});process.env.NODE_ENV!=="production"&&(jb.propTypes={action:yt,anchorEl:Nn(s.oneOfType([In,s.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Ur(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(`
|
|
192
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(`
|
|
193
|
-
`))}return null}),anchorOrigin:
|
|
194
|
-
`)),
|
|
195
|
-
`));let
|
|
196
|
-
`))}},[Me,ce,v,w,_]),Se&&(v?Oe.length===0?ue=null:ue=Oe.reduce((pe,xe,Ae)=>(pe.push(xe),Ae<Oe.length-1&&pe.push(", "),pe),[]):ue=we);let Te=Z;!l&&H&&U&&(Te=K.clientWidth);let Ce;typeof j<"u"?Ce=j:Ce=m?null:0;const ie=F.id||(w?`mui-component-select-${w}`:void 0),ve=C({},t,{variant:I,value:_,open:he,error:h}),Pe=eT(ve),_e=C({},O.PaperProps,(r=O.slotProps)==null?void 0:r.paper),Ye=sa();return y.jsxs(S.Fragment,{children:[y.jsx(ZO,C({ref:X,tabIndex:Ce,role:"combobox","aria-controls":Ye,"aria-disabled":m?"true":void 0,"aria-expanded":he?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[x,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":s,onKeyDown:ae,onMouseDown:m||$?null:te,onBlur:le,onFocus:V},F,{ownerState:ve,className:me(F.className,Pe.select,u),id:ie,children:JO(ue)?fu||(fu=y.jsx("span",{className:"notranslate",children:""})):ue})),y.jsx(QO,C({"aria-invalid":h,value:Array.isArray(_)?_.join(","):_,name:w,ref:W,"aria-hidden":!0,onChange:oe,tabIndex:-1,disabled:m,className:Pe.nativeInput,autoFocus:a,ownerState:ve},N)),y.jsx(XO,{as:f,className:Pe.icon,ownerState:ve}),y.jsx(np,C({id:`menu-${w||""}`,anchorEl:K,open:he,onClose:ne,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},O,{MenuListProps:C({"aria-labelledby":x,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:Ye},O.MenuListProps),slotProps:C({},O.slotProps,{paper:C({},_e,{style:C({minWidth:Te},_e!=null?_e.style:null)})}),children:Ze}))]})});process.env.NODE_ENV!=="production"&&(ip.propTypes={"aria-describedby":o.string,"aria-label":o.string,autoFocus:o.bool,autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,disabled:o.bool,displayEmpty:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:qt,labelId:o.string,MenuProps:o.object,multiple:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClose:o.func,onFocus:o.func,onOpen:o.func,open:o.bool,readOnly:o.bool,renderValue:o.func,SelectDisplayProps:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.any,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});const tT=dt(y.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),nT=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],oT=["root"],rT=e=>{const{classes:t}=e;return t},il={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Yt(e)&&e!=="variant",slot:"Root"},sT=ye(Xs,il)(""),iT=ye(Js,il)(""),aT=ye(Qs,il)(""),al=S.forwardRef(function(t,n){const r=Be({name:"MuiSelect",props:t}),{autoWidth:s=!1,children:i,classes:a={},className:l,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=tT,id:p,input:m,inputProps:g,label:h,labelId:f,MenuProps:b,multiple:x=!1,native:O=!1,onClose:v,onOpen:w,open:E,renderValue:T,SelectDisplayProps:P,variant:V="outlined"}=r,D=re(r,nT),L=O?sp:ip,$=fn(),M=Mo({props:r,muiFormControl:$,states:["variant","error"]}),F=M.variant||V,j=C({},r,{variant:F,classes:a}),A=rT(j),I=re(A,oT),N=m||{standard:y.jsx(sT,{ownerState:j}),outlined:y.jsx(iT,{label:h,ownerState:j}),filled:y.jsx(aT,{ownerState:j})}[F],_=pt(n,hr(N));return y.jsx(S.Fragment,{children:S.cloneElement(N,C({inputComponent:L,inputProps:C({children:i,error:M.error,IconComponent:d,variant:F,type:void 0,multiple:x},O?{id:p}:{autoWidth:s,defaultOpen:c,displayEmpty:u,labelId:f,MenuProps:b,onClose:v,onOpen:w,open:E,renderValue:T,SelectDisplayProps:C({id:p},P)},g,{classes:g?Pt(I,g.classes):I},m?m.props.inputProps:{})},(x&&O||u)&&F==="outlined"?{notched:!0}:{},{ref:_,className:me(N.props.className,l,A.root)},!m&&{variant:F},D))})});process.env.NODE_ENV!=="production"&&(al.propTypes={autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,displayEmpty:o.bool,IconComponent:o.elementType,id:o.string,input:o.element,inputProps:o.object,label:o.node,labelId:o.string,MenuProps:o.object,multiple:o.bool,native:o.bool,onChange:o.func,onClose:o.func,onOpen:o.func,open:o.bool,renderValue:o.func,SelectDisplayProps:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.oneOfType([o.oneOf([""]),o.any]),variant:o.oneOf(["filled","outlined","standard"])});al.muiName="Select";function lT(e){return Ie("MuiTextField",e)}Re("MuiTextField",["root"]);const cT=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],uT={standard:Xs,filled:Qs,outlined:Js},dT=e=>{const{classes:t}=e;return Ve({root:["root"]},lT,t)},fT=ye(tl,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ap=S.forwardRef(function(t,n){const r=Be({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:i=!1,children:a,className:l,color:c="primary",defaultValue:u,disabled:d=!1,error:p=!1,FormHelperTextProps:m,fullWidth:g=!1,helperText:h,id:f,InputLabelProps:b,inputProps:x,InputProps:O,inputRef:v,label:w,maxRows:E,minRows:T,multiline:P=!1,name:V,onBlur:D,onChange:L,onFocus:$,placeholder:M,required:F=!1,rows:j,select:A=!1,SelectProps:I,type:N,value:_,variant:B="outlined"}=r,R=re(r,cT),k=C({},r,{autoFocus:i,color:c,disabled:d,error:p,fullWidth:g,multiline:P,required:F,select:A,variant:B}),W=dT(k);process.env.NODE_ENV!=="production"&&A&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const G={};B==="outlined"&&(b&&typeof b.shrink<"u"&&(G.notched=b.shrink),G.label=w),A&&((!I||!I.native)&&(G.id=void 0),G["aria-describedby"]=void 0);const U=sa(f),Y=h&&U?`${U}-helper-text`:void 0,H=w&&U?`${U}-label`:void 0,Z=uT[B],J=y.jsx(Z,C({"aria-describedby":Y,autoComplete:s,autoFocus:i,defaultValue:u,fullWidth:g,multiline:P,name:V,rows:j,maxRows:E,minRows:T,type:N,value:_,id:U,inputRef:v,onBlur:D,onChange:L,onFocus:$,placeholder:M,inputProps:x},G,O));return y.jsxs(fT,C({className:me(W.root,l),disabled:d,error:p,fullWidth:g,ref:n,required:F,color:c,variant:B,ownerState:k},R,{children:[w!=null&&w!==""&&y.jsx(el,C({htmlFor:U,id:H},b,{children:w})),A?y.jsx(al,C({"aria-describedby":Y,id:U,labelId:H,value:_,input:J},I,{children:a})):J,h&&y.jsx(nl,C({id:Y},m,{children:h}))]}))});process.env.NODE_ENV!=="production"&&(ap.propTypes={autoComplete:o.string,autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),defaultValue:o.any,disabled:o.bool,error:o.bool,FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:qt,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,placeholder:o.string,required:o.bool,rows:o.oneOfType([o.number,o.string]),select:o.bool,SelectProps:o.object,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any,variant:o.oneOf(["filled","outlined","standard"])});function pT(e){return Ie("MuiIconButton",e)}const mT=Re("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),hT=["edge","children","className","color","disabled","disableFocusRipple","size"],gT=e=>{const{classes:t,disabled:n,color:r,edge:s,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${fe(r)}`,s&&`edge${fe(s)}`,`size${fe(i)}`]};return Ve(a,pT,t)},bT=ye(Un,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${fe(n.color)}`],n.edge&&t[`edge${fe(n.edge)}`],t[`size${fe(n.size)}`]]}})(({theme:e,ownerState:t})=>C({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return C({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&C({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":C({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${mT.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),pr=S.forwardRef(function(t,n){const r=Be({props:t,name:"MuiIconButton"}),{edge:s=!1,children:i,className:a,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium"}=r,p=re(r,hT),m=C({},r,{edge:s,color:l,disabled:c,disableFocusRipple:u,size:d}),g=gT(m);return y.jsx(bT,C({className:me(g.root,a),centerRipple:!0,focusRipple:!u,disabled:c,ref:n},p,{ownerState:m,children:i}))});process.env.NODE_ENV!=="production"&&(pr.propTypes={children:Sn(o.node,e=>S.Children.toArray(e.children).some(n=>S.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(`
|
|
197
|
-
`)):null),classes:
|
|
198
|
-
`));return e},AT=["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"],jT=e=>Math.round(e*1e5)/1e5,ti=se.styled("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>C({},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:`${jT(.15/16)}em`,variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),dl=se.styled(cp,{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}}]})),LT=se.styled(up,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),FT=se.styled(fp,{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"})),VT=se.styled(dp,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),BT=se.styled("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(C({},DT)),zT=se.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]}})),WT=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:r,isFieldReadOnly:s,hasFieldError:i,inputSize:a,isInputInFullWidth:l,inputColor:c,hasStartAdornment:u,hasEndAdornment:d}=t,p={root:["root",n&&!r&&"focused",r&&"disabled",s&&"readOnly",i&&"error",l&&"fullWidth",`color${RT(c)}`,a==="small"&&"inputSizeSmall",u&&"adornedStart",d&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"],activeBar:["activeBar"]};return nt(p,IT,e)};function gu(e,t,n,r){var s;if(e.content.id){const i=(s=t.current)==null?void 0:s.querySelectorAll(`[data-sectionindex="${n}"] [data-range-position="${r}"]`);if(i)return Array.from(i).reduce((a,l)=>a+l.offsetWidth,0)}return 0}function UT(e,t){var s,i,a,l,c;let n=0;if(((s=t.current)==null?void 0:s.getAttribute("data-active-range-position"))==="end")for(let u=e.length-1;u>=e.length/2;u-=1)n+=gu(e[u],t,u,"end");else for(let u=0;u<e.length/2;u+=1)n+=gu(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 Dr=S.forwardRef(function(t,n){const r=se.useThemeProps({props:t,name:"MuiPickersInputBase"}),{elements:s,areAllSectionsEmpty:i,value:a,onChange:l,id:c,endAdornment:u,startAdornment:d,renderSuffix:p,slots:m,slotProps:g,contentEditable:h,tabIndex:f,onInput:b,onPaste:x,onKeyDown:O,name:v,readOnly:w,inputProps:E,inputRef:T,sectionListRef:P,onFocus:V,onBlur:D,classes:L,ownerState:$}=r,M=re(r,AT),F=ei(),j=S.useRef(null),A=S.useRef(null),I=S.useRef([]),N=Ct(n,j),_=Ct(E==null?void 0:E.ref,T),B=fn();if(!B)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const R=$??F,k=X=>{var K;(K=B.onFocus)==null||K.call(B,X),V==null||V(X)},W=X=>{k(X)},G=X=>{var K,q;if(O==null||O(X),X.key==="Enter"&&!X.defaultMuiPrevented){if((K=j.current)!=null&&K.dataset.multiInput)return;const te=(q=j.current)==null?void 0:q.closest("form"),ne=te==null?void 0:te.querySelector('[type="submit"]');if(!te||!ne)return;X.preventDefault(),te.requestSubmit(ne)}},U=X=>{var K;(K=B.onBlur)==null||K.call(B,X),D==null||D(X)};S.useEffect(()=>{B&&B.setAdornedStart(!!d)},[B,d]),S.useEffect(()=>{B&&(i?B.onEmpty():B.onFilled())},[B,i]);const Y=WT(L,R),H=(m==null?void 0:m.root)||ti,Z=Fe({elementType:H,externalSlotProps:g==null?void 0:g.root,externalForwardedProps:M,additionalProps:{"aria-invalid":B.error,ref:N},className:Y.root,ownerState:R}),J=(m==null?void 0:m.input)||dl,ee=s.some(X=>X.content["data-range-position"]!==void 0);return S.useEffect(()=>{if(!ee||!R.isPickerOpen)return;const{activeBarWidth:X,sectionOffsets:K}=UT(s,j);I.current=[K[0],K[1]],A.current&&(A.current.style.width=`${X}px`)},[s,ee,R.isPickerOpen]),y.jsxs(H,C({},Z,{children:[d,y.jsx(cl,{sectionListRef:P,elements:s,contentEditable:h,tabIndex:f,className:Y.sectionsContainer,onFocus:k,onBlur:U,onInput:b,onPaste:x,onKeyDown:G,slots:{root:J,section:LT,sectionContent:FT,sectionSeparator:VT},slotProps:{root:C({},g==null?void 0:g.input,{ownerState:R}),sectionContent:{className:po.sectionContent},sectionSeparator:({separatorPosition:X})=>({className:X==="before"?po.sectionBefore:po.sectionAfter})}}),u,p?p(C({},B)):null,y.jsx(BT,C({name:v,className:Y.input,value:a,onChange:l,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:w,required:B.required,disabled:B.disabled,onFocus:W},E,{ref:_})),ee&&y.jsx(zT,{className:Y.activeBar,ref:A,ownerState:{sectionOffsets:I.current}})]}))});process.env.NODE_ENV!=="production"&&(Dr.displayName="PickersInputBase");process.env.NODE_ENV!=="production"&&(Dr.propTypes={areAllSectionsEmpty:o.bool.isRequired,className:o.string,component:o.elementType,contentEditable:o.bool.isRequired,"data-multi-input":o.string,elements:o.arrayOf(o.shape({after:o.object.isRequired,before:o.object.isRequired,container:o.object.isRequired,content:o.object.isRequired})).isRequired,endAdornment:o.node,fullWidth:o.bool,id:o.string,inputProps:o.object,inputRef:dn,label:o.node,margin:o.oneOf(["dense","none","normal"]),name:o.string,onChange:o.func.isRequired,onClick:o.func.isRequired,onInput:o.func.isRequired,onKeyDown:o.func.isRequired,onPaste:o.func.isRequired,ownerState:o.any,readOnly:o.bool,renderSuffix:o.func,sectionListRef:o.oneOfType([o.func,o.shape({current:o.shape({getRoot:o.func.isRequired,getSectionContainer:o.func.isRequired,getSectionContent:o.func.isRequired,getSectionIndexFromDOMElement:o.func.isRequired})})]),slotProps:o.object,slots:o.object,startAdornment:o.node,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.string.isRequired});function HT(e){return ct("MuiPickersOutlinedInput",e)}const zt=C({},po,ft("MuiPickersOutlinedInput",["root","notchedOutline","input"])),qT=["children","className","label","notched","shrink"],YT=se.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}}),bu=se.styled("span",{slot:"internal",shouldForwardProp:void 0})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),GT=se.styled("legend",{slot:"internal",shouldForwardProp:e=>Sr(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 KT(e){const{className:t,label:n,notched:r}=e,s=re(e,qT),i=ei();return y.jsx(YT,C({"aria-hidden":!0,className:t},s,{ownerState:i,children:y.jsx(GT,{ownerState:i,notched:r,children:n?y.jsx(bu,{children:n}):y.jsx(bu,{className:"notranslate",children:""})})}))}const ZT=["label","autoFocus","ownerState","classes","notched"],XT=se.styled(ti,{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 .${zt.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${zt.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${zt.focused} .${zt.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${zt.disabled}`]:{[`& .${zt.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${zt.error} .${zt.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>{var r;return((r=(e.vars??e).palette[n])==null?void 0:r.main)??!1}).map(n=>({props:{inputColor:n},style:{[`&.${zt.focused}:not(.${zt.error}) .${zt.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),QT=se.styled(dl,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),JT=e=>{const n=nt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},HT,e);return C({},e,n)},ni=S.forwardRef(function(t,n){const r=se.useThemeProps({props:t,name:"MuiPickersOutlinedInput"}),{label:s,classes:i,notched:a}=r,l=re(r,ZT),c=fn(),u=JT(i);return y.jsx(Dr,C({slots:{root:XT,input:QT},renderSuffix:d=>y.jsx(KT,{shrink:!!(a||d.adornedStart||d.focused||d.filled),notched:!!(a||d.adornedStart||d.focused||d.filled),className:u.notchedOutline,label:s!=null&&s!==""&&(c!=null&&c.required)?y.jsxs(S.Fragment,{children:[s," ","*"]}):s})},l,{label:s,classes:u,ref:n}))});process.env.NODE_ENV!=="production"&&(ni.displayName="PickersOutlinedInput");process.env.NODE_ENV!=="production"&&(ni.propTypes={areAllSectionsEmpty:o.bool.isRequired,className:o.string,component:o.elementType,contentEditable:o.bool.isRequired,"data-multi-input":o.string,elements:o.arrayOf(o.shape({after:o.object.isRequired,before:o.object.isRequired,container:o.object.isRequired,content:o.object.isRequired})).isRequired,endAdornment:o.node,fullWidth:o.bool,id:o.string,inputProps:o.object,inputRef:dn,label:o.node,margin:o.oneOf(["dense","none","normal"]),name:o.string,notched:o.bool,onChange:o.func.isRequired,onClick:o.func.isRequired,onInput:o.func.isRequired,onKeyDown:o.func.isRequired,onPaste:o.func.isRequired,ownerState:o.any,readOnly:o.bool,renderSuffix:o.func,sectionListRef:o.oneOfType([o.func,o.shape({current:o.shape({getRoot:o.func.isRequired,getSectionContainer:o.func.isRequired,getSectionContent:o.func.isRequired,getSectionIndexFromDOMElement:o.func.isRequired})})]),slotProps:o.object,slots:o.object,startAdornment:o.node,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.string.isRequired});ni.muiName="Input";function eP(e){return ct("MuiPickersFilledInput",e)}const Mn=C({},po,ft("MuiPickersFilledInput",["root","underline","input"])),tP=["label","autoFocus","disableUnderline","hiddenLabel","classes"],nP=se.styled(ti,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>Hn.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)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=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:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Mn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Mn.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"},[`&.${Mn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Mn.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(.${Mn.disabled}, .${Mn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Mn.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),oP=se.styled(dl,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>Hn.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}}]}),rP=(e,t)=>{const{inputHasUnderline:n}=t,s=nt({root:["root",n&&"underline"],input:["input"]},eP,e);return C({},e,s)},oi=S.forwardRef(function(t,n){const r=se.useThemeProps({props:t,name:"MuiPickersFilledInput"}),{label:s,disableUnderline:i=!1,hiddenLabel:a=!1,classes:l}=r,c=re(r,tP),u=ei(),d=C({},u,{inputHasUnderline:!i}),p=rP(l,d);return y.jsx(Dr,C({slots:{root:nP,input:oP},slotProps:{root:{disableUnderline:i},input:{hiddenLabel:a}}},c,{label:s,classes:p,ref:n,ownerState:d}))});process.env.NODE_ENV!=="production"&&(oi.displayName="PickersFilledInput");process.env.NODE_ENV!=="production"&&(oi.propTypes={areAllSectionsEmpty:o.bool.isRequired,className:o.string,component:o.elementType,contentEditable:o.bool.isRequired,"data-multi-input":o.string,disableUnderline:o.bool,elements:o.arrayOf(o.shape({after:o.object.isRequired,before:o.object.isRequired,container:o.object.isRequired,content:o.object.isRequired})).isRequired,endAdornment:o.node,fullWidth:o.bool,hiddenLabel:o.bool,id:o.string,inputProps:o.object,inputRef:dn,label:o.node,margin:o.oneOf(["dense","none","normal"]),name:o.string,onChange:o.func.isRequired,onClick:o.func.isRequired,onInput:o.func.isRequired,onKeyDown:o.func.isRequired,onPaste:o.func.isRequired,ownerState:o.any,readOnly:o.bool,renderSuffix:o.func,sectionListRef:o.oneOfType([o.func,o.shape({current:o.shape({getRoot:o.func.isRequired,getSectionContainer:o.func.isRequired,getSectionContent:o.func.isRequired,getSectionIndexFromDOMElement:o.func.isRequired})})]),slotProps:o.object,slots:o.object,startAdornment:o.node,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.string.isRequired});oi.muiName="Input";function sP(e){return ct("MuiPickersFilledInput",e)}const Wo=C({},po,ft("MuiPickersInput",["root","underline","input"])),iP=["label","autoFocus","disableUnderline","ownerState","classes"],aP=se.styled(ti,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>Sr(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(r=>(e.vars??e).palette[r].main).map(r=>({props:{inputColor:r,inputHasUnderline:!0},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].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"},[`&.${Wo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wo.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(.${Wo.disabled}, .${Wo.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Wo.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),lP=(e,t)=>{const{inputHasUnderline:n}=t,s=nt({root:["root",!n&&"underline"],input:["input"]},sP,e);return C({},e,s)},ri=S.forwardRef(function(t,n){const r=se.useThemeProps({props:t,name:"MuiPickersInput"}),{label:s,disableUnderline:i=!1,classes:a}=r,l=re(r,iP),c=ei(),u=C({},c,{inputHasUnderline:!i}),d=lP(a,u);return y.jsx(Dr,C({slots:{root:aP},slotProps:{root:{disableUnderline:i}}},l,{ownerState:u,label:s,classes:d,ref:n}))});process.env.NODE_ENV!=="production"&&(ri.displayName="PickersInput");process.env.NODE_ENV!=="production"&&(ri.propTypes={areAllSectionsEmpty:o.bool.isRequired,className:o.string,component:o.elementType,contentEditable:o.bool.isRequired,"data-multi-input":o.string,disableUnderline:o.bool,elements:o.arrayOf(o.shape({after:o.object.isRequired,before:o.object.isRequired,container:o.object.isRequired,content:o.object.isRequired})).isRequired,endAdornment:o.node,fullWidth:o.bool,id:o.string,inputProps:o.object,inputRef:dn,label:o.node,margin:o.oneOf(["dense","none","normal"]),name:o.string,onChange:o.func.isRequired,onClick:o.func.isRequired,onInput:o.func.isRequired,onKeyDown:o.func.isRequired,onPaste:o.func.isRequired,ownerState:o.any,readOnly:o.bool,renderSuffix:o.func,sectionListRef:o.oneOfType([o.func,o.shape({current:o.shape({getRoot:o.func.isRequired,getSectionContainer:o.func.isRequired,getSectionContent:o.func.isRequired,getSectionIndexFromDOMElement:o.func.isRequired})})]),slotProps:o.object,slots:o.object,startAdornment:o.node,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.string.isRequired});ri.muiName="Input";const cP=["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"],uP={standard:ri,filled:oi,outlined:ni},dP=se.styled(tl,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),fP=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:r,isFieldRequired:s}=t;return nt({root:["root",n&&!r&&"focused",r&&"disabled",s&&"required"]},kT,e)},si=S.forwardRef(function(t,n){const r=se.useThemeProps({props:t,name:"MuiPickersTextField"}),{onFocus:s,onBlur:i,className:a,classes:l,color:c="primary",disabled:u=!1,error:d=!1,variant:p="outlined",required:m=!1,hiddenLabel:g=!1,InputProps:h,inputProps:f,inputRef:b,sectionListRef:x,elements:O,areAllSectionsEmpty:v,onClick:w,onKeyDown:E,onKeyUp:T,onPaste:P,onInput:V,endAdornment:D,startAdornment:L,tabIndex:$,contentEditable:M,focused:F,value:j,onChange:A,fullWidth:I,id:N,name:_,helperText:B,FormHelperTextProps:R,label:k,InputLabelProps:W,"data-active-range-position":G}=r,U=re(r,cP),Y=S.useRef(null),H=Ct(n,Y),Z=Ga(N),J=B&&Z?`${Z}-helper-text`:void 0,ee=k&&Z?`${Z}-label`:void 0,X=ll({disabled:r.disabled,required:r.required,readOnly:h==null?void 0:h.readOnly}),K=S.useMemo(()=>C({},X,{isFieldValueEmpty:v,isFieldFocused:F??!1,hasFieldError:d??!1,inputSize:r.size??"medium",inputColor:c??"primary",isInputInFullWidth:I??!1,hasStartAdornment:!!(L??(h==null?void 0:h.startAdornment)),hasEndAdornment:!!(D??(h==null?void 0:h.endAdornment)),inputHasLabel:!!k,isLabelShrunk:!!(W!=null&&W.shrink)}),[X,v,F,d,r.size,c,I,L,D,h==null?void 0:h.startAdornment,h==null?void 0:h.endAdornment,k,W==null?void 0:W.shrink]),q=fP(l,K),te=uP[p],ne={};return p==="outlined"?(W&&typeof W.shrink<"u"&&(ne.notched=W.shrink),ne.label=k):p==="filled"&&(ne.hiddenLabel=g),y.jsx(ul.Provider,{value:K,children:y.jsxs(dP,C({className:me(q.root,a),ref:H,focused:F,disabled:u,variant:p,error:d,color:c,fullWidth:I,required:m,ownerState:K},U,{children:[k!=null&&k!==""&&y.jsx(el,C({htmlFor:Z,id:ee},W,{children:k})),y.jsx(te,C({elements:O,areAllSectionsEmpty:v,onClick:w,onKeyDown:E,onKeyUp:T,onInput:V,onPaste:P,onFocus:s,onBlur:i,endAdornment:D,startAdornment:L,tabIndex:$,contentEditable:M,value:j,onChange:A,id:Z,fullWidth:I,inputProps:f,inputRef:b,sectionListRef:x,label:k,name:_,role:"group","aria-labelledby":ee,"aria-describedby":J,"aria-live":J?"polite":void 0,"data-active-range-position":G},ne,h)),B&&y.jsx(nl,C({id:J},R,{children:B}))]}))})});process.env.NODE_ENV!=="production"&&(si.displayName="PickersTextField");process.env.NODE_ENV!=="production"&&(si.propTypes={areAllSectionsEmpty:o.bool.isRequired,className:o.string,color:o.oneOf(["error","info","primary","secondary","success","warning"]),component:o.elementType,contentEditable:o.bool.isRequired,disabled:o.bool.isRequired,elements:o.arrayOf(o.shape({after:o.object.isRequired,before:o.object.isRequired,container:o.object.isRequired,content:o.object.isRequired})).isRequired,endAdornment:o.node,error:o.bool.isRequired,focused:o.bool,FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,hiddenLabel:o.bool,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:dn,label:o.node,margin:o.oneOf(["dense","none","normal"]),name:o.string,onBlur:o.func.isRequired,onChange:o.func.isRequired,onClick:o.func.isRequired,onFocus:o.func.isRequired,onInput:o.func.isRequired,onKeyDown:o.func.isRequired,onPaste:o.func.isRequired,readOnly:o.bool,required:o.bool,sectionListRef:o.oneOfType([o.func,o.shape({current:o.shape({getRoot:o.func.isRequired,getSectionContainer:o.func.isRequired,getSectionContent:o.func.isRequired,getSectionIndexFromDOMElement:o.func.isRequired})})]),size:o.oneOf(["medium","small"]),startAdornment:o.node,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.string.isRequired,variant:o.oneOf(["filled","outlined","standard"])});const pP=["enableAccessibleFieldDOMStructure"],mP=["InputProps","readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],hP=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],gP=["ownerState"],bP=["ownerState"],yP=["ownerState"],vP=["ownerState"],xP=["InputProps","inputProps"],Pi=()=>{},SP=e=>{var O,v,w,E,T,P,V,D,L;let{enableAccessibleFieldDOMStructure:t}=e,n=re(e,pP);if(t){const{InputProps:$,readOnly:M,onClear:F,clearable:j,clearButtonPosition:A,openPickerButtonPosition:I,openPickerAriaLabel:N}=n,_=re(n,mP),B=gn>=6&&((O=_==null?void 0:_.slotProps)!=null&&O.input)?er((v=_==null?void 0:_.slotProps)==null?void 0:v.input,$):Pi;return{clearable:j,onClear:F,clearButtonPosition:A,openPickerButtonPosition:I,openPickerAriaLabel:N,textFieldProps:C({},_,gn>=6&&((w=_==null?void 0:_.slotProps)!=null&&w.input)?{slotProps:C({},_==null?void 0:_.slotProps,{input:R=>C({},Ut(B,R),{readOnly:M})})}:{InputProps:C({},$??{},{readOnly:M})})}}const{onPaste:r,onKeyDown:s,inputMode:i,readOnly:a,InputProps:l,inputProps:c,inputRef:u,onClear:d,clearable:p,clearButtonPosition:m,openPickerButtonPosition:g,openPickerAriaLabel:h}=n,f=re(n,hP),b=gn>=6&&((E=f==null?void 0:f.slotProps)!=null&&E.input)?er((T=f==null?void 0:f.slotProps)==null?void 0:T.input,l):Pi,x=gn>=6&&((P=f==null?void 0:f.slotProps)!=null&&P.htmlInput)?er((V=f==null?void 0:f.slotProps)==null?void 0:V.htmlInput,c):Pi;return{clearable:p,onClear:d,clearButtonPosition:m,openPickerButtonPosition:g,openPickerAriaLabel:h,textFieldProps:C({},f,gn>=6&&((D=f==null?void 0:f.slotProps)!=null&&D.input||(L=f==null?void 0:f.slotProps)!=null&&L.htmlInput)?{slotProps:C({},f==null?void 0:f.slotProps,{input:$=>C({},Ut(b,$),{readOnly:a}),htmlInput:$=>C({},Ut(x,$),{inputMode:i,onPaste:r,onKeyDown:s,ref:u})})}:{InputProps:C({},l??{},{readOnly:a}),inputProps:C({},c??{},{inputMode:i,onPaste:r,onKeyDown:s,ref:u})})}},ii=S.createContext({slots:{},slotProps:{},inputRef:void 0});process.env.NODE_ENV!=="production"&&(ii.displayName="PickerFieldUIContext");function CP(e){var R,k,W,G;const{fieldResponse:t,defaultOpenPickerIcon:n}=e,r=En(),s=$a(),i=S.useContext(ii),{textFieldProps:a,onClear:l,clearable:c,openPickerAriaLabel:u,clearButtonPosition:d="end",openPickerButtonPosition:p="end"}=SP(t),m=ll(a),g=ge(U=>{U.preventDefault(),s==null||s.setOpen(Y=>!Y)}),h=s?s.triggerStatus:"hidden",f=c?d:null,b=h!=="hidden"?p:null,x=i.slots.textField??(t.enableAccessibleFieldDOMStructure===!1?ap:si),O=i.slots.inputAdornment??lp,v=Fe({elementType:O,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"start"},ownerState:C({},m,{position:"start"})}),w=re(v,gP),E=Fe({elementType:O,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"end"},ownerState:C({},m,{position:"end"})}),T=re(E,bP),P=i.slots.openPickerButton??pr,V=Fe({elementType:P,externalSlotProps:i.slotProps.openPickerButton,additionalProps:{disabled:h==="disabled",onClick:g,"aria-label":u,edge:a.variant!=="standard"?b:!1},ownerState:m}),D=re(V,yP),L=i.slots.openPickerIcon??n,$=Fe({elementType:L,externalSlotProps:i.slotProps.openPickerIcon,ownerState:m}),M=i.slots.clearButton??pr,F=Fe({elementType:M,externalSlotProps:i.slotProps.clearButton,className:"clearButton",additionalProps:{title:r.fieldClearLabel,tabIndex:-1,onClick:l,disabled:t.disabled||t.readOnly,edge:a.variant!=="standard"&&f!==b?f:!1},ownerState:m}),j=re(F,vP),A=i.slots.clearIcon??PT,I=Fe({elementType:A,externalSlotProps:i.slotProps.clearIcon,additionalProps:{fontSize:"small"},ownerState:m});a.ref=Ct(a.ref,s==null?void 0:s.rootRef);const N={},_=Ut((gn>=6&&((R=a==null?void 0:a.slotProps)==null?void 0:R.input))??a.InputProps,m);s&&(N.ref=s.triggerRef),!(_!=null&&_.startAdornment)&&(f==="start"||b==="start")&&(N.startAdornment=y.jsxs(O,C({},w,{children:[b==="start"&&y.jsx(P,C({},D,{children:y.jsx(L,C({},$))})),f==="start"&&y.jsx(M,C({},j,{children:y.jsx(A,C({},I))}))]}))),!(_!=null&&_.endAdornment)&&(f==="end"||b==="end")&&(N.endAdornment=y.jsxs(O,C({},T,{children:[f==="end"&&y.jsx(M,C({},j,{children:y.jsx(A,C({},I))})),b==="end"&&y.jsx(P,C({},D,{children:y.jsx(L,C({},$))}))]}))),!(N!=null&&N.endAdornment)&&!(N!=null&&N.startAdornment)&&i.slots.inputAdornment&&(N.endAdornment=y.jsx(O,C({},T))),f!=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 B=gn>=6&&((k=a==null?void 0:a.slotProps)!=null&&k.input)?Ut(er(_,N),m):C({},_,N);return a.inputProps=gn>=6&&((W=a==null?void 0:a.slotProps)!=null&&W.htmlInput)?Ut(a.slotProps.htmlInput,m):a.inputProps,(G=a==null?void 0:a.slotProps)==null||delete G.input,t.enableAccessibleFieldDOMStructure&&(a==null||delete a.slotProps),y.jsx(x,C({},a,{InputProps:B}))}function er(e,t){return e?t?n=>C({},Ut(t,n),Ut(e,n)):e:t}function wP(e){const{ref:t,externalForwardedProps:n,slotProps:r}=e,s=S.useContext(ii),i=$a(),a=ll(n),{InputProps:l,inputProps:c}=n,u=re(n,xP),d=Fe({elementType:si,externalSlotProps:er(s.slotProps.textField,r==null?void 0:r.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:s.inputRef},ownerState:a});return d.inputProps=C({},c,d.inputProps),d.InputProps=C({},l,d.InputProps),d}function EP(e){const{slots:t={},slotProps:n={},inputRef:r,children:s}=e,i=S.useMemo(()=>({inputRef:r,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}}),[r,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 y.jsx(ii.Provider,{value:i,children:s})}const OP=["slots","slotProps"],ai=S.forwardRef(function(t,n){const r=se.useThemeProps({props:t,name:"MuiDateField"}),{slots:s,slotProps:i}=r,a=re(r,OP),l=wP({slotProps:i,ref:n,externalForwardedProps:a}),c=yE(l);return y.jsx(EP,{slots:s,slotProps:i,inputRef:a.inputRef,children:y.jsx(CP,{fieldResponse:c,defaultOpenPickerIcon:TT})})});process.env.NODE_ENV!=="production"&&(ai.displayName="DateField");process.env.NODE_ENV!=="production"&&(ai.propTypes={autoFocus:o.bool,className:o.string,clearable:o.bool,clearButtonPosition:o.oneOf(["end","start"]),color:o.oneOf(["error","info","primary","secondary","success","warning"]),component:o.elementType,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disablePast:o.bool,enableAccessibleFieldDOMStructure:o.bool,focused:o.bool,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,hiddenLabel:o.bool,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:dn,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxDate:o.object,minDate:o.object,name:o.string,onBlur:o.func,onChange:o.func,onClear:o.func,onError:o.func,onFocus:o.func,onSelectedSectionsChange:o.func,openPickerButtonPosition:o.oneOf(["end","start"]),readOnly:o.bool,referenceDate:o.object,required:o.bool,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableYear:o.func,shouldRespectLeadingZeros:o.bool,size:o.oneOf(["medium","small"]),slotProps:o.object,slots:o.object,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,unstableFieldRef:o.oneOfType([o.func,o.object]),value:o.object,variant:o.oneOf(["filled","outlined","standard"])});const mp=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:s,disableFuture:i,disablePast:a,timezone:l})=>{const c=He();return S.useCallback(u=>wr({adapter:c,value:u,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:s,disableFuture:i,disablePast:a}})!==null,[c,e,t,n,r,s,i,a,l])},TP=(e,t)=>(n,r)=>{switch(r.type){case"setVisibleDate":return C({},n,{slideDirection:r.direction,currentMonth:r.month,isMonthSwitchingAnimating:!t.isSameMonth(r.month,n.currentMonth)&&!e&&!r.skipAnimation,focusedDay:r.focusedDay});case"changeMonthTimezone":{const s=r.newTimezone;if(t.getTimezone(n.currentMonth)===s)return n;let i=t.setTimezone(n.currentMonth,s);return t.getMonth(i)!==t.getMonth(n.currentMonth)&&(i=t.setMonth(i,t.getMonth(n.currentMonth))),C({},n,{currentMonth:i})}case"finishMonthSwitchingAnimation":return C({},n,{isMonthSwitchingAnimating:!1});default:throw new Error("missing support")}},PP=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:s,maxDate:i,minDate:a,onMonthChange:l,onYearChange:c,reduceAnimations:u,shouldDisableDate:d,timezone:p,getCurrentMonthFromVisibleDate:m}=e,g=He(),h=S.useRef(TP(!!u,g)).current,f=S.useMemo(()=>en.getInitialReferenceValue({value:t,adapter:g,timezone:p,props:e,referenceDate:n,granularity:Xt.day}),[n,p]),[b,x]=S.useReducer(h,{isMonthSwitchingAnimating:!1,focusedDay:f,currentMonth:g.setDate(f,1),slideDirection:"left"}),O=mp({shouldDisableDate:d,minDate:a,maxDate:i,disableFuture:r,disablePast:s,timezone:p});S.useEffect(()=>{x({type:"changeMonthTimezone",newTimezone:g.getTimezone(f)})},[f,g]);const v=ge(({target:E,reason:T})=>{if(T==="cell-interaction"&&b.focusedDay!=null&&g.isSameDay(E,b.focusedDay))return;const P=T==="cell-interaction";let V,D;if(T==="cell-interaction")V=m(E,b.currentMonth),D=E;else if(V=g.isSameMonth(E,b.currentMonth)?b.currentMonth:g.startOfMonth(E),D=E,O(D)){const M=g.startOfMonth(E),F=g.endOfMonth(E);D=ar({adapter:g,date:D,minDate:g.isBefore(a,M)?M:a,maxDate:g.isAfter(i,F)?F:i,disablePast:s,disableFuture:r,isDateDisabled:O,timezone:p})}const L=!g.isSameMonth(b.currentMonth,V),$=!g.isSameYear(b.currentMonth,V);L&&(l==null||l(V)),$&&(c==null||c(g.startOfYear(V))),x({type:"setVisibleDate",month:V,direction:g.isAfterDay(V,b.currentMonth)?"left":"right",focusedDay:b.focusedDay!=null&&D!=null&&g.isSameDay(D,b.focusedDay)?b.focusedDay:D,skipAnimation:P})}),w=S.useCallback(()=>{x({type:"finishMonthSwitchingAnimation"})},[]);return{referenceDate:f,calendarState:b,setVisibleDate:v,isDateDisabled:O,onMonthSwitchingAnimationEnd:w}},kP=e=>ct("MuiPickersFadeTransitionGroup",e);ft("MuiPickersFadeTransitionGroup",["root"]);const MP=["children"],RP=e=>nt({root:["root"]},kP,e),DP=se.styled(Or,{name:"MuiPickersFadeTransitionGroup",slot:"Root"})({display:"block",position:"relative"});function hp(e){const t=se.useThemeProps({props:e,name:"MuiPickersFadeTransitionGroup"}),{className:n,reduceAnimations:r,transKey:s,classes:i}=t,{children:a}=t,l=re(t,MP),c=RP(i),u=se.useTheme();return r?a:y.jsx(DP,{className:me(c.root,n),ownerState:l,children:y.jsx(qn,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:u.transitions.duration.enteringScreen,enter:u.transitions.duration.enteringScreen,exit:0},children:a},s)})}function IP(e){return ct("MuiPickersDay",e)}const Rn=ft("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]);function gp(e){const{disabled:t,selected:n,today:r,outsideCurrentMonth:s,day:i,disableMargin:a,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=e,u=He(),{ownerState:d}=gt();return S.useMemo(()=>C({},d,{day:i,isDaySelected:n??!1,isDayDisabled:t??!1,isDayCurrent:r??!1,isDayOutsideMonth:s??!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,r,s,a,l,c])}const _P=["autoFocus","className","classes","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","children","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],NP=(e,t)=>{const{isDaySelected:n,isDayDisabled:r,isDayCurrent:s,isDayOutsideMonth:i,disableMargin:a,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=t,u=i&&!c;return nt({root:["root",n&&!u&&"selected",r&&"disabled",!a&&"dayWithMargin",!l&&s&&"today",i&&c&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},IP,e)},bp=({theme:e})=>C({},e.typography.caption,{width:fr,height:fr,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})`:se.alpha(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:se.alpha(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Rn.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Rn.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}},[`&.${Rn.disabled}:not(.${Rn.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Rn.disabled}&.${Rn.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Ws}px`}},{props:{isDayOutsideMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,isDayCurrent:!0},style:{[`&:not(.${Rn.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),yp=(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]},$P=se.styled(Un,{name:"MuiPickersDay",slot:"Root",overridesResolver:yp})(bp),AP=se.styled("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:yp})(({theme:e})=>C({},bp({theme:e}),{opacity:0,pointerEvents:"none"})),Uo=()=>{},fl=S.forwardRef(function(t,n){const r=se.useThemeProps({props:t,name:"MuiPickersDay"}),{autoFocus:s=!1,className:i,classes:a,isAnimating:l,onClick:c,onDaySelect:u,onFocus:d=Uo,onBlur:p=Uo,onKeyDown:m=Uo,onMouseDown:g=Uo,onMouseEnter:h=Uo,children:f,day:b,selected:x,disabled:O,today:v,outsideCurrentMonth:w,disableMargin:E,disableHighlightToday:T,showDaysOutsideCurrentMonth:P}=r,V=re(r,_P),D=gp({day:b,selected:x,disabled:O,today:v,outsideCurrentMonth:w,disableMargin:E,disableHighlightToday:T,showDaysOutsideCurrentMonth:P}),L=NP(a,D),$=He(),M=S.useRef(null),F=Ct(M,n);tn(()=>{s&&!O&&!l&&!w&&M.current.focus()},[s,O,l,w]);const j=I=>{g(I),w&&I.preventDefault()},A=I=>{I.defaultMuiPrevented=!0,O||u(b),w&&I.currentTarget.focus(),c&&c(I)};return w&&!P?y.jsx(AP,{className:me(L.root,L.hiddenDaySpacingFiller,i),ownerState:D,role:V.role}):y.jsx($P,C({className:me(L.root,i),ref:F,centerRipple:!0,disabled:O,tabIndex:x?0:-1,onKeyDown:I=>m(I,b),onFocus:I=>d(I,b),onBlur:I=>p(I,b),onMouseEnter:I=>h(I,b),onClick:A,onMouseDown:j},V,{ownerState:D,children:f??$.format(b,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(fl.displayName="PickersDayRaw");process.env.NODE_ENV!=="production"&&(fl.propTypes={action:o.oneOfType([o.func,o.shape({current:o.shape({focusVisible:o.func.isRequired})})]),centerRipple:o.bool,classes:o.object,className:o.string,component:o.elementType,day:o.object.isRequired,disabled:o.bool,disableHighlightToday:o.bool,disableMargin:o.bool,disableRipple:o.bool,disableTouchRipple:o.bool,focusRipple:o.bool,focusVisibleClassName:o.string,isAnimating:o.bool,isFirstVisibleCell:o.bool.isRequired,isLastVisibleCell:o.bool.isRequired,onBlur:o.func,onDaySelect:o.func.isRequired,onFocus:o.func,onFocusVisible:o.func,onKeyDown:o.func,onMouseEnter:o.func,outsideCurrentMonth:o.bool.isRequired,selected:o.bool,showDaysOutsideCurrentMonth:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,today:o.bool,TouchRippleProps:o.object,touchRippleRef:o.oneOfType([o.func,o.shape({current:o.shape({pulsate:o.func.isRequired,start:o.func.isRequired,stop:o.func.isRequired})})])});const vp=S.memo(fl);process.env.NODE_ENV!=="production"&&(vp.displayName="PickersDay");const jP=e=>ct("MuiPickersSlideTransition",e),Rt=ft("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),LP=["children","className","reduceAnimations","slideDirection","transKey","classes"],FP=(e,t)=>{const{slideDirection:n}=t,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return nt(r,jP,e)},VP=se.styled(Or,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Rt["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Rt["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Rt.slideEnterActive}`]:t.slideEnterActive},{[`.${Rt.slideExit}`]:t.slideExit},{[`.${Rt["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Rt["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},[`& .${Rt["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Rt["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Rt.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Rt.slideExit}`]:{transform:"translate(0%)"},[`& .${Rt["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Rt["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function BP(e){const t=se.useThemeProps({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:s,slideDirection:i,transKey:a,classes:l}=t,c=re(t,LP),{ownerState:u}=gt(),d=C({},u,{slideDirection:i}),p=FP(l,d),m=se.useTheme();if(s)return y.jsx("div",{className:me(p.root,r),children:n});const g={exit:p.exit,enterActive:p.enterActive,enter:p.enter,exitActive:p.exitActive};return y.jsx(VP,{className:me(p.root,r),childFactory:h=>S.cloneElement(h,{classNames:g}),role:"presentation",ownerState:d,children:y.jsx(La,C({mountOnEnter:!0,unmountOnExit:!0,timeout:m.transitions.duration.complex,classNames:g},c,{children:n}),a)})}const zP=e=>ct("MuiDayCalendar",e);ft("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const WP=["parentProps","day","focusedDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],UP=["ownerState"],HP=e=>nt({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},zP,e),xp=(fr+Ws*2)*6,qP=se.styled("div",{name:"MuiDayCalendar",slot:"Root"})({}),YP=se.styled("div",{name:"MuiDayCalendar",slot:"Header"})({display:"flex",justifyContent:"center",alignItems:"center"}),GP=se.styled(wn,{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})),KP=se.styled(wn,{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})),ZP=se.styled(wn,{name:"MuiDayCalendar",slot:"WeekNumber"})(({theme:e})=>C({},e.typography.caption,{width:fr,height:fr,padding:0,margin:`0 ${Ws}px`,color:(e.vars||e).palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),XP=se.styled("div",{name:"MuiDayCalendar",slot:"LoadingContainer"})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:xp}),QP=se.styled(BP,{name:"MuiDayCalendar",slot:"SlideTransition"})({minHeight:xp}),JP=se.styled("div",{name:"MuiDayCalendar",slot:"MonthContainer"})({overflow:"hidden"}),ek=se.styled("div",{name:"MuiDayCalendar",slot:"WeekContainer"})({margin:`${Ws}px 0`,display:"flex",justifyContent:"center"});function tk(e){let{parentProps:t,day:n,focusedDay:r,selectedDays:s,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,c=re(e,WP);const{disabled:u,disableHighlightToday:d,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:m,slots:g,slotProps:h,timezone:f}=t,b=He(),x=js(f),O=r!=null&&b.isSameDay(n,r),v=l&&O,w=s.some(j=>b.isSameDay(j,n)),E=b.isSameDay(n,x),T=S.useMemo(()=>u||i(n),[u,i,n]),P=S.useMemo(()=>b.getMonth(n)!==a,[b,n,a]),V=gp({day:n,selected:w,disabled:T,today:E,outsideCurrentMonth:P,disableMargin:void 0,disableHighlightToday:d,showDaysOutsideCurrentMonth:m}),D=(g==null?void 0:g.day)??vp,L=Fe({elementType:D,externalSlotProps:h==null?void 0:h.day,additionalProps:C({disableHighlightToday:d,showDaysOutsideCurrentMonth:m,role:"gridcell",isAnimating:p,"data-timestamp":b.toJsDate(n).valueOf()},c),ownerState:C({},V,{day:n,isDayDisabled:T,isDaySelected:w})}),$=re(L,UP),M=S.useMemo(()=>{const j=b.startOfMonth(b.setMonth(n,a));return m?b.isSameDay(n,b.startOfWeek(j)):b.isSameDay(n,j)},[a,n,m,b]),F=S.useMemo(()=>{const j=b.endOfMonth(b.setMonth(n,a));return m?b.isSameDay(n,b.endOfWeek(j)):b.isSameDay(n,j)},[a,n,m,b]);return y.jsx(D,C({},$,{day:n,disabled:T,autoFocus:!P&&v,today:E,outsideCurrentMonth:P,isFirstVisibleCell:M,isLastVisibleCell:F,selected:w,tabIndex:O?0:-1,"aria-selected":w,"aria-current":E?"date":void 0}))}function nk(e){const t=se.useThemeProps({props:e,name:"MuiDayCalendar"}),n=He(),{onFocusedDayChange:r,className:s,classes:i,currentMonth:a,selectedDays:l,focusedDay:c,loading:u,onSelectedDaysChange:d,onMonthSwitchingAnimationEnd:p,readOnly:m,reduceAnimations:g,renderLoading:h=()=>y.jsx("span",{children:"..."}),slideDirection:f,TransitionProps:b,disablePast:x,disableFuture:O,minDate:v,maxDate:w,shouldDisableDate:E,shouldDisableMonth:T,shouldDisableYear:P,dayOfWeekFormatter:V=K=>n.format(K,"weekdayShort").charAt(0).toUpperCase(),hasFocus:D,onFocusedViewChange:L,gridLabelId:$,displayWeekNumber:M,fixedWeekNumber:F,timezone:j}=t,A=js(j),I=HP(i),N=on(),_=mp({shouldDisableDate:E,shouldDisableMonth:T,shouldDisableYear:P,minDate:v,maxDate:w,disablePast:x,disableFuture:O,timezone:j}),B=En(),R=ge(K=>{m||d(K)}),k=K=>{_(K)||(r(K),L==null||L(!0))},W=ge((K,q)=>{switch(K.key){case"ArrowUp":k(n.addDays(q,-7)),K.preventDefault();break;case"ArrowDown":k(n.addDays(q,7)),K.preventDefault();break;case"ArrowLeft":{const te=n.addDays(q,N?1:-1),ne=n.addMonths(q,N?1:-1),ce=ar({adapter:n,date:te,minDate:N?te:n.startOfMonth(ne),maxDate:N?n.endOfMonth(ne):te,isDateDisabled:_,timezone:j});k(ce||te),K.preventDefault();break}case"ArrowRight":{const te=n.addDays(q,N?-1:1),ne=n.addMonths(q,N?-1:1),ce=ar({adapter:n,date:te,minDate:N?n.startOfMonth(ne):te,maxDate:N?te:n.endOfMonth(ne),isDateDisabled:_,timezone:j});k(ce||te),K.preventDefault();break}case"Home":k(n.startOfWeek(q)),K.preventDefault();break;case"End":k(n.endOfWeek(q)),K.preventDefault();break;case"PageUp":k(n.addMonths(q,1)),K.preventDefault();break;case"PageDown":k(n.addMonths(q,-1)),K.preventDefault();break}}),G=ge((K,q)=>k(q)),U=ge((K,q)=>{c!=null&&n.isSameDay(c,q)&&(L==null||L(!1))}),Y=n.getMonth(a),H=n.getYear(a),Z=S.useMemo(()=>l.filter(K=>!!K).map(K=>n.startOfDay(K)),[n,l]),J=`${H}-${Y}`,ee=S.useMemo(()=>S.createRef(),[J]),X=S.useMemo(()=>{const K=n.getWeekArray(a);let q=n.addMonths(a,1);for(;F&&K.length<F;){const te=n.getWeekArray(q),ne=n.isSameDay(K[K.length-1][0],te[0][0]);te.slice(ne?1:0).forEach(ce=>{K.length<F&&K.push(ce)}),q=n.addMonths(q,1)}return K},[a,F,n]);return y.jsxs(qP,{role:"grid","aria-labelledby":$,className:I.root,children:[y.jsxs(YP,{role:"row",className:I.header,children:[M&&y.jsx(KP,{variant:"caption",role:"columnheader","aria-label":B.calendarWeekNumberHeaderLabel,className:I.weekNumberLabel,children:B.calendarWeekNumberHeaderText}),I0(n,A).map((K,q)=>y.jsx(GP,{variant:"caption",role:"columnheader","aria-label":n.format(K,"weekday"),className:I.weekDayLabel,children:V(K)},q.toString()))]}),u?y.jsx(XP,{className:I.loadingContainer,children:h()}):y.jsx(QP,C({transKey:J,onExited:p,reduceAnimations:g,slideDirection:f,className:me(s,I.slideTransition)},b,{nodeRef:ee,children:y.jsx(JP,{ref:ee,role:"rowgroup",className:I.monthContainer,children:X.map((K,q)=>y.jsxs(ek,{role:"row",className:I.weekContainer,"aria-rowindex":q+1,children:[M&&y.jsx(ZP,{className:I.weekNumber,role:"rowheader","aria-label":B.calendarWeekNumberAriaLabelText(n.getWeekNumber(K[0])),children:B.calendarWeekNumberText(n.getWeekNumber(K[0]))}),K.map((te,ne)=>y.jsx(tk,{parentProps:t,day:te,selectedDays:Z,isViewFocused:D,focusedDay:c,onKeyDown:W,onFocus:G,onBlur:U,onDaySelect:R,isDateDisabled:_,currentMonthNumber:Y,"aria-colindex":ne+1},te.toString()))]},`week-${K[0]}`))})}))]})}function Sp(e){return ct("MuiMonthCalendar",e)}const zr=ft("MuiMonthCalendar",["root","button","disabled","selected"]),ok=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],rk=(e,t)=>{const n={button:["button",t.isMonthDisabled&&"disabled",t.isMonthSelected&&"selected"]};return nt(n,Sp,e)},sk=se.styled("button",{name:"MuiMonthCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${zr.disabled}`]:t.disabled},{[`&.${zr.selected}`]:t.selected}]})(({theme:e})=>C({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})`:se.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:se.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${zr.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${zr.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Cp=S.memo(function(t){const{autoFocus:n,classes:r,disabled:s,selected:i,value:a,onClick:l,onKeyDown:c,onFocus:u,onBlur:d,slots:p,slotProps:m}=t,g=re(t,ok),h=S.useRef(null),{ownerState:f}=gt(),b=C({},f,{isMonthDisabled:s,isMonthSelected:i}),x=rk(r,b);tn(()=>{var w;n&&((w=h.current)==null||w.focus())},[n]);const O=(p==null?void 0:p.monthButton)??sk,v=Fe({elementType:O,externalSlotProps:m==null?void 0:m.monthButton,externalForwardedProps:g,additionalProps:{disabled:s,ref:h,type:"button",role:"radio","aria-checked":i,onClick:w=>l(w,a),onKeyDown:w=>c(w,a),onFocus:w=>u(w,a),onBlur:w=>d(w,a)},ownerState:b,className:x.button});return y.jsx(O,C({},v))});process.env.NODE_ENV!=="production"&&(Cp.displayName="MonthCalendarButton");const ik=["autoFocus","className","currentMonth","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],ak=e=>nt({root:["root"]},Sp,e);function lk(e,t){const n=se.useThemeProps({props:e,name:t}),r=Er(n);return C({},n,r,{monthsPerRow:n.monthsPerRow??3})}const yu=(e,t,n,r,s)=>!!(e===t&&r&&s.isSameYear(n,r)),ck=se.styled("div",{name:"MuiMonthCalendar",slot:"Root",shouldForwardProp:e=>Sr(e)&&e!=="monthsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:16,padding:"8px 0",width:Us,boxSizing:"border-box",variants:[{props:{monthsPerRow:3},style:{columnGap:24}},{props:{monthsPerRow:4},style:{columnGap:0}}]}),pl=S.forwardRef(function(t,n){const r=lk(t,"MuiMonthCalendar"),{autoFocus:s,className:i,currentMonth:a,classes:l,value:c,defaultValue:u,referenceDate:d,disabled:p,disableFuture:m,disablePast:g,maxDate:h,minDate:f,onChange:b,shouldDisableMonth:x,readOnly:O,onMonthFocus:v,hasFocus:w,onFocusedViewChange:E,monthsPerRow:T,timezone:P,gridLabelId:V,slots:D,slotProps:L}=r,$=re(r,ik),{value:M,handleValueChange:F,timezone:j}=Mr({name:"MonthCalendar",timezone:P,value:c,defaultValue:u,referenceDate:d,onChange:b,valueManager:en}),A=js(j),I=on(),N=He(),{ownerState:_}=gt(),B=S.useMemo(()=>en.getInitialReferenceValue({value:M,adapter:N,props:r,timezone:j,referenceDate:d,granularity:Xt.month}),[]),R=ak(l),k=S.useMemo(()=>N.getMonth(A),[N,A]),W=S.useMemo(()=>M!=null?N.getMonth(M):null,[M,N]),[G,U]=S.useState(()=>W||N.getMonth(B)),[Y,H]=So({name:"MonthCalendar",state:"hasFocus",controlled:w,default:s??!1}),Z=ge(ne=>{H(ne),E&&E(ne)}),J=S.useCallback(ne=>{const ce=N.startOfMonth(g&&N.isAfter(A,f)?A:f),oe=N.startOfMonth(m&&N.isBefore(A,h)?A:h),be=N.startOfMonth(ne);return N.isBefore(be,ce)||N.isAfter(be,oe)?!0:x?x(be):!1},[m,g,h,f,A,x,N]),ee=ge((ne,ce)=>{if(O)return;const be=(M&&a&&!N.isSameYear(M,a)?N.setYear(M,N.getYear(a)):M)??a??B,ae=N.setMonth(be,ce);F(ae)}),X=ge(ne=>{J(N.setMonth(M??a??B,ne))||(U(ne),Z(!0),v&&v(ne))});S.useEffect(()=>{U(ne=>W!==null&&ne!==W?W:ne)},[W]);const K=ge((ne,ce)=>{switch(ne.key){case"ArrowUp":X((12+ce-3)%12),ne.preventDefault();break;case"ArrowDown":X((12+ce+3)%12),ne.preventDefault();break;case"ArrowLeft":X((12+ce+(I?1:-1))%12),ne.preventDefault();break;case"ArrowRight":X((12+ce+(I?-1:1))%12),ne.preventDefault();break}}),q=ge((ne,ce)=>{X(ce)}),te=ge((ne,ce)=>{G===ce&&Z(!1)});return y.jsx(ck,C({ref:n,className:me(R.root,i),ownerState:_,role:"radiogroup","aria-labelledby":V,monthsPerRow:T},$,{children:Ea(N,a??M??B).map(ne=>{const ce=N.getMonth(ne),oe=N.format(ne,"monthShort"),be=N.format(ne,"month"),ae=yu(ce,W,ne,M,N),he=p||J(ne);return y.jsx(Cp,{selected:ae,value:ce,onClick:ee,onKeyDown:K,autoFocus:Y&&ce===G,disabled:he,tabIndex:ce===G&&!he?0:-1,onFocus:q,onBlur:te,"aria-current":yu(ce,k,ne,A,N)?"date":void 0,"aria-label":be,slots:D,slotProps:L,classes:l,children:oe},oe)})}))});process.env.NODE_ENV!=="production"&&(pl.displayName="MonthCalendar");process.env.NODE_ENV!=="production"&&(pl.propTypes={autoFocus:o.bool,classes:o.object,className:o.string,currentMonth:o.object,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disablePast:o.bool,gridLabelId:o.string,hasFocus:o.bool,maxDate:o.object,minDate:o.object,monthsPerRow:o.oneOf([3,4]),onChange:o.func,onFocusedViewChange:o.func,onMonthFocus:o.func,readOnly:o.bool,referenceDate:o.object,shouldDisableMonth:o.func,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object});function wp(e){return ct("MuiYearCalendar",e)}const Wr=ft("MuiYearCalendar",["root","button","disabled","selected"]),uk=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],dk=(e,t)=>{const n={button:["button",t.isYearDisabled&&"disabled",t.isYearSelected&&"selected"]};return nt(n,wp,e)},fk=se.styled("button",{name:"MuiYearCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${Wr.disabled}`]:t.disabled},{[`&.${Wr.selected}`]:t.selected}]})(({theme:e})=>C({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})`:se.alpha(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:se.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Wr.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Wr.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Ep=S.memo(function(t){const{autoFocus:n,classes:r,disabled:s,selected:i,value:a,onClick:l,onKeyDown:c,onFocus:u,onBlur:d,slots:p,slotProps:m}=t,g=re(t,uk),h=S.useRef(null),{ownerState:f}=gt(),b=C({},f,{isYearDisabled:s,isYearSelected:i}),x=dk(r,b);tn(()=>{var w;n&&((w=h.current)==null||w.focus())},[n]);const O=(p==null?void 0:p.yearButton)??fk,v=Fe({elementType:O,externalSlotProps:m==null?void 0:m.yearButton,externalForwardedProps:g,additionalProps:{disabled:s,ref:h,type:"button",role:"radio","aria-checked":i,onClick:w=>l(w,a),onKeyDown:w=>c(w,a),onFocus:w=>u(w,a),onBlur:w=>d(w,a)},ownerState:b,className:x.button});return y.jsx(O,C({},v))});process.env.NODE_ENV!=="production"&&(Ep.displayName="YearCalendarButton");const pk=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],mk=e=>nt({root:["root"]},wp,e);function hk(e,t){const n=se.useThemeProps({props:e,name:t}),r=Er(n);return C({},n,r,{yearsPerRow:n.yearsPerRow??3,yearsOrder:n.yearsOrder??"asc"})}const gk=se.styled("div",{name:"MuiYearCalendar",slot:"Root",shouldForwardProp:e=>Sr(e)&&e!=="yearsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:12,padding:"6px 0",overflowY:"auto",height:"100%",width:Us,maxHeight:zw,boxSizing:"border-box",position:"relative",variants:[{props:{yearsPerRow:3},style:{columnGap:24}},{props:{yearsPerRow:4},style:{columnGap:0,padding:"0 2px"}}]}),bk=se.styled("div",{name:"MuiYearCalendar",slot:"ButtonFiller"})({height:36,width:72}),ml=S.forwardRef(function(t,n){const r=hk(t,"MuiYearCalendar"),{autoFocus:s,className:i,classes:a,value:l,defaultValue:c,referenceDate:u,disabled:d,disableFuture:p,disablePast:m,maxDate:g,minDate:h,onChange:f,readOnly:b,shouldDisableYear:x,onYearFocus:O,hasFocus:v,onFocusedViewChange:w,yearsOrder:E,yearsPerRow:T,timezone:P,gridLabelId:V,slots:D,slotProps:L}=r,$=re(r,pk),{value:M,handleValueChange:F,timezone:j}=Mr({name:"YearCalendar",timezone:P,value:l,defaultValue:c,referenceDate:u,onChange:f,valueManager:en}),A=js(j),I=on(),N=He(),{ownerState:_}=gt(),B=S.useMemo(()=>en.getInitialReferenceValue({value:M,adapter:N,props:r,timezone:j,referenceDate:u,granularity:Xt.year}),[]),R=mk(a),k=S.useMemo(()=>N.getYear(A),[N,A]),W=S.useMemo(()=>M!=null?N.getYear(M):null,[M,N]),[G,U]=S.useState(()=>W||N.getYear(B)),[Y,H]=So({name:"YearCalendar",state:"hasFocus",controlled:v,default:s??!1}),Z=ge(le=>{H(le),w&&w(le)}),J=S.useCallback(le=>{if(m&&N.isBeforeYear(le,A)||p&&N.isAfterYear(le,A)||h&&N.isBeforeYear(le,h)||g&&N.isAfterYear(le,g))return!0;if(!x)return!1;const ue=N.startOfYear(le);return x(ue)},[p,m,g,h,A,x,N]),ee=ge((le,ue)=>{if(b)return;const we=N.setYear(M??B,ue);F(we)}),X=ge(le=>{J(N.setYear(M??B,le))||(U(le),Z(!0),O==null||O(le))});S.useEffect(()=>{U(le=>W!==null&&le!==W?W:le)},[W]);const K=E!=="desc"?T*1:T*-1,q=I&&E==="asc"||!I&&E==="desc"?-1:1,te=ge((le,ue)=>{switch(le.key){case"ArrowUp":X(ue-K),le.preventDefault();break;case"ArrowDown":X(ue+K),le.preventDefault();break;case"ArrowLeft":X(ue-q),le.preventDefault();break;case"ArrowRight":X(ue+q),le.preventDefault();break}}),ne=ge((le,ue)=>{X(ue)}),ce=ge((le,ue)=>{G===ue&&Z(!1)}),oe=S.useRef(null),be=Ct(n,oe);S.useEffect(()=>{if(s||oe.current===null)return;const le=oe.current.querySelector('[tabindex="0"]');if(!le)return;const ue=le.offsetHeight,we=le.offsetTop,Oe=oe.current.clientHeight,Se=oe.current.scrollTop,Me=we+ue;ue>Oe||we<Se||(oe.current.scrollTop=Me-Oe/2-ue/2)},[s]);const ae=N.getYearRange([h,g]);E==="desc"&&ae.reverse();let he=T-ae.length%T;return he===T&&(he=0),y.jsxs(gk,C({ref:be,className:me(R.root,i),ownerState:_,role:"radiogroup","aria-labelledby":V,yearsPerRow:T},$,{children:[ae.map(le=>{const ue=N.getYear(le),we=ue===W,Oe=d||J(le);return y.jsx(Ep,{selected:we,value:ue,onClick:ee,onKeyDown:te,autoFocus:Y&&ue===G,disabled:Oe,tabIndex:ue===G&&!Oe?0:-1,onFocus:ne,onBlur:ce,"aria-current":k===ue?"date":void 0,slots:D,slotProps:L,classes:a,children:N.format(le,"year")},N.format(le,"year"))}),Array.from({length:he},(le,ue)=>y.jsx(bk,{},ue))]}))});process.env.NODE_ENV!=="production"&&(ml.displayName="YearCalendar");process.env.NODE_ENV!=="production"&&(ml.propTypes={autoFocus:o.bool,classes:o.object,className:o.string,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disablePast:o.bool,gridLabelId:o.string,hasFocus:o.bool,maxDate:o.object,minDate:o.object,onChange:o.func,onFocusedViewChange:o.func,onYearFocus:o.func,readOnly:o.bool,referenceDate:o.object,shouldDisableYear:o.func,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object,yearsOrder:o.oneOf(["asc","desc"]),yearsPerRow:o.oneOf([3,4])});const yk=e=>ct("MuiPickersCalendarHeader",e),vk=ft("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function xk(e){return ct("MuiPickersArrowSwitcher",e)}ft("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const Sk=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],Ck=["ownerState"],wk=["ownerState"],Ek=se.styled("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),Ok=se.styled("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),vu=se.styled(pr,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),Tk=e=>nt({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},xk,e),Op=S.forwardRef(function(t,n){const r=on(),s=se.useThemeProps({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:l,slotProps:c,isNextDisabled:u,isNextHidden:d,onGoToNext:p,nextLabel:m,isPreviousDisabled:g,isPreviousHidden:h,onGoToPrevious:f,previousLabel:b,labelId:x,classes:O}=s,v=re(s,Sk),{ownerState:w}=gt(),E=Tk(O),T={isDisabled:u,isHidden:d,goTo:p,label:m},P={isDisabled:g,isHidden:h,goTo:f,label:b},V=(l==null?void 0:l.previousIconButton)??vu,D=Fe({elementType:V,externalSlotProps:c==null?void 0:c.previousIconButton,additionalProps:{size:"medium",title:P.label,"aria-label":P.label,disabled:P.isDisabled,edge:"end",onClick:P.goTo},ownerState:C({},w,{isButtonHidden:P.isHidden??!1}),className:me(E.button,E.previousIconButton)}),L=(l==null?void 0:l.nextIconButton)??vu,$=Fe({elementType:L,externalSlotProps:c==null?void 0:c.nextIconButton,additionalProps:{size:"medium",title:T.label,"aria-label":T.label,disabled:T.isDisabled,edge:"start",onClick:T.goTo},ownerState:C({},w,{isButtonHidden:T.isHidden??!1}),className:me(E.button,E.nextIconButton)}),M=(l==null?void 0:l.leftArrowIcon)??ET,F=Fe({elementType:M,externalSlotProps:c==null?void 0:c.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:w,className:E.leftArrowIcon}),j=re(F,Ck),A=(l==null?void 0:l.rightArrowIcon)??OT,I=Fe({elementType:A,externalSlotProps:c==null?void 0:c.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:w,className:E.rightArrowIcon}),N=re(I,wk);return y.jsxs(Ek,C({ref:n,className:me(E.root,a),ownerState:w},v,{children:[y.jsx(V,C({},D,{children:r?y.jsx(A,C({},N)):y.jsx(M,C({},j))})),i?y.jsx(wn,{variant:"subtitle1",component:"span",id:x,children:i}):y.jsx(Ok,{className:E.spacer,ownerState:w}),y.jsx(L,C({},$,{children:r?y.jsx(M,C({},j)):y.jsx(A,C({},N))}))]}))});process.env.NODE_ENV!=="production"&&(Op.displayName="PickersArrowSwitcher");function Pk(e,{disableFuture:t,maxDate:n,timezone:r}){const s=He();return S.useMemo(()=>{const i=s.date(void 0,r),a=s.startOfMonth(t&&s.isBefore(i,n)?i:n);return!s.isAfter(a,e)},[t,n,e,s,r])}function kk(e,{disablePast:t,minDate:n,timezone:r}){const s=He();return S.useMemo(()=>{const i=s.date(void 0,r),a=s.startOfMonth(t&&s.isAfter(i,n)?i:n);return!s.isBefore(a,e)},[t,n,e,s,r])}const Mk=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","classes","timezone","format"],Rk=["ownerState"],Dk=e=>nt({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},yk,e),Ik=se.styled("div",{name:"MuiPickersCalendarHeader",slot:"Root"})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),_k=se.styled("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer"})(({theme:e})=>C({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Nk=se.styled("div",{name:"MuiPickersCalendarHeader",slot:"Label"})({marginRight:6}),$k=se.styled(pr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton"})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${vk.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),Ak=se.styled(wT,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon"})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),hl=S.forwardRef(function(t,n){const r=En(),s=He(),i=se.useThemeProps({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:l,currentMonth:c,disabled:u,disableFuture:d,disablePast:p,maxDate:m,minDate:g,onMonthChange:h,onViewChange:f,view:b,reduceAnimations:x,views:O,labelId:v,className:w,classes:E,timezone:T,format:P=`${s.formats.month} ${s.formats.year}`}=i,V=re(i,Mk),{ownerState:D}=gt(),L=Dk(E),$=(a==null?void 0:a.switchViewButton)??$k,M=Fe({elementType:$,externalSlotProps:l==null?void 0:l.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(b)},ownerState:C({},D,{view:b}),className:L.switchViewButton}),F=(a==null?void 0:a.switchViewIcon)??Ak,j=Fe({elementType:F,externalSlotProps:l==null?void 0:l.switchViewIcon,ownerState:D,className:L.switchViewIcon}),A=re(j,Rk),I=()=>h(s.addMonths(c,1)),N=()=>h(s.addMonths(c,-1)),_=Pk(c,{disableFuture:d,maxDate:m,timezone:T}),B=kk(c,{disablePast:p,minDate:g,timezone:T}),R=()=>{if(!(O.length===1||!f||u))if(O.length===2)f(O.find(W=>W!==b)||O[0]);else{const W=O.indexOf(b)!==0?0:1;f(O[W])}};if(O.length===1&&O[0]==="year")return null;const k=s.formatByString(c,P);return y.jsxs(Ik,C({},V,{ownerState:D,className:me(L.root,w),ref:n,children:[y.jsxs(_k,{role:"presentation",onClick:R,ownerState:D,"aria-live":"polite",className:L.labelContainer,children:[y.jsx(hp,{reduceAnimations:x,transKey:k,children:y.jsx(Nk,{id:v,ownerState:D,className:L.label,children:k})}),O.length>1&&!u&&y.jsx($,C({},M,{children:y.jsx(F,C({},A))}))]}),y.jsx(qn,{in:b==="day",appear:!x,enter:!x,children:y.jsx(Op,{slots:a,slotProps:l,onGoToPrevious:N,isPreviousDisabled:B,previousLabel:r.previousMonth,onGoToNext:I,isNextDisabled:_,nextLabel:r.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(hl.displayName="PickersCalendarHeader");process.env.NODE_ENV!=="production"&&(hl.propTypes={classes:o.object,className:o.string,currentMonth:o.object.isRequired,disabled:o.bool,disableFuture:o.bool,disablePast:o.bool,format:o.string,labelId:o.string,maxDate:o.object.isRequired,minDate:o.object.isRequired,onMonthChange:o.func.isRequired,onViewChange:o.func,reduceAnimations:o.bool.isRequired,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string.isRequired,view:o.oneOf(["day","month","year"]).isRequired,views:o.arrayOf(o.oneOf(["day","month","year"]).isRequired).isRequired});const jk=se.styled("div",{slot:"internal",shouldForwardProp:void 0})({overflow:"hidden",width:Us,maxHeight:Xa,display:"flex",flexDirection:"column",margin:"0 auto"}),Lk=e=>ct("MuiDateCalendar",e);ft("MuiDateCalendar",["root","viewTransitionContainer"]);const Fk=["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"],Vk=e=>nt({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},Lk,e);function Bk(e,t){const n=se.useThemeProps({props:e,name:t}),r=Tf(n.reduceAnimations),s=Er(n);return C({},n,s,{loading:n.loading??!1,openTo:n.openTo??"day",views:n.views??["year","day"],reduceAnimations:r,renderLoading:n.renderLoading??(()=>y.jsx("span",{children:"..."}))})}const zk=se.styled(jk,{name:"MuiDateCalendar",slot:"Root"})({display:"flex",flexDirection:"column",height:Xa}),Wk=se.styled(hp,{name:"MuiDateCalendar",slot:"ViewTransitionContainer"})({}),gl=S.forwardRef(function(t,n){const r=He(),{ownerState:s}=gt(),i=Ga(),a=Bk(t,"MuiDateCalendar"),{autoFocus:l,onViewChange:c,value:u,defaultValue:d,referenceDate:p,disableFuture:m,disablePast:g,onChange:h,onMonthChange:f,reduceAnimations:b,shouldDisableDate:x,shouldDisableMonth:O,shouldDisableYear:v,view:w,views:E,openTo:T,className:P,classes:V,disabled:D,readOnly:L,minDate:$,maxDate:M,disableHighlightToday:F,focusedView:j,onFocusedViewChange:A,showDaysOutsideCurrentMonth:I,fixedWeekNumber:N,dayOfWeekFormatter:_,slots:B,slotProps:R,loading:k,renderLoading:W,displayWeekNumber:G,yearsOrder:U,yearsPerRow:Y,monthsPerRow:H,timezone:Z}=a,J=re(a,Fk),{value:ee,handleValueChange:X,timezone:K}=Mr({name:"DateCalendar",timezone:Z,value:u,defaultValue:d,referenceDate:p,onChange:h,valueManager:en}),{view:q,setView:te,focusedView:ne,setFocusedView:ce,goToNextView:oe,setValueAndGoToNextView:be}=kf({view:w,views:E,openTo:T,onChange:X,onViewChange:c,autoFocus:l,focusedView:j,onFocusedViewChange:A}),{referenceDate:ae,calendarState:he,setVisibleDate:le,isDateDisabled:ue,onMonthSwitchingAnimationEnd:we}=PP({value:ee,referenceDate:p,reduceAnimations:b,onMonthChange:f,minDate:$,maxDate:M,shouldDisableDate:x,disablePast:g,disableFuture:m,timezone:K,getCurrentMonthFromVisibleDate:(Ee,st)=>r.isSameMonth(Ee,st)?st:r.startOfMonth(Ee)}),Oe=D&&ee||$,Se=D&&ee||M,Me=`${i}-grid-label`,Ze=ne!==null,Te=(B==null?void 0:B.calendarHeader)??hl,Ce=Fe({elementType:Te,externalSlotProps:R==null?void 0:R.calendarHeader,additionalProps:{views:E,view:q,currentMonth:he.currentMonth,onViewChange:te,onMonthChange:Ee=>le({target:Ee,reason:"header-navigation"}),minDate:Oe,maxDate:Se,disabled:D,disablePast:g,disableFuture:m,reduceAnimations:b,timezone:K,labelId:Me},ownerState:s}),ie=ge(Ee=>{const st=r.startOfMonth(Ee),vt=r.endOfMonth(Ee),Vt=ue(Ee)?ar({adapter:r,date:Ee,minDate:r.isBefore($,st)?st:$,maxDate:r.isAfter(M,vt)?vt:M,disablePast:g,disableFuture:m,isDateDisabled:ue,timezone:K}):Ee;Vt?(be(Vt,"finish"),le({target:Vt,reason:"cell-interaction"})):(oe(),le({target:st,reason:"cell-interaction"}))}),ve=ge(Ee=>{const st=r.startOfYear(Ee),vt=r.endOfYear(Ee),Vt=ue(Ee)?ar({adapter:r,date:Ee,minDate:r.isBefore($,st)?st:$,maxDate:r.isAfter(M,vt)?vt:M,disablePast:g,disableFuture:m,isDateDisabled:ue,timezone:K}):Ee;Vt?(be(Vt,"finish"),le({target:Vt,reason:"cell-interaction"})):(oe(),le({target:st,reason:"cell-interaction"}))}),Pe=ge(Ee=>X(Ee&&us(r,Ee,ee??ae),"finish",q));S.useEffect(()=>{r.isValid(ee)&&le({target:ee,reason:"controlled-value-change"})},[ee]);const _e=Vk(V),Ye={disablePast:g,disableFuture:m,maxDate:M,minDate:$},pe={disableHighlightToday:F,readOnly:L,disabled:D,timezone:K,gridLabelId:Me,slots:B,slotProps:R},xe=S.useRef(q);S.useEffect(()=>{xe.current!==q&&(ne===xe.current&&ce(q,!0),xe.current=q)},[ne,ce,q]);const Ae=S.useMemo(()=>[ee],[ee]);return y.jsxs(zk,C({ref:n,className:me(_e.root,P),ownerState:s},J,{children:[y.jsx(Te,C({},Ce,{slots:B,slotProps:R})),y.jsx(Wk,{reduceAnimations:b,className:_e.viewTransitionContainer,transKey:q,ownerState:s,children:y.jsxs("div",{children:[q==="year"&&y.jsx(ml,C({},Ye,pe,{value:ee,onChange:ve,shouldDisableYear:v,hasFocus:Ze,onFocusedViewChange:Ee=>ce("year",Ee),yearsOrder:U,yearsPerRow:Y,referenceDate:ae})),q==="month"&&y.jsx(pl,C({},Ye,pe,{currentMonth:he.currentMonth,hasFocus:Ze,className:P,value:ee,onChange:ie,shouldDisableMonth:O,onFocusedViewChange:Ee=>ce("month",Ee),monthsPerRow:H,referenceDate:ae})),q==="day"&&y.jsx(nk,C({},he,Ye,pe,{onMonthSwitchingAnimationEnd:we,hasFocus:Ze,onFocusedDayChange:Ee=>le({target:Ee,reason:"cell-interaction"}),reduceAnimations:b,selectedDays:Ae,onSelectedDaysChange:Pe,shouldDisableDate:x,shouldDisableMonth:O,shouldDisableYear:v,onFocusedViewChange:Ee=>ce("day",Ee),showDaysOutsideCurrentMonth:I,fixedWeekNumber:N,dayOfWeekFormatter:_,displayWeekNumber:G,loading:k,renderLoading:W}))]})})]}))});process.env.NODE_ENV!=="production"&&(gl.displayName="DateCalendar");process.env.NODE_ENV!=="production"&&(gl.propTypes={autoFocus:o.bool,classes:o.object,className:o.string,dayOfWeekFormatter:o.func,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,fixedWeekNumber:o.number,focusedView:o.oneOf(["day","month","year"]),loading:o.bool,maxDate:o.object,minDate:o.object,monthsPerRow:o.oneOf([3,4]),onChange:o.func,onFocusedViewChange:o.func,onMonthChange:o.func,onViewChange:o.func,onYearChange:o.func,openTo:o.oneOf(["day","month","year"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,renderLoading:o.func,shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableYear:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object,view:o.oneOf(["day","month","year"]),views:o.arrayOf(o.oneOf(["day","month","year"]).isRequired),yearsOrder:o.oneOf(["asc","desc"]),yearsPerRow:o.oneOf([3,4])});const Ln=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:m,minDate:g,maxDate:h,shouldDisableDate:f,shouldDisableMonth:b,shouldDisableYear:x,reduceAnimations:O,onMonthChange:v,monthsPerRow:w,onYearChange:E,yearsOrder:T,yearsPerRow:P,slots:V,slotProps:D,loading:L,renderLoading:$,disableHighlightToday:M,readOnly:F,disabled:j,showDaysOutsideCurrentMonth:A,dayOfWeekFormatter:I,sx:N,autoFocus:_,fixedWeekNumber:B,displayWeekNumber:R,timezone:k})=>y.jsx(gl,{view:e,onViewChange:t,views:n.filter(hc),focusedView:r&&hc(r)?r:null,onFocusedViewChange:s,value:i,defaultValue:a,referenceDate:l,onChange:c,className:u,classes:d,disableFuture:p,disablePast:m,minDate:g,maxDate:h,shouldDisableDate:f,shouldDisableMonth:b,shouldDisableYear:x,reduceAnimations:O,onMonthChange:v,monthsPerRow:w,onYearChange:E,yearsOrder:T,yearsPerRow:P,slots:V,slotProps:D,loading:L,renderLoading:$,disableHighlightToday:M,readOnly:F,disabled:j,showDaysOutsideCurrentMonth:A,dayOfWeekFormatter:I,sx:N,autoFocus:_,fixedWeekNumber:B,displayWeekNumber:R,timezone:k});process.env.NODE_ENV!=="production"&&(Ln.displayName="renderDateViewCalendar");const bl=S.forwardRef(function(t,n){var c;const r=He(),s=lf(t,"MuiDesktopDatePicker"),i=C({day:Ln,month:Ln,year:Ln},s.viewRenderers),a=C({},s,{closeOnSelect:s.closeOnSelect??!0,viewRenderers:i,format:Oa(r,s,!1),yearsPerRow:s.yearsPerRow??4,slots:C({field:ai},s.slots),slotProps:C({},s.slotProps,{field:u=>{var d;return C({},Ut((d=s.slotProps)==null?void 0:d.field,u),rf(s))},toolbar:C({hidden:!0},(c=s.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=tE({ref:n,props:a,valueManager:en,valueType:"date",validator:wr,steps:null});return l()});process.env.NODE_ENV!=="production"&&(bl.displayName="DesktopDatePicker");bl.propTypes={autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,dayOfWeekFormatter:o.func,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:dn,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,minDate:o.object,monthsPerRow:o.oneOf([3,4]),name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onSelectedSectionsChange:o.func,onViewChange:o.func,onYearChange:o.func,open:o.bool,openTo:o.oneOf(["day","month","year"]),orientation:o.oneOf(["landscape","portrait"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableYear:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object,view:o.oneOf(["day","month","year"]),viewRenderers:o.shape({day:o.func,month:o.func,year:o.func}),views:o.arrayOf(o.oneOf(["day","month","year"]).isRequired),yearsOrder:o.oneOf(["asc","desc"]),yearsPerRow:o.oneOf([3,4])};function Uk(e){return Ie("MuiDialogContent",e)}Re("MuiDialogContent",["root","dividers"]);const Hk=Re("MuiDialogTitle",["root"]),qk=["className","dividers"],Yk=e=>{const{classes:t,dividers:n}=e;return Ve({root:["root",n&&"dividers"]},Uk,t)},Gk=ye("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>C({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${Hk.root} + &`]:{paddingTop:0}})),Tp=S.forwardRef(function(t,n){const r=Be({props:t,name:"MuiDialogContent"}),{className:s,dividers:i=!1}=r,a=re(r,qk),l=C({},r,{dividers:i}),c=Yk(l);return y.jsx(Gk,C({className:me(c.root,s),ownerState:l,ref:n},a))});process.env.NODE_ENV!=="production"&&(Tp.propTypes={children:o.node,classes:o.object,className:o.string,dividers:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Kk(e){return Ie("MuiDialog",e)}const tr=Re("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Pp=S.createContext({});process.env.NODE_ENV!=="production"&&(Pp.displayName="DialogContext");const Zk=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Xk=ye(ol,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Qk=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:s,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${fe(n)}`],paper:["paper",`paperScroll${fe(n)}`,`paperWidth${fe(String(r))}`,s&&"paperFullWidth",i&&"paperFullScreen"]};return Ve(a,Kk,t)},Jk=ye(rl,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),eM=ye("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${fe(n.scroll)}`]]}})(({ownerState:e})=>C({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),tM=ye(Tr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${fe(n.scroll)}`],t[`paperWidth${fe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>C({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${tr.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${tr.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${tr.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),kp=S.forwardRef(function(t,n){const r=Be({props:t,name:"MuiDialog"}),s=Ls(),i={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,BackdropComponent:c,BackdropProps:u,children:d,className:p,disableEscapeKeyDown:m=!1,fullScreen:g=!1,fullWidth:h=!1,maxWidth:f="sm",onBackdropClick:b,onClick:x,onClose:O,open:v,PaperComponent:w=Tr,PaperProps:E={},scroll:T="paper",TransitionComponent:P=qn,transitionDuration:V=i,TransitionProps:D}=r,L=re(r,Zk),$=C({},r,{disableEscapeKeyDown:m,fullScreen:g,fullWidth:h,maxWidth:f,scroll:T}),M=Qk($),F=S.useRef(),j=_=>{F.current=_.target===_.currentTarget},A=_=>{x&&x(_),F.current&&(F.current=null,b&&b(_),O&&O(_,"backdropClick"))},I=sa(l),N=S.useMemo(()=>({titleId:I}),[I]);return y.jsx(Jk,C({className:me(M.root,p),closeAfterTransition:!0,components:{Backdrop:Xk},componentsProps:{backdrop:C({transitionDuration:V,as:c},u)},disableEscapeKeyDown:m,onClose:O,open:v,ref:n,onClick:A,ownerState:$},L,{children:y.jsx(P,C({appear:!0,in:v,timeout:V,role:"presentation"},D,{children:y.jsx(eM,{className:me(M.container),onMouseDown:j,ownerState:$,children:y.jsx(tM,C({as:w,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":I},E,{className:me(M.paper,E.className),ownerState:$,children:y.jsx(Pp.Provider,{value:N,children:d})}))})}))}))});process.env.NODE_ENV!=="production"&&(kp.propTypes={"aria-describedby":o.string,"aria-labelledby":o.string,BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,disableEscapeKeyDown:o.bool,fullScreen:o.bool,fullWidth:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),onBackdropClick:o.func,onClick:o.func,onClose:o.func,open:o.bool.isRequired,PaperComponent:o.elementType,PaperProps:o.object,scroll:o.oneOf(["body","paper"]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});const nM=se.styled(kp,{slot:"internal"})({[`& .${tr.container}`]:{outline:0},[`& .${tr.paper}`]:{outline:0,minWidth:Us}}),oM=se.styled(Tp,{slot:"internal"})({"&:first-of-type":{padding:0}});function rM(e){const{children:t,slots:n,slotProps:r}=e,{open:s}=ko(),{dismissViews:i,onPopperExited:a}=gt(),l=(n==null?void 0:n.dialog)??nM,c=(n==null?void 0:n.mobileTransition)??qn;return y.jsx(l,C({open:s,onClose:()=>{i(),a==null||a()}},r==null?void 0:r.dialog,{TransitionComponent:c,TransitionProps:r==null?void 0:r.mobileTransition,PaperComponent:n==null?void 0:n.mobilePaper,PaperProps:r==null?void 0:r.mobilePaper,children:y.jsx(oM,{children:t})}))}const sM=["props","steps"],iM=["ownerState"],aM=e=>{var T;let{props:t,steps:n}=e,r=re(e,sM);const{slots:s,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=Wf({steps:n}),{providerProps:d,renderCurrentView:p,ownerState:m}=Rf(C({},r,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"mobile",getStepNavigation:u})),g=d.privateContextValue.labelId,h=((T=i==null?void 0:i.toolbar)==null?void 0:T.hidden)??!1,f=s.field,b=Fe({elementType:f,externalSlotProps:i==null?void 0:i.field,additionalProps:C({},h&&{id:g}),ownerState:m}),x=re(b,iM),O=s.layout??Hs;let v=g;h&&(a?v=`${g}-label`:v=void 0);const w=C({},i,{toolbar:C({},i==null?void 0:i.toolbar,{titleId:g}),mobilePaper:C({"aria-labelledby":v},i==null?void 0:i.mobilePaper)}),E=()=>y.jsxs(Jd,C({},d,{children:[y.jsx(f,C({},x,{slots:C({},s,x.slots),slotProps:C({},w,x.slotProps),inputRef:l})),y.jsx(rM,{slots:s,slotProps:w,children:y.jsx(O,C({},w==null?void 0:w.layout,{slots:s,slotProps:w,children:p()}))})]}));return process.env.NODE_ENV!=="production"&&(E.displayName="renderPicker"),{renderPicker:E}},yl=S.forwardRef(function(t,n){var c;const r=He(),s=lf(t,"MuiMobileDatePicker"),i=C({day:Ln,month:Ln,year:Ln},s.viewRenderers),a=C({},s,{viewRenderers:i,format:Oa(r,s,!1),slots:C({field:ai},s.slots),slotProps:C({},s.slotProps,{field:u=>{var d;return C({},Ut((d=s.slotProps)==null?void 0:d.field,u),rf(s))},toolbar:C({hidden:!1},(c=s.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=aM({ref:n,props:a,valueManager:en,valueType:"date",validator:wr,steps:null});return l()});process.env.NODE_ENV!=="production"&&(yl.displayName="MobileDatePicker");yl.propTypes={autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,dayOfWeekFormatter:o.func,defaultValue:o.object,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:dn,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,minDate:o.object,monthsPerRow:o.oneOf([3,4]),name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onSelectedSectionsChange:o.func,onViewChange:o.func,onYearChange:o.func,open:o.bool,openTo:o.oneOf(["day","month","year"]),orientation:o.oneOf(["landscape","portrait"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableYear:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object,view:o.oneOf(["day","month","year"]),viewRenderers:o.shape({day:o.func,month:o.func,year:o.func}),views:o.arrayOf(o.oneOf(["day","month","year"]).isRequired),yearsOrder:o.oneOf(["asc","desc"]),yearsPerRow:o.oneOf([3,4])};const lM=["desktopModeMediaQuery"],vl=S.forwardRef(function(t,n){const r=se.useThemeProps({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:s=N1}=r,i=re(r,lM);return Yd(s,{defaultMatches:!0})?y.jsx(bl,C({ref:n},i)):y.jsx(yl,C({ref:n},i))});process.env.NODE_ENV!=="production"&&(vl.displayName="DatePicker");process.env.NODE_ENV!=="production"&&(vl.propTypes={autoFocus:o.bool,className:o.string,closeOnSelect:o.bool,dayOfWeekFormatter:o.func,defaultValue:o.object,desktopModeMediaQuery:o.string,disabled:o.bool,disableFuture:o.bool,disableHighlightToday:o.bool,disableOpenPicker:o.bool,disablePast:o.bool,displayWeekNumber:o.bool,enableAccessibleFieldDOMStructure:o.any,fixedWeekNumber:o.number,format:o.string,formatDensity:o.oneOf(["dense","spacious"]),inputRef:dn,label:o.node,loading:o.bool,localeText:o.object,maxDate:o.object,minDate:o.object,monthsPerRow:o.oneOf([3,4]),name:o.string,onAccept:o.func,onChange:o.func,onClose:o.func,onError:o.func,onMonthChange:o.func,onOpen:o.func,onSelectedSectionsChange:o.func,onViewChange:o.func,onYearChange:o.func,open:o.bool,openTo:o.oneOf(["day","month","year"]),orientation:o.oneOf(["landscape","portrait"]),readOnly:o.bool,reduceAnimations:o.bool,referenceDate:o.object,renderLoading:o.func,selectedSections:o.oneOfType([o.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),o.number]),shouldDisableDate:o.func,shouldDisableMonth:o.func,shouldDisableYear:o.func,showDaysOutsideCurrentMonth:o.bool,slotProps:o.object,slots:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),timezone:o.string,value:o.object,view:o.oneOf(["day","month","year"]),viewRenderers:o.shape({day:o.func,month:o.func,year:o.func}),views:o.arrayOf(o.oneOf(["day","month","year"]).isRequired),yearsOrder:o.oneOf(["asc","desc"]),yearsPerRow:o.oneOf([3,4])});var Mp={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(wo,function(){var n=1e3,r=6e4,s=36e5,i="millisecond",a="second",l="minute",c="hour",u="day",d="week",p="month",m="quarter",g="year",h="date",f="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|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,O={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(j){var A=["th","st","nd","rd"],I=j%100;return"["+j+(A[(I-20)%10]||A[I]||A[0])+"]"}},v=function(j,A,I){var N=String(j);return!N||N.length>=A?j:""+Array(A+1-N.length).join(I)+j},w={s:v,z:function(j){var A=-j.utcOffset(),I=Math.abs(A),N=Math.floor(I/60),_=I%60;return(A<=0?"+":"-")+v(N,2,"0")+":"+v(_,2,"0")},m:function j(A,I){if(A.date()<I.date())return-j(I,A);var N=12*(I.year()-A.year())+(I.month()-A.month()),_=A.clone().add(N,p),B=I-_<0,R=A.clone().add(N+(B?-1:1),p);return+(-(N+(I-_)/(B?_-R:R-_))||0)},a:function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},p:function(j){return{M:p,y:g,w:d,d:u,D:h,h:c,m:l,s:a,ms:i,Q:m}[j]||String(j||"").toLowerCase().replace(/s$/,"")},u:function(j){return j===void 0}},E="en",T={};T[E]=O;var P="$isDayjsObject",V=function(j){return j instanceof M||!(!j||!j[P])},D=function j(A,I,N){var _;if(!A)return E;if(typeof A=="string"){var B=A.toLowerCase();T[B]&&(_=B),I&&(T[B]=I,_=B);var R=A.split("-");if(!_&&R.length>1)return j(R[0])}else{var k=A.name;T[k]=A,_=k}return!N&&_&&(E=_),_||!N&&E},L=function(j,A){if(V(j))return j.clone();var I=typeof A=="object"?A:{};return I.date=j,I.args=arguments,new M(I)},$=w;$.l=D,$.i=V,$.w=function(j,A){return L(j,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var M=function(){function j(I){this.$L=D(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[P]=!0}var A=j.prototype;return A.parse=function(I){this.$d=function(N){var _=N.date,B=N.utc;if(_===null)return new Date(NaN);if($.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var R=_.match(b);if(R){var k=R[2]-1||0,W=(R[7]||"0").substring(0,3);return B?new Date(Date.UTC(R[1],k,R[3]||1,R[4]||0,R[5]||0,R[6]||0,W)):new Date(R[1],k,R[3]||1,R[4]||0,R[5]||0,R[6]||0,W)}}return new Date(_)}(I),this.init()},A.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},A.$utils=function(){return $},A.isValid=function(){return this.$d.toString()!==f},A.isSame=function(I,N){var _=L(I);return this.startOf(N)<=_&&_<=this.endOf(N)},A.isAfter=function(I,N){return L(I)<this.startOf(N)},A.isBefore=function(I,N){return this.endOf(N)<L(I)},A.$g=function(I,N,_){return $.u(I)?this[N]:this.set(_,I)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(I,N){var _=this,B=!!$.u(N)||N,R=$.p(I),k=function(ee,X){var K=$.w(_.$u?Date.UTC(_.$y,X,ee):new Date(_.$y,X,ee),_);return B?K:K.endOf(u)},W=function(ee,X){return $.w(_.toDate()[ee].apply(_.toDate("s"),(B?[0,0,0,0]:[23,59,59,999]).slice(X)),_)},G=this.$W,U=this.$M,Y=this.$D,H="set"+(this.$u?"UTC":"");switch(R){case g:return B?k(1,0):k(31,11);case p:return B?k(1,U):k(0,U+1);case d:var Z=this.$locale().weekStart||0,J=(G<Z?G+7:G)-Z;return k(B?Y-J:Y+(6-J),U);case u:case h:return W(H+"Hours",0);case c:return W(H+"Minutes",1);case l:return W(H+"Seconds",2);case a:return W(H+"Milliseconds",3);default:return this.clone()}},A.endOf=function(I){return this.startOf(I,!1)},A.$set=function(I,N){var _,B=$.p(I),R="set"+(this.$u?"UTC":""),k=(_={},_[u]=R+"Date",_[h]=R+"Date",_[p]=R+"Month",_[g]=R+"FullYear",_[c]=R+"Hours",_[l]=R+"Minutes",_[a]=R+"Seconds",_[i]=R+"Milliseconds",_)[B],W=B===u?this.$D+(N-this.$W):N;if(B===p||B===g){var G=this.clone().set(h,1);G.$d[k](W),G.init(),this.$d=G.set(h,Math.min(this.$D,G.daysInMonth())).$d}else k&&this.$d[k](W);return this.init(),this},A.set=function(I,N){return this.clone().$set(I,N)},A.get=function(I){return this[$.p(I)]()},A.add=function(I,N){var _,B=this;I=Number(I);var R=$.p(N),k=function(U){var Y=L(B);return $.w(Y.date(Y.date()+Math.round(U*I)),B)};if(R===p)return this.set(p,this.$M+I);if(R===g)return this.set(g,this.$y+I);if(R===u)return k(1);if(R===d)return k(7);var W=(_={},_[l]=r,_[c]=s,_[a]=n,_)[R]||1,G=this.$d.getTime()+I*W;return $.w(G,this)},A.subtract=function(I,N){return this.add(-1*I,N)},A.format=function(I){var N=this,_=this.$locale();if(!this.isValid())return _.invalidDate||f;var B=I||"YYYY-MM-DDTHH:mm:ssZ",R=$.z(this),k=this.$H,W=this.$m,G=this.$M,U=_.weekdays,Y=_.months,H=_.meridiem,Z=function(X,K,q,te){return X&&(X[K]||X(N,B))||q[K].slice(0,te)},J=function(X){return $.s(k%12||12,X,"0")},ee=H||function(X,K,q){var te=X<12?"AM":"PM";return q?te.toLowerCase():te};return B.replace(x,function(X,K){return K||function(q){switch(q){case"YY":return String(N.$y).slice(-2);case"YYYY":return $.s(N.$y,4,"0");case"M":return G+1;case"MM":return $.s(G+1,2,"0");case"MMM":return Z(_.monthsShort,G,Y,3);case"MMMM":return Z(Y,G);case"D":return N.$D;case"DD":return $.s(N.$D,2,"0");case"d":return String(N.$W);case"dd":return Z(_.weekdaysMin,N.$W,U,2);case"ddd":return Z(_.weekdaysShort,N.$W,U,3);case"dddd":return U[N.$W];case"H":return String(k);case"HH":return $.s(k,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return ee(k,W,!0);case"A":return ee(k,W,!1);case"m":return String(W);case"mm":return $.s(W,2,"0");case"s":return String(N.$s);case"ss":return $.s(N.$s,2,"0");case"SSS":return $.s(N.$ms,3,"0");case"Z":return R}return null}(X)||R.replace(":","")})},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(I,N,_){var B,R=this,k=$.p(N),W=L(I),G=(W.utcOffset()-this.utcOffset())*r,U=this-W,Y=function(){return $.m(R,W)};switch(k){case g:B=Y()/12;break;case p:B=Y();break;case m:B=Y()/3;break;case d:B=(U-G)/6048e5;break;case u:B=(U-G)/864e5;break;case c:B=U/s;break;case l:B=U/r;break;case a:B=U/n;break;default:B=U}return _?B:$.a(B)},A.daysInMonth=function(){return this.endOf(p).$D},A.$locale=function(){return T[this.$L]},A.locale=function(I,N){if(!I)return this.$L;var _=this.clone(),B=D(I,N,!0);return B&&(_.$L=B),_},A.clone=function(){return $.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},j}(),F=M.prototype;return L.prototype=F,[["$ms",i],["$s",a],["$m",l],["$H",c],["$W",u],["$M",p],["$y",g],["$D",h]].forEach(function(j){F[j[1]]=function(A){return this.$g(A,j[0],j[1])}}),L.extend=function(j,A){return j.$i||(j(A,M,L),j.$i=!0),L},L.locale=D,L.isDayjs=V,L.unix=function(j){return L(1e3*j)},L.en=T[E],L.Ls=T,L.p={},L})})(Mp);var cM=Mp.exports;const at=vn(cM);var Rp={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(wo,function(){var n="week",r="year";return function(s,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(r).add(1,r).date(u),p=a(this).endOf(n);if(d.isBefore(p))return 1}var m=a(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),g=this.diff(m,n,!0);return g<0?a(this).startOf("week").week():Math.ceil(g)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(Rp);var uM=Rp.exports;const dM=vn(uM);var Dp={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(wo,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"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,i=/\d\d/,a=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,c={},u=function(b){return(b=+b)+(b>68?1900:2e3)},d=function(b){return function(x){this[b]=+x}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var O=x.match(/([+-]|\d\d)/g),v=60*O[1]+(+O[2]||0);return v===0?0:O[0]==="+"?-v:v}(b)}],m=function(b){var x=c[b];return x&&(x.indexOf?x:x.s.concat(x.f))},g=function(b,x){var O,v=c.meridiem;if(v){for(var w=1;w<=24;w+=1)if(b.indexOf(v(w,0,x))>-1){O=w>12;break}}else O=b===(x?"pm":"PM");return O},h={A:[l,function(b){this.afternoon=g(b,!1)}],a:[l,function(b){this.afternoon=g(b,!0)}],Q:[s,function(b){this.month=3*(b-1)+1}],S:[s,function(b){this.milliseconds=100*+b}],SS:[i,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],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(b){var x=c.ordinal,O=b.match(/\d+/);if(this.day=O[0],x)for(var v=1;v<=31;v+=1)x(v).replace(/\[|\]/g,"")===b&&(this.day=v)}],w:[a,d("week")],ww:[i,d("week")],M:[a,d("month")],MM:[i,d("month")],MMM:[l,function(b){var x=m("months"),O=(m("monthsShort")||x.map(function(v){return v.slice(0,3)})).indexOf(b)+1;if(O<1)throw new Error;this.month=O%12||O}],MMMM:[l,function(b){var x=m("months").indexOf(b)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(b){this.year=u(b)}],YYYY:[/\d{4}/,d("year")],Z:p,ZZ:p};function f(b){var x,O;x=b,O=c&&c.formats;for(var v=(b=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(L,$,M){var F=M&&M.toUpperCase();return $||O[M]||n[M]||O[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(j,A,I){return A||I.slice(1)})})).match(r),w=v.length,E=0;E<w;E+=1){var T=v[E],P=h[T],V=P&&P[0],D=P&&P[1];v[E]=D?{regex:V,parser:D}:T.replace(/^\[|\]$/g,"")}return function(L){for(var $={},M=0,F=0;M<w;M+=1){var j=v[M];if(typeof j=="string")F+=j.length;else{var A=j.regex,I=j.parser,N=L.slice(F),_=A.exec(N)[0];I.call($,_),L=L.replace(_,"")}}return function(B){var R=B.afternoon;if(R!==void 0){var k=B.hours;R?k<12&&(B.hours+=12):k===12&&(B.hours=0),delete B.afternoon}}($),$}}return function(b,x,O){O.p.customParseFormat=!0,b&&b.parseTwoDigitYear&&(u=b.parseTwoDigitYear);var v=x.prototype,w=v.parse;v.parse=function(E){var T=E.date,P=E.utc,V=E.args;this.$u=P;var D=V[1];if(typeof D=="string"){var L=V[2]===!0,$=V[3]===!0,M=L||$,F=V[2];$&&(F=V[2]),c=this.$locale(),!L&&F&&(c=O.Ls[F]),this.$d=function(N,_,B,R){try{if(["x","X"].indexOf(_)>-1)return new Date((_==="X"?1e3:1)*N);var k=f(_)(N),W=k.year,G=k.month,U=k.day,Y=k.hours,H=k.minutes,Z=k.seconds,J=k.milliseconds,ee=k.zone,X=k.week,K=new Date,q=U||(W||G?1:K.getDate()),te=W||K.getFullYear(),ne=0;W&&!G||(ne=G>0?G-1:K.getMonth());var ce,oe=Y||0,be=H||0,ae=Z||0,he=J||0;return ee?new Date(Date.UTC(te,ne,q,oe,be,ae,he+60*ee.offset*1e3)):B?new Date(Date.UTC(te,ne,q,oe,be,ae,he)):(ce=new Date(te,ne,q,oe,be,ae,he),X&&(ce=R(ce).week(X).toDate()),ce)}catch{return new Date("")}}(T,D,P,O),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),M&&T!=this.format(D)&&(this.$d=new Date("")),c={}}else if(D instanceof Array)for(var j=D.length,A=1;A<=j;A+=1){V[1]=D[A-1];var I=O.apply(this,V);if(I.isValid()){this.$d=I.$d,this.$L=I.$L,this.init();break}A===j&&(this.$d=new Date(""))}else w.call(this,E)}}})})(Dp);var fM=Dp.exports;const pM=vn(fM);var Ip={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(wo,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(r,s,i){var a=s.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(p,m){return p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(g,h,f){var b=f&&f.toUpperCase();return h||m[f]||n[f]||m[b].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(x,O,v){return O||v.slice(1)})})}(c,u===void 0?{}:u);return l.call(this,d)}}})})(Ip);var mM=Ip.exports;const hM=vn(mM);var _p={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(wo,function(){return function(n,r,s){r.prototype.isBetween=function(i,a,l,c){var u=s(i),d=s(a),p=(c=c||"()")[0]==="(",m=c[1]===")";return(p?this.isAfter(u,l):!this.isBefore(u,l))&&(m?this.isBefore(d,l):!this.isAfter(d,l))||(p?this.isBefore(u,l):!this.isAfter(u,l))&&(m?this.isAfter(d,l):!this.isBefore(d,l))}}})})(_p);var gM=_p.exports;const bM=vn(gM);var Np={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(wo,function(){return function(n,r){var s=r.prototype,i=s.format;s.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(p){switch(p){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(),p==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),p==="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 p}});return i.bind(this)(d)}}})})(Np);var yM=Np.exports;const vM=vn(yM);at.extend(hM);at.extend(dM);at.extend(bM);at.extend(vM);const xM={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"},SM={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"},ki=["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(`
|
|
199
|
-
`),
|
|
200
|
-
`);class CM{constructor({locale:t,formats:n}={}){de(this,"isMUIAdapter",!0);de(this,"isTimezoneCompatible",!0);de(this,"lib","dayjs");de(this,"escapedCharacters",{start:"[",end:"]"});de(this,"formatTokenMap",xM);de(this,"setLocaleToValue",t=>{const n=this.getCurrentLocaleCode();return n===t.locale()?t:t.locale(n)});de(this,"hasUTCPlugin",()=>typeof at.utc<"u");de(this,"hasTimezonePlugin",()=>typeof at.tz<"u");de(this,"isSame",(t,n,r)=>{const s=this.setTimezone(n,this.getTimezone(t));return t.format(r)===s.format(r)});de(this,"cleanTimezone",t=>{switch(t){case"default":return;case"system":return at.tz.guess();default:return t}});de(this,"createSystemDate",t=>{let n;if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const r=at.tz.guess();r==="UTC"?n=at(t):n=at.tz(t,r)}else n=at(t);return this.setLocaleToValue(n)});de(this,"createUTCDate",t=>{if(!this.hasUTCPlugin())throw new Error(ki);return this.setLocaleToValue(at.utc(t))});de(this,"createTZDate",(t,n)=>{if(!this.hasUTCPlugin())throw new Error(ki);if(!this.hasTimezonePlugin())throw new Error(xu);const r=t!==void 0&&!t.endsWith("Z");return this.setLocaleToValue(at(t).tz(this.cleanTimezone(n),r))});de(this,"getLocaleFormats",()=>{const t=at.Ls,n=this.locale||"en";let r=t[n];return r===void 0&&(process.env.NODE_ENV!=="production"&&Mf(["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."]),r=t.en),r.formats});de(this,"adjustOffset",t=>{if(!this.hasTimezonePlugin())return t;const n=this.getTimezone(t);if(n!=="UTC"){const r=t.tz(this.cleanTimezone(n),!0);if(r.$offset===(t.$offset??0))return t;t.$offset=r.$offset}return t});de(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));de(this,"getInvalidDate",()=>at(new Date("Invalid date")));de(this,"getTimezone",t=>{var n;if(this.hasTimezonePlugin()){const r=(n=t.$x)==null?void 0:n.$timezone;if(r)return r}return this.hasUTCPlugin()&&t.isUTC()?"UTC":"system"});de(this,"setTimezone",(t,n)=>{if(this.getTimezone(t)===n)return t;if(n==="UTC"){if(!this.hasUTCPlugin())throw new Error(ki);return t.utc()}if(n==="system")return t.local();if(!this.hasTimezonePlugin()){if(n==="default")return t;throw new Error(xu)}return this.setLocaleToValue(at.tz(t,this.cleanTimezone(n)))});de(this,"toJsDate",t=>t.toDate());de(this,"parse",(t,n)=>t===""?null:at(t,n,this.locale,!0));de(this,"getCurrentLocaleCode",()=>this.locale||"en");de(this,"is12HourCycleInCurrentLocale",()=>/A|a/.test(this.getLocaleFormats().LT||""));de(this,"expandFormat",t=>{const n=this.getLocaleFormats(),r=s=>s.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(i,a,l)=>a||l.slice(1));return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(s,i,a)=>{const l=a&&a.toUpperCase();return i||n[a]||r(n[l])})});de(this,"isValid",t=>t==null?!1:t.isValid());de(this,"format",(t,n)=>this.formatByString(t,this.formats[n]));de(this,"formatByString",(t,n)=>this.setLocaleToValue(t).format(n));de(this,"formatNumber",t=>t);de(this,"isEqual",(t,n)=>t===null&&n===null?!0:t===null||n===null?!1:t.toDate().getTime()===n.toDate().getTime());de(this,"isSameYear",(t,n)=>this.isSame(t,n,"YYYY"));de(this,"isSameMonth",(t,n)=>this.isSame(t,n,"YYYY-MM"));de(this,"isSameDay",(t,n)=>this.isSame(t,n,"YYYY-MM-DD"));de(this,"isSameHour",(t,n)=>t.isSame(n,"hour"));de(this,"isAfter",(t,n)=>t>n);de(this,"isAfterYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()>n.utc():t.isAfter(n,"year"));de(this,"isAfterDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()>n.utc():t.isAfter(n,"day"));de(this,"isBefore",(t,n)=>t<n);de(this,"isBeforeYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()<n.utc():t.isBefore(n,"year"));de(this,"isBeforeDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()<n.utc():t.isBefore(n,"day"));de(this,"isWithinRange",(t,[n,r])=>t>=n&&t<=r);de(this,"startOfYear",t=>this.adjustOffset(t.startOf("year")));de(this,"startOfMonth",t=>this.adjustOffset(t.startOf("month")));de(this,"startOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).startOf("week")));de(this,"startOfDay",t=>this.adjustOffset(t.startOf("day")));de(this,"endOfYear",t=>this.adjustOffset(t.endOf("year")));de(this,"endOfMonth",t=>this.adjustOffset(t.endOf("month")));de(this,"endOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).endOf("week")));de(this,"endOfDay",t=>this.adjustOffset(t.endOf("day")));de(this,"addYears",(t,n)=>this.adjustOffset(t.add(n,"year")));de(this,"addMonths",(t,n)=>this.adjustOffset(t.add(n,"month")));de(this,"addWeeks",(t,n)=>this.adjustOffset(t.add(n,"week")));de(this,"addDays",(t,n)=>this.adjustOffset(t.add(n,"day")));de(this,"addHours",(t,n)=>this.adjustOffset(t.add(n,"hour")));de(this,"addMinutes",(t,n)=>this.adjustOffset(t.add(n,"minute")));de(this,"addSeconds",(t,n)=>this.adjustOffset(t.add(n,"second")));de(this,"getYear",t=>t.year());de(this,"getMonth",t=>t.month());de(this,"getDate",t=>t.date());de(this,"getHours",t=>t.hour());de(this,"getMinutes",t=>t.minute());de(this,"getSeconds",t=>t.second());de(this,"getMilliseconds",t=>t.millisecond());de(this,"setYear",(t,n)=>this.adjustOffset(t.set("year",n)));de(this,"setMonth",(t,n)=>this.adjustOffset(t.set("month",n)));de(this,"setDate",(t,n)=>this.adjustOffset(t.set("date",n)));de(this,"setHours",(t,n)=>this.adjustOffset(t.set("hour",n)));de(this,"setMinutes",(t,n)=>this.adjustOffset(t.set("minute",n)));de(this,"setSeconds",(t,n)=>this.adjustOffset(t.set("second",n)));de(this,"setMilliseconds",(t,n)=>this.adjustOffset(t.set("millisecond",n)));de(this,"getDaysInMonth",t=>t.daysInMonth());de(this,"getWeekArray",t=>{const n=this.startOfWeek(this.startOfMonth(t)),r=this.endOfWeek(this.endOfMonth(t));let s=0,i=n;const a=[];for(;i<r;){const l=Math.floor(s/7);a[l]=a[l]||[],a[l].push(i),i=this.addDays(i,1),s+=1}return a});de(this,"getWeekNumber",t=>t.week());de(this,"getYearRange",([t,n])=>{const r=this.startOfYear(t),s=this.endOfYear(n),i=[];let a=r;for(;this.isBefore(a,s);)i.push(a),a=this.addYears(a,1);return i});this.locale=t,this.formats=C({},SM,n),at.extend(pM)}getDayOfWeek(t){return t.day()+1}}const wM="_root_1dntq_1",EM="_container_1dntq_72",OM="_header_1dntq_83",TM="_headerText_1dntq_91",PM="_headerTitle_1dntq_97",kM="_headerSubtitle_1dntq_102",MM="_controls_1dntq_106",RM="_headerButton_1dntq_113",DM="_zoomGroup_1dntq_133",IM="_zoomLabel_1dntq_144",_M="_tracksWrapper_1dntq_153",NM="_tracksWithHeader_1dntq_158",$M="_layers_1dntq_162",AM="_timeScale_1dntq_168",jM="_videoTrack_1dntq_172",LM="_eventsTrack_1dntq_176",FM="_trackBox_1dntq_180",VM="_trackLabelRow_1dntq_190",BM="_label_1dntq_198",zM="_trackArea_1dntq_209",WM="_tick_1dntq_215",UM="_tickMajor_1dntq_223",HM="_tickMinor_1dntq_227",qM="_tickLabel_1dntq_231",YM="_segment_1dntq_243",GM="_event_1dntq_176",KM="_eventDot_1dntq_276",ZM="_selectionOverlay_1dntq_283",XM="_playhead_1dntq_292",QM="_playheadLine_1dntq_302",JM="_playheadHandle_1dntq_312",ke={root:wM,container:EM,header:OM,headerText:TM,headerTitle:PM,headerSubtitle:kM,controls:MM,headerButton:RM,zoomGroup:DM,zoomLabel:IM,tracksWrapper:_M,tracksWithHeader:NM,layers:$M,timeScale:AM,videoTrack:jM,eventsTrack:LM,trackBox:FM,trackLabelRow:VM,label:BM,trackArea:zM,tick:WM,tickMajor:UM,tickMinor:HM,tickLabel:qM,segment:YM,event:GM,eventDot:KM,selectionOverlay:ZM,playhead:XM,playheadLine:QM,playheadHandle:JM};function Ke(e,t,n){return Math.min(n,Math.max(t,e))}function an(e){const{time:t,windowStart:n,windowSeconds:r,width:s}=e;return s<=0||r<=0?0:(t-n)/r*s}function oo(e){const{px:t,windowStart:n,windowSeconds:r,width:s}=e;return s<=0||r<=0?n:n+t/s*r}function ut(e){return String(Math.floor(e)).padStart(2,"0")}function eR(e=Date.now()){const t=new Date(e);return t.getHours()*3600+t.getMinutes()*60+t.getSeconds()+t.getMilliseconds()/1e3}function Mi(e){const t=Math.max(0,e),n=Math.floor(t/3600)%24,r=Math.floor(t%3600/60),s=Math.floor(t%60);return`${ut(n)}:${ut(r)}:${ut(s)}`}function tR(e,t){const n=Math.max(0,e),r=Math.floor(n/3600)%24,s=Math.floor(n%3600/60),i=Math.floor(n%60),a=n-Math.floor(n),l=Math.floor(a*t);return`${ut(r)}:${ut(s)}:${ut(i)}:${ut(l)}`}function Ri(e){const t=Math.max(0,e),n=Math.floor(t/3600),r=Math.floor(t%3600/60),s=Math.floor(t%60);return n>0?`${ut(n)}:${ut(r)}:${ut(s)}`:`${ut(r)}:${ut(s)}`}function nR(e,t){const n=Math.max(0,e),r=Math.floor(n/3600),s=Math.floor(n%3600/60),i=Math.floor(n%60),a=n-Math.floor(n),l=Math.floor(a*t);return r>0?`${ut(r)}:${ut(s)}:${ut(i)}:${ut(l)}`:`${ut(s)}:${ut(i)}:${ut(l)}`}function oR(e){const{width:t,windowSeconds:n,fps:r}=e,s=t>0?t/n:0,i=1/Math.max(1,r),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 m of a)if(m*s>=l){u=m;break}const d=[u/2,u/5,u/10].filter(m=>m>0);let p=d[0]??u;for(const m of d)if(m*s>=c){p=m;break}return{majorStep:u,minorStep:p}}const rR=(e,t,n)=>t>=3600?Mi(e).slice(0,2)+":00:00":t>=60?Mi(e).slice(0,5):t>=1?Mi(e):tR(e,n),sR=(e,t,n)=>t>=3600||t>=60||t>=1?Ri(e):nR(e,n);function iR(){const e=z.useRef(null),[t,n]=z.useState(0);return z.useLayoutEffect(()=>{const r=e.current;if(!r)return;const s=new ResizeObserver(()=>{n(r.getBoundingClientRect().width)});return s.observe(r),n(r.getBoundingClientRect().width),()=>s.disconnect()},[]),{ref:e,width:t}}function aR(e){const{totalSeconds:t,enableWheelZoom:n,autoZoomOnSelection:r,tickLabelFormatter:s,clearSelectionOnEventClick:i}=e,[a,l]=yn(Is),[c,u]=yn(_s),[d,p]=yn(va),m=cs(xa),g=cs(Sa),[h,f]=yn(Ud),b=wa(),{ref:x,width:O}=iR(),v=102,E=Math.max(0,O-v-10),[T,P]=z.useState(0),V=z.useMemo(()=>{const Y=Math.max(1/Math.max(1,h.fps),.05);return Ke(h.windowSeconds,Y,t)},[h.windowSeconds,h.fps,t]);z.useEffect(()=>{if(!c||O<=0)return;const Y=Ke(a-V*.9,0,Math.max(0,t-V));P(Y)},[a,c,O,V,t]);const D=z.useMemo(()=>{const Y=Ke(T,0,Math.max(0,t-V)),H=Y+V;return{start:Y,end:H,seconds:V}},[T,t,V]),L=z.useMemo(()=>{if(E<=0)return[];const{majorStep:Y,minorStep:H}=oR({width:E,windowSeconds:D.seconds,fps:h.fps}),Z=Math.floor(D.start/H)*H,J=D.end,ee=[],X=H*1e-6;for(let K=Z;K<=J+X;K+=H){const q=an({time:K,windowStart:D.start,windowSeconds:D.seconds,width:E});if(q<-1||q>E+1)continue;const te=Math.abs(K/Y-Math.round(K/Y))<1e-6;ee.push({time:K,px:q,kind:te?"major":"minor",label:te?s(K,Y,h.fps):void 0})}return ee},[E,s,D.end,D.seconds,D.start,h.fps]),$=z.useRef(null),M=z.useRef(null),F=Y=>{M.current=Y,$.current==null&&($.current=requestAnimationFrame(()=>{$.current=null;const H=M.current;M.current=null,H==null||H()}))};z.useEffect(()=>()=>{$.current!=null&&cancelAnimationFrame($.current)},[]);const j=z.useRef(null),A=Y=>{const H=x.current;if(!H)return 0;const Z=H.getBoundingClientRect();return Ke(Y-Z.left-v,0,E)};return{viewportRef:x,width:O,axisLeft:v,axisWidth:E,totalSeconds:t,zoom:h,setZoom:f,isLive:c,setIsLive:u,currentTime:a,selectedRange:d,setSelectedRange:p,videoSegments:m,events:g,view:D,ticks:L,onWheel:Y=>{if(!n||O<=0)return;Y.preventDefault(),u(!1);const H=A(Y.clientX),Z=Ke(oo({px:H,windowStart:D.start,windowSeconds:D.seconds,width:E}),0,t),ee=Y.deltaY<0?.8:1.25,X=Ke(D.seconds*ee,Math.max(1/Math.max(1,h.fps),.05),t),K=Ke(Z-H/Math.max(1,E)*X,0,Math.max(0,t-X));f(q=>({...q,windowSeconds:X})),P(K)},onPointerDownScrub:Y=>{if(Y.button!==0)return;const H=x.current;if(!H)return;H.setPointerCapture(Y.pointerId);const Z=A(Y.clientX),J=Ke(oo({px:Z,windowStart:D.start,windowSeconds:D.seconds,width:E}),0,t);u(!1),j.current={mode:"playhead",pointerId:Y.pointerId,startPx:Z,startTime:J},l(J),b&&b.seekTo(J)},onPointerDownSelect:Y=>{if(Y.button!==0)return;const H=x.current;if(!H)return;H.setPointerCapture(Y.pointerId);const Z=A(Y.clientX),J=Ke(oo({px:Z,windowStart:D.start,windowSeconds:D.seconds,width:E}),0,t);u(!1),j.current={mode:"select",pointerId:Y.pointerId,startPx:Z,startTime:J},p({start:J,end:J})},onPointerDownPlayhead:Y=>{if(Y.button!==0)return;const H=x.current;if(!H)return;H.setPointerCapture(Y.pointerId);const Z=A(Y.clientX),J=Ke(oo({px:Z,windowStart:D.start,windowSeconds:D.seconds,width:E}),0,t);u(!1),j.current={mode:"playhead",pointerId:Y.pointerId,startPx:Z,startTime:J},l(J),b&&b.seekTo(J)},onPointerMove:Y=>{const H=j.current;if(!H||H.pointerId!==Y.pointerId)return;const Z=A(Y.clientX);F(()=>{const J=Ke(oo({px:Z,windowStart:D.start,windowSeconds:D.seconds,width:E}),0,t);if(H.mode==="playhead")l(J),b&&b.seekTo(J);else{const ee=Math.min(H.startTime,J),X=Math.max(H.startTime,J);p({start:ee,end:X})}})},onPointerUp:Y=>{const H=j.current;if(!(!H||H.pointerId!==Y.pointerId)&&(j.current=null,H.mode==="select"&&d)){const Z=Math.abs(d.end-d.start);if(Z<Math.max(1/Math.max(1,h.fps),.1))p(null);else if(r){const J=Ke(Z*1.05,Math.max(1/Math.max(1,h.fps),.05),t),ee=Ke(d.start,0,Math.max(0,t-J));f(X=>({...X,windowSeconds:J})),P(ee)}}},onClickSegment:Y=>{u(!1);const H=Ke(Y,0,t);l(H),b&&b.seekTo(H)},onClickEvent:Y=>{i&&p(null),u(!1);const H=Ke(Y,0,t);l(H),b&&b.seekTo(H),P(Ke(Y-D.seconds/2,0,Math.max(0,t-D.seconds)))},resetView:()=>{u(!1),f(Y=>({...Y,windowSeconds:t})),P(0)}}}const $p=({ticks:e})=>y.jsx("div",{className:ke.trackArea,children:e.map(t=>y.jsxs("div",{children:[y.jsx("div",{className:`${ke.tick} ${t.kind==="minor"?ke.tickMinor:ke.tickMajor}`.trim(),style:{left:`${t.px}px`}}),t.kind==="major"&&t.label?y.jsx("div",{className:ke.tickLabel,style:{left:`${t.px}px`},children:t.label}):null]},`${t.time}-${t.kind}`))});$p.displayName="TimeScale";const Ap=({segments:e,viewStart:t,viewSeconds:n,width:r,totalSeconds:s,onClickSegment:i})=>{const a=e.map(c=>({original:c,start:Ke(c.start,0,s),end:Ke(c.end,0,s)})).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(),p=c.clientX-d.left,g=an({time:u.start,windowStart:t,windowSeconds:n,width:r})+p,h=Ke(oo({px:g,windowStart:t,windowSeconds:n,width:r}),u.original.start,u.original.end);i(h,u.original)};return y.jsx("div",{className:ke.trackArea,children:a.map((c,u)=>{const d=an({time:c.start,windowStart:t,windowSeconds:n,width:r}),p=an({time:c.end,windowStart:t,windowSeconds:n,width:r}),m=Math.max(0,p-d);return y.jsx("div",{className:ke.segment,style:{left:`${d}px`,width:`${m}px`},onClick:i?g=>l(g,c):void 0,onPointerDown:i?g=>g.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}`)})})};Ap.displayName="VideoTrack";const jp=({events:e,viewStart:t,viewSeconds:n,width:r,totalSeconds:s,onClickEvent:i})=>{const a=e.map(l=>({...l,time:Ke(l.time,0,s)})).filter(l=>l.time>=t&&l.time<=t+n);return y.jsx("div",{className:ke.trackArea,children:a.map(l=>{const c=an({time:l.time,windowStart:t,windowSeconds:n,width:r});return y.jsx("button",{type:"button",className:ke.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:y.jsx("span",{className:ke.eventDot})},l.id)})})};jp.displayName="EventsTrack";const Lp=({className:e,sx:t,title:n="Timeline",subtitle:r="Arraste para aplicar zoom no período desejado",showHeader:s=!0,timeScaleMode:i="day24h",tickLabelFormatter:a,totalSeconds:l=24*60*60,enableWheelZoom:c=!1,height:u=190,autoZoomOnSelection:d=!0,showZoomControls:p=!0,enableScrubOnTracks:m=!1,clearSelectionOnEventClick:g=!0,onDownloadClick:h,date:f,onDateChange:b,videoLabel:x="Vídeo",eventsLabel:O="Eventos",downloadLabel:v="Baixar vídeo",onSegmentClick:w,onEventClick:E,segments:T,events:P,...V})=>{const L=se.useTheme().palette.mode==="dark",[$,M]=z.useState(!1),F=Yi(xa),j=Yi(Sa);z.useEffect(()=>{T!==void 0&&F(T)},[T,F]),z.useEffect(()=>{P!==void 0&&j(P)},[P,j]);const A=a??(i==="duration"?sR:rR),{viewportRef:I,axisLeft:N,axisWidth:_,zoom:B,currentTime:R,selectedRange:k,videoSegments:W,events:G,view:U,ticks:Y,onWheel:H,onPointerDownScrub:Z,onPointerDownSelect:J,onPointerDownPlayhead:ee,onPointerMove:X,onPointerUp:K,onClickSegment:q,onClickEvent:te,setZoom:ne}=aR({totalSeconds:l,enableWheelZoom:c,autoZoomOnSelection:d,tickLabelFormatter:A,clearSelectionOnEventClick:g}),ce=_?N+an({time:R,windowStart:U.start,windowSeconds:U.seconds,width:_}):N,oe=Math.max(1/Math.max(1,B.fps),.5),be=oe/l,ae=(()=>{const ue=Ke(U.seconds,oe,l);if(be<=0||be>=1)return 0;const we=Math.log(ue/l)/Math.log(be)*100;return Ke(we,0,100)})(),he=ue=>{const we=Ke(ue,0,100),Oe=l*Math.pow(be,we/100);ne(Se=>({...Se,windowSeconds:Ke(Oe,oe,l)}))},le=`${Math.round(ae)}%`;return y.jsxs(Q.Box,{className:`${ke.root} ${ke.container} ${e??""}`.trim(),"data-theme":L?"dark":"light",sx:t,...V,children:[s?y.jsxs("div",{className:ke.header,children:[y.jsxs("div",{className:ke.headerText,children:[y.jsx(Q.Typography,{variant:"subtitle1",className:ke.headerTitle,children:n}),y.jsx(Q.Typography,{variant:"body2",className:ke.headerSubtitle,children:r})]}),y.jsxs("div",{className:ke.controls,children:[h?y.jsxs("button",{type:"button",className:ke.headerButton,onClick:h,"aria-label":v,children:[y.jsx(S0,{fontSize:"small"}),v]}):null,f!==void 0?y.jsx($s,{dateAdapter:CM,children:y.jsx(vl,{open:$,onOpen:()=>M(!0),onClose:()=>M(!1),value:at(f),onChange:ue=>{ue&&b&&b(ue.toDate())},format:"DD/MM/YYYY",slots:{field:()=>y.jsxs("button",{type:"button",className:ke.headerButton,onClick:()=>M(!0),"aria-label":"Selecionar data",children:[y.jsx(C0,{fontSize:"small"}),at(f).format("DD/MM/YYYY")]})}})}):null,p?y.jsxs(Q.Box,{className:ke.zoomGroup,"aria-label":"Zoom controls",children:[y.jsx(Q.IconButton,{size:"small","aria-label":"Zoom out",onClick:()=>he(ae-10),children:y.jsx(x0,{fontSize:"small"})}),y.jsx("span",{className:ke.zoomLabel,children:le}),y.jsx(Q.IconButton,{size:"small","aria-label":"Zoom in",onClick:()=>he(ae+10),children:y.jsx(v0,{fontSize:"small"})})]}):null]})]}):null,y.jsx(Q.Box,{className:`${ke.tracksWrapper} ${s?ke.tracksWithHeader:""}`.trim(),style:{height:u},children:y.jsxs("div",{ref:I,className:ke.layers,onWheel:H,onPointerMove:X,onPointerUp:K,children:[y.jsxs("div",{className:ke.playhead,style:{left:`${ce}px`},onPointerDown:ee,role:"slider","aria-label":"Playhead","aria-valuemin":0,"aria-valuemax":l,"aria-valuenow":R,tabIndex:0,children:[y.jsx("div",{className:ke.playheadHandle}),y.jsx("div",{className:ke.playheadLine})]}),y.jsxs("div",{className:`${ke.trackLabelRow} ${ke.timeScale}`.trim(),children:[y.jsx("div",{}),y.jsx("div",{onPointerDown:Z,style:{height:"100%",cursor:"ew-resize"},"aria-label":"Régua do tempo",children:y.jsx($p,{ticks:Y})})]}),y.jsxs(Q.Box,{className:ke.trackBox,onPointerDown:J,children:[k?y.jsx("div",{className:ke.selectionOverlay,style:{left:`${N+an({time:k.start,windowStart:U.start,windowSeconds:U.seconds,width:_})}px`,width:`${Math.max(0,an({time:k.end,windowStart:U.start,windowSeconds:U.seconds,width:_})-an({time:k.start,windowStart:U.start,windowSeconds:U.seconds,width:_}))}px`}}):null,y.jsxs("div",{className:`${ke.trackLabelRow} ${ke.videoTrack}`.trim(),children:[y.jsx("div",{className:ke.label,children:x}),y.jsx("div",{onPointerDown:m?Z:void 0,style:{height:"100%"},children:y.jsx(Ap,{segments:W,viewStart:U.start,viewSeconds:U.seconds,width:_,totalSeconds:l,onClickSegment:(ue,we)=>{q(ue),w==null||w(ue,we)}})})]}),y.jsxs("div",{className:`${ke.trackLabelRow} ${ke.eventsTrack}`.trim(),children:[y.jsx("div",{className:ke.label,children:O}),y.jsx("div",{onPointerDown:m?Z:void 0,style:{height:"100%"},children:y.jsx(jp,{events:G,viewStart:U.start,viewSeconds:U.seconds,width:_,totalSeconds:l,onClickEvent:(ue,we)=>{te(ue),E==null||E(ue,we)}})})]})]})]})})]})};Lp.displayName="VideoTimeline";const Fp=({stream:e=null,src:t,autoPlay:n=!0,muted:r=!0,playsInline:s=!0,className:i,liveEdgeThresholdSeconds:a=2,updateTimeForLiveStream:l=!0,constrainToSelectedRange:c=!0,loopSelection:u=!1})=>{const d=z.useRef(null),[p,m]=yn(Is),[g,h]=yn(_s),f=cs(va),b=!!e;z.useEffect(()=>{const v=d.current;if(v){if(e){v.srcObject=e;return}v.srcObject=null,t&&(v.src=t)}},[e,t]),z.useEffect(()=>{const v=d.current;if(!v||b)return;const w=()=>{if(c&&f){const P=Math.max(0,f.start),V=Math.max(P,f.end);v.currentTime<P?v.currentTime=P:v.currentTime>V&&(u?v.currentTime=P:(v.pause(),v.currentTime=V))}if(m(v.currentTime),Number.isFinite(v.duration)&&v.duration>0){const P=v.duration-v.currentTime<=a;h(P)}},E=()=>{if(!c||!f)return;const P=Math.max(0,f.start),V=Math.max(P,f.end);(v.currentTime<P||v.currentTime>V)&&(v.currentTime=P)},T=()=>{g&&Number.isFinite(v.duration)&&v.duration>0&&(v.currentTime=v.duration)};return v.addEventListener("timeupdate",w),v.addEventListener("play",E),v.addEventListener("loadedmetadata",T),()=>{v.removeEventListener("timeupdate",w),v.removeEventListener("play",E),v.removeEventListener("loadedmetadata",T)}},[c,b,g,a,u,f,m,h]);const x=z.useRef(-1);z.useEffect(()=>{const v=d.current;if(!v||b||!t)return;if(g){if(Number.isFinite(v.duration)&&v.duration>0){const E=v.duration;Math.abs(v.currentTime-E)>.25&&(v.currentTime=E,x.current=E)}return}if(Math.abs(x.current-p)<.05)return;let w=p;if(c&&f){const E=Math.max(0,f.start),T=Math.max(E,f.end);w=Math.min(T,Math.max(E,w))}Math.abs(v.currentTime-w)>.25&&(v.currentTime=w,x.current=p)},[c,p,g,b,f,t]),z.useEffect(()=>{const v=d.current;if(!v||b||!t||!c||!f)return;const w=Math.max(0,f.start),E=!v.paused;v.currentTime=w,x.current=w,h(!1),m(w),E&&v.play().catch(()=>{})},[c,b,f,m,h,t]),z.useEffect(()=>{if(!b||(h(!0),!l))return;let v=null,w=!0;const E=()=>{w&&(m(eR()),v=requestAnimationFrame(E))};return v=requestAnimationFrame(E),()=>{w=!1,v!=null&&cancelAnimationFrame(v)}},[b,m,h,l]);const O=z.useMemo(()=>({width:"100%",maxWidth:920,background:"black",aspectRatio:"16 / 9",display:"block"}),[]);return y.jsx("video",{ref:d,className:i,style:O,autoPlay:n,muted:r,playsInline:s,controls:!0})};Fp.displayName="VideoPlayerWebRTC";const lR=dt(y.jsx("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done"),cR="_container_1vjy6_1",uR="_segment_1vjy6_7",dR="_selected_1vjy6_20",fR="_label_1vjy6_28",pR="_icon_1vjy6_37",mR="_checkIcon_1vjy6_47",hR="_unselected_1vjy6_53",Dn={container:cR,segment:uR,selected:dR,label:fR,icon:pR,checkIcon:mR,unselected:hR},Vp=({items:e,className:t,sx:n,...r})=>{const i=Q.useTheme().palette.mode==="dark",a=(l,c)=>{l.onClick?l.onClick(c):console.log(`Item "${l.label}" clicado`)};return y.jsx(Q.Box,{className:`${Dn.container} ${t||""}`,sx:n,"data-theme":i?"dark":"light",...r,children:e.map((l,c)=>y.jsxs(Q.Box,{className:`${Dn.segment} ${l.selected?Dn.selected:Dn.unselected}`,onClick:u=>a(l,u),children:[l.selected&&y.jsx(Q.Box,{className:Dn.icon,children:y.jsx(lR,{className:Dn.checkIcon})}),y.jsx(Q.Box,{className:Dn.label,children:l.label})]},c))})};Vp.displayName="DisplayTypes";exports.Button=oa;exports.CountCard=zy;exports.DisplayTypes=Vp;exports.FilterButton=Pu;exports.FilterChip=ku;exports.FilterModal=xd;exports.GoogleMap=Rd;exports.MapContent=ga;exports.MapMarkers=Dd;exports.MapSpot=ba;exports.ModuleMenu=Ad;exports.NotFoundContent=_d;exports.SearchBar=Id;exports.SidebarMenu=$d;exports.VideoControlProvider=qx;exports.VideoPlayer=Hd;exports.VideoPlayerWebRTC=Fp;exports.VideoTimeline=Lp;exports.VisioThemeProvider=Zp;exports.ZoomControls=Ky;exports.currentTimeAtom=Is;exports.darkColors=Qe;exports.darkTheme=Ou;exports.eventsAtom=Sa;exports.isLiveAtom=_s;exports.lightColors=Xe;exports.lightTheme=Eu;exports.radiiTokens=Ur;exports.selectedRangeAtom=va;exports.spacingScale=Yp;exports.spacingTokens=Cu;exports.typographyTokens=mt;exports.useGoogleMapContext=Md;exports.useVideoControl=wa;exports.useVideoControlRequired=Yx;exports.useVisioTheme=Xp;exports.videoSegmentsAtom=xa;exports.zoomAtom=Ud;
|
|
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([In,s.func]),disableScrollLock:s.bool,elevation:qy,marginThreshold:s.number,onClose:s.func,open:s.bool.isRequired,PaperProps:s.shape({component:da}),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 pN(e){return Te("MuiMenu",e)}Ce("MuiMenu",["root","paper","list"]);const hN={vertical:"top",horizontal:"right"},mN={vertical:"top",horizontal:"left"},gN=e=>{const{classes:t}=e;return we({root:["root"],paper:["paper"],list:["list"]},pN,t)},yN=ye(jb,{shouldForwardProp:e=>ln(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),bN=ye(_b,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),vN=ye(Nb,{name:"MuiMenu",slot:"List"})({outline:0}),$b=E.forwardRef(function(t,n){const o=je({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:b={},slotProps:C={},...w}=o,S=an(),T={...o,autoFocus:r,disableAutoFocusItem:l,MenuListProps:c,onEntering:m,PaperProps:f,transitionDuration:h,TransitionProps:g,variant:y},P=gN(T),A=r&&!l&&d,I=E.useRef(null),k=(B,$)=>{I.current&&I.current.adjustStyleForScrollbar(B,{direction:S?"rtl":"ltr"}),m&&m(B,$)},V=B=>{B.key==="Tab"&&(B.preventDefault(),u&&u(B,"tabKeyDown"))};let N=-1;E.Children.map(i,(B,$)=>{E.isValidElement(B)&&(process.env.NODE_ENV!=="production"&&Do.isFragment(B)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
238
|
+
`)),B.props.disabled||(y==="selectedMenu"&&B.props.selected||N===-1)&&(N=$))});const x={slots:b,slotProps:{list:c,transition:g,paper:f,...C}},j=Ne({elementType:b.root,externalSlotProps:C.root,ownerState:T,className:[P.root,a]}),[R,O]=nt("paper",{className:P.paper,elementType:bN,externalForwardedProps:x,shouldForwardComponentProp:!0,ownerState:T}),[D,_]=nt("list",{className:ge(P.list,c.className),elementType:vN,shouldForwardComponentProp:!0,externalForwardedProps:x,getSlotProps:B=>({...B,onKeyDown:$=>{var M;V($),(M=B.onKeyDown)==null||M.call(B,$)}}),ownerState:T}),F=typeof x.slotProps.transition=="function"?x.slotProps.transition(T):x.slotProps.transition;return v.jsx(yN,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?hN:mN,slots:{root:b.root,paper:R,backdrop:b.backdrop,...b.transition&&{transition:b.transition}},slotProps:{root:j,paper:O,backdrop:typeof C.backdrop=="function"?C.backdrop(T):C.backdrop,transition:{...F,onEntering:(...B)=>{var $;k(...B),($=F==null?void 0:F.onEntering)==null||$.call(F,...B)}}},open:d,ref:n,transitionDuration:h,ownerState:T,...w,classes:p,children:v.jsx(D,{actions:I,autoFocus:r&&(N===-1||l),autoFocusItem:A,variant:y,..._,children:i})})});process.env.NODE_ENV!=="production"&&($b.propTypes={anchorEl:s.oneOfType([In,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 xN(e){return Te("MuiNativeSelect",e)}const Gu=Ce("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),SN=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:a}=e,l={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${ce(n)}`,i&&"iconOpen",o&&"disabled"]};return we(l,xN,t)},Lb=ye("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Gu.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}}}]})),wN=ye(Lb,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ln,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Gu.multiple}`]:t.multiple}]}})({}),Vb=ye("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Gu.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}}]})),CN=ye(Vb,{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]}})({}),Fb=E.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=SN(d);return v.jsxs(E.Fragment,{children:[v.jsx(wN,{ownerState:d,className:ge(f.select,o),disabled:r,ref:l||n,...u}),t.multiple?null:v.jsx(CN,{as:a,ownerState:d,className:f.icon})]})});process.env.NODE_ENV!=="production"&&(Fb.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:yt,multiple:s.bool,name:s.string,onChange:s.func,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});function Bb(e){return Te("MuiSelect",e)}const Ar=Ce("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var gh;const TN=ye(Lb,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Ar.select}`]:t.select},{[`&.${Ar.select}`]:t[n.variant]},{[`&.${Ar.error}`]:t.error},{[`&.${Ar.multiple}`]:t.multiple}]}})({[`&.${Ar.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),PN=ye(Vb,{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]}})({}),EN=ye("input",{shouldForwardProp:e=>sm(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function yh(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function MN(e){return e==null||typeof e=="string"&&!e.trim()}const ON=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:a}=e,l={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${ce(n)}`,i&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return we(l,Bb,t)},zb=E.forwardRef(function(t,n){var pt,wt,Nt,jn;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:b={},multiple:C,name:w,onBlur:S,onChange:T,onClose:P,onFocus:A,onKeyDown:I,onMouseDown:k,onOpen:V,open:N,readOnly:x,renderValue:j,required:R,SelectDisplayProps:O={},tabIndex:D,type:_,value:F,variant:B="standard",...$}=t,[M,W]=Gn({controlled:F,default:d,name:"Select"}),[K,G]=Gn({controlled:N,default:u,name:"Select"}),Z=E.useRef(null),U=E.useRef(null),[Q,J]=E.useState(null),{current:ee}=E.useRef(N!=null),[q,X]=E.useState(),H=_e(n,g),oe=E.useCallback(me=>{U.current=me,me&&J(me)},[]),te=Q==null?void 0:Q.parentNode;E.useImperativeHandle(H,()=>({focus:()=>{U.current.focus()},node:Z.current,value:M}),[M]);const ae=Q!==null&&K;E.useEffect(()=>{if(!ae||!te||a||typeof ResizeObserver>"u")return;const me=new ResizeObserver(()=>{X(te.clientWidth)});return me.observe(te),()=>{me.disconnect()}},[ae,te,a]),E.useEffect(()=>{u&&K&&Q&&!ee&&(X(a?null:te.clientWidth),U.current.focus())},[Q,a]),E.useEffect(()=>{i&&U.current.focus()},[i]),E.useEffect(()=>{if(!y)return;const me=Ct(U.current).getElementById(y);if(me){const Ae=()=>{getSelection().isCollapsed&&U.current.focus()};return me.addEventListener("click",Ae),()=>{me.removeEventListener("click",Ae)}}},[y]);const re=(me,Ae)=>{me?V&&V(Ae):P&&P(Ae),ee||(X(a?null:te.clientWidth),G(me))},be=me=>{k==null||k(me),me.button===0&&(me.preventDefault(),U.current.focus(),re(!0,me))},se=me=>{re(!1,me)},he=E.Children.toArray(l),le=me=>{const Ae=he.find(bt=>bt.props.value===me.target.value);Ae!==void 0&&(W(Ae.props.value),T&&T(me,Ae))},ue=me=>Ae=>{let bt;if(Ae.currentTarget.hasAttribute("tabindex")){if(C){bt=Array.isArray(M)?M.slice():[];const so=M.indexOf(me.props.value);so===-1?bt.push(me.props.value):bt.splice(so,1)}else bt=me.props.value;if(me.props.onClick&&me.props.onClick(Ae),M!==bt&&(W(bt),T)){const so=Ae.nativeEvent||Ae,Ra=new so.constructor(so.type,so);Object.defineProperty(Ra,"target",{writable:!0,value:{value:bt,name:w}}),T(Ra,me)}C||re(!1,Ae)}},de=me=>{x||([" ","ArrowUp","ArrowDown","Enter"].includes(me.key)&&(me.preventDefault(),re(!0,me)),I==null||I(me))},Ie=me=>{!ae&&S&&(Object.defineProperty(me,"target",{writable:!0,value:{value:M,name:w}}),S(me))};delete $["aria-invalid"];let Me,Ke;const Qe=[];let ke=!1,ut=!1;(Ni({value:M})||p)&&(j?Me=j(M):ke=!0);const Se=he.map(me=>{if(!E.isValidElement(me))return null;process.env.NODE_ENV!=="production"&&Do.isFragment(me)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
239
|
+
`));let Ae;if(C){if(!Array.isArray(M))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":yn(2));Ae=M.some(bt=>yh(bt,me.props.value)),Ae&&ke&&Qe.push(me.props.children)}else Ae=yh(M,me.props.value),Ae&&ke&&(Ke=me.props.children);return Ae&&(ut=!0),E.cloneElement(me,{"aria-selected":Ae?"true":"false",onClick:ue(me),onKeyUp:bt=>{bt.key===" "&&bt.preventDefault(),me.props.onKeyUp&&me.props.onKeyUp(bt)},role:"option",selected:Ae,value:void 0,"data-value":me.props.value})});process.env.NODE_ENV!=="production"&&E.useEffect(()=>{if(!ut&&!C&&M!==""){const me=he.map(Ae=>Ae.props.value);console.warn([`MUI: You have provided an out-of-range value \`${M}\` for the select ${w?`(name="${w}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${me.filter(Ae=>Ae!=null).map(Ae=>`\`${Ae}\``).join(", ")||'""'}.`].join(`
|
|
240
|
+
`))}},[ut,he,C,w,M]),ke&&(C?Qe.length===0?Me=null:Me=Qe.reduce((me,Ae,bt)=>(me.push(Ae),bt<Qe.length-1&&me.push(", "),me),[]):Me=Ke);let Pe=q;!a&&ee&&Q&&(Pe=te.clientWidth);let xe;typeof D<"u"?xe=D:xe=f?null:0;const $e=O.id||(w?`mui-component-select-${w}`:void 0),Le={...t,variant:B,value:M,open:ae,error:h},ot=ON(Le),Ze={...b.PaperProps,...typeof((pt=b.slotProps)==null?void 0:pt.paper)=="function"?b.slotProps.paper(Le):(wt=b.slotProps)==null?void 0:wt.paper},At={...b.MenuListProps,...typeof((Nt=b.slotProps)==null?void 0:Nt.list)=="function"?b.slotProps.list(Le):(jn=b.slotProps)==null?void 0:jn.list},Oe=eo();return v.jsxs(E.Fragment,{children:[v.jsx(TN,{as:"div",ref:oe,tabIndex:xe,role:"combobox","aria-controls":ae?Oe:void 0,"aria-disabled":f?"true":void 0,"aria-expanded":ae?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[y,$e].filter(Boolean).join(" ")||void 0,"aria-describedby":o,"aria-required":R?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:de,onMouseDown:f||x?null:be,onBlur:Ie,onFocus:A,...O,ownerState:Le,className:ge(O.className,ot.select,c),id:$e,children:MN(Me)?gh||(gh=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Me}),v.jsx(EN,{"aria-invalid":h,value:Array.isArray(M)?M.join(","):M,name:w,ref:Z,"aria-hidden":!0,onChange:le,tabIndex:-1,disabled:f,className:ot.nativeInput,autoFocus:i,required:R,...$,ownerState:Le}),v.jsx(PN,{as:m,className:ot.icon,ownerState:Le}),v.jsx($b,{id:`menu-${w||""}`,anchorEl:te,open:ae,onClose:se,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...b,slotProps:{...b.slotProps,list:{"aria-labelledby":y,role:"listbox","aria-multiselectable":C?"true":void 0,disableListWrap:!0,id:Oe,...At},paper:{...Ze,style:{minWidth:Pe,...Ze!=null?Ze.style:null}}},children:Se})]})});process.env.NODE_ENV!=="production"&&(zb.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:yt,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 kN=ft(v.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),DN=e=>{const{classes:t}=e,o=we({root:["root"]},Bb,t);return{...t,...o}},Ku={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>ln(e)&&e!=="variant"},RN=ye(xa,Ku)(""),IN=ye(wa,Ku)(""),AN=ye(Sa,Ku)(""),Zu=E.forwardRef(function(t,n){const o=je({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:i,classes:a={},className:l,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:d=kN,id:f,input:p,inputProps:h,label:m,labelId:g,MenuProps:y,multiple:b=!1,native:C=!1,onClose:w,onOpen:S,open:T,renderValue:P,SelectDisplayProps:A,variant:I="outlined",...k}=o,V=C?Fb:zb,N=_n(),x=vr({props:o,muiFormControl:N,states:["variant","error"]}),j=x.variant||I,R={...o,variant:j,classes:a},O=DN(R),{root:D,..._}=O,F=p||{standard:v.jsx(RN,{ownerState:R}),outlined:v.jsx(IN,{label:m,ownerState:R}),filled:v.jsx(AN,{ownerState:R})}[j],B=_e(n,ks(F));return v.jsx(E.Fragment,{children:E.cloneElement(F,{inputComponent:V,inputProps:{children:i,error:x.error,IconComponent:d,variant:j,type:void 0,multiple:b,...C?{id:f}:{autoWidth:r,defaultOpen:c,displayEmpty:u,labelId:g,MenuProps:y,onClose:w,onOpen:S,open:T,renderValue:P,SelectDisplayProps:{id:f,...A}},...h,classes:h?Ot(_,h.classes):_,...p?p.props.inputProps:{}},...(b&&C||u)&&j==="outlined"?{notched:!0}:{},ref:B,className:ge(F.props.className,l,O.root),...!p&&{variant:j},...k})})});process.env.NODE_ENV!=="production"&&(Zu.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"])});Zu.muiName="Select";function NN(e){return Te("MuiTextField",e)}Ce("MuiTextField",["root"]);const _N={standard:xa,filled:Sa,outlined:wa},jN=e=>{const{classes:t}=e;return we({root:["root"]},NN,t)},$N=ye(Uu,{name:"MuiTextField",slot:"Root"})({}),Wb=E.forwardRef(function(t,n){const o=je({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:b,InputProps:C,inputRef:w,label:S,maxRows:T,minRows:P,multiline:A=!1,name:I,onBlur:k,onChange:V,onFocus:N,placeholder:x,required:j=!1,rows:R,select:O=!1,SelectProps:D,slots:_={},slotProps:F={},type:B,value:$,variant:M="outlined",...W}=o,K={...o,autoFocus:i,color:c,disabled:d,error:f,fullWidth:h,multiline:A,required:j,select:O,variant:M},G=jN(K);process.env.NODE_ENV!=="production"&&O&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const Z=eo(g),U=m&&Z?`${Z}-helper-text`:void 0,Q=S&&Z?`${Z}-label`:void 0,J=_N[M],ee={slots:_,slotProps:{input:C,inputLabel:y,htmlInput:b,formHelperText:p,select:D,...F}},q={},X=ee.slotProps.inputLabel;M==="outlined"&&(X&&typeof X.shrink<"u"&&(q.notched=X.shrink),q.label=S),O&&((!D||!D.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[H,oe]=nt("root",{elementType:$N,shouldForwardComponentProp:!0,externalForwardedProps:{...ee,...W},ownerState:K,className:ge(G.root,l),ref:n,additionalProps:{disabled:d,error:f,fullWidth:h,required:j,color:c,variant:M}}),[te,ae]=nt("input",{elementType:J,externalForwardedProps:ee,additionalProps:q,ownerState:K}),[re,be]=nt("inputLabel",{elementType:Wu,externalForwardedProps:ee,ownerState:K}),[se,he]=nt("htmlInput",{elementType:"input",externalForwardedProps:ee,ownerState:K}),[le,ue]=nt("formHelperText",{elementType:Hu,externalForwardedProps:ee,ownerState:K}),[de,Ie]=nt("select",{elementType:Zu,externalForwardedProps:ee,ownerState:K}),Me=v.jsx(te,{"aria-describedby":U,autoComplete:r,autoFocus:i,defaultValue:u,fullWidth:h,multiline:A,name:I,rows:R,maxRows:T,minRows:P,type:B,value:$,id:Z,inputRef:w,onBlur:k,onChange:V,onFocus:N,placeholder:x,inputProps:he,slots:{input:_.htmlInput?se:void 0},...ae});return v.jsxs(H,{...oe,children:[S!=null&&S!==""&&v.jsx(re,{htmlFor:Z,id:Q,...be,children:S}),O?v.jsx(de,{"aria-describedby":U,id:Z,labelId:Q,value:$,input:Me,...Ie,children:a}):Me,m&&v.jsx(le,{id:U,...ue,children:m})]})});process.env.NODE_ENV!=="production"&&(Wb.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:yt,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 LN(e){return Te("MuiIconButton",e)}const bh=Ce("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),VN=e=>{const{classes:t,disabled:n,color:o,edge:r,size:i,loading:a}=e,l={root:["root",a&&"loading",n&&"disabled",o!=="default"&&`color${ce(o)}`,r&&`edge${ce(r)}`,`size${ce(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return we(l,LN,t)},FN=ye(ur,{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)}`]]}})(Ye(({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}}]})),Ye(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Bt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Bt()).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)}}],[`&.${bh.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${bh.loading}`]:{color:"transparent"}}))),BN=ye("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"}}]})),ys=E.forwardRef(function(t,n){const o=je({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=eo(f),y=h??v.jsx(Lu,{"aria-labelledby":g,color:"inherit",size:16}),b={...o,edge:r,color:l,disabled:c,disableFocusRipple:u,loading:p,loadingIndicator:y,size:d},C=VN(b);return v.jsxs(FN,{id:p?g:f,className:ge(C.root,a),centerRipple:!0,focusRipple:!u,disabled:c||p,ref:n,...m,ownerState:b,children:[typeof p=="boolean"&&v.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:v.jsx(BN,{className:C.loadingIndicator,ownerState:b,children:p&&y})}),i]})});process.env.NODE_ENV!=="production"&&(ys.propTypes={children:Nn(s.node,e=>E.Children.toArray(e.children).some(n=>E.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 zN(e){return Te("MuiInputAdornment",e)}const vh=Ce("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var xh;const WN=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ce(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},UN=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:o,position:r,size:i,variant:a}=e,l={root:["root",n&&"disablePointerEvents",r&&`position${ce(r)}`,a,o&&"hiddenLabel",i&&`size${ce(i)}`]};return we(l,zN,t)},HN=ye("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:WN})(Ye(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${vh.positionStart}&:not(.${vh.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Ub=E.forwardRef(function(t,n){const o=je({props:t,name:"MuiInputAdornment"}),{children:r,className:i,component:a="div",disablePointerEvents:l=!1,disableTypography:c=!1,position:u,variant:d,...f}=o,p=_n()||{};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=UN(m);return v.jsx(_s.Provider,{value:null,children:v.jsx(HN,{as:a,ownerState:m,className:ge(g.root,i),ref:n,...f,children:typeof r=="string"&&!c?v.jsx(no,{color:"textSecondary",children:r}):v.jsxs(E.Fragment,{children:[u==="start"?xh||(xh=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,r]})})})});process.env.NODE_ENV!=="production"&&(Ub.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 Bn=7;function Xu(e){const{ownerState:t}=Et(),n=an();return E.useMemo(()=>z({},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 YN=ft(v.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),qN=ft(v.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),GN=ft(v.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),KN=ft(v.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");ft(v.jsxs(E.Fragment,{children:[v.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"}),v.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");ft(v.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");ft(v.jsxs(E.Fragment,{children:[v.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"}),v.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const ZN=ft(v.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 XN(e){return Te("MuiPickersTextField",e)}Ce("MuiPickersTextField",["root","focused","disabled","error","required"]);const QN={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function JN(e){return Te("MuiPickersInputBase",e)}const tr=Ce("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input","inputSizeSmall","activeBar"]);function e_(e){return Te("MuiPickersSectionList",e)}const zo=Ce("MuiPickersSectionList",["root","section","sectionContent"]),t_=["slots","slotProps","elements","sectionListRef","classes"],Hb=ie.styled("div",{name:"MuiPickersSectionList",slot:"Root"})({direction:"ltr /*! @noflip */",outline:"none"}),Yb=ie.styled("span",{name:"MuiPickersSectionList",slot:"Section"})({}),qb=ie.styled("span",{name:"MuiPickersSectionList",slot:"SectionSeparator"})({whiteSpace:"pre"}),Gb=ie.styled("span",{name:"MuiPickersSectionList",slot:"SectionContent"})({outline:"none"}),n_=e=>we({root:["root"],section:["section"],sectionContent:["sectionContent"]},e_,e);function Kb(e){const{slots:t,slotProps:n,element:o,classes:r}=e,{ownerState:i}=Et(),a=(t==null?void 0:t.section)??Yb,l=Ne({elementType:a,externalSlotProps:n==null?void 0:n.section,externalForwardedProps:o.container,className:r.section,ownerState:i}),c=(t==null?void 0:t.sectionContent)??Gb,u=Ne({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)??qb,f=Ne({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.before,ownerState:z({},i,{separatorPosition:"before"})}),p=Ne({elementType:d,externalSlotProps:n==null?void 0:n.sectionSeparator,externalForwardedProps:o.after,ownerState:z({},i,{separatorPosition:"after"})}),h=E.useRef(null),m=_e(u.ref,h),g=y=>{const b=y.relatedTarget,C=y.currentTarget.closest(`.${zo.root}`);if(C&&b instanceof Node&&C.contains(b)){y.stopPropagation();return}};return v.jsxs(a,z({},l,{children:[v.jsx(d,z({},f)),v.jsx(c,z({},u,{ref:m,onBlur:g})),v.jsx(d,z({},p))]}))}process.env.NODE_ENV!=="production"&&(Kb.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 Qu=E.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiPickersSectionList"}),{slots:r,slotProps:i,elements:a,sectionListRef:l,classes:c}=o,u=Ee(o,t_),d=n_(c),{ownerState:f}=Et(),p=E.useRef(null),h=_e(n,p),m=b=>{if(!p.current)throw new Error(`MUI X: Cannot call sectionListRef.${b} before the mount of the component.`);return p.current};E.useImperativeHandle(l,()=>({getRoot(){return m("getRoot")},getSectionContainer(b){return m("getSectionContainer").querySelector(`.${zo.section}[data-sectionindex="${b}"]`)},getSectionContent(b){return m("getSectionContent").querySelector(`.${zo.section}[data-sectionindex="${b}"] .${zo.sectionContent}`)},getSectionIndexFromDOMElement(b){const C=m("getSectionIndexFromDOMElement");if(b==null||!C.contains(b))return null;let w=null;return b.classList.contains(zo.section)?w=b:b.classList.contains(zo.sectionContent)&&(w=b.parentElement),w==null?null:Number(w.dataset.sectionindex)}}));const g=(r==null?void 0:r.root)??Hb,y=Ne({elementType:g,externalSlotProps:i==null?void 0:i.root,externalForwardedProps:u,additionalProps:{ref:h,suppressContentEditableWarning:!0},className:d.root,ownerState:f});return v.jsx(g,z({},y,{children:y.contentEditable?a.map(({content:b,before:C,after:w})=>`${C.children}${b.children}${w.children}`).join(""):v.jsx(E.Fragment,{children:a.map((b,C)=>v.jsx(Kb,{slots:r,slotProps:i,element:b,classes:d},C))})}))});process.env.NODE_ENV!=="production"&&(Qu.displayName="PickersSectionList");process.env.NODE_ENV!=="production"&&(Qu.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 Ju=E.createContext(null);process.env.NODE_ENV!=="production"&&(Ju.displayName="PickerTextFieldOwnerStateContext");const Ca=()=>{const e=E.useContext(Ju);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},o_=["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"],r_=e=>Math.round(e*1e5)/1e5,Ta=ie.styled("div",{name:"MuiPickersInputBase",slot:"Root"})(({theme:e})=>z({},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:`${r_(.15/16)}em`,variants:[{props:{isInputInFullWidth:!0},style:{width:"100%"}}]})),ed=ie.styled(Hb,{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}}]})),s_=ie.styled(Yb,{name:"MuiPickersInputBase",slot:"Section"})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),i_=ie.styled(Gb,{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"})),a_=ie.styled(qb,{name:"MuiPickersInputBase",slot:"Separator"})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),l_=ie.styled("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(z({},QN)),c_=ie.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]}})),u_=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldReadOnly:r,hasFieldError:i,inputSize:a,isInputInFullWidth:l,inputColor:c,hasStartAdornment:u,hasEndAdornment:d}=t,f={root:["root",n&&!o&&"focused",o&&"disabled",r&&"readOnly",i&&"error",l&&"fullWidth",`color${ce(c)}`,a==="small"&&"inputSizeSmall",u&&"adornedStart",d&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"],activeBar:["activeBar"]};return we(f,JN,e)};function Sh(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 d_(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+=Sh(e[u],t,u,"end");else for(let u=0;u<e.length/2;u+=1)n+=Sh(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 js=E.forwardRef(function(t,n){const o=ie.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:b,onKeyDown:C,name:w,readOnly:S,inputProps:T,inputRef:P,sectionListRef:A,onFocus:I,onBlur:k,classes:V,ownerState:N}=o,x=Ee(o,o_),j=Ca(),R=E.useRef(null),O=E.useRef(null),D=E.useRef([]),_=_e(n,R),F=_e(T==null?void 0:T.ref,P),B=_n();if(!B)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const $=N??j,M=q=>{var X;(X=B.onFocus)==null||X.call(B,q),I==null||I(q)},W=q=>{M(q)},K=q=>{var X,H;if(C==null||C(q),q.key==="Enter"&&!q.defaultMuiPrevented){if((X=R.current)!=null&&X.dataset.multiInput)return;const oe=(H=R.current)==null?void 0:H.closest("form"),te=oe==null?void 0:oe.querySelector('[type="submit"]');if(!oe||!te)return;q.preventDefault(),oe.requestSubmit(te)}},G=q=>{var X;(X=B.onBlur)==null||X.call(B,q),k==null||k(q)};E.useEffect(()=>{B&&B.setAdornedStart(!!d)},[B,d]),E.useEffect(()=>{B&&(i?B.onEmpty():B.onFilled())},[B,i]);const Z=u_(V,$),U=(p==null?void 0:p.root)||Ta,Q=Ne({elementType:U,externalSlotProps:h==null?void 0:h.root,externalForwardedProps:x,additionalProps:{"aria-invalid":B.error,ref:_},className:Z.root,ownerState:$}),J=(p==null?void 0:p.input)||ed,ee=r.some(q=>q.content["data-range-position"]!==void 0);return E.useEffect(()=>{if(!ee||!$.isPickerOpen)return;const{activeBarWidth:q,sectionOffsets:X}=d_(r,R);D.current=[X[0],X[1]],O.current&&(O.current.style.width=`${q}px`)},[r,ee,$.isPickerOpen]),v.jsxs(U,z({},Q,{children:[d,v.jsx(Qu,{sectionListRef:A,elements:r,contentEditable:m,tabIndex:g,className:Z.sectionsContainer,onFocus:M,onBlur:G,onInput:y,onPaste:b,onKeyDown:K,slots:{root:J,section:s_,sectionContent:i_,sectionSeparator:a_},slotProps:{root:z({},h==null?void 0:h.input,{ownerState:$}),sectionContent:{className:tr.sectionContent},sectionSeparator:({separatorPosition:q})=>({className:q==="before"?tr.sectionBefore:tr.sectionAfter})}}),u,f?f(z({},B)):null,v.jsx(l_,z({name:w,className:Z.input,value:a,onChange:l,id:c,"aria-hidden":"true",tabIndex:-1,readOnly:S,required:B.required,disabled:B.disabled,onFocus:W},T,{ref:F})),ee&&v.jsx(c_,{className:Z.activeBar,ref:O,ownerState:{sectionOffsets:D.current}})]}))});process.env.NODE_ENV!=="production"&&(js.displayName="PickersInputBase");process.env.NODE_ENV!=="production"&&(js.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:yt,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 f_(e){return Te("MuiPickersOutlinedInput",e)}const rn=z({},tr,Ce("MuiPickersOutlinedInput",["root","notchedOutline","input"])),p_=["children","className","label","notched","shrink"],h_=ie.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}}),wh=ie.styled("span",{slot:"internal",shouldForwardProp:void 0})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),m_=ie.styled("legend",{slot:"internal",shouldForwardProp:e=>Hn(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 g_(e){const{className:t,label:n,notched:o}=e,r=Ee(e,p_),i=Ca();return v.jsx(h_,z({"aria-hidden":!0,className:t},r,{ownerState:i,children:v.jsx(m_,{ownerState:i,notched:o,children:n?v.jsx(wh,{children:n}):v.jsx(wh,{className:"notranslate",children:""})})}))}const y_=["label","autoFocus","ownerState","classes","notched"],b_=ie.styled(Ta,{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 .${rn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${rn.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${rn.focused} .${rn.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${rn.disabled}`]:{[`& .${rn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${rn.error} .${rn.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:{[`&.${rn.focused}:not(.${rn.error}) .${rn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),v_=ie.styled(ed,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer"})({padding:"16.5px 0",variants:[{props:{inputSize:"small"},style:{padding:"8.5px 0"}}]}),x_=e=>{const n=we({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},f_,e);return z({},e,n)},Pa=E.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiPickersOutlinedInput"}),{label:r,classes:i,notched:a}=o,l=Ee(o,y_),c=_n(),u=x_(i);return v.jsx(js,z({slots:{root:b_,input:v_},renderSuffix:d=>v.jsx(g_,{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)?v.jsxs(E.Fragment,{children:[r," ","*"]}):r})},l,{label:r,classes:u,ref:n}))});process.env.NODE_ENV!=="production"&&(Pa.displayName="PickersOutlinedInput");process.env.NODE_ENV!=="production"&&(Pa.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:yt,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});Pa.muiName="Input";function S_(e){return Te("MuiPickersFilledInput",e)}const ho=z({},tr,Ce("MuiPickersFilledInput",["root","underline","input"])),w_=["label","autoFocus","disableUnderline","hiddenLabel","classes"],C_=ie.styled(Ta,{name:"MuiPickersFilledInput",slot:"Root",shouldForwardProp:e=>Lt.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}},[`&.${ho.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${ho.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"},[`&.${ho.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ho.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(.${ho.disabled}, .${ho.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ho.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:{hasStartAdornment:!0},style:{paddingLeft:12}},{props:{hasEndAdornment:!0},style:{paddingRight:12}}]}}),T_=ie.styled(ed,{name:"MuiPickersFilledInput",slot:"sectionsContainer",shouldForwardProp:e=>Lt.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}}]}),P_=(e,t)=>{const{inputHasUnderline:n}=t,r=we({root:["root",n&&"underline"],input:["input"]},S_,e);return z({},e,r)},Ea=E.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:i=!1,hiddenLabel:a=!1,classes:l}=o,c=Ee(o,w_),u=Ca(),d=z({},u,{inputHasUnderline:!i}),f=P_(l,d);return v.jsx(js,z({slots:{root:C_,input:T_},slotProps:{root:{disableUnderline:i},input:{hiddenLabel:a}}},c,{label:r,classes:f,ref:n,ownerState:d}))});process.env.NODE_ENV!=="production"&&(Ea.displayName="PickersFilledInput");process.env.NODE_ENV!=="production"&&(Ea.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:yt,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});Ea.muiName="Input";function E_(e){return Te("MuiPickersFilledInput",e)}const Nr=z({},tr,Ce("MuiPickersInput",["root","underline","input"])),M_=["label","autoFocus","disableUnderline","ownerState","classes"],O_=ie.styled(Ta,{name:"MuiPickersInput",slot:"Root",shouldForwardProp:e=>Hn(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"},[`&.${Nr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Nr.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(.${Nr.disabled}, .${Nr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Nr.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),k_=(e,t)=>{const{inputHasUnderline:n}=t,r=we({root:["root",!n&&"underline"],input:["input"]},E_,e);return z({},e,r)},Ma=E.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiPickersInput"}),{label:r,disableUnderline:i=!1,classes:a}=o,l=Ee(o,M_),c=Ca(),u=z({},c,{inputHasUnderline:!i}),d=k_(a,u);return v.jsx(js,z({slots:{root:O_},slotProps:{root:{disableUnderline:i}}},l,{ownerState:u,label:r,classes:d,ref:n}))});process.env.NODE_ENV!=="production"&&(Ma.displayName="PickersInput");process.env.NODE_ENV!=="production"&&(Ma.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:yt,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});Ma.muiName="Input";const D_=["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"],R_={standard:Ma,filled:Ea,outlined:Pa},I_=ie.styled(Uu,{name:"MuiPickersTextField",slot:"Root"})({maxWidth:"100%"}),A_=(e,t)=>{const{isFieldFocused:n,isFieldDisabled:o,isFieldRequired:r}=t;return we({root:["root",n&&!o&&"focused",o&&"disabled",r&&"required"]},XN,e)},Oa=E.forwardRef(function(t,n){const o=ie.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:b,elements:C,areAllSectionsEmpty:w,onClick:S,onKeyDown:T,onKeyUp:P,onPaste:A,onInput:I,endAdornment:k,startAdornment:V,tabIndex:N,contentEditable:x,focused:j,value:R,onChange:O,fullWidth:D,id:_,name:F,helperText:B,FormHelperTextProps:$,label:M,InputLabelProps:W,"data-active-range-position":K}=o,G=Ee(o,D_),Z=E.useRef(null),U=_e(n,Z),Q=eo(_),J=B&&Q?`${Q}-helper-text`:void 0,ee=M&&Q?`${Q}-label`:void 0,q=Xu({disabled:o.disabled,required:o.required,readOnly:m==null?void 0:m.readOnly}),X=E.useMemo(()=>z({},q,{isFieldValueEmpty:w,isFieldFocused:j??!1,hasFieldError:d??!1,inputSize:o.size??"medium",inputColor:c??"primary",isInputInFullWidth:D??!1,hasStartAdornment:!!(V??(m==null?void 0:m.startAdornment)),hasEndAdornment:!!(k??(m==null?void 0:m.endAdornment)),inputHasLabel:!!M,isLabelShrunk:!!(W!=null&&W.shrink)}),[q,w,j,d,o.size,c,D,V,k,m==null?void 0:m.startAdornment,m==null?void 0:m.endAdornment,M,W==null?void 0:W.shrink]),H=A_(l,X),oe=R_[f],te={};return f==="outlined"?(W&&typeof W.shrink<"u"&&(te.notched=W.shrink),te.label=M):f==="filled"&&(te.hiddenLabel=h),v.jsx(Ju.Provider,{value:X,children:v.jsxs(I_,z({className:ge(H.root,a),ref:U,focused:j,disabled:u,variant:f,error:d,color:c,fullWidth:D,required:p,ownerState:X},G,{children:[M!=null&&M!==""&&v.jsx(Wu,z({htmlFor:Q,id:ee},W,{children:M})),v.jsx(oe,z({elements:C,areAllSectionsEmpty:w,onClick:S,onKeyDown:T,onKeyUp:P,onInput:I,onPaste:A,onFocus:r,onBlur:i,endAdornment:k,startAdornment:V,tabIndex:N,contentEditable:x,value:R,onChange:O,id:Q,fullWidth:D,inputProps:g,inputRef:y,sectionListRef:b,label:M,name:F,role:"group","aria-labelledby":ee,"aria-describedby":J,"aria-live":J?"polite":void 0,"data-active-range-position":K},te,m)),B&&v.jsx(Hu,z({id:J},$,{children:B}))]}))})});process.env.NODE_ENV!=="production"&&(Oa.displayName="PickersTextField");process.env.NODE_ENV!=="production"&&(Oa.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:yt,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 N_=["enableAccessibleFieldDOMStructure"],__=["InputProps","readOnly","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],j_=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef","onClear","clearable","clearButtonPosition","openPickerButtonPosition","openPickerAriaLabel"],$_=["ownerState"],L_=["ownerState"],V_=["ownerState"],F_=["ownerState"],B_=["InputProps","inputProps"],pl=()=>{},z_=e=>{var C,w,S,T,P,A,I,k,V;let{enableAccessibleFieldDOMStructure:t}=e,n=Ee(e,N_);if(t){const{InputProps:N,readOnly:x,onClear:j,clearable:R,clearButtonPosition:O,openPickerButtonPosition:D,openPickerAriaLabel:_}=n,F=Ee(n,__),B=Bn>=6&&((C=F==null?void 0:F.slotProps)!=null&&C.input)?ts((w=F==null?void 0:F.slotProps)==null?void 0:w.input,N):pl;return{clearable:R,onClear:j,clearButtonPosition:O,openPickerButtonPosition:D,openPickerAriaLabel:_,textFieldProps:z({},F,Bn>=6&&((S=F==null?void 0:F.slotProps)!=null&&S.input)?{slotProps:z({},F==null?void 0:F.slotProps,{input:$=>z({},Kt(B,$),{readOnly:x})})}:{InputProps:z({},N??{},{readOnly:x})})}}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=Ee(n,j_),y=Bn>=6&&((T=g==null?void 0:g.slotProps)!=null&&T.input)?ts((P=g==null?void 0:g.slotProps)==null?void 0:P.input,l):pl,b=Bn>=6&&((A=g==null?void 0:g.slotProps)!=null&&A.htmlInput)?ts((I=g==null?void 0:g.slotProps)==null?void 0:I.htmlInput,c):pl;return{clearable:f,onClear:d,clearButtonPosition:p,openPickerButtonPosition:h,openPickerAriaLabel:m,textFieldProps:z({},g,Bn>=6&&((k=g==null?void 0:g.slotProps)!=null&&k.input||(V=g==null?void 0:g.slotProps)!=null&&V.htmlInput)?{slotProps:z({},g==null?void 0:g.slotProps,{input:N=>z({},Kt(y,N),{readOnly:a}),htmlInput:N=>z({},Kt(b,N),{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})}:{InputProps:z({},l??{},{readOnly:a}),inputProps:z({},c??{},{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})}},ka=E.createContext({slots:{},slotProps:{},inputRef:void 0});process.env.NODE_ENV!=="production"&&(ka.displayName="PickerFieldUIContext");function W_(e){var $,M,W,K;const{fieldResponse:t,defaultOpenPickerIcon:n}=e,o=oo(),r=Pu(),i=E.useContext(ka),{textFieldProps:a,onClear:l,clearable:c,openPickerAriaLabel:u,clearButtonPosition:d="end",openPickerButtonPosition:f="end"}=z_(t),p=Xu(a),h=pe(G=>{G.preventDefault(),r==null||r.setOpen(Z=>!Z)}),m=r?r.triggerStatus:"hidden",g=c?d:null,y=m!=="hidden"?f:null,b=i.slots.textField??(t.enableAccessibleFieldDOMStructure===!1?Wb:Oa),C=i.slots.inputAdornment??Ub,w=Ne({elementType:C,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"start"},ownerState:z({},p,{position:"start"})}),S=Ee(w,$_),T=Ne({elementType:C,externalSlotProps:i.slotProps.inputAdornment,additionalProps:{position:"end"},ownerState:z({},p,{position:"end"})}),P=Ee(T,L_),A=i.slots.openPickerButton??ys,I=Ne({elementType:A,externalSlotProps:i.slotProps.openPickerButton,additionalProps:{disabled:m==="disabled",onClick:h,"aria-label":u,edge:a.variant!=="standard"?y:!1},ownerState:p}),k=Ee(I,V_),V=i.slots.openPickerIcon??n,N=Ne({elementType:V,externalSlotProps:i.slotProps.openPickerIcon,ownerState:p}),x=i.slots.clearButton??ys,j=Ne({elementType:x,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}),R=Ee(j,F_),O=i.slots.clearIcon??ZN,D=Ne({elementType:O,externalSlotProps:i.slotProps.clearIcon,additionalProps:{fontSize:"small"},ownerState:p});a.ref=_e(a.ref,r==null?void 0:r.rootRef);const _={},F=Kt((Bn>=6&&(($=a==null?void 0:a.slotProps)==null?void 0:$.input))??a.InputProps,p);r&&(_.ref=r.triggerRef),!(F!=null&&F.startAdornment)&&(g==="start"||y==="start")&&(_.startAdornment=v.jsxs(C,z({},S,{children:[y==="start"&&v.jsx(A,z({},k,{children:v.jsx(V,z({},N))})),g==="start"&&v.jsx(x,z({},R,{children:v.jsx(O,z({},D))}))]}))),!(F!=null&&F.endAdornment)&&(g==="end"||y==="end")&&(_.endAdornment=v.jsxs(C,z({},P,{children:[g==="end"&&v.jsx(x,z({},R,{children:v.jsx(O,z({},D))})),y==="end"&&v.jsx(A,z({},k,{children:v.jsx(V,z({},N))}))]}))),!(_!=null&&_.endAdornment)&&!(_!=null&&_.startAdornment)&&i.slots.inputAdornment&&(_.endAdornment=v.jsx(C,z({},P))),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 B=Bn>=6&&((M=a==null?void 0:a.slotProps)!=null&&M.input)?Kt(ts(F,_),p):z({},F,_);return a.inputProps=Bn>=6&&((W=a==null?void 0:a.slotProps)!=null&&W.htmlInput)?Kt(a.slotProps.htmlInput,p):a.inputProps,(K=a==null?void 0:a.slotProps)==null||delete K.input,t.enableAccessibleFieldDOMStructure&&(a==null||delete a.slotProps),v.jsx(b,z({},a,{InputProps:B}))}function ts(e,t){return e?t?n=>z({},Kt(t,n),Kt(e,n)):e:t}function U_(e){const{ref:t,externalForwardedProps:n,slotProps:o}=e,r=E.useContext(ka),i=Pu(),a=Xu(n),{InputProps:l,inputProps:c}=n,u=Ee(n,B_),d=Ne({elementType:Oa,externalSlotProps:ts(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=z({},c,d.inputProps),d.InputProps=z({},l,d.InputProps),d}function H_(e){const{slots:t={},slotProps:n={},inputRef:o,children:r}=e,i=E.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 v.jsx(ka.Provider,{value:i,children:r})}const Y_=["slots","slotProps"],Da=E.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiDateField"}),{slots:r,slotProps:i}=o,a=Ee(o,Y_),l=U_({slotProps:i,ref:n,externalForwardedProps:a}),c=m2(l);return v.jsx(H_,{slots:r,slotProps:i,inputRef:a.inputRef,children:v.jsx(W_,{fieldResponse:c,defaultOpenPickerIcon:KN})})});process.env.NODE_ENV!=="production"&&(Da.displayName="DateField");process.env.NODE_ENV!=="production"&&(Da.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:yt,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 Zb=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a,timezone:l})=>{const c=Ge();return E.useCallback(u=>Es({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])},q_=(e,t)=>(n,o)=>{switch(o.type){case"setVisibleDate":return z({},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))),z({},n,{currentMonth:i})}case"finishMonthSwitchingAnimation":return z({},n,{isMonthSwitchingAnimating:!1});default:throw new Error("missing support")}},G_=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=Ge(),m=E.useRef(q_(!!u,h)).current,g=E.useMemo(()=>vn.getInitialReferenceValue({value:t,adapter:h,timezone:f,props:e,referenceDate:n,granularity:fn.day}),[n,f]),[y,b]=E.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:g,currentMonth:h.setDate(g,1),slideDirection:"left"}),C=Zb({shouldDisableDate:d,minDate:a,maxDate:i,disableFuture:o,disablePast:r,timezone:f});E.useEffect(()=>{b({type:"changeMonthTimezone",newTimezone:h.getTimezone(g)})},[g,h]);const w=pe(({target:T,reason:P})=>{if(P==="cell-interaction"&&y.focusedDay!=null&&h.isSameDay(T,y.focusedDay))return;const A=P==="cell-interaction";let I,k;if(P==="cell-interaction")I=p(T,y.currentMonth),k=T;else if(I=h.isSameMonth(T,y.currentMonth)?y.currentMonth:h.startOfMonth(T),k=T,C(k)){const x=h.startOfMonth(T),j=h.endOfMonth(T);k=us({adapter:h,date:k,minDate:h.isBefore(a,x)?x:a,maxDate:h.isAfter(i,j)?j:i,disablePast:r,disableFuture:o,isDateDisabled:C,timezone:f})}const V=!h.isSameMonth(y.currentMonth,I),N=!h.isSameYear(y.currentMonth,I);V&&(l==null||l(I)),N&&(c==null||c(h.startOfYear(I))),b({type:"setVisibleDate",month:I,direction:h.isAfterDay(I,y.currentMonth)?"left":"right",focusedDay:y.focusedDay!=null&&k!=null&&h.isSameDay(k,y.focusedDay)?y.focusedDay:k,skipAnimation:A})}),S=E.useCallback(()=>{b({type:"finishMonthSwitchingAnimation"})},[]);return{referenceDate:g,calendarState:y,setVisibleDate:w,isDateDisabled:C,onMonthSwitchingAnimationEnd:S}},K_=e=>Te("MuiPickersFadeTransitionGroup",e);Ce("MuiPickersFadeTransitionGroup",["root"]);const Z_=["children"],X_=e=>we({root:["root"]},K_,e),Q_=ie.styled(Ds,{name:"MuiPickersFadeTransitionGroup",slot:"Root"})({display:"block",position:"relative"});function Xb(e){const t=ie.useThemeProps({props:e,name:"MuiPickersFadeTransitionGroup"}),{className:n,reduceAnimations:o,transKey:r,classes:i}=t,{children:a}=t,l=Ee(t,Z_),c=X_(i),u=ie.useTheme();return o?a:v.jsx(Q_,{className:ge(c.root,n),ownerState:l,children:v.jsx(Xn,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:u.transitions.duration.enteringScreen,enter:u.transitions.duration.enteringScreen,exit:0},children:a},r)})}function J_(e){return Te("MuiPickersDay",e)}const mo=Ce("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]);function Qb(e){const{disabled:t,selected:n,today:o,outsideCurrentMonth:r,day:i,disableMargin:a,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=e,u=Ge(),{ownerState:d}=Et();return E.useMemo(()=>z({},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 ej=["autoFocus","className","classes","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","children","isFirstVisibleCell","isLastVisibleCell","day","selected","disabled","today","outsideCurrentMonth","disableMargin","disableHighlightToday","showDaysOutsideCurrentMonth"],tj=(e,t)=>{const{isDaySelected:n,isDayDisabled:o,isDayCurrent:r,isDayOutsideMonth:i,disableMargin:a,disableHighlightToday:l,showDaysOutsideCurrentMonth:c}=t,u=i&&!c;return we({root:["root",n&&!u&&"selected",o&&"disabled",!a&&"dayWithMargin",!l&&r&&"today",i&&c&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},J_,e)},Jb=({theme:e})=>z({},e.typography.caption,{width:gs,height:gs,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})`:ie.alpha(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:ie.alpha(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${mo.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${mo.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}},[`&.${mo.disabled}:not(.${mo.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${mo.disabled}&.${mo.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${fa}px`}},{props:{isDayOutsideMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,isDayCurrent:!0},style:{[`&:not(.${mo.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),ev=(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]},nj=ie.styled(ur,{name:"MuiPickersDay",slot:"Root",overridesResolver:ev})(Jb),oj=ie.styled("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:ev})(({theme:e})=>z({},Jb({theme:e}),{opacity:0,pointerEvents:"none"})),_r=()=>{},td=E.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiPickersDay"}),{autoFocus:r=!1,className:i,classes:a,isAnimating:l,onClick:c,onDaySelect:u,onFocus:d=_r,onBlur:f=_r,onKeyDown:p=_r,onMouseDown:h=_r,onMouseEnter:m=_r,children:g,day:y,selected:b,disabled:C,today:w,outsideCurrentMonth:S,disableMargin:T,disableHighlightToday:P,showDaysOutsideCurrentMonth:A}=o,I=Ee(o,ej),k=Qb({day:y,selected:b,disabled:C,today:w,outsideCurrentMonth:S,disableMargin:T,disableHighlightToday:P,showDaysOutsideCurrentMonth:A}),V=tj(a,k),N=Ge(),x=E.useRef(null),j=_e(x,n);St(()=>{r&&!C&&!l&&!S&&x.current.focus()},[r,C,l,S]);const R=D=>{h(D),S&&D.preventDefault()},O=D=>{D.defaultMuiPrevented=!0,C||u(y),S&&D.currentTarget.focus(),c&&c(D)};return S&&!A?v.jsx(oj,{className:ge(V.root,V.hiddenDaySpacingFiller,i),ownerState:k,role:I.role}):v.jsx(nj,z({className:ge(V.root,i),ref:j,centerRipple:!0,disabled:C,tabIndex:b?0:-1,onKeyDown:D=>p(D,y),onFocus:D=>d(D,y),onBlur:D=>f(D,y),onMouseEnter:D=>m(D,y),onClick:O,onMouseDown:R},I,{ownerState:k,children:g??N.format(y,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(td.displayName="PickersDayRaw");process.env.NODE_ENV!=="production"&&(td.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 tv=E.memo(td);process.env.NODE_ENV!=="production"&&(tv.displayName="PickersDay");const rj=e=>Te("MuiPickersSlideTransition",e),Wt=Ce("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),sj=["children","className","reduceAnimations","slideDirection","transKey","classes"],ij=(e,t)=>{const{slideDirection:n}=t,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return we(o,rj,e)},aj=ie.styled(Ds,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Wt["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Wt["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Wt.slideEnterActive}`]:t.slideEnterActive},{[`.${Wt.slideExit}`]:t.slideExit},{[`.${Wt["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Wt["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},[`& .${Wt["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Wt["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Wt.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Wt.slideExit}`]:{transform:"translate(0%)"},[`& .${Wt["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Wt["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function lj(e){const t=ie.useThemeProps({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:r,slideDirection:i,transKey:a,classes:l}=t,c=Ee(t,sj),{ownerState:u}=Et(),d=z({},u,{slideDirection:i}),f=ij(l,d),p=ie.useTheme();if(r)return v.jsx("div",{className:ge(f.root,o),children:n});const h={exit:f.exit,enterActive:f.enterActive,enter:f.enter,exitActive:f.exitActive};return v.jsx(aj,{className:ge(f.root,o),childFactory:m=>E.cloneElement(m,{classNames:h}),role:"presentation",ownerState:d,children:v.jsx(ku,z({mountOnEnter:!0,unmountOnExit:!0,timeout:p.transitions.duration.complex,classNames:h},c,{children:n}),a)})}const cj=e=>Te("MuiDayCalendar",e);Ce("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const uj=["parentProps","day","focusedDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],dj=["ownerState"],fj=e=>we({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},cj,e),nv=(gs+fa*2)*6,pj=ie.styled("div",{name:"MuiDayCalendar",slot:"Root"})({}),hj=ie.styled("div",{name:"MuiDayCalendar",slot:"Header"})({display:"flex",justifyContent:"center",alignItems:"center"}),mj=ie.styled(no,{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})),gj=ie.styled(no,{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})),yj=ie.styled(no,{name:"MuiDayCalendar",slot:"WeekNumber"})(({theme:e})=>z({},e.typography.caption,{width:gs,height:gs,padding:0,margin:`0 ${fa}px`,color:(e.vars||e).palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),bj=ie.styled("div",{name:"MuiDayCalendar",slot:"LoadingContainer"})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:nv}),vj=ie.styled(lj,{name:"MuiDayCalendar",slot:"SlideTransition"})({minHeight:nv}),xj=ie.styled("div",{name:"MuiDayCalendar",slot:"MonthContainer"})({overflow:"hidden"}),Sj=ie.styled("div",{name:"MuiDayCalendar",slot:"WeekContainer"})({margin:`${fa}px 0`,display:"flex",justifyContent:"center"});function wj(e){let{parentProps:t,day:n,focusedDay:o,selectedDays:r,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,c=Ee(e,uj);const{disabled:u,disableHighlightToday:d,isMonthSwitchingAnimating:f,showDaysOutsideCurrentMonth:p,slots:h,slotProps:m,timezone:g}=t,y=Ge(),b=la(g),C=o!=null&&y.isSameDay(n,o),w=l&&C,S=r.some(R=>y.isSameDay(R,n)),T=y.isSameDay(n,b),P=E.useMemo(()=>u||i(n),[u,i,n]),A=E.useMemo(()=>y.getMonth(n)!==a,[y,n,a]),I=Qb({day:n,selected:S,disabled:P,today:T,outsideCurrentMonth:A,disableMargin:void 0,disableHighlightToday:d,showDaysOutsideCurrentMonth:p}),k=(h==null?void 0:h.day)??tv,V=Ne({elementType:k,externalSlotProps:m==null?void 0:m.day,additionalProps:z({disableHighlightToday:d,showDaysOutsideCurrentMonth:p,role:"gridcell",isAnimating:f,"data-timestamp":y.toJsDate(n).valueOf()},c),ownerState:z({},I,{day:n,isDayDisabled:P,isDaySelected:S})}),N=Ee(V,dj),x=E.useMemo(()=>{const R=y.startOfMonth(y.setMonth(n,a));return p?y.isSameDay(n,y.startOfWeek(R)):y.isSameDay(n,R)},[a,n,p,y]),j=E.useMemo(()=>{const R=y.endOfMonth(y.setMonth(n,a));return p?y.isSameDay(n,y.endOfWeek(R)):y.isSameDay(n,R)},[a,n,p,y]);return v.jsx(k,z({},N,{day:n,disabled:P,autoFocus:!A&&w,today:T,outsideCurrentMonth:A,isFirstVisibleCell:x,isLastVisibleCell:j,selected:S,tabIndex:C?0:-1,"aria-selected":S,"aria-current":T?"date":void 0}))}function Cj(e){const t=ie.useThemeProps({props:e,name:"MuiDayCalendar"}),n=Ge(),{onFocusedDayChange:o,className:r,classes:i,currentMonth:a,selectedDays:l,focusedDay:c,loading:u,onSelectedDaysChange:d,onMonthSwitchingAnimationEnd:f,readOnly:p,reduceAnimations:h,renderLoading:m=()=>v.jsx("span",{children:"..."}),slideDirection:g,TransitionProps:y,disablePast:b,disableFuture:C,minDate:w,maxDate:S,shouldDisableDate:T,shouldDisableMonth:P,shouldDisableYear:A,dayOfWeekFormatter:I=X=>n.format(X,"weekdayShort").charAt(0).toUpperCase(),hasFocus:k,onFocusedViewChange:V,gridLabelId:N,displayWeekNumber:x,fixedWeekNumber:j,timezone:R}=t,O=la(R),D=fj(i),_=an(),F=Zb({shouldDisableDate:T,shouldDisableMonth:P,shouldDisableYear:A,minDate:w,maxDate:S,disablePast:b,disableFuture:C,timezone:R}),B=oo(),$=pe(X=>{p||d(X)}),M=X=>{F(X)||(o(X),V==null||V(!0))},W=pe((X,H)=>{switch(X.key){case"ArrowUp":M(n.addDays(H,-7)),X.preventDefault();break;case"ArrowDown":M(n.addDays(H,7)),X.preventDefault();break;case"ArrowLeft":{const oe=n.addDays(H,_?1:-1),te=n.addMonths(H,_?1:-1),ae=us({adapter:n,date:oe,minDate:_?oe:n.startOfMonth(te),maxDate:_?n.endOfMonth(te):oe,isDateDisabled:F,timezone:R});M(ae||oe),X.preventDefault();break}case"ArrowRight":{const oe=n.addDays(H,_?-1:1),te=n.addMonths(H,_?-1:1),ae=us({adapter:n,date:oe,minDate:_?n.startOfMonth(te):oe,maxDate:_?oe:n.endOfMonth(te),isDateDisabled:F,timezone:R});M(ae||oe),X.preventDefault();break}case"Home":M(n.startOfWeek(H)),X.preventDefault();break;case"End":M(n.endOfWeek(H)),X.preventDefault();break;case"PageUp":M(n.addMonths(H,1)),X.preventDefault();break;case"PageDown":M(n.addMonths(H,-1)),X.preventDefault();break}}),K=pe((X,H)=>M(H)),G=pe((X,H)=>{c!=null&&n.isSameDay(c,H)&&(V==null||V(!1))}),Z=n.getMonth(a),U=n.getYear(a),Q=E.useMemo(()=>l.filter(X=>!!X).map(X=>n.startOfDay(X)),[n,l]),J=`${U}-${Z}`,ee=E.useMemo(()=>E.createRef(),[J]),q=E.useMemo(()=>{const X=n.getWeekArray(a);let H=n.addMonths(a,1);for(;j&&X.length<j;){const oe=n.getWeekArray(H),te=n.isSameDay(X[X.length-1][0],oe[0][0]);oe.slice(te?1:0).forEach(ae=>{X.length<j&&X.push(ae)}),H=n.addMonths(H,1)}return X},[a,j,n]);return v.jsxs(pj,{role:"grid","aria-labelledby":N,className:D.root,children:[v.jsxs(hj,{role:"row",className:D.header,children:[x&&v.jsx(gj,{variant:"caption",role:"columnheader","aria-label":B.calendarWeekNumberHeaderLabel,className:D.weekNumberLabel,children:B.calendarWeekNumberHeaderText}),Uk(n,O).map((X,H)=>v.jsx(mj,{variant:"caption",role:"columnheader","aria-label":n.format(X,"weekday"),className:D.weekDayLabel,children:I(X)},H.toString()))]}),u?v.jsx(bj,{className:D.loadingContainer,children:m()}):v.jsx(vj,z({transKey:J,onExited:f,reduceAnimations:h,slideDirection:g,className:ge(r,D.slideTransition)},y,{nodeRef:ee,children:v.jsx(xj,{ref:ee,role:"rowgroup",className:D.monthContainer,children:q.map((X,H)=>v.jsxs(Sj,{role:"row",className:D.weekContainer,"aria-rowindex":H+1,children:[x&&v.jsx(yj,{className:D.weekNumber,role:"rowheader","aria-label":B.calendarWeekNumberAriaLabelText(n.getWeekNumber(X[0])),children:B.calendarWeekNumberText(n.getWeekNumber(X[0]))}),X.map((oe,te)=>v.jsx(wj,{parentProps:t,day:oe,selectedDays:Q,isViewFocused:k,focusedDay:c,onKeyDown:W,onFocus:K,onBlur:G,onDaySelect:$,isDateDisabled:F,currentMonthNumber:Z,"aria-colindex":te+1},oe.toString()))]},`week-${X[0]}`))})}))]})}function ov(e){return Te("MuiMonthCalendar",e)}const Qs=Ce("MuiMonthCalendar",["root","button","disabled","selected"]),Tj=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],Pj=(e,t)=>{const n={button:["button",t.isMonthDisabled&&"disabled",t.isMonthSelected&&"selected"]};return we(n,ov,e)},Ej=ie.styled("button",{name:"MuiMonthCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${Qs.disabled}`]:t.disabled},{[`&.${Qs.selected}`]:t.selected}]})(({theme:e})=>z({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})`:ie.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ie.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Qs.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Qs.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),rv=E.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=Ee(t,Tj),m=E.useRef(null),{ownerState:g}=Et(),y=z({},g,{isMonthDisabled:r,isMonthSelected:i}),b=Pj(o,y);St(()=>{var S;n&&((S=m.current)==null||S.focus())},[n]);const C=(f==null?void 0:f.monthButton)??Ej,w=Ne({elementType:C,externalSlotProps:p==null?void 0:p.monthButton,externalForwardedProps:h,additionalProps:{disabled:r,ref:m,type:"button",role:"radio","aria-checked":i,onClick:S=>l(S,a),onKeyDown:S=>c(S,a),onFocus:S=>u(S,a),onBlur:S=>d(S,a)},ownerState:y,className:b.button});return v.jsx(C,z({},w))});process.env.NODE_ENV!=="production"&&(rv.displayName="MonthCalendarButton");const Mj=["autoFocus","className","currentMonth","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],Oj=e=>we({root:["root"]},ov,e);function kj(e,t){const n=ie.useThemeProps({props:e,name:t}),o=Ms(n);return z({},n,o,{monthsPerRow:n.monthsPerRow??3})}const Ch=(e,t,n,o,r)=>!!(e===t&&o&&r.isSameYear(n,o)),Dj=ie.styled("div",{name:"MuiMonthCalendar",slot:"Root",shouldForwardProp:e=>Hn(e)&&e!=="monthsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:16,padding:"8px 0",width:pa,boxSizing:"border-box",variants:[{props:{monthsPerRow:3},style:{columnGap:24}},{props:{monthsPerRow:4},style:{columnGap:0}}]}),nd=E.forwardRef(function(t,n){const o=kj(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:b,readOnly:C,onMonthFocus:w,hasFocus:S,onFocusedViewChange:T,monthsPerRow:P,timezone:A,gridLabelId:I,slots:k,slotProps:V}=o,N=Ee(o,Mj),{value:x,handleValueChange:j,timezone:R}=Ns({name:"MonthCalendar",timezone:A,value:c,defaultValue:u,referenceDate:d,onChange:y,valueManager:vn}),O=la(R),D=an(),_=Ge(),{ownerState:F}=Et(),B=E.useMemo(()=>vn.getInitialReferenceValue({value:x,adapter:_,props:o,timezone:R,referenceDate:d,granularity:fn.month}),[]),$=Oj(l),M=E.useMemo(()=>_.getMonth(O),[_,O]),W=E.useMemo(()=>x!=null?_.getMonth(x):null,[x,_]),[K,G]=E.useState(()=>W||_.getMonth(B)),[Z,U]=Gn({name:"MonthCalendar",state:"hasFocus",controlled:S,default:r??!1}),Q=pe(te=>{U(te),T&&T(te)}),J=E.useCallback(te=>{const ae=_.startOfMonth(h&&_.isAfter(O,g)?O:g),re=_.startOfMonth(p&&_.isBefore(O,m)?O:m),be=_.startOfMonth(te);return _.isBefore(be,ae)||_.isAfter(be,re)?!0:b?b(be):!1},[p,h,m,g,O,b,_]),ee=pe((te,ae)=>{if(C)return;const be=(x&&a&&!_.isSameYear(x,a)?_.setYear(x,_.getYear(a)):x)??a??B,se=_.setMonth(be,ae);j(se)}),q=pe(te=>{J(_.setMonth(x??a??B,te))||(G(te),Q(!0),w&&w(te))});E.useEffect(()=>{G(te=>W!==null&&te!==W?W:te)},[W]);const X=pe((te,ae)=>{switch(te.key){case"ArrowUp":q((12+ae-3)%12),te.preventDefault();break;case"ArrowDown":q((12+ae+3)%12),te.preventDefault();break;case"ArrowLeft":q((12+ae+(D?1:-1))%12),te.preventDefault();break;case"ArrowRight":q((12+ae+(D?-1:1))%12),te.preventDefault();break}}),H=pe((te,ae)=>{q(ae)}),oe=pe((te,ae)=>{K===ae&&Q(!1)});return v.jsx(Dj,z({ref:n,className:ge($.root,i),ownerState:F,role:"radiogroup","aria-labelledby":I,monthsPerRow:P},N,{children:hu(_,a??x??B).map(te=>{const ae=_.getMonth(te),re=_.format(te,"monthShort"),be=_.format(te,"month"),se=Ch(ae,W,te,x,_),he=f||J(te);return v.jsx(rv,{selected:se,value:ae,onClick:ee,onKeyDown:X,autoFocus:Z&&ae===K,disabled:he,tabIndex:ae===K&&!he?0:-1,onFocus:H,onBlur:oe,"aria-current":Ch(ae,M,te,O,_)?"date":void 0,"aria-label":be,slots:k,slotProps:V,classes:l,children:re},re)})}))});process.env.NODE_ENV!=="production"&&(nd.displayName="MonthCalendar");process.env.NODE_ENV!=="production"&&(nd.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 sv(e){return Te("MuiYearCalendar",e)}const Js=Ce("MuiYearCalendar",["root","button","disabled","selected"]),Rj=["autoFocus","classes","disabled","selected","value","onClick","onKeyDown","onFocus","onBlur","slots","slotProps"],Ij=(e,t)=>{const n={button:["button",t.isYearDisabled&&"disabled",t.isYearSelected&&"selected"]};return we(n,sv,e)},Aj=ie.styled("button",{name:"MuiYearCalendar",slot:"Button",overridesResolver:(e,t)=>[t.button,{[`&.${Js.disabled}`]:t.disabled},{[`&.${Js.selected}`]:t.selected}]})(({theme:e})=>z({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})`:ie.alpha(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ie.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Js.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Js.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),iv=E.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=Ee(t,Rj),m=E.useRef(null),{ownerState:g}=Et(),y=z({},g,{isYearDisabled:r,isYearSelected:i}),b=Ij(o,y);St(()=>{var S;n&&((S=m.current)==null||S.focus())},[n]);const C=(f==null?void 0:f.yearButton)??Aj,w=Ne({elementType:C,externalSlotProps:p==null?void 0:p.yearButton,externalForwardedProps:h,additionalProps:{disabled:r,ref:m,type:"button",role:"radio","aria-checked":i,onClick:S=>l(S,a),onKeyDown:S=>c(S,a),onFocus:S=>u(S,a),onBlur:S=>d(S,a)},ownerState:y,className:b.button});return v.jsx(C,z({},w))});process.env.NODE_ENV!=="production"&&(iv.displayName="YearCalendarButton");const Nj=["autoFocus","className","classes","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],_j=e=>we({root:["root"]},sv,e);function jj(e,t){const n=ie.useThemeProps({props:e,name:t}),o=Ms(n);return z({},n,o,{yearsPerRow:n.yearsPerRow??3,yearsOrder:n.yearsOrder??"asc"})}const $j=ie.styled("div",{name:"MuiYearCalendar",slot:"Root",shouldForwardProp:e=>Hn(e)&&e!=="yearsPerRow"})({display:"flex",flexWrap:"wrap",justifyContent:"space-evenly",rowGap:12,padding:"6px 0",overflowY:"auto",height:"100%",width:pa,maxHeight:zA,boxSizing:"border-box",position:"relative",variants:[{props:{yearsPerRow:3},style:{columnGap:24}},{props:{yearsPerRow:4},style:{columnGap:0,padding:"0 2px"}}]}),Lj=ie.styled("div",{name:"MuiYearCalendar",slot:"ButtonFiller"})({height:36,width:72}),od=E.forwardRef(function(t,n){const o=jj(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:b,onYearFocus:C,hasFocus:w,onFocusedViewChange:S,yearsOrder:T,yearsPerRow:P,timezone:A,gridLabelId:I,slots:k,slotProps:V}=o,N=Ee(o,Nj),{value:x,handleValueChange:j,timezone:R}=Ns({name:"YearCalendar",timezone:A,value:l,defaultValue:c,referenceDate:u,onChange:g,valueManager:vn}),O=la(R),D=an(),_=Ge(),{ownerState:F}=Et(),B=E.useMemo(()=>vn.getInitialReferenceValue({value:x,adapter:_,props:o,timezone:R,referenceDate:u,granularity:fn.year}),[]),$=_j(a),M=E.useMemo(()=>_.getYear(O),[_,O]),W=E.useMemo(()=>x!=null?_.getYear(x):null,[x,_]),[K,G]=E.useState(()=>W||_.getYear(B)),[Z,U]=Gn({name:"YearCalendar",state:"hasFocus",controlled:w,default:r??!1}),Q=pe(le=>{U(le),S&&S(le)}),J=E.useCallback(le=>{if(p&&_.isBeforeYear(le,O)||f&&_.isAfterYear(le,O)||m&&_.isBeforeYear(le,m)||h&&_.isAfterYear(le,h))return!0;if(!b)return!1;const ue=_.startOfYear(le);return b(ue)},[f,p,h,m,O,b,_]),ee=pe((le,ue)=>{if(y)return;const de=_.setYear(x??B,ue);j(de)}),q=pe(le=>{J(_.setYear(x??B,le))||(G(le),Q(!0),C==null||C(le))});E.useEffect(()=>{G(le=>W!==null&&le!==W?W:le)},[W]);const X=T!=="desc"?P*1:P*-1,H=D&&T==="asc"||!D&&T==="desc"?-1:1,oe=pe((le,ue)=>{switch(le.key){case"ArrowUp":q(ue-X),le.preventDefault();break;case"ArrowDown":q(ue+X),le.preventDefault();break;case"ArrowLeft":q(ue-H),le.preventDefault();break;case"ArrowRight":q(ue+H),le.preventDefault();break}}),te=pe((le,ue)=>{q(ue)}),ae=pe((le,ue)=>{K===ue&&Q(!1)}),re=E.useRef(null),be=_e(n,re);E.useEffect(()=>{if(r||re.current===null)return;const le=re.current.querySelector('[tabindex="0"]');if(!le)return;const ue=le.offsetHeight,de=le.offsetTop,Ie=re.current.clientHeight,Me=re.current.scrollTop,Ke=de+ue;ue>Ie||de<Me||(re.current.scrollTop=Ke-Ie/2-ue/2)},[r]);const se=_.getYearRange([m,h]);T==="desc"&&se.reverse();let he=P-se.length%P;return he===P&&(he=0),v.jsxs($j,z({ref:be,className:ge($.root,i),ownerState:F,role:"radiogroup","aria-labelledby":I,yearsPerRow:P},N,{children:[se.map(le=>{const ue=_.getYear(le),de=ue===W,Ie=d||J(le);return v.jsx(iv,{selected:de,value:ue,onClick:ee,onKeyDown:oe,autoFocus:Z&&ue===K,disabled:Ie,tabIndex:ue===K&&!Ie?0:-1,onFocus:te,onBlur:ae,"aria-current":M===ue?"date":void 0,slots:k,slotProps:V,classes:a,children:_.format(le,"year")},_.format(le,"year"))}),Array.from({length:he},(le,ue)=>v.jsx(Lj,{},ue))]}))});process.env.NODE_ENV!=="production"&&(od.displayName="YearCalendar");process.env.NODE_ENV!=="production"&&(od.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 Vj=e=>Te("MuiPickersCalendarHeader",e),Fj=Ce("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function Bj(e){return Te("MuiPickersArrowSwitcher",e)}Ce("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const zj=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","classes"],Wj=["ownerState"],Uj=["ownerState"],Hj=ie.styled("div",{name:"MuiPickersArrowSwitcher",slot:"Root"})({display:"flex"}),Yj=ie.styled("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer"})(({theme:e})=>({width:e.spacing(3)})),Th=ie.styled(ys,{name:"MuiPickersArrowSwitcher",slot:"Button"})({variants:[{props:{isButtonHidden:!0},style:{visibility:"hidden"}}]}),qj=e=>we({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},Bj,e),av=E.forwardRef(function(t,n){const o=an(),r=ie.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:b,classes:C}=r,w=Ee(r,zj),{ownerState:S}=Et(),T=qj(C),P={isDisabled:u,isHidden:d,goTo:f,label:p},A={isDisabled:h,isHidden:m,goTo:g,label:y},I=(l==null?void 0:l.previousIconButton)??Th,k=Ne({elementType:I,externalSlotProps:c==null?void 0:c.previousIconButton,additionalProps:{size:"medium",title:A.label,"aria-label":A.label,disabled:A.isDisabled,edge:"end",onClick:A.goTo},ownerState:z({},S,{isButtonHidden:A.isHidden??!1}),className:ge(T.button,T.previousIconButton)}),V=(l==null?void 0:l.nextIconButton)??Th,N=Ne({elementType:V,externalSlotProps:c==null?void 0:c.nextIconButton,additionalProps:{size:"medium",title:P.label,"aria-label":P.label,disabled:P.isDisabled,edge:"start",onClick:P.goTo},ownerState:z({},S,{isButtonHidden:P.isHidden??!1}),className:ge(T.button,T.nextIconButton)}),x=(l==null?void 0:l.leftArrowIcon)??qN,j=Ne({elementType:x,externalSlotProps:c==null?void 0:c.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:S,className:T.leftArrowIcon}),R=Ee(j,Wj),O=(l==null?void 0:l.rightArrowIcon)??GN,D=Ne({elementType:O,externalSlotProps:c==null?void 0:c.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:S,className:T.rightArrowIcon}),_=Ee(D,Uj);return v.jsxs(Hj,z({ref:n,className:ge(T.root,a),ownerState:S},w,{children:[v.jsx(I,z({},k,{children:o?v.jsx(O,z({},_)):v.jsx(x,z({},R))})),i?v.jsx(no,{variant:"subtitle1",component:"span",id:b,children:i}):v.jsx(Yj,{className:T.spacer,ownerState:S}),v.jsx(V,z({},N,{children:o?v.jsx(x,z({},R)):v.jsx(O,z({},_))}))]}))});process.env.NODE_ENV!=="production"&&(av.displayName="PickersArrowSwitcher");function Gj(e,{disableFuture:t,maxDate:n,timezone:o}){const r=Ge();return E.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 Kj(e,{disablePast:t,minDate:n,timezone:o}){const r=Ge();return E.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 Zj=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","classes","timezone","format"],Xj=["ownerState"],Qj=e=>we({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Vj,e),Jj=ie.styled("div",{name:"MuiPickersCalendarHeader",slot:"Root"})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),e$=ie.styled("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer"})(({theme:e})=>z({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),t$=ie.styled("div",{name:"MuiPickersCalendarHeader",slot:"Label"})({marginRight:6}),n$=ie.styled(ys,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton"})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${Fj.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),o$=ie.styled(YN,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon"})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),rd=E.forwardRef(function(t,n){const o=oo(),r=Ge(),i=ie.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:b,views:C,labelId:w,className:S,classes:T,timezone:P,format:A=`${r.formats.month} ${r.formats.year}`}=i,I=Ee(i,Zj),{ownerState:k}=Et(),V=Qj(T),N=(a==null?void 0:a.switchViewButton)??n$,x=Ne({elementType:N,externalSlotProps:l==null?void 0:l.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(y)},ownerState:z({},k,{view:y}),className:V.switchViewButton}),j=(a==null?void 0:a.switchViewIcon)??o$,R=Ne({elementType:j,externalSlotProps:l==null?void 0:l.switchViewIcon,ownerState:k,className:V.switchViewIcon}),O=Ee(R,Xj),D=()=>m(r.addMonths(c,1)),_=()=>m(r.addMonths(c,-1)),F=Gj(c,{disableFuture:d,maxDate:p,timezone:P}),B=Kj(c,{disablePast:f,minDate:h,timezone:P}),$=()=>{if(!(C.length===1||!g||u))if(C.length===2)g(C.find(W=>W!==y)||C[0]);else{const W=C.indexOf(y)!==0?0:1;g(C[W])}};if(C.length===1&&C[0]==="year")return null;const M=r.formatByString(c,A);return v.jsxs(Jj,z({},I,{ownerState:k,className:ge(V.root,S),ref:n,children:[v.jsxs(e$,{role:"presentation",onClick:$,ownerState:k,"aria-live":"polite",className:V.labelContainer,children:[v.jsx(Xb,{reduceAnimations:b,transKey:M,children:v.jsx(t$,{id:w,ownerState:k,className:V.label,children:M})}),C.length>1&&!u&&v.jsx(N,z({},x,{children:v.jsx(j,z({},O))}))]}),v.jsx(Xn,{in:y==="day",appear:!b,enter:!b,children:v.jsx(av,{slots:a,slotProps:l,onGoToPrevious:_,isPreviousDisabled:B,previousLabel:o.previousMonth,onGoToNext:D,isNextDisabled:F,nextLabel:o.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(rd.displayName="PickersCalendarHeader");process.env.NODE_ENV!=="production"&&(rd.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 r$=ie.styled("div",{slot:"internal",shouldForwardProp:void 0})({overflow:"hidden",width:pa,maxHeight:Bu,display:"flex",flexDirection:"column",margin:"0 auto"}),s$=e=>Te("MuiDateCalendar",e);Ce("MuiDateCalendar",["root","viewTransitionContainer"]);const i$=["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"],a$=e=>we({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},s$,e);function l$(e,t){const n=ie.useThemeProps({props:e,name:t}),o=ab(n.reduceAnimations),r=Ms(n);return z({},n,r,{loading:n.loading??!1,openTo:n.openTo??"day",views:n.views??["year","day"],reduceAnimations:o,renderLoading:n.renderLoading??(()=>v.jsx("span",{children:"..."}))})}const c$=ie.styled(r$,{name:"MuiDateCalendar",slot:"Root"})({display:"flex",flexDirection:"column",height:Bu}),u$=ie.styled(Xb,{name:"MuiDateCalendar",slot:"ViewTransitionContainer"})({}),sd=E.forwardRef(function(t,n){const o=Ge(),{ownerState:r}=Et(),i=eo(),a=l$(t,"MuiDateCalendar"),{autoFocus:l,onViewChange:c,value:u,defaultValue:d,referenceDate:f,disableFuture:p,disablePast:h,onChange:m,onMonthChange:g,reduceAnimations:y,shouldDisableDate:b,shouldDisableMonth:C,shouldDisableYear:w,view:S,views:T,openTo:P,className:A,classes:I,disabled:k,readOnly:V,minDate:N,maxDate:x,disableHighlightToday:j,focusedView:R,onFocusedViewChange:O,showDaysOutsideCurrentMonth:D,fixedWeekNumber:_,dayOfWeekFormatter:F,slots:B,slotProps:$,loading:M,renderLoading:W,displayWeekNumber:K,yearsOrder:G,yearsPerRow:Z,monthsPerRow:U,timezone:Q}=a,J=Ee(a,i$),{value:ee,handleValueChange:q,timezone:X}=Ns({name:"DateCalendar",timezone:Q,value:u,defaultValue:d,referenceDate:f,onChange:m,valueManager:vn}),{view:H,setView:oe,focusedView:te,setFocusedView:ae,goToNextView:re,setValueAndGoToNextView:be}=cb({view:S,views:T,openTo:P,onChange:q,onViewChange:c,autoFocus:l,focusedView:R,onFocusedViewChange:O}),{referenceDate:se,calendarState:he,setVisibleDate:le,isDateDisabled:ue,onMonthSwitchingAnimationEnd:de}=G_({value:ee,referenceDate:f,reduceAnimations:y,onMonthChange:g,minDate:N,maxDate:x,shouldDisableDate:b,disablePast:h,disableFuture:p,timezone:X,getCurrentMonthFromVisibleDate:(Oe,pt)=>o.isSameMonth(Oe,pt)?pt:o.startOfMonth(Oe)}),Ie=k&&ee||N,Me=k&&ee||x,Ke=`${i}-grid-label`,Qe=te!==null,ke=(B==null?void 0:B.calendarHeader)??rd,ut=Ne({elementType:ke,externalSlotProps:$==null?void 0:$.calendarHeader,additionalProps:{views:T,view:H,currentMonth:he.currentMonth,onViewChange:oe,onMonthChange:Oe=>le({target:Oe,reason:"header-navigation"}),minDate:Ie,maxDate:Me,disabled:k,disablePast:h,disableFuture:p,reduceAnimations:y,timezone:X,labelId:Ke},ownerState:r}),Se=pe(Oe=>{const pt=o.startOfMonth(Oe),wt=o.endOfMonth(Oe),Nt=ue(Oe)?us({adapter:o,date:Oe,minDate:o.isBefore(N,pt)?pt:N,maxDate:o.isAfter(x,wt)?wt:x,disablePast:h,disableFuture:p,isDateDisabled:ue,timezone:X}):Oe;Nt?(be(Nt,"finish"),le({target:Nt,reason:"cell-interaction"})):(re(),le({target:pt,reason:"cell-interaction"}))}),Pe=pe(Oe=>{const pt=o.startOfYear(Oe),wt=o.endOfYear(Oe),Nt=ue(Oe)?us({adapter:o,date:Oe,minDate:o.isBefore(N,pt)?pt:N,maxDate:o.isAfter(x,wt)?wt:x,disablePast:h,disableFuture:p,isDateDisabled:ue,timezone:X}):Oe;Nt?(be(Nt,"finish"),le({target:Nt,reason:"cell-interaction"})):(re(),le({target:pt,reason:"cell-interaction"}))}),xe=pe(Oe=>q(Oe&&Mi(o,Oe,ee??se),"finish",H));E.useEffect(()=>{o.isValid(ee)&&le({target:ee,reason:"controlled-value-change"})},[ee]);const $e=a$(I),Le={disablePast:h,disableFuture:p,maxDate:x,minDate:N},ot={disableHighlightToday:j,readOnly:V,disabled:k,timezone:X,gridLabelId:Ke,slots:B,slotProps:$},Ze=E.useRef(H);E.useEffect(()=>{Ze.current!==H&&(te===Ze.current&&ae(H,!0),Ze.current=H)},[te,ae,H]);const At=E.useMemo(()=>[ee],[ee]);return v.jsxs(c$,z({ref:n,className:ge($e.root,A),ownerState:r},J,{children:[v.jsx(ke,z({},ut,{slots:B,slotProps:$})),v.jsx(u$,{reduceAnimations:y,className:$e.viewTransitionContainer,transKey:H,ownerState:r,children:v.jsxs("div",{children:[H==="year"&&v.jsx(od,z({},Le,ot,{value:ee,onChange:Pe,shouldDisableYear:w,hasFocus:Qe,onFocusedViewChange:Oe=>ae("year",Oe),yearsOrder:G,yearsPerRow:Z,referenceDate:se})),H==="month"&&v.jsx(nd,z({},Le,ot,{currentMonth:he.currentMonth,hasFocus:Qe,className:A,value:ee,onChange:Se,shouldDisableMonth:C,onFocusedViewChange:Oe=>ae("month",Oe),monthsPerRow:U,referenceDate:se})),H==="day"&&v.jsx(Cj,z({},he,Le,ot,{onMonthSwitchingAnimationEnd:de,hasFocus:Qe,onFocusedDayChange:Oe=>le({target:Oe,reason:"cell-interaction"}),reduceAnimations:y,selectedDays:At,onSelectedDaysChange:xe,shouldDisableDate:b,shouldDisableMonth:C,shouldDisableYear:w,onFocusedViewChange:Oe=>ae("day",Oe),showDaysOutsideCurrentMonth:D,fixedWeekNumber:_,dayOfWeekFormatter:F,displayWeekNumber:K,loading:M,renderLoading:W}))]})})]}))});process.env.NODE_ENV!=="production"&&(sd.displayName="DateCalendar");process.env.NODE_ENV!=="production"&&(sd.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 ko=({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:b,reduceAnimations:C,onMonthChange:w,monthsPerRow:S,onYearChange:T,yearsOrder:P,yearsPerRow:A,slots:I,slotProps:k,loading:V,renderLoading:N,disableHighlightToday:x,readOnly:j,disabled:R,showDaysOutsideCurrentMonth:O,dayOfWeekFormatter:D,sx:_,autoFocus:F,fixedWeekNumber:B,displayWeekNumber:$,timezone:M})=>v.jsx(sd,{view:e,onViewChange:t,views:n.filter(wp),focusedView:o&&wp(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:b,reduceAnimations:C,onMonthChange:w,monthsPerRow:S,onYearChange:T,yearsOrder:P,yearsPerRow:A,slots:I,slotProps:k,loading:V,renderLoading:N,disableHighlightToday:x,readOnly:j,disabled:R,showDaysOutsideCurrentMonth:O,dayOfWeekFormatter:D,sx:_,autoFocus:F,fixedWeekNumber:B,displayWeekNumber:$,timezone:M});process.env.NODE_ENV!=="production"&&(ko.displayName="renderDateViewCalendar");const id=E.forwardRef(function(t,n){var c;const o=Ge(),r=$y(t,"MuiDesktopDatePicker"),i=z({day:ko,month:ko,year:ko},r.viewRenderers),a=z({},r,{closeOnSelect:r.closeOnSelect??!0,viewRenderers:i,format:mu(o,r,!1),yearsPerRow:r.yearsPerRow??4,slots:z({field:Da},r.slots),slotProps:z({},r.slotProps,{field:u=>{var d;return z({},Kt((d=r.slotProps)==null?void 0:d.field,u),Ny(r))},toolbar:z({hidden:!0},(c=r.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=t2({ref:n,props:a,valueManager:vn,valueType:"date",validator:Es,steps:null});return l()});process.env.NODE_ENV!=="production"&&(id.displayName="DesktopDatePicker");id.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:yt,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 d$(e){return Te("MuiDialogContent",e)}Ce("MuiDialogContent",["root","dividers"]);const f$=Ce("MuiDialogTitle",["root"]),p$=e=>{const{classes:t,dividers:n}=e;return we({root:["root",n&&"dividers"]},d$,t)},h$=ye("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Ye(({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:{[`.${f$.root} + &`]:{paddingTop:0}}}]}))),lv=E.forwardRef(function(t,n){const o=je({props:t,name:"MuiDialogContent"}),{className:r,dividers:i=!1,...a}=o,l={...o,dividers:i},c=p$(l);return v.jsx(h$,{className:ge(c.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(lv.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 m$(e){return Te("MuiDialog",e)}const ns=Ce("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),cv=E.createContext({});process.env.NODE_ENV!=="production"&&(cv.displayName="DialogContext");const g$=ye(Yu,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),y$=e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:r,fullScreen:i}=e,a={root:["root"],backdrop:["backdrop"],container:["container",`scroll${ce(n)}`],paper:["paper",`paperScroll${ce(n)}`,`paperWidth${ce(String(o))}`,r&&"paperFullWidth",i&&"paperFullScreen"]};return we(a,m$,t)},b$=ye(qu,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),v$=ye("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"}}}]}),x$=ye(Rs,{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]}})(Ye(({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)`,[`&.${ns.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}`,[`&.${ns.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,[`&.${ns.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),uv=E.forwardRef(function(t,n){const o=je({props:t,name:"MuiDialog"}),r=Gi(),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:b,onClose:C,open:w,PaperComponent:S=Rs,PaperProps:T={},scroll:P="paper",slots:A={},slotProps:I={},TransitionComponent:k=Xn,transitionDuration:V=i,TransitionProps:N,...x}=o,j={...o,disableEscapeKeyDown:h,fullScreen:m,fullWidth:g,maxWidth:y,scroll:P},R=y$(j),O=E.useRef(),D=oe=>{O.current=oe.target===oe.currentTarget},_=oe=>{b&&b(oe),O.current&&(O.current=null,C&&C(oe,"backdropClick"))},F=eo(l),B=E.useMemo(()=>({titleId:F}),[F]),$={transition:k,...A},M={transition:N,paper:T,backdrop:d,...I},W={slots:$,slotProps:M},[K,G]=nt("root",{elementType:b$,shouldForwardComponentProp:!0,externalForwardedProps:W,ownerState:j,className:ge(R.root,p),ref:n}),[Z,U]=nt("backdrop",{elementType:g$,shouldForwardComponentProp:!0,externalForwardedProps:W,ownerState:j,className:R.backdrop}),[Q,J]=nt("paper",{elementType:x$,shouldForwardComponentProp:!0,externalForwardedProps:W,ownerState:j,className:ge(R.paper,T.className)}),[ee,q]=nt("container",{elementType:v$,externalForwardedProps:W,ownerState:j,className:R.container}),[X,H]=nt("transition",{elementType:Xn,externalForwardedProps:W,ownerState:j,additionalProps:{appear:!0,in:w,timeout:V,role:"presentation"}});return v.jsx(K,{closeAfterTransition:!0,slots:{backdrop:Z},slotProps:{backdrop:{transitionDuration:V,as:u,...U}},disableEscapeKeyDown:h,onClose:C,open:w,onClick:_,...G,...x,children:v.jsx(X,{...H,children:v.jsx(ee,{onMouseDown:D,...q,children:v.jsx(Q,{as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":F,"aria-modal":c,...J,children:v.jsx(cv.Provider,{value:B,children:f})})})})})});process.env.NODE_ENV!=="production"&&(uv.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 S$=ie.styled(uv,{slot:"internal"})({[`& .${ns.container}`]:{outline:0},[`& .${ns.paper}`]:{outline:0,minWidth:pa}}),w$=ie.styled(lv,{slot:"internal"})({"&:first-of-type":{padding:0}});function C$(e){const{children:t,slots:n,slotProps:o}=e,{open:r}=br(),{dismissViews:i,onPopperExited:a}=Et(),l=(n==null?void 0:n.dialog)??S$,c=(n==null?void 0:n.mobileTransition)??Xn;return v.jsx(l,z({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:v.jsx(w$,{children:t})}))}const T$=["props","steps"],P$=["ownerState"],E$=e=>{var P;let{props:t,steps:n}=e,o=Ee(e,T$);const{slots:r,slotProps:i,label:a,inputRef:l,localeText:c}=t,u=Tb({steps:n}),{providerProps:d,renderCurrentView:f,ownerState:p}=db(z({},o,{props:t,localeText:c,autoFocusView:!0,viewContainerRole:"dialog",variant:"mobile",getStepNavigation:u})),h=d.privateContextValue.labelId,m=((P=i==null?void 0:i.toolbar)==null?void 0:P.hidden)??!1,g=r.field,y=Ne({elementType:g,externalSlotProps:i==null?void 0:i.field,additionalProps:z({},m&&{id:h}),ownerState:p}),b=Ee(y,P$),C=r.layout??ha;let w=h;m&&(a?w=`${h}-label`:w=void 0);const S=z({},i,{toolbar:z({},i==null?void 0:i.toolbar,{titleId:h}),mobilePaper:z({"aria-labelledby":w},i==null?void 0:i.mobilePaper)}),T=()=>v.jsxs(ky,z({},d,{children:[v.jsx(g,z({},b,{slots:z({},r,b.slots),slotProps:z({},S,b.slotProps),inputRef:l})),v.jsx(C$,{slots:r,slotProps:S,children:v.jsx(C,z({},S==null?void 0:S.layout,{slots:r,slotProps:S,children:f()}))})]}));return process.env.NODE_ENV!=="production"&&(T.displayName="renderPicker"),{renderPicker:T}},ad=E.forwardRef(function(t,n){var c;const o=Ge(),r=$y(t,"MuiMobileDatePicker"),i=z({day:ko,month:ko,year:ko},r.viewRenderers),a=z({},r,{viewRenderers:i,format:mu(o,r,!1),slots:z({field:Da},r.slots),slotProps:z({},r.slotProps,{field:u=>{var d;return z({},Kt((d=r.slotProps)==null?void 0:d.field,u),Ny(r))},toolbar:z({hidden:!1},(c=r.slotProps)==null?void 0:c.toolbar)})}),{renderPicker:l}=E$({ref:n,props:a,valueManager:vn,valueType:"date",validator:Es,steps:null});return l()});process.env.NODE_ENV!=="production"&&(ad.displayName="MobileDatePicker");ad.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:yt,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 M$=["desktopModeMediaQuery"],ld=E.forwardRef(function(t,n){const o=ie.useThemeProps({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=II}=o,i=Ee(o,M$);return Cy(r,{defaultMatches:!0})?v.jsx(id,z({ref:n},i)):v.jsx(ad,z({ref:n},i))});process.env.NODE_ENV!=="production"&&(ld.displayName="DatePicker");process.env.NODE_ENV!=="production"&&(ld.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:yt,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 dv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(fr,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+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(R){var O=["th","st","nd","rd"],D=R%100;return"["+R+(O[(D-20)%10]||O[D]||O[0])+"]"}},w=function(R,O,D){var _=String(R);return!_||_.length>=O?R:""+Array(O+1-_.length).join(D)+R},S={s:w,z:function(R){var O=-R.utcOffset(),D=Math.abs(O),_=Math.floor(D/60),F=D%60;return(O<=0?"+":"-")+w(_,2,"0")+":"+w(F,2,"0")},m:function R(O,D){if(O.date()<D.date())return-R(D,O);var _=12*(D.year()-O.year())+(D.month()-O.month()),F=O.clone().add(_,f),B=D-F<0,$=O.clone().add(_+(B?-1:1),f);return+(-(_+(D-F)/(B?F-$:$-F))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:f,y:h,w:d,d:u,D:m,h:c,m:l,s:a,ms:i,Q:p}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},T="en",P={};P[T]=C;var A="$isDayjsObject",I=function(R){return R instanceof x||!(!R||!R[A])},k=function R(O,D,_){var F;if(!O)return T;if(typeof O=="string"){var B=O.toLowerCase();P[B]&&(F=B),D&&(P[B]=D,F=B);var $=O.split("-");if(!F&&$.length>1)return R($[0])}else{var M=O.name;P[M]=O,F=M}return!_&&F&&(T=F),F||!_&&T},V=function(R,O){if(I(R))return R.clone();var D=typeof O=="object"?O:{};return D.date=R,D.args=arguments,new x(D)},N=S;N.l=k,N.i=I,N.w=function(R,O){return V(R,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var x=function(){function R(D){this.$L=k(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[A]=!0}var O=R.prototype;return O.parse=function(D){this.$d=function(_){var F=_.date,B=_.utc;if(F===null)return new Date(NaN);if(N.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var $=F.match(y);if($){var M=$[2]-1||0,W=($[7]||"0").substring(0,3);return B?new Date(Date.UTC($[1],M,$[3]||1,$[4]||0,$[5]||0,$[6]||0,W)):new Date($[1],M,$[3]||1,$[4]||0,$[5]||0,$[6]||0,W)}}return new Date(F)}(D),this.init()},O.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},O.$utils=function(){return N},O.isValid=function(){return this.$d.toString()!==g},O.isSame=function(D,_){var F=V(D);return this.startOf(_)<=F&&F<=this.endOf(_)},O.isAfter=function(D,_){return V(D)<this.startOf(_)},O.isBefore=function(D,_){return this.endOf(_)<V(D)},O.$g=function(D,_,F){return N.u(D)?this[_]:this.set(F,D)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(D,_){var F=this,B=!!N.u(_)||_,$=N.p(D),M=function(ee,q){var X=N.w(F.$u?Date.UTC(F.$y,q,ee):new Date(F.$y,q,ee),F);return B?X:X.endOf(u)},W=function(ee,q){return N.w(F.toDate()[ee].apply(F.toDate("s"),(B?[0,0,0,0]:[23,59,59,999]).slice(q)),F)},K=this.$W,G=this.$M,Z=this.$D,U="set"+(this.$u?"UTC":"");switch($){case h:return B?M(1,0):M(31,11);case f:return B?M(1,G):M(0,G+1);case d:var Q=this.$locale().weekStart||0,J=(K<Q?K+7:K)-Q;return M(B?Z-J:Z+(6-J),G);case u:case m:return W(U+"Hours",0);case c:return W(U+"Minutes",1);case l:return W(U+"Seconds",2);case a:return W(U+"Milliseconds",3);default:return this.clone()}},O.endOf=function(D){return this.startOf(D,!1)},O.$set=function(D,_){var F,B=N.p(D),$="set"+(this.$u?"UTC":""),M=(F={},F[u]=$+"Date",F[m]=$+"Date",F[f]=$+"Month",F[h]=$+"FullYear",F[c]=$+"Hours",F[l]=$+"Minutes",F[a]=$+"Seconds",F[i]=$+"Milliseconds",F)[B],W=B===u?this.$D+(_-this.$W):_;if(B===f||B===h){var K=this.clone().set(m,1);K.$d[M](W),K.init(),this.$d=K.set(m,Math.min(this.$D,K.daysInMonth())).$d}else M&&this.$d[M](W);return this.init(),this},O.set=function(D,_){return this.clone().$set(D,_)},O.get=function(D){return this[N.p(D)]()},O.add=function(D,_){var F,B=this;D=Number(D);var $=N.p(_),M=function(G){var Z=V(B);return N.w(Z.date(Z.date()+Math.round(G*D)),B)};if($===f)return this.set(f,this.$M+D);if($===h)return this.set(h,this.$y+D);if($===u)return M(1);if($===d)return M(7);var W=(F={},F[l]=o,F[c]=r,F[a]=n,F)[$]||1,K=this.$d.getTime()+D*W;return N.w(K,this)},O.subtract=function(D,_){return this.add(-1*D,_)},O.format=function(D){var _=this,F=this.$locale();if(!this.isValid())return F.invalidDate||g;var B=D||"YYYY-MM-DDTHH:mm:ssZ",$=N.z(this),M=this.$H,W=this.$m,K=this.$M,G=F.weekdays,Z=F.months,U=F.meridiem,Q=function(q,X,H,oe){return q&&(q[X]||q(_,B))||H[X].slice(0,oe)},J=function(q){return N.s(M%12||12,q,"0")},ee=U||function(q,X,H){var oe=q<12?"AM":"PM";return H?oe.toLowerCase():oe};return B.replace(b,function(q,X){return X||function(H){switch(H){case"YY":return String(_.$y).slice(-2);case"YYYY":return N.s(_.$y,4,"0");case"M":return K+1;case"MM":return N.s(K+1,2,"0");case"MMM":return Q(F.monthsShort,K,Z,3);case"MMMM":return Q(Z,K);case"D":return _.$D;case"DD":return N.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return Q(F.weekdaysMin,_.$W,G,2);case"ddd":return Q(F.weekdaysShort,_.$W,G,3);case"dddd":return G[_.$W];case"H":return String(M);case"HH":return N.s(M,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return ee(M,W,!0);case"A":return ee(M,W,!1);case"m":return String(W);case"mm":return N.s(W,2,"0");case"s":return String(_.$s);case"ss":return N.s(_.$s,2,"0");case"SSS":return N.s(_.$ms,3,"0");case"Z":return $}return null}(q)||$.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(D,_,F){var B,$=this,M=N.p(_),W=V(D),K=(W.utcOffset()-this.utcOffset())*o,G=this-W,Z=function(){return N.m($,W)};switch(M){case h:B=Z()/12;break;case f:B=Z();break;case p:B=Z()/3;break;case d:B=(G-K)/6048e5;break;case u:B=(G-K)/864e5;break;case c:B=G/r;break;case l:B=G/o;break;case a:B=G/n;break;default:B=G}return F?B:N.a(B)},O.daysInMonth=function(){return this.endOf(f).$D},O.$locale=function(){return P[this.$L]},O.locale=function(D,_){if(!D)return this.$L;var F=this.clone(),B=k(D,_,!0);return B&&(F.$L=B),F},O.clone=function(){return N.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},R}(),j=x.prototype;return V.prototype=j,[["$ms",i],["$s",a],["$m",l],["$H",c],["$W",u],["$M",f],["$y",h],["$D",m]].forEach(function(R){j[R[1]]=function(O){return this.$g(O,R[0],R[1])}}),V.extend=function(R,O){return R.$i||(R(O,x,V),R.$i=!0),V},V.locale=k,V.isDayjs=I,V.unix=function(R){return V(1e3*R)},V.en=P[T],V.Ls=P,V.p={},V})})(dv);var O$=dv.exports;const mt=Qn(O$);var fv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(fr,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)}}})})(fv);var k$=fv.exports;const D$=Qn(k$);var pv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(fr,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(b){this[y]=+b}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var C=b.match(/([+-]|\d\d)/g),w=60*C[1]+(+C[2]||0);return w===0?0:C[0]==="+"?-w:w}(y)}],p=function(y){var b=c[y];return b&&(b.indexOf?b:b.s.concat(b.f))},h=function(y,b){var C,w=c.meridiem;if(w){for(var S=1;S<=24;S+=1)if(y.indexOf(w(S,0,b))>-1){C=S>12;break}}else C=y===(b?"pm":"PM");return C},m={A:[l,function(y){this.afternoon=h(y,!1)}],a:[l,function(y){this.afternoon=h(y,!0)}],Q:[r,function(y){this.month=3*(y-1)+1}],S:[r,function(y){this.milliseconds=100*+y}],SS:[i,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[i,d("day")],Do:[l,function(y){var b=c.ordinal,C=y.match(/\d+/);if(this.day=C[0],b)for(var w=1;w<=31;w+=1)b(w).replace(/\[|\]/g,"")===y&&(this.day=w)}],w:[a,d("week")],ww:[i,d("week")],M:[a,d("month")],MM:[i,d("month")],MMM:[l,function(y){var b=p("months"),C=(p("monthsShort")||b.map(function(w){return w.slice(0,3)})).indexOf(y)+1;if(C<1)throw new Error;this.month=C%12||C}],MMMM:[l,function(y){var b=p("months").indexOf(y)+1;if(b<1)throw new Error;this.month=b%12||b}],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 b,C;b=y,C=c&&c.formats;for(var w=(y=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(V,N,x){var j=x&&x.toUpperCase();return N||C[x]||n[x]||C[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(R,O,D){return O||D.slice(1)})})).match(o),S=w.length,T=0;T<S;T+=1){var P=w[T],A=m[P],I=A&&A[0],k=A&&A[1];w[T]=k?{regex:I,parser:k}:P.replace(/^\[|\]$/g,"")}return function(V){for(var N={},x=0,j=0;x<S;x+=1){var R=w[x];if(typeof R=="string")j+=R.length;else{var O=R.regex,D=R.parser,_=V.slice(j),F=O.exec(_)[0];D.call(N,F),V=V.replace(F,"")}}return function(B){var $=B.afternoon;if($!==void 0){var M=B.hours;$?M<12&&(B.hours+=12):M===12&&(B.hours=0),delete B.afternoon}}(N),N}}return function(y,b,C){C.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(u=y.parseTwoDigitYear);var w=b.prototype,S=w.parse;w.parse=function(T){var P=T.date,A=T.utc,I=T.args;this.$u=A;var k=I[1];if(typeof k=="string"){var V=I[2]===!0,N=I[3]===!0,x=V||N,j=I[2];N&&(j=I[2]),c=this.$locale(),!V&&j&&(c=C.Ls[j]),this.$d=function(_,F,B,$){try{if(["x","X"].indexOf(F)>-1)return new Date((F==="X"?1e3:1)*_);var M=g(F)(_),W=M.year,K=M.month,G=M.day,Z=M.hours,U=M.minutes,Q=M.seconds,J=M.milliseconds,ee=M.zone,q=M.week,X=new Date,H=G||(W||K?1:X.getDate()),oe=W||X.getFullYear(),te=0;W&&!K||(te=K>0?K-1:X.getMonth());var ae,re=Z||0,be=U||0,se=Q||0,he=J||0;return ee?new Date(Date.UTC(oe,te,H,re,be,se,he+60*ee.offset*1e3)):B?new Date(Date.UTC(oe,te,H,re,be,se,he)):(ae=new Date(oe,te,H,re,be,se,he),q&&(ae=$(ae).week(q).toDate()),ae)}catch{return new Date("")}}(P,k,A,C),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),x&&P!=this.format(k)&&(this.$d=new Date("")),c={}}else if(k instanceof Array)for(var R=k.length,O=1;O<=R;O+=1){I[1]=k[O-1];var D=C.apply(this,I);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}O===R&&(this.$d=new Date(""))}else S.call(this,T)}}})})(pv);var R$=pv.exports;const I$=Qn(R$);var hv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(fr,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(b,C,w){return C||w.slice(1)})})}(c,u===void 0?{}:u);return l.call(this,d)}}})})(hv);var A$=hv.exports;const N$=Qn(A$);var mv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(fr,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 _$=mv.exports;const j$=Qn(_$);var gv={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(fr,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)}}})})(gv);var $$=gv.exports;const L$=Qn($$);mt.extend(N$);mt.extend(D$);mt.extend(j$);mt.extend(L$);const V$={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"},F$={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"},hl=["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
|
+
`),Ph=["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 B${constructor({locale:t,formats:n}={}){fe(this,"isMUIAdapter",!0);fe(this,"isTimezoneCompatible",!0);fe(this,"lib","dayjs");fe(this,"escapedCharacters",{start:"[",end:"]"});fe(this,"formatTokenMap",V$);fe(this,"setLocaleToValue",t=>{const n=this.getCurrentLocaleCode();return n===t.locale()?t:t.locale(n)});fe(this,"hasUTCPlugin",()=>typeof mt.utc<"u");fe(this,"hasTimezonePlugin",()=>typeof mt.tz<"u");fe(this,"isSame",(t,n,o)=>{const r=this.setTimezone(n,this.getTimezone(t));return t.format(o)===r.format(o)});fe(this,"cleanTimezone",t=>{switch(t){case"default":return;case"system":return mt.tz.guess();default:return t}});fe(this,"createSystemDate",t=>{let n;if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=mt.tz.guess();o==="UTC"?n=mt(t):n=mt.tz(t,o)}else n=mt(t);return this.setLocaleToValue(n)});fe(this,"createUTCDate",t=>{if(!this.hasUTCPlugin())throw new Error(hl);return this.setLocaleToValue(mt.utc(t))});fe(this,"createTZDate",(t,n)=>{if(!this.hasUTCPlugin())throw new Error(hl);if(!this.hasTimezonePlugin())throw new Error(Ph);const o=t!==void 0&&!t.endsWith("Z");return this.setLocaleToValue(mt(t).tz(this.cleanTimezone(n),o))});fe(this,"getLocaleFormats",()=>{const t=mt.Ls,n=this.locale||"en";let o=t[n];return o===void 0&&(process.env.NODE_ENV!=="production"&&ub(["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});fe(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});fe(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));fe(this,"getInvalidDate",()=>mt(new Date("Invalid date")));fe(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"});fe(this,"setTimezone",(t,n)=>{if(this.getTimezone(t)===n)return t;if(n==="UTC"){if(!this.hasUTCPlugin())throw new Error(hl);return t.utc()}if(n==="system")return t.local();if(!this.hasTimezonePlugin()){if(n==="default")return t;throw new Error(Ph)}return this.setLocaleToValue(mt.tz(t,this.cleanTimezone(n)))});fe(this,"toJsDate",t=>t.toDate());fe(this,"parse",(t,n)=>t===""?null:mt(t,n,this.locale,!0));fe(this,"getCurrentLocaleCode",()=>this.locale||"en");fe(this,"is12HourCycleInCurrentLocale",()=>/A|a/.test(this.getLocaleFormats().LT||""));fe(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])})});fe(this,"isValid",t=>t==null?!1:t.isValid());fe(this,"format",(t,n)=>this.formatByString(t,this.formats[n]));fe(this,"formatByString",(t,n)=>this.setLocaleToValue(t).format(n));fe(this,"formatNumber",t=>t);fe(this,"isEqual",(t,n)=>t===null&&n===null?!0:t===null||n===null?!1:t.toDate().getTime()===n.toDate().getTime());fe(this,"isSameYear",(t,n)=>this.isSame(t,n,"YYYY"));fe(this,"isSameMonth",(t,n)=>this.isSame(t,n,"YYYY-MM"));fe(this,"isSameDay",(t,n)=>this.isSame(t,n,"YYYY-MM-DD"));fe(this,"isSameHour",(t,n)=>t.isSame(n,"hour"));fe(this,"isAfter",(t,n)=>t>n);fe(this,"isAfterYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()>n.utc():t.isAfter(n,"year"));fe(this,"isAfterDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()>n.utc():t.isAfter(n,"day"));fe(this,"isBefore",(t,n)=>t<n);fe(this,"isBeforeYear",(t,n)=>this.hasUTCPlugin()?!this.isSameYear(t,n)&&t.utc()<n.utc():t.isBefore(n,"year"));fe(this,"isBeforeDay",(t,n)=>this.hasUTCPlugin()?!this.isSameDay(t,n)&&t.utc()<n.utc():t.isBefore(n,"day"));fe(this,"isWithinRange",(t,[n,o])=>t>=n&&t<=o);fe(this,"startOfYear",t=>this.adjustOffset(t.startOf("year")));fe(this,"startOfMonth",t=>this.adjustOffset(t.startOf("month")));fe(this,"startOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).startOf("week")));fe(this,"startOfDay",t=>this.adjustOffset(t.startOf("day")));fe(this,"endOfYear",t=>this.adjustOffset(t.endOf("year")));fe(this,"endOfMonth",t=>this.adjustOffset(t.endOf("month")));fe(this,"endOfWeek",t=>this.adjustOffset(this.setLocaleToValue(t).endOf("week")));fe(this,"endOfDay",t=>this.adjustOffset(t.endOf("day")));fe(this,"addYears",(t,n)=>this.adjustOffset(t.add(n,"year")));fe(this,"addMonths",(t,n)=>this.adjustOffset(t.add(n,"month")));fe(this,"addWeeks",(t,n)=>this.adjustOffset(t.add(n,"week")));fe(this,"addDays",(t,n)=>this.adjustOffset(t.add(n,"day")));fe(this,"addHours",(t,n)=>this.adjustOffset(t.add(n,"hour")));fe(this,"addMinutes",(t,n)=>this.adjustOffset(t.add(n,"minute")));fe(this,"addSeconds",(t,n)=>this.adjustOffset(t.add(n,"second")));fe(this,"getYear",t=>t.year());fe(this,"getMonth",t=>t.month());fe(this,"getDate",t=>t.date());fe(this,"getHours",t=>t.hour());fe(this,"getMinutes",t=>t.minute());fe(this,"getSeconds",t=>t.second());fe(this,"getMilliseconds",t=>t.millisecond());fe(this,"setYear",(t,n)=>this.adjustOffset(t.set("year",n)));fe(this,"setMonth",(t,n)=>this.adjustOffset(t.set("month",n)));fe(this,"setDate",(t,n)=>this.adjustOffset(t.set("date",n)));fe(this,"setHours",(t,n)=>this.adjustOffset(t.set("hour",n)));fe(this,"setMinutes",(t,n)=>this.adjustOffset(t.set("minute",n)));fe(this,"setSeconds",(t,n)=>this.adjustOffset(t.set("second",n)));fe(this,"setMilliseconds",(t,n)=>this.adjustOffset(t.set("millisecond",n)));fe(this,"getDaysInMonth",t=>t.daysInMonth());fe(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});fe(this,"getWeekNumber",t=>t.week());fe(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=z({},F$,n),mt.extend(I$)}getDayOfWeek(t){return t.day()+1}}const z$="_root_1dntq_1",W$="_container_1dntq_72",U$="_header_1dntq_83",H$="_headerText_1dntq_91",Y$="_headerTitle_1dntq_97",q$="_headerSubtitle_1dntq_102",G$="_controls_1dntq_106",K$="_headerButton_1dntq_113",Z$="_zoomGroup_1dntq_133",X$="_zoomLabel_1dntq_144",Q$="_tracksWrapper_1dntq_153",J$="_tracksWithHeader_1dntq_158",eL="_layers_1dntq_162",tL="_timeScale_1dntq_168",nL="_videoTrack_1dntq_172",oL="_eventsTrack_1dntq_176",rL="_trackBox_1dntq_180",sL="_trackLabelRow_1dntq_190",iL="_label_1dntq_198",aL="_trackArea_1dntq_209",lL="_tick_1dntq_215",cL="_tickMajor_1dntq_223",uL="_tickMinor_1dntq_227",dL="_tickLabel_1dntq_231",fL="_segment_1dntq_243",pL="_event_1dntq_176",hL="_eventDot_1dntq_276",mL="_selectionOverlay_1dntq_283",gL="_playhead_1dntq_292",yL="_playheadLine_1dntq_302",bL="_playheadHandle_1dntq_312",Re={root:z$,container:W$,header:U$,headerText:H$,headerTitle:Y$,headerSubtitle:q$,controls:G$,headerButton:K$,zoomGroup:Z$,zoomLabel:X$,tracksWrapper:Q$,tracksWithHeader:J$,layers:eL,timeScale:tL,videoTrack:nL,eventsTrack:oL,trackBox:rL,trackLabelRow:sL,label:iL,trackArea:aL,tick:lL,tickMajor:cL,tickMinor:uL,tickLabel:dL,segment:fL,event:pL,eventDot:hL,selectionOverlay:mL,playhead:gL,playheadLine:yL,playheadHandle:bL};function tt(e,t,n){return Math.min(n,Math.max(t,e))}function Mn(e){const{time:t,windowStart:n,windowSeconds:o,width:r}=e;return r<=0||o<=0?0:(t-n)/o*r}function Wo(e){const{px:t,windowStart:n,windowSeconds:o,width:r}=e;return r<=0||o<=0?n:n+t/r*o}function xt(e){return String(Math.floor(e)).padStart(2,"0")}function vL(e=Date.now()){const t=new Date(e);return t.getHours()*3600+t.getMinutes()*60+t.getSeconds()+t.getMilliseconds()/1e3}function ml(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`${xt(n)}:${xt(o)}:${xt(r)}`}function xL(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`${xt(o)}:${xt(r)}:${xt(i)}:${xt(l)}`}function gl(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?`${xt(n)}:${xt(o)}:${xt(r)}`:`${xt(o)}:${xt(r)}`}function SL(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?`${xt(o)}:${xt(r)}:${xt(i)}:${xt(l)}`:`${xt(r)}:${xt(i)}:${xt(l)}`}function wL(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 CL=(e,t,n)=>t>=3600?ml(e).slice(0,2)+":00:00":t>=60?ml(e).slice(0,5):t>=1?ml(e):xL(e,n),TL=(e,t,n)=>t>=3600||t>=60||t>=1?gl(e):SL(e,n);function PL(){const e=L.useRef(null),[t,n]=L.useState(0);return L.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 EL(e){const{totalSeconds:t,enableWheelZoom:n,autoZoomOnSelection:o,tickLabelFormatter:r,clearSelectionOnEventClick:i}=e,[a,l]=Un(na),[c,u]=Un(oa),[d,f]=Un(cu),p=Ei(uu),h=Ei(du),[m,g]=Un(vy),y=ra(),{ref:b,width:C}=PL(),w=102,T=Math.max(0,C-w-10),[P,A]=L.useState(0),I=L.useMemo(()=>{const Z=Math.max(1/Math.max(1,m.fps),.05);return tt(m.windowSeconds,Z,t)},[m.windowSeconds,m.fps,t]);L.useEffect(()=>{if(!c||C<=0)return;const Z=tt(a-I*.9,0,Math.max(0,t-I));A(Z)},[a,c,C,I,t]);const k=L.useMemo(()=>{const Z=tt(P,0,Math.max(0,t-I)),U=Z+I;return{start:Z,end:U,seconds:I}},[P,t,I]),V=L.useMemo(()=>{if(T<=0)return[];const{majorStep:Z,minorStep:U}=wL({width:T,windowSeconds:k.seconds,fps:m.fps}),Q=Math.floor(k.start/U)*U,J=k.end,ee=[],q=U*1e-6;for(let X=Q;X<=J+q;X+=U){const H=Mn({time:X,windowStart:k.start,windowSeconds:k.seconds,width:T});if(H<-1||H>T+1)continue;const oe=Math.abs(X/Z-Math.round(X/Z))<1e-6;ee.push({time:X,px:H,kind:oe?"major":"minor",label:oe?r(X,Z,m.fps):void 0})}return ee},[T,r,k.end,k.seconds,k.start,m.fps]),N=L.useRef(null),x=L.useRef(null),j=Z=>{x.current=Z,N.current==null&&(N.current=requestAnimationFrame(()=>{N.current=null;const U=x.current;x.current=null,U==null||U()}))};L.useEffect(()=>()=>{N.current!=null&&cancelAnimationFrame(N.current)},[]);const R=L.useRef(null),O=Z=>{const U=b.current;if(!U)return 0;const Q=U.getBoundingClientRect();return tt(Z-Q.left-w,0,T)};return{viewportRef:b,width:C,axisLeft:w,axisWidth:T,totalSeconds:t,zoom:m,setZoom:g,isLive:c,setIsLive:u,currentTime:a,selectedRange:d,setSelectedRange:f,videoSegments:p,events:h,view:k,ticks:V,onWheel:Z=>{if(!n||C<=0)return;Z.preventDefault(),u(!1);const U=O(Z.clientX),Q=tt(Wo({px:U,windowStart:k.start,windowSeconds:k.seconds,width:T}),0,t),ee=Z.deltaY<0?.8:1.25,q=tt(k.seconds*ee,Math.max(1/Math.max(1,m.fps),.05),t),X=tt(Q-U/Math.max(1,T)*q,0,Math.max(0,t-q));g(H=>({...H,windowSeconds:q})),A(X)},onPointerDownScrub:Z=>{if(Z.button!==0)return;const U=b.current;if(!U)return;U.setPointerCapture(Z.pointerId);const Q=O(Z.clientX),J=tt(Wo({px:Q,windowStart:k.start,windowSeconds:k.seconds,width:T}),0,t);u(!1),R.current={mode:"playhead",pointerId:Z.pointerId,startPx:Q,startTime:J},l(J),y&&y.seekTo(J)},onPointerDownSelect:Z=>{if(Z.button!==0)return;const U=b.current;if(!U)return;U.setPointerCapture(Z.pointerId);const Q=O(Z.clientX),J=tt(Wo({px:Q,windowStart:k.start,windowSeconds:k.seconds,width:T}),0,t);u(!1),R.current={mode:"select",pointerId:Z.pointerId,startPx:Q,startTime:J},f({start:J,end:J})},onPointerDownPlayhead:Z=>{if(Z.button!==0)return;const U=b.current;if(!U)return;U.setPointerCapture(Z.pointerId);const Q=O(Z.clientX),J=tt(Wo({px:Q,windowStart:k.start,windowSeconds:k.seconds,width:T}),0,t);u(!1),R.current={mode:"playhead",pointerId:Z.pointerId,startPx:Q,startTime:J},l(J),y&&y.seekTo(J)},onPointerMove:Z=>{const U=R.current;if(!U||U.pointerId!==Z.pointerId)return;const Q=O(Z.clientX);j(()=>{const J=tt(Wo({px:Q,windowStart:k.start,windowSeconds:k.seconds,width:T}),0,t);if(U.mode==="playhead")l(J),y&&y.seekTo(J);else{const ee=Math.min(U.startTime,J),q=Math.max(U.startTime,J);f({start:ee,end:q})}})},onPointerUp:Z=>{const U=R.current;if(!(!U||U.pointerId!==Z.pointerId)&&(R.current=null,U.mode==="select"&&d)){const Q=Math.abs(d.end-d.start);if(Q<Math.max(1/Math.max(1,m.fps),.1))f(null);else if(o){const J=tt(Q*1.05,Math.max(1/Math.max(1,m.fps),.05),t),ee=tt(d.start,0,Math.max(0,t-J));g(q=>({...q,windowSeconds:J})),A(ee)}}},onClickSegment:Z=>{u(!1);const U=tt(Z,0,t);l(U),y&&y.seekTo(U)},onClickEvent:Z=>{i&&f(null),u(!1);const U=tt(Z,0,t);l(U),y&&y.seekTo(U),A(tt(Z-k.seconds/2,0,Math.max(0,t-k.seconds)))},resetView:()=>{u(!1),g(Z=>({...Z,windowSeconds:t})),A(0)}}}const yv=({ticks:e})=>v.jsx("div",{className:Re.trackArea,children:e.map(t=>v.jsxs("div",{children:[v.jsx("div",{className:`${Re.tick} ${t.kind==="minor"?Re.tickMinor:Re.tickMajor}`.trim(),style:{left:`${t.px}px`}}),t.kind==="major"&&t.label?v.jsx("div",{className:Re.tickLabel,style:{left:`${t.px}px`},children:t.label}):null]},`${t.time}-${t.kind}`))});yv.displayName="TimeScale";const bv=({segments:e,viewStart:t,viewSeconds:n,width:o,totalSeconds:r,onClickSegment:i})=>{const a=e.map(c=>({original:c,start:tt(c.start,0,r),end:tt(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=Mn({time:u.start,windowStart:t,windowSeconds:n,width:o})+f,m=tt(Wo({px:h,windowStart:t,windowSeconds:n,width:o}),u.original.start,u.original.end);i(m,u.original)};return v.jsx("div",{className:Re.trackArea,children:a.map((c,u)=>{const d=Mn({time:c.start,windowStart:t,windowSeconds:n,width:o}),f=Mn({time:c.end,windowStart:t,windowSeconds:n,width:o}),p=Math.max(0,f-d);return v.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}`)})})};bv.displayName="VideoTrack";const vv=({events:e,viewStart:t,viewSeconds:n,width:o,totalSeconds:r,onClickEvent:i})=>{const a=e.map(l=>({...l,time:tt(l.time,0,r)})).filter(l=>l.time>=t&&l.time<=t+n);return v.jsx("div",{className:Re.trackArea,children:a.map(l=>{const c=Mn({time:l.time,windowStart:t,windowSeconds:n,width:o});return v.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:v.jsx("span",{className:Re.eventDot})},l.id)})})};vv.displayName="EventsTrack";const xv=({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:b="Vídeo",eventsLabel:C="Eventos",downloadLabel:w="Baixar vídeo",onSegmentClick:S,onEventClick:T,segments:P,events:A,...I})=>{const V=ie.useTheme().palette.mode==="dark",[N,x]=L.useState(!1),j=sc(uu),R=sc(du);L.useEffect(()=>{P!==void 0&&j(P)},[P,j]),L.useEffect(()=>{A!==void 0&&R(A)},[A,R]);const O=a??(i==="duration"?TL:CL),{viewportRef:D,axisLeft:_,axisWidth:F,zoom:B,currentTime:$,selectedRange:M,videoSegments:W,events:K,view:G,ticks:Z,onWheel:U,onPointerDownScrub:Q,onPointerDownSelect:J,onPointerDownPlayhead:ee,onPointerMove:q,onPointerUp:X,onClickSegment:H,onClickEvent:oe,setZoom:te}=EL({totalSeconds:l,enableWheelZoom:c,autoZoomOnSelection:d,tickLabelFormatter:O,clearSelectionOnEventClick:h}),ae=F?_+Mn({time:$,windowStart:G.start,windowSeconds:G.seconds,width:F}):_,re=Math.max(1/Math.max(1,B.fps),.5),be=re/l,se=(()=>{const ue=tt(G.seconds,re,l);if(be<=0||be>=1)return 0;const de=Math.log(ue/l)/Math.log(be)*100;return tt(de,0,100)})(),he=ue=>{const de=tt(ue,0,100),Ie=l*Math.pow(be,de/100);te(Me=>({...Me,windowSeconds:tt(Ie,re,l)}))},le=`${Math.round(se)}%`;return v.jsxs(Y.Box,{className:`${Re.root} ${Re.container} ${e??""}`.trim(),"data-theme":V?"dark":"light",sx:t,...I,children:[r?v.jsxs("div",{className:Re.header,children:[v.jsxs("div",{className:Re.headerText,children:[v.jsx(Y.Typography,{variant:"subtitle1",className:Re.headerTitle,children:n}),v.jsx(Y.Typography,{variant:"body2",className:Re.headerSubtitle,children:o})]}),v.jsxs("div",{className:Re.controls,children:[m?v.jsxs("button",{type:"button",className:Re.headerButton,onClick:m,"aria-label":w,children:[v.jsx(Nk,{fontSize:"small"}),w]}):null,g!==void 0?v.jsx(ia,{dateAdapter:B$,children:v.jsx(ld,{open:N,onOpen:()=>x(!0),onClose:()=>x(!1),value:mt(g),onChange:ue=>{ue&&y&&y(ue.toDate())},format:"DD/MM/YYYY",slots:{field:()=>v.jsxs("button",{type:"button",className:Re.headerButton,onClick:()=>x(!0),"aria-label":"Selecionar data",children:[v.jsx(_k,{fontSize:"small"}),mt(g).format("DD/MM/YYYY")]})}})}):null,f?v.jsxs(Y.Box,{className:Re.zoomGroup,"aria-label":"Zoom controls",children:[v.jsx(Y.IconButton,{size:"small","aria-label":"Zoom out",onClick:()=>he(se-10),children:v.jsx(Ak,{fontSize:"small"})}),v.jsx("span",{className:Re.zoomLabel,children:le}),v.jsx(Y.IconButton,{size:"small","aria-label":"Zoom in",onClick:()=>he(se+10),children:v.jsx(Ik,{fontSize:"small"})})]}):null]})]}):null,v.jsx(Y.Box,{className:`${Re.tracksWrapper} ${r?Re.tracksWithHeader:""}`.trim(),style:{height:u},children:v.jsxs("div",{ref:D,className:Re.layers,onWheel:U,onPointerMove:q,onPointerUp:X,children:[v.jsxs("div",{className:Re.playhead,style:{left:`${ae}px`},onPointerDown:ee,role:"slider","aria-label":"Playhead","aria-valuemin":0,"aria-valuemax":l,"aria-valuenow":$,tabIndex:0,children:[v.jsx("div",{className:Re.playheadHandle}),v.jsx("div",{className:Re.playheadLine})]}),v.jsxs("div",{className:`${Re.trackLabelRow} ${Re.timeScale}`.trim(),children:[v.jsx("div",{}),v.jsx("div",{onPointerDown:Q,style:{height:"100%",cursor:"ew-resize"},"aria-label":"Régua do tempo",children:v.jsx(yv,{ticks:Z})})]}),v.jsxs(Y.Box,{className:Re.trackBox,onPointerDown:J,children:[M?v.jsx("div",{className:Re.selectionOverlay,style:{left:`${_+Mn({time:M.start,windowStart:G.start,windowSeconds:G.seconds,width:F})}px`,width:`${Math.max(0,Mn({time:M.end,windowStart:G.start,windowSeconds:G.seconds,width:F})-Mn({time:M.start,windowStart:G.start,windowSeconds:G.seconds,width:F}))}px`}}):null,v.jsxs("div",{className:`${Re.trackLabelRow} ${Re.videoTrack}`.trim(),children:[v.jsx("div",{className:Re.label,children:b}),v.jsx("div",{onPointerDown:p?Q:void 0,style:{height:"100%"},children:v.jsx(bv,{segments:W,viewStart:G.start,viewSeconds:G.seconds,width:F,totalSeconds:l,onClickSegment:(ue,de)=>{H(ue),S==null||S(ue,de)}})})]}),v.jsxs("div",{className:`${Re.trackLabelRow} ${Re.eventsTrack}`.trim(),children:[v.jsx("div",{className:Re.label,children:C}),v.jsx("div",{onPointerDown:p?Q:void 0,style:{height:"100%"},children:v.jsx(vv,{events:K,viewStart:G.start,viewSeconds:G.seconds,width:F,totalSeconds:l,onClickEvent:(ue,de)=>{oe(ue),T==null||T(ue,de)}})})]})]})]})})]})};xv.displayName="VideoTimeline";const ML=({isStream:e,updateTimeForLiveStream:t,constrainToSelectedRange:n,loopSelection:o,liveThresholdSeconds:r})=>{const i=ra(),[a,l]=Un(na),[c,u]=Un(oa),d=Ei(cu),f=L.useRef(-1);return L.useEffect(()=>{if(!e||(u(!0),!t))return;let p=null,h=!0;const m=()=>{h&&(l(vL()),p=requestAnimationFrame(m))};return p=requestAnimationFrame(m),()=>{h=!1,p!=null&&cancelAnimationFrame(p)}},[e,l,u,t]),L.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),b=Math.max(y,d.end);p.currentTime<y?p.currentTime=y:p.currentTime>b&&(o?p.currentTime=y:(p.pause(),p.currentTime=b))}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),b=Math.max(y,d.end);(p.currentTime<y||p.currentTime>b)&&(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]),L.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]),L.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},Sv=({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:b,width:C,height:w,aspectRatio:S,showTimestamp:T,showTimeline:P,isRecording:A,recordingLabel:I,borderRadius:k})=>{const V=!!e,N=u??(t?[{value:"default",label:"Auto",src:t}]:[]);return v.jsxs(xy,{children:[v.jsx(pu,{stream:e,availableQualities:N,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:b,width:C,height:w,aspectRatio:S,showTimestamp:T,showTimeline:P,isRecording:A,recordingLabel:I,borderRadius:k}),v.jsx(ML,{isStream:V,updateTimeForLiveStream:a,constrainToSelectedRange:l,loopSelection:c,liveThresholdSeconds:m})]})};Sv.displayName="VideoPlayerWebRTC";const OL=ft(v.jsx("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"}),"Done"),kL="_container_1vjy6_1",DL="_segment_1vjy6_7",RL="_selected_1vjy6_20",IL="_label_1vjy6_28",AL="_icon_1vjy6_37",NL="_checkIcon_1vjy6_47",_L="_unselected_1vjy6_53",go={container:kL,segment:DL,selected:RL,label:IL,icon:AL,checkIcon:NL,unselected:_L},wv=({items:e,className:t,sx:n,...o})=>{const i=Y.useTheme().palette.mode==="dark",a=(l,c)=>{l.onClick?l.onClick(c):console.log(`Item "${l.label}" clicado`)};return v.jsx(Y.Box,{className:`${go.container} ${t||""}`,sx:n,"data-theme":i?"dark":"light",...o,children:e.map((l,c)=>v.jsxs(Y.Box,{className:`${go.segment} ${l.selected?go.selected:go.unselected}`,onClick:u=>a(l,u),children:[l.selected&&v.jsx(Y.Box,{className:go.icon,children:v.jsx(OL,{className:go.checkIcon})}),v.jsx(Y.Box,{className:go.label,children:l.label})]},c))})};wv.displayName="DisplayTypes";const jL=600,yl=[.32,.72,0,1],bl=400,Cv=({leftContent:e,rightContent:t,gap:n=2,leftRatio:o=.5,leftCollapsed:r=!1,mobileShowOnly:i="both",mobileBreakpointPx:a=jL,className:l,sx:c})=>{const u=Y.useTheme(),d=Y.useMediaQuery(`(max-width:${a}px)`),f=!d||i==="left"||i==="both",p=!d||i==="right"||i==="both",h=u.spacing(n),m=`flex ${bl}ms cubic-bezier(${yl.join(",")}), min-width ${bl}ms cubic-bezier(${yl.join(",")})`;if(d&&i!=="both")return v.jsxs(Y.Box,{className:l,sx:{display:"grid",gridTemplateColumns:"1fr",width:"100%",height:"100%",minHeight:0,overflow:"hidden",...c},children:[v.jsx(Y.Box,{sx:{minWidth:0,minHeight:0,overflow:"hidden",display:f?"flex":"none",flexDirection:"column"},children:e}),v.jsx(Y.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,b=r?"none":"auto";return v.jsxs(Y.Box,{className:l,sx:{display:"flex",flexDirection:"row",gap:r?0:h,width:"100%",height:"100%",minHeight:0,overflow:"hidden",transition:`gap ${bl}ms cubic-bezier(${yl.join(",")})`,...c},children:[v.jsx(Y.Box,{sx:{flex:g,minWidth:y,overflow:"hidden",display:"flex",flexDirection:"column",transition:m,pointerEvents:b},children:e}),v.jsx(Y.Box,{sx:{flex:1,minWidth:0,minHeight:0,overflow:"hidden",display:"flex",flexDirection:"column"},children:t})]})};Cv.displayName="SplitLayout";const $L=256,Tv=({children:e,minColumns:t=1,maxColumns:n=3,minItemWidthPx:o=$L,gap:r=2,className:i,sx:a})=>{const c=Y.useTheme().spacing(r),u=n-1;return v.jsx(Y.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})};Tv.displayName="ResponsiveGrid";const Pv=ft(v.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var LL=e=>e.type==="checkbox",Hr=e=>e instanceof Date,cd=e=>e==null;const Ev=e=>typeof e=="object";var Ao=e=>!cd(e)&&!Array.isArray(e)&&Ev(e)&&!Hr(e),VL=e=>Ao(e)&&e.target?LL(e.target)?e.target.checked:e.target.value:e,FL=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,BL=(e,t)=>e.has(FL(t)),zL=e=>{const t=e.constructor&&e.constructor.prototype;return Ao(t)&&t.hasOwnProperty("isPrototypeOf")},WL=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Mv(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(WL&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(Ao(e)&&zL(e)))return e;const o=n?[]:Object.create(Object.getPrototypeOf(e));for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=Mv(e[r]));return o}var Ov=e=>/^\w*$/.test(e),bc=e=>e===void 0,UL=e=>Array.isArray(e)?e.filter(Boolean):[],kv=e=>UL(e.replace(/["|']|\]/g,"").split(/\.|\[/)),_t=(e,t,n)=>{if(!t||!Ao(e))return n;const o=(Ov(t)?[t]:kv(t)).reduce((r,i)=>cd(r)?r:r[i],e);return bc(o)||o===e?bc(e[t])?n:e[t]:o},vl=e=>typeof e=="boolean",ei=e=>typeof e=="function",Eh=(e,t,n)=>{let o=-1;const r=Ov(t)?[t]:kv(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=Ao(u)||Array.isArray(u)?u:isNaN(+r[o+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=c,e=e[l]}};const Mh={BLUR:"blur",CHANGE:"change"},Oh={all:"all"},Dv=L.createContext(null);Dv.displayName="HookFormControlContext";const ud=()=>L.useContext(Dv);var HL=(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]!==Oh.all&&(t._proxyFormState[a]=!o||Oh.all),n&&(n[a]=!0),e[a]}});return r};const Rv=typeof window<"u"?L.useLayoutEffect:L.useEffect;function YL(e){const t=ud(),{control:n=t,disabled:o,name:r,exact:i}=e||{},[a,l]=L.useState(n._formState),c=L.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Rv(()=>n._subscribe({name:r,formState:c.current,exact:i,callback:u=>{!o&&l({...n._formState,...u})}}),[r,o,i]),L.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),L.useMemo(()=>HL(a,n,c.current,!1),[a,n])}var qL=e=>typeof e=="string",kh=(e,t,n,o,r)=>qL(e)?_t(n,e,r):Array.isArray(e)?e.map(i=>_t(n,i)):n,Dh=e=>cd(e)||!Ev(e);function ui(e,t,n=new WeakSet){if(Dh(e)||Dh(t))return Object.is(e,t);if(Hr(e)&&Hr(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(Hr(a)&&Hr(l)||Ao(a)&&Ao(l)||Array.isArray(a)&&Array.isArray(l)?!ui(a,l,n):!Object.is(a,l))return!1}}return!0}function GL(e){const t=ud(),{control:n=t,name:o,defaultValue:r,disabled:i,exact:a,compute:l}=e||{},c=L.useRef(r),u=L.useRef(l),d=L.useRef(void 0),f=L.useRef(n),p=L.useRef(o);u.current=l;const[h,m]=L.useState(()=>{const S=n._getWatch(o,c.current);return u.current?u.current(S):S}),g=L.useCallback(S=>{const T=kh(o,n._names,S||n._formValues,!1,c.current);return u.current?u.current(T):T},[n._formValues,n._names,o]),y=L.useCallback(S=>{if(!i){const T=kh(o,n._names,S||n._formValues,!1,c.current);if(u.current){const P=u.current(T);ui(P,d.current)||(m(P),d.current=P)}else m(T)}},[n._formValues,n._names,i,o]);Rv(()=>((f.current!==n||!ui(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]),L.useEffect(()=>n._removeUnmounted());const b=f.current!==n,C=p.current,w=L.useMemo(()=>{if(i)return null;const S=!b&&!ui(C,o);return b||S?g():null},[i,b,o,C,g]);return w!==null?w:h}function KL(e){const t=ud(),{name:n,disabled:o,control:r=t,shouldUnregister:i,defaultValue:a,exact:l=!0}=e,c=BL(r._names.array,n),u=L.useMemo(()=>_t(r._formValues,n,_t(r._defaultValues,n,a)),[r,n,a]),d=GL({control:r,name:n,defaultValue:u,exact:l}),f=YL({control:r,name:n,exact:l}),p=L.useRef(e),h=L.useRef(void 0),m=L.useRef(r.register(n,{...e.rules,value:d,...vl(e.disabled)?{disabled:e.disabled}:{}}));p.current=e;const g=L.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!_t(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!_t(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!_t(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!_t(f.validatingFields,n)},error:{enumerable:!0,get:()=>_t(f.errors,n)}}),[f,n]),y=L.useCallback(S=>m.current.onChange({target:{value:VL(S),name:n},type:Mh.CHANGE}),[n]),b=L.useCallback(()=>m.current.onBlur({target:{value:_t(r._formValues,n),name:n},type:Mh.BLUR}),[n,r._formValues]),C=L.useCallback(S=>{const T=_t(r._fields,n);T&&T._f&&S&&(T._f.ref={focus:()=>ei(S.focus)&&S.focus(),select:()=>ei(S.select)&&S.select(),setCustomValidity:P=>ei(S.setCustomValidity)&&S.setCustomValidity(P),reportValidity:()=>ei(S.reportValidity)&&S.reportValidity()})},[r._fields,n]),w=L.useMemo(()=>({name:n,value:d,...vl(o)||f.disabled?{disabled:f.disabled||o}:{},onChange:y,onBlur:b,ref:C}),[n,o,f.disabled,y,b,C,d]);return L.useEffect(()=>{const S=r._options.shouldUnregister||i,T=h.current;T&&T!==n&&!c&&r.unregister(T),r.register(n,{...p.current.rules,...vl(p.current.disabled)?{disabled:p.current.disabled}:{}});const P=(A,I)=>{const k=_t(r._fields,A);k&&k._f&&(k._f.mount=I)};if(P(n,!0),S){const A=Mv(_t(r._options.defaultValues,n,p.current.defaultValue));Eh(r._defaultValues,n,A),bc(_t(r._formValues,n))&&Eh(r._formValues,n,A)}return!c&&r.register(n),h.current=n,()=>{(c?S&&!r._state.action:S)?r.unregister(n):P(n,!1)}},[n,r,c,i]),L.useEffect(()=>{r._setDisabledField({disabled:o,name:n})},[o,n,r]),L.useMemo(()=>({field:w,formState:f,fieldState:g}),[w,f,g])}const dd=e=>e.render(KL(e)),ZL=L.createContext(null);ZL.displayName="HookFormContext";const XL="_formSelect_s09hu_1",QL="_labelWrapper_s09hu_5",JL="_inputLabel_s09hu_9",eV="_placeholder_s09hu_75",tV="_helperText_s09hu_121",yo={formSelect:XL,labelWrapper:QL,inputLabel:JL,placeholder:eV,helperText:tV},Iv=({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=Y.useTheme().palette.mode==="dark";return v.jsx(dd,{name:t,control:e,render:({field:m,fieldState:g})=>{var w;const y=!!g.error,b=y||!!i,C=y?(w=g.error)==null?void 0:w.message:i;return v.jsxs("div",{className:`${yo.formSelect} ${d||""}`,"data-theme":h?"dark":"light",children:[v.jsx("div",{className:yo.labelWrapper,children:v.jsxs("span",{className:yo.inputLabel,children:[n,a?" *":""]})}),v.jsxs(Y.FormControl,{error:y,fullWidth:l,disabled:c,children:[v.jsxs(Y.Select,{...m,...f,displayEmpty:!!r,SelectDisplayProps:{"aria-label":n},renderValue:u||(S=>{if(S===""||S===null||S===void 0)return v.jsx("span",{className:yo.placeholder,children:r||""});const T=o.find(P=>P.value===S);return(T==null?void 0:T.label)||String(S)}),className:yo.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&&v.jsx(Y.MenuItem,{value:"",disabled:!0,children:v.jsx("span",{className:yo.placeholder,children:r})}),o.map(S=>{const T=m.value===S.value;return v.jsxs(Y.MenuItem,{value:S.value,disabled:S.disabled,children:[T&&v.jsx(Y.ListItemIcon,{sx:{minWidth:20},children:v.jsx(Pv,{sx:{fontSize:20}})}),S.label]},String(S.value))})]}),b&&v.jsx(Y.FormHelperText,{className:yo.helperText,children:C})]})]})}})};Iv.displayName="FormSelect";const nV="_formMultiSelect_1d6fa_1",oV="_labelWrapper_1d6fa_5",rV="_inputLabel_1d6fa_9",sV="_placeholder_1d6fa_75",iV="_helperText_1d6fa_124",aV="_chipsContainer_1d6fa_153",lV="_chip_1d6fa_153",Tn={formMultiSelect:nV,labelWrapper:oV,inputLabel:rV,placeholder:sV,helperText:iV,chipsContainer:aV,chip:lV},Av=({control:e,name:t,label:n,options:o,placeholder:r,helperText:i,required:a=!1,fullWidth:l=!0,disabled:c=!1,chipVariant:u="filled",maxChipsDisplay:d,renderValue:f,className:p,open:h,onOpen:m,onClose:g,...y})=>{const C=Y.useTheme().palette.mode==="dark";return v.jsx(dd,{name:t,control:e,render:({field:w,fieldState:S})=>{var N;const T=!!S.error,P=T||!!i,A=T?(N=S.error)==null?void 0:N.message:i,I=Array.isArray(w.value)?w.value:[];I.length>0;const V=f||(x=>{if(!Array.isArray(x)||x.length===0)return v.jsx("span",{className:Tn.placeholder,children:r||""});const j=d?x.slice(0,d):x,R=d&&x.length>d?x.length-d:0;return v.jsxs(Y.Box,{className:Tn.chipsContainer,children:[j.map(O=>{const D=o.find(_=>_.value===O);return v.jsx(Y.Chip,{label:(D==null?void 0:D.label)||String(O),size:"small",variant:u,className:Tn.chip},String(O))}),R>0&&v.jsx(Y.Chip,{label:`+${R}`,size:"small",variant:u,className:Tn.chip})]})});return v.jsxs("div",{className:`${Tn.formMultiSelect} ${p||""}`,"data-theme":C?"dark":"light",children:[v.jsx("div",{className:Tn.labelWrapper,children:v.jsxs("span",{className:Tn.inputLabel,children:[n,a?" *":""]})}),v.jsxs(Y.FormControl,{error:T,fullWidth:l,disabled:c,children:[v.jsx(Y.Select,{...w,...y,variant:"outlined",multiple:!0,value:I,onChange:x=>{w.onChange(x.target.value)},displayEmpty:!!r,renderValue:V,className:Tn.select,SelectDisplayProps:{"aria-label":n},open:h,onOpen:m,onClose:g,MenuProps:{autoFocus:!1,slotProps:{paper:{sx:{borderRadius:2,boxShadow:"0 4px 8px 3px rgba(0,0,0,0.15), 0 1px 3px 0 rgba(0,0,0,0.30)",...C?{bgcolor:"#1A1C1C"}:{bgcolor:"#F1F1F1"},marginTop:"2px"}}},sx:{"& .MuiMenuItem-root":{fontFamily:'"Suisse Intl", "Inter", "Helvetica", "Arial", sans-serif',fontSize:14,fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px",whiteSpace:"nowrap",height:"48px",...C?{color:"#FAF9F9"}:{color:"#101111"},marginBottom:"2px",backgroundColor:"transparent"},"& .MuiMenuItem-root.Mui-focusVisible":{backgroundColor:"transparent",...C?{color:"#FAF9F9"}:{color:"#101111"}},"& .MuiMenuItem-root:hover":{...C?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...C?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root.Mui-selected":{borderRadius:"12px",...C?{backgroundColor:"#E5FF4B",color:"#101111"}:{backgroundColor:"#286672",color:"#FAF9F9"},gap:"8px"},"& .MuiMenuItem-root.Mui-selected:hover":{...C?{backgroundColor:"#E5FF4B"}:{backgroundColor:"#286672"},borderRadius:"12px",...C?{color:"#101111"}:{color:"#FAF9F9"}},"& .MuiMenuItem-root .MuiListItemIcon-root":{minWidth:20},"& .MuiMenuItem-root.Mui-selected .MuiSvgIcon-root":{fill:C?"#101111":"#FAF9F9",width:20,height:20}}},children:o.map(x=>{const j=I.includes(x.value);return v.jsxs(Y.MenuItem,{value:x.value,disabled:x.disabled,children:[j&&v.jsx(Y.ListItemIcon,{sx:{minWidth:20},children:v.jsx(Pv,{sx:{fontSize:20}})}),x.label]},String(x.value))})}),P&&v.jsx(Y.FormHelperText,{className:Tn.helperText,children:A})]})]})}})};Av.displayName="FormMultiSelect";const cV="_formInput_195f5_1",uV="_labelWrapper_195f5_5",dV="_inputLabel_195f5_9",jr={formInput:cV,labelWrapper:uV,inputLabel:dV},Nv=({control:e,name:t,label:n,type:o="text",placeholder:r,helperText:i,required:a=!1,fullWidth:l=!0,disabled:c=!1,className:u,...d})=>{const p=Y.useTheme().palette.mode==="dark";return v.jsx(dd,{name:t,control:e,render:({field:h,fieldState:m})=>{var b;const g=!!m.error,y=g?(b=m.error)==null?void 0:b.message:i;return v.jsxs("div",{className:`${jr.formInput} ${u||""}`,"data-theme":p?"dark":"light",children:[v.jsx("div",{className:jr.labelWrapper,children:v.jsxs("span",{className:jr.inputLabel,children:[n,a?" *":""]})}),v.jsx(Y.TextField,{...h,...d,type:o,placeholder:r,required:!1,fullWidth:l,disabled:c,error:g,helperText:y,variant:"outlined",className:jr.input,InputLabelProps:{shrink:!1},inputProps:{"aria-label":n},InputProps:{className:jr.inputRoot}})]})}})};Nv.displayName="FormInput";exports.Button=vc;exports.CAMERA_ALGORITHM_FACIAL=Ji;exports.CAMERA_ALGORITHM_LPR=ea;exports.CameraCard=QE;exports.CountCard=R1;exports.DisplayTypes=wv;exports.FilterButton=Lh;exports.FilterChip=Vh;exports.FilterModal=am;exports.FormInput=Nv;exports.FormMultiSelect=Av;exports.FormSelect=Iv;exports.GoogleMap=ty;exports.MapContent=iu;exports.MapMarkers=iy;exports.MapSpot=ru;exports.ModuleMenu=dy;exports.NotFoundContent=ly;exports.ResponsiveGrid=Tv;exports.SearchBar=ay;exports.SidebarMenu=uy;exports.SplitLayout=Cv;exports.VideoControlProvider=xy;exports.VideoPlayer=pu;exports.VideoPlayerWebRTC=Sv;exports.VideoTimeline=xv;exports.VisioThemeProvider=Wv;exports.ZoomControls=sM;exports.currentTimeAtom=na;exports.darkColors=at;exports.darkTheme=jh;exports.eventsAtom=du;exports.isLiveAtom=oa;exports.lightColors=it;exports.lightTheme=_h;exports.radiiTokens=ti;exports.selectedRangeAtom=cu;exports.spacingScale=Fv;exports.spacingTokens=Ah;exports.typographyTokens=Tt;exports.useGoogleMapContext=su;exports.useVideoControl=ra;exports.useVideoControlRequired=ik;exports.useVisioTheme=Uv;exports.videoSegmentsAtom=uu;exports.zoomAtom=vy;
|
|
201
245
|
//# sourceMappingURL=index.cjs.js.map
|