@malloy-publisher/sdk 0.9.12 → 0.9.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/README.md +5 -7
  2. package/dist/{RenderedResult-CDiXJAh9.es.js → RenderedResult-DnBtf-cI.es.js} +2 -2
  3. package/dist/{RenderedResult-De51QvsZ.cjs.js → RenderedResult-DtQtNV0d.cjs.js} +1 -1
  4. package/dist/ServerProvider-BIFPCzTD.cjs.js +1 -0
  5. package/dist/{ServerProvider-RvKSbvnL.es.js → ServerProvider-BV7IoDMR.es.js} +805 -606
  6. package/dist/builder/index.cjs.js +72 -72
  7. package/dist/builder/index.es.js +4156 -4219
  8. package/dist/builder-entry.d.ts +1 -0
  9. package/dist/client/api.d.ts +178 -0
  10. package/dist/client/index.cjs.js +1 -1
  11. package/dist/client/index.es.js +41 -37
  12. package/dist/components/Report/telemetry.d.ts +0 -5
  13. package/dist/components/ReportBuilder/BuilderBar.d.ts +1 -1
  14. package/dist/components/ReportBuilder/BuilderToolbar.d.ts +14 -10
  15. package/dist/components/ReportBuilder/EditorSurface.d.ts +1 -2
  16. package/dist/components/ReportBuilder/ReportBuilder.d.ts +3 -10
  17. package/dist/components/ReportBuilder/ReportEditor.d.ts +2 -9
  18. package/dist/components/ReportBuilder/SaveStatus.d.ts +16 -0
  19. package/dist/components/ReportBuilder/TileFrame.d.ts +9 -2
  20. package/dist/components/ReportBuilder/builderControls.d.ts +14 -6
  21. package/dist/components/ReportBuilder/useBuilderSession.d.ts +1 -1
  22. package/dist/components/ReportBuilder/useReportDraft.d.ts +6 -2
  23. package/dist/components/given/GivenInput.d.ts +18 -1
  24. package/dist/components/given/GivensPanel.d.ts +12 -1
  25. package/dist/components/given/useOptionSearch.d.ts +30 -0
  26. package/dist/hooks/index.d.ts +1 -1
  27. package/dist/hooks/useDocumentControls.d.ts +5 -0
  28. package/dist/hooks/useGivensState.d.ts +7 -0
  29. package/dist/hooks/useSuggestOptions.d.ts +60 -4
  30. package/dist/index.cjs.js +1 -1
  31. package/dist/index.es.js +5 -5
  32. package/dist/{useCompiledDocument-Bf4RSfB6.es.js → useCompiledDocument-B4QF1mIl.es.js} +6912 -6759
  33. package/dist/useCompiledDocument-D0OAMejE.cjs.js +142 -0
  34. package/package.json +1 -1
  35. package/src/builder-entry.ts +1 -0
  36. package/src/components/Report/ReportPage.tsx +5 -1
  37. package/src/components/Report/telemetry.ts +0 -6
  38. package/src/components/ReportBuilder/AddTileDialog.tsx +2 -2
  39. package/src/components/ReportBuilder/BuilderBar.tsx +5 -256
  40. package/src/components/ReportBuilder/BuilderHeader.tsx +9 -3
  41. package/src/components/ReportBuilder/BuilderToolbar.tsx +15 -38
  42. package/src/components/ReportBuilder/EditorSurface.tsx +0 -3
  43. package/src/components/ReportBuilder/FilterDialog.tsx +1 -1
  44. package/src/components/ReportBuilder/ReportBuilder.controls.spec.tsx +210 -24
  45. package/src/components/ReportBuilder/ReportBuilder.tsx +43 -85
  46. package/src/components/ReportBuilder/ReportEditor.package.spec.tsx +0 -36
  47. package/src/components/ReportBuilder/ReportEditor.tsx +2 -13
  48. package/src/components/ReportBuilder/SaveStatus.tsx +271 -0
  49. package/src/components/ReportBuilder/TileFrame.spec.ts +34 -0
  50. package/src/components/ReportBuilder/TileFrame.tsx +10 -3
  51. package/src/components/ReportBuilder/builderControls.ts +39 -13
  52. package/src/components/ReportBuilder/emptyStart.spec.ts +1 -1
  53. package/src/components/ReportBuilder/useReportDraft.ts +38 -4
  54. package/src/components/given/GivenInput.tsx +219 -104
  55. package/src/components/given/GivensPanel.spec.tsx +19 -0
  56. package/src/components/given/GivensPanel.tsx +31 -1
  57. package/src/components/given/useOptionSearch.spec.tsx +218 -0
  58. package/src/components/given/useOptionSearch.ts +100 -0
  59. package/src/hooks/index.ts +5 -1
  60. package/src/hooks/useDocumentControls.ts +12 -1
  61. package/src/hooks/useGivensState.spec.ts +54 -0
  62. package/src/hooks/useGivensState.ts +21 -1
  63. package/src/hooks/useSuggestOptions.dom.spec.ts +125 -4
  64. package/src/hooks/useSuggestOptions.spec.ts +73 -2
  65. package/src/hooks/useSuggestOptions.ts +234 -62
  66. package/dist/ServerProvider-DKrBcXL7.cjs.js +0 -1
  67. package/dist/useCompiledDocument-XsQz85Ri.cjs.js +0 -141
  68. package/src/components/ReportBuilder/ReportBuilder.layoutSwitch.spec.tsx +0 -145
@@ -1,141 +0,0 @@
1
- "use strict";var op=Object.create;var Yi=Object.defineProperty;var sp=Object.getOwnPropertyDescriptor;var ip=Object.getOwnPropertyNames;var ap=Object.getPrototypeOf,lp=Object.prototype.hasOwnProperty;var cp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ip(t))!lp.call(e,o)&&o!==n&&Yi(e,o,{get:()=>t[o],enumerable:!(r=sp(t,o))||r.enumerable});return e};var _r=(e,t,n)=>(n=e!=null?op(ap(e)):{},cp(t||!e||!e.__esModule?Yi(n,"default",{value:e,enumerable:!0}):n,e));const f=require("react/jsx-runtime"),W=require("@mui/material"),Se=require("./ServerProvider-DKrBcXL7.cjs.js"),ee=require("react"),Dr=require("@tanstack/react-query"),up=require("@emotion/react"),He=require("@mui/system"),ir=require("react-dom"),dp=require("markdown-to-jsx"),Ns=require("./text-entry-BJwltZiy.cjs.js"),pp=require("@emotion/styled"),tt=require("@malloydata/malloy-filter"),fp=require("@mui/icons-material"),hp=require("@malloydata/malloy-tag");function Ol(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const v=Ol(ee),mp=Ol(ir),$t={report:"publisher-report",header:"publisher-report-header",title:"publisher-report-title",filterRow:"publisher-filter-row",filter:"publisher-filter",filterPopover:"publisher-filter-popover",tile:"publisher-tile",tileHeading:"publisher-tile-heading",drillCell:"publisher-drill",builder:"publisher-builder",builderBar:"publisher-builder-bar",saveStatus:"publisher-save-status",builderTile:"publisher-builder-tile",widthHandle:"publisher-width-handle",menu:"publisher-menu",dialog:"publisher-dialog",addTileDialog:"publisher-add-tile-dialog",filterDialog:"publisher-filter-dialog",clickableCellsDialog:"publisher-clickable-cells-dialog",newReportDialog:"publisher-new-report-dialog"},Gi=e=>e,gp=()=>{let e=Gi;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Gi}}},Al=gp();function Ot(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function le(e){if(typeof e!="string")throw new Error(Ot(7));return e.charAt(0).toUpperCase()+e.slice(1)}function qi(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yp(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Xo={exports:{}},Qo,Ki;function bp(){if(Ki)return Qo;Ki=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Qo=e,Qo}var Zo,Xi;function vp(){if(Xi)return Zo;Xi=1;var e=bp();function t(){}function n(){}return n.resetWarningCache=t,Zo=function(){function r(i,a,l,c,u,p){if(p!==e){var m=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 m.name="Invariant Violation",m}}r.isRequired=r;function o(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Zo}var Qi;function xp(){return Qi||(Qi=1,Xo.exports=vp()()),Xo.exports}var Sp=xp();const _=Nt(Sp);function Fl(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Fl(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function de(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Fl(e))&&(r&&(r+=" "),r+=t);return r}function me(e,t,n=void 0){const r={};for(const o in e){const s=e[o];let i="",a=!0;for(let l=0;l<s.length;l+=1){const c=s[l];c&&(i+=(a===!0?"":" ")+t(c),a=!1,n&&n[c]&&(i+=" "+n[c]))}r[o]=i}return r}var Jo={exports:{}},Ie={};/**
2
- * @license React
3
- * react-is.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Zi;function wp(){if(Zi)return Ie;Zi=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function d(h){if(typeof h=="object"&&h!==null){var g=h.$$typeof;switch(g){case e:switch(h=h.type,h){case n:case o:case r:case l:case c:case m:return h;default:switch(h=h&&h.$$typeof,h){case i:case a:case p:case u:return h;case s:return h;default:return g}}case t:return g}}}return Ie.ContextConsumer=s,Ie.ContextProvider=i,Ie.Element=e,Ie.ForwardRef=a,Ie.Fragment=n,Ie.Lazy=p,Ie.Memo=u,Ie.Portal=t,Ie.Profiler=o,Ie.StrictMode=r,Ie.Suspense=l,Ie.SuspenseList=c,Ie.isContextConsumer=function(h){return d(h)===s},Ie.isContextProvider=function(h){return d(h)===i},Ie.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},Ie.isForwardRef=function(h){return d(h)===a},Ie.isFragment=function(h){return d(h)===n},Ie.isLazy=function(h){return d(h)===p},Ie.isMemo=function(h){return d(h)===u},Ie.isPortal=function(h){return d(h)===t},Ie.isProfiler=function(h){return d(h)===o},Ie.isStrictMode=function(h){return d(h)===r},Ie.isSuspense=function(h){return d(h)===l},Ie.isSuspenseList=function(h){return d(h)===c},Ie.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===o||h===r||h===l||h===c||typeof h=="object"&&h!==null&&(h.$$typeof===p||h.$$typeof===u||h.$$typeof===i||h.$$typeof===s||h.$$typeof===a||h.$$typeof===b||h.getModuleId!==void 0)},Ie.typeOf=d,Ie}var Ji;function Cp(){return Ji||(Ji=1,Jo.exports=wp()),Jo.exports}var Ll=Cp();function kt(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 Nl(e){if(v.isValidElement(e)||Ll.isValidElementType(e)||!kt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Nl(e[n])}),t}function Ge(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return kt(e)&&kt(t)&&Object.keys(t).forEach(o=>{v.isValidElement(t[o])||Ll.isValidElementType(t[o])?r[o]=t[o]:kt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&kt(e[o])?r[o]=Ge(e[o],t[o],n):n.clone?r[o]=kt(t[o])?Nl(t[o]):t[o]:r[o]=t[o]}),r}function dr(e,t){return t?Ge(e,t,{clone:!1}):e}function ea(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{const s=/min-width:\s*([0-9.]+)/;return+(r.match(s)?.[1]||0)-+(o.match(s)?.[1]||0)});return n.length?n.reduce((r,o)=>{const s=t[o];return delete r[o],r[o]=s,r},{...t}):t}function Pp(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function kp(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(s)}function Mp(e){const t=(s,i)=>s.replace("@media",i?`@container ${i}`:"@container");function n(s,i){s.up=(...a)=>t(e.breakpoints.up(...a),i),s.down=(...a)=>t(e.breakpoints.down(...a),i),s.between=(...a)=>t(e.breakpoints.between(...a),i),s.only=(...a)=>t(e.breakpoints.only(...a),i),s.not=(...a)=>{const l=t(e.breakpoints.not(...a),i);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=s=>(n(r,s),r);return n(o),{...e,containerQueries:o}}const Po={xs:0,sm:600,md:900,lg:1200,xl:1536},ta={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Po[e]}px)`},Tp={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Po[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function At(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||ta;return t.reduce((i,a,l)=>(i[s.up(s.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const s=r.breakpoints||ta;return Object.keys(t).reduce((i,a)=>{if(Pp(s.keys,a)){const l=kp(r.containerQueries?r:Tp,a);l&&(i[l]=n(t[a],a))}else if(Object.keys(s.values||Po).includes(a)){const l=s.up(a);i[l]=n(t[a],a)}else{const l=a;i[l]=t[l]}return i},{})}return n(t)}function Dp(e={}){return e.keys?.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{})||{}}function na(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function ko(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function co(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=ko(e,n)||r,t&&(o=t(o,r,e)),o}function We(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=i=>{if(i[t]==null)return null;const a=i[t],l=i.theme,c=ko(l,r)||{};return At(i,a,p=>{let m=co(c,o,p);return p===m&&typeof p=="string"&&(m=co(c,o,`${t}${p==="default"?"":le(p)}`,p)),n===!1?m:{[n]:m}})};return s.propTypes={},s.filterProps=[t],s}function Rp(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Ip={m:"margin",p:"padding"},Ep={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ra={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},$p=Rp(e=>{if(e.length>2)if(ra[e])e=ra[e];else return[e];const[t,n]=e.split(""),r=Ip[t],o=Ep[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),js=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Bs=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...js,...Bs];function Rr(e,t,n,r){const o=ko(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?s=>typeof s=="string"?s:typeof o=="string"?o.startsWith("var(")&&s===0?0:o.startsWith("var(")&&s===1?o:`calc(${s} * ${o})`:o*s:Array.isArray(o)?s=>{if(typeof s=="string")return s;const i=Math.abs(s),a=o[i];return s>=0?a:typeof a=="number"?-a:typeof a=="string"&&a.startsWith("var(")?`calc(-1 * ${a})`:`-${a}`}:typeof o=="function"?o:()=>{}}function Vs(e){return Rr(e,"spacing",8)}function Ir(e,t){return typeof t=="string"||t==null?t:e(t)}function Op(e,t){return n=>e.reduce((r,o)=>(r[o]=Ir(t,n),r),{})}function Ap(e,t,n,r){if(!t.includes(n))return null;const o=$p(n),s=Op(o,r),i=e[n];return At(e,i,s)}function jl(e,t){const n=Vs(e.theme);return Object.keys(e).map(r=>Ap(e,t,r,n)).reduce(dr,{})}function Ve(e){return jl(e,js)}Ve.propTypes={};Ve.filterProps=js;function ze(e){return jl(e,Bs)}ze.propTypes={};ze.filterProps=Bs;function Mo(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?dr(o,t[s](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function it(e){return typeof e!="number"?e:`${e}px solid`}function dt(e,t){return We({prop:e,themeKey:"borders",transform:t})}const Fp=dt("border",it),Lp=dt("borderTop",it),Np=dt("borderRight",it),jp=dt("borderBottom",it),Bp=dt("borderLeft",it),Vp=dt("borderColor"),zp=dt("borderTopColor"),_p=dt("borderRightColor"),Wp=dt("borderBottomColor"),Hp=dt("borderLeftColor"),Up=dt("outline",it),Yp=dt("outlineColor"),To=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Rr(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ir(t,r)});return At(e,e.borderRadius,n)}return null};To.propTypes={};To.filterProps=["borderRadius"];Mo(Fp,Lp,Np,jp,Bp,Vp,zp,_p,Wp,Hp,To,Up,Yp);const Do=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Rr(e.theme,"spacing",8),n=r=>({gap:Ir(t,r)});return At(e,e.gap,n)}return null};Do.propTypes={};Do.filterProps=["gap"];const Ro=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Rr(e.theme,"spacing",8),n=r=>({columnGap:Ir(t,r)});return At(e,e.columnGap,n)}return null};Ro.propTypes={};Ro.filterProps=["columnGap"];const Io=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Rr(e.theme,"spacing",8),n=r=>({rowGap:Ir(t,r)});return At(e,e.rowGap,n)}return null};Io.propTypes={};Io.filterProps=["rowGap"];const Gp=We({prop:"gridColumn"}),qp=We({prop:"gridRow"}),Kp=We({prop:"gridAutoFlow"}),Xp=We({prop:"gridAutoColumns"}),Qp=We({prop:"gridAutoRows"}),Zp=We({prop:"gridTemplateColumns"}),Jp=We({prop:"gridTemplateRows"}),ef=We({prop:"gridTemplateAreas"}),tf=We({prop:"gridArea"});Mo(Do,Ro,Io,Gp,qp,Kp,Xp,Qp,Zp,Jp,ef,tf);function Rn(e,t){return t==="grey"?t:e}const nf=We({prop:"color",themeKey:"palette",transform:Rn}),rf=We({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Rn}),of=We({prop:"backgroundColor",themeKey:"palette",transform:Rn});Mo(nf,rf,of);function Je(e){return e<=1&&e!==0?`${e*100}%`:e}const sf=We({prop:"width",transform:Je}),zs=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Po[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Je(n)}};return At(e,e.maxWidth,t)}return null};zs.filterProps=["maxWidth"];const af=We({prop:"minWidth",transform:Je}),lf=We({prop:"height",transform:Je}),cf=We({prop:"maxHeight",transform:Je}),uf=We({prop:"minHeight",transform:Je});We({prop:"size",cssProperty:"width",transform:Je});We({prop:"size",cssProperty:"height",transform:Je});const df=We({prop:"boxSizing"});Mo(sf,zs,af,lf,cf,uf,df);const Er={border:{themeKey:"borders",transform:it},borderTop:{themeKey:"borders",transform:it},borderRight:{themeKey:"borders",transform:it},borderBottom:{themeKey:"borders",transform:it},borderLeft:{themeKey:"borders",transform:it},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:it},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:To},color:{themeKey:"palette",transform:Rn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Rn},backgroundColor:{themeKey:"palette",transform:Rn},p:{style:ze},pt:{style:ze},pr:{style:ze},pb:{style:ze},pl:{style:ze},px:{style:ze},py:{style:ze},padding:{style:ze},paddingTop:{style:ze},paddingRight:{style:ze},paddingBottom:{style:ze},paddingLeft:{style:ze},paddingX:{style:ze},paddingY:{style:ze},paddingInline:{style:ze},paddingInlineStart:{style:ze},paddingInlineEnd:{style:ze},paddingBlock:{style:ze},paddingBlockStart:{style:ze},paddingBlockEnd:{style:ze},m:{style:Ve},mt:{style:Ve},mr:{style:Ve},mb:{style:Ve},ml:{style:Ve},mx:{style:Ve},my:{style:Ve},margin:{style:Ve},marginTop:{style:Ve},marginRight:{style:Ve},marginBottom:{style:Ve},marginLeft:{style:Ve},marginX:{style:Ve},marginY:{style:Ve},marginInline:{style:Ve},marginInlineStart:{style:Ve},marginInlineEnd:{style:Ve},marginBlock:{style:Ve},marginBlockStart:{style:Ve},marginBlockEnd:{style:Ve},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:Do},rowGap:{style:Io},columnGap:{style:Ro},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Je},maxWidth:{style:zs},minWidth:{transform:Je},height:{transform:Je},maxHeight:{transform:Je},minHeight:{transform:Je},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 pf(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function ff(e,t){return typeof e=="function"?e(t):e}function hf(){function e(n,r,o,s){const i={[n]:r,theme:o},a=s[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:p}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const m=ko(o,c)||{};return p?p(i):At(i,r,d=>{let h=co(m,u,d);return d===h&&typeof d=="string"&&(h=co(m,u,`${n}${d==="default"?"":le(d)}`,d)),l===!1?h:{[l]:h}})}function t(n){const{sx:r,theme:o={},nested:s}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Er;function a(l){let c=l;if(typeof l=="function")c=l(o);else if(typeof l!="object")return l;if(!c)return null;const u=Dp(o.breakpoints),p=Object.keys(u);let m=u;return Object.keys(c).forEach(b=>{const d=ff(c[b],o);if(d!=null)if(typeof d=="object")if(i[b])m=dr(m,e(b,d,o,i));else{const h=At({theme:o},d,g=>({[b]:g}));pf(h,d)?m[b]=t({sx:d,theme:o,nested:!0}):m=dr(m,h)}else m=dr(m,e(b,d,o,i))}),!s&&o.modularCssLayers?{"@layer sx":ea(o,na(p,m))}:ea(o,na(p,m))}return Array.isArray(r)?r.map(a):a(r)}return t}const An=hf();An.filterProps=["sx"];const mf=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Er;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function gf(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=mf(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...i)=>{const a=t(...i);return kt(a)?{...r,...a}:r}:s={...r,...t},{...o,sx:s}}function yf(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function _s(e,t=0,n=1){return yf(e,t,n)}function bf(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,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Kt(e){if(e.type)return e;if(e.charAt(0)==="#")return Kt(bf(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Ot(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Ot(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}const vf=e=>{const t=Kt(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},ar=(e,t)=>{try{return vf(e)}catch{return e}};function Eo(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,s)=>s<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Bl(e){e=Kt(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),i=(c,u=(c+n/30)%12)=>o-s*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),Eo({type:a,values:l})}function fs(e){e=Kt(e);let t=e.type==="hsl"||e.type==="hsla"?Kt(Bl(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function xf(e,t){const n=fs(e),r=fs(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function uo(e,t){return e=Kt(e),t=_s(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Eo(e)}function Zt(e,t,n){try{return uo(e,t)}catch{return e}}function $o(e,t){if(e=Kt(e),t=_s(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 Eo(e)}function Te(e,t,n){try{return $o(e,t)}catch{return e}}function Oo(e,t){if(e=Kt(e),t=_s(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 Eo(e)}function De(e,t,n){try{return Oo(e,t)}catch{return e}}function Vl(e,t=.15){return fs(e)>.5?$o(e,t):Oo(e,t)}function Wr(e,t,n){try{return Vl(e,t)}catch{return e}}const br={black:"#000",white:"#fff"},Sf={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"},bn={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},vn={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Kn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},xn={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Sn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},wn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function zl(){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:br.white,default:br.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 _l=zl();function Wl(){return{text:{primary:br.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:br.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 hs=Wl();function oa(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Oo(e.main,o):t==="dark"&&(e.dark=$o(e.main,s)))}function sa(e,t,n,r,o){const s=o.light||o,i=o.dark||o*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(i*100).toFixed(0)}%)`))}function wf(e="light"){return e==="dark"?{main:xn[200],light:xn[50],dark:xn[400]}:{main:xn[700],light:xn[400],dark:xn[800]}}function Cf(e="light"){return e==="dark"?{main:bn[200],light:bn[50],dark:bn[400]}:{main:bn[500],light:bn[300],dark:bn[700]}}function Pf(e="light"){return e==="dark"?{main:vn[500],light:vn[300],dark:vn[700]}:{main:vn[700],light:vn[400],dark:vn[800]}}function kf(e="light"){return e==="dark"?{main:Sn[400],light:Sn[300],dark:Sn[700]}:{main:Sn[700],light:Sn[500],dark:Sn[900]}}function Mf(e="light"){return e==="dark"?{main:wn[400],light:wn[300],dark:wn[700]}:{main:wn[800],light:wn[500],dark:wn[900]}}function Tf(e="light"){return e==="dark"?{main:Kn[400],light:Kn[300],dark:Kn[700]}:{main:"#ed6c02",light:Kn[500],dark:Kn[900]}}function Df(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Ws(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...s}=e,i=e.primary||wf(t),a=e.secondary||Cf(t),l=e.error||Pf(t),c=e.info||kf(t),u=e.success||Mf(t),p=e.warning||Tf(t);function m(g){return o?Df(g):xf(g,hs.text.primary)>=n?hs.text.primary:_l.text.primary}const b=({color:g,name:w,mainShade:C=500,lightShade:S=300,darkShade:x=700})=>{if(g={...g},!g.main&&g[C]&&(g.main=g[C]),!g.hasOwnProperty("main"))throw new Error(Ot(11,w?` (${w})`:"",C));if(typeof g.main!="string")throw new Error(Ot(12,w?` (${w})`:"",JSON.stringify(g.main)));return o?(sa(o,g,"light",S,r),sa(o,g,"dark",x,r)):(oa(g,"light",S,r),oa(g,"dark",x,r)),g.contrastText||(g.contrastText=m(g.main)),g};let d;return t==="light"?d=zl():t==="dark"&&(d=Wl()),Ge({common:{...br},mode:t,primary:b({color:i,name:"primary"}),secondary:b({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:l,name:"error"}),warning:b({color:p,name:"warning"}),info:b({color:c,name:"info"}),success:b({color:u,name:"success"}),grey:Sf,contrastThreshold:n,getContrastText:m,augmentColor:b,tonalOffset:r,...d},s)}function Rf(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var If={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 Ef(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var $f=/[A-Z]|^ms/g,Of=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Hl=function(t){return t.charCodeAt(1)===45},ia=function(t){return t!=null&&typeof t!="boolean"},es=Ef(function(e){return Hl(e)?e:e.replace($f,"-$&").toLowerCase()}),aa=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Of,function(r,o,s){return Gt={name:o,styles:s,next:Gt},o})}return If[t]!==1&&!Hl(t)&&typeof n=="number"&&n!==0?n+"px":n};function po(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Gt={name:o.name,styles:o.styles,next:Gt},o.name;var s=n;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)Gt={name:i.name,styles:i.styles,next:Gt},i=i.next;var a=s.styles+";";return a}return Af(e,t,n)}}var l=n;return l}function Af(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=po(e,t,n[o])+";";else for(var s in n){var i=n[s];if(typeof i!="object"){var a=i;ia(a)&&(r+=es(s)+":"+aa(s,a)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&t==null)for(var l=0;l<i.length;l++)ia(i[l])&&(r+=es(s)+":"+aa(s,i[l])+";");else{var c=po(e,t,i);switch(s){case"animation":case"animationName":{r+=es(s)+":"+c+";";break}default:r+=s+"{"+c+"}"}}}return r}var la=/label:\s*([^\s;{]+)\s*(;|$)/g,Gt;function Ff(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Gt=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=po(n,t,s);else{var i=s;o+=i[0]}for(var a=1;a<e.length;a++)if(o+=po(n,t,e[a]),r){var l=s;o+=l[a]}la.lastIndex=0;for(var c="",u;(u=la.exec(o))!==null;)c+="-"+u[1];var p=Rf(o)+c;return{name:p,styles:o,next:Gt}}function Lf(e,t){return pp(e,t)}function Nf(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const ca=[];function ln(e){return ca[0]=e,Ff(ca)}const Ue=typeof window<"u"?v.useLayoutEffect:v.useEffect;function jf(e){return Object.keys(e).length===0}function Ul(e=null){const t=v.useContext(up.ThemeContext);return!t||jf(t)?e:t}const Bf=v.createContext(),vt=()=>v.useContext(Bf)??!1;function vr(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=o;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const i=e[s],a=t[s];if(!a)r[s]=i||{};else if(!i)r[s]=a;else{r[s]={...a};for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const c=l;r[s][c]=vr(i[c],a[c],n)}}}else s==="className"&&n&&t.className?r.className=de(e?.className,t?.className):s==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[s]===void 0&&(r[s]=e[s])}return r}const Vf=v.createContext(void 0);function zf(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?vr(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?vr(o,r,t.components.mergeClassNameAndStyle):r}function _f({props:e,name:t}){const n=v.useContext(Vf);return zf({props:e,name:t,theme:{components:n}})}let ua=0;function Wf(e){const[t,n]=v.useState(e),r=e||t;return v.useEffect(()=>{t==null&&(ua+=1,n(`mui-${ua}`))},[t]),r}const Hf={...v},da=Hf.useId;function xt(e){if(da!==void 0){const t=da();return e??t}return Wf(e)}const Uf=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Yf(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,s=Uf(t),i=Object.keys(s);function a(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function l(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function c(m,b){const d=i.indexOf(b);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(d!==-1&&typeof t[i[d]]=="number"?t[i[d]]:b)-r/100}${n})`}function u(m){return i.indexOf(m)+1<i.length?c(m,i[i.indexOf(m)+1]):a(m)}function p(m){const b=i.indexOf(m);return b===0?a(i[1]):b===i.length-1?l(i[b]):c(m,i[i.indexOf(m)+1]).replace("@media","@media not all and")}return{keys:i,values:s,up:a,down:l,between:c,only:u,not:p,unit:n,...o}}const Gf={borderRadius:4};function qf(e=8,t=Vs({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function Kf(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[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 Hs(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={},...i}=e,a=Yf(n),l=qf(o);let c=Ge({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...Gf,...s}},i);return c=Mp(c),c.applyStyles=Kf,c=t.reduce((u,p)=>Ge(u,p),c),c.unstable_sxConfig={...Er,...i?.unstable_sxConfig},c.unstable_sx=function(p){return An({sx:p,theme:this})},c}const Xf=Hs();function Qf(e=Xf){return Ul(e)}const pa=(e,t,n,r=[])=>{let o=e;t.forEach((s,i)=>{i===t.length-1?Array.isArray(o)?o[Number(s)]=n:o&&typeof o=="object"&&(o[s]=n):o&&typeof o=="object"&&(o[s]||(o[s]=r.includes(s)?[]:{}),o=o[s])})},Zf=(e,t,n)=>{function r(o,s=[],i=[]){Object.entries(o).forEach(([a,l])=>{(!n||n&&!n([...s,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...s,a],Array.isArray(l)?[...i,a]:i):t([...s,a],l,i))})}r(e)},Jf=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function ts(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},s={},i={};return Zf(e,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`,p=Jf(a,l);Object.assign(o,{[u]:p}),pa(s,a,`var(${u})`,c),pa(i,a,`var(${u}, ${p})`,c)}},a=>a[0]==="vars"),{css:o,vars:s,varsWithDefaults:i}}function eh(e,t={}){const{getSelector:n=w,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:s}=t,{colorSchemes:i={},components:a,defaultColorScheme:l="light",...c}=e,{vars:u,css:p,varsWithDefaults:m}=ts(c,t);let b=m;const d={},{[l]:h,...g}=i;if(Object.entries(g||{}).forEach(([x,P])=>{const{vars:k,css:I,varsWithDefaults:R}=ts(P,t);b=Ge(b,R),d[x]={css:I,vars:k}}),h){const{css:x,vars:P,varsWithDefaults:k}=ts(h,t);b=Ge(b,k),d[l]={css:x,vars:P}}function w(x,P){let k=o;if(o==="class"&&(k=".%s"),o==="data"&&(k="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(k=`[${o}="%s"]`),x){if(k==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${i[x]?.palette?.mode||x})`]:{":root":P}};if(k)return e.defaultColorScheme===x?`:root, ${k.replace("%s",String(x))}`:k.replace("%s",String(x))}return":root"}return{vars:b,generateThemeVars:()=>{let x={...u};return Object.entries(d).forEach(([,{vars:P}])=>{x=Ge(x,P)}),x},generateStyleSheets:()=>{const x=[],P=e.defaultColorScheme||"light";function k(N,F){Object.keys(F).length&&x.push(typeof N=="string"?{[N]:{...F}}:N)}k(n(void 0,{...p}),p);const{[P]:I,...R}=d;if(I){const{css:N}=I,F=i[P]?.palette?.mode,E=!r&&F?{colorScheme:F,...N}:{...N};k(n(P,{...E}),E)}return Object.entries(R).forEach(([N,{css:F}])=>{const E=i[N]?.palette?.mode,y=!r&&E?{colorScheme:E,...F}:{...F};k(n(N,{...y}),y)}),s&&x.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)"}}),x}}}function th(e){const t={};return Object.entries(e).forEach(r=>{const[o,s]=r;typeof s=="object"&&(t[o]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function nh(e){return function(n){return e==="media"?`@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 rh={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 ge(e,t,n="Mui"){const r=rh[t];return r?`${n}-${r}`:`${Al.generate(e)}-${t}`}function oh(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function sh(e){return Math.round(e*1e5)/1e5}const fa={textTransform:"uppercase"},ha='"Roboto", "Helvetica", "Arial", sans-serif';function ih(e,t){const{fontFamily:n=ha,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:i=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...p}=typeof t=="function"?t(e):t,m=r/14,b=u||(g=>`${g/l*m}rem`),d=(g,w,C,S,x)=>({fontFamily:n,fontWeight:g,fontSize:b(w),lineHeight:C,...n===ha?{letterSpacing:`${sh(S/w)}em`}:{},...x,...c}),h={h1:d(o,96,1.167,-1.5),h2:d(o,60,1.2,-.5),h3:d(s,48,1.167,0),h4:d(s,34,1.235,.25),h5:d(s,24,1.334,0),h6:d(i,20,1.6,.15),subtitle1:d(s,16,1.75,.15),subtitle2:d(i,14,1.57,.1),body1:d(s,16,1.5,.15),body2:d(s,14,1.43,.15),button:d(i,14,1.75,.4,fa),caption:d(s,12,1.66,.4),overline:d(s,12,2.66,1,fa),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ge({htmlFontSize:l,pxToRem:b,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:i,fontWeightBold:a,...h},p,{clone:!1})}const ah=.2,lh=.14,ch=.12;function Ne(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ah})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${lh})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ch})`].join(",")}const uh=["none",Ne(0,2,1,-1,0,1,1,0,0,1,3,0),Ne(0,3,1,-2,0,2,2,0,0,1,5,0),Ne(0,3,3,-2,0,3,4,0,0,1,8,0),Ne(0,2,4,-1,0,4,5,0,0,1,10,0),Ne(0,3,5,-1,0,5,8,0,0,1,14,0),Ne(0,3,5,-1,0,6,10,0,0,1,18,0),Ne(0,4,5,-2,0,7,10,1,0,2,16,1),Ne(0,5,5,-3,0,8,10,1,0,3,14,2),Ne(0,5,6,-3,0,9,12,1,0,3,16,2),Ne(0,6,6,-3,0,10,14,1,0,4,18,3),Ne(0,6,7,-4,0,11,15,1,0,4,20,3),Ne(0,7,8,-4,0,12,17,2,0,5,22,4),Ne(0,7,8,-4,0,13,19,2,0,5,24,4),Ne(0,7,9,-4,0,14,21,2,0,5,26,4),Ne(0,8,9,-5,0,15,22,2,0,6,28,5),Ne(0,8,10,-5,0,16,24,2,0,6,30,5),Ne(0,8,11,-5,0,17,26,2,0,6,32,5),Ne(0,9,11,-5,0,18,28,2,0,7,34,6),Ne(0,9,12,-6,0,19,29,2,0,7,36,6),Ne(0,10,13,-6,0,20,31,3,0,8,38,7),Ne(0,10,13,-6,0,21,33,3,0,8,40,7),Ne(0,10,14,-6,0,22,35,3,0,8,42,7),Ne(0,11,14,-7,0,23,36,3,0,9,44,8),Ne(0,11,15,-7,0,24,38,3,0,9,46,8)],dh={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)"},ph={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ma(e){return`${Math.round(e)}ms`}function fh(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function hh(e){const t={...dh,...e.easing},n={...ph,...e.duration};return{getAutoHeightDuration:fh,create:(o=["all"],s={})=>{const{duration:i=n.standard,easing:a=t.easeInOut,delay:l=0,...c}=s;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:ma(i)} ${a} ${typeof l=="string"?l:ma(l)}`).join(",")},...e,easing:t,duration:n}}const mh={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function gh(e){return kt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Yl(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let s=0;s<o.length;s++){const[i,a]=o[s];!gh(a)||i.startsWith("unstable_")?delete r[i]:kt(a)&&(r[i]={...a},n(r[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
10
-
11
- const theme = ${JSON.stringify(t,null,2)};
12
-
13
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
14
- theme.transitions = createTransitions(theme.transitions || {});
15
-
16
- export default theme;`}function ga(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const yh=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function bh(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:uo(t,yh(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${ga(n)})`:Oo(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${ga(n)})`:$o(t,n)}})}function ms(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:s={},transitions:i={},typography:a={},shape:l,colorSpace:c,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Ot(20));const p=Ws({...s,colorSpace:c}),m=Hs(e);let b=Ge(m,{mixins:oh(m.breakpoints,r),palette:p,shadows:uh.slice(),typography:ih(p,a),transitions:hh(i),zIndex:{...mh}});return b=Ge(b,u),b=t.reduce((d,h)=>Ge(d,h),b),b.unstable_sxConfig={...Er,...u?.unstable_sxConfig},b.unstable_sx=function(h){return An({sx:h,theme:this})},b.toRuntimeSource=Yl,bh(b),b}function gs(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 vh=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=gs(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Gl(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function ql(e){return e==="dark"?vh:[]}function xh(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...s}=e,i=Ws({...t,colorSpace:o});return{palette:i,opacity:{...Gl(i.mode),...n},overlays:r||ql(i.mode),...s}}function Sh(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const wh=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Ch=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let s=o;if(o==="class"&&(s=".%s"),o==="data"&&(s="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(s=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return wh(e.cssVarPrefix).forEach(a=>{i[a]=n[a],delete n[a]}),s==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:s?{[s.replace("%s",t)]:i,[`${r}, ${s.replace("%s",t)}`]:n}:{[r]:{...n,...i}}}if(s&&s!=="media")return`${r}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(s)return s.replace("%s",String(t))}return r};function Ph(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function U(e,t,n){!e[t]&&n&&(e[t]=n)}function lr(e){return typeof e!="string"||!e.startsWith("hsl")?e:Bl(e)}function It(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ar(lr(e[t])))}function kh(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Ct=e=>{try{return e()}catch{}},Mh=(e="mui")=>He.unstable_createGetCssVar(e);function ns(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const s=o==="dark"?"dark":"light";if(!r){t[o]=xh({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:i,...a}=ms({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[o]={...n,palette:i,opacity:{...Gl(s),...n?.opacity},overlays:n?.overlays||ql(s)},a}function Th(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:i=!1,shouldSkipGeneratingVar:a=Sh,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...u}=e,p=Object.keys(n)[0],m=r||(n.light&&p!=="light"?"light":p),b=Mh(s),{[m]:d,light:h,dark:g,...w}=n,C={...w};let S=d;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(S=!0),!S)throw new Error(Ot(21,m));let x;i&&(x="oklch");const P=ns(x,C,S,u,m);h&&!C.light&&ns(x,C,h,void 0,"light"),g&&!C.dark&&ns(x,C,g,void 0,"dark");let k={defaultColorScheme:m,...P,cssVarPrefix:s,colorSchemeSelector:l,rootSelector:c,getCssVar:b,colorSchemes:C,font:{...th(P.typography),...P.font},spacing:kh(u.spacing)};Object.keys(k.colorSchemes).forEach(E=>{const y=k.colorSchemes[E].palette,$=M=>{const T=M.split("-"),O=T[1],A=T[2];return b(M,y[O][A])};y.mode==="light"&&(U(y.common,"background","#fff"),U(y.common,"onBackground","#000")),y.mode==="dark"&&(U(y.common,"background","#000"),U(y.common,"onBackground","#fff"));function D(M,T,O){if(x){let A;return M===Zt&&(A=`transparent ${((1-O)*100).toFixed(0)}%`),M===Te&&(A=`#000 ${(O*100).toFixed(0)}%`),M===De&&(A=`#fff ${(O*100).toFixed(0)}%`),`color-mix(in ${x}, ${T}, ${A})`}return M(T,O)}if(Ph(y,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),y.mode==="light"){U(y.Alert,"errorColor",D(Te,y.error.light,.6)),U(y.Alert,"infoColor",D(Te,y.info.light,.6)),U(y.Alert,"successColor",D(Te,y.success.light,.6)),U(y.Alert,"warningColor",D(Te,y.warning.light,.6)),U(y.Alert,"errorFilledBg",$("palette-error-main")),U(y.Alert,"infoFilledBg",$("palette-info-main")),U(y.Alert,"successFilledBg",$("palette-success-main")),U(y.Alert,"warningFilledBg",$("palette-warning-main")),U(y.Alert,"errorFilledColor",Ct(()=>y.getContrastText(y.error.main))),U(y.Alert,"infoFilledColor",Ct(()=>y.getContrastText(y.info.main))),U(y.Alert,"successFilledColor",Ct(()=>y.getContrastText(y.success.main))),U(y.Alert,"warningFilledColor",Ct(()=>y.getContrastText(y.warning.main))),U(y.Alert,"errorStandardBg",D(De,y.error.light,.9)),U(y.Alert,"infoStandardBg",D(De,y.info.light,.9)),U(y.Alert,"successStandardBg",D(De,y.success.light,.9)),U(y.Alert,"warningStandardBg",D(De,y.warning.light,.9)),U(y.Alert,"errorIconColor",$("palette-error-main")),U(y.Alert,"infoIconColor",$("palette-info-main")),U(y.Alert,"successIconColor",$("palette-success-main")),U(y.Alert,"warningIconColor",$("palette-warning-main")),U(y.AppBar,"defaultBg",$("palette-grey-100")),U(y.Avatar,"defaultBg",$("palette-grey-400")),U(y.Button,"inheritContainedBg",$("palette-grey-300")),U(y.Button,"inheritContainedHoverBg",$("palette-grey-A100")),U(y.Chip,"defaultBorder",$("palette-grey-400")),U(y.Chip,"defaultAvatarColor",$("palette-grey-700")),U(y.Chip,"defaultIconColor",$("palette-grey-700")),U(y.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),U(y.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),U(y.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),U(y.LinearProgress,"primaryBg",D(De,y.primary.main,.62)),U(y.LinearProgress,"secondaryBg",D(De,y.secondary.main,.62)),U(y.LinearProgress,"errorBg",D(De,y.error.main,.62)),U(y.LinearProgress,"infoBg",D(De,y.info.main,.62)),U(y.LinearProgress,"successBg",D(De,y.success.main,.62)),U(y.LinearProgress,"warningBg",D(De,y.warning.main,.62)),U(y.Skeleton,"bg",x?D(Zt,y.text.primary,.11):`rgba(${$("palette-text-primaryChannel")} / 0.11)`),U(y.Slider,"primaryTrack",D(De,y.primary.main,.62)),U(y.Slider,"secondaryTrack",D(De,y.secondary.main,.62)),U(y.Slider,"errorTrack",D(De,y.error.main,.62)),U(y.Slider,"infoTrack",D(De,y.info.main,.62)),U(y.Slider,"successTrack",D(De,y.success.main,.62)),U(y.Slider,"warningTrack",D(De,y.warning.main,.62));const M=x?D(Te,y.background.default,.6825):Wr(y.background.default,.8);U(y.SnackbarContent,"bg",M),U(y.SnackbarContent,"color",Ct(()=>x?hs.text.primary:y.getContrastText(M))),U(y.SpeedDialAction,"fabHoverBg",Wr(y.background.paper,.15)),U(y.StepConnector,"border",$("palette-grey-400")),U(y.StepContent,"border",$("palette-grey-400")),U(y.Switch,"defaultColor",$("palette-common-white")),U(y.Switch,"defaultDisabledColor",$("palette-grey-100")),U(y.Switch,"primaryDisabledColor",D(De,y.primary.main,.62)),U(y.Switch,"secondaryDisabledColor",D(De,y.secondary.main,.62)),U(y.Switch,"errorDisabledColor",D(De,y.error.main,.62)),U(y.Switch,"infoDisabledColor",D(De,y.info.main,.62)),U(y.Switch,"successDisabledColor",D(De,y.success.main,.62)),U(y.Switch,"warningDisabledColor",D(De,y.warning.main,.62)),U(y.TableCell,"border",D(De,D(Zt,y.divider,1),.88)),U(y.Tooltip,"bg",D(Zt,y.grey[700],.92))}if(y.mode==="dark"){U(y.Alert,"errorColor",D(De,y.error.light,.6)),U(y.Alert,"infoColor",D(De,y.info.light,.6)),U(y.Alert,"successColor",D(De,y.success.light,.6)),U(y.Alert,"warningColor",D(De,y.warning.light,.6)),U(y.Alert,"errorFilledBg",$("palette-error-dark")),U(y.Alert,"infoFilledBg",$("palette-info-dark")),U(y.Alert,"successFilledBg",$("palette-success-dark")),U(y.Alert,"warningFilledBg",$("palette-warning-dark")),U(y.Alert,"errorFilledColor",Ct(()=>y.getContrastText(y.error.dark))),U(y.Alert,"infoFilledColor",Ct(()=>y.getContrastText(y.info.dark))),U(y.Alert,"successFilledColor",Ct(()=>y.getContrastText(y.success.dark))),U(y.Alert,"warningFilledColor",Ct(()=>y.getContrastText(y.warning.dark))),U(y.Alert,"errorStandardBg",D(Te,y.error.light,.9)),U(y.Alert,"infoStandardBg",D(Te,y.info.light,.9)),U(y.Alert,"successStandardBg",D(Te,y.success.light,.9)),U(y.Alert,"warningStandardBg",D(Te,y.warning.light,.9)),U(y.Alert,"errorIconColor",$("palette-error-main")),U(y.Alert,"infoIconColor",$("palette-info-main")),U(y.Alert,"successIconColor",$("palette-success-main")),U(y.Alert,"warningIconColor",$("palette-warning-main")),U(y.AppBar,"defaultBg",$("palette-grey-900")),U(y.AppBar,"darkBg",$("palette-background-paper")),U(y.AppBar,"darkColor",$("palette-text-primary")),U(y.Avatar,"defaultBg",$("palette-grey-600")),U(y.Button,"inheritContainedBg",$("palette-grey-800")),U(y.Button,"inheritContainedHoverBg",$("palette-grey-700")),U(y.Chip,"defaultBorder",$("palette-grey-700")),U(y.Chip,"defaultAvatarColor",$("palette-grey-300")),U(y.Chip,"defaultIconColor",$("palette-grey-300")),U(y.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),U(y.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),U(y.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),U(y.LinearProgress,"primaryBg",D(Te,y.primary.main,.5)),U(y.LinearProgress,"secondaryBg",D(Te,y.secondary.main,.5)),U(y.LinearProgress,"errorBg",D(Te,y.error.main,.5)),U(y.LinearProgress,"infoBg",D(Te,y.info.main,.5)),U(y.LinearProgress,"successBg",D(Te,y.success.main,.5)),U(y.LinearProgress,"warningBg",D(Te,y.warning.main,.5)),U(y.Skeleton,"bg",x?D(Zt,y.text.primary,.13):`rgba(${$("palette-text-primaryChannel")} / 0.13)`),U(y.Slider,"primaryTrack",D(Te,y.primary.main,.5)),U(y.Slider,"secondaryTrack",D(Te,y.secondary.main,.5)),U(y.Slider,"errorTrack",D(Te,y.error.main,.5)),U(y.Slider,"infoTrack",D(Te,y.info.main,.5)),U(y.Slider,"successTrack",D(Te,y.success.main,.5)),U(y.Slider,"warningTrack",D(Te,y.warning.main,.5));const M=x?D(De,y.background.default,.985):Wr(y.background.default,.98);U(y.SnackbarContent,"bg",M),U(y.SnackbarContent,"color",Ct(()=>x?_l.text.primary:y.getContrastText(M))),U(y.SpeedDialAction,"fabHoverBg",Wr(y.background.paper,.15)),U(y.StepConnector,"border",$("palette-grey-600")),U(y.StepContent,"border",$("palette-grey-600")),U(y.Switch,"defaultColor",$("palette-grey-300")),U(y.Switch,"defaultDisabledColor",$("palette-grey-600")),U(y.Switch,"primaryDisabledColor",D(Te,y.primary.main,.55)),U(y.Switch,"secondaryDisabledColor",D(Te,y.secondary.main,.55)),U(y.Switch,"errorDisabledColor",D(Te,y.error.main,.55)),U(y.Switch,"infoDisabledColor",D(Te,y.info.main,.55)),U(y.Switch,"successDisabledColor",D(Te,y.success.main,.55)),U(y.Switch,"warningDisabledColor",D(Te,y.warning.main,.55)),U(y.TableCell,"border",D(Te,D(Zt,y.divider,1),.68)),U(y.Tooltip,"bg",D(Zt,y.grey[700],.92))}It(y.background,"default"),It(y.background,"paper"),It(y.common,"background"),It(y.common,"onBackground"),It(y,"divider"),Object.keys(y).forEach(M=>{const T=y[M];M!=="tonalOffset"&&T&&typeof T=="object"&&(T.main&&U(y[M],"mainChannel",ar(lr(T.main))),T.light&&U(y[M],"lightChannel",ar(lr(T.light))),T.dark&&U(y[M],"darkChannel",ar(lr(T.dark))),T.contrastText&&U(y[M],"contrastTextChannel",ar(lr(T.contrastText))),M==="text"&&(It(y[M],"primary"),It(y[M],"secondary")),M==="action"&&(T.active&&It(y[M],"active"),T.selected&&It(y[M],"selected")))})}),k=t.reduce((E,y)=>Ge(E,y),k);const I={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:Ch(k),enableContrastVars:i},{vars:R,generateThemeVars:N,generateStyleSheets:F}=eh(k,I);return k.vars=R,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([E,y])=>{k[E]=y}),k.generateThemeVars=N,k.generateStyleSheets=F,k.generateSpacing=function(){return He.createSpacing(u.spacing,Vs(this))},k.getColorSchemeSelector=nh(l),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=a,k.unstable_sxConfig={...Er,...u?.unstable_sxConfig},k.unstable_sx=function(y){return An({sx:y,theme:this})},k.toRuntimeSource=Yl,k}function ya(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ws({...n===!0?{}:n.palette,mode:t})})}function Kl(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:s=n?.mode,...i}=e,a=s||"light",l=o?.[a],c={...o,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return ms(e,...t);let u=n;"palette"in e||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));const p=ms({...e,palette:u},...t);return p.defaultColorScheme=a,p.colorSchemes=c,p.palette.mode==="light"&&(p.colorSchemes.light={...c.light!==!0&&c.light,palette:p.palette},ya(p,"dark",c.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:p.palette},ya(p,"light",c.light)),p}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),Th({...i,colorSchemes:c,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const Ao=Kl(),Wn="$$material";function mn(){const e=He.useTheme(Ao);return e[Wn]||e}function Dh(e){return f.jsx(He.GlobalStyles,{...e,defaultTheme:Ao,themeId:Wn})}function Rh(e){const{variants:t,...n}=e,r={variants:t,style:ln(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=ln(o.style))}),r}const Ih=Hs();function rs(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function sn(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Eh(e){return e?(t,n)=>n[e]:null}function $h(e,t,n){e.theme=Fh(e.theme)?n:e.theme[t]||e.theme}function Zr(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Zr(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?sn(r.style,n):r.style;else{const{variants:s,...i}=r;o=n?sn(ln(i),n):i}return Xl(e,r.variants,[o],n)}return r?.isProcessed?n?sn(ln(r.style),n):r.style:n?sn(ln(r),n):r}function Xl(e,t,n=[],r=void 0){let o;e:for(let s=0;s<t.length;s+=1){const i=t[s];if(typeof i.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(o))continue}else for(const a in i.props)if(e[a]!==i.props[a]&&e.ownerState?.[a]!==i.props[a])continue e;typeof i.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?sn(ln(i.style(o)),r):i.style(o))):n.push(r?sn(ln(i.style),r):i.style)}return n}function Oh(e={}){const{themeId:t,defaultTheme:n=Ih,rootShouldForwardProp:r=rs,slotShouldForwardProp:o=rs}=e;function s(a){$h(a,t,n)}return(a,l={})=>{Nf(a,k=>k.filter(I=>I!==An));const{name:c,slot:u,skipVariantsResolver:p,skipSx:m,overridesResolver:b=Eh(Nh(u)),...d}=l,h=c&&c.startsWith("Mui")||u?"components":"custom",g=p!==void 0?p:u&&u!=="Root"&&u!=="root"||!1,w=m||!1;let C=rs;u==="Root"||u==="root"?C=r:u?C=o:Lh(a)&&(C=void 0);const S=Lf(a,{shouldForwardProp:C,label:Ah(),...d}),x=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(R){return Zr(R,k,R.theme.modularCssLayers?h:void 0)};if(kt(k)){const I=Rh(k);return function(N){return I.variants?Zr(N,I,N.theme.modularCssLayers?h:void 0):N.theme.modularCssLayers?sn(I.style,h):I.style}}return k},P=(...k)=>{const I=[],R=k.map(x),N=[];if(I.push(s),c&&b&&N.push(function($){const M=$.theme.components?.[c]?.styleOverrides;if(!M)return null;const T={};for(const O in M)T[O]=Zr($,M[O],$.theme.modularCssLayers?"theme":void 0);return b($,T)}),c&&!g&&N.push(function($){const M=$.theme?.components?.[c]?.variants;return M?Xl($,M,[],$.theme.modularCssLayers?"theme":void 0):null}),w||N.push(An),Array.isArray(R[0])){const y=R.shift(),$=new Array(I.length).fill(""),D=new Array(N.length).fill("");let M;M=[...$,...y,...D],M.raw=[...$,...y.raw,...D],I.unshift(M)}const F=[...I,...R,...N],E=S(...F);return a.muiName&&(E.muiName=a.muiName),E};return S.withConfig&&(P.withConfig=S.withConfig),P}}function Ah(e,t){return void 0}function Fh(e){for(const t in e)return!1;return!0}function Lh(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Nh(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Ql(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const pt=e=>Ql(e)&&e!=="classes",Y=Oh({themeId:Wn,defaultTheme:Ao,rootShouldForwardProp:pt});function jh(e){return function(n){return f.jsx(Dh,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function Bh(){return gf}const Ee=He.unstable_memoTheme;function Ce(e){return _f(e)}function he(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ge(e,o,n)}),r}function Vh(e){return ge("MuiSvgIcon",e)}he("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const zh=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${le(t)}`,`fontSize${le(n)}`]};return me(o,Vh,r)},_h=Y("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${le(n.color)}`],t[`fontSize${le(n.fontSize)}`]]}})(Ee(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),fo=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:p,viewBox:m="0 0 24 24",...b}=r,d=v.isValidElement(o)&&o.type==="svg",h={...r,color:i,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:m,hasSvgAsChild:d},g={};u||(g.viewBox=m);const w=zh(h);return f.jsxs(_h,{as:a,className:de(w.root,s),focusable:"false",color:c,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...g,...b,...d&&o.props,ownerState:h,children:[d?o.props.children:o,p?f.jsx("title",{children:p}):null]})});fo.muiName="SvgIcon";function $e(e,t){function n(r,o){return f.jsx(fo,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=fo.muiName,v.memo(v.forwardRef(n))}function Zl(e,t=166){let n;function r(...o){const s=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function Jr(e,t){return v.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Ye(e){return e&&e.ownerDocument||document}function Ft(e){return Ye(e).defaultView||window}function ys(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Tt(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:s}=v.useRef(t!==void 0),[i,a]=v.useState(n),l=s?t:i,c=v.useCallback(u=>{s||a(u)},[]);return[l,c]}function ue(e){const t=v.useRef(e);return Ue(()=>{t.current=e}),v.useRef((...n)=>(0,t.current)(...n)).current}function ke(...e){const t=v.useRef(void 0),n=v.useCallback(r=>{const o=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const i=s,a=i(r);return typeof a=="function"?a:()=>{i(null)}}return s.current=r,()=>{s.current=null}});return()=>{o.forEach(s=>s?.())}},e);return v.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function Wh(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Jl(e,t){if(!e)return t;function n(i,a){const l={};return Object.keys(a).forEach(c=>{Wh(c,a[c])&&typeof i[c]=="function"&&(l[c]=(...u)=>{i[c](...u),a[c](...u)})}),l}if(typeof e=="function"||typeof t=="function")return i=>{const a=typeof t=="function"?t(i):t,l=typeof e=="function"?e({...i,...a}):e,c=de(i?.className,a?.className,l?.className),u=n(l,a);return{...a,...l,...u,...!!c&&{className:c},...a?.style&&l?.style&&{style:{...a.style,...l.style}},...a?.sx&&l?.sx&&{sx:[...Array.isArray(a.sx)?a.sx:[a.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const r=t,o=n(e,r),s=de(r?.className,e?.className);return{...t,...e,...o,...!!s&&{className:s},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const Us=$e(f.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),Hh=2,Uh=24,Yh=(e,t,n)=>Math.min(Math.max(e+t,1),Math.min(n,Uh)),cn=16,Gh=cn/2;function qh(e,t){const n=Math.min(e.colspan??1,t);return e.break?`1 / span ${n}`:`span ${n}`}const ec=240;function Kh(e,t,n=ec){const[r,o]=ee.useState(0);return ee.useEffect(()=>{const s=e.current;if(!s||typeof ResizeObserver>"u")return;o(s.getBoundingClientRect().width);const i=new ResizeObserver(([a])=>o(a?.contentRect.width??0));return i.observe(s),()=>i.disconnect()},[e]),tc(t,r,n)}function tc(e,t,n){if(!(t>0)||e<=1)return 1;const r=(t-(e-1)*cn)/e;return Math.min(e,Math.max(1,Math.ceil((n+cn)/(r+cn))))}function Xh({tiles:e,columns:t,keyOf:n,renderTile:r,minTilePx:o,rowGapPx:s=cn}){const i=ee.useRef(null),[a,l]=ee.useState(0);ee.useEffect(()=>{const u=i.current;if(o===void 0||!u||typeof ResizeObserver>"u")return;const p=new ResizeObserver(([m])=>l(m?.contentRect.width??0));return p.observe(u),()=>p.disconnect()},[o]);const c=o===void 0?1:tc(t,a,o);return f.jsx(W.Box,{ref:i,sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:`repeat(${t}, minmax(0, 1fr))`},columnGap:`${cn}px`,rowGap:`${s}px`},children:e.map((u,p)=>f.jsx(W.Box,{sx:{display:"grid",minWidth:0,gridColumn:{md:qh(u.colspan===void 0&&c>1?{...u,colspan:c}:u,t)}},children:r(u,p)},n(u,p)))})}const nc=(e,t)=>({...t,...e}),rc={emit:()=>{},listening:!1};function ho(e,t){return t?{listening:!0,emit:n=>{try{t(nc(n,e))}catch{}}}:rc}function Qh(e,t){const n=ee.useRef(t);n.current=t;const r=t!==void 0,{path:o,layout:s}=e;return ee.useMemo(()=>ho({path:o,...s?{layout:s}:{}},r?i=>n.current?.(i):void 0),[o,s,r])}const oc=ee.createContext(rc),Ys=()=>ee.useContext(oc);function sc(e){const t=e,n=typeof t?.status=="number"?t.status:typeof t?.response?.status=="number"?t.response.status:void 0;return n===void 0?t?.code==="ERR_NETWORK"?"network":"unknown":n===404?"not_found":n===401||n===403?"forbidden":n===501?"unsupported":n>=500?"server":n>=400?"invalid":"unknown"}const Fo=$e(f.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"}));function ic({open:e,onClose:t,title:n,description:r,maxWidth:o="sm",showClose:s=!1,actions:i,initialFocus:a,className:l,children:c}){const u=ee.useId(),p=Se.usePublisherTheme().theme.ui;return f.jsxs(W.Dialog,{open:e,onClose:t,maxWidth:o,fullWidth:!0,"aria-labelledby":u,...l?{className:l}:{},PaperProps:{sx:{borderRadius:p.radius.dialog}},...a?{TransitionProps:{onEntered:()=>a.current?.focus()}}:{},children:[f.jsxs(W.DialogTitle,{id:u,sx:{px:3,pt:3,pb:r?.5:1,display:"flex",alignItems:"center",justifyContent:"space-between",gap:1,fontSize:"1.25rem",fontWeight:"fontWeightMedium",letterSpacing:"-0.025em",lineHeight:1.2},children:[n,s&&f.jsx(W.IconButton,{"aria-label":"Close",onClick:t,size:"small",sx:{color:"text.secondary",mr:-1},children:f.jsx(Fo,{fontSize:"small"})})]}),f.jsxs(W.DialogContent,{sx:{px:3,pb:1,pt:1},children:[r&&f.jsx(W.Typography,{variant:"body2",color:"text.secondary",sx:{mb:2},children:r}),f.jsx(W.Stack,{sx:{gap:2,pt:r?0:1},children:c})]}),i&&f.jsx(W.DialogActions,{sx:{px:3,pb:3,pt:2,gap:1},children:i})]})}function Zh({open:e,canSave:t,onKeepEditing:n,onDiscard:r,onSaveAndExit:o}){return f.jsx(ic,{open:e,onClose:n,title:"Leave with unsaved changes?",description:t&&o?"Your edits have not been saved. Save them, or leave without them.":"Leaving now discards your unsaved edits.",actions:f.jsxs(f.Fragment,{children:[f.jsx(W.Button,{onClick:n,children:"Keep editing"}),f.jsx(W.Button,{color:"error",onClick:r,children:"Discard changes"}),t&&o&&f.jsx(W.Button,{variant:"contained",onClick:o,children:"Save and exit"})]}),children:null})}const Jh=$e(f.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}));function em({label:e,onClick:t,disabled:n}){return f.jsx(W.Button,{variant:"contained",color:"primary",startIcon:f.jsx(Us,{}),onClick:t,disabled:n,"aria-label":`Add ${e.toLowerCase()}`,sx:{whiteSpace:"nowrap"},children:e})}function tm({label:e,icon:t,onClick:n,disabled:r,disabledReason:o,ariaLabel:s,ariaHasPopup:i}){const a=f.jsx("span",{children:f.jsx(W.Button,{variant:"outlined",startIcon:t,onClick:n,disabled:r,"aria-label":s,"aria-haspopup":i,sx:{whiteSpace:"nowrap"},children:e})});return r&&o?f.jsx(W.Tooltip,{title:o,children:a}):a}Se.DEFAULT_UI.size.control;Se.DEFAULT_UI.size.chip;Se.DEFAULT_UI.radius.control;Se.DEFAULT_UI.radius.tile;Se.DEFAULT_UI.radius.dialog;Se.DEFAULT_UI.type;const ac="72ch",Hn=e=>e.replace(/^1px solid /,""),Gs=(e,t)=>`color-mix(in srgb, ${Hn(e)}, ${t} 25%)`,nm=$e(f.jsx("path",{d:"M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z"})),rm=$e(f.jsx("path",{d:"m20.5 3-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5M15 19l-6-2.11V5l6 2.11z"})),om=$e(f.jsx("path",{d:"m20.5 10 .5-2h-4l1-4h-2l-1 4h-4l1-4h-2L9 8H5l-.5 2h4l-1 4h-4L3 16h4l-1 4h2l1-4h4l-1 4h2l1-4h4l.5-2h-4l1-4zm-7 4h-4l1-4h4z"})),sm=$e([f.jsx("circle",{cx:"7",cy:"14",r:"3"},"0"),f.jsx("circle",{cx:"11",cy:"6",r:"3"},"1"),f.jsx("circle",{cx:"16.6",cy:"17.6",r:"3"},"2")]),lc=$e(f.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"})),im=$e(f.jsx("path",{d:"m3.5 18.49 6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"})),am=$e(f.jsx("path",{d:"M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2M3 19c0 1.1.9 2 2 2h3V10H3z"}));function lm(e){const t=e.replace(/_+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)}function cc({chart:e}){const t={fontSize:16};switch(e){case"bar_chart":return f.jsx(nm,{sx:t});case"line_chart":case"sparkline":return f.jsx(im,{sx:t});case"scatter_chart":return f.jsx(sm,{sx:t});case"shape_map":case"segment_map":return f.jsx(rm,{sx:t});case"big_value":return f.jsx(om,{sx:t});default:return f.jsx(am,{sx:t})}}function cm({groups:e,query:t,onQuery:n,picked:r,onPick:o,onTake:s,searchRef:i,empty:a,footer:l,disabled:c=!1}){const{theme:u}=Se.usePublisherTheme(),p=u.ui,m=ee.useId(),b=t.trim().toLowerCase(),d=ee.useMemo(()=>e.map(P=>({...P,entries:P.entries.filter(k=>b===""||[k.name,k.title,P.label,P.detail??""].join(" ").toLowerCase().includes(b))})).filter(P=>P.entries.length>0),[e,b]),h=d.flatMap(P=>P.entries),g=ee.useMemo(()=>new Map(e.flatMap(P=>P.entries).map((P,k)=>[P.key,`${m}-${k}`])),[e,m]),w=P=>g.get(P)??`${m}-none`,C=h.some(P=>P.key===r)?r:void 0,S=P=>{o(P),window.requestAnimationFrame(()=>window.document.getElementById(w(P))?.scrollIntoView({block:"nearest"}))},x=P=>{if(h.length===0)return;const k=h.findIndex(R=>R.key===C),I=k===-1?P===1?0:h.length-1:Math.min(h.length-1,Math.max(0,k+P));S(h[I].key)};return f.jsxs(W.Box,{sx:{display:"flex",flexDirection:"column",minHeight:0,flex:1},children:[f.jsx(W.Box,{sx:{p:1.5,pb:1},children:f.jsx(W.TextField,{size:"small",fullWidth:!0,inputRef:i,placeholder:"Search views",value:t,disabled:c,onChange:P=>n(P.target.value),onKeyDown:P=>{if(P.key==="ArrowDown")P.preventDefault(),x(1);else if(P.key==="ArrowUp")P.preventDefault(),x(-1);else if(P.key==="Enter"){const k=C??h[0]?.key;if(k===void 0)return;P.preventDefault(),s(k)}},inputProps:{"aria-label":"Search views",role:"combobox","aria-controls":m,"aria-expanded":!0,...C!==void 0?{"aria-activedescendant":w(C)}:{}},InputProps:{startAdornment:f.jsx(W.InputAdornment,{position:"start",children:f.jsx(lc,{sx:{fontSize:18,color:"text.secondary"}})})}})}),f.jsxs(W.Box,{id:m,role:"listbox","aria-label":"Views",sx:{overflowY:"auto",flex:1,minHeight:0,pb:1},children:[e.length===0&&a,e.length>0&&d.length===0&&f.jsxs(W.Typography,{variant:"body2",sx:{color:u.tileTitle,px:2,py:1},children:["No view matches “",t.trim(),"”."]}),d.map(P=>f.jsxs(W.Box,{role:"group","aria-label":P.ariaLabel??P.label,children:[f.jsxs(W.Box,{"aria-hidden":!0,sx:{px:2,pt:1.25,pb:.5,...p.type.caption,color:"text.secondary",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:[f.jsx(W.Box,{component:"span",sx:{...p.type.label,fontSize:"0.92em",letterSpacing:"0.04em",textTransform:"uppercase"},children:P.label.replace(/_+/g," ")}),P.detail&&` · ${P.detail}`]}),P.entries.map(k=>{const I=k.key===r;return f.jsxs(W.Box,{id:w(k.key),role:"option","aria-selected":I,"aria-label":`${k.title} (${k.name})`,onClick:()=>{c||S(k.key)},onDoubleClick:()=>{c||s(k.key)},sx:R=>({display:"flex",alignItems:"center",gap:1.25,mx:.75,px:1.25,py:.75,borderRadius:p.radius.control,cursor:c?"default":"pointer",bgcolor:I?`color-mix(in srgb, ${u.accent} 9%, ${R.palette.background.paper})`:"transparent","&:hover":I||c?{}:{bgcolor:R.palette.action.hover}}),children:[f.jsx(W.Box,{"aria-hidden":!0,sx:R=>({width:26,height:26,flex:"none",borderRadius:p.radius.control,display:"flex",alignItems:"center",justifyContent:"center",color:I?u.accent:R.palette.text.secondary,bgcolor:I?R.palette.background.paper:R.palette.action.hover,boxShadow:I?`inset 0 0 0 1px color-mix(in srgb, ${u.accent} 35%, transparent)`:"none"}),children:f.jsx(cc,{chart:k.chart})}),f.jsxs(W.Box,{sx:{minWidth:0},children:[f.jsx(W.Box,{sx:{...p.type.control,fontWeight:I?p.type.label.fontWeight:400,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:k.title}),f.jsx(W.Box,{sx:{...p.type.code,color:"text.secondary"},children:k.name})]})]},k.key)})]},P.key)),b===""&&l]})]})}const uc="document.malloy",dc=e=>e.slice(0,e.lastIndexOf("/")+1),pc=(e,t)=>new URL(e,`https://malloy.invalid/${dc(t)}`).pathname.slice(1);function fc(e,t){const n=dc(t).split("/").filter(Boolean),r=e.split("/");let o=0;for(;o<n.length&&o<r.length-1&&n[o]===r[o];)o++;const s=n.length-o;return`${"../".repeat(s)}${r.slice(o).join("/")}`}function um(e,t,n,r=uc,o=[n]){return e.sources.some(s=>s.base===t)?!0:e.imports.some(s=>s.kind==="names"?s.names.includes(t):o.includes(pc(s.from,r)))}function dm(e,t,n,r=uc,o=[n]){const{imports:s}=e;if(um(e,t,n,r,o))return s;const i=s.findIndex(a=>a.kind==="names"&&o.includes(pc(a.from,r)));return i<0?[...s,{kind:"names",names:[t],from:fc(n,r)}]:s.map((a,l)=>l===i&&a.kind==="names"?{...a,names:[...a.names,t]}:a)}const pm=$e(f.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"})),hc=$e(f.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),$r="120ms",Or={"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}},fm=()=>typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches?"auto":"smooth",mc={"@media (hover: none)":{opacity:1}},hm=e=>e.palette.mode==="dark"?e.palette.error.main:e.palette.error.dark,mm=$e(f.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m-5.5-2.5 7.51-3.49L17.5 6.5 9.99 9.99zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1"})),gm=600,ba=()=>typeof IntersectionObserver>"u";function ym(e){for(let t=e.parentElement;t;t=t.parentElement){const{overflowY:n}=getComputedStyle(t);if((n==="auto"||n==="scroll")&&t.scrollHeight>t.clientHeight)return t}return null}function bm(e=gm){const[t,n]=ee.useState(ba),r=ee.useRef(t),o=ee.useRef(null),s=ee.useCallback(i=>{if(o.current?.disconnect(),o.current=null,!i||r.current||ba())return;const a=i.getBoundingClientRect(),l=ym(i),c=l?.getBoundingClientRect()??{top:0,bottom:window.innerHeight||document.documentElement.clientHeight};if(a.bottom>=c.top-e&&a.top<=c.bottom+e){r.current=!0,n(!0);return}const u=new IntersectionObserver(p=>{p.some(m=>m.isIntersecting)&&(r.current=!0,u.disconnect(),n(!0))},{root:l,rootMargin:`${e}px 0px`});u.observe(i),o.current=u},[e]);return ee.useEffect(()=>()=>o.current?.disconnect(),[]),ee.useEffect(()=>{if(t||typeof window>"u")return;const i=()=>{r.current=!0,o.current?.disconnect(),n(!0)};return window.addEventListener("beforeprint",i),()=>window.removeEventListener("beforeprint",i)},[t]),[s,t]}function gc({summary:e,detail:t}){return f.jsxs(W.Alert,{severity:"error",sx:{"& .MuiAlert-message":{minWidth:0,flex:1}},children:[e!==void 0&&f.jsx(W.Box,{sx:{mb:.5},children:e}),f.jsx(W.Box,{component:"pre",sx:{m:0,whiteSpace:"pre-wrap",wordBreak:"break-word",fontFamily:Se.MONO_FONT_FAMILY,fontSize:"0.8125rem",color:"text.secondary"},children:t})]})}function yc({error:e,context:t}){const n=e.data?.message||"Unknown error";return f.jsx(gc,{summary:t,detail:n})}function vm(e){const t=xm(e);return{name:e.name,type:e.type,...t===void 0?{}:{default:t},...e.label===void 0?{}:{label:e.label},...e.description===void 0?{}:{description:e.description},...e.control===void 0?{}:{control:e.control},...e.suggest?{suggest:{...e.suggest.source===void 0?{}:{source:e.suggest.source},...e.suggest.query===void 0?{}:{query:e.suggest.query},dimension:e.suggest.dimension}}:{},...e.rangeMin===void 0?{}:{rangeMin:e.rangeMin},...e.rangeMax===void 0?{}:{rangeMax:e.rangeMax}}}function xm(e){return e.type?.startsWith("filter<")?e.default?.match(/^f(['"])([\s\S]*)\1$/)?.[2]??e.default:e.default}function bc(e){return e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}function Sm(e,t){if(e==null||e==="")return;const n=o=>`'${bc(o)}'`;switch(t===void 0?wm(e):t.startsWith("filter<")?"filter":t){case"filter":return`f${n(String(e))}`;case"string":return n(String(e));case"number":{const o=typeof e=="number"?e:Number(e);return Number.isFinite(o)?String(o):void 0}case"boolean":return e===!0||e==="true"?"true":"false";case"date":{const o=va(e);return o&&`@${o}`}case"timestamp":{const o=va(e);if(!o)return;const s=e instanceof Date?e.toISOString().slice(11,19):/[T ](\d{2}:\d{2}(?::\d{2})?)/.exec(String(e))?.[1]??"00:00:00";return`@${o} ${s}`}default:return}}function wm(e){if(typeof e=="string")return"string";if(typeof e=="number")return"number";if(typeof e=="boolean")return"boolean";if(e instanceof Date&&!Number.isNaN(e.getTime()))return e.toISOString().slice(11,19)==="00:00:00"?"date":"timestamp"}function va(e){return e instanceof Date?Number.isNaN(e.getTime())?void 0:e.toISOString().slice(0,10):/^(\d{4}-\d{2}-\d{2})/.exec(String(e))?.[1]}const Fn="malloy-publisher.report-draft:",Ln={storage:()=>window.localStorage};function Cm(e){const{server:t,environmentName:n,packageName:r,versionId:o,path:s}=e;return`${t}|${n}/${r}@${o??""}/${s}`}function Pm(e){if(typeof e=="string"){eo(e);return}const{server:t,environmentName:n,packageName:r,path:o}=e,s=`${n}/${r}@`,i=e.versionId!==void 0?`${e.versionId}/${o}`:void 0;try{const a=Ln.storage(),l=[];for(let c=0;c<a.length;c++){const u=a.key(c);if(!u?.startsWith(Fn))continue;const p=u.slice(Fn.length),m=p.indexOf("|");if(m===-1)continue;const[b,d]=[p.slice(0,m),p.slice(m+1)];if(t!==void 0&&b!==t||!d.startsWith(s))continue;const h=d.slice(s.length);(i!==void 0?h!==i:h.slice(h.indexOf("/")+1)!==o)||l.push(u)}for(const c of l)a.removeItem(c)}catch{}}function km(){try{const e=`${Fn}probe`;return Ln.storage().setItem(e,"1"),Ln.storage().removeItem(e),!0}catch{return!1}}function Mm(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n)|0;return`${e.length}:${(t>>>0).toString(36)}`}function Tm(e){try{const t=Ln.storage().getItem(Fn+e);if(!t)return;const n=JSON.parse(t);return n?.v===1&&n.document?n:void 0}catch{return}}function Dm(e,t){try{return Ln.storage().setItem(Fn+e,JSON.stringify(t)),!0}catch{return!1}}function eo(e){try{Ln.storage().removeItem(Fn+e)}catch{}}function os(e,t){const n=e;for(const r of Object.keys(n))delete n[r];Object.assign(n,structuredClone(t))}function Rm(e,t,n){const[r,o]=ee.useState(),[s,i]=ee.useState(),[a,l]=ee.useState(!1),c=ee.useRef(void 0),u=Mm(n),p=ee.useRef(t);p.current=t;const m=ee.useRef(!1);ee.useEffect(()=>{if(e===void 0||m.current)return;m.current=!0;const C=Tm(e);if(!C)return;const S=p.current;if(JSON.stringify(C.document)===JSON.stringify(S.document)){eo(e);return}if(C.base!==u){c.current=C,o({savedAt:C.savedAt,stale:!0,pending:!0});return}S.update(x=>os(x,C.document)),o({savedAt:C.savedAt,stale:!1,pending:!1})},[e]);const{document:b,dirty:d}=t;ee.useEffect(()=>{if(e===void 0||!m.current||c.current&&!d)return;if(c.current=void 0,!d){eo(e),i(void 0),l(!1);return}const C=Date.now();Dm(e,{v:1,document:b,base:u,savedAt:C})?(i(C),l(!1)):(i(void 0),l(!0))},[e,b,d,u]);const h=ee.useCallback(()=>{const C=c.current;C&&(c.current=void 0,p.current.update(S=>os(S,C.document)),o(S=>S&&{...S,pending:!1}))},[]),g=ee.useCallback(()=>o(void 0),[]),w=ee.useCallback(()=>{if(c.current&&e!==void 0){c.current=void 0,eo(e),o(void 0);return}const C=p.current;C.update(S=>os(S,C.saved)),o(void 0)},[e]);return{keptAt:s,keeping:!a,restored:r,dismissRestored:g,discard:w,restoreOffered:h}}var to={exports:{}},Im=to.exports,xa;function Em(){return xa||(xa=1,(function(e,t){(function(n,r){e.exports=r()})(Im,(function(){var n=1e3,r=6e4,o=36e5,s="millisecond",i="second",a="minute",l="hour",c="day",u="week",p="month",m="quarter",b="year",d="date",h="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var M=["th","st","nd","rd"],T=D%100;return"["+D+(M[(T-20)%10]||M[T]||M[0])+"]"}},S=function(D,M,T){var O=String(D);return!O||O.length>=M?D:""+Array(M+1-O.length).join(T)+D},x={s:S,z:function(D){var M=-D.utcOffset(),T=Math.abs(M),O=Math.floor(T/60),A=T%60;return(M<=0?"+":"-")+S(O,2,"0")+":"+S(A,2,"0")},m:function D(M,T){if(M.date()<T.date())return-D(T,M);var O=12*(T.year()-M.year())+(T.month()-M.month()),A=M.clone().add(O,p),L=T-A<0,V=M.clone().add(O+(L?-1:1),p);return+(-(O+(T-A)/(L?A-V:V-A))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:p,y:b,w:u,d:c,D:d,h:l,m:a,s:i,ms:s,Q:m}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},P="en",k={};k[P]=C;var I="$isDayjsObject",R=function(D){return D instanceof y||!(!D||!D[I])},N=function D(M,T,O){var A;if(!M)return P;if(typeof M=="string"){var L=M.toLowerCase();k[L]&&(A=L),T&&(k[L]=T,A=L);var V=M.split("-");if(!A&&V.length>1)return D(V[0])}else{var X=M.name;k[X]=M,A=X}return!O&&A&&(P=A),A||!O&&P},F=function(D,M){if(R(D))return D.clone();var T=typeof M=="object"?M:{};return T.date=D,T.args=arguments,new y(T)},E=x;E.l=N,E.i=R,E.w=function(D,M){return F(D,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var y=(function(){function D(T){this.$L=N(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[I]=!0}var M=D.prototype;return M.parse=function(T){this.$d=(function(O){var A=O.date,L=O.utc;if(A===null)return new Date(NaN);if(E.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var V=A.match(g);if(V){var X=V[2]-1||0,re=(V[7]||"0").substring(0,3);return L?new Date(Date.UTC(V[1],X,V[3]||1,V[4]||0,V[5]||0,V[6]||0,re)):new Date(V[1],X,V[3]||1,V[4]||0,V[5]||0,V[6]||0,re)}}return new Date(A)})(T),this.init()},M.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},M.$utils=function(){return E},M.isValid=function(){return this.$d.toString()!==h},M.isSame=function(T,O){var A=F(T);return this.startOf(O)<=A&&A<=this.endOf(O)},M.isAfter=function(T,O){return F(T)<this.startOf(O)},M.isBefore=function(T,O){return this.endOf(O)<F(T)},M.$g=function(T,O,A){return E.u(T)?this[O]:this.set(A,T)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(T,O){var A=this,L=!!E.u(O)||O,V=E.p(T),X=function(H,q){var te=E.w(A.$u?Date.UTC(A.$y,q,H):new Date(A.$y,q,H),A);return L?te:te.endOf(c)},re=function(H,q){return E.w(A.toDate()[H].apply(A.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(q)),A)},ae=this.$W,ie=this.$M,z=this.$D,Z="set"+(this.$u?"UTC":"");switch(V){case b:return L?X(1,0):X(31,11);case p:return L?X(1,ie):X(0,ie+1);case u:var Q=this.$locale().weekStart||0,G=(ae<Q?ae+7:ae)-Q;return X(L?z-G:z+(6-G),ie);case c:case d:return re(Z+"Hours",0);case l:return re(Z+"Minutes",1);case a:return re(Z+"Seconds",2);case i:return re(Z+"Milliseconds",3);default:return this.clone()}},M.endOf=function(T){return this.startOf(T,!1)},M.$set=function(T,O){var A,L=E.p(T),V="set"+(this.$u?"UTC":""),X=(A={},A[c]=V+"Date",A[d]=V+"Date",A[p]=V+"Month",A[b]=V+"FullYear",A[l]=V+"Hours",A[a]=V+"Minutes",A[i]=V+"Seconds",A[s]=V+"Milliseconds",A)[L],re=L===c?this.$D+(O-this.$W):O;if(L===p||L===b){var ae=this.clone().set(d,1);ae.$d[X](re),ae.init(),this.$d=ae.set(d,Math.min(this.$D,ae.daysInMonth())).$d}else X&&this.$d[X](re);return this.init(),this},M.set=function(T,O){return this.clone().$set(T,O)},M.get=function(T){return this[E.p(T)]()},M.add=function(T,O){var A,L=this;T=Number(T);var V=E.p(O),X=function(ie){var z=F(L);return E.w(z.date(z.date()+Math.round(ie*T)),L)};if(V===p)return this.set(p,this.$M+T);if(V===b)return this.set(b,this.$y+T);if(V===c)return X(1);if(V===u)return X(7);var re=(A={},A[a]=r,A[l]=o,A[i]=n,A)[V]||1,ae=this.$d.getTime()+T*re;return E.w(ae,this)},M.subtract=function(T,O){return this.add(-1*T,O)},M.format=function(T){var O=this,A=this.$locale();if(!this.isValid())return A.invalidDate||h;var L=T||"YYYY-MM-DDTHH:mm:ssZ",V=E.z(this),X=this.$H,re=this.$m,ae=this.$M,ie=A.weekdays,z=A.months,Z=A.meridiem,Q=function(q,te,J,B){return q&&(q[te]||q(O,L))||J[te].slice(0,B)},G=function(q){return E.s(X%12||12,q,"0")},H=Z||function(q,te,J){var B=q<12?"AM":"PM";return J?B.toLowerCase():B};return L.replace(w,(function(q,te){return te||(function(J){switch(J){case"YY":return String(O.$y).slice(-2);case"YYYY":return E.s(O.$y,4,"0");case"M":return ae+1;case"MM":return E.s(ae+1,2,"0");case"MMM":return Q(A.monthsShort,ae,z,3);case"MMMM":return Q(z,ae);case"D":return O.$D;case"DD":return E.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return Q(A.weekdaysMin,O.$W,ie,2);case"ddd":return Q(A.weekdaysShort,O.$W,ie,3);case"dddd":return ie[O.$W];case"H":return String(X);case"HH":return E.s(X,2,"0");case"h":return G(1);case"hh":return G(2);case"a":return H(X,re,!0);case"A":return H(X,re,!1);case"m":return String(re);case"mm":return E.s(re,2,"0");case"s":return String(O.$s);case"ss":return E.s(O.$s,2,"0");case"SSS":return E.s(O.$ms,3,"0");case"Z":return V}return null})(q)||V.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(T,O,A){var L,V=this,X=E.p(O),re=F(T),ae=(re.utcOffset()-this.utcOffset())*r,ie=this-re,z=function(){return E.m(V,re)};switch(X){case b:L=z()/12;break;case p:L=z();break;case m:L=z()/3;break;case u:L=(ie-ae)/6048e5;break;case c:L=(ie-ae)/864e5;break;case l:L=ie/o;break;case a:L=ie/r;break;case i:L=ie/n;break;default:L=ie}return A?L:E.a(L)},M.daysInMonth=function(){return this.endOf(p).$D},M.$locale=function(){return k[this.$L]},M.locale=function(T,O){if(!T)return this.$L;var A=this.clone(),L=N(T,O,!0);return L&&(A.$L=L),A},M.clone=function(){return E.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},D})(),$=y.prototype;return F.prototype=$,[["$ms",s],["$s",i],["$m",a],["$H",l],["$W",c],["$M",p],["$y",b],["$D",d]].forEach((function(D){$[D[1]]=function(M){return this.$g(M,D[0],D[1])}})),F.extend=function(D,M){return D.$i||(D(M,y,F),D.$i=!0),F},F.locale=N,F.isDayjs=R,F.unix=function(D){return F(1e3*D)},F.en=k[P],F.Ls=k,F.p={},F}))})(to)),to.exports}var $m=Em();const Re=Nt($m);var no={exports:{}},Om=no.exports,Sa;function Am(){return Sa||(Sa=1,(function(e,t){(function(n,r){e.exports=r()})(Om,(function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(s,i,a){var l=i.prototype;a.utc=function(h){var g={date:h,utc:!0,args:arguments};return new i(g)},l.utc=function(h){var g=a(this.toDate(),{locale:this.$L,utc:!0});return h?g.add(this.utcOffset(),n):g},l.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var c=l.parse;l.parse=function(h){h.utc&&(this.$u=!0),this.$utils().u(h.$offset)||(this.$offset=h.$offset),c.call(this,h)};var u=l.init;l.init=function(){if(this.$u){var h=this.$d;this.$y=h.getUTCFullYear(),this.$M=h.getUTCMonth(),this.$D=h.getUTCDate(),this.$W=h.getUTCDay(),this.$H=h.getUTCHours(),this.$m=h.getUTCMinutes(),this.$s=h.getUTCSeconds(),this.$ms=h.getUTCMilliseconds()}else u.call(this)};var p=l.utcOffset;l.utcOffset=function(h,g){var w=this.$utils().u;if(w(h))return this.$u?0:w(this.$offset)?p.call(this):this.$offset;if(typeof h=="string"&&(h=(function(P){P===void 0&&(P="");var k=P.match(r);if(!k)return null;var I=(""+k[0]).match(o)||["-",0,0],R=I[0],N=60*+I[1]+ +I[2];return N===0?0:R==="+"?N:-N})(h),h===null))return this;var C=Math.abs(h)<=16?60*h:h;if(C===0)return this.utc(g);var S=this.clone();if(g)return S.$offset=C,S.$u=!1,S;var x=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(S=this.local().add(C+x,n)).$offset=C,S.$x.$localOffset=x,S};var m=l.format;l.format=function(h){var g=h||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,g)},l.valueOf=function(){var h=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*h},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var b=l.toDate;l.toDate=function(h){return h==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():b.call(this)};var d=l.diff;l.diff=function(h,g,w){if(h&&this.$u===h.$u)return d.call(this,h,g,w);var C=this.local(),S=a(h).local();return d.call(C,S,g,w)}}}))})(no)),no.exports}var Fm=Am();const qs=Nt(Fm);Re.extend(qs);function Yt(e){return(e??"").startsWith("filter<")}function Lm(e){const{parsed:t}=tt.BooleanFilterExpression.parse(e);if(!(!t||t.not))return t.operator==="true"||t.operator==="false"?t.operator:void 0}function qt(e){const t=/^filter<(.+)>$/.exec(e??"");return t?t[1]:void 0}function Ks(e){const t=e.filter(n=>n.trim()!=="");return t.length===0?"":tt.StringFilterExpression.unparse({operator:"=",values:[...t]})}function vc(e){if(e.trim()==="")return[];const{parsed:t}=tt.StringFilterExpression.parse(e);return Sc(t)?t.values:[e]}function xc(e){return e===void 0||e.trim()===""?!0:Sc(tt.StringFilterExpression.parse(e).parsed)}function Sc(e){return e!==null&&tt.isStringCondition(e)&&e.operator==="="&&e.not!==!0}function Nm(e){return tt.NumberFilterExpression.unparse({operator:">=",values:[String(e)]})}function wc(e){const t=e.trim();if(t==="")return;const{parsed:n}=tt.NumberFilterExpression.parse(t);if(n===null||n.operator!==">="||n.not===!0||n.values?.length!==1)return;const r=Number(n.values[0]);return Number.isFinite(r)?r:void 0}function jm(e,t){return tt.NumberFilterExpression.unparse({operator:"range",startOperator:">=",startValue:String(e),endOperator:"<=",endValue:String(t)})}function Cc(e){const t=e.trim();if(t==="")return;const{parsed:n}=tt.NumberFilterExpression.parse(t);if(n===null||n.operator!=="range"||n.not===!0||n.startOperator!==">="||n.endOperator!=="<=")return;const r=Number(n.startValue),o=Number(n.endValue);return Number.isFinite(r)&&Number.isFinite(o)&&r<=o?[r,o]:void 0}const xr=[{key:"today",label:"Today",clause:{operator:"in",in:{moment:"today"}}},{key:"7d",label:"Last 7 days",clause:{operator:"in_last",units:"day",n:"7"}},{key:"30d",label:"Last 30 days",clause:{operator:"in_last",units:"day",n:"30"}},{key:"90d",label:"Last 90 days",clause:{operator:"in_last",units:"day",n:"90"}},{key:"12m",label:"Last 12 months",clause:{operator:"in_last",units:"month",n:"12"}}];function Bm(e){const t=xr.find(n=>n.key===e);return t?tt.TemporalFilterExpression.unparse(t.clause):void 0}function Pc(e){const t=e.trim();if(t==="")return;const{parsed:n}=tt.TemporalFilterExpression.parse(t);if(n!==null)for(const r of xr){const o=r.clause;if(o.operator===n.operator&&(o.operator==="in"&&n.operator==="in"&&n.not!==!0&&n.in.moment===o.in.moment||o.operator==="in_last"&&n.operator==="in_last"&&n.not!==!0&&n.units===o.units&&Number(n.n)===Number(o.n)))return r.key}}const Vm=/^\d{4}-\d{2}-\d{2}$/;function zm(e,t){const n=Re.utc(t,"YYYY-MM-DD").add(1,"day");return tt.TemporalFilterExpression.unparse({operator:"to",fromMoment:{moment:"literal",literal:e,units:"day"},toMoment:{moment:"literal",literal:n.format("YYYY-MM-DD"),units:"day"}})}function kc(e){const t=e.trim();if(t==="")return;const{parsed:n}=tt.TemporalFilterExpression.parse(t);if(n===null||n.operator!=="to"||n.not===!0)return;const r=wa(n.fromMoment),o=wa(n.toMoment);if(r===void 0||o===void 0)return;const s=Re.utc(o,"YYYY-MM-DD").subtract(1,"day");if(!(!s.isValid()||s.isBefore(Re.utc(r,"YYYY-MM-DD"))))return{firstDay:r,lastDay:s.format("YYYY-MM-DD")}}function wa(e){return e.moment==="literal"&&Vm.test(e.literal)?e.literal:void 0}const _m="self";function Mc(e){if(!e)return[];if(e.wasDimension&&!e.wasDimension())return[];const t=e.tag?.tag("drill");return t?(t.textArray("to")??[t.text("to")].filter(Ca)).filter(Ca):[]}function Tc(e){const t=e.replace(/[-_]+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)}function Dc(e){return e.tag?.tag("drill")?.text("given")??e.name}function Lo(e){if(typeof e=="string"){const t=Ks([e]);return t===""?void 0:t}if(typeof e=="boolean")return String(e);if(typeof e=="number")return Number.isFinite(e)?String(e):void 0;if(e instanceof Date){const t=e.toISOString();return t.slice(0,t.indexOf("T"))}}function Rc(e){return e instanceof Date?Lo(e)??"":String(e)}function Wm(e){if(!e||e.isHeader)return;const t=e.field;if(!t)return;const n=Mc(t);if(n.length===0)return;const r=Lo(e.value);if(r!==void 0)return{to:n,given:Dc(t),value:r,rawValue:e.value,label:Rc(e.value)}}function Ca(e){return typeof e=="string"&&e!==""}function Ic(e,t){if(t!==void 0&&!Yt(t)){if(t==="number"){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(typeof e!="string"||e.trim()==="")return;const n=Number(e);return Number.isFinite(n)?n:void 0}if(t==="date"||t==="timestamp"||t==="timestamptz")return e instanceof Date?e:void 0;if(t==="boolean")return typeof e=="boolean"?e:e==="true"?!0:e==="false"?!1:void 0;if(typeof e=="string")return e.trim()===""?void 0:e;if(typeof e=="number")return Number.isFinite(e)?String(e):void 0;if(typeof e=="boolean")return String(e)}return qt(t)==="string"&&typeof e=="number"?Number.isFinite(e)?Ks([String(e)]):void 0:qt(t)==="number"?typeof e=="number"?Number.isFinite(e)?String(e):void 0:typeof e!="string"||e.trim()===""?void 0:Number.isFinite(Number(e))?e.trim():void 0:Lo(e)}function Ec({declaredTypes:e,setGiven:t,documentName:n}){const r=Ys(),o=ee.useMemo(()=>{const l=new Map;for(const c of e.keys())l.has(c.toLowerCase())||l.set(c.toLowerCase(),c);return l},[e]),s=ee.useCallback(l=>e.has(l)?l:o.get(l.toLowerCase()),[e,o]),i=ee.useCallback(l=>s(l)!==void 0,[s]),a=ee.useCallback((l,c)=>{const u=s(l);if(u===void 0){r.emit({type:"report.drill",to:"self",outcome:"unresolved"}),r.listening||console.warn(`# drill { to=self } tried to set '${l}', which '${n}' does not declare as a given. Name the given with 'given=' on the drill tag.`);return}const p=e.get(u),m=Ic(c,p);if(m===void 0){r.emit({type:"report.drill",to:"self",outcome:"malformed"}),r.listening||console.warn(`Drill declined: ${JSON.stringify(c)} cannot be a value for given "${u}"`+(p?` of type ${p}`:""));return}t(u,m),r.emit({type:"report.drill",to:"self",outcome:"resolved"})},[e,n,s,t,r]);return{resolveGiven:s,canSelf:i,onSelf:a}}function $c(e,t){if(e!=null){if(e instanceof Date)return Xs(e,t);if(!Array.isArray(e))return String(e)}}function Hm(e,t){return new Date(Date.UTC(e.year(),e.month(),e.date(),t?.getUTCHours()??0,t?.getUTCMinutes()??0,t?.getUTCSeconds()??0,t?.getUTCMilliseconds()??0))}const Um=/^(\d{4})-(\d{1,2})-(\d{1,2})(?:[T\s]+(\d{1,2}):(\d{2})(?::(\d{2}))?(?:\.(\d{1,9}))?)?\s*(Z|[+-]\d{2}:?\d{2}|[+-]\d{2}|UTC|GMT)?$/i;function Oc(e){const t=e.trim();return t===""?e:t.replace(/^(\d{4}-\d{1,2}-\d{1,2}[T\s]+\d{1,2}:\d{2}(?::\d{2})?(?:\.\d{1,9})?)\s+(\d{2}:?\d{2}|\d{2})$/,"$1+$2")}function Ym(e,t=!1){const n=Oc(e);if(n==="")return;const r=Um.exec(n);if(!r)return;const[,o,s,i,a,l,c,u,p]=r,m={year:Number(o),month:Number(s),day:Number(i),hour:Number(a??0),minute:Number(l??0),second:Number(c??0),milli:Number((u??"").slice(0,3).padEnd(3,"0")||0)},b=Date.UTC(m.year,m.month-1,m.day,m.hour,m.minute,m.second,m.milli),d=new Date(b);if(!(d.getUTCFullYear()===m.year&&d.getUTCMonth()===m.month-1&&d.getUTCDate()===m.day&&d.getUTCHours()===m.hour&&d.getUTCMinutes()===m.minute&&d.getUTCSeconds()===m.second)||p!==void 0&&a===void 0)return;const g=Gm(p);if(g===void 0)return;const w=new Date(b-g*6e4);if(!(t&&p!==void 0&&w.getUTCDate()!==m.day))return w}function Gm(e){if(e===void 0)return 0;const t=e.toUpperCase();if(t==="Z"||t==="UTC"||t==="GMT")return 0;const n=/^([+-])(\d{2}):?(\d{2})?$/.exec(t);if(!n)return;const r=Number(n[3]??0);if(r>59)return;const o=Number(n[2])*60+r,s=n[1]!=="-";if(!(o>(s?840:720)))return s?o:-o}function Ac(e){return!qm.has(e??"")}const qm=new Set(["boolean","number","date","timestamp","timestamptz"]);function Fc(e,t){if(t===""&&!Ac(e))return null;if(Yt(e))return t;switch(e){case"number":{const n=t.trim()===""?NaN:Number(t);return Number.isFinite(n)?n:t}case"boolean":return t==="true"?!0:t==="false"?!1:t;case"date":case"timestamp":case"timestamptz":{const n=Oc(t);return Ym(n,e==="date")??n}default:return t}}function Lc(e,t){const n={};for(const[r,o]of e){const s=$c(o,t.get(r));s!==void 0&&(n[r]=s)}return n}function Xs(e,t){const n=e.toISOString();switch(t){case"timestamptz":return n;case"timestamp":return n.slice(0,-1);default:return n.slice(0,10)}}function Qs(e,t,n){const r=n?new Set(n):void 0,o={};for(const[s,i]of e)r&&!r.has(s)||i!=null&&(Array.isArray(i)||(o[s]=i instanceof Date?Xs(i,t.get(s)):i));return o}function Zs(e,t,n){if(!t)return e;const r=n?new Set(n):void 0,o={...e};for(const[s,i]of Object.entries(t))r&&!r.has(s)||s in o||i===null||i===void 0||(o[s]=Array.isArray(i)?[...i]:i instanceof Date?Xs(i,void 0):i);return o}function Pa(e,t){const n=new Map;for(const[r,o]of Object.entries(e))t.has(r)&&n.set(r,Fc(t.get(r),o));return n}function ka(e,t){const n=Array.from(e.keys()).filter(o=>!t.has(o));if(n.length===0)return e;const r=new Map(e);for(const o of n)r.delete(o);return r}function Ma(e){return Object.entries(e??{}).sort(([t],[n])=>t<n?-1:1)}function Km(e,t,n){for(const r of n.keys())if(e[r]!==t[r])return!1;return!0}function Ta(e,t){const n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(r=>e[r]===t[r])}function Nc({declaredTypes:e,startingValues:t,params:n,onParamsChange:r,documentKey:o,autorun:s}){const i=ee.useMemo(()=>Pa(t??{},e),[e,JSON.stringify(t)]),a=ee.useRef(null),l=ee.useRef(null),c=ee.useRef({documentKey:o,params:n}),u=E=>E!==null&&Km(n??{},E,e);u(a.current)&&(l.current=null),(c.current.documentKey!==o||!Ta(n??{},c.current.params??{})&&!u(a.current)&&!u(l.current))&&(c.current={documentKey:o,params:n});const p=c.current.params,m=JSON.stringify(t),b=JSON.stringify(p),d=ee.useMemo(()=>Pa({...t??{},...p??{}},e),[e,m,b]),h=ee.useMemo(()=>JSON.stringify([o??null,Ma(t),Ma(p)]),[o,m,b]),[g,w]=ee.useState(null),C=g?.key===h?g:null;ee.useEffect(()=>{g!==null&&g.key!==h&&w(null)},[g,h]);const S=ee.useMemo(()=>ka(C?.draft??d,e),[C,d,e]),x=ee.useMemo(()=>ka(C?.applied??d,e),[C,d,e]),P=ee.useCallback(E=>E?.key===h?E:{key:h,draft:d,applied:d},[h,d]),k=ee.useMemo(()=>Lc(x,e),[x,e]);a.current===null&&(a.current=k),ee.useEffect(()=>{r&&(Ta(a.current??{},k)||(l.current=a.current,a.current=k,r(k)))},[k,r]);const I=ee.useCallback((E,y)=>{w($=>{const D=P($),M=new Map(D.draft);return y===null?M.delete(E):M.set(E,y),{key:D.key,draft:M,applied:s?M:D.applied}})},[s,P]),R=ee.useCallback(()=>{w(E=>({key:P(E).key,draft:i,applied:i}))},[P,i]),N=ee.useCallback(()=>{w(E=>{const y=P(E);return{key:y.key,draft:y.draft,applied:y.draft}})},[P]),F=ee.useMemo(()=>{if(s)return!1;if(S.size!==x.size)return!0;for(const[E,y]of S){const $=x.get(E);if(y instanceof Date&&$ instanceof Date){if(y.getTime()!==$.getTime())return!0}else if(Array.isArray(y)&&Array.isArray($)){if(String(y)!==String($))return!0}else if(y!==$)return!0}return!1},[s,S,x]);return{draft:S,applied:x,setGiven:I,reset:R,apply:N,pending:F}}const jc="You don't have access to this data";function Xm(e){return(e??[]).filter(t=>t.kind==="definition"&&!t.restricted).map(t=>t.text??"").join(`
17
-
18
- `)}function Js(e,t){return e===""?t:`${e}
19
-
20
- ${t}`}function Qm(e){return e?.status===403}const Zm=1e3;function Bc(e){const t=e.split(".");return t[t.length-1]}function Jm(e,t){return`run: ${e} -> {
21
- group_by: ${t}
22
- order_by: ${Bc(t)} asc
23
- limit: ${Zm}
24
- }`}function eg(e,t){const n=e.suggest?.givenNames;if(!t||!n||n.length===0)return;const r=Zs(Qs(t.values,t.declaredTypes,n),tg(t),n);return Object.keys(r).length>0?r:void 0}function tg(e){if(e.host)return Object.fromEntries(Object.entries(e.host).filter(([t])=>!e.declaredTypes.has(t)))}function Vc(e,t,n,r,o,s,i){const{apiClients:a}=Se.useServer(),l=ee.useMemo(()=>r.filter(m=>m.name!==void 0&&(m.control==="select"||m.control==="multiselect")&&(m.suggest?.query!==void 0||m.suggest?.source!==void 0&&m.suggest?.dimension!==void 0)),[r]),c=Dr.useQueries({queries:l.map(m=>{const b=eg(m,s);return{queryKey:["givenSuggest",e,t,o,n,m.name,m.suggest?.query,m.suggest?.source,m.suggest?.dimension,b===void 0?null:JSON.stringify(b),...i===void 0?[]:[i]],enabled:n!==void 0,staleTime:300*1e3,refetchOnWindowFocus:!1,queryFn:async({signal:d})=>{const h=m.suggest??{},g=await a.models.executeQueryModel(e,t,n,h.query!==void 0&&i===void 0?{queryName:h.query,compactJson:!0,versionId:o,givens:b}:{query:Js(i??"",h.query!==void 0?`run: ${h.query}`:Jm(h.source,h.dimension)),compactJson:!0,versionId:o,givens:b},void 0,{signal:d});return ng(g.data.result,h.dimension===void 0?void 0:Bc(h.dimension))}}})}),u=ee.useMemo(()=>{const m=new Map;return l.forEach((b,d)=>{const h=c[d]?.data;b.name&&h&&m.set(b.name,h)}),m},[l,JSON.stringify(c.map(m=>m.data))]),p=ee.useMemo(()=>{const m=new Set;return l.forEach((b,d)=>{b.name&&c[d]?.isError&&m.add(b.name)}),m},[l,c.map(m=>m.isError).join("|")]);return{options:u,isLoading:c.some(m=>m.isLoading),failed:p}}function ng(e,t){if(!e)return[];let n;try{n=JSON.parse(e)}catch{throw new Error("Suggest query returned a result that is not JSON.")}if(!Array.isArray(n))throw new Error("Suggest query returned JSON that is not a list of rows.");const r=[],o=new Set;for(const s of n){if(s===null||typeof s!="object")continue;const i=s,a=Object.keys(i),l=t!==void 0&&Object.prototype.hasOwnProperty.call(i,t)?t:a[0],c=l===void 0?void 0:i[l];if(c==null)continue;const u=String(c);o.has(u)||(o.add(u),r.push(u))}return r}function rg({specs:e,loaded:t,startingValues:n,params:r,onGivensChange:o,documentKey:s,autorun:i,environmentName:a,packageName:l,modelPath:c,versionId:u,documentName:p,preamble:m,hostGivens:b}){const d=ee.useMemo(()=>new Map(e.filter(k=>k.name!==void 0).map(k=>[k.name,k.type])),[e]),h=ee.useCallback(k=>{t&&o?.(k,Array.from(d.keys()))},[t,o,d]),g=Nc({declaredTypes:d,startingValues:n,params:r,onParamsChange:t?h:void 0,documentKey:s,autorun:i}),{options:w,isLoading:C,failed:S}=Vc(a,l,c,e,u,{values:g.applied,declaredTypes:d,...b?{host:b}:{}},m),{canSelf:x,onSelf:P}=Ec({declaredTypes:d,setGiven:g.setGiven,documentName:p});return{...g,declaredTypes:d,options:w,optionsLoading:C,optionsFailed:S,canSelf:x,onSelf:P,panel:{givens:e,values:g.draft,onChange:g.setGiven,onReset:g.reset,options:w,optionsLoading:C,optionsFailed:S,apply:i?void 0:{onApply:g.apply,pending:g.pending}}}}const og=$e(f.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"}));function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j.apply(null,arguments)}var ro={exports:{}},sg=ro.exports,Da;function ig(){return Da||(Da=1,(function(e,t){(function(n,r){e.exports=r()})(sg,(function(){var n="week",r="year";return function(o,s,i){var a=s.prototype;a.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=i(this).startOf(r).add(1,r).date(c),p=i(this).endOf(n);if(u.isBefore(p))return 1}var m=i(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),b=this.diff(m,n,!0);return b<0?i(this).startOf("week").week():Math.ceil(b)},a.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}}))})(ro)),ro.exports}var ag=ig();const lg=Nt(ag);var oo={exports:{}},cg=oo.exports,Ra;function ug(){return Ra||(Ra=1,(function(e,t){(function(n,r){e.exports=r()})(cg,(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,o=/\d/,s=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,l={},c=function(g){return(g=+g)+(g>68?1900:2e3)},u=function(g){return function(w){this[g]=+w}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=(function(w){if(!w||w==="Z")return 0;var C=w.match(/([+-]|\d\d)/g),S=60*C[1]+(+C[2]||0);return S===0?0:C[0]==="+"?-S:S})(g)}],m=function(g){var w=l[g];return w&&(w.indexOf?w:w.s.concat(w.f))},b=function(g,w){var C,S=l.meridiem;if(S){for(var x=1;x<=24;x+=1)if(g.indexOf(S(x,0,w))>-1){C=x>12;break}}else C=g===(w?"pm":"PM");return C},d={A:[a,function(g){this.afternoon=b(g,!1)}],a:[a,function(g){this.afternoon=b(g,!0)}],Q:[o,function(g){this.month=3*(g-1)+1}],S:[o,function(g){this.milliseconds=100*+g}],SS:[s,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[s,u("day")],Do:[a,function(g){var w=l.ordinal,C=g.match(/\d+/);if(this.day=C[0],w)for(var S=1;S<=31;S+=1)w(S).replace(/\[|\]/g,"")===g&&(this.day=S)}],w:[i,u("week")],ww:[s,u("week")],M:[i,u("month")],MM:[s,u("month")],MMM:[a,function(g){var w=m("months"),C=(m("monthsShort")||w.map((function(S){return S.slice(0,3)}))).indexOf(g)+1;if(C<1)throw new Error;this.month=C%12||C}],MMMM:[a,function(g){var w=m("months").indexOf(g)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,u("year")],YY:[s,function(g){this.year=c(g)}],YYYY:[/\d{4}/,u("year")],Z:p,ZZ:p};function h(g){var w,C;w=g,C=l&&l.formats;for(var S=(g=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(F,E,y){var $=y&&y.toUpperCase();return E||C[y]||n[y]||C[$].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(D,M,T){return M||T.slice(1)}))}))).match(r),x=S.length,P=0;P<x;P+=1){var k=S[P],I=d[k],R=I&&I[0],N=I&&I[1];S[P]=N?{regex:R,parser:N}:k.replace(/^\[|\]$/g,"")}return function(F){for(var E={},y=0,$=0;y<x;y+=1){var D=S[y];if(typeof D=="string")$+=D.length;else{var M=D.regex,T=D.parser,O=F.slice($),A=M.exec(O)[0];T.call(E,A),F=F.replace(A,"")}}return(function(L){var V=L.afternoon;if(V!==void 0){var X=L.hours;V?X<12&&(L.hours+=12):X===12&&(L.hours=0),delete L.afternoon}})(E),E}}return function(g,w,C){C.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(c=g.parseTwoDigitYear);var S=w.prototype,x=S.parse;S.parse=function(P){var k=P.date,I=P.utc,R=P.args;this.$u=I;var N=R[1];if(typeof N=="string"){var F=R[2]===!0,E=R[3]===!0,y=F||E,$=R[2];E&&($=R[2]),l=this.$locale(),!F&&$&&(l=C.Ls[$]),this.$d=(function(O,A,L,V){try{if(["x","X"].indexOf(A)>-1)return new Date((A==="X"?1e3:1)*O);var X=h(A)(O),re=X.year,ae=X.month,ie=X.day,z=X.hours,Z=X.minutes,Q=X.seconds,G=X.milliseconds,H=X.zone,q=X.week,te=new Date,J=ie||(re||ae?1:te.getDate()),B=re||te.getFullYear(),K=0;re&&!ae||(K=ae>0?ae-1:te.getMonth());var oe,ne=z||0,ce=Z||0,se=Q||0,fe=G||0;return H?new Date(Date.UTC(B,K,J,ne,ce,se,fe+60*H.offset*1e3)):L?new Date(Date.UTC(B,K,J,ne,ce,se,fe)):(oe=new Date(B,K,J,ne,ce,se,fe),q&&(oe=V(oe).week(q).toDate()),oe)}catch{return new Date("")}})(k,N,I,C),this.init(),$&&$!==!0&&(this.$L=this.locale($).$L),y&&k!=this.format(N)&&(this.$d=new Date("")),l={}}else if(N instanceof Array)for(var D=N.length,M=1;M<=D;M+=1){R[1]=N[M-1];var T=C.apply(this,R);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}M===D&&(this.$d=new Date(""))}else x.call(this,P)}}}))})(oo)),oo.exports}var dg=ug();const pg=Nt(dg);var so={exports:{}},fg=so.exports,Ia;function hg(){return Ia||(Ia=1,(function(e,t){(function(n,r){e.exports=r()})(fg,(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,o,s){var i=o.prototype,a=i.format;s.en.formats=n,i.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=(function(p,m){return p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(b,d,h){var g=h&&h.toUpperCase();return d||m[h]||n[h]||m[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(w,C,S){return C||S.slice(1)}))}))})(l,c===void 0?{}:c);return a.call(this,u)}}}))})(so)),so.exports}var mg=hg();const gg=Nt(mg);var io={exports:{}},yg=io.exports,Ea;function bg(){return Ea||(Ea=1,(function(e,t){(function(n,r){e.exports=r()})(yg,(function(){return function(n,r,o){r.prototype.isBetween=function(s,i,a,l){var c=o(s),u=o(i),p=(l=l||"()")[0]==="(",m=l[1]===")";return(p?this.isAfter(c,a):!this.isBefore(c,a))&&(m?this.isBefore(u,a):!this.isAfter(u,a))||(p?this.isBefore(c,a):!this.isAfter(c,a))&&(m?this.isAfter(u,a):!this.isBefore(u,a))}}}))})(io)),io.exports}var vg=bg();const xg=Nt(vg);var ao={exports:{}},Sg=ao.exports,$a;function wg(){return $a||($a=1,(function(e,t){(function(n,r){e.exports=r()})(Sg,(function(){return function(n,r){var o=r.prototype,s=o.format;o.format=function(i){var a=this,l=this.$locale();if(!this.isValid())return s.bind(this)(i);var c=this.$utils(),u=(i||"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((a.$M+1)/3);case"Do":return l.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return l.ordinal(a.week(),"W");case"w":case"ww":return c.s(a.week(),p==="w"?1:2,"0");case"W":case"WW":return c.s(a.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return c.s(String(a.$H===0?24:a.$H),p==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return p}}));return s.bind(this)(u)}}}))})(ao)),ao.exports}var Cg=wg();const Pg=Nt(Cg);Re.extend(gg);Re.extend(lg);Re.extend(xg);Re.extend(Pg);const kg={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"},Mg={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",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},ss=["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(`
25
- `),Oa=["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(`
26
- `),Tg=(e,t)=>t?(...n)=>e(...n).locale(t):e;class mo{constructor({locale:t,formats:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=kg,this.setLocaleToValue=r=>{const o=this.getCurrentLocaleCode();return o===r.locale()?r:r.locale(o)},this.hasUTCPlugin=()=>typeof Re.utc<"u",this.hasTimezonePlugin=()=>typeof Re.tz<"u",this.isSame=(r,o,s)=>{const i=this.setTimezone(o,this.getTimezone(r));return r.format(s)===i.format(s)},this.cleanTimezone=r=>{switch(r){case"default":return;case"system":return Re.tz.guess();default:return r}},this.createSystemDate=r=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const o=Re.tz.guess();return o!=="UTC"?Re.tz(r,o):Re(r)}return Re(r)},this.createUTCDate=r=>{if(!this.hasUTCPlugin())throw new Error(ss);return Re.utc(r)},this.createTZDate=(r,o)=>{if(!this.hasUTCPlugin())throw new Error(ss);if(!this.hasTimezonePlugin())throw new Error(Oa);const s=r!==void 0&&!r.endsWith("Z");return Re(r).tz(this.cleanTimezone(o),s)},this.getLocaleFormats=()=>{const r=Re.Ls,o=this.locale||"en";let s=r[o];return s===void 0&&(s=r.en),s.formats},this.adjustOffset=r=>{if(!this.hasTimezonePlugin())return r;const o=this.getTimezone(r);if(o!=="UTC"){const s=r.tz(this.cleanTimezone(o),!0);if(s.$offset===(r.$offset??0))return r;r.$offset=s.$offset}return r},this.date=(r,o="default")=>{if(r===null)return null;let s;return o==="UTC"?s=this.createUTCDate(r):o==="system"||o==="default"&&!this.hasTimezonePlugin()?s=this.createSystemDate(r):s=this.createTZDate(r,o),this.locale===void 0?s:s.locale(this.locale)},this.getInvalidDate=()=>Re(new Date("Invalid date")),this.getTimezone=r=>{if(this.hasTimezonePlugin()){const o=r.$x?.$timezone;if(o)return o}return this.hasUTCPlugin()&&r.isUTC()?"UTC":"system"},this.setTimezone=(r,o)=>{if(this.getTimezone(r)===o)return r;if(o==="UTC"){if(!this.hasUTCPlugin())throw new Error(ss);return r.utc()}if(o==="system")return r.local();if(!this.hasTimezonePlugin()){if(o==="default")return r;throw new Error(Oa)}return Re.tz(r,this.cleanTimezone(o))},this.toJsDate=r=>r.toDate(),this.parse=(r,o)=>r===""?null:this.dayjs(r,o,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=r=>{const o=this.getLocaleFormats(),s=i=>i.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(a,l,c)=>l||c.slice(1));return r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(i,a,l)=>{const c=l&&l.toUpperCase();return a||o[l]||s(o[c])})},this.isValid=r=>r==null?!1:r.isValid(),this.format=(r,o)=>this.formatByString(r,this.formats[o]),this.formatByString=(r,o)=>this.dayjs(r).format(o),this.formatNumber=r=>r,this.isEqual=(r,o)=>r===null&&o===null?!0:r===null||o===null?!1:r.toDate().getTime()===o.toDate().getTime(),this.isSameYear=(r,o)=>this.isSame(r,o,"YYYY"),this.isSameMonth=(r,o)=>this.isSame(r,o,"YYYY-MM"),this.isSameDay=(r,o)=>this.isSame(r,o,"YYYY-MM-DD"),this.isSameHour=(r,o)=>r.isSame(o,"hour"),this.isAfter=(r,o)=>r>o,this.isAfterYear=(r,o)=>this.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()>o.utc():r.isAfter(o,"year"),this.isAfterDay=(r,o)=>this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()>o.utc():r.isAfter(o,"day"),this.isBefore=(r,o)=>r<o,this.isBeforeYear=(r,o)=>this.hasUTCPlugin()?!this.isSameYear(r,o)&&r.utc()<o.utc():r.isBefore(o,"year"),this.isBeforeDay=(r,o)=>this.hasUTCPlugin()?!this.isSameDay(r,o)&&r.utc()<o.utc():r.isBefore(o,"day"),this.isWithinRange=(r,[o,s])=>r>=o&&r<=s,this.startOfYear=r=>this.adjustOffset(r.startOf("year")),this.startOfMonth=r=>this.adjustOffset(r.startOf("month")),this.startOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).startOf("week")),this.startOfDay=r=>this.adjustOffset(r.startOf("day")),this.endOfYear=r=>this.adjustOffset(r.endOf("year")),this.endOfMonth=r=>this.adjustOffset(r.endOf("month")),this.endOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).endOf("week")),this.endOfDay=r=>this.adjustOffset(r.endOf("day")),this.addYears=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"year"):r.add(o,"year")),this.addMonths=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"month"):r.add(o,"month")),this.addWeeks=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"week"):r.add(o,"week")),this.addDays=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"day"):r.add(o,"day")),this.addHours=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"hour"):r.add(o,"hour")),this.addMinutes=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"minute"):r.add(o,"minute")),this.addSeconds=(r,o)=>this.adjustOffset(o<0?r.subtract(Math.abs(o),"second"):r.add(o,"second")),this.getYear=r=>r.year(),this.getMonth=r=>r.month(),this.getDate=r=>r.date(),this.getHours=r=>r.hour(),this.getMinutes=r=>r.minute(),this.getSeconds=r=>r.second(),this.getMilliseconds=r=>r.millisecond(),this.setYear=(r,o)=>this.adjustOffset(r.set("year",o)),this.setMonth=(r,o)=>this.adjustOffset(r.set("month",o)),this.setDate=(r,o)=>this.adjustOffset(r.set("date",o)),this.setHours=(r,o)=>this.adjustOffset(r.set("hour",o)),this.setMinutes=(r,o)=>this.adjustOffset(r.set("minute",o)),this.setSeconds=(r,o)=>this.adjustOffset(r.set("second",o)),this.setMilliseconds=(r,o)=>this.adjustOffset(r.set("millisecond",o)),this.getDaysInMonth=r=>r.daysInMonth(),this.getWeekArray=r=>{const o=this.startOfWeek(this.startOfMonth(r)),s=this.endOfWeek(this.endOfMonth(r));let i=0,a=o;const l=[];for(;a<s;){const c=Math.floor(i/7);l[c]=l[c]||[],l[c].push(a),a=this.addDays(a,1),i+=1}return l},this.getWeekNumber=r=>r.week(),this.getYearRange=([r,o])=>{const s=this.startOfYear(r),i=this.endOfYear(o),a=[];let l=s;for(;this.isBefore(l,i);)a.push(l),l=this.addYears(l,1);return a},this.dayjs=Tg(Re,t),this.locale=t,this.formats=j({},Mg,n),Re.extend(pg)}getDayOfWeek(t){return t.day()+1}}function ve(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 zc(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:vr(t.components[n].defaultProps,r)}function Dg({props:e,name:t,defaultTheme:n,themeId:r}){let o=Qf(n);return o=o[r]||o,zc({theme:o,name:t,props:e})}function Rg(e,t,n,r,o){const[s,i]=v.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return Ue(()=>{if(!n)return;const a=n(e),l=()=>{i(a.matches)};return l(),a.addEventListener("change",l),()=>{a.removeEventListener("change",l)}},[e,n]),s}const Ig={...v},_c=Ig.useSyncExternalStore;function Eg(e,t,n,r,o){const s=v.useCallback(()=>t,[t]),i=v.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return s},[s,e,r,o,n]),[a,l]=v.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const u=n(e);return[()=>u.matches,p=>(u.addEventListener("change",p),()=>{u.removeEventListener("change",p)})]},[s,n,e]);return _c(l,a,i)}function Wc(e={}){const{themeId:t}=e;return function(r,o={}){let s=Ul();s&&t&&(s=s[t]||s);const i=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:l=i?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:u=!1}=zc({name:"MuiUseMediaQuery",props:o,theme:s});let p=typeof r=="function"?r(s):r;return p=p.replace(/^@media( ?)/m,""),p.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(`
27
- `)),(_c!==void 0?Eg:Rg)(p,a,l,c,u)}}Wc();const Hc=Wc({themeId:Wn});function Fe({props:e,name:t}){return Dg({props:e,name:t,defaultTheme:Ao,themeId:Wn})}const Uc=_.oneOfType([_.func,_.object]),Aa={};function Yc(e,t){const n=v.useRef(Aa);return n.current===Aa&&(n.current=e(t)),n}const $g=[];function Og(e){v.useEffect(e,$g)}class ei{static create(){return new ei}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function ti(){const e=Yc(ei.create).current;return Og(e.disposeEffect),e}function Fa(e){try{return e.matches(":focus-visible")}catch{}return!1}function Gc(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const Ag={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Nn(e){return typeof e=="string"}function qc(e,t,n){return e===void 0||Nn(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function ni(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 La(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 Kc(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const b=de(n?.className,s,o?.className,r?.className),d={...n?.style,...o?.style,...r?.style},h={...n,...o,...r};return b.length>0&&(h.className=b),Object.keys(d).length>0&&(h.style=d),{props:h,internalRef:void 0}}const i=ni({...o,...r}),a=La(r),l=La(o),c=t(i),u=de(c?.className,n?.className,s,o?.className,r?.className),p={...c?.style,...n?.style,...o?.style,...r?.style},m={...c,...n,...l,...a};return u.length>0&&(m.className=u),Object.keys(p).length>0&&(m.style=p),{props:m,internalRef:c.ref}}function No(e,t,n){return typeof e=="function"?e(t,n):e}function Pe(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...s}=e,i=o?{}:No(n,r),{props:a,internalRef:l}=Kc({...s,externalSlotProps:i}),c=ke(l,i?.ref,e.additionalProps?.ref);return qc(t,{...a,ref:c},r)}function Un(e){return parseInt(v.version,10)>=19?e?.props?.ref||null:e?.ref||null}const Xn=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),Fg=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let s;if(e!=null)s=e;else if(o.includes(t))s=t;else if(o.length>0)s=o[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:o,openTo:s}},go=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n)),r},pr=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:s,utils:i,timezone:a})=>{const l=go(i,i.date(void 0,a),e);n&&i.isBefore(o,l)&&(o=l),t&&i.isAfter(r,l)&&(r=l);let c=e,u=e;for(i.isBefore(e,o)&&(c=o,u=null),i.isAfter(e,r)&&(u&&(u=r),c=null);c||u;){if(c&&i.isAfter(c,r)&&(c=null),u&&i.isBefore(u,o)&&(u=null),c){if(!s(c))return c;c=i.addDays(c,1)}if(u){if(!s(u))return u;u=i.addDays(u,-1)}}return null},Lg=(e,t)=>t==null||!e.isValid(t)?null:t,lt=(e,t,n)=>t==null||!e.isValid(t)?n:t,Ng=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),ri=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const o=r[r.length-1];r.push(e.addMonths(o,1))}return r},Xc=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),jg=["year","month","day"],Na=e=>jg.includes(e),oi=(e,{format:t,views:n},r)=>{if(t!=null)return t;const o=e.formats;return Xn(n,["year"])?o.year:Xn(n,["month"])?o.month:Xn(n,["day"])?o.dayOfMonth:Xn(n,["month","year"])?`${o.month} ${o.year}`:Xn(n,["day","month"])?`${o.month} ${o.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?o.normalDateWithWeekday:o.normalDate:o.keyboardDate},Bg=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},Vg=["hours","minutes","seconds"],zg=e=>Vg.includes(e),ja=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),_g=(e,t)=>(n,r)=>e?t.isAfter(n,r):ja(n,t)>ja(r,t),Pt={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Wg=e=>Math.max(...e.map(t=>Pt[t.type]??1)),Qn=(e,t,n)=>{if(t===Pt.year)return e.startOfYear(n);if(t===Pt.month)return e.startOfMonth(n);if(t===Pt.day)return e.startOfDay(n);let r=n;return t<Pt.minutes&&(r=e.setMinutes(r,0)),t<Pt.seconds&&(r=e.setSeconds(r,0)),t<Pt.milliseconds&&(r=e.setMilliseconds(r,0)),r},Hg=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{let s=o?o():Qn(t,n,Xc(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,s)&&(s=Qn(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,s)&&(s=Qn(t,n,e.maxDate));const i=_g(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&i(e.minTime,s)&&(s=Qn(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:go(t,s,e.minTime))),e.maxTime!=null&&i(s,e.maxTime)&&(s=Qn(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:go(t,s,e.maxTime))),s},Qc=(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(`
28
- `));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},Ug=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},jo=(e,t)=>{const n=[],r=e.date(void 0,"default"),o=e.startOfWeek(r),s=e.endOfWeek(r);let i=o;for(;e.isBefore(i,s);)n.push(i),i=e.addDays(i,1);return n.map(a=>e.formatByString(a,t))},Zc=(e,t,n,r)=>{switch(n){case"month":return ri(e,e.date(void 0,t)).map(o=>e.formatByString(o,r));case"weekDay":return jo(e,r);case"meridiem":{const o=e.date(void 0,t);return[e.startOfDay(o),e.endOfDay(o)].map(s=>e.formatByString(s,r))}default:return[]}},Ba="s",Yg=["0","1","2","3","4","5","6","7","8","9"],Gg=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),Ba)==="0"?Yg:Array.from({length:10}).map((r,o)=>e.formatByString(e.setSeconds(t,o),Ba))},dn=(e,t)=>{if(t[0]==="0")return e;const n=[];let r="";for(let o=0;o<e.length;o+=1){r+=e[o];const s=t.indexOf(r);s>-1&&(n.push(s.toString()),r="")}return n.join("")},si=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),Va=(e,t)=>{const n=dn(e,t);return n!==" "&&!Number.isNaN(Number(n))},Jc=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},eu=(e,t,n,r,o)=>{if(o.type==="day"&&o.contentType==="digit-with-letter"){const i=e.setDate(n.longestMonth,t);return e.formatByString(i,o.format)}let s=t.toString();return o.hasLeadingZerosInInput&&(s=Jc(s,o.maxLength)),si(s,r)},qg=(e,t,n,r,o,s,i,a)=>{const l=Ug(r),c=r==="Home",u=r==="End",p=n.value===""||c||u,m=()=>{const d=o[n.type]({currentDate:i,format:n.format,contentType:n.contentType}),h=C=>eu(e,C,d,s,n),g=n.type==="minutes"&&a?.minutesStep?a.minutesStep:1;let w;if(p){if(n.type==="year"&&!u&&!c)return e.formatByString(e.date(void 0,t),n.format);l>0||c?w=d.minimum:w=d.maximum}else w=parseInt(dn(n.value,s),10)+l*g;return w%g!==0&&((l<0||c)&&(w+=g-(g+w)%g),(l>0||u)&&(w-=w%g)),w>d.maximum?h(d.minimum+(w-d.maximum-1)%(d.maximum-d.minimum+1)):w<d.minimum?h(d.maximum-(d.minimum-w-1)%(d.maximum-d.minimum+1)):h(w)},b=()=>{const d=Zc(e,t,n.type,n.format);if(d.length===0)return n.value;if(p)return l>0||c?d[0]:d[d.length-1];const w=((d.indexOf(n.value)+l)%d.length+d.length)%d.length;return d[w]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?m():b()},ii=(e,t,n)=>{let r=e.value||e.placeholder;const o=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(dn(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!o&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},za=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),Kg=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,tu=(e,t,n,r)=>{if(t!=="digit")return!1;const o=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&r==="YY"?!0:e.formatByString(e.setYear(o,1),r).startsWith("0");case"month":return e.formatByString(e.startOfYear(o),r).length>1;case"day":return e.formatByString(e.startOfMonth(o),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),r).length>1;case"hours":return e.formatByString(e.setHours(o,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),r).length>1;default:throw new Error("Invalid section type")}},Xg=(e,t,n)=>{const r=t.some(l=>l.type==="day"),o=[],s=[];for(let l=0;l<t.length;l+=1){const c=t[l];r&&c.type==="weekDay"||(o.push(c.format),s.push(ii(c,"non-input",n)))}const i=o.join(" "),a=s.join(" ");return e.parse(a,i)},Qg=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),Zg=(e,t,n)=>{const o=e.map(s=>{const i=ii(s,n?"input-rtl":"input-ltr",t);return`${s.startSeparator}${i}${s.endSeparator}`}).join("");return n?`⁦${o}⁩`:o},Jg=(e,t,n)=>{const r=e.date(void 0,n),o=e.endOfYear(r),s=e.endOfDay(r),{maxDaysInMonth:i,longestMonth:a}=ri(e,r).reduce((l,c)=>{const u=e.getDaysInMonth(c);return u>l.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:c}:l},{maxDaysInMonth:0,longestMonth:null});return{year:({format:l})=>({minimum:0,maximum:Kg(e,l)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(o)+1}),day:({currentDate:l})=>({minimum:1,maximum:l!=null&&e.isValid(l)?e.getDaysInMonth(l):i,longestMonth:a}),weekDay:({format:l,contentType:c})=>{if(c==="digit"){const u=jo(e,l).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:l})=>{const c=e.getHours(s);return dn(e.formatByString(e.endOfDay(r),l),t)!==c.toString()?{minimum:1,maximum:Number(dn(e.formatByString(e.startOfDay(r),l),t))}:{minimum:0,maximum:c}},minutes:()=>({minimum:0,maximum:e.getMinutes(s)}),seconds:()=>({minimum:0,maximum:e.getSeconds(s)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},ey=(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":{const o=jo(e,t.format),s=e.formatByString(n,t.format),i=o.indexOf(s),l=o.indexOf(t.value)-i;return e.addDays(n,l)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const o=e.getHours(n)<12,s=e.getHours(r);return o&&s>=12?e.addHours(r,-12):!o&&s<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}},_a={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},Wa=(e,t,n,r,o)=>[...n].sort((s,i)=>_a[s.type]-_a[i.type]).reduce((s,i)=>!o||i.modified?ey(e,i,t,s):s,r),ty=()=>navigator.userAgent.toLowerCase().includes("android"),ny=(e,t)=>{const n={};if(!t)return e.forEach((l,c)=>{const u=c===0?null:c-1,p=c===e.length-1?null:c+1;n[c]={leftIndex:u,rightIndex:p}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let s=0,i=0,a=e.length-1;for(;a>=0;){i=e.findIndex((l,c)=>c>=s&&l.endSeparator?.includes(" ")&&l.endSeparator!==" / "),i===-1&&(i=e.length-1);for(let l=i;l>=s;l-=1)o[l]=a,r[a]=l,a-=1;s=i+1}return e.forEach((l,c)=>{const u=o[c],p=u===0?null:r[u-1],m=u===e.length-1?null:r[u+1];n[c]={leftIndex:p,rightIndex:m}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},bs=(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},ry=(e,t)=>{if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}},oy=(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}},sy=["value","referenceDate"],Dt={emptyValue:null,getTodayValue:Xc,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=ve(e,sy);return t!=null&&r.utils.isValid(t)?t:n??Hg(r)},cleanValue:Lg,areValuesEqual:Ng,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},iy={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&!!n?n:r(t),getV7HiddenInputValueFromSections:Qg,getV6InputValueFromSections:Zg,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},ay=["localeText"],vs=v.createContext(null),Sr=function(t){const{localeText:n}=t,r=ve(t,ay),{utils:o,localeText:s}=v.useContext(vs)??{utils:void 0,localeText:void 0},i=Fe({props:r,name:"MuiLocalizationProvider"}),{children:a,dateAdapter:l,dateFormats:c,dateLibInstance:u,adapterLocale:p,localeText:m}=i,b=v.useMemo(()=>j({},m,s,n),[m,s,n]),d=v.useMemo(()=>{if(!l)return o||null;const w=new l({locale:p,formats:c,instance:u});if(!w.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/getting-started/#installation"].join(`
29
- `));return w},[l,p,c,u,o]),h=v.useMemo(()=>d?{minDate:d.date("1900-01-01T00:00:00.000"),maxDate:d.date("2099-12-31T00:00:00.000")}:null,[d]),g=v.useMemo(()=>({utils:d,defaultDates:h,localeText:b}),[h,d,b]);return f.jsx(vs.Provider,{value:g,children:a})},ly=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:j({},e)}}}}),nu=e=>{const{utils:t,formatKey:n,contextTranslation:r,propsTranslation:o}=e;return s=>{const i=s!==null&&t.isValid(s)?t.format(s,n):null;return(o??r)(s,t,i)}},ru={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",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n,r)=>`Select ${e}. ${!r&&(t===null||!n.isValid(t))?"No time selected":`Selected time is ${r??n.format(t,"fullTime")}`}`,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,t,n)=>n||e!==null&&t.isValid(e)?`Choose date, selected date is ${n??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose time, selected time is ${n??t.format(e,"fullTime")}`:"Choose time",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"},cy=ru;ly(ru);const gn=()=>{const e=v.useContext(vs);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(`
30
- `));if(e.utils===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(`
31
- `));const t=v.useMemo(()=>j({},cy,e.localeText),[e.localeText]);return v.useMemo(()=>j({},e,{localeText:t}),[e,t])},Le=()=>gn().utils,Ar=()=>gn().defaultDates,Bo=e=>{const t=Le(),n=v.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function uy(e){return typeof e.main=="string"}function dy(e,t=[]){if(!uy(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Xe(e=[]){return([,t])=>t&&dy(t,e)}function py(e){return ge("MuiTypography",e)}const fy=he("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),hy={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},my=Bh(),gy=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:i}=e,a={root:["root",s,e.align!=="inherit"&&`align${le(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return me(a,py,i)},yy=Y("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${le(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ee(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(Xe()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${le(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Ha={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Xt=v.forwardRef(function(t,n){const{color:r,...o}=Ce({props:t,name:"MuiTypography"}),s=!hy[r],i=my({...o,...s&&{color:r}}),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:p=!1,paragraph:m=!1,variant:b="body1",variantMapping:d=Ha,...h}=i,g={...i,align:a,color:r,className:l,component:c,gutterBottom:u,noWrap:p,paragraph:m,variant:b,variantMapping:d},w=c||(m?"p":d[b]||Ha[b])||"span",C=gy(g);return f.jsx(yy,{as:w,ref:n,className:de(C.root,l),...h,ownerState:g,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...h.style}})});function by(e){return ge("MuiPickersToolbar",e)}he("MuiPickersToolbar",["root","content"]);const vy=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],xy=e=>{const{classes:t}=e;return me({root:["root"],content:["content"]},by,t)},Sy=Y("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),wy=Y("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),Cy=v.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersToolbar"}),{children:o,className:s,toolbarTitle:i,hidden:a,titleId:l}=r,c=ve(r,vy),u=r,p=xy(u);return a?null:f.jsxs(Sy,j({ref:n,className:de(p.root,s),ownerState:u},c,{children:[f.jsx(Xt,{color:"text.secondary",variant:"overline",id:l,children:i}),f.jsx(wy,{className:p.content,ownerState:u,children:o})]}))}),jt=()=>gn().localeText;function Py(e){return ge("MuiDatePickerToolbar",e)}he("MuiDatePickerToolbar",["root","title"]);const ky=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],My=e=>{const{classes:t}=e;return me({root:["root"],title:["title"]},Py,t)},Ty=Y(Cy,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Dy=Y(Xt,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),Ry=v.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDatePickerToolbar"}),{value:o,isLandscape:s,toolbarFormat:i,toolbarPlaceholder:a="––",views:l,className:c}=r,u=ve(r,ky),p=Le(),m=jt(),b=My(r),d=v.useMemo(()=>{if(!o)return a;const g=oi(p,{format:i,views:l},!0);return p.formatByString(o,g)},[o,i,a,p,l]),h=r;return f.jsx(Ty,j({ref:n,toolbarTitle:m.datePickerToolbarTitle,isLandscape:s,className:de(b.root,c)},u,{children:f.jsx(Dy,{variant:"h4",align:s?"left":"center",ownerState:h,className:b.title,children:d})}))});function ou(e,t){const n=Le(),r=Ar(),o=Fe({props:e,name:t}),s=v.useMemo(()=>o.localeText?.toolbarTitle==null?o.localeText:j({},o.localeText,{datePickerToolbarTitle:o.localeText.toolbarTitle}),[o.localeText]);return j({},o,{localeText:s},Fg({views:o.views,openTo:o.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:lt(n,o.minDate,r.minDate),maxDate:lt(n,o.maxDate,r.maxDate),slots:j({toolbar:Ry},o.slots)})}const Fr=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:o,shouldDisableMonth:s,shouldDisableYear:i,disablePast:a,disableFuture:l}=e,c=r.utils.date(void 0,n),u=lt(r.utils,e.minDate,r.defaultDates.minDate),p=lt(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(s&&s(t)):return"shouldDisableMonth";case!!(i&&i(t)):return"shouldDisableYear";case!!(l&&r.utils.isAfterDay(t,c)):return"disableFuture";case!!(a&&r.utils.isBeforeDay(t,c)):return"disablePast";case!!(u&&r.utils.isBeforeDay(t,u)):return"minDate";case!!(p&&r.utils.isAfterDay(t,p)):return"maxDate";default:return null}};Fr.valueManager=Dt;const su=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],Iy=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],Ey=["minDateTime","maxDateTime"],$y=[...su,...Iy,...Ey],iu=e=>$y.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function au(e){const{props:t,validator:n,value:r,timezone:o,onError:s}=e,i=gn(),a=v.useRef(n.valueManager.defaultErrorState),l=n({adapter:i,value:r,timezone:o,props:t}),c=n.valueManager.hasError(l);v.useEffect(()=>{s&&!n.valueManager.isSameError(l,a.current)&&s(l,r),a.current=l},[n,s,l,r]);const u=ue(p=>n({adapter:i,value:p,timezone:o,props:t}));return{validationError:l,hasValidationError:c,getValidationErrorForNewValue:u}}const Vo=v.createContext(void 0);function ft(){return v.useContext(Vo)}function Oy(e){return ge("MuiInputAdornment",e)}const Ua=he("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Ya;const Ay=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${le(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Fy=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:s,variant:i}=e,a={root:["root",n&&"disablePointerEvents",o&&`position${le(o)}`,i,r&&"hiddenLabel",s&&`size${le(s)}`]};return me(a,Oy,t)},Ly=Y("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:Ay})(Ee(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Ua.positionStart}&:not(.${Ua.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),lu=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiInputAdornment"}),{children:o,className:s,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:u,...p}=r,m=ft()||{};let b=u;u&&m.variant,m&&!b&&(b=m.variant);const d={...r,hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:a,position:c,variant:b},h=Fy(d);return f.jsx(Vo.Provider,{value:null,children:f.jsx(Ly,{as:i,ownerState:d,className:de(h.root,s),ref:n,...p,children:typeof o=="string"&&!l?f.jsx(Xt,{color:"textSecondary",children:o}):f.jsxs(v.Fragment,{children:[c==="start"?Ya||(Ya=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});class yo{static create(){return new yo}static use(){const t=Yc(yo.create).current,[n,r]=v.useState(!1);return t.shouldMount=n,t.setShouldMount=r,v.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=jy(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function Ny(){return yo.use()}function jy(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function xs(e,t){return xs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},xs(e,t)}function ai(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,xs(e,t)}function By(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Vy(e,t){e.classList?e.classList.add(t):By(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Ga(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function zy(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Ga(e.className,t):e.setAttribute("class",Ga(e.className&&e.className.baseVal||"",t))}const qa={disabled:!1},bo=ee.createContext(null);var cu=function(t){return t.scrollTop},cr="unmounted",rn="exited",on="entering",kn="entered",Ss="exiting",St=(function(e){ai(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=o,a=i&&!i.isMounting?r.enter:r.appear,l;return s.appearStatus=null,r.in?a?(l=rn,s.appearStatus=on):l=kn:r.unmountOnExit||r.mountOnEnter?l=cr:l=rn,s.state={status:l},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===cr?{status:rn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==on&&i!==kn&&(s=on):(i===on||i===kn)&&(s=Ss)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,i,a;return s=i=a=o,o!=null&&typeof o!="number"&&(s=o.exit,i=o.enter,a=o.appear!==void 0?o.appear:i),{exit:s,enter:i,appear:a}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===on){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:ir.findDOMNode(this);i&&cu(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===rn&&this.setState({status:cr})},n.performEnter=function(o){var s=this,i=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[ir.findDOMNode(this),a],c=l[0],u=l[1],p=this.getTimeouts(),m=a?p.appear:p.enter;if(!o&&!i||qa.disabled){this.safeSetState({status:kn},function(){s.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:on},function(){s.props.onEntering(c,u),s.onTransitionEnd(m,function(){s.safeSetState({status:kn},function(){s.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,s=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:ir.findDOMNode(this);if(!s||qa.disabled){this.safeSetState({status:rn},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Ss},function(){o.props.onExiting(a),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:rn},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,i=!0;return this.nextCallback=function(a){i&&(i=!1,s.nextCallback=null,o(a))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var i=this.props.nodeRef?this.props.nodeRef.current:ir.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!i||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===cr)return null;var s=this.props,i=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var a=ve(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ee.createElement(bo.Provider,{value:null},typeof i=="function"?i(o,a):ee.cloneElement(ee.Children.only(i),a))},t})(ee.Component);St.contextType=bo;St.propTypes={};function Cn(){}St.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Cn,onEntering:Cn,onEntered:Cn,onExit:Cn,onExiting:Cn,onExited:Cn};St.UNMOUNTED=cr;St.EXITED=rn;St.ENTERING=on;St.ENTERED=kn;St.EXITING=Ss;var _y=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return Vy(t,r)})},is=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return zy(t,r)})},li=(function(e){ai(t,e);function t(){for(var r,o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return r=e.call.apply(e,[this].concat(s))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(a,l){var c=r.resolveArguments(a,l),u=c[0],p=c[1];r.removeClasses(u,"exit"),r.addClass(u,p?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(a,l)},r.onEntering=function(a,l){var c=r.resolveArguments(a,l),u=c[0],p=c[1],m=p?"appear":"enter";r.addClass(u,m,"active"),r.props.onEntering&&r.props.onEntering(a,l)},r.onEntered=function(a,l){var c=r.resolveArguments(a,l),u=c[0],p=c[1],m=p?"appear":"enter";r.removeClasses(u,m),r.addClass(u,m,"done"),r.props.onEntered&&r.props.onEntered(a,l)},r.onExit=function(a){var l=r.resolveArguments(a),c=l[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(a)},r.onExiting=function(a){var l=r.resolveArguments(a),c=l[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(a)},r.onExited=function(a){var l=r.resolveArguments(a),c=l[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(a)},r.resolveArguments=function(a,l){return r.props.nodeRef?[r.props.nodeRef.current,a]:[a,l]},r.getClassNames=function(a){var l=r.props.classNames,c=typeof l=="string",u=c&&l?l+"-":"",p=c?""+u+a:l[a],m=c?p+"-active":l[a+"Active"],b=c?p+"-done":l[a+"Done"];return{baseClassName:p,activeClassName:m,doneClassName:b}},r}var n=t.prototype;return n.addClass=function(o,s,i){var a=this.getClassNames(s)[i+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;s==="appear"&&i==="done"&&c&&(a+=" "+c),i==="active"&&o&&cu(o),a&&(this.appliedClasses[s][i]=a,_y(o,a))},n.removeClasses=function(o,s){var i=this.appliedClasses[s],a=i.base,l=i.active,c=i.done;this.appliedClasses[s]={},a&&is(o,a),l&&is(o,l),c&&is(o,c)},n.render=function(){var o=this.props;o.classNames;var s=ve(o,["classNames"]);return ee.createElement(St,j({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(ee.Component);li.defaultProps={classNames:""};li.propTypes={};function Wy(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ci(e,t){var n=function(s){return t&&ee.isValidElement(s)?t(s):s},r=Object.create(null);return e&&ee.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Hy(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var s in e)s in t?o.length&&(r[s]=o,o=[]):o.push(s);var i,a={};for(var l in t){if(r[l])for(i=0;i<r[l].length;i++){var c=r[l][i];a[r[l][i]]=n(c)}a[l]=n(l)}for(i=0;i<o.length;i++)a[o[i]]=n(o[i]);return a}function an(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Uy(e,t){return ci(e.children,function(n){return ee.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 Yy(e,t,n){var r=ci(e.children),o=Hy(t,r);return Object.keys(o).forEach(function(s){var i=o[s];if(ee.isValidElement(i)){var a=s in t,l=s in r,c=t[s],u=ee.isValidElement(c)&&!c.props.in;l&&(!a||u)?o[s]=ee.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:an(i,"exit",e),enter:an(i,"enter",e)}):!l&&a&&!u?o[s]=ee.cloneElement(i,{in:!1}):l&&a&&ee.isValidElement(c)&&(o[s]=ee.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:an(i,"exit",e),enter:an(i,"enter",e)}))}}),o}var Gy=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},qy={component:"div",childFactory:function(t){return t}},Lr=(function(e){ai(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=s.handleExited.bind(Wy(s));return s.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,s){var i=s.children,a=s.handleExited,l=s.firstRender;return{children:l?Uy(o,a):Yy(o,i,a),firstRender:!1}},n.handleExited=function(o,s){var i=ci(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(a){var l=j({},a.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,s=o.component,i=o.childFactory,a=ve(o,["component","childFactory"]),l=this.state.contextValue,c=Gy(this.state.children).map(i);return delete a.appear,delete a.enter,delete a.exit,s===null?ee.createElement(bo.Provider,{value:l},c):ee.createElement(bo.Provider,{value:l},ee.createElement(s,a,c))},t})(ee.Component);Lr.propTypes={};Lr.defaultProps=qy;function Ky(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:i,in:a,onExited:l,timeout:c}=e,[u,p]=v.useState(!1),m=de(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:i,height:i,top:-(i/2)+s,left:-(i/2)+o},d=de(n.child,u&&n.childLeaving,r&&n.childPulsate);return!a&&!u&&p(!0),v.useEffect(()=>{if(!a&&l!=null){const h=setTimeout(l,c);return()=>{clearTimeout(h)}}},[l,a,c]),f.jsx("span",{className:m,style:b,children:f.jsx("span",{className:d})})}const st=he("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ws=550,Xy=80,Qy=He.keyframes`
32
- 0% {
33
- transform: scale(0);
34
- opacity: 0.1;
35
- }
36
-
37
- 100% {
38
- transform: scale(1);
39
- opacity: 0.3;
40
- }
41
- `,Zy=He.keyframes`
42
- 0% {
43
- opacity: 1;
44
- }
45
-
46
- 100% {
47
- opacity: 0;
48
- }
49
- `,Jy=He.keyframes`
50
- 0% {
51
- transform: scale(1);
52
- }
53
-
54
- 50% {
55
- transform: scale(0.92);
56
- }
57
-
58
- 100% {
59
- transform: scale(1);
60
- }
61
- `,eb=Y("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),tb=Y(Ky,{name:"MuiTouchRipple",slot:"Ripple"})`
62
- opacity: 0;
63
- position: absolute;
64
-
65
- &.${st.rippleVisible} {
66
- opacity: 0.3;
67
- transform: scale(1);
68
- animation-name: ${Qy};
69
- animation-duration: ${ws}ms;
70
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
71
- }
72
-
73
- &.${st.ripplePulsate} {
74
- animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
75
- }
76
-
77
- & .${st.child} {
78
- opacity: 1;
79
- display: block;
80
- width: 100%;
81
- height: 100%;
82
- border-radius: 50%;
83
- background-color: currentColor;
84
- }
85
-
86
- & .${st.childLeaving} {
87
- opacity: 0;
88
- animation-name: ${Zy};
89
- animation-duration: ${ws}ms;
90
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
91
- }
92
-
93
- & .${st.childPulsate} {
94
- position: absolute;
95
- /* @noflip */
96
- left: 0px;
97
- top: 0;
98
- animation-name: ${Jy};
99
- animation-duration: 2500ms;
100
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
101
- animation-iteration-count: infinite;
102
- animation-delay: 200ms;
103
- }
104
- `,nb=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:i,...a}=r,[l,c]=v.useState([]),u=v.useRef(0),p=v.useRef(null);v.useEffect(()=>{p.current&&(p.current(),p.current=null)},[l]);const m=v.useRef(!1),b=ti(),d=v.useRef(null),h=v.useRef(null),g=v.useCallback(x=>{const{pulsate:P,rippleX:k,rippleY:I,rippleSize:R,cb:N}=x;c(F=>[...F,f.jsx(tb,{classes:{ripple:de(s.ripple,st.ripple),rippleVisible:de(s.rippleVisible,st.rippleVisible),ripplePulsate:de(s.ripplePulsate,st.ripplePulsate),child:de(s.child,st.child),childLeaving:de(s.childLeaving,st.childLeaving),childPulsate:de(s.childPulsate,st.childPulsate)},timeout:ws,pulsate:P,rippleX:k,rippleY:I,rippleSize:R},u.current)]),u.current+=1,p.current=N},[s]),w=v.useCallback((x={},P={},k=()=>{})=>{const{pulsate:I=!1,center:R=o||P.pulsate,fakeElement:N=!1}=P;if(x?.type==="mousedown"&&m.current){m.current=!1;return}x?.type==="touchstart"&&(m.current=!0);const F=N?null:h.current,E=F?F.getBoundingClientRect():{width:0,height:0,left:0,top:0};let y,$,D;if(R||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)y=Math.round(E.width/2),$=Math.round(E.height/2);else{const{clientX:M,clientY:T}=x.touches&&x.touches.length>0?x.touches[0]:x;y=Math.round(M-E.left),$=Math.round(T-E.top)}if(R)D=Math.sqrt((2*E.width**2+E.height**2)/3),D%2===0&&(D+=1);else{const M=Math.max(Math.abs((F?F.clientWidth:0)-y),y)*2+2,T=Math.max(Math.abs((F?F.clientHeight:0)-$),$)*2+2;D=Math.sqrt(M**2+T**2)}x?.touches?d.current===null&&(d.current=()=>{g({pulsate:I,rippleX:y,rippleY:$,rippleSize:D,cb:k})},b.start(Xy,()=>{d.current&&(d.current(),d.current=null)})):g({pulsate:I,rippleX:y,rippleY:$,rippleSize:D,cb:k})},[o,g,b]),C=v.useCallback(()=>{w({},{pulsate:!0})},[w]),S=v.useCallback((x,P)=>{if(b.clear(),x?.type==="touchend"&&d.current){d.current(),d.current=null,b.start(0,()=>{S(x,P)});return}d.current=null,c(k=>k.length>0?k.slice(1):k),p.current=P},[b]);return v.useImperativeHandle(n,()=>({pulsate:C,start:w,stop:S}),[C,w,S]),f.jsx(eb,{className:de(st.root,s.root,i),ref:h,...a,children:f.jsx(Lr,{component:null,exit:!0,children:l})})});function rb(e){return ge("MuiButtonBase",e)}const ob=he("MuiButtonBase",["root","disabled","focusVisible"]),sb=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=me({root:["root",t&&"disabled",n&&"focusVisible"]},rb,o);return n&&r&&(i.root+=` ${r}`),i},ib=Y("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"},[`&.${ob.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),jn=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:i,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:p=!1,focusRipple:m=!1,focusVisibleClassName:b,LinkComponent:d="a",onBlur:h,onClick:g,onContextMenu:w,onDragLeave:C,onFocus:S,onFocusVisible:x,onKeyDown:P,onKeyUp:k,onMouseDown:I,onMouseLeave:R,onMouseUp:N,onTouchEnd:F,onTouchMove:E,onTouchStart:y,tabIndex:$=0,TouchRippleProps:D,touchRippleRef:M,type:T,...O}=r,A=v.useRef(null),L=Ny(),V=ke(L.ref,M),[X,re]=v.useState(!1);c&&X&&re(!1),v.useImperativeHandle(o,()=>({focusVisible:()=>{re(!0),A.current.focus()}}),[]);const ae=L.shouldMount&&!u&&!c;v.useEffect(()=>{X&&m&&!u&&L.pulsate()},[u,m,X,L]);const ie=Et(L,"start",I,p),z=Et(L,"stop",w,p),Z=Et(L,"stop",C,p),Q=Et(L,"stop",N,p),G=Et(L,"stop",pe=>{X&&pe.preventDefault(),R&&R(pe)},p),H=Et(L,"start",y,p),q=Et(L,"stop",F,p),te=Et(L,"stop",E,p),J=Et(L,"stop",pe=>{Fa(pe.target)||re(!1),h&&h(pe)},!1),B=ue(pe=>{A.current||(A.current=pe.currentTarget),Fa(pe.target)&&(re(!0),x&&x(pe)),S&&S(pe)}),K=()=>{const pe=A.current;return l&&l!=="button"&&!(pe.tagName==="A"&&pe.href)},oe=ue(pe=>{m&&!pe.repeat&&X&&pe.key===" "&&L.stop(pe,()=>{L.start(pe)}),pe.target===pe.currentTarget&&K()&&pe.key===" "&&pe.preventDefault(),P&&P(pe),pe.target===pe.currentTarget&&K()&&pe.key==="Enter"&&!c&&(pe.preventDefault(),g&&g(pe))}),ne=ue(pe=>{m&&pe.key===" "&&X&&!pe.defaultPrevented&&L.stop(pe,()=>{L.pulsate(pe)}),k&&k(pe),g&&pe.target===pe.currentTarget&&K()&&pe.key===" "&&!pe.defaultPrevented&&g(pe)});let ce=l;ce==="button"&&(O.href||O.to)&&(ce=d);const se={};ce==="button"?(se.type=T===void 0?"button":T,se.disabled=c):(!O.href&&!O.to&&(se.role="button"),c&&(se["aria-disabled"]=c));const fe=ke(n,A),be={...r,centerRipple:s,component:l,disabled:c,disableRipple:u,disableTouchRipple:p,focusRipple:m,tabIndex:$,focusVisible:X},we=sb(be);return f.jsxs(ib,{as:ce,className:de(we.root,a),ownerState:be,onBlur:J,onClick:g,onContextMenu:z,onFocus:B,onKeyDown:oe,onKeyUp:ne,onMouseDown:ie,onMouseLeave:G,onMouseUp:Q,onDragLeave:Z,onTouchEnd:q,onTouchMove:te,onTouchStart:H,ref:fe,tabIndex:c?-1:$,type:T,...se,...O,children:[i,ae?f.jsx(nb,{ref:V,center:s,...D}):null]})});function Et(e,t,n,r=!1){return ue(o=>(n&&n(o),r||e[t](o),!0))}function ab(e){return ge("MuiCircularProgress",e)}he("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ht=44,Cs=He.keyframes`
105
- 0% {
106
- transform: rotate(0deg);
107
- }
108
-
109
- 100% {
110
- transform: rotate(360deg);
111
- }
112
- `,Ps=He.keyframes`
113
- 0% {
114
- stroke-dasharray: 1px, 200px;
115
- stroke-dashoffset: 0;
116
- }
117
-
118
- 50% {
119
- stroke-dasharray: 100px, 200px;
120
- stroke-dashoffset: -15px;
121
- }
122
-
123
- 100% {
124
- stroke-dasharray: 1px, 200px;
125
- stroke-dashoffset: -126px;
126
- }
127
- `,lb=typeof Cs!="string"?He.css`
128
- animation: ${Cs} 1.4s linear infinite;
129
- `:null,cb=typeof Ps!="string"?He.css`
130
- animation: ${Ps} 1.4s ease-in-out infinite;
131
- `:null,ub=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,s={root:["root",n,`color${le(r)}`],svg:["svg"],circle:["circle",`circle${le(n)}`,o&&"circleDisableShrink"]};return me(s,ab,t)},db=Y("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${le(n.color)}`]]}})(Ee(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:lb||{animation:`${Cs} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Xe()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),pb=Y("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),fb=Y("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${le(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Ee(({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:cb||{animation:`${Ps} 1.4s ease-in-out infinite`}}]}))),ui=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:i=!1,size:a=40,style:l,thickness:c=3.6,value:u=0,variant:p="indeterminate",...m}=r,b={...r,color:s,disableShrink:i,size:a,thickness:c,value:u,variant:p},d=ub(b),h={},g={},w={};if(p==="determinate"){const C=2*Math.PI*((Ht-c)/2);h.strokeDasharray=C.toFixed(3),w["aria-valuenow"]=Math.round(u),h.strokeDashoffset=`${((100-u)/100*C).toFixed(3)}px`,g.transform="rotate(-90deg)"}return f.jsx(db,{className:de(d.root,o),style:{width:a,height:a,...g,...l},ownerState:b,ref:n,role:"progressbar",...w,...m,children:f.jsx(pb,{className:d.svg,ownerState:b,viewBox:`${Ht/2} ${Ht/2} ${Ht} ${Ht}`,children:f.jsx(fb,{className:d.circle,style:h,ownerState:b,cx:Ht,cy:Ht,r:(Ht-c)/2,fill:"none",strokeWidth:c})})})});function hb(e){return ge("MuiIconButton",e)}const Ka=he("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),mb=e=>{const{classes:t,disabled:n,color:r,edge:o,size:s,loading:i}=e,a={root:["root",i&&"loading",n&&"disabled",r!=="default"&&`color${le(r)}`,o&&`edge${le(o)}`,`size${le(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return me(a,hb,t)},gb=Y(jn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${le(n.color)}`],n.edge&&t[`edge${le(n.edge)}`],t[`size${le(n.size)}`]]}})(Ee(({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}}]})),Ee(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Xe()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Xe()).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)}}],[`&.${Ka.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Ka.loading}`]:{color:"transparent"}}))),yb=Y("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"}}]})),Nr=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:i,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",id:p,loading:m=null,loadingIndicator:b,...d}=r,h=xt(p),g=b??f.jsx(ui,{"aria-labelledby":h,color:"inherit",size:16}),w={...r,edge:o,color:a,disabled:l,disableFocusRipple:c,loading:m,loadingIndicator:g,size:u},C=mb(w);return f.jsxs(gb,{id:m?h:p,className:de(C.root,i),centerRipple:!0,focusRipple:!c,disabled:l||m,ref:n,...d,ownerState:w,children:[typeof m=="boolean"&&f.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:f.jsx(yb,{className:C.loadingIndicator,ownerState:w,children:m&&g})}),s]})}),uu=e=>e.scrollTop;function vo(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function ks(e){return`scale(${e}, ${e**2})`}const bb={entering:{opacity:1,transform:ks(1)},entered:{opacity:1,transform:"none"}},as=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),wr=v.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:i,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:p,onExited:m,onExiting:b,style:d,timeout:h="auto",TransitionComponent:g=St,...w}=t,C=ti(),S=v.useRef(),x=mn(),P=v.useRef(null),k=ke(P,Un(s),n),I=M=>T=>{if(M){const O=P.current;T===void 0?M(O):M(O,T)}},R=I(u),N=I((M,T)=>{uu(M);const{duration:O,delay:A,easing:L}=vo({style:d,timeout:h,easing:i},{mode:"enter"});let V;h==="auto"?(V=x.transitions.getAutoHeightDuration(M.clientHeight),S.current=V):V=O,M.style.transition=[x.transitions.create("opacity",{duration:V,delay:A}),x.transitions.create("transform",{duration:as?V:V*.666,delay:A,easing:L})].join(","),l&&l(M,T)}),F=I(c),E=I(b),y=I(M=>{const{duration:T,delay:O,easing:A}=vo({style:d,timeout:h,easing:i},{mode:"exit"});let L;h==="auto"?(L=x.transitions.getAutoHeightDuration(M.clientHeight),S.current=L):L=T,M.style.transition=[x.transitions.create("opacity",{duration:L,delay:O}),x.transitions.create("transform",{duration:as?L:L*.666,delay:as?O:O||L*.333,easing:A})].join(","),M.style.opacity=0,M.style.transform=ks(.75),p&&p(M)}),$=I(m),D=M=>{h==="auto"&&C.start(S.current||0,M),r&&r(P.current,M)};return f.jsx(g,{appear:o,in:a,nodeRef:P,onEnter:N,onEntered:F,onEntering:R,onExit:y,onExited:$,onExiting:E,addEndListener:D,timeout:h==="auto"?null:h,...w,children:(M,{ownerState:T,...O})=>v.cloneElement(s,{style:{opacity:0,transform:ks(.75),visibility:M==="exited"&&!a?"hidden":void 0,...bb[M],...d,...s.props.style},ref:k,...O})})});wr&&(wr.muiSupportAuto=!0);const vb={entering:{opacity:1},entered:{opacity:1}},pn=v.forwardRef(function(t,n){const r=mn(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:i=!0,children:a,easing:l,in:c,onEnter:u,onEntered:p,onEntering:m,onExit:b,onExited:d,onExiting:h,style:g,timeout:w=o,TransitionComponent:C=St,...S}=t,x=v.useRef(null),P=ke(x,Un(a),n),k=D=>M=>{if(D){const T=x.current;M===void 0?D(T):D(T,M)}},I=k(m),R=k((D,M)=>{uu(D);const T=vo({style:g,timeout:w,easing:l},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",T),D.style.transition=r.transitions.create("opacity",T),u&&u(D,M)}),N=k(p),F=k(h),E=k(D=>{const M=vo({style:g,timeout:w,easing:l},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",M),D.style.transition=r.transitions.create("opacity",M),b&&b(D)}),y=k(d),$=D=>{s&&s(x.current,D)};return f.jsx(C,{appear:i,in:c,nodeRef:x,onEnter:R,onEntered:N,onEntering:I,onExit:E,onExited:y,onExiting:F,addEndListener:$,timeout:w,...S,children:(D,{ownerState:M,...T})=>v.cloneElement(a,{style:{opacity:0,visibility:D==="exited"&&!c?"hidden":void 0,...vb[D],...g,...a.props.style},ref:P,...T})})});function xb(e){return ge("MuiPaper",e)}he("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 Sb=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return me(s,xb,o)},wb=Y("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}`]]}})(Ee(({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)"}}]}))),jr=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiPaper"}),o=mn(),{className:s,component:i="div",elevation:a=1,square:l=!1,variant:c="elevation",...u}=r,p={...r,component:i,elevation:a,square:l,variant:c},m=Sb(p);return f.jsx(wb,{as:i,ownerState:p,className:de(m.root,s),ref:n,...u,style:{...c==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[a],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[a]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${uo("#fff",gs(a))}, ${uo("#fff",gs(a))})`}},...u.style}})});var Qe="top",ct="bottom",ut="right",Ze="left",di="auto",Br=[Qe,ct,ut,Ze],Bn="start",Cr="end",Cb="clippingParents",du="viewport",Zn="popper",Pb="reference",Xa=Br.reduce(function(e,t){return e.concat([t+"-"+Bn,t+"-"+Cr])},[]),pu=[].concat(Br,[di]).reduce(function(e,t){return e.concat([t,t+"-"+Bn,t+"-"+Cr])},[]),kb="beforeRead",Mb="read",Tb="afterRead",Db="beforeMain",Rb="main",Ib="afterMain",Eb="beforeWrite",$b="write",Ob="afterWrite",Ab=[kb,Mb,Tb,Db,Rb,Ib,Eb,$b,Ob];function Rt(e){return e?(e.nodeName||"").toLowerCase():null}function et(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function fn(e){var t=et(e).Element;return e instanceof t||e instanceof Element}function at(e){var t=et(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function pi(e){if(typeof ShadowRoot>"u")return!1;var t=et(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Fb(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!at(s)||!Rt(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(i){var a=o[i];a===!1?s.removeAttribute(i):s.setAttribute(i,a===!0?"":a)}))})}function Lb(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=i.reduce(function(l,c){return l[c]="",l},{});!at(o)||!Rt(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(l){o.removeAttribute(l)}))})}}const Nb={name:"applyStyles",enabled:!0,phase:"write",fn:Fb,effect:Lb,requires:["computeStyles"]};function Mt(e){return e.split("-")[0]}var un=Math.max,xo=Math.min,Vn=Math.round;function Ms(){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 fu(){return!/^((?!chrome|android).)*safari/i.test(Ms())}function zn(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&at(e)&&(o=e.offsetWidth>0&&Vn(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Vn(r.height)/e.offsetHeight||1);var i=fn(e)?et(e):window,a=i.visualViewport,l=!fu()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/s,p=r.width/o,m=r.height/s;return{width:p,height:m,top:u,right:c+p,bottom:u+m,left:c,x:c,y:u}}function fi(e){var t=zn(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 hu(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&pi(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Lt(e){return et(e).getComputedStyle(e)}function jb(e){return["table","td","th"].indexOf(Rt(e))>=0}function Qt(e){return((fn(e)?e.ownerDocument:e.document)||window.document).documentElement}function zo(e){return Rt(e)==="html"?e:e.assignedSlot||e.parentNode||(pi(e)?e.host:null)||Qt(e)}function Qa(e){return!at(e)||Lt(e).position==="fixed"?null:e.offsetParent}function Bb(e){var t=/firefox/i.test(Ms()),n=/Trident/i.test(Ms());if(n&&at(e)){var r=Lt(e);if(r.position==="fixed")return null}var o=zo(e);for(pi(o)&&(o=o.host);at(o)&&["html","body"].indexOf(Rt(o))<0;){var s=Lt(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Vr(e){for(var t=et(e),n=Qa(e);n&&jb(n)&&Lt(n).position==="static";)n=Qa(n);return n&&(Rt(n)==="html"||Rt(n)==="body"&&Lt(n).position==="static")?t:n||Bb(e)||t}function hi(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fr(e,t,n){return un(e,xo(t,n))}function Vb(e,t,n){var r=fr(e,t,n);return r>n?n:r}function mu(){return{top:0,right:0,bottom:0,left:0}}function gu(e){return Object.assign({},mu(),e)}function yu(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var zb=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,gu(typeof t!="number"?t:yu(t,Br))};function _b(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,a=Mt(n.placement),l=hi(a),c=[Ze,ut].indexOf(a)>=0,u=c?"height":"width";if(!(!s||!i)){var p=zb(o.padding,n),m=fi(s),b=l==="y"?Qe:Ze,d=l==="y"?ct:ut,h=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],g=i[l]-n.rects.reference[l],w=Vr(s),C=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,S=h/2-g/2,x=p[b],P=C-m[u]-p[d],k=C/2-m[u]/2+S,I=fr(x,k,P),R=l;n.modifiersData[r]=(t={},t[R]=I,t.centerOffset=I-k,t)}}function Wb(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||hu(t.elements.popper,o)&&(t.elements.arrow=o))}const Hb={name:"arrow",enabled:!0,phase:"main",fn:_b,effect:Wb,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _n(e){return e.split("-")[1]}var Ub={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yb(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Vn(n*o)/o||0,y:Vn(r*o)/o||0}}function Za(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,i=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,p=e.isFixed,m=i.x,b=m===void 0?0:m,d=i.y,h=d===void 0?0:d,g=typeof u=="function"?u({x:b,y:h}):{x:b,y:h};b=g.x,h=g.y;var w=i.hasOwnProperty("x"),C=i.hasOwnProperty("y"),S=Ze,x=Qe,P=window;if(c){var k=Vr(n),I="clientHeight",R="clientWidth";if(k===et(n)&&(k=Qt(n),Lt(k).position!=="static"&&a==="absolute"&&(I="scrollHeight",R="scrollWidth")),k=k,o===Qe||(o===Ze||o===ut)&&s===Cr){x=ct;var N=p&&k===P&&P.visualViewport?P.visualViewport.height:k[I];h-=N-r.height,h*=l?1:-1}if(o===Ze||(o===Qe||o===ct)&&s===Cr){S=ut;var F=p&&k===P&&P.visualViewport?P.visualViewport.width:k[R];b-=F-r.width,b*=l?1:-1}}var E=Object.assign({position:a},c&&Ub),y=u===!0?Yb({x:b,y:h},et(n)):{x:b,y:h};if(b=y.x,h=y.y,l){var $;return Object.assign({},E,($={},$[x]=C?"0":"",$[S]=w?"0":"",$.transform=(P.devicePixelRatio||1)<=1?"translate("+b+"px, "+h+"px)":"translate3d("+b+"px, "+h+"px, 0)",$))}return Object.assign({},E,(t={},t[x]=C?h+"px":"",t[S]=w?b+"px":"",t.transform="",t))}function Gb(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,i=s===void 0?!0:s,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Mt(t.placement),variation:_n(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Za(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Za(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const qb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Gb,data:{}};var Hr={passive:!0};function Kb(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,i=r.resize,a=i===void 0?!0:i,l=et(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",n.update,Hr)}),a&&l.addEventListener("resize",n.update,Hr),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Hr)}),a&&l.removeEventListener("resize",n.update,Hr)}}const Xb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Kb,data:{}};var Qb={left:"right",right:"left",bottom:"top",top:"bottom"};function lo(e){return e.replace(/left|right|bottom|top/g,function(t){return Qb[t]})}var Zb={start:"end",end:"start"};function Ja(e){return e.replace(/start|end/g,function(t){return Zb[t]})}function mi(e){var t=et(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function gi(e){return zn(Qt(e)).left+mi(e).scrollLeft}function Jb(e,t){var n=et(e),r=Qt(e),o=n.visualViewport,s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;var c=fu();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a+gi(e),y:l}}function ev(e){var t,n=Qt(e),r=mi(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=un(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=un(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+gi(e),l=-r.scrollTop;return Lt(o||n).direction==="rtl"&&(a+=un(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:a,y:l}}function yi(e){var t=Lt(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function bu(e){return["html","body","#document"].indexOf(Rt(e))>=0?e.ownerDocument.body:at(e)&&yi(e)?e:bu(zo(e))}function hr(e,t){var n;t===void 0&&(t=[]);var r=bu(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=et(r),i=o?[s].concat(s.visualViewport||[],yi(r)?r:[]):r,a=t.concat(i);return o?a:a.concat(hr(zo(i)))}function Ts(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function tv(e,t){var n=zn(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 el(e,t,n){return t===du?Ts(Jb(e,n)):fn(t)?tv(t,n):Ts(ev(Qt(e)))}function nv(e){var t=hr(zo(e)),n=["absolute","fixed"].indexOf(Lt(e).position)>=0,r=n&&at(e)?Vr(e):e;return fn(r)?t.filter(function(o){return fn(o)&&hu(o,r)&&Rt(o)!=="body"}):[]}function rv(e,t,n,r){var o=t==="clippingParents"?nv(e):[].concat(t),s=[].concat(o,[n]),i=s[0],a=s.reduce(function(l,c){var u=el(e,c,r);return l.top=un(u.top,l.top),l.right=xo(u.right,l.right),l.bottom=xo(u.bottom,l.bottom),l.left=un(u.left,l.left),l},el(e,i,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function vu(e){var t=e.reference,n=e.element,r=e.placement,o=r?Mt(r):null,s=r?_n(r):null,i=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case Qe:l={x:i,y:t.y-n.height};break;case ct:l={x:i,y:t.y+t.height};break;case ut:l={x:t.x+t.width,y:a};break;case Ze:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?hi(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case Bn:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Cr:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Pr(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,i=s===void 0?e.strategy:s,a=n.boundary,l=a===void 0?Cb:a,c=n.rootBoundary,u=c===void 0?du:c,p=n.elementContext,m=p===void 0?Zn:p,b=n.altBoundary,d=b===void 0?!1:b,h=n.padding,g=h===void 0?0:h,w=gu(typeof g!="number"?g:yu(g,Br)),C=m===Zn?Pb:Zn,S=e.rects.popper,x=e.elements[d?C:m],P=rv(fn(x)?x:x.contextElement||Qt(e.elements.popper),l,u,i),k=zn(e.elements.reference),I=vu({reference:k,element:S,placement:o}),R=Ts(Object.assign({},S,I)),N=m===Zn?R:k,F={top:P.top-N.top+w.top,bottom:N.bottom-P.bottom+w.bottom,left:P.left-N.left+w.left,right:N.right-P.right+w.right},E=e.modifiersData.offset;if(m===Zn&&E){var y=E[o];Object.keys(F).forEach(function($){var D=[ut,ct].indexOf($)>=0?1:-1,M=[Qe,ct].indexOf($)>=0?"y":"x";F[$]+=y[M]*D})}return F}function ov(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,i=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?pu:l,u=_n(r),p=u?a?Xa:Xa.filter(function(d){return _n(d)===u}):Br,m=p.filter(function(d){return c.indexOf(d)>=0});m.length===0&&(m=p);var b=m.reduce(function(d,h){return d[h]=Pr(e,{placement:h,boundary:o,rootBoundary:s,padding:i})[Mt(h)],d},{});return Object.keys(b).sort(function(d,h){return b[d]-b[h]})}function sv(e){if(Mt(e)===di)return[];var t=lo(e);return[Ja(e),t,Ja(t)]}function iv(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,p=n.rootBoundary,m=n.altBoundary,b=n.flipVariations,d=b===void 0?!0:b,h=n.allowedAutoPlacements,g=t.options.placement,w=Mt(g),C=w===g,S=l||(C||!d?[lo(g)]:sv(g)),x=[g].concat(S).reduce(function(ie,z){return ie.concat(Mt(z)===di?ov(t,{placement:z,boundary:u,rootBoundary:p,padding:c,flipVariations:d,allowedAutoPlacements:h}):z)},[]),P=t.rects.reference,k=t.rects.popper,I=new Map,R=!0,N=x[0],F=0;F<x.length;F++){var E=x[F],y=Mt(E),$=_n(E)===Bn,D=[Qe,ct].indexOf(y)>=0,M=D?"width":"height",T=Pr(t,{placement:E,boundary:u,rootBoundary:p,altBoundary:m,padding:c}),O=D?$?ut:Ze:$?ct:Qe;P[M]>k[M]&&(O=lo(O));var A=lo(O),L=[];if(s&&L.push(T[y]<=0),a&&L.push(T[O]<=0,T[A]<=0),L.every(function(ie){return ie})){N=E,R=!1;break}I.set(E,L)}if(R)for(var V=d?3:1,X=function(z){var Z=x.find(function(Q){var G=I.get(Q);if(G)return G.slice(0,z).every(function(H){return H})});if(Z)return N=Z,"break"},re=V;re>0;re--){var ae=X(re);if(ae==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}const av={name:"flip",enabled:!0,phase:"main",fn:iv,requiresIfExists:["offset"],data:{_skip:!1}};function tl(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 nl(e){return[Qe,ut,ct,Ze].some(function(t){return e[t]>=0})}function lv(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=Pr(t,{elementContext:"reference"}),a=Pr(t,{altBoundary:!0}),l=tl(i,r),c=tl(a,o,s),u=nl(l),p=nl(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}const cv={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:lv};function uv(e,t,n){var r=Mt(e),o=[Ze,Qe].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=s[0],a=s[1];return i=i||0,a=(a||0)*o,[Ze,ut].indexOf(r)>=0?{x:a,y:i}:{x:i,y:a}}function dv(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=pu.reduce(function(u,p){return u[p]=uv(p,t.rects,s),u},{}),a=i[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const pv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:dv};function fv(e){var t=e.state,n=e.name;t.modifiersData[n]=vu({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const hv={name:"popperOffsets",enabled:!0,phase:"read",fn:fv,data:{}};function mv(e){return e==="x"?"y":"x"}function gv(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,p=n.padding,m=n.tether,b=m===void 0?!0:m,d=n.tetherOffset,h=d===void 0?0:d,g=Pr(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),w=Mt(t.placement),C=_n(t.placement),S=!C,x=hi(w),P=mv(x),k=t.modifiersData.popperOffsets,I=t.rects.reference,R=t.rects.popper,N=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,F=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,y={x:0,y:0};if(k){if(s){var $,D=x==="y"?Qe:Ze,M=x==="y"?ct:ut,T=x==="y"?"height":"width",O=k[x],A=O+g[D],L=O-g[M],V=b?-R[T]/2:0,X=C===Bn?I[T]:R[T],re=C===Bn?-R[T]:-I[T],ae=t.elements.arrow,ie=b&&ae?fi(ae):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:mu(),Z=z[D],Q=z[M],G=fr(0,I[T],ie[T]),H=S?I[T]/2-V-G-Z-F.mainAxis:X-G-Z-F.mainAxis,q=S?-I[T]/2+V+G+Q+F.mainAxis:re+G+Q+F.mainAxis,te=t.elements.arrow&&Vr(t.elements.arrow),J=te?x==="y"?te.clientTop||0:te.clientLeft||0:0,B=($=E?.[x])!=null?$:0,K=O+H-B-J,oe=O+q-B,ne=fr(b?xo(A,K):A,O,b?un(L,oe):L);k[x]=ne,y[x]=ne-O}if(a){var ce,se=x==="x"?Qe:Ze,fe=x==="x"?ct:ut,be=k[P],we=P==="y"?"height":"width",pe=be+g[se],qe=be-g[fe],Be=[Qe,Ze].indexOf(w)!==-1,ht=(ce=E?.[P])!=null?ce:0,mt=Be?pe:be-I[we]-R[we]-ht+F.altAxis,nt=Be?be+I[we]+R[we]-ht-F.altAxis:qe,rt=b&&Be?Vb(mt,be,nt):fr(b?mt:pe,be,b?nt:qe);k[P]=rt,y[P]=rt-be}t.modifiersData[r]=y}}const yv={name:"preventOverflow",enabled:!0,phase:"main",fn:gv,requiresIfExists:["offset"]};function bv(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function vv(e){return e===et(e)||!at(e)?mi(e):bv(e)}function xv(e){var t=e.getBoundingClientRect(),n=Vn(t.width)/e.offsetWidth||1,r=Vn(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Sv(e,t,n){n===void 0&&(n=!1);var r=at(t),o=at(t)&&xv(t),s=Qt(t),i=zn(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Rt(t)!=="body"||yi(s))&&(a=vv(t)),at(t)?(l=zn(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=gi(s))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function wv(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function Cv(e){var t=wv(e);return Ab.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Pv(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function kv(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var rl={placement:"bottom",modifiers:[],strategy:"absolute"};function ol(){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 Mv(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?rl:o;return function(a,l,c){c===void 0&&(c=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},rl,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},p=[],m=!1,b={state:u,setOptions:function(w){var C=typeof w=="function"?w(u.options):w;h(),u.options=Object.assign({},s,u.options,C),u.scrollParents={reference:fn(a)?hr(a):a.contextElement?hr(a.contextElement):[],popper:hr(l)};var S=Cv(kv([].concat(r,u.options.modifiers)));return u.orderedModifiers=S.filter(function(x){return x.enabled}),d(),b.update()},forceUpdate:function(){if(!m){var w=u.elements,C=w.reference,S=w.popper;if(ol(C,S)){u.rects={reference:Sv(C,Vr(S),u.options.strategy==="fixed"),popper:fi(S)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(F){return u.modifiersData[F.name]=Object.assign({},F.data)});for(var x=0;x<u.orderedModifiers.length;x++){if(u.reset===!0){u.reset=!1,x=-1;continue}var P=u.orderedModifiers[x],k=P.fn,I=P.options,R=I===void 0?{}:I,N=P.name;typeof k=="function"&&(u=k({state:u,options:R,name:N,instance:b})||u)}}}},update:Pv(function(){return new Promise(function(g){b.forceUpdate(),g(u)})}),destroy:function(){h(),m=!0}};if(!ol(a,l))return b;b.setOptions(c).then(function(g){!m&&c.onFirstUpdate&&c.onFirstUpdate(g)});function d(){u.orderedModifiers.forEach(function(g){var w=g.name,C=g.options,S=C===void 0?{}:C,x=g.effect;if(typeof x=="function"){var P=x({state:u,name:w,instance:b,options:S}),k=function(){};p.push(P||k)}})}function h(){p.forEach(function(g){return g()}),p=[]}return b}}var Tv=[Xb,hv,qb,Nb,pv,av,yv,Hb,cv],Dv=Mv({defaultModifiers:Tv});function Rv(e){return typeof e=="function"?e():e}const xu=v.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[i,a]=v.useState(null),l=ke(v.isValidElement(r)?Un(r):null,n);if(Ue(()=>{s||a(Rv(o)||document.body)},[o,s]),Ue(()=>{if(i&&!s)return ys(n,i),()=>{ys(n,null)}},[n,i,s]),s){if(v.isValidElement(r)){const c={ref:l};return v.cloneElement(r,c)}return r}return i&&mp.createPortal(r,i)});function Iv(e){return ge("MuiPopper",e)}he("MuiPopper",["root"]);function Ev(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 Ds(e){return typeof e=="function"?e():e}function $v(e){return e.nodeType!==void 0}const Ov=e=>{const{classes:t}=e;return me({root:["root"]},Iv,t)},Av={},Fv=v.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:s,disablePortal:i,modifiers:a,open:l,placement:c,popperOptions:u,popperRef:p,slotProps:m={},slots:b={},TransitionProps:d,ownerState:h,...g}=t,w=v.useRef(null),C=ke(w,n),S=v.useRef(null),x=ke(S,p),P=v.useRef(x);Ue(()=>{P.current=x},[x]),v.useImperativeHandle(p,()=>S.current,[]);const k=Ev(c,s),[I,R]=v.useState(k),[N,F]=v.useState(Ds(r));v.useEffect(()=>{S.current&&S.current.forceUpdate()}),v.useEffect(()=>{r&&F(Ds(r))},[r]),Ue(()=>{if(!N||!l)return;const M=A=>{R(A.placement)};let T=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:A})=>{M(A)}}];a!=null&&(T=T.concat(a)),u&&u.modifiers!=null&&(T=T.concat(u.modifiers));const O=Dv(N,w.current,{placement:k,...u,modifiers:T});return P.current(O),()=>{O.destroy(),P.current(null)}},[N,i,a,l,u,k]);const E={placement:I};d!==null&&(E.TransitionProps=d);const y=Ov(t),$=b.root??"div",D=Pe({elementType:$,externalSlotProps:m.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:y.root});return f.jsx($,{...D,children:typeof o=="function"?o(E):o})}),Lv=v.forwardRef(function(t,n){const{anchorEl:r,children:o,container:s,direction:i="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:u,placement:p="bottom",popperOptions:m=Av,popperRef:b,style:d,transition:h=!1,slotProps:g={},slots:w={},...C}=t,[S,x]=v.useState(!0),P=()=>{x(!1)},k=()=>{x(!0)};if(!l&&!u&&(!h||S))return null;let I;if(s)I=s;else if(r){const F=Ds(r);I=F&&$v(F)?Ye(F).body:Ye(null).body}const R=!u&&l&&(!h||S)?"none":void 0,N=h?{in:u,onEnter:P,onExited:k}:void 0;return f.jsx(xu,{disablePortal:a,container:I,children:f.jsx(Fv,{anchorEl:r,direction:i,disablePortal:a,modifiers:c,ref:n,open:h?!S:u,placement:p,popperOptions:m,popperRef:b,slotProps:g,slots:w,...C,style:{position:"fixed",top:0,left:0,display:R,...d},TransitionProps:N,children:o})})}),Nv=Y(Lv,{name:"MuiPopper",slot:"Root"})({}),Su=v.forwardRef(function(t,n){const r=vt(),o=Ce({props:t,name:"MuiPopper"}),{anchorEl:s,component:i,components:a,componentsProps:l,container:c,disablePortal:u,keepMounted:p,modifiers:m,open:b,placement:d,popperOptions:h,popperRef:g,transition:w,slots:C,slotProps:S,...x}=o,P=C?.root??a?.Root,k={anchorEl:s,container:c,disablePortal:u,keepMounted:p,modifiers:m,open:b,placement:d,popperOptions:h,popperRef:g,transition:w,...x};return f.jsx(Nv,{as:i,direction:r?"rtl":"ltr",slots:{root:P},slotProps:S??l,...k,ref:n})}),jv=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Bv(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 Vv(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function zv(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Vv(e))}function _v(e){const t=[],n=[];return Array.from(e.querySelectorAll(jv)).forEach((r,o)=>{const s=Bv(r);s===-1||!zv(r)||(s===0?t.push(r):n.push({documentOrder:o,tabIndex:s,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function Wv(){return!0}function wu(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=_v,isEnabled:i=Wv,open:a}=e,l=v.useRef(!1),c=v.useRef(null),u=v.useRef(null),p=v.useRef(null),m=v.useRef(null),b=v.useRef(!1),d=v.useRef(null),h=ke(Un(t),d),g=v.useRef(null);v.useEffect(()=>{!a||!d.current||(b.current=!n)},[n,a]),v.useEffect(()=>{if(!a||!d.current)return;const S=Ye(d.current);return d.current.contains(S.activeElement)||(d.current.hasAttribute("tabIndex")||d.current.setAttribute("tabIndex","-1"),b.current&&d.current.focus()),()=>{o||(p.current&&p.current.focus&&(l.current=!0,p.current.focus()),p.current=null)}},[a]),v.useEffect(()=>{if(!a||!d.current)return;const S=Ye(d.current),x=I=>{g.current=I,!(r||!i()||I.key!=="Tab")&&S.activeElement===d.current&&I.shiftKey&&(l.current=!0,u.current&&u.current.focus())},P=()=>{const I=d.current;if(I===null)return;if(!S.hasFocus()||!i()||l.current){l.current=!1;return}if(I.contains(S.activeElement)||r&&S.activeElement!==c.current&&S.activeElement!==u.current)return;if(S.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!b.current)return;let R=[];if((S.activeElement===c.current||S.activeElement===u.current)&&(R=s(d.current)),R.length>0){const N=!!(g.current?.shiftKey&&g.current?.key==="Tab"),F=R[0],E=R[R.length-1];typeof F!="string"&&typeof E!="string"&&(N?E.focus():F.focus())}else I.focus()};S.addEventListener("focusin",P),S.addEventListener("keydown",x,!0);const k=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(k),S.removeEventListener("focusin",P),S.removeEventListener("keydown",x,!0)}},[n,r,o,i,a,s]);const w=S=>{p.current===null&&(p.current=S.relatedTarget),b.current=!0,m.current=S.target;const x=t.props.onFocus;x&&x(S)},C=S=>{p.current===null&&(p.current=S.relatedTarget),b.current=!0};return f.jsxs(v.Fragment,{children:[f.jsx("div",{tabIndex:a?0:-1,onFocus:C,ref:c,"data-testid":"sentinelStart"}),v.cloneElement(t,{ref:h,onFocus:w}),f.jsx("div",{tabIndex:a?0:-1,onFocus:C,ref:u,"data-testid":"sentinelEnd"})]})}function Hv(e){return ge("MuiPickersPopper",e)}he("MuiPickersPopper",["root","paper"]);function Uv(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const Yv=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},Ke=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Ke(t.shadowRoot):t:null},Gv="@media (pointer: fine)",qv="@media (prefers-reduced-motion: reduce)",In=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),sl=In&&In[1]?parseInt(In[1],10):null,il=In&&In[2]?parseInt(In[2],10):null,Kv=sl&&sl<10||il&&il<13||!1,Cu=()=>Hc(qv,{defaultMatches:!1})||Kv,Xv=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],Qv=e=>{const{classes:t}=e;return me({root:["root"],paper:["paper"]},Hv,t)},Zv=Y(Su,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),Jv=Y(jr,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function ex(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function tx(e,t){const n=v.useRef(!1),r=v.useRef(!1),o=v.useRef(null),s=v.useRef(!1);v.useEffect(()=>{if(!e)return;function l(){s.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),s.current=!1}},[e]);const i=ue(l=>{if(!s.current)return;const c=r.current;r.current=!1;const u=Ye(o.current);if(!o.current||"clientX"in l&&ex(l,u))return;if(n.current){n.current=!1;return}let p;l.composedPath?p=l.composedPath().indexOf(o.current)>-1:p=!u.documentElement.contains(l.target)||o.current.contains(l.target),!p&&!c&&t(l)}),a=()=>{r.current=!0};return v.useEffect(()=>{if(e){const l=Ye(o.current),c=()=>{n.current=!0};return l.addEventListener("touchstart",i),l.addEventListener("touchmove",c),()=>{l.removeEventListener("touchstart",i),l.removeEventListener("touchmove",c)}}},[e,i]),v.useEffect(()=>{if(e){const l=Ye(o.current);return l.addEventListener("click",i),()=>{l.removeEventListener("click",i),r.current=!1}}},[e,i]),[o,a,a]}const nx=v.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:o,children:s,paperSlotProps:i,paperClasses:a,onPaperClick:l,onPaperTouchStart:c}=e,u=ve(e,Xv),p=j({},o,{placement:r}),m=Pe({elementType:n,externalSlotProps:i,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:a,ownerState:p});return f.jsx(n,j({},u,m,{onClick:b=>{l(b),m.onClick?.(b)},onTouchStart:b=>{c(b),m.onTouchStart?.(b)},ownerState:p,children:s}))});function rx(e){const t=Fe({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:o=null,shouldRestoreFocus:s,onBlur:i,onDismiss:a,open:l,role:c,placement:u,slots:p,slotProps:m,reduceAnimations:b}=t;v.useEffect(()=>{function M(T){l&&T.key==="Escape"&&a()}return document.addEventListener("keydown",M),()=>{document.removeEventListener("keydown",M)}},[a,l]);const d=v.useRef(null);v.useEffect(()=>{c==="tooltip"||s&&!s()||(l?d.current=Ke(document):d.current&&d.current instanceof HTMLElement&&setTimeout(()=>{d.current instanceof HTMLElement&&d.current.focus()}))},[l,c,s]);const[h,g,w]=tx(l,i??a),C=v.useRef(null),S=ke(C,o),x=ke(S,h),P=t,k=Qv(P),I=Cu(),R=b??I,N=M=>{M.key==="Escape"&&(M.stopPropagation(),a())},F=p?.desktopTransition??R?pn:wr,E=p?.desktopTrapFocus??wu,y=p?.desktopPaper??Jv,$=p?.popper??Zv,D=Pe({elementType:$,externalSlotProps:m?.popper,additionalProps:{transition:!0,role:c,open:l,anchorEl:n,placement:u,onKeyDown:N},className:k.root,ownerState:t});return f.jsx($,j({},D,{children:({TransitionProps:M,placement:T})=>f.jsx(E,j({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:c==="tooltip",isEnabled:()=>!0},m?.desktopTrapFocus,{children:f.jsx(F,j({},M,m?.desktopTransition,{children:f.jsx(nx,{PaperComponent:y,ownerState:P,popperPlacement:T,ref:x,onPaperClick:g,onPaperTouchStart:w,paperClasses:k.paper,paperSlotProps:m?.desktopPaper,children:r})}))}))}))}const ox=({open:e,onOpen:t,onClose:n})=>{const r=v.useRef(typeof e=="boolean").current,[o,s]=v.useState(!1);v.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");s(e)}},[r,e]);const i=v.useCallback(a=>{r||s(a),a&&t&&t(),!a&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:i}},bi=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:o,valueManager:s})=>{const i=Le(),a=v.useRef(n),l=t??a.current??s.emptyValue,c=v.useMemo(()=>s.getTimezone(i,l),[i,s,l]),u=ue(d=>c==null?d:s.setTimezone(i,c,d));let p;e?p=e:c?p=c:r?p=i.getTimezone(r):p="default";const m=v.useMemo(()=>s.setTimezone(i,p,l),[s,i,p,l]),b=ue((d,...h)=>{const g=u(d);o?.(g,...h)});return{value:m,handleValueChange:b,timezone:p}},vi=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:s,valueManager:i})=>{const[a,l]=Tt({name:e,state:"value",controlled:n,default:r??i.emptyValue}),c=ue((u,...p)=>{l(u),s?.(u,...p)});return bi({timezone:t,value:a,defaultValue:void 0,referenceDate:o,onChange:c,valueManager:i})},sx=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,s=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?s?!0:n(r.lastPublishedValue):!1},ix=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:s}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&s?i?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},ax=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},lx=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:s,onChange:i,value:a,defaultValue:l,closeOnSelect:c=r==="desktop",timezone:u,referenceDate:p}=e,{current:m}=v.useRef(l),{current:b}=v.useRef(a!==void 0),[d,h]=v.useState(u),g=Le(),w=gn(),{isOpen:C,setIsOpen:S}=ox(e),{timezone:x,value:P,handleValueChange:k}=bi({timezone:u,value:a,defaultValue:m,referenceDate:p,onChange:i,valueManager:t}),[I,R]=v.useState(()=>{let H;return P!==void 0?H=P:m!==void 0?H=m:H=t.emptyValue,{draft:H,lastPublishedValue:H,lastCommittedValue:H,lastControlledValue:a,hasBeenModifiedSinceMount:!1}}),N=t.getTimezone(g,I.draft);d!==u&&(h(u),u&&N&&u!==N&&R(H=>j({},H,{draft:t.setTimezone(g,u,H.draft)})));const{getValidationErrorForNewValue:F}=au({props:e,validator:o,timezone:x,value:I.draft,onError:e.onError}),E=ue(H=>{const q={action:H,dateState:I,hasChanged:ne=>!t.areValuesEqual(g,H.value,ne),isControlled:b,closeOnSelect:c},te=sx(q),J=ix(q),B=ax(q);R(ne=>j({},ne,{draft:H.value,lastPublishedValue:te?H.value:ne.lastPublishedValue,lastCommittedValue:J?H.value:ne.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let K=null;const oe=()=>(K||(K={validationError:H.name==="setValueFromField"?H.context.validationError:F(H.value)},H.name==="setValueFromShortcut"&&(K.shortcut=H.shortcut)),K);te&&k(H.value,oe()),J&&s&&s(H.value,oe()),B&&S(!1)});if(I.lastControlledValue!==a){const H=t.areValuesEqual(g,I.draft,P);R(q=>j({},q,{lastControlledValue:a},H?{}:{lastCommittedValue:P,lastPublishedValue:P,draft:P,hasBeenModifiedSinceMount:!0}))}const y=ue(()=>{E({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),$=ue(()=>{E({value:I.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),D=ue(()=>{E({value:I.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),M=ue(()=>{E({value:I.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),T=ue(()=>{E({value:t.getTodayValue(g,x,n),name:"setValueFromAction",pickerAction:"today"})}),O=ue(H=>{H.preventDefault(),S(!0)}),A=ue(H=>{H?.preventDefault(),S(!1)}),L=ue((H,q="partial")=>E({name:"setValueFromView",value:H,selectionState:q})),V=ue((H,q,te)=>E({name:"setValueFromShortcut",value:H,changeImportance:q,shortcut:te})),X=ue((H,q)=>E({name:"setValueFromField",value:H,context:q})),re={onClear:y,onAccept:$,onDismiss:D,onCancel:M,onSetToday:T,onOpen:O,onClose:A},ae={value:I.draft,onChange:X},ie=v.useMemo(()=>t.cleanValue(g,I.draft),[g,t,I.draft]),z={value:ie,onChange:L,onClose:A,open:C},Q=j({},re,{value:ie,onChange:L,onSelectShortcut:V,isValid:H=>{const q=o({adapter:w,value:H,timezone:x,props:e});return!t.hasError(q)}}),G=v.useMemo(()=>({onOpen:O,onClose:A,open:C}),[C,A,O]);return{open:C,fieldProps:ae,viewProps:z,layoutProps:Q,actions:re,contextValue:G}};function Pu({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:s,focusedView:i,onFocusedViewChange:a}){const l=v.useRef(n),c=v.useRef(o),u=v.useRef(o.includes(n)?n:o[0]),[p,m]=Tt({name:"useViews",state:"view",controlled:r,default:u.current}),b=v.useRef(s?p:null),[d,h]=Tt({name:"useViews",state:"focusedView",controlled:i,default:b.current});v.useEffect(()=>{(l.current&&l.current!==n||c.current&&c.current.some(I=>!o.includes(I)))&&(m(o.includes(n)?n:o[0]),c.current=o,l.current=n)},[n,m,p,o]);const g=o.indexOf(p),w=o[g-1]??null,C=o[g+1]??null,S=ue((I,R)=>{h(R?I:N=>I===N?null:N),a?.(I,R)}),x=ue(I=>{S(I,!0),I!==p&&(m(I),t&&t(I))}),P=ue(()=>{C&&x(C)}),k=ue((I,R,N)=>{const F=R==="finish",E=N?o.indexOf(N)<o.length-1:!!C;if(e(I,F&&E?"partial":R,N),N&&N!==p){const $=o[o.indexOf(N)+1];$&&x($)}else F&&P()});return{view:p,setView:x,focusedView:d,setFocusedView:S,nextView:C,previousView:w,defaultView:o.includes(n)?n:o[0],goToNextView:P,setValueAndGoToNextView:k}}const cx=["className","sx"],ux=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:s})=>{const{onChange:i,open:a,onClose:l}=t,{view:c,views:u,openTo:p,onViewChange:m,viewRenderers:b,timezone:d}=e,h=ve(e,cx),{view:g,setView:w,defaultView:C,focusedView:S,setFocusedView:x,setValueAndGoToNextView:P}=Pu({view:c,views:u,openTo:p,onChange:i,onViewChange:m,autoFocus:r}),{hasUIView:k,viewModeLookup:I}=v.useMemo(()=>u.reduce((D,M)=>{let T;return b[M]!=null?T="UI":T="field",D.viewModeLookup[M]=T,T==="UI"&&(D.hasUIView=!0),D},{hasUIView:!1,viewModeLookup:{}}),[b,u]),R=v.useMemo(()=>u.reduce((D,M)=>b[M]!=null&&zg(M)?D+1:D,0),[b,u]),N=I[g],F=ue(()=>N==="UI"),[E,y]=v.useState(N==="UI"?g:null);return E!==g&&I[g]==="UI"&&y(g),Ue(()=>{N==="field"&&a&&(l(),setTimeout(()=>{s?.current?.setSelectedSections(g),s?.current?.focusField(g)}))},[g]),Ue(()=>{if(!a)return;let D=g;N==="field"&&E!=null&&(D=E),D!==C&&I[D]==="UI"&&I[C]==="UI"&&(D=C),D!==g&&w(D),x(D,!0)},[a]),{hasUIView:k,shouldRestoreFocus:F,layoutProps:{views:u,view:E,onViewChange:w},renderCurrentView:()=>{if(E==null)return null;const D=b[E];if(D==null)return null;const M=j({},h,n,t,{views:u,timezone:d,onChange:P,view:E,onViewChange:w,focusedView:S,onFocusedViewChange:x,showViewSwitcher:R>1,timeViewsCount:R});return o?o(b,E,M):D(M)}}};function al(){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"}const dx=(e,t)=>{const[n,r]=v.useState(al);return Ue(()=>{const s=()=>{r(al())};return window.addEventListener("orientationchange",s),()=>{window.removeEventListener("orientationchange",s)}},[]),Uv(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},px=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,s=dx(n.views,o),i=vt();return{layoutProps:j({},n,t,{isLandscape:s,isRtl:i,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function fx(e){const{props:t,pickerValueResponse:n}=e;return v.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[n.viewProps.value,n.open,t.disabled,t.readOnly])}const ku=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:s,autoFocusView:i,rendererInterceptor:a,fieldRef:l})=>{const c=lx({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:s}),u=ux({props:e,additionalViewProps:o,autoFocusView:i,fieldRef:l,propsFromPickerValue:c.viewProps,rendererInterceptor:a}),p=px({props:e,wrapperVariant:r,propsFromPickerValue:c.layoutProps,propsFromPickerViews:u.layoutProps}),m=fx({props:e,pickerValueResponse:c});return{open:c.open,actions:c.actions,fieldProps:c.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:p.layoutProps,contextValue:c.contextValue,ownerState:m}};function Mu(e){return ge("MuiPickersLayout",e)}const Jt=he("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function hx(e){return ge("MuiButton",e)}const en=he("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"]),mx=v.createContext({}),gx=v.createContext(void 0),yx=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:s,loading:i,loadingPosition:a,classes:l}=e,c={root:["root",i&&"loading",s,`${s}${le(t)}`,`size${le(o)}`,`${s}Size${le(o)}`,`color${le(t)}`,n&&"disableElevation",r&&"fullWidth",i&&`loadingPosition${le(a)}`],startIcon:["icon","startIcon",`iconSize${le(o)}`],endIcon:["icon","endIcon",`iconSize${le(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=me(c,hx,l);return{...l,...u}},Tu=[{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}}}],bx=Y(jn,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${le(n.color)}`],t[`size${le(n.size)}`],t[`${n.variant}Size${le(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Ee(({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"},[`&.${en.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]},[`&.${en.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${en.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)",[`&.${en.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(Xe()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${en.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${en.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}),[`&.${en.loading}`]:{color:"transparent"}}}]}})),vx=Y("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${le(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}},...Tu]})),xx=Y("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${le(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}},...Tu]})),Sx=Y("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}}]})),ll=Y("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),ur=v.forwardRef(function(t,n){const r=v.useContext(mx),o=v.useContext(gx),s=vr(r,t),i=Ce({props:s,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:p=!1,disableElevation:m=!1,disableFocusRipple:b=!1,endIcon:d,focusVisibleClassName:h,fullWidth:g=!1,id:w,loading:C=null,loadingIndicator:S,loadingPosition:x="center",size:P="medium",startIcon:k,type:I,variant:R="text",...N}=i,F=xt(w),E=S??f.jsx(ui,{"aria-labelledby":F,color:"inherit",size:16}),y={...i,color:l,component:c,disabled:p,disableElevation:m,disableFocusRipple:b,fullWidth:g,loading:C,loadingIndicator:E,loadingPosition:x,size:P,type:I,variant:R},$=yx(y),D=(k||C&&x==="start")&&f.jsx(vx,{className:$.startIcon,ownerState:y,children:k||f.jsx(ll,{className:$.loadingIconPlaceholder,ownerState:y})}),M=(d||C&&x==="end")&&f.jsx(xx,{className:$.endIcon,ownerState:y,children:d||f.jsx(ll,{className:$.loadingIconPlaceholder,ownerState:y})}),T=o||"",O=typeof C=="boolean"?f.jsx("span",{className:$.loadingWrapper,style:{display:"contents"},children:C&&f.jsx(Sx,{className:$.loadingIndicator,ownerState:y,children:E})}):null;return f.jsxs(bx,{ownerState:y,className:de(r.className,$.root,u,T),component:c,disabled:p||C,focusRipple:!b,focusVisibleClassName:de($.focusVisible,h),ref:n,type:I,id:C?F:w,...N,classes:$,children:[D,x!=="end"&&O,a,x==="end"&&O,M]})});function wx(e){return ge("MuiDialogActions",e)}he("MuiDialogActions",["root","spacing"]);const Cx=e=>{const{classes:t,disableSpacing:n}=e;return me({root:["root",!n&&"spacing"]},wx,t)},Px=Y("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}}}]}),kx=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1,...i}=r,a={...r,disableSpacing:s},l=Cx(a);return f.jsx(Px,{className:de(l.root,o),ownerState:a,ref:n,...i})}),Mx=["onAccept","onClear","onCancel","onSetToday","actions"];function Tx(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:s}=e,i=ve(e,Mx),a=jt();if(s==null||s.length===0)return null;const l=s?.map(c=>{switch(c){case"clear":return f.jsx(ur,{onClick:n,children:a.clearButtonLabel},c);case"cancel":return f.jsx(ur,{onClick:r,children:a.cancelButtonLabel},c);case"accept":return f.jsx(ur,{onClick:t,children:a.okButtonLabel},c);case"today":return f.jsx(ur,{onClick:o,children:a.todayButtonLabel},c);default:return null}});return f.jsx(kx,j({},i,{children:l}))}const En=v.createContext({});function Dx(e){return ge("MuiList",e)}he("MuiList",["root","padding","dense","subheader"]);const Rx=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return me({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Dx,t)},Ix=Y("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}}]}),Du=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiList"}),{children:o,className:s,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...u}=r,p=v.useMemo(()=>({dense:a}),[a]),m={...r,component:i,dense:a,disablePadding:l},b=Rx(m);return f.jsx(En.Provider,{value:p,children:f.jsxs(Ix,{as:i,className:de(b.root,s),ref:n,ownerState:m,...u,children:[c,o]})})});function Ex(e){return ge("MuiListItem",e)}he("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const $x=he("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Ox(e){return ge("MuiListItemSecondaryAction",e)}he("MuiListItemSecondaryAction",["root","disableGutters"]);const Ax=e=>{const{disableGutters:t,classes:n}=e;return me({root:["root",t&&"disableGutters"]},Ox,n)},Fx=Y("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}}]}),Ru=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...s}=r,i=v.useContext(En),a={...r,disableGutters:i.disableGutters},l=Ax(a);return f.jsx(Fx,{className:de(l.root,o),ownerState:a,ref:n,...s})});Ru.muiName="ListItemSecondaryAction";const Lx=(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]},Nx=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:s,divider:i,hasSecondaryAction:a}=e;return me({root:["root",r&&"dense",!o&&"gutters",!s&&"padding",i&&"divider",t==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"]},Ex,n)},jx=Y("div",{name:"MuiListItem",slot:"Root",overridesResolver:Lx})(Ee(({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:{[`& > .${$x.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}}]}))),Bx=Y("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Vx=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiListItem"}),{alignItems:o="center",children:s,className:i,component:a,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:p,...m}={},dense:b=!1,disableGutters:d=!1,disablePadding:h=!1,divider:g=!1,secondaryAction:w,slotProps:C={},slots:S={},...x}=r,P=v.useContext(En),k=v.useMemo(()=>({dense:b||P.dense||!1,alignItems:o,disableGutters:d}),[o,P.dense,b,d]),I=v.useRef(null),R=v.Children.toArray(s),N=R.length&&Jr(R[R.length-1],["ListItemSecondaryAction"]),F={...r,alignItems:o,dense:k.dense,disableGutters:d,disablePadding:h,divider:g,hasSecondaryAction:N},E=Nx(F),y=ke(I,n),$=S.root||l.Root||jx,D=C.root||c.root||{},M={className:de(E.root,D.className,i),...x};let T=a||"li";return N?(T=!M.component&&!a?"div":T,u==="li"&&(T==="li"?T="div":M.component==="li"&&(M.component="div")),f.jsx(En.Provider,{value:k,children:f.jsxs(Bx,{as:u,className:de(E.container,p),ref:y,ownerState:F,...m,children:[f.jsx($,{...D,...!Nn($)&&{as:T,ownerState:{...F,...D.ownerState}},...M,children:R}),R.pop()]})})):f.jsx(En.Provider,{value:k,children:f.jsxs($,{...D,as:T,ref:y,...!Nn($)&&{ownerState:{...F,...D.ownerState}},...M,children:[R,w&&f.jsx(Ru,{children:w})]})})}),zx=$e(f.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"}));function _x(e){return ge("MuiChip",e)}const xe=he("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"]);function je(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:s,internalForwardedProps:i,shouldForwardComponentProp:a=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:p={[e]:void 0},...m}=s,b=u[e]||r,d=No(p[e],o),{props:{component:h,...g},internalRef:w}=Kc({className:n,...l,externalForwardedProps:e==="root"?m:void 0,externalSlotProps:d}),C=ke(w,d?.ref,t.ref),S=e==="root"?h||c:h,x=qc(b,{...e==="root"&&!c&&!u[e]&&i,...e!=="root"&&!u[e]&&i,...g,...S&&!a&&{as:S},...S&&a&&{component:S},ref:C},o);return[b,x]}const Wx=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:s,onDelete:i,clickable:a,variant:l}=e,c={root:["root",l,n&&"disabled",`size${le(r)}`,`color${le(o)}`,a&&"clickable",a&&`clickableColor${le(o)}`,i&&"deletable",i&&`deletableColor${le(o)}`,`${l}${le(o)}`],label:["label",`label${le(r)}`],avatar:["avatar",`avatar${le(r)}`,`avatarColor${le(o)}`],icon:["icon",`icon${le(r)}`,`iconColor${le(s)}`],deleteIcon:["deleteIcon",`deleteIcon${le(r)}`,`deleteIconColor${le(o)}`,`deleteIcon${le(l)}Color${le(o)}`]};return me(c,_x,t)},Hx=Y("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:s,onDelete:i,size:a,variant:l}=n;return[{[`& .${xe.avatar}`]:t.avatar},{[`& .${xe.avatar}`]:t[`avatar${le(a)}`]},{[`& .${xe.avatar}`]:t[`avatarColor${le(r)}`]},{[`& .${xe.icon}`]:t.icon},{[`& .${xe.icon}`]:t[`icon${le(a)}`]},{[`& .${xe.icon}`]:t[`iconColor${le(o)}`]},{[`& .${xe.deleteIcon}`]:t.deleteIcon},{[`& .${xe.deleteIcon}`]:t[`deleteIcon${le(a)}`]},{[`& .${xe.deleteIcon}`]:t[`deleteIconColor${le(r)}`]},{[`& .${xe.deleteIcon}`]:t[`deleteIcon${le(l)}Color${le(r)}`]},t.root,t[`size${le(a)}`],t[`color${le(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${le(r)})`],i&&t.deletable,i&&r!=="default"&&t[`deletableColor${le(r)}`],t[l],t[`${l}${le(r)}`]]}})(Ee(({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",[`&.${xe.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${xe.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${xe.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${xe.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${xe.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${xe.icon}`]:{marginLeft:5,marginRight:-6},[`& .${xe.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,[`& .${xe.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${xe.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Xe(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${xe.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:{[`& .${xe.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${xe.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${xe.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(Xe(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${xe.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}`)},[`&.${xe.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(Xe(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${xe.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]}`,[`&.${xe.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${xe.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${xe.avatar}`]:{marginLeft:4},[`& .${xe.avatarSmall}`]:{marginLeft:2},[`& .${xe.icon}`]:{marginLeft:4},[`& .${xe.iconSmall}`]:{marginLeft:2},[`& .${xe.deleteIcon}`]:{marginRight:5},[`& .${xe.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Xe()).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)}`,[`&.${xe.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${xe.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${xe.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),Ux=Y("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${le(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function cl(e){return e.key==="Backspace"||e.key==="Delete"}const Iu=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiChip"}),{avatar:o,className:s,clickable:i,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:p,label:m,onClick:b,onDelete:d,onKeyDown:h,onKeyUp:g,size:w="medium",variant:C="filled",tabIndex:S,skipFocusWhenDisabled:x=!1,slots:P={},slotProps:k={},...I}=r,R=v.useRef(null),N=ke(R,n),F=Z=>{Z.stopPropagation(),d&&d(Z)},E=Z=>{Z.currentTarget===Z.target&&cl(Z)&&Z.preventDefault(),h&&h(Z)},y=Z=>{Z.currentTarget===Z.target&&d&&cl(Z)&&d(Z),g&&g(Z)},$=i!==!1&&b?!0:i,D=$||d?jn:l||"div",M={...r,component:D,disabled:u,size:w,color:a,iconColor:v.isValidElement(p)&&p.props.color||a,onDelete:!!d,clickable:$,variant:C},T=Wx(M),O=D===jn?{component:l||"div",focusVisibleClassName:T.focusVisible,...d&&{disableRipple:!0}}:{};let A=null;d&&(A=c&&v.isValidElement(c)?v.cloneElement(c,{className:de(c.props.className,T.deleteIcon),onClick:F}):f.jsx(zx,{className:T.deleteIcon,onClick:F}));let L=null;o&&v.isValidElement(o)&&(L=v.cloneElement(o,{className:de(T.avatar,o.props.className)}));let V=null;p&&v.isValidElement(p)&&(V=v.cloneElement(p,{className:de(T.icon,p.props.className)}));const X={slots:P,slotProps:k},[re,ae]=je("root",{elementType:Hx,externalForwardedProps:{...X,...I},ownerState:M,shouldForwardComponentProp:!0,ref:N,className:de(T.root,s),additionalProps:{disabled:$&&u?!0:void 0,tabIndex:x&&u?-1:S,...O},getSlotProps:Z=>({...Z,onClick:Q=>{Z.onClick?.(Q),b?.(Q)},onKeyDown:Q=>{Z.onKeyDown?.(Q),E(Q)},onKeyUp:Q=>{Z.onKeyUp?.(Q),y(Q)}})}),[ie,z]=je("label",{elementType:Ux,externalForwardedProps:X,ownerState:M,className:T.label});return f.jsxs(re,{as:D,...ae,children:[L||V,f.jsx(ie,{...z,children:m}),A]})}),kr=36,_o=2,Wo=320,Yx=280,xi=336,Gx=["items","changeImportance","isLandscape","onChange","isValid"],qx=["getValue"];function Kx(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,s=ve(e,Gx);if(t==null||t.length===0)return null;const i=t.map(a=>{let{getValue:l}=a,c=ve(a,qx);const u=l({isValid:o});return j({},c,{label:c.label,onClick:()=>{r(u,n,c)},disabled:!o(u)})});return f.jsx(Du,j({dense:!0,sx:[{maxHeight:xi,maxWidth:200,overflow:"auto"},...Array.isArray(s.sx)?s.sx:[s.sx]]},s,{children:i.map(a=>f.jsx(Vx,{children:f.jsx(Iu,j({},a))},a.id??a.label))}))}function Xx(e){return e.view!==null}const Qx=e=>{const{classes:t,isLandscape:n}=e;return me({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Mu,t)},Zx=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:s,view:i,views:a,onViewChange:l,value:c,onChange:u,onSelectShortcut:p,isValid:m,isLandscape:b,disabled:d,readOnly:h,children:g,slots:w,slotProps:C}=e,S=Qx(e),x=w?.actionBar??Tx,P=Pe({elementType:x,externalSlotProps:C?.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:s,actions:t==="desktop"?[]:["cancel","accept"]},className:S.actionBar,ownerState:j({},e,{wrapperVariant:t})}),k=f.jsx(x,j({},P)),I=w?.toolbar,R=Pe({elementType:I,externalSlotProps:C?.toolbar,additionalProps:{isLandscape:b,onChange:u,value:c,view:i,onViewChange:l,views:a,disabled:d,readOnly:h},className:S.toolbar,ownerState:j({},e,{wrapperVariant:t})}),N=Xx(R)&&I?f.jsx(I,j({},R)):null,F=g,E=w?.tabs,y=i&&E?f.jsx(E,j({view:i,onViewChange:l,className:S.tabs},C?.tabs)):null,$=w?.shortcuts??Kx,D=Pe({elementType:$,externalSlotProps:C?.shortcuts,additionalProps:{isValid:m,isLandscape:b,onChange:p},className:S.shortcuts,ownerState:{isValid:m,isLandscape:b,onChange:p,wrapperVariant:t}}),M=i&&$?f.jsx($,j({},D)):null;return{toolbar:N,content:F,tabs:y,actionBar:k,shortcuts:M}},Jx=e=>{const{isLandscape:t,classes:n}=e;return me({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},Mu,n)},e0=Y("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Jt.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Jt.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Jt.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Jt.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Jt.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Jt.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Jt.shortcuts}`]:{gridColumn:3}}}]}),t0=Y("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Eu=v.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersLayout"}),{toolbar:o,content:s,tabs:i,actionBar:a,shortcuts:l}=Zx(r),{sx:c,className:u,isLandscape:p,wrapperVariant:m}=r,b=Jx(r);return f.jsxs(e0,{ref:n,sx:c,className:de(b.root,u),ownerState:r,children:[p?l:o,p?o:l,f.jsx(t0,{className:b.contentWrapper,children:m==="desktop"?f.jsxs(v.Fragment,{children:[s,i]}):f.jsxs(v.Fragment,{children:[i,s]})}),a]})}),n0=v.createContext(null);function $u(e){const{contextValue:t,localeText:n,children:r}=e;return f.jsx(n0.Provider,{value:t,children:f.jsx(Sr,{localeText:n,children:r})})}const r0=["props","getOpenDialogAriaText"],o0=["ownerState"],s0=["ownerState"],i0=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=ve(e,r0);const{slots:o,slotProps:s,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:p,onSelectedSectionsChange:m,timezone:b,name:d,label:h,inputRef:g,readOnly:w,disabled:C,autoFocus:S,localeText:x,reduceAnimations:P}=t,k=v.useRef(null),I=v.useRef(null),R=xt(),N=s?.toolbar?.hidden??!1,{open:F,actions:E,hasUIView:y,layoutProps:$,renderCurrentView:D,shouldRestoreFocus:M,fieldProps:T,contextValue:O,ownerState:A}=ku(j({},r,{props:t,fieldRef:I,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),L=o.inputAdornment??lu,V=Pe({elementType:L,externalSlotProps:s?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),X=ve(V,o0),re=o.openPickerButton??Nr,ae=Pe({elementType:re,externalSlotProps:s?.openPickerButton,additionalProps:{disabled:C||w,onClick:F?E.onClose:E.onOpen,"aria-label":n(T.value),edge:X.position},ownerState:t}),ie=ve(ae,s0),z=o.openPickerIcon,Z=Pe({elementType:z,externalSlotProps:s?.openPickerIcon,ownerState:A}),Q=o.field,G=Pe({elementType:Q,externalSlotProps:s?.field,additionalProps:j({},T,N&&{id:R},{readOnly:w,disabled:C,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:p,onSelectedSectionsChange:m,timezone:b,label:h,name:d,autoFocus:S&&!t.open,focused:F?!0:void 0},g?{inputRef:g}:{}),ownerState:t});y&&(G.InputProps=j({},G.InputProps,{ref:k},!t.disableOpenPicker&&{[`${X.position}Adornment`]:f.jsx(L,j({},X,{children:f.jsx(re,j({},ie,{children:f.jsx(z,j({},Z))}))}))}));const H=j({textField:o.textField,clearIcon:o.clearIcon,clearButton:o.clearButton},G.slots),q=o.layout??Eu;let te=R;N&&(h?te=`${R}-label`:te=void 0);const J=j({},s,{toolbar:j({},s?.toolbar,{titleId:R}),popper:j({"aria-labelledby":te},s?.popper)}),B=ke(I,G.unstableFieldRef);return{renderPicker:()=>f.jsxs($u,{contextValue:O,localeText:x,children:[f.jsx(Q,j({},G,{slots:H,slotProps:J,unstableFieldRef:B})),f.jsx(rx,j({role:"dialog",placement:"bottom-start",anchorEl:k.current},E,{open:F,slots:o,slotProps:J,shouldRestoreFocus:M,reduceAnimations:P,children:f.jsx(q,j({},$,J?.layout,{slots:o,slotProps:J,children:D()}))}))]})}},a0=$e(f.jsx("path",{d:"M7 10l5 5 5-5z"})),l0=$e(f.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})),c0=$e(f.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),u0=$e(f.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"}));$e(f.jsxs(v.Fragment,{children:[f.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"}),f.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}));$e(f.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"}));$e(f.jsxs(v.Fragment,{children:[f.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"}),f.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}));const d0=$e(f.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"}));function Ur(e){return parseInt(e,10)||0}const p0={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function f0(e){for(const t in e)return!1;return!0}function ul(e){return f0(e)||e.outerHeightStyle===0&&!e.overflowing}const h0=v.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:s=1,style:i,value:a,...l}=t,{current:c}=v.useRef(a!=null),u=v.useRef(null),p=ke(n,u),m=v.useRef(null),b=v.useRef(null),d=v.useCallback(()=>{const S=u.current,x=b.current;if(!S||!x)return;const k=Ft(S).getComputedStyle(S);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};x.style.width=k.width,x.value=S.value||t.placeholder||"x",x.value.slice(-1)===`
132
- `&&(x.value+=" ");const I=k.boxSizing,R=Ur(k.paddingBottom)+Ur(k.paddingTop),N=Ur(k.borderBottomWidth)+Ur(k.borderTopWidth),F=x.scrollHeight;x.value="x";const E=x.scrollHeight;let y=F;s&&(y=Math.max(Number(s)*E,y)),o&&(y=Math.min(Number(o)*E,y)),y=Math.max(y,E);const $=y+(I==="border-box"?R+N:0),D=Math.abs(y-F)<=1;return{outerHeightStyle:$,overflowing:D}},[o,s,t.placeholder]),h=ue(()=>{const S=u.current,x=d();if(!S||!x||ul(x))return!1;const P=x.outerHeightStyle;return m.current!=null&&m.current!==P}),g=v.useCallback(()=>{const S=u.current,x=d();if(!S||!x||ul(x))return;const P=x.outerHeightStyle;m.current!==P&&(m.current=P,S.style.height=`${P}px`),S.style.overflow=x.overflowing?"hidden":""},[d]),w=v.useRef(-1);Ue(()=>{const S=Zl(g),x=u?.current;if(!x)return;const P=Ft(x);P.addEventListener("resize",S);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(()=>{h()&&(k.unobserve(x),cancelAnimationFrame(w.current),g(),w.current=requestAnimationFrame(()=>{k.observe(x)}))}),k.observe(x)),()=>{S.clear(),cancelAnimationFrame(w.current),P.removeEventListener("resize",S),k&&k.disconnect()}},[d,g,h]),Ue(()=>{g()});const C=S=>{c||g();const x=S.target,P=x.value.length,k=x.value.endsWith(`
133
- `),I=x.selectionStart===P;k&&I&&x.setSelectionRange(P,P),r&&r(S)};return f.jsxs(v.Fragment,{children:[f.jsx("textarea",{value:a,onChange:C,ref:p,rows:s,style:i,...l}),f.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:b,tabIndex:-1,style:{...p0.shadow,...i,paddingTop:0,paddingBottom:0}})]})});function yn({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}function dl(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function So(e,t=!1){return e&&(dl(e.value)&&e.value!==""||t&&dl(e.defaultValue)&&e.defaultValue!=="")}function m0(e){return e.startAdornment}function g0(e){return ge("MuiInputBase",e)}const hn=he("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var pl;const Ho=(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${le(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Uo=(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]},y0=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:s,focused:i,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:p,size:m,startAdornment:b,type:d}=e,h={root:["root",`color${le(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",a&&"formControl",m&&m!=="medium"&&`size${le(m)}`,u&&"multiline",b&&"adornedStart",s&&"adornedEnd",c&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",d==="search"&&"inputTypeSearch",u&&"inputMultiline",m==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",b&&"inputAdornedStart",s&&"inputAdornedEnd",p&&"readOnly"]};return me(h,g0,t)},Yo=Y("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ho})(Ee(({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",[`&.${hn.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%"}}]}))),Go=Y("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Uo})(Ee(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${hn.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${hn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.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:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),fl=jh({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Si=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:i,className:a,color:l,components:c={},componentsProps:u={},defaultValue:p,disabled:m,disableInjectingGlobalStyles:b,endAdornment:d,error:h,fullWidth:g=!1,id:w,inputComponent:C="input",inputProps:S={},inputRef:x,margin:P,maxRows:k,minRows:I,multiline:R=!1,name:N,onBlur:F,onChange:E,onClick:y,onFocus:$,onKeyDown:D,onKeyUp:M,placeholder:T,readOnly:O,renderSuffix:A,rows:L,size:V,slotProps:X={},slots:re={},startAdornment:ae,type:ie="text",value:z,...Z}=r,Q=S.value!=null?S.value:z,{current:G}=v.useRef(Q!=null),H=v.useRef(),q=v.useCallback(Oe=>{},[]),te=ke(H,x,S.ref,q),[J,B]=v.useState(!1),K=ft(),oe=yn({props:r,muiFormControl:K,states:["color","disabled","error","hiddenLabel","size","required","filled"]});oe.focused=K?K.focused:J,v.useEffect(()=>{!K&&m&&J&&(B(!1),F&&F())},[K,m,J,F]);const ne=K&&K.onFilled,ce=K&&K.onEmpty,se=v.useCallback(Oe=>{So(Oe)?ne&&ne():ce&&ce()},[ne,ce]);Ue(()=>{G&&se({value:Q})},[Q,se,G]);const fe=Oe=>{$&&$(Oe),S.onFocus&&S.onFocus(Oe),K&&K.onFocus?K.onFocus(Oe):B(!0)},be=Oe=>{F&&F(Oe),S.onBlur&&S.onBlur(Oe),K&&K.onBlur?K.onBlur(Oe):B(!1)},we=(Oe,...Vt)=>{if(!G){const zt=Oe.target||H.current;if(zt==null)throw new Error(Ot(1));se({value:zt.value})}S.onChange&&S.onChange(Oe,...Vt),E&&E(Oe,...Vt)};v.useEffect(()=>{se(H.current)},[]);const pe=Oe=>{H.current&&Oe.currentTarget===Oe.target&&H.current.focus(),y&&y(Oe)};let qe=C,Be=S;R&&qe==="input"&&(L?Be={type:void 0,minRows:L,maxRows:L,...Be}:Be={type:void 0,maxRows:k,minRows:I,...Be},qe=h0);const ht=Oe=>{se(Oe.animationName==="mui-auto-fill-cancel"?H.current:{value:"x"})};v.useEffect(()=>{K&&K.setAdornedStart(!!ae)},[K,ae]);const mt={...r,color:oe.color||"primary",disabled:oe.disabled,endAdornment:d,error:oe.error,focused:oe.focused,formControl:K,fullWidth:g,hiddenLabel:oe.hiddenLabel,multiline:R,size:oe.size,startAdornment:ae,type:ie},nt=y0(mt),rt=re.root||c.Root||Yo,Bt=X.root||u.root||{},gt=re.input||c.Input||Go;return Be={...Be,...X.input??u.input},f.jsxs(v.Fragment,{children:[!b&&typeof fl=="function"&&(pl||(pl=f.jsx(fl,{}))),f.jsxs(rt,{...Bt,ref:n,onClick:pe,...Z,...!Nn(rt)&&{ownerState:{...mt,...Bt.ownerState}},className:de(nt.root,Bt.className,a,O&&"MuiInputBase-readOnly"),children:[ae,f.jsx(Vo.Provider,{value:null,children:f.jsx(gt,{"aria-invalid":oe.error,"aria-describedby":o,autoComplete:s,autoFocus:i,defaultValue:p,disabled:oe.disabled,id:w,onAnimationStart:ht,name:N,placeholder:T,readOnly:O,required:oe.required,rows:L,value:Q,onKeyDown:D,onKeyUp:M,type:ie,...Be,...!Nn(gt)&&{as:qe,ownerState:{...mt,...Be.ownerState}},ref:te,className:de(nt.input,Be.className,O&&"MuiInputBase-readOnly"),onBlur:be,onChange:we,onFocus:fe})}),d,A?A({...oe,startAdornment:ae}):null]})]})});function b0(e){return ge("MuiInput",e)}const Mn={...hn,...he("MuiInput",["root","underline","input"])},v0=e=>{const{classes:t,disableUnderline:n}=e,o=me({root:["root",!n&&"underline"],input:["input"]},b0,t);return{...t,...o}},x0=Y(Yo,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ho(e,t),!n.disableUnderline&&t.underline]}})(Ee(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Mn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Mn.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(.${Mn.disabled}, .${Mn.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Mn.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Xe()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),S0=Y(Go,{name:"MuiInput",slot:"Input",overridesResolver:Uo})({}),wi=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:s={},componentsProps:i,fullWidth:a=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:p={},type:m="text",...b}=r,d=v0(r),g={root:{ownerState:{disableUnderline:o}}},w=u??i?Ge(u??i,g):g,C=p.root??s.Root??x0,S=p.input??s.Input??S0;return f.jsx(Si,{slots:{root:C,input:S},slotProps:w,fullWidth:a,inputComponent:l,multiline:c,ref:n,type:m,...b,classes:d})});wi.muiName="Input";function w0(e){return ge("MuiFilledInput",e)}const Ut={...hn,...he("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},C0=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:s,hiddenLabel:i,multiline:a}=e,l={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",s==="small"&&`size${le(s)}`,i&&"hiddenLabel",a&&"multiline"],input:["input"]},c=me(l,w0,t);return{...t,...c}},P0=Y(Yo,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ho(e,t),!n.disableUnderline&&t.underline]}})(Ee(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Ut.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Ut.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:i})=>!i.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"},[`&.${Ut.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ut.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(.${Ut.disabled}, .${Ut.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ut.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Xe()).map(([i])=>({props:{disableUnderline:!1,color:i},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[i]?.main}`}}})),{props:({ownerState:i})=>i.startAdornment,style:{paddingLeft:12}},{props:({ownerState:i})=>i.endAdornment,style:{paddingRight:12}},{props:({ownerState:i})=>i.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:i,size:a})=>i.multiline&&a==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel&&i.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),k0=Y(Go,{name:"MuiFilledInput",slot:"Input",overridesResolver:Uo})(Ee(({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}}]}))),Ci=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:s={},componentsProps:i,fullWidth:a=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:p,slots:m={},type:b="text",...d}=r,h={...r,disableUnderline:o,fullWidth:a,inputComponent:c,multiline:u,type:b},g=C0(r),w={root:{ownerState:h},input:{ownerState:h}},C=p??i?Ge(w,p??i):w,S=m.root??s.Root??P0,x=m.input??s.Input??k0;return f.jsx(Si,{slots:{root:S,input:x},slotProps:C,fullWidth:a,inputComponent:c,multiline:u,ref:n,type:b,...d,classes:g})});Ci.muiName="Input";var hl;const M0=Y("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:pt})({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%"}),T0=Y("legend",{name:"MuiNotchedOutlined",shouldForwardProp:pt})(Ee(({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 D0(e){const{children:t,classes:n,className:r,label:o,notched:s,...i}=e,a=o!=null&&o!=="",l={...e,notched:s,withLabel:a};return f.jsx(M0,{"aria-hidden":!0,className:r,ownerState:l,...i,children:f.jsx(T0,{ownerState:l,children:a?f.jsx("span",{children:o}):hl||(hl=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}function R0(e){return ge("MuiOutlinedInput",e)}const bt={...hn,...he("MuiOutlinedInput",["root","notchedOutline","input"])},I0=e=>{const{classes:t}=e,r=me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},R0,t);return{...t,...r}},E0=Y(Yo,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ho})(Ee(({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 .${bt.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${bt.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${bt.focused} .${bt.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Xe()).map(([n])=>({props:{color:n},style:{[`&.${bt.focused} .${bt.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${bt.error} .${bt.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${bt.disabled} .${bt.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),$0=Y(D0,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Ee(({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}})),O0=Y(Go,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Uo})(Ee(({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}}]}))),Pi=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:s=!1,inputComponent:i="input",label:a,multiline:l=!1,notched:c,slots:u={},slotProps:p={},type:m="text",...b}=r,d=I0(r),h=ft(),g=yn({props:r,muiFormControl:h,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),w={...r,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:h,fullWidth:s,hiddenLabel:g.hiddenLabel,multiline:l,size:g.size,type:m},C=u.root??o.Root??E0,S=u.input??o.Input??O0,[x,P]=je("notchedOutline",{elementType:$0,className:d.notchedOutline,shouldForwardComponentProp:!0,ownerState:w,externalForwardedProps:{slots:u,slotProps:p},additionalProps:{label:a!=null&&a!==""&&g.required?f.jsxs(v.Fragment,{children:[a," ","*"]}):a}});return f.jsx(Si,{slots:{root:C,input:S},slotProps:p,renderSuffix:k=>f.jsx(x,{...P,notched:typeof c<"u"?c:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:s,inputComponent:i,multiline:l,ref:n,type:m,...b,classes:{...d,notchedOutline:null}})});Pi.muiName="Input";function A0(e){return ge("MuiFormLabel",e)}const mr=he("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),F0=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:i,required:a}=e,l={root:["root",`color${le(n)}`,o&&"disabled",s&&"error",i&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",s&&"error"]};return me(l,A0,t)},L0=Y("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Ee(({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(Xe()).map(([t])=>({props:{color:t},style:{[`&.${mr.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${mr.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${mr.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),N0=Y("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ee(({theme:e})=>({[`&.${mr.error}`]:{color:(e.vars||e).palette.error.main}}))),j0=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiFormLabel"}),{children:o,className:s,color:i,component:a="label",disabled:l,error:c,filled:u,focused:p,required:m,...b}=r,d=ft(),h=yn({props:r,muiFormControl:d,states:["color","required","focused","disabled","error","filled"]}),g={...r,color:h.color||"primary",component:a,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required},w=F0(g);return f.jsxs(L0,{as:a,ownerState:g,className:de(w.root,s),ref:n,...b,children:[o,h.required&&f.jsxs(N0,{ownerState:g,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]})});function B0(e){return ge("MuiInputLabel",e)}he("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const V0=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:i,required:a}=e,l={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&r!=="medium"&&`size${le(r)}`,i],asterisk:[a&&"asterisk"]},c=me(l,B0,t);return{...t,...c}},z0=Y(j0,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${mr.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]]}})(Ee(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),ki=v.forwardRef(function(t,n){const r=Ce({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:s,shrink:i,variant:a,className:l,...c}=r,u=ft();let p=i;typeof p>"u"&&u&&(p=u.filled||u.focused||u.adornedStart);const m=yn({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),b={...r,disableAnimation:o,formControl:u,shrink:p,size:m.size,variant:m.variant,required:m.required,focused:m.focused},d=V0(b);return f.jsx(z0,{"data-shrink":p,ref:n,className:de(d.root,l),...c,ownerState:b,classes:d})});function _0(e){return ge("MuiFormControl",e)}he("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const W0=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${le(n)}`,r&&"fullWidth"]};return me(o,_0,t)},H0=Y("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${le(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%"}}]}),Mi=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiFormControl"}),{children:o,className:s,color:i="primary",component:a="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:p=!1,hiddenLabel:m=!1,margin:b="none",required:d=!1,size:h="medium",variant:g="outlined",...w}=r,C={...r,color:i,component:a,disabled:l,error:c,fullWidth:p,hiddenLabel:m,margin:b,required:d,size:h,variant:g},S=W0(C),[x,P]=v.useState(()=>{let M=!1;return o&&v.Children.forEach(o,T=>{if(!Jr(T,["Input","Select"]))return;const O=Jr(T,["Select"])?T.props.input:T;O&&m0(O.props)&&(M=!0)}),M}),[k,I]=v.useState(()=>{let M=!1;return o&&v.Children.forEach(o,T=>{Jr(T,["Input","Select"])&&(So(T.props,!0)||So(T.props.inputProps,!0))&&(M=!0)}),M}),[R,N]=v.useState(!1);l&&R&&N(!1);const F=u!==void 0&&!l?u:R;let E;v.useRef(!1);const y=v.useCallback(()=>{I(!0)},[]),$=v.useCallback(()=>{I(!1)},[]),D=v.useMemo(()=>({adornedStart:x,setAdornedStart:P,color:i,disabled:l,error:c,filled:k,focused:F,fullWidth:p,hiddenLabel:m,size:h,onBlur:()=>{N(!1)},onFocus:()=>{N(!0)},onEmpty:$,onFilled:y,registerEffect:E,required:d,variant:g}),[x,i,l,c,k,F,p,m,E,$,y,d,h,g]);return f.jsx(Vo.Provider,{value:D,children:f.jsx(H0,{as:a,ownerState:C,className:de(S.root,s),ref:n,...w,children:o})})});function U0(e){return ge("MuiFormHelperText",e)}const ml=he("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var gl;const Y0=e=>{const{classes:t,contained:n,size:r,disabled:o,error:s,filled:i,focused:a,required:l}=e,c={root:["root",o&&"disabled",s&&"error",r&&`size${le(r)}`,n&&"contained",a&&"focused",i&&"filled",l&&"required"]};return me(c,U0,t)},G0=Y("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${le(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Ee(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ml.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ml.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}}]}))),Ou=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:i="p",disabled:a,error:l,filled:c,focused:u,margin:p,required:m,variant:b,...d}=r,h=ft(),g=yn({props:r,muiFormControl:h,states:["variant","size","disabled","error","filled","focused","required"]}),w={...r,component:i,contained:g.variant==="filled"||g.variant==="outlined",variant:g.variant,size:g.size,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required};delete w.ownerState;const C=Y0(w);return f.jsx(G0,{as:i,className:de(C.root,s),ref:n,...d,ownerState:w,children:o===" "?gl||(gl=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function ls(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function yl(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Au(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 Jn(e,t,n,r,o,s){let i=!1,a=o(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(i)return!1;i=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!Au(a,s)||l)a=o(e,a,n);else return a.focus(),!0}return!1}const q0=v.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:s=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:p="selectedMenu",...m}=t,b=v.useRef(null),d=v.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ue(()=>{o&&b.current.focus()},[o]),v.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,{direction:x})=>{const P=!b.current.style.width;if(S.clientHeight<b.current.clientHeight&&P){const k=`${Gc(Ft(S))}px`;b.current.style[x==="rtl"?"paddingLeft":"paddingRight"]=k,b.current.style.width=`calc(100% + ${k})`}return b.current}}),[]);const h=S=>{const x=b.current,P=S.key;if(S.ctrlKey||S.metaKey||S.altKey){u&&u(S);return}const I=Ye(x).activeElement;if(P==="ArrowDown")S.preventDefault(),Jn(x,I,c,l,ls);else if(P==="ArrowUp")S.preventDefault(),Jn(x,I,c,l,yl);else if(P==="Home")S.preventDefault(),Jn(x,null,c,l,ls);else if(P==="End")S.preventDefault(),Jn(x,null,c,l,yl);else if(P.length===1){const R=d.current,N=P.toLowerCase(),F=performance.now();R.keys.length>0&&(F-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&N!==R.keys[0]&&(R.repeating=!1)),R.lastTime=F,R.keys.push(N);const E=I&&!R.repeating&&Au(I,R);R.previousKeyMatched&&(E||Jn(x,I,!1,l,ls,R))?S.preventDefault():R.previousKeyMatched=!1}u&&u(S)},g=ke(b,n);let w=-1;v.Children.forEach(i,(S,x)=>{if(!v.isValidElement(S)){w===x&&(w+=1,w>=i.length&&(w=-1));return}S.props.disabled||(p==="selectedMenu"&&S.props.selected||w===-1)&&(w=x),w===x&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(w+=1,w>=i.length&&(w=-1))});const C=v.Children.map(i,(S,x)=>{if(x===w){const P={};return s&&(P.autoFocus=!0),S.props.tabIndex===void 0&&p==="selectedMenu"&&(P.tabIndex=0),v.cloneElement(S,P)}return S});return f.jsx(Du,{role:"menu",ref:g,className:a,onKeyDown:h,tabIndex:o?0:-1,...m,children:C})});function K0(e){const t=Ye(e);return t.body===e?Ft(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function gr(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function bl(e){return parseInt(Ft(e).getComputedStyle(e).paddingRight,10)||0}function X0(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function vl(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,i=>{const a=!s.includes(i),l=!X0(i);a&&l&&gr(i,o)})}function cs(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function Q0(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(K0(r)){const i=Gc(Ft(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${bl(r)+i}px`;const a=Ye(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${bl(l)+i}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=Ye(r).body;else{const i=r.parentElement,a=Ft(r);s=i?.nodeName==="HTML"&&a.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:i,property:a})=>{s?i.style.setProperty(a,s):i.style.removeProperty(a)})}}function Z0(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class J0{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&gr(t.modalRef,!1);const o=Z0(n);vl(n,t.mount,t.modalRef,o,!0);const s=cs(this.containers,i=>i.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=cs(this.containers,s=>s.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=Q0(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=cs(this.containers,i=>i.modals.includes(t)),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&gr(t.modalRef,n),vl(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=s.modals[s.modals.length-1];i.modalRef&&gr(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function eS(e){return ge("MuiBackdrop",e)}he("MuiBackdrop",["root","invisible"]);const tS=e=>{const{classes:t,invisible:n}=e;return me({root:["root",n&&"invisible"]},eS,t)},nS=Y("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"}}]}),Fu=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiBackdrop"}),{children:o,className:s,component:i="div",invisible:a=!1,open:l,components:c={},componentsProps:u={},slotProps:p={},slots:m={},TransitionComponent:b,transitionDuration:d,...h}=r,g={...r,component:i,invisible:a},w=tS(g),C={transition:b,root:c.Root,...m},S={...u,...p},x={component:i,slots:C,slotProps:S},[P,k]=je("root",{elementType:nS,externalForwardedProps:x,className:de(w.root,s),ownerState:g}),[I,R]=je("transition",{elementType:pn,externalForwardedProps:x,ownerState:g});return f.jsx(I,{in:l,timeout:d,...h,...R,children:f.jsx(P,{"aria-hidden":!0,...k,classes:w,ref:n,children:o})})});function rS(e){return typeof e=="function"?e():e}function oS(e){return e?e.props.hasOwnProperty("in"):!1}const xl=()=>{},Yr=new J0;function sS(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:i,children:a,onClose:l,open:c,rootRef:u}=e,p=v.useRef({}),m=v.useRef(null),b=v.useRef(null),d=ke(b,u),[h,g]=v.useState(!c),w=oS(a);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const S=()=>Ye(m.current),x=()=>(p.current.modalRef=b.current,p.current.mount=m.current,p.current),P=()=>{Yr.mount(x(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},k=ue(()=>{const M=rS(t)||S().body;Yr.add(x(),M),b.current&&P()}),I=()=>Yr.isTopModal(x()),R=ue(M=>{m.current=M,M&&(c&&I()?P():b.current&&gr(b.current,C))}),N=v.useCallback(()=>{Yr.remove(x(),C)},[C]);v.useEffect(()=>()=>{N()},[N]),v.useEffect(()=>{c?k():(!w||!o)&&N()},[c,N,w,o,k]);const F=M=>T=>{M.onKeyDown?.(T),!(T.key!=="Escape"||T.which===229||!I())&&(n||(T.stopPropagation(),l&&l(T,"escapeKeyDown")))},E=M=>T=>{M.onClick?.(T),T.target===T.currentTarget&&l&&l(T,"backdropClick")};return{getRootProps:(M={})=>{const T=ni(e);delete T.onTransitionEnter,delete T.onTransitionExited;const O={...T,...M};return{role:"presentation",...O,onKeyDown:F(O),ref:d}},getBackdropProps:(M={})=>{const T=M;return{"aria-hidden":!0,...T,onClick:E(T),open:c}},getTransitionProps:()=>{const M=()=>{g(!1),s&&s()},T=()=>{g(!0),i&&i(),o&&N()};return{onEnter:qi(M,a?.props.onEnter??xl),onExited:qi(T,a?.props.onExited??xl)}},rootRef:d,portalRef:R,isTopModal:I,exited:h,hasTransition:w}}function iS(e){return ge("MuiModal",e)}he("MuiModal",["root","hidden","backdrop"]);const aS=e=>{const{open:t,exited:n,classes:r}=e;return me({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},iS,r)},lS=Y("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ee(({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"}}]}))),cS=Y(Fu,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Lu=v.forwardRef(function(t,n){const r=Ce({name:"MuiModal",props:t}),{BackdropComponent:o=cS,BackdropProps:s,classes:i,className:a,closeAfterTransition:l=!1,children:c,container:u,component:p,components:m={},componentsProps:b={},disableAutoFocus:d=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:g=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:S=!1,hideBackdrop:x=!1,keepMounted:P=!1,onClose:k,onTransitionEnter:I,onTransitionExited:R,open:N,slotProps:F={},slots:E={},theme:y,...$}=r,D={...r,closeAfterTransition:l,disableAutoFocus:d,disableEnforceFocus:h,disableEscapeKeyDown:g,disablePortal:w,disableRestoreFocus:C,disableScrollLock:S,hideBackdrop:x,keepMounted:P},{getRootProps:M,getBackdropProps:T,getTransitionProps:O,portalRef:A,isTopModal:L,exited:V,hasTransition:X}=sS({...D,rootRef:n}),re={...D,exited:V},ae=aS(re),ie={};if(c.props.tabIndex===void 0&&(ie.tabIndex="-1"),X){const{onEnter:q,onExited:te}=O();ie.onEnter=q,ie.onExited=te}const z={slots:{root:m.Root,backdrop:m.Backdrop,...E},slotProps:{...b,...F}},[Z,Q]=je("root",{ref:n,elementType:lS,externalForwardedProps:{...z,...$,component:p},getSlotProps:M,ownerState:re,className:de(a,ae?.root,!re.open&&re.exited&&ae?.hidden)}),[G,H]=je("backdrop",{ref:s?.ref,elementType:o,externalForwardedProps:z,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:q=>T({...q,onClick:te=>{q?.onClick&&q.onClick(te)}}),className:de(s?.className,ae?.backdrop),ownerState:re});return!P&&!N&&(!X||V)?null:f.jsx(xu,{ref:A,container:u,disablePortal:w,children:f.jsxs(Z,{...Q,children:[!x&&o?f.jsx(G,{...H}):null,f.jsx(wu,{disableEnforceFocus:h,disableAutoFocus:d,disableRestoreFocus:C,isEnabled:L,open:N,children:v.cloneElement(c,ie)})]})})});function uS(e){return ge("MuiPopover",e)}he("MuiPopover",["root","paper"]);function Sl(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function wl(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Cl(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Gr(e){return typeof e=="function"?e():e}const dS=e=>{const{classes:t}=e;return me({root:["root"],paper:["paper"]},uS,t)},pS=Y(Lu,{name:"MuiPopover",slot:"Root"})({}),Nu=Y(jr,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),fS=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:u,container:p,elevation:m=8,marginThreshold:b=16,open:d,PaperProps:h={},slots:g={},slotProps:w={},transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:S,transitionDuration:x="auto",TransitionProps:P={},disableScrollLock:k=!1,...I}=r,R=v.useRef(),N={...r,anchorOrigin:i,anchorReference:l,elevation:m,marginThreshold:b,transformOrigin:C,TransitionComponent:S,transitionDuration:x,TransitionProps:P},F=dS(N),E=v.useCallback(()=>{if(l==="anchorPosition")return a;const q=Gr(s),J=(q&&q.nodeType===1?q:Ye(R.current).body).getBoundingClientRect();return{top:J.top+Sl(J,i.vertical),left:J.left+wl(J,i.horizontal)}},[s,i.horizontal,i.vertical,a,l]),y=v.useCallback(q=>({vertical:Sl(q,C.vertical),horizontal:wl(q,C.horizontal)}),[C.horizontal,C.vertical]),$=v.useCallback(q=>{const te={width:q.offsetWidth,height:q.offsetHeight},J=y(te);if(l==="none")return{top:null,left:null,transformOrigin:Cl(J)};const B=E();let K=B.top-J.vertical,oe=B.left-J.horizontal;const ne=K+te.height,ce=oe+te.width,se=Ft(Gr(s)),fe=se.innerHeight-b,be=se.innerWidth-b;if(b!==null&&K<b){const we=K-b;K-=we,J.vertical+=we}else if(b!==null&&ne>fe){const we=ne-fe;K-=we,J.vertical+=we}if(b!==null&&oe<b){const we=oe-b;oe-=we,J.horizontal+=we}else if(ce>be){const we=ce-be;oe-=we,J.horizontal+=we}return{top:`${Math.round(K)}px`,left:`${Math.round(oe)}px`,transformOrigin:Cl(J)}},[s,l,E,y,b]),[D,M]=v.useState(d),T=v.useCallback(()=>{const q=R.current;if(!q)return;const te=$(q);te.top!==null&&q.style.setProperty("top",te.top),te.left!==null&&(q.style.left=te.left),q.style.transformOrigin=te.transformOrigin,M(!0)},[$]);v.useEffect(()=>(k&&window.addEventListener("scroll",T),()=>window.removeEventListener("scroll",T)),[s,k,T]);const O=()=>{T()},A=()=>{M(!1)};v.useEffect(()=>{d&&T()}),v.useImperativeHandle(o,()=>d?{updatePosition:()=>{T()}}:null,[d,T]),v.useEffect(()=>{if(!d)return;const q=Zl(()=>{T()}),te=Ft(Gr(s));return te.addEventListener("resize",q),()=>{q.clear(),te.removeEventListener("resize",q)}},[s,d,T]);let L=x;const V={slots:{transition:S,...g},slotProps:{transition:P,paper:h,...w}},[X,re]=je("transition",{elementType:wr,externalForwardedProps:V,ownerState:N,getSlotProps:q=>({...q,onEntering:(te,J)=>{q.onEntering?.(te,J),O()},onExited:te=>{q.onExited?.(te),A()}}),additionalProps:{appear:!0,in:d}});x==="auto"&&!X.muiSupportAuto&&(L=void 0);const ae=p||(s?Ye(Gr(s)).body:void 0),[ie,{slots:z,slotProps:Z,...Q}]=je("root",{ref:n,elementType:pS,externalForwardedProps:{...V,...I},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:g.backdrop},slotProps:{backdrop:Jl(typeof w.backdrop=="function"?w.backdrop(N):w.backdrop,{invisible:!0})},container:ae,open:d},ownerState:N,className:de(F.root,u)}),[G,H]=je("paper",{ref:R,className:F.paper,elementType:Nu,externalForwardedProps:V,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:D?void 0:{opacity:0}},ownerState:N});return f.jsx(ie,{...Q,...!Nn(ie)&&{slots:z,slotProps:Z,disableScrollLock:k},children:f.jsx(X,{...re,timeout:L,children:f.jsx(G,{...H,children:c})})})});function hS(e){return ge("MuiMenu",e)}he("MuiMenu",["root","paper","list"]);const mS={vertical:"top",horizontal:"right"},gS={vertical:"top",horizontal:"left"},yS=e=>{const{classes:t}=e;return me({root:["root"],paper:["paper"],list:["list"]},hS,t)},bS=Y(fS,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),vS=Y(Nu,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),xS=Y(q0,{name:"MuiMenu",slot:"List"})({outline:0}),SS=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:i,disableAutoFocusItem:a=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:p={},PopoverClasses:m,transitionDuration:b="auto",TransitionProps:{onEntering:d,...h}={},variant:g="selectedMenu",slots:w={},slotProps:C={},...S}=r,x=vt(),P={...r,autoFocus:o,disableAutoFocusItem:a,MenuListProps:l,onEntering:d,PaperProps:p,transitionDuration:b,TransitionProps:h,variant:g},k=yS(P),I=o&&!a&&u,R=v.useRef(null),N=(L,V)=>{R.current&&R.current.adjustStyleForScrollbar(L,{direction:x?"rtl":"ltr"}),d&&d(L,V)},F=L=>{L.key==="Tab"&&(L.preventDefault(),c&&c(L,"tabKeyDown"))};let E=-1;v.Children.map(s,(L,V)=>{v.isValidElement(L)&&(L.props.disabled||(g==="selectedMenu"&&L.props.selected||E===-1)&&(E=V))});const y={slots:w,slotProps:{list:l,transition:h,paper:p,...C}},$=Pe({elementType:w.root,externalSlotProps:C.root,ownerState:P,className:[k.root,i]}),[D,M]=je("paper",{className:k.paper,elementType:vS,externalForwardedProps:y,shouldForwardComponentProp:!0,ownerState:P}),[T,O]=je("list",{className:de(k.list,l.className),elementType:xS,shouldForwardComponentProp:!0,externalForwardedProps:y,getSlotProps:L=>({...L,onKeyDown:V=>{F(V),L.onKeyDown?.(V)}}),ownerState:P}),A=typeof y.slotProps.transition=="function"?y.slotProps.transition(P):y.slotProps.transition;return f.jsx(bS,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?mS:gS,slots:{root:w.root,paper:D,backdrop:w.backdrop,...w.transition&&{transition:w.transition}},slotProps:{root:$,paper:M,backdrop:typeof C.backdrop=="function"?C.backdrop(P):C.backdrop,transition:{...A,onEntering:(...L)=>{N(...L),A?.onEntering?.(...L)}}},open:u,ref:n,transitionDuration:b,ownerState:P,...S,classes:m,children:f.jsx(T,{actions:R,autoFocus:o&&(E===-1||a),autoFocusItem:I,variant:g,...O,children:s})})});function wS(e){return ge("MuiNativeSelect",e)}const Ti=he("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),CS=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:i}=e,a={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${le(n)}`,s&&"iconOpen",r&&"disabled"]};return me(a,wS,t)},ju=Y("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Ti.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}}}]})),PS=Y(ju,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:pt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Ti.multiple}`]:t.multiple}]}})({}),Bu=Y("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Ti.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}}]})),kS=Y(Bu,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${le(n.variant)}`],n.open&&t.iconOpen]}})({}),MS=v.forwardRef(function(t,n){const{className:r,disabled:o,error:s,IconComponent:i,inputRef:a,variant:l="standard",...c}=t,u={...t,disabled:o,variant:l,error:s},p=CS(u);return f.jsxs(v.Fragment,{children:[f.jsx(PS,{ownerState:u,className:de(p.select,r),disabled:o,ref:a||n,...c}),t.multiple?null:f.jsx(kS,{as:i,ownerState:u,className:p.icon})]})});function Vu(e){return ge("MuiSelect",e)}const er=he("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Pl;const TS=Y(ju,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${er.select}`]:t.select},{[`&.${er.select}`]:t[n.variant]},{[`&.${er.error}`]:t.error},{[`&.${er.multiple}`]:t.multiple}]}})({[`&.${er.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),DS=Y(Bu,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${le(n.variant)}`],n.open&&t.iconOpen]}})({}),RS=Y("input",{shouldForwardProp:e=>Ql(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function kl(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function IS(e){return e==null||typeof e=="string"&&!e.trim()}const ES=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:i}=e,a={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${le(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return me(a,Vu,t)},$S=v.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:s,autoWidth:i,children:a,className:l,defaultOpen:c,defaultValue:u,disabled:p,displayEmpty:m,error:b=!1,IconComponent:d,inputRef:h,labelId:g,MenuProps:w={},multiple:C,name:S,onBlur:x,onChange:P,onClose:k,onFocus:I,onOpen:R,open:N,readOnly:F,renderValue:E,required:y,SelectDisplayProps:$={},tabIndex:D,type:M,value:T,variant:O="standard",...A}=t,[L,V]=Tt({controlled:T,default:u,name:"Select"}),[X,re]=Tt({controlled:N,default:c,name:"Select"}),ae=v.useRef(null),ie=v.useRef(null),[z,Z]=v.useState(null),{current:Q}=v.useRef(N!=null),[G,H]=v.useState(),q=ke(n,h),te=v.useCallback(ye=>{ie.current=ye,ye&&Z(ye)},[]),J=z?.parentNode;v.useImperativeHandle(q,()=>({focus:()=>{ie.current.focus()},node:ae.current,value:L}),[L]),v.useEffect(()=>{c&&X&&z&&!Q&&(H(i?null:J.clientWidth),ie.current.focus())},[z,i]),v.useEffect(()=>{s&&ie.current.focus()},[s]),v.useEffect(()=>{if(!g)return;const ye=Ye(ie.current).getElementById(g);if(ye){const Me=()=>{getSelection().isCollapsed&&ie.current.focus()};return ye.addEventListener("click",Me),()=>{ye.removeEventListener("click",Me)}}},[g]);const B=(ye,Me)=>{ye?R&&R(Me):k&&k(Me),Q||(H(i?null:J.clientWidth),re(ye))},K=ye=>{ye.button===0&&(ye.preventDefault(),ie.current.focus(),B(!0,ye))},oe=ye=>{B(!1,ye)},ne=v.Children.toArray(a),ce=ye=>{const Me=ne.find(_e=>_e.props.value===ye.target.value);Me!==void 0&&(V(Me.props.value),P&&P(ye,Me))},se=ye=>Me=>{let _e;if(Me.currentTarget.hasAttribute("tabindex")){if(C){_e=Array.isArray(L)?L.slice():[];const _t=L.indexOf(ye.props.value);_t===-1?_e.push(ye.props.value):_e.splice(_t,1)}else _e=ye.props.value;if(ye.props.onClick&&ye.props.onClick(Me),L!==_e&&(V(_e),P)){const _t=Me.nativeEvent||Me,Ae=new _t.constructor(_t.type,_t);Object.defineProperty(Ae,"target",{writable:!0,value:{value:_e,name:S}}),P(Ae,ye)}C||B(!1,Me)}},fe=ye=>{F||[" ","ArrowUp","ArrowDown","Enter"].includes(ye.key)&&(ye.preventDefault(),B(!0,ye))},be=z!==null&&X,we=ye=>{!be&&x&&(Object.defineProperty(ye,"target",{writable:!0,value:{value:L,name:S}}),x(ye))};delete A["aria-invalid"];let pe,qe;const Be=[];let ht=!1;(So({value:L})||m)&&(E?pe=E(L):ht=!0);const mt=ne.map(ye=>{if(!v.isValidElement(ye))return null;let Me;if(C){if(!Array.isArray(L))throw new Error(Ot(2));Me=L.some(_e=>kl(_e,ye.props.value)),Me&&ht&&Be.push(ye.props.children)}else Me=kl(L,ye.props.value),Me&&ht&&(qe=ye.props.children);return v.cloneElement(ye,{"aria-selected":Me?"true":"false",onClick:se(ye),onKeyUp:_e=>{_e.key===" "&&_e.preventDefault(),ye.props.onKeyUp&&ye.props.onKeyUp(_e)},role:"option",selected:Me,value:void 0,"data-value":ye.props.value})});ht&&(C?Be.length===0?pe=null:pe=Be.reduce((ye,Me,_e)=>(ye.push(Me),_e<Be.length-1&&ye.push(", "),ye),[]):pe=qe);let nt=G;!i&&Q&&z&&(nt=J.clientWidth);let rt;typeof D<"u"?rt=D:rt=p?null:0;const Bt=$.id||(S?`mui-component-select-${S}`:void 0),gt={...t,variant:O,value:L,open:be,error:b},Oe=ES(gt),Vt={...w.PaperProps,...typeof w.slotProps?.paper=="function"?w.slotProps.paper(gt):w.slotProps?.paper},zt={...w.MenuListProps,...typeof w.slotProps?.list=="function"?w.slotProps.list(gt):w.slotProps?.list},Gn=xt();return f.jsxs(v.Fragment,{children:[f.jsx(TS,{as:"div",ref:te,tabIndex:rt,role:"combobox","aria-controls":be?Gn:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":be?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,Bt].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":y?"true":void 0,"aria-invalid":b?"true":void 0,onKeyDown:fe,onMouseDown:p||F?null:K,onBlur:we,onFocus:I,...$,ownerState:gt,className:de($.className,Oe.select,l),id:Bt,children:IS(pe)?Pl||(Pl=f.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):pe}),f.jsx(RS,{"aria-invalid":b,value:Array.isArray(L)?L.join(","):L,name:S,ref:ae,"aria-hidden":!0,onChange:ce,tabIndex:-1,disabled:p,className:Oe.nativeInput,autoFocus:s,required:y,...A,ownerState:gt}),f.jsx(DS,{as:d,className:Oe.icon,ownerState:gt}),f.jsx(SS,{id:`menu-${S||""}`,anchorEl:J,open:be,onClose:oe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...w,slotProps:{...w.slotProps,list:{"aria-labelledby":g,role:"listbox","aria-multiselectable":C?"true":void 0,disableListWrap:!0,id:Gn,...zt},paper:{...Vt,style:{minWidth:nt,...Vt!=null?Vt.style:null}}},children:mt})]})}),zu=$e(f.jsx("path",{d:"M7 10l5 5 5-5z"})),OS=e=>{const{classes:t}=e,r=me({root:["root"]},Vu,t);return{...t,...r}},Di={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>pt(e)&&e!=="variant"},AS=Y(wi,Di)(""),FS=Y(Pi,Di)(""),LS=Y(Ci,Di)(""),Ri=v.forwardRef(function(t,n){const r=Ce({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=zu,id:p,input:m,inputProps:b,label:d,labelId:h,MenuProps:g,multiple:w=!1,native:C=!1,onClose:S,onOpen:x,open:P,renderValue:k,SelectDisplayProps:I,variant:R="outlined",...N}=r,F=C?MS:$S,E=ft(),y=yn({props:r,muiFormControl:E,states:["variant","error"]}),$=y.variant||R,D={...r,variant:$,classes:i},M=OS(D),{root:T,...O}=M,A=m||{standard:f.jsx(AS,{ownerState:D}),outlined:f.jsx(FS,{label:d,ownerState:D}),filled:f.jsx(LS,{ownerState:D})}[$],L=ke(n,Un(A));return f.jsx(v.Fragment,{children:v.cloneElement(A,{inputComponent:F,inputProps:{children:s,error:y.error,IconComponent:u,variant:$,type:void 0,multiple:w,...C?{id:p}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:h,MenuProps:g,onClose:S,onOpen:x,open:P,renderValue:k,SelectDisplayProps:{id:p,...I}},...b,classes:b?Ge(O,b.classes):O,...m?m.props.inputProps:{}},...(w&&C||c)&&$==="outlined"?{notched:!0}:{},ref:L,className:de(A.props.className,a,M.root),...!m&&{variant:$},...N})})});Ri.muiName="Select";function NS(e){return ge("MuiTextField",e)}he("MuiTextField",["root"]);const jS={standard:wi,filled:Ci,outlined:Pi},BS=e=>{const{classes:t}=e;return me({root:["root"]},NS,t)},VS=Y(Mi,{name:"MuiTextField",slot:"Root"})({}),_u=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:i,className:a,color:l="primary",defaultValue:c,disabled:u=!1,error:p=!1,FormHelperTextProps:m,fullWidth:b=!1,helperText:d,id:h,InputLabelProps:g,inputProps:w,InputProps:C,inputRef:S,label:x,maxRows:P,minRows:k,multiline:I=!1,name:R,onBlur:N,onChange:F,onFocus:E,placeholder:y,required:$=!1,rows:D,select:M=!1,SelectProps:T,slots:O={},slotProps:A={},type:L,value:V,variant:X="outlined",...re}=r,ae={...r,autoFocus:s,color:l,disabled:u,error:p,fullWidth:b,multiline:I,required:$,select:M,variant:X},ie=BS(ae),z=xt(h),Z=d&&z?`${z}-helper-text`:void 0,Q=x&&z?`${z}-label`:void 0,G=jS[X],H={slots:O,slotProps:{input:C,inputLabel:g,htmlInput:w,formHelperText:m,select:T,...A}},q={},te=H.slotProps.inputLabel;X==="outlined"&&(te&&typeof te.shrink<"u"&&(q.notched=te.shrink),q.label=x),M&&((!T||!T.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[J,B]=je("root",{elementType:VS,shouldForwardComponentProp:!0,externalForwardedProps:{...H,...re},ownerState:ae,className:de(ie.root,a),ref:n,additionalProps:{disabled:u,error:p,fullWidth:b,required:$,color:l,variant:X}}),[K,oe]=je("input",{elementType:G,externalForwardedProps:H,additionalProps:q,ownerState:ae}),[ne,ce]=je("inputLabel",{elementType:ki,externalForwardedProps:H,ownerState:ae}),[se,fe]=je("htmlInput",{elementType:"input",externalForwardedProps:H,ownerState:ae}),[be,we]=je("formHelperText",{elementType:Ou,externalForwardedProps:H,ownerState:ae}),[pe,qe]=je("select",{elementType:Ri,externalForwardedProps:H,ownerState:ae}),Be=f.jsx(K,{"aria-describedby":Z,autoComplete:o,autoFocus:s,defaultValue:c,fullWidth:b,multiline:I,name:R,rows:D,maxRows:P,minRows:k,type:L,value:V,id:z,inputRef:S,onBlur:N,onChange:F,onFocus:E,placeholder:y,inputProps:fe,slots:{input:O.htmlInput?se:void 0},...oe});return f.jsxs(J,{...B,children:[x!=null&&x!==""&&f.jsx(ne,{htmlFor:z,id:Q,...ce,children:x}),M?f.jsx(pe,{"aria-describedby":Z,id:z,labelId:Q,value:V,input:Be,...qe,children:i}):Be,d&&f.jsx(be,{id:Z,...we,children:d})]})}),zS=({utils:e,format:t})=>{let n=10,r=t,o=e.expandFormat(t);for(;o!==r;)if(r=o,o=e.expandFormat(r),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 picker component.");return o},_S=({utils:e,expandedFormat:t})=>{const n=[],{start:r,end:o}=e.escapedCharacters,s=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let i=null;for(;i=s.exec(t);)n.push({start:i.index,end:s.lastIndex-1});return n},WS=(e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}},HS=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:o,now:s,token:i,startSeparator:a})=>{if(i==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=Qc(e,i),c=tu(e,l.contentType,l.type,i),u=n?c:l.contentType==="digit",p=t!=null&&e.isValid(t);let m=p?e.formatByString(t,i):"",b=null;if(u)if(c)b=m===""?e.formatByString(s,i).length:m.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${i} should have a 'maxDigitNumber' property on it's adapter`);b=l.maxLength,p&&(m=si(Jc(dn(m,o),b),o))}return j({},l,{format:i,maxLength:b,value:m,placeholder:WS(e,r,l,i),hasLeadingZerosInFormat:c,hasLeadingZerosInInput:u,startSeparator:a,endSeparator:"",modified:!1})},US=e=>{const{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),s=[];let i="";const a=Object.keys(t.formatTokenMap).sort((b,d)=>d.length-b.length),l=/^([a-zA-Z]+)/,c=new RegExp(`^(${a.join("|")})*$`),u=new RegExp(`^(${a.join("|")})`),p=b=>r.find(d=>d.start<=b&&d.end>=b);let m=0;for(;m<n.length;){const b=p(m),d=b!=null,h=l.exec(n.slice(m))?.[1];if(!d&&h!=null&&c.test(h)){let g=h;for(;g.length>0;){const w=u.exec(g)[1];g=g.slice(w.length),s.push(HS(j({},e,{now:o,token:w,startSeparator:i}))),i=""}m+=h.length}else{const g=n[m];d&&b?.start===m||b?.end===m||(s.length===0?i+=g:s[s.length-1].endSeparator+=g),m+=1}}return s.length===0&&i.length>0&&s.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:i,endSeparator:"",modified:!1}),s},YS=({isRtl:e,formatDensity:t,sections:n})=>n.map(r=>{const o=s=>{let i=s;return e&&i!==null&&i.includes(" ")&&(i=`⁩${i}⁦`),t==="spacious"&&["/",".","-"].includes(i)&&(i=` ${i} `),i};return r.startSeparator=o(r.startSeparator),r.endSeparator=o(r.endSeparator),r}),Ml=e=>{let t=zS(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=_S(j({},e,{expandedFormat:t})),r=US(j({},e,{expandedFormat:t,escapedParts:n}));return YS(j({},e,{sections:r}))},GS=e=>{const t=Le(),n=jt(),r=gn(),o=vt(),{valueManager:s,fieldValueManager:i,valueType:a,validator:l,internalProps:c,internalProps:{value:u,defaultValue:p,referenceDate:m,onChange:b,format:d,formatDensity:h="dense",selectedSections:g,onSelectedSectionsChange:w,shouldRespectLeadingZeros:C=!1,timezone:S,enableAccessibleFieldDOMStructure:x=!1}}=e,{timezone:P,value:k,handleValueChange:I}=bi({timezone:S,value:u,defaultValue:p,referenceDate:m,onChange:b,valueManager:s}),R=v.useMemo(()=>Gg(t),[t]),N=v.useMemo(()=>Jg(t,R,P),[t,R,P]),F=v.useCallback((z,Z=null)=>i.getSectionsFromValue(t,z,Z,Q=>Ml({utils:t,localeText:n,localizedDigits:R,format:d,date:Q,formatDensity:h,shouldRespectLeadingZeros:C,enableAccessibleFieldDOMStructure:x,isRtl:o})),[i,d,n,R,o,C,t,h,x]),[E,y]=v.useState(()=>{const z=F(k),Z={sections:z,value:k,referenceValue:s.emptyValue,tempValueStrAndroid:null},Q=Wg(z),G=s.getInitialReferenceValue({referenceDate:m,value:k,utils:t,props:c,granularity:Q,timezone:P});return j({},Z,{referenceValue:G})}),[$,D]=Tt({controlled:g,default:null,name:"useField",state:"selectedSections"}),M=z=>{D(z),w?.(z)},T=v.useMemo(()=>bs($,E.sections),[$,E.sections]),O=T==="all"?0:T,A=({value:z,referenceValue:Z,sections:Q})=>{if(y(H=>j({},H,{sections:Q,value:z,referenceValue:Z,tempValueStrAndroid:null})),s.areValuesEqual(t,E.value,z))return;const G={validationError:l({adapter:r,value:z,timezone:P,props:c})};I(z,G)},L=(z,Z)=>{const Q=[...E.sections];return Q[z]=j({},Q[z],{value:Z,modified:!0}),Q},V=()=>{A({value:s.emptyValue,referenceValue:E.referenceValue,sections:F(s.emptyValue)})},X=()=>{if(O==null)return;const z=E.sections[O],Z=i.getActiveDateManager(t,E,z),G=Z.getSections(E.sections).filter(J=>J.value!=="").length===(z.value===""?0:1),H=L(O,""),q=G?null:t.getInvalidDate(),te=Z.getNewValuesFromNewActiveDate(q);A(j({},te,{sections:H}))},re=z=>{const Z=(H,q)=>{const te=t.parse(H,d);if(te==null||!t.isValid(te))return null;const J=Ml({utils:t,localeText:n,localizedDigits:R,format:d,date:te,formatDensity:h,shouldRespectLeadingZeros:C,enableAccessibleFieldDOMStructure:x,isRtl:o});return Wa(t,te,J,q,!1)},Q=i.parseValueStr(z,E.referenceValue,Z),G=i.updateReferenceValue(t,Q,E.referenceValue);A({value:Q,referenceValue:G,sections:F(Q,E.sections)})},ae=({activeSection:z,newSectionValue:Z,shouldGoToNextSection:Q})=>{Q&&O<E.sections.length-1&&M(O+1);const G=i.getActiveDateManager(t,E,z),H=L(O,Z),q=G.getSections(H),te=Xg(t,q,R);let J,B;if(te!=null&&t.isValid(te)){const K=Wa(t,te,q,G.referenceDate,!0);J=G.getNewValuesFromNewActiveDate(K),B=!0}else J=G.getNewValuesFromNewActiveDate(te),B=(te!=null&&!t.isValid(te))!=(G.date!=null&&!t.isValid(G.date));return B?A(j({},J,{sections:H})):y(K=>j({},K,J,{sections:H,tempValueStrAndroid:null}))},ie=z=>y(Z=>j({},Z,{tempValueStrAndroid:z}));return v.useEffect(()=>{const z=F(E.value);y(Z=>j({},Z,{sections:z}))},[d,t.locale,o]),v.useEffect(()=>{let z;s.areValuesEqual(t,E.value,k)?z=s.getTimezone(t,E.value)!==s.getTimezone(t,k):z=!0,z&&y(Z=>j({},Z,{value:k,referenceValue:i.updateReferenceValue(t,k,Z.referenceValue),sections:F(k)}))},[k]),{state:E,activeSectionIndex:O,parsedSelectedSections:T,setSelectedSections:M,clearValue:V,clearActiveSection:X,updateSectionValue:ae,updateValueFromValueStr:re,setTempAndroidValueStr:ie,getSectionsFromValue:F,sectionsValueBoundaries:N,localizedDigits:R,timezone:P}},qS=5e3,Pn=e=>e.saveQuery!=null,KS=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:s})=>{const i=Le(),[a,l]=v.useState(null),c=ue(()=>l(null));v.useEffect(()=>{a!=null&&e[a.sectionIndex]?.type!==a.sectionType&&c()},[e,a,c]),v.useEffect(()=>{if(a!=null){const d=setTimeout(()=>c(),qS);return()=>{clearTimeout(d)}}return()=>{}},[a,c]);const u=({keyPressed:d,sectionIndex:h},g,w)=>{const C=d.toLowerCase(),S=e[h];if(a!=null&&(!w||w(a.value))&&a.sectionIndex===h){const P=`${a.value}${C}`,k=g(P,S);if(!Pn(k))return l({sectionIndex:h,value:P,sectionType:S.type}),k}const x=g(C,S);return Pn(x)&&!x.saveQuery?(c(),null):(l({sectionIndex:h,value:C,sectionType:S.type}),Pn(x)?null:x)},p=d=>{const h=(C,S,x)=>{const P=S.filter(k=>k.toLowerCase().startsWith(x));return P.length===0?{saveQuery:!1}:{sectionValue:P[0],shouldGoToNextSection:P.length===1}},g=(C,S,x,P)=>{const k=I=>Zc(i,s,S.type,I);if(S.contentType==="letter")return h(S.format,k(S.format),C);if(x&&P!=null&&Qc(i,x).contentType==="letter"){const I=k(x),R=h(x,I,C);return Pn(R)?{saveQuery:!1}:j({},R,{sectionValue:P(R.sectionValue,I)})}return{saveQuery:!1}};return u(d,(C,S)=>{switch(S.type){case"month":{const x=P=>za(i,P,i.formats.month,S.format);return g(C,S,i.formats.month,x)}case"weekDay":{const x=(P,k)=>k.indexOf(P).toString();return g(C,S,i.formats.weekday,x)}case"meridiem":return g(C,S);default:return{saveQuery:!1}}})},m=d=>{const h=(w,C)=>{const S=dn(w,r),x=Number(S),P=n[C.type]({currentDate:null,format:C.format,contentType:C.contentType});if(x>P.maximum)return{saveQuery:!1};if(x<P.minimum)return{saveQuery:!0};const k=x*10>P.maximum||S.length===P.maximum.toString().length;return{sectionValue:eu(i,x,P,r,C),shouldGoToNextSection:k}};return u(d,(w,C)=>{if(C.contentType==="digit"||C.contentType==="digit-with-letter")return h(w,C);if(C.type==="month"){tu(i,"digit","month","MM");const S=h(w,{type:C.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Pn(S))return S;const x=za(i,S.sectionValue,"MM",C.format);return j({},S,{sectionValue:x})}if(C.type==="weekDay"){const S=h(w,C);if(Pn(S))return S;const x=jo(i,C.format)[Number(S.sectionValue)-1];return j({},S,{sectionValue:x})}return{saveQuery:!1}},w=>Va(w,r))};return{applyCharacterEditing:ue(d=>{const h=e[d.sectionIndex],w=Va(d.keyPressed,r)?m(j({},d,{keyPressed:si(d.keyPressed,r)})):p(d);if(w==null){o(null);return}t({activeSection:h,newSectionValue:w.sectionValue,shouldGoToNextSection:w.shouldGoToNextSection})}),resetCharacterQuery:c}},XS=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:o,onClick:s,onFocus:i,onInput:a,onPaste:l,focused:c,autoFocus:u=!1},fieldValueManager:p,applyCharacterEditing:m,resetCharacterQuery:b,setSelectedSections:d,parsedSelectedSections:h,state:g,clearActiveSection:w,clearValue:C,updateSectionValue:S,updateValueFromValueStr:x,sectionOrder:P,areAllSectionsEmpty:k,sectionsValueBoundaries:I}=e,R=v.useRef(null),N=ke(r,R),F=jt(),E=Le(),y=xt(),[$,D]=v.useState(!1),M=v.useMemo(()=>({syncSelectionToDOM:()=>{if(!R.current)return;const B=document.getSelection();if(!B)return;if(h==null){B.rangeCount>0&&R.current.getRoot().contains(B.getRangeAt(0).startContainer)&&B.removeAllRanges(),$&&R.current.getRoot().blur();return}if(!R.current.getRoot().contains(Ke(document)))return;const K=new window.Range;let oe;h==="all"?oe=R.current.getRoot():g.sections[h].type==="empty"?oe=R.current.getSectionContainer(h):oe=R.current.getSectionContent(h),K.selectNodeContents(oe),oe.focus(),B.removeAllRanges(),B.addRange(K)},getActiveSectionIndexFromDOM:()=>{const B=Ke(document);return!B||!R.current||!R.current.getRoot().contains(B)?null:R.current.getSectionIndexFromDOMElement(B)},focusField:(B=0)=>{if(!R.current||M.getActiveSectionIndexFromDOM()!=null)return;const K=bs(B,g.sections);D(!0),R.current.getSectionContent(K).focus()},setSelectedSections:B=>{if(!R.current)return;const K=bs(B,g.sections);D((K==="all"?0:K)!==null),d(B)},isFieldFocused:()=>{const B=Ke(document);return!!R.current&&R.current.getRoot().contains(B)}}),[h,d,g.sections,$]),T=ue(B=>{if(!R.current)return;const K=g.sections[B];R.current.getSectionContent(B).innerHTML=K.value||K.placeholder,M.syncSelectionToDOM()}),O=ue((B,...K)=>{B.isDefaultPrevented()||!R.current||(D(!0),s?.(B,...K),h==="all"?setTimeout(()=>{const oe=document.getSelection().getRangeAt(0).startOffset;if(oe===0){d(P.startIndex);return}let ne=0,ce=0;for(;ce<oe&&ne<g.sections.length;){const se=g.sections[ne];ne+=1,ce+=`${se.startSeparator}${se.value||se.placeholder}${se.endSeparator}`.length}d(ne-1)}):$?R.current.getRoot().contains(B.target)||d(P.startIndex):(D(!0),d(P.startIndex)))}),A=ue(B=>{if(a?.(B),!R.current||h!=="all")return;const oe=B.target.textContent??"";R.current.getRoot().innerHTML=g.sections.map(ne=>`${ne.startSeparator}${ne.value||ne.placeholder}${ne.endSeparator}`).join(""),M.syncSelectionToDOM(),oe.length===0||oe.charCodeAt(0)===10?(b(),C(),d("all")):oe.length>1?x(oe):(h==="all"&&d(0),m({keyPressed:oe,sectionIndex:0}))}),L=ue(B=>{if(l?.(B),n||h!=="all"){B.preventDefault();return}const K=B.clipboardData.getData("text");B.preventDefault(),b(),x(K)}),V=ue((...B)=>{if(i?.(...B),$||!R.current)return;D(!0),R.current.getSectionIndexFromDOMElement(Ke(document))!=null||d(P.startIndex)}),X=ue((...B)=>{o?.(...B),setTimeout(()=>{if(!R.current)return;const K=Ke(document);!R.current.getRoot().contains(K)&&(D(!1),d(null))})}),re=ue(B=>K=>{K.isDefaultPrevented()||d(B)}),ae=ue(B=>{B.preventDefault()}),ie=ue(B=>()=>{d(B)}),z=ue(B=>{if(B.preventDefault(),n||t||typeof h!="number")return;const K=g.sections[h],oe=B.clipboardData.getData("text"),ne=/^[a-zA-Z]+$/.test(oe),ce=/^[0-9]+$/.test(oe),se=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(oe);K.contentType==="letter"&&ne||K.contentType==="digit"&&ce||K.contentType==="digit-with-letter"&&se?(b(),S({activeSection:K,newSectionValue:oe,shouldGoToNextSection:!0})):!ne&&!ce&&(b(),x(oe))}),Z=ue(B=>{B.preventDefault(),B.dataTransfer.dropEffect="none"}),Q=ue(B=>{if(!R.current)return;const K=B.target,oe=K.textContent??"",ne=R.current.getSectionIndexFromDOMElement(K),ce=g.sections[ne];if(n||!R.current){T(ne);return}if(oe.length===0){if(ce.value===""){T(ne);return}const se=B.nativeEvent.inputType;if(se==="insertParagraph"||se==="insertLineBreak"){T(ne);return}b(),w();return}m({keyPressed:oe,sectionIndex:ne}),T(ne)});Ue(()=>{if(!(!$||!R.current)){if(h==="all")R.current.getRoot().focus();else if(typeof h=="number"){const B=R.current.getSectionContent(h);B&&B.focus()}}},[h,$]);const G=v.useMemo(()=>g.sections.reduce((B,K)=>(B[K.type]=I[K.type]({currentDate:null,contentType:K.contentType,format:K.format}),B),{}),[I,g.sections]),H=h==="all",q=v.useMemo(()=>g.sections.map((B,K)=>{const oe=!H&&!t&&!n;return{container:{"data-sectionindex":K,onClick:re(K)},content:{tabIndex:H||K>0?-1:0,contentEditable:!H&&!t&&!n,role:"spinbutton",id:`${y}-${B.type}`,"aria-labelledby":`${y}-${B.type}`,"aria-readonly":n,"aria-valuenow":oy(B,E),"aria-valuemin":G[B.type].minimum,"aria-valuemax":G[B.type].maximum,"aria-valuetext":B.value?ry(B,E):F.empty,"aria-label":F[B.type],"aria-disabled":t,spellCheck:oe?!1:void 0,autoCapitalize:oe?"off":void 0,autoCorrect:oe?"off":void 0,[parseInt(v.version,10)>=17?"enterKeyHint":"enterkeyhint"]:oe?"next":void 0,children:B.value||B.placeholder,onInput:Q,onPaste:z,onFocus:ie(K),onDragOver:Z,onMouseUp:ae,inputMode:B.contentType==="letter"?"text":"numeric"},before:{children:B.startSeparator},after:{children:B.endSeparator}}}),[g.sections,ie,z,Z,Q,re,ae,t,n,H,F,E,G,y]),te=ue(B=>{x(B.target.value)}),J=v.useMemo(()=>k?"":p.getV7HiddenInputValueFromSections(g.sections),[k,g.sections,p]);return v.useEffect(()=>{if(R.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 remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker 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(`
134
- `));u&&R.current&&R.current.getSectionContent(P.startIndex).focus()},[]),{interactions:M,returnedValue:{autoFocus:u,readOnly:n,focused:c??$,sectionListRef:N,onBlur:X,onClick:O,onFocus:V,onInput:A,onPaste:L,enableAccessibleFieldDOMStructure:!0,elements:q,tabIndex:h===0?-1:0,contentEditable:H,value:J,onChange:te,areAllSectionsEmpty:k}}},Tn=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),QS=(e,t,n)=>{let r=0,o=n?1:0;const s=[];for(let i=0;i<e.length;i+=1){const a=e[i],l=ii(a,n?"input-rtl":"input-ltr",t),c=`${a.startSeparator}${l}${a.endSeparator}`,u=Tn(c).length,p=c.length,m=Tn(l),b=o+(m===""?0:l.indexOf(m[0]))+a.startSeparator.length,d=b+m.length;s.push(j({},a,{start:r,end:r+u,startInInput:b,endInInput:d})),r+=u,o+=p}return s},ZS=e=>{const t=vt(),n=v.useRef(void 0),r=v.useRef(void 0),{forwardedProps:{onFocus:o,onClick:s,onPaste:i,onBlur:a,inputRef:l,placeholder:c},internalProps:{readOnly:u=!1,disabled:p=!1},parsedSelectedSections:m,activeSectionIndex:b,state:d,fieldValueManager:h,valueManager:g,applyCharacterEditing:w,resetCharacterQuery:C,updateSectionValue:S,updateValueFromValueStr:x,clearActiveSection:P,clearValue:k,setTempAndroidValueStr:I,setSelectedSections:R,getSectionsFromValue:N,areAllSectionsEmpty:F,localizedDigits:E}=e,y=v.useRef(null),$=ke(l,y),D=v.useMemo(()=>QS(d.sections,E,t),[d.sections,E,t]),M=v.useMemo(()=>({syncSelectionToDOM:()=>{if(!y.current)return;if(m==null){y.current.scrollLeft&&(y.current.scrollLeft=0);return}if(y.current!==Ke(document))return;const Q=y.current.scrollTop;if(m==="all")y.current.select();else{const G=D[m],H=G.type==="empty"?G.startInInput-G.startSeparator.length:G.startInInput,q=G.type==="empty"?G.endInInput+G.endSeparator.length:G.endInInput;(H!==y.current.selectionStart||q!==y.current.selectionEnd)&&y.current===Ke(document)&&y.current.setSelectionRange(H,q),clearTimeout(r.current),r.current=setTimeout(()=>{y.current&&y.current===Ke(document)&&y.current.selectionStart===y.current.selectionEnd&&(y.current.selectionStart!==H||y.current.selectionEnd!==q)&&M.syncSelectionToDOM()})}y.current.scrollTop=Q},getActiveSectionIndexFromDOM:()=>{const Q=y.current.selectionStart??0,G=y.current.selectionEnd??0;if(Q===0&&G===0)return null;const H=Q<=D[0].startInInput?1:D.findIndex(q=>q.startInInput-q.startSeparator.length>Q);return H===-1?D.length-1:H-1},focusField:(Q=0)=>{Ke(document)!==y.current&&(y.current?.focus(),R(Q))},setSelectedSections:Q=>R(Q),isFieldFocused:()=>y.current===Ke(document)}),[y,m,D,R]),T=()=>{const Q=y.current.selectionStart??0;let G;Q<=D[0].startInInput||Q>=D[D.length-1].endInInput?G=1:G=D.findIndex(q=>q.startInInput-q.startSeparator.length>Q);const H=G===-1?D.length-1:G-1;R(H)},O=ue((...Q)=>{o?.(...Q);const G=y.current;clearTimeout(n.current),n.current=setTimeout(()=>{!G||G!==y.current||b==null&&(G.value.length&&Number(G.selectionEnd)-Number(G.selectionStart)===G.value.length?R("all"):T())})}),A=ue((Q,...G)=>{Q.isDefaultPrevented()||(s?.(Q,...G),T())}),L=ue(Q=>{if(i?.(Q),Q.preventDefault(),u||p)return;const G=Q.clipboardData.getData("text");if(typeof m=="number"){const H=d.sections[m],q=/^[a-zA-Z]+$/.test(G),te=/^[0-9]+$/.test(G),J=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(G);if(H.contentType==="letter"&&q||H.contentType==="digit"&&te||H.contentType==="digit-with-letter"&&J){C(),S({activeSection:H,newSectionValue:G,shouldGoToNextSection:!0});return}if(q||te)return}C(),x(G)}),V=ue((...Q)=>{a?.(...Q),R(null)}),X=ue(Q=>{if(u)return;const G=Q.target.value;if(G===""){C(),k();return}const H=Q.nativeEvent.data,q=H&&H.length>1,te=q?H:G,J=Tn(te);if(m==="all"&&R(b),b==null||q){x(q?H:J);return}let B;if(m==="all"&&J.length===1)B=J;else{const K=Tn(h.getV6InputValueFromSections(D,E,t));let oe=-1,ne=-1;for(let be=0;be<K.length;be+=1)oe===-1&&K[be]!==J[be]&&(oe=be),ne===-1&&K[K.length-be-1]!==J[J.length-be-1]&&(ne=be);const ce=D[b];if(oe<ce.start||K.length-ne-1>ce.end)return;const fe=J.length-K.length+ce.end-Tn(ce.endSeparator||"").length;B=J.slice(ce.start+Tn(ce.startSeparator||"").length,fe)}if(B.length===0){ty()&&I(te),C(),P();return}w({keyPressed:B,sectionIndex:b})}),re=v.useMemo(()=>c!==void 0?c:h.getV6InputValueFromSections(N(g.emptyValue),E,t),[c,h,N,g.emptyValue,E,t]),ae=v.useMemo(()=>d.tempValueStrAndroid??h.getV6InputValueFromSections(d.sections,E,t),[d.sections,h,d.tempValueStrAndroid,E,t]);v.useEffect(()=>(y.current&&y.current===Ke(document)&&R("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const ie=v.useMemo(()=>b==null||d.sections[b].contentType==="letter"?"text":"numeric",[b,d.sections]),Z=!(y.current&&y.current===Ke(document))&&F;return{interactions:M,returnedValue:{readOnly:u,onBlur:V,onClick:A,onFocus:O,onPaste:L,inputRef:$,enableAccessibleFieldDOMStructure:!1,placeholder:re,inputMode:ie,autoComplete:"off",value:Z?"":ae,onChange:X}}},JS=e=>{const t=Le(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:s=!1,disabled:i=!1,readOnly:a=!1},forwardedProps:{onKeyDown:l,error:c,clearable:u,onClear:p},fieldValueManager:m,valueManager:b,validator:d}=e,h=vt(),g=GS(e),{state:w,activeSectionIndex:C,parsedSelectedSections:S,setSelectedSections:x,clearValue:P,clearActiveSection:k,updateSectionValue:I,setTempAndroidValueStr:R,sectionsValueBoundaries:N,localizedDigits:F,timezone:E}=g,y=KS({sections:w.sections,updateSectionValue:I,sectionsValueBoundaries:N,localizedDigits:F,setTempAndroidValueStr:R,timezone:E}),{resetCharacterQuery:$}=y,D=b.areValuesEqual(t,w.value,b.emptyValue),M=s?XS:ZS,T=v.useMemo(()=>ny(w.sections,h&&!s),[w.sections,h,s]),{returnedValue:O,interactions:A}=M(j({},e,g,y,{areAllSectionsEmpty:D,sectionOrder:T})),L=ue(z=>{if(l?.(z),!i)switch(!0){case((z.ctrlKey||z.metaKey)&&String.fromCharCode(z.keyCode)==="A"&&!z.shiftKey&&!z.altKey):{z.preventDefault(),x("all");break}case z.key==="ArrowRight":{if(z.preventDefault(),S==null)x(T.startIndex);else if(S==="all")x(T.endIndex);else{const Z=T.neighbors[S].rightIndex;Z!==null&&x(Z)}break}case z.key==="ArrowLeft":{if(z.preventDefault(),S==null)x(T.endIndex);else if(S==="all")x(T.startIndex);else{const Z=T.neighbors[S].leftIndex;Z!==null&&x(Z)}break}case z.key==="Delete":{if(z.preventDefault(),a)break;S==null||S==="all"?P():k(),$();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(z.key):{if(z.preventDefault(),a||C==null)break;S==="all"&&x(C);const Z=w.sections[C],Q=m.getActiveDateManager(t,w,Z),G=qg(t,E,Z,z.key,N,F,Q.date,{minutesStep:o});I({activeSection:Z,newSectionValue:G,shouldGoToNextSection:!1});break}}});Ue(()=>{A.syncSelectionToDOM()});const{hasValidationError:V}=au({props:n,validator:d,timezone:E,value:w.value,onError:n.onError}),X=v.useMemo(()=>c!==void 0?c:V,[V,c]);v.useEffect(()=>{!X&&C==null&&$()},[w.referenceValue,C,X]),v.useEffect(()=>{w.tempValueStrAndroid!=null&&C!=null&&($(),k())},[w.sections]),v.useImperativeHandle(r,()=>({getSections:()=>w.sections,getActiveSectionIndex:A.getActiveSectionIndexFromDOM,setSelectedSections:A.setSelectedSections,focusField:A.focusField,isFieldFocused:A.isFieldFocused}));const re=ue((z,...Z)=>{z.preventDefault(),p?.(z,...Z),P(),A.isFieldFocused()?x(T.startIndex):A.focusField(0)}),ae={onKeyDown:L,onClear:re,error:X,clearable:!!(u&&!D&&!a&&!i)},ie={disabled:i,readOnly:a};return j({},e.forwardedProps,ae,ie,O)},ew=["clearable","onClear","InputProps","sx","slots","slotProps"],tw=["ownerState"],nw=e=>{const t=jt(),{clearable:n,onClear:r,InputProps:o,sx:s,slots:i,slotProps:a}=e,l=ve(e,ew),c=i?.clearButton??Nr,u=Pe({elementType:c,externalSlotProps:a?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),p=ve(u,tw),m=i?.clearIcon??d0,b=Pe({elementType:m,externalSlotProps:a?.clearIcon,ownerState:{}});return j({},l,{InputProps:j({},o,{endAdornment:f.jsxs(v.Fragment,{children:[n&&f.jsx(lu,{position:"end",sx:{marginRight:o?.endAdornment?-1:-1.5},children:f.jsx(c,j({},p,{onClick:r,children:f.jsx(m,j({fontSize:"small"},b))}))}),o?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(s)?s:[s]]})},rw=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],ow=(e,t)=>v.useMemo(()=>{const n=j({},e),r={},o=s=>{n.hasOwnProperty(s)&&(r[s]=n[s],delete n[s])};return rw.forEach(o),su.forEach(o),{forwardedProps:n,internalProps:r}},[e,t]),sw=e=>{const t=Le(),n=Ar();return j({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:lt(t,e.minDate,n.minDate),maxDate:lt(t,e.maxDate,n.maxDate)})},iw=e=>{const t=sw(e),{forwardedProps:n,internalProps:r}=ow(t,"date");return JS({forwardedProps:n,internalProps:r,valueManager:Dt,fieldValueManager:iy,validator:Fr,valueType:"date"})};function aw(e){return ge("MuiPickersTextField",e)}he("MuiPickersTextField",["root","focused","disabled","error","required"]);function lw(e){return ge("MuiPickersInputBase",e)}const $n=he("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function cw(e){return ge("MuiPickersSectionList",e)}const tr=he("MuiPickersSectionList",["root","section","sectionContent"]),uw=["slots","slotProps","elements","sectionListRef"],Wu=Y("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),Hu=Y("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),Uu=Y("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),Yu=Y("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),dw=e=>{const{classes:t}=e;return me({root:["root"],section:["section"],sectionContent:["sectionContent"]},cw,t)};function pw(e){const{slots:t,slotProps:n,element:r,classes:o}=e,s=t?.section??Hu,i=Pe({elementType:s,externalSlotProps:n?.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),a=t?.sectionContent??Yu,l=Pe({elementType:a,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),c=t?.sectionSeparator??Uu,u=Pe({elementType:c,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),p=Pe({elementType:c,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return f.jsxs(s,j({},i,{children:[f.jsx(c,j({},u)),f.jsx(a,j({},l)),f.jsx(c,j({},p))]}))}const fw=v.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersSectionList"}),{slots:o,slotProps:s,elements:i,sectionListRef:a}=r,l=ve(r,uw),c=dw(r),u=v.useRef(null),p=ke(n,u),m=h=>{if(!u.current)throw new Error(`MUI X: Cannot call sectionListRef.${h} before the mount of the component.`);return u.current};v.useImperativeHandle(a,()=>({getRoot(){return m("getRoot")},getSectionContainer(h){return m("getSectionContainer").querySelector(`.${tr.section}[data-sectionindex="${h}"]`)},getSectionContent(h){return m("getSectionContent").querySelector(`.${tr.section}[data-sectionindex="${h}"] .${tr.sectionContent}`)},getSectionIndexFromDOMElement(h){const g=m("getSectionIndexFromDOMElement");if(h==null||!g.contains(h))return null;let w=null;return h.classList.contains(tr.section)?w=h:h.classList.contains(tr.sectionContent)&&(w=h.parentElement),w==null?null:Number(w.dataset.sectionindex)}}));const b=o?.root??Wu,d=Pe({elementType:b,externalSlotProps:s?.root,externalForwardedProps:l,additionalProps:{ref:p,suppressContentEditableWarning:!0},className:c.root,ownerState:{}});return f.jsx(b,j({},d,{children:d.contentEditable?i.map(({content:h,before:g,after:w})=>`${g.children}${h.children}${w.children}`).join(""):f.jsx(v.Fragment,{children:i.map((h,g)=>f.jsx(pw,{slots:o,slotProps:s,element:h,classes:c},g))})}))}),hw=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],mw=e=>Math.round(e*1e5)/1e5,qo=Y("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>j({},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:`${mw(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),Ii=Y(Wu,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.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:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:n,filled:r,label:o})=>!t&&!n&&!r&&o==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),gw=Y(Hu,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),yw=Y(Yu,{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"})),bw=Y(Uu,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),vw=Y("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(j({},Ag)),xw=e=>{const{focused:t,disabled:n,error:r,classes:o,fullWidth:s,readOnly:i,color:a,size:l,endAdornment:c,startAdornment:u}=e,p={root:["root",t&&!n&&"focused",n&&"disabled",i&&"readOnly",r&&"error",s&&"fullWidth",`color${le(a)}`,l==="small"&&"inputSizeSmall",!!u&&"adornedStart",!!c&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return me(p,lw,o)},Ei=v.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersInputBase"}),{elements:o,areAllSectionsEmpty:s,value:i,onChange:a,id:l,endAdornment:c,startAdornment:u,renderSuffix:p,slots:m,slotProps:b,contentEditable:d,tabIndex:h,onInput:g,onPaste:w,onKeyDown:C,name:S,readOnly:x,inputProps:P,inputRef:k,sectionListRef:I}=r,R=ve(r,hw),N=v.useRef(null),F=ke(n,N),E=ke(P?.ref,k),y=vt(),$=ft();if(!$)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const D=V=>{if($.disabled){V.stopPropagation();return}$.onFocus?.(V)};v.useEffect(()=>{$&&$.setAdornedStart(!!u)},[$,u]),v.useEffect(()=>{$&&(s?$.onEmpty():$.onFilled())},[$,s]);const M=j({},r,$,{isRtl:y}),T=xw(M),O=m?.root||qo,A=Pe({elementType:O,externalSlotProps:b?.root,externalForwardedProps:R,additionalProps:{"aria-invalid":$.error,ref:F},className:T.root,ownerState:M}),L=m?.input||Ii;return f.jsxs(O,j({},A,{children:[u,f.jsx(fw,{sectionListRef:I,elements:o,contentEditable:d,tabIndex:h,className:T.sectionsContainer,onFocus:D,onBlur:$.onBlur,onInput:g,onPaste:w,onKeyDown:C,slots:{root:L,section:gw,sectionContent:yw,sectionSeparator:bw},slotProps:{root:{ownerState:M},sectionContent:{className:$n.sectionContent},sectionSeparator:({position:V})=>({className:V==="before"?$n.sectionBefore:$n.sectionAfter})}}),c,p?p(j({},$)):null,f.jsx(vw,j({name:S,className:T.input,value:i,onChange:a,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:x,required:$.required,disabled:$.disabled},P,{ref:E}))]}))});function Sw(e){return ge("MuiPickersOutlinedInput",e)}const yt=j({},$n,he("MuiPickersOutlinedInput",["root","notchedOutline","input"])),ww=["children","className","label","notched","shrink"],Cw=Y("fieldset",{name:"MuiPickersOutlinedInput",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{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}}),Tl=Y("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),Pw=Y("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!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:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function kw(e){const{className:t,label:n}=e,r=ve(e,ww),o=n!=null&&n!=="",s=j({},e,{withLabel:o});return f.jsx(Cw,j({"aria-hidden":!0,className:t},r,{ownerState:s,children:f.jsx(Pw,{ownerState:s,children:o?f.jsx(Tl,{children:n}):f.jsx(Tl,{className:"notranslate",children:"​"})})}))}const Mw=["label","autoFocus","ownerState","notched"],Tw=Y(qo,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.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 .${yt.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${yt.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${yt.focused} .${yt.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${yt.disabled}`]:{[`& .${yt.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${yt.error} .${yt.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>(e.vars??e).palette[n]?.main??!1).map(n=>({props:{color:n},style:{[`&.${yt.focused}:not(.${yt.error}) .${yt.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),Dw=Y(Ii,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),Rw=e=>{const{classes:t}=e,r=me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Sw,t);return j({},t,r)},Gu=v.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersOutlinedInput"}),{label:o,ownerState:s,notched:i}=r,a=ve(r,Mw),l=ft(),c=j({},r,s,l,{color:l?.color||"primary"}),u=Rw(c);return f.jsx(Ei,j({slots:{root:Tw,input:Dw},renderSuffix:p=>f.jsx(kw,{shrink:!!(i||p.adornedStart||p.focused||p.filled),notched:!!(i||p.adornedStart||p.focused||p.filled),className:u.notchedOutline,label:o!=null&&o!==""&&l?.required?f.jsxs(v.Fragment,{children:[o," ","*"]}):o,ownerState:c})},a,{label:o,classes:u,ref:n}))});Gu.muiName="Input";function Iw(e){return ge("MuiPickersFilledInput",e)}const tn=j({},$n,he("MuiPickersFilledInput",["root","underline","input"])),Ew=["label","autoFocus","disableUnderline","ownerState"],$w=Y(qo,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>He.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)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${tn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${tn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[...Object.keys((e.vars??e).palette).filter(i=>(e.vars??e).palette[i].main).map(i=>({props:{color:i,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[i]?.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"},[`&.${tn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${tn.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(.${tn.disabled}, .${tn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${tn.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:i})=>!!i,style:{paddingLeft:12}},{props:({endAdornment:i})=>!!i,style:{paddingRight:12}}]}}),Ow=Y(Ii,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),Aw=e=>{const{classes:t,disableUnderline:n}=e,o=me({root:["root",!n&&"underline"],input:["input"]},Iw,t);return j({},t,o)},qu=v.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersFilledInput"}),{label:o,disableUnderline:s=!1,ownerState:i}=r,a=ve(r,Ew),l=ft(),c=j({},r,i,l,{color:l?.color||"primary"}),u=Aw(c);return f.jsx(Ei,j({slots:{root:$w,input:Ow},slotProps:{root:{disableUnderline:s}}},a,{label:o,classes:u,ref:n}))});qu.muiName="Input";function Fw(e){return ge("MuiPickersFilledInput",e)}const nr=j({},$n,he("MuiPickersInput",["root","input"])),Lw=["label","autoFocus","disableUnderline","ownerState"],Nw=Y(qo,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({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:{color:r},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}})),{props:{disableUnderline:!1},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"}}}]}}),jw=e=>{const{classes:t,disableUnderline:n}=e,o=me({root:["root",!n&&"underline"],input:["input"]},Fw,t);return j({},t,o)},Ku=v.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersInput"}),{label:o,disableUnderline:s=!1,ownerState:i}=r,a=ve(r,Lw),l=ft(),c=j({},r,i,l,{disableUnderline:s,color:l?.color||"primary"}),u=jw(c);return f.jsx(Ei,j({slots:{root:Nw}},a,{label:o,classes:u,ref:n}))});Ku.muiName="Input";const Bw=["onFocus","onBlur","className","color","disabled","error","variant","required","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"],Vw={standard:Ku,filled:qu,outlined:Gu},zw=Y(Mi,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({maxWidth:"100%"}),_w=e=>{const{focused:t,disabled:n,classes:r,required:o}=e;return me({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},aw,r)},Ww=v.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersTextField"}),{onFocus:o,onBlur:s,className:i,color:a="primary",disabled:l=!1,error:c=!1,variant:u="outlined",required:p=!1,InputProps:m,inputProps:b,inputRef:d,sectionListRef:h,elements:g,areAllSectionsEmpty:w,onClick:C,onKeyDown:S,onKeyUp:x,onPaste:P,onInput:k,endAdornment:I,startAdornment:R,tabIndex:N,contentEditable:F,focused:E,value:y,onChange:$,fullWidth:D,id:M,name:T,helperText:O,FormHelperTextProps:A,label:L,InputLabelProps:V}=r,X=ve(r,Bw),re=v.useRef(null),ae=ke(n,re),ie=xt(M),z=O&&ie?`${ie}-helper-text`:void 0,Z=L&&ie?`${ie}-label`:void 0,Q=j({},r,{color:a,disabled:l,error:c,focused:E,required:p,variant:u}),G=_w(Q),H=Vw[u];return f.jsxs(zw,j({className:de(G.root,i),ref:ae,focused:E,onFocus:o,onBlur:s,disabled:l,variant:u,error:c,color:a,fullWidth:D,required:p,ownerState:Q},X,{children:[f.jsx(ki,j({htmlFor:ie,id:Z},V,{children:L})),f.jsx(H,j({elements:g,areAllSectionsEmpty:w,onClick:C,onKeyDown:S,onKeyUp:x,onInput:k,onPaste:P,endAdornment:I,startAdornment:R,tabIndex:N,contentEditable:F,value:y,onChange:$,id:ie,fullWidth:D,inputProps:b,inputRef:d,sectionListRef:h,label:L,name:T,role:"group","aria-labelledby":Z,"aria-describedby":z,"aria-live":z?"polite":void 0},m)),O&&f.jsx(Ou,j({id:z},A,{children:O}))]}))}),Hw=["enableAccessibleFieldDOMStructure"],Uw=["InputProps","readOnly"],Yw=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],Gw=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=ve(e,Hw);if(t){const{InputProps:p,readOnly:m}=n,b=ve(n,Uw);return j({},b,{InputProps:j({},p??{},{readOnly:m})})}const{onPaste:r,onKeyDown:o,inputMode:s,readOnly:i,InputProps:a,inputProps:l,inputRef:c}=n,u=ve(n,Yw);return j({},u,{InputProps:j({},a??{},{readOnly:i}),inputProps:j({},l??{},{inputMode:s,onPaste:r,onKeyDown:o,ref:c})})},qw=["slots","slotProps","InputProps","inputProps"],Xu=v.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDateField"}),{slots:o,slotProps:s,InputProps:i,inputProps:a}=r,l=ve(r,qw),c=r,u=o?.textField??(t.enableAccessibleFieldDOMStructure?Ww:_u),p=Pe({elementType:u,externalSlotProps:s?.textField,externalForwardedProps:l,additionalProps:{ref:n},ownerState:c});p.inputProps=j({},a,p.inputProps),p.InputProps=j({},i,p.InputProps);const m=iw(p),b=Gw(m),d=nw(j({},b,{slots:o,slotProps:s}));return f.jsx(u,j({},d))}),Qu=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i,timezone:a})=>{const l=gn();return v.useCallback(c=>Fr({adapter:l,value:c,timezone:a,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:s,disablePast:i}})!==null,[l,e,t,n,r,o,s,i,a])},Kw=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return j({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const s=o.newTimezone;if(n.getTimezone(r.currentMonth)===s)return r;let i=n.setTimezone(r.currentMonth,s);return n.getMonth(i)!==n.getMonth(r.currentMonth)&&(i=n.setMonth(i,n.getMonth(r.currentMonth))),j({},r,{currentMonth:i})}case"finishMonthSwitchingAnimation":return j({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const s=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return j({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:s&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:s?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},Xw=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:o,disableSwitchToMonthOnDayFocus:s=!1,maxDate:i,minDate:a,onMonthChange:l,reduceAnimations:c,shouldDisableDate:u,timezone:p}=e,m=Le(),b=v.useRef(Kw(!!c,s,m)).current,d=v.useMemo(()=>Dt.getInitialReferenceValue({value:t,utils:m,timezone:p,props:e,referenceDate:n,granularity:Pt.day}),[n,p]),[h,g]=v.useReducer(b,{isMonthSwitchingAnimating:!1,focusedDay:d,currentMonth:m.startOfMonth(d),slideDirection:"left"});v.useEffect(()=>{g({type:"changeMonthTimezone",newTimezone:m.getTimezone(d)})},[d,m]);const w=v.useCallback(k=>{g(j({type:"changeMonth"},k)),l&&l(k.newMonth)},[l]),C=v.useCallback(k=>{const I=k;m.isSameMonth(I,h.currentMonth)||w({newMonth:m.startOfMonth(I),direction:m.isAfterDay(I,h.currentMonth)?"left":"right"})},[h.currentMonth,w,m]),S=Qu({shouldDisableDate:u,minDate:a,maxDate:i,disableFuture:r,disablePast:o,timezone:p}),x=v.useCallback(()=>{g({type:"finishMonthSwitchingAnimation"})},[]),P=ue((k,I)=>{S(k)||g({type:"changeFocusedDay",focusedDay:k,withoutMonthSwitchingAnimation:I})});return{referenceDate:d,calendarState:h,changeMonth:C,changeFocusedDay:P,isDateDisabled:S,onMonthSwitchingAnimationEnd:x,handleChangeMonth:w}},Qw=e=>ge("MuiPickersFadeTransitionGroup",e);he("MuiPickersFadeTransitionGroup",["root"]);const Zw=e=>{const{classes:t}=e;return me({root:["root"]},Qw,t)},Jw=Y(Lr,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Zu(e){const t=Fe({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=Zw(t),a=mn();return o?n:f.jsx(Jw,{className:de(i.root,r),children:f.jsx(pn,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:a.transitions.duration.enteringScreen,enter:a.transitions.duration.enteringScreen,exit:0},children:n},s)})}function eC(e){return ge("MuiPickersDay",e)}const nn=he("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),tC=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],nC=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:s,outsideCurrentMonth:i,showDaysOutsideCurrentMonth:a,classes:l}=e,c=i&&!a;return me({root:["root",t&&!c&&"selected",s&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",i&&a&&"dayOutsideMonth",c&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},eC,l)},Ju=({theme:e})=>j({},e.typography.caption,{width:kr,height:kr,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})`:He.alpha(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:He.alpha(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${nn.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${nn.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}},[`&.${nn.disabled}:not(.${nn.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${nn.disabled}&.${nn.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${_o}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${nn.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),ed=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},rC=Y(jn,{name:"MuiPickersDay",slot:"Root",overridesResolver:ed})(Ju),oC=Y("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:ed})(({theme:e})=>j({},Ju({theme:e}),{opacity:0,pointerEvents:"none"})),rr=()=>{},sC=v.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:s,day:i,disabled:a=!1,disableHighlightToday:l=!1,disableMargin:c=!1,isAnimating:u,onClick:p,onDaySelect:m,onFocus:b=rr,onBlur:d=rr,onKeyDown:h=rr,onMouseDown:g=rr,onMouseEnter:w=rr,outsideCurrentMonth:C,selected:S=!1,showDaysOutsideCurrentMonth:x=!1,children:P,today:k=!1}=r,I=ve(r,tC),R=j({},r,{autoFocus:o,disabled:a,disableHighlightToday:l,disableMargin:c,selected:S,showDaysOutsideCurrentMonth:x,today:k}),N=nC(R),F=Le(),E=v.useRef(null),y=ke(E,n);Ue(()=>{o&&!a&&!u&&!C&&E.current.focus()},[o,a,u,C]);const $=M=>{g(M),C&&M.preventDefault()},D=M=>{a||m(i),C&&M.currentTarget.focus(),p&&p(M)};return C&&!x?f.jsx(oC,{className:de(N.root,N.hiddenDaySpacingFiller,s),ownerState:R,role:I.role}):f.jsx(rC,j({className:de(N.root,s),ref:y,centerRipple:!0,disabled:a,tabIndex:S?0:-1,onKeyDown:M=>h(M,i),onFocus:M=>b(M,i),onBlur:M=>d(M,i),onMouseEnter:M=>w(M,i),onClick:D,onMouseDown:$},I,{ownerState:R,children:P||F.format(i,"dayOfMonth")}))}),iC=v.memo(sC),aC=e=>ge("MuiPickersSlideTransition",e),ot=he("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),lC=["children","className","reduceAnimations","slideDirection","transKey","classes"],cC=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return me(r,aC,t)},uC=Y(Lr,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${ot["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${ot["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${ot.slideEnterActive}`]:t.slideEnterActive},{[`.${ot.slideExit}`]:t.slideExit},{[`.${ot["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${ot["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},[`& .${ot["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${ot["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${ot.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${ot.slideExit}`]:{transform:"translate(0%)"},[`& .${ot["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${ot["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function dC(e){const t=Fe({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:s}=t,i=ve(t,lC),a=cC(t),l=mn();if(o)return f.jsx("div",{className:de(a.root,r),children:n});const c={exit:a.exit,enterActive:a.enterActive,enter:a.enter,exitActive:a.exitActive};return f.jsx(uC,{className:de(a.root,r),childFactory:u=>v.cloneElement(u,{classNames:c}),role:"presentation",children:f.jsx(li,j({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:c},i,{children:n}),s)})}const pC=e=>ge("MuiDayCalendar",e);he("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const fC=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],hC=["ownerState"],mC=e=>{const{classes:t}=e;return me({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},pC,t)},td=(kr+_o*2)*6,gC=Y("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yC=Y("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),bC=Y(Xt,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.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})),vC=Y(Xt,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),xC=Y(Xt,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>j({},e.typography.caption,{width:kr,height:kr,padding:0,margin:`0 ${_o}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),SC=Y("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:td}),wC=Y(dC,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:td}),CC=Y("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),PC=Y("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${_o}px 0`,display:"flex",justifyContent:"center"});function kC(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:s,currentMonthNumber:i,isViewFocused:a}=e,l=ve(e,fC);const{disabled:c,disableHighlightToday:u,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:m,slots:b,slotProps:d,timezone:h}=t,g=Le(),w=Bo(h),C=r!==null&&g.isSameDay(n,r),S=o.some(y=>g.isSameDay(y,n)),x=g.isSameDay(n,w),P=b?.day??iC,k=Pe({elementType:P,externalSlotProps:d?.day,additionalProps:j({disableHighlightToday:u,showDaysOutsideCurrentMonth:m,role:"gridcell",isAnimating:p,"data-timestamp":g.toJsDate(n).valueOf()},l),ownerState:j({},t,{day:n,selected:S})}),I=ve(k,hC),R=v.useMemo(()=>c||s(n),[c,s,n]),N=v.useMemo(()=>g.getMonth(n)!==i,[g,n,i]),F=v.useMemo(()=>{const y=g.startOfMonth(g.setMonth(n,i));return m?g.isSameDay(n,g.startOfWeek(y)):g.isSameDay(n,y)},[i,n,m,g]),E=v.useMemo(()=>{const y=g.endOfMonth(g.setMonth(n,i));return m?g.isSameDay(n,g.endOfWeek(y)):g.isSameDay(n,y)},[i,n,m,g]);return f.jsx(P,j({},I,{day:n,disabled:R,autoFocus:a&&C,today:x,outsideCurrentMonth:N,isFirstVisibleCell:F,isLastVisibleCell:E,selected:S,tabIndex:C?0:-1,"aria-selected":S,"aria-current":x?"date":void 0}))}function MC(e){const t=Fe({props:e,name:"MuiDayCalendar"}),n=Le(),{onFocusedDayChange:r,className:o,currentMonth:s,selectedDays:i,focusedDay:a,loading:l,onSelectedDaysChange:c,onMonthSwitchingAnimationEnd:u,readOnly:p,reduceAnimations:m,renderLoading:b=()=>f.jsx("span",{children:"..."}),slideDirection:d,TransitionProps:h,disablePast:g,disableFuture:w,minDate:C,maxDate:S,shouldDisableDate:x,shouldDisableMonth:P,shouldDisableYear:k,dayOfWeekFormatter:I=ne=>n.format(ne,"weekdayShort").charAt(0).toUpperCase(),hasFocus:R,onFocusedViewChange:N,gridLabelId:F,displayWeekNumber:E,fixedWeekNumber:y,autoFocus:$,timezone:D}=t,M=Bo(D),T=mC(t),O=vt(),A=Qu({shouldDisableDate:x,shouldDisableMonth:P,shouldDisableYear:k,minDate:C,maxDate:S,disablePast:g,disableFuture:w,timezone:D}),L=jt(),[V,X]=Tt({name:"DayCalendar",state:"hasFocus",controlled:R,default:$??!1}),[re,ae]=v.useState(()=>a||M),ie=ue(ne=>{p||c(ne)}),z=ne=>{A(ne)||(r(ne),ae(ne),N?.(!0),X(!0))},Z=ue((ne,ce)=>{switch(ne.key){case"ArrowUp":z(n.addDays(ce,-7)),ne.preventDefault();break;case"ArrowDown":z(n.addDays(ce,7)),ne.preventDefault();break;case"ArrowLeft":{const se=n.addDays(ce,O?1:-1),fe=n.addMonths(ce,O?1:-1),be=pr({utils:n,date:se,minDate:O?se:n.startOfMonth(fe),maxDate:O?n.endOfMonth(fe):se,isDateDisabled:A,timezone:D});z(be||se),ne.preventDefault();break}case"ArrowRight":{const se=n.addDays(ce,O?-1:1),fe=n.addMonths(ce,O?-1:1),be=pr({utils:n,date:se,minDate:O?n.startOfMonth(fe):se,maxDate:O?se:n.endOfMonth(fe),isDateDisabled:A,timezone:D});z(be||se),ne.preventDefault();break}case"Home":z(n.startOfWeek(ce)),ne.preventDefault();break;case"End":z(n.endOfWeek(ce)),ne.preventDefault();break;case"PageUp":z(n.addMonths(ce,1)),ne.preventDefault();break;case"PageDown":z(n.addMonths(ce,-1)),ne.preventDefault();break}}),Q=ue((ne,ce)=>z(ce)),G=ue((ne,ce)=>{V&&n.isSameDay(re,ce)&&N?.(!1)}),H=n.getMonth(s),q=n.getYear(s),te=v.useMemo(()=>i.filter(ne=>!!ne).map(ne=>n.startOfDay(ne)),[n,i]),J=`${q}-${H}`,B=v.useMemo(()=>v.createRef(),[J]),K=v.useMemo(()=>{const ne=n.startOfMonth(s),ce=n.endOfMonth(s);return A(re)||n.isAfterDay(re,ce)||n.isBeforeDay(re,ne)?pr({utils:n,date:re,minDate:ne,maxDate:ce,disablePast:g,disableFuture:w,isDateDisabled:A,timezone:D}):re},[s,w,g,re,A,n,D]),oe=v.useMemo(()=>{const ne=n.getWeekArray(s);let ce=n.addMonths(s,1);for(;y&&ne.length<y;){const se=n.getWeekArray(ce),fe=n.isSameDay(ne[ne.length-1][0],se[0][0]);se.slice(fe?1:0).forEach(be=>{ne.length<y&&ne.push(be)}),ce=n.addMonths(ce,1)}return ne},[s,y,n]);return f.jsxs(gC,{role:"grid","aria-labelledby":F,className:T.root,children:[f.jsxs(yC,{role:"row",className:T.header,children:[E&&f.jsx(vC,{variant:"caption",role:"columnheader","aria-label":L.calendarWeekNumberHeaderLabel,className:T.weekNumberLabel,children:L.calendarWeekNumberHeaderText}),Bg(n,M).map((ne,ce)=>f.jsx(bC,{variant:"caption",role:"columnheader","aria-label":n.format(ne,"weekday"),className:T.weekDayLabel,children:I(ne)},ce.toString()))]}),l?f.jsx(SC,{className:T.loadingContainer,children:b()}):f.jsx(wC,j({transKey:J,onExited:u,reduceAnimations:m,slideDirection:d,className:de(o,T.slideTransition)},h,{nodeRef:B,children:f.jsx(CC,{ref:B,role:"rowgroup",className:T.monthContainer,children:oe.map((ne,ce)=>f.jsxs(PC,{role:"row",className:T.weekContainer,"aria-rowindex":ce+1,children:[E&&f.jsx(xC,{className:T.weekNumber,role:"rowheader","aria-label":L.calendarWeekNumberAriaLabelText(n.getWeekNumber(ne[0])),children:L.calendarWeekNumberText(n.getWeekNumber(ne[0]))}),ne.map((se,fe)=>f.jsx(kC,{parentProps:t,day:se,selectedDays:te,focusableDay:K,onKeyDown:Z,onFocus:Q,onBlur:G,onDaySelect:ie,isDateDisabled:A,currentMonthNumber:H,isViewFocused:V,"aria-colindex":fe+1},se.toString()))]},`week-${ne[0]}`))})}))]})}function TC(e){return ge("MuiPickersMonth",e)}const qr=he("MuiPickersMonth",["root","monthButton","disabled","selected"]),DC=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],RC=e=>{const{disabled:t,selected:n,classes:r}=e;return me({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},TC,r)},IC=Y("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),EC=Y("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${qr.disabled}`]:t.disabled},{[`&.${qr.selected}`]:t.selected}]})(({theme:e})=>j({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:He.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:He.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${qr.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${qr.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),$C=v.memo(function(t){const n=Fe({props:t,name:"MuiPickersMonth"}),{autoFocus:r,className:o,children:s,disabled:i,selected:a,value:l,tabIndex:c,onClick:u,onKeyDown:p,onFocus:m,onBlur:b,"aria-current":d,"aria-label":h,slots:g,slotProps:w}=n,C=ve(n,DC),S=v.useRef(null),x=RC(n);Ue(()=>{r&&S.current?.focus()},[r]);const P=g?.monthButton??EC,k=Pe({elementType:P,externalSlotProps:w?.monthButton,additionalProps:{children:s,disabled:i,tabIndex:c,ref:S,type:"button",role:"radio","aria-current":d,"aria-checked":a,"aria-label":h,onClick:I=>u(I,l),onKeyDown:I=>p(I,l),onFocus:I=>m(I,l),onBlur:I=>b(I,l)},ownerState:n,className:x.monthButton});return f.jsx(IC,j({className:de(x.root,o),ownerState:n},C,{children:f.jsx(P,j({},k))}))});function OC(e){return ge("MuiMonthCalendar",e)}he("MuiMonthCalendar",["root"]);const AC=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],FC=e=>{const{classes:t}=e;return me({root:["root"]},OC,t)};function LC(e,t){const n=Le(),r=Ar(),o=Fe({props:e,name:t});return j({disableFuture:!1,disablePast:!1},o,{minDate:lt(n,o.minDate,r.minDate),maxDate:lt(n,o.maxDate,r.maxDate)})}const NC=Y("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Wo,boxSizing:"border-box"}),jC=v.forwardRef(function(t,n){const r=LC(t,"MuiMonthCalendar"),{className:o,value:s,defaultValue:i,referenceDate:a,disabled:l,disableFuture:c,disablePast:u,maxDate:p,minDate:m,onChange:b,shouldDisableMonth:d,readOnly:h,autoFocus:g=!1,onMonthFocus:w,hasFocus:C,onFocusedViewChange:S,monthsPerRow:x=3,timezone:P,gridLabelId:k,slots:I,slotProps:R}=r,N=ve(r,AC),{value:F,handleValueChange:E,timezone:y}=vi({name:"MonthCalendar",timezone:P,value:s,defaultValue:i,referenceDate:a,onChange:b,valueManager:Dt}),$=Bo(y),D=vt(),M=Le(),T=v.useMemo(()=>Dt.getInitialReferenceValue({value:F,utils:M,props:r,timezone:y,referenceDate:a,granularity:Pt.month}),[]),O=r,A=FC(O),L=v.useMemo(()=>M.getMonth($),[M,$]),V=v.useMemo(()=>F!=null?M.getMonth(F):null,[F,M]),[X,re]=v.useState(()=>V||M.getMonth(T)),[ae,ie]=Tt({name:"MonthCalendar",state:"hasFocus",controlled:C,default:g??!1}),z=ue(J=>{ie(J),S&&S(J)}),Z=v.useCallback(J=>{const B=M.startOfMonth(u&&M.isAfter($,m)?$:m),K=M.startOfMonth(c&&M.isBefore($,p)?$:p),oe=M.startOfMonth(J);return M.isBefore(oe,B)||M.isAfter(oe,K)?!0:d?d(oe):!1},[c,u,p,m,$,d,M]),Q=ue((J,B)=>{if(h)return;const K=M.setMonth(F??T,B);E(K)}),G=ue(J=>{Z(M.setMonth(F??T,J))||(re(J),z(!0),w&&w(J))});v.useEffect(()=>{re(J=>V!==null&&J!==V?V:J)},[V]);const H=ue((J,B)=>{switch(J.key){case"ArrowUp":G((12+B-3)%12),J.preventDefault();break;case"ArrowDown":G((12+B+3)%12),J.preventDefault();break;case"ArrowLeft":G((12+B+(D?1:-1))%12),J.preventDefault();break;case"ArrowRight":G((12+B+(D?-1:1))%12),J.preventDefault();break}}),q=ue((J,B)=>{G(B)}),te=ue((J,B)=>{X===B&&z(!1)});return f.jsx(NC,j({ref:n,className:de(A.root,o),ownerState:O,role:"radiogroup","aria-labelledby":k},N,{children:ri(M,F??T).map(J=>{const B=M.getMonth(J),K=M.format(J,"monthShort"),oe=M.format(J,"month"),ne=B===V,ce=l||Z(J);return f.jsx($C,{selected:ne,value:B,onClick:Q,onKeyDown:H,autoFocus:ae&&B===X,disabled:ce,tabIndex:B===X&&!ce?0:-1,onFocus:q,onBlur:te,"aria-current":L===B?"date":void 0,"aria-label":oe,monthsPerRow:x,slots:I,slotProps:R,children:K},K)})}))});function BC(e){return ge("MuiPickersYear",e)}const Kr=he("MuiPickersYear",["root","yearButton","selected","disabled"]),VC=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],zC=e=>{const{disabled:t,selected:n,classes:r}=e;return me({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},BC,r)},_C=Y("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),WC=Y("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Kr.disabled}`]:t.disabled},{[`&.${Kr.selected}`]:t.selected}]})(({theme:e})=>j({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:He.alpha(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:He.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Kr.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Kr.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),HC=v.memo(function(t){const n=Fe({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:s,disabled:i,selected:a,value:l,tabIndex:c,onClick:u,onKeyDown:p,onFocus:m,onBlur:b,"aria-current":d,slots:h,slotProps:g}=n,w=ve(n,VC),C=v.useRef(null),S=zC(n);Ue(()=>{r&&C.current?.focus()},[r]);const x=h?.yearButton??WC,P=Pe({elementType:x,externalSlotProps:g?.yearButton,additionalProps:{children:s,disabled:i,tabIndex:c,ref:C,type:"button",role:"radio","aria-current":d,"aria-checked":a,onClick:k=>u(k,l),onKeyDown:k=>p(k,l),onFocus:k=>m(k,l),onBlur:k=>b(k,l)},ownerState:n,className:S.yearButton});return f.jsx(_C,j({className:de(S.root,o),ownerState:n},w,{children:f.jsx(x,j({},P))}))});function UC(e){return ge("MuiYearCalendar",e)}he("MuiYearCalendar",["root"]);const YC=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],GC=e=>{const{classes:t}=e;return me({root:["root"]},UC,t)};function qC(e,t){const n=Le(),r=Ar(),o=Fe({props:e,name:t});return j({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:lt(n,o.minDate,r.minDate),maxDate:lt(n,o.maxDate,r.maxDate)})}const KC=Y("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Wo,maxHeight:Yx,boxSizing:"border-box",position:"relative"}),XC=v.forwardRef(function(t,n){const r=qC(t,"MuiYearCalendar"),{autoFocus:o,className:s,value:i,defaultValue:a,referenceDate:l,disabled:c,disableFuture:u,disablePast:p,maxDate:m,minDate:b,onChange:d,readOnly:h,shouldDisableYear:g,onYearFocus:w,hasFocus:C,onFocusedViewChange:S,yearsOrder:x="asc",yearsPerRow:P,timezone:k,gridLabelId:I,slots:R,slotProps:N}=r,F=ve(r,YC),{value:E,handleValueChange:y,timezone:$}=vi({name:"YearCalendar",timezone:k,value:i,defaultValue:a,referenceDate:l,onChange:d,valueManager:Dt}),D=Bo($),M=vt(),T=Le(),O=v.useMemo(()=>Dt.getInitialReferenceValue({value:E,utils:T,props:r,timezone:$,referenceDate:l,granularity:Pt.year}),[]),A=r,L=GC(A),V=v.useMemo(()=>T.getYear(D),[T,D]),X=v.useMemo(()=>E!=null?T.getYear(E):null,[E,T]),[re,ae]=v.useState(()=>X||T.getYear(O)),[ie,z]=Tt({name:"YearCalendar",state:"hasFocus",controlled:C,default:o??!1}),Z=ue(se=>{z(se),S&&S(se)}),Q=v.useCallback(se=>{if(p&&T.isBeforeYear(se,D)||u&&T.isAfterYear(se,D)||b&&T.isBeforeYear(se,b)||m&&T.isAfterYear(se,m))return!0;if(!g)return!1;const fe=T.startOfYear(se);return g(fe)},[u,p,m,b,D,g,T]),G=ue((se,fe)=>{if(h)return;const be=T.setYear(E??O,fe);y(be)}),H=ue(se=>{Q(T.setYear(E??O,se))||(ae(se),Z(!0),w?.(se))});v.useEffect(()=>{ae(se=>X!==null&&se!==X?X:se)},[X]);const q=x!=="desc"?P*1:P*-1,te=M&&x==="asc"||!M&&x==="desc"?-1:1,J=ue((se,fe)=>{switch(se.key){case"ArrowUp":H(fe-q),se.preventDefault();break;case"ArrowDown":H(fe+q),se.preventDefault();break;case"ArrowLeft":H(fe-te),se.preventDefault();break;case"ArrowRight":H(fe+te),se.preventDefault();break}}),B=ue((se,fe)=>{H(fe)}),K=ue((se,fe)=>{re===fe&&Z(!1)}),oe=v.useRef(null),ne=ke(n,oe);v.useEffect(()=>{if(o||oe.current===null)return;const se=oe.current.querySelector('[tabindex="0"]');if(!se)return;const fe=se.offsetHeight,be=se.offsetTop,we=oe.current.clientHeight,pe=oe.current.scrollTop,qe=be+fe;fe>we||be<pe||(oe.current.scrollTop=qe-we/2-fe/2)},[o]);const ce=T.getYearRange([b,m]);return x==="desc"&&ce.reverse(),f.jsx(KC,j({ref:ne,className:de(L.root,s),ownerState:A,role:"radiogroup","aria-labelledby":I},F,{children:ce.map(se=>{const fe=T.getYear(se),be=fe===X,we=c||Q(se);return f.jsx(HC,{selected:be,value:fe,onClick:G,onKeyDown:J,autoFocus:ie&&fe===re,disabled:we,tabIndex:fe===re&&!we?0:-1,onFocus:B,onBlur:K,"aria-current":V===fe?"date":void 0,yearsPerRow:P,slots:R,slotProps:N,children:T.format(se,"year")},T.format(se,"year"))})}))}),QC=e=>ge("MuiPickersCalendarHeader",e),ZC=he("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function JC(e){return ge("MuiPickersArrowSwitcher",e)}he("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const e1=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],t1=["ownerState"],n1=["ownerState"],r1=Y("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),o1=Y("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Dl=Y(Nr,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),s1=e=>{const{classes:t}=e;return me({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},JC,t)},i1=v.forwardRef(function(t,n){const r=vt(),o=Fe({props:t,name:"MuiPickersArrowSwitcher"}),{children:s,className:i,slots:a,slotProps:l,isNextDisabled:c,isNextHidden:u,onGoToNext:p,nextLabel:m,isPreviousDisabled:b,isPreviousHidden:d,onGoToPrevious:h,previousLabel:g,labelId:w}=o,C=ve(o,e1),S=o,x=s1(S),P={isDisabled:c,isHidden:u,goTo:p,label:m},k={isDisabled:b,isHidden:d,goTo:h,label:g},I=a?.previousIconButton??Dl,R=Pe({elementType:I,externalSlotProps:l?.previousIconButton,additionalProps:{size:"medium",title:k.label,"aria-label":k.label,disabled:k.isDisabled,edge:"end",onClick:k.goTo},ownerState:j({},S,{hidden:k.isHidden}),className:de(x.button,x.previousIconButton)}),N=a?.nextIconButton??Dl,F=Pe({elementType:N,externalSlotProps:l?.nextIconButton,additionalProps:{size:"medium",title:P.label,"aria-label":P.label,disabled:P.isDisabled,edge:"start",onClick:P.goTo},ownerState:j({},S,{hidden:P.isHidden}),className:de(x.button,x.nextIconButton)}),E=a?.leftArrowIcon??l0,y=Pe({elementType:E,externalSlotProps:l?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:S,className:x.leftArrowIcon}),$=ve(y,t1),D=a?.rightArrowIcon??c0,M=Pe({elementType:D,externalSlotProps:l?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:S,className:x.rightArrowIcon}),T=ve(M,n1);return f.jsxs(r1,j({ref:n,className:de(x.root,i),ownerState:S},C,{children:[f.jsx(I,j({},R,{children:r?f.jsx(D,j({},T)):f.jsx(E,j({},$))})),s?f.jsx(Xt,{variant:"subtitle1",component:"span",id:w,children:s}):f.jsx(o1,{className:x.spacer,ownerState:S}),f.jsx(N,j({},F,{children:r?f.jsx(E,j({},$)):f.jsx(D,j({},T))}))]}))});function a1(e,{disableFuture:t,maxDate:n,timezone:r}){const o=Le();return v.useMemo(()=>{const s=o.date(void 0,r),i=o.startOfMonth(t&&o.isBefore(s,n)?s:n);return!o.isAfter(i,e)},[t,n,e,o,r])}function l1(e,{disablePast:t,minDate:n,timezone:r}){const o=Le();return v.useMemo(()=>{const s=o.date(void 0,r),i=o.startOfMonth(t&&o.isAfter(s,n)?s:n);return!o.isBefore(i,e)},[t,n,e,o,r])}const c1=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],u1=["ownerState"],d1=e=>{const{classes:t}=e;return me({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},QC,t)},p1=Y("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),f1=Y("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>j({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),h1=Y("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),m1=Y(Nr,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${ZC.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),g1=Y(a0,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),y1=v.forwardRef(function(t,n){const r=jt(),o=Le(),s=Fe({props:t,name:"MuiPickersCalendarHeader"}),{slots:i,slotProps:a,currentMonth:l,disabled:c,disableFuture:u,disablePast:p,maxDate:m,minDate:b,onMonthChange:d,onViewChange:h,view:g,reduceAnimations:w,views:C,labelId:S,className:x,timezone:P,format:k=`${o.formats.month} ${o.formats.year}`}=s,I=ve(s,c1),R=s,N=d1(s),F=i?.switchViewButton??m1,E=Pe({elementType:F,externalSlotProps:a?.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(g)},ownerState:R,className:N.switchViewButton}),y=i?.switchViewIcon??g1,$=Pe({elementType:y,externalSlotProps:a?.switchViewIcon,ownerState:R,className:N.switchViewIcon}),D=ve($,u1),M=()=>d(o.addMonths(l,1),"left"),T=()=>d(o.addMonths(l,-1),"right"),O=a1(l,{disableFuture:u,maxDate:m,timezone:P}),A=l1(l,{disablePast:p,minDate:b,timezone:P}),L=()=>{if(!(C.length===1||!h||c))if(C.length===2)h(C.find(X=>X!==g)||C[0]);else{const X=C.indexOf(g)!==0?0:1;h(C[X])}};if(C.length===1&&C[0]==="year")return null;const V=o.formatByString(l,k);return f.jsxs(p1,j({},I,{ownerState:R,className:de(N.root,x),ref:n,children:[f.jsxs(f1,{role:"presentation",onClick:L,ownerState:R,"aria-live":"polite",className:N.labelContainer,children:[f.jsx(Zu,{reduceAnimations:w,transKey:V,children:f.jsx(h1,{id:S,ownerState:R,className:N.label,children:V})}),C.length>1&&!c&&f.jsx(F,j({},E,{children:f.jsx(y,j({},D))}))]}),f.jsx(pn,{in:g==="day",appear:!w,enter:!w,children:f.jsx(i1,{slots:i,slotProps:a,onGoToPrevious:T,isPreviousDisabled:A,previousLabel:r.previousMonth,onGoToNext:M,isNextDisabled:O,nextLabel:r.nextMonth})})]}))}),b1=Y("div")({overflow:"hidden",width:Wo,maxHeight:xi,display:"flex",flexDirection:"column",margin:"0 auto"}),v1=e=>ge("MuiDateCalendar",e);he("MuiDateCalendar",["root","viewTransitionContainer"]);const x1=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],S1=e=>{const{classes:t}=e;return me({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},v1,t)};function w1(e,t){const n=Le(),r=Ar(),o=Cu(),s=Fe({props:e,name:t});return j({},s,{loading:s.loading??!1,disablePast:s.disablePast??!1,disableFuture:s.disableFuture??!1,openTo:s.openTo??"day",views:s.views??["year","day"],reduceAnimations:s.reduceAnimations??o,renderLoading:s.renderLoading??(()=>f.jsx("span",{children:"..."})),minDate:lt(n,s.minDate,r.minDate),maxDate:lt(n,s.maxDate,r.maxDate)})}const C1=Y(b1,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:xi}),P1=Y(Zu,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),k1=v.forwardRef(function(t,n){const r=Le(),o=xt(),s=w1(t,"MuiDateCalendar"),{autoFocus:i,onViewChange:a,value:l,defaultValue:c,referenceDate:u,disableFuture:p,disablePast:m,onChange:b,onYearChange:d,onMonthChange:h,reduceAnimations:g,shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:S,view:x,views:P,openTo:k,className:I,disabled:R,readOnly:N,minDate:F,maxDate:E,disableHighlightToday:y,focusedView:$,onFocusedViewChange:D,showDaysOutsideCurrentMonth:M,fixedWeekNumber:T,dayOfWeekFormatter:O,slots:A,slotProps:L,loading:V,renderLoading:X,displayWeekNumber:re,yearsOrder:ae,yearsPerRow:ie,monthsPerRow:z,timezone:Z}=s,Q=ve(s,x1),{value:G,handleValueChange:H,timezone:q}=vi({name:"DateCalendar",timezone:Z,value:l,defaultValue:c,referenceDate:u,onChange:b,valueManager:Dt}),{view:te,setView:J,focusedView:B,setFocusedView:K,goToNextView:oe,setValueAndGoToNextView:ne}=Pu({view:x,views:P,openTo:k,onChange:H,onViewChange:a,autoFocus:i,focusedView:$,onFocusedViewChange:D}),{referenceDate:ce,calendarState:se,changeFocusedDay:fe,changeMonth:be,handleChangeMonth:we,isDateDisabled:pe,onMonthSwitchingAnimationEnd:qe}=Xw({value:G,referenceDate:u,reduceAnimations:g,onMonthChange:h,minDate:F,maxDate:E,shouldDisableDate:w,disablePast:m,disableFuture:p,timezone:q}),Be=R&&G||F,ht=R&&G||E,mt=`${o}-grid-label`,nt=B!==null,rt=A?.calendarHeader??y1,Bt=Pe({elementType:rt,externalSlotProps:L?.calendarHeader,additionalProps:{views:P,view:te,currentMonth:se.currentMonth,onViewChange:J,onMonthChange:(Ae,wt)=>we({newMonth:Ae,direction:wt}),minDate:Be,maxDate:ht,disabled:R,disablePast:m,disableFuture:p,reduceAnimations:g,timezone:q,labelId:mt},ownerState:s}),gt=ue(Ae=>{const wt=r.startOfMonth(Ae),qn=r.endOfMonth(Ae),Wt=pe(Ae)?pr({utils:r,date:Ae,minDate:r.isBefore(F,wt)?wt:F,maxDate:r.isAfter(E,qn)?qn:E,disablePast:m,disableFuture:p,isDateDisabled:pe,timezone:q}):Ae;Wt?(ne(Wt,"finish"),h?.(wt)):(oe(),be(wt)),fe(Wt,!0)}),Oe=ue(Ae=>{const wt=r.startOfYear(Ae),qn=r.endOfYear(Ae),Wt=pe(Ae)?pr({utils:r,date:Ae,minDate:r.isBefore(F,wt)?wt:F,maxDate:r.isAfter(E,qn)?qn:E,disablePast:m,disableFuture:p,isDateDisabled:pe,timezone:q}):Ae;Wt?(ne(Wt,"finish"),d?.(Wt)):(oe(),be(wt)),fe(Wt,!0)}),Vt=ue(Ae=>H(Ae&&go(r,Ae,G??ce),"finish",te));v.useEffect(()=>{G!=null&&r.isValid(G)&&be(G)},[G]);const zt=s,Gn=S1(zt),ye={disablePast:m,disableFuture:p,maxDate:E,minDate:F},Me={disableHighlightToday:y,readOnly:N,disabled:R,timezone:q,gridLabelId:mt,slots:A,slotProps:L},_e=v.useRef(te);v.useEffect(()=>{_e.current!==te&&(B===_e.current&&K(te,!0),_e.current=te)},[B,K,te]);const _t=v.useMemo(()=>[G],[G]);return f.jsxs(C1,j({ref:n,className:de(Gn.root,I),ownerState:zt},Q,{children:[f.jsx(rt,j({},Bt,{slots:A,slotProps:L})),f.jsx(P1,{reduceAnimations:g,className:Gn.viewTransitionContainer,transKey:te,ownerState:zt,children:f.jsxs("div",{children:[te==="year"&&f.jsx(XC,j({},ye,Me,{value:G,onChange:Oe,shouldDisableYear:S,hasFocus:nt,onFocusedViewChange:Ae=>K("year",Ae),yearsOrder:ae,yearsPerRow:ie,referenceDate:ce})),te==="month"&&f.jsx(jC,j({},ye,Me,{hasFocus:nt,className:I,value:G,onChange:gt,shouldDisableMonth:C,onFocusedViewChange:Ae=>K("month",Ae),monthsPerRow:z,referenceDate:ce})),te==="day"&&f.jsx(MC,j({},se,ye,Me,{onMonthSwitchingAnimationEnd:qe,onFocusedDayChange:fe,reduceAnimations:g,selectedDays:_t,onSelectedDaysChange:Vt,shouldDisableDate:w,shouldDisableMonth:C,shouldDisableYear:S,hasFocus:nt,onFocusedViewChange:Ae=>K("day",Ae),showDaysOutsideCurrentMonth:M,fixedWeekNumber:T,dayOfWeekFormatter:O,displayWeekNumber:re,loading:V,renderLoading:X}))]})})]}))}),On=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:p,disablePast:m,minDate:b,maxDate:d,shouldDisableDate:h,shouldDisableMonth:g,shouldDisableYear:w,reduceAnimations:C,onMonthChange:S,monthsPerRow:x,onYearChange:P,yearsOrder:k,yearsPerRow:I,slots:R,slotProps:N,loading:F,renderLoading:E,disableHighlightToday:y,readOnly:$,disabled:D,showDaysOutsideCurrentMonth:M,dayOfWeekFormatter:T,sx:O,autoFocus:A,fixedWeekNumber:L,displayWeekNumber:V,timezone:X})=>f.jsx(k1,{view:e,onViewChange:t,views:n.filter(Na),focusedView:r&&Na(r)?r:null,onFocusedViewChange:o,value:s,defaultValue:i,referenceDate:a,onChange:l,className:c,classes:u,disableFuture:p,disablePast:m,minDate:b,maxDate:d,shouldDisableDate:h,shouldDisableMonth:g,shouldDisableYear:w,reduceAnimations:C,onMonthChange:S,monthsPerRow:x,onYearChange:P,yearsOrder:k,yearsPerRow:I,slots:R,slotProps:N,loading:F,renderLoading:E,disableHighlightToday:y,readOnly:$,disabled:D,showDaysOutsideCurrentMonth:M,dayOfWeekFormatter:T,sx:O,autoFocus:A,fixedWeekNumber:L,displayWeekNumber:V,timezone:X}),nd=v.forwardRef(function(t,n){const r=jt(),o=Le(),s=ou(t,"MuiDesktopDatePicker"),i=j({day:On,month:On,year:On},s.viewRenderers),a=j({},s,{viewRenderers:i,format:oi(o,s,!1),yearsPerRow:s.yearsPerRow??4,slots:j({openPickerIcon:u0,field:Xu},s.slots),slotProps:j({},s.slotProps,{field:c=>j({},No(s.slotProps?.field,c),iu(s),{ref:n}),toolbar:j({hidden:!0},s.slotProps?.toolbar)})}),{renderPicker:l}=i0({props:a,valueManager:Dt,valueType:"date",getOpenDialogAriaText:nu({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:Fr});return l()});nd.propTypes={autoFocus:_.bool,className:_.string,closeOnSelect:_.bool,dayOfWeekFormatter:_.func,defaultValue:_.object,disabled:_.bool,disableFuture:_.bool,disableHighlightToday:_.bool,disableOpenPicker:_.bool,disablePast:_.bool,displayWeekNumber:_.bool,enableAccessibleFieldDOMStructure:_.any,fixedWeekNumber:_.number,format:_.string,formatDensity:_.oneOf(["dense","spacious"]),inputRef:Uc,label:_.node,loading:_.bool,localeText:_.object,maxDate:_.object,minDate:_.object,monthsPerRow:_.oneOf([3,4]),name:_.string,onAccept:_.func,onChange:_.func,onClose:_.func,onError:_.func,onMonthChange:_.func,onOpen:_.func,onSelectedSectionsChange:_.func,onViewChange:_.func,onYearChange:_.func,open:_.bool,openTo:_.oneOf(["day","month","year"]),orientation:_.oneOf(["landscape","portrait"]),readOnly:_.bool,reduceAnimations:_.bool,referenceDate:_.object,renderLoading:_.func,selectedSections:_.oneOfType([_.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),_.number]),shouldDisableDate:_.func,shouldDisableMonth:_.func,shouldDisableYear:_.func,showDaysOutsideCurrentMonth:_.bool,slotProps:_.object,slots:_.object,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),timezone:_.string,value:_.object,view:_.oneOf(["day","month","year"]),viewRenderers:_.shape({day:_.func,month:_.func,year:_.func}),views:_.arrayOf(_.oneOf(["day","month","year"]).isRequired),yearsOrder:_.oneOf(["asc","desc"]),yearsPerRow:_.oneOf([3,4])};function M1(e){return ge("MuiDialogContent",e)}he("MuiDialogContent",["root","dividers"]);const T1=he("MuiDialogTitle",["root"]),D1=e=>{const{classes:t,dividers:n}=e;return me({root:["root",n&&"dividers"]},M1,t)},R1=Y("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Ee(({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:{[`.${T1.root} + &`]:{paddingTop:0}}}]}))),I1=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...i}=r,a={...r,dividers:s},l=D1(a);return f.jsx(R1,{className:de(l.root,o),ownerState:a,ref:n,...i})});function E1(e){return ge("MuiDialog",e)}const yr=he("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),$1=v.createContext({}),O1=Y(Fu,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),A1=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,i={root:["root"],container:["container",`scroll${le(n)}`],paper:["paper",`paperScroll${le(n)}`,`paperWidth${le(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return me(i,E1,t)},F1=Y(Lu,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),L1=Y("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${le(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"}}}]}),N1=Y(jr,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${le(n.scroll)}`],t[`paperWidth${le(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Ee(({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)`,[`&.${yr.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{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}`,[`&.${yr.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{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,[`&.${yr.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),j1=v.forwardRef(function(t,n){const r=Ce({props:t,name:"MuiDialog"}),o=mn(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":a,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:p,className:m,disableEscapeKeyDown:b=!1,fullScreen:d=!1,fullWidth:h=!1,maxWidth:g="sm",onClick:w,onClose:C,open:S,PaperComponent:x=jr,PaperProps:P={},scroll:k="paper",slots:I={},slotProps:R={},TransitionComponent:N=pn,transitionDuration:F=s,TransitionProps:E,...y}=r,$={...r,disableEscapeKeyDown:b,fullScreen:d,fullWidth:h,maxWidth:g,scroll:k},D=A1($),M=v.useRef(),T=B=>{M.current=B.target===B.currentTarget},O=B=>{w&&w(B),M.current&&(M.current=null,C&&C(B,"backdropClick"))},A=xt(a),L=v.useMemo(()=>({titleId:A}),[A]),V={transition:N,...I},X={transition:E,paper:P,backdrop:u,...R},re={slots:V,slotProps:X},[ae,ie]=je("root",{elementType:F1,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:$,className:de(D.root,m),ref:n}),[z,Z]=je("backdrop",{elementType:O1,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:$}),[Q,G]=je("paper",{elementType:N1,shouldForwardComponentProp:!0,externalForwardedProps:re,ownerState:$,className:de(D.paper,P.className)}),[H,q]=je("container",{elementType:L1,externalForwardedProps:re,ownerState:$,className:D.container}),[te,J]=je("transition",{elementType:pn,externalForwardedProps:re,ownerState:$,additionalProps:{appear:!0,in:S,timeout:F,role:"presentation"}});return f.jsx(ae,{closeAfterTransition:!0,slots:{backdrop:z},slotProps:{backdrop:{transitionDuration:F,as:c,...Z}},disableEscapeKeyDown:b,onClose:C,open:S,onClick:O,...ie,...y,children:f.jsx(te,{...J,children:f.jsx(H,{onMouseDown:T,...q,children:f.jsx(Q,{as:x,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":A,"aria-modal":l,...G,children:f.jsx($1.Provider,{value:L,children:p})})})})})}),B1=Y(j1)({[`& .${yr.container}`]:{outline:0},[`& .${yr.paper}`]:{outline:0,minWidth:Wo}}),V1=Y(I1)({"&:first-of-type":{padding:0}});function z1(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:s}=e,i=o?.dialog??B1,a=o?.mobileTransition??pn;return f.jsx(i,j({open:r,onClose:n},s?.dialog,{TransitionComponent:a,TransitionProps:s?.mobileTransition,PaperComponent:o?.mobilePaper,PaperProps:s?.mobilePaper,children:f.jsx(V1,{children:t})}))}const _1=["props","getOpenDialogAriaText"],W1=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=ve(e,_1);const{slots:o,slotProps:s,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:p,onSelectedSectionsChange:m,timezone:b,name:d,label:h,inputRef:g,readOnly:w,disabled:C,localeText:S}=t,x=v.useRef(null),P=xt(),k=s?.toolbar?.hidden??!1,{open:I,actions:R,layoutProps:N,renderCurrentView:F,fieldProps:E,contextValue:y}=ku(j({},r,{props:t,fieldRef:x,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),$=o.field,D=Pe({elementType:$,externalSlotProps:s?.field,additionalProps:j({},E,k&&{id:P},!(C||w)&&{onClick:R.onOpen,onKeyDown:Yv(R.onOpen)},{readOnly:w??!0,disabled:C,className:i,sx:a,format:l,formatDensity:c,enableAccessibleFieldDOMStructure:u,selectedSections:p,onSelectedSectionsChange:m,timezone:b,label:h,name:d},g?{inputRef:g}:{}),ownerState:t});D.inputProps=j({},D.inputProps,{"aria-label":n(E.value)});const M=j({textField:o.textField},D.slots),T=o.layout??Eu;let O=P;k&&(h?O=`${P}-label`:O=void 0);const A=j({},s,{toolbar:j({},s?.toolbar,{titleId:P}),mobilePaper:j({"aria-labelledby":O},s?.mobilePaper)}),L=ke(x,D.unstableFieldRef);return{renderPicker:()=>f.jsxs($u,{contextValue:y,localeText:S,children:[f.jsx($,j({},D,{slots:M,slotProps:A,unstableFieldRef:L})),f.jsx(z1,j({},R,{open:I,slots:o,slotProps:A,children:f.jsx(T,j({},N,A?.layout,{slots:o,slotProps:A,children:F()}))}))]})}},rd=v.forwardRef(function(t,n){const r=jt(),o=Le(),s=ou(t,"MuiMobileDatePicker"),i=j({day:On,month:On,year:On},s.viewRenderers),a=j({},s,{viewRenderers:i,format:oi(o,s,!1),slots:j({field:Xu},s.slots),slotProps:j({},s.slotProps,{field:c=>j({},No(s.slotProps?.field,c),iu(s),{ref:n}),toolbar:j({hidden:!1},s.slotProps?.toolbar)})}),{renderPicker:l}=W1({props:a,valueManager:Dt,valueType:"date",getOpenDialogAriaText:nu({utils:o,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:a.localeText?.openDatePickerDialogue}),validator:Fr});return l()});rd.propTypes={autoFocus:_.bool,className:_.string,closeOnSelect:_.bool,dayOfWeekFormatter:_.func,defaultValue:_.object,disabled:_.bool,disableFuture:_.bool,disableHighlightToday:_.bool,disableOpenPicker:_.bool,disablePast:_.bool,displayWeekNumber:_.bool,enableAccessibleFieldDOMStructure:_.any,fixedWeekNumber:_.number,format:_.string,formatDensity:_.oneOf(["dense","spacious"]),inputRef:Uc,label:_.node,loading:_.bool,localeText:_.object,maxDate:_.object,minDate:_.object,monthsPerRow:_.oneOf([3,4]),name:_.string,onAccept:_.func,onChange:_.func,onClose:_.func,onError:_.func,onMonthChange:_.func,onOpen:_.func,onSelectedSectionsChange:_.func,onViewChange:_.func,onYearChange:_.func,open:_.bool,openTo:_.oneOf(["day","month","year"]),orientation:_.oneOf(["landscape","portrait"]),readOnly:_.bool,reduceAnimations:_.bool,referenceDate:_.object,renderLoading:_.func,selectedSections:_.oneOfType([_.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),_.number]),shouldDisableDate:_.func,shouldDisableMonth:_.func,shouldDisableYear:_.func,showDaysOutsideCurrentMonth:_.bool,slotProps:_.object,slots:_.object,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),timezone:_.string,value:_.object,view:_.oneOf(["day","month","year"]),viewRenderers:_.shape({day:_.func,month:_.func,year:_.func}),views:_.arrayOf(_.oneOf(["day","month","year"]).isRequired),yearsOrder:_.oneOf(["asc","desc"]),yearsPerRow:_.oneOf([3,4])};const H1=["desktopModeMediaQuery"],Mr=v.forwardRef(function(t,n){const r=Fe({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:o=Gv}=r,s=ve(r,H1);return Hc(o,{defaultMatches:!0})?f.jsx(nd,j({ref:n},s)):f.jsx(rd,j({ref:n},s))});function $i(e,t){if(!t)return;const n=t.trim();if(!n)return;const r=e??"string";if(r==="date"||r==="timestamp"||r==="timestamptz")return n.replace(/^@/,"");if(r.startsWith("filter<")){const o=n.replace(/^f(?=['"])/,""),s=o.match(/^'([^'\\]*)'$/)??o.match(/^"([^"\\]*)"$/);return s?s[1]:o}return r==="string"?U1(n):n}function U1(e){const t=e[0];return e.length>=2&&(t==="'"||t==='"')&&e[e.length-1]===t?e.slice(1,-1).replace(/\\(["'\\ntr])/g,(n,r)=>r==="n"?`
135
- `:r==="t"?" ":r==="r"?"\r":r):e}Re.extend(qs);const Rl=14,Y1=42;function G1(e){const t=(e.annotations??[]).filter(r=>r.trim().startsWith("#("));if(t.length===0)return;const n=[];for(const r of t){const o=r.trim(),s=o.match(/description="([^"]*)"/);if(s){n.push(s[1]);continue}const i=o.replace(/^#\(/,"").replace(/\)\s*$/,"").trim();i&&n.push(i)}return n.length>0?n.join(`
136
- `):void 0}function Oi({given:e,value:t,onChange:n,options:r,optionsLoading:o,optionsFailed:s}){const i=e.label??e.name??"",{theme:a}=Se.usePublisherTheme(),l=e.type??"string",c=G1(e),u=$i(l,e.default),p=u!==void 0?`Default: ${u===""?"(empty)":u}`:void 0,m=c||p?f.jsxs(f.Fragment,{children:[c,c&&p?f.jsx("br",{}):null,p]}):void 0,b=l==="string"||qt(l)==="string",d=!Yt(l)||typeof t!="string"||xc(t),h=O=>f.jsx(W.TextField,{label:i,value:String(t),error:!0,inputProps:{readOnly:!0},helperText:f.jsxs(f.Fragment,{children:[`Not a ${O}. Clear it to pick one.`,m?f.jsx("br",{}):null,m]}),slotProps:{input:{endAdornment:f.jsx(us,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"}),g=Yt(l),w=e.control==="multiselect"&&g,C=Yt(l),S=e.control==="select"||e.control==="multiselect",x=S?C?typeof t=="string"?vc(t):[]:typeof t=="string"&&t!==""?[t]:[]:[];if(S&&b&&d&&!(!w&&x.length>1)){const O=A=>{const L=C?Ks(A):void 0;if(A.length===0||L===""){n(null);return}n(C?L:A[0])};return f.jsx(W.Autocomplete,{multiple:w,disableCloseOnSelect:w,freeSolo:!0,forcePopupIcon:!0,autoSelect:!w,options:r??[],loading:o,noOptionsText:s?"Options unavailable":"No matching values",value:w?x:x[0]??null,onChange:(A,L)=>O(L===null?[]:Array.isArray(L)?L:[L]),renderInput:A=>f.jsx(W.TextField,{...A,label:i,size:"small",placeholder:x.length!==0?void 0:t===""?"All":u??"All",error:s,helperText:s?f.jsxs(f.Fragment,{children:["Could not load the options for this control. Type a value to filter anyway.",m?f.jsx("br",{}):null,m]}):m,slotProps:{input:{...A.InputProps,endAdornment:f.jsxs(f.Fragment,{children:[o&&f.jsx(W.CircularProgress,{size:16}),A.InputProps.endAdornment]})},htmlInput:{...A.inputProps,onBlur:L=>{if(A.inputProps.onBlur?.(L),!w)return;const V=L.target.value.trim();V!==""&&!x.includes(V)&&O([...x,V])}}}}),fullWidth:!0})}const P=Yt(l)&&qt(l)==="number",{rangeMin:k,rangeMax:I}=e,R=P&&typeof t=="string"?wc(t):void 0,N=P&&typeof t=="string"?Cc(t):void 0;if((P||l==="number")&&k!==void 0&&I!==void 0&&(!P||t===void 0||t===null||t===""||R!==void 0||N!==void 0)){const O=N??(R!==void 0?[R,I]:void 0),A=P?O?.[0]:typeof t=="number"?t:void 0;if(A===void 0&&t!==void 0&&t!==null&&t!=="")return h("number");const L=A??k,V=O??[k,I],X=V[1]>=I?`≥ ${V[0]}`:`${V[0]} to ${V[1]}`,re=P&&t==="",ae=A!==void 0||re;return f.jsxs(W.FormControl,{fullWidth:!0,children:[f.jsxs(W.Box,{component:"fieldset",sx:ie=>({m:0,minWidth:0,border:a.cardBorder,borderRadius:2,px:`${Rl}px`,pt:0,pb:.75,minHeight:Y1,transition:"border-color 120ms ease-in","&:hover":{borderColor:ie.palette.text.secondary},"&:focus-within":{borderColor:ie.palette.text.primary}}),children:[f.jsx(W.Typography,{component:"legend",variant:"caption",color:"text.secondary",sx:{px:.5,lineHeight:1},children:i}),f.jsxs(W.Stack,{direction:"row",alignItems:"center",spacing:1,children:[f.jsx(W.Typography,{variant:"body2",sx:{fontWeight:"fontWeightMedium"},children:ae?re?"Any":P?X:String(L):P?"Any":u??"Unset"}),ae&&f.jsx(Tr,{onClear:()=>n(null),sx:{p:0}})]}),f.jsx(W.Slider,{size:"small",min:k,max:I,value:P?V:L,disableSwap:P,valueLabelDisplay:"auto","aria-label":P?void 0:i,getAriaLabel:P?ie=>ie===0?`${i} from`:`${i} to`:void 0,sx:{py:0,mt:.5},onChange:(ie,z)=>{if(P){const[Z,Q]=Array.isArray(z)?[z[0],z[1]]:[z,z];if(Z<=k&&Q>=I){n(null);return}n(Q>=I?Nm(Z):jm(Z,Q));return}n(Array.isArray(z)?z[0]:z)}}),f.jsxs(W.Stack,{direction:"row",justifyContent:"space-between",children:[f.jsx(W.Typography,{variant:"caption",color:"text.secondary",children:k}),f.jsx(W.Typography,{variant:"caption",color:"text.secondary",children:I})]})]}),m&&f.jsx(W.FormHelperText,{sx:{mx:`${Rl}px`},children:m})]})}const E=Yt(l)?qt(l):void 0,y=E==="date"||E==="timestamp"||E==="timestamptz",$=typeof t=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(t),D=t==null||$;if(y&&!$){const O=K1(t);if(O!==void 0)return f.jsx(X1,{label:i,state:O,onChange:n,helperNode:m,defaultDisplay:u})}if(y&&D){const O=$?Re.utc(t):null;return f.jsx(Sr,{dateAdapter:mo,children:f.jsx(Mr,{label:i,value:O?.isValid()?O:null,onChange:A=>n(A?A.format("YYYY-MM-DD"):null),slotProps:{textField:{fullWidth:!0,size:"small",helperText:m},field:{clearable:!0,onClear:()=>n(null)}}})})}if(qt(l)==="boolean"){const O=typeof t=="string"?Lm(t):void 0;if(t==null||t===""||O!==void 0)return f.jsx(q1,{label:i,picked:O,emptyOverride:t==="",onChange:n,helperNode:m,defaultDisplay:u})}if(l==="boolean"){const O=typeof t=="boolean";if(!O&&t!==void 0&&t!==null)return h("true or false");const A=e.default?.trim()==="true",L=O?t:A;return f.jsxs(W.FormControl,{children:[f.jsxs(W.Stack,{direction:"row",alignItems:"center",children:[f.jsx(W.FormControlLabel,{control:f.jsx(W.Checkbox,{checked:L,onChange:V=>n(V.target.checked)}),label:i}),O&&f.jsx(Tr,{onClear:()=>n(null),edge:"end"})]}),m&&f.jsx(W.FormHelperText,{children:m})]})}if(l==="number"){const O=typeof t=="number"?t:"",A=t!=null;return A&&t!==""&&typeof t!="number"?h("number"):f.jsx(W.TextField,{label:i,type:"number",value:O,onChange:L=>{const V=L.target.value;n(V===""?null:Number(V))},placeholder:u,helperText:m,slotProps:{input:{endAdornment:A&&f.jsx(us,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"})}if(l==="date"||l==="timestamp"||l==="timestamptz"){const O=t instanceof Date?t:typeof t=="string"?(V=>V instanceof Date?V:null)(Fc(l,t)):null,A=O?Re.utc(O):null;return t!=null&&t!==""&&O===null?h("date"):f.jsx(Sr,{dateAdapter:mo,children:f.jsx(Mr,{label:i,value:A,onChange:V=>n(V?Hm(V,O??void 0):null),slotProps:{textField:{fullWidth:!0,size:"small",helperText:m},field:{clearable:!0,onClear:()=>n(null)}}})})}const M=typeof t=="string"?t:"",T=t!=null;return f.jsx(W.TextField,{label:i,value:M,onChange:O=>n(O.target.value),placeholder:T?void 0:u??(l.startsWith("filter<")?l:void 0),helperText:m,slotProps:{input:{endAdornment:T&&f.jsx(us,{onClear:()=>n(null)})}},fullWidth:!0,size:"small"})}function Tr({onClear:e,edge:t,sx:n}){return f.jsx(W.IconButton,{size:"small","aria-label":"Clear value",onClick:e,edge:t,sx:[{minWidth:24,minHeight:24},...Array.isArray(n)?n:[n]],children:f.jsx(og,{fontSize:"small"})})}function us({onClear:e}){return f.jsx(W.InputAdornment,{position:"end",children:f.jsx(Tr,{onClear:e,edge:"end"})})}const Xr="__any__";function q1({label:e,picked:t,emptyOverride:n,onChange:r,helperNode:o,defaultDisplay:s}){const i=t??(n?Xr:""),a=i!=="";return f.jsx(W.Box,{"data-testid":"boolean-filter",children:f.jsxs(W.TextField,{select:!0,label:e,value:i,size:"small",fullWidth:!0,helperText:o,slotProps:{select:{displayEmpty:!0,renderValue:l=>l==="true"||l==="false"?l:l===Xr?"Any":s||"Any"},input:{endAdornment:a?f.jsx(Tr,{onClear:()=>r(null),sx:{mr:2}}):void 0}},onChange:l=>{l.target.value!==Xr&&r(l.target.value)},children:[n&&f.jsx(W.MenuItem,{value:Xr,children:"Any"}),f.jsx(W.MenuItem,{value:"true",children:"true"}),f.jsx(W.MenuItem,{value:"false",children:"false"})]})})}function K1(e){if(e==null)return{kind:"unset"};if(typeof e!="string")return;if(e==="")return{kind:"any"};const t=Pc(e);if(t!==void 0)return{kind:"preset",key:t};const n=kc(e);if(n!==void 0)return{kind:"days",...n}}const Qr="__custom__",ds="__any__";function X1({label:e,state:t,onChange:n,helperNode:r,defaultDisplay:o}){const s=t.kind==="days"?`days:${t.firstDay}/${t.lastDay}`:t.kind==="preset"?`preset:${t.key}`:t.kind,[i,a]=ee.useState(t.kind==="days"),[l,c]=ee.useState(t.kind==="days"?{from:t.firstDay,to:t.lastDay}:{});ee.useEffect(()=>{t.kind==="days"?(a(!0),c({from:t.firstDay,to:t.lastDay})):t.kind!=="unset"&&a(!1)},[s]);const u=t.kind!=="unset",p=i?Qr:t.kind==="preset"?t.key:t.kind==="any"?ds:"",m=d=>{c(d),d.from&&d.to&&!Re.utc(d.to).isBefore(Re.utc(d.from))&&n(zm(d.from,d.to))},b=d=>{const h=d?Re.utc(d):null;return h?.isValid()?h:null};return f.jsxs(W.Stack,{direction:"row",spacing:1,"data-testid":"time-range",children:[f.jsxs(W.TextField,{select:!0,label:e,value:p,size:"small",fullWidth:!0,helperText:r,slotProps:{select:{displayEmpty:!0,renderValue:d=>{if(d===Qr)return"Custom range";if(d===ds)return"Any time";const h=xr.find(g=>g.key===d);return h?h.label:o??"Any time"}},input:{endAdornment:u?f.jsx(Tr,{onClear:()=>{a(!1),c({}),n(null)},sx:{mr:2}}):void 0}},onChange:d=>{const h=d.target.value;if(h===Qr){a(!0);return}a(!1);const g=Bm(h);g!==void 0&&n(g)},children:[t.kind==="any"&&f.jsx(W.MenuItem,{value:ds,children:"Any time"}),xr.map(d=>f.jsx(W.MenuItem,{value:d.key,children:d.label},d.key)),f.jsx(W.MenuItem,{value:Qr,children:"Custom range"})]}),i&&f.jsxs(Sr,{dateAdapter:mo,children:[f.jsx(Mr,{label:"From",value:b(l.from),onChange:d=>m({...l,from:d?d.format("YYYY-MM-DD"):void 0}),slotProps:{textField:{size:"small"}}}),f.jsx(Mr,{label:"To",value:b(l.to),minDate:b(l.from)??void 0,onChange:d=>m({...l,to:d?d.format("YYYY-MM-DD"):void 0}),slotProps:{textField:{size:"small"}}})]})]})}const od=ee.createContext(void 0),Yn=()=>ee.useContext(od),Dn="remove-badge",sd={[`& .${Dn}`]:{opacity:0},[`&:hover .${Dn}, &:focus-within .${Dn}`]:{opacity:1},"@media (hover: none)":{[`& .${Dn}`]:{opacity:1}}};function id({label:e,onRemove:t,disabledReason:n,inset:r=0}){const{theme:o}=Se.usePublisherTheme(),s=n!==void 0,i=f.jsx(W.IconButton,{className:Dn,"aria-label":e,"aria-disabled":s||void 0,...s?{"aria-description":n}:{},onClick:a=>{a.stopPropagation(),s||t()},onPointerDown:a=>a.stopPropagation(),sx:a=>({position:"absolute",top:-8-r,right:-8-r,zIndex:3,width:18,height:18,p:0,borderRadius:"50%",border:`1px solid ${Hn(o.cardBorder)}`,bgcolor:a.palette.background.paper,color:a.palette.text.secondary,cursor:s?"default":"pointer",transition:`opacity ${$r}`,...Or,"&:hover":{bgcolor:a.palette.background.paper,color:s?a.palette.text.secondary:a.palette.text.primary,borderColor:Gs(o.cardBorder,o.tileTitle)}}),children:f.jsx(Fo,{sx:{fontSize:12}})});return s?f.jsx(W.Tooltip,{title:n,children:i}):i}const Ai=e=>e.required===!0,Q1=(e,t)=>e==null||e===""&&!Ac(t);function Z1(e,t,n){return e.filter(r=>r.name!==void 0&&Ai(r)&&Q1(t.get(r.name),r.type)&&(n?.[r.name]===void 0||n[r.name]===null))}function J1(e,t){if(!t||e.length===0)return[];const n=new Set(t);return e.filter(r=>r.name&&n.has(r.name))}const ad=e=>e.label??e.name??"";function ld(e){return e.length<2?e.join(""):`${e.slice(0,-1).join(", ")} and ${e[e.length-1]}`}function eP(e){const t=e.map(ad);return`Pick a value for ${ld(t)} to see this report.`}function tP(e){return`Waiting for ${ld(e.map(ad))}.`}const Rs=28,nP=/^\d{4}-\d{2}-\d{2}$/,cd=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric",timeZone:"UTC"});function ps(e){if(!nP.test(e))return e;const t=new Date(`${e}T00:00:00Z`);return Number.isNaN(t.getTime())?e:cd.format(t)}function rP(e){if(e.length===0)return"";const t=e.join(", ");return t.length<=Rs||e.length===1?wo(t):`${wo(e[0]??"")} +${e.length-1}`}function wo(e){return e.length>Rs?`${e.slice(0,Rs-1)}…`:e}function oP(e){if(Ai(e))return"Required";const t=e.type??"string",n=$i(t,e.default);if(n!==void 0&&n!=="")return ud(t,n);const r=qt(t)??t;return e.control==="select"||e.control==="multiselect"||r==="string"?"All":"Any"}function ud(e,t){if(!Yt(e))return wo(ps(t));const n=qt(e);if(n==="string"&&xc(t))return rP(vc(t));if(n==="number"){const r=Cc(t);if(r)return`${r[0]}–${r[1]}`;const o=wc(t);if(o!==void 0)return`≥ ${o}`}if(n==="date"||n==="timestamp"||n==="timestamptz"){const r=Pc(t);if(r)return xr.find(s=>s.key===r)?.label??t;const o=kc(t);if(o)return`${ps(o.firstDay)} – ${ps(o.lastDay)}`}return wo(t)}function sP(e,t){return t==null?oP(e):t instanceof Date?Number.isNaN(t.getTime())?"":cd.format(t):typeof t=="boolean"?t?"Yes":"No":typeof t=="number"?String(t):t===""?"(empty)":ud(e.type??"string",t)}function iP(e){const{given:t,value:n,onChange:r}=e,{theme:o}=Se.usePublisherTheme(),s=o.ui,i=Yn(),[a,l]=ee.useState(null),c=t.name??"",u=t.label??c,p=n!=null,m=sP(t,n),b=a!==null,d=i?.stateOf(c),h=d?.problem,g=d?.fixed,w=f.jsxs(dd,{name:c,set:p,open:b,problem:h,fixed:g!==void 0,required:!p&&Ai(t),children:[f.jsxs(W.ButtonBase,{"aria-haspopup":"dialog","aria-expanded":b,"aria-label":`${u}: ${m}`,onClick:C=>l(C.currentTarget),sx:C=>({height:"100%",borderRadius:s.radius.control,pl:"10px",pr:p?"4px":"8px",gap:"6px",fontFamily:"inherit",fontSize:s.type.control.fontSize,lineHeight:1,minWidth:0,color:C.palette.text.primary}),children:[f.jsx(W.Box,{component:"span",sx:C=>({color:p?o.accent:C.palette.text.secondary,whiteSpace:"nowrap"}),children:u}),f.jsx(W.Box,{component:"span",sx:{fontWeight:s.type.control.fontWeight,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:m}),!p&&f.jsx(hc,{"aria-hidden":!0,sx:C=>({fontSize:16,color:C.palette.text.secondary,transform:b?"rotate(180deg)":"none"})})]}),p&&f.jsx(W.IconButton,{"aria-label":`Clear ${u}`,onClick:()=>r(null),sx:{width:22,height:22,mr:"4px",borderRadius:"4px",color:o.accent},children:f.jsx(Fo,{sx:{fontSize:14}})})]});return f.jsxs(f.Fragment,{children:[h?f.jsx(W.Tooltip,{title:h,children:w}):w,f.jsxs(W.Popover,{className:$t.filterPopover,open:b,anchorEl:a,onClose:()=>l(null),anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{role:"dialog","aria-label":`${u} filter`,sx:{mt:.75,p:1.5,width:300,maxWidth:"calc(100vw - 32px)",boxSizing:"border-box",borderRadius:s.radius.tile,border:o.cardBorder,boxShadow:o.shadow.lift}}},children:[f.jsx(Oi,{...e}),i&&f.jsxs(W.Box,{sx:C=>({mt:1.5,pt:1,borderTop:`1px solid ${C.palette.divider}`,display:"flex",flexDirection:"column",alignItems:"flex-start",gap:.5}),children:[h&&f.jsx(W.Typography,{sx:{...s.type.caption,color:"warning.main"},children:h}),g!==void 0&&f.jsx(W.Typography,{sx:C=>({...s.type.caption,color:C.palette.text.secondary}),children:g}),f.jsx(cP,{name:c,type:t.type,text:aP(n,t.type)}),g===void 0?f.jsx(W.Button,{size:"small","aria-label":`Edit filter ${c}`,"aria-haspopup":"dialog",onClick:()=>{l(null),i.onEdit(c)},sx:{px:.75,minWidth:0,...s.type.control},children:"Filter settings…"}):d?.openModel&&f.jsx(W.Button,{size:"small",onClick:()=>{l(null),d.openModel?.()},sx:{px:.75,minWidth:0,...s.type.control},children:"Open the model"})]})]})]})}function aP(e,t){if(e!=null)return $c(e,t)}function lP(e,t){return e===void 0||!t?.startsWith("filter<")?e:/^f(['"])([\s\S]*)\1$/.exec(e)?.[2]??e}function cP({name:e,type:t,text:n}){const r=Yn(),o=Se.usePublisherTheme().theme.ui;if(!r?.setStartingValue)return null;const s=r.setStartingValue,i=lP(r.startingValueOf?.(e),t),a={px:.75,minWidth:0,...o.type.control};return f.jsxs(f.Fragment,{children:[i!==void 0&&i===n&&f.jsx(W.Typography,{sx:l=>({...o.type.caption,color:l.palette.text.secondary,px:.75}),children:"The report opens with this value."}),n!==void 0&&n!==i&&f.jsx(W.Button,{size:"small",onClick:()=>s(e,n),sx:a,children:"Open the report with this value"}),i!==void 0&&f.jsx(W.Button,{size:"small",onClick:()=>s(e,void 0),sx:a,children:"Open at the default instead"})]})}function dd({name:e,set:t=!1,open:n=!1,unused:r=!1,problem:o,fixed:s=!1,required:i=!1,children:a}){const{theme:l}=Se.usePublisherTheme(),c=l.ui,u=Yn();return f.jsxs(W.Box,{className:$t.filter,"data-filter":e,"data-set":t||void 0,"data-problem":o?!0:void 0,"data-required":i||void 0,sx:p=>({position:"relative",display:"inline-flex",alignItems:"center",height:c.size.control,boxSizing:"border-box",borderRadius:c.radius.control,border:"1px solid",borderStyle:r?"dashed":"solid",borderColor:o||i?p.palette.warning.main:t?`color-mix(in srgb, ${l.accent} 45%, transparent)`:n?l.accent:Hn(l.cardBorder),bgcolor:t?`color-mix(in srgb, ${l.accent} 8%, ${p.palette.background.paper})`:p.palette.background.paper,opacity:r?.75:1,transition:`border-color ${$r}`,...Or,"&:hover":{borderColor:t||n||o?void 0:Gs(l.cardBorder,l.tileTitle)},maxWidth:"100%",...sd}),children:[a,u&&!s&&f.jsx(id,{label:`Remove filter ${e}`,onRemove:()=>u.onRemove(e)})]})}function pd({name:e,label:t,unused:n=!0}){const r=Yn(),o=Se.usePublisherTheme().theme.ui;if(!r)return null;const s=r.stateOf(e)?.problem,i=f.jsx(dd,{name:e,unused:n,problem:s,children:f.jsxs(W.ButtonBase,{"aria-label":`Edit filter ${e}`,"aria-haspopup":"dialog",onClick:()=>r.onEdit(e),sx:a=>({height:"100%",borderRadius:o.radius.control,px:"10px",gap:"6px",fontFamily:"inherit",fontSize:o.type.control.fontSize,lineHeight:1,color:a.palette.text.secondary,whiteSpace:"nowrap"}),children:[f.jsx("span",{children:t}),n&&f.jsx(W.Box,{component:"span",sx:{fontStyle:"italic"},children:"Unused"})]})});return s?f.jsx(W.Tooltip,{title:s,children:i}):i}function fd(){const{theme:e}=Se.usePublisherTheme(),t=e.ui,n=Yn();if(!n)return null;const r=n.addDisabledReason!==void 0;return f.jsx(W.Tooltip,{title:n.addDisabledReason??"",children:f.jsx("span",{children:f.jsx(W.Button,{variant:"outlined",startIcon:f.jsx(Us,{}),"aria-label":"Add filter","aria-haspopup":"dialog",disabled:r,onClick:()=>n.onAdd(),sx:o=>({height:t.size.control,minHeight:t.size.control,px:1.25,borderRadius:t.radius.control,borderStyle:"dashed",borderColor:Hn(e.cardBorder),color:o.palette.text.secondary,boxShadow:"none",...t.type.control,"& .MuiButton-startIcon":{mr:.5},"& .MuiButton-startIcon svg":{fontSize:16}}),children:"Filter"})})})}function uP({givens:e,values:t,onChange:n,onReset:r,layout:o="panel",options:s,optionsLoading:i,optionsFailed:a,apply:l,title:c}){const u=Yn();if(e.length===0&&!(u&&o==="bar"))return null;const p=Array.from(t.values()).some(d=>d!==null),m=e.map(d=>f.jsx(W.Box,{children:f.jsx(Oi,{given:d,value:d.name?t.get(d.name):void 0,onChange:h=>d.name&&n(d.name,h),options:d.name?s?.get(d.name):void 0,optionsLoading:i,optionsFailed:d.name?a?.has(d.name):void 0})},d.name)),b=f.jsxs(W.Stack,{direction:"row",alignItems:"center",spacing:1,children:[l&&f.jsx(W.Button,{variant:"contained",size:"small",disableElevation:!0,onClick:l.onApply,disabled:!l.pending,children:"Apply"}),p&&f.jsx(W.Button,{variant:"text",size:"small",onClick:r,children:"Reset"})]});return o==="bar"?f.jsxs(W.Stack,{direction:"row",role:"group","aria-label":c??"Filters",useFlexGap:!0,sx:{flexWrap:"wrap",alignItems:"center",gap:1},children:[e.map(d=>f.jsx(iP,{given:d,value:d.name?t.get(d.name):void 0,onChange:h=>d.name&&n(d.name,h),options:d.name?s?.get(d.name):void 0,optionsLoading:i,optionsFailed:d.name?a?.has(d.name):void 0},d.name)),u?.unrendered.map(d=>f.jsx(pd,{name:d.name,label:d.label},d.name)),f.jsx(fd,{}),f.jsx(W.Box,{sx:{ml:"auto"},children:b})]}):f.jsxs(W.Paper,{elevation:0,sx:{p:3,backgroundColor:"transparent",border:"none",boxShadow:"none"},children:[f.jsxs(W.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{mb:2},children:[f.jsx(W.Typography,{variant:"subtitle2",sx:{fontWeight:"fontWeightMedium",color:"text.primary"},children:c??"Filters"}),b]}),f.jsx(W.Box,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",alignItems:"start",columnGap:3,rowGap:2.5},children:m})]})}const dP=/^(https?|mailto|tel):/i,pP=/^[a-z][a-z0-9+.-]*:/i;function fP({href:e,title:t,children:n,context:r}){const o=!!e&&pP.test(e),s=!!e&&!o&&!e.startsWith("/")&&!e.startsWith("#");if(!e||!s||!r){const p=o&&!dP.test(e??"");return f.jsx("a",{href:p?void 0:e,title:t,...o?{target:"_blank",rel:"noopener noreferrer"}:{},children:n})}const i=r.sourcePath&&r.sourcePath.includes("/")?r.sourcePath.slice(0,r.sourcePath.lastIndexOf("/")+1):"",a=new URL(e,`https://malloy.invalid/${i}`),l=a.pathname.slice(1)+a.search+a.hash,c=`/${r.environmentName}/${r.packageName}/${l}`,{onNavigate:u}=r;return f.jsx("a",{href:c,title:t,onClick:u?p=>{p.preventDefault(),u(c,p)}:void 0,children:n})}const hP=e=>({document:{"& > :first-child, & > div:only-child > :first-child":{mt:0},"& > :last-child, & > div:only-child > :last-child":{mb:0},"& h1, & h2, & h3, & h4, & h5, & h6":{fontWeight:"fontWeightMedium",color:"text.primary",mb:1,mt:2},"& h1":{fontSize:"28px"},"& h2":{fontSize:"24px"},"& h3":{fontSize:"20px"},"& p, & ul, & ol":{color:"text.primary",...e.type.prose,mb:1,maxWidth:ac},"& li":{mb:.5}},caption:{color:"text.secondary",typography:"body2","& > :first-of-type":{mt:0},"& > :last-child":{mb:0},"& h1, & h2, & h3, & h4, & h5, & h6":{fontSize:"inherit",fontWeight:"fontWeightMedium",m:"0.5em 0 0.25em"},"& p":{m:"0.5em 0"},"& ul, & ol":{m:"0.5em 0",pl:3},"& code":{fontFamily:e.font.mono,fontSize:"0.9em"}}});function mP({alt:e}){return f.jsx(f.Fragment,{children:e})}function gP({children:e,variant:t="caption",links:n,sx:r}){const{theme:o}=Se.usePublisherTheme();return f.jsx(W.Box,{sx:[hP(o.ui)[t],{fontFamily:o.font.family},...Array.isArray(r)?r:[r]],children:f.jsx(dp,{options:{forceBlock:t==="document",disableParsingRawHTML:!0,overrides:{a:{component:fP,props:{context:n}},img:{component:mP}}},children:e})})}const yP=new Set(["bar","line","chart","scatter_chart"]),bP=new Set(["table","dashboard","shape_map","segment_map","list","list_detail","big_value","cell","link","image"]);function vP(e,t){return t==="fill"?"container":t==="fixed"||!e?"content":yP.has(e)?"container":"content"}function xP(e,t){return t==="fixed"?!0:t==="fill"?!1:e!==void 0&&bP.has(e)}function SP(e){return e==="dashboard"?3:2}function hd(e,t){let n=e.firstElementChild;for(let r=1;r<t&&n;r++)n=n.firstElementChild;return n}function wP(e,t){const n=hd(e,t);return n&&(n.scrollHeight||n.offsetHeight)||0}const CP=400,PP=700,kP=600,MP=800,md=400,Is=2e3;function gd(e){return e===void 0?Is:Math.min(e,Is)}function Es({sizing:e,contentHeight:t,maxHeight:n,fillHeight:r}){if(e==="container")return n??md;if(t===void 0||t<=0)return gd(n);const o=n===void 0?t:Math.min(n,t);return r===void 0?o:Math.max(o,r)}const Co={opening:e=>e?`Opening the ${e}…`:"Opening…",running:"Running…",loading:"Loading…"};function Fi({text:e,size:t=20,color:n="primary",thickness:r=3.6,centered:o=!0,spacing:s=2,textVariant:i="body2"}){const a=f.jsxs(W.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:s},children:[f.jsx(W.CircularProgress,{size:t,color:n,thickness:r}),e&&f.jsx(W.Typography,{variant:i,color:"text.secondary",children:e})]});return o?f.jsx(W.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:a}):a}let or;function yd(){return or||(or=import("@malloydata/render"),or.catch(()=>{or=void 0})),or}function bd(){typeof window>"u"||yd().catch(()=>{})}const vd=$e(f.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}));function xd({sx:e,...t}){const{theme:n}=Se.usePublisherTheme();return f.jsx(W.IconButton,{size:"small",...t,sx:[{width:32,height:32,bgcolor:n.tile,border:n.border,color:n.tileTitle,"&:hover":{bgcolor:n.tile,color:n.drillLink},"& .MuiSvgIcon-root":{fontSize:18}},...Array.isArray(e)?e:[e]]})}const TP=new Set(["warn","error"]);function DP(e){if(!e?.length)return;const t=[];let n=!1;for(const r of e)!r.message||!TP.has(r.severity??"")||(r.severity==="error"&&(n=!0),t.includes(r.message)||t.push(r.message));if(t.length)return{severity:n?"error":"warn",title:t.join(`
137
- `)}}const RP=ee.lazy(()=>Promise.resolve().then(()=>require("./RenderedResult-De51QvsZ.cjs.js")).then(e=>e.RenderedResult$1));function Sd({result:e,maxHeight:t,maxResultSize:n=0,renderLogs:r,drill:o,fill:s=!1}){const i=ee.useRef(null);ee.useEffect(()=>bd(),[]);const[a,l]=ee.useState(void 0),[c,u]=ee.useState(void 0),[p,m]=ee.useState(!1),[b,d]=ee.useState(void 0),h=DP(r),g=!!e;if(ee.useEffect(()=>{const P=i.current;if(!s||!P)return;const k=new ResizeObserver(([I])=>d(Math.round(I.contentRect.height)));return k.observe(P),()=>k.disconnect()},[s,g,p]),!e)return null;if(n>0&&e.length>n&&!p)return f.jsxs(W.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2,p:4,backgroundColor:"#fafafa",border:"1px solid",borderColor:"#e0e0e0",borderRadius:1},children:[f.jsx(fp.Warning,{sx:{fontSize:48,color:"#757575"}}),f.jsx(W.Typography,{variant:"h6",color:"text.secondary",align:"center",children:"Processing large results may cause browser performance issues. Proceed?"}),f.jsx(W.Button,{variant:"contained",color:"primary",onClick:()=>m(!0),children:"Proceed"})]});const C=f.jsx(Fi,{text:Co.loading,centered:!0,size:32}),S=Es({sizing:a,contentHeight:c,maxHeight:t,fillHeight:s?b:void 0}),x=f.jsx(ee.Suspense,{fallback:C,children:f.jsx(RP,{result:e,height:S,onSizeChange:u,onSizing:l,drill:o,fill:s})});return f.jsxs(W.Box,{ref:i,sx:{position:"relative",height:"auto",border:"0px",borderRadius:0,overflow:"hidden",...s&&{flex:`1 1 ${Es({sizing:a,contentHeight:c,maxHeight:t})}px`,minHeight:0}},children:[s?f.jsx(W.Box,{sx:{position:"absolute",inset:0},children:x}):x,h&&f.jsx(W.Box,{sx:{position:"absolute",top:4,right:4,zIndex:1},children:f.jsx(W.Tooltip,{title:h.title,slotProps:{tooltip:{sx:{whiteSpace:"pre-line"}}},children:f.jsx(xd,{"aria-label":"Render tag warnings",children:f.jsx(vd,{fontSize:"small",color:h.severity==="error"?"error":"warning"})})})})]})}function wd({state:e,context:t,loadingText:n=Co.running,maxHeight:r,maxResultSize:o,drill:s,fill:i,transform:a}){const{data:l,isSuccess:c,isError:u,error:p,fetchStatus:m,isPlaceholderData:b}=e,d=c||m==="fetching";ee.useEffect(()=>{d&&bd()},[d]);const h=l?.data.result,g=ee.useMemo(()=>h!==void 0&&a?a(h):h,[h,a]);if(u)return f.jsx(W.Box,{sx:{p:2},children:f.jsx(yc,{context:t,error:p})});if(!c)return f.jsx(Fi,{text:m==="idle"?Co.loading:n});const w=f.jsx(Sd,{result:g,maxHeight:r,maxResultSize:o,renderLogs:l.data.renderLogs,drill:s,fill:i});return f.jsxs(W.Box,{"aria-busy":b||void 0,sx:{position:"relative",display:"flex",flexDirection:"column",flex:"1 1 auto",minHeight:0,minWidth:0,...i?{height:"100%"}:{},"& > .result-body":{display:"flex",flexDirection:"column",flex:"1 1 auto",minHeight:0,minWidth:0,...i?{height:"100%"}:{},opacity:b?.55:1,transition:b?"opacity 160ms ease 200ms":"opacity 120ms ease","@media (prefers-reduced-motion: reduce)":{transition:"none"}}},children:[b&&f.jsx(W.LinearProgress,{"aria-label":n,sx:{position:"absolute",top:0,left:0,right:0,height:2,zIndex:1,bgcolor:"transparent",borderRadius:1}}),f.jsx(W.Box,{className:"result-body",children:w})]})}const $s=()=>typeof performance<"u"?performance.now():Date.now(),IP=$e(f.jsx("path",{d:"m16.95 6-3.57 4.55 1.43 1.43c1.03-1.31 4.98-6.37 4.98-6.37C20.3 4.95 19.83 4 19 4H6.83l2 2zM2.81 2.81 1.39 4.22 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-2.17l5.78 5.78 1.41-1.41z"})),EP=3;function $P(e,t){if(e===void 0)return[];const n=new Set(e);return t.flatMap(r=>r.name&&!n.has(r.name)?[r.label??r.name]:[])}function OP(e){return e.length<2?e.join(""):`${e.slice(0,-1).join(", ")} or ${e[e.length-1]}`}function Cd({ignored:e}){const{theme:t}=Se.usePublisherTheme();if(e.length===0)return null;const n=e.length>EP?`Doesn't respond to ${e.length} filters`:`Doesn't respond to ${e.join(", ")}`;return f.jsxs(W.Box,{"data-testid":"tile-filter-tag",title:`This tile's query never reads ${OP(e)}, so changing ${e.length===1?"it":"them"} won't change this tile`,sx:{display:"inline-flex",alignItems:"center",gap:.5,maxWidth:"100%",mb:1,alignSelf:"flex-start",px:.75,py:.125,border:1,borderColor:"warning.main",borderRadius:1,fontSize:11,lineHeight:1.6,color:"warning.main",fontFamily:t.font.family},children:[f.jsx(IP,{sx:{fontSize:12}}),f.jsx(W.Box,{component:"span",sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n})]})}function AP(e,t){if(e==="linear")return{layout:"linear",columns:1,widths:!1,insertBetween:!0};const n=t??Hh;return{layout:"grid",columns:n,widths:n>1,insertBetween:!1}}const Li=20,FP={radius:"8px",padding:`${Li}px`};function LP(e,t=FP){return{"--malloy-render--font-family":e.font.family,"--malloy-render--table-font-size":`${e.font.size}px`,"--malloy-render--table-header-color":e.tableHeader,"--malloy-render--table-body-color":e.tableBody,"--malloy-render--table-border":e.border,"--malloy-render--table-pinned-border":e.pinnedBorder,"--malloy-render--tile-background":e.tile,"--publisher-dashboard-root":e.dashboardRoot,"--malloy-render--label-color":e.tileTitle,"--malloy-render--value-color":e.valueColor,"--publisher-drill-link":e.drillLink,"--publisher-dashboard-card-radius":t.radius,"--publisher-dashboard-card-padding":t.padding,"--publisher-dashboard-card-border":e.cardBorder}}const Pd={query:120,text:72};function Ni({borderless:e=!1,chrome:t="card",kind:n="query",sx:r,cardRef:o,children:s}){const{theme:i}=Se.usePublisherTheme(),a=i.ui,l=e||t==="none";return f.jsx(W.Paper,{ref:o,className:$t.tile,elevation:0,"data-chrome":t,"data-tile-kind":n,sx:[{border:l?"none":i.cardBorder,borderRadius:l?0:a.radius.tile,background:l?"none":i.tile,overflow:"hidden",display:"flex",flexDirection:"column",minWidth:0,minHeight:t==="none"?0:Pd[n],p:t==="none"?0:e?"12px 0":`${Li}px`},...Array.isArray(r)?r:[r]],children:s})}const kd=$t.tileHeading;function Md({title:e,subtitle:t,tooltip:n,action:r,quiet:o=!1}){const{theme:s}=Se.usePublisherTheme(),i=s.ui;return f.jsxs(W.Box,{className:kd,sx:{pb:o?.5:1.5,display:"flex",alignItems:"flex-start",gap:1},children:[f.jsxs(W.Box,{sx:{minWidth:0,flex:1},children:[f.jsx(W.Typography,{component:"div",sx:{...i.type.tileTitle,display:"block",color:s.tileTitle,fontFamily:s.font.family},title:n,children:e}),t!==void 0&&f.jsx(W.Typography,{component:"div",sx:{...i.type.caption,display:"block",mt:"2px",color:s.tileTitle,fontFamily:s.font.family,opacity:.75},children:t})]}),r]})}const NP=-1;function jP(){const[e,t]=ee.useState(!1),n=ee.useRef(null);return{stickyRef:ee.useCallback(o=>{n.current?.disconnect(),n.current=null,!(!o||typeof IntersectionObserver>"u")&&(n.current=new IntersectionObserver(([s])=>{if(!s)return;const i=s.boundingClientRect.top<(s.rootBounds?.height??window.innerHeight)/2;t(s.intersectionRatio<1&&i)},{threshold:[1]}),n.current.observe(o))},[]),stuck:e}}const Td=4,BP=2;function VP({layout:e,notice:t,header:n,controls:r,children:o,sx:s}){return f.jsxs(W.Stack,{className:$t.report,"data-layout":e,sx:[{gap:BP},...Array.isArray(s)?s:[s]],children:[t,n,r,o]})}function zP({title:e,description:t,actions:n}){const r=Se.usePublisherTheme().theme.ui;return f.jsxs(W.Stack,{className:$t.header,sx:{gap:1.5},children:[f.jsxs(W.Stack,{direction:"row",sx:{alignItems:"center",gap:2},children:[f.jsx(W.Typography,{component:"h1",className:$t.title,sx:{...r.type.pageTitle,m:0,flex:1,minWidth:0},children:e}),n&&f.jsx(W.Box,{sx:{my:"-4px"},children:n})]}),t]})}function _P({sx:e,children:t}){return f.jsx(Ni,{chrome:"none",kind:"text",...e?{sx:e}:{},children:t})}function WP({children:e}){const{theme:t}=Se.usePublisherTheme(),{stickyRef:n,stuck:r}=jP();return f.jsx(W.Box,{ref:n,className:$t.filterRow,"data-stuck":r||void 0,sx:{position:"sticky",top:`${NP}px`,zIndex:Td,bgcolor:"background.default",pb:1,pt:1,mt:-1,boxShadow:r?`0 1px 0 ${Hn(t.cardBorder)}`:"none",transition:`box-shadow ${$r}`,...Or},children:e})}const Dd=e=>{const t=new URL(e),n={};if(t.protocol!=="publisher:")throw new Error(`Failed to parse resource URI: ${e}`);const r=(t.hostname+t.pathname).split("/");for(let o=0;o<r.length;o+=2){const s=r[o];s==="environments"?n.environmentName=decodeURI(r[o+1])||void 0:s==="packages"?n.packageName=decodeURI(r[o+1])||void 0:s==="connections"?n.connectionName=decodeURI(r[o+1])||void 0:s==="models"&&(n.modelPath=decodeURI(r.slice(o+1).join("/"))||void 0)}if(n.versionId=t.searchParams.get("versionId")||void 0,!n.environmentName)throw new Error(`Failed to parse resource URI: ${e}`);return n},Rd=e=>{if(!e.environmentName)throw new Error(`Failed to encode resource URI, missing environment name: ${e}`);let t=`publisher://environments/${e.environmentName}`;return e.packageName&&(t+=`/packages/${e.packageName}`),e.connectionName&&(t+=`/connections/${e.connectionName}`),e.modelPath&&(t+=`/models/${e.modelPath}`),e.packageName&&e.versionId&&(t+=`?versionId=${e.versionId}`),t};function ji(e,t){if(e[t])return e;const n=e.default;return n?.[t]?n:e}const HP=e=>ji(e,"MalloyTranslator"),UP=e=>ji(e,"parseAnnotation"),YP=e=>ji(e,"ASTQuery");async function GP(){return HP(await import("@malloydata/malloy"))}async function qP(){return UP(await import("@malloydata/malloy-tag"))}async function KP(){return YP(await import("@malloydata/malloy-query-builder"))}async function XP(e){const t=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(e));return Array.from(new Uint8Array(t),n=>n.toString(16).padStart(2,"0")).join("")}function QP(e){return e.find(t=>t.authoritative)??e.find(t=>t.writeable)}function Id({authoritative:e,mutable:t,versionId:n,canStore:r,readFailed:o}){const s=e?"host":t?"package":"browser",i=n!==void 0&&s==="package";return{savesTo:s,pinnedPackageSave:i,writer:o?void 0:e?r?"storage":void 0:i?void 0:t?"package":r?"storage":void 0}}async function ZP(e,t){return e??(t===void 0?void 0:await XP(t))}function JP({authoritative:e,mutable:t,pinnedPackageSave:n,workspace:r,readFailure:o,versionId:s}){return o!==void 0?`The saved copy could not be read, so Save is off: ${o}`:e&&r?r.writeable?r.description:`${r.description}: you cannot save into it.`:n?`Reading version ${s}: a version is a fixed point in history, so Save is off.`:t?"Save writes the file into the package.":r?`${r.description}: this server does not take writes.`:"This server does not take writes."}function ek(e){return e instanceof Error?e.message:String(e)}function tk(e){const t=e.response?.data;return t?.message?t.message:e instanceof Error?e.message:String(e)}async function nk({apiClients:e,queryClient:t,environmentName:n,packageName:r,modelPath:o,source:s,expectedHash:i,invalidateOnError:a,invalidate:l,afterWrite:c}){let u;try{u=await e.models.updateModelSource(n,r,o,{source:s,expectedHash:i})}catch(m){for(const b of a)t.invalidateQueries({queryKey:b});throw new Error(tk(m))}const p=u.data.contentHash;await c?.(p);for(const{queryKey:m,refetchType:b,wait:d}of l){const h=t.invalidateQueries({queryKey:m,...b?{refetchType:b}:{}});d&&await h}return p}function rk(e,t){return t===void 0||!/\.(saved|save_undone)$/.test(e.type)||e.where==="package"?e:{...e,workspace:t}}function ok(e){if(!("resourceUri"in e))return{environmentName:e.environmentName,packageName:e.packageName,versionId:void 0,namesBoth:!0};let t;try{t=Dd(e.resourceUri)}catch{t=void 0}return{environmentName:t?.environmentName??"",packageName:t?.packageName??"",versionId:t?.versionId,namesBoth:!!t?.environmentName&&!!t?.packageName}}class Ed extends Error{constructor(t){super(t),this.name="DocumentNotFoundError"}}const $d=e=>e instanceof Ed||e instanceof Error&&e.name==="DocumentNotFoundError",sk=String.raw`##?\|?[ \t]*(?:[([{<][ \t]*)?(?:(?:(?:row|source)[-_]?)?authorize|access[-_]?filter)(?=[)\]}>]|[ \t]|$)`;function Bi(e,t){if(/[\r\n]/.test(t))return`A ${e} is one line; it cannot hold a line break.`;if(new RegExp(sk,"iu").test(t))return`A ${e} cannot contain what reads as an access-control tag (authorize, row_authorize, source_authorize or access_filter).`}const sr=e=>Ns.isBareName(e)?e:`\`${e}\``;function Vi(e){const{title:t,modelPath:n,source:r,view:o}=e;if(t.trim()==="")return"A title cannot be empty.";const s=Bi("title",t);if(s)return s;if(t.includes("|##"))return"A title cannot contain `|##`, which closes the report's artifact tag.";if(/["\\\r\n]/.test(n)||n.trim()==="")return`The model path ${JSON.stringify(n)} cannot be written as an import.`;for(const[i,a]of[["source",r],["view",o]])if(a.trim()===""||/[`\r\n\\]/.test(a))return`The ${i} name ${JSON.stringify(a)} cannot be written as a Malloy name.`}const ik=e=>{const t=e.replace(/[-_]+/g," ").trim();return t.charAt(0).toUpperCase()+t.slice(1)},Il=e=>`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,ak="report.malloy";function zi(e,t,n=ak){const r=Vi(e);if(r)throw new Error(r);const{modelPath:o,source:s,view:i}=e,a=e.title.trim(),l=Il(a),c=sr(`${s}_tiles`),u=sr(`${i}_tile`),p=`"${c} -> ${u}"`;return["##! experimental.givens",`##| artifact { layout=${t} title=${l}`," tiles=[",` ${p}`," ]",t==="grid"?"} dashboard { columns=12 }":"}","|##",`import { ${sr(s)} } from "${fc(o,n)}"`,"",`source: ${c} is ${sr(s)} extend {`,` # label=${Il(ik(i))}`,` view: ${u} is ${sr(i)}`,"}",""].join(`
138
- `)}function lk(e,t){return zi(e,"linear",t)}function Od(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"").slice(0,80)}function ck({title:e,modelPath:t,source:n,view:r}){for(const[o,s]of[["source",n],["view",r]])if(!Ns.isBareName(s))return`The ${o} name ${JSON.stringify(s)} cannot be written as a Malloy name.`;return/["\\\r\n]/.test(t)?`The model path ${JSON.stringify(t)} cannot be written into an import.`:Bi("title",e)}function uk(e,t){const n=ck(e);if(n)throw new Error(n);return zi(e,"grid",t)}const Ad=e=>(e??"").trim().replace(/\\/g,"/").split("/").filter(t=>t!=="").join("/");function Fd(e,t){const n=Ad(t);return`${n===""?"":`${n}/`}${e}.malloy`}function Ld(e){return Od(e)||"untitled"}function Nd(e,t=1,n){const r=Ld(e);return Fd(t>1?`${r}-${t}`:r,n)}const jd=(e,t,n)=>`${e}/${t}/${n}`,Bd=(e,t,n,r,o)=>({workspace:t,type:e,path:jd(n,r,o)}),_i=20;function dk(e){const{savesTo:t,writer:n}=Id({...e,readFailed:!1});return t==="browser"?void 0:n}const El=e=>e.slice(e.lastIndexOf("/")+1).replace(/\.malloy$/,"");function Vd(e){if(!e.endsWith(".malloy"))return"A report's file name ends in .malloy.";const t=e.split("/");if(t.some(n=>n===""||n==="."||n===".."))return"A location is a path inside the package, such as sales/q3.malloy.";if(t.at(-1)===".malloy")return"A report's file needs a name.";if(t[0].toLowerCase()==="public")return"A report cannot live under public/, which is served as plain files.";if(e.toLowerCase()==="index.malloy")return"The package's index.malloy is its surface, never a report."}async function pk(e){const t=e.layout??"linear",n=$s();let r;try{r=await fk(e,t)}catch(o){throw ho({path:e.path??"",layout:t},e.onEvent).emit({type:"report.create_refused",reason:o instanceof Error?o.message:String(o)}),o}return ho({path:r.path,layout:t},e.onEvent).emit({type:"report.created",where:e.target.route==="package"?"package":"host",durationMs:$s()-n}),e.onCreated?.(r),r}async function fk(e,t){const{document:n,target:r}=e,o=Vi(n);if(o)throw new Error(o);const s=Ad(e.directory),i=e.path!==void 0?[e.path]:Array.from({length:_i},(h,g)=>Nd(n.title,g+1,s));for(const h of i){const g=Vd(h);if(g)throw new Error(g)}const a=h=>zi(n,t,h);if(r.route==="package"){const h=new Set(r.existing);let g;for(const w of i)if(!h.has(w))try{await r.write(w,a(w)),g=w;break}catch(C){if(!hk(C))throw C}if(g===void 0)throw $l(n.title,e.path);return{layout:t,path:g,slug:El(g)}}const{storage:l,workspace:c,environmentName:u,packageName:p}=r,m=new Set(r.existing),b=new Set((await l.listDocuments(c)).map(h=>h.path));let d;for(const h of i){const g=Bd(t,c.name,u,p,h),w=await l.resolveDocumentPath?.(g)??h;if(b.has(g.path)||m.has(h)||m.has(w))continue;let C=!0;try{await l.getDocument(g)}catch(S){if(!$d(S))throw S;C=!1}if(!C){d={layout:t,path:w,slug:El(w),locator:g};break}}if(d===void 0)throw $l(n.title,e.path);return await l.saveDocument(d.locator,a(d.path)),d}const hk=e=>e?.response?.status===409,$l=(e,t)=>new Error(t!==void 0?`${t} already exists. Fix: choose a different location.`:`No free file name for "${e}" after ${_i} tries. Fix: choose a different title.`);function zd(e){try{const t=JSON.parse(e??"");return new Set((t.entries??[]).flatMap(n=>n.kind==="source"&&typeof n.name=="string"?[n.name]:[]))}catch{return new Set}}const _d=["bar_chart","line_chart","scatter_chart","shape_map","segment_map","big_value","sparkline"],Wd=["line_chart","bar_chart","big_value","scatter_chart","shape_map","segment_map"],Hd=e=>Wd.includes(e),Os=new Set([..._d,"viz"]);function zr(e){const t=e.trim();if(!/^#[ \t]/.test(t)||/[{=]/.test(t))return;const n=t.slice(1).trim().split(/[ \t]+/),r=[];let o;for(const s of n)if(s.startsWith("-")){if(o!==void 0)return;const i=s.slice(1);if(!Os.has(i))return;r.push(i)}else{if(o!==void 0||!Os.has(s))return;o=s}return{negated:r,...o!==void 0&&{pick:o}}}function Wi(e){const t=e.trim();return!/^#[ \t]/.test(t)||zr(t)?!1:(t.replace(/"(?:[^"\\]|\\.)*"/g,'""').match(/[A-Za-z_]+/g)??[]).some(r=>Os.has(r))}function mk(e,t){return["#",...Wd.filter(r=>r!==e&&(t===void 0||t.includes(r))).map(r=>`-${r}`),"-viz",...e==="none"?[]:[e]].join(" ")}function gk(e){return e.pick!==void 0?Hd(e.pick)?e.pick:"custom":e.negated.includes("viz")?"none":"custom"}function yk(e){if(e.length===0)return"default";if(e.length>1)return"custom";const t=zr(e[0]);return t?gk(t):"custom"}function bk(e){const t=e.filter(n=>zr(n));return e.some(Wi)?"custom":t.length===0?void 0:yk(t)}const vk=e=>e.filter(t=>zr(t)||Wi(t));function As(e){for(const t of e??[]){const n=/^#\(doc\)\s*(.*)$/s.exec(t.trim());if(n)return n[1].trim()}}function Ud(e){for(const t of e??[]){const n=/^#\s*(?:-[A-Za-z_]+\s+)*([a-z_]+)/.exec(t.trim())?.[1];if(n&&_d.includes(n))return n}}function xk({environmentName:e,packageName:t,versionId:n,models:r,enabled:o}){const{apiClients:s,server:i}=Se.useServer(),a=Dr.useQueries({queries:r.map(d=>({queryKey:["new-document-model",e,t,n,d,i],queryFn:async()=>(await s.models.getModel(e,t,d,n)).data,enabled:o,retry:!1,staleTime:300*1e3,refetchOnWindowFocus:!1}))}),l=a.map(d=>d.dataUpdatedAt).join(),c=ee.useMemo(()=>{const d=new Map;return a.forEach((h,g)=>{const w=[],C=zd(h.data?.modelInfo);for(const S of h.data?.sources??[]){if(typeof S.name!="string"||!C.has(S.name))continue;const x=As(S.annotations);for(const P of S.views??[])if(typeof P.name=="string"){const k=As(P.annotations),I=Ud(P.annotations);w.push({source:S.name,view:P.name,...k?{description:k}:{},...I?{chart:I}:{},...x?{sourceDescription:x}:{}})}}w.length>0&&d.set(r[g],w)}),d},[l,r]),u=a.some(d=>d.isLoading),p=u?[]:r.filter((d,h)=>a[h]?.isError),m=!u&&a.some(d=>d.isError&&Ns.canRetryRequest(d.error)),b=()=>{a.forEach(d=>{d.isError&&d.refetch()})};return{choices:c,isLoading:u,isSuccess:a.length>0&&a.every(d=>!d.isPending),failed:p,retry:b,canRetry:m}}const Hi=ee.createContext(void 0);function Sk({children:e,documentStorage:t}){const n=ee.useMemo(()=>({documentStorage:t}),[t]);return f.jsx(Hi.Provider,{value:n,children:e})}function wk(){const e=ee.useContext(Hi);if(!e)throw new Error("useDocumentStorage must be used within a DocumentStorageProvider");return e}function Ck(){return ee.useContext(Hi)}function Pk(e,{environmentName:t,packageName:n,path:r,versionId:o},s){return{queryKey:["report",t,n,o,r],queryFn:async({signal:i})=>(await e.reports.getReport(t,n,r,o,{signal:i})).data,...s===void 0?{}:{staleTime:s}}}const kk=1e4,Mk=e=>e==="notebook"?"linear":"grid",Tk=(e,t)=>`${e}s/${t}.malloy`,Dk=/\.malloy(nb)?$/,Rk=e=>e&&e.slice(e.lastIndexOf("/")+1).replace(Dk,"")||void 0,Yd=e=>e.replace(/\.malloy$/,"").split("/").map(encodeURIComponent).join("/"),Gd=(e,t,n)=>`/${encodeURIComponent(e)}/${encodeURIComponent(t)}/${Yd(n)}`,qd="edit",Ik=(e,t,n)=>`${Gd(e,t,n)}?${qd}`,Kd=e=>e.layout==="linear"?"linear":"grid",Xd=e=>({layout:Kd(e),path:e.path,editable:e.editable!==!1});function Ui(e,t){const n=t.find(r=>r.path===e);return n?.path?Xd({...n,path:n.path}):void 0}function Qd(e){return e===""||e.startsWith("/")?!1:e.split("/").every(t=>t!==""&&t!=="."&&t!=="..")}function Ek(e,t){if(!Qd(e))return{kind:"unresolved"};for(const n of[`${e}.malloy`,e]){const r=Ui(n,t);if(r)return{kind:"path",report:r}}return{kind:"unresolved"}}function $k(e,t,n){return[["dashboards"],["notebooks"],["dashboard"],...n===void 0?[]:[[Rd({environmentName:e,packageName:t,modelPath:n})]]]}function Ok(e,t,n,r){for(const o of[["report"],["reports"],...$k(t,n,r)])e.invalidateQueries({queryKey:o})}const Ak=(e,t,n)=>["reports",e,t,n];async function Fk(e,t,n,r){try{return(await e.reports.listReports(t,n,r)).data}catch(o){if(o?.response?.status===404)return[];throw o}}function Zd(e,t,n,r=!0){const{apiClients:o}=Se.useServer(),s=Ko({queryKey:Ak(e,t,n),queryFn:()=>Fk(o,e,t,n),enabled:r,staleTime:6e4});return{reports:s.data??[],settled:s.isSuccess||s.isError,isFetching:s.isFetching,isError:s.isError,error:s.error,refetch:s.refetch}}function Lk(e,t,n,r){const{reports:o,settled:s}=Zd(e,t,r);return{settled:s,reports:o,location:s?Ui(n,o):void 0}}function Ko(e){const{server:t}=Se.useServer(),n={...e,queryKey:[...e.queryKey,t],queryFn:async r=>{try{return await e.queryFn(r)}catch(o){if(o&&typeof o=="object"&&"response"in o){const s=o;if(s.response?.data){const i=new Error(s.response.data.message||s.message);throw i.status=s.response.status,i.data=s.response.data,i}}throw o}},retry:!1,throwOnError:!1};return Dr.useQuery(n,Se.globalQueryClient)}function Nk(e){const t={...e,mutationFn:async n=>{try{return await e.mutationFn(n)}catch(r){if(r&&typeof r=="object"&&"response"in r){const o=r;if(o.response?.data){const s=new Error(o.response.data.message||o.message);throw s.status=o.response.status,s.data=o.response.data,s}}throw r}},retry:!1,throwOnError:!1};return Dr.useMutation(t,Se.globalQueryClient)}function Jd(e){return["queryResult",e.environmentName,e.packageName,e.versionId,e.modelPath,e.queryName,e.query,e.sourceName,JSON.stringify(e.givens??{})]}function jk(e){return["queryResult",e.environmentName,e.packageName,e.versionId,e.modelPath]}function ep(e,{enabled:t=!0}={}){const{apiClients:n}=Se.useServer(),r=Jd(e);return Ko({queryKey:r,queryFn:({signal:o})=>n.models.executeQueryModel(e.environmentName,e.packageName,e.modelPath,{queryName:e.queryName,query:e.query,sourceName:e.sourceName,givens:e.givens,versionId:e.versionId},void 0,{signal:o}),enabled:t,placeholderData:(o,s)=>s&&Vk(s.queryKey,r)?Dr.keepPreviousData(o):void 0,...Se.CHART_RESULT_QUERY_OPTIONS})}const Bk=8;function Vk(e,t){return e.every((n,r)=>r===Bk||r>=t.length||n===t[r])}const zk=/<\/?[A-Za-z][^>]*>|<!--|<![A-Za-z]/;function tp(e){let t=!1;for(const[n,r]of Array.from(e.entries())){if(r.deleted)continue;if(n==="image"||n==="link"){e.delete(n),t=!0;continue}if(n==="label"){let s;try{s=e.text("label")}catch{s=void 0}if(s!==void 0&&zk.test(s)){e.delete("label"),t=!0;continue}}const o=Array.isArray(r.eq)?r.eq:[];for(const s of[r,...o])tp(s)&&(t=!0)}return t}function _k(e){const t=e.trim();if(!/^#(?:\||[ \t\r\n]|$)/.test(t))return e;if(t.includes("@env."))return"";let n;try{n=hp.parseAnnotation(t)}catch{return""}return n.log.length>0?"":tp(n.tag)?`${n.tag.toString()}
139
- `:e}function Fs(e){if(Array.isArray(e)){for(const n of e)Fs(n);return}if(e===null||typeof e!="object")return;const t=e;for(const[n,r]of Object.entries(t))if(n==="annotations"&&Array.isArray(r))for(const o of r){const s=o;typeof s?.value=="string"&&(s.value=_k(s.value))}else Fs(r)}function np(e){let t;try{t=JSON.parse(e)}catch{return e}const n=JSON.stringify(t);Fs(t);const r=JSON.stringify(t);return r===n?e:r}const Wk=new Set(["bar_chart","line_chart","scatter_chart","shape_map","segment_map","point_map","big_value","sparkline","list","list_detail","dashboard","transpose","table","json","image","link","text"]),Hk={value:`# big_value
140
- `},Uk=/^#\(malloy\)[\s\S]*\bcalculation\b/;function Yk(e){return e?e.kind==="measure"?!0:(e.annotations??[]).some(t=>typeof t?.value=="string"&&Uk.test(t.value.trim())):!1}function Gk(e){const t=e.schema?.fields;if(!Array.isArray(t)||t.length===0||!t.every(Yk))return!1;const n=e.data;return n?n.kind==="record_cell"?!0:n.kind==="array_cell"&&Array.isArray(n.array_value)&&n.array_value.length===1:!1}function qk(e){for(const t of e){const n=t.trim();if(!n.startsWith("#")||n.startsWith("#(")||n.startsWith('#"'))continue;const r=n.slice(1).replace(/"(?:[^"\\]|\\.)*"/g,'""');for(const o of r.split(/[\s{}=.,[\]]+/))if(Wk.has(o))return!0}return!1}function rp(e){let t;try{t=JSON.parse(e)}catch{return e}if(!t||typeof t!="object"||!Gk(t))return e;const n=Array.isArray(t.annotations)?t.annotations:[],r=n.map(o=>o?.value).filter(o=>typeof o=="string");return qk(r)?e:JSON.stringify({...t,annotations:[Hk,...n]})}const Kk=e=>np(rp(e));function Ls(e){const t=e.split("->").at(-1)?.trim()??e;return/^[A-Za-z_][\w-]*$/.test(t)?Tc(t):e}function Xk({environmentName:e,packageName:t,versionId:n,modelPath:r,queryName:o,tile:s,annotation:i,label:a,subtitle:l,heading:c,borderless:u,givens:p,hostGivens:m,declaredTypes:b,givenNames:d,height:h,maxResultSize:g,drill:w,onExplore:C,chrome:S="card",ignoredFilters:x,preamble:P,restricted:k,waitingFor:I,index:R}){const{theme:N}=Se.usePublisherTheme(),[F,E]=bm(),y=ep({environmentName:e,packageName:t,modelPath:r,versionId:n,queryName:o,query:s!==void 0?Js(P??"",`${i?`${i}
141
- `:""}run: ${s}`):void 0,givens:Zs(Qs(p,b,d),m,d)},{enabled:E&&k!==!0&&I===void 0}),{emit:$}=Ys(),D=y.isError?y.error:void 0;ee.useEffect(()=>{D!==void 0&&$({type:"report.query_failed",...R!==void 0?{tile:R}:{},category:sc(D)})},[D,$,R]);const M=k===!0||P!==void 0&&y.isError&&Qm(y.error);return f.jsxs(Ni,{cardRef:F,borderless:u,chrome:S,sx:{"& .malloy-render, & .malloy-table":{width:"100%"},"& .publisher-tile-explore":{opacity:0,transition:`opacity ${$r}`,...Or,...mc},"&:hover .publisher-tile-explore, & .publisher-tile-explore:focus-visible":{opacity:1}},children:[s!==void 0&&f.jsx(Md,{title:c?.title??a??Ls(s),subtitle:c?c.subtitle:l,quiet:S==="none",tooltip:s,action:C&&f.jsx(W.Tooltip,{title:"Explore from here",children:f.jsx(W.IconButton,{className:"publisher-tile-explore",size:"small","aria-label":`Explore ${a??Ls(s)}`,onClick:C,sx:{mt:-.5,mr:-.5,color:N.tileTitle},children:f.jsx(mm,{fontSize:"small"})})})}),x&&f.jsx(Cd,{ignored:x}),I!==void 0?f.jsx(W.Box,{sx:{p:2},children:f.jsx(W.Typography,{variant:"body2",role:"status",color:"text.secondary",children:I})}):M?f.jsx(W.Box,{sx:{p:2},children:f.jsx(W.Typography,{variant:"body2",role:"status",color:"text.secondary",children:jc})}):f.jsx(wd,{fill:!0,state:y,context:s??o??r,maxHeight:h,maxResultSize:g,drill:w,transform:P!==void 0?s!==void 0?Kk:np:s!==void 0?rp:void 0})]})}function Qk(e,{enabled:t=!0}={}){const{apiClients:n}=Se.useServer();return Ko({queryKey:["compiled-document",e.environmentName,e.packageName,e.modelPath,e.source,e.givens??null],queryFn:async()=>{const r=(await n.models.compileModelSource(e.environmentName,e.packageName,e.modelPath,{source:e.source,scope:"append",...e.givens&&Object.keys(e.givens).length>0?{givens:e.givens}:{}})).data;return{document:r.document,result:r}},enabled:t})}exports.AdapterDayjs=mo;exports.AddButton=em;exports.AddFilterButton=fd;exports.AddIcon=Us;exports.ApiErrorDisplay=yc;exports.AppDialog=ic;exports.ArrowDropDownIcon=zu;exports.BARE_RING_OFFSET_PX=Gh;exports.BUILDER_HANDOFF_STALE_MS=kk;exports.Button=ur;exports.ButtonBase=jn;exports.ChartGlyph=cc;exports.CheckIcon=Jh;exports.Chip=Iu;exports.CircularProgress=ui;exports.ClassNameGenerator=Al;exports.CloseIcon=Fo;exports.DASHBOARD_CARD_PADDING_PX=Li;exports.DRILL_SELF=_m;exports.DashboardGrid=Xh;exports.DashboardTile=Xk;exports.DatePicker=Mr;exports.DeleteOutlineIcon=pm;exports.DocumentNotFoundError=Ed;exports.DocumentStorageProvider=Sk;exports.ErrorDetailAlert=gc;exports.ExpandMoreIcon=hc;exports.FilterEditingContext=od;exports.FilterSettingsButton=pd;exports.FloatingIconButton=xd;exports.FormControl=Mi;exports.GRID_GAP_PX=cn;exports.GivenInput=Oi;exports.GivensPanel=uP;exports.Grow=wr;exports.INITIAL_RENDER_HEIGHT=Is;exports.IconButton=Nr;exports.InfoOutlinedIcon=vd;exports.InputLabel=ki;exports.LOADING_COPY=Co;exports.ListContext=En;exports.Loading=Fi;exports.LocalizationProvider=Sr;exports.MAX_SLUG_ATTEMPTS=_i;exports.MIN_TILE_PX=ec;exports.MODEL_CELL_MAX_HEIGHT=kP;exports.MOTION_FAST=$r;exports.NOTEBOOK_CELL_MAX_HEIGHT=PP;exports.PROSE_MAX_WIDTH=ac;exports.Paper=jr;exports.Popper=Su;exports.Prose=gP;exports.REMOVE_BADGE_CLASS=Dn;exports.REPORT_EDIT_PARAM=qd;exports.RESTRICTED_NOTICE=jc;exports.RESULTS_DIALOG_MAX_HEIGHT=MP;exports.RemoveBadge=id;exports.ReportEventsContext=oc;exports.ReportHeader=zP;exports.ReportPage=VP;exports.ResultContainer=Sd;exports.ResultPanel=wd;exports.STICKY_CONTROLS_Z=Td;exports.SearchIcon=lc;exports.SecondaryButton=tm;exports.Select=Ri;exports.StickyControls=WP;exports.SvgIcon=fo;exports.THEME_ID=Wn;exports.TILE_HEADING_CLASS=kd;exports.TILE_MAX_HEIGHT=CP;exports.TILE_MIN_HEIGHT=Pd;exports.TextField=_u;exports.TextTileFrame=_P;exports.TileCard=Ni;exports.TileFilterTag=Cd;exports.TileHeading=Md;exports.Typography=Xt;exports.UNCAPPED_CONTAINER_HEIGHT=md;exports.UnsavedChangesDialog=Zh;exports.ViewPicker=cm;exports.annotationTextProblem=Bi;exports.buildTableCssVars=LP;exports.capitalize=le;exports.chartLineText=mk;exports.chartLinesOf=vk;exports.chartOf=Ud;exports.chartStateOfTagLines=bk;exports.chooseWorkspace=QP;exports.clearReportDraft=Pm;exports.clsx=de;exports.composeClasses=me;exports.contentNode=hd;exports.contentNodeDepth=SP;exports.createDocument=pk;exports.createRoute=dk;exports.createSimplePaletteValueFilter=Xe;exports.createSvgIcon=$e;exports.createTheme=Kl;exports.dangerTextColor=hm;exports.dayjs=Re;exports.docOf=As;exports.documentPreamble=Xm;exports.documentSlug=Rk;exports.draftKey=jd;exports.draftStorageAvailable=km;exports.drillDestinations=Mc;exports.drillGivenName=Dc;exports.drillValueLabel=Rc;exports.drillValueToFilter=Lo;exports.edgeColor=Hn;exports.emphasize=Vl;exports.encodeDrillValue=Ic;exports.encodeResourceUri=Rd;exports.escapeMalloyString=bc;exports.expectedHashFor=ZP;exports.exportedSources=zd;exports.extractEventHandlers=ni;exports.failureCategory=sc;exports.filledInputClasses=Ut;exports.formControlState=yn;exports.generateUtilityClass=ge;exports.generateUtilityClasses=he;exports.getAugmentedNamespace=yp;exports.getDefaultExportFromCjs=Nt;exports.getReactElementRef=Un;exports.givensToParams=Lc;exports.givensToRequest=Qs;exports.hoverEdgeColor=Gs;exports.humanizeSlug=Tc;exports.initialResultHeight=gd;exports.inputBaseClasses=hn;exports.inputClasses=Mn;exports.invalidateReportQueries=Ok;exports.isChartPick=Hd;exports.isDocumentNotFound=$d;exports.isDrillTargetPath=Qd;exports.layoutOfKind=Mk;exports.layoutRules=AP;exports.legacyNamedPath=Tk;exports.listedLayout=Kd;exports.loadMalloy=GP;exports.loadMalloyRenderer=yd;exports.loadMalloyTag=qP;exports.loadQueryBuilder=KP;exports.localGivenSpec=vm;exports.locateReport=Ui;exports.locatedReport=Xd;exports.locatorFor=Bd;exports.malloyLiteral=Sm;exports.measureContentHeight=wP;exports.memoTheme=Ee;exports.mentionsChartTag=Wi;exports.mergeSlotProps=Jl;exports.missingRequiredGivens=Z1;exports.modelResultsKey=jk;exports.newDashboardSource=uk;exports.newDocumentProblem=Vi;exports.newNotebookSource=lk;exports.now=$s;exports.nudgedSpan=Yh;exports.outlinedInputClasses=bt;exports.ownerDocument=Ye;exports.parseChartLine=zr;exports.parseResourceUri=Dd;exports.queryResultKey=Jd;exports.readableName=lm;exports.reducedMotionSx=Or;exports.remeasuresAfterReady=xP;exports.removeBadgeRevealSx=sd;exports.renderGivenDefault=$i;exports.reportClasses=$t;exports.reportDraftKey=Cm;exports.reportEditRoute=Ik;exports.reportEmitter=ho;exports.reportPathFor=Fd;exports.reportPathForTitle=Nd;exports.reportPathProblem=Vd;exports.reportQueryOptions=Pk;exports.reportRoute=Gd;exports.reportRoutePath=Yd;exports.requiredPrompt=eP;exports.resolveDrill=Wm;exports.resolveDrillTarget=Ek;exports.resolveEditorTarget=ok;exports.resolveResultHeight=Es;exports.resultSizing=vP;exports.rootShouldForwardProp=pt;exports.saveCaption=JP;exports.saveTarget=Id;exports.scrollBehavior=fm;exports.setRef=ys;exports.slugFor=Od;exports.slugOrFallback=Ld;exports.storageErrorMessage=ek;exports.styled=Y;exports.tileIgnoredFilterLabels=$P;exports.tileTitle=Ls;exports.typographyClasses=fy;exports.useCompiledDocument=Qk;exports.useControlled=Tt;exports.useDefaultProps=Ce;exports.useDefaultTileSpan=Kh;exports.useDocumentChoices=xk;exports.useDocumentControls=rg;exports.useDocumentLocation=Lk;exports.useDocumentStorage=wk;exports.useDrillSelf=Ec;exports.useEnhancedEffect=Ue;exports.useEventCallback=ue;exports.useForkRef=ke;exports.useFormControl=ft;exports.useGivensState=Nc;exports.useId=xt;exports.useMutationWithApiError=Nk;exports.useOptionalDocumentStorage=Ck;exports.useQueryResult=ep;exports.useQueryWithApiError=Ko;exports.useReportDraft=Rm;exports.useReportEmitter=Qh;exports.useReportEvents=Ys;exports.useReportListing=Zd;exports.useSlot=je;exports.useSuggestOptions=Vc;exports.useTheme=mn;exports.useTimeout=ti;exports.utc=qs;exports.visibleWithoutHoverSx=mc;exports.waitingOn=J1;exports.waitingText=tP;exports.withHostGivens=Zs;exports.withPreamble=Js;exports.withReportContext=nc;exports.withSource=dm;exports.withWorkspace=rk;exports.writePackageFile=nk;